From f9d92c14b82d98ff738ca297287b326ffc9443e6 Mon Sep 17 00:00:00 2001
From: lkmvip <35647095@qq.com>
Date: Sun, 9 Aug 2020 11:57:31 +0800
Subject: [PATCH] up core
---
background.js | 2 +-
cadmium-playercore-6.0023.976.031.js | 124501 -----------------------
cadmium-playercore-6.0025.038.031.js | 125592 ++++++++++++++++++++++++
manifest.json | 2 +-
4 files changed, 125594 insertions(+), 124503 deletions(-)
delete mode 100644 cadmium-playercore-6.0023.976.031.js
create mode 100644 cadmium-playercore-6.0025.038.031.js
diff --git a/background.js b/background.js
index 1083b1e..172bd0f 100644
--- a/background.js
+++ b/background.js
@@ -1,7 +1,7 @@
chrome.webRequest.onBeforeRequest.addListener(
function(details) {
return {
- redirectUrl: chrome.extension.getURL("cadmium-playercore-6.0023.976.031.js")
+ redirectUrl: chrome.extension.getURL("cadmium-playercore-6.0025.038.031.js")
};
}, {
urls: [
diff --git a/cadmium-playercore-6.0023.976.031.js b/cadmium-playercore-6.0023.976.031.js
deleted file mode 100644
index d63cda7..0000000
--- a/cadmium-playercore-6.0023.976.031.js
+++ /dev/null
@@ -1,124501 +0,0 @@
-v3YY.l4s = function () {
- return typeof v3YY.D4s.R8P === 'function' ? v3YY.D4s.R8P.apply(v3YY.D4s, arguments) : v3YY.D4s.R8P;
-};
-v3YY.Q5n = function () {
- return typeof v3YY.O5n.R8P === 'function' ? v3YY.O5n.R8P.apply(v3YY.O5n, arguments) : v3YY.O5n.R8P;
-};
-v3YY.C9B = function (f5B) {
- return {
- R8P: function () {
- var P5B,
- g5B = arguments;
- switch (f5B) {
- case 0:
- P5B = g5B[3] + g5B[4] + g5B[1] + g5B[2] + g5B[0];
- break;
- case 1:
- P5B = g5B[0] + g5B[2] + g5B[1];
- break;
- case 2:
- P5B = g5B[0] + g5B[1];
- break;
- }
- return P5B;
- },
- O8P: function (o5B) {
- f5B = o5B;
- }
- };
-}
-();
-v3YY.Q8p = function () {
- return typeof v3YY.E8p.O8P === 'function' ? v3YY.E8p.O8P.apply(v3YY.E8p, arguments) : v3YY.E8p.O8P;
-};
-v3YY.H1k = function () {
- return typeof v3YY.Z1k.R8P === 'function' ? v3YY.Z1k.R8P.apply(v3YY.Z1k, arguments) : v3YY.Z1k.R8P;
-};
-v3YY.l9m = function () {
- return typeof v3YY.K9m.R8P === 'function' ? v3YY.K9m.R8P.apply(v3YY.K9m, arguments) : v3YY.K9m.R8P;
-};
-v3YY.D4s = function (k4s) {
- return {
- R8P: function () {
- var O4s,
- N4s = arguments;
- switch (k4s) {
- case 1:
- O4s = (N4s[2] - N4s[1]) * N4s[0] / N4s[3];
- break;
- case 0:
- O4s = N4s[1] - N4s[0];
- break;
- }
- return O4s;
- },
- O8P: function (r4s) {
- k4s = r4s;
- }
- };
-}
-();
-v3YY.w9B = function () {
- return typeof v3YY.C9B.R8P === 'function' ? v3YY.C9B.R8P.apply(v3YY.C9B, arguments) : v3YY.C9B.R8P;
-};
-v3YY.E8p = function (g8p) {
- return {
- R8P: function () {
- var W8p,
- G8p = arguments;
- switch (g8p) {
- case 1:
- W8p = void G8p[1] !== G8p[0];
- break;
- case 0:
- W8p = G8p[1] + G8p[0];
- break;
- case 2:
- W8p = G8p[1] - G8p[0];
- break;
- }
- return W8p;
- },
- O8P: function (R8p) {
- g8p = R8p;
- }
- };
-}
-();
-v3YY.x2C = function (v2C) {
- return {
- R8P: function () {
- var t2C,
- a2C = arguments;
- switch (v2C) {
- case 1:
- t2C = a2C[1] <= a2C[0];
- break;
- case 0:
- t2C = a2C[0] >= a2C[1];
- break;
- case 2:
- t2C = a2C[1] + a2C[0];
- break;
- }
- return t2C;
- },
- O8P: function (Q2C) {
- v2C = Q2C;
- }
- };
-}
-();
-v3YY.r94 = function () {
- return typeof v3YY.c94.O8P === 'function' ? v3YY.c94.O8P.apply(v3YY.c94, arguments) : v3YY.c94.O8P;
-};
-v3YY.f6j = function (c6j) {
- return {
- R8P: function () {
- var R6j,
- w6j = arguments;
- switch (c6j) {
- case 0:
- R6j = (w6j[2] - w6j[1]) * w6j[0];
- break;
- }
- return R6j;
- },
- O8P: function (l6j) {
- c6j = l6j;
- }
- };
-}
-();
-v3YY.M89 = function () {
- return typeof v3YY.a89.R8P === 'function' ? v3YY.a89.R8P.apply(v3YY.a89, arguments) : v3YY.a89.R8P;
-};
-v3YY.G8P = function () {
- return typeof v3YY.r8P.O8P === 'function' ? v3YY.r8P.O8P.apply(v3YY.r8P, arguments) : v3YY.r8P.O8P;
-};
-v3YY.J8P = function () {
- return typeof v3YY.r8P.R8P === 'function' ? v3YY.r8P.R8P.apply(v3YY.r8P, arguments) : v3YY.r8P.R8P;
-};
-v3YY.d6j = function () {
- return typeof v3YY.f6j.O8P === 'function' ? v3YY.f6j.O8P.apply(v3YY.f6j, arguments) : v3YY.f6j.O8P;
-};
-v3YY.z2E = function () {
- return typeof v3YY.Y1E.O8P === 'function' ? v3YY.Y1E.O8P.apply(v3YY.Y1E, arguments) : v3YY.Y1E.O8P;
-};
-v3YY.L89 = function () {
- return typeof v3YY.a89.R8P === 'function' ? v3YY.a89.R8P.apply(v3YY.a89, arguments) : v3YY.a89.R8P;
-};
-v3YY.F1k = function () {
- return typeof v3YY.Z1k.O8P === 'function' ? v3YY.Z1k.O8P.apply(v3YY.Z1k, arguments) : v3YY.Z1k.O8P;
-};
-v3YY.I4s = function () {
- return typeof v3YY.D4s.R8P === 'function' ? v3YY.D4s.R8P.apply(v3YY.D4s, arguments) : v3YY.D4s.R8P;
-};
-v3YY.t8U = function () {
- return typeof v3YY.s8U.O8P === 'function' ? v3YY.s8U.O8P.apply(v3YY.s8U, arguments) : v3YY.s8U.O8P;
-};
-v3YY.t1k = function () {
- return typeof v3YY.Z1k.O8P === 'function' ? v3YY.Z1k.O8P.apply(v3YY.Z1k, arguments) : v3YY.Z1k.O8P;
-};
-v3YY.l8J = function () {
- return typeof v3YY.c8J.O8P === 'function' ? v3YY.c8J.O8P.apply(v3YY.c8J, arguments) : v3YY.c8J.O8P;
-};
-v3YY.O2C = function () {
- return typeof v3YY.x2C.O8P === 'function' ? v3YY.x2C.O8P.apply(v3YY.x2C, arguments) : v3YY.x2C.O8P;
-};
-v3YY.C8p = function () {
- return typeof v3YY.E8p.O8P === 'function' ? v3YY.E8p.O8P.apply(v3YY.E8p, arguments) : v3YY.E8p.O8P;
-};
-v3YY.i5n = function () {
- return typeof v3YY.O5n.O8P === 'function' ? v3YY.O5n.O8P.apply(v3YY.O5n, arguments) : v3YY.O5n.O8P;
-};
-v3YY.P6j = function () {
- return typeof v3YY.f6j.O8P === 'function' ? v3YY.f6j.O8P.apply(v3YY.f6j, arguments) : v3YY.f6j.O8P;
-};
-v3YY.J2E = function () {
- return typeof v3YY.Y1E.R8P === 'function' ? v3YY.Y1E.R8P.apply(v3YY.Y1E, arguments) : v3YY.Y1E.R8P;
-};
-v3YY.b7l = function () {
- return typeof v3YY.Q7l.O8P === 'function' ? v3YY.Q7l.O8P.apply(v3YY.Q7l, arguments) : v3YY.Q7l.O8P;
-};
-v3YY.g7l = function () {
- return typeof v3YY.Q7l.R8P === 'function' ? v3YY.Q7l.R8P.apply(v3YY.Q7l, arguments) : v3YY.Q7l.R8P;
-};
-v3YY.a89 = function (G89) {
- return {
- R8P: function () {
- var k89,
- n89 = arguments;
- switch (G89) {
- case 1:
- k89 = n89[0] + n89[1];
- break;
- case 0:
- k89 = n89[2] / n89[0] - n89[1];
- break;
- }
- return k89;
- },
- O8P: function (q89) {
- G89 = q89;
- }
- };
-}
-();
-v3YY.Z8U = function () {
- return typeof v3YY.s8U.R8P === 'function' ? v3YY.s8U.R8P.apply(v3YY.s8U, arguments) : v3YY.s8U.R8P;
-};
-v3YY.I9B = function () {
- return typeof v3YY.C9B.R8P === 'function' ? v3YY.C9B.R8P.apply(v3YY.C9B, arguments) : v3YY.C9B.R8P;
-};
-v3YY.x7l = function () {
- return typeof v3YY.Q7l.R8P === 'function' ? v3YY.Q7l.R8P.apply(v3YY.Q7l, arguments) : v3YY.Q7l.R8P;
-};
-v3YY.a4s = function () {
- return typeof v3YY.D4s.O8P === 'function' ? v3YY.D4s.O8P.apply(v3YY.D4s, arguments) : v3YY.D4s.O8P;
-};
-v3YY.y9B = function () {
- return typeof v3YY.C9B.O8P === 'function' ? v3YY.C9B.O8P.apply(v3YY.C9B, arguments) : v3YY.C9B.O8P;
-};
-v3YY.e2E = function () {
- return typeof v3YY.Y1E.O8P === 'function' ? v3YY.Y1E.O8P.apply(v3YY.Y1E, arguments) : v3YY.Y1E.O8P;
-};
-v3YY.s8U = function (v8U) {
- return {
- R8P: function () {
- var J8U,
- w8U = arguments;
- switch (v8U) {
- case 0:
- J8U = - (w8U[1] / -w8U[3] * w8U[2] * w8U[4] * w8U[0]);
- break;
- }
- return J8U;
- },
- O8P: function (S8U) {
- v8U = S8U;
- }
- };
-}
-();
-v3YY.b2C = function () {
- return typeof v3YY.x2C.R8P === 'function' ? v3YY.x2C.R8P.apply(v3YY.x2C, arguments) : v3YY.x2C.R8P;
-};
-v3YY.i9B = function () {
- return typeof v3YY.C9B.O8P === 'function' ? v3YY.C9B.O8P.apply(v3YY.C9B, arguments) : v3YY.C9B.O8P;
-};
-v3YY.P8P = function () {
- return typeof v3YY.r8P.O8P === 'function' ? v3YY.r8P.O8P.apply(v3YY.r8P, arguments) : v3YY.r8P.O8P;
-};
-v3YY.E8P = function () {
- return typeof v3YY.r8P.R8P === 'function' ? v3YY.r8P.R8P.apply(v3YY.r8P, arguments) : v3YY.r8P.R8P;
-};
-v3YY.Y8p = function () {
- return typeof v3YY.E8p.R8P === 'function' ? v3YY.E8p.R8P.apply(v3YY.E8p, arguments) : v3YY.E8p.R8P;
-};
-v3YY.B8p = function () {
- return typeof v3YY.E8p.R8P === 'function' ? v3YY.E8p.R8P.apply(v3YY.E8p, arguments) : v3YY.E8p.R8P;
-};
-v3YY.h8J = function () {
- return typeof v3YY.c8J.O8P === 'function' ? v3YY.c8J.O8P.apply(v3YY.c8J, arguments) : v3YY.c8J.O8P;
-};
-v3YY.c8J = function (f8J) {
- return {
- R8P: function () {
- var V8J,
- a8J = arguments;
- switch (f8J) {
- case 0:
- V8J = a8J[0] + a8J[1];
- break;
- }
- return V8J;
- },
- O8P: function (u8J) {
- f8J = u8J;
- }
- };
-}
-();
-v3YY.D89 = function () {
- return typeof v3YY.a89.O8P === 'function' ? v3YY.a89.O8P.apply(v3YY.a89, arguments) : v3YY.a89.O8P;
-};
-function v3YY() {}
-v3YY.H9m = function () {
- return typeof v3YY.K9m.O8P === 'function' ? v3YY.K9m.O8P.apply(v3YY.K9m, arguments) : v3YY.K9m.O8P;
-};
-v3YY.J89 = function () {
- return typeof v3YY.a89.O8P === 'function' ? v3YY.a89.O8P.apply(v3YY.a89, arguments) : v3YY.a89.O8P;
-};
-v3YY.O5n = function (c5n) {
- return {
- R8P: function () {
- var C5n,
- x5n = arguments;
- switch (c5n) {
- case 0:
- C5n = x5n[1] - x5n[0];
- break;
- }
- return C5n;
- },
- O8P: function (m5n) {
- c5n = m5n;
- }
- };
-}
-();
-v3YY.X4s = function () {
- return typeof v3YY.D4s.O8P === 'function' ? v3YY.D4s.O8P.apply(v3YY.D4s, arguments) : v3YY.D4s.O8P;
-};
-v3YY.Q7l = function (v7l) {
- return {
- R8P: function () {
- var O7l,
- G7l = arguments;
- switch (v7l) {
- case 0:
- O7l = (G7l[3] - G7l[4] + G7l[2] + G7l[0]) / G7l[1];
- break;
- }
- return O7l;
- },
- O8P: function (W7l) {
- v7l = W7l;
- }
- };
-}
-();
-v3YY.c94 = function (f94) {
- return {
- R8P: function () {
- var L94,
- M94 = arguments;
- switch (f94) {
- case 0:
- L94 = M94[2] * M94[1] / M94[0];
- break;
- }
- return L94;
- },
- O8P: function (u94) {
- f94 = u94;
- }
- };
-}
-();
-v3YY.A5n = function () {
- return typeof v3YY.O5n.R8P === 'function' ? v3YY.O5n.R8P.apply(v3YY.O5n, arguments) : v3YY.O5n.R8P;
-};
-v3YY.e8J = function () {
- return typeof v3YY.c8J.R8P === 'function' ? v3YY.c8J.R8P.apply(v3YY.c8J, arguments) : v3YY.c8J.R8P;
-};
-v3YY.c1E = function () {
- return typeof v3YY.Y1E.R8P === 'function' ? v3YY.Y1E.R8P.apply(v3YY.Y1E, arguments) : v3YY.Y1E.R8P;
-};
-v3YY.K5n = function () {
- return typeof v3YY.O5n.O8P === 'function' ? v3YY.O5n.O8P.apply(v3YY.O5n, arguments) : v3YY.O5n.O8P;
-};
-v3YY.i9m = function () {
- return typeof v3YY.K9m.O8P === 'function' ? v3YY.K9m.O8P.apply(v3YY.K9m, arguments) : v3YY.K9m.O8P;
-};
-v3YY.a9m = function () {
- return typeof v3YY.K9m.R8P === 'function' ? v3YY.K9m.R8P.apply(v3YY.K9m, arguments) : v3YY.K9m.R8P;
-};
-v3YY.K8J = function () {
- return typeof v3YY.c8J.R8P === 'function' ? v3YY.c8J.R8P.apply(v3YY.c8J, arguments) : v3YY.c8J.R8P;
-};
-v3YY.k94 = function () {
- return typeof v3YY.c94.R8P === 'function' ? v3YY.c94.R8P.apply(v3YY.c94, arguments) : v3YY.c94.R8P;
-};
-v3YY.Z1k = function (A1k) {
- return {
- R8P: function () {
- var r1k,
- X1k = arguments;
- switch (A1k) {
- case 0:
- r1k = X1k[1] + X1k[3] / X1k[2] * X1k[0];
- break;
- case 1:
- r1k = X1k[1] * X1k[3] / X1k[0] | X1k[2];
- break;
- case 5:
- r1k = (X1k[2] / X1k[3] | X1k[0]) * X1k[1];
- break;
- case 3:
- r1k = X1k[0] / X1k[1];
- break;
- case 2:
- r1k = X1k[2] / X1k[0] | X1k[1];
- break;
- case 4:
- r1k = X1k[1] - X1k[0];
- break;
- }
- return r1k;
- },
- O8P: function (K1k) {
- A1k = K1k;
- }
- };
-}
-();
-v3YY.r8P = function (I8P) {
- return {
- R8P: function () {
- var t8P,
- s8P = arguments;
- switch (I8P) {
- case 1:
- t8P = s8P[0] + s8P[1];
- break;
- case 0:
- t8P = s8P[1] - s8P[0];
- break;
- case 2:
- t8P = s8P[0] + s8P[1] - s8P[2];
- break;
- }
- return t8P;
- },
- O8P: function (Y8P) {
- I8P = Y8P;
- }
- };
-}
-();
-v3YY.W2C = function () {
- return typeof v3YY.x2C.R8P === 'function' ? v3YY.x2C.R8P.apply(v3YY.x2C, arguments) : v3YY.x2C.R8P;
-};
-v3YY.Q6j = function () {
- return typeof v3YY.f6j.R8P === 'function' ? v3YY.f6j.R8P.apply(v3YY.f6j, arguments) : v3YY.f6j.R8P;
-};
-v3YY.W8U = function () {
- return typeof v3YY.s8U.O8P === 'function' ? v3YY.s8U.O8P.apply(v3YY.s8U, arguments) : v3YY.s8U.O8P;
-};
-v3YY.K9m = function (Z9m) {
- return {
- R8P: function () {
- var n9m,
- Q9m = arguments;
- switch (Z9m) {
- case 0:
- n9m = Q9m[1] - Q9m[0];
- break;
- }
- return n9m;
- },
- O8P: function (A9m) {
- Z9m = A9m;
- }
- };
-}
-();
-v3YY.H6j = function () {
- return typeof v3YY.f6j.R8P === 'function' ? v3YY.f6j.R8P.apply(v3YY.f6j, arguments) : v3YY.f6j.R8P;
-};
-v3YY.N1k = function () {
- return typeof v3YY.Z1k.R8P === 'function' ? v3YY.Z1k.R8P.apply(v3YY.Z1k, arguments) : v3YY.Z1k.R8P;
-};
-v3YY.y7l = function () {
- return typeof v3YY.Q7l.O8P === 'function' ? v3YY.Q7l.O8P.apply(v3YY.Q7l, arguments) : v3YY.Q7l.O8P;
-};
-v3YY.Y1E = function (K1E) {
- return {
- R8P: function () {
- var m1E,
- D1E = arguments;
- switch (K1E) {
- case 0:
- m1E = D1E[0] + D1E[1];
- break;
- }
- return m1E;
- },
- O8P: function (h1E) {
- K1E = h1E;
- }
- };
-}
-();
-v3YY.D8U = function () {
- return typeof v3YY.s8U.R8P === 'function' ? v3YY.s8U.R8P.apply(v3YY.s8U, arguments) : v3YY.s8U.R8P;
-};
-v3YY.N2C = function () {
- return typeof v3YY.x2C.O8P === 'function' ? v3YY.x2C.O8P.apply(v3YY.x2C, arguments) : v3YY.x2C.O8P;
-};
-v3YY.Y94 = function () {
- return typeof v3YY.c94.R8P === 'function' ? v3YY.c94.R8P.apply(v3YY.c94, arguments) : v3YY.c94.R8P;
-};
-v3YY.l94 = function () {
- return typeof v3YY.c94.O8P === 'function' ? v3YY.c94.O8P.apply(v3YY.c94, arguments) : v3YY.c94.O8P;
-};
-(function () {
- (function (t, Y) {
- t.Promise || (t.Promise = Y());
- }
- (this, function () {
- var Ua;
- function t(t) {
- var Y;
- Y = this;
- if (t)
- try {
- t(function (r) {
- hb(Y, r);
- }, function (r) {
- Ja(Y, r);
- });
- } catch (r) {
- Ja(this, r);
- }
- }
- function Y() {
- return Object.create(t.prototype);
- }
- function hb(t, Y, r) {
- t._fulfilled === Ua && (t._fulfilled = !0, t._result = Y, cc(t, r));
- }
- function Ja(t, Y, r) {
- t._fulfilled === Ua && (t._fulfilled = !1, t._result = Y, cc(t, r));
- }
- function Qa(t, Y) {
- t._fulfilled !== Ua ? dc(Y, t._fulfilled, t._result) : (t._deferred || (t._deferred = []), t._deferred.push(Y));
- }
- function cc(t, Y) {
- var r,
- x,
- g;
- r = t._deferred;
- if (r)
- for (t._deferred = Ua, x = r.length, g = 0; g < x; g++)
- dc(r[g], t._fulfilled, t._result, Y);
- }
- function dc(t, Y, r, x) {
- var g;
- Y && r && r._isPromise ? Qa(r, t) : (g = Y ? t._onFulfilled : t._onRejected, t._onFulfilled = Ua, t._onRejected = Ua, g ? x ? Xa(t, g, r) : setImmediate(Xa.bind(Ua, t, g, r)) : Y ? hb(t, r, x) : Ja(t, r, x));
- }
- function Xa(t, Y, r) {
- var x;
- try {
- x = Y(r);
- if (x === t)
- throw new TypeError();
- hb(t, x, !0);
- } catch (g) {
- Ja(t, g, !0);
- }
- }
- t.prototype.then = function (t, Ja) {
- var r;
- r = Y();
- "function" === typeof t && (r._onFulfilled = t);
- "function" === typeof Ja && (r._onRejected = Ja);
- Qa(this, r);
- return r;
- };
- t.prototype["catch"] = function (t) {
- return this.then(Ua, t);
- };
- t.resolve = function (t) {
- var Ja;
- Ja = Y();
- hb(Ja, t);
- return Ja;
- };
- t.reject = function (t) {
- var Ua;
- Ua = Y();
- Ja(Ua, t);
- return Ua;
- };
- t.all = function (t) {
- var x,
- g,
- Xa,
- pb,
- ec,
- yb;
- function Qa(g, r) {
- Xa[g] = r;
- --pb || hb(x, Xa, !1);
- }
- function r(g) {
- Ja(x, g, !1);
- }
- x = Y();
- g = t.length;
- Xa = [];
- pb = 1;
- for (yb = 0; yb < g; yb++)
- (ec = t[yb]) && ec._isPromise ? (pb++, ec.then(Qa.bind(Ua, yb), r)) : Xa[yb] = ec;
- --pb || (x._fulfilled = !0, x._result = Xa);
- return x;
- };
- t.race = function (Qa) {
- var x,
- g,
- xb,
- pb;
- function Xa(g) {
- hb(x, g, !1);
- }
- function r(g) {
- Ja(x, g, !1);
- }
- x = Y();
- g = Qa.length;
- for (pb = 0; pb < g; pb++)
- if ((xb = Qa[pb]) && xb._isPromise) {
- if (xb.then(Xa, r), xb._fulfilled !== Ua)
- break;
- } else {
- t.resolve().then(Xa.bind(Ua, xb));
- break;
- }
- return x;
- };
- t.prototype._isPromise = !0;
- return t;
- }));
- (function (t, Y) {
- var hb,
- Ib,
- Ya,
- zc,
- sa,
- xa,
- eb,
- Ed,
- Fd,
- Ma,
- Na,
- Sb,
- Gd,
- Ac,
- Hd,
- Id,
- Yc,
- m,
- oa,
- oc,
- Jd,
- Zc,
- L,
- S,
- la,
- Bb,
- nb,
- db,
- fa,
- fb,
- Ta,
- Ub,
- Fa,
- Ca,
- Ka,
- ib,
- Bc,
- Cb,
- tb,
- ub,
- Cc,
- $c,
- Kd,
- Lb,
- Mb,
- Vb,
- ad,
- fc,
- Db,
- Dc,
- Rb,
- bd,
- Ld,
- gc,
- cd,
- dd,
- ed,
- fd,
- Eb,
- gd,
- hd,
- id,
- ic,
- Fb,
- Gb,
- jc,
- Ec,
- Fc,
- Gc,
- mb,
- Ne,
- Ra,
- Tb,
- Md,
- Hc,
- qb,
- Nd,
- Oe,
- vb,
- Od,
- Pd,
- Ic,
- Qd,
- Pe,
- nc,
- Rd,
- Me,
- Qe,
- jd,
- Jc,
- Re,
- Se,
- Bd,
- Te,
- Cd,
- Sd,
- ob,
- pc,
- Td,
- qc,
- Ud,
- rb,
- Vd,
- kd,
- Wd,
- md,
- Kc,
- Xd,
- Ve,
- Dd,
- Lc,
- Xc,
- Yd,
- Ue,
- Zd,
- nd,
- $d,
- ae,
- be,
- od,
- Qb,
- de,
- ce,
- We,
- rc,
- ee,
- qd,
- sc,
- fe,
- pd,
- ge,
- he,
- rd,
- je,
- ke,
- Oc,
- Yb,
- kc,
- Zb,
- le,
- me,
- ne,
- oe,
- pe,
- qe,
- Pc,
- Xe,
- re,
- se,
- td,
- te,
- lb,
- Wb,
- hc,
- Xb,
- Ob,
- Hb,
- Mc,
- gb,
- Kb,
- ie,
- tc,
- $b,
- ue,
- Ye,
- uc,
- ve,
- Ze,
- lc,
- we,
- Qc,
- ud,
- vc,
- vd,
- xe,
- wc,
- ye,
- ze,
- Ae,
- $e,
- xc,
- Be,
- af,
- bf,
- Ce,
- sd,
- Nc,
- De,
- Le,
- Ee,
- cf,
- ef,
- df,
- mc,
- yc,
- ff,
- Ad,
- gf,
- Fe;
- function Ja(g, r) {
- if (!r || "utf-8" === r)
- return cc(g);
- throw Error("unsupported encoding");
- }
- function Qa(g, r) {
- if (!r || "utf-8" === r)
- return dc(g);
- throw Error("unsupported encoding");
- }
- function cc(g) {
- for (var r = 0, m, t = g.length, x = ""; r < t; ) {
- m = g[r++];
- if (m & 128)
- if (192 === (m & 224))
- m = ((m & 31) << 6) + (g[r++] & 63);
- else if (224 === (m & 240))
- m = ((m & 15) << 12) + ((g[r++] & 63) << 6) + (g[r++] & 63);
- else
- throw Error("unsupported character");
- x += String.fromCharCode(m);
- }
- return x;
- }
- function dc(g) {
- var r,
- m,
- t,
- x,
- L;
- r = g.length;
- m = 0;
- x = 0;
- for (t = r; t--; )
- L = g.charCodeAt(t), 128 > L ? m++ : m = 2048 > L ? m + 2 : m + 3;
- m = new Uint8Array(m);
- for (t = 0; t < r; t++)
- L = g.charCodeAt(t), 128 > L ? m[x++] = L : (2048 > L ? m[x++] = 192 | L >>> 6 : (m[x++] = 224 | L >>> 12, m[x++] = 128 | L >>> 6 & 63), m[x++] = 128 | L & 63);
- return m;
- }
- function Xa(g, r) {
- if (g === r)
- return !0;
- if (!g || !r || g.length != r.length)
- return !1;
- for (var m = 0; m < g.length; ++m)
- if (g[m] != r[m])
- return !1;
- return !0;
- }
- function Ua(g) {
- var t;
- if (!(g && g.constructor == Uint8Array || Array.isArray(g)))
- throw new TypeError("Cannot compute the hash code of " + g);
- for (var r = 1, m = 0; m < g.length; ++m) {
- t = g[m];
- if ("number" !== typeof t)
- throw new TypeError("Cannot compute the hash code over non-numeric elements: " + t);
- r = 31 * r + t & 4294967295;
- }
- return r;
- }
- function xd(g, r) {
- var La;
- if (g === r)
- return !0;
- if (!g || !r)
- return !1;
- r instanceof Array || (r = [r]);
- for (var m = 0; m < r.length; ++m) {
- for (var t = r[m], x = !1, L = 0; L < g.length; ++L) {
- La = g[L];
- if (t.equals && "function" === typeof t.equals && t.equals(La) || t == La) {
- x = !0;
- break;
- }
- }
- if (!x)
- return !1;
- }
- return !0;
- }
- function yd(g, r) {
- return xd(g, r) && (g.length == r.length || xd(r, g));
- }
- function r(g, r, m) {
- var t,
- x;
- m && (t = m);
- if ("object" !== typeof g || "function" !== typeof g.result || "function" !== typeof g.error)
- throw new TypeError("callback must be an object with function properties 'result' and 'error'.");
- try {
- x = r.call(t, g);
- x !== Y && g.result(x);
- } catch (Uc) {
- try {
- g.error(Uc);
- } catch (La) {}
- }
- }
- function x(g, m, t) {
- if ("object" !== typeof g || "function" !== typeof g.timeout)
- throw new TypeError("callback must be an object with function properties 'result', 'timeout', and 'error'.");
- r(g, m, t);
- }
- function g(g, r, m) {
- 1E5 > g && (g = 1E5 + g);
- Object.defineProperties(this, {
- internalCode: {
- value: g,
- writable: !1,
- configurable: !1
- },
- responseCode: {
- value: r,
- writable: !1,
- configurable: !1
- },
- message: {
- value: m,
- writable: !1,
- configurable: !1
- }
- });
- }
- function xb(g) {
- switch (g) {
- case Ra.PSK:
- case Ra.MGK:
- return !0;
- default:
- return !1;
- }
- }
- function pb(g) {
- switch (g) {
- case Ra.PSK:
- case Ra.MGK:
- case Ra.X509:
- case Ra.RSA:
- case Ra.NPTICKET:
- case Ra.ECC:
- return !0;
- default:
- return !1;
- }
- }
- function ec(g) {
- return g.toJSON();
- }
- function yb(r, m) {
- yc ? m.result(yc) : Promise.resolve().then(function () {
- return Ka.getKeyByName(r);
- })["catch"](function () {
- return Ka.generateKey({
- name: r
- }, !1, ["wrapKey", "unwrapKey"]);
- }).then(function (g) {
- yc = g;
- m.result(yc);
- })["catch"](function (r) {
- m.error(new L(g.INTERNAL_EXCEPTION, "Unable to get system key"));
- });
- }
- function zd(g, r) {
- var m,
- t,
- x;
- m = r.masterToken;
- t = r.userIdToken;
- x = r.serviceTokens;
- return {
- NccpMethod: g.method,
- UserId: g.userId,
- UT: t && t.serialNumber,
- MT: m && m.serialNumber + ":" + m.sequenceNumber,
- STCount: x && x.length
- };
- }
- function Je(g) {
- return g.uniqueKey();
- }
- function Ke(t, x, sb, $a, zb) {
- var Ia;
- function Tc(g, O) {
- g.errorCode === m.ENTITY_REAUTH || g.errorCode === m.ENTITYDATA_REAUTH ? ($a.clearCryptoContexts(), ab()) : g.errorCode !== m.USER_REAUTH && g.errorCode !== m.USERDATA_REAUTH || La(O);
- }
- function La(g) {
- if (g = $a.getUserIdToken(g))
- $a.removeUserIdToken(g), ab();
- }
- function Z(g, O, M) {
- var w;
- w = [];
- (function F() {
- g.read(-1, O, {
- result: function (g) {
- r(M, function () {
- var v,
- E,
- I,
- M,
- O;
- if (g)
- w.push(g), F();
- else
- switch (w.length) {
- case 0:
- return new Uint8Array(0);
- case 1:
- return w[0];
- default:
- M = w.length,
- O = 0;
- for (E = v = 0; E < M; E++)
- v += w[E].length;
- v = new Uint8Array(v);
- for (E = 0; E < M; E++)
- I = w[E], v.set(I, O), O += I.length;
- return v;
- }
- });
- },
- timeout: function () {
- M.timeout();
- },
- error: function (g) {
- M.error(g);
- }
- });
- }
- ());
- }
- function ab() {
- $a.getStoreState({
- result: function (g) {
- for (var O = Ia.slice(), M = 0; M < O.length; M++)
- O[M]({
- storeState: g
- });
- },
- timeout: function () {
- t.error("Timeout getting store state", "" + e);
- },
- error: function (g) {
- t.error("Error getting store state", "" + g);
- }
- });
- }
- Ia = [];
- this.addEventHandler = function (g, O) {
- switch (g) {
- case "shouldpersist":
- Ia.push(O);
- }
- };
- this.send = function (r) {
- return new Promise(function (O, M) {
- var w,
- y,
- F;
- w = r.timeout;
- y = new Ad(t, sb, r, $a.getKeyRequestData());
- F = new Bd(r.url);
- t.trace("Sending MSL request");
- x.request(sb, y, F, w, {
- result: function (y) {
- var v;
- y && y.getMessageHeader();
- t.trace("Received MSL response", {
- Method: r.method
- });
- if (y) {
- r.allowTokenRefresh && ab();
- v = y.getErrorHeader();
- v ? (Tc(v, r.userId), M({
- success: !1,
- error: v
- })) : Z(y, w, {
- result: function (g) {
- O({
- success: !0,
- body: Ja(g)
- });
- },
- timeout: function () {
- M({
- success: !1,
- subCode: zb.MSL_READ_TIMEOUT
- });
- },
- error: function (g) {
- M({
- success: !1,
- error: g
- });
- }
- });
- } else
- M({
- success: !1,
- error: new L(g.INTERNAL_EXCEPTION, "Null response stream"),
- description: "Null response stream"
- });
- },
- timeout: function () {
- M({
- success: !1,
- subCode: zb.MSL_REQUEST_TIMEOUT
- });
- },
- error: function (g) {
- M({
- success: !1,
- error: g
- });
- }
- });
- });
- };
- this.hasUserIdToken = function (g) {
- return !!$a.getUserIdToken(g);
- };
- this.getUserIdTokenKeys = function () {
- return $a.getUserIdTokenKeys();
- };
- this.removeUserIdToken = La;
- this.clearUserIdTokens = function () {
- $a.clearUserIdTokens();
- ab();
- };
- this.isErrorReauth = function (g) {
- return g && g.errorCode == m.USERDATA_REAUTH;
- };
- this.isErrorHeader = function (g) {
- return g instanceof Qb;
- };
- this.getErrorCode = function (g) {
- return g && g.errorCode;
- };
- this.getStateForMdx = function (g) {
- var O,
- M;
- O = $a.getMasterToken();
- g = $a.getUserIdToken(g);
- M = $a.getCryptoContext(O);
- return {
- masterToken: O,
- userIdToken: g,
- cryptoContext: M
- };
- };
- this.buildPlayDataRequest = function (g, O) {
- var M;
- M = new Cd();
- x.request(sb, new Ad(t, sb, g), M, g.timeout, {
- result: function () {
- O.result(M.getRequest());
- },
- error: function () {
- O.result(M.getRequest());
- },
- timeout: function () {
- O.timeout();
- }
- });
- };
- this.rekeyUserIdToken = function (g, O) {
- $a.rekeyUserIdToken(g, O);
- ab();
- };
- this.getServiceTokens = function (g) {
- var O;
- O = $a.getMasterToken();
- (g = $a.getUserIdToken(g)) && !g.isBoundTo(O) && (g = Y);
- return $a.getServiceTokens(O, g);
- };
- this.removeServiceToken = function (g) {
- var O;
- O = $a.getMasterToken();
- $a.getServiceTokens(O).find(function (M) {
- return M.name === g;
- }) && ($a.removeServiceTokens(g, O), ab());
- };
- }
- function Vc(r, m, t, x, zb, Y) {
- function $a(m) {
- var Z;
- return Promise.resolve().then(function () {
- Z = r.authenticationKeyNames[m];
- if (!Z)
- throw new L(g.KEY_IMPORT_ERROR, "Invalid config keyName " + m);
- return Ka.getKeyByName(Z);
- }).then(function (r) {
- return new Promise(function (m, O) {
- fc(r, {
- result: m,
- error: function () {
- O(new L(g.KEY_IMPORT_ERROR, "Unable to create " + Z + " CipherKey"));
- }
- });
- });
- })["catch"](function (r) {
- throw new L(g.KEY_IMPORT_ERROR, "Unable to import " + Z, r);
- });
- }
- return Promise.resolve().then(function () {
- if (!Ka.getKeyByName)
- throw new L(g.INTERNAL_EXCEPTION, "No WebCrypto cryptokeys");
- return Promise.all([$a("e"), $a("h"), $a("w")]);
- }).then(function (g) {
- var Z,
- Ia,
- Va;
- Z = {};
- Z[m] = new t(r.esn, g[0], g[1], g[2]);
- g = new x(r.esn);
- Ia = new Le();
- Ia = [new zb(Ia)];
- Va = new Y(m);
- return {
- entityAuthFactories: Z,
- entityAuthData: g,
- keyExchangeFactories: Ia,
- keyRequestData: Va
- };
- });
- }
- function Wc(r, m, t) {
- var sb;
- function x() {
- return Promise.resolve().then(function () {
- return Ka.generateKey(m, !1, ["wrapKey", "unwrapKey"]);
- }).then(function (g) {
- return zb(g.publicKey, g.privateKey);
- });
- }
- function zb(r, m) {
- return Promise.all([new Promise(function (m, Z) {
- Rb(r, {
- result: m,
- error: function (r) {
- Z(new L(g.INTERNAL_EXCEPTION, "Unable to create keyx public key", r));
- }
- });
- }), new Promise(function (r, Z) {
- gc(m, {
- result: r,
- error: function (r) {
- Z(new L(g.INTERNAL_EXCEPTION, "Unable to create keyx private key", r));
- }
- });
- })]).then(function (g) {
- g = new Xc("rsaKeypairId", t, g[0], g[1]);
- sb && (g.storeData = {
- keyxPublicKey: r,
- keyxPrivateKey: m
- });
- return g;
- });
- }
- sb = !r.systemKeyWrapFormat;
- return Promise.resolve().then(function () {
- var g,
- m;
- g = r.storeState;
- m = g && g.keyxPublicKey;
- g = g && g.keyxPrivateKey;
- return sb && m && g ? zb(m, g) : x();
- }).then(function (g) {
- var m,
- t,
- Ia;
- m = {};
- m[Ra.NONE] = new Me();
- t = new nc(r.esn);
- Ia = [new Dd()];
- return {
- entityAuthFactories: m,
- entityAuthData: t,
- keyExchangeFactories: Ia,
- keyRequestData: g,
- createKeyRequestData: sb ? x : Y
- };
- });
- }
- Ib = t.nfCrypto || t.msCrypto || t.webkitCrypto || t.crypto;
- Ya = Ib && (Ib.webkitSubtle || Ib.subtle);
- zc = t.nfCryptokeys || t.msCryptokeys || t.webkitCryptokeys || t.cryptokeys;
- (function (g) {
- var r,
- m;
- r = function () {
- function g(g, m) {
- g instanceof r ? (this.abv = g.abv, this.position = g.position) : (this.abv = g, this.position = m || 0);
- }
- g.prototype = {
- readByte: function () {
- return this.abv[this.position++];
- },
- writeByte: function (g) {
- this.abv[this.position++] = g;
- },
- peekByte: function (g) {
- return this.abv[g];
- },
- copyBytes: function (g, r, m) {
- var Z;
- Z = new Uint8Array(this.abv.buffer, this.position, m);
- g = new Uint8Array(g.buffer, r, m);
- Z.set(g);
- this.position += m;
- },
- seek: function (g) {
- this.position = g;
- },
- skip: function (g) {
- this.position += g;
- },
- getPosition: function () {
- return this.position;
- },
- setPosition: function (g) {
- this.position = g;
- },
- getRemaining: function () {
- return this.abv.length - this.position;
- },
- getLength: function () {
- return this.abv.length;
- },
- isEndOfStream: function () {
- return this.position >= this.abv.length;
- },
- show: function () {
- return "AbvStream: pos " + (this.getPosition().toString() + " of " + this.getLength().toString());
- }
- };
- return g;
- }
- ();
- m = {};
- (function () {
- var I,
- v,
- E,
- ua,
- X,
- za,
- wa,
- ca,
- ra;
- function g(B, v) {
- var w;
- v.writeByte(B.tagClass << 6 | B.constructed << 5 | B.tag);
- w = B.payloadLen;
- if (128 > w)
- v.writeByte(w);
- else {
- for (var E = w, y = 0; E; )
- ++y, E >>= 8;
- v.writeByte(128 | y);
- for (E = 0; E < y; ++E)
- v.writeByte(w >> 8 * (y - E - 1) & 255);
- }
- if (B.child)
- for (B.tag == I.BIT_STRING && v.writeByte(0), w = B._child; w; ) {
- if (!g(w, v))
- return !1;
- w = w.next;
- }
- else
- switch (B.tag) {
- case I.INTEGER:
- B.backingStore[B.dataIdx] >> 7 && v.writeByte(0);
- v.copyBytes(B.backingStore, B.dataIdx, B.dataLen);
- break;
- case I.BIT_STRING:
- v.writeByte(0);
- v.copyBytes(B.backingStore, B.dataIdx, B.dataLen);
- break;
- case I.OCTET_STRING:
- v.copyBytes(B.backingStore, B.dataIdx, B.dataLen);
- break;
- case I.OBJECT_IDENTIFIER:
- v.copyBytes(B.backingStore, B.dataIdx, B.dataLen);
- }
- return !0;
- }
- function t(g) {
- var B,
- v;
- B = g.readByte();
- v = B & 127;
- if (v == B)
- return v;
- if (3 < v || 0 === v)
- return -1;
- for (var w = B = 0; w < v; ++w)
- B = B << 8 | g.readByte();
- return B;
- }
- function x(g, w, E) {
- var B,
- y,
- M,
- W,
- F,
- ga,
- O;
- B = g.backingStore;
- y = new r(B, w);
- w += E;
- E = g;
- if (8 < X++)
- return Y;
- for (; y.getPosition() < w; ) {
- y.getPosition();
- F = y.readByte();
- if (31 == (F & 31)) {
- for (W = 0; F & 128; )
- W <<= 8, W |= F & 127;
- F = W;
- }
- M = F;
- W = M & 31;
- if (0 > W || 30 < W)
- return Y;
- F = t(y);
- if (0 > F || F > y.getRemaining())
- return Y;
- E.constructed = M & 32;
- E.tagClass = (M & 192) >> 6;
- E.tag = W;
- E.dataLen = F;
- E.dataIdx = y.getPosition();
- W = y;
- ga = M;
- M = F;
- if (ga & 32)
- W = !0;
- else if (ga < I.BIT_STRING || ga > I.OCTET_STRING)
- W = !1;
- else {
- O = new r(W);
- ga == I.BIT_STRING && O.skip(1);
- O.readByte() >> 6 & 1 ? W = !1 : (ga = t(O), W = O.getPosition() - W.getPosition() + ga == M);
- }
- W && (W = y.getPosition(), M = F, E.tag == I.BIT_STRING && (E.dataIdx++, E.dataLen--, W++, M--), E.child = new v(B, E), x(E.child, W, M));
- E.tag == I.INTEGER && (W = y.getPosition(), 0 == y.peekByte(W) && y.peekByte(W + 1) >> 7 && (E.dataIdx++, E.dataLen--));
- y.skip(F);
- y.getPosition() < w && (E.next = new v(B, E.parent), E = E.next);
- }
- X--;
- return g;
- }
- function L(g, v, w) {
- if (9 != w)
- return !1;
- for (w = 0; 9 > w; ++w)
- if (g[v++] != za[w])
- return !1;
- return !0;
- }
- function Z(g) {
- var v;
- if (!(g && g.child && g.child.next && g.child.child && g.child.next.child))
- return !1;
- v = g.child.child;
- return L(v.backingStore, v.dataIdx, v.dataLen) && 2 == g.nChildren && 2 == g.child.nChildren && 2 == g.child.next.child.nChildren ? !0 : !1;
- }
- function ab(g) {
- var v;
- if (!(g && g.child && g.child.next && g.child.next.child && g.child.next.next && g.child.next.next.child))
- return !1;
- v = g.child.next.child;
- return L(v.backingStore, v.dataIdx, v.dataLen) && 3 == g.nChildren && 2 == g.child.next.nChildren && 9 == g.child.next.next.child.nChildren ? !0 : !1;
- }
- function Ia(g) {
- var v,
- B;
- v = E.createSequenceNode();
- B = new ua(v);
- B.addChild(E.createSequenceNode());
- B.addChild(E.createOidNode(za));
- B.addSibling(E.createNullNode());
- B.addToParent(v, E.createBitStringNode(null));
- B.addChild(E.createSequenceNode());
- B.addChild(E.createIntegerNode(g.n));
- B.addSibling(E.createIntegerNode(g.e));
- return v;
- }
- function Va(g) {
- var v;
- g = g.child.next.child.child;
- v = g.data;
- g = g.next;
- return new wa(v, g.data, null, null);
- }
- function O(g) {
- var v,
- B;
- v = E.createSequenceNode();
- B = new ua(v);
- B.addChild(E.createIntegerNode(new Uint8Array([0])));
- B.addSibling(E.createSequenceNode());
- B.addChild(E.createOidNode(za));
- B.addSibling(E.createNullNode());
- B.addToParent(v, E.createOctetStringNode(null));
- B.addChild(E.createSequenceNode());
- B.addChild(E.createIntegerNode(new Uint8Array([0])));
- B.addSibling(E.createIntegerNode(g.n));
- B.addSibling(E.createIntegerNode(g.e));
- B.addSibling(E.createIntegerNode(g.d));
- B.addSibling(E.createIntegerNode(g.p));
- B.addSibling(E.createIntegerNode(g.q));
- B.addSibling(E.createIntegerNode(g.dp));
- B.addSibling(E.createIntegerNode(g.dq));
- B.addSibling(E.createIntegerNode(g.qi));
- return v;
- }
- function M(g) {
- var v;
- v = [];
- g = g.child.next.next.child.child.next;
- for (var B = 0; 8 > B; B++)
- v.push(g.data), g = g.next;
- return new ca(v[0], v[1], v[2], v[3], v[4], v[5], v[6], v[7]);
- }
- function w(g, v, w, E) {
- if (!(g instanceof wa || g instanceof ca))
- return Y;
- if (w)
- for (var B = 0; B < w.length; ++B)
- if (-1 == ra.indexOf(w[B]))
- return Y;
- v = {
- kty: "RSA",
- alg: v,
- key_ops: w || [],
- ext: E == Y ? !1 : E,
- n: sa(g.n, !0),
- e: sa(g.e, !0)
- };
- g instanceof ca && (v.d = sa(g.d, !0), v.p = sa(g.p, !0), v.q = sa(g.q, !0), v.dp = sa(g.dp, !0), v.dq = sa(g.dq, !0), v.qi = sa(g.qi, !0));
- return v;
- }
- function y(g) {
- var v,
- w,
- B,
- E,
- y,
- M,
- I,
- F,
- X,
- O;
- if (!g.kty || "RSA" != g.kty || !g.n || !g.e)
- return Y;
- v = "RSA1_5 RSA-OAEP RSA-OAEP-256 RSA-OAEP-384 RSA-OAEP-512 RS256 RS384 RS512".split(" ");
- if (g.alg && -1 == v.indexOf(g.alg))
- return Y;
- v = [];
- g.use ? "enc" == g.use ? v = ["encrypt", "decrypt", "wrap", "unwrap"] : "sig" == g.use && (v = ["sign", "verify"]) : v = g.key_ops;
- w = g.ext;
- B = xa(g.n, !0);
- E = xa(g.e, !0);
- if (g.d) {
- y = xa(g.d, !0);
- M = xa(g.p, !0);
- I = xa(g.q, !0);
- F = xa(g.dp, !0);
- X = xa(g.dq, !0);
- O = xa(g.qi, !0);
- return new ca(B, E, y, M, I, F, X, O, g.alg, v, w);
- }
- return new wa(B, E, w, v);
- }
- function F(g, v, w, E) {
- this.der = g;
- this.type = v;
- this.keyOps = w;
- this.extractable = E;
- }
- I = {
- BER: 0,
- BOOLEAN: 1,
- INTEGER: 2,
- BIT_STRING: 3,
- OCTET_STRING: 4,
- NULL: 5,
- OBJECT_IDENTIFIER: 6,
- OBJECT_DESCRIPTOR: 7,
- INSTANCE_OF_EXTERNAL: 8,
- REAL: 9,
- ENUMERATED: 10,
- EMBEDDED_PPV: 11,
- UTF8_STRING: 12,
- RELATIVE_OID: 13,
- SEQUENCE: 16,
- SET: 17,
- NUMERIC_STRING: 18,
- PRINTABLE_STRING: 19,
- TELETEX_STRING: 20,
- T61_STRING: 20,
- VIDEOTEX_STRING: 21,
- IA5_STRING: 22,
- UTC_TIME: 23,
- GENERALIZED_TIME: 24,
- GRAPHIC_STRING: 25,
- VISIBLE_STRING: 26,
- ISO64_STRING: 26,
- GENERAL_STRING: 27,
- UNIVERSAL_STRING: 28,
- CHARACTER_STRING: 29,
- BMP_STRING: 30
- };
- v = function (g, v, w, E, y, M) {
- this._data = g;
- this._parent = v || Y;
- this._constructed = w || !1;
- this._tagClass = 0;
- this._tag = E || 0;
- this._dataIdx = y || 0;
- this._dataLen = M || 0;
- };
- v.prototype = {
- _child: Y,
- _next: Y,
- get data() {
- return new Uint8Array(this._data.buffer.slice(this._dataIdx, this._dataIdx + this._dataLen));
- },
- get backingStore() {
- return this._data;
- },
- get constructed() {
- return this._constructed;
- },
- set constructed(g) {
- this._constructed = 0 != g ? !0 : !1;
- },
- get tagClass() {
- return this._tagClass;
- },
- set tagClass(g) {
- this._tagClass = g;
- },
- get tag() {
- return this._tag;
- },
- set tag(g) {
- this._tag = g;
- },
- get dataIdx() {
- return this._dataIdx;
- },
- set dataIdx(g) {
- this._dataIdx = g;
- },
- get dataLen() {
- return this._dataLen;
- },
- set dataLen(g) {
- this._dataLen = g;
- },
- get child() {
- return this._child;
- },
- set child(g) {
- this._child = g;
- this._child.parent = this;
- },
- get next() {
- return this._next;
- },
- set next(g) {
- this._next = g;
- },
- get parent() {
- return this._parent;
- },
- set parent(g) {
- this._parent = g;
- },
- get payloadLen() {
- var g;
- g = 0;
- if (this._child) {
- for (var v = this._child; v; )
- g += v.length, v = v.next;
- this._tag == I.BIT_STRING && g++;
- } else
- switch (this._tag) {
- case I.INTEGER:
- g = this._dataLen;
- this._data[this._dataIdx] >> 7 && g++;
- break;
- case I.BIT_STRING:
- g = this._dataLen + 1;
- break;
- case I.OCTET_STRING:
- g = this._dataLen;
- break;
- case I.NULL:
- g = 0;
- break;
- case I.OBJECT_IDENTIFIER:
- L(this._data, this._dataIdx, this._dataLen) && (g = 9);
- }
- return g;
- },
- get length() {
- var g,
- v;
- g = this.payloadLen;
- if (127 < g)
- for (v = g; v; )
- v >>= 8, ++g;
- return g + 2;
- },
- get der() {
- var v,
- w;
- v = this.length;
- if (!v)
- return Y;
- v = new Uint8Array(v);
- w = new r(v);
- return g(this, w) ? v : Y;
- },
- get nChildren() {
- for (var g = 0, v = this._child; v; )
- g++, v = v.next;
- return g;
- }
- };
- E = {
- createSequenceNode: function () {
- return new v(null, null, !0, I.SEQUENCE, null, null);
- },
- createOidNode: function (g) {
- return new v(g, null, !1, I.OBJECT_IDENTIFIER, 0, g ? g.length : 0);
- },
- createNullNode: function () {
- return new v(null, null, !1, I.NULL, null, null);
- },
- createBitStringNode: function (g) {
- return new v(g, null, !1, I.BIT_STRING, 0, g ? g.length : 0);
- },
- createIntegerNode: function (g) {
- return new v(g, null, !1, I.INTEGER, 0, g ? g.length : 0);
- },
- createOctetStringNode: function (g) {
- return new v(g, null, !1, I.OCTET_STRING, 0, g ? g.length : 0);
- }
- };
- ua = function (g) {
- this._currentNode = this._rootNode = g;
- };
- ua.prototype = {
- addChild: function (g) {
- this.addTo(this._currentNode, g);
- },
- addSibling: function (g) {
- this.addTo(this._currentNode.parent, g);
- },
- addTo: function (g, v) {
- this._currentNode = v;
- this._currentNode.parent = g;
- if (g.child) {
- for (var w = g.child; w.next; )
- w = w.next;
- w.next = v;
- } else
- g.child = v;
- },
- addToParent: function (g, v) {
- this.findNode(g) && this.addTo(g, v);
- },
- findNode: function (g) {
- for (var v = this._currentNode; v; ) {
- if (g == v)
- return !0;
- v = v.parent;
- }
- return !1;
- }
- };
- X = 0;
- za = new Uint8Array([42, 134, 72, 134, 247, 13, 1, 1, 1]);
- wa = function (g, v, w, E) {
- this.n = g;
- this.e = v;
- this.ext = w;
- this.keyOps = E;
- };
- ca = function (g, v, w, E, y, M, I, F, ga, X, O) {
- this.n = g;
- this.e = v;
- this.d = w;
- this.p = E;
- this.q = y;
- this.dp = M;
- this.dq = I;
- this.qi = F;
- this.alg = ga;
- this.keyOps = X;
- this.ext = O;
- };
- ra = "sign verify encrypt decrypt wrapKey unwrapKey deriveKey deriveBits".split(" ");
- F.prototype.getDer = function () {
- return this.der;
- };
- F.prototype.getType = function () {
- return this.type;
- };
- F.prototype.getKeyOps = function () {
- return this.keyOps;
- };
- F.prototype.getExtractable = function () {
- return this.extractable;
- };
- m.parse = function (g) {
- X = 0;
- return x(new v(g), 0, g.length);
- };
- m.show = function (g, v) {};
- m.isRsaSpki = Z;
- m.isRsaPkcs8 = ab;
- m.NodeFactory = E;
- m.Builder = ua;
- m.tagVal = I;
- m.RsaPublicKey = wa;
- m.RsaPrivateKey = ca;
- m.buildRsaSpki = Ia;
- m.parseRsaSpki = function (g) {
- g = m.parse(g);
- return Z ? Va(g) : Y;
- };
- m.buildRsaPkcs8 = O;
- m.parseRsaPkcs8 = function (g) {
- g = m.parse(g);
- return ab(g) ? M(g) : Y;
- };
- m.buildRsaJwk = w;
- m.parseRsaJwk = y;
- m.RsaDer = F;
- m.rsaDerToJwk = function (g, v, E, y) {
- g = m.parse(g);
- if (!g)
- return Y;
- if (Z(g))
- g = Va(g);
- else if (ab(g))
- g = M(g);
- else
- return Y;
- return w(g, v, E, y);
- };
- m.jwkToRsaDer = function (g) {
- var v,
- w;
- g = y(g);
- if (!g)
- return Y;
- if (g instanceof wa)
- v = "spki", w = Ia(g).der;
- else if (g instanceof ca)
- v = "pkcs8", w = O(g).der;
- else
- return Y;
- return new F(w, v, g.keyOps, g.ext);
- };
- m.webCryptoAlgorithmToJwkAlg = function (g) {
- return "RSAES-PKCS1-v1_5" == g.name ? "RSA1_5" : "RSASSA-PKCS1-v1_5" == g.name ? "SHA-256" == g.hash.name ? "RS256" : "SHA-384" == g.hash.name ? "RS384" : "SHA-512" == g.hash.name ? "RS512" : Y : Y;
- };
- m.webCryptoUsageToJwkKeyOps = function (g) {
- return g.map(function (g) {
- return "wrapKey" == g ? "wrap" : "unwrapKey" == g ? "unwrap" : g;
- });
- };
- }
- ());
- g.ASN1 = m;
- }
- (t));
- (function () {
- for (var g = {}, r = {}, m = {
- "=": 0,
- ".": 0
- }, t = {
- "=": 0,
- ".": 0
- }, x = /\s+/g, L = /^[ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/_-]*[=]{0,2}$/, La = 64; La--; )
- g["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[La]] = 262144 * La, r["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[La]] = 4096 * La, m["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[La]] = 64 * La, t["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[La]] = La;
- for (La = 64; La-- && "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[La] != "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"[La]; )
- g["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"[La]] = 262144 * La, r["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"[La]] = 4096 * La, m["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"[La]] = 64 * La, t["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"[La]] = La;
- sa = function (g, r) {
- for (var m = "", Z = 0, O = g.length, M = O - 2, w, y = r ? "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_" : "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", F = r ? "" : "="; Z < M; )
- w = 65536 * g[Z++] + 256 * g[Z++] + g[Z++], m += y[w >>> 18] + y[w >>> 12 & 63] + y[w >>> 6 & 63] + y[w & 63];
- Z == M ? (w = 65536 * g[Z++] + 256 * g[Z++], m += y[w >>> 18] + y[w >>> 12 & 63] + y[w >>> 6 & 63] + F) : Z == O - 1 && (w = 65536 * g[Z++], m += y[w >>> 18] + y[w >>> 12 & 63] + F + F);
- return m;
- };
- xa = function (Z, ab) {
- var Ia;
- Z = Z.replace(x, "");
- if (ab) {
- Ia = Z.length % 4;
- if (Ia)
- for (var Ia = 4 - Ia, Va = 0; Va < Ia; ++Va)
- Z += "=";
- }
- Ia = Z.length;
- if (0 != Ia % 4 || !L.test(Z))
- throw Error("bad base64: " + Z);
- for (var O = Ia / 4 * 3 - ("=" == Z[Ia - 1] ? 1 : 0) - ("=" == Z[Ia - 2] ? 1 : 0), M = new Uint8Array(O), w = 0, y = 0; w < Ia; )
- Va = g[Z[w++]] + r[Z[w++]] + m[Z[w++]] + t[Z[w++]], M[y++] = Va >>> 16, y < O && (M[y++] = Va >>> 8 & 255, y < O && (M[y++] = Va & 255));
- return M;
- };
- }
- ());
- eb = {};
- (function () {
- var L,
- La,
- Z,
- Ia;
- function g(m) {
- if (!(this instanceof g))
- return new g(m);
- for (var O = 0, M = La.length; O < M; O++)
- this[La[O]] = "";
- this.bufferCheckPosition = eb.MAX_BUFFER_LENGTH;
- this.q = this.c = this.p = "";
- this.opt = m || {};
- this.closed = this.closedRoot = this.sawRoot = !1;
- this.tag = this.error = null;
- this.state = Z.BEGIN;
- this.stack = new L();
- this.index = this.position = this.column = 0;
- this.line = 1;
- this.slashed = !1;
- this.unicodeI = 0;
- this.unicodeS = null;
- r(this, "onready");
- }
- function r(g, O, M) {
- if (g[O])
- g[O](M);
- }
- function m(g, O) {
- var M,
- w;
- M = g.opt;
- w = g.textNode;
- M.trim && (w = w.trim());
- M.normalize && (w = w.replace(/\s+/g, " "));
- g.textNode = w;
- g.textNode && r(g, O ? O : "onvalue", g.textNode);
- g.textNode = "";
- }
- function t(g, O) {
- m(g);
- O += "\nLine: " + g.line + "\nColumn: " + g.column + "\nChar: " + g.c;
- O = Error(O);
- g.error = O;
- r(g, "onerror", O);
- return g;
- }
- function x(Va) {
- Va.state !== Z.VALUE && t(Va, "Unexpected end");
- m(Va);
- Va.c = "";
- Va.closed = !0;
- r(Va, "onend");
- g.call(Va, Va.opt);
- return Va;
- }
- L = Array;
- eb.parser = function (r) {
- return new g(r);
- };
- eb.CParser = g;
- eb.MAX_BUFFER_LENGTH = 65536;
- eb.DEBUG = !1;
- eb.INFO = !1;
- eb.EVENTS = "value string key openobject closeobject openarray closearray error end ready".split(" ");
- La = ["textNode", "numberNode"];
- eb.EVENTS.filter(function (g) {
- return "error" !== g && "end" !== g;
- });
- Z = 0;
- eb.STATE = {
- BEGIN: Z++,
- VALUE: Z++,
- OPEN_OBJECT: Z++,
- CLOSE_OBJECT: Z++,
- OPEN_ARRAY: Z++,
- CLOSE_ARRAY: Z++,
- TEXT_ESCAPE: Z++,
- STRING: Z++,
- BACKSLASH: Z++,
- END: Z++,
- OPEN_KEY: Z++,
- CLOSE_KEY: Z++,
- TRUE: Z++,
- TRUE2: Z++,
- TRUE3: Z++,
- FALSE: Z++,
- FALSE2: Z++,
- FALSE3: Z++,
- FALSE4: Z++,
- NULL: Z++,
- NULL2: Z++,
- NULL3: Z++,
- NUMBER_DECIMAL_POINT: Z++,
- NUMBER_DIGIT: Z++
- };
- for (var ab in eb.STATE)
- eb.STATE[eb.STATE[ab]] = ab;
- Z = eb.STATE;
- Object.getPrototypeOf || (Object.getPrototypeOf = function (g) {
- return g.__proto__;
- });
- Ia = /[\\"\n]/g;
- g.prototype = {
- end: function () {
- x(this);
- },
- write: function (g) {
- var w,
- y,
- F;
- if (this.error)
- throw this.error;
- if (this.closed)
- return t(this, "Cannot write after close. Assign an onready handler.");
- if (null === g)
- return x(this);
- for (var O = g[0], M; O; ) {
- M = O;
- this.c = O = g.charAt(this.index++);
- M !== O ? this.p = M : M = this.p;
- if (!O)
- break;
- this.position++;
- "\n" === O ? (this.line++, this.column = 0) : this.column++;
- switch (this.state) {
- case Z.BEGIN:
- "{" === O ? this.state = Z.OPEN_OBJECT : "[" === O ? this.state = Z.OPEN_ARRAY : "\r" !== O && "\n" !== O && " " !== O && "\t" !== O && t(this, "Non-whitespace before {[.");
- continue;
- case Z.OPEN_KEY:
- case Z.OPEN_OBJECT:
- if ("\r" === O || "\n" === O || " " === O || "\t" === O)
- continue;
- if (this.state === Z.OPEN_KEY)
- this.stack.push(Z.CLOSE_KEY);
- else if ("}" === O) {
- r(this, "onopenobject");
- r(this, "oncloseobject");
- this.state = this.stack.pop() || Z.VALUE;
- continue;
- } else
- this.stack.push(Z.CLOSE_OBJECT);
- '"' === O ? this.state = Z.STRING : t(this, 'Malformed object key should start with "');
- continue;
- case Z.CLOSE_KEY:
- case Z.CLOSE_OBJECT:
- if ("\r" === O || "\n" === O || " " === O || "\t" === O)
- continue;
- ":" === O ? (this.state === Z.CLOSE_OBJECT ? (this.stack.push(Z.CLOSE_OBJECT), m(this, "onopenobject")) : m(this, "onkey"), this.state = Z.VALUE) : "}" === O ? (m(this), r(this, "oncloseobject", void 0), this.state = this.stack.pop() || Z.VALUE) : "," === O ? (this.state === Z.CLOSE_OBJECT && this.stack.push(Z.CLOSE_OBJECT), m(this), this.state = Z.OPEN_KEY) : t(this, "Bad object");
- continue;
- case Z.OPEN_ARRAY:
- case Z.VALUE:
- if ("\r" === O || "\n" === O || " " === O || "\t" === O)
- continue;
- if (this.state === Z.OPEN_ARRAY)
- if (r(this, "onopenarray"), this.state = Z.VALUE, "]" === O) {
- r(this, "onclosearray");
- this.state = this.stack.pop() || Z.VALUE;
- continue;
- } else
- this.stack.push(Z.CLOSE_ARRAY);
- '"' === O ? this.state = Z.STRING : "{" === O ? this.state = Z.OPEN_OBJECT : "[" === O ? this.state = Z.OPEN_ARRAY : "t" === O ? this.state = Z.TRUE : "f" === O ? this.state = Z.FALSE : "n" === O ? this.state = Z.NULL : "-" === O ? this.numberNode += O : "0" === O ? (this.numberNode += O, this.state = Z.NUMBER_DIGIT) : -1 !== "123456789".indexOf(O) ? (this.numberNode += O, this.state = Z.NUMBER_DIGIT) : t(this, "Bad value");
- continue;
- case Z.CLOSE_ARRAY:
- if ("," === O)
- this.stack.push(Z.CLOSE_ARRAY), m(this, "onvalue"), this.state = Z.VALUE;
- else if ("]" === O)
- m(this), r(this, "onclosearray", void 0), this.state = this.stack.pop() || Z.VALUE;
- else if ("\r" === O || "\n" === O || " " === O || "\t" === O)
- continue;
- else
- t(this, "Bad array");
- continue;
- case Z.STRING:
- M = this.index - 1;
- w = this.slashed,
- y = this.unicodeI;
- a: for (; ; ) {
- if (eb.DEBUG)
- for (; 0 < y; )
- if (this.unicodeS += O, O = g.charAt(this.index++), 4 === y ? (this.textNode += String.fromCharCode(parseInt(this.unicodeS, 16)), y = 0, M = this.index - 1) : y++, !O)
- break a;
- if ('"' === O && !w) {
- this.state = this.stack.pop() || Z.VALUE;
- (this.textNode += g.substring(M, this.index - 1)) || r(this, "onvalue", "");
- break;
- }
- if ("\\" === O && !w && (w = !0, this.textNode += g.substring(M, this.index - 1), O = g.charAt(this.index++), !O))
- break;
- if (w)
- if (w = !1, "n" === O ? this.textNode += "\n" : "r" === O ? this.textNode += "\r" : "t" === O ? this.textNode += "\t" : "f" === O ? this.textNode += "\f" : "b" === O ? this.textNode += "\b" : "u" === O ? (y = 1, this.unicodeS = "") : this.textNode += O, O = g.charAt(this.index++), M = this.index - 1, O)
- continue;
- else
- break;
- Ia.lastIndex = this.index;
- F = Ia.exec(g);
- if (null === F) {
- this.index = g.length + 1;
- this.textNode += g.substring(M, this.index - 1);
- break;
- }
- this.index = F.index + 1;
- O = g.charAt(F.index);
- if (!O) {
- this.textNode += g.substring(M, this.index - 1);
- break;
- }
- }
- this.slashed = w;
- this.unicodeI = y;
- continue;
- case Z.TRUE:
- if ("" === O)
- continue;
- "r" === O ? this.state = Z.TRUE2 : t(this, "Invalid true started with t" + O);
- continue;
- case Z.TRUE2:
- if ("" === O)
- continue;
- "u" === O ? this.state = Z.TRUE3 : t(this, "Invalid true started with tr" + O);
- continue;
- case Z.TRUE3:
- if ("" === O)
- continue;
- "e" === O ? (r(this, "onvalue", !0), this.state = this.stack.pop() || Z.VALUE) : t(this, "Invalid true started with tru" + O);
- continue;
- case Z.FALSE:
- if ("" === O)
- continue;
- "a" === O ? this.state = Z.FALSE2 : t(this, "Invalid false started with f" + O);
- continue;
- case Z.FALSE2:
- if ("" === O)
- continue;
- "l" === O ? this.state = Z.FALSE3 : t(this, "Invalid false started with fa" + O);
- continue;
- case Z.FALSE3:
- if ("" === O)
- continue;
- "s" === O ? this.state = Z.FALSE4 : t(this, "Invalid false started with fal" + O);
- continue;
- case Z.FALSE4:
- if ("" === O)
- continue;
- "e" === O ? (r(this, "onvalue", !1), this.state = this.stack.pop() || Z.VALUE) : t(this, "Invalid false started with fals" + O);
- continue;
- case Z.NULL:
- if ("" === O)
- continue;
- "u" === O ? this.state = Z.NULL2 : t(this, "Invalid null started with n" + O);
- continue;
- case Z.NULL2:
- if ("" === O)
- continue;
- "l" === O ? this.state = Z.NULL3 : t(this, "Invalid null started with nu" + O);
- continue;
- case Z.NULL3:
- if ("" === O)
- continue;
- "l" === O ? (r(this, "onvalue", null), this.state = this.stack.pop() || Z.VALUE) : t(this, "Invalid null started with nul" + O);
- continue;
- case Z.NUMBER_DECIMAL_POINT:
- "." === O ? (this.numberNode += O, this.state = Z.NUMBER_DIGIT) : t(this, "Leading zero not followed by .");
- continue;
- case Z.NUMBER_DIGIT:
- -1 !== "0123456789".indexOf(O) ? this.numberNode += O : "." === O ? (-1 !== this.numberNode.indexOf(".") && t(this, "Invalid number has two dots"), this.numberNode += O) : "e" === O || "E" === O ? (-1 === this.numberNode.indexOf("e") && -1 === this.numberNode.indexOf("E") || t(this, "Invalid number has two exponential"), this.numberNode += O) : "+" === O || "-" === O ? ("e" !== M && "E" !== M && t(this, "Invalid symbol in number"), this.numberNode += O) : (this.numberNode && r(this, "onvalue", parseFloat(this.numberNode)), this.numberNode = "", this.index--, this.state = this.stack.pop() || Z.VALUE);
- continue;
- default:
- t(this, "Unknown state: " + this.state);
- }
- }
- if (this.position >= this.bufferCheckPosition) {
- g = Math.max(eb.MAX_BUFFER_LENGTH, 10);
- M = O = 0;
- for (w = La.length; M < w; M++) {
- y = this[La[M]].length;
- if (y > g)
- switch (La[M]) {
- case "text":
- break;
- default:
- t(this, "Max buffer length exceeded: " + La[M]);
- }
- O = Math.max(O, y);
- }
- this.bufferCheckPosition = eb.MAX_BUFFER_LENGTH - O + this.position;
- }
- return this;
- },
- resume: function () {
- this.error = null;
- return this;
- },
- close: function () {
- return this.write(null);
- }
- };
- }
- ());
- (function () {
- var t;
- function g(g, r) {
- r || (r = g.length);
- return g.reduce(function (g, m, Z) {
- return Z < r ? g + String.fromCharCode(m) : g;
- }, "");
- }
- for (var r = {}, m = 0; 256 > m; ++m) {
- t = g([m]);
- r[t] = m;
- }
- for (var x = Object.keys(r).length, L = [], m = 0; 256 > m; ++m)
- L[m] = [m];
- Ed = function (m, Z) {
- var v,
- E;
- function t(g, v) {
- var E;
- for (; 0 < v; ) {
- if (y >= w.length)
- return !1;
- if (v > F) {
- E = g;
- E = E >>> v - F;
- w[y] |= E & 255;
- v -= F;
- F = 8;
- ++y;
- } else
- v <= F && (E = g, E <<= F - v, E &= 255, E >>>= 8 - F, w[y] |= E & 255, F -= v, v = 0, 0 == F && (F = 8, ++y));
- }
- return !0;
- }
- for (var Ia in r)
- Z[Ia] = r[Ia];
- for (var Va = x, O = [], M = 8, w = new Uint8Array(m.length), y = 0, F = 8, I = 0; I < m.length; ++I) {
- v = m[I];
- O.push(v);
- Ia = g(O);
- E = Z[Ia];
- if (!E) {
- O = g(O, O.length - 1);
- if (!t(Z[O], M))
- return null;
- 0 != Va >> M && ++M;
- Z[Ia] = Va++;
- O = [v];
- }
- }
- return 0 < O.length && (Ia = g(O), E = Z[Ia], !t(E, M)) ? null : w.subarray(0, 8 > F ? y + 1 : y);
- };
- Fd = function (g) {
- var I,
- v,
- F,
- t;
- for (var r = L.slice(), m = 0, t = 0, x = 8, O = new Uint8Array(Math.ceil(1.5 * g.length)), M = 0, w, y = []; m < g.length && !(8 * (g.length - m) - t < x); ) {
- for (var F = w = 0; F < x; ) {
- I = Math.min(x - F, 8 - t);
- v = g[m];
- v = v << t;
- v = v & 255;
- v = v >>> 8 - I;
- F = F + I;
- t = t + I;
- 8 == t && (t = 0, ++m);
- w |= (v & 255) << x - F;
- }
- F = r[w];
- 0 == y.length ? ++x : (F ? y.push(F[0]) : y.push(y[0]), r[r.length] = y, y = [], r.length == 1 << x && ++x, F || (F = r[w]));
- w = M + F.length;
- w >= O.length && (I = new Uint8Array(Math.ceil(1.5 * w)), I.set(O), O = I);
- O.set(F, M);
- M = w;
- y = y.concat(F);
- }
- return O.subarray(0, M);
- };
- }
- ());
- (function () {
- var g,
- r,
- t;
- Ma = "utf-8";
- Na = 9007199254740992;
- g = Sb = {
- GZIP: "GZIP",
- LZW: "LZW"
- };
- Object.freeze(Sb);
- Gd = function (r) {
- for (var m = [g.GZIP, g.LZW], t = 0; t < m.length && 0 < r.length; ++t)
- for (var x = m[t], Z = 0; Z < r.length; ++Z)
- if (r[Z] == x)
- return x;
- return null;
- };
- r = Ac = {
- AES_CBC_PKCS5Padding: "AES/CBC/PKCS5Padding",
- AESWrap: "AESWrap",
- RSA_ECB_PKCS1Padding: "RSA/ECB/PKCS1Padding"
- };
- Object.freeze(Ac);
- Hd = function (g) {
- return r.AES_CBC_PKCS5Padding == g ? r.AES_CBC_PKCS5Padding : r.RSA_ECB_PKCS1Padding == g ? r.RSA_ECB_PKCS1Padding : r[g];
- };
- t = Id = {
- HmacSHA256: "HmacSHA256",
- SHA256withRSA: "SHA256withRSA"
- };
- Object.freeze(Id);
- Yc = function (g) {
- return t[g];
- };
- m = {
- FAIL: 1,
- TRANSIENT_FAILURE: 2,
- ENTITY_REAUTH: 3,
- USER_REAUTH: 4,
- KEYX_REQUIRED: 5,
- ENTITYDATA_REAUTH: 6,
- USERDATA_REAUTH: 7,
- EXPIRED: 8,
- REPLAYED: 9,
- SSOTOKEN_REJECTED: 10
- };
- Object.freeze(m);
- }
- ());
- oa = {
- isObjectLiteral: function (g) {
- return null !== g && "object" === typeof g && g.constructor === Object;
- },
- extendDeep: function () {
- var g,
- r,
- m,
- t,
- x,
- L,
- S,
- Z;
- g = arguments[0];
- r = 1;
- m = arguments.length;
- t = !1;
- "boolean" === typeof g && (t = g, g = arguments[1], r = 2);
- for (; r < m; r++)
- if (null != (x = arguments[r]))
- for (L in x)
- t && L in g || (Z = x[L], g !== Z && Z !== Y && (S = g[L], g[L] = null !== S && null !== Z && "object" === typeof S && "object" === typeof Z ? oa.extendDeep(t, {}, S, Z) : Z));
- return g;
- }
- };
- (function () {
- var Y,
- Z;
- function g(g, r) {
- return function () {
- var m,
- O;
- m = g.base;
- g.base = r;
- O = g.apply(this, arguments);
- g.base = m;
- return O;
- };
- }
- function r(r, m, t) {
- var O,
- M,
- w,
- y;
- t = t || Z;
- y = !!t.extendAll;
- for (O in m)
- M = m.__lookupGetter__(O), w = m.__lookupSetter__(O), M || w ? (M && r.__defineGetter__(O, M), w && r.__defineSetter__(O, w)) : (M = m[O], w = r[O], "function" === typeof M && "function" === typeof w && M !== w ? (M.base !== Function.prototype.base && (M = g(M, w)), M.base = w) : (y || t[O]) && oa.isObjectLiteral(M) && oa.isObjectLiteral(w) && (M = oa.extendDeep({}, w, M)), r[O] = M);
- }
- function m() {
- var g,
- r;
- g = Array.prototype.slice;
- r = g.call(arguments, 1);
- return this.extend({
- init: function O() {
- var M;
- M = g.call(arguments, 0);
- O.base.apply(this, r.concat(M));
- }
- });
- }
- function t(g, m) {
- var Z;
- Z = new this(Y);
- r(Z, g, m);
- return L(Z);
- }
- function x(g, m) {
- r(this.prototype, g, m);
- return this;
- }
- function L(g) {
- var r;
- r = function () {
- var g;
- g = this.init;
- g && arguments[0] !== Y && g.apply(this, arguments);
- };
- g && (r.prototype = g);
- r.prototype.constructor = r;
- r.extend = t;
- r.bind = m;
- r.mixin = x;
- return r;
- }
- Y = {};
- Z = {
- actions: !0
- };
- Function.prototype.base = function () {};
- oa.Class = {
- create: L,
- mixin: r,
- extend: function (g, r) {
- var m;
- m = L();
- m.prototype = new g();
- return m.extend(r);
- }
- };
- oa.mixin = function () {
- oa.log && oa.log.warn("util.mixin is deprecated. Please change your code to use util.Class.mixin()");
- r.apply(null, arguments);
- };
- }
- ());
- (function () {
- var Y,
- Z,
- ab;
- function g(g, r) {
- return function () {
- var m,
- M;
- m = g.base;
- g.base = r;
- M = g.apply(this, arguments);
- g.base = m;
- return M;
- };
- }
- function r(r, m, O) {
- var M,
- w,
- y,
- F;
- O = O || Z;
- F = !!O.extendAll;
- for (M in m)
- w = m.__lookupGetter__(M), y = m.__lookupSetter__(M), w || y ? (w && r.__defineGetter__(M, w), y && r.__defineSetter__(M, y)) : (w = m[M], y = r[M], "function" === typeof w && "function" === typeof y && w !== y ? (w.base !== ab && (w = g(w, y)), w.base = y) : (F || O[M]) && oa.isObjectLiteral(w) && oa.isObjectLiteral(y) && (w = oa.extendDeep({}, y, w)), r[M] = w);
- }
- function m() {
- var g,
- r;
- g = Array.prototype.slice;
- r = g.call(arguments, 1);
- return this.extend({
- init: function M() {
- var w;
- w = g.call(arguments, 0);
- M.base.apply(this, r.concat(w));
- }
- });
- }
- function t(g, m) {
- var O;
- O = new this(Y);
- r(O, g, m);
- return L(O);
- }
- function x(g, m) {
- r(this.prototype, g, m);
- return this;
- }
- function L(g) {
- var r;
- r = function () {
- var g;
- g = this.init;
- g && arguments[0] !== Y && g.apply(this, arguments);
- };
- g && (r.prototype = g);
- r.prototype.constructor = r;
- r.extend = t;
- r.bind = m;
- r.mixin = x;
- return r;
- }
- Y = {};
- Z = {
- actions: !0
- };
- ab = function () {};
- Function.prototype.base = ab;
- oa.Class = {
- create: L,
- mixin: r,
- extend: function (g, r) {
- var m;
- m = L();
- m.prototype = new g();
- return m.extend(r);
- }
- };
- oa.mixin = function () {
- oa.log && oa.log.warn("util.mixin is deprecated. Please change your code to use util.Class.mixin()");
- r.apply(null, arguments);
- };
- }
- ());
- (function () {
- function g(g) {
- return g == Na ? 1 : g + 1;
- }
- function r(r) {
- if (0 === Object.keys(r._waiters).length)
- return 0;
- for (var m = g(r._nextWaiter); !r._waiters[m]; )
- m = g(m);
- return m;
- }
- oc = oa.Class.create({
- init: function () {
- Object.defineProperties(this, {
- _queue: {
- value: [],
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- _waiters: {
- value: {},
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- _nextWaiter: {
- value: 0,
- writable: !0,
- enumerable: !1,
- configurable: !1
- },
- _lastWaiter: {
- value: 0,
- writable: !0,
- enumerable: !1,
- configurable: !1
- }
- });
- },
- cancel: function (g) {
- var m;
- if (this._waiters[g]) {
- m = this._waiters[g];
- delete this._waiters[g];
- g == this._nextWaiter && (this._nextWaiter = r(this));
- m.call(this, Y);
- }
- },
- cancelAll: function () {
- for (; 0 !== this._nextWaiter; )
- this.cancel(this._nextWaiter);
- },
- poll: function (m, t) {
- var L,
- Y;
- L = this;
- Y = g(this._lastWaiter);
- this._lastWaiter = Y;
- x(t, function () {
- var g,
- Z;
- if (0 < this._queue.length) {
- g = this._queue.shift();
- setTimeout(function () {
- t.result(g);
- }, 0);
- } else {
- -1 != m && (Z = setTimeout(function () {
- delete L._waiters[Y];
- Y == L._nextWaiter && (L._nextWaiter = r(L));
- t.timeout();
- }, m));
- this._waiters[Y] = function (g) {
- clearTimeout(Z);
- setTimeout(function () {
- t.result(g);
- }, 0);
- };
- this._nextWaiter || (this._nextWaiter = Y);
- }
- }, L);
- return Y;
- },
- add: function (g) {
- var m;
- if (this._nextWaiter) {
- m = this._waiters[this._nextWaiter];
- delete this._waiters[this._nextWaiter];
- this._nextWaiter = r(this);
- m.call(this, g);
- } else
- this._queue.push(g);
- }
- });
- }
- ());
- (function () {
- var g;
- g = 0 - Na;
- Jd = oa.Class.create({
- nextBoolean: function () {
- var g;
- g = new Uint8Array(1);
- Ib.getRandomValues(g);
- return g[0] & 1 ? !0 : !1;
- },
- nextInt: function (g) {
- var r;
- if (null !== g && g !== Y) {
- if ("number" !== typeof g)
- throw new TypeError("n must be of type number");
- if (1 > g)
- throw new RangeError("n must be greater than zero");
- --g;
- r = new Uint8Array(4);
- Ib.getRandomValues(r);
- return Math.floor(((r[3] & 127) << 24 | r[2] << 16 | r[1] << 8 | r[0]) / 2147483648 * (g - 0 + 1) + 0);
- }
- g = new Uint8Array(4);
- Ib.getRandomValues(g);
- r = (g[3] & 127) << 24 | g[2] << 16 | g[1] << 8 | g[0];
- return g[3] & 128 ? -r : r;
- },
- nextLong: function () {
- var m,
- r;
- for (var r = g; r == g; ) {
- r = new Uint8Array(7);
- Ib.getRandomValues(r);
- m = 16777216 * ((r[6] & 31) << 24 | r[5] << 16 | r[4] << 8 | r[3]) + (r[2] << 16 | r[1] << 8 | r[0]);
- r = r[6] & 128 ? -m - 1 : m;
- }
- return r;
- },
- nextBytes: function (g) {
- Ib.getRandomValues(g);
- }
- });
- }
- ());
- (function () {
- function g(g) {
- return g == Na ? 1 : g + 1;
- }
- function r(r) {
- if (0 === Object.keys(r._waitingReaders).length)
- return 0;
- for (var m = g(r._nextReader); !r._waitingReaders[m]; )
- m = g(m);
- return m;
- }
- function m(r) {
- if (0 === Object.keys(r._waitingWriters).length)
- return 0;
- for (var m = g(r._nextWriter); !r._waitingWriters[m]; )
- m = g(m);
- return m;
- }
- Zc = oa.Class.create({
- init: function () {
- Object.defineProperties(this, {
- _readers: {
- value: {},
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- _waitingReaders: {
- value: {},
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- _writer: {
- value: null,
- writable: !0,
- enumerable: !1,
- configurable: !1
- },
- _waitingWriters: {
- value: {},
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- _nextReader: {
- value: 0,
- writable: !0,
- enumerable: !1,
- configurable: !1
- },
- _nextWriter: {
- value: 0,
- writable: !0,
- enumerable: !1,
- configurable: !1
- },
- _lastNumber: {
- value: 0,
- writable: !0,
- enumerable: !1,
- configurable: !1
- }
- });
- },
- cancel: function (g) {
- var t;
- if (this._waitingReaders[g]) {
- t = this._waitingReaders[g];
- delete this._waitingReaders[g];
- g == this._nextReader && (this._nextReader = r(this));
- t.call(this, !0);
- }
- this._waitingWriters[g] && (t = this._waitingWriters[g], delete this._waitingWriters[g], g == this._nextWriter && (this._nextWriter = m(this)), t.call(this, !0));
- },
- cancelAll: function () {
- for (; 0 !== this._nextWriter; )
- this.cancel(this._nextWriter);
- for (; 0 !== this._nextReader; )
- this.cancel(this._nextReader);
- },
- readLock: function (m, t) {
- var L,
- S;
- L = this;
- S = g(this._lastNumber);
- this._lastNumber = S;
- x(t, function () {
- var g;
- if (!this._writer && 0 === Object.keys(this._waitingWriters).length)
- return this._readers[S] = !0, S;
- -1 != m && (g = setTimeout(function () {
- delete L._waitingReaders[S];
- S == L._nextReader && (L._nextReader = r(L));
- t.timeout();
- }, m));
- this._waitingReaders[S] = function (r) {
- clearTimeout(g);
- r ? setTimeout(function () {
- t.result(Y);
- }, 0) : (L._readers[S] = !0, setTimeout(function () {
- t.result(S);
- }, 0));
- };
- this._nextReader || (this._nextReader = S);
- }, L);
- return S;
- },
- writeLock: function (r, t) {
- var L,
- S;
- L = this;
- S = g(this._lastNumber);
- this._lastNumber = S;
- x(t, function () {
- var g;
- if (0 === Object.keys(this._readers).length && 0 === Object.keys(this._waitingReaders).length && !this._writer)
- return this._writer = S;
- -1 != r && (g = setTimeout(function () {
- delete L._waitingWriters[S];
- S == L._nextWriter && (L._nextWriter = m(L));
- t.timeout();
- }, r));
- this._waitingWriters[S] = function (r) {
- clearTimeout(g);
- r ? setTimeout(function () {
- t.result(Y);
- }, 0) : (L._writer = S, setTimeout(function () {
- t.result(S);
- }, 0));
- };
- this._nextWriter || (this._nextWriter = S);
- }, L);
- return S;
- },
- unlock: function (r) {
- if (r == this._writer)
- this._writer = null;
- else {
- if (!this._readers[r])
- throw new fa("There is no reader or writer with ticket number " + r + ".");
- delete this._readers[r];
- }
- if (this._nextWriter)
- 0 < Object.keys(this._readers).length || (r = this._waitingWriters[this._nextWriter], delete this._waitingWriters[this._nextWriter], this._nextWriter = m(this), r.call(this, !1));
- else {
- for (var t = this._nextReader; 0 < Object.keys(this._waitingReaders).length; t = g(t))
- this._waitingReaders[t] && (r = this._waitingReaders[t], delete this._waitingReaders[t], r.call(this, !1));
- this._nextReader = 0;
- }
- }
- });
- }
- ());
- oa.Class.mixin(g, {
- JSON_PARSE_ERROR: new g(0, m.FAIL, "Error parsing JSON."),
- JSON_ENCODE_ERROR: new g(1, m.FAIL, "Error encoding JSON."),
- ENVELOPE_HASH_MISMATCH: new g(2, m.FAIL, "Computed hash does not match envelope hash."),
- INVALID_PUBLIC_KEY: new g(3, m.FAIL, "Invalid public key provided."),
- INVALID_PRIVATE_KEY: new g(4, m.FAIL, "Invalid private key provided."),
- PLAINTEXT_ILLEGAL_BLOCK_SIZE: new g(5, m.FAIL, "Plaintext is not a multiple of the block size."),
- PLAINTEXT_BAD_PADDING: new g(6, m.FAIL, "Plaintext contains incorrect padding."),
- CIPHERTEXT_ILLEGAL_BLOCK_SIZE: new g(7, m.FAIL, "Ciphertext is not a multiple of the block size."),
- CIPHERTEXT_BAD_PADDING: new g(8, m.FAIL, "Ciphertext contains incorrect padding."),
- ENCRYPT_NOT_SUPPORTED: new g(9, m.FAIL, "Encryption not supported."),
- DECRYPT_NOT_SUPPORTED: new g(10, m.FAIL, "Decryption not supported."),
- ENVELOPE_KEY_ID_MISMATCH: new g(11, m.FAIL, "Encryption envelope key ID does not match crypto context key ID."),
- CIPHERTEXT_ENVELOPE_PARSE_ERROR: new g(12, m.FAIL, "Error parsing ciphertext envelope."),
- CIPHERTEXT_ENVELOPE_ENCODE_ERROR: new g(13, m.FAIL, "Error encoding ciphertext envelope."),
- SIGN_NOT_SUPPORTED: new g(14, m.FAIL, "Sign not supported."),
- VERIFY_NOT_SUPPORTED: new g(15, m.FAIL, "Verify not suppoprted."),
- SIGNATURE_ERROR: new g(16, m.FAIL, "Signature not initialized or unable to process data/signature."),
- HMAC_ERROR: new g(17, m.FAIL, "Error computing HMAC."),
- ENCRYPT_ERROR: new g(18, m.FAIL, "Error encrypting plaintext."),
- DECRYPT_ERROR: new g(19, m.FAIL, "Error decrypting ciphertext."),
- INSUFFICIENT_CIPHERTEXT: new g(20, m.FAIL, "Insufficient ciphertext for decryption."),
- SESSION_KEY_CREATION_FAILURE: new g(21, m.FAIL, "Error when creating session keys."),
- ASN1_PARSE_ERROR: new g(22, m.FAIL, "Error parsing ASN.1."),
- ASN1_ENCODE_ERROR: new g(23, m.FAIL, "Error encoding ASN.1."),
- INVALID_SYMMETRIC_KEY: new g(24, m.FAIL, "Invalid symmetric key provided."),
- INVALID_ENCRYPTION_KEY: new g(25, m.FAIL, "Invalid encryption key."),
- INVALID_HMAC_KEY: new g(26, m.FAIL, "Invalid HMAC key."),
- WRAP_NOT_SUPPORTED: new g(27, m.FAIL, "Wrap not supported."),
- UNWRAP_NOT_SUPPORTED: new g(28, m.FAIL, "Unwrap not supported."),
- UNIDENTIFIED_JWK_TYPE: new g(29, m.FAIL, "Unidentified JSON web key type."),
- UNIDENTIFIED_JWK_USAGE: new g(30, m.FAIL, "Unidentified JSON web key usage."),
- UNIDENTIFIED_JWK_ALGORITHM: new g(31, m.FAIL, "Unidentified JSON web key algorithm."),
- WRAP_ERROR: new g(32, m.FAIL, "Error wrapping plaintext."),
- UNWRAP_ERROR: new g(33, m.FAIL, "Error unwrapping ciphertext."),
- INVALID_JWK: new g(34, m.FAIL, "Invalid JSON web key."),
- INVALID_JWK_KEYDATA: new g(35, m.FAIL, "Invalid JSON web key keydata."),
- UNSUPPORTED_JWK_ALGORITHM: new g(36, m.FAIL, "Unsupported JSON web key algorithm."),
- WRAP_KEY_CREATION_FAILURE: new g(37, m.FAIL, "Error when creating wrapping key."),
- INVALID_WRAP_CIPHERTEXT: new g(38, m.FAIL, "Invalid wrap ciphertext."),
- UNSUPPORTED_JWE_ALGORITHM: new g(39, m.FAIL, "Unsupported JSON web encryption algorithm."),
- JWE_ENCODE_ERROR: new g(40, m.FAIL, "Error encoding JSON web encryption header."),
- JWE_PARSE_ERROR: new g(41, m.FAIL, "Error parsing JSON web encryption header."),
- INVALID_ALGORITHM_PARAMS: new g(42, m.FAIL, "Invalid algorithm parameters."),
- JWE_ALGORITHM_MISMATCH: new g(43, m.FAIL, "JSON web encryption header algorithms mismatch."),
- KEY_IMPORT_ERROR: new g(44, m.FAIL, "Error importing key."),
- KEY_EXPORT_ERROR: new g(45, m.FAIL, "Error exporting key."),
- DIGEST_ERROR: new g(46, m.FAIL, "Error in digest."),
- UNSUPPORTED_KEY: new g(47, m.FAIL, "Unsupported key type or algorithm."),
- UNSUPPORTED_JWE_SERIALIZATION: new g(48, m.FAIL, "Unsupported JSON web encryption serialization."),
- XML_PARSE_ERROR: new g(49, m.FAIL, "Error parsing XML."),
- XML_ENCODE_ERROR: new g(50, m.FAIL, "Error encoding XML."),
- INVALID_WRAPPING_KEY: new g(51, m.FAIL, "Invalid wrapping key."),
- UNIDENTIFIED_CIPHERTEXT_ENVELOPE: new g(52, m.FAIL, "Unidentified ciphertext envelope version."),
- UNIDENTIFIED_SIGNATURE_ENVELOPE: new g(53, m.FAIL, "Unidentified signature envelope version."),
- UNSUPPORTED_CIPHERTEXT_ENVELOPE: new g(54, m.FAIL, "Unsupported ciphertext envelope version."),
- UNSUPPORTED_SIGNATURE_ENVELOPE: new g(55, m.FAIL, "Unsupported signature envelope version."),
- UNIDENTIFIED_CIPHERSPEC: new g(56, m.FAIL, "Unidentified cipher specification."),
- UNIDENTIFIED_ALGORITHM: new g(57, m.FAIL, "Unidentified algorithm."),
- SIGNATURE_ENVELOPE_PARSE_ERROR: new g(58, m.FAIL, "Error parsing signature envelope."),
- SIGNATURE_ENVELOPE_ENCODE_ERROR: new g(59, m.FAIL, "Error encoding signature envelope."),
- INVALID_SIGNATURE: new g(60, m.FAIL, "Invalid signature."),
- WRAPKEY_FINGERPRINT_NOTSUPPORTED: new g(61, m.FAIL, "Wrap key fingerprint not supported"),
- UNIDENTIFIED_JWK_KEYOP: new g(62, m.FAIL, "Unidentified JSON web key key operation."),
- MASTERTOKEN_UNTRUSTED: new g(1E3, m.ENTITY_REAUTH, "Master token is not trusted."),
- MASTERTOKEN_KEY_CREATION_ERROR: new g(1001, m.ENTITY_REAUTH, "Unable to construct symmetric keys from master token."),
- MASTERTOKEN_EXPIRES_BEFORE_RENEWAL: new g(1002, m.ENTITY_REAUTH, "Master token expiration timestamp is before the renewal window opens."),
- MASTERTOKEN_SESSIONDATA_MISSING: new g(1003, m.ENTITY_REAUTH, "No master token session data found."),
- MASTERTOKEN_SEQUENCE_NUMBER_OUT_OF_RANGE: new g(1004, m.ENTITY_REAUTH, "Master token sequence number is out of range."),
- MASTERTOKEN_SERIAL_NUMBER_OUT_OF_RANGE: new g(1005, m.ENTITY_REAUTH, "Master token serial number is out of range."),
- MASTERTOKEN_TOKENDATA_INVALID: new g(1006, m.ENTITY_REAUTH, "Invalid master token data."),
- MASTERTOKEN_SIGNATURE_INVALID: new g(1007, m.ENTITY_REAUTH, "Invalid master token signature."),
- MASTERTOKEN_SESSIONDATA_INVALID: new g(1008, m.ENTITY_REAUTH, "Invalid master token session data."),
- MASTERTOKEN_SEQUENCE_NUMBER_OUT_OF_SYNC: new g(1009, m.ENTITY_REAUTH, "Master token sequence number does not have the expected value."),
- MASTERTOKEN_TOKENDATA_MISSING: new g(1010, m.ENTITY_REAUTH, "No master token data found."),
- MASTERTOKEN_TOKENDATA_PARSE_ERROR: new g(1011, m.ENTITY_REAUTH, "Error parsing master token data."),
- MASTERTOKEN_SESSIONDATA_PARSE_ERROR: new g(1012, m.ENTITY_REAUTH, "Error parsing master token session data."),
- MASTERTOKEN_IDENTITY_REVOKED: new g(1013, m.ENTITY_REAUTH, "Master token entity identity is revoked."),
- MASTERTOKEN_REJECTED_BY_APP: new g(1014, m.ENTITY_REAUTH, "Master token is rejected by the application."),
- USERIDTOKEN_MASTERTOKEN_MISMATCH: new g(2E3, m.USER_REAUTH, "User ID token master token serial number does not match master token serial number."),
- USERIDTOKEN_NOT_DECRYPTED: new g(2001, m.USER_REAUTH, "User ID token is not decrypted or verified."),
- USERIDTOKEN_MASTERTOKEN_NULL: new g(2002, m.USER_REAUTH, "User ID token requires a master token."),
- USERIDTOKEN_EXPIRES_BEFORE_RENEWAL: new g(2003, m.USER_REAUTH, "User ID token expiration timestamp is before the renewal window opens."),
- USERIDTOKEN_USERDATA_MISSING: new g(2004, m.USER_REAUTH, "No user ID token user data found."),
- USERIDTOKEN_MASTERTOKEN_NOT_FOUND: new g(2005, m.USER_REAUTH, "User ID token is bound to an unknown master token."),
- USERIDTOKEN_MASTERTOKEN_SERIAL_NUMBER_OUT_OF_RANGE: new g(2006, m.USER_REAUTH, "User ID token master token serial number is out of range."),
- USERIDTOKEN_SERIAL_NUMBER_OUT_OF_RANGE: new g(2007, m.USER_REAUTH, "User ID token serial number is out of range."),
- USERIDTOKEN_TOKENDATA_INVALID: new g(2008, m.USER_REAUTH, "Invalid user ID token data."),
- USERIDTOKEN_SIGNATURE_INVALID: new g(2009, m.USER_REAUTH, "Invalid user ID token signature."),
- USERIDTOKEN_USERDATA_INVALID: new g(2010, m.USER_REAUTH, "Invalid user ID token user data."),
- USERIDTOKEN_IDENTITY_INVALID: new g(2011, m.USER_REAUTH, "Invalid user ID token user identity."),
- RESERVED_2012: new g(2012, m.USER_REAUTH, "The entity is not associated with the user."),
- USERIDTOKEN_IDENTITY_NOT_FOUND: new g(2013, m.USER_REAUTH, "The user identity was not found."),
- USERIDTOKEN_PASSWORD_VERSION_CHANGED: new g(2014, m.USER_REAUTH, "The user identity must be reauthenticated because the password version changed."),
- USERIDTOKEN_USERAUTH_DATA_MISMATCH: new g(2015, m.USER_REAUTH, "The user ID token and user authentication data user identities do not match."),
- USERIDTOKEN_TOKENDATA_MISSING: new g(2016, m.USER_REAUTH, "No user ID token data found."),
- USERIDTOKEN_TOKENDATA_PARSE_ERROR: new g(2017, m.USER_REAUTH, "Error parsing user ID token data."),
- USERIDTOKEN_USERDATA_PARSE_ERROR: new g(2018, m.USER_REAUTH, "Error parsing user ID token user data."),
- USERIDTOKEN_REVOKED: new g(2019, m.USER_REAUTH, "User ID token is revoked."),
- USERIDTOKEN_REJECTED_BY_APP: new g(2020, m.USER_REAUTH, "User ID token is rejected by the application."),
- SERVICETOKEN_MASTERTOKEN_MISMATCH: new g(3E3, m.FAIL, "Service token master token serial number does not match master token serial number."),
- SERVICETOKEN_USERIDTOKEN_MISMATCH: new g(3001, m.FAIL, "Service token user ID token serial number does not match user ID token serial number."),
- SERVICETOKEN_SERVICEDATA_INVALID: new g(3002, m.FAIL, "Service token data invalid."),
- SERVICETOKEN_MASTERTOKEN_NOT_FOUND: new g(3003, m.FAIL, "Service token is bound to an unknown master token."),
- SERVICETOKEN_USERIDTOKEN_NOT_FOUND: new g(3004, m.FAIL, "Service token is bound to an unknown user ID token."),
- SERVICETOKEN_MASTERTOKEN_SERIAL_NUMBER_OUT_OF_RANGE: new g(3005, m.FAIL, "Service token master token serial number is out of range."),
- SERVICETOKEN_USERIDTOKEN_SERIAL_NUMBER_OUT_OF_RANGE: new g(3006, m.FAIL, "Service token user ID token serial number is out of range."),
- SERVICETOKEN_TOKENDATA_INVALID: new g(3007, m.FAIL, "Invalid service token data."),
- SERVICETOKEN_SIGNATURE_INVALID: new g(3008, m.FAIL, "Invalid service token signature."),
- SERVICETOKEN_TOKENDATA_MISSING: new g(3009, m.FAIL, "No service token data found."),
- UNIDENTIFIED_ENTITYAUTH_SCHEME: new g(4E3, m.FAIL, "Unable to identify entity authentication scheme."),
- ENTITYAUTH_FACTORY_NOT_FOUND: new g(4001, m.FAIL, "No factory registered for entity authentication scheme."),
- X509CERT_PARSE_ERROR: new g(4002, m.ENTITYDATA_REAUTH, "Error parsing X.509 certificate data."),
- X509CERT_ENCODE_ERROR: new g(4003, m.ENTITYDATA_REAUTH, "Error encoding X.509 certificate data."),
- X509CERT_VERIFICATION_FAILED: new g(4004, m.ENTITYDATA_REAUTH, "X.509 certificate verification failed."),
- ENTITY_NOT_FOUND: new g(4005, m.FAIL, "Entity not recognized."),
- INCORRECT_ENTITYAUTH_DATA: new g(4006, m.FAIL, "Entity used incorrect entity authentication data type."),
- RSA_PUBLICKEY_NOT_FOUND: new g(4007, m.ENTITYDATA_REAUTH, "RSA public key not found."),
- NPTICKET_GRACE_PERIOD_EXCEEDED: new g(4008, m.ENTITYDATA_REAUTH, "Fake NP-Tickets cannot be used after the grace period when the Playstation Network is up."),
- NPTICKET_SERVICE_ID_MISSING: new g(4009, m.ENTITYDATA_REAUTH, "NP-Ticket service ID is missing."),
- NPTICKET_SERVICE_ID_DISALLOWED: new g(4010, m.ENTITYDATA_REAUTH, "NP-Ticket service ID is not allowed."),
- NPTICKET_NOT_YET_VALID: new g(4011, m.ENTITYDATA_REAUTH, "NP-Ticket issuance date is in the future."),
- NPTICKET_EXPIRED: new g(4012, m.ENTITYDATA_REAUTH, "NP-Ticket has expired."),
- NPTICKET_PRIVATE_KEY_NOT_FOUND: new g(4013, m.ENTITYDATA_REAUTH, "No private key found for NP-Ticket GUID."),
- NPTICKET_COOKIE_VERIFICATION_FAILED: new g(4014, m.ENTITYDATA_REAUTH, "NP-Ticket cookie signature verification failed."),
- NPTICKET_INCORRECT_COOKIE_VERSION: new g(4015, m.ENTITYDATA_REAUTH, "Incorrect NP-Ticket cookie version."),
- NPTICKET_BROKEN: new g(4016, m.ENTITYDATA_REAUTH, "NP-Ticket broken."),
- NPTICKET_VERIFICATION_FAILED: new g(4017, m.ENTITYDATA_REAUTH, "NP-Ticket signature verification failed."),
- NPTICKET_ERROR: new g(4018, m.ENTITYDATA_REAUTH, "Unknown NP-Ticket TCM error."),
- NPTICKET_CIPHER_INFO_NOT_FOUND: new g(4019, m.ENTITYDATA_REAUTH, "No cipher information found for NP-Ticket."),
- NPTICKET_INVALID_CIPHER_INFO: new g(4020, m.ENTITYDATA_REAUTH, "Cipher information for NP-Ticket is invalid."),
- NPTICKET_UNSUPPORTED_VERSION: new g(4021, m.ENTITYDATA_REAUTH, "Unsupported NP-Ticket version."),
- NPTICKET_INCORRECT_KEY_LENGTH: new g(4022, m.ENTITYDATA_REAUTH, "Incorrect NP-Ticket public key length."),
- UNSUPPORTED_ENTITYAUTH_DATA: new g(4023, m.FAIL, "Unsupported entity authentication data."),
- CRYPTEX_RSA_KEY_SET_NOT_FOUND: new g(4024, m.FAIL, "Cryptex RSA key set not found."),
- ENTITY_REVOKED: new g(4025, m.FAIL, "Entity is revoked."),
- ENTITY_REJECTED_BY_APP: new g(4026, m.ENTITYDATA_REAUTH, "Entity is rejected by the application."),
- FORCE_LOGIN: new g(5E3, m.USERDATA_REAUTH, "User must login again."),
- NETFLIXID_COOKIES_EXPIRED: new g(5001, m.USERDATA_REAUTH, "Netflix ID cookie identity has expired."),
- NETFLIXID_COOKIES_BLANK: new g(5002, m.USERDATA_REAUTH, "Netflix ID or Secure Netflix ID cookie is blank."),
- UNIDENTIFIED_USERAUTH_SCHEME: new g(5003, m.FAIL, "Unable to identify user authentication scheme."),
- USERAUTH_FACTORY_NOT_FOUND: new g(5004, m.FAIL, "No factory registered for user authentication scheme."),
- EMAILPASSWORD_BLANK: new g(5005, m.USERDATA_REAUTH, "Email or password is blank."),
- AUTHMGR_COMMS_FAILURE: new g(5006, m.TRANSIENT_FAILURE, "Error communicating with authentication manager."),
- EMAILPASSWORD_INCORRECT: new g(5007, m.USERDATA_REAUTH, "Email or password is incorrect."),
- UNSUPPORTED_USERAUTH_DATA: new g(5008, m.FAIL, "Unsupported user authentication data."),
- SSOTOKEN_BLANK: new g(5009, m.SSOTOKEN_REJECTED, "SSO token is blank."),
- SSOTOKEN_NOT_ASSOCIATED: new g(5010, m.USERDATA_REAUTH, "SSO token is not associated with a Netflix user."),
- USERAUTH_USERIDTOKEN_INVALID: new g(5011, m.USERDATA_REAUTH, "User authentication data user ID token is invalid."),
- PROFILEID_BLANK: new g(5012, m.USERDATA_REAUTH, "Profile ID is blank."),
- UNIDENTIFIED_USERAUTH_MECHANISM: new g(5013, m.FAIL, "Unable to identify user authentication mechanism."),
- UNSUPPORTED_USERAUTH_MECHANISM: new g(5014, m.FAIL, "Unsupported user authentication mechanism."),
- SSOTOKEN_INVALID: new g(5015, m.SSOTOKEN_REJECTED, "SSO token invalid."),
- USERAUTH_MASTERTOKEN_MISSING: new g(5016, m.USERDATA_REAUTH, "User authentication required master token is missing."),
- ACCTMGR_COMMS_FAILURE: new g(5017, m.TRANSIENT_FAILURE, "Error communicating with the account manager."),
- SSO_ASSOCIATION_FAILURE: new g(5018, m.TRANSIENT_FAILURE, "SSO user association failed."),
- SSO_DISASSOCIATION_FAILURE: new g(5019, m.TRANSIENT_FAILURE, "SSO user disassociation failed."),
- MDX_USERAUTH_VERIFICATION_FAILED: new g(5020, m.USERDATA_REAUTH, "MDX user authentication data verification failed."),
- USERAUTH_USERIDTOKEN_NOT_DECRYPTED: new g(5021, m.USERDATA_REAUTH, "User authentication data user ID token is not decrypted or verified."),
- MDX_USERAUTH_ACTION_INVALID: new g(5022, m.USERDATA_REAUTH, "MDX user authentication data action is invalid."),
- CTICKET_DECRYPT_ERROR: new g(5023, m.USERDATA_REAUTH, "CTicket decryption failed."),
- USERAUTH_MASTERTOKEN_INVALID: new g(5024, m.USERDATA_REAUTH, "User authentication data master token is invalid."),
- USERAUTH_MASTERTOKEN_NOT_DECRYPTED: new g(5025, m.USERDATA_REAUTH, "User authentication data master token is not decrypted or verified."),
- CTICKET_CRYPTOCONTEXT_ERROR: new g(5026, m.USERDATA_REAUTH, "Error creating CTicket crypto context."),
- MDX_PIN_BLANK: new g(5027, m.USERDATA_REAUTH, "MDX controller or target PIN is blank."),
- MDX_PIN_MISMATCH: new g(5028, m.USERDATA_REAUTH, "MDX controller and target PIN mismatch."),
- MDX_USER_UNKNOWN: new g(5029, m.USERDATA_REAUTH, "MDX controller user ID token or CTicket is not decrypted or verified."),
- USERAUTH_USERIDTOKEN_MISSING: new g(5030, m.USERDATA_REAUTH, "User authentication required user ID token is missing."),
- MDX_CONTROLLERDATA_INVALID: new g(5031, m.USERDATA_REAUTH, "MDX controller authentication data is invalid."),
- USERAUTH_ENTITY_MISMATCH: new g(5032, m.USERDATA_REAUTH, "User authentication data does not match entity identity."),
- USERAUTH_INCORRECT_DATA: new g(5033, m.FAIL, "Entity used incorrect key request data type"),
- SSO_ASSOCIATION_WITH_NONMEMBER: new g(5034, m.USERDATA_REAUTH, "SSO user association failed because the customer is not a member."),
- SSO_ASSOCIATION_WITH_FORMERMEMBER: new g(5035, m.USERDATA_REAUTH, "SSO user association failed because the customer is a former member."),
- SSO_ASSOCIATION_CONFLICT: new g(5036, m.USERDATA_REAUTH, "SSO user association failed because the token identifies a different member."),
- USER_REJECTED_BY_APP: new g(5037, m.USERDATA_REAUTH, "User is rejected by the application."),
- PROFILE_SWITCH_DISALLOWED: new g(5038, m.TRANSIENT_FAILURE, "Unable to switch user profile."),
- MEMBERSHIPCLIENT_COMMS_FAILURE: new g(5039, m.TRANSIENT_FAILURE, "Error communicating with the membership manager."),
- USERIDTOKEN_IDENTITY_NOT_ASSOCIATED_WITH_ENTITY: new g(5040, m.USER_REAUTH, "The entity is not associated with the user."),
- UNSUPPORTED_COMPRESSION: new g(6E3, m.FAIL, "Unsupported compression algorithm."),
- COMPRESSION_ERROR: new g(6001, m.FAIL, "Error compressing data."),
- UNCOMPRESSION_ERROR: new g(6002, m.FAIL, "Error uncompressing data."),
- MESSAGE_ENTITY_NOT_FOUND: new g(6003, m.FAIL, "Message header entity authentication data or master token not found."),
- PAYLOAD_MESSAGE_ID_MISMATCH: new g(6004, m.FAIL, "Payload chunk message ID does not match header message ID ."),
- PAYLOAD_SEQUENCE_NUMBER_MISMATCH: new g(6005, m.FAIL, "Payload chunk sequence number does not match expected sequence number."),
- PAYLOAD_VERIFICATION_FAILED: new g(6006, m.FAIL, "Payload chunk payload signature verification failed."),
- MESSAGE_DATA_MISSING: new g(6007, m.FAIL, "No message data found."),
- MESSAGE_FORMAT_ERROR: new g(6008, m.FAIL, "Malformed message data."),
- MESSAGE_VERIFICATION_FAILED: new g(6009, m.FAIL, "Message header/error data signature verification failed."),
- HEADER_DATA_MISSING: new g(6010, m.FAIL, "No header data found."),
- PAYLOAD_DATA_MISSING: new g(6011, m.FAIL, "No payload data found in non-EOM payload chunk."),
- PAYLOAD_DATA_CORRUPT: new g(6012, m.FAIL, "Corrupt payload data found in non-EOM payload chunk."),
- UNIDENTIFIED_COMPRESSION: new g(6013, m.FAIL, "Unidentified compression algorithm."),
- MESSAGE_EXPIRED: new g(6014, m.EXPIRED, "Message expired and not renewable. Rejected."),
- MESSAGE_ID_OUT_OF_RANGE: new g(6015, m.FAIL, "Message ID is out of range."),
- INTERNAL_CODE_NEGATIVE: new g(6016, m.FAIL, "Error header internal code is negative."),
- UNEXPECTED_RESPONSE_MESSAGE_ID: new g(6017, m.FAIL, "Unexpected response message ID. Possible replay."),
- RESPONSE_REQUIRES_ENCRYPTION: new g(6018, m.KEYX_REQUIRED, "Message response requires encryption."),
- PAYLOAD_SEQUENCE_NUMBER_OUT_OF_RANGE: new g(6019, m.FAIL, "Payload chunk sequence number is out of range."),
- PAYLOAD_MESSAGE_ID_OUT_OF_RANGE: new g(6020, m.FAIL, "Payload chunk message ID is out of range."),
- MESSAGE_REPLAYED: new g(6021, m.REPLAYED, "Non-replayable message replayed."),
- INCOMPLETE_NONREPLAYABLE_MESSAGE: new g(6022, m.FAIL, "Non-replayable message sent non-renewable or without key request data or without a master token."),
- HEADER_SIGNATURE_INVALID: new g(6023, m.FAIL, "Invalid Header signature."),
- HEADER_DATA_INVALID: new g(6024, m.FAIL, "Invalid header data."),
- PAYLOAD_INVALID: new g(6025, m.FAIL, "Invalid payload."),
- PAYLOAD_SIGNATURE_INVALID: new g(6026, m.FAIL, "Invalid payload signature."),
- RESPONSE_REQUIRES_MASTERTOKEN: new g(6027, m.KEYX_REQUIRED, "Message response requires a master token."),
- RESPONSE_REQUIRES_USERIDTOKEN: new g(6028, m.USER_REAUTH, "Message response requires a user ID token."),
- REQUEST_REQUIRES_USERAUTHDATA: new g(6029, m.FAIL, "User-associated message requires user authentication data."),
- UNEXPECTED_MESSAGE_SENDER: new g(6030, m.FAIL, "Message sender is equal to the local entity or not the master token entity."),
- NONREPLAYABLE_MESSAGE_REQUIRES_MASTERTOKEN: new g(6031, m.FAIL, "Non-replayable message requires a master token."),
- NONREPLAYABLE_ID_OUT_OF_RANGE: new g(6032, m.FAIL, "Non-replayable message non-replayable ID is out of range."),
- MESSAGE_SERVICETOKEN_MISMATCH: new g(6033, m.FAIL, "Service token master token or user ID token serial number does not match the message token serial numbers."),
- MESSAGE_PEER_SERVICETOKEN_MISMATCH: new g(6034, m.FAIL, "Peer service token master token or user ID token serial number does not match the message peer token serial numbers."),
- RESPONSE_REQUIRES_INTEGRITY_PROTECTION: new g(6035, m.KEYX_REQUIRED, "Message response requires integrity protection."),
- HANDSHAKE_DATA_MISSING: new g(6036, m.FAIL, "Handshake message is not renewable or does not contain key request data."),
- MESSAGE_RECIPIENT_MISMATCH: new g(6037, m.FAIL, "Message recipient does not match local identity."),
- UNIDENTIFIED_KEYX_SCHEME: new g(7E3, m.FAIL, "Unable to identify key exchange scheme."),
- KEYX_FACTORY_NOT_FOUND: new g(7001, m.FAIL, "No factory registered for key exchange scheme."),
- KEYX_REQUEST_NOT_FOUND: new g(7002, m.FAIL, "No key request found matching header key response data."),
- UNIDENTIFIED_KEYX_KEY_ID: new g(7003, m.FAIL, "Unable to identify key exchange key ID."),
- UNSUPPORTED_KEYX_KEY_ID: new g(7004, m.FAIL, "Unsupported key exchange key ID."),
- UNIDENTIFIED_KEYX_MECHANISM: new g(7005, m.FAIL, "Unable to identify key exchange mechanism."),
- UNSUPPORTED_KEYX_MECHANISM: new g(7006, m.FAIL, "Unsupported key exchange mechanism."),
- KEYX_RESPONSE_REQUEST_MISMATCH: new g(7007, m.FAIL, "Key exchange response does not match request."),
- KEYX_PRIVATE_KEY_MISSING: new g(7008, m.FAIL, "Key exchange private key missing."),
- UNKNOWN_KEYX_PARAMETERS_ID: new g(7009, m.FAIL, "Key exchange parameters ID unknown or invalid."),
- KEYX_MASTER_TOKEN_MISSING: new g(7010, m.FAIL, "Master token required for key exchange is missing."),
- KEYX_INVALID_PUBLIC_KEY: new g(7011, m.FAIL, "Key exchange public key is invalid."),
- KEYX_PUBLIC_KEY_MISSING: new g(7012, m.FAIL, "Key exchange public key missing."),
- KEYX_WRAPPING_KEY_MISSING: new g(7013, m.FAIL, "Key exchange wrapping key missing."),
- KEYX_WRAPPING_KEY_ID_MISSING: new g(7014, m.FAIL, "Key exchange wrapping key ID missing."),
- KEYX_INVALID_WRAPPING_KEY: new g(7015, m.FAIL, "Key exchange wrapping key is invalid."),
- KEYX_INCORRECT_DATA: new g(7016, m.FAIL, "Entity used incorrect wrapping key data type"),
- CRYPTEX_ENCRYPTION_ERROR: new g(8E3, m.FAIL, "Error encrypting data with cryptex."),
- CRYPTEX_DECRYPTION_ERROR: new g(8001, m.FAIL, "Error decrypting data with cryptex."),
- CRYPTEX_MAC_ERROR: new g(8002, m.FAIL, "Error computing MAC with cryptex."),
- CRYPTEX_VERIFY_ERROR: new g(8003, m.FAIL, "Error verifying MAC with cryptex."),
- CRYPTEX_CONTEXT_CREATION_FAILURE: new g(8004, m.FAIL, "Error creating cryptex cipher or MAC context."),
- DATAMODEL_DEVICE_ACCESS_ERROR: new g(8005, m.TRANSIENT_FAILURE, "Error accessing data model device."),
- DATAMODEL_DEVICETYPE_NOT_FOUND: new g(8006, m.FAIL, "Data model device type not found."),
- CRYPTEX_KEYSET_UNSUPPORTED: new g(8007, m.FAIL, "Cryptex key set not supported."),
- CRYPTEX_PRIVILEGE_EXCEPTION: new g(8008, m.FAIL, "Insufficient privileges for cryptex operation."),
- CRYPTEX_WRAP_ERROR: new g(8009, m.FAIL, "Error wrapping data with cryptex."),
- CRYPTEX_UNWRAP_ERROR: new g(8010, m.FAIL, "Error unwrapping data with cryptex."),
- CRYPTEX_COMMS_FAILURE: new g(8011, m.TRANSIENT_FAILURE, "Error comunicating with cryptex."),
- CRYPTEX_SIGN_ERROR: new g(8012, m.FAIL, "Error computing signature with cryptex."),
- INTERNAL_EXCEPTION: new g(9E3, m.TRANSIENT_FAILURE, "Internal exception."),
- MSL_COMMS_FAILURE: new g(9001, m.FAIL, "Error communicating with MSL entity."),
- NONE: new g(9999, m.FAIL, "Special unit test error.")
- });
- Object.freeze(g);
- (function () {
- L = oa.Class.create(Error());
- L.mixin({
- init: function (g, r, m) {
- var x,
- S,
- fa;
- function t() {
- return S ? S : this.cause && this.cause instanceof L ? this.cause.messageId : Y;
- }
- Error.captureStackTrace && Error.captureStackTrace(this, this.constructor);
- x = g.message;
- r && (x += " [" + r + "]");
- fa = this.stack;
- Object.defineProperties(this, {
- message: {
- value: x,
- writable: !1,
- configurable: !0
- },
- error: {
- value: g,
- writable: !1,
- configurable: !0
- },
- cause: {
- value: m,
- writable: !1,
- configurable: !0
- },
- name: {
- value: "MslException",
- writable: !1,
- configurable: !0
- },
- masterToken: {
- value: null,
- writable: !0,
- configurable: !1
- },
- entityAuthenticationData: {
- value: null,
- writable: !0,
- configurable: !1
- },
- userIdToken: {
- value: null,
- writable: !0,
- configurable: !1
- },
- userAuthenticationData: {
- value: null,
- writable: !0,
- configurable: !1
- },
- messageId: {
- get: t,
- set: function (g) {
- if (0 > g || g > Na)
- throw new RangeError("Message ID " + g + " is outside the valid range.");
- t() || (S = g);
- },
- configurable: !0
- },
- stack: {
- get: function () {
- var g;
- g = this.toString();
- fa && (g += "\n" + fa);
- m && m.stack && (g += "\nCaused by " + m.stack);
- return g;
- },
- configurable: !0
- }
- });
- },
- setEntity: function (g) {
- !g || this.masterToken || this.entityAuthenticationData || (g instanceof lb ? this.masterToken = g : g instanceof Tb && (this.entityAuthenticationData = g));
- return this;
- },
- setUser: function (g) {
- !g || this.userIdToken || this.userAuthenticationData || (g instanceof hc ? this.userIdToken = g : g instanceof Kb && (this.userAuthenticationData = g));
- return this;
- },
- setMessageId: function (g) {
- this.messageId = g;
- return this;
- },
- toString: function () {
- return this.name + ": " + this.message;
- }
- });
- }
- ());
- S = L.extend({
- init: function Tc(g, r, m) {
- Tc.base.call(this, g, r, m);
- Object.defineProperties(this, {
- name: {
- value: "MslCryptoException",
- writable: !1,
- configurable: !0
- }
- });
- }
- });
- la = L.extend({
- init: function sb(g, r, m) {
- sb.base.call(this, g, r, m);
- Object.defineProperties(this, {
- name: {
- value: "MslEncodingException",
- writable: !1,
- configurable: !0
- }
- });
- }
- });
- Bb = L.extend({
- init: function $a(g, r, m) {
- $a.base.call(this, g, r, m);
- Object.defineProperties(this, {
- name: {
- value: "MslEntityAuthException",
- writable: !1,
- configurable: !0
- }
- });
- }
- });
- (function () {
- nb = oa.Class.create(Error());
- nb.mixin({
- init: function (g, r, m) {
- var t;
- Error.captureStackTrace && Error.captureStackTrace(this, this.constructor);
- t = this.stack;
- Object.defineProperties(this, {
- message: {
- value: g,
- writable: !1,
- configurable: !1
- },
- cause: {
- value: r,
- writable: !1,
- configurable: !1
- },
- requestCause: {
- value: m,
- writable: !1,
- configurable: !1
- },
- name: {
- value: "MslErrorResponseException",
- writable: !1,
- configurable: !0
- },
- stack: {
- get: function () {
- var g;
- g = this.toString();
- t && (g += "\n" + t);
- r && r.stack && (g += "\nCaused by " + r.stack);
- return g;
- },
- configurable: !0
- }
- });
- },
- toString: function () {
- return this.name + ": " + this.message;
- }
- });
- }
- ());
- (function () {
- db = oa.Class.create(Error());
- db.mixin({
- init: function (g, r) {
- var m;
- Error.captureStackTrace && Error.captureStackTrace(this, this.constructor);
- m = this.stack;
- Object.defineProperties(this, {
- message: {
- value: g,
- writable: !1,
- configurable: !1
- },
- cause: {
- value: r,
- writable: !1,
- configurable: !1
- },
- name: {
- value: "MslIoException",
- writable: !1,
- configurable: !0
- },
- stack: {
- get: function () {
- var g;
- g = this.toString();
- m && (g += "\n" + m);
- r && r.stack && (g += "\nCaused by " + r.stack);
- return g;
- },
- configurable: !0
- }
- });
- },
- toString: function () {
- return this.name + ": " + this.message;
- }
- });
- }
- ());
- (function () {
- fa = oa.Class.create(Error());
- fa.mixin({
- init: function (g, r) {
- var m;
- Error.captureStackTrace && Error.captureStackTrace(this, this.constructor);
- m = this.stack;
- Object.defineProperties(this, {
- message: {
- value: g,
- writable: !1,
- configurable: !1
- },
- cause: {
- value: r,
- writable: !1,
- configurable: !1
- },
- name: {
- value: "MslInternalException",
- writable: !1,
- configurable: !0
- },
- stack: {
- get: function () {
- var g;
- g = this.toString();
- m && (g += "\n" + m);
- r && r.stack && (g += "\nCaused by " + r.stack);
- return g;
- },
- configurable: !0
- }
- });
- },
- toString: function () {
- return this.name + ": " + this.message;
- }
- });
- }
- ());
- (function () {
- fb = oa.Class.create(Error());
- fb.mixin({
- init: function (g, r) {
- var m;
- Error.captureStackTrace && Error.captureStackTrace(this, this.constructor);
- m = this.stack;
- Object.defineProperties(this, {
- message: {
- value: g,
- writable: !1,
- configurable: !1
- },
- cause: {
- value: r,
- writable: !1,
- configurable: !1
- },
- name: {
- value: "MslInterruptedException",
- writable: !1,
- configurable: !0
- },
- stack: {
- get: function () {
- var g;
- g = this.toString();
- m && (g += "\n" + m);
- r && r.stack && (g += "\nCaused by " + r.stack);
- return g;
- },
- configurable: !0
- }
- });
- },
- toString: function () {
- return this.name + ": " + this.message;
- }
- });
- }
- ());
- Ta = L.extend({
- init: function zb(g, r, m) {
- zb.base.call(this, g, r, m);
- Object.defineProperties(this, {
- name: {
- value: "MslKeyExchangeException",
- writable: !1,
- configurable: !0
- }
- });
- }
- });
- Ub = L.extend({
- init: function Uc(g, r) {
- Uc.base.call(this, g);
- Object.defineProperties(this, {
- masterToken: {
- value: r,
- writable: !1,
- configurable: !1
- },
- name: {
- value: "MslMasterTokenException",
- writable: !1,
- configurable: !0
- }
- });
- }
- });
- Fa = L.extend({
- init: function La(g, r, m) {
- La.base.call(this, g, r, m);
- Object.defineProperties(this, {
- name: {
- value: "MslMessageException",
- writable: !1,
- configurable: !0
- }
- });
- }
- });
- Ca = L.extend({
- init: function Z(g, r, m) {
- Z.base.call(this, g, r, m);
- Object.defineProperties(this, {
- name: {
- value: "MslUserAuthException",
- writable: !1,
- configurable: !0
- }
- });
- }
- });
- (function () {
- var O;
- function g(g) {
- return "undefined" === typeof g ? !1 : g;
- }
- function r(g) {
- return g && g.length ? (ib === O.V2014_02 && (g = g.map(function (g) {
- return "wrap" == g ? "wrapKey" : "unwrap" == g ? "unwrapKey" : g;
- })), g) : ib === O.V2014_02 ? "encrypt decrypt sign verify deriveKey wrapKey unwrapKey".split(" ") : "encrypt decrypt sign verify deriveKey wrap unwrap".split(" ");
- }
- function m(g, w, r, m, I) {
- return Promise.resolve().then(function () {
- return Ya.importKey(g, w, r, m, I);
- })["catch"](function (v) {
- var E;
- if ("spki" !== g && "pkcs8" !== g)
- throw v;
- v = ASN1.webCryptoAlgorithmToJwkAlg(r);
- E = ASN1.webCryptoUsageToJwkKeyOps(I);
- v = ASN1.rsaDerToJwk(w, v, E, m);
- if (!v)
- throw Error("Could not make valid JWK from DER input");
- v = JSON.stringify(v);
- return Ya.importKey("jwk", dc(v), r, m, I);
- });
- }
- function x(g, w) {
- return Promise.resolve().then(function () {
- return Ya.exportKey(g, w);
- })["catch"](function (r) {
- if ("spki" !== g && "pkcs8" !== g)
- throw r;
- return Ya.exportKey("jwk", w).then(function (g) {
- g = JSON.parse(cc(new Uint8Array(g)));
- g = ASN1.jwkToRsaDer(g);
- if (!g)
- throw Error("Could not make valid DER from JWK input");
- return g.getDer().buffer;
- });
- });
- }
- O = Bc = {
- LEGACY: 1,
- V2014_01: 2,
- V2014_02: 3,
- LATEST: 3
- };
- Object.freeze(Bc);
- ib = O.LATEST;
- Ka = {
- encrypt: function (g, w, r) {
- switch (ib) {
- case O.LEGACY:
- return new Promise(function (y, m) {
- var v;
- v = Ya.encrypt(g, w, r);
- v.oncomplete = function (g) {
- y(g.target.result);
- };
- v.onerror = function (g) {
- m(g);
- };
- });
- case O.V2014_01:
- case O.V2014_02:
- return Ya.encrypt(g, w, r).then(function (g) {
- return new Uint8Array(g);
- });
- default:
- throw Error("Unsupported Web Crypto version " + WEB_CRYPTO_VERSION + ".");
- }
- },
- decrypt: function (g, w, r) {
- switch (ib) {
- case O.LEGACY:
- return new Promise(function (y, m) {
- var v;
- v = Ya.decrypt(g, w, r);
- v.oncomplete = function (g) {
- y(g.target.result);
- };
- v.onerror = function (g) {
- m(g);
- };
- });
- case O.V2014_01:
- case O.V2014_02:
- return Ya.decrypt(g, w, r).then(function (g) {
- return new Uint8Array(g);
- });
- default:
- throw Error("Unsupported Web Crypto version " + WEB_CRYPTO_VERSION + ".");
- }
- },
- sign: function (g, w, r) {
- switch (ib) {
- case O.LEGACY:
- return new Promise(function (y, m) {
- var v;
- v = Ya.sign(g, w, r);
- v.oncomplete = function (g) {
- y(g.target.result);
- };
- v.onerror = function (g) {
- m(g);
- };
- });
- case O.V2014_01:
- case O.V2014_02:
- return Ya.sign(g, w, r).then(function (g) {
- return new Uint8Array(g);
- });
- default:
- throw Error("Unsupported Web Crypto version " + WEB_CRYPTO_VERSION + ".");
- }
- },
- verify: function (g, w, r, m) {
- switch (ib) {
- case O.LEGACY:
- return new Promise(function (y, v) {
- var E;
- E = Ya.verify(g, w, r, m);
- E.oncomplete = function (g) {
- y(g.target.result);
- };
- E.onerror = function (g) {
- v(g);
- };
- });
- case O.V2014_01:
- case O.V2014_02:
- return Ya.verify(g, w, r, m);
- default:
- throw Error("Unsupported Web Crypto version " + WEB_CRYPTO_VERSION + ".");
- }
- },
- digest: function (g, w) {
- switch (ib) {
- case O.LEGACY:
- return new Promise(function (r, m) {
- var y;
- y = Ya.digest(g, w);
- y.oncomplete = function (g) {
- r(g.target.result);
- };
- y.onerror = function (g) {
- m(g);
- };
- });
- case O.V2014_01:
- case O.V2014_02:
- return Ya.digest(g, w).then(function (g) {
- return new Uint8Array(g);
- });
- default:
- throw Error("Unsupported Web Crypto version " + WEB_CRYPTO_VERSION + ".");
- }
- },
- generateKey: function (m, w, y) {
- var M,
- I;
- M = g(w);
- I = r(y);
- switch (ib) {
- case O.LEGACY:
- return new Promise(function (g, r) {
- var v;
- v = Ya.generateKey(m, M, I);
- v.oncomplete = function (v) {
- g(v.target.result);
- };
- v.onerror = function (g) {
- r(g);
- };
- });
- case O.V2014_01:
- case O.V2014_02:
- return Ya.generateKey(m, M, I);
- default:
- throw Error("Unsupported Web Crypto version " + WEB_CRYPTO_VERSION + ".");
- }
- },
- deriveKey: function (m, w, y, F, I) {
- var v,
- E;
- v = g(F);
- E = r(I);
- switch (ib) {
- case O.LEGACY:
- return new Promise(function (g, r) {
- var I;
- I = Ya.deriveKey(m, w, y, v, E);
- I.oncomplete = function (v) {
- g(v.target.result);
- };
- I.onerror = function (g) {
- r(g);
- };
- });
- case O.V2014_01:
- case O.V2014_02:
- return Ya.deriveKey(m, w, y, v, E);
- default:
- throw Error("Unsupported Web Crypto version " + WEB_CRYPTO_VERSION + ".");
- }
- },
- importKey: function (M, w, y, F, I) {
- var v,
- E;
- v = g(F);
- E = r(I);
- switch (ib) {
- case O.LEGACY:
- return new Promise(function (g, r) {
- var m;
- m = Ya.importKey(M, w, y, v, E);
- m.oncomplete = function (v) {
- g(v.target.result);
- };
- m.onerror = function (g) {
- r(g);
- };
- });
- case O.V2014_01:
- case O.V2014_02:
- return m(M, w, y, v, E);
- default:
- throw Error("Unsupported Web Crypto version " + WEB_CRYPTO_VERSION + ".");
- }
- },
- exportKey: function (g, r) {
- switch (ib) {
- case O.LEGACY:
- return new Promise(function (w, m) {
- var y;
- y = Ya.exportKey(g, r);
- y.oncomplete = function (g) {
- w(g.target.result);
- };
- y.onerror = function (g) {
- m(g);
- };
- });
- case O.V2014_01:
- case O.V2014_02:
- return x(g, r).then(function (g) {
- return new Uint8Array(g);
- });
- default:
- throw Error("Unsupported Web Crypto version " + WEB_CRYPTO_VERSION + ".");
- }
- },
- wrapKey: function (g, r, y, m) {
- switch (ib) {
- case O.LEGACY:
- return new Promise(function (g, v) {
- var w;
- w = Ya.wrapKey(r, y, m);
- w.oncomplete = function (v) {
- g(v.target.result);
- };
- w.onerror = function (g) {
- v(g);
- };
- });
- case O.V2014_01:
- case O.V2014_02:
- return Ya.wrapKey(g, r, y, m).then(function (g) {
- return new Uint8Array(g);
- });
- default:
- throw Error("Unsupported Web Crypto version " + WEB_CRYPTO_VERSION + ".");
- }
- },
- unwrapKey: function (m, w, y, F, I, v, E) {
- switch (ib) {
- case O.LEGACY:
- return new Promise(function (g, v) {
- var r;
- r = Ya.unwrapKey(w, I, y);
- r.oncomplete = function (v) {
- g(v.target.result);
- };
- r.onerror = function (g) {
- v(g);
- };
- });
- case O.V2014_01:
- case O.V2014_02:
- return Ya.unwrapKey(m, w, y, F, I, g(v), r(E));
- default:
- throw Error("Unsupported Web Crypto version " + WEB_CRYPTO_VERSION + ".");
- }
- }
- };
- zc && zc.getKeyByName && (Ka.getKeyByName = function (g) {
- switch (ib) {
- case O.LEGACY:
- return new Promise(function (r, m) {
- var w;
- w = zc.getKeyByName(g);
- w.oncomplete = function (g) {
- r(g.target.result);
- };
- w.onerror = function (g) {
- m(g);
- };
- });
- case O.V2014_01:
- case O.V2014_02:
- return zc.getKeyByName(g);
- default:
- throw Error("Unsupported Web Crypto version " + WEB_CRYPTO_VERSION + ".");
- }
- });
- t.netflix = t.netflix || {};
- t.netflix.crypto = Ka;
- }
- ());
- Cb = {
- name: "AES-KW"
- };
- tb = {
- name: "AES-CBC"
- };
- ub = {
- name: "HMAC",
- hash: {
- name: "SHA-256"
- }
- };
- Cc = {
- name: "RSA-OAEP",
- hash: {
- name: "SHA-1"
- }
- };
- $c = {
- name: "RSAES-PKCS1-v1_5"
- };
- Kd = {
- name: "RSASSA-PKCS1-v1_5",
- hash: {
- name: "SHA-256"
- }
- };
- Lb = ["encrypt", "decrypt"];
- Mb = ["wrap", "unwrap"];
- Vb = ["sign", "verify"];
- (function () {
- ad = oa.Class.create({
- init: function (m, t, x) {
- var O;
- function Z(g) {
- r(t, function () {
- var r;
- r = g ? sa(g) : Y;
- Object.defineProperties(O, {
- rawKey: {
- value: m,
- writable: !1,
- configurable: !1
- },
- keyData: {
- value: g,
- writable: !1,
- configurable: !1
- },
- keyDataB64: {
- value: r,
- writable: !1,
- configurable: !1
- }
- });
- return this;
- }, O);
- }
- O = this;
- r(t, function () {
- if (!m || "object" != typeof m)
- throw new S(g.INVALID_SYMMETRIC_KEY);
- !x && m.extractable ? Ka.exportKey("raw", m).then(function (g) {
- Z(new Uint8Array(g));
- }, function (r) {
- t.error(new S(g.KEY_EXPORT_ERROR, "raw"));
- }) : Z(x);
- }, O);
- },
- size: function () {
- return this.keyData.length;
- },
- toByteArray: function () {
- return this.keyData;
- },
- toBase64: function () {
- return this.keyDataB64;
- }
- });
- fc = function (g, r) {
- new ad(g, r);
- };
- Db = function (m, t, x, L) {
- r(L, function () {
- try {
- m = "string" == typeof m ? xa(m) : m;
- } catch (O) {
- throw new S(g.INVALID_SYMMETRIC_KEY, "keydata " + m, O);
- }
- Ka.importKey("raw", m, t, !0, x).then(function (g) {
- new ad(g, L, m);
- }, function (r) {
- L.error(new S(g.INVALID_SYMMETRIC_KEY));
- });
- });
- };
- }
- ());
- (function () {
- Dc = oa.Class.create({
- init: function (m, t, x) {
- var O;
- function Z(g) {
- r(t, function () {
- Object.defineProperties(O, {
- rawKey: {
- value: m,
- writable: !1,
- configurable: !1
- },
- encoded: {
- value: g,
- writable: !1,
- configurable: !1
- }
- });
- return this;
- }, O);
- }
- O = this;
- r(t, function () {
- if (!m || "object" != typeof m || "public" != m.type)
- throw new TypeError("Only original public crypto keys are supported.");
- !x && m.extractable ? Ka.exportKey("spki", m).then(function (g) {
- Z(new Uint8Array(g));
- }, function (r) {
- t.error(new S(g.KEY_EXPORT_ERROR, "spki"));
- }) : Z(x);
- });
- },
- getEncoded: function () {
- return this.encoded;
- }
- });
- Rb = function (g, r) {
- new Dc(g, r);
- };
- bd = function (m, t, x, L) {
- r(L, function () {
- try {
- m = "string" == typeof m ? xa(m) : m;
- } catch (O) {
- throw new S(g.INVALID_PUBLIC_KEY, "spki " + m, O);
- }
- Ka.importKey("spki", m, t, !0, x).then(function (g) {
- new Dc(g, L, m);
- }, function (r) {
- L.error(new S(g.INVALID_PUBLIC_KEY));
- });
- });
- };
- }
- ());
- (function () {
- Ld = oa.Class.create({
- init: function (m, t, x) {
- var O;
- function L(g) {
- r(t, function () {
- Object.defineProperties(O, {
- rawKey: {
- value: m,
- writable: !1,
- configurable: !1
- },
- encoded: {
- value: g,
- writable: !1,
- configurable: !1
- }
- });
- return this;
- }, O);
- }
- O = this;
- r(t, function () {
- if (!m || "object" != typeof m || "private" != m.type)
- throw new TypeError("Only original private crypto keys are supported.");
- !x && m.extractable ? Ka.exportKey("pkcs8", m).then(function (g) {
- L(new Uint8Array(g));
- }, function (r) {
- t.error(new S(g.KEY_EXPORT_ERROR, "pkcs8"));
- }) : L(x);
- });
- },
- getEncoded: function () {
- return this.encoded;
- }
- });
- gc = function (g, r) {
- new Ld(g, r);
- };
- }
- ());
- (function () {
- var m;
- m = fd = {
- V1: 1,
- V2: 2
- };
- cd = oa.Class.create({
- init: function (g, t, x, O) {
- r(O, function () {
- var r,
- w,
- y,
- F;
- r = m.V1;
- w = g;
- y = null;
- for (F in Ac)
- if (Ac[F] == g) {
- r = m.V2;
- w = null;
- y = g;
- break;
- }
- Object.defineProperties(this, {
- version: {
- value: r,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- keyId: {
- value: w,
- writable: !1,
- configurable: !1
- },
- cipherSpec: {
- value: y,
- writable: !1,
- configurable: !1
- },
- iv: {
- value: t,
- writable: !1,
- configurable: !1
- },
- ciphertext: {
- value: x,
- writable: !1,
- configurable: !1
- }
- });
- return this;
- }, this);
- },
- toJSON: function () {
- var g;
- g = {};
- switch (this.version) {
- case m.V1:
- g.keyid = this.keyId;
- this.iv && (g.iv = sa(this.iv));
- g.ciphertext = sa(this.ciphertext);
- g.sha256 = "AA==";
- break;
- case m.V2:
- g.version = this.version;
- g.cipherspec = this.cipherSpec;
- this.iv && (g.iv = sa(this.iv));
- g.ciphertext = sa(this.ciphertext);
- break;
- default:
- throw new fa("Ciphertext envelope version " + this.version + " encoding unsupported.");
- }
- return g;
- }
- });
- dd = function (g, r, m, O) {
- new cd(g, r, m, O);
- };
- ed = function (t, x, L) {
- r(L, function () {
- var r,
- M,
- w,
- y,
- F,
- I,
- v;
- r = t.keyid;
- M = t.cipherspec;
- w = t.iv;
- y = t.ciphertext;
- F = t.sha256;
- if (!x)
- if ((x = t.version) && "number" === typeof x && x === x) {
- I = !1;
- for (v in m)
- if (m[v] == x) {
- I = !0;
- break;
- }
- if (!I)
- throw new S(g.UNIDENTIFIED_CIPHERTEXT_ENVELOPE, "ciphertext envelope " + JSON.stringify(t));
- } else
- x = m.V1;
- switch (x) {
- case m.V1:
- if ("string" !== typeof r || w && "string" !== typeof w || "string" !== typeof y || "string" !== typeof F)
- throw new la(g.JSON_PARSE_ERROR, "ciphertext envelope " + JSON.stringify(t));
- break;
- case m.V2:
- v = t.version;
- if (v != m.V2)
- throw new S(g.UNIDENTIFIED_CIPHERTEXT_ENVELOPE, "ciphertext envelope " + JSON.stringify(t));
- if ("string" !== typeof M || w && "string" !== typeof w || "string" !== typeof y)
- throw new la(g.JSON_PARSE_ERROR, "ciphertext envelope " + JSON.stringify(t));
- M = Hd(M);
- if (!M)
- throw new S(g.UNIDENTIFIED_CIPHERSPEC, "ciphertext envelope " + JSON.stringify(t));
- r = M;
- break;
- default:
- throw new S(g.UNSUPPORTED_CIPHERTEXT_ENVELOPE, "ciphertext envelope " + JSON.stringify(t));
- }
- try {
- w && (w = xa(w));
- y = xa(y);
- } catch (E) {
- throw new S(g.CIPHERTEXT_ENVELOPE_PARSE_ERROR, "encryption envelope " + JSON.stringify(t), E);
- }
- new cd(r, w, y, L);
- });
- };
- }
- ());
- (function () {
- var m;
- m = id = {
- V1: 1,
- V2: 2
- };
- Eb = oa.Class.create({
- init: function (g, r, t) {
- var O;
- switch (g) {
- case m.V1:
- O = t;
- break;
- case m.V2:
- O = {};
- O.version = g;
- O.algorithm = r;
- O.signature = sa(t);
- O = Qa(JSON.stringify(O), Ma);
- break;
- default:
- throw new fa("Signature envelope version " + g + " encoding unsupported.");
- }
- Object.defineProperties(this, {
- version: {
- value: g,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- algorithm: {
- value: r,
- writable: !1,
- configurable: !1
- },
- signature: {
- value: t,
- writable: !1,
- configurable: !1
- },
- bytes: {
- value: O,
- writable: !1,
- configurable: !1
- }
- });
- }
- });
- gd = function () {
- var g,
- t,
- x,
- O;
- 2 == arguments.length ? (g = m.V1, t = arguments[0], x = null, O = arguments[1]) : 3 == arguments.length && (g = m.V2, x = arguments[0], t = arguments[1], O = arguments[2]);
- r(O, function () {
- return new Eb(g, x, t);
- });
- };
- hd = function (t, x, L) {
- r(L, function () {
- var r,
- M,
- w,
- y,
- F,
- I,
- v;
- if (x)
- switch (x) {
- case m.V1:
- return new Eb(m.V1, null, t);
- case m.V2:
- try {
- r = Ja(t, Ma);
- M = JSON.parse(r);
- w = parseInt(M.version);
- y = M.algorithm;
- F = M.signature;
- if (!w || "number" !== typeof w || w != w || "string" !== typeof y || "string" !== typeof F)
- throw new la(g.JSON_PARSE_ERROR, "signature envelope " + sa(t));
- if (m.V2 != w)
- throw new S(g.UNSUPPORTED_SIGNATURE_ENVELOPE, "signature envelope " + sa(t));
- I = Yc(y);
- if (!I)
- throw new S(g.UNIDENTIFIED_ALGORITHM, "signature envelope " + sa(t));
- v = xa(F);
- if (!v)
- throw new S(g.INVALID_SIGNATURE, "signature envelope " + Base64Util.encode(t));
- return new Eb(m.V2, I, v);
- } catch (E) {
- if (E instanceof SyntaxError)
- throw new la(g.JSON_PARSE_ERROR, "signature envelope " + sa(t), E);
- throw E;
- }
- default:
- throw new S(g.UNSUPPORTED_SIGNATURE_ENVELOPE, "signature envelope " + sa(t));
- }
- try {
- r = Ja(t, Ma);
- M = JSON.parse(r);
- } catch (E) {
- M = null;
- }
- if (M && M.version) {
- if (r = M.version, "number" !== typeof r || r !== r)
- r = m.V1;
- } else
- r = m.V1;
- switch (r) {
- case m.V1:
- return new Eb(r, null, t);
- case m.V2:
- I = M.algorithm;
- F = M.signature;
- if ("string" !== typeof I || "string" !== typeof F)
- return new Eb(m.V1, null, t);
- I = Yc(I);
- if (!I)
- return new Eb(m.V1, null, t);
- try {
- v = xa(F);
- } catch (E) {
- return new Eb(m.V1, null, t);
- }
- return new Eb(r, I, v);
- default:
- throw new S(g.UNSUPPORTED_SIGNATURE_ENVELOPE, "signature envelope " + t);
- }
- });
- };
- }
- ());
- ic = oa.Class.create({
- encrypt: function (g, r) {},
- decrypt: function (g, r) {},
- wrap: function (g, r) {},
- unwrap: function (g, r, m, t) {},
- sign: function (g, r) {},
- verify: function (g, r, m) {}
- });
- (function () {
- var m;
- m = Gb = {
- RSA_OAEP: Cc.name,
- A128KW: Cb.name
- };
- hb = "A128GCM";
- Fb = oa.Class.create({
- init: function (g, r, t, O, M) {
- switch (r) {
- case m.RSA_OAEP:
- M = M && (M.rawKey || M);
- O = O && (O.rawKey || O);
- break;
- case m.A128KW:
- M = O = O && (O.rawKey || O);
- break;
- default:
- throw new fa("Unsupported algorithm: " + r);
- }
- Object.defineProperties(this, {
- _ctx: {
- value: g,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- _algo: {
- value: r,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- _enc: {
- value: t,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- _wrapKey: {
- value: M,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- _unwrapKey: {
- value: O,
- writable: !1,
- enumerable: !1,
- configurable: !1
- }
- });
- },
- encrypt: function (r, m) {
- m.error(new S(g.ENCRYPT_NOT_SUPPORTED));
- },
- decrypt: function (r, m) {
- m.error(new S(g.DECRYPT_NOT_SUPPORTED));
- },
- wrap: function (m, t) {
- r(t, function () {
- Ka.wrapKey("jwe+jwk", m.rawKey, this._wrapKey, this._wrapKey.algorithm).then(function (g) {
- t.result(g);
- }, function (r) {
- t.error(new S(g.WRAP_ERROR));
- });
- }, this);
- },
- unwrap: function (m, t, x, O) {
- function M(m) {
- r(O, function () {
- switch (m.type) {
- case "secret":
- fc(m, O);
- break;
- case "public":
- Rb(m, O);
- break;
- case "private":
- gc(m, O);
- break;
- default:
- throw new S(g.UNSUPPORTED_KEY, "type: " + m.type);
- }
- });
- }
- r(O, function () {
- Ka.unwrapKey("jwe+jwk", m, this._unwrapKey, this._unwrapKey.algorithm, t, !1, x).then(function (g) {
- M(g);
- }, function () {
- O.error(new S(g.UNWRAP_ERROR));
- });
- }, this);
- },
- sign: function (r, m) {
- m.error(new S(g.SIGN_NOT_SUPPORTED));
- },
- verify: function (r, m, t) {
- t.error(new S(g.VERIFY_NOT_SUPPORTED));
- }
- });
- }
- ());
- jc = ic.extend({
- encrypt: function (g, r) {
- r.result(g);
- },
- decrypt: function (g, r) {
- r.result(g);
- },
- wrap: function (g, r) {
- r.result(g);
- },
- unwrap: function (g, r, m, t) {
- t.result(g);
- },
- sign: function (g, r) {
- r.result(new Uint8Array(0));
- },
- verify: function (g, r, m) {
- m.result(!0);
- }
- });
- (function () {
- var m;
- m = Fc = {
- ENCRYPT_DECRYPT_OAEP: 1,
- ENCRYPT_DECRYPT_PKCS1: 2,
- WRAP_UNWRAP_OAEP: 3,
- WRAP_UNWRAP_PKCS1: 4,
- SIGN_VERIFY: 5
- };
- Ec = ic.extend({
- init: function Ia(g, r, M, w, y) {
- Ia.base.call(this);
- M && (M = M.rawKey);
- w && (w = w.rawKey);
- Object.defineProperties(this, {
- id: {
- value: r,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- privateKey: {
- value: M,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- publicKey: {
- value: w,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- transform: {
- value: y == m.ENCRYPT_DECRYPT_PKCS1 ? $c : y == m.ENCRYPT_DECRYPT_OAEP ? Cc : "nullOp",
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- wrapTransform: {
- value: y == m.WRAP_UNWRAP_PKCS1 ? $c : y == m.WRAP_UNWRAP_OAEP ? Cc : "nullOp",
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- algo: {
- value: y == m.SIGN_VERIFY ? Kd : "nullOp",
- writable: !1,
- enumerable: !1,
- configurable: !1
- }
- });
- },
- encrypt: function (m, t) {
- var O;
- O = this;
- r(t, function () {
- if ("nullOp" == this.transform)
- return m;
- if (!this.publicKey)
- throw new S(g.ENCRYPT_NOT_SUPPORTED, "no public key");
- if (0 == m.length)
- return m;
- Ka.encrypt(O.transform, O.publicKey, m).then(function (r) {
- dd(O.id, null, r, {
- result: function (r) {
- var m;
- try {
- m = JSON.stringify(r);
- t.result(Qa(m, Ma));
- } catch (F) {
- t.error(new S(g.ENCRYPT_ERROR, null, F));
- }
- },
- error: function (r) {
- r instanceof L || (r = new S(g.ENCRYPT_ERROR, null, r));
- t.error(r);
- }
- });
- }, function (r) {
- t.error(new S(g.ENCRYPT_ERROR));
- });
- }, this);
- },
- decrypt: function (m, t) {
- var O;
- O = this;
- r(t, function () {
- var r,
- w;
- if ("nullOp" == this.transform)
- return m;
- if (!this.privateKey)
- throw new S(g.DECRYPT_NOT_SUPPORTED, "no private key");
- if (0 == m.length)
- return m;
- try {
- w = Ja(m, Ma);
- r = JSON.parse(w);
- } catch (y) {
- if (y instanceof SyntaxError)
- throw new S(g.CIPHERTEXT_ENVELOPE_PARSE_ERROR, null, y);
- throw new S(g.DECRYPT_ERROR, null, y);
- }
- ed(r, fd.V1, {
- result: function (r) {
- var m;
- try {
- if (r.keyId != O.id)
- throw new S(g.ENVELOPE_KEY_ID_MISMATCH);
- m = t.result;
- Ka.decrypt(O.transform, O.privateKey, r.ciphertext).then(m, function (r) {
- t.error(new S(g.DECRYPT_ERROR));
- });
- } catch (I) {
- I instanceof L ? t.error(I) : t.error(new S(g.DECRYPT_ERROR, null, I));
- }
- },
- error: function (r) {
- r instanceof la && (r = new S(g.CIPHERTEXT_ENVELOPE_ENCODE_ERROR, null, r));
- r instanceof L || (r = new S(g.DECRYPT_ERROR, null, r));
- t.error(r);
- }
- });
- }, this);
- },
- wrap: function (m, t) {
- r(t, function () {
- var r;
- if ("nullOp" == this.wrapTransform || !this.publicKey)
- throw new S(g.WRAP_NOT_SUPPORTED, "no public key");
- r = t.result;
- Ka.wrapKey("jwk", m.rawKey, this.publicKey, this.wrapTransform).then(r, function (r) {
- t.error(new S(g.WRAP_ERROR));
- });
- }, this);
- },
- unwrap: function (m, t, O, M) {
- function w(m) {
- r(M, function () {
- switch (m.type) {
- case "secret":
- fc(m, M);
- break;
- case "public":
- Rb(m, M);
- break;
- case "private":
- gc(m, M);
- break;
- default:
- throw new S(g.UNSUPPORTED_KEY, "type: " + m.type);
- }
- });
- }
- r(M, function () {
- if ("nullOp" == this.wrapTransform || !this.privateKey)
- throw new S(g.UNWRAP_NOT_SUPPORTED, "no private key");
- Ka.unwrapKey("jwk", m, this.privateKey, {
- name: this.privateKey.algorithm.name,
- hash: {
- name: "SHA-1"
- }
- }, t, !1, O).then(w, function (r) {
- M.error(new S(g.UNWRAP_ERROR));
- });
- }, this);
- },
- sign: function (m, t) {
- r(t, function () {
- if ("nullOp" == this.algo)
- return new Uint8Array(0);
- if (!this.privateKey)
- throw new S(g.SIGN_NOT_SUPPORTED, "no private key");
- Ka.sign(this.algo, this.privateKey, m).then(function (g) {
- gd(g, {
- result: function (g) {
- t.result(g.bytes);
- },
- error: t.error
- });
- }, function (r) {
- t.error(new S(g.SIGNATURE_ERROR));
- });
- }, this);
- },
- verify: function (m, t, O) {
- var M;
- M = this;
- r(O, function () {
- if ("nullOp" == this.algo)
- return !0;
- if (!this.publicKey)
- throw new S(g.VERIFY_NOT_SUPPORTED, "no public key");
- hd(t, id.V1, {
- result: function (w) {
- r(O, function () {
- var r;
- r = O.result;
- Ka.verify(this.algo, this.publicKey, w.signature, m).then(r, function (r) {
- O.error(new S(g.SIGNATURE_ERROR));
- });
- }, M);
- },
- error: O.error
- });
- }, this);
- }
- });
- }
- ());
- (function () {
- Gc = ic.extend({
- init: function ab(g, r, m, M, w) {
- ab.base.call(this);
- m = m && m.rawKey;
- M = M && M.rawKey;
- w = w && w.rawKey;
- Object.defineProperties(this, {
- ctx: {
- value: g,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- id: {
- value: r,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- encryptionKey: {
- value: m,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- hmacKey: {
- value: M,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- wrapKey: {
- value: w,
- writable: !1,
- enumerable: !1,
- configurable: !1
- }
- });
- },
- encrypt: function (m, t) {
- var x;
- x = this;
- r(t, function () {
- var r;
- if (!this.encryptionKey)
- throw new S(g.ENCRYPT_NOT_SUPPORTED, "no encryption/decryption key");
- if (0 == m.length)
- return m;
- r = new Uint8Array(16);
- this.ctx.getRandom().nextBytes(r);
- Ka.encrypt({
- name: tb.name,
- iv: r
- }, x.encryptionKey, m).then(function (m) {
- m = new Uint8Array(m);
- dd(x.id, r, m, {
- result: function (r) {
- var m;
- try {
- m = JSON.stringify(r);
- t.result(Qa(m, Ma));
- } catch (F) {
- t.error(new S(g.ENCRYPT_ERROR, null, F));
- }
- },
- error: function (r) {
- r instanceof L || (r = new S(g.ENCRYPT_ERROR, null, r));
- t.error(r);
- }
- });
- }, function (r) {
- t.error(new S(g.ENCRYPT_ERROR));
- });
- }, this);
- },
- decrypt: function (m, t) {
- var x;
- x = this;
- r(t, function () {
- var r,
- M;
- if (!this.encryptionKey)
- throw new S(g.DECRYPT_NOT_SUPPORTED, "no encryption/decryption key");
- if (0 == m.length)
- return m;
- try {
- M = Ja(m, Ma);
- r = JSON.parse(M);
- } catch (w) {
- if (w instanceof SyntaxError)
- throw new S(g.CIPHERTEXT_ENVELOPE_PARSE_ERROR, null, w);
- throw new S(g.DECRYPT_ERROR, null, w);
- }
- ed(r, fd.V1, {
- result: function (r) {
- try {
- if (r.keyId != x.id)
- throw new S(g.ENVELOPE_KEY_ID_MISMATCH);
- Ka.decrypt({
- name: tb.name,
- iv: r.iv
- }, x.encryptionKey, r.ciphertext).then(function (g) {
- g = new Uint8Array(g);
- t.result(g);
- }, function () {
- t.error(new S(g.DECRYPT_ERROR));
- });
- } catch (y) {
- y instanceof L ? t.error(y) : t.error(new S(g.DECRYPT_ERROR, null, y));
- }
- },
- error: function (r) {
- r instanceof la && (r = new S(g.CIPHERTEXT_ENVELOPE_ENCODE_ERROR, null, r));
- r instanceof L || (r = new S(g.DECRYPT_ERROR, null, r));
- t.error(r);
- }
- });
- }, this);
- },
- wrap: function (m, t) {
- r(t, function () {
- if (!this.wrapKey)
- throw new S(g.WRAP_NOT_SUPPORTED, "no wrap/unwrap key");
- Ka.wrapKey("raw", m.rawKey, this.wrapKey, this.wrapKey.algorithm).then(function (g) {
- t.result(g);
- }, function (r) {
- t.error(new S(g.WRAP_ERROR));
- });
- }, this);
- },
- unwrap: function (m, t, x, O) {
- function M(m) {
- r(O, function () {
- switch (m.type) {
- case "secret":
- fc(m, O);
- break;
- case "public":
- Rb(m, O);
- break;
- case "private":
- gc(m, O);
- break;
- default:
- throw new S(g.UNSUPPORTED_KEY, "type: " + m.type);
- }
- });
- }
- r(O, function () {
- if (!this.wrapKey)
- throw new S(g.UNWRAP_NOT_SUPPORTED, "no wrap/unwrap key");
- Ka.unwrapKey("raw", m, this.wrapKey, this.wrapKey.algorithm, t, !1, x).then(function (g) {
- M(g);
- }, function (r) {
- O.error(new S(g.UNWRAP_ERROR));
- });
- }, this);
- },
- sign: function (m, t) {
- var x;
- x = this;
- r(t, function () {
- if (!this.hmacKey)
- throw new S(g.SIGN_NOT_SUPPORTED, "no HMAC key.");
- Ka.sign(ub, this.hmacKey, m).then(function (g) {
- r(t, function () {
- var r;
- r = new Uint8Array(g);
- gd(r, {
- result: function (g) {
- t.result(g.bytes);
- },
- error: t.error
- });
- }, x);
- }, function () {
- t.error(new S(g.HMAC_ERROR));
- });
- }, this);
- },
- verify: function (m, t, x) {
- var O;
- O = this;
- r(x, function () {
- if (!this.hmacKey)
- throw new S(g.VERIFY_NOT_SUPPORTED, "no HMAC key.");
- hd(t, id.V1, {
- result: function (t) {
- r(x, function () {
- Ka.verify(ub, this.hmacKey, t.signature, m).then(function (g) {
- x.result(g);
- }, function (r) {
- x.error(new S(g.HMAC_ERROR));
- });
- }, O);
- },
- error: x.error
- });
- }, this);
- }
- });
- }
- ());
- mb = Gc.extend({
- init: function ab(r, m, t, M, w) {
- if (t || M || w)
- ab.base.call(this, r, t + "_" + m.sequenceNumber, M, w, null);
- else {
- if (!m.isDecrypted())
- throw new Ub(g.MASTERTOKEN_UNTRUSTED, m);
- ab.base.call(this, r, m.identity + "_" + m.sequenceNumber, m.encryptionKey, m.hmacKey, null);
- }
- }
- });
- Ne = ic.extend({
- encrypt: function (g, r) {
- r.result(g);
- },
- decrypt: function (g, r) {
- r.result(g);
- },
- wrap: function (g, r) {
- r.error(new fa("Wrap is unsupported by the MSL token crypto context."));
- },
- unwrap: function (g, r, m, t) {
- t.error(new fa("Unwrap is unsupported by the MSL token crypto context."));
- },
- sign: function (g, r) {
- r.result(new Uint8Array(0));
- },
- verify: function (g, r, m) {
- m.result(!1);
- }
- });
- Ra = {
- PSK: "PSK",
- MGK: "MGK",
- X509: "X509",
- RSA: "RSA",
- NPTICKET: "NPTICKET",
- ECC: "ECC",
- NONE: "NONE"
- };
- Object.freeze(Ra);
- (function () {
- Tb = oa.Class.create({
- init: function (g) {
- Object.defineProperties(this, {
- scheme: {
- value: g,
- writable: !1,
- configurable: !1
- }
- });
- },
- getIdentity: function () {},
- getAuthData: function () {},
- equals: function (g) {
- return this === g ? !0 : g instanceof Tb ? this.scheme == g.scheme : !1;
- },
- toJSON: function () {
- var g;
- g = {};
- g.scheme = this.scheme;
- g.authdata = this.getAuthData();
- return g;
- }
- });
- Md = function (r, m) {
- var t,
- O,
- M;
- t = m.scheme;
- O = m.authdata;
- if (!t || !O)
- throw new la(g.JSON_PARSE_ERROR, "entityauthdata " + JSON.stringify(m));
- if (!Ra[t])
- throw new Bb(g.UNIDENTIFIED_ENTITYAUTH_SCHEME, t);
- M = r.getEntityAuthenticationFactory(t);
- if (!M)
- throw new Bb(g.ENTITYAUTH_FACTORY_NOT_FOUND, t);
- return M.createData(r, O);
- };
- }
- ());
- Hc = oa.Class.create({
- init: function (g) {
- Object.defineProperties(this, {
- scheme: {
- value: g,
- writable: !1,
- configurable: !1
- }
- });
- },
- createData: function (g, r) {},
- getCryptoContext: function (g, r) {}
- });
- (function () {
- qb = Tb.extend({
- init: function Ia(g) {
- Ia.base.call(this, Ra.MGK);
- Object.defineProperties(this, {
- identity: {
- value: g,
- writable: !1,
- configurable: !1
- }
- });
- },
- getIdentity: function () {
- return this.identity;
- },
- getAuthData: function () {
- var g;
- g = {};
- g.identity = this.identity;
- return g;
- },
- equals: function Va(g) {
- return this === g ? !0 : g instanceof qb ? Va.base.call(this, this, g) && this.identity == g.identity : !1;
- }
- });
- Nd = function (r) {
- var m;
- m = r.identity;
- if (!m)
- throw new la(g.JSON_PARSE_ERROR, "mgk authdata" + JSON.stringify(r));
- return new qb(m);
- };
- }
- ());
- Oe = Hc.extend({
- init: function Ia(g) {
- Ia.base.call(this, Ra.MGK);
- Object.defineProperties(this, {
- localIdentity: {
- value: g,
- writable: !1,
- enumerable: !1,
- configurable: !1
- }
- });
- },
- createData: function (g, r) {
- return Nd(r);
- },
- getCryptoContext: function (r, m) {
- if (!(m instanceof qb))
- throw new fa("Incorrect authentication data type " + JSON.stringify(m) + ".");
- if (m.identity != this.localIdentity)
- throw new Bb(g.ENTITY_NOT_FOUND, "mgk " + m.identity).setEntity(m);
- return new jc();
- }
- });
- (function () {
- vb = Tb.extend({
- init: function Va(g) {
- Va.base.call(this, Ra.PSK);
- Object.defineProperties(this, {
- identity: {
- value: g,
- writable: !1
- }
- });
- },
- getIdentity: function () {
- return this.identity;
- },
- getAuthData: function () {
- var g;
- g = {};
- g.identity = this.identity;
- return g;
- },
- equals: function O(g) {
- return this === g ? !0 : g instanceof vb ? O.base.call(this, this, g) && this.identity == g.identity : !1;
- }
- });
- Od = function (r) {
- var m;
- m = r.identity;
- if (!m)
- throw new la(g.JSON_PARSE_ERROR, "psk authdata" + JSON.stringify(r));
- return new vb(m);
- };
- }
- ());
- Pd = Hc.extend({
- init: function Va(g) {
- Va.base.call(this, Ra.PSK);
- Object.defineProperties(this, {
- localIdentity: {
- value: g,
- writable: !1,
- enumerable: !1,
- configurable: !1
- }
- });
- },
- createData: function (g, r) {
- return Od(r);
- },
- getCryptoContext: function (r, m) {
- if (!(m instanceof vb))
- throw new fa("Incorrect authentication data type " + JSON.stringify(m) + ".");
- if (m.getIdentity() != this.localIdentity)
- throw new Bb(g.ENTITY_NOT_FOUND, "psk " + m.identity).setEntity(m);
- return new jc();
- }
- });
- (function () {
- Ic = Tb.extend({
- init: function O(g, r) {
- O.base.call(this, Ra.RSA);
- Object.defineProperties(this, {
- identity: {
- value: g,
- writable: !1,
- configurable: !1
- },
- publicKeyId: {
- value: r,
- writable: !1,
- configurable: !1
- }
- });
- },
- getIdentity: function () {
- return this.identity;
- },
- getAuthData: function () {
- var g;
- g = {};
- g.identity = this.identity;
- g.pubkeyid = this.publicKeyId;
- return g;
- },
- equals: function M(g) {
- return this === g ? !0 : g instanceof Ic ? M.base.call(this, this, g) && this.identity == g.identity && this.publicKeyId == g.publicKeyId : !1;
- }
- });
- Qd = function (r) {
- var m,
- y;
- m = r.identity;
- y = r.pubkeyid;
- if (!m || "string" !== typeof m || !y || "string" !== typeof y)
- throw new la(g.JSON_PARSE_ERROR, "RSA authdata" + JSON.stringify(r));
- return new Ic(m, y);
- };
- }
- ());
- Pe = Hc.extend({
- init: function O(g) {
- O.base.call(this, Ra.RSA);
- Object.defineProperties(this, {
- store: {
- value: g,
- writable: !1,
- enumerable: !1,
- configurable: !1
- }
- });
- },
- createData: function (g, r) {
- return Qd(r);
- },
- getCryptoContext: function (r, m) {
- var w,
- y,
- t;
- if (!(m instanceof Ic))
- throw new fa("Incorrect authentication data type " + m + ".");
- w = m.identity;
- y = m.publicKeyId;
- t = this.store.getPublicKey(y);
- if (!t)
- throw new Bb(g.RSA_PUBLICKEY_NOT_FOUND, y).setEntity(m);
- return new Ec(r, w, null, t, Fc.SIGN_VERIFY);
- }
- });
- (function () {
- nc = Tb.extend({
- init: function M(g) {
- M.base.call(this, Ra.NONE);
- Object.defineProperties(this, {
- identity: {
- value: g,
- writable: !1
- }
- });
- },
- getIdentity: function () {
- return this.identity;
- },
- getAuthData: function () {
- var g;
- g = {};
- g.identity = this.identity;
- return g;
- },
- equals: function w(g) {
- return this === g ? !0 : g instanceof nc ? w.base.call(this, this, g) && this.identity == g.identity : !1;
- }
- });
- Rd = function (r) {
- var m;
- m = r.identity;
- if (!m)
- throw new la(g.JSON_PARSE_ERROR, "Unauthenticated authdata" + JSON.stringify(r));
- return new nc(m);
- };
- }
- ());
- Me = Hc.extend({
- init: function M() {
- M.base.call(this, Ra.NONE);
- },
- createData: function (g, r) {
- return Rd(r);
- },
- getCryptoContext: function (g, r) {
- if (!(r instanceof nc))
- throw new fa("Incorrect authentication data type " + JSON.stringify(r) + ".");
- return new jc();
- }
- });
- Qe = oa.Class.create({
- init: function () {
- Object.defineProperties(this, {
- rsaKeys: {
- value: {},
- writable: !1,
- enumerable: !1,
- configurable: !1
- }
- });
- },
- addPublicKey: function (g, r) {
- if (!(r instanceof Dc))
- throw new fa("Incorrect key data type " + r + ".");
- this.rsaKeys[g] = r;
- },
- getIdentities: function () {
- return Object.keys(this.rsaKeys);
- },
- removePublicKey: function (g) {
- delete this.rsaKeys[g];
- },
- getPublicKey: function (g) {
- return this.rsaKeys[g];
- }
- });
- jd = oa.Class.create({
- abort: function () {},
- close: function () {},
- mark: function () {},
- reset: function () {},
- markSupported: function () {},
- read: function (g, r, m) {}
- });
- Jc = oa.Class.create({
- abort: function () {},
- close: function (g, r) {},
- write: function (g, r, m, t, I) {},
- flush: function (g, r) {}
- });
- Re = oa.Class.create({
- init: function (g) {
- Object.defineProperties(this, {
- _data: {
- value: g,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- _closed: {
- value: !1,
- writable: !0,
- enumerable: !1,
- configurable: !1
- },
- _currentPosition: {
- value: 0,
- writable: !0,
- enumerable: !1,
- configurable: !1
- },
- _mark: {
- value: -1,
- writable: !0,
- enumerable: !1,
- configurable: !1
- }
- });
- },
- abort: function () {},
- close: function () {
- this._close = !0;
- },
- mark: function () {
- this._mark = this._currentPosition;
- },
- reset: function () {
- if (-1 == this._mark)
- throw new db("Stream has not been marked.");
- this._currentPosition = this._mark;
- },
- markSupported: function () {
- return !0;
- },
- read: function (g, r, m) {
- x(m, function () {
- var r;
- if (this._closed)
- throw new db("Stream is already closed.");
- if (this._currentPosition == this._data.length)
- return null;
- -1 == g && (g = this._data.length - this._currentPosition);
- r = this._data.subarray(this._currentPosition, this._currentPosition + g);
- this._currentPosition += r.length;
- return r;
- }, this);
- }
- });
- Se = oa.Class.create({
- init: function () {
- var g;
- g = {
- _closed: {
- value: !1,
- writable: !0,
- enumerable: !1,
- configurable: !1
- },
- _result: {
- value: new Uint8Array(0),
- writable: !0,
- enuemrable: !1,
- configurable: !1
- },
- _buffered: {
- value: [],
- writable: !1,
- enumerable: !1,
- configurable: !1
- }
- };
- Object.defineProperties(this, g);
- },
- abort: function () {},
- close: function (g, r) {
- this._closed = !0;
- r.result(!0);
- },
- write: function (g, r, m, t, I) {
- x(I, function () {
- var v;
- if (this._closed)
- throw new db("Stream is already closed.");
- if (0 > r)
- throw new RangeError("Offset cannot be negative.");
- if (0 > m)
- throw new RangeError("Length cannot be negative.");
- if (r + m > g.length)
- throw new RangeError("Offset plus length cannot be greater than the array length.");
- v = g.subarray(r, m);
- this._buffered.push(v);
- return v.length;
- }, this);
- },
- flush: function (g, r) {
- var m,
- w;
- for (; 0 < this._buffered.length; ) {
- m = this._buffered.shift();
- if (this._result) {
- w = new Uint8Array(this._result.length + m.length);
- w.set(this._result);
- w.set(m, this._result.length);
- this._result = w;
- } else
- this._result = new Uint8Array(m);
- }
- r.result(!0);
- },
- size: function () {
- this.flush(1, {
- result: function () {}
- });
- return this._result.length;
- },
- toByteArray: function () {
- this.flush(1, {
- result: function () {}
- });
- return this._result;
- }
- });
- Te = oa.Class.create({
- getResponse: function (g, r, m) {}
- });
- (function () {
- var g,
- r;
- g = Jc.extend({
- init: function (g, r) {
- var m;
- m = {
- _httpLocation: {
- value: g,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- _timeout: {
- value: r,
- writable: !0,
- enumerable: !1,
- configurable: !1
- },
- _buffer: {
- value: new Se(),
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- _response: {
- value: Y,
- writable: !0,
- enumerable: !1,
- configurable: !1
- },
- _abortToken: {
- value: Y,
- writable: !0,
- enumerable: !1,
- configurable: !1
- },
- _responseQueue: {
- value: new oc(),
- writable: !0,
- enumerable: !1,
- configurable: !1
- }
- };
- Object.defineProperties(this, m);
- },
- setTimeout: function (g) {
- this._timeout = g;
- },
- getResponse: function (g, r) {
- var m;
- m = this;
- this._responseQueue.poll(g, {
- result: function (g) {
- x(r, function () {
- g && this._responseQueue.add(g);
- return g;
- }, m);
- },
- timeout: function () {
- x(r, function () {
- this._response = {
- isTimeout: !0
- };
- this._responseQueue.add(this._response);
- this.abort();
- r.timeout();
- }, m);
- },
- error: function (g) {
- x(r, function () {
- this._response = {
- isError: !0
- };
- this._responseQueue.add(this._response);
- throw g;
- }, m);
- }
- });
- },
- abort: function () {
- this._abortToken && this._abortToken.abort();
- },
- close: function (g, r) {
- var m;
- m = this;
- x(r, function () {
- var g;
- if (this._response)
- return !0;
- g = this._buffer.toByteArray();
- 0 < g.length && (this._abortToken = this._httpLocation.getResponse({
- body: g
- }, this._timeout, {
- result: function (g) {
- m._response = {
- response: g
- };
- m._responseQueue.add(m._response);
- },
- timeout: function () {
- m._response = {
- isTimeout: !0
- };
- m._responseQueue.add(m._response);
- },
- error: function (g) {
- m._response = {
- isError: !0,
- error: g
- };
- m._responseQueue.add(m._response);
- }
- }));
- return !0;
- }, this);
- },
- write: function (g, r, m, v, E) {
- x(E, function () {
- if (this._response)
- throw new db("HttpOutputStream already closed.");
- this._buffer.write(g, r, m, v, E);
- }, this);
- },
- flush: function (g, r) {
- x(r, function () {
- if (this._response)
- return !0;
- this._buffer.flush(g, r);
- }, this);
- }
- });
- r = jd.extend({
- init: function (g) {
- Object.defineProperties(this, {
- _out: {
- value: g,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- _buffer: {
- value: Y,
- writable: !0,
- enumerable: !1,
- configurable: !1
- },
- _exception: {
- value: Y,
- writable: !0,
- enumerable: !1,
- configurable: !1
- },
- _timedout: {
- value: !1,
- writable: !0,
- enumerable: !1,
- configurable: !1
- },
- _aborted: {
- value: !1,
- writable: !0,
- enumerable: !1,
- configurable: !1
- },
- _json: {
- value: Y,
- writable: !0,
- enumerable: !1,
- configurable: !1
- }
- });
- },
- abort: function () {
- this._out.abort();
- },
- close: function () {
- this._buffer && this._buffer.close();
- },
- mark: function () {
- this._buffer || this._buffer.mark();
- },
- reset: function () {
- this._buffer && this._buffer.reset();
- },
- markSupported: function () {
- if (this._buffer)
- return this._buffer.markSupported();
- },
- read: function (g, r, m) {
- var E;
- function v(v) {
- x(m, function () {
- if (!v)
- return new Uint8Array(0);
- this._out.getResponse(r, {
- result: function (v) {
- x(m, function () {
- var w;
- if (v.isTimeout)
- this._timedout = !0, m.timeout();
- else {
- if (v.isError)
- throw this._exception = v.error || new db("Unknown HTTP exception."), this._exception;
- if (!v.response)
- throw this._exception = new db("Missing HTTP response."), this._exception;
- v.response.json !== Y && (this._json = v.response.json, this.getJSON = function () {
- return E._json;
- });
- w = v.response.content || dc("string" === typeof v.response.body ? v.response.body : JSON.stringify(this._json));
- this._buffer = new Re(w);
- this._buffer.read(g, r, m);
- }
- }, E);
- },
- timeout: function () {
- m.timeout();
- },
- error: function (g) {
- m.error(g);
- }
- });
- }, E);
- }
- E = this;
- x(m, function () {
- if (this._exception)
- throw this._exception;
- if (this._timedout)
- m.timeout();
- else {
- if (this._aborted)
- return new Uint8Array(0);
- this._buffer ? this._buffer.read(g, r, m) : this._out.close(r, {
- result: function (g) {
- v(g);
- },
- timeout: function () {
- m.timeout();
- },
- error: function (g) {
- m.error(g);
- }
- });
- }
- }, E);
- }
- });
- Bd = oa.Class.create({
- init: function (g, r) {
- Object.defineProperties(this, {
- _httpLocation: {
- value: g,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- _timeout: {
- value: r,
- writable: !0,
- enumerable: !1,
- configurable: !1
- }
- });
- },
- setTimeout: function (g) {
- this._timeout = g;
- },
- openConnection: function () {
- var m;
- m = new g(this._httpLocation, this._timeout);
- return {
- input: new r(m),
- output: m
- };
- }
- });
- }
- ());
- (function () {
- var g,
- r;
- g = Jc.extend({
- init: function () {
- var g;
- g = {
- _buffer: {
- value: new Uint8Array(),
- writable: !0,
- enumerable: !1,
- configurable: !1
- }
- };
- Object.defineProperties(this, g);
- },
- setTimeout: function () {},
- getResponse: function (g, r) {
- r.result({
- success: !1,
- content: null,
- errorHttpCode: Y,
- errorSubCode: Y
- });
- },
- abort: function () {},
- close: function (g, r) {
- r.result(!0);
- },
- write: function (g, r, m, v, E) {
- var w,
- y;
- try {
- if (0 > r)
- throw new RangeError("Offset cannot be negative.");
- if (0 > m)
- throw new RangeError("Length cannot be negative.");
- if (r + m > g.length)
- throw new RangeError("Offset plus length cannot be greater than the array length.");
- w = g.subarray(r, m);
- y = new Uint8Array(this._buffer.length + w.length);
- y.set(this._buffer);
- y.set(w, this._buffer.length);
- this._buffer = y;
- E.result(w.length);
- } catch (za) {
- E.error(za);
- }
- },
- flush: function (g, r) {
- r.result(!0);
- },
- request: function () {
- return this._buffer;
- }
- });
- r = jd.extend({
- init: function () {},
- abort: function () {},
- close: function () {},
- mark: function () {},
- reset: function () {},
- markSupported: function () {},
- read: function (g, r, m) {
- m.result(new Uint8Array(16));
- }
- });
- Cd = oa.Class.create({
- init: function () {
- var m;
- m = {
- output: {
- value: new g(),
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- input: {
- value: new r(),
- writable: !0,
- enumerable: !1,
- configurable: !1
- }
- };
- Object.defineProperties(this, m);
- },
- setTimeout: function () {},
- openConnection: function () {
- return {
- input: this.input,
- output: this.output
- };
- },
- getRequest: function () {
- return cc(this.output.request());
- }
- });
- }
- ());
- Sd = function (g, r, m) {
- function w(g) {
- var r,
- m;
- g = new Ue(Ja(g, "utf-8"));
- r = [];
- for (m = g.nextValue(); m !== Y; )
- r.push(m), m = g.nextValue();
- return r;
- }
- (function (g, r, E) {
- g.read(-1, r, {
- result: function (g) {
- g && g.length ? E(null, g) : E(null, null);
- },
- timeout: function () {
- m.timeout();
- },
- error: function (g) {
- E(g, null);
- }
- });
- }
- (g, r, function (r, v) {
- r ? m.error(r) : v ? g.getJSON !== Y && "function" === typeof g.getJSON ? m.result(g.getJSON()) : m.result(w(v)) : m.result(null);
- }));
- };
- ob = {
- SYMMETRIC_WRAPPED: "SYMMETRIC_WRAPPED",
- ASYMMETRIC_WRAPPED: "ASYMMETRIC_WRAPPED",
- DIFFIE_HELLMAN: "DIFFIE_HELLMAN",
- JWE_LADDER: "JWE_LADDER",
- JWK_LADDER: "JWK_LADDER",
- AUTHENTICATED_DH: "AUTHENTICATED_DH"
- };
- Object.freeze(ob);
- (function () {
- pc = oa.Class.create({
- init: function (g) {
- Object.defineProperties(this, {
- keyExchangeScheme: {
- value: g,
- writable: !1,
- configurable: !1
- }
- });
- },
- getKeydata: function () {},
- toJSON: function () {
- var g;
- g = {};
- g.scheme = this.keyExchangeScheme;
- g.keydata = this.getKeydata();
- return g;
- },
- equals: function (g) {
- return this === g ? !0 : g instanceof pc ? this.keyExchangeScheme == g.keyExchangeScheme : !1;
- },
- uniqueKey: function () {
- return this.keyExchangeScheme;
- }
- });
- Td = function (m, w, y) {
- r(y, function () {
- var r,
- t,
- v;
- r = w.scheme;
- t = w.keydata;
- if (!r || !t || "object" !== typeof t)
- throw new la(g.JSON_PARSE_ERROR, "keyrequestdata " + JSON.stringify(w));
- if (!ob[r])
- throw new Ta(g.UNIDENTIFIED_KEYX_SCHEME, r);
- v = m.getKeyExchangeFactory(r);
- if (!v)
- throw new Ta(g.KEYX_FACTORY_NOT_FOUND, r);
- v.createRequestData(m, t, y);
- });
- };
- }
- ());
- (function () {
- qc = oa.Class.create({
- init: function (g, r) {
- Object.defineProperties(this, {
- masterToken: {
- value: g,
- writable: !1,
- configurable: !1
- },
- keyExchangeScheme: {
- value: r,
- wrtiable: !1,
- configurable: !1
- }
- });
- },
- getKeydata: function () {},
- toJSON: function () {
- var g;
- g = {};
- g.mastertoken = this.masterToken;
- g.scheme = this.keyExchangeScheme;
- g.keydata = this.getKeydata();
- return g;
- },
- equals: function (g) {
- return this === g ? !0 : g instanceof qc ? this.masterToken.equals(g.masterToken) && this.keyExchangeScheme == g.keyExchangeScheme : !1;
- },
- uniqueKey: function () {
- return this.masterToken.uniqueKey() + ":" + this.keyExchangeScheme;
- }
- });
- Ud = function (m, w, y) {
- r(y, function () {
- var t,
- I,
- v;
- t = w.mastertoken;
- I = w.scheme;
- v = w.keydata;
- if (!I || !t || "object" !== typeof t || !v || "object" !== typeof v)
- throw new la(g.JSON_PARSE_ERROR, "keyresponsedata " + JSON.stringify(w));
- if (!ob[I])
- throw new Ta(g.UNIDENTIFIED_KEYX_SCHEME, I);
- Wb(m, t, {
- result: function (E) {
- r(y, function () {
- var r;
- r = m.getKeyExchangeFactory(I);
- if (!r)
- throw new Ta(g.KEYX_FACTORY_NOT_FOUND, I);
- return r.createResponseData(m, E, v);
- });
- },
- error: function (g) {
- y.error(g);
- }
- });
- });
- };
- }
- ());
- (function () {
- var m;
- m = oa.Class.create({
- init: function (g, r) {
- Object.defineProperties(this, {
- keyResponseData: {
- value: g,
- writable: !1,
- configurable: !1
- },
- cryptoContext: {
- value: r,
- writable: !1,
- configurable: !1
- }
- });
- }
- });
- rb = oa.Class.create({
- init: function (g) {
- Object.defineProperties(this, {
- scheme: {
- value: g,
- writable: !1,
- configurable: !1
- }
- });
- },
- createRequestData: function (g, r, m) {},
- createResponseData: function (g, r, m) {},
- generateResponse: function (g, r, m, t) {},
- getCryptoContext: function (g, r, m, t, v) {},
- generateSessionKeys: function (m, t) {
- r(t, function () {
- var r,
- w;
- r = new Uint8Array(16);
- w = new Uint8Array(32);
- m.getRandom().nextBytes(r);
- m.getRandom().nextBytes(w);
- Db(r, tb, Lb, {
- result: function (r) {
- Db(w, ub, Vb, {
- result: function (g) {
- t.result({
- encryptionKey: r,
- hmacKey: g
- });
- },
- error: function (r) {
- t.error(new S(g.SESSION_KEY_CREATION_FAILURE, null, r));
- }
- });
- },
- error: function (r) {
- t.error(new S(g.SESSION_KEY_CREATION_FAILURE, null, r));
- }
- });
- });
- },
- importSessionKeys: function (g, r, m) {
- Db(g, tb, Lb, {
- result: function (g) {
- Db(r, ub, Vb, {
- result: function (r) {
- m.result({
- encryptionKey: g,
- hmacKey: r
- });
- },
- error: function (g) {
- m.error(g);
- }
- });
- },
- error: function (g) {
- m.error(g);
- }
- });
- }
- });
- rb.KeyExchangeData = m;
- }
- ());
- (function () {
- var w,
- t,
- F;
- function m(m, v, E, t, y) {
- r(y, function () {
- var X,
- I;
- switch (v) {
- case w.PSK:
- X = new vb(t),
- I = m.getEntityAuthenticationFactory(Ra.PSK);
- if (!I)
- throw new Ta(g.UNSUPPORTED_KEYX_MECHANISM, v);
- X = I.getCryptoContext(m, X);
- return new Fb(m, Gb.A128KW, hb, Y);
- case w.MGK:
- X = new qb(t);
- I = m.getEntityAuthenticationFactory(Ra.MGK);
- if (!I)
- throw new Ta(g.UNSUPPORTED_KEYX_MECHANISM, v);
- X = I.getCryptoContext(m, X);
- return new Fb(m, Gb.A128KW, hb, Y);
- case w.WRAP:
- X = m.getMslCryptoContext();
- X.unwrap(E, Cb, Mb, {
- result: function (g) {
- r(y, function () {
- return new Fb(m, Gb.A128KW, hb, g);
- });
- },
- error: y.error
- });
- break;
- default:
- throw new Ta(g.UNSUPPORTED_KEYX_MECHANISM, v);
- }
- });
- }
- w = {
- PSK: "PSK",
- MGK: "MGK",
- WRAP: "WRAP"
- };
- t = kd = pc.extend({
- init: function v(g, r) {
- v.base.call(this, ob.JWE_LADDER);
- switch (g) {
- case w.WRAP:
- if (!r)
- throw new fa("Previous wrapping key based key exchange requires the previous wrapping key data and ID.");
- break;
- default:
- r = null;
- }
- Object.defineProperties(this, {
- mechanism: {
- value: g,
- writable: !1,
- configurable: !1
- },
- wrapdata: {
- value: r,
- writable: !1,
- configurable: !1
- }
- });
- },
- getKeydata: function () {
- var g;
- g = {};
- g.mechanism = this.mechanism;
- this.wrapdata && (g.wrapdata = sa(this.wrapdata));
- return g;
- },
- equals: function E(g) {
- return g === this ? !0 : g instanceof kd ? E.base.call(this, g) && this.mechanism == g.mechanism && Xa(this.wrapdata, g.wrapdata) : !1;
- },
- uniqueKey: function ua() {
- var g;
- g = ua.base.call(this) + ":" + this.mechanism;
- this.wrapdata && (g += ":" + Ua(this.wrapdata));
- return g;
- }
- });
- F = Wd = qc.extend({
- init: function X(g, r, m, w, t) {
- X.base.call(this, g, ob.JWE_LADDER);
- Object.defineProperties(this, {
- wrapKey: {
- value: r,
- writable: !1,
- configurable: !1
- },
- wrapdata: {
- value: m,
- writable: !1,
- configurable: !1
- },
- encryptionKey: {
- value: w,
- writable: !1,
- configurable: !1
- },
- hmacKey: {
- value: t,
- writable: !1,
- configurable: !1
- }
- });
- },
- getKeydata: function () {
- var g;
- g = {};
- g.wrapkey = sa(this.wrapKey);
- g.wrapdata = sa(this.wrapdata);
- g.encryptionkey = sa(this.encryptionKey);
- g.hmackey = sa(this.hmacKey);
- return g;
- },
- equals: function za(g) {
- return this === g ? !0 : g instanceof Wd ? za.base.call(this, g) && Xa(this.wrapKey, g.wrapKey) && Xa(this.wrapdata, g.wrapdata) && Xa(this.encryptionKey, g.encryptionKey) && Xa(this.hmacKey, g.hmacKey) : !1;
- },
- uniqueKey: function wa() {
- return wa.base.call(this) + ":" + Ua(this.wrapKey) + ":" + Ua(this.wrapdata) + ":" + Ua(this.encryptionKey) + ":" + Ua(this.hmacKey);
- }
- });
- Vd = rb.extend({
- init: function ca(g) {
- ca.base.call(this, ob.JWE_LADDER);
- Object.defineProperties(this, {
- repository: {
- value: g,
- writable: !1,
- enumerable: !1,
- configurable: !1
- }
- });
- },
- createRequestData: function (m, y, B) {
- r(B, function () {
- var r,
- m,
- B;
- r = y.mechanism;
- m = y.wrapdata;
- if (!r || r == w.WRAP && (!m || "string" !== typeof m))
- throw new la(g.JSON_PARSE_ERROR, "keydata " + JSON.stringify(y));
- if (!w[r])
- throw new Ta(g.UNIDENTIFIED_KEYX_MECHANISM, r);
- switch (r) {
- case w.WRAP:
- try {
- B = xa(m);
- } catch (da) {
- throw new Ta(g.KEYX_WRAPPING_KEY_MISSING, "keydata " + y.toString());
- }
- if (null == B || 0 == B.length)
- throw new Ta(g.KEYX_WRAPPING_KEY_MISSING, "keydata " + y.toString());
- break;
- default:
- B = null;
- }
- return new t(r, B);
- });
- },
- createResponseData: function (r, m, w) {
- var t,
- B,
- y,
- ca,
- ra,
- M,
- x;
- r = w.wrapkey;
- t = w.wrapdata;
- B = w.encryptionkey;
- y = w.hmackey;
- if (!(r && "string" === typeof r && t && "string" === typeof t && B && "string" === typeof B && y) || "string" !== typeof y)
- throw new la(g.JSON_PARSE_ERROR, "keydata " + JSON.stringify(w));
- try {
- ca = xa(r);
- ra = xa(t);
- } catch (ga) {
- throw new S(g.INVALID_SYMMETRIC_KEY, "keydata " + JSON.stringify(w), ga);
- }
- try {
- M = xa(B);
- } catch (ga) {
- throw new S(g.INVALID_ENCRYPTION_KEY, "keydata " + JSON.stringify(w), ga);
- }
- try {
- x = xa(y);
- } catch (ga) {
- throw new S(g.INVALID_HMAC_KEY, "keydata " + JSON.stringify(w), ga);
- }
- return new F(m, ca, ra, M, x);
- },
- generateResponse: function (w, y, B, W) {
- var Sa,
- va;
- function ca(g, m, t) {
- Sa.generateSessionKeys(w, {
- result: function (w) {
- r(W, function () {
- ra(g, m, t, w.encryptionKey, w.hmacKey);
- }, Sa);
- },
- error: function (g) {
- r(W, function () {
- g instanceof L && g.setEntity(va);
- throw g;
- });
- }
- });
- }
- function ra(g, t, B, ca, pa) {
- r(W, function () {
- m(w, y.mechanism, y.wrapdata, g, {
- result: function (g) {
- g.wrap(t, {
- result: function (d) {
- M(t, B, ca, pa, d);
- },
- error: function (d) {
- r(W, function () {
- d instanceof L && d.setEntity(va);
- throw d;
- });
- }
- });
- },
- error: function (g) {
- r(W, function () {
- g instanceof L && g.setEntity(va);
- throw g;
- });
- }
- });
- }, Sa);
- }
- function M(g, m, t, y, B) {
- r(W, function () {
- var ga;
- ga = new Fb(w, Gb.A128KW, hb, g);
- ga.wrap(t, {
- result: function (d) {
- ga.wrap(y, {
- result: function (b) {
- x(m, B, t, d, y, b);
- },
- error: function (b) {
- r(W, function () {
- b instanceof L && b.setEntity(va);
- throw b;
- });
- }
- });
- },
- error: function (d) {
- r(W, function () {
- d instanceof L && d.setEntity(va);
- throw d;
- });
- }
- });
- }, Sa);
- }
- function x(g, m, t, y, ca, ra) {
- r(W, function () {
- var d;
- d = w.getTokenFactory();
- va ? d.renewMasterToken(w, va, t, ca, {
- result: function (b) {
- r(W, function () {
- var a,
- c;
- a = new mb(w, b);
- c = new F(b, m, g, y, ra);
- return new rb.KeyExchangeData(c, a, W);
- }, Sa);
- },
- error: function (b) {
- r(W, function () {
- b instanceof L && b.setEntity(va);
- throw b;
- });
- }
- }) : d.createMasterToken(w, B, t, ca, {
- result: function (b) {
- r(W, function () {
- var a,
- c;
- a = new mb(w, b);
- c = new F(b, m, g, y, ra);
- return new rb.KeyExchangeData(c, a, W);
- }, Sa);
- },
- error: W.error
- });
- }, Sa);
- }
- Sa = this;
- r(W, function () {
- var m,
- F;
- if (!(y instanceof t))
- throw new fa("Key request data " + JSON.stringify(y) + " was not created by this factory.");
- m = B;
- if (B instanceof lb) {
- if (!B.isVerified())
- throw new Ub(g.MASTERTOKEN_UNTRUSTED, B);
- va = B;
- m = B.identity;
- }
- F = new Uint8Array(16);
- w.getRandom().nextBytes(F);
- Db(F, Cb, Mb, {
- result: function (g) {
- r(W, function () {
- w.getMslCryptoContext().wrap(g, {
- result: function (r) {
- ca(m, g, r);
- },
- error: function (g) {
- r(W, function () {
- g instanceof L && g.setEntity(va);
- throw g;
- }, Sa);
- }
- });
- }, Sa);
- },
- error: function (m) {
- r(W, function () {
- throw new S(g.WRAP_KEY_CREATION_FAILURE, null, m).setEntity(va);
- }, Sa);
- }
- });
- }, Sa);
- },
- getCryptoContext: function (m, y, B, W, ya) {
- var ra;
- function ca(g, w, t, y, B) {
- r(ya, function () {
- var ga;
- ga = new Fb(m, Gb.A128KW, hb, B);
- ga.unwrap(w.encryptionKey, tb, Lb, {
- result: function (B) {
- ga.unwrap(w.hmacKey, ub, Vb, {
- result: function (g) {
- r(ya, function () {
- this.repository.addCryptoContext(w.wrapdata, ga);
- this.repository.removeCryptoContext(t);
- return new mb(m, w.masterToken, y, B, g);
- }, ra);
- },
- error: function (m) {
- r(ya, function () {
- m instanceof L && m.setEntity(g);
- throw m;
- });
- }
- });
- },
- error: function (m) {
- r(ya, function () {
- m instanceof L && m.setEntity(g);
- throw m;
- });
- }
- });
- }, ra);
- }
- ra = this;
- r(ya, function () {
- var W,
- qa;
- if (!(y instanceof t))
- throw new fa("Key request data " + JSON.stringify(y) + " was not created by this factory.");
- if (!(B instanceof F))
- throw new fa("Key response data " + JSON.stringify(B) + " was not created by this factory.");
- W = y.mechanism;
- qa = y.wrapdata;
- m.getEntityAuthenticationData(null, {
- result: function (t) {
- r(ya, function () {
- var y,
- F,
- ra;
- y = t.getIdentity();
- switch (W) {
- case w.PSK:
- F = new vb(y);
- ra = m.getEntityAuthenticationFactory(Ra.PSK);
- if (!ra)
- throw new Ta(g.UNSUPPORTED_KEYX_MECHANISM, W).setEntity(t);
- F = ra.getCryptoContext(m, F);
- F = new Fb(m, Gb.A128KW, hb, Y);
- break;
- case w.MGK:
- F = new qb(y);
- ra = m.getEntityAuthenticationFactory(Ra.MGK);
- if (!ra)
- throw new Ta(g.UNSUPPORTED_KEYX_MECHANISM, W).setEntity(t);
- F = ra.getCryptoContext(m, F);
- F = new Fb(m, Gb.A128KW, hb, F.wrapKey);
- break;
- case w.WRAP:
- F = this.repository.getCryptoContext(qa);
- if (!F)
- throw new Ta(g.KEYX_WRAPPING_KEY_MISSING, sa(qa)).setEntity(t);
- break;
- default:
- throw new Ta(g.UNSUPPORTED_KEYX_MECHANISM, W).setEntity(t);
- }
- F.unwrap(B.wrapKey, Cb, Mb, {
- result: function (g) {
- ca(t, B, qa, y, g);
- },
- error: function (g) {
- r(ya, function () {
- g instanceof L && g.setEntity(t);
- throw g;
- });
- }
- });
- }, ra);
- },
- error: ya.error
- });
- }, ra);
- }
- });
- }
- ());
- (function () {
- var w,
- t,
- F,
- I;
- function m(m, E, t, y, F) {
- r(F, function () {
- var v,
- X;
- switch (E) {
- case w.PSK:
- v = new vb(y),
- X = m.getEntityAuthenticationFactory(Ra.PSK);
- if (!X)
- throw new Ta(g.UNSUPPORTED_KEYX_MECHANISM, E);
- v = X.getCryptoContext(m, v);
- return new I(Y);
- case w.MGK:
- v = new qb(y);
- X = m.getEntityAuthenticationFactory(Ra.MGK);
- if (!X)
- throw new Ta(g.UNSUPPORTED_KEYX_MECHANISM, E);
- v = X.getCryptoContext(m, v);
- return new I(Y);
- case w.WRAP:
- v = m.getMslCryptoContext();
- v.unwrap(t, Cb, Mb, {
- result: function (g) {
- r(F, function () {
- return new I(g);
- });
- },
- error: F.error
- });
- break;
- default:
- throw new Ta(g.UNSUPPORTED_KEYX_MECHANISM, E);
- }
- });
- }
- w = {
- PSK: "PSK",
- MGK: "MGK",
- WRAP: "WRAP"
- };
- t = Kc = pc.extend({
- init: function E(g, r) {
- E.base.call(this, ob.JWK_LADDER);
- switch (g) {
- case w.WRAP:
- if (!r)
- throw new fa("Previous wrapping key based key exchange requires the previous wrapping key data and ID.");
- break;
- default:
- r = null;
- }
- Object.defineProperties(this, {
- mechanism: {
- value: g,
- writable: !1,
- configurable: !1
- },
- wrapdata: {
- value: r,
- writable: !1,
- configurable: !1
- }
- });
- },
- getKeydata: function () {
- var g;
- g = {};
- g.mechanism = this.mechanism;
- this.wrapdata && (g.wrapdata = sa(this.wrapdata));
- return g;
- },
- equals: function ua(g) {
- return g === this ? !0 : g instanceof Kc ? ua.base.call(this, g) && this.mechanism == g.mechanism && Xa(this.wrapdata, g.wrapdata) : !1;
- },
- uniqueKey: function X() {
- var g;
- g = X.base.call(this) + ":" + this.mechanism;
- this.wrapdata && (g += ":" + Ua(this.wrapdata));
- return g;
- }
- });
- F = Xd = qc.extend({
- init: function za(g, r, m, w, t) {
- za.base.call(this, g, ob.JWK_LADDER);
- Object.defineProperties(this, {
- wrapKey: {
- value: r,
- writable: !1,
- configurable: !1
- },
- wrapdata: {
- value: m,
- writable: !1,
- configurable: !1
- },
- encryptionKey: {
- value: w,
- writable: !1,
- configurable: !1
- },
- hmacKey: {
- value: t,
- writable: !1,
- configurable: !1
- }
- });
- },
- getKeydata: function () {
- var g;
- g = {};
- g.wrapkey = sa(this.wrapKey);
- g.wrapdata = sa(this.wrapdata);
- g.encryptionkey = sa(this.encryptionKey);
- g.hmackey = sa(this.hmacKey);
- return g;
- },
- equals: function wa(g) {
- return this === g ? !0 : g instanceof Xd ? wa.base.call(this, g) && Xa(this.wrapKey, g.wrapKey) && Xa(this.wrapdata, g.wrapdata) && Xa(this.encryptionKey, g.encryptionKey) && Xa(this.hmacKey, g.hmacKey) : !1;
- },
- uniqueKey: function ca() {
- return ca.base.call(this) + ":" + Ua(this.wrapKey) + ":" + Ua(this.wrapdata) + ":" + Ua(this.encryptionKey) + ":" + Ua(this.hmacKey);
- }
- });
- I = ic.extend({
- init: function (g) {
- g && g.rawKey && (g = g.rawKey);
- Object.defineProperties(this, {
- _wrapKey: {
- value: g,
- writable: !1,
- enumerable: !1,
- configurable: !1
- }
- });
- },
- encrypt: function (r, m) {
- m.error(new S(g.ENCRYPT_NOT_SUPPORTED));
- },
- decrypt: function (r, m) {
- m.error(new S(g.DECRYPT_NOT_SUPPORTED));
- },
- wrap: function (m, w) {
- r(w, function () {
- Ka.wrapKey("jwk", m.rawKey, this._wrapKey, Cb).then(function (g) {
- w.result(g);
- }, function (r) {
- w.error(new S(g.WRAP_ERROR));
- });
- }, this);
- },
- unwrap: function (m, w, t, y) {
- function B(m) {
- r(y, function () {
- switch (m.type) {
- case "secret":
- fc(m, y);
- break;
- case "public":
- Rb(m, y);
- break;
- case "private":
- gc(m, y);
- break;
- default:
- throw new S(g.UNSUPPORTED_KEY, "type: " + m.type);
- }
- });
- }
- r(y, function () {
- Ka.unwrapKey("jwk", m, this._wrapKey, Cb, w, !1, t).then(function (g) {
- B(g);
- }, function (r) {
- y.error(new S(g.UNWRAP_ERROR));
- });
- }, this);
- },
- sign: function (r, m) {
- m.error(new S(g.SIGN_NOT_SUPPORTED));
- },
- verify: function (r, m, w) {
- w.error(new S(g.VERIFY_NOT_SUPPORTED));
- }
- });
- md = rb.extend({
- init: function ra(g) {
- ra.base.call(this, ob.JWK_LADDER);
- Object.defineProperties(this, {
- repository: {
- value: g,
- writable: !1,
- enumerable: !1,
- configurable: !1
- }
- });
- },
- createRequestData: function (m, y, I) {
- r(I, function () {
- var r,
- m,
- B;
- r = y.mechanism;
- m = y.wrapdata;
- if (!r || r == w.WRAP && (!m || "string" !== typeof m))
- throw new la(g.JSON_PARSE_ERROR, "keydata " + JSON.stringify(y));
- if (!w[r])
- throw new Ta(g.UNIDENTIFIED_KEYX_MECHANISM, r);
- switch (r) {
- case w.WRAP:
- try {
- B = xa(m);
- } catch (Aa) {
- throw new Ta(g.KEYX_WRAPPING_KEY_MISSING, "keydata " + y.toString());
- }
- if (null == B || 0 == B.length)
- throw new Ta(g.KEYX_WRAPPING_KEY_MISSING, "keydata " + y.toString());
- break;
- default:
- B = null;
- }
- return new t(r, B);
- });
- },
- createResponseData: function (r, m, w) {
- var t,
- y,
- B,
- I,
- W,
- ra,
- ga;
- r = w.wrapkey;
- t = w.wrapdata;
- y = w.encryptionkey;
- B = w.hmackey;
- if (!(r && "string" === typeof r && t && "string" === typeof t && y && "string" === typeof y && B) || "string" !== typeof B)
- throw new la(g.JSON_PARSE_ERROR, "keydata " + JSON.stringify(w));
- try {
- I = xa(r);
- W = xa(t);
- } catch (Ab) {
- throw new S(g.INVALID_SYMMETRIC_KEY, "keydata " + JSON.stringify(w), Ab);
- }
- try {
- ra = xa(y);
- } catch (Ab) {
- throw new S(g.INVALID_ENCRYPTION_KEY, "keydata " + JSON.stringify(w), Ab);
- }
- try {
- ga = xa(B);
- } catch (Ab) {
- throw new S(g.INVALID_HMAC_KEY, "keydata " + JSON.stringify(w), Ab);
- }
- return new F(m, I, W, ra, ga);
- },
- generateResponse: function (w, y, W, ya) {
- var va,
- ga;
- function B(g, m, t) {
- va.generateSessionKeys(w, {
- result: function (w) {
- r(ya, function () {
- ra(g, m, t, w.encryptionKey, w.hmacKey);
- }, va);
- },
- error: function (g) {
- r(ya, function () {
- g instanceof L && g.setEntity(ga);
- throw g;
- });
- }
- });
- }
- function ra(g, t, B, I, F) {
- r(ya, function () {
- m(w, y.mechanism, y.wrapdata, g, {
- result: function (d) {
- d.wrap(t, {
- result: function (b) {
- M(t, B, I, F, b);
- },
- error: function (b) {
- r(ya, function () {
- b instanceof L && b.setEntity(ga);
- throw b;
- });
- }
- });
- },
- error: function (d) {
- r(ya, function () {
- d instanceof L && d.setEntity(ga);
- throw d;
- });
- }
- });
- }, va);
- }
- function M(g, m, w, t, y) {
- r(ya, function () {
- var d;
- d = new I(g);
- d.wrap(w, {
- result: function (b) {
- d.wrap(t, {
- result: function (a) {
- x(m, y, w, b, t, a);
- },
- error: function (a) {
- r(ya, function () {
- a instanceof L && a.setEntity(ga);
- throw a;
- });
- }
- });
- },
- error: function (b) {
- r(ya, function () {
- b instanceof L && b.setEntity(ga);
- throw b;
- });
- }
- });
- }, va);
- }
- function x(g, m, t, y, B, d) {
- r(ya, function () {
- var b;
- b = w.getTokenFactory();
- ga ? b.renewMasterToken(w, ga, t, B, {
- result: function (a) {
- r(ya, function () {
- var b,
- l;
- b = new mb(w, a);
- l = new F(a, m, g, y, d);
- return new rb.KeyExchangeData(l, b, ya);
- }, va);
- },
- error: function (a) {
- r(ya, function () {
- a instanceof L && a.setEntity(ga);
- throw a;
- });
- }
- }) : b.createMasterToken(w, W, t, B, {
- result: function (a) {
- r(ya, function () {
- var b,
- l;
- b = new mb(w, a);
- l = new F(a, m, g, y, d);
- return new rb.KeyExchangeData(l, b, ya);
- }, va);
- },
- error: ya.error
- });
- }, va);
- }
- va = this;
- r(ya, function () {
- var m,
- I;
- if (!(y instanceof t))
- throw new fa("Key request data " + JSON.stringify(y) + " was not created by this factory.");
- m = W;
- if (W instanceof lb) {
- if (!W.isVerified())
- throw new Ub(g.MASTERTOKEN_UNTRUSTED, W);
- ga = W;
- m = W.identity;
- }
- I = new Uint8Array(16);
- w.getRandom().nextBytes(I);
- Db(I, Cb, Mb, {
- result: function (g) {
- r(ya, function () {
- w.getMslCryptoContext().wrap(g, {
- result: function (r) {
- B(m, g, r);
- },
- error: function (g) {
- r(ya, function () {
- g instanceof L && g.setEntity(ga);
- throw g;
- }, va);
- }
- });
- }, va);
- },
- error: function (m) {
- r(ya, function () {
- throw new S(g.WRAP_KEY_CREATION_FAILURE, null, m).setEntity(ga);
- }, va);
- }
- });
- }, va);
- },
- getCryptoContext: function (m, y, W, M, qa) {
- var ra;
- function B(g, w, t, y, B) {
- r(qa, function () {
- var ga;
- ga = new I(B);
- ga.unwrap(w.encryptionKey, tb, Lb, {
- result: function (B) {
- ga.unwrap(w.hmacKey, ub, Vb, {
- result: function (g) {
- r(qa, function () {
- this.repository.addCryptoContext(w.wrapdata, ga);
- this.repository.removeCryptoContext(t);
- return new mb(m, w.masterToken, y, B, g);
- }, ra);
- },
- error: function (m) {
- r(qa, function () {
- m instanceof L && m.setEntity(g);
- throw m;
- });
- }
- });
- },
- error: function (m) {
- r(qa, function () {
- m instanceof L && m.setEntity(g);
- throw m;
- });
- }
- });
- }, ra);
- }
- ra = this;
- r(qa, function () {
- var M,
- ya;
- if (!(y instanceof t))
- throw new fa("Key request data " + JSON.stringify(y) + " was not created by this factory.");
- if (!(W instanceof F))
- throw new fa("Key response data " + JSON.stringify(W) + " was not created by this factory.");
- M = y.mechanism;
- ya = y.wrapdata;
- m.getEntityAuthenticationData(null, {
- result: function (t) {
- r(qa, function () {
- var y,
- ga,
- F;
- y = t.getIdentity();
- switch (M) {
- case w.PSK:
- ga = new vb(y);
- F = m.getEntityAuthenticationFactory(Ra.PSK);
- if (!F)
- throw new Ta(g.UNSUPPORTED_KEYX_MECHANISM, M).setEntity(t);
- ga = F.getCryptoContext(m, ga);
- ga = new I(ga.wrapKey);
- break;
- case w.MGK:
- ga = new qb(y);
- F = m.getEntityAuthenticationFactory(Ra.MGK);
- if (!F)
- throw new Ta(g.UNSUPPORTED_KEYX_MECHANISM, M).setEntity(t);
- ga = F.getCryptoContext(m, ga);
- ga = new I(ga.wrapKey);
- break;
- case w.WRAP:
- ga = this.repository.getCryptoContext(ya);
- if (!ga)
- throw new Ta(g.KEYX_WRAPPING_KEY_MISSING, sa(ya)).setEntity(t);
- break;
- default:
- throw new Ta(g.UNSUPPORTED_KEYX_MECHANISM, M).setEntity(t);
- }
- ga.unwrap(W.wrapKey, Cb, Mb, {
- result: function (g) {
- B(t, W, ya, y, g);
- },
- error: function (g) {
- r(qa, function () {
- g instanceof L && g.setEntity(t);
- throw g;
- });
- }
- });
- }, ra);
- },
- error: qa.error
- });
- }, ra);
- }
- });
- }
- ());
- Ve = oa.Class.create({
- addCryptoContext: function (g, r) {},
- getCryptoContext: function (g) {},
- removeCryptoContext: function (g) {}
- });
- (function () {
- var w,
- t,
- F,
- I;
- function m(m, r, t, y, I) {
- switch (t) {
- case w.JWE_RSA:
- case w.JWEJS_RSA:
- return new Fb(m, Gb.RSA_OAEP, hb, y, I);
- case w.JWK_RSA:
- return new Ec(m, r, y, I, Fc.WRAP_UNWRAP_OAEP);
- case w.JWK_RSAES:
- return new Ec(m, r, y, I, Fc.WRAP_UNWRAP_PKCS1);
- default:
- throw new S(g.UNSUPPORTED_KEYX_MECHANISM, t);
- }
- }
- w = Lc = {
- RSA: "RSA",
- ECC: "ECC",
- JWE_RSA: "JWE_RSA",
- JWEJS_RSA: "JWEJS_RSA",
- JWK_RSA: "JWK_RSA",
- JWK_RSAES: "JWK_RSAES"
- };
- t = Xc = pc.extend({
- init: function E(g, m, r, w) {
- E.base.call(this, ob.ASYMMETRIC_WRAPPED);
- Object.defineProperties(this, {
- keyPairId: {
- value: g,
- writable: !1,
- configurable: !1
- },
- mechanism: {
- value: m,
- writable: !1,
- configurable: !1
- },
- publicKey: {
- value: r,
- writable: !1,
- configurable: !1
- },
- privateKey: {
- value: w,
- writable: !1,
- configurable: !1
- }
- });
- },
- getKeydata: function () {
- var g;
- g = {};
- g.keypairid = this.keyPairId;
- g.mechanism = this.mechanism;
- g.publickey = sa(this.publicKey.getEncoded());
- return g;
- },
- equals: function ua(g) {
- var m;
- if (g === this)
- return !0;
- if (!(g instanceof Xc))
- return !1;
- m = this.privateKey === g.privateKey || this.privateKey && g.privateKey && Xa(this.privateKey.getEncoded(), g.privateKey.getEncoded());
- return ua.base.call(this, g) && this.keyPairId == g.keyPairId && this.mechanism == g.mechanism && Xa(this.publicKey.getEncoded(), g.publicKey.getEncoded()) && m;
- },
- uniqueKey: function X() {
- var g,
- m;
- g = this.publicKey.getEncoded();
- m = this.privateKey && this.privateKey.getEncoded();
- g = X.base.call(this) + ":" + this.keyPairId + ":" + this.mechanism + ":" + Ua(g);
- m && (g += ":" + Ua(m));
- return g;
- }
- });
- F = function (m, y) {
- r(y, function () {
- var r,
- I,
- F,
- B;
- r = m.keypairid;
- I = m.mechanism;
- F = m.publickey;
- if (!r || "string" !== typeof r || !I || !F || "string" !== typeof F)
- throw new la(g.JSON_PARSE_ERROR, "keydata " + JSON.stringify(m));
- if (!w[I])
- throw new Ta(g.UNIDENTIFIED_KEYX_MECHANISM, I);
- try {
- B = xa(F);
- switch (I) {
- case w.JWE_RSA:
- case w.JWEJS_RSA:
- case w.JWK_RSA:
- bd(B, Cc, Mb, {
- result: function (g) {
- y.result(new t(r, I, g, null));
- },
- error: function (g) {
- y.error(g);
- }
- });
- break;
- case w.JWK_RSAES:
- bd(B, $c, Mb, {
- result: function (g) {
- y.result(new t(r, I, g, null));
- },
- error: function (g) {
- y.error(g);
- }
- });
- break;
- default:
- throw new S(g.UNSUPPORTED_KEYX_MECHANISM, I);
- }
- } catch (W) {
- if (!(W instanceof L))
- throw new S(g.INVALID_PUBLIC_KEY, "keydata " + JSON.stringify(m), W);
- throw W;
- }
- });
- };
- I = Yd = qc.extend({
- init: function za(g, m, r, w) {
- za.base.call(this, g, ob.ASYMMETRIC_WRAPPED);
- Object.defineProperties(this, {
- keyPairId: {
- value: m,
- writable: !1,
- configurable: !1
- },
- encryptionKey: {
- value: r,
- writable: !1,
- configurable: !1
- },
- hmacKey: {
- value: w,
- writable: !1,
- configurable: !1
- }
- });
- },
- getKeydata: function () {
- var g;
- g = {};
- g.keypairid = this.keyPairId;
- g.encryptionkey = sa(this.encryptionKey);
- g.hmackey = sa(this.hmacKey);
- return g;
- },
- equals: function wa(g) {
- return this === g ? !0 : g instanceof Yd ? wa.base.call(this, g) && this.keyPairId == g.keyPairId && Xa(this.encryptionKey, g.encryptionKey) && Xa(this.hmacKey, g.hmacKey) : !1;
- },
- uniqueKey: function ca() {
- return ca.base.call(this) + ":" + this.keyPairId + ":" + Ua(this.encryptionKey) + ":" + Ua(this.hmacKey);
- }
- });
- Dd = rb.extend({
- init: function ra() {
- ra.base.call(this, ob.ASYMMETRIC_WRAPPED);
- },
- createRequestData: function (g, m, r) {
- F(m, r);
- },
- createResponseData: function (m, r, w) {
- var t,
- y,
- B,
- F;
- m = w.keypairid;
- t = w.encryptionkey;
- y = w.hmackey;
- if (!m || "string" !== typeof m || !t || "string" !== typeof t || !y || "string" !== typeof y)
- throw new la(g.JSON_PARSE_ERROR, "keydata " + JSON.stringify(w));
- try {
- B = xa(t);
- } catch (Sa) {
- throw new S(g.INVALID_ENCRYPTION_KEY, "keydata " + JSON.stringify(w), Sa);
- }
- try {
- F = xa(y);
- } catch (Sa) {
- throw new S(g.INVALID_HMAC_KEY, "keydata " + JSON.stringify(w), Sa);
- }
- return new I(r, m, B, F);
- },
- generateResponse: function (g, w, y, F) {
- var M;
- function B(t, B) {
- r(F, function () {
- var ga;
- ga = m(g, w.keyPairId, w.mechanism, null, w.publicKey);
- ga.wrap(t, {
- result: function (g) {
- r(F, function () {
- ga.wrap(B, {
- result: function (m) {
- W(t, g, B, m);
- },
- error: function (g) {
- r(F, function () {
- g instanceof L && y instanceof lb && g.setEntity(y);
- throw g;
- }, M);
- }
- });
- }, M);
- },
- error: function (g) {
- r(F, function () {
- g instanceof L && y instanceof lb && g.setEntity(y);
- throw g;
- }, M);
- }
- });
- }, M);
- }
- function W(m, t, B, W) {
- r(F, function () {
- var ga;
- ga = g.getTokenFactory();
- y instanceof lb ? ga.renewMasterToken(g, y, m, B, {
- result: function (m) {
- r(F, function () {
- var r,
- y;
- r = new mb(g, m);
- y = new I(m, w.keyPairId, t, W);
- return new rb.KeyExchangeData(y, r, F);
- }, M);
- },
- error: function (g) {
- r(F, function () {
- g instanceof L && g.setEntity(y);
- throw g;
- }, M);
- }
- }) : ga.createMasterToken(g, y, m, B, {
- result: function (m) {
- r(F, function () {
- var r,
- y;
- r = new mb(g, m);
- y = new I(m, w.keyPairId, t, W);
- return new rb.KeyExchangeData(y, r, F);
- }, M);
- },
- error: F.error
- });
- }, M);
- }
- M = this;
- r(F, function () {
- if (!(w instanceof t))
- throw new fa("Key request data " + JSON.stringify(w) + " was not created by this factory.");
- this.generateSessionKeys(g, {
- result: function (g) {
- B(g.encryptionKey, g.hmacKey);
- },
- error: function (g) {
- r(F, function () {
- g instanceof L && y instanceof lb && g.setEntity(y);
- throw g;
- }, M);
- }
- });
- }, M);
- },
- getCryptoContext: function (w, y, F, M, qa) {
- var B;
- B = this;
- r(qa, function () {
- var W,
- ra,
- ya;
- if (!(y instanceof t))
- throw new fa("Key request data " + JSON.stringify(y) + " was not created by this factory.");
- if (!(F instanceof I))
- throw new fa("Key response data " + JSON.stringify(F) + " was not created by this factory.");
- W = y.keyPairId;
- ra = F.keyPairId;
- if (W != ra)
- throw new Ta(g.KEYX_RESPONSE_REQUEST_MISMATCH, "request " + W + "; response " + ra).setEntity(M);
- ra = y.privateKey;
- if (!ra)
- throw new Ta(g.KEYX_PRIVATE_KEY_MISSING, "request Asymmetric private key").setEntity(M);
- ya = m(w, W, y.mechanism, ra, null);
- ya.unwrap(F.encryptionKey, tb, Lb, {
- result: function (g) {
- ya.unwrap(F.hmacKey, ub, Vb, {
- result: function (m) {
- w.getEntityAuthenticationData(null, {
- result: function (t) {
- r(qa, function () {
- var r;
- r = t.getIdentity();
- return new mb(w, F.masterToken, r, g, m);
- }, B);
- },
- error: function (g) {
- r(qa, function () {
- g instanceof L && g.setEntity(M);
- throw g;
- }, B);
- }
- });
- },
- error: function (g) {
- r(qa, function () {
- g instanceof L && g.setEntity(M);
- throw g;
- }, B);
- }
- });
- },
- error: function (g) {
- r(qa, function () {
- g instanceof L && g.setEntity(M);
- throw g;
- }, B);
- }
- });
- }, B);
- }
- });
- }
- ());
- Ue = oa.Class.create({
- init: function (g) {
- var m,
- r,
- t,
- I,
- v,
- E,
- M,
- X;
- m = eb.parser();
- r = [];
- t = [];
- M = 0;
- X = !1;
- m.onerror = function (g) {
- X || (X = !0, m.end());
- };
- m.onopenobject = function (g) {
- var m;
- if (I)
- I[E] = {},
- t.push(I),
- I = I[E];
- else if (v) {
- m = {};
- t.push(v);
- v.push(m);
- I = m;
- v = Y;
- } else
- I = {};
- E = g;
- };
- m.oncloseobject = function () {
- var g;
- g = t.pop();
- g ? "object" === typeof g ? I = g : (I = Y, v = g) : (r.push(I), M = m.index, I = Y);
- };
- m.onopenarray = function () {
- var g;
- if (I)
- I[E] = [], t.push(I), v = I[E], I = Y;
- else if (v) {
- g = [];
- t.push(v);
- v.push(g);
- v = g;
- } else
- v = [];
- };
- m.onclosearray = function () {
- var g;
- g = t.pop();
- g ? "object" === typeof g ? (I = g, v = Y) : v = g : (r.push(v), M = m.index, v = Y);
- };
- m.onkey = function (g) {
- E = g;
- };
- m.onvalue = function (g) {
- I ? I[E] = g : v ? v.push(g) : (r.push(g), M = m.index);
- };
- m.write(g).close();
- Object.defineProperties(this, {
- _values: {
- value: r,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- _lastIndex: {
- value: M,
- writable: !0,
- enumerable: !1,
- configurable: !1
- }
- });
- },
- more: function () {
- return 0 < this._values.length;
- },
- nextValue: function () {
- return 0 == this._values.length ? Y : this._values.shift();
- },
- lastIndex: function () {
- return this._lastIndex;
- }
- });
- (function () {
- var m,
- w,
- t,
- F,
- I;
- m = nd = "entityauthdata";
- w = $d = "mastertoken";
- t = ae = "headerdata";
- F = be = "errordata";
- I = od = "signature";
- Zd = function (v, y, M, X) {
- r(X, function () {
- var r,
- E,
- ca,
- ra,
- B,
- W;
- r = y[m];
- E = y[w];
- ca = y[I];
- if (r && "object" !== typeof r || E && "object" !== typeof E || "string" !== typeof ca)
- throw new la(g.JSON_PARSE_ERROR, "header/errormsg " + JSON.stringify(y));
- try {
- ra = xa(ca);
- } catch (ya) {
- throw new Fa(g.HEADER_SIGNATURE_INVALID, "header/errormsg " + JSON.stringify(y), ya);
- }
- B = null;
- r && (B = Md(v, r));
- W = y[t];
- if (W != Y && null != W) {
- if ("string" !== typeof W)
- throw new la(g.JSON_PARSE_ERROR, "header/errormsg " + JSON.stringify(y));
- E ? Wb(v, E, {
- result: function (g) {
- pd(v, W, B, g, ra, M, X);
- },
- error: function (g) {
- X.error(g);
- }
- }) : pd(v, W, B, null, ra, M, X);
- } else if (r = y[F], r != Y && null != r) {
- if ("string" !== typeof r)
- throw new la(g.JSON_PARSE_ERROR, "header/errormsg " + JSON.stringify(y));
- ce(v, r, B, ra, X);
- } else
- throw new la(g.JSON_PARSE_ERROR, JSON.stringify(y));
- });
- };
- }
- ());
- (function () {
- function t(g, m) {
- this.errordata = g;
- this.signature = m;
- }
- Qb = oa.Class.create({
- init: function (m, t, F, I, v, E, M, X, x, wa) {
- var w;
- w = this;
- r(wa, function () {
- var y,
- B;
- 0 > E && (E = -1);
- if (0 > I || I > Na)
- throw new fa("Message ID " + I + " is out of range.");
- if (!t)
- throw new Fa(g.MESSAGE_ENTITY_NOT_FOUND);
- if (x)
- return Object.defineProperties(this, {
- entityAuthenticationData: {
- value: t,
- writable: !1,
- configurable: !1
- },
- recipient: {
- value: F,
- writable: !1,
- configurable: !1
- },
- messageId: {
- value: I,
- writable: !1,
- configurable: !1
- },
- errorCode: {
- value: v,
- writable: !1,
- configurable: !1
- },
- internalCode: {
- value: E,
- writable: !1,
- configurable: !1
- },
- errorMessage: {
- value: M,
- writable: !1,
- configurable: !1
- },
- userMessage: {
- value: X,
- writable: !1,
- configurable: !1
- },
- errordata: {
- value: x.errordata,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- signature: {
- value: x.signature,
- writable: !1,
- enumerable: !1,
- configurable: !1
- }
- }), this;
- y = {};
- F && (y.recipient = F);
- y.messageid = I;
- y.errorcode = v;
- 0 < E && (y.internalcode = E);
- M && (y.errormsg = M);
- X && (y.usermsg = X);
- try {
- B = m.getEntityAuthenticationFactory(t.scheme).getCryptoContext(m, t);
- } catch (W) {
- throw W instanceof L && (W.setEntity(t), W.setMessageId(I)),
- W;
- }
- y = Qa(JSON.stringify(y), Ma);
- B.encrypt(y, {
- result: function (g) {
- r(wa, function () {
- B.sign(g, {
- result: function (m) {
- r(wa, function () {
- Object.defineProperties(this, {
- entityAuthenticationData: {
- value: t,
- writable: !1,
- configurable: !1
- },
- recipient: {
- value: F,
- writable: !1,
- configurable: !1
- },
- messageId: {
- value: I,
- writable: !1,
- configurable: !1
- },
- errorCode: {
- value: v,
- writable: !1,
- configurable: !1
- },
- internalCode: {
- value: E,
- writable: !1,
- configurable: !1
- },
- errorMessage: {
- value: M,
- writable: !1,
- configurable: !1
- },
- userMessage: {
- value: X,
- writable: !1,
- configurable: !1
- },
- errordata: {
- value: g,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- signature: {
- value: m,
- writable: !1,
- enumerable: !1,
- configurable: !1
- }
- });
- return this;
- }, w);
- },
- error: function (g) {
- r(wa, function () {
- g instanceof L && (g.setEntity(t), g.setMessageId(I));
- throw g;
- }, w);
- }
- });
- }, w);
- },
- error: function (g) {
- r(wa, function () {
- g instanceof L && (g.setEntity(t), g.setMessageId(I));
- throw g;
- }, w);
- }
- });
- }, w);
- },
- toJSON: function () {
- var g;
- g = {};
- g[nd] = this.entityAuthenticationData;
- g[be] = sa(this.errordata);
- g[od] = sa(this.signature);
- return g;
- }
- });
- de = function (g, m, r, t, v, E, M, X, x) {
- new Qb(g, m, r, t, v, E, M, X, null, x);
- };
- ce = function (w, y, F, I, v) {
- r(v, function () {
- var E,
- M,
- X;
- if (!F)
- throw new Fa(g.MESSAGE_ENTITY_NOT_FOUND);
- try {
- M = F.scheme;
- X = w.getEntityAuthenticationFactory(M);
- if (!X)
- throw new Bb(g.ENTITYAUTH_FACTORY_NOT_FOUND, M);
- E = X.getCryptoContext(w, F);
- } catch (za) {
- throw za instanceof L && za.setEntity(F),
- za;
- }
- try {
- y = xa(y);
- } catch (za) {
- throw new Fa(g.HEADER_DATA_INVALID, y, za).setEntity(F);
- }
- if (!y || 0 == y.length)
- throw new Fa(g.HEADER_DATA_MISSING, y).setEntity(F);
- E.verify(y, I, {
- result: function (X) {
- r(v, function () {
- if (!X)
- throw new S(g.MESSAGE_VERIFICATION_FAILED).setEntity(F);
- E.decrypt(y, {
- result: function (E) {
- r(v, function () {
- var r,
- X,
- B,
- M,
- x,
- qa,
- da,
- za;
- r = Ja(E, Ma);
- try {
- X = JSON.parse(r);
- } catch (va) {
- if (va instanceof SyntaxError)
- throw new la(g.JSON_PARSE_ERROR, "errordata " + r, va).setEntity(F);
- throw va;
- }
- B = X.recipient !== Y ? X.recipient : null;
- M = parseInt(X.messageid);
- x = parseInt(X.errorcode);
- qa = parseInt(X.internalcode);
- da = X.errormsg;
- za = X.usermsg;
- if (B && "string" !== typeof B || !M || M != M || !x || x != x || X.internalcode && qa != qa || da && "string" !== typeof da || za && "string" !== typeof za)
- throw new la(g.JSON_PARSE_ERROR, "errordata " + r).setEntity(F);
- if (0 > M || M > Na)
- throw new Fa(g.MESSAGE_ID_OUT_OF_RANGE, "errordata " + r).setEntity(F);
- X = !1;
- for (var ua in m)
- if (m[ua] == x) {
- X = !0;
- break;
- }
- X || (x = m.FAIL);
- if (qa) {
- if (0 > qa)
- throw new Fa(g.INTERNAL_CODE_NEGATIVE, "errordata " + r).setEntity(F).setMessageId(M);
- } else
- qa = -1;
- r = new t(y, I);
- new Qb(w, F, B, M, x, qa, da, za, r, v);
- });
- },
- error: function (g) {
- r(v, function () {
- g instanceof L && g.setEntity(F);
- throw g;
- });
- }
- });
- });
- },
- error: function (g) {
- r(v, function () {
- g instanceof L && g.setEntity(F);
- throw g;
- });
- }
- });
- });
- };
- }
- ());
- We = oa.Class.create({
- getUserMessage: function (g, m) {}
- });
- (function () {
- qd = function (g, m) {
- var r,
- t;
- if (!g || !m)
- return null;
- r = g.compressionAlgorithms.filter(function (g) {
- for (var r = 0; r < m.compressionAlgorithms.length; ++r)
- if (g == m.compressionAlgorithms[r])
- return !0;
- return !1;
- });
- t = g.languages.filter(function (g) {
- for (var r = 0; r < m.languages.length; ++r)
- if (g == m.languages[r])
- return !0;
- return !1;
- });
- return new rc(r, t);
- };
- rc = oa.Class.create({
- init: function (g, m) {
- g || (g = []);
- m || (m = []);
- g.sort();
- Object.defineProperties(this, {
- compressionAlgorithms: {
- value: g,
- writable: !1,
- enumerable: !0,
- configurable: !1
- },
- languages: {
- value: m,
- writable: !1,
- enumerable: !0,
- configurable: !1
- }
- });
- },
- toJSON: function () {
- var g;
- g = {};
- g.compressionalgos = this.compressionAlgorithms;
- g.languages = this.languages;
- return g;
- },
- equals: function (g) {
- return this === g ? !0 : g instanceof rc ? yd(this.compressionAlgorithms, g.compressionAlgorithms) && yd(this.languages, g.languages) : !1;
- },
- uniqueKey: function () {
- return this.compressionAlgorithms.join(":") + "|" + this.languages.join(":");
- }
- });
- ee = function (m) {
- var r,
- t,
- I;
- r = m.compressionalgos;
- t = m.languages;
- if (r && !(r instanceof Array) || t && !(t instanceof Array))
- throw new la(g.JSON_PARSE_ERROR, "capabilities " + JSON.stringify(m));
- m = [];
- for (var F = 0; r && F < r.length; ++F) {
- I = r[F];
- Sb[I] && m.push(I);
- }
- return new rc(m, t);
- };
- }
- ());
- (function () {
- var wa,
- ca;
- function m(g, m, r, v, t) {
- this.customer = g;
- this.sender = m;
- this.messageCryptoContext = r;
- this.headerdata = v;
- this.signature = t;
- }
- function t(g, m, r, v, t, w, y, E, I, ga, F, X, M, pa, ca, d, b, a, c, l) {
- return {
- cryptoContext: {
- value: m,
- writable: !1,
- configurable: !1
- },
- customer: {
- value: r,
- writable: !1,
- configurable: !1
- },
- entityAuthenticationData: {
- value: v,
- writable: !1,
- configurable: !1
- },
- masterToken: {
- value: t,
- writable: !1,
- configurable: !1
- },
- sender: {
- value: w,
- writable: !1,
- configurable: !1
- },
- messageId: {
- value: y,
- writable: !1,
- configurable: !1
- },
- nonReplayableId: {
- value: d,
- writable: !1,
- configurable: !1
- },
- keyRequestData: {
- value: E,
- writable: !1,
- configurable: !1
- },
- keyResponseData: {
- value: I,
- writable: !1,
- configurable: !1
- },
- userAuthenticationData: {
- value: ga,
- writable: !1,
- configurable: !1
- },
- userIdToken: {
- value: F,
- writable: !1,
- configurable: !1
- },
- serviceTokens: {
- value: X,
- writable: !1,
- configurable: !1
- },
- peerMasterToken: {
- value: M,
- writable: !1,
- configurable: !1
- },
- peerUserIdToken: {
- value: pa,
- writable: !1,
- configurable: !1
- },
- peerServiceTokens: {
- value: ca,
- writable: !1,
- configurable: !1
- },
- messageCapabilities: {
- value: a,
- writable: !1,
- configurable: !1
- },
- renewable: {
- value: b,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- headerdata: {
- value: c,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- signature: {
- value: l,
- writable: !1,
- enumerable: !1,
- configurable: !1
- }
- };
- }
- function y(m, r, v) {
- var t;
- if (v) {
- if (r = m.getMslStore().getCryptoContext(v))
- return r;
- if (!v.isVerified() || !v.isDecrypted())
- throw new Ub(g.MASTERTOKEN_UNTRUSTED, v);
- return new mb(m, v);
- }
- v = r.scheme;
- t = m.getEntityAuthenticationFactory(v);
- if (!t)
- throw new Bb(g.ENTITYAUTH_FACTORY_NOT_FOUND, v);
- return t.getCryptoContext(m, r);
- }
- function F(m, v, t, w, y) {
- r(y, function () {
- v.verify(t, w, {
- result: function (m) {
- r(y, function () {
- if (!m)
- throw new S(g.MESSAGE_VERIFICATION_FAILED);
- v.decrypt(t, {
- result: function (g) {
- r(y, function () {
- return Ja(g, Ma);
- });
- },
- error: function (g) {
- y.error(g);
- }
- });
- });
- },
- error: function (g) {
- y.error(g);
- }
- });
- });
- }
- function I(g, m, v) {
- r(v, function () {
- if (m)
- Ud(g, m, v);
- else
- return null;
- });
- }
- function v(g, m, v, t) {
- r(t, function () {
- if (m)
- Xb(g, m, v, t);
- else
- return null;
- });
- }
- function E(g, m, v, t) {
- r(t, function () {
- if (v)
- ie(g, m, v, t);
- else
- return null;
- });
- }
- function x(m, v, t, w, y, E, I) {
- var F;
- function B(v, I, X) {
- var ga,
- M;
- if (I >= v.length) {
- ga = [];
- for (M in F)
- ga.push(F[M]);
- X.result(ga);
- } else {
- ga = v[I];
- if ("object" !== typeof ga)
- throw new la(g.JSON_PARSE_ERROR, "headerdata " + E);
- Mc(m, ga, t, w, y, {
- result: function (g) {
- r(X, function () {
- F[g.uniqueKey()] = g;
- B(v, I + 1, X);
- });
- },
- error: function (g) {
- X.error(g);
- }
- });
- }
- }
- F = {};
- r(I, function () {
- if (v) {
- if (!(v instanceof Array))
- throw new la(g.JSON_PARSE_ERROR, "headerdata " + E);
- B(v, 0, I);
- } else
- return [];
- });
- }
- function X(m, v, t, w, y, E) {
- function B(m, v, t) {
- r(t, function () {
- var r;
- r = v.peermastertoken;
- if (r && "object" !== typeof r)
- throw new la(g.JSON_PARSE_ERROR, "headerdata " + y);
- if (!r)
- return null;
- Wb(m, r, t);
- });
- }
- function I(m, v, t, w) {
- r(w, function () {
- var r;
- r = v.peeruseridtoken;
- if (r && "object" !== typeof r)
- throw new la(g.JSON_PARSE_ERROR, "headerdata " + y);
- if (!r)
- return null;
- Xb(m, r, t, w);
- });
- }
- r(E, function () {
- if (!m.isPeerToPeer())
- return {
- peerMasterToken: null,
- peerUserIdToken: null,
- peerServiceTokens: []
- };
- B(m, v, {
- result: function (g) {
- r(E, function () {
- var B;
- B = t ? t.masterToken : g;
- I(m, v, B, {
- result: function (t) {
- r(E, function () {
- x(m, v.peerservicetokens, B, t, w, y, {
- result: function (m) {
- r(E, function () {
- return {
- peerMasterToken: g,
- peerUserIdToken: t,
- peerServiceTokens: m
- };
- });
- },
- error: function (g) {
- r(E, function () {
- g instanceof L && (g.setEntity(B), g.setUser(t));
- throw g;
- });
- }
- });
- });
- },
- error: function (g) {
- r(E, function () {
- g instanceof L && g.setEntity(B);
- throw g;
- });
- }
- });
- });
- },
- error: E.error
- });
- });
- }
- function za(m, v, t, w) {
- var E;
- function y(g, v) {
- r(w, function () {
- if (v >= g.length)
- return E;
- Td(m, g[v], {
- result: function (m) {
- r(w, function () {
- E.push(m);
- y(g, v + 1);
- });
- },
- error: function (g) {
- w.error(g);
- }
- });
- });
- }
- E = [];
- r(w, function () {
- var m;
- m = v.keyrequestdata;
- if (!m)
- return E;
- if (!(m instanceof Array))
- throw new la(g.JSON_PARSE_ERROR, "headerdata " + t);
- y(m, 0);
- });
- }
- wa = ge = oa.Class.create({
- init: function (g, m, r, v, t, w, y, E, I) {
- Object.defineProperties(this, {
- messageId: {
- value: g,
- writable: !1,
- configurable: !1
- },
- nonReplayableId: {
- value: m,
- writable: !1,
- configurable: !1
- },
- renewable: {
- value: r,
- writable: !1,
- configurable: !1
- },
- capabilities: {
- value: v,
- writable: !1,
- configurable: !1
- },
- keyRequestData: {
- value: t,
- writable: !1,
- configurable: !1
- },
- keyResponseData: {
- value: w,
- writable: !1,
- configurable: !1
- },
- userAuthData: {
- value: y,
- writable: !1,
- configurable: !1
- },
- userIdToken: {
- value: E,
- writable: !1,
- configurable: !1
- },
- serviceTokens: {
- value: I,
- writable: !1,
- configurable: !1
- }
- });
- }
- });
- ca = he = oa.Class.create({
- init: function (g, m, r) {
- Object.defineProperties(this, {
- peerMasterToken: {
- value: g,
- writable: !1,
- configurable: !1
- },
- peerUserIdToken: {
- value: m,
- writable: !1,
- configurable: !1
- },
- peerServiceTokens: {
- value: r,
- writable: !1,
- configurable: !1
- }
- });
- }
- });
- sc = oa.Class.create({
- init: function (g, m, v, w, E, I, F) {
- var X;
- function B(B) {
- r(F, function () {
- var ga,
- M,
- ca,
- pa,
- x,
- d,
- b,
- a,
- c,
- l,
- q,
- n,
- k,
- p,
- h,
- f,
- u;
- m = v ? null : m;
- ga = w.nonReplayableId;
- M = w.renewable;
- ca = w.capabilities;
- pa = w.messageId;
- x = w.keyRequestData ? w.keyRequestData : [];
- d = w.keyResponseData;
- b = w.userAuthData;
- a = w.userIdToken;
- c = w.serviceTokens ? w.serviceTokens : [];
- g.isPeerToPeer() ? (l = E.peerMasterToken, q = E.peerUserIdToken, n = E.peerServiceTokens ? E.peerServiceTokens : []) : (q = l = null, n = []);
- if (0 > pa || pa > Na)
- throw new fa("Message ID " + pa + " is out of range.");
- if (!m && !v)
- throw new fa("Message entity authentication data or master token must be provided.");
- d ? g.isPeerToPeer() ? (k = v, p = d.masterToken) : (k = d.masterToken, p = l) : (k = v, p = l);
- if (a && (!k || !a.isBoundTo(k)))
- throw new fa("User ID token must be bound to a master token.");
- if (q && (!p || !q.isBoundTo(p)))
- throw new fa("Peer user ID token must be bound to a peer master token.");
- c.forEach(function (b) {
- if (b.isMasterTokenBound() && (!k || !b.isBoundTo(k)))
- throw new fa("Master token bound service tokens must be bound to the provided master token.");
- if (b.isUserIdTokenBound() && (!a || !b.isBoundTo(a)))
- throw new fa("User ID token bound service tokens must be bound to the provided user ID token.");
- }, this);
- n.forEach(function (a) {
- if (a.isMasterTokenBound() && (!p || !a.isBoundTo(p)))
- throw new fa("Master token bound peer service tokens must be bound to the provided peer master token.");
- if (a.isUserIdTokenBound() && (!q || !a.isBoundTo(q)))
- throw new fa("User ID token bound peer service tokens must be bound to the provided peer user ID token.");
- }, this);
- if (I) {
- h = I.customer;
- f = I.messageCryptoContext;
- u = t(g, f, h, m, v, B, pa, x, d, b, a, c, l, q, n, ga, M, ca, I.headerdata, I.signature);
- Object.defineProperties(this, u);
- return this;
- }
- h = a ? a.customer : null;
- u = {};
- B && (u.sender = B);
- u.messageid = pa;
- "number" === typeof ga && (u.nonreplayableid = ga);
- u.renewable = M;
- ca && (u.capabilities = ca);
- 0 < x.length && (u.keyrequestdata = x);
- d && (u.keyresponsedata = d);
- b && (u.userauthdata = b);
- a && (u.useridtoken = a);
- 0 < c.length && (u.servicetokens = c);
- l && (u.peermastertoken = l);
- q && (u.peeruseridtoken = q);
- 0 < n.length && (u.peerservicetokens = n);
- try {
- f = y(g, m, v);
- } catch (A) {
- throw A instanceof L && (A.setEntity(v), A.setEntity(m), A.setUser(a), A.setUser(b), A.setMessageId(pa)),
- A;
- }
- u = Qa(JSON.stringify(u), Ma);
- f.encrypt(u, {
- result: function (k) {
- r(F, function () {
- f.sign(k, {
- result: function (p) {
- r(F, function () {
- var u;
- u = t(g, f, h, m, v, B, pa, x, d, b, a, c, l, q, n, ga, M, ca, k, p);
- Object.defineProperties(this, u);
- return this;
- }, X);
- },
- error: function (f) {
- r(F, function () {
- f instanceof L && (f.setEntity(v), f.setEntity(m), f.setUser(a), f.setUser(b), f.setMessageId(pa));
- throw f;
- }, X);
- }
- });
- }, X);
- },
- error: function (f) {
- r(F, function () {
- f instanceof L && (f.setEntity(v), f.setEntity(m), f.setUser(a), f.setUser(b), f.setMessageId(pa));
- throw f;
- }, X);
- }
- });
- }, X);
- }
- X = this;
- r(F, function () {
- I ? B(I.sender) : v ? g.getEntityAuthenticationData(null, {
- result: function (g) {
- g = g.getIdentity();
- B(g);
- },
- error: F.error
- }) : B(null);
- }, X);
- },
- isEncrypting: function () {
- return this.masterToken || xb(this.entityAuthenticationData.scheme);
- },
- isRenewable: function () {
- return this.renewable;
- },
- toJSON: function () {
- var g;
- g = {};
- this.masterToken ? g[$d] = this.masterToken : g[nd] = this.entityAuthenticationData;
- g[ae] = sa(this.headerdata);
- g[od] = sa(this.signature);
- return g;
- }
- });
- fe = function (g, m, r, v, t, w) {
- new sc(g, m, r, v, t, null, w);
- };
- pd = function (t, w, M, ua, qa, da, Aa) {
- r(Aa, function () {
- var B,
- W;
- M = ua ? null : M;
- if (!M && !ua)
- throw new Fa(g.MESSAGE_ENTITY_NOT_FOUND);
- B = w;
- try {
- w = xa(B);
- } catch (ga) {
- throw new Fa(g.HEADER_DATA_INVALID, B, ga);
- }
- if (!w || 0 == w.length)
- throw new Fa(g.HEADER_DATA_MISSING, B);
- try {
- W = y(t, M, ua);
- } catch (ga) {
- throw ga instanceof L && (ga.setEntity(ua), ga.setEntity(M)),
- ga;
- }
- F(t, W, w, qa, {
- result: function (y) {
- r(Aa, function () {
- var B,
- F,
- ga,
- pa,
- ra;
- try {
- B = JSON.parse(y);
- } catch (d) {
- if (d instanceof SyntaxError)
- throw new la(g.JSON_PARSE_ERROR, "headerdata " + y, d).setEntity(ua).setEntity(M);
- throw d;
- }
- F = parseInt(B.messageid);
- if (!F || F != F)
- throw new la(g.JSON_PARSE_ERROR, "headerdata " + y).setEntity(ua).setEntity(M);
- if (0 > F || F > Na)
- throw new Fa(g.MESSAGE_ID_OUT_OF_RANGE, "headerdata " + y).setEntity(ua).setEntity(M);
- ga = ua ? B.sender : null;
- if (ua && (!ga || "string" !== typeof ga))
- throw new la(g.JSON_PARSE_ERROR, "headerdata " + y).setEntity(ua).setEntity(M).setMessageId(F);
- pa = B.keyresponsedata;
- if (pa && "object" !== typeof pa)
- throw new la(g.JSON_PARSE_ERROR, "headerdata " + y).setEntity(ua).setEntity(M).setMessageId(F);
- ra = Aa;
- Aa = {
- result: function (d) {
- ra.result(d);
- },
- error: function (d) {
- d instanceof L && (d.setEntity(ua), d.setEntity(M), d.setMessageId(F));
- ra.error(d);
- }
- };
- I(t, pa, {
- result: function (d) {
- r(Aa, function () {
- var b,
- a;
- b = !t.isPeerToPeer() && d ? d.masterToken : ua;
- a = B.useridtoken;
- if (a && "object" !== typeof a)
- throw new la(g.JSON_PARSE_ERROR, "headerdata " + y);
- v(t, a, b, {
- result: function (a) {
- r(Aa, function () {
- var l;
- l = B.userauthdata;
- if (l && "object" !== typeof l)
- throw new la(g.JSON_PARSE_ERROR, "headerdata " + y);
- E(t, b, l, {
- result: function (l) {
- r(Aa, function () {
- var c,
- k,
- p;
- if (l) {
- k = l.scheme;
- p = t.getUserAuthenticationFactory(k);
- if (!p)
- throw new Ca(g.USERAUTH_FACTORY_NOT_FOUND, k).setUser(a).setUser(l);
- k = ua ? ua.identity : M.getIdentity();
- c = p.authenticate(t, k, l, a);
- } else
- c = a ? a.customer : null;
- x(t, B.servicetokens, b, a, da, y, {
- result: function (b) {
- r(Aa, function () {
- var f,
- h,
- k,
- p;
- f = B.nonreplayableid !== Y ? parseInt(B.nonreplayableid) : null;
- h = B.renewable;
- if (f != f || "boolean" !== typeof h)
- throw new la(g.JSON_PARSE_ERROR, "headerdata " + y);
- if (0 > f || f > Na)
- throw new Fa(g.NONREPLAYABLE_ID_OUT_OF_RANGE, "headerdata " + y);
- k = null;
- p = B.capabilities;
- if (p) {
- if ("object" !== typeof p)
- throw new la(g.JSON_PARSE_ERROR, "headerdata " + y);
- k = ee(p);
- }
- za(t, B, y, {
- result: function (p) {
- X(t, B, d, da, y, {
- result: function (u) {
- r(Aa, function () {
- var q,
- n,
- A,
- G;
- q = u.peerMasterToken;
- n = u.peerUserIdToken;
- A = u.peerServiceTokens;
- G = new wa(F, f, h, k, p, d, l, a, b);
- q = new ca(q, n, A);
- n = new m(c, ga, W, w, qa);
- new sc(t, M, ua, G, q, n, Aa);
- });
- },
- error: Aa.error
- });
- },
- error: function (b) {
- r(Aa, function () {
- b instanceof L && (b.setUser(a), b.setUser(l));
- throw b;
- });
- }
- });
- });
- },
- error: function (h) {
- r(Aa, function () {
- h instanceof L && (h.setEntity(b), h.setUser(a), h.setUser(l));
- throw h;
- });
- }
- });
- });
- },
- error: Aa.error
- });
- });
- },
- error: Aa.error
- });
- });
- },
- error: Aa.error
- });
- });
- },
- error: Aa.error
- });
- });
- };
- }
- ());
- (function () {
- function m(g, m) {
- this.payload = g;
- this.signature = m;
- }
- rd = oa.Class.create({
- init: function (g, m, t, I, v, E, M, X) {
- var w;
- w = this;
- r(X, function () {
- var y,
- F;
- if (0 > g || g > Na)
- throw new fa("Sequence number " + g + " is outside the valid range.");
- if (0 > m || m > Na)
- throw new fa("Message ID " + m + " is outside the valid range.");
- if (M)
- return Object.defineProperties(this, {
- sequenceNumber: {
- value: g,
- writable: !1,
- configurable: !1
- },
- messageId: {
- value: m,
- writable: !1,
- configurable: !1
- },
- compressionAlgo: {
- value: I,
- writable: !1,
- configurable: !1
- },
- data: {
- value: v,
- writable: !1,
- configurable: !1
- },
- endofmsg: {
- value: t,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- payload: {
- value: M.payload,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- signature: {
- value: M.signature,
- writable: !1,
- enumerable: !1,
- configurable: !1
- }
- }), this;
- I ? (y = sd(I, v), y || (I = null, y = v)) : (I = null, y = v);
- F = {};
- F.sequencenumber = g;
- F.messageid = m;
- t && (F.endofmsg = t);
- I && (F.compressionalgo = I);
- F.data = sa(y);
- y = Qa(JSON.stringify(F), Ma);
- E.encrypt(y, {
- result: function (y) {
- r(X, function () {
- E.sign(y, {
- result: function (E) {
- r(X, function () {
- Object.defineProperties(this, {
- sequenceNumber: {
- value: g,
- writable: !1,
- configurable: !1
- },
- messageId: {
- value: m,
- writable: !1,
- configurable: !1
- },
- compressionAlgo: {
- value: I,
- writable: !1,
- configurable: !1
- },
- data: {
- value: v,
- writable: !1,
- configurable: !1
- },
- endofmsg: {
- value: t,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- payload: {
- value: y,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- signature: {
- value: E,
- writable: !1,
- enumerable: !1,
- configurable: !1
- }
- });
- return this;
- }, w);
- },
- error: function (g) {
- X.error(g);
- }
- });
- }, w);
- },
- error: function (g) {
- X.error(g);
- }
- });
- }, w);
- },
- isEndOfMessage: function () {
- return this.endofmsg;
- },
- toJSON: function () {
- var g;
- g = {};
- g.payload = sa(this.payload);
- g.signature = sa(this.signature);
- return g;
- }
- });
- je = function (g, m, r, t, v, E, M) {
- new rd(g, m, r, t, v, E, null, M);
- };
- ke = function (t, y, F) {
- r(F, function () {
- var w,
- v,
- E,
- M;
- w = t.payload;
- v = t.signature;
- if (!w || "string" !== typeof w || "string" !== typeof v)
- throw new la(g.JSON_PARSE_ERROR, "payload chunk " + JSON.stringify(t));
- try {
- E = xa(w);
- } catch (X) {
- throw new Fa(g.PAYLOAD_INVALID, "payload chunk " + JSON.stringify(t), X);
- }
- try {
- M = xa(v);
- } catch (X) {
- throw new Fa(g.PAYLOAD_SIGNATURE_INVALID, "payload chunk " + JSON.stringify(t), X);
- }
- y.verify(E, M, {
- result: function (v) {
- r(F, function () {
- if (!v)
- throw new S(g.PAYLOAD_VERIFICATION_FAILED);
- y.decrypt(E, {
- result: function (v) {
- r(F, function () {
- var r,
- t,
- w,
- B,
- I,
- X,
- x;
- r = Ja(v, Ma);
- try {
- t = JSON.parse(r);
- } catch (da) {
- if (da instanceof SyntaxError)
- throw new la(g.JSON_PARSE_ERROR, "payload chunk payload " + r, da);
- throw da;
- }
- w = parseInt(t.sequencenumber);
- B = parseInt(t.messageid);
- I = t.endofmsg;
- X = t.compressionalgo;
- t = t.data;
- if (!w || w != w || !B || B != B || I && "boolean" !== typeof I || X && "string" !== typeof X || "string" !== typeof t)
- throw new la(g.JSON_PARSE_ERROR, "payload chunk payload " + r);
- if (0 > w || w > Na)
- throw new L(g.PAYLOAD_SEQUENCE_NUMBER_OUT_OF_RANGE, "payload chunk payload " + r);
- if (0 > B || B > Na)
- throw new L(g.PAYLOAD_MESSAGE_ID_OUT_OF_RANGE, "payload chunk payload " + r);
- I || (I = !1);
- if (X && !Sb[X])
- throw new Fa(g.UNIDENTIFIED_COMPRESSION, X);
- try {
- x = xa(t);
- } catch (da) {
- throw new Fa(g.PAYLOAD_DATA_CORRUPT, t, da);
- }
- if (x && 0 != x.length)
- r = X ? Nc(X, x) : x;
- else {
- if (0 < t.length)
- throw new Fa(g.PAYLOAD_DATA_CORRUPT, t);
- if (I)
- r = new Uint8Array(0);
- else
- throw new Fa(g.PAYLOAD_DATA_MISSING, t);
- }
- x = new m(E, M);
- new rd(w, B, I, X, r, y, x, F);
- });
- },
- error: function (g) {
- F.error(g);
- }
- });
- });
- },
- error: function (g) {
- F.error(g);
- }
- });
- });
- };
- }
- ());
- (function () {
- var F,
- I;
- function m(m, t, w, y, I) {
- var E,
- F,
- B,
- X,
- M;
- function v() {
- r(I, function () {
- var w,
- y;
- F >= t.length && (F = 0, ++E);
- if (E >= B.length) {
- if (X)
- throw X;
- throw new Ta(g.KEYX_FACTORY_NOT_FOUND, JSON.stringify(t));
- }
- w = B[E];
- y = t[F];
- w.scheme != y.keyExchangeScheme ? (++F, v()) : w.generateResponse(m, y, M, {
- result: function (g) {
- I.result(g);
- },
- error: function (g) {
- r(I, function () {
- if (!(g instanceof L))
- throw g;
- X = g;
- ++F;
- v();
- });
- }
- });
- });
- }
- E = 0;
- F = 0;
- B = m.getKeyExchangeFactories();
- M = w ? w : y;
- v();
- }
- function t(g, t, w, y, F) {
- r(F, function () {
- var v;
- v = t.keyRequestData;
- if (t.isRenewable() && 0 < v.length)
- y ? y.isRenewable() || y.isExpired() ? m(g, v, y, null, F) : g.getTokenFactory().isNewestMasterToken(g, y, {
- result: function (t) {
- r(F, function () {
- if (t)
- return null;
- m(g, v, y, null, F);
- });
- },
- error: F.error
- }) : m(g, v, null, w.getIdentity(), F);
- else
- return null;
- });
- }
- function y(m, t, w, y) {
- r(y, function () {
- var r,
- v,
- E,
- F;
- r = t.userIdToken;
- v = t.userAuthenticationData;
- E = t.messageId;
- if (r && r.isVerified()) {
- if (r.isRenewable() && t.isRenewable() || r.isExpired() || !r.isBoundTo(w)) {
- v = m.getTokenFactory();
- v.renewUserIdToken(m, r, w, y);
- return;
- }
- } else if (t.isRenewable() && w && v) {
- r = t.customer;
- if (!r) {
- r = v.scheme;
- F = m.getUserAuthenticationFactory(r);
- if (!F)
- throw new Ca(g.USERAUTH_FACTORY_NOT_FOUND, r).setEntity(w).setUser(v).setMessageId(E);
- r = F.authenticate(m, w.identity, v, null);
- }
- v = m.getTokenFactory();
- v.createUserIdToken(m, r, w, y);
- return;
- }
- return r;
- });
- }
- F = new Uint8Array(0);
- I = Yb = function (g) {
- if (0 > g || g > Na)
- throw new fa("Message ID " + g + " is outside the valid range.");
- return g == Na ? 0 : g + 1;
- };
- kc = function (g) {
- if (0 > g || g > Na)
- throw new fa("Message ID " + g + " is outside the valid range.");
- return 0 == g ? Na : g - 1;
- };
- Zb = function (g, m, t, w, y) {
- r(y, function () {
- var v;
- if (w == Y || null == w) {
- v = g.getRandom();
- do
- w = v.nextLong();
- while (0 > w || w > Na);
- } else if (0 > w || w > Na)
- throw new fa("Message ID " + w + " is outside the valid range.");
- g.getEntityAuthenticationData(null, {
- result: function (v) {
- r(y, function () {
- var r;
- r = g.getMessageCapabilities();
- return new Oc(g, w, r, v, m, t, null, null, null, null, null);
- });
- },
- error: function (g) {
- y.error(g);
- }
- });
- });
- };
- le = function (g, m, w) {
- r(w, function () {
- var E,
- F,
- M,
- x,
- B,
- ua;
- function v(g) {
- r(w, function () {
- g instanceof L && (g.setEntity(E), g.setEntity(F), g.setUser(M), g.setUser(x), g.setMessageId(B));
- throw g;
- });
- }
- E = m.masterToken;
- F = m.entityAuthenticationData;
- M = m.userIdToken;
- x = m.userAuthenticationData;
- B = m.messageId;
- ua = I(B);
- t(g, m, F, E, {
- result: function (t) {
- r(w, function () {
- var F;
- F = t ? t.keyResponseData.masterToken : F = E;
- g.getEntityAuthenticationData(null, {
- result: function (B) {
- r(w, function () {
- y(g, m, F, {
- result: function (v) {
- r(w, function () {
- var r,
- w,
- y;
- M = v;
- r = qd(m.messageCapabilities, g.getMessageCapabilities());
- w = m.keyResponseData;
- y = m.serviceTokens;
- return g.isPeerToPeer() ? new Oc(g, ua, r, B, w ? w.masterToken : m.peerMasterToken, m.peerUserIdToken, m.peerServiceTokens, E, M, y, t) : new Oc(g, ua, r, B, w ? w.masterToken : E, M, y, null, null, null, t);
- });
- },
- error: v
- });
- });
- },
- error: v
- });
- });
- },
- error: v
- });
- });
- };
- me = function (g, m, t, w, y) {
- r(y, function () {
- g.getEntityAuthenticationData(null, {
- result: function (v) {
- r(y, function () {
- var r,
- E;
- if (m != Y && null != m)
- r = I(m);
- else {
- E = g.getRandom();
- do
- r = E.nextInt();
- while (0 > r || r > Na);
- }
- de(g, v, r, t.responseCode, t.internalCode, t.message, w, y);
- });
- },
- error: function (g) {
- y.error(g);
- }
- });
- });
- };
- Oc = oa.Class.create({
- init: function (g, m, r, t, w, y, F, I, B, M, x) {
- var v,
- E,
- X,
- ca,
- ua;
- if (!g.isPeerToPeer() && (I || B))
- throw new fa("Cannot set peer master token or peer user ID token when not in peer-to-peer mode.");
- v = x && !g.isPeerToPeer() ? x.keyResponseData.masterToken : w;
- E = {};
- g.getMslStore().getServiceTokens(v, y).forEach(function (g) {
- E[g.name] = g;
- }, this);
- F && F.forEach(function (g) {
- E[g.name] = g;
- }, this);
- ua = {};
- g.isPeerToPeer() && (X = I, ca = B, F = x ? x.keyResponseData.masterToken : I, g.getMslStore().getServiceTokens(F, B).forEach(function (g) {
- ua[g.name] = g;
- }, this), M && M.forEach(function (g) {
- ua[g.name] = g;
- }, this));
- Object.defineProperties(this, {
- _ctx: {
- value: g,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- _entityAuthData: {
- value: t,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- _masterToken: {
- value: w,
- writable: !0,
- enumerable: !1,
- configurable: !1
- },
- _messageId: {
- value: m,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- _capabilities: {
- value: r,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- _keyExchangeData: {
- value: x,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- _nonReplayable: {
- value: !1,
- writable: !0,
- enumerable: !1,
- configurable: !1
- },
- _renewable: {
- value: !1,
- writable: !0,
- enumerable: !1,
- configurable: !1
- },
- _keyRequestData: {
- value: {},
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- _userAuthData: {
- value: null,
- writable: !0,
- enumerable: !1,
- configurable: !1
- },
- _userIdToken: {
- value: y,
- writable: !0,
- enumerable: !1,
- configurable: !1
- },
- _serviceTokens: {
- value: E,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- _peerMasterToken: {
- value: X,
- writable: !0,
- enumerable: !1,
- configurable: !1
- },
- _peerUserIdToken: {
- value: ca,
- writable: !0,
- enumerable: !1,
- configurable: !1
- },
- _peerServiceTokens: {
- value: ua,
- writable: !1,
- enumerable: !1,
- configurable: !1
- }
- });
- },
- getMessageId: function () {
- return this._messageId;
- },
- getMasterToken: function () {
- return this._masterToken;
- },
- getUserIdToken: function () {
- return this._userIdToken;
- },
- getKeyExchangeData: function () {
- return this._keyExchangeData;
- },
- willEncryptHeader: function () {
- return this._masterToken || xb(this._entityAuthData.scheme);
- },
- willEncryptPayloads: function () {
- return this._masterToken || !this._ctx.isPeerToPeer() && this._keyExchangeData || xb(this._entityAuthData.scheme);
- },
- willIntegrityProtectHeader: function () {
- return this._masterToken || pb(this._entityAuthData.scheme);
- },
- willIntegrityProtectPayloads: function () {
- return this._masterToken || !this._ctx.isPeerToPeer() && this._keyExchangeData || pb(this._entityAuthData.scheme);
- },
- getHeader: function (m) {
- r(m, function () {
- var r,
- v,
- t,
- w,
- y;
- r = this._keyExchangeData ? this._keyExchangeData.keyResponseData : null;
- v = [];
- for (t in this._serviceTokens)
- v.push(this._serviceTokens[t]);
- w = [];
- for (y in this._keyRequestData)
- w.push(this._keyRequestData[y]);
- if (this._nonReplayable) {
- if (!this._masterToken)
- throw new Fa(g.NONREPLAYABLE_MESSAGE_REQUIRES_MASTERTOKEN);
- y = this._ctx.getMslStore().getNonReplayableId(this._masterToken);
- } else
- y = null;
- r = new ge(this._messageId, y, this._renewable, this._capabilities, w, r, this._userAuthData, this._userIdToken, v);
- v = [];
- for (t in this._peerServiceTokens)
- v.push(this._peerServiceTokens[t]);
- t = new he(this._peerMasterToken, this._peerUserIdToken, v);
- fe(this._ctx, this._entityAuthData, this._masterToken, r, t, m);
- }, this);
- },
- isNonReplayable: function () {
- return this._nonReplayable;
- },
- setNonReplayable: function (g) {
- this._nonReplayable = g;
- return this;
- },
- isRenewable: function () {
- return this._renewable;
- },
- setRenewable: function (g) {
- this._renewable = g;
- return this;
- },
- setAuthTokens: function (g, m) {
- var r,
- v,
- t;
- if (m && !m.isBoundTo(g))
- throw new fa("User ID token must be bound to master token.");
- if (this._keyExchangeData && !this._ctx.isPeerToPeer())
- throw new fa("Attempt to set message builder master token when key exchange data exists as a trusted network server.");
- try {
- r = this._ctx.getMslStore().getServiceTokens(g, m);
- } catch (wa) {
- if (wa instanceof L)
- throw new fa("Invalid master token and user ID token combination despite checking above.", wa);
- throw wa;
- }
- v = [];
- for (t in this._serviceTokens)
- v.push(this._serviceTokens[t]);
- v.forEach(function (r) {
- (r.isUserIdTokenBound() && !r.isBoundTo(m) || r.isMasterTokenBound() && !r.isBoundTo(g)) && delete this._serviceTokens[r.name];
- }, this);
- r.forEach(function (g) {
- this._serviceTokens[g.name] = g;
- }, this);
- this._masterToken = g;
- this._userIdToken = m;
- },
- setUserAuthenticationData: function (g) {
- this._userAuthData = g;
- return this;
- },
- setCustomer: function (g, m) {
- var v;
- v = this;
- r(m, function () {
- var t;
- if (!this._ctx.isPeerToPeer() && null != this._userIdToken || this._ctx.isPeerToPeer() && null != this._peerUserIdToken)
- throw new fa("User ID token or peer user ID token already exists for the remote user.");
- t = this._keyExchangeData ? this._keyExchangeData.keyResponseData.masterToken : this._ctx.isPeerToPeer() ? this._peerMasterToken : this._masterToken;
- if (!t)
- throw new fa("User ID token or peer user ID token cannot be created because no corresponding master token exists.");
- this._ctx.getTokenFactory().createUserIdToken(this._ctx, g, t, {
- result: function (g) {
- r(m, function () {
- this._ctx.isPeerToPeer() ? this._peerUserIdToken = g : (this._userIdToken = g, this._userAuthData = null);
- return !0;
- }, v);
- },
- error: function (g) {
- m.error(g);
- }
- });
- }, v);
- },
- addKeyRequestData: function (g) {
- this._keyRequestData[g.uniqueKey()] = g;
- return this;
- },
- removeKeyRequestData: function (g) {
- delete this._keyRequestData[g.uniqueKey()];
- return this;
- },
- addServiceToken: function (m) {
- var r;
- r = this._keyExchangeData && !this._ctx.isPeerToPeer() ? this._keyExchangeData.keyResponseData.masterToken : this._masterToken;
- if (m.isMasterTokenBound() && !m.isBoundTo(r))
- throw new Fa(g.SERVICETOKEN_MASTERTOKEN_MISMATCH, "st " + JSON.stringify(m) + "; mt " + JSON.stringify(r)).setEntity(r);
- if (m.isUserIdTokenBound() && !m.isBoundTo(this._userIdToken))
- throw new Fa(g.SERVICETOKEN_USERIDTOKEN_MISMATCH, "st " + JSON.stringify(m) + "; uit " + JSON.stringify(this._userIdToken)).setEntity(r).setUser(this._userIdToken);
- this._serviceTokens[m.name] = m;
- return this;
- },
- addServiceTokenIfAbsent: function (g) {
- this._serviceTokens[g.name] || this.addServiceToken(g);
- return this;
- },
- excludeServiceToken: function (g) {
- delete this._serviceTokens[g];
- return this;
- },
- deleteServiceToken: function (g, m) {
- var v;
- v = this;
- r(m, function () {
- var t,
- w;
- t = this._serviceTokens[g];
- if (!t)
- return this;
- w = t.isMasterTokenBound() ? this._masterToken : null;
- t = t.isUserIdTokenBound() ? this._userIdToken : null;
- Hb(this._ctx, g, F, w, t, !1, null, new jc(), {
- result: function (g) {
- r(m, function () {
- return this.addServiceToken(g);
- }, v);
- },
- error: function (g) {
- g instanceof L && (g = new fa("Failed to create and add empty service token to message.", g));
- m.error(g);
- }
- });
- }, v);
- },
- getServiceTokens: function () {
- var g,
- m;
- g = [];
- for (m in this._serviceTokens)
- g.push(this._serviceTokens[m]);
- return g;
- },
- getPeerMasterToken: function () {
- return this._peerMasterToken;
- },
- getPeerUserIdToken: function () {
- return this._peerUserIdToken;
- },
- setPeerAuthTokens: function (m, r) {
- var v;
- if (!this._ctx.isPeerToPeer())
- throw new fa("Cannot set peer master token or peer user ID token when not in peer-to-peer mode.");
- if (r && !m)
- throw new fa("Peer master token cannot be null when setting peer user ID token.");
- if (r && !r.isBoundTo(m))
- throw new Fa(g.USERIDTOKEN_MASTERTOKEN_MISMATCH, "uit " + r + "; mt " + m).setEntity(m).setUser(r);
- try {
- v = this._ctx.getMslStore().getServiceTokens(m, r);
- } catch (X) {
- if (X instanceof L)
- throw new fa("Invalid peer master token and user ID token combination despite proper check.", X);
- throw X;
- }
- Object.keys(this._peerServiceTokens).forEach(function (g) {
- var v;
- v = this._peerServiceTokens[g];
- v.isUserIdTokenBound() && !v.isBoundTo(r) ? delete this._peerServiceTokens[g] : v.isMasterTokenBound() && !v.isBoundTo(m) && delete this._peerServiceTokens[g];
- }, this);
- v.forEach(function (g) {
- var m;
- m = g.name;
- this._peerServiceTokens[m] || (this._peerServiceTokens[m] = g);
- }, this);
- this._peerUserIdToken = r;
- this._peerMasterToken = m;
- return this;
- },
- addPeerServiceToken: function (m) {
- if (!this._ctx.isPeerToPeer())
- throw new fa("Cannot set peer service tokens when not in peer-to-peer mode.");
- if (m.isMasterTokenBound() && !m.isBoundTo(this._peerMasterToken))
- throw new Fa(g.SERVICETOKEN_MASTERTOKEN_MISMATCH, "st " + JSON.stringify(m) + "; mt " + JSON.stringify(this._peerMasterToken)).setEntity(this._peerMasterToken);
- if (m.isUserIdTokenBound() && !m.isBoundTo(this._peerUserIdToken))
- throw new Fa(g.SERVICETOKEN_USERIDTOKEN_MISMATCH, "st " + JSON.stringify(m) + "; uit " + JSON.stringify(this._peerUserIdToken)).setEntity(this._peerMasterToken).setUser(this._peerUserIdToken);
- this._peerServiceTokens[m.name] = m;
- return this;
- },
- addPeerServiceTokenIfAbsent: function (g) {
- this._peerServiceTokens[g.name] || this.addPeerServiceToken(g);
- return this;
- },
- excludePeerServiceToken: function (g) {
- delete this._peerServiceTokens[g];
- return this;
- },
- deletePeerServiceToken: function (g, m) {
- var v;
- v = this;
- r(m, function () {
- var t,
- w;
- t = this._peerServiceTokens[g];
- if (!t)
- return this;
- w = t.isMasterTokenBound() ? this._peerMasterToken : null;
- t = t.isUserIdTokenBound() ? this._peerUserIdToken : null;
- Hb(this._ctx, g, F, w, t, !1, null, new jc(), {
- result: function (g) {
- r(m, function () {
- return this.addPeerServiceToken(g);
- }, v);
- },
- error: function (g) {
- g instanceof L && (g = new fa("Failed to create and add empty peer service token to message.", g));
- m.error(g);
- }
- });
- }, v);
- },
- getPeerServiceTokens: function () {
- var g,
- m;
- g = [];
- for (m in this._peerServiceTokens)
- g.push(this._peerServiceTokens[m]);
- return g;
- }
- });
- }
- ());
- (function () {
- function g(g, m) {
- return m[g] ? m[g] : m[""];
- }
- function m(g) {
- var m;
- m = g.builder.getKeyExchangeData();
- return m && !g.ctx.isPeerToPeer() ? m.keyResponseData.masterToken : g.builder.getMasterToken();
- }
- ne = oa.Class.create({
- init: function (g, m, r) {
- g = {
- ctx: {
- value: g,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- cryptoContexts: {
- value: m.getCryptoContexts(),
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- builder: {
- value: r,
- writable: !1,
- enumerable: !1,
- configurable: !1
- }
- };
- Object.defineProperties(this, g);
- },
- isPrimaryMasterTokenAvailable: function () {
- return m(this) ? !0 : !1;
- },
- isPrimaryUserIdTokenAvailable: function () {
- return this.builder.getUserIdToken() ? !0 : !1;
- },
- isPeerMasterTokenAvailable: function () {
- return this.builder.getPeerMasterToken() ? !0 : !1;
- },
- isPeerUserIdTokenAvailable: function () {
- return this.builder.getPeerUserIdToken() ? !0 : !1;
- },
- getPrimaryServiceTokens: function () {
- return this.builder.getServiceTokens();
- },
- getPeerServiceTokens: function () {
- return this.builder.getPeerServiceTokens();
- },
- addPrimaryServiceToken: function (g) {
- try {
- return this.builder.addServiceToken(g),
- !0;
- } catch (F) {
- if (F instanceof Fa)
- return !1;
- throw F;
- }
- },
- addPeerServiceToken: function (g) {
- try {
- return this.builder.addPeerServiceToken(g),
- !0;
- } catch (F) {
- if (F instanceof Fa)
- return !1;
- throw F;
- }
- },
- addUnboundPrimaryServiceToken: function (m, t, w, v, E) {
- var y;
- y = this;
- r(E, function () {
- var F;
- F = g(m, this.cryptoContexts);
- if (!F)
- return !1;
- Hb(this.ctx, m, t, null, null, w, v, F, {
- result: function (g) {
- r(E, function () {
- try {
- this.builder.addServiceToken(g);
- } catch (wa) {
- if (wa instanceof Fa)
- throw new fa("Service token bound to incorrect authentication tokens despite being unbound.", wa);
- throw wa;
- }
- return !0;
- }, y);
- },
- error: function (g) {
- E.error(g);
- }
- });
- }, y);
- },
- addUnboundPeerServiceToken: function (m, t, w, v, E) {
- var y;
- y = this;
- r(E, function () {
- var F;
- F = g(m, this.cryptoContexts);
- if (!F)
- return !1;
- Hb(this.ctx, m, t, null, null, w, v, F, {
- result: function (g) {
- r(E, function () {
- try {
- this.builder.addPeerServiceToken(g);
- } catch (wa) {
- if (wa instanceof Fa)
- throw new fa("Service token bound to incorrect authentication tokens despite being unbound.", wa);
- throw wa;
- }
- return !0;
- }, y);
- },
- error: function (g) {
- E.error(g);
- }
- });
- }, y);
- },
- addMasterBoundPrimaryServiceToken: function (t, w, I, v, E) {
- var y;
- y = this;
- r(E, function () {
- var F,
- M;
- F = m(this);
- if (!F)
- return !1;
- M = g(t, this.cryptoContexts);
- if (!M)
- return !1;
- Hb(this.ctx, t, w, F, null, I, v, M, {
- result: function (g) {
- r(E, function () {
- try {
- this.builder.addServiceToken(g);
- } catch (ca) {
- if (ca instanceof Fa)
- throw new fa("Service token bound to incorrect authentication tokens despite setting correct master token.", ca);
- throw ca;
- }
- return !0;
- }, y);
- },
- error: function (g) {
- E.error(g);
- }
- });
- }, y);
- },
- addMasterBoundPeerServiceToken: function (m, t, w, v, E) {
- var y;
- y = this;
- r(E, function () {
- var F,
- I;
- F = this.builder.getPeerMasterToken();
- if (!F)
- return !1;
- I = g(m, this.cryptoContexts);
- if (!I)
- return !1;
- Hb(this.ctx, m, t, F, null, w, v, I, {
- result: function (g) {
- r(E, function () {
- try {
- this.builder.addPeerServiceToken(g);
- } catch (ca) {
- if (ca instanceof Fa)
- throw new fa("Service token bound to incorrect authentication tokens despite setting correct master token.", ca);
- throw ca;
- }
- return !0;
- }, y);
- },
- error: function (g) {
- E.error(g);
- }
- });
- }, y);
- },
- addUserBoundPrimaryServiceToken: function (t, w, I, v, E) {
- var y;
- y = this;
- r(E, function () {
- var F,
- M,
- x;
- F = m(this);
- if (!F)
- return !1;
- M = this.builder.getUserIdToken();
- if (!M)
- return !1;
- x = g(t, this.cryptoContexts);
- if (!x)
- return !1;
- Hb(this.ctx, t, w, F, M, I, v, x, {
- result: function (g) {
- r(E, function () {
- try {
- this.builder.addServiceToken(g);
- } catch (ra) {
- if (ra instanceof Fa)
- throw new fa("Service token bound to incorrect authentication tokens despite setting correct master token and user ID token.", ra);
- throw ra;
- }
- return !0;
- }, y);
- },
- error: function (g) {
- E.error(g);
- }
- });
- }, y);
- },
- addUserBoundPeerServiceToken: function (m, t, w, v, E) {
- var y;
- y = this;
- r(E, function () {
- var F,
- I,
- M;
- F = this.builder.getPeerMasterToken();
- if (!F)
- return !1;
- I = this.builder.getPeerUserIdToken();
- if (!I)
- return !1;
- M = g(m, this.cryptoContexts);
- if (!M)
- return !1;
- Hb(this.ctx, m, t, F, I, w, v, M, {
- result: function (g) {
- r(E, function () {
- try {
- this.builder.addPeerServiceToken(g);
- } catch (ra) {
- if (ra instanceof Fa)
- throw new fa("Service token bound to incorrect authentication tokens despite setting correct master token and user ID token.", ra);
- throw ra;
- }
- return !0;
- }, y);
- },
- error: function (g) {
- E.error(g);
- }
- });
- }, y);
- },
- excludePrimaryServiceToken: function (g) {
- for (var m = this.builder.getServiceTokens(), r = 0; r < m.length; ++r)
- if (m[r].name == g)
- return this.builder.excludeServiceToken(g), !0;
- return !1;
- },
- excludePeerServiceToken: function (g) {
- for (var m = this.builder.getPeerServiceTokens(), r = 0; r < m.length; ++r)
- if (m[r].name == g)
- return this.builder.excludePeerServiceToken(g), !0;
- return !1;
- },
- deletePrimaryServiceToken: function (g, m) {
- r(m, function () {
- for (var r = this.builder.getServiceTokens(), t = 0; t < r.length; ++t)
- if (r[t].name == g) {
- this.builder.deleteServiceToken(g, {
- result: function () {
- m.result(!0);
- },
- error: function (g) {
- m.error(g);
- }
- });
- return;
- }
- return !1;
- }, this);
- },
- deletePeerServiceToken: function (g, m) {
- r(m, function () {
- for (var r = this.builder.getPeerServiceTokens(), t = 0; t < r.length; ++t)
- if (r[t].name == g) {
- this.builder.deletePeerServiceToken(g, {
- result: function () {
- m.result(!0);
- },
- error: function (g) {
- m.error(g);
- }
- });
- return;
- }
- return !1;
- }, this);
- }
- });
- }
- ());
- (function () {
- function m(m, t, F, I) {
- r(I, function () {
- var w,
- y,
- M,
- x,
- wa,
- ca;
- function v() {
- r(I, function () {
- var t;
- if (ca >= F.length) {
- if (wa)
- throw wa;
- throw new Ta(g.KEYX_RESPONSE_REQUEST_MISMATCH, JSON.stringify(F));
- }
- t = F[ca];
- M != t.keyExchangeScheme ? (++ca, v()) : x.getCryptoContext(m, t, y, w, {
- result: I.result,
- error: function (g) {
- r(I, function () {
- if (!(g instanceof L))
- throw g;
- wa = g;
- ++ca;
- v();
- });
- }
- });
- });
- }
- w = t.masterToken;
- y = t.keyResponseData;
- if (!y)
- return null;
- M = y.keyExchangeScheme;
- x = m.getKeyExchangeFactory(M);
- if (!x)
- throw new Ta(g.KEYX_FACTORY_NOT_FOUND, M);
- ca = 0;
- v();
- });
- }
- oe = jd.extend({
- init: function (r, t, F, I, v, E, M) {
- var w;
- w = this;
- x(M, function () {
- var W;
- function y() {
- w._ready = !0;
- w._readyQueue.add(!0);
- }
- function M(g, m) {
- var r;
- try {
- r = m.masterToken;
- g.getTokenFactory().isMasterTokenRevoked(g, r, {
- result: function (t) {
- t ? (w._errored = new Ub(t, r).setUser(m.userIdToken).setUser(m.userAuthenticationData).setMessageId(m.messageId), y()) : x(g, m);
- },
- error: function (g) {
- g instanceof L && (g.setEntity(m.masterToken), g.setUser(m.userIdToken), g.setUser(m.userAuthenticationData), g.setMessageId(m.messageId));
- w._errored = g;
- y();
- }
- });
- } catch (Aa) {
- Aa instanceof L && (Aa.setEntity(m.masterToken), Aa.setUser(m.userIdToken), Aa.setUser(m.userAuthenticationData), Aa.setMessageId(m.messageId));
- w._errored = Aa;
- y();
- }
- }
- function x(g, m) {
- var r,
- t;
- try {
- r = m.masterToken;
- t = m.userIdToken;
- t ? g.getTokenFactory().isUserIdTokenRevoked(g, r, t, {
- result: function (v) {
- v ? (w._errored = new MslUserIdTokenException(v, t).setEntity(r).setUser(t).setMessageId(m.messageId), y()) : X(g, m);
- },
- error: function (g) {
- g instanceof L && (g.setEntity(m.masterToken), g.setUser(m.userIdToken), g.setUser(m.userAuthenticationData), g.setMessageId(m.messageId));
- w._errored = g;
- y();
- }
- }) : X(g, m);
- } catch (Sa) {
- Sa instanceof L && (Sa.setEntity(m.masterToken), Sa.setUser(m.userIdToken), Sa.setUser(m.userAuthenticationData), Sa.setMessageId(m.messageId));
- w._errored = Sa;
- y();
- }
- }
- function X(m, r) {
- var t;
- try {
- t = r.masterToken;
- t.isExpired() ? r.isRenewable() && 0 != r.keyRequestData.length ? m.getTokenFactory().isMasterTokenRenewable(m, t, {
- result: function (g) {
- g ? (w._errored = new Fa(g, "Master token is expired and not renewable.").setEntity(t).setUser(r.userIdToken).setUser(r.userAuthenticationData).setMessageId(r.messageId), y()) : B(m, r);
- },
- error: function (g) {
- g instanceof L && (g.setEntity(r.masterToken), g.setUser(r.userIdToken), g.setUser(r.userAuthenticationData), g.setMessageId(r.messageId));
- w._errored = g;
- y();
- }
- }) : (w._errored = new Fa(g.MESSAGE_EXPIRED, JSON.stringify(r)).setEntity(t).setUser(r.userIdToken).setUser(r.userAuthenticationData).setMessageId(r.messageId), y()) : B(m, r);
- } catch (Aa) {
- Aa instanceof L && (Aa.setEntity(r.masterToken), Aa.setUser(r.userIdToken), Aa.setUser(r.userAuthenticationData), Aa.setMessageId(r.messageId));
- w._errored = Aa;
- y();
- }
- }
- function B(m, r) {
- var t,
- v;
- try {
- t = r.masterToken;
- v = r.nonReplayableId;
- "number" === typeof v ? t ? m.getTokenFactory().acceptNonReplayableId(m, t, v, {
- result: function (m) {
- m || (w._errored = new Fa(g.MESSAGE_REPLAYED, JSON.stringify(r)).setEntity(t).setUser(r.userIdToken).setUser(r.userAuthenticationData).setMessageId(r.messageId));
- y();
- },
- error: function (g) {
- g instanceof L && (g.setEntity(t), g.setUser(r.userIdToken), g.setUser(r.userAuthenticationData), g.setMessageId(r.messageId));
- w._errored = g;
- y();
- }
- }) : (w._errored = new Fa(g.INCOMPLETE_NONREPLAYABLE_MESSAGE, JSON.stringify(r)).setEntity(r.entityAuthenticationData).setUser(r.userIdToken).setUser(r.userAuthenticationData).setMessageId(r.messageId), y()) : y();
- } catch (Sa) {
- Sa instanceof L && (Sa.setEntity(r.masterToken), Sa.setEntity(r.entityAuthenticationData), Sa.setUser(r.userIdToken), Sa.setUser(r.userAuthenticationData), Sa.setMessageId(r.messageId));
- w._errored = Sa;
- y();
- }
- }
- W = {
- _source: {
- value: t,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- _parser: {
- value: Y,
- writable: !0,
- enumerable: !1,
- configurable: !1
- },
- _charset: {
- value: F,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- _remainingData: {
- value: "",
- writable: !0,
- enumerable: !1,
- configurable: !1
- },
- _timeout: {
- value: E,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- _header: {
- value: Y,
- writable: !0,
- enumerable: !1,
- configurable: !1
- },
- _cryptoContext: {
- value: Y,
- writable: !0,
- enumerable: !1,
- configurable: !1
- },
- _keyxCryptoContext: {
- value: Y,
- writable: !0,
- enumerable: !1,
- configurable: !1
- },
- _payloadSequenceNumber: {
- value: 1,
- writable: !0,
- enuemrable: !1,
- configurable: !1
- },
- _eom: {
- value: !1,
- writable: !0,
- enumerable: !1,
- configurable: !1
- },
- _closeSource: {
- value: !1,
- writable: !0,
- enumerable: !1,
- configurable: !1
- },
- _payloads: {
- value: [],
- writable: !0,
- enumerable: !1,
- configurable: !1
- },
- _payloadIndex: {
- value: -1,
- writable: !0,
- enumerable: !1,
- configurable: !1
- },
- _payloadOffset: {
- value: 0,
- writable: !0,
- enuemrable: !1,
- configurable: !1
- },
- _markOffset: {
- value: 0,
- writable: !0,
- enumerable: !1,
- configurable: !1
- },
- _currentPayload: {
- value: null,
- writable: !0,
- enumerable: !1,
- configurable: !1
- },
- _readException: {
- value: null,
- writable: !0,
- enumerable: !1,
- configurable: !1
- },
- _ready: {
- value: !1,
- writable: !0,
- enumerable: !1,
- configurable: !1
- },
- _readyQueue: {
- value: new oc(),
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- _aborted: {
- value: !1,
- writable: !0,
- enumerable: !1,
- configurable: !1
- },
- _timedout: {
- value: !1,
- writable: !0,
- enumerable: !1,
- configurable: !1
- },
- _errored: {
- value: null,
- writable: !0,
- enumerable: !1,
- configurable: !1
- }
- };
- Object.defineProperties(this, W);
- Sd(w._source, E, {
- result: function (t) {
- w._json = t;
- w._jsonIndex = 0;
- null === w._json ? (w._errored = new la(g.MESSAGE_DATA_MISSING), y()) : Zd(r, w._json[w._jsonIndex++], v, {
- result: function (g) {
- var t;
- w._header = g;
- if (w._header instanceof Qb)
- w._keyxCryptoContext = null, w._cryptoContext = null, y();
- else {
- t = w._header;
- m(r, t, I, {
- result: function (g) {
- var m;
- try {
- w._keyxCryptoContext = g;
- r.isPeerToPeer() || !w._keyxCryptoContext ? w._cryptoContext = t.cryptoContext : w._cryptoContext = w._keyxCryptoContext;
- try {
- m = t.masterToken;
- m && (r.isPeerToPeer() || m.isVerified()) ? M(r, t) : B(r, t);
- } catch (va) {
- va instanceof L && (va.setEntity(t.masterToken), va.setUser(t.userIdToken), va.setUser(t.userAuthenticationData), va.setMessageId(t.messageId));
- w._errored = va;
- y();
- }
- } catch (va) {
- va instanceof L && (va.setEntity(t.masterToken), va.setEntity(t.entityAuthenticationData), va.setUser(t.userIdToken), va.setUser(t.userAuthenticationData), va.setMessageId(t.messageId));
- w._errored = va;
- y();
- }
- },
- error: function (g) {
- g instanceof L && (g.setEntity(t.masterToken), g.setEntity(t.entityAuthenticationData), g.setUser(t.userIdToken), g.setUser(t.userAuthenticationData), g.setMessageId(t.messageId));
- w._errored = g;
- y();
- }
- });
- }
- },
- error: function (g) {
- w._errored = g;
- y();
- }
- });
- },
- timeout: function () {
- w._timedout = !0;
- y();
- },
- error: function (g) {
- w._errored = g;
- y();
- }
- });
- return this;
- }, w);
- },
- nextData: function (m, r) {
- var t;
- t = this;
- x(r, function () {
- var v;
- function m(g) {
- x(g, function () {
- var r;
- if (this._jsonIndex < this._json.length)
- return r = this._json[this._jsonIndex++];
- Sd(this._source, this._timeout, {
- result: function (r) {
- r && r.length && 0 < r.length ? (r.forEach(function (g) {
- this._json.push(g);
- }), m(g)) : (this._eom = !0, g.result(null));
- },
- timeout: function () {
- g.timeout();
- },
- error: function (m) {
- g.error(m);
- }
- });
- }, t);
- }
- v = this.getMessageHeader();
- if (!v)
- throw new fa("Read attempted with error message.");
- if (-1 != this._payloadIndex && this._payloadIndex < this._payloads.length)
- return this._payloads[this._payloadIndex++];
- if (this._eom)
- return null;
- m({
- result: function (m) {
- x(r, function () {
- if (!m)
- return null;
- if ("object" !== typeof m)
- throw new la(g.MESSAGE_FORMAT_ERROR);
- ke(m, this._cryptoContext, {
- result: function (m) {
- x(r, function () {
- var r,
- t,
- w,
- y;
- r = v.masterToken;
- t = v.entityAuthenticationData;
- w = v.userIdToken;
- y = v.getUserAuthenticationData;
- if (m.messageId != v.messageId)
- throw new Fa(g.PAYLOAD_MESSAGE_ID_MISMATCH, "payload mid " + m.messageId + " header mid " + v.messageId).setEntity(r).setEntity(t).setUser(w).setUser(y);
- if (m.sequenceNumber != this._payloadSequenceNumber)
- throw new Fa(g.PAYLOAD_SEQUENCE_NUMBER_MISMATCH, "payload seqno " + m.sequenceNumber + " expected seqno " + this._payloadSequenceNumber).setEntity(r).setEntity(t).setUser(w).setUser(y);
- ++this._payloadSequenceNumber;
- m.isEndOfMessage() && (this._eom = !0);
- r = m.data;
- this._payloads.push(r);
- this._payloadIndex = -1;
- return r;
- }, t);
- },
- error: function (m) {
- m instanceof SyntaxError && (m = new la(g.JSON_PARSE_ERROR, "payloadchunk", m));
- r.error(m);
- }
- });
- }, t);
- },
- timeout: function () {
- r.timeout();
- },
- error: function (g) {
- r.error(g);
- }
- });
- }, t);
- },
- isReady: function (g, m) {
- var t;
- function r() {
- x(m, function () {
- if (this._aborted)
- return !1;
- if (this._timedout)
- m.timeout();
- else {
- if (this._errored)
- throw this._errored;
- return !0;
- }
- }, t);
- }
- t = this;
- x(m, function () {
- this._ready ? r() : this._readyQueue.poll(g, {
- result: function (g) {
- x(m, function () {
- if (g === Y)
- return !1;
- r();
- }, t);
- },
- timeout: function () {
- m.timeout();
- },
- error: function (g) {
- m.error(g);
- }
- });
- }, t);
- },
- getMessageHeader: function () {
- return this._header instanceof sc ? this._header : null;
- },
- getErrorHeader: function () {
- return this._header instanceof Qb ? this._header : null;
- },
- getIdentity: function () {
- var g,
- m;
- g = this.getMessageHeader();
- if (g) {
- m = g.masterToken;
- return m ? m.identity : g.entityAuthenticationData.getIdentity();
- }
- return this.getErrorHeader().entityAuthenticationData.getIdentity();
- },
- getCustomer: function () {
- var g;
- g = this.getMessageHeader();
- return g ? g.customer : null;
- },
- getPayloadCryptoContext: function () {
- return this._cryptoContext;
- },
- getKeyExchangeCryptoContext: function () {
- return this._keyxCryptoContext;
- },
- closeSource: function (g) {
- this._closeSource = g;
- },
- abort: function () {
- this._aborted = !0;
- this._source.abort();
- this._readyQueue.cancelAll();
- },
- close: function () {
- this._closeSource && this._source.close();
- },
- mark: function () {
- if (this._currentPayload) {
- for (; 0 < this._payloads.length && this._payloads[0] !== this._currentPayload; )
- this._payloads.shift();
- this._payloadIndex = 0;
- this._currentPayload = this._payloads[this._payloadIndex++];
- this._markOffset = this._payloadOffset;
- } else
- this._payloadIndex = -1, this._payloads = [];
- },
- markSupported: function () {
- return !0;
- },
- read: function (g, m, r) {
- var v;
- function t() {
- x(r, function () {
- var w,
- y,
- F,
- I;
- function t(r) {
- x(r, function () {
- var w,
- E,
- M;
- if (y && I >= y.length)
- return y.subarray(0, I);
- w = -1;
- if (this._currentPayload) {
- E = this._currentPayload.length - this._payloadOffset;
- if (!y) {
- M = E;
- if (-1 != this._payloadIndex)
- for (var ca = this._payloadIndex; ca < this._payloads.length; ++ca)
- M += this._payloads[ca].length;
- 0 < M && (y = new Uint8Array(M));
- }
- E = Math.min(E, y ? y.length - I : 0);
- 0 < E && (w = this._currentPayload.subarray(this._payloadOffset, this._payloadOffset + E), y.set(w, F), w = E, F += E, this._payloadOffset += E);
- }
- -1 != w ? (I += w, t(r)) : this.nextData(m, {
- result: function (m) {
- x(r, function () {
- if (this._aborted)
- return y ? y.subarray(0, I) : new Uint8Array(0);
- this._currentPayload = m;
- this._payloadOffset = 0;
- if (this._currentPayload)
- t(r);
- else
- return 0 == I && 0 != g ? null : y ? y.subarray(0, I) : new Uint8Array(0);
- }, v);
- },
- timeout: function () {
- r.timeout(y ? y.subarray(0, I) : new Uint8Array(0));
- },
- error: function (g) {
- x(r, function () {
- g instanceof L && (g = new db("Error reading the payload chunk.", g));
- if (0 < I)
- return v._readException = g, y.subarray(0, I);
- throw g;
- }, v);
- }
- });
- }, v);
- }
- if (this._aborted)
- return new Uint8Array(0);
- if (this._timedout)
- r.timeout(new Uint8Array(0));
- else {
- if (this._errored)
- throw this._errored;
- if (null != this._readException) {
- w = this._readException;
- this._readException = null;
- throw w;
- }
- y = -1 != g ? new Uint8Array(g) : Y;
- F = 0;
- I = 0;
- t(r);
- }
- }, v);
- }
- v = this;
- x(r, function () {
- if (-1 > g)
- throw new RangeError("read requested with illegal length " + g);
- this._ready ? t() : this._readyQueue.poll(m, {
- result: function (g) {
- g === Y ? r.result(!1) : t();
- },
- timeout: function () {
- r.timeout(new Uint8Array(0));
- },
- error: function (g) {
- r.error(g);
- }
- });
- }, v);
- },
- reset: function () {
- this._payloadIndex = 0;
- 0 < this._payloads.length ? (this._currentPayload = this._payloads[this._payloadIndex++], this._payloadOffset = this._markOffset) : this._currentPayload = null;
- }
- });
- pe = function (g, m, r, t, v, E, M) {
- new oe(g, m, r, t, v, E, M);
- };
- }
- ());
- (function () {
- qe = Jc.extend({
- init: function (g, m, r, t, I, v, E) {
- var w;
- w = this;
- x(E, function () {
- var E,
- F,
- M;
- function y() {
- w._ready = !0;
- w._readyQueue.add(!0);
- }
- E = qd(g.getMessageCapabilities(), t.messageCapabilities);
- F = null;
- E && (F = Gd(E.compressionAlgorithms));
- E = {
- _destination: {
- value: m,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- _charset: {
- value: r,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- _capabilities: {
- value: E,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- _header: {
- value: t,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- _compressionAlgo: {
- value: F,
- writable: !0,
- enumerable: !1,
- configurable: !1
- },
- _cryptoContext: {
- value: I,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- _payloadSequenceNumber: {
- value: 1,
- writable: !0,
- enumerable: !1,
- configurable: !1
- },
- _currentPayload: {
- value: [],
- writable: !0,
- enumerable: !1,
- configurable: !1
- },
- _closed: {
- value: !1,
- writable: !0,
- enumerable: !1,
- configurable: !1
- },
- _payloads: {
- value: [],
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- _ready: {
- value: !1,
- writable: !0,
- enumerable: !1,
- configurable: !1
- },
- _readyQueue: {
- value: new oc(),
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- _aborted: {
- value: !1,
- writable: !0,
- enumerable: !1,
- configurable: !1
- },
- _timedout: {
- value: !1,
- writable: !0,
- enumerable: !1,
- configurable: !1
- },
- _errored: {
- value: null,
- writable: !0,
- enumerable: !1,
- configurable: !1
- }
- };
- Object.defineProperties(this, E);
- M = Qa(JSON.stringify(t), r);
- m.write(M, 0, M.length, v, {
- result: function (g) {
- try {
- w._aborted ? y() : g < M.length ? (w._timedout = !0, y()) : m.flush(v, {
- result: function (g) {
- w._aborted || (w._timedout = !g);
- y();
- },
- timeout: function () {
- w._timedout = !0;
- y();
- },
- error: function (g) {
- w._errored = g;
- y();
- }
- });
- } catch (B) {
- w._errored = B;
- y();
- }
- },
- timeout: function () {
- w._timedout = !0;
- y();
- },
- error: function (g) {
- w._errored = g;
- y();
- }
- });
- return this;
- }, w);
- },
- setCompressionAlgorithm: function (g, m, r) {
- var w;
- function t() {
- w.flush(m, {
- result: function (m) {
- x(r, function () {
- if (!m)
- throw new db("flush() aborted");
- this._compressionAlgo = g;
- return !0;
- }, w);
- },
- timeout: function () {
- r.timeout();
- },
- error: function (g) {
- r.error(g);
- }
- });
- }
- w = this;
- x(r, function () {
- if (!this.getMessageHeader())
- throw new fa("Cannot write payload data for an error message.");
- if (this._compressionAlgo == g)
- return !0;
- if (g) {
- if (!this._capabilities)
- return !1;
- for (var m = this._capabilities.compressionAlgorithms, r = 0; r < m.length; ++r)
- if (m[r] == g) {
- t();
- return;
- }
- return !1;
- }
- t();
- }, w);
- },
- getMessageHeader: function () {
- return this._header instanceof sc ? this._header : null;
- },
- getErrorMessage: function () {
- return this._header instanceof Qb ? this._header : null;
- },
- getPayloads: function () {
- return this._payloads;
- },
- abort: function () {
- this._aborted = !0;
- this._destination.abort();
- this._readyQueue.cancelAll();
- },
- close: function (g, m) {
- var r;
- r = this;
- x(m, function () {
- if (this._aborted)
- return !1;
- if (this._timedout)
- m.timeout();
- else {
- if (this._errored)
- throw this._errored;
- if (this._closed)
- return !0;
- this._closed = !0;
- this.flush(g, {
- result: function (g) {
- x(m, function () {
- g && (this._currentPayload = null);
- return g;
- }, r);
- },
- timeout: function () {
- m.timeout();
- },
- error: function (g) {
- m.error(g);
- }
- });
- }
- }, r);
- },
- flush: function (g, m) {
- var t;
- function r() {
- x(m, function () {
- var r,
- v,
- M;
- if (this._aborted)
- return !1;
- if (this._timedout)
- m.timeout();
- else {
- if (this._errored)
- throw this._errored;
- if (!this._currentPayload || !this._closed && 0 == this._currentPayload.length)
- return !0;
- r = this.getMessageHeader();
- if (!r)
- return !0;
- v = 0;
- this._currentPayload && this._currentPayload.forEach(function (g) {
- v += g.length;
- });
- for (var w = new Uint8Array(v), y = 0, F = 0; this._currentPayload && F < this._currentPayload.length; ++F) {
- M = this._currentPayload[F];
- w.set(M, y);
- y += M.length;
- }
- je(this._payloadSequenceNumber, r.messageId, this._closed, this._compressionAlgo, w, this._cryptoContext, {
- result: function (r) {
- x(m, function () {
- var v;
- this._payloads.push(r);
- v = Qa(JSON.stringify(r), this._charset);
- this._destination.write(v, 0, v.length, g, {
- result: function (v) {
- x(m, function () {
- if (this._aborted)
- return !1;
- v < r.length ? m.timeout() : this._destination.flush(g, {
- result: function (g) {
- x(m, function () {
- if (this._aborted)
- return !1;
- if (g)
- return ++this._payloadSequenceNumber, this._currentPayload = this._closed ? null : [], !0;
- m.timeout();
- }, t);
- },
- timeout: function () {
- m.timeout();
- },
- error: function (g) {
- g instanceof L && (g = new db("Error encoding payload chunk [sequence number " + t._payloadSequenceNumber + "].", g));
- m.error(g);
- }
- });
- }, t);
- },
- timeout: function (g) {
- m.timeout();
- },
- error: function (g) {
- g instanceof L && (g = new db("Error encoding payload chunk [sequence number " + t._payloadSequenceNumber + "].", g));
- m.error(g);
- }
- });
- }, t);
- },
- error: function (g) {
- g instanceof L && (g = new db("Error encoding payload chunk [sequence number " + t._payloadSequenceNumber + "].", g));
- m.error(g);
- }
- });
- }
- }, t);
- }
- t = this;
- x(m, function () {
- this._ready ? r() : this._readyQueue.poll(g, {
- result: function (g) {
- g === Y ? m.result(!1) : r();
- },
- timeout: function () {
- m.timeout();
- },
- error: function (g) {
- m.error(g);
- }
- });
- }, t);
- },
- write: function (g, m, r, t, I) {
- x(I, function () {
- var t;
- if (this._aborted)
- return !1;
- if (this._timedout)
- I.timeout();
- else {
- if (this._errored)
- throw this._errored;
- if (this._closed)
- throw new db("Message output stream already closed.");
- if (0 > m)
- throw new RangeError("Offset cannot be negative.");
- if (0 > r)
- throw new RangeError("Length cannot be negative.");
- if (m + r > g.length)
- throw new RangeError("Offset plus length cannot be greater than the array length.");
- if (!this.getMessageHeader())
- throw new fa("Cannot write payload data for an error message.");
- t = g.subarray(m, m + r);
- this._currentPayload.push(t);
- return t.length;
- }
- }, this);
- }
- });
- Pc = function (g, m, r, t, I, v, E) {
- new qe(g, m, r, t, I, v, E);
- };
- }
- ());
- Xe = oa.Class.create({
- sentHeader: function (g) {},
- receivedHeader: function (g) {}
- });
- Object.freeze({
- USERDATA_REAUTH: m.USERDATA_REAUTH,
- SSOTOKEN_REJECTED: m.SSOTOKEN_REJECTED
- });
- re = oa.Class.create({
- getCryptoContexts: function () {},
- getRecipient: function () {},
- isEncrypted: function () {},
- isIntegrityProtected: function () {},
- isNonReplayable: function () {},
- isRequestingTokens: function () {},
- getUserId: function () {},
- getUserAuthData: function (g, m, r, t) {},
- getCustomer: function () {},
- getKeyRequestData: function (g) {},
- updateServiceTokens: function (g, m, r) {},
- write: function (g, m, r) {},
- getDebugContext: function () {}
- });
- oa.Class.create({
- getInputStream: function (g) {},
- getOutputStream: function (g) {}
- });
- (function () {
- var ua,
- X,
- za,
- wa,
- ca,
- ra,
- B,
- W,
- ya,
- qa,
- da,
- Aa;
- function t(g) {
- return function () {
- g.abort();
- };
- }
- function w(g, m) {
- Object.defineProperties(this, {
- masterToken: {
- value: g,
- writable: !1,
- configurable: !1
- },
- ticket: {
- value: m,
- writable: !1,
- configurable: !1
- }
- });
- }
- function y(g, m) {
- Object.defineProperties(this, {
- builder: {
- value: g,
- writable: !1,
- configurable: !1
- },
- msgCtx: {
- value: m,
- writable: !1,
- configurable: !1
- }
- });
- }
- function F(g, m, r) {
- Object.defineProperties(this, {
- requestHeader: {
- value: g,
- writable: !1,
- configurable: !1
- },
- payloads: {
- value: m,
- writable: !1,
- configurable: !1
- },
- handshake: {
- value: r,
- writable: !1,
- configurable: !1
- }
- });
- }
- function I(g, m) {
- Object.defineProperties(this, {
- requestHeader: {
- value: m.requestHeader,
- writable: !1,
- configurable: !1
- },
- payloads: {
- value: m.payloads,
- writable: !1,
- configurable: !1
- },
- handshake: {
- value: m.handshake,
- writable: !1,
- configurable: !1
- },
- response: {
- value: g,
- writable: !1,
- configurable: !1
- }
- });
- }
- function v(g) {
- for (; g; ) {
- if (g instanceof fb)
- return !0;
- g = g instanceof L ? g.cause : Y;
- }
- return !1;
- }
- function E(g, m, r, t, v, w, y, E, d) {
- me(m, t, v, w, {
- result: function (b) {
- r && r.sentHeader(b);
- Pc(m, y, Ma, b, null, null, E, {
- result: function (a) {
- g.setAbort(function () {
- a.abort();
- });
- a.close(E, {
- result: function (a) {
- x(d, function () {
- if (!a)
- throw new fb("sendError aborted.");
- return a;
- });
- },
- timeout: function () {
- d.timeout();
- },
- error: function (a) {
- d.error(a);
- }
- });
- },
- timeout: function () {},
- error: function (a) {
- d.error(a);
- }
- });
- },
- error: function (b) {
- d.error(b);
- }
- });
- }
- ua = Jc.extend({
- close: function (g, m) {
- m.result(!0);
- },
- write: function (g, m, t, v, w) {
- r(w, function () {
- return Math.min(g.length - m, t);
- });
- },
- flush: function (g, m) {
- m.result(!0);
- }
- });
- X = We.extend({
- getUserMessage: function (g, m) {
- return null;
- }
- });
- za = re.extend({
- init: function (g) {
- Object.defineProperties(this, {
- _appCtx: {
- value: g,
- writable: !1,
- enumerable: !1,
- configurable: !1
- }
- });
- },
- getCryptoContexts: function () {
- return this._appCtx.getCryptoContexts();
- },
- isEncrypted: function () {
- return this._appCtx.isEncrypted();
- },
- isIntegrityProtected: function () {
- return this._appCtx.isIntegrityProtected();
- },
- isNonReplayable: function () {
- return this._appCtx.isNonReplayable();
- },
- isRequestingTokens: function () {
- return this._appCtx.isRequestingTokens();
- },
- getUserId: function () {
- return this._appCtx.getUserId();
- },
- getUserAuthData: function (g, m, r, t) {
- this._appCtx.getUserAuthData(g, m, r, t);
- },
- getCustomer: function () {
- return this._appCtx.getCustomer();
- },
- getKeyRequestData: function (g) {
- this._appCtx.getKeyRequestData(g);
- },
- updateServiceTokens: function (g, m, r) {
- this._appCtx.updateServiceTokens(g, m, r);
- },
- write: function (g, m, r) {
- this._appCtx.write(g, m, r);
- },
- getDebugContext: function () {
- return this._appCtx.getDebugContext();
- }
- });
- wa = za.extend({
- init: function va(g, m) {
- va.base.call(this, m);
- Object.defineProperties(this, {
- _payloads: {
- value: g,
- writable: !1,
- enumerable: !1,
- configurable: !1
- }
- });
- },
- write: function (g, m, r) {
- var v;
- function t(w, y) {
- var d;
- if (w == v._payloads.length)
- r.result(!0);
- else {
- d = v._payloads[w];
- g.setCompressionAlgorithm(d.compressionAlgo, m, {
- result: function (b) {
- g.write(d.data, 0, d.data.length, m, {
- result: function (a) {
- x(r, function () {
- d.isEndOfMessage() ? t(w + 1, y) : g.flush(m, {
- result: function (a) {
- r.result(a);
- },
- timeout: function () {
- r.timeout();
- },
- error: function (a) {
- r.error(a);
- }
- });
- }, v);
- },
- timeout: function (a) {
- r.timeout(a);
- },
- error: function (a) {
- r.error(a);
- }
- });
- },
- timeout: function () {},
- error: function (b) {
- r.error(b);
- }
- });
- }
- }
- v = this;
- t(0);
- }
- });
- ca = za.extend({
- init: function ga(g) {
- ga.base.call(this, g);
- },
- isEncrypted: function () {
- return !1;
- },
- isNonReplayable: function () {
- return !1;
- },
- write: function (g, m, r) {
- r.result(!0);
- }
- });
- ra = {};
- da = oa.Class.create({
- init: function (g) {
- g || (g = new X());
- Object.defineProperties(this, {
- _filterFactory: {
- value: null,
- writable: !0,
- enumerable: !1,
- configurable: !1
- },
- _renewingContexts: {
- value: [],
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- _masterTokenLocks: {
- value: {},
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- _messageRegistry: {
- value: g,
- writable: !1,
- enumerable: !1,
- configurable: !1
- }
- });
- },
- setFilterFactory: function (g) {
- this._filterFactory = g;
- },
- getNewestMasterToken: function (g, m, r, t) {
- var v;
- v = this;
- x(t, function () {
- var y,
- d,
- b,
- a,
- c;
- y = m.getMslStore();
- d = y.getMasterToken();
- if (!d)
- return null;
- b = d.uniqueKey();
- a = this._masterTokenLocks[b];
- a || (a = new Zc(), this._masterTokenLocks[b] = a);
- c = a.readLock(r, {
- result: function (l) {
- x(t, function () {
- var c;
- if (l === Y)
- throw new fb("getNewestMasterToken aborted.");
- c = y.getMasterToken();
- if (d.equals(c))
- return new w(d, l);
- a.unlock(l);
- a.writeLock(r, {
- result: function (l) {
- x(t, function () {
- if (l === Y)
- throw new fb("getNewestMasterToken aborted.");
- delete this._masterTokenLocks[b];
- a.unlock(l);
- return this.getNewestMasterToken(g, m, r, t);
- }, v);
- },
- timeout: function () {
- t.timeout();
- },
- error: function (a) {
- t.error(a);
- }
- });
- }, v);
- },
- timeout: function () {
- t.timeout();
- },
- error: function (a) {
- t.error(a);
- }
- });
- g.setAbort(function () {
- c && (a.cancel(c), c = Y);
- });
- }, v);
- },
- deleteMasterToken: function (g, m) {
- var r;
- if (m) {
- r = this;
- setTimeout(function () {
- var t,
- v;
- t = m.uniqueKey();
- v = r._masterTokenLocks[t];
- v || (v = new Zc(), r._masterTokenLocks[t] = v);
- v.writeLock(-1, {
- result: function (w) {
- g.getMslStore().removeCryptoContext(m);
- delete r._masterTokenLocks[t];
- v.unlock(w);
- },
- timeout: function () {
- throw new fa("Unexpected timeout received.");
- },
- error: function (g) {
- throw g;
- }
- });
- }, 0);
- }
- },
- releaseMasterToken: function (g) {
- var m;
- if (g && g.masterToken) {
- m = g.masterToken.uniqueKey();
- m = this._masterTokenLocks[m];
- if (!m)
- throw new fa("Master token read/write lock does not exist when it should.");
- m.unlock(g.ticket);
- }
- },
- updateOutgoingCryptoContexts: function (g, m, r) {
- var t;
- t = g.getMslStore();
- !g.isPeerToPeer() && r && (t.setCryptoContext(r.keyResponseData.masterToken, r.cryptoContext), this.deleteMasterToken(g, m.masterToken));
- },
- updateIncomingCryptoContexts: function (g, m, r) {
- var t,
- v;
- t = r.getMessageHeader();
- if (t) {
- v = g.getMslStore();
- if (t = t.keyResponseData)
- v.setCryptoContext(t.masterToken, r.getKeyExchangeCryptoContext()), this.deleteMasterToken(g, m.masterToken);
- }
- },
- storeServiceTokens: function (g, m, r, t) {
- var d,
- b;
- g = g.getMslStore();
- for (var v = [], w = 0; w < t.length; ++w) {
- d = t[w];
- if (!d.isBoundTo(m) || !m.isVerified()) {
- b = d.data;
- b && 0 == b.length ? g.removeServiceTokens(d.name, d.isMasterTokenBound() ? m : null, d.isUserIdTokenBound() ? r : null) : v.push(d);
- }
- }
- 0 < v.length && g.addServiceTokens(v);
- },
- buildRequest: function (g, m, t, v, w) {
- var y;
- y = this;
- this.getNewestMasterToken(g, m, v, {
- result: function (d) {
- r(w, function () {
- var b,
- a,
- c;
- b = d && d.masterToken;
- if (b) {
- a = t.getUserId();
- c = m.getMslStore();
- a = (a = a ? c.getUserIdToken(a) : null) && a.isBoundTo(b) ? a : null;
- } else
- a = null;
- Zb(m, b, a, null, {
- result: function (a) {
- r(w, function () {
- a.setNonReplayable(t.isNonReplayable());
- return {
- builder: a,
- tokenTicket: d
- };
- });
- },
- error: function (a) {
- r(w, function () {
- this.releaseMasterToken(d);
- a instanceof L && (a = new fa("User ID token not bound to master token despite internal check.", a));
- throw a;
- }, y);
- }
- });
- }, y);
- },
- timeout: function () {
- w.timeout();
- },
- error: function (d) {
- w.error(d);
- }
- });
- },
- buildResponse: function (g, m, r, t, v, w) {
- var d;
- d = this;
- le(m, t, {
- result: function (b) {
- x(w, function () {
- b.setNonReplayable(r.isNonReplayable());
- if (!m.isPeerToPeer() && !t.keyResponseData)
- return {
- builder: b,
- tokenTicket: null
- };
- this.getNewestMasterToken(g, m, v, {
- result: function (a) {
- x(w, function () {
- var c,
- l,
- q;
- c = a && a.masterToken;
- if (c) {
- l = r.getUserId();
- q = m.getMslStore();
- l = (l = l ? q.getUserIdToken(l) : null) && l.isBoundTo(c) ? l : null;
- } else
- l = null;
- b.setAuthTokens(c, l);
- return {
- builder: b,
- tokenTicket: a
- };
- }, d);
- },
- timeout: function () {
- w.timeout();
- },
- error: function (a) {
- w.error(a);
- }
- });
- }, d);
- },
- error: function (b) {
- w.error(b);
- }
- });
- },
- buildErrorResponse: function (g, r, t, v, w, E, d) {
- var c;
- function b(a, b) {
- x(d, function () {
- var l,
- k;
- l = Yb(w.messageId);
- k = new wa(b, t);
- Zb(r, null, null, l, {
- result: function (b) {
- x(d, function () {
- r.isPeerToPeer() && b.setPeerAuthTokens(a.peerMasterToken, a.peerUserIdToken);
- b.setNonReplayable(k.isNonReplayable());
- return {
- errorResult: new y(b, k),
- tokenTicket: null
- };
- }, c);
- },
- error: function (a) {
- d.error(a);
- }
- });
- }, c);
- }
- function a(a, b) {
- c.getNewestMasterToken(g, r, E, {
- result: function (l) {
- x(d, function () {
- var k,
- p,
- h;
- k = l && l.masterToken;
- p = Yb(w.messageId);
- h = new wa(b, t);
- Zb(r, k, null, p, {
- result: function (b) {
- x(d, function () {
- r.isPeerToPeer() && b.setPeerAuthTokens(a.peerMasterToken, a.peerUserIdToken);
- b.setNonReplayable(h.isNonReplayable());
- return {
- errorResult: new y(b, h),
- tokenTicket: l
- };
- }, c);
- },
- error: function (a) {
- d.error(a);
- }
- });
- }, c);
- },
- timeout: function () {
- d.timeout();
- },
- error: function (a) {
- d.error(a);
- }
- });
- }
- c = this;
- x(d, function () {
- var l,
- q,
- n,
- k;
- l = v.requestHeader;
- q = v.payloads;
- n = w.errorCode;
- switch (n) {
- case m.ENTITYDATA_REAUTH:
- case m.ENTITY_REAUTH:
- r.getEntityAuthenticationData(n, {
- result: function (a) {
- x(d, function () {
- if (!a)
- return null;
- b(l, q);
- }, c);
- },
- error: function (a) {
- d.error(a);
- }
- });
- break;
- case m.USERDATA_REAUTH:
- case m.SSOTOKEN_REJECTED:
- t.getUserAuthData(n, !1, !0, {
- result: function (b) {
- x(d, function () {
- if (!b)
- return null;
- a(l, q);
- }, c);
- },
- error: function (a) {
- d.error(a);
- }
- });
- break;
- case m.USER_REAUTH:
- a(l, q);
- break;
- case m.KEYX_REQUIRED:
- n = Yb(w.messageId),
- k = new wa(q, t);
- Zb(r, null, null, n, {
- result: function (a) {
- x(d, function () {
- r.isPeerToPeer() && a.setPeerAuthTokens(l.peerMasterToken, l.peerUserIdToken);
- a.setRenewable(!0);
- a.setNonReplayable(k.isNonReplayable());
- return {
- errorResult: new y(a, k),
- tokenTicket: null
- };
- }, c);
- },
- error: function (a) {
- d.error(a);
- }
- });
- break;
- case m.EXPIRED:
- this.getNewestMasterToken(g, r, E, {
- result: function (a) {
- x(d, function () {
- var b,
- f,
- k,
- p;
- b = a && a.masterToken;
- f = l.userIdToken;
- k = Yb(w.messageId);
- p = new wa(q, t);
- Zb(r, b, f, k, {
- result: function (f) {
- x(d, function () {
- r.isPeerToPeer() && f.setPeerAuthTokens(l.peerMasterToken, l.peerUserIdToken);
- l.masterToken.equals(b) && f.setRenewable(!0);
- f.setNonReplayable(p.isNonReplayable());
- return {
- errorResult: new y(f, p),
- tokenTicket: a
- };
- }, c);
- },
- error: function (a) {
- d.error(a);
- }
- }, c);
- }, c);
- },
- timeout: function () {
- d.timeout();
- },
- error: function (a) {
- d.error(a);
- }
- });
- break;
- case m.REPLAYED:
- this.getNewestMasterToken(g, r, E, {
- result: function (a) {
- x(d, function () {
- var b,
- f,
- k,
- p;
- b = a && a.masterToken;
- f = l.userIdToken;
- k = Yb(w.messageId);
- p = new wa(q, t);
- Zb(r, b, f, k, {
- result: function (f) {
- x(d, function () {
- r.isPeerToPeer() && f.setPeerAuthTokens(l.peerMasterToken, l.peerUserIdToken);
- l.masterToken.equals(b) ? (f.setRenewable(!0), f.setNonReplayable(!1)) : f.setNonReplayable(p.isNonReplayable());
- return {
- errorResult: new y(f, p),
- tokenTicket: a
- };
- }, c);
- },
- error: function (a) {
- d.error(a);
- }
- });
- }, c);
- },
- timeout: function () {
- d.timeout();
- },
- error: function (a) {
- d.error(a);
- }
- });
- break;
- default:
- return null;
- }
- }, c);
- },
- cleanupContext: function (g, r, t) {
- switch (t.errorCode) {
- case m.ENTITY_REAUTH:
- this.deleteMasterToken(g, r.masterToken);
- break;
- case m.USER_REAUTH:
- t = r.userIdToken,
- r.masterToken && t && g.getMslStore().removeUserIdToken(t);
- }
- },
- send: function (g, m, r, t, v, w, d) {
- var n;
- function b(b, l, h) {
- x(d, function () {
- var f;
- f = v.getPeerUserIdToken();
- !m.isPeerToPeer() && !l || m.isPeerToPeer() && !f ? (f = r.getCustomer()) ? v.setCustomer(f, {
- result: function (f) {
- x(d, function () {
- l = v.getUserIdToken();
- a(b, l, h);
- }, n);
- },
- error: function (a) {
- d.error(a);
- }
- }) : a(b, l, h) : a(b, l, h);
- }, n);
- }
- function a(a, b, h) {
- x(d, function () {
- var f,
- l;
- f = !h && (!r.isEncrypted() || v.willEncryptPayloads()) && (!r.isIntegrityProtected() || v.willIntegrityProtectPayloads()) && (!r.isNonReplayable() || v.isNonReplayable() && a);
- f || v.setNonReplayable(!1);
- l = [];
- v.isRenewable() && (!a || a.isRenewable() || r.isNonReplayable()) ? r.getKeyRequestData({
- result: function (h) {
- x(d, function () {
- var p;
- for (var k = 0; k < h.length; ++k) {
- p = h[k];
- l.push(p);
- v.addKeyRequestData(p);
- }
- c(a, b, f, l);
- }, n);
- },
- error: function (a) {
- d.error(a);
- }
- }) : c(a, b, f, l);
- }, n);
- }
- function c(a, b, h, f) {
- x(d, function () {
- var f;
- f = new ne(m, r, v);
- r.updateServiceTokens(f, !h, {
- result: function (f) {
- v.getHeader({
- result: function (f) {
- x(d, function () {
- var k,
- p;
- k = r.getDebugContext();
- k && k.sentHeader(f);
- k = v.getKeyExchangeData();
- this.updateOutgoingCryptoContexts(m, f, k);
- this.storeServiceTokens(m, a, b, f.serviceTokens);
- k = !m.isPeerToPeer() && k ? k.cryptoContext : f.cryptoContext;
- if (g.isAborted())
- throw new fb("send aborted.");
- p = null != this._filterFactory ? this._filterFactory.getOutputStream(t) : t;
- Pc(m, p, Ma, f, k, w, {
- result: function (a) {
- g.setAbort(function () {
- a.abort();
- });
- l(a, f, h);
- },
- timeout: function () {
- d.timeout();
- },
- error: function (a) {
- d.error(a);
- }
- });
- }, n);
- },
- timeout: function () {
- d.timeout();
- },
- error: function (a) {
- d.error(a);
- }
- });
- },
- error: function (a) {
- d.error(a);
- }
- });
- }, n);
- }
- function l(a, b, h) {
- var f,
- l;
- if (h)
- r.write(a, w, {
- result: function (f) {
- x(d, function () {
- if (g.isAborted())
- throw new fb("MessageOutputStream write aborted.");
- q(a, b, h);
- }, n);
- },
- timeout: function () {
- d.timeout();
- },
- error: function (a) {
- d.error(a);
- }
- });
- else {
- f = new ua();
- l = new jc();
- Pc(m, f, Ma, b, l, w, {
- result: function (f) {
- r.write(f, w, {
- result: function (l) {
- x(d, function () {
- if (g.isAborted())
- throw new fb("MessageOutputStream proxy write aborted.");
- f.close(w, {
- result: function (l) {
- x(d, function () {
- var k;
- if (!l)
- throw new fb("MessageOutputStream proxy close aborted.");
- k = f.getPayloads();
- q(a, b, h, k);
- }, n);
- },
- timeout: function () {
- d.timeout();
- },
- error: function (a) {
- d.error(a);
- }
- });
- }, n);
- },
- timeout: function () {
- d.timeout();
- },
- error: function (a) {
- d.error(a);
- }
- });
- },
- timeout: function () {
- d.timeout();
- },
- error: function (a) {
- d.error(a);
- }
- });
- }
- }
- function q(a, b, h, f) {
- a.close(w, {
- result: function (l) {
- x(d, function () {
- if (!l)
- throw new fb("MessageOutputStream close aborted.");
- f || (f = a.getPayloads());
- return new F(b, f, !h);
- }, n);
- },
- timeout: function () {
- d.timeout();
- },
- error: function (a) {
- d.error(a);
- }
- });
- }
- n = this;
- x(d, function () {
- var a,
- l,
- h,
- f;
- a = v.getMasterToken();
- l = v.getUserIdToken();
- h = !1;
- if (r.getUserId()) {
- f = !l;
- r.getUserAuthData(null, v.isRenewable(), f, {
- result: function (f) {
- x(d, function () {
- f && (v.willEncryptHeader() && v.willIntegrityProtectHeader() ? v.setUserAuthenticationData(f) : h = !0);
- b(a, l, h);
- }, n);
- },
- error: function (a) {
- d.error(a);
- }
- });
- } else
- b(a, l, h);
- }, n);
- },
- receive: function (r, t, v, w, y, E, d) {
- var b;
- b = this;
- x(d, function () {
- var a,
- c,
- l;
- if (r.isAborted())
- throw new fb("receive aborted.");
- a = [];
- y && (a = y.keyRequestData.filter(function () {
- return !0;
- }));
- c = v.getCryptoContexts();
- l = this._filterFactory ? this._filterFactory.getInputStream(w) : w;
- pe(t, l, Ma, a, c, E, {
- result: function (a) {
- r.setAbort(function () {
- a.abort();
- });
- a.isReady(E, {
- result: function (l) {
- x(d, function () {
- var k,
- c,
- h,
- f;
- if (!l)
- throw new fb("MessageInputStream aborted.");
- k = a.getMessageHeader();
- c = a.getErrorHeader();
- h = v.getDebugContext();
- h && h.receivedHeader(k ? k : c);
- if (y && (h = c ? c.errorCode : null, k || h != m.FAIL && h != m.TRANSIENT_FAILURE && h != m.ENTITY_REAUTH && h != m.ENTITYDATA_REAUTH)) {
- h = k ? k.messageId : c.messageId;
- f = Yb(y.messageId);
- if (h != f)
- throw new Fa(g.UNEXPECTED_RESPONSE_MESSAGE_ID, "expected " + f + "; received " + h);
- }
- t.getEntityAuthenticationData(null, {
- result: function (f) {
- x(d, function () {
- var b,
- l,
- h,
- p;
- b = f.getIdentity();
- if (k) {
- l = k.entityAuthenticationData;
- h = k.masterToken;
- l = h ? k.sender : l.getIdentity();
- if (h && h.isDecrypted() && h.identity != l || b == l)
- throw new Fa(g.UNEXPECTED_MESSAGE_SENDER, l);
- y && this.updateIncomingCryptoContexts(t, y, a);
- b = k.keyResponseData;
- t.isPeerToPeer() ? (b = b ? b.masterToken : k.peerMasterToken, h = k.peerUserIdToken, l = k.peerServiceTokens) : (b = b ? b.masterToken : k.masterToken, h = k.userIdToken, l = k.serviceTokens);
- p = v.getUserId();
- p && h && !h.isVerified() && t.getMslStore().addUserIdToken(p, h);
- this.storeServiceTokens(t, b, h, l);
- } else if (l = c.entityAuthenticationData.getIdentity(), b == l)
- throw new Fa(g.UNEXPECTED_MESSAGE_SENDER, l);
- return a;
- }, b);
- },
- error: d.error
- });
- }, b);
- },
- timeout: function () {
- d.timeout();
- },
- error: function (a) {
- d.error(a);
- }
- });
- },
- timeout: function () {
- d.timeout();
- },
- error: function (a) {
- d.error(a);
- }
- });
- }, b);
- },
- sendReceive: function (g, m, r, t, v, w, d, b, a) {
- var l;
- function c(c, n) {
- x(a, function () {
- w.setRenewable(n);
- this.send(g, m, r, v, w, d, {
- result: function (k) {
- x(a, function () {
- var p;
- p = k.requestHeader.keyRequestData;
- b || k.handshake || !p.isEmpty() ? this.receive(g, m, r, t, k.requestHeader, d, {
- result: function (b) {
- x(a, function () {
- n && this.releaseRenewalLock(m, c, b);
- return new I(b, k);
- }, l);
- },
- timeout: function () {
- x(a, function () {
- n && this.releaseRenewalLock(m, c, null);
- a.timeout();
- }, l);
- },
- error: function (b) {
- x(a, function () {
- n && this.releaseRenewalLock(m, c, null);
- throw b;
- }, l);
- }
- }) : x(a, function () {
- n && this.releaseRenewalLock(m, c, null);
- return new I(null, k);
- }, l);
- }, l);
- },
- timeout: function () {
- x(a, function () {
- n && this.releaseRenewalLock(m, c, null);
- a.timeout();
- }, l);
- },
- error: function (b) {
- x(a, function () {
- n && this.releaseRenewalLock(m, c, null);
- throw b;
- }, l);
- }
- });
- }, l);
- }
- l = this;
- x(a, function () {
- var b;
- b = new oc();
- this.acquireRenewalLock(g, m, r, b, w, d, {
- result: function (a) {
- c(b, a);
- },
- timeout: function () {
- a.timeout();
- },
- error: function (b) {
- b instanceof fb ? a.result(null) : a.error(b);
- }
- });
- }, l);
- },
- acquireRenewalLock: function (g, m, r, t, v, w, d) {
- var c;
- function b(l, q, n) {
- x(d, function () {
- var h,
- f;
- if (g.isAborted())
- throw new fb("acquireRenewalLock aborted.");
- for (var k = null, p = 0; p < this._renewingContexts.length; ++p) {
- h = this._renewingContexts[p];
- if (h.ctx === m) {
- k = h.queue;
- break;
- }
- }
- if (!k)
- return this._renewingContexts.push({
- ctx: m,
- queue: t
- }), !0;
- f = k.poll(w, {
- result: function (f) {
- x(d, function () {
- var h;
- if (f === Y)
- throw new fb("acquireRenewalLock aborted.");
- k.add(f);
- if (f === ra || f.isExpired())
- b(f, q, n);
- else {
- if (n && !q || q && !q.isBoundTo(f)) {
- h = m.getMslStore().getUserIdToken(n);
- q = h && h.isBoundTo(f) ? h : null;
- }
- v.setAuthTokens(f, q);
- v.isRenewable() && f.equals(l) ? b(f, q, n) : r.isRequestingTokens() && !q ? b(f, q, n) : a(f, q);
- }
- }, c);
- },
- timeout: function () {},
- error: function (a) {}
- });
- g.setAbort(function () {
- f && (k.cancel(f), f = Y);
- });
- }, c);
- }
- function a(a, b) {
- x(d, function () {
- var c;
- if (g.isAborted())
- throw new fb("acquireRenewalLock aborted.");
- if (!a || a.isRenewable() || !b && r.getUserId() || b && b.isRenewable()) {
- for (var l = null, k = 0; k < this._renewingContexts.length; ++k) {
- c = this._renewingContexts[k];
- if (c.ctx === m) {
- l = c.queue;
- break;
- }
- }
- if (!l)
- return this._renewingContexts.push({
- ctx: m,
- queue: t
- }), !0;
- }
- return !1;
- }, c);
- }
- c = this;
- x(d, function () {
- var l,
- c,
- n;
- l = v.getMasterToken();
- c = v.getUserIdToken();
- n = r.getUserId();
- r.isEncrypted() && !v.willEncryptPayloads() || r.isIntegrityProtected() && !v.willIntegrityProtectPayloads() || v.isRenewable() || !l && r.isNonReplayable() || l && l.isExpired() || !(c || !n || v.willEncryptHeader() && v.willIntegrityProtectHeader()) || r.isRequestingTokens() && (!l || n && !c) ? b(l, c, n) : a(l, c);
- }, c);
- },
- releaseRenewalLock: function (g, m, r) {
- var d;
- for (var t, v, w = 0; w < this._renewingContexts.length; ++w) {
- d = this._renewingContexts[w];
- if (d.ctx === g) {
- t = w;
- v = d.queue;
- break;
- }
- }
- if (v !== m)
- throw new fa("Attempt to release renewal lock that is not owned by this queue.");
- r ? (r = r.messageHeader) ? (v = r.keyResponseData) ? m.add(v.masterToken) : (g = g.isPeerToPeer() ? r.peerMasterToken : r.masterToken) ? m.add(g) : m.add(ra) : m.add(ra) : m.add(ra);
- this._renewingContexts.splice(t, 1);
- }
- });
- se = oa.Class.create({
- init: function () {
- var g;
- g = {
- _impl: {
- value: new da(),
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- _shutdown: {
- value: !1,
- writable: !1,
- enumerable: !1,
- configurable: !1
- }
- };
- Object.defineProperties(this, g);
- },
- setFilterFactory: function (g) {
- this._impl.setFilterFactory(g);
- },
- shutdown: function () {
- this._shutdown = !0;
- },
- receive: function (g, m, r, v, w, y) {
- var d;
- if (this._shutdown)
- throw new L("MslControl is shutdown.");
- d = new B(this._impl, g, m, r, v, w);
- setTimeout(function () {
- d.call(y);
- }, 0);
- return t(d);
- },
- respond: function (g, m, r, v, w, y, d) {
- var b;
- if (this._shutdown)
- throw new L("MslControl is shutdown.");
- b = new W(this._impl, g, m, r, v, w, y);
- setTimeout(function () {
- b.call(d);
- }, 0);
- return t(b);
- },
- error: function (g, m, r, v, w, y, d) {
- var b;
- if (this._shutdown)
- throw new L("MslControl is shutdown.");
- b = new ya(this._impl, g, m, r, v, w, y);
- setTimeout(function () {
- b.call(d);
- }, 0);
- return t(b);
- },
- request: function (g, m) {
- var r,
- v,
- w,
- y,
- d,
- b;
- if (this._shutdown)
- throw new L("MslControl is shutdown.");
- if (5 == arguments.length) {
- if (r = arguments[2], w = v = null, y = arguments[3], d = arguments[4], g.isPeerToPeer()) {
- d.error(new fa("This method cannot be used in peer-to-peer mode."));
- return;
- }
- } else if (6 == arguments.length && (r = null, v = arguments[2], w = arguments[3], y = arguments[4], d = arguments[5], !g.isPeerToPeer())) {
- d.error(new fa("This method cannot be used in trusted network mode."));
- return;
- }
- b = new qa(this._impl, g, m, r, v, w, null, 0, y);
- setTimeout(function () {
- b.call(d);
- }, 0);
- return t(b);
- }
- });
- B = oa.Class.create({
- init: function (g, m, r, t, v, w) {
- Object.defineProperties(this, {
- _ctrl: {
- value: g,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- _ctx: {
- value: m,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- _msgCtx: {
- value: r,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- _input: {
- value: t,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- _output: {
- value: v,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- _timeout: {
- value: w,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- _aborted: {
- value: !1,
- writable: !0,
- enumerable: !1,
- configurable: !1
- },
- _abortFunc: {
- value: Y,
- writable: !0,
- enumerable: !1,
- configurable: !1
- }
- });
- },
- isAborted: function () {
- return this._aborted;
- },
- abort: function () {
- this._aborted = !0;
- this._abortFunc && this._abortFunc.call(this);
- },
- setAbort: function (g) {
- this._abortFunc = g;
- },
- call: function (m) {
- var y;
- function r(r) {
- x(m, function () {
- var d;
- d = r.messageHeader;
- if (!d)
- return r;
- this.setAbort(function () {
- r.abort();
- });
- r.mark(Number.MAX_VALUE);
- r.read(1, y._timeout, {
- result: function (b) {
- x(m, function () {
- if (b && 0 == b.length)
- return null;
- if (b)
- return r.reset(), r;
- t(r);
- }, y);
- },
- timeout: function () {
- m.timeout();
- },
- error: function (b) {
- x(m, function () {
- var a,
- c,
- l;
- if (v(b))
- return null;
- a = d ? d.messageId : null;
- b instanceof db ? (c = g.MSL_COMMS_FAILURE, l = b) : (c = g.INTERNAL_EXCEPTION, l = new fa("Error peeking into the message payloads."));
- E(this, this._ctx, this._msgCtx.getDebugContext(), a, c, null, this._output, this._timeout, {
- result: function (a) {
- m.error(l);
- },
- timeout: function () {
- m.timeout();
- },
- error: function (a) {
- x(m, function () {
- if (v(a))
- return null;
- throw new nb("Error peeking into the message payloads.", a, b);
- }, y);
- }
- });
- }, y);
- }
- });
- }, y);
- }
- function t(r) {
- x(m, function () {
- r.close();
- this._ctrl.buildResponse(this, this._ctx, this._msgCtx, r.messageHeader, this._timeout, {
- result: function (d) {
- x(m, function () {
- var b,
- a,
- c,
- l,
- q;
- b = d.builder;
- a = d.tokenTicket;
- c = r.messageHeader;
- l = new ca(this._msgCtx);
- if (!this._ctx.isPeerToPeer() || c.isEncrypting() || c.keyResponseData)
- w(c, b, l, a);
- else {
- q = new qa(this._ctrl, this._ctx, l, null, this._input, this._output, d, 1, this._timeout);
- this.setAbort(function () {
- q.abort();
- });
- q.call(m);
- }
- }, y);
- },
- timeout: function () {
- m.timeout();
- },
- error: function (d) {
- x(m, function () {
- var b,
- a,
- c,
- l;
- if (v(d))
- return null;
- d instanceof L ? (b = d.messageId, a = d.error, c = r.messageHeader.messageCapabilities, c = this._ctrl.messageRegistry.getUserMessage(a, c ? c.languages : null), l = d) : (b = requestHeader ? requestHeader.messageId : null, a = g.INTERNAL_EXCEPTION, c = null, l = new fa("Error creating an automatic handshake response.", d));
- E(this, this._ctx, this._msgCtx.getDebugContext(), b, a, c, this._output, this._timeout, {
- result: function (a) {
- m.error(l);
- },
- timeout: function () {
- m.timeout();
- },
- error: function (a) {
- x(m, function () {
- if (v(a))
- return null;
- throw new nb("Error creating an automatic handshake response.", a, d);
- }, y);
- }
- });
- }, y);
- }
- });
- }, y);
- }
- function w(r, d, b, a) {
- x(m, function () {
- d.setRenewable(!1);
- this._ctrl.send(this._ctx, b, this._output, d, this._timeout, {
- result: function (b) {
- x(m, function () {
- this._ctx.isPeerToPeer() && this._ctrl.releaseMasterToken(a);
- return null;
- }, y);
- },
- timeout: function () {
- x(m, function () {
- this._ctx.isPeerToPeer() && this._ctrl.releaseMasterToken(a);
- m.timeout();
- }, y);
- },
- error: function (b) {
- x(m, function () {
- var l,
- c,
- n,
- k;
- this._ctx.isPeerToPeer() && this._ctrl.releaseMasterToken(a);
- if (v(b))
- return null;
- b instanceof L ? (l = b.messageId, c = b.error, n = r ? r.messageCapabilities : null, n = this._ctrl.messageRegistry.getUserMessage(c, n ? n.languages : null), k = b) : b instanceof db ? (l = r ? r.messageId : null, c = g.MSL_COMMS_FAILURE, n = null, k = b) : (l = r ? r.messageId : null, c = g.INTERNAL_EXCEPTION, n = null, k = new fa("Error sending an automatic handshake response.", b));
- E(this, this._ctx, this._msgCtx.getDebugContext(), l, c, n, this._output, this._timeout, {
- result: function (a) {
- m.error(k);
- },
- timeout: function () {
- m.timeout();
- },
- error: function (a) {
- x(m, function () {
- if (v(a))
- return null;
- throw new nb("Error sending an automatic handshake response.", a, b);
- }, y);
- }
- });
- }, y);
- }
- });
- }, y);
- }
- y = this;
- x(m, function () {
- this._ctrl.receive(this, this._ctx, this._msgCtx, this._input, null, this._timeout, {
- result: function (g) {
- r(g);
- },
- timeout: function () {
- m.timeout();
- },
- error: function (r) {
- x(m, function () {
- var d,
- b,
- a,
- c;
- if (v(r))
- return null;
- r instanceof L ? (d = r.messageId, b = r.error, a = this._ctrl.messageRegistry.getUserMessage(b, null), c = r) : (d = null, b = g.INTERNAL_EXCEPTION, a = null, c = new fa("Error receiving the message header.", r));
- E(this, this._ctx, this._msgCtx.getDebugContext(), d, b, a, this._output, this._timeout, {
- result: function (a) {
- m.error(c);
- },
- timeout: function () {
- m.timeout();
- },
- error: function (a) {
- x(m, function () {
- if (v(a))
- return null;
- throw new nb("Error receiving the message header.", a, r);
- }, y);
- }
- });
- }, y);
- }
- });
- }, y);
- }
- });
- W = oa.Class.create({
- init: function (g, m, r, t, v, w, d) {
- Object.defineProperties(this, {
- _ctrl: {
- value: g,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- _ctx: {
- value: m,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- _msgCtx: {
- value: r,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- _input: {
- value: t,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- _output: {
- value: v,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- _request: {
- value: w,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- _timeout: {
- value: d,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- _aborted: {
- value: !1,
- writable: !0,
- enumerable: !1,
- configurable: !1
- },
- _abortFunc: {
- value: Y,
- writable: !0,
- enumerable: !1,
- configurable: !1
- }
- });
- },
- isAborted: function () {
- return this._aborted;
- },
- abort: function () {
- this._aborted = !0;
- this._abortFunc && this._abortFunc.call(this);
- },
- setAbort: function (g) {
- this._abortFunc = g;
- },
- trustedNetworkExecute: function (m, r, t) {
- var w;
- w = this;
- x(t, function () {
- var y,
- B;
- if (12 < r + 1)
- return !1;
- if (y = this._msgCtx.isIntegrityProtected() && !m.willIntegrityProtectHeader() ? g.RESPONSE_REQUIRES_INTEGRITY_PROTECTION : this._msgCtx.isEncrypted() && !m.willEncryptPayloads() ? g.RESPONSE_REQUIRES_ENCRYPTION : null) {
- B = kc(m.getMessageId());
- E(this, this._ctx, this._msgCtx.getDebugContext(), B, y, null, this._output, this._timeout, {
- result: function (d) {
- t.result(!1);
- },
- timeout: function () {
- t.timeout();
- },
- error: function (d) {
- x(t, function () {
- if (v(d))
- return !1;
- throw new nb("Response requires encryption or integrity protection but cannot be protected: " + y, d, null);
- }, w);
- }
- });
- } else !this._msgCtx.getCustomer() || m.getMasterToken() || m.getKeyExchangeData() ? (m.setRenewable(!1), this._ctrl.send(this._ctx, this._msgCtx, this._output, m, this._timeout, {
- result: function (d) {
- t.result(!0);
- },
- timeout: function () {
- t.timeout();
- },
- error: function (d) {
- t.error(d);
- }
- })) : (B = kc(m.getMessageId()), E(this, this._ctx, this._msgCtx.getDebugContext(), B, g.RESPONSE_REQUIRES_MASTERTOKEN, null, this._output, this._timeout, {
- result: function (d) {
- t.result(!1);
- },
- timeout: function () {
- t.timeout();
- },
- error: function (d) {
- x(t, function () {
- if (v(d))
- return !1;
- throw new nb("Response wishes to attach a user ID token but there is no master token.", d, null);
- }, w);
- }
- }));
- }, w);
- },
- peerToPeerExecute: function (m, r, t, w) {
- var B;
- function y(d) {
- x(w, function () {
- var b;
- b = d.response;
- b.close();
- b = b.getErrorHeader();
- this._ctrl.cleanupContext(this._ctx, d.requestHeader, b);
- this._ctrl.buildErrorResponse(this, this._ctx, m, d, b, {
- result: function (a) {
- x(w, function () {
- var b,
- l;
- if (!a)
- return !1;
- b = a.errorResult;
- l = a.tokenTicket;
- this.peerToPeerExecute(b.msgCtx, b.builder, t, {
- result: function (a) {
- x(w, function () {
- this._ctrl.releaseMasterToken(l);
- return a;
- }, B);
- },
- timeout: function () {
- x(w, function () {
- this._ctrl.releaseMasterToken(l);
- w.timeout();
- }, B);
- },
- error: function (a) {
- x(w, function () {
- this._ctrl.releaseMasterToken(l);
- throw a;
- }, B);
- }
- });
- }, B);
- }
- });
- }, B);
- }
- B = this;
- x(w, function () {
- var d;
- if (12 < t + 2)
- return !1;
- if (null != m.getCustomer() && null == r.getPeerMasterToken() && null == r.getKeyExchangeData()) {
- d = kc(r.getMessageId());
- E(this, this._ctx, m.getDebugContext(), d, g.RESPONSE_REQUIRES_MASTERTOKEN, null, this._output, this._timeout, {
- result: function (b) {
- w.result(!1);
- },
- timeout: function () {
- w.timeout();
- },
- error: function (b) {
- x(w, function () {
- if (v(b))
- return !1;
- throw new nb("Response wishes to attach a user ID token but there is no master token.", b, null);
- }, B);
- }
- });
- } else
- this._ctrl.sendReceive(this._ctx, m, this._input, this._output, r, this._timeout, !1, {
- result: function (b) {
- x(w, function () {
- var l,
- q,
- n;
- function a() {
- l.read(32768, B._timeout, {
- result: function (b) {
- x(w, function () {
- b ? a() : c();
- }, B);
- },
- timeout: function () {
- w.timeout();
- },
- error: function (a) {
- w.error(a);
- }
- });
- }
- function c() {
- x(w, function () {
- var a;
- a = new wa(b.payloads, m);
- this._ctrl.buildResponse(this, this._ctx, a, q, this._timeout, {
- result: function (b) {
- x(w, function () {
- var l;
- l = b.tokenTicket;
- this.peerToPeerExecute(a, b.builder, t, {
- result: function (a) {
- x(w, function () {
- this._ctrl.releaseMasterToken(l);
- return a;
- }, B);
- },
- timeout: function () {
- x(w, function () {
- this._ctrl.releaseMasterToken(l);
- w.timeout();
- }, B);
- },
- error: function (a) {
- x(w, function () {
- this._ctrl.releaseMasterToken(l);
- throw a;
- }, B);
- }
- });
- }, B);
- },
- timeout: function () {
- w.timeout();
- },
- error: function (a) {
- w.error(a);
- }
- });
- }, B);
- }
- l = b.response;
- t += 2;
- if (!l)
- return !0;
- q = l.getMessageHeader();
- if (q) {
- n = b.payloads;
- n = 0 < n.length && 0 < n[0].data.length;
- if (b.handshake && n)
- a();
- else
- return !0;
- } else
- y(b);
- }, B);
- },
- timeout: function () {
- w.timeout();
- },
- error: function (b) {
- w.error(b);
- }
- });
- }, B);
- },
- call: function (m) {
- var r;
- r = this;
- this._ctrl.buildResponse(this, this._ctx, this._msgCtx, this._request, this._timeout, {
- result: function (t) {
- x(m, function () {
- var w,
- y;
- w = t.builder;
- y = t.tokenTicket;
- this._ctx.isPeerToPeer() ? this.peerToPeerExecute(this._msgCtx, w, 3, {
- result: function (g) {
- x(m, function () {
- this._ctx.isPeerToPeer() && this.releaseMasterToken(y);
- return g;
- }, r);
- },
- timeout: function () {
- x(m, function () {
- this._ctx.isPeerToPeer() && this.releaseMasterToken(y);
- m.timeout();
- }, r);
- },
- error: function (t) {
- x(m, function () {
- var d,
- b,
- a,
- c;
- this._ctx.isPeerToPeer() && this.releaseMasterToken(y);
- if (v(t))
- return !1;
- d = kc(w.getMessageId());
- t instanceof L ? (b = t.error, a = this._request.messageCapabilities, a = this._ctrl.messageRegistry.getUserMessage(b, a ? a.languages : null), c = t) : t instanceof db ? (b = g.MSL_COMMS_FAILURE, a = null, c = t) : (b = g.INTERNAL_EXCEPTION, a = null, c = new fa("Error sending the response.", t));
- E(this, this._ctx, this._msgCtx.getDebugContext(), d, b, a, this._output, this._timeout, {
- result: function (a) {
- m.error(c);
- },
- timeout: function () {
- m.timeout();
- },
- error: function (a) {
- x(m, function () {
- if (v(a))
- return !1;
- throw new nb("Error sending the response.", a, null);
- }, r);
- }
- });
- }, r);
- }
- }) : this.trustedNetworkExecute(w, 3, {
- result: function (g) {
- x(m, function () {
- this._ctx.isPeerToPeer() && this.releaseMasterToken(y);
- return g;
- }, r);
- },
- timeout: function () {
- x(m, function () {
- this._ctx.isPeerToPeer() && this.releaseMasterToken(y);
- m.timeout();
- }, r);
- },
- error: function (t) {
- x(m, function () {
- var d,
- b,
- a,
- c;
- this._ctx.isPeerToPeer() && this.releaseMasterToken(y);
- if (v(t))
- return !1;
- d = kc(w.getMessageId());
- t instanceof L ? (b = t.error, a = this._request.messageCapabilities, a = this._ctrl.messageRegistry.getUserMessage(b, a ? a.languages : null), c = t) : t instanceof db ? (b = g.MSL_COMMS_FAILURE, a = null, c = t) : (b = g.INTERNAL_EXCEPTION, a = null, c = new fa("Error sending the response.", t));
- E(this, this._ctx, this._msgCtx.getDebugContext(), d, b, a, this._output, this._timeout, {
- result: function (a) {
- m.error(c);
- },
- timeout: function () {
- m.timeout();
- },
- error: function (a) {
- x(m, function () {
- if (v(a))
- return !1;
- throw new nb("Error sending the response.", a, null);
- }, r);
- }
- });
- }, r);
- }
- });
- }, r);
- },
- timeout: function () {
- m.timeout();
- },
- error: function (t) {
- x(m, function () {
- var w,
- y,
- B,
- d;
- if (v(t))
- return !1;
- t instanceof L ? (w = t.messageId, y = t.error, B = this._request.messageCapabilities, B = this._ctrl.messageRegistry.getUserMessage(y, B ? B.languages : null), d = t) : (w = null, y = g.INTERNAL_EXCEPTION, B = null, d = new fa("Error building the response.", t));
- E(this, this._ctx, this._msgCtx.getDebugContext(), w, y, B, this._output, this._timeout, {
- result: function (b) {
- m.error(d);
- },
- timeout: function () {
- m.timeout();
- },
- error: function (b) {
- x(m, function () {
- if (v(b))
- return null;
- throw new nb("Error building the response.", b, t);
- }, r);
- }
- });
- }, r);
- }
- });
- }
- });
- ya = oa.Class.create({
- init: function (g, m, r, t, v, w, d) {
- Object.defineProperties(this, {
- _ctrl: {
- value: g,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- _ctx: {
- value: m,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- _msgCtx: {
- value: r,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- _appError: {
- value: t,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- _output: {
- value: output,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- _request: {
- value: w,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- _timeout: {
- value: d,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- _aborted: {
- value: !1,
- writable: !0,
- enumerable: !1,
- configurable: !1
- },
- _abortFunc: {
- value: Y,
- writable: !0,
- enumerable: !1,
- configurable: !1
- }
- });
- },
- isAborted: function () {
- return this._aborted;
- },
- abort: function () {
- this._aborted = !0;
- this._abortFunc && this._abortFunc.call(this);
- },
- setAbort: function (g) {
- this._abortFunc = g;
- },
- call: function (m) {
- var r;
- r = this;
- x(m, function () {
- var t,
- w;
- if (this._appError == ENTITY_REJECTED)
- t = this._request.masterToken ? g.MASTERTOKEN_REJECTED_BY_APP : g.ENTITY_REJECTED_BY_APP;
- else if (this._appError == USER_REJECTED)
- t = this._request.userIdToken ? g.USERIDTOKEN_REJECTED_BY_APP : g.USER_REJECTED_BY_APP;
- else
- throw new fa("Unhandled application error " + this._appError + ".");
- w = this._request.messageCapabilities;
- w = this._ctrl.messageRegistry.getUserMessage(t, w ? w.languages : null);
- E(this, this._ctx, this._msgCtx.getDebugContext(), this._request.messageId, t, w, this._output, this._timeout, {
- result: function (g) {
- m.result(g);
- },
- timeout: m.timeout,
- error: function (g) {
- x(m, function () {
- if (v(g))
- return !1;
- if (g instanceof L)
- throw g;
- throw new fa("Error building the error response.", g);
- }, r);
- }
- });
- }, r);
- }
- });
- Aa = {
- result: function () {},
- timeout: function () {},
- error: function () {}
- };
- qa = oa.Class.create({
- init: function (g, m, r, t, v, w, d, b, a) {
- var c;
- d ? (c = d.builder, d = d.tokenTicket) : d = c = null;
- Object.defineProperties(this, {
- _ctrl: {
- value: g,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- _ctx: {
- value: m,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- _msgCtx: {
- value: r,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- _remoteEntity: {
- value: t,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- _input: {
- value: v,
- writable: !0,
- enumerable: !1,
- configurable: !1
- },
- _output: {
- value: w,
- writable: !0,
- enumerable: !1,
- configurable: !1
- },
- _openedStreams: {
- value: !1,
- writable: !0,
- enumerable: !1,
- configurable: !1
- },
- _builder: {
- value: c,
- writable: !0,
- enumerable: !1,
- configurable: !1
- },
- _tokenTicket: {
- value: d,
- writable: !0,
- enumerable: !1,
- configurable: !1
- },
- _timeout: {
- value: a,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- _msgCount: {
- value: b,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- _aborted: {
- value: !1,
- writable: !0,
- enumerable: !1,
- configurable: !1
- },
- _abortFunc: {
- value: Y,
- writable: !0,
- enumerable: !1,
- configurable: !1
- }
- });
- },
- isAborted: function () {
- return this._aborted;
- },
- abort: function () {
- this._aborted = !0;
- this._abortFunc && this._abortFunc.call(this);
- },
- setAbort: function (g) {
- this._abortFunc = g;
- },
- execute: function (g, m, r, t, v) {
- var b;
- function w(a) {
- function c(l) {
- x(v, function () {
- var b;
- b = a.response;
- return l ? l : b;
- }, b);
- }
- x(v, function () {
- var l,
- q;
- l = a.response;
- l.close();
- q = l.getErrorHeader();
- this._ctrl.cleanupContext(this._ctx, a.requestHeader, q);
- this._ctrl.buildErrorResponse(this, this._ctx, g, a, q, r, {
- result: function (a) {
- x(v, function () {
- var k,
- p,
- h,
- f;
- if (!a)
- return l;
- k = a.errorResult;
- p = a.tokenTicket;
- h = k.builder;
- k = k.msgCtx;
- if (this._ctx.isPeerToPeer())
- this.execute(k, h, this._timeout, t, {
- result: function (a) {
- x(v, function () {
- this._ctrl.releaseMasterToken(p);
- c(a);
- }, b);
- },
- timeout: function () {
- x(v, function () {
- this._ctrl.releaseMasterToken(p);
- v.timeout();
- }, b);
- },
- error: function (a) {
- x(v, function () {
- this._ctrl.releaseMasterToken(p);
- v.error(a);
- }, b);
- }
- });
- else {
- this._openedStreams && (this._input.close(), this._output.close(r, Aa));
- f = new qa(this._ctrl, this._ctx, k, this._remoteEntity, null, null, {
- builder: h,
- tokenTicket: p
- }, t, this._timeout);
- this.setAbort(function () {
- f.abort();
- });
- f.call({
- result: function (a) {
- c(a);
- },
- timeout: function () {
- v.timeout();
- },
- error: function (a) {
- v.error(a);
- }
- });
- }
- }, b);
- },
- timeout: function () {
- v.timeout();
- },
- error: function (a) {
- v.error(a);
- }
- });
- }, b);
- }
- function d(a) {
- x(v, function () {
- var q,
- n,
- k,
- p,
- h;
- function c() {
- q.read(32768, b._timeout, {
- result: function (a) {
- a ? c() : l();
- },
- timeout: function () {
- v.timeout();
- },
- error: function (a) {
- v.error(a);
- }
- });
- }
- function l() {
- x(v, function () {
- var f;
- f = new wa(a.payloads, g);
- this._ctrl.buildResponse(this, this._ctx, g, n, r, {
- result: function (a) {
- x(v, function () {
- var l;
- l = a.tokenTicket;
- this.execute(f, a.builder, this._timeout, t, {
- result: function (a) {
- x(v, function () {
- this._ctrl.releaseMasterToken(l);
- return a;
- }, b);
- },
- timeout: function () {
- x(v, function () {
- this._ctrl.releaseMasterToken(l);
- v.timeout();
- }, b);
- },
- error: function (a) {
- x(v, function () {
- this._ctrl.releaseMasterToken(l);
- throw a;
- }, b);
- }
- });
- }, b);
- },
- timeout: function () {
- v.timeout();
- },
- error: function (a) {
- v.error(a);
- }
- });
- }, b);
- }
- q = a.response;
- n = q.getMessageHeader();
- k = a.payloads;
- k = 0 < k.length && 0 < k[0].data.length;
- if (!this._ctx.isPeerToPeer()) {
- if (!a.handshake || !k)
- return q;
- this._openedStreams && (this._input.close(), this._output.close(r, Aa));
- p = new wa(a.payloads, g);
- this._ctrl.buildResponse(this, this._ctx, g, n, r, {
- result: function (a) {
- x(v, function () {
- var b;
- b = new qa(this._ctrl, this._ctx, p, this._remoteEntity, null, null, a, t, this._timeout);
- this.setAbort(function () {
- b.abort();
- });
- b.call(v);
- }, b);
- },
- timeout: function () {
- v.timeout();
- },
- error: function (a) {
- v.error(a);
- }
- });
- } else if (a.handshake && k)
- c();
- else if (0 < n.keyRequestData.length) {
- h = new ca(g);
- this._ctrl.buildResponse(this, this._ctx, h, n, r, {
- result: function (a) {
- x(v, function () {
- var f,
- l;
- f = a.builder;
- l = a.tokenTicket;
- q.mark();
- q.read(1, this._timeout, {
- result: function (a) {
- x(v, function () {
- function k() {
- q.read(32768, b._timeout, {
- result: function (a) {
- a ? k() : c();
- },
- timeout: function () {
- v.timeout();
- },
- error: function (a) {
- v.error(a);
- }
- });
- }
- function c() {
- b.execute(h, f, b._timeout, t, {
- result: function (a) {
- x(v, function () {
- this._ctrl.releaseMasterToken(l);
- return a;
- }, b);
- },
- timeout: function () {
- x(v, function () {
- this._ctrl.releaseMasterToken(l);
- v.timeout();
- }, b);
- },
- error: function (a) {
- x(v, function () {
- this._ctrl.releaseMasterToken(l);
- throw a;
- }, b);
- }
- });
- }
- if (a)
- if (q.reset(), 12 >= t + 1)
- f.setRenewable(!1), this._ctrl.send(this, this._ctx, h, this._output, f, this._timeout, {
- result: function (a) {
- x(v, function () {
- this.releaseMasterToken(l);
- return q;
- }, b);
- },
- timeout: function () {
- v.timeout();
- },
- error: function (a) {
- v.error(a);
- }
- });
- else
- return this.releaseMasterToken(l), q;
- else
- k();
- }, b);
- },
- timeout: function () {
- x(v, function () {
- this.releaseMasterToken(l);
- v.timeout();
- }, b);
- },
- error: function (a) {
- x(v, function () {
- this.releaseMasterToken(l);
- throw a;
- }, b);
- }
- });
- }, b);
- },
- timeout: function () {
- v.timeout();
- },
- error: function (a) {
- v.error(a);
- }
- });
- }
- }, b);
- }
- b = this;
- x(v, function () {
- if (12 < t + 2)
- return null;
- this._ctrl.sendReceive(this, this._ctx, g, this._input, this._output, m, r, !0, {
- result: function (a) {
- x(v, function () {
- var b;
- if (!a)
- return null;
- b = a.response;
- t += 2;
- b.getMessageHeader() ? d(a) : w(a);
- }, b);
- },
- timeout: function () {
- v.timeout();
- },
- error: function (a) {
- v.error(a);
- }
- });
- }, b);
- },
- call: function (g) {
- var r;
- function m(m, t, w) {
- x(g, function () {
- this.execute(this._msgCtx, m, w, this._msgCount, {
- result: function (d) {
- x(g, function () {
- this._ctrl.releaseMasterToken(t);
- this._openedStreams && this._output.close(w, Aa);
- d && d.closeSource(this._openedStreams);
- return d;
- }, r);
- },
- timeout: function () {
- x(g, function () {
- this._ctrl.releaseMasterToken(t);
- this._openedStreams && (this._output.close(w, Aa), this._input.close());
- g.timeout();
- }, r);
- },
- error: function (d) {
- x(g, function () {
- this._ctrl.releaseMasterToken(t);
- this._openedStreams && (this._output.close(w, Aa), this._input.close());
- if (v(d))
- return null;
- throw d;
- }, r);
- }
- });
- }, r);
- }
- r = this;
- x(g, function () {
- var t,
- w,
- y;
- t = this._timeout;
- if (!this._input || !this._output)
- try {
- this._remoteEntity.setTimeout(this._timeout);
- w = Date.now();
- y = this._remoteEntity.openConnection();
- this._output = y.output;
- this._input = y.input;
- -1 != t && (t = this._timeout - (Date.now() - w));
- this._openedStreams = !0;
- } catch (d) {
- this._builder && this._ctrl.releaseMasterToken(this._tokenTicket);
- this._output && this._output.close(this._timeout, Aa);
- this._input && this._input.close();
- if (v(d))
- return null;
- throw d;
- }
- this._builder ? m(this._builder, this._tokenTicket, t) : this._ctrl.buildRequest(this, this._ctx, this._msgCtx, this._timeout, {
- result: function (d) {
- x(g, function () {
- m(d.builder, d.tokenTicket, t);
- }, r);
- },
- timeout: function () {
- x(g, function () {
- this._openedStreams && (this._output.close(this._timeout, Aa), this._input.close());
- g.timeout();
- }, r);
- },
- error: function (d) {
- x(g, function () {
- this._openedStreams && (this._output.close(this._timeout, Aa), this._input.close());
- if (v(d))
- return null;
- throw d;
- }, r);
- }
- });
- }, r);
- }
- });
- }
- ());
- (function () {
- td = oa.Class.create({
- init: function (g) {
- Object.defineProperties(this, {
- id: {
- value: g,
- writable: !1,
- configurable: !1
- }
- });
- },
- toJSON: function () {
- var g;
- g = {};
- g.id = this.id;
- return g;
- },
- equals: function (g) {
- return this === g ? !0 : g instanceof td ? this.id == g.id : !1;
- },
- uniqueKey: function () {
- return this.id;
- }
- });
- te = function (m) {
- var r;
- r = m.id;
- if (!r)
- throw new la(g.JSON_PARSE_ERROR, JSON.stringify(m));
- return new td(r);
- };
- }
- ());
- oa.Class.create({
- isNewestMasterToken: function (g, m, r) {},
- isMasterTokenRevoked: function (g, m) {},
- acceptNonReplayableId: function (g, m, r, t) {},
- createMasterToken: function (g, m, r, t, I) {},
- isMasterTokenRenewable: function (g, m, r) {},
- renewMasterToken: function (g, m, r, t, I) {},
- isUserIdTokenRevoked: function (g, m, r, t) {},
- createUserIdToken: function (g, m, r, t) {},
- renewUserIdToken: function (g, m, r, t) {}
- });
- (function () {
- function m(g, m, r, t) {
- this.sessiondata = g;
- this.tokendata = m;
- this.signature = r;
- this.verified = t;
- }
- lb = oa.Class.create({
- init: function (g, m, t, I, v, E, x, M, L, wa, ca) {
- var w;
- w = this;
- r(ca, function () {
- var y,
- F,
- X,
- qa,
- da;
- if (t.getTime() < m.getTime())
- throw new fa("Cannot construct a master token that expires before its renewal window opens.");
- if (0 > I || I > Na)
- throw new fa("Sequence number " + I + " is outside the valid range.");
- if (0 > v || v > Na)
- throw new fa("Serial number " + v + " is outside the valid range.");
- y = Math.floor(m.getTime() / 1E3);
- F = Math.floor(t.getTime() / 1E3);
- if (wa)
- X = wa.sessiondata;
- else {
- qa = {};
- E && (qa.issuerdata = E);
- qa.identity = x;
- qa.encryptionkey = sa(M.toByteArray());
- qa.hmackey = sa(L.toByteArray());
- X = Qa(JSON.stringify(qa), Ma);
- }
- if (wa)
- return Object.defineProperties(this, {
- ctx: {
- value: g,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- renewalWindowSeconds: {
- value: y,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- expirationSeconds: {
- value: F,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- sequenceNumber: {
- value: I,
- writable: !1,
- configurable: !1
- },
- serialNumber: {
- value: v,
- writable: !1,
- configurable: !1
- },
- issuerData: {
- value: E,
- writable: !1,
- configurable: !1
- },
- identity: {
- value: x,
- writable: !1,
- configurable: !1
- },
- encryptionKey: {
- value: M,
- writable: !1,
- configurable: !1
- },
- hmacKey: {
- value: L,
- writable: !1,
- configurable: !1
- },
- sessiondata: {
- value: X,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- verified: {
- value: wa.verified,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- tokendata: {
- value: wa.tokendata,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- signature: {
- value: wa.signature,
- writable: !1,
- enumerable: !1,
- configurable: !1
- }
- }), this;
- da = g.getMslCryptoContext();
- da.encrypt(X, {
- result: function (m) {
- r(ca, function () {
- var t,
- B;
- t = {};
- t.renewalwindow = y;
- t.expiration = F;
- t.sequencenumber = I;
- t.serialnumber = v;
- t.sessiondata = sa(m);
- B = Qa(JSON.stringify(t), Ma);
- da.sign(B, {
- result: function (m) {
- r(ca, function () {
- Object.defineProperties(this, {
- ctx: {
- value: g,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- renewalWindowSeconds: {
- value: y,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- expirationSeconds: {
- value: F,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- sequenceNumber: {
- value: I,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- serialNumber: {
- value: v,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- issuerData: {
- value: E,
- writable: !1,
- configurable: !1
- },
- identity: {
- value: x,
- writable: !1,
- configurable: !1
- },
- encryptionKey: {
- value: M,
- writable: !1,
- configurable: !1
- },
- hmacKey: {
- value: L,
- writable: !1,
- configurable: !1
- },
- sessiondata: {
- value: X,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- verified: {
- value: !0,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- tokendata: {
- value: B,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- signature: {
- value: m,
- writable: !1,
- enumerable: !1,
- configurable: !1
- }
- });
- return this;
- }, w);
- },
- error: function (g) {
- ca.error(g);
- }
- });
- }, w);
- },
- error: function (g) {
- ca.error(g);
- }
- });
- }, this);
- },
- get renewalWindow() {
- return new Date(1E3 * this.renewalWindowSeconds);
- },
- get expiration() {
- return new Date(1E3 * this.expirationSeconds);
- },
- isDecrypted: function () {
- return this.sessiondata ? !0 : !1;
- },
- isVerified: function () {
- return this.verified;
- },
- isRenewable: function (g) {
- return this.isVerified() ? this.renewalWindow.getTime() <= this.ctx.getTime() : !0;
- },
- isExpired: function (g) {
- return this.isVerified() ? this.expiration.getTime() <= this.ctx.getTime() : !1;
- },
- isNewerThan: function (g) {
- var m;
- if (this.sequenceNumber == g.sequenceNumber)
- return this.expiration > g.expiration;
- if (this.sequenceNumber > g.sequenceNumber) {
- m = this.sequenceNumber - Na + 127;
- return g.sequenceNumber >= m;
- }
- m = g.sequenceNumber - Na + 127;
- return this.sequenceNumber < m;
- },
- toJSON: function () {
- var g;
- g = {};
- g.tokendata = sa(this.tokendata);
- g.signature = sa(this.signature);
- return g;
- },
- equals: function (g) {
- return this === g ? !0 : g instanceof lb ? this.serialNumber == g.serialNumber && this.sequenceNumber == g.sequenceNumber && this.expiration.getTime() == g.expiration.getTime() : !1;
- },
- uniqueKey: function () {
- return this.serialNumber + ":" + this.sequenceNumber + this.expiration.getTime();
- }
- });
- Wb = function (t, y, F) {
- r(F, function () {
- var w,
- v,
- E,
- x,
- M;
- w = t.getMslCryptoContext();
- v = y.tokendata;
- E = y.signature;
- if ("string" !== typeof v || "string" !== typeof E)
- throw new la(g.JSON_PARSE_ERROR, "mastertoken " + JSON.stringify(y));
- try {
- x = xa(v);
- } catch (za) {
- throw new L(g.MASTERTOKEN_TOKENDATA_INVALID, "mastertoken " + JSON.stringify(y), za);
- }
- if (!x || 0 == x.length)
- throw new la(g.MASTERTOKEN_TOKENDATA_MISSING, "mastertoken " + JSON.stringify(y));
- try {
- M = xa(E);
- } catch (za) {
- throw new L(g.MASTERTOKEN_SIGNATURE_INVALID, "mastertoken " + JSON.stringify(y), za);
- }
- w.verify(x, M, {
- result: function (v) {
- r(F, function () {
- var y,
- E,
- I,
- B,
- W,
- X,
- qa,
- da,
- ua,
- za;
- X = Ja(x, Ma);
- try {
- qa = JSON.parse(X);
- y = parseInt(qa.renewalwindow);
- E = parseInt(qa.expiration);
- I = parseInt(qa.sequencenumber);
- B = parseInt(qa.serialnumber);
- W = qa.sessiondata;
- } catch (va) {
- if (va instanceof SyntaxError)
- throw new la(g.MASTERTOKEN_TOKENDATA_PARSE_ERROR, "mastertokendata " + X, va);
- throw va;
- }
- if (!y || y != y || !E || E != E || "number" !== typeof I || I != I || "number" !== typeof B || B != B || "string" !== typeof W)
- throw new la(g.MASTERTOKEN_TOKENDATA_PARSE_ERROR, "mastertokendata " + X);
- if (E < y)
- throw new L(g.MASTERTOKEN_EXPIRES_BEFORE_RENEWAL, "mastertokendata " + X);
- if (0 > I || I > Na)
- throw new L(g.MASTERTOKEN_SEQUENCE_NUMBER_OUT_OF_RANGE, "mastertokendata " + X);
- if (0 > B || B > Na)
- throw new L(g.MASTERTOKEN_SERIAL_NUMBER_OUT_OF_RANGE, "mastertokendata " + X);
- da = new Date(1E3 * y);
- ua = new Date(1E3 * E);
- try {
- za = xa(W);
- } catch (va) {
- throw new L(g.MASTERTOKEN_SESSIONDATA_INVALID, W, va);
- }
- if (!za || 0 == za.length)
- throw new L(g.MASTERTOKEN_SESSIONDATA_MISSING, W);
- v ? w.decrypt(za, {
- result: function (w) {
- r(F, function () {
- var y,
- E,
- ca,
- X,
- L,
- W;
- L = Ja(w, Ma);
- try {
- W = JSON.parse(L);
- y = W.issuerdata;
- E = W.identity;
- ca = W.encryptionkey;
- X = W.hmackey;
- } catch (d) {
- if (d instanceof SyntaxError)
- throw new la(g.MASTERTOKEN_SESSIONDATA_PARSE_ERROR, "sessiondata " + L, d);
- throw d;
- }
- if (y && "object" !== typeof y || !E || "string" !== typeof ca || "string" !== typeof X)
- throw new la(g.MASTERTOKEN_SESSIONDATA_PARSE_ERROR, "sessiondata " + L);
- Db(ca, tb, Lb, {
- result: function (d) {
- Db(X, ub, Vb, {
- result: function (b) {
- r(F, function () {
- var a;
- a = new m(w, x, M, v);
- new lb(t, da, ua, I, B, y, E, d, b, a, F);
- });
- },
- error: function (b) {
- F.error(new S(g.MASTERTOKEN_KEY_CREATION_ERROR, b));
- }
- });
- },
- error: function (d) {
- F.error(new S(g.MASTERTOKEN_KEY_CREATION_ERROR, d));
- }
- });
- });
- },
- error: function (g) {
- F.error(g);
- }
- }) : (y = new m(null, x, M, v), new lb(t, da, ua, I, B, null, null, null, null, y, F));
- });
- },
- error: function (g) {
- F.error(g);
- }
- });
- });
- };
- }
- ());
- (function () {
- function m(g, m, r) {
- this.tokendata = g;
- this.signature = m;
- this.verified = r;
- }
- hc = oa.Class.create({
- init: function (g, m, t, I, v, E, x, M, za) {
- var w;
- w = this;
- r(za, function () {
- var y,
- F,
- B,
- X,
- ya,
- qa,
- da;
- if (t.getTime() < m.getTime())
- throw new fa("Cannot construct a user ID token that expires before its renewal window opens.");
- if (!I)
- throw new fa("Cannot construct a user ID token without a master token.");
- if (0 > v || v > Na)
- throw new fa("Serial number " + v + " is outside the valid range.");
- y = Math.floor(m.getTime() / 1E3);
- F = Math.floor(t.getTime() / 1E3);
- B = I.serialNumber;
- if (M) {
- X = M.tokendata;
- ya = M.signature;
- qa = M.verified;
- B = I.serialNumber;
- Object.defineProperties(this, {
- ctx: {
- value: g,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- renewalWindowSeconds: {
- value: y,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- expirationSeconds: {
- value: F,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- mtSerialNumber: {
- value: B,
- writable: !1,
- configurable: !1
- },
- serialNumber: {
- value: v,
- writable: !1,
- configurable: !1
- },
- issuerData: {
- value: E,
- writable: !1,
- configurable: !1
- },
- customer: {
- value: x,
- writable: !1,
- configurable: !1
- },
- verified: {
- value: qa,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- tokendata: {
- value: X,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- signature: {
- value: ya,
- writable: !1,
- enumerable: !1,
- configurable: !1
- }
- });
- return this;
- }
- X = {};
- E && (X.issuerdata = E);
- X.identity = x;
- X = Qa(JSON.stringify(X), Ma);
- da = g.getMslCryptoContext();
- da.encrypt(X, {
- result: function (m) {
- r(za, function () {
- var t,
- M;
- t = {};
- t.renewalwindow = y;
- t.expiration = F;
- t.mtserialnumber = B;
- t.serialnumber = v;
- t.userdata = sa(m);
- M = Qa(JSON.stringify(t), Ma);
- da.sign(M, {
- result: function (m) {
- r(za, function () {
- Object.defineProperties(this, {
- ctx: {
- value: g,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- renewalWindowSeconds: {
- value: y,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- expirationSeconds: {
- value: F,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- mtSerialNumber: {
- value: I.serialNumber,
- writable: !1,
- configurable: !1
- },
- serialNumber: {
- value: v,
- writable: !1,
- configurable: !1
- },
- issuerData: {
- value: E,
- writable: !1,
- configurable: !1
- },
- customer: {
- value: x,
- writable: !1,
- configurable: !1
- },
- verified: {
- value: !0,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- tokendata: {
- value: M,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- signature: {
- value: m,
- writable: !1,
- enumerable: !1,
- configurable: !1
- }
- });
- return this;
- }, w);
- },
- error: function (g) {
- r(za, function () {
- g instanceof L && g.setEntity(I);
- throw g;
- }, w);
- }
- });
- }, w);
- },
- error: function (g) {
- r(za, function () {
- g instanceof L && g.setEntity(I);
- throw g;
- }, w);
- }
- });
- }, this);
- },
- get renewalWindow() {
- return new Date(1E3 * this.renewalWindowSeconds);
- },
- get expiration() {
- return new Date(1E3 * this.expirationSeconds);
- },
- isVerified: function () {
- return this.verified;
- },
- isDecrypted: function () {
- return this.customer ? !0 : !1;
- },
- isRenewable: function () {
- return this.renewalWindow.getTime() <= this.ctx.getTime();
- },
- isExpired: function () {
- return this.expiration.getTime() <= this.ctx.getTime();
- },
- isBoundTo: function (g) {
- return g && g.serialNumber == this.mtSerialNumber;
- },
- toJSON: function () {
- var g;
- g = {};
- g.tokendata = sa(this.tokendata);
- g.signature = sa(this.signature);
- return g;
- },
- equals: function (g) {
- return this === g ? !0 : g instanceof hc ? this.serialNumber == g.serialNumber && this.mtSerialNumber == g.mtSerialNumber : !1;
- },
- uniqueKey: function () {
- return this.serialNumber + ":" + this.mtSerialNumber;
- }
- });
- Xb = function (t, y, F, I) {
- r(I, function () {
- var v,
- w,
- x,
- M,
- za;
- v = t.getMslCryptoContext();
- w = y.tokendata;
- x = y.signature;
- if ("string" !== typeof w || "string" !== typeof x)
- throw new la(g.JSON_PARSE_ERROR, "useridtoken " + JSON.stringify(y)).setEntity(F);
- try {
- M = xa(w);
- } catch (wa) {
- throw new L(g.USERIDTOKEN_TOKENDATA_INVALID, "useridtoken " + JSON.stringify(y), wa).setEntity(F);
- }
- if (!M || 0 == M.length)
- throw new la(g.USERIDTOKEN_TOKENDATA_MISSING, "useridtoken " + JSON.stringify(y)).setEntity(F);
- try {
- za = xa(x);
- } catch (wa) {
- throw new L(g.USERIDTOKEN_TOKENDATA_INVALID, "useridtoken " + JSON.stringify(y), wa).setEntity(F);
- }
- v.verify(M, za, {
- result: function (w) {
- r(I, function () {
- var y,
- E,
- B,
- x,
- X,
- qa,
- da,
- ua,
- S,
- va;
- qa = Ja(M, Ma);
- try {
- da = JSON.parse(qa);
- y = parseInt(da.renewalwindow);
- E = parseInt(da.expiration);
- B = parseInt(da.mtserialnumber);
- x = parseInt(da.serialnumber);
- X = da.userdata;
- } catch (ga) {
- if (ga instanceof SyntaxError)
- throw new la(g.USERIDTOKEN_TOKENDATA_PARSE_ERROR, "usertokendata " + qa, ga).setEntity(F);
- throw ga;
- }
- if (!y || y != y || !E || E != E || "number" !== typeof B || B != B || "number" !== typeof x || x != x || "string" !== typeof X)
- throw new la(g.USERIDTOKEN_TOKENDATA_PARSE_ERROR, "usertokendata " + qa).setEntity(F);
- if (E < y)
- throw new L(g.USERIDTOKEN_EXPIRES_BEFORE_RENEWAL, "mastertokendata " + qa).setEntity(F);
- if (0 > B || B > Na)
- throw new L(g.USERIDTOKEN_MASTERTOKEN_SERIAL_NUMBER_OUT_OF_RANGE, "usertokendata " + qa).setEntity(F);
- if (0 > x || x > Na)
- throw new L(g.USERIDTOKEN_SERIAL_NUMBER_OUT_OF_RANGE, "usertokendata " + qa).setEntity(F);
- ua = new Date(1E3 * y);
- S = new Date(1E3 * E);
- if (!F || B != F.serialNumber)
- throw new L(g.USERIDTOKEN_MASTERTOKEN_MISMATCH, "uit mtserialnumber " + B + "; mt " + JSON.stringify(F)).setEntity(F);
- try {
- va = xa(X);
- } catch (ga) {
- throw new L(g.USERIDTOKEN_USERDATA_INVALID, X, ga).setEntity(F);
- }
- if (!va || 0 == va.length)
- throw new L(g.USERIDTOKEN_USERDATA_MISSING, X).setEntity(F);
- w ? v.decrypt(va, {
- result: function (v) {
- r(I, function () {
- var r,
- y,
- E,
- B,
- X;
- E = Ja(v, Ma);
- try {
- B = JSON.parse(E);
- r = B.issuerdata;
- y = B.identity;
- } catch (d) {
- if (d instanceof SyntaxError)
- throw new la(g.USERIDTOKEN_USERDATA_PARSE_ERROR, "userdata " + E).setEntity(F);
- throw d;
- }
- if (r && "object" !== typeof r || "object" !== typeof y)
- throw new la(g.USERIDTOKEN_USERDATA_PARSE_ERROR, "userdata " + E).setEntity(F);
- try {
- X = te(y);
- } catch (d) {
- throw new L(g.USERIDTOKEN_IDENTITY_INVALID, "userdata " + E, d).setEntity(F);
- }
- y = new m(M, za, w);
- new hc(t, ua, S, F, x, r, X, y, I);
- });
- },
- error: function (g) {
- r(I, function () {
- g instanceof L && g.setEntity(F);
- throw g;
- });
- }
- }) : (y = new m(M, za, w), new hc(t, ua, S, F, x, null, null, y, I));
- });
- },
- error: function (g) {
- r(I, function () {
- g instanceof L && g.setEntity(F);
- throw g;
- });
- }
- });
- });
- };
- }
- ());
- (function () {
- function m(m, r) {
- var t,
- v,
- w;
- t = m.tokendata;
- if ("string" !== typeof t)
- throw new la(g.JSON_PARSE_ERROR, "servicetoken " + JSON.stringify(m));
- try {
- v = xa(t);
- } catch (ua) {
- throw new L(g.SERVICETOKEN_TOKENDATA_INVALID, "servicetoken " + JSON.stringify(m), ua);
- }
- if (!v || 0 == v.length)
- throw new la(g.SERVICETOKEN_TOKENDATA_MISSING, "servicetoken " + JSON.stringify(m));
- try {
- w = JSON.parse(Ja(v, Ma)).name;
- } catch (ua) {
- if (ua instanceof SyntaxError)
- throw new la(g.JSON_PARSE_ERROR, "servicetoken " + JSON.stringify(m), ua);
- throw ua;
- }
- if (!w)
- throw new la(g.JSON_PARSE_ERROR, "servicetoken " + JSON.stringify(m));
- return r[w] ? r[w] : r[""];
- }
- function t(g, m, r) {
- this.tokendata = g;
- this.signature = m;
- this.verified = r;
- }
- Ob = oa.Class.create({
- init: function (g, m, t, v, w, x, M, za, S, ca) {
- var y;
- y = this;
- r(ca, function () {
- var E,
- I,
- F,
- X,
- da;
- if (v && w && !w.isBoundTo(v))
- throw new fa("Cannot construct a service token bound to a master token and user ID token where the user ID token is not bound to the same master token.");
- E = v ? v.serialNumber : -1;
- I = w ? w.serialNumber : -1;
- if (S)
- return da = S.tokendata, Object.defineProperties(this, {
- ctx: {
- value: g,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- name: {
- value: m,
- writable: !1,
- configurable: !1
- },
- mtSerialNumber: {
- value: E,
- writable: !1,
- configurable: !1
- },
- uitSerialNumber: {
- value: I,
- writable: !1,
- configurable: !1
- },
- data: {
- value: t,
- writable: !1,
- configurable: !1
- },
- encrypted: {
- value: x,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- compressionAlgo: {
- value: M,
- writable: !1,
- configurable: !1
- },
- verified: {
- value: S.verified,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- tokendata: {
- value: da,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- signature: {
- value: S.signature,
- writable: !1,
- enumerable: !1,
- configurable: !1
- }
- }), this;
- M ? (F = sd(M, t), F.length < t.length || (M = null, F = t)) : (M = null, F = t);
- X = {};
- X.name = m;
- -1 != E && (X.mtserialnumber = E);
- -1 != I && (X.uitserialnumber = I);
- X.encrypted = x;
- M && (X.compressionalgo = M);
- if (x && 0 < F.length)
- za.encrypt(F, {
- result: function (B) {
- r(ca, function () {
- var F;
- X.servicedata = sa(B);
- F = Qa(JSON.stringify(X), Ma);
- za.sign(F, {
- result: function (v) {
- r(ca, function () {
- Object.defineProperties(this, {
- ctx: {
- value: g,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- name: {
- value: m,
- writable: !1,
- configurable: !1
- },
- mtSerialNumber: {
- value: E,
- writable: !1,
- configurable: !1
- },
- uitSerialNumber: {
- value: I,
- writable: !1,
- configurable: !1
- },
- data: {
- value: t,
- writable: !1,
- configurable: !1
- },
- encrypted: {
- value: x,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- compressionAlgo: {
- value: M,
- writable: !1,
- configurable: !1
- },
- verified: {
- value: !0,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- tokendata: {
- value: F,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- signature: {
- value: v,
- writable: !1,
- enumerable: !1,
- configurable: !1
- }
- });
- return this;
- }, y);
- },
- error: function (g) {
- r(ca, function () {
- g instanceof L && (g.setEntity(v), g.setUser(w));
- throw g;
- });
- }
- });
- }, y);
- },
- error: function (g) {
- r(ca, function () {
- g instanceof L && (g.setEntity(v), g.setUser(w));
- throw g;
- });
- }
- });
- else {
- X.servicedata = sa(F);
- da = Qa(JSON.stringify(X), Ma);
- za.sign(da, {
- result: function (v) {
- r(ca, function () {
- Object.defineProperties(this, {
- ctx: {
- value: g,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- name: {
- value: m,
- writable: !1,
- configurable: !1
- },
- mtSerialNumber: {
- value: E,
- writable: !1,
- configurable: !1
- },
- uitSerialNumber: {
- value: I,
- writable: !1,
- configurable: !1
- },
- data: {
- value: t,
- writable: !1,
- configurable: !1
- },
- encrypted: {
- value: x,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- compressionAlgo: {
- value: M,
- writable: !1,
- configurable: !1
- },
- verified: {
- value: !0,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- tokendata: {
- value: da,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- signature: {
- value: v,
- writable: !1,
- enumerable: !1,
- configurable: !1
- }
- });
- return this;
- }, y);
- },
- error: function (g) {
- r(ca, function () {
- g instanceof L && (g.setEntity(v), g.setUser(w));
- throw g;
- });
- }
- });
- }
- }, this);
- },
- isEncrypted: function () {
- return this.encrypted;
- },
- isVerified: function () {
- return this.verified;
- },
- isDecrypted: function () {
- return this.data ? !0 : !1;
- },
- isDeleted: function () {
- return this.data && 0 == this.data.length;
- },
- isMasterTokenBound: function () {
- return -1 != this.mtSerialNumber;
- },
- isBoundTo: function (g) {
- return g ? g instanceof lb ? g.serialNumber == this.mtSerialNumber : g instanceof hc ? g.serialNumber == this.uitSerialNumber : !1 : !1;
- },
- isUserIdTokenBound: function () {
- return -1 != this.uitSerialNumber;
- },
- isUnbound: function () {
- return -1 == this.mtSerialNumber && -1 == this.uitSerialNumber;
- },
- toJSON: function () {
- var g;
- g = {};
- g.tokendata = sa(this.tokendata);
- g.signature = sa(this.signature);
- return g;
- },
- equals: function (g) {
- return this === g ? !0 : g instanceof Ob ? this.name == g.name && this.mtSerialNumber == g.mtSerialNumber && this.uitSerialNumber == g.uitSerialNumber : !1;
- },
- uniqueKey: function () {
- return this.name + ":" + this.mtSerialNumber + ":" + this.uitSerialNumber;
- }
- });
- Hb = function (g, m, r, t, w, x, M, L, S) {
- new Ob(g, m, r, t, w, x, M, L, null, S);
- };
- Mc = function (w, F, I, v, E, x) {
- r(x, function () {
- var y,
- M,
- ua,
- ca,
- ra,
- B,
- W,
- ya,
- qa,
- da,
- Aa,
- S,
- va;
- !E || E instanceof ic || (E = m(F, E));
- y = F.tokendata;
- M = F.signature;
- if ("string" !== typeof y || "string" !== typeof M)
- throw new la(g.JSON_PARSE_ERROR, "servicetoken " + JSON.stringify(F)).setEntity(I).setEntity(v);
- try {
- ua = xa(y);
- } catch (ga) {
- throw new L(g.SERVICETOKEN_TOKENDATA_INVALID, "servicetoken " + JSON.stringify(F), ga).setEntity(I).setEntity(v);
- }
- if (!ua || 0 == ua.length)
- throw new la(g.SERVICETOKEN_TOKENDATA_MISSING, "servicetoken " + JSON.stringify(F)).setEntity(I).setEntity(v);
- try {
- ca = xa(M);
- } catch (ga) {
- throw new L(g.SERVICETOKEN_SIGNATURE_INVALID, "servicetoken " + JSON.stringify(F), ga).setEntity(I).setEntity(v);
- }
- Aa = Ja(ua, Ma);
- try {
- S = JSON.parse(Aa);
- ra = S.name;
- B = S.mtserialnumber ? parseInt(S.mtserialnumber) : -1;
- W = S.uitserialnumber ? parseInt(S.uitserialnumber) : -1;
- ya = S.encrypted;
- qa = S.compressionalgo;
- da = S.servicedata;
- } catch (ga) {
- if (ga instanceof SyntaxError)
- throw new la(g.JSON_PARSE_ERROR, "servicetokendata " + Aa, ga).setEntity(I).setEntity(v);
- throw ga;
- }
- if (!ra || "number" !== typeof B || B != B || "number" !== typeof W || W != W || "boolean" !== typeof ya || qa && "string" !== typeof qa || "string" !== typeof da)
- throw new la(g.JSON_PARSE_ERROR, "servicetokendata " + Aa).setEntity(I).setEntity(v);
- if (S.mtserialnumber && 0 > B || B > Na)
- throw new L(g.SERVICETOKEN_MASTERTOKEN_SERIAL_NUMBER_OUT_OF_RANGE, "servicetokendata " + Aa).setEntity(I).setEntity(v);
- if (S.uitserialnumber && 0 > W || W > Na)
- throw new L(g.SERVICETOKEN_USERIDTOKEN_SERIAL_NUMBER_OUT_OF_RANGE, "servicetokendata " + Aa).setEntity(I).setEntity(v);
- if (-1 != B && (!I || B != I.serialNumber))
- throw new L(g.SERVICETOKEN_MASTERTOKEN_MISMATCH, "st mtserialnumber " + B + "; mt " + I).setEntity(I).setEntity(v);
- if (-1 != W && (!v || W != v.serialNumber))
- throw new L(g.SERVICETOKEN_USERIDTOKEN_MISMATCH, "st uitserialnumber " + W + "; uit " + v).setEntity(I).setEntity(v);
- ya = !0 === ya;
- if (qa) {
- if (!Sb[qa])
- throw new L(g.UNIDENTIFIED_COMPRESSION, qa);
- va = qa;
- } else
- va = null;
- E ? E.verify(ua, ca, {
- result: function (m) {
- r(x, function () {
- var y,
- F;
- if (m) {
- try {
- y = xa(da);
- } catch (ld) {
- throw new L(g.SERVICETOKEN_SERVICEDATA_INVALID, "servicetokendata " + Aa, ld).setEntity(I).setEntity(v);
- }
- if (!y || 0 != da.length && 0 == y.length)
- throw new L(g.SERVICETOKEN_SERVICEDATA_INVALID, "servicetokendata " + Aa).setEntity(I).setEntity(v);
- if (ya && 0 < y.length)
- E.decrypt(y, {
- result: function (g) {
- r(x, function () {
- var r,
- y;
- r = va ? Nc(va, g) : g;
- y = new t(ua, ca, m);
- new Ob(w, ra, r, -1 != B ? I : null, -1 != W ? v : null, ya, va, E, y, x);
- });
- },
- error: function (g) {
- r(x, function () {
- g instanceof L && (g.setEntity(I), g.setUser(v));
- throw g;
- });
- }
- });
- else {
- y = va ? Nc(va, y) : y;
- F = new t(ua, ca, m);
- new Ob(w, ra, y, -1 != B ? I : null, -1 != W ? v : null, ya, va, E, F, x);
- }
- } else
- y = "" == da ? new Uint8Array(0) : null, F = new t(ua, ca, m), new Ob(w, ra, y, -1 != B ? I : null, -1 != W ? v : null, ya, va, E, F, x);
- });
- },
- error: function (g) {
- r(x, function () {
- g instanceof L && (g.setEntity(I), g.setUser(v));
- throw g;
- });
- }
- }) : (y = "" == da ? new Uint8Array(0) : null, M = new t(ua, ca, !1), new Ob(w, ra, y, -1 != B ? I : null, -1 != W ? v : null, ya, va, E, M, x));
- });
- };
- }
- ());
- gb = {
- EMAIL_PASSWORD: "EMAIL_PASSWORD",
- NETFLIXID: "NETFLIXID",
- SSO: "SSO",
- SWITCH_PROFILE: "SWITCH_PROFILE",
- MDX: "MDX"
- };
- Object.freeze(gb);
- (function () {
- Kb = oa.Class.create({
- init: function (g) {
- Object.defineProperties(this, {
- scheme: {
- value: g,
- writable: !1,
- configurable: !1
- }
- });
- },
- getAuthData: function () {},
- equals: function (g) {
- return this === g ? !0 : g instanceof Kb ? this.scheme == g.scheme : !1;
- },
- toJSON: function () {
- var g;
- g = {};
- g.scheme = this.scheme;
- g.authdata = this.getAuthData();
- return g;
- }
- });
- ie = function (m, t, y, F) {
- r(F, function () {
- var r,
- v,
- w;
- r = y.scheme;
- v = y.authdata;
- if (!r || !v)
- throw new la(g.JSON_PARSE_ERROR, "userauthdata " + JSON.stringify(y));
- if (!gb[r])
- throw new Ca(g.UNIDENTIFIED_USERAUTH_SCHEME, r);
- w = m.getUserAuthenticationFactory(r);
- if (!w)
- throw new Ca(g.USERAUTH_FACTORY_NOT_FOUND, r);
- w.createData(m, t, v, F);
- });
- };
- }
- ());
- tc = oa.Class.create({
- init: function (g) {
- Object.defineProperties(this, {
- scheme: {
- value: g,
- writable: !1,
- configurable: !1
- }
- });
- },
- createData: function (g, m, r, t) {},
- authenticate: function (g, m, r, t) {}
- });
- (function () {
- $b = Kb.extend({
- init: function w(g, m) {
- w.base.call(this, gb.NETFLIXID);
- Object.defineProperties(this, {
- netflixId: {
- value: g,
- writable: !1,
- configurable: !1
- },
- secureNetflixId: {
- value: m,
- writable: !1,
- configurable: !1
- }
- });
- },
- getAuthData: function () {
- var g;
- g = {};
- g.netflixid = this.netflixId;
- this.secureNetflixId && (g.securenetflixid = this.secureNetflixId);
- return g;
- },
- equals: function y(g) {
- return this === g ? !0 : g instanceof $b ? y.base.call(this, g) && this.netflixId == g.netflixId && this.secureNetflixId == g.secureNetflixId : !1;
- }
- });
- ue = function (m) {
- var r,
- t;
- r = m.netflixid;
- t = m.securenetflixid;
- if (!r)
- throw new la(g.JSON_PARSE_ERROR, "NetflixId authdata " + JSON.stringify(m));
- return new $b(r, t);
- };
- }
- ());
- Ye = tc.extend({
- init: function w() {
- w.base.call(this, gb.NETFLIXID);
- },
- createData: function (g, m, t, I) {
- r(I, function () {
- return ue(t);
- });
- },
- authenticate: function (m, r, t, I) {
- if (!(t instanceof $b))
- throw new fa("Incorrect authentication data type " + t + ".");
- m = t.secureNetflixId;
- if (!t.netflixId || !m)
- throw new Ca(g.NETFLIXID_COOKIES_BLANK).setUser(t);
- throw new Ca(g.UNSUPPORTED_USERAUTH_DATA, this.scheme).setUser(t);
- }
- });
- (function () {
- uc = Kb.extend({
- init: function y(g, m) {
- y.base.call(this, gb.EMAIL_PASSWORD);
- Object.defineProperties(this, {
- email: {
- value: g,
- writable: !1,
- configurable: !1
- },
- password: {
- value: m,
- writable: !1,
- configurable: !1
- }
- });
- },
- getAuthData: function () {
- var g;
- g = {};
- g.email = this.email;
- g.password = this.password;
- return g;
- },
- equals: function F(g) {
- return this === g ? !0 : g instanceof uc ? F.base.call(this, this, g) && this.email == g.email && this.password == g.password : !1;
- }
- });
- ve = function (m) {
- var r,
- t;
- r = m.email;
- t = m.password;
- if (!r || !t)
- throw new la(g.JSON_PARSE_ERROR, "email/password authdata " + JSON.stringify(m));
- return new uc(r, t);
- };
- }
- ());
- Ze = tc.extend({
- init: function y() {
- y.base.call(this, gb.EMAIL_PASSWORD);
- },
- createData: function (g, m, t, v) {
- r(v, function () {
- return ve(t);
- });
- },
- authenticate: function (m, r, t, v) {
- if (!(t instanceof uc))
- throw new fa("Incorrect authentication data type " + t + ".");
- m = t.password;
- if (!t.email || !m)
- throw new Ca(g.EMAILPASSWORD_BLANK).setUser(t);
- throw new Ca(g.UNSUPPORTED_USERAUTH_DATA, this.scheme).setUser(t);
- }
- });
- (function () {
- var v,
- E,
- ua,
- X,
- za,
- Y,
- ca,
- ra;
- function m(g, m) {
- return "<" + g + ">" + m + "" + g + ">";
- }
- function t(g) {
- return g.replace(/[<>&"']/g, function (g) {
- return za[g];
- });
- }
- function x(g) {
- return encodeURIComponent(g).replace("%20", "+").replace(/[!'()]/g, escape).replace(/\*/g, "%2A");
- }
- v = Qc = {
- MSL: "MSL",
- NTBA: "NTBA",
- MSL_LEGACY: "MSL_LEGACY"
- };
- E = oa.Class.create({
- getAction: function () {},
- getNonce: function () {},
- getPin: function () {},
- getSignature: function () {},
- getEncoding: function () {},
- equals: function () {}
- });
- ua = ud = E.extend({
- init: function (m, t, v, y, E, x, I) {
- var L;
- function B(y) {
- r(I, function () {
- var r,
- B;
- try {
- B = {};
- B.useridtoken = m;
- B.action = t;
- B.nonce = v;
- B.pin = sa(y);
- r = Qa(JSON.stringify(B), Ma);
- } catch (Nb) {
- throw new la(g.JSON_ENCODE_ERROR, "MSL-based MDX authdata", Nb);
- }
- E.sign(r, {
- result: function (g) {
- F(r, g);
- },
- error: I.error
- });
- }, L);
- }
- function F(g, E) {
- r(I, function () {
- Object.defineProperties(this, {
- _userIdToken: {
- value: m,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- _action: {
- value: t,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- _nonce: {
- value: v,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- _pin: {
- value: y,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- _encoding: {
- value: g,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- _signature: {
- value: E,
- writable: !1,
- enumerable: !1,
- configurable: !1
- }
- });
- return this;
- }, L);
- }
- L = this;
- r(I, function () {
- x ? F(x.encoding, x.signature) : E.encrypt(Qa(y, Ma), {
- result: function (g) {
- B(g);
- },
- error: I.error
- });
- }, L);
- },
- getUserIdToken: function () {
- return this._userIdToken;
- },
- getAction: function () {
- return this._action;
- },
- getNonce: function () {
- return this._nonce;
- },
- getPin: function () {
- return this._pin;
- },
- getSignature: function () {
- return this._signature;
- },
- getEncoding: function () {
- return this._encoding;
- },
- equals: function (g) {
- return this === g ? !0 : g instanceof ua ? this._action == g._action && this._nonce == g._nonce && this._pin == g._pin && this._userIdToken.equals(g._userIdToken) : !1;
- }
- });
- ud.ACTION = "userauth";
- X = function (m, t, v, y, E) {
- function B(y) {
- r(E, function () {
- var B,
- I,
- F,
- ca,
- X,
- W;
- B = Ja(v, Ma);
- try {
- W = JSON.parse(B);
- I = W.useridtoken;
- F = W.action;
- ca = W.nonce;
- X = W.pin;
- } catch (d) {
- if (d instanceof SyntaxError)
- throw new la(g.JSON_PARSE_ERROR, "MDX authdata " + B, d);
- throw d;
- }
- if (!(I && "object" === typeof I && F && "string" === typeof F && ca && "number" === typeof ca && X) || "string" !== typeof X)
- throw new la(g.JSON_PARSE_ERROR, "MDX authdata " + B);
- Xb(m, I, t, {
- result: function (d) {
- r(E, function () {
- if (!d.isDecrypted())
- throw new Ca(g.USERAUTH_USERIDTOKEN_NOT_DECRYPTED, "MDX authdata " + B);
- x(y, d, F, ca, X);
- });
- },
- error: function (d) {
- r(E, function () {
- if (d instanceof L)
- throw new Ca(g.USERAUTH_USERIDTOKEN_INVALID, "MDX authdata " + B, d);
- throw d;
- });
- }
- });
- });
- }
- function x(g, m, t, B, x) {
- r(E, function () {
- var I;
- I = xa(x);
- g.decrypt(I, {
- result: function (g) {
- r(E, function () {
- var d;
- d = Ja(g, Ma);
- new ua(m, t, B, d, null, {
- encoding: v,
- signature: y
- }, E);
- });
- },
- error: E.error
- });
- });
- }
- r(E, function () {
- var x,
- I;
- try {
- I = m.getMslStore().getCryptoContext(t);
- x = I ? I : new mb(m, t);
- } catch (Ab) {
- if (Ab instanceof Ub)
- throw new Ca(g.USERAUTH_MASTERTOKEN_NOT_DECRYPTED, "MDX authdata " + sa(v));
- throw Ab;
- }
- x.verify(v, y, {
- result: function (m) {
- r(E, function () {
- if (!m)
- throw new S(g.MDX_USERAUTH_VERIFICATION_FAILED, "MDX authdata " + sa(v));
- B(x);
- });
- },
- error: E.error
- });
- });
- };
- za = {
- "<": "<",
- ">": ">",
- "&": "&",
- '"': """,
- "'": "'"
- };
- Y = vc = E.extend({
- init: function (g, r, v, y) {
- var E,
- B;
- E = m("action", t(g));
- B = m("nonce", r.toString());
- v = m("pin", v);
- E = m("registerdata", E + B + v);
- E = Qa(E, "utf-8");
- Object.defineProperties(this, {
- _action: {
- value: g,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- _nonce: {
- value: r,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- _pin: {
- value: null,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- _encoding: {
- value: E,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- _signature: {
- value: y,
- writable: !1,
- enumerable: !1,
- configurable: !1
- }
- });
- },
- getAction: function () {
- return this._action;
- },
- getNonce: function () {
- return this._nonce;
- },
- getPin: function () {
- return this._pin;
- },
- getSignature: function () {
- return this._signature;
- },
- getEncoding: function () {
- return this._encoding;
- },
- equals: function (g) {
- return this === g ? !0 : g instanceof Y ? this._action == g._action && this._nonce == g._nonce && this._pin == g._pin : !1;
- }
- });
- vc.ACTION = "regpairrequest";
- ca = vd = E.extend({
- init: function (g, v, y, E, I, F) {
- var ca;
- function B(y) {
- r(F, function () {
- var r,
- B,
- I,
- ca,
- d;
- r = sa(y);
- B = m("action", t(g));
- I = m("nonce", v.toString());
- ca = m("pin", r);
- B = m("registerdata", B + I + ca);
- d = Qa(B, "utf-8");
- r = "action=" + x(g) + "&nonce=" + x(v.toString()) + "&pin=" + x(r);
- E.sign(Qa(r, "utf-8"), {
- result: function (b) {
- L(d, b);
- },
- error: F.error
- });
- }, ca);
- }
- function L(m, t) {
- r(F, function () {
- Object.defineProperties(this, {
- _action: {
- value: g,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- _nonce: {
- value: v,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- _pin: {
- value: y,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- _encoding: {
- value: m,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- _signature: {
- value: t,
- writable: !1,
- enumerable: !1,
- configurable: !1
- }
- });
- return this;
- }, ca);
- }
- ca = this;
- r(F, function () {
- I ? L(I.encoding, I.signature) : E.encrypt(Qa(y, "utf-8"), {
- result: function (g) {
- B(g);
- },
- error: F.error
- });
- }, ca);
- },
- getAction: function () {
- return this._action;
- },
- getNonce: function () {
- return this._nonce;
- },
- getPin: function () {
- return this._pin;
- },
- getSignature: function () {
- return this._signature;
- },
- getEncoding: function () {
- return this._encoding;
- },
- equals: function (g) {
- return this === g ? !0 : g instanceof ca ? this._action == g._action && this._nonce == g._nonce && this._pin == g._pin : !1;
- }
- });
- vd.ACTION = vc.ACTION;
- ra = function (m, t, v, y, E) {
- r(E, function () {
- var B,
- I,
- F,
- L,
- X,
- W,
- da;
- B = m.getMslStore().getCryptoContext(t);
- I = B ? B : new mb(m, t);
- B = Ja(v, "utf-8");
- F = new DOMParser().parseFromString(B, "application/xml");
- B = F.getElementsByTagName("action");
- L = F.getElementsByTagName("nonce");
- F = F.getElementsByTagName("pin");
- X = B && 1 == B.length && B[0].firstChild ? B[0].firstChild.nodeValue : null;
- W = L && 1 == L.length && L[0].firstChild ? parseInt(L[0].firstChild.nodeValue) : null;
- da = F && 1 == F.length && F[0].firstChild ? F[0].firstChild.nodeValue : null;
- if (!X || !W || !da)
- throw new la(g.XML_PARSE_ERROR, "MDX authdata " + sa(v));
- B = "action=" + x(X) + "&nonce=" + x(W.toString()) + "&pin=" + x(da);
- I.verify(Qa(B, "utf-8"), y, {
- result: function (m) {
- r(E, function () {
- var t;
- if (!m)
- throw new S(g.MDX_USERAUTH_VERIFICATION_FAILED, "MDX authdata " + sa(v));
- t = xa(da);
- I.decrypt(t, {
- result: function (d) {
- r(E, function () {
- var b;
- b = Ja(d, "utf-8");
- new ca(X, W, b, null, {
- encoding: v,
- signature: y
- }, E);
- });
- },
- error: E.error
- });
- });
- },
- error: E.error
- });
- });
- };
- lc = Kb.extend({
- init: function W(g, m, r, t, y, E) {
- var x,
- I,
- F,
- L,
- ca,
- X;
- W.base.call(this, gb.MDX);
- x = null;
- I = null;
- F = null;
- if ("string" === typeof r)
- g = v.MSL_LEGACY, F = r;
- else if (r instanceof Uint8Array)
- g = v.NTBA, I = r;
- else if (r instanceof lb)
- g = v.MSL, x = r;
- else
- throw new TypeError("Controller token " + r + " is not a master token, encrypted CTicket, or MSL token construct.");
- L = r = null;
- ca = null;
- if (E) {
- X = E.controllerAuthData;
- r = X.getAction();
- L = X.getPin();
- E = E.userIdToken;
- X instanceof ua ? ca = X.getUserIdToken().customer : E && (ca = E.customer);
- }
- Object.defineProperties(this, {
- mechanism: {
- value: g,
- writable: !1,
- configurable: !1
- },
- action: {
- value: r,
- writable: !1,
- configurable: !1
- },
- targetPin: {
- value: m,
- writable: !1,
- configurable: !1
- },
- controllerPin: {
- value: L,
- writable: !1,
- configurable: !1
- },
- customer: {
- value: ca,
- writable: !1,
- configurable: !1
- },
- _masterToken: {
- value: x,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- _encryptedCTicket: {
- value: I,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- _mslTokens: {
- value: F,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- _controllerEncoding: {
- value: t,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- _signature: {
- value: y,
- writable: !1,
- enumerable: !1,
- configurable: !1
- }
- });
- },
- getAuthData: function () {
- var g,
- m;
- g = {};
- switch (this.mechanism) {
- case v.MSL:
- m = JSON.parse(JSON.stringify(this._masterToken));
- g.mastertoken = m;
- break;
- case v.NTBA:
- m = Ja(this._encryptedCTicket, "utf-8");
- g.cticket = m;
- break;
- case v.MSL_LEGACY:
- g.cticket = this._mslTokens;
- break;
- default:
- throw new fa("Unsupported MDX mechanism.");
- }
- g.pin = this.targetPin;
- g.mdxauthdata = sa(this._controllerEncoding);
- g.signature = sa(this._signature);
- return g;
- },
- equals: function ya(g) {
- return this === g ? !0 : g instanceof lc ? ya.base.call(this, g) && (this._masterToken == g._masterToken || this._masterToken && this._masterToken.equals(g._masterToken)) && (this._encryptedCTicket == g._encryptedCTicket || this._encryptedCTicket && Xa(this._encryptedCTicket, g._encryptedCTicket)) && this._mslTokens == g._mslTokens && Xa(this._controllerEncoding, g._controllerEncoding) && Xa(this._signature, g._signature) : !1;
- }
- });
- we = function (m, t, v) {
- function y(y, E, x, I) {
- Wb(m, E, {
- result: function (E) {
- r(v, function () {
- if (!E.isDecrypted())
- throw new Ca(g.USERAUTH_MASTERTOKEN_NOT_DECRYPTED, "MDX authdata " + t.toString());
- X(m, E, x, I, {
- result: function (g) {
- r(v, function () {
- var d,
- b;
- d = g.getEncoding();
- b = g.getSignature();
- return new lc(m, y, E, d, b, {
- controllerAuthData: g,
- userIdToken: null
- });
- });
- },
- error: v.error
- });
- });
- },
- error: function (m) {
- r(v, function () {
- if (m instanceof L)
- throw new Ca(g.USERAUTH_MASTERTOKEN_INVALID, "MDX authdata " + JSON.stringify(t), m);
- throw m;
- });
- }
- });
- }
- function E(m, t, y, E) {
- r(v, function () {
- throw new Ca(g.UNSUPPORTED_USERAUTH_MECHANISM, "NtbaControllerData$parse");
- });
- }
- function x(y, E, x, I) {
- function F(d, b) {
- r(b, function () {
- var a,
- c;
- try {
- a = xa(d);
- } catch (l) {
- throw new Ca(g.USERAUTH_MASTERTOKEN_INVALID, "MDX authdata " + JSON.stringify(t), l);
- }
- if (!a || 0 == a.length)
- throw new Ca(g.USERAUTH_MASTERTOKEN_MISSING, "MDX authdata " + JSON.stringify(t));
- try {
- c = JSON.parse(Ja(a, "utf-8"));
- Wb(m, c, {
- result: function (a) {
- r(b, function () {
- if (!a.isDecrypted())
- throw new Ca(g.USERAUTH_MASTERTOKEN_NOT_DECRYPTED, "MDX authdata " + t.toString());
- return a;
- });
- },
- error: function (a) {
- r(b, function () {
- if (a instanceof L)
- throw new Ca(g.USERAUTH_MASTERTOKEN_INVALID, "MDX authdata " + JSON.stringify(t), a);
- throw a;
- });
- }
- });
- } catch (l) {
- if (l instanceof SyntaxError)
- throw new la(g.JSON_PARSE_ERROR, "MDX authdata " + JSON.stringify(t), l);
- throw l;
- }
- });
- }
- function ca(d, b, a) {
- r(a, function () {
- var c,
- l;
- try {
- c = xa(d);
- } catch (q) {
- throw new Ca(g.USERAUTH_USERIDTOKEN_INVALID, "MDX authdata " + JSON.stringify(t), q);
- }
- if (!c || 0 == c.length)
- throw new Ca(g.USERAUTH_USERIDTOKEN_MISSING, "MDX authdata " + JSON.stringify(t));
- try {
- l = JSON.parse(Ja(c, "utf-8"));
- Xb(m, l, b, {
- result: function (b) {
- r(a, function () {
- if (!b.isDecrypted())
- throw new Ca(g.USERAUTH_USERIDTOKEN_NOT_DECRYPTED, "MDX authdata " + JSON.stringify(t));
- return b;
- });
- },
- error: function (b) {
- r(a, function () {
- if (b instanceof L)
- throw new Ca(g.USERAUTH_USERIDTOKEN_INVALID, "MDX authdata " + JSON.stringify(t), b);
- throw b;
- });
- }
- });
- } catch (q) {
- if (q instanceof SyntaxError)
- throw new la(g.JSON_PARSE_ERROR, "MDX authdata " + JSON.stringify(t), q);
- throw q;
- }
- });
- }
- r(v, function () {
- var d;
- d = E.split(",");
- if (3 != d.length || "1" != d[0])
- throw new Ca(g.UNIDENTIFIED_USERAUTH_MECHANISM, "MDX authdata " + JSON.stringify(t));
- F(d[1], {
- result: function (b) {
- ca(d[2], b, {
- result: function (a) {
- ra(m, b, x, I, {
- result: function (b) {
- r(v, function () {
- return new lc(m, y, E, x, I, {
- controllerAuthData: b,
- userIdToken: a
- });
- });
- },
- error: function (a) {
- r(v, function () {
- if (a instanceof Ub)
- throw new Ca(g.USERAUTH_MASTERTOKEN_NOT_DECRYPTED, "MDX authdata " + JSON.stringify(t), a);
- throw a;
- });
- }
- });
- },
- error: v.error
- });
- },
- error: v.error
- });
- });
- }
- r(v, function () {
- var m,
- r,
- v,
- I,
- F;
- m = t.pin;
- r = t.mdxauthdata;
- v = t.signature;
- if (!m || "string" !== typeof m || !r || "string" !== typeof r || !v || "string" !== typeof v)
- throw new la(g.JSON_PARSE_ERROR, "MDX authdata " + JSON.stringify(t));
- try {
- I = xa(r);
- F = xa(v);
- } catch (Nb) {
- throw new Ca(g.MDX_CONTROLLERDATA_INVALID, "MDX authdata " + JSON.stringify(t), Nb);
- }
- if (t.mastertoken) {
- r = t.mastertoken;
- if (!r || "object" !== typeof r)
- throw new la(g.JSON_PARSE_ERROR, "MDX authdata " + JSON.stringify(t));
- y(m, r, I, F);
- } else if (t.cticket) {
- r = t.cticket;
- if (!r || "string" !== typeof r)
- throw new la(g.JSON_PARSE_ERROR, "MDX authdata " + JSON.stringify(t));
- -1 == r.indexOf(",") ? E(m, r, I, F) : x(m, r, I, F);
- } else
- throw new Ca(g.UNIDENTIFIED_USERAUTH_MECHANISM, "MDX authdata " + JSON.stringify(t));
- });
- };
- }
- ());
- (function () {
- var m,
- r,
- t;
- m = ud.ACTION;
- r = vc.ACTION;
- t = vd.ACTION;
- xe = tc.extend({
- init: function E() {
- E.base.call(this, gb.MDX);
- },
- createData: function (g, m, r, t) {
- we(g, r, t);
- },
- authenticate: function (y, x, I, F) {
- if (!(I instanceof lc))
- throw new fa("Incorrect authentication data type " + I.getClass().getName() + ".");
- y = I.action;
- switch (I.mechanism) {
- case Qc.MSL:
- if (m != y)
- throw new Ca(g.MDX_USERAUTH_ACTION_INVALID).setUser(I);
- break;
- case Qc.NTBA:
- if (r != y)
- throw new Ca(g.MDX_USERAUTH_ACTION_INVALID).setUser(I);
- break;
- case Qc.MSL_LEGACY:
- if (t != y)
- throw new Ca(g.MDX_USERAUTH_ACTION_INVALID).setUser(I);
- }
- y = I.controllerPin;
- x = I.targetPin;
- if (!y || !x)
- throw new Ca(g.MDX_PIN_BLANK).setUser(I);
- if (y != x)
- throw new Ca(g.MDX_PIN_MISMATCH).setUser(I);
- y = I.customer;
- if (!y)
- throw new Ca(g.MDX_USER_UNKNOWN).setUser(I);
- if (F && (F = F.customer, !y.equals(F)))
- throw new Ca(g.USERIDTOKEN_USERAUTH_DATA_MISMATCH, "uad customer " + y + "; uit customer " + F).setUser(I);
- return y;
- }
- });
- }
- ());
- (function () {
- var m,
- r,
- t;
- m = {
- MICROSOFT_SAML: "MICROSOFT_SAML",
- SAMSUNG: "SAMSUNG",
- MICROSOFT_JWT: "MICROSOFT_JWT",
- GOOGLE_JWT: "GOOGLE_JWT"
- };
- r = ze = oa.Class.create({
- init: function (g, m) {
- Object.defineProperties(this, {
- email: {
- value: g,
- writable: !1,
- enumerable: !0,
- configurable: !1
- },
- password: {
- value: m,
- writable: !1,
- enumerable: !0,
- configurable: !1
- }
- });
- }
- });
- t = Ae = oa.Class.create({
- init: function (g, m) {
- Object.defineProperties(this, {
- netflixId: {
- value: g,
- writable: !1,
- enumerable: !0,
- configurable: !1
- },
- secureNetflixId: {
- value: m,
- writable: !1,
- enumerable: !0,
- configurable: !1
- }
- });
- }
- });
- wc = Kb.extend({
- init: function E(g, m, y, I) {
- var x,
- F,
- B,
- L;
- E.base.call(this, gb.SSO);
- x = null;
- F = null;
- B = null;
- L = null;
- y instanceof r ? (x = y.email, F = y.password) : y instanceof t && (B = y.netflixId, L = y.secureNetflixId);
- Object.defineProperties(this, {
- mechanism: {
- value: g,
- writable: !1,
- configurable: !1
- },
- token: {
- value: m,
- writable: !1,
- configurable: !1
- },
- email: {
- value: x,
- writable: !1,
- configurable: !1
- },
- password: {
- value: F,
- writable: !1,
- configurable: !1
- },
- netflixId: {
- value: B,
- writable: !1,
- configurable: !1
- },
- secureNetflixId: {
- value: L,
- writable: !1,
- configurable: !1
- },
- profileGuid: {
- value: "undefined" === typeof I ? null : I,
- writable: !1,
- configurable: !1
- }
- });
- },
- getAuthData: function () {
- var g;
- g = {};
- g.mechanism = this.mechanism;
- g.token = sa(this.token);
- this.email && this.password ? (g.email = this.email, g.password = this.password) : this.netflixId && this.secureNetflixId && (g.netflixid = this.netflixId, g.securenetflixid = this.secureNetflixId);
- this.profileGuid && (g.profileguid = this.profileGuid);
- return g;
- },
- equals: function ua(g) {
- return this === g ? !0 : g instanceof wc ? ua.base.call(this, g) && this.mechanism == g.mechanism && Xa(this.token, g.token) && this.email == g.email && this.password == g.password && this.netflixId == g.netflixId && this.secureNetflixId == g.secureNetflixId && this.profileGuid == g.profileGuid : !1;
- }
- });
- ye = function (y) {
- var I,
- x,
- F,
- L,
- ra,
- B,
- W,
- S,
- qa;
- I = y.mechanism;
- x = y.token;
- if (!I || !x || "string" !== typeof x)
- throw new la(g.JSON_PARSE_ERROR, "SSO authdata " + JSON.stringify(y));
- if (!m[I])
- throw new Ca(g.UNIDENTIFIED_USERAUTH_MECHANISM, "SSO authdata " + JSON.stringify(y));
- F = y.email;
- L = y.password;
- ra = y.netflixid;
- B = y.securenetflixid;
- W = y.profileguid;
- if (F && !L || !F && L || ra && !B || !ra && B || F && ra)
- throw new la(g.JSON_PARSE_ERROR, "SSO authdata " + JSON.stringify(y));
- try {
- S = xa(x);
- } catch (da) {
- throw new Ca(g.SSOTOKEN_INVALID, "SSO authdata " + JSON.stringify(y), da);
- }
- F && L ? qa = new r(F, L) : ra && B && (qa = new t(ra, B));
- return new wc(I, S, qa, W);
- };
- }
- ());
- $e = tc.extend({
- init: function F() {
- F.base.call(this, gb.SSO);
- },
- createData: function (g, m, t, E) {
- r(E, function () {
- return ye(t);
- });
- },
- authenticate: function (m, r, t, E) {
- var v,
- x;
- if (!(t instanceof wc))
- throw new fa("Incorrect authentication data type " + t + ".");
- m = t.token;
- r = t.email;
- E = t.password;
- v = t.netflixId;
- x = t.secureNetflixId;
- if (!m || 0 == m.length)
- throw new Ca(g.SSOTOKEN_BLANK);
- if (!(null === r && null === E || r && E))
- throw new Ca(g.EMAILPASSWORD_BLANK);
- if (!(null === v && null === x || v && x))
- throw new Ca(g.NETFLIXID_COOKIES_BLANK).setUser(t);
- throw new Ca(g.UNSUPPORTED_USERAUTH_DATA, this.scheme).setUser(t);
- }
- });
- (function () {
- xc = Kb.extend({
- init: function I(g, m) {
- I.base.call(this, gb.SWITCH_PROFILE);
- Object.defineProperties(this, {
- userIdToken: {
- value: g,
- writable: !1,
- configurable: !1
- },
- profileGuid: {
- value: m,
- writable: !1,
- configurable: !1
- }
- });
- },
- getAuthData: function () {
- var g;
- g = {};
- g.useridtoken = JSON.parse(JSON.stringify(this.userIdToken));
- g.profileguid = this.profileGuid;
- return g;
- },
- equals: function v(g) {
- return this == g ? !0 : g instanceof xc ? v.base.call(this, g) && this.userIdToken.equals(g.userIdToken) && this.profileGuid == g.profileGuid : !1;
- }
- });
- Be = function (m, t, x, L) {
- r(L, function () {
- var v,
- E;
- if (!t)
- throw new Ca(g.USERAUTH_MASTERTOKEN_MISSING);
- v = x.useridtoken;
- E = x.profileguid;
- if ("object" !== typeof v || "string" !== typeof E)
- throw new la(g.JSON_PARSE_ERROR, "switch profile authdata " + JSON.stringify(x));
- Xb(m, v, t, {
- result: function (m) {
- r(L, function () {
- if (!m.isDecrypted())
- throw new Ca(g.USERAUTH_USERIDTOKEN_NOT_DECRYPTED, "switch profile authdata " + JSON.stringify(x));
- return new xc(m, E);
- });
- },
- error: function (m) {
- L.error(new Ca(g.USERAUTH_USERIDTOKEN_INVALID, "switch profile authdata " + JSON.stringify(x), m));
- }
- });
- });
- };
- }
- ());
- af = tc.extend({
- init: function I(g) {
- I.base.call(this, gb.SWITCH_PROFILE);
- Object.defineProperties(this, {
- _store: {
- value: g,
- writable: !1,
- enumerable: !1,
- configurable: !1
- }
- });
- },
- createData: function (g, m, r, t) {
- Be(g, m, r, t);
- },
- authenticate: function (m, r, t, x) {
- if (!(t instanceof xc))
- throw new fa("Incorrect authentication data type " + t + ".");
- r = t.userIdToken;
- m = t.profileGuid;
- if (!m)
- throw new Ca(NetflixMslError.PROFILEGUID_BLANK).setUserAuthenticationData(t);
- r = r.user;
- if (!r)
- throw new Ca(g.USERAUTH_USERIDTOKEN_NOT_DECRYPTED).setUserAuthenticationData(t);
- m = this._store.switchUsers(r, m);
- if (!m)
- throw new Ca(NetflixMslError.PROFILE_SWITCH_DISALLOWED).setUserAuthenticationData(t);
- if (x && (x = x.user, !m.equals(x)))
- throw new Ca(g.USERIDTOKEN_USERAUTH_DATA_MISMATCH, "uad user " + m + "; uit user " + x).setUserAuthenticationData(t);
- return m;
- }
- });
- Object.freeze({
- ENTITY_REAUTH: m.ENTITY_REAUTH,
- ENTITYDATA_REAUTH: m.ENTITYDATA_REAUTH
- });
- bf = oa.Class.create({
- getTime: function () {},
- getRandom: function () {},
- isPeerToPeer: function () {},
- getMessageCapabilities: function () {},
- getEntityAuthenticationData: function (g, m) {},
- getMslCryptoContext: function () {},
- getEntityAuthenticationFactory: function (g) {},
- getUserAuthenticationFactory: function (g) {},
- getTokenFactory: function () {},
- getKeyExchangeFactory: function (g) {},
- getKeyExchangeFactories: function () {},
- getMslStore: function () {}
- });
- Ce = oa.Class.create({
- setCryptoContext: function (g, m) {},
- getMasterToken: function () {},
- getNonReplayableId: function (g) {},
- getCryptoContext: function (g) {},
- removeCryptoContext: function (g) {},
- clearCryptoContexts: function () {},
- addUserIdToken: function (g, m) {},
- getUserIdToken: function (g) {},
- removeUserIdToken: function (g) {},
- clearUserIdTokens: function () {},
- addServiceTokens: function (g) {},
- getServiceTokens: function (g, m) {},
- removeServiceTokens: function (g, m, r) {},
- clearServiceTokens: function () {}
- });
- (function () {
- var m;
- m = Sb;
- sd = function (r, t) {
- var v;
- v = {};
- switch (r) {
- case m.LZW:
- return Ed(t, v);
- case m.GZIP:
- return gzip$compress(t);
- default:
- throw new L(g.UNSUPPORTED_COMPRESSION, r);
- }
- };
- Nc = function (r, t, x) {
- switch (r) {
- case m.LZW:
- return Fd(t);
- case m.GZIP:
- return gzip$uncompress(t);
- default:
- throw new L(g.UNSUPPORTED_COMPRESSION, r.name());
- }
- };
- }
- ());
- Ce.extend({
- setCryptoContext: function (g, m) {},
- getMasterToken: function () {
- return null;
- },
- getNonReplayableId: function (g) {
- return 1;
- },
- getCryptoContext: function (g) {
- return null;
- },
- removeCryptoContext: function (g) {},
- clearCryptoContexts: function () {},
- addUserIdToken: function (g, m) {},
- getUserIdToken: function (g) {
- return null;
- },
- removeUserIdToken: function (g) {},
- clearUserIdTokens: function () {},
- addServiceTokens: function (g) {},
- getServiceTokens: function (m, r) {
- if (r) {
- if (!m)
- throw new L(g.USERIDTOKEN_MASTERTOKEN_NULL);
- if (!r.isBoundTo(m))
- throw new L(g.USERIDTOKEN_MASTERTOKEN_MISMATCH, "uit mtserialnumber " + r.mtSerialNumber + "; mt " + m.serialNumber);
- }
- return [];
- },
- removeServiceTokens: function (m, r, t) {
- if (t && r && !t.isBoundTo(r))
- throw new L(g.USERIDTOKEN_MASTERTOKEN_MISMATCH, "uit mtserialnumber " + t.masterTokenSerialNumber + "; mt " + r.serialNumber);
- },
- clearServiceTokens: function () {}
- });
- (function () {
- De = Ce.extend({
- init: function v() {
- v.base.call(this);
- Object.defineProperties(this, {
- masterTokens: {
- value: {},
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- cryptoContexts: {
- value: {},
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- userIdTokens: {
- value: {},
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- nonReplayableIds: {
- value: {},
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- unboundServiceTokens: {
- value: {},
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- mtServiceTokens: {
- value: {},
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- uitServiceTokens: {
- value: {},
- writable: !1,
- enumerable: !1,
- configurable: !1
- }
- });
- },
- setCryptoContext: function (g, m) {
- var r;
- if (m) {
- r = g.uniqueKey();
- this.masterTokens[r] = g;
- this.cryptoContexts[r] = m;
- } else
- this.removeCryptoContext(g);
- },
- getMasterToken: function () {
- var g,
- m,
- r;
- g = null;
- for (m in this.masterTokens) {
- r = this.masterTokens[m];
- if (!g || r.isNewerThan(g))
- g = r;
- }
- return g;
- },
- getNonReplayableId: function (g) {
- var m;
- g = g.serialNumber;
- m = this.nonReplayableIds[g] !== Y ? this.nonReplayableIds[g] : 0;
- if (0 > m || m > Na)
- throw new fa("Non-replayable ID " + m + " is outside the valid range.");
- m = m == Na ? 0 : m + 1;
- return this.nonReplayableIds[g] = m;
- },
- getCryptoContext: function (g) {
- return this.cryptoContexts[g.uniqueKey()];
- },
- removeCryptoContext: function (g) {
- var m,
- r;
- m = g.uniqueKey();
- if (this.masterTokens[m]) {
- delete this.masterTokens[m];
- delete this.cryptoContexts[m];
- m = g.serialNumber;
- for (r in this.masterTokens)
- if (this.masterTokens[r].serialNumber == m)
- return;
- delete this.nonReplayableIds[m];
- Object.keys(this.userIdTokens).forEach(function (m) {
- m = this.userIdTokens[m];
- m.isBoundTo(g) && this.removeUserIdToken(m);
- }, this);
- try {
- this.removeServiceTokens(null, g, null);
- } catch (X) {
- if (X instanceof L)
- throw new fa("Unexpected exception while removing master token bound service tokens.", X);
- throw X;
- }
- }
- },
- clearCryptoContexts: function () {
- [this.masterTokens, this.cryptoContexts, this.nonReplayableIds, this.userIdTokens, this.uitServiceTokens, this.mtServiceTokens].forEach(function (g) {
- for (var m in g)
- delete g[m];
- }, this);
- },
- addUserIdToken: function (m, r) {
- var t,
- v;
- t = !1;
- for (v in this.masterTokens)
- if (r.isBoundTo(this.masterTokens[v])) {
- t = !0;
- break;
- }
- if (!t)
- throw new L(g.USERIDTOKEN_MASTERTOKEN_NOT_FOUND, "uit mtserialnumber " + r.mtSerialNumber);
- this.userIdTokens[m] = r;
- },
- getUserIdToken: function (g) {
- return this.userIdTokens[g];
- },
- removeUserIdToken: function (g) {
- var m,
- r,
- t;
- m = null;
- for (r in this.masterTokens) {
- t = this.masterTokens[r];
- if (g.isBoundTo(t)) {
- m = t;
- break;
- }
- }
- Object.keys(this.userIdTokens).forEach(function (r) {
- if (this.userIdTokens[r].equals(g)) {
- delete this.userIdTokens[r];
- try {
- this.removeServiceTokens(null, m, g);
- } catch (wa) {
- if (wa instanceof L)
- throw new fa("Unexpected exception while removing user ID token bound service tokens.", wa);
- throw wa;
- }
- }
- }, this);
- },
- clearUserIdTokens: function () {
- var m;
- for (var g in this.userIdTokens) {
- m = this.userIdTokens[g];
- try {
- this.removeServiceTokens(null, null, m);
- } catch (ua) {
- if (ua instanceof L)
- throw new fa("Unexpected exception while removing user ID token bound service tokens.", ua);
- throw ua;
- }
- delete this.userIdTokens[g];
- }
- },
- addServiceTokens: function (m) {
- m.forEach(function (m) {
- var r,
- t,
- v;
- if (m.isUnbound())
- this.unboundServiceTokens[m.uniqueKey()] = m;
- else {
- if (m.isMasterTokenBound()) {
- r = !1;
- for (t in this.masterTokens)
- if (m.isBoundTo(this.masterTokens[t])) {
- r = !0;
- break;
- }
- if (!r)
- throw new L(g.SERVICETOKEN_MASTERTOKEN_NOT_FOUND, "st mtserialnumber " + m.mtSerialNumber);
- }
- if (m.isUserIdTokenBound()) {
- r = !1;
- for (v in this.userIdTokens)
- if (m.isBoundTo(this.userIdTokens[v])) {
- r = !0;
- break;
- }
- if (!r)
- throw new L(g.SERVICETOKEN_USERIDTOKEN_NOT_FOUND, "st uitserialnumber " + m.uitSerialNumber);
- }
- m.isMasterTokenBound() && ((v = this.mtServiceTokens[m.mtSerialNumber]) || (v = {}), v[m.uniqueKey()] = m, this.mtServiceTokens[m.mtSerialNumber] = v);
- m.isUserIdTokenBound() && ((v = this.uitServiceTokens[m.uitSerialNumber]) || (v = {}), v[m.uniqueKey()] = m, this.uitServiceTokens[m.uitSerialNumber] = v);
- }
- }, this);
- },
- getServiceTokens: function (m, r) {
- var t,
- v,
- x,
- E;
- if (r) {
- if (!m)
- throw new L(g.USERIDTOKEN_MASTERTOKEN_NULL);
- if (!r.isBoundTo(m))
- throw new L(g.USERIDTOKEN_MASTERTOKEN_MISMATCH, "uit mtserialnumber " + r.mtSerialNumber + "; mt " + m.serialNumber);
- }
- t = {};
- for (v in this.unboundServiceTokens) {
- x = this.unboundServiceTokens[v];
- t[x.uniqueKey()] = x;
- }
- if (m && (x = this.mtServiceTokens[m.serialNumber]))
- for (v in x) {
- E = x[v];
- E.isUserIdTokenBound() || (t[v] = E);
- }
- if (r && (x = this.uitServiceTokens[r.serialNumber]))
- for (v in x)
- E = x[v], E.isBoundTo(m) && (t[v] = E);
- x = [];
- for (v in t)
- x.push(t[v]);
- return x;
- },
- removeServiceTokens: function (m, r, t) {
- var x,
- E,
- ra;
- if (t && r && !t.isBoundTo(r))
- throw new L(g.USERIDTOKEN_MASTERTOKEN_MISMATCH, "uit mtserialnumber " + t.mtSerialNumber + "; mt " + r.serialNumber);
- if (m && !r && !t) {
- Object.keys(this.unboundServiceTokens).forEach(function (g) {
- this.unboundServiceTokens[g].name == m && delete this.unboundServiceTokens[g];
- }, this);
- for (var v in this.mtServiceTokens) {
- x = this.mtServiceTokens[v];
- E = Object.keys(x);
- E.forEach(function (g) {
- x[g].name == m && delete x[g];
- }, this);
- this.mtServiceTokens[v] = x;
- }
- for (var ca in this.uitServiceTokens)
- x = this.uitServiceTokens[ca], v = Object.keys(x), v.forEach(function (g) {
- x[g].name == m && delete x[g];
- }, this), this.uitServiceTokens[ca] = x;
- }
- if (r && !t) {
- if (x = this.mtServiceTokens[r.serialNumber])
- E = Object.keys(x), E.forEach(function (g) {
- var r;
- r = x[g];
- m && r.name != m || delete x[g];
- }, this), this.mtServiceTokens[r.serialNumber] = x;
- for (ca in this.uitServiceTokens) {
- ra = this.uitServiceTokens[ca];
- v = Object.keys(ra);
- v.forEach(function (g) {
- var t;
- t = ra[g];
- m && t.name != m || t.isBoundTo(r) && delete ra[g];
- }, this);
- this.uitServiceTokens[ca] = ra;
- }
- }
- t && (x = this.uitServiceTokens[t.serialNumber]) && (v = Object.keys(x), v.forEach(function (g) {
- var t;
- t = x[g];
- m && t.name != m || r && !t.isBoundTo(r) || delete x[g];
- }, this), this.uitServiceTokens[t.serialNumber] = x);
- },
- clearServiceTokens: function () {
- [this.unboundServiceTokens, this.mtServiceTokens, this.uitServiceTokens].forEach(function (g) {
- for (var m in g)
- delete g[m];
- }, this);
- }
- });
- }
- ());
- Le = Ve.extend({
- init: function v() {
- v.base.call(this);
- Object.defineProperties(this, {
- _contextMap: {
- value: {},
- writable: !1,
- enumerable: !1,
- configurable: !1
- }
- });
- },
- addCryptoContext: function (g, m) {
- var r;
- if (m && g && g.length) {
- r = sa(g);
- this._contextMap[r] = m;
- }
- },
- getCryptoContext: function (g) {
- return g && g.length ? (g = sa(g), this._contextMap[g] || null) : null;
- },
- removeCryptoContext: function (g) {
- g && g.length && (g = sa(g), delete this._contextMap[g]);
- }
- });
- Ee = Oe.extend({
- init: function E(g, m, r, t) {
- E.base.call(this, g);
- Object.defineProperties(this, {
- _kde: {
- value: m,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- _kdh: {
- value: r,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- _kdw: {
- value: t,
- writable: !1,
- enumerable: !1,
- configurable: !1
- }
- });
- },
- getCryptoContext: function (m, r) {
- if (!(r instanceof qb))
- throw new fa("Incorrect authentication data type " + JSON.stringify(r) + ".");
- if (r.identity != this.localIdentity)
- throw new Bb(g.ENTITY_NOT_FOUND, "mgk " + r.identity);
- return new Gc(m, this.localIdentity, this._kde, this._kdh, this._kdw);
- }
- });
- cf = Pd.extend({
- init: function ua(g, m, r, t) {
- ua.base.call(this, g);
- Object.defineProperties(this, {
- _kpe: {
- value: m,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- _kph: {
- value: r,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- _kpw: {
- value: t,
- writable: !1,
- enumerable: !1,
- configurable: !1
- }
- });
- },
- getCryptoContext: function (m, r) {
- if (!(r instanceof vb))
- throw new fa("Incorrect authentication data type " + JSON.stringify(r) + ".");
- if (r.identity != this.localIdentity)
- throw new Bb(g.ENTITY_NOT_FOUND, "psk " + r.identity);
- return new Gc(m, this.localIdentity, this._kpe, this._kph, this._kpw);
- }
- });
- ef = De.extend({
- init: function X(g, m, r, t, x, L) {
- X.base.call(this);
- this._log = g;
- this._esn = m;
- this._keyRequestData = r;
- this._createKeyRequestData = t;
- this._systemKeyName = x;
- this._systemKeyWrapFormat = L;
- },
- setCryptoContext: function za(g, m, r) {
- var t;
- t = this;
- t._log.trace("Adding MasterToken", {
- SequenceNumber: g.sequenceNumber,
- SerialNumber: g.serialNumber,
- Expiration: g.expiration.getTime()
- });
- za.base.call(this, g, m);
- !r && (g = t._createKeyRequestData) && (t._log.trace("Generating new keyx request data"), g().then(function (g) {
- t._keyRequestData = g;
- }, function (g) {
- t._log.error("Unable to generate new keyx request data", "" + g);
- }));
- },
- addUserIdToken: function wa(g, m) {
- this._log.trace("Adding UserIdToken", {
- UserId: g,
- SerialNumber: m.serialNumber,
- MTSerialNumber: m.mtSerialNumber,
- Expiration: m.expiration.getTime()
- });
- wa.base.call(this, g, m);
- },
- addServiceTokens: function ca(g) {
- ca.base.call(this, g.filter(function (g) {
- return !df[g.name];
- }));
- },
- getUserIdTokenKeys: function () {
- var g,
- m;
- g = [];
- for (m in this.userIdTokens)
- g.push(m);
- return g;
- },
- rekeyUserIdToken: function (g, m) {
- this.userIdTokens[g] && (this.userIdTokens[m] = this.userIdTokens[g], delete this.userIdTokens[g]);
- },
- getKeyRequestData: function () {
- return this._keyRequestData;
- },
- getStoreState: function (g) {
- var m;
- m = this;
- r(g, function () {
- var t;
- t = m.getMasterToken();
- t ? m.getKeysForStore(t, {
- result: function (x) {
- r(g, function () {
- var g,
- r,
- B;
- g = m.userIdTokens;
- r = Object.keys(g).map(function (r) {
- var x;
- x = g[r];
- return {
- userId: r,
- userIdTokenJSON: g[r].toJSON(),
- serviceTokenJSONList: m.getServiceTokens(t, x).map(ec)
- };
- });
- x.esn = m._esn;
- x.masterTokenJSON = t.toJSON();
- x.userList = r;
- B = m._keyRequestData.storeData;
- B && Object.keys(B).forEach(function (g) {
- x[g] = B[g];
- });
- return x;
- });
- },
- timeout: g.timeout,
- error: g.error
- }) : g.result(null);
- });
- },
- getKeysForStore: function (m, t) {
- var x;
- x = this;
- r(t, function () {
- var r;
- r = x.getCryptoContext(m);
- r = {
- encryptionKey: r.encryptionKey,
- hmacKey: r.hmacKey
- };
- if (r.encryptionKey && r.hmacKey)
- if (x._systemKeyWrapFormat)
- x.wrapKeysWithSystemKey(r, t);
- else
- return r;
- else
- throw new L(g.INTERNAL_EXCEPTION, "Unable to get CryptoContext keys");
- });
- },
- wrapKeysWithSystemKey: function (m, t) {
- var x;
- x = this;
- yb(this._systemKeyName, {
- result: function (B) {
- r(t, function () {
- var r,
- ca,
- W,
- S;
- r = m.encryptionKey;
- ca = m.hmacKey;
- W = r[mc];
- S = ca[mc];
- if (W && S)
- return {
- wrappedEncryptionKey: W,
- wrappedHmacKey: S
- };
- Promise.resolve().then(function () {
- return Promise.all([Ka.wrapKey(x._systemKeyWrapFormat, r, B, B.algorithm), Ka.wrapKey(x._systemKeyWrapFormat, ca, B, B.algorithm)]);
- }).then(function (g) {
- W = sa(g[0]);
- r[mc] = W;
- S = sa(g[1]);
- ca[mc] = S;
- t.result({
- wrappedEncryptionKey: W,
- wrappedHmacKey: S
- });
- })["catch"](function (m) {
- t.error(new L(g.INTERNAL_EXCEPTION, "Error wrapping key with SYSTEM key", m));
- });
- });
- },
- timeout: t.timeout,
- error: t.error
- });
- },
- unwrapKeysWithSystemKey: function (m, t) {
- var x;
- x = this;
- yb(this._systemKeyName, {
- result: function (B) {
- r(t, function () {
- var r,
- ca;
- r = xa(m.wrappedEncryptionKey);
- ca = xa(m.wrappedHmacKey);
- Promise.resolve().then(function () {
- return Promise.all([Ka.unwrapKey(x._systemKeyWrapFormat, r, B, B.algorithm, tb, !1, Lb), Ka.unwrapKey(x._systemKeyWrapFormat, ca, B, B.algorithm, ub, !1, Vb)]);
- }).then(function (g) {
- var r;
- r = g[0];
- g = g[1];
- r[mc] = m.wrappedEncryptionKey;
- g[mc] = m.wrappedHmacKey;
- t.result({
- encryptionKey: r,
- hmacKey: g
- });
- })["catch"](function (m) {
- t.error(new L(g.INTERNAL_EXCEPTION, "Error unwrapping with SYSTEM key", m));
- });
- });
- },
- timeout: t.timeout,
- error: t.error
- });
- },
- loadStoreState: function (g, m, r, t) {
- var L,
- ca;
- function x(g, t) {
- var x;
- try {
- x = r.userList.slice();
- } catch (Ab) {}
- x ? function Jb() {
- var r;
- r = x.shift();
- r ? Xb(m, r.userIdTokenJSON, g, {
- result: function (m) {
- try {
- L.addUserIdToken(r.userId, m);
- B(g, m, r.serviceTokenJSONList, {
- result: Jb,
- timeout: Jb,
- error: Jb
- });
- } catch (Nb) {
- Jb();
- }
- },
- timeout: Jb,
- error: Jb
- }) : t.result();
- }
- () : t.result();
- }
- function B(g, r, t, x) {
- var B,
- ca;
- try {
- B = t.slice();
- } catch (pa) {}
- if (B) {
- ca = L.getCryptoContext(g);
- (function Nb() {
- var d;
- d = B.shift();
- d ? Mc(m, d, g, r, ca, {
- result: function (b) {
- L.addServiceTokens([b]);
- Nb();
- },
- timeout: function () {
- Nb();
- },
- error: function () {
- Nb();
- }
- }) : x.result();
- }
- ());
- } else
- x.result();
- }
- L = this;
- ca = L._log;
- r.esn != L._esn ? (ca.error("Esn mismatch, starting fresh"), t.error()) : function (t) {
- var W,
- S,
- da,
- qa;
- function x() {
- var r;
- if (!W && S && da && qa) {
- W = !0;
- r = new mb(m, S, g.esn, {
- rawKey: da
- }, {
- rawKey: qa
- });
- L.setCryptoContext(S, r, !0);
- t.result(S);
- }
- }
- function B(g, d) {
- ca.error(g, d && "" + d);
- W || (W = !0, t.error());
- }
- r.masterTokenJSON ? (Wb(m, r.masterTokenJSON, {
- result: function (g) {
- S = g;
- x();
- },
- timeout: function () {
- B("Timeout parsing MasterToken");
- },
- error: function (g) {
- B("Error parsing MasterToken", g);
- }
- }), L._systemKeyWrapFormat ? L.unwrapKeysWithSystemKey(r, {
- result: function (g) {
- da = g.encryptionKey;
- qa = g.hmacKey;
- x();
- },
- timeout: function () {
- B("Timeout unwrapping keys");
- },
- error: function (g) {
- B("Error unwrapping keys", g);
- }
- }) : Promise.resolve().then(function () {
- return Ka.encrypt({
- name: tb.name,
- iv: new Uint8Array(16)
- }, r.encryptionKey, new Uint8Array(1));
- }).then(function (g) {
- da = r.encryptionKey;
- })["catch"](function (g) {
- B("Error loading encryptionKey");
- }).then(function () {
- return Ka.sign(ub, r.hmacKey, new Uint8Array(1));
- }).then(function (g) {
- qa = r.hmacKey;
- x();
- })["catch"](function (g) {
- B("Error loading hmacKey");
- })) : B("Persisted store is corrupt");
- }
- ({
- result: function (g) {
- x(g, t);
- },
- timeout: t.timeout,
- error: t.error
- });
- }
- });
- df = {
- "streaming.servicetokens.movie": !0,
- "streaming.servicetokens.license": !0
- };
- mc = "$netflix$msl$wrapsys";
- ff = bf.extend({
- init: function (g, m, r, t, x, L) {
- var B,
- ca;
- B = new rc([Sb.LZW]);
- ca = new Qe();
- ca.addPublicKey(m, r);
- t[Ra.RSA] = new Pe(ca);
- m = {};
- m[gb.EMAIL_PASSWORD] = new Ze();
- m[gb.NETFLIXID] = new Ye();
- m[gb.MDX] = new xe();
- m[gb.SSO] = new $e();
- m[gb.SWITCH_PROFILE] = new af();
- g = {
- _mslCryptoContext: {
- value: new Ne(),
- writable: !0,
- enumerable: !1,
- configurable: !1
- },
- _capabilities: {
- value: B,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- _entityAuthData: {
- value: x,
- writable: !0,
- enumerable: !1,
- configurable: !1
- },
- _entityAuthFactories: {
- value: t,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- _userAuthFactories: {
- value: m,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- _keyExchangeFactories: {
- value: L,
- writable: !1,
- enumerable: !1,
- configurable: !1
- },
- _store: {
- value: g,
- writable: !1,
- enumerable: !1,
- configurable: !1
- }
- };
- Object.defineProperties(this, g);
- },
- getTime: function () {
- return Date.now();
- },
- getRandom: function () {
- return new Jd();
- },
- isPeerToPeer: function () {
- return !1;
- },
- getMessageCapabilities: function () {
- return this._capabilities;
- },
- getEntityAuthenticationData: function (g, m) {
- m.result(this._entityAuthData);
- },
- getMslCryptoContext: function () {
- return this._mslCryptoContext;
- },
- getEntityAuthenticationFactory: function (g) {
- return this._entityAuthFactories[g];
- },
- getUserAuthenticationFactory: function (g) {
- return this._userAuthFactories[g];
- },
- getTokenFactory: function () {
- return null;
- },
- getKeyExchangeFactory: function (g) {
- return this._keyExchangeFactories.filter(function (m) {
- return m.scheme == g;
- })[0];
- },
- getKeyExchangeFactories: function () {
- return this._keyExchangeFactories;
- },
- getMslStore: function () {
- return this._store;
- }
- });
- Ad = re.extend({
- init: function (g, m, r, t) {
- this._log = g;
- this._mslContext = m;
- this._mslRequest = r;
- this._keyRequestData = t;
- },
- getCryptoContexts: function () {
- return {};
- },
- isEncrypted: function () {
- return !!this._mslRequest.encrypted;
- },
- isNonReplayable: function () {
- return !!this._mslRequest.nonReplayable;
- },
- isRequestingTokens: function () {
- return !0;
- },
- getUserId: function () {
- return this._mslRequest.profileGuid || this._mslRequest.userId || null;
- },
- getUserAuthData: function (g, m, t, x) {
- var B,
- L;
- B = this._mslRequest;
- L = this._mslContext;
- r(x, function () {
- var m,
- r;
- if (g || !B.shouldSendUserAuthData)
- return null;
- if (B.token) {
- B.email ? m = new ze(B.email, B.password) : B.netflixId && (m = new Ae(B.netflixId, B.secureNetflixId));
- r = "undefined" === typeof B.profileGuid ? null : B.profileGuid;
- return new wc(B.mechanism, Qa(B.token), m, r);
- }
- return B.email ? new uc(B.email, B.password) : B.netflixId ? new $b(B.netflixId, B.secureNetflixId) : B.mdxControllerToken ? (m = new vc("regpairrequest", B.mdxNonce, B.mdxEncryptedPinB64, B.mdxSignature).getEncoding(), new lc(L, B.mdxPin, B.mdxControllerToken, m, B.mdxSignature)) : B.useNetflixUserAuthData ? new $b() : B.profileGuid ? (m = B.userId, m = L.getMslStore().userIdTokens[m], new xc(m, B.profileGuid)) : t && B.sendUserAuthIfRequired ? new $b() : null;
- });
- },
- getCustomer: function () {
- return null;
- },
- getKeyRequestData: function (g) {
- g.result(this._mslRequest.allowTokenRefresh ? [this._keyRequestData] : []);
- },
- updateServiceTokens: function (g, m, r) {
- var t,
- x,
- B,
- L,
- ca,
- S;
- t = this._log;
- x = (this._mslRequest.serviceTokens || []).slice();
- B = this._mslContext;
- m = B.getMslStore();
- L = g.builder.getMasterToken();
- ca = this.getUserId();
- S = m.getUserIdToken(ca);
- (function ga() {
- var m;
- m = x.shift();
- if (m)
- try {
- m instanceof Ob ? (g.addPrimaryServiceToken(m), ga()) : Mc(B, m, L, S, null, {
- result: function (m) {
- try {
- g.addPrimaryServiceToken(m);
- } catch (ld) {
- t.warn("Exception adding service token", "" + ld);
- }
- ga();
- },
- timeout: function () {
- t.warn("Timeout parsing service token");
- ga();
- },
- error: function (g) {
- t.warn("Error parsing service token", "" + g);
- ga();
- }
- });
- } catch (Jb) {
- t.warn("Exception processing service token", "" + Jb);
- ga();
- }
- else
- r.result(!0);
- }
- ());
- },
- write: function (g, m, r) {
- var t;
- t = Qa(this._mslRequest.body);
- g.write(t, 0, t.length, m, {
- result: function (x) {
- x != t.length ? r.error(new db("Not all data was written to output.")) : g.flush(m, {
- result: function () {
- r.result(!0);
- },
- timeout: function () {
- r.timeout();
- },
- error: function (g) {
- r.error(g);
- }
- });
- },
- timeout: function () {
- r.timeout();
- },
- error: function (g) {
- r.error(g);
- }
- });
- },
- getDebugContext: function () {
- this._dc || (this._dc = new gf(this._log, this._mslRequest));
- return this._dc;
- }
- });
- gf = Xe.extend({
- init: function (g, m) {
- this._log = g;
- this._mslRequest = m;
- },
- sentHeader: function (g) {
- this._log.trace("Sent MSL header", zd(this._mslRequest, g), g.serviceTokens && g.serviceTokens.map(Je).join("\n"));
- },
- receivedHeader: function (g) {
- var m,
- r;
- m = zd(this._mslRequest, g);
- r = g.errorCode;
- r ? this._log.warn("Received MSL error header", m, {
- errorCode: r,
- errorMessage: g.errorMessage,
- internalCode: g.internalCode
- }) : this._log.trace("Received MSL header", m);
- }
- });
- Fe = {
- PSK: function (g) {
- return Vc(g, Ra.PSK, cf, vb, md, Kc);
- },
- MGK: function (g) {
- return Vc(g, Ra.MGK, Ee, qb, md, Kc);
- },
- MGK_WITH_FALLBACK: function (m) {
- var r,
- t;
- switch (m.esnPrefix) {
- case "GOOGEUR001":
- case "GOOGLEXX01":
- case "GOOGEST001":
- case "GOOGNEW001":
- r = "PSK";
- break;
- default:
- r = "MGK";
- }
- t = Fe[r];
- if (!t)
- throw new L(g.INTERNAL_EXCEPTION, "Invalid fallback authenticationType: " + r);
- return t(m);
- },
- MGK_JWE: function (g) {
- return Vc(g, Ra.MGK, Ee, qb, Vd, kd);
- },
- JWK_RSA: function (g) {
- return Wc(g, {
- name: "RSA-OAEP",
- modulusLength: 2048,
- publicExponent: new Uint8Array([1, 0, 1]),
- hash: {
- name: "SHA-1"
- }
- }, Lc.JWK_RSA);
- },
- JWK_RSAES: function (g) {
- return Wc(g, {
- name: "RSAES-PKCS1-v1_5",
- modulusLength: 2048,
- publicExponent: new Uint8Array([1, 0, 1])
- }, Lc.JWK_RSAES);
- },
- JWEJS_RSA: function (g) {
- return Wc(g, {
- name: "RSA-OAEP",
- modulusLength: 2048,
- publicExponent: new Uint8Array([1, 0, 1])
- }, Lc.JWEJS_RSA);
- }
- };
- t.netflix = t.netflix || {};
- t.netflix.msl = {
- createMslClient: function (m, r) {
- var t,
- x,
- ca,
- S,
- da;
- t = m.log;
- da = m.notifyMilestone || function () {};
- Promise.resolve().then(function () {
- if (!(Ya && Ya.generateKey && Ya.importKey && Ya.unwrapKey))
- throw new L(g.INTERNAL_EXCEPTION, "No WebCrypto");
- ib = Ya.generateKey({
- name: "AES-CBC",
- length: 128
- }, !0, Lb).then ? Bc.V2014_02 : Bc.LEGACY;
- da("mslisik");
- return Ka.importKey("spki", m.serverIdentityKeyData, Kd, !1, ["verify"]);
- }).then(function (m) {
- return new Promise(function (r, t) {
- Rb(m, {
- result: r,
- error: function () {
- t(new L(g.KEY_IMPORT_ERROR, "Unable to create server identity verification key"));
- }
- });
- });
- }).then(function (r) {
- x = r;
- if (r = Fe[m.authenticationType])
- return da("mslcc"), r(m);
- throw new L(g.INTERNAL_EXCEPTION, "Invalid authenticationType: " + m.authenticationType);
- }).then(function (g) {
- var r;
- ca = new ef(t, m.esn, g.keyRequestData, g.createKeyRequestData, m.authenticationKeyNames.s, m.systemKeyWrapFormat);
- S = new ff(ca, m.serverIdentityId, x, g.entityAuthFactories, g.entityAuthData, g.keyExchangeFactories);
- r = m.storeState;
- if (r)
- return da("mslss"), t.info("Loading store state"), new Promise(function (g, t) {
- ca.loadStoreState(m, S, r, {
- result: g,
- timeout: g,
- error: g
- });
- });
- t.info("No store state, starting fresh");
- }).then(function () {
- var g;
- g = new se();
- da("msldone");
- r.result(new Ke(t, g, S, ca, m.ErrorSubCodes));
- })["catch"](function (g) {
- r.error(g);
- });
- },
- IHttpLocation: Te,
- MslIoException: db
- };
- (function () {
- var xa,
- pa,
- Ca;
- function g() {
- g = function () {};
- pa.Symbol || (pa.Symbol = m);
- }
- function m(d) {
- return "jscomp_symbol_" + (d || "") + Ca++;
- }
- function r() {
- var d;
- g();
- d = pa.Symbol.iterator;
- d || (d = pa.Symbol.iterator = pa.Symbol("iterator"));
- "function" != typeof Array.prototype[d] && xa(Array.prototype, d, {
- configurable: !0,
- writable: !0,
- value: function () {
- return x(this);
- }
- });
- r = function () {};
- }
- function x(d) {
- var b;
- b = 0;
- return L(function () {
- return b < d.length ? {
- done: !1,
- value: d[b++]
- }
- : {
- done: !0
- };
- });
- }
- function L(d) {
- r();
- d = {
- next: d
- };
- d[pa.Symbol.iterator] = function () {
- return this;
- };
- return d;
- }
- function S(d) {
- var b;
- r();
- g();
- r();
- b = d[Symbol.iterator];
- return b ? b.call(d) : x(d);
- }
- function da(d, b) {
- var l;
- function a() {}
- a.prototype = b.prototype;
- d.prototype = new a();
- d.prototype.constructor = d;
- for (var c in b)
- if (Object.defineProperties) {
- l = Object.getOwnPropertyDescriptor(b, c);
- l && Object.defineProperty(d, c, l);
- } else
- d[c] = b[c];
- }
- function Y(d) {
- if (!(d instanceof Array)) {
- d = S(d);
- for (var b, a = []; !(b = d.next()).done; )
- a.push(b.value);
- d = a;
- }
- return d;
- }
- function fa(d, b) {
- var a,
- l;
- if (b) {
- a = pa;
- d = d.split(".");
- for (var c = 0; c < d.length - 1; c++) {
- l = d[c];
- l in a || (a[l] = {});
- a = a[l];
- }
- d = d[d.length - 1];
- c = a[d];
- b = b(c);
- b != c && null != b && xa(a, d, {
- configurable: !0,
- writable: !0,
- value: b
- });
- }
- }
- function la(d, b) {
- return Object.prototype.hasOwnProperty.call(d, b);
- }
- function ga(d, b) {
- var a,
- c;
- r();
- d instanceof String && (d += "");
- a = 0;
- c = {
- next: function () {
- var l;
- if (a < d.length) {
- l = a++;
- return {
- value: b(l, d[l]),
- done: !1
- };
- }
- c.next = function () {
- return {
- done: !0,
- value: void 0
- };
- };
- return c.next();
- }
- };
- c[Symbol.iterator] = function () {
- return c;
- };
- return c;
- }
- function oa(d, b, a) {
- if (null == d)
- throw new TypeError("The 'this' value for String.prototype." + a + " must not be null or undefined");
- if (b instanceof RegExp)
- throw new TypeError("First argument to String.prototype." + a + " must not be a regular expression");
- return d + "";
- }
- function sa(d, b, a) {
- var q;
- d instanceof String && (d = String(d));
- for (var c = d.length, l = 0; l < c; l++) {
- q = d[l];
- if (b.call(a, q, l, d))
- return {
- Gj: l,
- S2: q
- };
- }
- return {
- Gj: -1,
- S2: void 0
- };
- }
- xa = "function" == typeof Object.defineProperties ? Object.defineProperty : function (d, b, a) {
- if (a.get || a.set)
- throw new TypeError("ES3 does not support getters and setters.");
- d != Array.prototype && d != Object.prototype && (d[b] = a.value);
- };
- pa = "undefined" != typeof t && t === this ? this : "undefined" != typeof global && null != global ? global : this;
- Ca = 0;
- fa("Object.setPrototypeOf", function (d) {
- return d ? d : "object" != typeof "".__proto__ ? null : function (b, a) {
- b.__proto__ = a;
- if (b.__proto__ !== a)
- throw new TypeError(b + " is not extensible");
- return b;
- };
- });
- fa("Object.assign", function (d) {
- return d ? d : function (b, a) {
- var l;
- for (var c = 1; c < arguments.length; c++) {
- l = arguments[c];
- if (l)
- for (var q in l)
- la(l, q) && (b[q] = l[q]);
- }
- return b;
- };
- });
- fa("Object.getOwnPropertySymbols", function (d) {
- return d ? d : function () {
- return [];
- };
- });
- fa("Promise", function (d) {
- var c,
- l;
- function b(a) {
- var b;
- this.HQ = 0;
- this.Bla = void 0;
- this.oP = [];
- b = this.rca();
- try {
- a(b.resolve, b.reject);
- } catch (k) {
- b.reject(k);
- }
- }
- function a() {
- this.tx = null;
- }
- if (d)
- return d;
- a.prototype.CCa = function (a) {
- null == this.tx && (this.tx = [], this.M$a());
- this.tx.push(a);
- };
- a.prototype.M$a = function () {
- var a;
- a = this;
- this.DCa(function () {
- a.cjb();
- });
- };
- c = pa.setTimeout;
- a.prototype.DCa = function (a) {
- c(a, 0);
- };
- a.prototype.cjb = function () {
- var a,
- l;
- for (; this.tx && this.tx.length; ) {
- a = this.tx;
- this.tx = [];
- for (var b = 0; b < a.length; ++b) {
- l = a[b];
- delete a[b];
- try {
- l();
- } catch (p) {
- this.O$a(p);
- }
- }
- }
- this.tx = null;
- };
- a.prototype.O$a = function (a) {
- this.DCa(function () {
- throw a;
- });
- };
- b.prototype.rca = function () {
- var b,
- l;
- function a(a) {
- return function (h) {
- l || (l = !0, a.call(b, h));
- };
- }
- b = this;
- l = !1;
- return {
- resolve: a(this.WBb),
- reject: a(this.hla)
- };
- };
- b.prototype.WBb = function (a) {
- var l;
- if (a === this)
- this.hla(new TypeError("A Promise cannot resolve to itself"));
- else if (a instanceof b)
- this.iEb(a);
- else {
- a: switch (typeof a) {
- case "object":
- l = null != a;
- break a;
- case "function":
- l = !0;
- break a;
- default:
- l = !1;
- }
- l ? this.VBb(a) : this.rHa(a);
- }
- };
- b.prototype.VBb = function (a) {
- var b;
- b = void 0;
- try {
- b = a.then;
- } catch (k) {
- this.hla(k);
- return;
- }
- "function" == typeof b ? this.jEb(b, a) : this.rHa(a);
- };
- b.prototype.hla = function (a) {
- this.qSa(2, a);
- };
- b.prototype.rHa = function (a) {
- this.qSa(1, a);
- };
- b.prototype.qSa = function (a, b) {
- if (0 != this.HQ)
- throw Error("Cannot settle(" + a + ", " + b | "): Promise already settled in state" + this.HQ);
- this.HQ = a;
- this.Bla = b;
- this.djb();
- };
- b.prototype.djb = function () {
- if (null != this.oP) {
- for (var a = this.oP, b = 0; b < a.length; ++b)
- a[b].call(), a[b] = null;
- this.oP = null;
- }
- };
- l = new a();
- b.prototype.iEb = function (a) {
- var b;
- b = this.rca();
- a.yW(b.resolve, b.reject);
- };
- b.prototype.jEb = function (a, b) {
- var l;
- l = this.rca();
- try {
- a.call(b, l.resolve, l.reject);
- } catch (p) {
- l.reject(p);
- }
- };
- b.prototype.then = function (a, l) {
- var c,
- h,
- f;
- function k(a, b) {
- return "function" == typeof a ? function (b) {
- try {
- c(a(b));
- } catch (C) {
- h(C);
- }
- }
- : b;
- }
- f = new b(function (a, b) {
- c = a;
- h = b;
- });
- this.yW(k(a, c), k(l, h));
- return f;
- };
- b.prototype["catch"] = function (a) {
- return this.then(void 0, a);
- };
- b.prototype.yW = function (a, b) {
- var c;
- function k() {
- switch (c.HQ) {
- case 1:
- a(c.Bla);
- break;
- case 2:
- b(c.Bla);
- break;
- default:
- throw Error("Unexpected state: " + c.HQ);
- }
- }
- c = this;
- null == this.oP ? l.CCa(k) : this.oP.push(function () {
- l.CCa(k);
- });
- };
- b.resolve = function (a) {
- return a instanceof b ? a : new b(function (b) {
- b(a);
- });
- };
- b.reject = function (a) {
- return new b(function (b, l) {
- l(a);
- });
- };
- b.race = function (a) {
- return new b(function (l, k) {
- for (var c = S(a), h = c.next(); !h.done; h = c.next())
- b.resolve(h.value).yW(l, k);
- });
- };
- b.all = function (a) {
- var l,
- k;
- l = S(a);
- k = l.next();
- return k.done ? b.resolve([]) : new b(function (a, h) {
- var c,
- p;
- function f(b) {
- return function (f) {
- c[b] = f;
- p--;
- 0 == p && a(c);
- };
- }
- c = [];
- p = 0;
- do
- c.push(void 0), p++, b.resolve(k.value).yW(f(c.length - 1), h), k = l.next();
- while (!k.done);
- });
- };
- b.$jscomp$new$AsyncExecutor = function () {
- return new a();
- };
- return b;
- });
- fa("Array.prototype.keys", function (d) {
- return d ? d : function () {
- return ga(this, function (b) {
- return b;
- });
- };
- });
- fa("Math.tanh", function (d) {
- return d ? d : function (b) {
- var a;
- b = Number(b);
- if (0 === b)
- return b;
- a = Math.exp(-2 * Math.abs(b));
- a = (1 - a) / (1 + a);
- return 0 > b ? -a : a;
- };
- });
- fa("WeakMap", function (d) {
- var l,
- q;
- function b(a) {
- this.aO = (q += Math.random() + 1).toString();
- if (a) {
- g();
- r();
- a = S(a);
- for (var b; !(b = a.next()).done; )
- b = b.value, this.set(b[0], b[1]);
- }
- }
- function a(a) {
- la(a, l) || xa(a, l, {
- value: {}
- });
- }
- function c(b) {
- var l;
- l = Object[b];
- l && (Object[b] = function (b) {
- a(b);
- return l(b);
- });
- }
- if (function () {
- var a,
- b,
- l;
- if (!d || !Object.seal)
- return !1;
- try {
- a = Object.seal({});
- b = Object.seal({});
- l = new d([[a, 2], [b, 3]]);
- if (2 != l.get(a) || 3 != l.get(b))
- return !1;
- l["delete"](a);
- l.set(b, 4);
- return !l.has(a) && 4 == l.get(b);
- } catch (h) {
- return !1;
- }
- }
- ())
- return d;
- l = "$jscomp_hidden_" + Math.random().toString().substring(2);
- c("freeze");
- c("preventExtensions");
- c("seal");
- q = 0;
- b.prototype.set = function (b, k) {
- a(b);
- if (!la(b, l))
- throw Error("WeakMap key fail: " + b);
- b[l][this.aO] = k;
- return this;
- };
- b.prototype.get = function (a) {
- return la(a, l) ? a[l][this.aO] : void 0;
- };
- b.prototype.has = function (a) {
- return la(a, l) && la(a[l], this.aO);
- };
- b.prototype["delete"] = function (a) {
- return la(a, l) && la(a[l], this.aO) ? delete a[l][this.aO] : !1;
- };
- return b;
- });
- fa("Map", function (d) {
- var q,
- n;
- function b() {
- var a;
- a = {};
- return a.Nv = a.next = a.head = a;
- }
- function a(a, b) {
- var l;
- l = a.Wu;
- return L(function () {
- if (l) {
- for (; l.head != a.Wu; )
- l = l.Nv;
- for (; l.next != l.head; )
- return l = l.next, {
- done: !1,
- value: b(l)
- };
- l = null;
- }
- return {
- done: !0,
- value: void 0
- };
- });
- }
- function c(a, b) {
- var l,
- f,
- k;
- l = b && typeof b;
- "object" == l || "function" == l ? q.has(b) ? l = q.get(b) : (l = "" + ++n, q.set(b, l)) : l = "p_" + b;
- f = a.Au[l];
- if (f && la(a.Au, l))
- for (a = 0; a < f.length; a++) {
- k = f[a];
- if (b !== b && k.key !== k.key || b === k.key)
- return {
- id: l,
- list: f,
- index: a,
- ve: k
- };
- }
- return {
- id: l,
- list: f,
- index: -1,
- ve: void 0
- };
- }
- function l(a) {
- this.Au = {};
- this.Wu = b();
- this.size = 0;
- if (a) {
- a = S(a);
- for (var l; !(l = a.next()).done; )
- l = l.value, this.set(l[0], l[1]);
- }
- }
- if (function () {
- var a,
- b,
- l,
- f;
- if (!d || !d.prototype.entries || "function" != typeof Object.seal)
- return !1;
- try {
- a = Object.seal({
- x: 4
- });
- b = new d(S([[a, "s"]]));
- if ("s" != b.get(a) || 1 != b.size || b.get({
- x: 4
- }) || b.set({
- x: 4
- }, "t") != b || 2 != b.size)
- return !1;
- l = b.entries();
- f = l.next();
- if (f.done || f.value[0] != a || "s" != f.value[1])
- return !1;
- f = l.next();
- return f.done || 4 != f.value[0].x || "t" != f.value[1] || !l.next().done ? !1 : !0;
- } catch (u) {
- return !1;
- }
- }
- ())
- return d;
- g();
- r();
- q = new WeakMap();
- l.prototype.set = function (a, b) {
- var l;
- l = c(this, a);
- l.list || (l.list = this.Au[l.id] = []);
- l.ve ? l.ve.value = b : (l.ve = {
- next: this.Wu,
- Nv: this.Wu.Nv,
- head: this.Wu,
- key: a,
- value: b
- }, l.list.push(l.ve), this.Wu.Nv.next = l.ve, this.Wu.Nv = l.ve, this.size++);
- return this;
- };
- l.prototype["delete"] = function (a) {
- a = c(this, a);
- return a.ve && a.list ? (a.list.splice(a.index, 1), a.list.length || delete this.Au[a.id], a.ve.Nv.next = a.ve.next, a.ve.next.Nv = a.ve.Nv, a.ve.head = null, this.size--, !0) : !1;
- };
- l.prototype.clear = function () {
- this.Au = {};
- this.Wu = this.Wu.Nv = b();
- this.size = 0;
- };
- l.prototype.has = function (a) {
- return !!c(this, a).ve;
- };
- l.prototype.get = function (a) {
- return (a = c(this, a).ve) && a.value;
- };
- l.prototype.entries = function () {
- return a(this, function (a) {
- return [a.key, a.value];
- });
- };
- l.prototype.keys = function () {
- return a(this, function (a) {
- return a.key;
- });
- };
- l.prototype.values = function () {
- return a(this, function (a) {
- return a.value;
- });
- };
- l.prototype.forEach = function (a, b) {
- for (var l = this.entries(), f; !(f = l.next()).done; )
- f = f.value, a.call(b, f[1], f[0], this);
- };
- l.prototype[Symbol.iterator] = l.prototype.entries;
- n = 0;
- return l;
- });
- fa("Set", function (d) {
- function b(a) {
- this.xm = new Map();
- if (a) {
- a = S(a);
- for (var b; !(b = a.next()).done; )
- this.add(b.value);
- }
- this.size = this.xm.size;
- }
- if (function () {
- var a,
- b,
- l,
- q;
- if (!d || !d.prototype.entries || "function" != typeof Object.seal)
- return !1;
- try {
- a = Object.seal({
- x: 4
- });
- b = new d(S([a]));
- if (!b.has(a) || 1 != b.size || b.add(a) != b || 1 != b.size || b.add({
- x: 4
- }) != b || 2 != b.size)
- return !1;
- l = b.entries();
- q = l.next();
- if (q.done || q.value[0] != a || q.value[1] != a)
- return !1;
- q = l.next();
- return q.done || q.value[0] == a || 4 != q.value[0].x || q.value[1] != q.value[0] ? !1 : l.next().done;
- } catch (n) {
- return !1;
- }
- }
- ())
- return d;
- g();
- r();
- b.prototype.add = function (a) {
- this.xm.set(a, a);
- this.size = this.xm.size;
- return this;
- };
- b.prototype["delete"] = function (a) {
- a = this.xm["delete"](a);
- this.size = this.xm.size;
- return a;
- };
- b.prototype.clear = function () {
- this.xm.clear();
- this.size = 0;
- };
- b.prototype.has = function (a) {
- return this.xm.has(a);
- };
- b.prototype.entries = function () {
- return this.xm.entries();
- };
- b.prototype.values = function () {
- return this.xm.values();
- };
- b.prototype[Symbol.iterator] = b.prototype.values;
- b.prototype.forEach = function (a, b) {
- var l;
- l = this;
- this.xm.forEach(function (c) {
- return a.call(b, c, c, l);
- });
- };
- return b;
- });
- fa("Number.isNaN", function (d) {
- return d ? d : function (b) {
- return "number" === typeof b && isNaN(b);
- };
- });
- fa("String.prototype.includes", function (d) {
- return d ? d : function (b, a) {
- return -1 !== oa(this, b, "includes").indexOf(b, a || 0);
- };
- });
- fa("Array.prototype.find", function (d) {
- return d ? d : function (b, a) {
- return sa(this, b, a).S2;
- };
- });
- fa("Array.prototype.entries", function (d) {
- return d ? d : function () {
- return ga(this, function (b, a) {
- return [b, a];
- });
- };
- });
- fa("Array.prototype.values", function (d) {
- return d ? d : function () {
- return ga(this, function (b, a) {
- return a;
- });
- };
- });
- fa("WeakSet", function (d) {
- function b(a) {
- this.xm = new WeakMap();
- if (a) {
- g();
- r();
- a = S(a);
- for (var b; !(b = a.next()).done; )
- this.add(b.value);
- }
- }
- if (function () {
- var a,
- b,
- l;
- if (!d || !Object.seal)
- return !1;
- try {
- a = Object.seal({});
- b = Object.seal({});
- l = new d([a]);
- if (!l.has(a) || l.has(b))
- return !1;
- l["delete"](a);
- l.add(b);
- return !l.has(a) && l.has(b);
- } catch (q) {
- return !1;
- }
- }
- ())
- return d;
- b.prototype.add = function (a) {
- this.xm.set(a, !0);
- return this;
- };
- b.prototype.has = function (a) {
- return this.xm.has(a);
- };
- b.prototype["delete"] = function (a) {
- return this.xm["delete"](a);
- };
- return b;
- });
- fa("String.prototype.repeat", function (d) {
- return d ? d : function (b) {
- var a;
- a = oa(this, null, "repeat");
- if (0 > b || 1342177279 < b)
- throw new RangeError("Invalid count value");
- b |= 0;
- for (var c = ""; b; )
- if (b & 1 && (c += a), b >>>= 1)
- a += a;
- return c;
- };
- });
- fa("String.prototype.endsWith", function (d) {
- return d ? d : function (b, a) {
- var c;
- c = oa(this, b, "endsWith");
- b += "";
- void 0 === a && (a = c.length);
- a = Math.max(0, Math.min(a | 0, c.length));
- for (var l = b.length; 0 < l && 0 < a; )
- if (c[--a] != b[--l])
- return !1;
- return 0 >= l;
- };
- });
- fa("Array.prototype.findIndex", function (d) {
- return d ? d : function (b, a) {
- return sa(this, b, a).Gj;
- };
- });
- fa("String.prototype.startsWith", function (d) {
- return d ? d : function (b, a) {
- var c,
- l,
- q;
- c = oa(this, b, "startsWith");
- b += "";
- l = c.length;
- q = b.length;
- a = Math.max(0, Math.min(a | 0, c.length));
- for (var n = 0; n < q && a < l; )
- if (c[a++] != b[n++])
- return !1;
- return n >= q;
- };
- });
- fa("Number.MAX_SAFE_INTEGER", function () {
- return 9007199254740991;
- });
- fa("Array.prototype.fill", function (d) {
- return d ? d : function (b, a, c) {
- var l;
- l = this.length || 0;
- 0 > a && (a = Math.max(0, l + a));
- if (null == c || c > l)
- c = l;
- c = Number(c);
- 0 > c && (c = Math.max(0, l + c));
- for (a = Number(a || 0); a < c; a++)
- this[a] = b;
- return this;
- };
- });
- (function (d) {
- var a;
- function b(c) {
- var l;
- if (a[c])
- return a[c].P;
- l = a[c] = {
- Gj: c,
- Urb: !1,
- P: {}
- };
- d[c].call(l.P, l, l.P, b);
- l.Urb = !0;
- return l.P;
- }
- a = {};
- b.VTb = d;
- b.tRb = a;
- b.d = function (a, l, q) {
- b.nwb(a, l) || Object.defineProperty(a, l, {
- configurable: !1,
- enumerable: !0,
- get: q
- });
- };
- b.r = function (a) {
- Object.defineProperty(a, "__esModule", {
- value: !0
- });
- };
- b.n = function (a) {
- var l;
- l = a && a.Dya ? function () {
- return a["default"];
- }
- : function () {
- return a;
- };
- b.d(l, "a", l);
- return l;
- };
- b.nwb = function (a, b) {
- return Object.prototype.hasOwnProperty.call(a, b);
- };
- b.p = "";
- return b(b.yVb = 1162);
- }
- ([function (d, b, a) {
- function c() {
- c = Object.assign || function (a) {
- for (var b, f = 1, l = arguments.length; f < l; f++) {
- b = arguments[f];
- for (var h in b)
- Object.prototype.hasOwnProperty.call(b, h) && (a[h] = b[h]);
- }
- return a;
- };
- return c.apply(this, arguments);
- }
- function l(a, b) {
- l = Object.setPrototypeOf || {
- __proto__: []
- }
- instanceof Array && function (a, b) {
- a.__proto__ = b;
- }
- || function (a, b) {
- for (var f in b)
- b.hasOwnProperty(f) && (a[f] = b[f]);
- };
- return l(a, b);
- }
- function q(a, b) {
- function f() {
- this.constructor = a;
- }
- l(a, b);
- a.prototype = null === b ? Object.create(b) : (f.prototype = b.prototype, new f());
- }
- function n(a, b) {
- var f,
- l,
- h;
- f = {};
- for (l in a)
- Object.prototype.hasOwnProperty.call(a, l) && 0 > b.indexOf(l) && (f[l] = a[l]);
- if (null != a && "function" === typeof Object.getOwnPropertySymbols) {
- h = 0;
- for (l = Object.getOwnPropertySymbols(a); h < l.length; h++)
- 0 > b.indexOf(l[h]) && Object.prototype.propertyIsEnumerable.call(a, l[h]) && (f[l[h]] = a[l[h]]);
- }
- return f;
- }
- function k(a, b, f, l) {
- var h,
- k,
- c;
- h = arguments.length;
- k = 3 > h ? b : null === l ? l = Object.getOwnPropertyDescriptor(b, f) : l;
- if ("object" === typeof Reflect && "function" === typeof Reflect.Ix)
- k = Reflect.Ix(a, b, f, l);
- else
- for (var p = a.length - 1; 0 <= p; p--)
- if (c = a[p])
- k = (3 > h ? c(k) : 3 < h ? c(b, f, k) : c(b, f)) || k;
- return 3 < h && k && Object.defineProperty(b, f, k),
- k;
- }
- function p(a, b) {
- return function (f, l) {
- b(f, l, a);
- };
- }
- function h(a, b) {
- if ("object" === typeof Reflect && "function" === typeof Reflect.Dd)
- return Reflect.Dd(a, b);
- }
- function f(a, b, f, l) {
- return new(f || (f = Promise))(function (h, k) {
- function c(a) {
- try {
- u(l.next(a));
- } catch (Ea) {
- k(Ea);
- }
- }
- function p(a) {
- try {
- u(l["throw"](a));
- } catch (Ea) {
- k(Ea);
- }
- }
- function u(a) {
- a.done ? h(a.value) : new f(function (b) {
- b(a.value);
- }).then(c, p);
- }
- u((l = l.apply(a, b || [])).next());
- });
- }
- function u(a, b) {
- var h,
- k,
- c,
- p,
- u;
- function f(a) {
- return function (b) {
- return l([a, b]);
- };
- }
- function l(f) {
- if (k)
- throw new TypeError("Generator is already executing.");
- for (; h; )
- try {
- if (k = 1, c && (p = f[0] & 2 ? c["return"] : f[0] ? c["throw"] || ((p = c["return"]) && p.call(c), 0) : c.next) && !(p = p.call(c, f[1])).done)
- return p;
- if (c = 0, p)
- f = [f[0] & 2, p.value];
- switch (f[0]) {
- case 0:
- case 1:
- p = f;
- break;
- case 4:
- return h.label++, {
- value: f[1],
- done: !1
- };
- case 5:
- h.label++;
- c = f[1];
- f = [0];
- continue;
- case 7:
- f = h.tC.pop();
- h.pD.pop();
- continue;
- default:
- if (!(p = h.pD, p = 0 < p.length && p[p.length - 1]) && (6 === f[0] || 2 === f[0])) {
- h = 0;
- continue;
- }
- if (3 === f[0] && (!p || f[1] > p[0] && f[1] < p[3]))
- h.label = f[1];
- else if (6 === f[0] && h.label < p[1])
- h.label = p[1], p = f;
- else if (p && h.label < p[2])
- h.label = p[2], h.tC.push(f);
- else {
- p[2] && h.tC.pop();
- h.pD.pop();
- continue;
- }
- }
- f = b.call(a, h);
- } catch (Ea) {
- f = [6, Ea];
- c = 0;
- }
- finally {
- k = p = 0;
- }
- if (f[0] & 5)
- throw f[1];
- return {
- value: f[0] ? f[1] : void 0,
- done: !0
- };
- }
- h = {
- label: 0,
- uI: function () {
- if (p[0] & 1)
- throw p[1];
- return p[1];
- },
- pD: [],
- tC: []
- };
- g();
- g();
- r();
- return u = {
- next: f(0),
- "throw": f(1),
- "return": f(2)
- },
- "function" === typeof Symbol && (u[Symbol.iterator] = function () {
- return this;
- }),
- u;
- }
- function A(a, b) {
- for (var f in a)
- b.hasOwnProperty(f) || (b[f] = a[f]);
- }
- function G(a) {
- var b,
- f;
- g();
- g();
- r();
- b = "function" === typeof Symbol && a[Symbol.iterator];
- f = 0;
- return b ? b.call(a) : {
- next: function () {
- a && f >= a.length && (a = void 0);
- return {
- value: a && a[f++],
- done: !a
- };
- }
- };
- }
- function C(a, b) {
- var f,
- l,
- h,
- k;
- g();
- g();
- r();
- f = "function" === typeof Symbol && a[Symbol.iterator];
- if (!f)
- return a;
- a = f.call(a);
- h = [];
- try {
- for (; (void 0 === b || 0 < b--) && !(l = a.next()).done; )
- h.push(l.value);
- } catch (na) {
- k = {
- error: na
- };
- }
- finally {
- try {
- l && !l.done && (f = a["return"]) && f.call(a);
- }
- finally {
- if (k)
- throw k.error;
- }
- }
- return h;
- }
- function H() {
- for (var a = [], b = 0; b < arguments.length; b++)
- a = a.concat(C(arguments[b]));
- return a;
- }
- function D() {
- for (var a = 0, b = 0, f = arguments.length; b < f; b++)
- a += arguments[b].length;
- for (var a = Array(a), l = 0, b = 0; b < f; b++)
- for (var h = arguments[b], k = 0, c = h.length; k < c; k++, l++)
- a[l] = h[k];
- return a;
- }
- function K(a) {
- return this instanceof K ? (this.S2 = a, this) : new K(a);
- }
- function J(a, b, f) {
- var u,
- n,
- q;
- function l(a) {
- u[a] && (n[a] = function (b) {
- return new Promise(function (f, l) {
- 1 < q.push([a, b, f, l]) || h(a, b);
- });
- });
- }
- function h(a, b) {
- var f;
- try {
- f = u[a](b);
- f.value instanceof K ? Promise.resolve(f.value.S2).then(k, c) : p(q[0][2], f);
- } catch (ka) {
- p(q[0][3], ka);
- }
- }
- function k(a) {
- h("next", a);
- }
- function c(a) {
- h("throw", a);
- }
- function p(a, b) {
- (a(b), q.shift(), q.length) && h(q[0][0], q[0][1]);
- }
- g();
- if (!Symbol.iW)
- throw new TypeError("Symbol.asyncIterator is not defined.");
- u = f.apply(a, b || []);
- q = [];
- g();
- return n = {},
- l("next"),
- l("throw"),
- l("return"),
- n[Symbol.iW] = function () {
- return this;
- },
- n;
- }
- function R(a) {
- var f,
- l;
- function b(b, h) {
- f[b] = a[b] ? function (f) {
- return (l = !l) ? {
- value: K(a[b](f)),
- done: "return" === b
- }
- : h ? h(f) : f;
- }
- : h;
- }
- g();
- r();
- return f = {},
- b("next"),
- b("throw", function (a) {
- throw a;
- }),
- b("return"),
- f[Symbol.iterator] = function () {
- return this;
- },
- f;
- }
- function P(a) {
- var l,
- h;
- function b(b) {
- h[b] = a[b] && function (l) {
- return new Promise(function (h, k) {
- l = a[b](l);
- f(h, k, l.done, l.value);
- });
- };
- }
- function f(a, b, f, l) {
- Promise.resolve(l).then(function (b) {
- a({
- value: b,
- done: f
- });
- }, b);
- }
- g();
- if (!Symbol.iW)
- throw new TypeError("Symbol.asyncIterator is not defined.");
- g();
- l = a[Symbol.iW];
- g();
- r();
- g();
- return l ? l.call(a) : (a = "function" === typeof G ? G(a) : a[Symbol.iterator](), h = {}, b("next"), b("throw"), b("return"), h[Symbol.iW] = function () {
- return this;
- }, h);
- }
- function m(a, b) {
- Object.defineProperty ? Object.defineProperty(a, "raw", {
- value: b
- }) : a.raw = b;
- return a;
- }
- function z(a) {
- var b;
- if (a && a.Dya)
- return a;
- b = {};
- if (null != a)
- for (var f in a)
- Object.hasOwnProperty.call(a, f) && (b[f] = a[f]);
- b["default"] = a;
- return b;
- }
- function T(a) {
- return a && a.Dya ? a : {
- "default": a
- };
- }
- a.r(b);
- a.d(b, "__extends", function () {
- return q;
- });
- a.d(b, "__assign", function () {
- return c;
- });
- a.d(b, "__rest", function () {
- return n;
- });
- a.d(b, "__decorate", function () {
- return k;
- });
- a.d(b, "__param", function () {
- return p;
- });
- a.d(b, "__metadata", function () {
- return h;
- });
- a.d(b, "__awaiter", function () {
- return f;
- });
- a.d(b, "__generator", function () {
- return u;
- });
- a.d(b, "__exportStar", function () {
- return A;
- });
- a.d(b, "__values", function () {
- return G;
- });
- a.d(b, "__read", function () {
- return C;
- });
- a.d(b, "__spread", function () {
- return H;
- });
- a.d(b, "__spreadArrays", function () {
- return D;
- });
- a.d(b, "__await", function () {
- return K;
- });
- a.d(b, "__asyncGenerator", function () {
- return J;
- });
- a.d(b, "__asyncDelegator", function () {
- return R;
- });
- a.d(b, "__asyncValues", function () {
- return P;
- });
- a.d(b, "__makeTemplateObject", function () {
- return m;
- });
- a.d(b, "__importStar", function () {
- return z;
- });
- a.d(b, "__importDefault", function () {
- return T;
- });
- }, function (d, b, a) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- d = a(37);
- b.ZMb = d;
- d = a(1147);
- b.fS = d.fS;
- d = a(79);
- b.Hp = d.Hp;
- b.Hi = d.Hi;
- b.zt = d.zt;
- d = a(1131);
- b.Roa = d.Roa;
- b.Ec = d.Ec;
- d = a(1130);
- b.N = d.N;
- d = a(1129);
- b.sTa = d.sTa;
- d = a(1128);
- b.lNa = d.lNa;
- d = a(508);
- b.l = d.l;
- b.G5 = d.G5;
- d = a(1127);
- b.optional = d.optional;
- d = a(1126);
- b.ei = d.ei;
- d = a(1125);
- b.nC = d.nC;
- d = a(1124);
- b.ZQ = d.ZQ;
- d = a(1123);
- b.uPa = d.uPa;
- d = a(510);
- b.n6 = d.n6;
- d = a(101);
- b.id = d.id;
- d = a(91);
- b.Ix = d.Ix;
- d = a(505);
- b.iUa = d.iUa;
- b.tTa = d.tTa;
- b.mNa = d.mNa;
- b.oUa = d.oUa;
- d = a(141);
- b.JG = d.JG;
- a = a(1122);
- b.iNa = a.iNa;
- }, function (d, b) {
- var a,
- c;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Kp = b.E4 = b.mra = b.D4 = b.iZa = b.jZa = b.lra = b.ira = b.hZa = b.Nta = b.$S = b.OS = b.kra = b.I = b.J = void 0;
- (function (a) {
- a[a.Xk = 7001] = "UNKNOWN";
- a[a.b3a = 7002] = "UNHANDLED_EXCEPTION";
- a[a.h_a = 7003] = "INIT_COMPONENT_LOG_TO_REMOTE";
- a[a.csa = 7010] = "INIT_ASYNCCOMPONENT";
- a[a.usa = 7011] = "INIT_HTTP";
- a[a.d_a = 7014] = "INIT_BADMOVIEID";
- a[a.t_a = 7016] = "INIT_NETFLIXID_MISSING";
- a[a.s_a = 7017] = "INIT_NETFLIXID_INVALID";
- a[a.v_a = 7018] = "INIT_SECURENETFLIXID_MISSING";
- a[a.wsa = 7020] = "INIT_PLAYBACK_LOCK";
- a[a.xsa = 7022] = "INIT_SESSION_LOCK";
- a[a.u_a = 7029] = "INIT_POSTAUTHORIZE";
- a[a.LMb = 7031] = "INIT_HEADER_MEDIA";
- a[a.pMb = 7032] = "HEADER_MISSING";
- a[a.oMb = 7033] = "HEADER_FRAGMENTS_MISSING";
- a[a.w_a = 7034] = "INIT_TIMEDTEXT_TRACK";
- a[a.MMb = 7035] = "INIT_LOAD_DOWNLOADED_MEDIA";
- a[a.NMb = 7036] = "INIT_STREAMS_NOT_AVAILABLE";
- a[a.MVa = 7037] = "ASE_SESSION_ERROR";
- a[a.LVa = 7038] = "ASE_SEEK_THREW";
- a[a.NVa = 7039] = "ASE_SKIPPED_THREW";
- a[a.p_a = 7041] = "INIT_CORE_OBJECTS1";
- a[a.q_a = 7042] = "INIT_CORE_OBJECTS2";
- a[a.r_a = 7043] = "INIT_CORE_OBJECTS3";
- a[a.IMb = 7051] = "INIT_COMPONENT_REQUESTQUOTA";
- a[a.CMb = 7052] = "INIT_COMPONENT_FILESYSTEM";
- a[a.msa = 7053] = "INIT_COMPONENT_STORAGE";
- a[a.nsa = 7054] = "INIT_COMPONENT_STORAGELOCK";
- a[a.DMb = 7055] = "INIT_COMPONENT_LOGPERSIST";
- a[a.EMb = 7056] = "INIT_COMPONENT_NRDDPI";
- a[a.GMb = 7057] = "INIT_COMPONENT_PEPPERCRYPTO";
- a[a.isa = 7058] = "INIT_COMPONENT_MAINTHREADMONITOR";
- a[a.q5 = 7059] = "INIT_COMPONENT_DEVICE";
- a[a.FMb = 7062] = "INIT_COMPONENT_NTBA";
- a[a.jsa = 7063] = "INIT_COMPONENT_MSL";
- a[a.f_a = 7065] = "INIT_COMPONENT_CONTROL_PROTOCOL";
- a[a.hsa = 7066] = "INIT_COMPONENT_LOGBLOBBATCHER";
- a[a.pw = 7067] = "INIT_COMPONENT_PERSISTEDPLAYDATA";
- a[a.HMb = 7068] = "INIT_COMPONENT_PLAYBACKHEURISTICSRANDOM";
- a[a.e_a = 7069] = "INIT_COMPONENT_ACCOUNT";
- a[a.j_a = 7070] = "INIT_COMPONENT_NRDP_CONFIG_LOADER";
- a[a.l_a = 7071] = "INIT_COMPONENT_NRDP_ESN_PREFIX_LOADER";
- a[a.m_a = 7072] = "INIT_COMPONENT_NRDP_MEDIA";
- a[a.n_a = 7073] = "INIT_COMPONENT_NRDP_PREPARE_LOADER";
- a[a.o_a = 7074] = "INIT_COMPONENT_NRDP_REGISTRATION";
- a[a.i_a = 7081] = "INIT_COMPONENT_NRDP";
- a[a.k_a = 7082] = "INIT_COMPONENT_NRDP_DEVICE";
- a[a.tsa = 7083] = "INIT_COMPONENT_WEBCRYPTO";
- a[a.psa = 7084] = "INIT_COMPONENT_VIDEO_PREPARER";
- a[a.KMb = 7085] = "INIT_CONGESTION_SERVICE";
- a[a.gsa = 7086] = "INIT_COMPONENT_IDB_VIEWER_TOOL";
- a[a.osa = 7087] = "INIT_COMPONENT_TRACKING_LOG";
- a[a.esa = 7088] = "INIT_COMPONENT_BATTERY_MANAGER";
- a[a.dsa = 7089] = "INIT_COMPONENT_ASE_MANAGER";
- a[a.JMb = 7090] = "INIT_COMPONENT_VIDEO_CACHE";
- a[a.RD = 7091] = "INIT_COMPONENT_DRM_CACHE";
- a[a.g_a = 7092] = "INIT_COMPONENT_DRM";
- a[a.ksa = 7093] = "INIT_COMPONENT_PREFETCH_EVENTS";
- a[a.fsa = 7094] = "INIT_COMPONENT_FTL";
- a[a.lsa = 7095] = "INIT_COMPONENT_PREPARE_MODEL";
- a[a.qsa = 7096] = "INIT_COMPONENT_VIDEO_SESSION_EDGE";
- a[a.rsa = 7097] = "INIT_COMPONENT_VIDEO_SESSION_MDX";
- a[a.ssa = 7098] = "INIT_COMPONENT_VIDEO_SESSION_TEST";
- a[a.MANIFEST = 7111] = "MANIFEST";
- a[a.YVa = 7112] = "AUTHORIZE_UNKNOWN";
- a[a.Y_a = 7117] = "MANIFEST_VERIFY";
- a[a.y2a = 7120] = "START";
- a[a.tw = 7121] = "LICENSE";
- a[a.Dwa = 7122] = "SECURESTOP";
- a[a.Jwa = 7123] = "STOP";
- a[a.eMb = 7124] = "FPSAPPDATA";
- a[a.D5 = 7125] = "KEEPALIVE";
- a[a.bLb = 7126] = "DEACTIVATE";
- a[a.KPb = 7127] = "SYNC_DEACTIVATE_LINKS";
- a[a.YJb = 7130] = "ACTIVATE";
- a[a.p1a = 7131] = "PING";
- a[a.BNb = 7133] = "NETFLIXID";
- a[a.ZYa = 7134] = "ENGAGE";
- a[a.W_a = 7135] = "LOGIN";
- a[a.F2a = 7136] = "SWITCH_PROFILES";
- a[a.V_a = 7137] = "LOGBLOB";
- a[a.Z0a = 7138] = "PAUSE";
- a[a.d2a = 7139] = "RESUME";
- a[a.Gwa = 7140] = "SPLICE";
- a[a.oLb = 7141] = "DOWNLOAD_EVENT";
- a[a.tWa = 7142] = "BIND";
- a[a.Y0a = 7143] = "PAIR";
- a[a.uWa = 7144] = "BIND_DEVICE";
- a[a.sZa = 7145] = "GENERATE_SCREENSHOTS";
- a[a.s1a = 7202] = "PLAY_INIT_EXCEPTION";
- a[a.YMb = 7301] = "MEDIA_DOWNLOAD";
- a[a.nOb = 7330] = "PLAY_MSE_EME_CREATE_KEYSESSION_FAILED";
- a[a.oOb = 7331] = "PLAY_MSE_EME_KEY_SESSION_UPDATE_EXCEPTION";
- a[a.Nua = 7332] = "PLAY_MSE_EME_KEY_STATUS_CHANGE_EXPIRED";
- a[a.x1a = 7333] = "PLAY_MSE_EME_KEY_STATUS_CHANGE_INTERNAL_ERROR";
- a[a.Oua = 7334] = "PLAY_MSE_EME_KEY_STATUS_CHANGE_OUTPUT_NOT_ALLOWED";
- a[a.y1a = 7335] = "PLAY_MSE_EME_KEY_STATUS_EXCEPTION";
- a[a.K6 = 7336] = "PLAY_MSE_EME_KEY_STATUS_CHANGE_OUTPUT_RESTRICTED";
- a[a.pOb = 7337] = "PLAY_MSE_EME_KEY_STATUS_CHANGE_RELEASED";
- a[a.Qua = 7351] = "PLAY_MSE_NOTSUPPORTED";
- a[a.Pua = 7352] = "PLAY_MSE_EME_NOTSUPPORTED";
- a[a.Mua = 7353] = "PLAY_MSE_DECODER_TIMEOUT";
- a[a.eK = 7354] = "PLAY_MSE_EME_TYPE_NOTSUPPORTED";
- a[a.N6 = 7355] = "PLAY_MSE_SOURCEADD";
- a[a.Lua = 7356] = "PLAY_MSE_CREATE_MEDIAKEYS";
- a[a.L6 = 7357] = "PLAY_MSE_GENERATEKEYREQUEST";
- a[a.sOb = 7358] = "PLAY_MSE_PARSECHALLENGE";
- a[a.mOb = 7359] = "PLAY_MSE_ADDKEY";
- a[a.vOb = 7360] = "PLAY_MSE_UNEXPECTED_NEEDKEY";
- a[a.D1a = 7361] = "PLAY_MSE_EVENT_ERROR";
- a[a.fK = 7362] = "PLAY_MSE_SETMEDIAKEYS";
- a[a.Dw = 7363] = "PLAY_MSE_EVENT_KEYERROR";
- a[a.C1a = 7364] = "PLAY_MSE_EME_SESSION_CLOSE";
- a[a.E1a = 7365] = "PLAY_MSE_GETCURRENTTIME";
- a[a.F1a = 7367] = "PLAY_MSE_SETCURRENTTIME";
- a[a.G1a = 7371] = "PLAY_MSE_SOURCEAPPEND";
- a[a.tOb = 7373] = "PLAY_MSE_SOURCEAPPEND_INIT";
- a[a.K1a = 7375] = "PLAY_MSE_UNEXPECTED_SEEKING";
- a[a.J1a = 7376] = "PLAY_MSE_UNEXPECTED_SEEKED";
- a[a.I1a = 7377] = "PLAY_MSE_UNEXPECTED_REWIND";
- a[a.uOb = 7379] = "PLAY_MSE_SOURCE_EOS";
- a[a.H1a = 7381] = "PLAY_MSE_SOURCEBUFFER_ERROR";
- a[a.rOb = 7385] = "PLAY_MSE_KEYSESSION_UPDATE";
- a[a.t1a = 7391] = "PLAY_MSE_CREATE_MEDIASOURCE";
- a[a.u1a = 7392] = "PLAY_MSE_CREATE_MEDIASOURCE_OBJECTURL";
- a[a.v1a = 7393] = "PLAY_MSE_CREATE_MEDIASOURCE_OPEN";
- a[a.z1a = 7394] = "PLAY_MSE_EME_MISSING_DRMHEADER";
- a[a.A1a = 7395] = "PLAY_MSE_EME_MISSING_PSSH";
- a[a.qOb = 7396] = "PLAY_MSE_EME_MISSING_CERT";
- a[a.B1a = 7397] = "PLAY_MSE_EME_NO_PRK_SUPPORT";
- a[a.w1a = 7398] = "PLAY_MSE_DURATIONCHANGE_ERROR";
- a[a.M6 = 7399] = "PLAY_MSE_SET_LICENSE_ERROR";
- a[a.bZa = 7400] = "EXTERNAL";
- a[a.nT = 7500] = "PAUSE_TIMEOUT";
- a[a.PS = 7502] = "INACTIVITY_TIMEOUT";
- a[a.XVa = 7510] = "AUTHORIZATION_EXPIRED";
- a[a.dLb = 7520] = "DECRYPT_AUDIO";
- a[a.P7 = 7600] = "SECURE_STOP_PROMISE_EXPIRED";
- a[a.O7 = 7601] = "SECURE_STOP_KEY_ERROR";
- a[a.oPb = 7602] = "SECURE_STOP_VIDEO_ERROR";
- a[a.$Ob = 7603] = "SECURE_STOP_NCCP_ERROR";
- a[a.aPb = 7604] = "SECURE_STOP_NCCP_PARSE_PAYLOAD_ERROR";
- a[a.nPb = 7605] = "SECURE_STOP_STORAGE_REMOVE_ERROR";
- a[a.dPb = 7620] = "SECURE_STOP_PERSISTED_KEY_SESSION_NOT_AVAILABLE";
- a[a.n2a = 7621] = "SECURE_STOP_PERSISTED_NO_MORE_ERROR";
- a[a.ePb = 7622] = "SECURE_STOP_PERSISTED_MAX_ATTEMPTS_EXCEEDED";
- a[a.fPb = 7623] = "SECURE_STOP_PERSISTED_MSE_CREATE_MEDIASOURCE_OPEN";
- a[a.iPb = 7624] = "SECURE_STOP_PERSISTED_PLAY_MSE_GENERATEKEYREQUEST";
- a[a.Ewa = 7625] = "SECURE_STOP_PERSISTED_CREATE_SESSION_WITH_KEY_RELEASE_FAILED";
- a[a.gPb = 7626] = "SECURE_STOP_PERSISTED_NCCP_FPSAPPDATA";
- a[a.kPb = 7627] = "SECURE_STOP_PERSISTED_PLIST_PARSE_ERROR";
- a[a.hPb = 7628] = "SECURE_STOP_PERSISTED_PENDING_KEY_ADDED_EXPIRED";
- a[a.cPb = 7631] = "SECURE_STOP_PERSISTED_KEY_ERROR";
- a[a.mPb = 7632] = "SECURE_STOP_PERSISTED_VIDEO_ERROR";
- a[a.jPb = 7633] = "SECURE_STOP_PERSISTED_PLAY_MSE_KEYSESSION_UPDATE";
- a[a.bPb = 7634] = "SECURE_STOP_PERSISTED_DRM_NOT_SUPPORTED";
- a[a.lPb = 7635] = "SECURE_STOP_PERSISTED_UNEXPECTED_MESSAGE_TYPE";
- a[a.UYa = 7700] = "EME_INVALID_KEYSYSTEM";
- a[a.Oqa = 7701] = "EME_CREATE_MEDIAKEYS_SYSTEMACCESS_FAILED";
- a[a.mS = 7702] = "EME_CREATE_MEDIAKEYS_FAILED";
- a[a.Pqa = 7703] = "EME_GENERATEREQUEST_FAILED";
- a[a.ID = 7704] = "EME_UPDATE_FAILED";
- a[a.WYa = 7705] = "EME_KEYSESSION_ERROR";
- a[a.VYa = 7706] = "EME_KEYMESSAGE_EMPTY";
- a[a.Tqa = 7707] = "EME_REMOVE_FAILED";
- a[a.YYa = 7708] = "EME_LOAD_FAILED";
- a[a.RYa = 7709] = "EME_CREATE_SESSION_FAILED";
- a[a.nS = 7710] = "EME_LDL_RENEWAL_ERROR";
- a[a.Qqa = 7711] = "EME_INVALID_INITDATA_DATA";
- a[a.Rqa = 7712] = "EME_INVALID_LICENSE_DATA";
- a[a.XYa = 7713] = "EME_LDL_KEYSSION_ALREADY_CLOSED";
- a[a.zLb = 7714] = "EME_MEDIAKEYS_GENERIC_ERROR";
- a[a.Sqa = 7715] = "EME_INVALID_SECURESTOP_DATA";
- a[a.QYa = 7716] = "EME_CLOSE_FAILED";
- a[a.q1a = 7800] = "PLAYDATA_STORE_FAILURE";
- a[a.lOb = 7801] = "PLAYDATA_SEND_FAILURE";
- a[a.lJ = 7900] = "BRANCH_PLAY_FAILURE";
- a[a.yD = 7901] = "BRANCH_QUEUE_FAILURE";
- a[a.Yoa = 7902] = "BRANCH_UPDATE_NEXT_SEGMENT_WEIGHTS_FAILURE";
- a[a.GNb = 8E3] = "NRDP_REGISTRATION_ACTIVATE_FAILURE";
- a[a.HNb = 8010] = "NRDP_REGISTRATION_SSO_ACTIVATE_FAILURE";
- a[a.e1a = 8100] = "PBO_EVENTLOOKUP_FAILURE";
- a[a.J6 = 8200] = "PLAYGRAPH_ADD_MANIFEST";
- a[a.r1a = 8201] = "PLAYGRAPH_SEGMENT_NOT_READY";
- }
- (a = b.J || (b.J = {})));
- (function (a) {
- a[a.Xk = 1001] = "UNKNOWN";
- a[a.Of = 1003] = "EXCEPTION";
- a[a.z_a = 1004] = "INVALID_DI";
- a[a.QVa = 1011] = "ASYNCLOAD_EXCEPTION";
- a[a.RVa = 1013] = "ASYNCLOAD_TIMEOUT";
- a[a.ZJb = 1015] = "ASYNCLOAD_BADCONFIG";
- a[a.OVa = 1016] = "ASYNCLOAD_COMPONENT_DUPLICATE";
- a[a.PVa = 1017] = "ASYNCLOAD_COMPONENT_MISSING";
- a[a.QJ = 1101] = "HTTP_UNKNOWN";
- a[a.l5 = 1102] = "HTTP_XHR";
- a[a.NJ = 1103] = "HTTP_PROTOCOL";
- a[a.MJ = 1104] = "HTTP_OFFLINE";
- a[a.PJ = 1105] = "HTTP_TIMEOUT";
- a[a.Hz = 1106] = "HTTP_READTIMEOUT";
- a[a.ow = 1107] = "HTTP_ABORT";
- a[a.h5 = 1108] = "HTTP_PARSE";
- a[a.Mra = 1110] = "HTTP_BAD_URL";
- a[a.OJ = 1111] = "HTTP_PROXY";
- a[a.yta = 1203] = "MSE_AUDIO";
- a[a.zta = 1204] = "MSE_VIDEO";
- a[a.m0a = 1250] = "MSE_MEDIA_ERR_BASE";
- a[a.cNb = 1251] = "MSE_MEDIA_ERR_ABORTED";
- a[a.fNb = 1252] = "MSE_MEDIA_ERR_NETWORK";
- a[a.dNb = 1253] = "MSE_MEDIA_ERR_DECODE";
- a[a.gNb = 1254] = "MSE_MEDIA_ERR_SRC_NOT_SUPPORTED";
- a[a.eNb = 1255] = "MSE_MEDIA_ERR_ENCRYPTED";
- a[a.ft = 1260] = "EME_MEDIA_KEYERR_BASE";
- a[a.FLb = 1261] = "EME_MEDIA_KEYERR_UNKNOWN";
- a[a.ALb = 1262] = "EME_MEDIA_KEYERR_CLIENT";
- a[a.ELb = 1263] = "EME_MEDIA_KEYERR_SERVICE";
- a[a.DLb = 1264] = "EME_MEDIA_KEYERR_OUTPUT";
- a[a.CLb = 1265] = "EME_MEDIA_KEYERR_HARDWARECHANGE";
- a[a.BLb = 1266] = "EME_MEDIA_KEYERR_DOMAIN";
- a[a.GLb = 1269] = "EME_MEDIA_UNAVAILABLE_CDM";
- a[a.TYa = 1280] = "EME_ERROR_NODRMSESSSION";
- a[a.SYa = 1281] = "EME_ERROR_NODRMREQUESTS";
- a[a.wLb = 1282] = "EME_ERROR_INDIV_FAILED";
- a[a.xLb = 1283] = "EME_ERROR_UNSUPPORTED_MESSAGETYPE";
- a[a.oS = 1284] = "EME_TIMEOUT_MESSAGE";
- a[a.w4 = 1285] = "EME_TIMEOUT_KEYCHANGE";
- a[a.x4 = 1286] = "EME_UNDEFINED_DATA";
- a[a.BJ = 1287] = "EME_INVALID_STATE";
- a[a.yLb = 1288] = "EME_LDL_DOES_NOT_SUPPORT_PRK";
- a[a.v4 = 1289] = "EME_EMPTY_DATA";
- a[a.CJ = 1290] = "EME_TIMEOUT";
- a[a.vNb = 1303] = "NCCP_METHOD_NOT_SUPPORTED";
- a[a.yNb = 1305] = "NCCP_PARSEXML";
- a[a.P1a = 1309] = "PROCESS_EXCEPTION";
- a[a.xNb = 1311] = "NCCP_NETFLIXID_MISSING";
- a[a.zNb = 1312] = "NCCP_SECURENETFLIXID_MISSING";
- a[a.sNb = 1313] = "NCCP_HMAC_MISSING";
- a[a.rNb = 1315] = "NCCP_HMAC_MISMATCH";
- a[a.qNb = 1317] = "NCCP_HMAC_FAILED";
- a[a.pNb = 1321] = "NCCP_CLIENTTIME_MISSING";
- a[a.oNb = 1323] = "NCCP_CLIENTTIME_MISMATCH";
- a[a.Bra = 1331] = "GENERIC";
- a[a.F0a = 1333] = "NCCP_PROTOCOL_INVALIDDEVICECREDENTIALS";
- a[a.G0a = 1337] = "NCCP_PROTOCOL_REDIRECT_LOOP";
- a[a.ANb = 1341] = "NCCP_TRANSACTION";
- a[a.tNb = 1343] = "NCCP_INVALID_DRMTYPE";
- a[a.uNb = 1344] = "NCCP_INVALID_LICENCE_RESPONSE";
- a[a.wNb = 1345] = "NCCP_MISSING_PAYLOAD";
- a[a.EOb = 1346] = "PROTOCOL_NOT_INITIALIZED";
- a[a.DOb = 1347] = "PROTOCOL_MISSING_FIELD";
- a[a.COb = 1348] = "PROTOCOL_MISMATCHED_PROFILEGUID";
- a[a.Hw = 1402] = "STORAGE_NODATA";
- a[a.uPb = 1403] = "STORAGE_EXCEPTION";
- a[a.CPb = 1405] = "STORAGE_QUOTA_NOT_GRANTED";
- a[a.DPb = 1407] = "STORAGE_QUOTA_TO_SMALL";
- a[a.Lwa = 1411] = "STORAGE_LOAD_ERROR";
- a[a.B2a = 1412] = "STORAGE_LOAD_TIMEOUT";
- a[a.Mwa = 1414] = "STORAGE_SAVE_ERROR";
- a[a.E2a = 1415] = "STORAGE_SAVE_TIMEOUT";
- a[a.T7 = 1417] = "STORAGE_DELETE_ERROR";
- a[a.Kwa = 1418] = "STORAGE_DELETE_TIMEOUT";
- a[a.BPb = 1421] = "STORAGE_FS_REQUESTFILESYSTEM";
- a[a.yPb = 1423] = "STORAGE_FS_GETDIRECTORY";
- a[a.APb = 1425] = "STORAGE_FS_READENTRIES";
- a[a.vPb = 1427] = "STORAGE_FS_FILEREAD";
- a[a.xPb = 1429] = "STORAGE_FS_FILEWRITE";
- a[a.wPb = 1431] = "STORAGE_FS_FILEREMOVE";
- a[a.zPb = 1432] = "STORAGE_FS_PARSEJSON";
- a[a.D2a = 1451] = "STORAGE_NO_LOCALSTORAGE";
- a[a.C2a = 1453] = "STORAGE_LOCALSTORAGE_ACCESS_EXCEPTION";
- a[a.NNb = 1501] = "NTBA_UNKNOWN";
- a[a.MNb = 1502] = "NTBA_EXCEPTION";
- a[a.INb = 1504] = "NTBA_CRYPTO_KEY";
- a[a.KNb = 1506] = "NTBA_CRYPTO_OPERATION";
- a[a.JNb = 1508] = "NTBA_CRYPTO_KEYEXCHANGE";
- a[a.LNb = 1515] = "NTBA_DECRYPT_UNSUPPORTED";
- a[a.dqa = 1553] = "DEVICE_NO_ESN";
- a[a.X3 = 1555] = "DEVICE_ERROR_GETTING_ESN";
- a[a.mZa = 1701] = "FORMAT_UNKNOWN";
- a[a.rra = 1713] = "FORMAT_XML";
- a[a.nZa = 1715] = "FORMAT_XML_CONTENT";
- a[a.lZa = 1721] = "FORMAT_BASE64";
- a[a.sS = 1723] = "FORMAT_DFXP";
- a[a.QZa = 1801] = "INDEXDB_OPEN_EXCEPTION";
- a[a.$ra = 1802] = "INDEXDB_NOT_SUPPORTED";
- a[a.PZa = 1803] = "INDEXDB_OPEN_ERROR";
- a[a.bsa = 1804] = "INDEXDB_OPEN_NULL";
- a[a.OZa = 1805] = "INDEXDB_OPEN_BLOCKED";
- a[a.RZa = 1807] = "INDEXDB_OPEN_TIMEOUT";
- a[a.NZa = 1808] = "INDEXDB_INVALID_STORE_STATE";
- a[a.QS = 1809] = "INDEXDB_ACCESS_EXCEPTION";
- a[a.w0a = 1901] = "MSL_UNKNOWN";
- a[a.p0a = 1911] = "MSL_INIT_NO_MSL";
- a[a.Bta = 1913] = "MSL_INIT_ERROR";
- a[a.q0a = 1915] = "MSL_INIT_NO_WEBCRYPTO";
- a[a.n0a = 1931] = "MSL_ERROR";
- a[a.v0a = 1933] = "MSL_REQUEST_TIMEOUT";
- a[a.u0a = 1934] = "MSL_READ_TIMEOUT";
- a[a.o0a = 1935] = "MSL_ERROR_HEADER";
- a[a.hNb = 1936] = "MSL_ERROR_ENVELOPE";
- a[a.iNb = 1937] = "MSL_ERROR_MISSING_PAYLOAD";
- a[a.Ata = 1957] = "MSL_ERROR_REAUTH";
- a[a.B8 = 2103] = "WEBCRYPTO_MISSING";
- a[a.k3a = 2105] = "WEBCRYPTOKEYS_MISSING";
- a[a.l3a = 2107] = "WEBCRYPTO_IFRAME_LOAD_ERROR";
- a[a.JKb = 2200] = "CACHEDDATA_PARSEJSON";
- a[a.npa = 2201] = "CACHEDDATA_UNSUPPORTED_VERSION";
- a[a.KKb = 2202] = "CACHEDDATA_UPGRADE_FAILED";
- a[a.iw = 2203] = "CACHEDDATA_INVALID_FORMAT";
- a[a.WJb = 3E3] = "ACCOUNT_CHANGE_INFLIGHT";
- a[a.XJb = 3001] = "ACCOUNT_INVALID";
- a[a.nLb = 3100] = "DOWNLOADED_MANIFEST_UNAVAILABLE";
- a[a.mLb = 3101] = "DOWNLOADED_MANIFEST_PARSE_EXCEPTION";
- a[a.kLb = 3200] = "DOWNLOADED_LICENSE_UNAVAILABLE";
- a[a.lLb = 3201] = "DOWNLOADED_LICENSE_UNUSEABLE";
- a[a.jLb = 3202] = "DOWNLOADED_LICENSE_EXCEPTION";
- a[a.EPb = 3300] = "STORAGE_VA_LOAD_ERROR";
- a[a.FPb = 3301] = "STORAGE_VA_LOAD_TIMEOUT";
- a[a.IPb = 3302] = "STORAGE_VA_SAVE_ERROR";
- a[a.JPb = 3303] = "STORAGE_VA_SAVE_TIMEOUT";
- a[a.GPb = 3304] = "STORAGE_VA_REMOVE_ERROR";
- a[a.HPb = 3305] = "STORAGE_VA_REMOVE_TIMEOUT";
- a[a.G6 = 3077] = "PBO_DEVICE_EOL_WARNING";
- a[a.Eua = 3078] = "PBO_DEVICE_EOL_FINAL";
- a[a.Hua = 3100] = "PBO_DEVICE_RESET";
- a[a.Gua = 3101] = "PBO_DEVICE_RELOAD";
- a[a.Fua = 3102] = "PBO_DEVICE_EXIT";
- a[a.l1a = 5003] = "PBO_VIEWABLE_OUT_OF_AVAILABILITY_WINDOW";
- a[a.$0a = 5005] = "PBO_ACCOUNT_ON_HOLD";
- a[a.d1a = 5006] = "PBO_CONCURRENT_STREAM_QUOTA_EXCEEDED";
- a[a.Iua = 5007] = "PBO_INCORRECT_PIN";
- a[a.j1a = 5008] = "PBO_MOBILE_ONLY";
- a[a.m1a = 5009] = "PBO_VIEWABLE_RESTRICTED_BY_PROFILE";
- a[a.f1a = 5033] = "PBO_INSUFFICIENT_MATURITY_LEVEL";
- a[a.b1a = 5059] = "PBO_BLACKLISTED_IP";
- a[a.a1a = 5070] = "PBO_AGE_VERIFICATION_REQUIRED";
- a[a.c1a = 5080] = "PBO_CHOICE_MAP_ERROR";
- a[a.k1a = 5090] = "PBO_RESTRICTED_TO_TESTERS";
- a[a.h1a = 5091] = "PBO_MALFORMED_REQUEST";
- a[a.g1a = 5092] = "PBO_INVALID_SERVICE_VERSION";
- a[a.i1a = 5093] = "PBO_MDX_INVALID_CTICKET";
- a[a.JXa = 5100] = "DECODER_TIMEOUT_BUFFERING";
- a[a.KXa = 5101] = "DECODER_TIMEOUT_PRESENTING";
- a[a.AYa = 5200] = "DOWNLOADER_IO_ERROR";
- a[a.Xoa = 5300] = "BRANCHING_SEGMENT_NOTFOUND";
- a[a.yWa = 5301] = "BRANCHING_PRESENTER_UNINITIALIZED";
- a[a.mKb = 5302] = "BRANCHING_SEGMENT_STREAMING_NOT_STARTED";
- a[a.u3 = 5303] = "BRANCHING_ASE_UNINITIALIZED";
- a[a.vWa = 5304] = "BRANCHING_ASE_FAILURE";
- a[a.jKb = 5305] = "BRANCHING_MOMENT_FAILURE";
- a[a.wWa = 5306] = "BRANCHING_CURRENT_SEGMENT_UNINITIALIZED";
- a[a.lKb = 5307] = "BRANCHING_SEGMENT_LASTPTS_UNINIITALIZED";
- a[a.zWa = 5308] = "BRANCHING_SEEK_THREW";
- a[a.kKb = 5309] = "BRANCHING_PLAY_NOTENOUGHNEXTSEGMENTS";
- a[a.xWa = 5310] = "BRANCHING_PLAY_TIMEDOUT";
- a[a.AWa = 5311] = "BRANCHING_SEGMENT_ALREADYQUEUED";
- a[a.BWa = 5312] = "BRANCHING_UPDATE_NEXT_SEGMENT_WEIGHTS_THREW";
- a[a.GVa = 5400] = "ADD_MANIFEST_STREAMING_SESSION_ERROR";
- a[a.FVa = 5401] = "ADD_MANIFEST_NO_STREAMING_SESSION";
- }
- (c = b.I || (b.I = {})));
- (function (a) {
- a[a.xKb = 5003] = "BR_VIEWABLE_OUT_OF_AVAILABILITY_WINDOW";
- a[a.nKb = 5005] = "BR_ACCOUNT_ON_HOLD";
- a[a.rKb = 5006] = "BR_CONCURRENT_STREAM_QUOTA_EXCEEDED";
- a[a.uKb = 5033] = "BR_INSUFFICIENT_MATURITY_LEVEL";
- a[a.qKb = 5059] = "BR_BLACKLISTED_IP";
- a[a.oKb = 5070] = "BR_AGE_VERIFICATION_REQUIRED";
- a[a.vKb = 2204] = "BR_PLAYBACK_CONTEXT_CREATION";
- a[a.sKb = 2205] = "BR_DRM_LICENSE_AQUISITION";
- a[a.wKb = 2206] = "BR_PLAYBACK_SERVICE_ERROR";
- a[a.tKb = 2207] = "BR_ENDPOINT_ERROR";
- a[a.pKb = 2208] = "BR_AUTHORIZATION_ERROR";
- }
- (b.kra || (b.kra = {})));
- b.OS = {
- IWa: "400",
- eQb: "401",
- Sua: "413"
- };
- b.$S = {
- cMb: 1,
- YPb: 2,
- JLb: 3,
- dQb: 4,
- SMb: 5,
- ILb: 6,
- u8: 7,
- aZa: 8,
- SOb: 9,
- rPb: 10
- };
- (function (a) {
- a[a.jOb = 21] = "PAIRING_CONTROLLER_CTICKET_EXPIRED";
- a[a.kOb = 98] = "PAIRING_UNKNOWN_ERROR";
- }
- (b.Nta || (b.Nta = {})));
- b.hZa = function (a) {
- return 7100 <= a && 7200 > a;
- };
- b.ira = function (b) {
- return b == a.nT || b == a.PS;
- };
- b.lra = function (a) {
- return 1100 <= a && 1199 >= a;
- };
- b.jZa = function (a) {
- return 1300 <= a && 1399 >= a;
- };
- b.iZa = function (a) {
- return 1900 <= a && 1999 >= a;
- };
- b.D4 = function (a, b) {
- return 1 <= a && 9 >= a ? b + a : b;
- };
- b.mra = function (a) {
- return b.D4(a, c.m0a);
- };
- b.E4 = function (a) {
- return b.D4(a, c.ft);
- };
- b.Kp = function (a) {
- var b,
- n,
- k;
- b = {};
- n = a.errorExternalCode || a.we;
- k = a.errorDetails || a.fb;
- b.ErrorSubCode = a.errorSubCode || a.ha || c.Xk;
- n && (b.ErrorExternalCode = n);
- k && (b.ErrorDetails = k);
- return b;
- };
- }, function (d, b, a) {
- var q;
- function c(a) {
- return q.yK.apply(this, arguments) || this;
- }
- function l(a) {
- return new q.Lp(a, b.ia);
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.wd = b.Vra = b.q6 = b.Pl = b.ia = b.Rz = b.timestamp = b.Bpb = b.aP = b.ph = b.Jb = b.yPa = b.Dub = b.T2a = void 0;
- q = a(504);
- da(c, q.yK);
- b.T2a = c;
- b.Dub = function (a) {
- return new q.Lp(a, b.Rz);
- };
- b.yPa = function (a) {
- return new q.Lp(a * b.Pl.wf, b.Rz);
- };
- b.Jb = l;
- b.ph = function (a) {
- return new q.Lp(a, b.Pl);
- };
- b.aP = function (a) {
- return new q.Lp(a, b.q6);
- };
- b.Bpb = function (a) {
- return new q.Lp(a, b.Vra);
- };
- b.timestamp = function (a) {
- return l(a);
- };
- b.Rz = new c(1, "\u03bcs");
- b.ia = new c(1E3, "ms", b.Rz);
- b.Pl = new c(1E3 * b.ia.wf, "s", b.Rz);
- b.q6 = new c(60 * b.Pl.wf, "min", b.Rz);
- b.Vra = new c(60 * b.q6.wf, "hr", b.Rz);
- b.wd = l(0);
- }, function (d) {
- d.P = {
- eO: function (b) {
- for (var a in b)
- b.hasOwnProperty(a) && (this[a] = b[a]);
- },
- reset: function () {}
- };
- }, function (d, b, a) {
- var c,
- l,
- q,
- n,
- k,
- p,
- h;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Z = b.Kva = b.BN = b.$g = b.Ah = b.log = b.Hf = b.FB = b.uxa = b.VCa = b.am = b.Hr = b.qc = b.Cab = b.Zaa = b.Aab = b.Bab = b.Nh = b.$I = b.pR = b.Hh = void 0;
- c = a(269);
- d = a(8);
- l = a(31);
- q = a(99);
- n = a(89);
- k = a(42);
- p = a(23);
- h = a(60);
- b.Hh = c.Pb.get(q.Lw);
- b.pR = b.Hh.encode.bind(b.Hh);
- b.$I = b.Hh.decode.bind(b.Hh);
- b.Nh = c.Pb.get(n.$s);
- b.Bab = b.Nh.encode.bind(b.Nh);
- b.Aab = b.Nh.decode.bind(b.Nh);
- b.Zaa = b.Nh.Ou.bind(b.Nh);
- b.Cab = b.Nh.STa.bind(b.Nh);
- b.qc = c.Pb.get(k.Gi);
- b.Hr = function (a) {
- a = p.Od(a) ? b.$I(a) : a;
- return b.qc.encode(a);
- };
- b.am = b.qc.decode.bind(b.qc);
- b.VCa = function (a) {
- return b.pR(b.am(a));
- };
- b.uxa = a(555);
- b.FB = function () {
- return c.Pb.get(l.FD);
- };
- b.Hf = c.Pb.get(d.Bb);
- b.log = b.Hf.yb("General");
- b.Ah = function (a, h) {
- return b.Hf.yb(a, void 0, h);
- };
- b.$g = function (a, h, k) {
- return b.Hf.yb(h, a, k);
- };
- b.BN = function (a, h, k, c) {
- return b.Hf.yb(a, void 0, c, h, k);
- };
- b.Kva = function (a, b, k) {
- return c.Pb.get(h.Vk)(a, b, k).una();
- };
- b.Z = c.Pb;
- }, function (d, b, a) {
- var c,
- l;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.assert = void 0;
- c = a(0);
- l = function (a) {
- function b() {
- return null !== a && a.apply(this, arguments) || this;
- }
- c.__extends(b, a);
- return b;
- }
- (Error);
- b.assert = function (a, b) {
- if (!a)
- throw new l(b || "Assertion failed");
- };
- }, function (d) {
- var b;
- b = {
- la: function (a) {
- return "number" === typeof a;
- },
- Xe: function (a) {
- return "object" === typeof a;
- },
- Od: function (a) {
- return "string" === typeof a;
- },
- Y: function (a) {
- return "undefined" === typeof a;
- },
- Gqb: function (a) {
- return "boolean" === typeof a;
- },
- Vb: function (a) {
- return "function" === typeof a;
- },
- Ma: function (a) {
- return null === a;
- },
- isArray: function (a) {
- return "[object Array]" === Object.prototype.toString.call(a);
- },
- isFinite: function (a) {
- return isFinite(a) && !isNaN(parseFloat(a));
- },
- has: function (a, b) {
- return null !== a && "undefined" !== typeof a && Object.prototype.hasOwnProperty.call(a, b);
- },
- mxb: function (a) {
- var c,
- l;
- l = [];
- if (!b.Xe(a))
- throw new TypeError("Object.pairs called on non-object");
- for (c in a)
- a.hasOwnProperty(c) && l.push([c, a[c]]);
- return l;
- }
- };
- b.Yd = b.forEach = function (a, c, l) {
- if (null === a || "undefined" === typeof a)
- return a;
- if (a.length === +a.length)
- for (var q = 0, n = a.length; q < n; q++)
- c.call(l, a[q], q, a);
- else
- for (q in a)
- b.has(a, q) && c.call(l, a[q], q, a);
- return a;
- };
- d.P = b;
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.zJ = b.Bb = b.O5 = b.hi = void 0;
- d = b.hi || (b.hi = {});
- d[d.kZa = 0] = "FATAL";
- d[d.ERROR = 1] = "ERROR";
- d[d.A8 = 2] = "WARN";
- d[d.p5 = 3] = "INFO";
- d[d.Dxa = 4] = "TRACE";
- d[d.Za = 5] = "DEBUG";
- b.O5 = "LogFieldBuilderFactorySymbol";
- b.Bb = "LoggerFactorySymbol";
- b.zJ = {};
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.H7 = b.WD = b.VS = b.SWa = b.NWa = b.PWa = b.QWa = b.fpa = b.MWa = b.OWa = b.epa = b.RWa = b.XWa = b.WWa = b.gpa = b.VWa = b.MYa = b.LYa = b.Iqa = b.b0a = b.c0a = b.fr = b.vta = b.wta = b.xw = b.Kqa = b.NYa = b.r4 = b.lS = b.T0a = b.u2a = b.rta = b.HWa = b.aqa = b.lT = b.Tz = b.kT = b.qta = b.mt = b.GWa = b.Woa = b.P_a = b.g3a = b.a0a = b.$_a = b.m2a = b.l2a = b.mj = b.kd = b.owa = b.$e = void 0;
- b.$e = function () {};
- b.owa = function () {
- return !0;
- };
- b.kd = {
- V: !0
- };
- b.mj = 1E3;
- b.l2a = 86400;
- b.m2a = 604800;
- b.$_a = 1E4;
- b.a0a = 1E7;
- b.g3a = 1.5;
- b.P_a = .128;
- b.Woa = 7.8125;
- b.GWa = 128;
- b.mt = 145152E5;
- b.qta = 1E5;
- b.kT = "$netflix$player$order";
- b.Tz = -1;
- b.lT = 1;
- b.aqa = ["en-US"];
- b.HWa = 8;
- b.rta = 65535;
- b.u2a = 65536;
- b.T0a = Number.MAX_VALUE;
- b.lS = "playready";
- b.r4 = "widevine";
- b.NYa = "fps";
- b.Kqa = "clearkey";
- b.xw = 'audio/mp4; codecs="mp4a.40.5"';
- b.wta = 'audio/mp4; codecs="mp4a.40.42"';
- b.vta = 'audio/mp4; codecs="mp4a.a6"';
- b.fr = 'video/mp4; codecs="avc1.640028"';
- b.c0a = 'video/mp4; codecs="hev1.2.6.L153.B0"';
- b.b0a = 'video/mp4; codecs="dvhe.01000000"';
- b.Iqa = "9A04F079-9840-4286-AB92-E65BE0885F95";
- b.LYa = "29701FE4-3CC7-4A34-8C5B-AE90C7439A47";
- b.MYa = "EDEF8BA9-79D6-4ACE-A3C8-27DCD51D21ED";
- b.VWa = ["4E657466-6C69-7850-6966-665374726D21", "4E657466-6C69-7848-6165-6465722E7632"];
- b.gpa = "A2394F52-5A9B-4F14-A244-6C427C648DF4";
- b.WWa = "4E657466-6C69-7846-7261-6D6552617465";
- b.XWa = "8974DBCE-7BE7-4C51-84F9-7148F9882554";
- b.RWa = "mp4a";
- b.epa = "enca";
- b.OWa = "ec-3";
- b.MWa = "avc1";
- b.fpa = "encv";
- b.QWa = "hvcC";
- b.PWa = "hev1";
- b.NWa = "dvhe";
- b.SWa = "vp09";
- b.VS = 0;
- b.WD = 1;
- b.H7 = "position:relative;width:100%;height:100%;overflow:hidden";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Xha = b.localStorage = b.fqb = b.indexedDB = b.eT = b.Hn = b.ut = b.bE = b.cE = b.URL = b.hT = b.fT = b.Mta = b.XS = b.Oz = b.Pz = b.Wm = b.Ml = b.Kh = b.b6 = b.ot = b.rxa = b.DD = b.B6 = b.Uz = b.pop = b.forEach = b.filter = b.reduce = b.every = b.slice = b.map = b.sort = b.fu = b.I0a = b.te = b.ir = b.jr = b.gT = b.Nl = b.Ki = void 0;
- d = "undefined" === typeof t ? {}
- : t;
- b.Ki = d.navigator || {};
- b.Nl = b.Ki.userAgent;
- b.gT = d.location;
- b.jr = d.screen;
- b.ir = d.performance;
- b.te = d.document || {};
- b.I0a = b.te.documentElement;
- b.fu = Array.prototype;
- b.sort = b.fu.sort;
- b.map = b.fu.map;
- b.slice = b.fu.slice;
- b.every = b.fu.every;
- b.reduce = b.fu.reduce;
- b.filter = b.fu.filter;
- b.forEach = b.fu.forEach;
- b.pop = b.fu.pop;
- b.Uz = Object.create;
- b.B6 = Object.keys;
- b.DD = Date.now;
- b.rxa = String.fromCharCode;
- b.ot = Math.floor;
- b.b6 = Math.ceil;
- b.Kh = Math.round;
- b.Ml = Math.max;
- b.Wm = Math.min;
- b.Pz = Math.random;
- b.Oz = Math.abs;
- b.XS = Math.pow;
- b.Mta = Math.sqrt;
- b.fT = d.escape;
- b.hT = d.unescape;
- b.URL = d.URL || d.webkitURL;
- b.cE = d.MediaSource || d.WebKitMediaSource;
- b.bE = d.WebKitMediaKeys || d.MSMediaKeys || d.MediaKeys;
- b.ut = d.nfCrypto || d.webkitCrypto || d.msCrypto || d.crypto;
- b.Hn = b.ut && (b.ut.webkitSubtle || b.ut.subtle);
- b.eT = d.nfCryptokeys || d.webkitCryptokeys || d.msCryptokeys || d.cryptokeys;
- try {
- b.indexedDB = d.indexedDB;
- } catch (a) {
- b.fqb = a || "noex";
- }
- try {
- b.localStorage = d.localStorage;
- } catch (a) {
- b.Xha = a || "noex";
- }
- }, function (d, b, a) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.kK = b.Cra = b.Aya = void 0;
- d = a(0);
- d.__exportStar(a(867), b);
- d.__exportStar(a(110), b);
- d.__exportStar(a(34), b);
- d.__exportStar(a(866), b);
- d.__exportStar(a(865), b);
- d.__exportStar(a(864), b);
- d = a(863);
- b.Aya = d;
- d = a(862);
- b.Cra = d;
- a = a(411);
- b.kK = a;
- }, function (d, b, a) {
- var q,
- n,
- k,
- p,
- h,
- f,
- u,
- A,
- G,
- C,
- H,
- D,
- K,
- g,
- R,
- P,
- m,
- r;
- function c(a) {
- return (a = b.config.lHb[l(a)]) ? a : {};
- }
- function l(a) {
- if (a) {
- if (0 <= a.indexOf("billboard"))
- return "billboard";
- if (0 <= a.toLowerCase().indexOf("preplay"))
- return "preplay";
- if (0 <= a.indexOf("embedded"))
- return "embedded";
- if (0 <= a.indexOf("content-sampling"))
- return "content-sampling";
- if (0 <= a.indexOf("video-merch-bob-horizontal"))
- return "video-merch-bob-horizontal";
- if (0 <= a.indexOf("mini-modal-horizontal"))
- return "mini-modal-horizontal";
- }
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Xcb = b.Ycb = b.Yba = b.Zba = b.Wcb = b.rEa = b.Vcb = b.sEa = b.Xba = b.config = void 0;
- q = a(9);
- n = a(44);
- k = a(5);
- p = a(30);
- h = a(16);
- a(23);
- f = a(31);
- u = a(61);
- A = a(20);
- a(8);
- G = a(10);
- C = a(35);
- H = a(15);
- D = a(232);
- K = a(46);
- g = a(62);
- R = a(140);
- P = a(48);
- m = a(3);
- r = a(33);
- b.sEa = function (a, c) {
- var Pa,
- B,
- Ha,
- Wa,
- bb,
- bc,
- Ba,
- L,
- Pb;
- function l(a, b) {
- A.Ad(a, function (a, f) {
- H.Vb(f) ? b[a] = f.call(void 0, b[a]) : H.Xe(f) && (b[a] = b[a] || {}, l(f, b[a]));
- });
- }
- function d(a, b, f, k) {
- for (var c = [], p = 3; p < arguments.length; ++p)
- c[p - 3] = arguments[p];
- return function (k) {
- H.ac(k) && (f = k);
- h.Xa(H.Vb(a));
- return a.apply(void 0, [].concat([b, f], Y(c)));
- };
- }
- function J(a) {
- a = a.toLowerCase();
- Wa.hasOwnProperty(a) && (Ha[a] = Wa[a], bb[a] = Wa[a]);
- return a;
- }
- function ba(a, b, f) {
- var c;
- a = a.toLowerCase();
- if (Ha.hasOwnProperty(a)) {
- c = Ha[a];
- try {
- c = f ? f(c) : c;
- } catch (Rc) {
- c = void 0;
- }
- if (void 0 !== c)
- return c;
- h.Xa(!1);
- k.log.error("Invalid configuration value. Name: " + a);
- }
- return b;
- }
- function T(a, b, f, h) {
- return ba(a, b, function (a) {
- H.Od(a) && (a = A.Pd(a));
- if (H.JKa(a, f, h))
- return a;
- });
- }
- function z(a, b, f, h) {
- return ba(a, b, function (a) {
- H.Od(a) && (a = A.Pd(a));
- if (H.dv(a, f, h))
- return a;
- });
- }
- function U(a, b, f, h) {
- return ba(a, b, function (a) {
- H.Od(a) && (a = parseFloat(a));
- if (H.la(a, f, h))
- return a;
- });
- }
- function ja(a, b, f) {
- return ba(a, b, function (a) {
- if (f ? f.test(a) : H.Od(a))
- return a;
- });
- }
- function Q(a, b) {
- return ba(a, b, function (a) {
- if ("true" == a || !0 === a)
- return !0;
- if ("false" == a || !1 === a)
- return !1;
- });
- }
- function Ea(a, b) {
- return ba(a, b, function (a) {
- if (H.Od(a))
- return JSON.parse(G.hT(a));
- if (H.Xe(a))
- return a;
- });
- }
- function ia(a, b, f, h, k, c) {
- var p;
- a = a.toLowerCase();
- Ha.hasOwnProperty(a) && (p = Ha[a]);
- if (!H.ac(p))
- return b;
- if (H.Od(p))
- if (p[0] !== f)
- p = h(p);
- else
- try {
- p = JSON.parse(G.hT(p));
- } catch (jb) {
- p = void 0;
- }
- if (void 0 === p)
- return b;
- for (a = 0; a < k.length; a++)
- if (!k[a](p))
- return b;
- return c ? c(p) : p;
- }
- function Ga(a, b, f, h, k) {
- return ia(a, b, "[", function (a) {
- a = a.split("|");
- for (var b = a.length; b--; )
- a[b] = A.Pd(a[b]);
- return a;
- }, [function (a) {
- return H.isArray(a) && 0 < a.length;
- }, function (a) {
- for (var b = a.length; b--; )
- if (!H.dv(a[b], f, h))
- return !1;
- return !0;
- }, function (a) {
- return void 0 === k || a.length >= k;
- }
- ]);
- }
- function x(a, b) {
- return ia(a, b, "[", function (a) {
- a = H.isArray(a) ? a : a.split("|");
- for (var b = a.length; b--; )
- try {
- a[b] = JSON.parse(G.hT(a[b]));
- } catch (Rc) {
- a = void 0;
- break;
- }
- return a;
- }, [function (a) {
- return H.isArray(a) && 0 < a.length;
- }, function (a) {
- for (var b = a.length; b--; )
- if (!H.ac(a[b]) || !H.Xe(a[b]))
- return !1;
- return !0;
- }
- ]);
- }
- function ka(a, b, f, h) {
- return ia(a, b, "[", function (a) {
- return H.isArray(a) ? a : a.split("|");
- }, [function (a) {
- return H.isArray(a) && 0 < a.length;
- }, function (a) {
- for (var b = a.length; b--; )
- if (f ? !f.test(a[b]) : !H.ev(a[b]))
- return !1;
- return !0;
- }, function (a) {
- return void 0 === h || a.length >= h;
- }
- ]);
- }
- function Da(a, b, f) {
- return ia(a, b, "{", function (a) {
- var b,
- h,
- k;
- b = {};
- a = a.split(";");
- for (var f = a.length; f--; ) {
- h = a[f];
- k = h.indexOf(":");
- if (0 >= k)
- return;
- b[h.substring(0, k)] = h.substring(k + 1);
- }
- return b;
- }, [function (a) {
- return H.Xe(a) && 0 < Object.keys(a).length;
- }, function (a) {
- if (f)
- for (var b in a)
- if (!f.test(a[b]))
- return !1;
- return !0;
- }
- ], function (a) {
- var f;
- f = {};
- A.tb(f, b);
- A.tb(f, a);
- return f;
- });
- }
- function Oa(a) {
- var b;
- b = [];
- A.Ad(a, function (a, f) {
- var h;
- try {
- h = "videoapp" === a.toLowerCase() ? "[object object]" : JSON.stringify(f);
- } catch (ac) {
- h = "cantparse";
- }
- b.push(a + "=" + h);
- });
- return b.join("\n");
- }
- Pa = /^[0-9]+[%]?$/;
- B = /^[0-9]*$/;
- bb = {};
- bc = k.Z.get(p.Yj);
- Ba = k.Z.get(R.iE);
- (function (b) {
- function f(a) {
- a.split(",").forEach(function (a) {
- var b;
- b = a.indexOf("=");
- 0 < b && (Ha[a.substring(0, b).toLowerCase()] = a.substring(b + 1));
- });
- }
- Ha = {};
- A.tb(Ha, b);
- a && a.length && G.forEach.call(a, function (a) {
- H.Od(a) ? f(a) : H.Xe(a) && A.tb(Ha, a, {
- iH: !0
- });
- });
- Wa = A.tb({}, n.MY(), {
- iH: !0
- });
- if (b = n.fQa().cadmiumconfig)
- k.log.info("Config cookie loaded", b), f(b);
- if (k.Z.get(r.dk).b$a || Ha.istestaccount)
- A.tb(Ha, Wa), bb = Wa;
- "clearkey" != ja("drmType") || Ha.keysystemid || (Ha.keysystemid = (t.WebKitMediaKeys || HTMLVideoElement.prototype.webkitGenerateKeyRequest ? "webkit-" : HTMLVideoElement.prototype.msSetMediaKeys ? "ms-" : "") + "org.w3.clearkey");
- }
- (c));
- b.config = {};
- L = {
- Cib: d(Q, J("enableXHEAAC"), !1),
- xda: d(Q, J("enableDDPlus20"), !0),
- wda: d(Q, J("enableDDPlus"), !0),
- jN: d(Q, J("enableDDPlusAtmos"), !1),
- pib: d(Q, J("enableLSSDH"), !0),
- kib: d(Q, J("enableHEVC"), !1),
- zOa: d(Q, J("overrideEnableHEVC"), !1),
- zda: d(Q, J("enableHDR"), !1),
- yOa: d(Q, J("overrideEnableHDR"), !1),
- vda: d(Q, J("enableAVCHigh"), Ba.vda),
- w0: d(Q, J("overrideEnableAVCHigh"), Ba.w0),
- Aib: d(Q, J("enableVP9"), !1),
- AOa: d(Q, J("overrideEnableVP9"), !1),
- gib: d(Q, J("enableAV1"), !1),
- xOa: d(Q, J("overrideEnableAV1"), !1),
- uib: d(Q, J("enablePRK"), !1),
- lib: d(Q, J("enableHWDRM"), !1),
- nib: d(Q, J("enableImageSubs"), !0),
- dM: d(ka, J("audioProfiles"), Ba.dM),
- lSb: d(Q, J("disableHD"), !1),
- W2: d(z, "videoCapabilityDetectorType", f.oj.kw),
- Oaa: d(z, "audioCapabilityDetectorType", f.Yq.kw),
- xR: d(ka, J("videoProfiles"), Ba.xR),
- v8a: d(ka, J("timedTextProfiles"), Ba.Zv),
- Zv: function () {
- return L.v8a().filter(function (a) {
- return a === u.Wk.Y3 ? L.pib() : a === u.Wk.aE ? L.nib() : !0;
- });
- },
- endpoint: d(Q, J("endpoint"), !1),
- version: d(ja, "version", "unknown"),
- bSa: d(Q, J("setMediaKeysEarly"), !1),
- LUb: d(Q, J("nrdpPersistCookiesToIndexDB"), !1),
- IFa: d(Q, J("doNotPerformLdlOnPlaybackCreate"), !1),
- JFa: d(Q, J("doNotPerformLdlOnPlaybackStart"), !1),
- QUa: d(Q, J("useHdcpLevelOnCast"), !1),
- mib: d(Q, J("enableHdcp"), !1),
- op: d(Q, J("prepareCadmium"), !1),
- Z8a: d(Q, J("acceptManifestOnPrepareItemParams"), !0),
- xPa: d(Ea, "ppmconfig", {
- maxNumberTitlesScheduled: 1
- }),
- zyb: d(Q, J("playerPredictionModelV2"), !0),
- lG: d(Q, J("enableLdlPrefetch"), !1),
- BX: d(Q, J("enableGetHeadersAndMediaPrefetch"), !1),
- YM: d(Q, J("deleteCachedManifestOnPlayback"), !1),
- $M: d(Q, J("deleteOtherManifestCacheOnCreate"), !1),
- ZM: d(Q, J("deleteOtherLdlCacheOnCreate"), !1),
- Vxb: d(z, J("periodicPrepareLogsIntervalMilliseconds"), 36E5),
- ezb: d(z, J("prepareManifestCacheMaxCount"), 50),
- czb: d(z, J("prepareLdlCacheMaxCount"), 30),
- BPa: d(z, J("prepareManifestExpiryMilliseconds"), 12E5),
- dzb: d(z, J("prepareLdlExpiryMilliseconds"), 78E4),
- bzb: d(ja, J("prepareInsertStrategyPersistentTasks"), "append", /^(prepend|append|ignore)$/),
- HWb: d(Ea, "videoApp"),
- Zy: d(Ea, "storageRules"),
- Gkb: d(Q, "ftlEnabled", !0),
- Hga: d(z, J("imageSubsResolution"), 0),
- Upb: d(z, J("imageSubsMaxBuffer"), Ba.Ztb.ca(P.Zq), 0),
- xM: d(Q, J("captureBatteryStatus"), !1),
- klb: d(z, J("getBatteryApiTimeoutMilliseconds"), 5E3),
- ce: d(ja, J("keySystemId"), Ba.ce),
- mLa: d(ka, J("keySystemList"), void 0, void 0),
- Hub: d(z, J("hdcpGlobalTimeout1"), 1E4),
- Iub: d(z, J("hdcpGlobalTimeout2"), 1E4),
- oUb: d(z, J("hdcpQueryTimeout1"), 1E3),
- pUb: d(z, J("hdcpQueryTimeout2"), 1E3),
- Jub: d(z, J("hdcpQueryTimeout2"), 100),
- Kub: d(Q, J("microsoftHwdrmRequiresHevc"), !1),
- Eub: d(Q, J("microsoftEnableDeviceInfo"), !1),
- Fub: d(Q, J("microsoftEnableHardwareInfo"), !1),
- Gub: d(Q, J("microsoftEnableHardwareReset"), !1),
- mIb: d(Q, J("useHevcCodecForDolbyVision"), !1),
- gtb: d(Q, "logMediaPipelineStatus", !1),
- VP: d(Q, J("renderDomDiagnostics"), !0),
- LLa: function () {
- return -1;
- },
- hH: d(T, J("logDisplayMaxEntryCount"), Ba.hH, -1),
- ntb: d(T, J("logToConsoleLevel"), -1),
- jRb: d(T, J("bladerunnerCmdHistorySize"), 10),
- Tr: function () {
- return bc.Tr;
- },
- cIb: d(Q, "upgradeNetflixId", !0),
- bia: d(Q, "logErrorIfEsnNotProvided", !0),
- Ida: d(Q, "enforceSinglePlayback", Ba.Ida),
- HX: d(Q, "enforceSingleSession", Ba.HX),
- Nba: d(Q, "closeOtherPlaybacks", !0),
- N$a: d(z, "asyncLoadTimeout", 15E3, 1),
- vtb: d(z, "mainThreadMonitorPollRate", 0),
- KUb: d(Q, "nrdpAlwaysShowUIOverlay", !1),
- MUb: d(Q, "nrdpValidateSSOTokens", !0),
- TVb: d(Q, "showNrdpDebugBadging", !1),
- Z2: function () {
- return bc.Z2;
- },
- gy: function () {
- return bc.gy;
- },
- HF: function () {
- return bc.HF;
- },
- qD: function () {
- return bc.qD;
- },
- aVa: d(z, J("verbosePlaybackInfoDenominator"), 0),
- j1: d(Q, "renderTimedText", !0),
- Qyb: d(Q, "preBufferTimedText", !0),
- wjb: d(Q, "fatalOnTimedTextLoadError", !0),
- KTa: d(Da, "timedTextStyleDefaults", {}),
- qna: d(Da, "timedTextStyleOverrides", {}),
- pna: d(Da, "timedTextFontFamilyMapping", Ba.pna || {
- "default": "font-family:Arial,Helvetica;font-weight:bolder"
- }),
- LTa: d(z, J("timedTextTimeOverride"), 0),
- RI: d(z, "timedTextSimpleFallbackThreshold", Ba.RI.ca(P.Zq)),
- Bca: d(ja, J("customDfxpUrl")),
- zib: d(Q, J("enableSubtitleTrackerLogging"), !1),
- fDb: d(Q, J("sendSubtitleQoeLogblobOnMidplay"), !1),
- vba: d(Ga, "cdnIdWhiteList", []),
- uba: d(Ga, "cdnIdBlackList", []),
- vea: d(ja, J("forceAudioTrack")),
- vvb: d(Q, "muteVolumeOnPlaybackClose", !0),
- NUb: d(ja, "nrdpVolumeControlType", "VOLUME_STREAM"),
- xea: d(ja, J("forceTimedTextTrack")),
- dub: d(z, J("maxRetriesTimedTextDownload"), 0),
- rGb: d(z, J("timedTextRetryInterval"), 8E3),
- oFb: d(ja, "storageType", "idb", /^(none|fs|idb|ls)$/),
- HLa: d(z, "lockExpiration", 1E4),
- dtb: d(z, "lockRefresh", 3E3),
- Ibb: d(Q, "captureUnhandledExceptions", !0),
- Tpb: d(Q, "ignoreUnhandledExceptionDuringPlayback", !0),
- oHb: d(Q, "unhandledExceptionsArePlaybackErrors", !1),
- tUa: d(ja, "unhandledExceptionSource", ""),
- ozb: d(Q, "preserveLastFrame", !1),
- Vub: d(z, "minBufferingTimeInMilliseconds", 4E3),
- Gzb: d(z, "progressBackwardsGraceTimeMilliseconds", 4E3),
- Hzb: d(z, "progressBackwardsMinPercent", 10),
- Nab: d(ja, J("bookmarkIgnoreBeginning"), "0", Pa),
- Oab: d(ja, J("bookmarkIgnoreEnd"), "5%", Pa),
- Pab: d(ja, J("bookmarkIgnoreEndForBranching"), "60000", Pa),
- lH: d(z, "maxParallelConnections", 3),
- mla: d(Q, "reportThroughputInLogblobs", !0),
- rH: d(z, "minAudioMediaRequestDuration", 16E3),
- Tub: d(z, "minAudioMediaRequestDurationBranching", 0),
- wH: d(z, "minVideoMediaRequestDuration", 4E3),
- $ub: d(z, "minVideoMediaRequestDurationAL1", 0),
- avb: d(z, "minVideoMediaRequestDurationBranching", 0),
- Q_: d(z, "minAudioMediaRequestSizeBytes", 0),
- V_: d(z, "minVideoMediaRequestSizeBytes", 0),
- Shb: d(Q, "droppedFrameRateFilterEnabled", !1),
- Thb: d(z, "droppedFrameRateFilterMaxObservation", 60, 10, 1E3),
- Vhb: d(function (a, b, f, h, k, c) {
- return ia(a, b, "[", function (a) {
- a = a.split(";");
- for (var b = a.length; b--; ) {
- a[b] = a[b].split("|");
- for (var f = a[b].length; f--; )
- a[b][f] = A.Pd(a[b][f]);
- }
- return a;
- }, [function (a) {
- return H.isArray(a) && 0 < a.length;
- }, function (a) {
- for (var b = a.length; b-- && void 0 !== a; ) {
- if (!H.isArray(a[b]))
- return !1;
- for (var k = a[b].length; k--; )
- if (!H.dv(a[b][k], f, h))
- return !1;
- }
- return !0;
- }, function (a) {
- if (void 0 !== k)
- for (var b = a.length; b--; )
- if (k !== a[b].length)
- return !1;
- return !0;
- }, function (a) {
- return void 0 === c || a.length >= c;
- }
- ]);
- }, "droppedFrameRateFilterPolicy", [[3, 15], [6, 9], [9, 2], [15, 1]], void 0, void 0, 2, 0),
- tSb: d(Q, "droppedFrameRateFilterWithoutRebufferEnabled", !0),
- Uhb: d(z, "droppedFrameRateFilterMinHeight", 384),
- Whb: d(Ga, "droppedFramesPercentilesList", []),
- Lub: d(Q, "microsoftScreenSizeFilterEnabled", !1),
- Nrb: d(Q, "keyStatusFilterEnabled", !1),
- kHb: d(Q, "uiLabelFilterEnabled", !0),
- jHb: d(Ea, "uiLabelFilter", {}),
- Fgb: d(z, J("defaultVolume"), 100, 0, 100),
- DFa: d(Q, "disableVideoRightClickMenu", !1),
- Xub: d(z, "minDecoderBufferMilliseconds", 1E3, 0, q.mt),
- t0: d(z, "optimalDecoderBufferMilliseconds", 5E3, 0, q.mt),
- pOa: d(z, "optimalDecoderBufferMillisecondsBranching", 3E3, 0, q.mt),
- W_: d(z, "minimumTimeBeforeBranchDecision", 3E3, 0, q.mt),
- C_: d(z, "maxDecoderBufferMilliseconds", Ba.C_.ca(m.ia), 0, q.mt),
- eFa: d(z, "decoderTimeoutMilliseconds", 1E4, 1),
- shb: d(Q, "disgardMediaOnAppend", !1),
- k$a: d(Q, "appendMediaBeforeInit", !1),
- Hxb: d(z, "pauseTimeoutLimitMilliseconds", 18E5),
- Kga: d(z, "inactivityMonitorInterval", 3E4, 0),
- X8a: d(Ga, "abrdelLogPointsSeconds", [15, 30, 60, 120], 0, void 0, 4),
- mG: d(Q, "enableTrickPlay", !1),
- R9a: d(Ga, "additionalDownloadSimulationParams", [2E3, 2E3, 100], 0, void 0, 3),
- $Gb: d(z, "trickPlayHighResolutionBitrateThreshold", 1E3),
- aHb: d(z, "trickPlayHighResolutionThresholdMilliseconds", 1E4),
- dHb: d(U, "trickplayBufferFactor", .5),
- ZGb: d(z, "trickPlayDownloadRetryCount", 1),
- zia: d(ja, "marginPredictor", "simple", /^(simple|scale|iqr|percentile)$/),
- qja: d(ja, "networkMeasurementGranularity", "video_location", /^(location|video_location)$/),
- Ura: d(Ea, "HistoricalTDigestConfig", {
- maxc: 25,
- rc: "ewma",
- c: .5,
- hl: 7200
- }),
- vMa: d(T, "maxIQRSamples", Infinity),
- SMa: d(T, "minIQRSamples", 5),
- VUa: d(Q, "useResourceTimingAPI", !1),
- Rpb: d(Q, "ignoreFirstByte", !0),
- vub: d(Q, "mediaRequestAsyncLoadStart", !0),
- uIb: d(Q, "useXHROnLoadStart", !1),
- Yda: d(Ga, "failedDownloadRetryWaitsASE", [10, 200, 500, 1E3, 2E3, 4E3]),
- LW: d(z, "connectTimeoutMilliseconds", 8E3, 500),
- vja: d(z, "noProgressTimeoutMilliseconds", 8E3, 500),
- pIb: d(Q, "useOnLineApi", !1),
- JTa: d(z, "timedTextDownloadRetryCountBeforeCdnSwitch", 3),
- EUb: d(z, "netflixRequestExpiryTimeout", 0),
- gJb: d(Q, "webkitDecodedFrameCountIncorrectlyReported", !1),
- JCb: d(z, "seekBackOnAudioTrackChangeMilliseconds", 8E3),
- Fxb: d(Q, "pausePlaybackOnAudioSwitch", !0),
- $ma: d(ka, J("supportedAudioTrackTypes"), [], void 0, 1),
- oKa: d(z, "initialLogFlushTimeout", 5E3),
- oPa: d(ja, "playdataPersistKey", bc.Tr ? "unsentplaydatatest" : "unsentplaydata"),
- dma: d(Q, "sendPersistedPlaydata", !0),
- wyb: d(z, "playdataPersistIntervalMilliseconds", 4E3),
- dVb: d(z, "playdataSendDelayMilliseconds", 1E4),
- N1: d(Q, "sendPlaydataBackupOnInit", !0),
- jtb: d(ka, "logPerformanceTiming", "navigationStart redirectStart fetchStart secureConnectionStart requestStart domLoading".split(" ")),
- Nub: d(Q, "midplayEnabled", !0),
- OMa: d(z, "midplayIntervalMilliseconds", 3E5),
- Oub: d(Ga, "midplayKeyPoints", [15E3, 3E4, 6E4, 12E4]),
- eN: d(z, "downloadReportDenominator", 0),
- Ehb: d(z, "downloadReportInterval", 3E5),
- KLa: d(z, "logConfigApplyDenominator", 0),
- cDa: d(Da, J("bookmarkByMovieId"), {}),
- vN: d(Q, J("forceLimitedDurationLicense"), !1),
- ry: d(z, J("licenseRenewalRequestDelay"), 0),
- eka: d(z, J("persistedReleaseDelay"), 1E4),
- PTb: d(Q, J("limitedDurationFlagOverride"), void 0),
- Bi: d(Q, J("secureStopEnabled"), !1),
- MVb: d(Q, J("secureStopFromPersistedKeySession"), !1),
- BRa: d(z, "secureStopKeyMessageTimeoutMilliseconds", 2E3, 1),
- Sla: d(z, "secureStopKeyAddedTimeoutMilliseconds", 1E3, 1),
- GCb: d(z, J("secureStopPersistedKeyMessageTimeoutMilliseconds"), 2500, 1),
- HCb: d(z, J("secureStopPersistedKeySessionRetries"), 17, 1),
- FCb: d(z, "secureStopPersistedKeyAddedTimeoutUnmatchedSession", 1E3, 1),
- oRa: d(z, "safariPlayPauseWorkaroundDelay", 100),
- oJb: d(z, "workaroundValueForSeekIssue", 1200),
- nJb: d(Q, "workaroundSaio", !0),
- rba: d(Q, J("callEndOfStream"), Ba.rba),
- Txb: d(Q, "performRewindCheck", !0),
- yjb: d(Q, "fatalOnUnexpectedSeeking", !0),
- xjb: d(Q, "fatalOnUnexpectedSeeked", !0),
- eEb: d(Q, J("setVideoElementSize")),
- ucb: d(Q, J("clearVideoSrc"), !0),
- tFa: d(z, J("delayPlayPause"), 0),
- Dp: d(Q, J("useTypescriptEme"), !1),
- Gcb: d(Q, J("combineManifestAndLicense"), !1),
- hN: d(ja, J("drmPersistKey"), "unsentDrmData"),
- Kka: d(Q, J("promiseBasedEme"), !1),
- Hbb: d(Q, "captureKeyStatusData", !1),
- UG: d(Q, "includeCapabilitiesInRequestMediaKeySystemAccess", !0),
- hwb: d(Q, J("nudgeSourceBuffer"), !1),
- Tla: d(T, J("seekDelta"), 1),
- DP: d(Q, J("preciseSeeking"), !1),
- Tyb: d(Q, J("preciseSeekingOnTwoCoreDevice"), !1),
- sFa: d(Da, J("delayErrorHandling")),
- ZTa: d(Q, "trackingLogEnabled", !1),
- $Ta: d(function (a, b) {
- var f;
- f = Da(a, b, void 0);
- f && Object.keys(f).forEach(function (a) {
- var b;
- b = f[a];
- "true" === b ? f[a] = !0 : "false" === b && (f[a] = !1);
- });
- return f;
- }, "trackingLogEvents", {
- sso: !1,
- startup: !1,
- playback: !1,
- regpair: !1
- }),
- yna: d(ja, "trackingLogPath", "/customerevents/track/debug"),
- PGb: d(Ga, "trackingLogStallKeyPoints", [1E4, 3E4, 6E4, 12E4]),
- yh: d(ja, "esn", ""),
- JGa: d(ja, "fesn", ""),
- wib: d(Q, J("enablePerformanceLogging"), !1),
- yda: d(Q, J("enableEmeVerboseLogging"), !1),
- qib: d(Q, "enableLastChunkLogging", !1),
- WL: d(ja, "appId", "", B),
- sessionId: d(ja, "sessionId", "", B),
- xba: d(ja, "cdnProxyUrl"),
- tIb: d(Q, "usePlayReadyHeaderObject", !1),
- gHa: d(z, "forceXhrErrorResponseCode", void 0),
- Gu: {
- yUb: d(ja, "mslApiPath", "/msl/"),
- vSb: d(ja, J("edgePath"), "/cbp/cadmium-29"),
- nVb: d(ja, "proxyPath", ""),
- iR: d(ja, "uiVersion"),
- F2: d(ja, "uiPlatform"),
- ARb: function () {
- return "0";
- },
- yka: d(ka, "preferredLanguages", q.aqa, /^[a-zA-Z-]{2,5}$/, 1),
- mkb: d(ja, J("forceDebugLogLevel"), void 0, /^(ERROR|WARN|INFO|TRACE)$/),
- RFb: d(Q, "supportPreviewContentPin", !0),
- SFb: d(Q, "supportWatermarking", !0),
- EEb: d(Q, "showAllSubDubTracks", !1),
- GSb: d(Q, J("failOnGuidMismatch"), !1)
- },
- Y0: {
- enabled: d(Q, "qcEnabled", !1),
- xl: d(ja, "qcPackageId", "")
- },
- Tq: d(Q, "useRangeHeader", !1),
- kN: d(Q, "enableMilestoneEventList", !1),
- SA: d(ja, "authenticationType", bc.Tr ? Ba.PCa : Ba.SA),
- OCa: d(Da, "authenticationKeyNames", A.tb({
- e: "DKE",
- h: "DKH",
- w: "DKW",
- s: "DKS"
- })),
- ZFb: d(ja, "systemKeyWrapFormat"),
- $pb: d(Q, "includeNetflixIdUserAuthData", !0),
- zEb: d(Q, "shouldSendUserAuthData", !0),
- gma: d(Q, "sendUserAuthIfRequired", Ba.gma),
- uEb: d(Q, "shouldClearUserData", !1),
- qvb: d(Q, "mslDeleteStore", !1),
- svb: d(Q, "mslPersistStore", !0),
- sdb: d(Q, "correctNetworkForShortTitles", !0),
- Oyb: d(Q, "postplayHighInitBitrate", !1),
- ikb: d(Q, "flushHeaderCacheOnAudioTrackChange", !0),
- VFb: d(Q, "supportsUnequalizedDownloadables", !0),
- aFa: d(z, J("debugAseDenominator"), 100),
- eW: d(z, "aseAudioBufferSizeBytes", Ba.eW.ca(P.Zq)),
- gW: d(z, "aseVideoBufferSizeBytes", Ba.gW.ca(P.Zq)),
- vs: d(z, "minInitVideoBitrate", 560),
- cja: d(z, "minHCInitVideoBitrate", 560),
- sv: d(z, "maxInitVideoBitrate", Infinity),
- ZO: d(z, "minInitAudioBitrate", 0),
- YO: d(z, "minHCInitAudioBitrate", 0),
- HO: d(z, "maxInitAudioBitrate", 65535),
- VO: d(z, "minAcceptableVideoBitrate", 235),
- $O: d(z, "minRequiredBuffer", 3E4),
- hh: d(z, "minPrebufSize", 7800),
- Zka: d(U, "rebufferingFactor", 1),
- ip: d(z, "maxBufferingTime", 2600),
- Tna: d(Q, "useMaxPrebufSize", !0),
- yy: d(z, "maxPrebufSize", 45E3),
- Kia: d(z, "maxRebufSize", Infinity),
- EZ: d(x, "initialBitrateSelectionCurve", null),
- lKa: d(z, "initSelectionLowerBound", 560),
- mKa: d(z, "initSelectionUpperBound", 1050),
- v2: d(z, "throughputPercentForAudio", 15),
- Waa: d(z, "bandwidthMargin", 10),
- Xaa: d(Q, "bandwidthMarginContinuous", !1),
- Yaa: d(x, "bandwidthMarginCurve", [{
- m: 65,
- b: 8E3
- }, {
- m: 65,
- b: 3E4
- }, {
- m: 50,
- b: 6E4
- }, {
- m: 45,
- b: 9E4
- }, {
- m: 40,
- b: 12E4
- }, {
- m: 20,
- b: 18E4
- }, {
- m: 5,
- b: 24E4
- }
- ]),
- aca: d(z, "conservBandwidthMargin", 20),
- cna: d(Q, "switchConfigBasedOnInSessionTput", !1),
- HM: d(z, "conservBandwidthMarginTputThreshold", 0),
- bca: d(x, "conservBandwidthMarginCurve", [{
- m: 80,
- b: 8E3
- }, {
- m: 80,
- b: 3E4
- }, {
- m: 70,
- b: 6E4
- }, {
- m: 60,
- b: 9E4
- }, {
- m: 50,
- b: 12E4
- }, {
- m: 30,
- b: 18E4
- }, {
- m: 10,
- b: 24E4
- }
- ]),
- oTa: d(Q, "switchAlgoBasedOnHistIQR", !1),
- ez: d(ja, "switchConfigBasedOnThroughputHistory", "none", /^(none|iqr|avg)$/),
- Jia: d(T, "maxPlayerStateToSwitchConfig", -1),
- jia: d(ja, "lowEndMarkingCriteria", "none", /^(none|iqr|avg)$/),
- r5: d(U, "IQRThreshold", .5),
- zga: d(ja, "histIQRCalcToUse", "simple"),
- vv: d(z, "maxTotalBufferLevelPerSession", 0),
- UJa: d(z, "highWatermarkLevel", 3E4),
- RTa: d(z, "toStableThreshold", 3E4),
- z2: d(z, "toUnstableThreshold", Ba.z2.ca(m.ia)),
- Hma: d(Q, "skipBitrateInUpswitch", !0),
- $na: d(z, "watermarkLevelForSkipStart", 8E3),
- sga: d(z, "highStreamRetentionWindow", 9E4),
- kia: d(z, "lowStreamTransitionWindow", 51E4),
- uga: d(z, "highStreamRetentionWindowUp", 3E5),
- mia: d(z, "lowStreamTransitionWindowUp", 3E5),
- tga: d(z, "highStreamRetentionWindowDown", 6E5),
- lia: d(z, "lowStreamTransitionWindowDown", 0),
- rga: d(U, "highStreamInfeasibleBitrateFactor", .5),
- ov: d(z, "lowestBufForUpswitch", 15E3),
- v_: d(z, "lockPeriodAfterDownswitch", 15E3),
- oia: d(z, "lowWatermarkLevel", 25E3),
- pv: d(z, "lowestWaterMarkLevel", 2E4),
- pia: d(Q, "lowestWaterMarkLevelBufferRelaxed", !1),
- Wia: d(U, "mediaRate", 1),
- I_: d(z, "maxTrailingBufferLen", 1E4),
- cM: d(z, "audioBufferTargetAvailableSize", 262144),
- vR: d(z, "videoBufferTargetAvailableSize", 1048576),
- EMa: d(z, "maxVideoTrailingBufferSize", 8388608),
- pMa: d(z, "maxAudioTrailingBufferSize", 393216),
- QX: d(U, "fastUpswitchFactor", 3),
- $da: d(U, "fastDownswitchFactor", 1),
- tv: d(z, "maxMediaBufferAllowed", 24E4),
- qs: d(z, "maxVideoBufferAllowedInBytes", 0),
- Ema: d(Q, "simulatePartialBlocks", !0),
- ySa: d(Q, "simulateBufferFull", !0),
- cca: d(Q, "considerConnectTime", !1),
- $ba: d(U, "connectTimeMultiplier", 1),
- TLa: d(z, "lowGradeModeEnterThreshold", 12E4),
- ULa: d(z, "lowGradeModeExitThreshold", 9E4),
- sMa: d(z, "maxDomainFailureWaitDuration", 3E4),
- oMa: d(z, "maxAttemptsOnFailure", 18),
- zGa: d(Q, "exhaustAllLocationsForFailure", !0),
- yMa: d(z, "maxNetworkErrorsDuringBuffering", 20),
- Dia: d(z, "maxBufferingTimeAllowedWithNetworkError", 6E4),
- HGa: d(z, "fastDomainSelectionBwThreshold", 2E3),
- CTa: d(z, "throughputProbingEnterThreshold", 4E4),
- DTa: d(z, "throughputProbingExitThreshold", 34E3),
- GLa: d(z, "locationProbingTimeout", 1E4),
- LGa: d(z, "finalLocationSelectionBwThreshold", 1E4),
- ATa: d(U, "throughputHighConfidenceLevel", .75),
- BTa: d(U, "throughputLowConfidenceLevel", .4),
- iGa: d(Q, "enablePerfBasedLocationSwitch", !1),
- Fq: d(Q, "probeServerWhenError", !0),
- Fka: d(z, "probeRequestTimeoutMilliseconds", 8E3),
- du: d(Q, "allowSwitchback", !0),
- FC: d(z, "probeDetailDenominator", 100),
- D_: d(z, "maxDelayToReportFailure", 300),
- Zha: d(z, "locationStatisticsUpdateInterval", 6E4),
- DEa: d(Q, "countGapInBuffer", !1),
- eCa: d(Q, "allowCallToStreamSelector", !0),
- iDa: d(z, "bufferThresholdForAbort", 1E4),
- gka: d(z, "pipelineScheduleTimeoutMs", 2),
- uv: d(z, "maxPartialBuffersAtBufferingStart", 2),
- dja: d(z, "minPendingBufferLen", 6E3),
- xy: d(z, "maxPendingBufferLen", 12E3),
- bub: d(z, "maxPendingBufferLenAL1", 3E4),
- Lia: d(z, "maxStreamingSkew", 4E3),
- Iia: d(z, "maxPendingBufferPercentage", 10),
- fC: d(z, "maxRequestsInBuffer", 60),
- AMa: d(z, "maxRequestsInBufferAL1", 240),
- BMa: d(z, "maxRequestsInBufferBranching", 120),
- pZ: d(z, "headerRequestSize", 4096),
- XO: d(z, "minBufferLenForHeaderDownloading", 1E4),
- ZP: d(z, "reserveForSkipbackBufferMs", 1E4),
- Gja: d(z, "numExtraFragmentsAllowed", 2),
- lp: d(Q, "pipelineEnabled", !1),
- ESa: d(z, "socketReceiveBufferSize", 0),
- lW: d(z, "audioSocketReceiveBufferSize", 32768),
- cJ: d(z, "videoSocketReceiveBufferSize", 65536),
- pga: d(z, "headersSocketReceiveBufferSize", 32768),
- L2: d(z, "updatePtsIntervalMs", 1E3),
- fba: d(z, "bufferTraceDenominator", 100),
- WA: d(z, "bufferLevelNotifyIntervalMs", 2E3),
- $L: d(z, "aseReportDenominator", 0),
- Kaa: d(z, "aseReportIntervalMs", 3E5),
- eGa: d(Q, "enableAbortTesting", !1),
- FBa: d(z, "abortRequestFrequency", 8),
- Vma: d(z, "streamingStatusIntervalMs", 2E3),
- Lv: d(z, "prebufferTimeLimit", 24E4),
- R_: d(z, "minBufferLevelForTrackSwitch", 2E3),
- aka: d(z, "penaltyFactorForLongConnectTime", 2),
- hia: d(z, "longConnectTimeThreshold", 200),
- raa: d(z, "additionalBufferingLongConnectTime", 2E3),
- saa: d(z, "additionalBufferingPerFailure", 8E3),
- SP: d(z, "rebufferCheckDuration", 6E4),
- hGa: d(Q, "enableLookaheadHints", !1),
- PLa: d(z, "lookaheadFragments", 2),
- sB: d(Q, "enableOCSideChannel", !0),
- jT: d(Ea, "OCSCBufferQuantizationConfig", {
- lv: 5,
- mx: 240
- }),
- BUa: d(Q, "updateDrmRequestOnNetworkFailure", !1),
- rFa: d(Q, "deferAseScheduling", !1),
- rMa: d(z, "maxDiffAudioVideoEndPtsMs", 16E3),
- XI: d(Q, "useHeaderCache", !0),
- fX: d(z, "defaultHeaderCacheSize", 4),
- Oca: d(z, "defaultHeaderCacheDataPrefetchMs", 8E3),
- lga: d(z, "headerCacheMaxPendingData", 6),
- rja: d(Q, "neverWipeHeaderCache", !0),
- mga: d(z, "headerCachePriorityLimit", 5),
- mN: d(Q, "enableUsingHeaderCount", !1),
- PJa: d(Q, "headerCacheTruncateHeaderAfterParsing", !0),
- hkb: d(Q, J("flushHeaderCacheBeforePlayback"), !1),
- pja: d(z, "networkFailureResetWaitMs", 2E3),
- oja: d(z, "networkFailureAbandonMs", 6E4),
- H_: d(z, "maxThrottledNetworkFailures", 3),
- u2: d(z, "throttledNetworkFailureThresholdMs", 200),
- nia: d(T, "lowThroughputThreshold", 400),
- Rda: d(Q, "excludeSessionWithoutHistoryFromLowThroughputThreshold", !1),
- dNa: d(Q, "mp4ParsingInNative", !1),
- FSa: d(Q, "sourceBufferInOrderAppend", !0),
- Js: d(Q, "requireAudioStreamToEncompassVideo", !0),
- dCa: d(Q, "allowAudioToStreamPastVideo", !0),
- Zg: d(Q, "enableManagerDebugTraces", !1),
- fMa: d(z, "managerDebugMessageInterval", 1E3),
- eMa: d(z, "managerDebugMessageCount", 20),
- MNa: d(Q, "notifyManifestCacheEom", !1),
- eba: d(z, "bufferThresholdToSwitchToSingleConnMs", 18E4),
- dba: d(z, "bufferThresholdToSwitchToParallelConnMs", 12E4),
- F0: d(z, "periodicHistoryPersistMs", 3E5),
- B1: d(z, "saveVideoBitrateMs", 18E4),
- rCa: d(Q, "appendMediaRequestOnComplete", !0),
- dJ: d(Q, "waitForDrmToAppendMedia", !1),
- bY: d(Q, J("forceAppendHeadersAfterDrm"), !1),
- RP: d(Q, J("reappendRequestsOnSkip"), !0),
- zvb: d(z, "netIntrStoreWindow", 36E3),
- Yub: d(z, "minNetIntrDuration", 8E3),
- sjb: d(z, "fastHistoricBandwidthExpirationTime", 10368E3),
- rab: d(z, "bandwidthExpirationTime", 5184E3),
- pjb: d(z, "failureExpirationTime", 86400),
- ypb: d(z, "historyTimeOfDayGranularity", 4),
- fjb: d(Q, "expandDownloadTime", !1),
- ivb: d(z, "minimumMeasurementTime", 500),
- hvb: d(z, "minimumMeasurementBytes", 131072),
- iGb: d(z, "throughputMeasurementTimeout", 2E3),
- mqb: d(z, "initThroughputMeasureDataSize", 262144),
- jGb: d(ja, "throughputPredictor", "ewma"),
- hGb: d(z, "throughputMeasureWindow", 5E3),
- lGb: d(z, "throughputWarmupTime", 5E3),
- gGb: d(z, "throughputIQRMeasureWindow", 5E3),
- K_a: d(z, "IQRBucketizerWindow", 15E3),
- $cb: d(z, "connectTimeHalflife", 10),
- YBb: d(z, "responseTimeHalflife", 10),
- xpb: d(z, "historicBandwidthUpdateInterval", 2E3),
- fvb: d(z, "minimumBufferToStopProbing", 1E4),
- Qla: d(ja, "secondThroughputEstimator", "none"),
- zRa: d(T, "secondThroughputMeasureWindowInMs", Infinity),
- jib: d(ka, "enableFilters", "throughput-ewma throughput-sw throughput-iqr throughput-tdigest avtp entropy".split(" ")),
- Hjb: d(Ea, "filterDefinitionOverrides", {}),
- Agb: d(ja, "defaultFilter", "throughput-ewma"),
- CCb: d(ja, "secondaryFilter", "none"),
- Bgb: d(Ea, "defaultFilterDefinitions", {
- "throughput-ewma": {
- type: "discontiguous-ewma",
- mw: 5E3,
- wt: 5E3
- },
- "throughput-sw": {
- type: "slidingwindow",
- mw: 5E3
- },
- "throughput-iqr": {
- type: "iqr",
- mx: Infinity,
- mn: 5,
- bw: 15E3,
- iv: 1E3
- },
- "throughput-iqr-history": {
- type: "iqr-history"
- },
- "throughput-location-history": {
- type: "discrete-ewma",
- hl: 14400,
- "in": 3600
- },
- "respconn-location-history": {
- type: "discrete-ewma",
- hl: 100,
- "in": 25
- },
- "throughput-tdigest": {
- type: "tdigest",
- maxc: 25,
- c: .5,
- b: 1E3,
- w: 15E3,
- mn: 6
- },
- "throughput-tdigest-history": {
- type: "tdigest-history",
- maxc: 25,
- rc: "ewma",
- c: .5,
- hl: 7200
- },
- "respconn-ewma": {
- type: "discrete-ewma",
- hl: 10,
- "in": 10
- },
- avtp: {
- type: "avtp"
- },
- entropy: {
- type: "entropy",
- mw: 2E3,
- sw: 6E4,
- "in": "none",
- mins: 1,
- hdl: [150, 230, 352, 539, 825, 1264, 1936, 2966, 4543, 6958],
- uhdl: [150, 230, 352, 539, 825, 1264, 1936, 2966, 4543, 6958, 10657, 16322, 25E3]
- }
- }),
- eP: d(Q, "needMinimumNetworkConfidence", !0),
- bba: d(Q, "biasTowardHistoricalThroughput", !0),
- VV: d(Q, "addHeaderDataToNetworkMonitor", !1),
- Oma: d(Q, "startMonitorOnLoadStart", !1),
- lla: d(Q, "reportFailedRequestsToNetworkMonitor", !1),
- Fia: d(T, "maxFastPlayBufferInMs", Infinity),
- Eia: d(T, "maxFastPlayBitThreshold", Infinity),
- Daa: d(Q, "appendFirstHeaderOnComplete", !0),
- y$a: d(ja, "ase_stream_selector", "optimized"),
- Uga: d(ja, "initBitrateSelectorAlgorithm", "default"),
- hba: d(ja, "bufferingSelectorAlgorithm", "default"),
- bFa: d(ja, "ase_ls_failure_simulation", ""),
- Fca: d(Q, "ase_dump_fragments", !1),
- Gca: d(z, "ase_location_history", 0),
- Hca: d(z, "ase_throughput", 0),
- dFa: d(Q, "ase_simulate_verbose", !1),
- Jyb: d(z, "pollingPeriod", 150),
- Wsb: d(z, "loadTimeMs", 18E4),
- Mtb: d(z, "marginTimeMs", 1E4),
- jz: d(Q, "useMediaCache", !1),
- Lx: d(z, "diskCacheSizeLimit", 52428800),
- L_: d(z, "mediaCachePrefetchMs", 8E3),
- Qia: d(Da, "mediaCachePartitionConfig", {
- partitions: [{
- key: "billboard",
- capacity: 31457280,
- owner: "browser-player@netflix.com",
- evictionPolicy: "FIFO"
- }
- ]
- }),
- Zea: d(Q, "getDeviceIdFromBindDevice", !1),
- laa: d(Q, "addFailedLogBlobsToQueue", !0),
- lHb: {
- "content-sampling": {
- ip: d(z, "contentSamplingMaxBufferingTime", 3E3),
- pI: d(ja, "contentSamplingSelectStartingVMAFMethod", "fallback"),
- QL: d(Q, "contentSamplingActivateSelectStartingVMAF", !0),
- vH: d(z, "contentSamplingMinStartingVideoVMAF", 80),
- UO: d(z, "contentSamplingMinAcceptableVMAF", 70),
- WO: d(z, "contentSamplingMinAllowedVmaf", 60)
- },
- billboard: {
- vs: d(z, "billboardMinInitVideoBitrate", 1050),
- sv: d(z, "billboardMaxInitVideoBitrate", null),
- hh: d(z, "billboardMinPrebufSize", null),
- yy: d(z, "billboardMaxPrebufSize", null),
- ip: d(z, "billboardMaxBufferingTime", null),
- uv: d(z, "billboardMaxPartialBuffersAtBufferingStart", null),
- pv: d(z, "billboardLowestWaterMarkLevel", 6E3),
- ov: d(z, "billboardLowestBufForUpswitch", 25E3),
- ez: d(ja, "billboardSwitchConfigBasedOnThroughputHistory", "none", /^(none|iqr|avg)$/),
- ZI: d(Q, "billboardUseNewApi", null)
- },
- preplay: {
- vs: d(z, "preplayMinInitVideoBitrate", 1050),
- sv: d(z, "preplayMaxInitVideoBitrate", null),
- hh: d(z, "preplayMinPrebufSize", null),
- yy: d(z, "preplayMaxPrebufSize", null),
- ip: d(z, "preplayMaxBufferingTime", null),
- uv: d(z, "preplayMaxPartialBuffersAtBufferingStart", null),
- pv: d(z, "preplayLowestWaterMarkLevel", 6E3),
- ov: d(z, "preplayLowestBufForUpswitch", 25E3)
- },
- embedded: {
- vs: d(z, "embeddedMinInitVideoBitrate", 1050),
- sv: d(z, "embeddedMaxInitVideoBitrate", null),
- hh: d(z, "embeddedMinPrebufSize", null),
- yy: d(z, "embeddedMaxPrebufSize", null),
- ip: d(z, "embeddedMaxBufferingTime", null),
- uv: d(z, "embeddedMaxPartialBuffersAtBufferingStart", null),
- pv: d(z, "embeddedLowestWaterMarkLevel", 6E3),
- ov: d(z, "embeddedLowestBufForUpswitch", 25E3)
- },
- "video-merch-bob-horizontal": {
- vs: d(z, "videoMerchBobHorizontalMinInitVideoBitrate", null),
- sv: d(z, "videoMerchBobHorizontalMaxInitVideoBitrate", null),
- hh: d(z, "videoMerchBobHorizontalMinPrebufSize", null),
- yy: d(z, "videoMerchBobHorizontalMaxPrebufSize", null),
- ip: d(z, "videoMerchBobHorizontalMaxBufferingTime", null),
- uv: d(z, "videoMerchBobHorizontalMaxPartialBuffersAtBufferingStart", null),
- pv: d(z, "videoMerchBobHorizontalLowestWaterMarkLevel", null),
- ov: d(z, "videoMerchBobHorizontalLowestBufForUpswitch", null),
- ZI: d(Q, "videoMerchBobHorizontalUseNewApi", null)
- },
- "mini-modal-horizontal": {
- vs: d(z, "miniModalHorizontalMinInitVideoBitrate", null),
- sv: d(z, "miniModalHorizontalMaxInitVideoBitrate", null),
- hh: d(z, "miniModalHorizontalMinPrebufSize", null),
- yy: d(z, "miniModalHorizontalMaxPrebufSize", null),
- ip: d(z, "miniModalHorizontalMaxBufferingTime", 500),
- uv: d(z, "miniModalHorizontalMaxPartialBuffersAtBufferingStart", null),
- pv: d(z, "miniModalHorizontalLowestWaterMarkLevel", null),
- ov: d(z, "miniModalHorizontalLowestBufForUpswitch", null)
- }
- },
- Bib: d(Q, "enableVerbosePlaydelayLogging", !1),
- yib: d(Q, "enableSeamless", !1),
- yga: d(z, "hindsightDenominator", 0),
- xga: d(z, "hindsightDebugDenominator", 0),
- sZ: d(Ea, "hindsightParam", {
- numB: Infinity,
- bSizeMs: 1E3,
- fillS: "last",
- fillHl: 1E3
- }),
- lN: d(Q, "enableSessionHistoryReport", !1),
- tda: d(z, "earlyStageEstimatePeriod", 1E4),
- sLa: d(z, "lateStageEstimatePeriod", 3E4),
- E_: d(z, "maxNumSessionHistoryStored", 30),
- U_: d(z, "minSessionHistoryDuration", 3E4),
- ns: d(z, "maxActiveRequestsPerSession", 3),
- B_: d(z, "maxActiveRequestsSABCell100", 2),
- F_: d(z, "maxPendingBufferLenSABCell100", 500),
- Uha: d(Q, "limitAudioDiscountByMaxAudioBitrate", !0),
- Wg: d(Ea, "browserInfo", {}),
- gbb: d(z, J("busyGracePeriod"), 199),
- gDb: d(Q, J("sendTransitionLogblob"), !0),
- yX: d(Q, J("editAudioFragments"), !1),
- Px: d(Q, J("editVideoFragments"), !1),
- aib: d(Q, J("editAudioFragmentsBranching"), !0),
- YFa: d(Q, J("editVideoFragmentsBranching"), !0),
- xX: d(Q, J("earlyAppendSingleChildBranch"), !0),
- aqb: d(Q, J("includeSegmentInfoOnLogblobs"), !0),
- jjb: d(Q, "exposeTestData", !1),
- Jca: d(Q, "declareBufferingCompleteAtSegmentEnd", !0),
- PA: d(Q, "applyProfileTimestampOffset", !1),
- Go: d(Q, "applyProfileStreamingOffset", !1),
- c$a: d(Q, J("allowSmallSeekDelta"), !1),
- OEb: d(z, J("smallSeekDeltaThresholdMilliseconds"), D.MT),
- hib: d(Q, "enableCDMAttestedDescriptors", !1),
- q1: d(Q, "requireDownloadDataAtBuffering", !1),
- r1: d(Q, "requireSetupConnectionDuringBuffering", !1),
- ala: d(Q, "recordFirstFragmentOnSubBranchCreate", !1),
- Vab: d(Q, "branchingAudioTrackFrameDropSmallSeekFix", !0),
- eHa: d(Q, "forceL3WidevineCdm", !1),
- oIb: d(Q, "useMobileVMAF", !1),
- $gb: d(ja, "desiredVMAFTypeMobile", "phone_plus_lts"),
- ahb: d(ja, "desiredVMAFTypeNonMobile", "plus_lts"),
- QL: d(Q, "activateSelectStartingVMAF", !1),
- vH: d(z, "minStartingVideoVMAF", 1),
- UO: d(z, "minAcceptableVMAF", 1),
- WO: d(z, "minAllowedVmaf", 1),
- zaa: d(Q, "alwaysNotifyEOSForPlaygraph", !0),
- EX: d(Q, "enableNewAse", !1),
- ZI: d(Q, "useNewApi", !1),
- DX: d(Q, "enableHudsonFieldTest", !1),
- $N: d(ka, "hudsonTitles", ["81127954", "70125931", "80158148"]),
- Hia: d(z, "maxPartialBuffersAtHudson", 1),
- GH: d(z, "numberOfChunksPerSegment", 4),
- t2: d(z, "targetContentLatency", 1E4),
- gna: d(z, "targetLongContentLatency", 3E4),
- fja: d(z, "minimumTimeDelay", 1),
- FX: d(Q, "enableWsslEstimate", !1),
- Cia: d(z, "maxAllowedOutstandingRequests", 3)
- };
- Pb = !0;
- b.Xba = function (a) {
- var f,
- c;
- if (0 < b.config.KLa && 0 === C.A5 % b.config.KLa)
- try {
- f = k.Z.get(K.$j);
- c = k.Z.get(g.no).Fn("config", "info", {
- params: a
- });
- f.Lc(c);
- } catch (hf) {
- k.log.error("Failed to log config$apply", hf);
- }
- t._cad_global.config = b.config;
- h.Xa(a);
- a && (Ha = A.tb({}, a, {
- iH: !0
- }), A.tb(Ha, bb, {
- iH: !0
- }), l(L, b.config), Ha.istestaccount && k.log.trace("Config applied for", Oa(Pb ? Ha : a)), Pb = !1);
- };
- b.Xba(Ha);
- };
- b.Vcb = function (a, b) {
- return H.Od(a) && "%" == a[a.length - 1] ? G.Kh(parseFloat(a) * b / 100) : a | 0;
- };
- b.rEa = function (a) {
- return a ? (a = A.tb({}, b.config), A.tb(a, {
- t0: b.config.pOa
- }, {
- Dv: !0
- })) : b.config;
- };
- b.Wcb = function (a) {
- var f;
- f = A.tb({}, b.config);
- return A.tb(f, c(a), {
- Dv: !0
- });
- };
- b.Zba = function (b) {
- b = c(b);
- return A.tb({}, a(154)(b), {
- Dv: !0
- });
- };
- b.Yba = function (f, h, k) {
- k = !!k && (0 <= k.indexOf("h264hpl") || 0 <= k.indexOf("vp9"));
- f = {
- rH: f ? b.config.Tub : b.config.rH,
- wH: f ? b.config.avb : k ? b.config.$ub : b.config.wH,
- fC: f && k ? Math.max(b.config.BMa, b.config.AMa) : f ? b.config.BMa : k ? b.config.AMa : b.config.fC,
- xy: k ? b.config.bub : b.config.xy,
- yX: b.config.yX || f && b.config.aib,
- Px: b.config.Px || f && b.config.YFa,
- xX: !h
- };
- return A.tb({}, a(154)(f), {
- Dv: !0
- });
- };
- b.Ycb = c;
- b.Xcb = l;
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Ge = b.kb = b.Ze = b.qb = b.U = b.w5 = b.Vz = b.wb = void 0;
- (function (a) {
- a.$sb = "loadedtracks";
- a.Zsb = "loadedmetadata";
- a.loaded = "loaded";
- a.error = "error";
- a.closed = "closed";
- a.Po = "currenttimechanged";
- a.kDa = "bufferedtimechanged";
- a.Xhb = "durationchanged";
- a.UIb = "videosizechanged";
- a.Ixb = "pausedchanged";
- a.Hyb = "playingchanged";
- a.Kib = "endedchanged";
- a.lba = "busychanged";
- a.ICa = "audiotracklistchanged";
- a.eM = "audiotrackchanged";
- a.lD = "timedtexttracklistchanged";
- a.SI = "timedtexttrackchanged";
- a.dR = "trickplayframeschanged";
- a.wvb = "mutedchanged";
- a.$Ib = "volumechanged";
- a.FEb = "showsubtitle";
- a.oBb = "removesubtitle";
- a.fJb = "watermark";
- a.mha = "isReadyToTransition";
- a.TG = "inactivated";
- a.RCb = "segmentmaploaded";
- a.SCb = "segmentpresenting";
- a.gab = "autoplaywasallowed";
- a.hab = "autoplaywasblocked";
- }
- (b.wb || (b.wb = {})));
- (b.Vz || (b.Vz = {})).kQ = "playgraphsegmenttransition";
- b.w5 = function () {
- function a() {}
- a.PRa = "serverTimeChanged";
- return a;
- }
- ();
- (function (a) {
- a.zF = "aseException";
- a.AF = "aseReport";
- a.eab = "authorized";
- a.Saa = "autoplayWasAllowed";
- a.jk = "autoplayWasBlocked";
- a.xab = "bandwidthMeterAggregateUpdate";
- a.lu = "bufferUnderrun";
- a.closed = "closed";
- a.Cf = "closing";
- a.Po = "currentTimeChanged";
- a.Nx = "downloadComplete";
- a.TG = "inactivated";
- a.uLa = "licenseAdded";
- a.xO = "licensed";
- a.ks = "locationSelected";
- a.jH = "manifestClosing";
- a.fp = "manifestPresenting";
- a.YTb = "manifestSelected";
- a.K_ = "mediaBufferChanged";
- a.mja = "needLicense";
- a.e0 = "nextSegmentChosen";
- a.ao = "playbackStart";
- a.qp = "repositioned";
- a.Is = "repositioning";
- a.pRa = "safePlayRequested";
- a.KCb = "segmentAborted";
- a.H1 = "segmentPresenting";
- a.NVb = "segmentComplete";
- a.MCb = "segmentLastPts";
- a.QCb = "segmentStarting";
- a.vI = "serverSwitch";
- a.vSa = "shouldUpdateVideoDiagInfo";
- a.Zh = "skipped";
- a.KI = "subtitleError";
- a.kna = "throttledMediaTimeChanged";
- a.QI = "timedTextRebuffer";
- a.lD = "timedTextTrackListChanged";
- a.dR = "trickPlayFramesChanged";
- a.fR = "tryRecoverFromStall";
- a.Bp = "updateNextSegmentWeights";
- a.AIb = "userInitiatedPause";
- a.YUa = "userInitiatedResume";
- }
- (b.U || (b.U = {})));
- (function (a) {
- a[a.dE = 0] = "NOTLOADED";
- a[a.LOADING = 1] = "LOADING";
- a[a.xd = 2] = "NORMAL";
- a[a.CLOSING = 3] = "CLOSING";
- a[a.CLOSED = 4] = "CLOSED";
- }
- (b.qb || (b.qb = {})));
- (function (a) {
- a[a.xd = 1] = "NORMAL";
- a[a.Ce = 2] = "BUFFERING";
- a[a.Hwa = 3] = "STALLED";
- }
- (b.Ze || (b.Ze = {})));
- (function (a) {
- a[a.bg = 1] = "WAITING";
- a[a.Pc = 2] = "PLAYING";
- a[a.Lh = 3] = "PAUSED";
- a[a.br = 4] = "ENDED";
- }
- (b.kb || (b.kb = {})));
- (function (a) {
- a[a.Iz = 0] = "INITIAL";
- a[a.xt = 1] = "SEEK";
- a[a.sK = 2] = "TRACK_CHANGED";
- a[a.Yz = 3] = "SEGMENT_CHANGED";
- }
- (b.Ge || (b.Ge = {})));
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.jd = void 0;
- b.jd = "ConfigSymbol";
- }, function (d, b, a) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Vb = b.dha = b.ev = b.Od = b.uha = b.Tqb = b.Hqb = b.lha = b.dv = b.JKa = b.la = b.sha = b.isArray = b.cLa = b.Xe = b.ac = b.is = void 0;
- d = a(142);
- b.is = d.kt;
- b.ac = function (a) {
- return b.is.Xd(a);
- };
- b.Xe = function (a) {
- return b.is.OA(a);
- };
- b.cLa = function (a) {
- return b.is.baa(a);
- };
- b.isArray = function (a) {
- return b.is.eu(a);
- };
- b.sha = function (a) {
- return b.is.jCa(a);
- };
- b.la = function (a, l, q) {
- return b.is.dg(a, l, q);
- };
- b.JKa = function (a, l, q) {
- return b.is.Aaa(a, l, q);
- };
- b.dv = function (a, l, q) {
- return b.is.Er(a, l, q);
- };
- b.lha = function (a) {
- return b.is.OL(a);
- };
- b.Hqb = function (a) {
- return b.is.V8a(a);
- };
- b.Tqb = function (a) {
- return b.is.W8a(a);
- };
- b.uha = function (a) {
- return b.is.kCa(a);
- };
- b.Od = function (a) {
- return b.is.wn(a);
- };
- b.ev = function (a) {
- return b.is.Xl(a);
- };
- b.dha = function (a) {
- return b.is.NL(a);
- };
- b.Vb = function (a) {
- return b.is.SV(a);
- };
- }, function (d, b, a) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.mgb = b.Eca = b.fgb = b.jgb = b.YF = b.WM = b.igb = b.kgb = b.ZF = b.$Ea = b.hgb = b.ggb = b.Xa = b.gf = b.lgb = b.Voa = void 0;
- d = a(5);
- a = a(86);
- b.Voa = function () {
- b.Xa();
- };
- b.lgb = !0;
- b.gf = d.Z.get(a.$q);
- b.Xa = b.gf.assert.bind(b.gf);
- b.ggb = b.gf.C$a.bind(b.gf);
- b.hgb = b.gf.D$a.bind(b.gf);
- b.$Ea = b.gf.I$a.bind(b.gf);
- b.ZF = b.gf.L$a.bind(b.gf);
- b.kgb = b.gf.J$a.bind(b.gf);
- b.igb = b.gf.G$a.bind(b.gf);
- b.WM = b.gf.F$a.bind(b.gf);
- b.YF = b.gf.K$a.bind(b.gf);
- b.jgb = b.gf.H$a.bind(b.gf);
- b.fgb = b.gf.B$a.bind(b.gf);
- b.Eca = b.gf.E$a.bind(b.gf);
- b.mgb = b.gf.Bqb.bind(b.gf);
- }, function (d, b, a) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- a(0).__exportStar(a(414), b);
- }, function (d) {
- d.P = {
- yKb: {
- yt: 0,
- tPb: 1,
- name: ["STARTUP", "STEADY"]
- },
- BS: {
- Pg: 0,
- sPb: 1,
- c3a: 2,
- name: ["STARTING", "STABLE", "UNSTABLE"]
- },
- La: {
- AUDIO: 0,
- VIDEO: 1,
- name: ["AUDIO", "VIDEO"]
- },
- Ji: {
- AUDIO: 0,
- VIDEO: 1,
- name: ["AUDIO", "VIDEO"]
- },
- vg: {
- URL: 0,
- Zz: 1,
- Psa: 2,
- tt: 3,
- name: ["URL", "SERVER", "LOCATION", "NETWORK"]
- },
- Qe: {
- HAVE_NOTHING: 0,
- Gz: 1,
- Fz: 2,
- FJ: 3,
- name: ["HAVE_NOTHING", "HAVE_SOMETHING", "HAVE_MINIMUM", "HAVE_ENOUGH"]
- },
- Og: {
- fKb: 0,
- dMb: 1,
- AOb: 2,
- NEXT: 3,
- dOb: 4,
- WPb: 5,
- fMb: 6,
- XMb: 7,
- yt: 8,
- ERROR: 9,
- P6: 10,
- O1a: 11,
- t3: 12,
- U_a: 13,
- T_a: 14,
- p2a: 15,
- o2a: 16,
- name: "maxweightedbw fastselection reuseprevious nextdomain onlychoice tolowgrade fromlowgrade mcqueen startup error probeswitchback probeswitchaway bitrate locswitchback locswitchaway serverswitchback serverswitchaway".split(" ")
- },
- HLb: {
- tt: 0,
- cLb: 1,
- name: ["NETWORK", "DECODE"]
- },
- pPb: {
- eLb: "delayedSeamless",
- yMb: "hideLongTransition"
- }
- };
- }, function (d, b, a) {
- var c,
- l,
- q,
- n;
- c = a(85);
- l = a(1103);
- q = a(257);
- n = a(1100);
- d = function () {
- function a(a) {
- this.Lt = !1;
- a && (this.Vl = a);
- }
- a.prototype.vq = function (b) {
- var h;
- h = new a();
- h.source = this;
- h.JH = b;
- return h;
- };
- a.prototype.subscribe = function (a, b, f) {
- var h;
- h = this.JH;
- a = l.FGb(a, b, f);
- h ? h.call(a, this.source) : a.add(this.source || !a.Om ? this.Vl(a) : this.R$(a));
- if (a.Om && (a.Om = !1, a.fD))
- throw a.gD;
- return a;
- };
- a.prototype.R$ = function (a) {
- try {
- return this.Vl(a);
- } catch (h) {
- a.fD = !0;
- a.gD = h;
- a.error(h);
- }
- };
- a.prototype.forEach = function (a, b) {
- var f;
- f = this;
- b || (c.root.Xz && c.root.Xz.config && c.root.Xz.config.Promise ? b = c.root.Xz.config.Promise : c.root.Promise && (b = c.root.Promise));
- if (!b)
- throw Error("no Promise impl found");
- return new b(function (b, h) {
- var k;
- k = f.subscribe(function (b) {
- if (k)
- try {
- a(b);
- } catch (H) {
- h(H);
- k.unsubscribe();
- }
- else
- a(b);
- }, h, b);
- });
- };
- a.prototype.Vl = function (a) {
- return this.source.subscribe(a);
- };
- a.prototype[q.observable] = function () {
- return this;
- };
- a.prototype.$xb = function () {
- for (var a = [], b = 0; b < arguments.length; b++)
- a[b - 0] = arguments[b];
- return 0 === a.length ? this : n.ayb(a)(this);
- };
- a.prototype.bR = function () {
- var a,
- b;
- b = this;
- a || (c.root.Xz && c.root.Xz.config && c.root.Xz.config.Promise ? a = c.root.Xz.config.Promise : c.root.Promise && (a = c.root.Promise));
- if (!a)
- throw Error("no Promise impl found");
- return new a(function (a, h) {
- var f;
- b.subscribe(function (a) {
- return f = a;
- }, function (a) {
- return h(a);
- }, function () {
- return a(f);
- });
- });
- };
- a.create = function (b) {
- return new a(b);
- };
- return a;
- }
- ();
- b.ob = d;
- }, function (d, b, a) {
- var c,
- l,
- q,
- n;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.BEa = b.hHa = b.Nu = b.lm = b.pd = b.EO = b.trim = b.XN = b.eTa = b.Qka = b.oxb = b.Pd = b.xCa = b.yDa = b.tb = b.Ad = void 0;
- c = a(16);
- l = a(23);
- q = a(10);
- n = a(15);
- b.Ad = function (a, b) {
- for (var h in a)
- a.hasOwnProperty(h) && b(h, a[h]);
- };
- b.tb = b.tb || function (a, c, h) {
- var f,
- k,
- p;
- if (c)
- if (h) {
- f = h.iH;
- k = h.prefix;
- p = h.Dv;
- b.Ad(c, function (b, h) {
- if (!p || l.ac(h))
- a[(k || "") + (f ? b.toLowerCase() : b)] = h;
- });
- } else
- b.Ad(c, function (b, f) {
- a[b] = f;
- });
- return a;
- };
- b.yDa = function (a, b, h, f) {
- var k;
- if (a) {
- k = a[b];
- n.Vb(k) && (h = k.apply(a, q.slice.call(arguments, 3)));
- }
- return h;
- };
- b.xCa = function (a) {
- for (var b = {}, h = a.length; h--; )
- b[a[h]] = !0;
- return b;
- };
- b.Pd = b.Pd || function (a) {
- return parseInt(a, 10);
- };
- b.oxb = function (a) {
- return /^true$/i.test(a);
- };
- b.Qka = function (a, b) {
- return q.Kh(a + q.Pz() * (b - a));
- };
- b.eTa = function (a) {
- return JSON.stringify(a, null, " ");
- };
- b.XN = function () {
- var b,
- h;
- function a(a) {
- c.Xa(void 0 !== b[a]);
- return b[a];
- }
- b = {
- "&": "&",
- "'": "'",
- '"': """,
- "<": "<",
- ">": ">"
- };
- h = /[&'"<>]/g;
- return function (b) {
- return b.replace(h, a);
- };
- }
- ();
- b.trim = function () {
- var a;
- a = /^\s+|\s+$/gm;
- return function (b) {
- return b.replace(a, "");
- };
- }
- ();
- b.EO = function (a) {
- return Array.isArray(a) ? a : [a];
- };
- b.pd = b.pd || function (a) {
- var b,
- h,
- f;
- if (a) {
- b = a.stack;
- h = a.number;
- f = a.message;
- f || (f = "" + a);
- b ? (a = "" + b, 0 != a.indexOf(f) && (a = f + "\n" + a)) : a = f;
- h && (a += "\nnumber:" + h);
- return a;
- }
- };
- b.lm = function (a) {
- return n.la(a) ? a.toFixed(0) : "";
- };
- b.Nu = function (a) {
- return n.la(a) ? (a / 1E3).toFixed(0) : "";
- };
- b.hHa = function (a) {
- return n.la(a) ? a.toFixed() : "";
- };
- b.BEa = function (a) {
- for (var b = [], h = 0; h < a.length; h++)
- b[h] = a[h];
- return b;
- };
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.ee = void 0;
- b.ee = "IsTypeSymbol";
- }, function (d, b, a) {
- b = a(129);
- b.Cgb = 0;
- d.P = {
- EventEmitter: b,
- Ll: a(874)
- };
- }, function (d, b, a) {
- var n,
- k;
- function c(a) {
- return null !== a && void 0 !== a;
- }
- function l(a) {
- return typeof a == b.Fxa;
- }
- function q(a, b, f) {
- var h,
- p,
- q;
- if (b)
- if (f) {
- h = f.iH;
- p = f.prefix;
- q = f.Dv;
- k.Ad(b, function (b, f) {
- if (!q || c(f))
- a[(p || "") + (h ? b.toLowerCase() : b)] = f;
- });
- } else
- k.Ad(b, function (b, f) {
- a[b] = f;
- });
- return a;
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.I = b.pd = b.XN = b.zG = b.dB = b.createElement = b.Nr = b.wCa = b.HW = b.yI = b.tb = b.Xm = b.Pd = b.ev = b.Od = b.Xe = b.ac = b.Exa = b.R2a = b.S2a = b.Fxa = b.nz = b.e3 = b.Gp = b.hJ = b.gJ = b.Ei = b.XS = b.Oz = b.Pz = b.Wm = b.Ml = b.Kh = b.b6 = b.ot = b.DD = b.B6 = b.Uz = b.mj = b.$e = void 0;
- n = a(10);
- k = a(20);
- b.$e = function () {};
- b.mj = 1E3;
- b.Uz = Object.create;
- b.B6 = Object.keys;
- b.DD = Date.now;
- b.ot = Math.floor;
- b.b6 = Math.ceil;
- b.Kh = Math.round;
- b.Ml = Math.max;
- b.Wm = Math.min;
- b.Pz = Math.random;
- b.Oz = Math.abs;
- b.XS = Math.pow;
- b.Ei = "$attributes";
- b.gJ = "$children";
- b.hJ = "$name";
- b.Gp = "$text";
- b.e3 = "$parent";
- b.nz = "$sibling";
- b.Fxa = "string";
- b.S2a = "number";
- b.R2a = "function";
- b.Exa = "object";
- b.ac = c;
- b.Xe = function (a) {
- return typeof a == b.Exa;
- };
- b.Od = l;
- b.ev = function (a) {
- return l(a) && a;
- };
- b.Pd = function (a) {
- return parseInt(a, 10);
- };
- b.Xm = function (a, b, f) {
- return a >= b ? a <= f ? a : f : b;
- };
- b.tb = q;
- b.yI = function (a) {
- return q({}, a);
- };
- b.HW = function (a) {
- var k;
- for (var b = 0; b < arguments.length; ++b);
- for (var b = 0, f = arguments.length; b < f; ) {
- k = arguments[b++];
- if (c(k))
- return k;
- }
- };
- b.wCa = function (a, b) {
- for (var f, h = !0, k; h; )
- for (h = !1, f = a.length; --f; )
- k = a[f], k[b] < a[f - 1][b] && (a[f] = a[f - 1], a[f - 1] = k, h = !0);
- };
- b.Nr = function (a, b) {
- if (a.length == b.length) {
- for (var f = a.length; f--; )
- if (a[f] != b[f])
- return !1;
- return !0;
- }
- return !1;
- };
- b.createElement = function (a, b, f, c) {
- var h;
- h = n.te.createElement(a);
- b && (h.style.cssText = b);
- f && (h.innerHTML = f);
- c && k.Ad(c, function (a, b) {
- h.setAttribute(a, b);
- });
- return h;
- };
- b.dB = function (a) {
- var b;
- b = "";
- k.Ad(a, function (a, h) {
- b += (b ? ";" : "") + a + ":" + h;
- });
- return b;
- };
- b.zG = function (a, h, f) {
- var k;
- a / h > f ? (k = b.Kh(h * f), a = h) : (k = a, a = b.Kh(a / f));
- return {
- width: k,
- height: a
- };
- };
- b.XN = function () {
- var b,
- f;
- function a(a) {
- return b[a];
- }
- b = {
- "&": "&",
- "'": "'",
- '"': """,
- "<": "<",
- ">": ">"
- };
- f = /[&'"<>]/g;
- return function (b) {
- return b.replace(f, a);
- };
- }
- ();
- b.pd = function (a) {
- var b,
- f;
- if (a) {
- b = a.stack;
- f = a.number;
- a = "" + a;
- b ? (b = "" + b, 0 != b.indexOf(a) && (b = a + "\n" + b)) : b = a;
- f && (b += "\nnumber:" + f);
- return b;
- }
- };
- b.I = {
- Xk: 1001,
- Of: 1003,
- mZa: 1701,
- rra: 1713,
- nZa: 1715,
- lZa: 1721,
- sS: 1723
- };
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Oe = void 0;
- b.Oe = "ApplicationSymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.af = void 0;
- b.af = "UtilitiesSymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.yf = void 0;
- b.yf = "AsyncComponentLoaderSymbol";
- }, function (d, b, a) {
- var c;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- c = a(128);
- b.Za = !1;
- d = function () {
- function a(a, b, k, c, h) {
- this.cb = a;
- this.type = b;
- this.byteOffset = k;
- this.byteLength = c;
- this.parent = h;
- this.Rc = {};
- this.uC = c;
- }
- a.zB = function (a, b) {
- var c,
- f;
- function k(a) {
- a && a.zB && (a = a.zB(b), a.length && (c = c.concat(a)));
- }
- c = [];
- a.type === b && c.push(a);
- if (a.Rc)
- for (var h in a.Rc) {
- f = a.Rc[h];
- Array.isArray(f) && f.forEach(k);
- }
- return c;
- };
- a.SL = function (a, b) {
- void 0 === a.Rc[b.type] && (a.Rc[b.type] = []);
- a.Rc[b.type].push(b);
- };
- a.AB = function (b, c) {
- return a.zB(b, c)[0];
- };
- Object.defineProperties(a.prototype, {
- startOffset: {
- get: function () {
- return this.byteOffset;
- },
- enumerable: !0,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- length: {
- get: function () {
- return this.byteLength;
- },
- enumerable: !0,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- L: {
- get: function () {
- return this.cb;
- },
- enumerable: !0,
- configurable: !0
- }
- });
- a.prototype.Zf = function () {
- var a;
- a = this.cb.Fb();
- this.version = a >> 24;
- this.lf = a & 16777215;
- };
- a.prototype.SL = function (b) {
- a.SL(this, b);
- };
- a.prototype.zB = function (b) {
- return a.zB(this, b);
- };
- a.prototype.AB = function (b) {
- return a.AB(this, b);
- };
- a.prototype.parse = function () {
- return !0;
- };
- a.prototype.wG = function () {
- return !0;
- };
- a.prototype.Rq = function (a) {
- if ((a = this.Rc[a]) && Array.isArray(a) && 1 === a.length)
- return a[0];
- };
- a.prototype.Nk = function (a, b) {
- b = void 0 === b ? this.cb.offset : b;
- c.assert(b >= this.startOffset + 8 && b + a <= this.startOffset + this.uC, "Removal range [0x" + b.toString(16) + "-0x" + (b + a).toString(16) + ") must be in box [0x" + this.startOffset.toString(16) + "-0x" + (this.startOffset + this.uC).toString(16) + ")");
- this.cb.Nk(a, b, this);
- };
- a.prototype.k1 = function (a, b, k) {
- k = void 0 === k ? this.cb.offset : k;
- c.assert(k >= this.startOffset + 8 && k + a <= this.startOffset + this.uC, "Removal range [0x" + k.toString(16) + "-0x" + (k + a).toString(16) + ") must be in box [0x" + this.startOffset.toString(16) + "-0x" + (this.startOffset + this.uC).toString(16) + ")");
- this.cb.k1(a, b, k, this);
- };
- a.prototype.nQa = function (a, b, k) {
- if (1 < k) {
- for (var c = []; 0 < k--; )
- c.push(this.SAa(a, b));
- return c;
- }
- return this.SAa(a, b);
- };
- a.prototype.Gs = function (a) {
- var b,
- k;
- k = this;
- void 0 === b && (b = {});
- a.forEach(function (a) {
- var h,
- f;
- if ("offset" === a.type) {
- h = a.offset;
- if (0 < h % 8)
- throw Error("Requested offset " + a.offset + "is not an even byte multiple");
- k.cb.offset += h / 8;
- } else
- for (h in a) {
- f = a[h];
- b[h] = "string" === typeof f ? k.nQa(f) : k.nQa(f.type, f.length, f.u$a);
- }
- });
- return b;
- };
- a.prototype.SAa = function (a, b) {
- var k;
- k = this.byteLength - this.cb.offset + this.startOffset;
- "undefined" === typeof b && (b = k);
- switch (a) {
- case "int8":
- a = this.cb.ud();
- break;
- case "int64":
- a = this.cb.fj();
- break;
- case "int32":
- a = this.cb.Fb();
- break;
- case "int16":
- a = this.cb.kh();
- break;
- case "string":
- a = this.cb.eAb(Math.min(b, k));
- break;
- default:
- throw Error("Invalid type: " + a);
- }
- return a;
- };
- a.mc = !1;
- return a;
- }
- ();
- b.ag = d;
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.TJ = b.Az = b.Li = b.eS = void 0;
- b.eS = "ConfigurableInputsSymbol";
- b.Li = "ValidatingConfigurableInputsSymbol";
- b.Az = "ConfigNameSymbol";
- b.TJ = "InitParamsSymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.jE = b.uT = b.a4 = b.K5 = b.Zta = b.Cw = b.dya = b.rw = b.C8 = void 0;
- b.C8 = "WindowTimersSymbol";
- b.rw = "JSONSymbol";
- b.dya = "UserAgentSymbol";
- b.Cw = "NavigatorSymbol";
- b.Zta = "MediaSourceSymbol";
- b.K5 = "LocationSymbol";
- b.a4 = "DateSymbol";
- b.uT = "PerformanceSymbol";
- b.jE = "PlatformExtraInfoSymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Yj = b.st = b.ht = void 0;
- (function (a) {
- a[a.Ixa = 0] = "Test";
- a[a.Isa = 1] = "Int";
- a[a.I2a = 2] = "Staging";
- a[a.W1a = 3] = "Prod";
- }
- (b.ht || (b.ht = {})));
- (function (a) {
- a[a.BT = 0] = "PreferMsl";
- a[a.$va = 1] = "PreferNoMsl";
- a[a.S0a = 2] = "NoMsl";
- }
- (b.st || (b.st = {})));
- b.Yj = "GeneralConfigSymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.KYa = b.FD = b.tya = b.h3a = b.gi = b.yd = b.oj = b.Yq = b.hr = void 0;
- (function (a) {
- a[a.Audio = 0] = "Audio";
- a[a.oya = 1] = "Video";
- }
- (b.hr || (b.hr = {})));
- (function (a) {
- a[a.kw = 0] = "Default";
- a[a.qt = 1] = "Microsoft";
- }
- (b.Yq || (b.Yq = {})));
- (function (a) {
- a[a.kw = 0] = "Default";
- a[a.L3 = 1] = "Cast";
- a[a.O3 = 2] = "Chrome";
- a[a.qt = 3] = "Microsoft";
- a[a.Owa = 4] = "Safari";
- }
- (b.oj || (b.oj = {})));
- (function (a) {
- a[a.qK = 0] = "SD";
- a[a.yS = 1] = "HD";
- a[a.YT = 2] = "UHD";
- a[a.et = 3] = "DV";
- a[a.jt = 4] = "HDR10";
- a[a.wD = 5] = "AVCHigh";
- a[a.Mw = 6] = "VP9";
- a[a.Fi = 7] = "AV1";
- }
- (b.yd || (b.yd = {})));
- (function (a) {
- a[a.er = 0] = "Level_1_4";
- a[a.Lz = 1] = "Level_2_2";
- }
- (b.gi || (b.gi = {})));
- b.h3a = function () {};
- (function (a) {
- a[a.JOb = 0] = "Platform";
- a[a.$Kb = 1] = "CurrentTitle";
- }
- (b.tya || (b.tya = {})));
- b.FD = "DeviceCapabilitiesSymbol";
- b.KYa = function () {};
- }, function (d, b, a) {
- var n,
- k;
- function c(a, b) {
- return a && a.Hj && (b || !1 !== a.Ux);
- }
- function l(a, b, f) {
- return !n.la(a) || a < b ? b : a > f ? f : a;
- }
- function q(a) {
- if (!(this instanceof q))
- return new q(a);
- this.vd = n.la(a) ? a : void 0;
- }
- n = a(7);
- k = new(a(4)).Console("ASEJS_STREAM_SELECTOR", "media|asejs");
- d.P = {
- console: k,
- debug: !1,
- assert: function (a, b) {
- if (!a)
- throw a = b ? " : " + b : "", k.error("Assertion failed" + a), Error("ASEJS_STREAM_SELECTOR assertion failed" + a);
- },
- UB: c,
- hea: function (a, b, f) {
- var k,
- c,
- p,
- q;
- function h(b) {
- var h;
- h = a[b];
- if (!h.Hj || f && !f(h, b))
- return !1;
- q = b;
- return !0;
- }
- k = a.length;
- c = 0;
- p = k;
- n.isArray(b) && (c = l(b[0], 0, k), p = l(b[1], 0, k), b = b[2]);
- b = l(b, c - 1, p);
- for (k = b - 1; k >= c; --k)
- if (h(k))
- return q;
- for (k = b + 1; k < p; ++k)
- if (h(k))
- return q;
- return -1;
- },
- ovb: function (a, b) {
- return Math.floor(a / (125 * b) * 1E3);
- },
- hbb: function (a, b) {
- return Math.ceil(a / 1E3 * b * 125);
- },
- BTb: function (a, b) {
- return !a.slice(b + 1).some(c);
- },
- bn: q,
- An: function (a, b) {
- var f;
- return a.some(function (a, h, k) {
- f = a;
- return b(a, h, k);
- }) ? f : void 0;
- },
- rx: function (a, b) {
- var f;
- return a.some(function (a, h, k) {
- f = h;
- return b(a, h, k);
- }) ? f : -1;
- },
- EW: l
- };
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Mp = b.dk = void 0;
- b.dk = "PlatformSymbol";
- b.Mp = "PlatformMutableSymbol";
- }, function (d, b) {
- function a(a, b) {
- return "number" !== typeof a || "number" !== typeof b ? !1 : a && b ? Math.abs(a * b / c(a, b)) : 0;
- }
- function c(a, b) {
- var c;
- a = Math.abs(a);
- for (b = Math.abs(b); b; ) {
- c = b;
- b = a % b;
- a = c;
- }
- return a;
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.ka = void 0;
- d = function () {
- function b(a, b) {
- "object" === typeof a ? (this.Xt = a.Ab, this.Wl = a.S) : (this.Xt = a, this.Wl = b);
- }
- b.$wb = function (a) {
- return new b(1, a);
- };
- b.Ff = function (a) {
- return new b(a, 1E3);
- };
- b.tna = function (a, b) {
- return Math.floor(1E3 * a / b);
- };
- b.lja = function (a, b) {
- return Math.floor(a * b / 1E3);
- };
- b.max = function () {
- for (var a = [], b = 0; b < arguments.length; b++)
- a[b] = arguments[b];
- return a.reduce(function (a, b) {
- return a.greaterThan(b) ? a : b;
- });
- };
- b.min = function () {
- for (var a = [], b = 0; b < arguments.length; b++)
- a[b] = arguments[b];
- return a.reduce(function (a, b) {
- return a.lessThan(b) ? a : b;
- });
- };
- b.Hea = function (q, n) {
- var k;
- if (q.S === n.S)
- return new b(c(q.Ab, n.Ab), q.S);
- k = a(q.S, n.S);
- return b.Hea(q.Nf(k), n.Nf(k));
- };
- Object.defineProperties(b.prototype, {
- Ab: {
- get: function () {
- return this.Xt;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- S: {
- get: function () {
- return this.Wl;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- va: {
- get: function () {
- return 1E3 * this.Xt / this.Wl;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- ph: {
- get: function () {
- return this.Xt / this.Wl;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- b.prototype.Nf = function (a) {
- a /= this.S;
- return new b(Math.floor(this.Ab * a), Math.floor(this.S * a));
- };
- b.prototype.add = function (c) {
- var n;
- if (this.S === c.S)
- return new b(this.Ab + c.Ab, this.S);
- n = a(this.S, c.S);
- return this.Nf(n).add(c.Nf(n));
- };
- b.prototype.Nb = function (a) {
- return this.add(new b(-a.Ab, a.S));
- };
- b.prototype.Z_ = function (a) {
- return new b(this.Ab * a, this.S);
- };
- b.prototype.Eu = function (b) {
- var c;
- if (this.S === b.S)
- return this.Ab / b.Ab;
- c = a(this.S, b.S);
- return this.Nf(c).Eu(b.Nf(c));
- };
- b.prototype.lJa = function (b) {
- return a(this.S, b);
- };
- b.prototype.wQa = function () {
- return new b(this.S, this.Ab);
- };
- b.prototype.compare = function (b, c) {
- var k;
- if (this.S === c.S)
- return b(this.Ab, c.Ab);
- k = a(this.S, c.S);
- return b(this.Nf(k).Ab, c.Nf(k).Ab);
- };
- b.prototype.nl = function (a) {
- return this.equal(a) ? 0 : this.lessThan(a) ? -1 : 1;
- };
- b.prototype.equal = function (a) {
- return this.compare(function (a, b) {
- return a === b;
- }, a);
- };
- b.prototype.DH = function (a) {
- return this.compare(function (a, b) {
- return a !== b;
- }, a);
- };
- b.prototype.lessThan = function (a) {
- return this.compare(function (a, b) {
- return a < b;
- }, a);
- };
- b.prototype.greaterThan = function (a) {
- return this.compare(function (a, b) {
- return a > b;
- }, a);
- };
- b.prototype.py = function (a) {
- return this.compare(function (a, b) {
- return a <= b;
- }, a);
- };
- b.prototype.PG = function (a) {
- return this.compare(function (a, b) {
- return a >= b;
- }, a);
- };
- b.prototype.Fab = function (a, b) {
- var c;
- c = !1;
- void 0 === c && (c = !0);
- return c ? this.PG(a) && this.py(b) : this.greaterThan(a) && this.lessThan(b);
- };
- b.prototype.toJSON = function () {
- return {
- ticks: this.Ab,
- timescale: this.S
- };
- };
- b.prototype.toString = function () {
- return this.Ab + "/" + this.S;
- };
- b.wd = new b(0, 1);
- b.Cv = new b(1, 1E3);
- b.Tga = new b(Infinity, 1);
- return b;
- }
- ();
- b.ka = d;
- }, function (d, b, a) {
- var l,
- q,
- n,
- k;
- function c() {
- return b.IK.$B.ca(k.ia);
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.ycb = b.Mba = b.$Da = b.ZDa = b.xcb = b.CM = b.Yg = b.A5 = b.Nza = b.IK = b.f9 = void 0;
- d = a(269);
- l = a(39);
- q = a(24);
- n = a(114);
- k = a(3);
- b.f9 = d.Pb.get(l.Ii);
- b.IK = d.Pb.get(q.Oe);
- b.Nza = d.Pb.get(n.Kz);
- b.A5 = b.IK.id;
- b.Yg = function () {
- return b.IK.$b().ca(k.ia);
- };
- b.CM = function () {
- return b.f9.jf.ca(k.Pl);
- };
- b.xcb = function () {
- return b.IK.$B.ca(k.Pl);
- };
- b.ZDa = function () {
- return b.Nza.eB();
- };
- b.$Da = c;
- b.Mba = function () {
- return b.f9.jf.ca(k.ia);
- };
- b.ycb = function () {
- return c();
- };
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Qg = void 0;
- b.Qg = "SchedulerSymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Bw = "named";
- b.aT = "name";
- b.xK = "unmanaged";
- b.xua = "optional";
- b.RJ = "inject";
- b.Nz = "multi_inject";
- b.wxa = "inversify:tagged";
- b.xxa = "inversify:tagged_props";
- b.F6 = "inversify:paramtypes";
- b.YXa = "design:paramtypes";
- b.gK = "post_construct";
- }, function (d, b, a) {
- var n,
- k,
- p;
- function c(a) {
- var b,
- h,
- c,
- q;
- c = Object.getOwnPropertyNames(a);
- for (a = Object.getPrototypeOf(a); a !== Object.prototype; ) {
- try {
- for (var k = (b = void 0, n.__values(Object.getOwnPropertyNames(a))), p = k.next(); !p.done; p = k.next()) {
- q = p.value;
- -1 === c.indexOf(q) && c.push(q);
- }
- } catch (D) {
- b = {
- error: D
- };
- }
- finally {
- try {
- p && !p.done && (h = k["return"]) && h.call(k);
- }
- finally {
- if (b)
- throw b.error;
- }
- }
- a = Object.getPrototypeOf(a);
- }
- return c;
- }
- function l(a, b, c, k, p) {
- var f;
- Object.getOwnPropertyNames(a).filter(function (a) {
- return p(a) && (c || !Object.prototype.hasOwnProperty.call(b, a)) && (k || !(a in b));
- }).forEach(function (h) {
- f = Object.getOwnPropertyDescriptor(a, h);
- void 0 !== f && Object.defineProperty(b, h, f);
- });
- }
- function q(a, b, k, p) {
- var f,
- h;
- f = [];
- k || (f = Object.getOwnPropertyNames(b));
- p || (f = c(b));
- h = Object.getPrototypeOf(a);
- null !== h && h !== Object.prototype && q(h, b, k, p);
- l(a, b, !0, !0, function (a) {
- return "constructor" !== a && -1 === f.indexOf(a);
- });
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.uf = b.rdb = void 0;
- n = a(0);
- k = a(6);
- b.rdb = q;
- p = Object.getOwnPropertyNames(Function);
- b.uf = function (a, b, c, n) {
- void 0 === c && (c = !0);
- void 0 === n && (n = !0);
- n || k.assert(!c);
- a.prototype ? (q(a.prototype, b.prototype, c, n), l(a, b, c, n, function (a) {
- return -1 === p.indexOf(a);
- })) : l(a, b.prototype, c, n, function (a) {
- return -1 === p.indexOf(a);
- });
- return b;
- };
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Ii = void 0;
- b.Ii = "ClockSymbol";
- }, function (d, b, a) {
- var c,
- l,
- q,
- n,
- k;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.fe = b.mJ = b.Cxa = void 0;
- c = a(0);
- l = a(1110);
- q = a(1);
- n = a(136);
- b.Cxa = "isTestAccount";
- k = function () {
- var h;
- function a(a, b) {
- this.tEa = b;
- this.Lka = {};
- this.Yu = a.Yu;
- this.iP = a.iP;
- this.Z0 = a.Z0;
- }
- a.prototype.lHa = function () {};
- a.prototype.XBb = function (a, b) {
- this.Lka[a] = [b, this.Yu.v1];
- };
- a.prototype.nrb = function (a) {
- return l.E6.of(this.Lka[a]).map(function (a) {
- return a[1];
- }).sOa(-1) < this.Yu.v1;
- };
- a.prototype.Gnb = function (a) {
- return l.E6.of(this.Lka[a]).map(function (a) {
- return a[0];
- }).sOa(function () {
- throw Error("Invalid State Error");
- });
- };
- pa.Object.defineProperties(a.prototype, {
- a$a: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- var a,
- h;
- if (this && this.Yu && this.Yu.data) {
- a = this.Yu.data[b.Cxa];
- "undefined" !== typeof a && (h = a.toString());
- a = this.iP.Uka(h);
- a = a instanceof n.Ym ? !1 : a;
- } else
- a = !1;
- return a;
- }
- }
- });
- h = a;
- return h = c.__decorate([q.N(), c.__param(0, q.ei()), c.__param(1, q.ei())], h);
- }
- ();
- b.mJ = k;
- d = function () {
- var b;
- function a(a, b) {
- var f;
- f = k.call(this, a, b) || this;
- f.tEa = b;
- f.debug = a.debug;
- f.ja = a.Hf.yb(f.tEa);
- return f;
- }
- da(a, k);
- a.prototype.lHa = function (a, b) {
- this.ja.error("Invalid configuration value.", {
- name: a
- }, b);
- this.debug.assert(!1);
- };
- b = a;
- return b = c.__decorate([c.__param(0, q.ei()), c.__param(1, q.ei())], b);
- }
- ();
- b.fe = d;
- }, function (d, b, a) {
- var n,
- k,
- p;
- function c(a) {
- return function (b, h) {
- return b.Xka(h, a);
- };
- }
- function l(a, b) {
- return a.Z0.Uzb[b] || q(a, b);
- }
- function q(a, b) {
- a = a.Yu.data[b];
- switch (typeof a) {
- case "undefined":
- break;
- case "string":
- case "number":
- case "boolean":
- return a.toString();
- default:
- return JSON.stringify(a);
- }
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.zn = b.fla = b.object = b.Tib = b.url = b.ba = b.fh = b.Hna = b.Aqb = b.r2 = b.string = b.cw = b.Kd = b.MZ = b.config = void 0;
- n = a(48);
- k = a(3);
- p = a(136);
- b.config = function (a, b) {
- return function (f, h, c) {
- var k,
- u;
- k = void 0 !== b ? b : h;
- u = c.get;
- void 0 !== u && (c.get = function () {
- var b;
- if (!this.nrb(h))
- return this.Gnb(h);
- a: {
- b = (this.a$a ? l : q)(this, k.toString());
- if (void 0 !== b)
- if (b = a(this.iP, b), b instanceof p.Ym)
- this.lHa(k, b);
- else
- break a;
- b = u.bind(this)();
- }
- this.XBb(h, b);
- return b;
- });
- return c;
- };
- };
- b.MZ = function (a, b) {
- return a.jQa(b);
- };
- b.Kd = function (a, b) {
- return a.Uka(b);
- };
- b.cw = function (a, b) {
- return a.Pa(b);
- };
- b.string = function (a, b) {
- return a.Xka(b);
- };
- b.r2 = function (a, f) {
- return a.Qd(f, b.string);
- };
- b.Aqb = function (a, f) {
- return a.Qd(f, b.MZ);
- };
- b.Hna = function (a, f) {
- return a.Qd(f, b.cw);
- };
- b.fh = function (a, b) {
- a = a.Pa(b);
- return a instanceof p.Ym ? a : k.Jb(a);
- };
- b.ba = function (a, b) {
- a = a.Pa(b);
- return a instanceof p.Ym ? a : n.ba(a);
- };
- b.url = c(/^\S+$/);
- b.Tib = function (a) {
- return function (b, h) {
- return b.iQa(h, a);
- };
- };
- b.object = function () {
- return function (a, b) {
- return a.kQa(b);
- };
- };
- b.fla = c;
- b.zn = function (a, b) {
- return function (f, h) {
- return f.Qd(h, a, b);
- };
- };
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Gi = void 0;
- b.Gi = "Base64EncoderSymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.KT = b.wg = b.uh = void 0;
- b.uh = {
- MLa: "logblob",
- ya: "manifest",
- Fg: "license",
- events: "events",
- bind: "bind",
- COa: "pair",
- ping: "ping",
- config: "config"
- };
- d = b.wg || (b.wg = {});
- d[d.cr = 20] = "High";
- d[d.j6 = 10] = "Medium";
- d[d.VD = 0] = "Low";
- b.KT = {
- wg: "reqPriority",
- g2a: "reqAttempt",
- h2a: "reqName"
- };
- }, function (d, b, a) {
- var h,
- f,
- u,
- A,
- G,
- C,
- H;
- function c() {
- var a,
- f;
- if (a = b.MY.QAa)
- return a;
- a = C.gT.search.substr(1);
- f = a.indexOf("#");
- 0 <= f && (a = a.substr(0, f));
- a = l(a);
- return b.MY.QAa = a;
- }
- function l(a) {
- for (var b = /[+]/g, f = (a || "").split("&"), h = {}, c, k = 0; k < f.length; k++)
- a = A.trim(f[k]), c = a.indexOf("="), 0 <= c ? h[decodeURIComponent(a.substr(0, c).replace(b, "%20")).toLowerCase()] = decodeURIComponent(a.substr(c + 1).replace(b, "%20")) : h[a.toLowerCase()] = null;
- return h;
- }
- function q(a) {
- return (a = /function (.{1,})\(/.exec(a.toString())) && 1 < a.length ? a[1] : "";
- }
- function n(a) {
- return q(a.constructor);
- }
- function k(a) {
- return C.sort.call(a, function (a, b) {
- return a - b;
- });
- }
- function p(a) {
- for (var b = 0, f = a.length; f--; )
- b += a[f];
- return b;
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Myb = b.ON = b.dIa = b.e_ = b.Iyb = b.SKa = b.TWa = b.UWa = b.gkb = b.Xp = b.Scb = b.zG = b.Ejb = b.sC = b.lWa = b.l3 = b.mWa = b.IR = b.zoa = b.kWa = b.wqb = b.dB = b.hzb = b.Ija = b.Xea = b.getFunctionName = b.HH = b.vP = b.MY = b.ynb = b.fQa = b.SBa = b.wEa = b.cAb = b.Nr = b.Qba = void 0;
- h = a(9);
- f = a(16);
- u = a(5);
- A = a(20);
- G = a(23);
- C = a(10);
- H = a(15);
- b.Qba = function (a, b) {
- if (a === b)
- return !0;
- if (!a || !b)
- return !1;
- for (var f in a)
- if (a.hasOwnProperty(f) && (!b.hasOwnProperty(f) || a[f] !== b[f]))
- return !1;
- return !0;
- };
- b.Nr = b.Nr || function (a, b) {
- if (a.length == b.length) {
- for (var f = a.length; f--; )
- if (a[f] != b[f])
- return !1;
- return !0;
- }
- return !1;
- };
- b.cAb = function (a) {
- var b;
- if (a) {
- b = a.length;
- if (b)
- return b = A.Qka(0, b - 1), a[b];
- }
- };
- b.wEa = function (a, b) {
- if (a.length != b.length)
- return !1;
- a.sort();
- b.sort();
- for (var f = a.length; f--; )
- if (a[f] !== b[f])
- return !1;
- return !0;
- };
- b.SBa = function (a, b, f) {
- function h() {
- a.removeEventListener(b, h);
- f.apply(this, arguments);
- }
- a.addEventListener(b, h);
- };
- b.fQa = function () {
- var a,
- b,
- f,
- h,
- c,
- k;
- a = C.te.cookie.split("; ");
- b = a.length;
- k = {};
- for (f = 0; f < b; f++)
- if (h = A.trim(a[f]))
- c = h.indexOf("="), 0 < c && (k[h.substr(0, c)] = h.substr(c + 1));
- return k;
- };
- b.ynb = c;
- b.MY = Object.assign(c, {
- QAa: void 0
- });
- b.vP = l;
- b.HH = function (a) {
- var b;
- b = "";
- A.Ad(a, function (a, h) {
- b && (b += "&");
- f.Xa(G.Od(h) || H.la(h) || H.dha(h));
- b += encodeURIComponent(a) + "=" + encodeURIComponent(h);
- });
- return b;
- };
- b.getFunctionName = q;
- b.Xea = n;
- b.Ija = function (a) {
- var b;
- b = "";
- H.isArray(a) || H.sha(a) ? b = C.reduce.call(a, function (a, b) {
- return a + (32 <= b && 128 > b ? C.rxa(b) : ".");
- }, "") : G.Od(a) ? b = a : A.Ad(a, function (a, f) {
- b += (b ? ", " : "") + "{" + a + ": " + (H.Vb(f) ? q(f) || "function" : f) + "}";
- });
- return "[" + n(a) + " " + b + "]";
- };
- b.hzb = function (a, b) {
- a.firstChild ? a.insertBefore(b, a.firstChild) : a.appendChild(b);
- };
- b.dB = b.dB || function (a) {
- var b;
- b = "";
- A.Ad(a, function (a, f) {
- b += (b ? ";" : "") + a + ":" + f;
- });
- return b;
- };
- b.wqb = function (a, b) {
- var f;
- f = a[0];
- if (b <= f[0])
- return f.slice(1);
- for (var h = 1, c; c = a[h++]; ) {
- if (b <= c[0]) {
- a = (b - f[0]) / (c[0] - f[0]);
- b = [];
- for (h = 1; h < f.length; h++)
- b.push((f[h] || 0) + a * ((c[h] || 0) - (f[h] || 0)));
- return b;
- }
- f = c;
- }
- return f.slice(1);
- };
- b.kWa = function (a, b) {
- var c;
- for (var f = {}, h = 0; h < b.length; h++) {
- c = b[h];
- if ("string" != typeof c && "number" != typeof c)
- return !1;
- f[b[h]] = 1;
- }
- for (h = 0; h < a.length; h++)
- if (c = a[h], !f[c])
- return !1;
- return !0;
- };
- b.zoa = function (a, b) {
- 0 > a.indexOf(b) && a.push(b);
- };
- b.IR = k;
- b.mWa = p;
- b.l3 = function (a, b) {
- var f,
- h,
- c,
- k;
- f = -1;
- h = a.length;
- if (1 === arguments.length) {
- for (; ++f < h && !(null != (c = a[f]) && c <= c); )
- c = void 0;
- for (; ++f < h; )
- null != (k = a[f]) && k > c && (c = k);
- } else {
- for (; ++f < h && !(null != (c = b.call(a, a[f], f)) && c <= c); )
- c = void 0;
- for (; ++f < h; )
- null != (k = b.call(a, a[f], f)) && k > c && (c = k);
- }
- return c;
- };
- b.lWa = function (a, b) {
- var f,
- h,
- c,
- k;
- f = -1;
- h = a.length;
- if (1 === arguments.length) {
- for (; ++f < h && !(null != (c = a[f]) && c <= c); )
- c = void 0;
- for (; ++f < h; )
- null != (k = a[f]) && c > k && (c = k);
- } else {
- for (; ++f < h && !(null != (c = b.call(a, a[f], f)) && c <= c); )
- c = void 0;
- for (; ++f < h; )
- null != (k = b.call(a, a[f], f)) && c > k && (c = k);
- }
- return c;
- };
- b.sC = function (a) {
- return H.Vb(a.then) ? a : new Promise(function (b, f) {
- a.oncomplete = function () {
- b(a.result);
- };
- a.onerror = function () {
- f(a.error);
- };
- });
- };
- b.Ejb = function (a, b) {
- var h,
- c,
- p,
- u,
- n,
- q;
- function f(a) {
- 0 > h.indexOf(a) && H.la(a) && h.push(a);
- }
- a = a.slice();
- k(a);
- h = [];
- if (!b || !b.length)
- return a;
- if (!a.length)
- return [];
- c = b.length;
- try {
- for (; c--; ) {
- n = "" + b[c];
- q = G.Pd(n);
- switch (n[n.length - 1]) {
- case "-":
- for (p = a.length; p--; )
- if (u = a[p], u < q) {
- f(u);
- break;
- }
- break;
- case "+":
- for (p = 0; p < a.length; p++)
- if (u = a[p], u > q) {
- f(u);
- break;
- }
- break;
- default:
- 0 <= a.indexOf(q) && f(q);
- }
- }
- } catch (ea) {}
- h.length || h.push(a[0]);
- k(h);
- return h;
- };
- b.zG = b.zG || function (a, b, f) {
- var h;
- a / b > f ? (h = C.Kh(b * f), a = b) : (h = a, a = C.Kh(a / f));
- return {
- width: h,
- height: a
- };
- };
- b.Scb = function (a, b, f) {
- for (var h = [], c = 0; c < b; c++)
- h.push(C.XS(a[c] - f, 2));
- return C.Mta(p(h) / h.length);
- };
- b.Xp = function (a, b) {
- var f;
- f = a.length;
- b = (f - 1) * b + 1;
- if (1 === b)
- return a[0];
- if (b == f)
- return a[f - 1];
- f = C.ot(b);
- return a[f - 1] + (b - f) * (a[f] - a[f - 1]);
- };
- b.gkb = function (a, b) {
- if (!H.isArray(a))
- throw Error("boxes is not an array");
- if (0 >= a.length)
- throw Error("There are no boxes in boxes");
- b = H.isArray(b) ? b : [b];
- for (var f = a.length, h = 0; h < f; h++)
- for (var c = 0; c < b.length; c++)
- if (a[h].type == b[c])
- return a[h];
- throw Error("Box not found " + b);
- };
- b.UWa = function (a) {
- return a.Yx("trak/mdia/minf/stbl/stsd/" + h.epa + "|" + h.fpa).children.filter(function (a) {
- return "sinf" == a.type && "cenc" == a.lea.schm.vCb;
- })[0].Yx("schi/tenc").js;
- };
- b.TWa = function (a) {
- var f;
- function b(a, b) {
- var h;
- h = f[a];
- f[a] = f[b];
- f[b] = h;
- }
- f = new Uint8Array(a);
- b(0, 3);
- b(1, 2);
- b(4, 5);
- b(6, 7);
- return f;
- };
- b.SKa = function () {
- return H.Vb(C.Ki.requestMediaKeySystemAccess);
- };
- b.Iyb = function (a) {
- return function (b) {
- return b && b[a];
- };
- };
- H.Vb(ArrayBuffer.prototype.slice) || (ArrayBuffer.prototype.slice = function (a, b) {
- var f,
- h;
- void 0 === a && (a = 0);
- void 0 === b && (b = this.byteLength);
- a = Math.floor(a);
- b = Math.floor(b);
- 0 > a && (a += this.byteLength);
- 0 > b && (b += this.byteLength);
- a = Math.min(Math.max(0, a), this.byteLength);
- b = Math.min(Math.max(0, b), this.byteLength);
- if (0 >= b - a)
- return new ArrayBuffer(0);
- f = new ArrayBuffer(b - a);
- h = new Uint8Array(f);
- a = new Uint8Array(this, a, b - a);
- h.set(a);
- return f;
- });
- b.e_ = function (a) {
- return a && 0 == a.toLowerCase().indexOf("https");
- };
- b.dIa = function () {
- var a,
- b;
- a = new ArrayBuffer(4);
- b = new Uint8Array(a);
- a = new Uint32Array(a);
- b[0] = 161;
- b[1] = 178;
- b[2] = 195;
- b[3] = 212;
- return 3569595041 == a[0] ? "LE" : 2712847316 == a[0] ? "BE" : "undefined";
- };
- b.ON = function () {
- var a,
- b,
- f;
- try {
- a = /playercore.*js/;
- b = C.ir.getEntries("resource").filter(function (b) {
- return null !== a.exec(b.name);
- });
- if (b && 0 < b.length) {
- f = C.Kh(b[0].duration);
- return JSON.stringify(f);
- }
- } catch (R) {}
- };
- b.Myb = function (a, b, f) {
- if (a && a.length)
- if (f && f.icb)
- try {
- a.forEach(function (a, h) {
- var c;
- c = (h = f.icb[h]) && h.media;
- c && G.Od(c) ? (c = u.am(c).buffer, a.media = {
- arrayBuffer: c,
- length: c.byteLength,
- stream: b,
- kc: h.cdn
- }) : u.log.warn("chunk not in cache", a.eh);
- });
- } catch (R) {
- u.log.error("error reading cached chunks", R);
- }
- else
- u.log.warn("chunks not available in cached stream", f.type);
- else
- u.log.warn("chunks not available in mediabuffer", f.type);
- };
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.ck = void 0;
- b.ck = "PboCommandContextSymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.L5 = b.$j = b.US = void 0;
- b.US = "LogBatcherConfigSymbol";
- b.$j = "LogBatcherSymbol";
- b.L5 = "LogBatcherProviderSymbol";
- }, function (d, b, a) {
- var l;
- function c(a, b, c, p, h, f, u, A, d, C, H, D) {
- this.code = void 0 === a ? l.J.Xk : a;
- this.Hb = b;
- this.qd = c;
- this.im = p;
- this.ws = h;
- this.message = f;
- this.Jx = u;
- this.data = A;
- this.Nn = d;
- this.uyb = C;
- this.alert = H;
- this.waa = D;
- this.V = !1;
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Dc = void 0;
- l = a(2);
- c.pd = function (a) {
- var b,
- c,
- p;
- if (a) {
- b = a.stack;
- c = a.number;
- p = a.message;
- p || (p = "" + a);
- b ? (a = "" + b, 0 !== a.indexOf(p) && (a = p + "\n" + a)) : a = p;
- c && (a += "\nnumber:" + c);
- return a;
- }
- return "";
- };
- c.prototype.bN = function (a) {
- this.Jx = c.pd(a);
- this.data = a;
- };
- c.prototype.toString = function () {
- return JSON.stringify(this.toJSON);
- };
- c.prototype.toJSON = function () {
- return {
- code: this.code,
- subCode: this.Hb,
- extCode: this.qd,
- edgeCode: this.im,
- mslCode: this.ws,
- message: this.message,
- details: this.Jx,
- data: this.data,
- errorDisplayMessage: this.Nn,
- playbackServiceError: this.uyb
- };
- };
- c.kY = function (a, b) {
- return new c(a, l.I.Of, void 0, void 0, void 0, void 0, b.message, b.stack);
- };
- b.Dc = c;
- }, function (d, b, a) {
- var q;
- function c(a) {
- return q.yK.apply(this, arguments) || this;
- }
- function l(a) {
- return new q.Lp(a, b.yz);
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.wd = b.aua = b.F5 = b.Zq = b.yz = b.yub = b.Trb = b.ba = b.lM = b.ZWa = void 0;
- q = a(504);
- da(c, q.yK);
- b.ZWa = c;
- b.lM = l;
- b.ba = function (a) {
- return new q.Lp(a, b.Zq);
- };
- b.Trb = function (a) {
- return new q.Lp(a, b.F5);
- };
- b.yub = function (a) {
- return new q.Lp(a, b.aua);
- };
- b.yz = new c(1, "b");
- b.Zq = new c(8 * b.yz.wf, "B", b.yz);
- b.F5 = new c(1024 * b.Zq.wf, "KB", b.yz);
- b.aua = new c(1024 * b.F5.wf, "MB", b.yz);
- b.wd = l(0);
- }, function (d, b, a) {
- var l,
- q,
- n,
- k,
- p,
- h;
- function c(a) {
- return ["STANDARD", "LIMITED", "PREVIEW"][a];
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Fd = b.xa = b.ki = b.Ee = void 0;
- d = a(118);
- (function (a) {
- a[a.Ol = 0] = "STANDARD";
- a[a.uw = 1] = "LIMITED";
- a[a.zOb = 2] = "PREVIEW";
- }
- (l || (l = {})));
- q = function () {
- function a() {}
- a.tpa = "created";
- a.Iwa = "started";
- a.Nwa = "succeeded";
- a.nw = "failed";
- a.zz = "cancelled";
- a.TR = "cancelled_on_create";
- a.oJ = "cancelled_on_start";
- a.SR = "cancelled_not_encrypted";
- return a;
- }
- ();
- b.Ee = q;
- n = function () {
- function a() {}
- a.cQb = "uirequest";
- a.yOb = "prefetch_start";
- a.wOb = "prefetch_complete";
- a.xOb = "prefetch_delete";
- a.o1a = "periodic_update";
- return a;
- }
- ();
- k = {
- manifest: d.Fe.Xj.hoa,
- ldl: d.Fe.Xj.tw,
- getHeaders: d.Fe.Xj.LJ,
- getMedia: d.Fe.Xj.MEDIA
- };
- (function (a) {
- a[a.HAVE_NOTHING = 0] = "HAVE_NOTHING";
- a[a.HAVE_METADATA = 1] = "HAVE_METADATA";
- a[a.HAVE_CURRENT_DATA = 2] = "HAVE_CURRENT_DATA";
- a[a.HAVE_FUTURE_DATA = 3] = "HAVE_FUTURE_DATA";
- a[a.HAVE_ENOUGH_DATA = 4] = "HAVE_ENOUGH_DATA";
- }
- (p || (p = {})));
- (function (a) {
- a.UVa = "asl_start";
- a.SVa = "asl_comp";
- a.$Jb = "asl_exc";
- a.TVa = "asl_fail";
- a.A2a = "stf_creat";
- a.VZa = "idb_open";
- a.SZa = "idb_block";
- a.b_a = "idb_upgr";
- a.a_a = "idb_succ";
- a.TZa = "idb_error";
- a.UZa = "idb_invalid_state";
- a.XZa = "idb_open_timeout";
- a.ZZa = "idb_open_wrkarnd";
- a.$Za = "idb_storelen_exc";
- a.WZa = "idb_open_exc";
- a.YZa = "idb_timeout_invalid_storelen";
- a.r0a = "msl_load_data";
- a.t0a = "msl_load_no_data";
- a.s0a = "msl_load_failed";
- }
- (h = b.ki || (b.ki = {})));
- (function (a) {
- a.I6 = "PlaybackRequestStart";
- a.H6 = "PlaybackRequestEnd";
- a.JT = "RequestPrefetchManifestStart";
- a.IT = "RequestPrefetchManifestEnd";
- a.HT = "RequestManifestStart";
- a.GT = "RequestManifestEnd";
- a.FT = "RequestLicenseStart";
- a.ET = "RequestLicenseEnd";
- a.YR = "RequestTimedTextUrlStart";
- a.XR = "RequestTimedTextUrlEnd";
- a.WR = "RequestAudioUrlStart";
- a.VR = "RequestAudioUrlEnd";
- a.$R = "RequestVideoUrlStart";
- a.ZR = "RequestVideoUrlEnd";
- a.g3 = "AppendBufferStart";
- a.f3 = "AppendBufferEnd";
- a.R7 = "SetMediaKeysStart";
- a.Q7 = "SetMediaKeysEnd";
- a.uS = "GenerateChallengeStart";
- a.tS = "GenerateChallengeEnd";
- a.i3 = "ApplyLicenseStart";
- a.h3 = "ApplyLicenseEnd";
- }
- (b.xa || (b.xa = {})));
- b.Fd = function () {
- function a() {}
- a.S_a = l;
- a.zEa = c;
- a.Ee = q;
- a.M1a = n;
- a.hK = k;
- a.ki = h;
- a.Kra = p;
- return a;
- }
- ();
- }, function (d, b, a) {
- var c;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.zja = b.CEa = b.Xr = b.Wub = b.jEa = b.rx = b.An = void 0;
- c = a(0);
- b.An = function (a, b) {
- var c;
- return a.some(function (a, p, h) {
- c = a;
- return b(a, p, h);
- }) ? c : void 0;
- };
- b.rx = function (a, b) {
- var c;
- c = -1;
- return a.some(function (a, p) {
- c = p;
- return b(a);
- }) ? c : -1;
- };
- b.jEa = function (a) {
- return function (b, c) {
- b = a(b);
- c = a(c);
- return b < c ? -1 : b > c ? 1 : 0;
- };
- };
- b.Wub = function (a) {
- return function (b, c) {
- return a(b) < a(c) ? b : c;
- };
- };
- b.Xr = function (a) {
- var b;
- return (b = []).concat.apply(b, c.__spread(a));
- };
- b.CEa = function (a, b) {
- void 0 === b && (b = function (a) {
- return a;
- });
- return a.reduce(function (a, c) {
- c = b(c);
- return void 0 === a[c] ? a[c] = 1 : ++a[c],
- a;
- }, {});
- };
- b.zja = function (a) {
- return null !== a && void 0 !== a;
- };
- }, function (d, b, a) {
- var c;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.nvb = b.platform = b.hm = b.Ac = b.Fmb = b.$La = void 0;
- d = a(0);
- d.__exportStar(a(414), b);
- d.__exportStar(a(878), b);
- d.__exportStar(a(877), b);
- d.__exportStar(a(876), b);
- b.$La = function (c) {
- b.platform.eO(c);
- return a(875).Dta;
- };
- b.Fmb = function () {
- return a(214);
- };
- d = a(18);
- b.Ac = d;
- d = a(710);
- b.hm = d.hm;
- d = a(4);
- b.platform = d;
- c = a(709);
- b.nvb = function () {
- return {
- Aw: c.Aw
- };
- };
- }, function (d, b, a) {
- var c,
- l;
- c = a(111);
- l = a(167);
- d.P = function (a) {
- return function k(b, h) {
- switch (arguments.length) {
- case 0:
- return k;
- case 1:
- return l(b) ? k : c(function (f) {
- return a(b, f);
- });
- default:
- return l(b) && l(h) ? k : l(b) ? c(function (b) {
- return a(b, h);
- }) : l(h) ? c(function (f) {
- return a(b, f);
- }) : a(b, h);
- }
- };
- };
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Jl = void 0;
- b.Jl = "EmeConfigSymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.wm = b.vFb = b.XNa = void 0;
- b.XNa = function (a, b) {
- return a - b;
- };
- b.vFb = function (a, b) {
- return a.localeCompare(b);
- };
- b.wm = function (a, b) {
- var c;
- c = Object.getOwnPropertyDescriptor(a, b);
- c && Object.defineProperty(a, b, {
- configurable: c.configurable,
- enumerable: !1,
- value: c.value,
- writable: c.writable
- });
- };
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.BYa = "Cannot apply @injectable decorator multiple times.";
- b.CYa = "Metadata key was used more than once in a parameter:";
- b.ZJ = "NULL argument";
- b.Lsa = "Key Not Found";
- b.IVa = "Ambiguous match found for serviceIdentifier:";
- b.eXa = "Could not unbind serviceIdentifier:";
- b.K0a = "No matching bindings found for serviceIdentifier:";
- b.j0a = "Missing required @injectable annotation in:";
- b.k0a = "Missing required @inject or @multiInject annotation in:";
- b.a3a = function (a) {
- return "@inject called with undefined this could mean that the class " + a + " has a circular dependency problem. You can use a LazyServiceIdentifer to overcome this limitation.";
- };
- b.hXa = "Circular dependency found:";
- b.ENb = "Sorry, this feature is not fully implemented yet.";
- b.x_a = "Invalid binding type:";
- b.L0a = "No snapshot available to restore.";
- b.A_a = "Invalid return type in middleware. Middleware must return!";
- b.OMb = "Value provided to function binding must be a function!";
- b.C_a = "The toSelf function can only be applied when a constructor is used as service identifier";
- b.y_a = "The @inject @multiInject @tagged and @named decorators must be applied to the parameters of a class constructor or a class property.";
- b.JVa = function () {
- for (var a = [], b = 0; b < arguments.length; b++)
- a[b] = arguments[b];
- return "The number of constructor arguments in the derived class " + (a[0] + " must be >= than the number of constructor arguments of its base class.");
- };
- b.wXa = "Invalid Container constructor argument. Container options must be an object.";
- b.uXa = "Invalid Container option. Default scope must be a string ('singleton' or 'transient').";
- b.tXa = "Invalid Container option. Auto bind injectable must be a boolean";
- b.vXa = "Invalid Container option. Skip base check must be a boolean";
- b.x0a = "Cannot apply @postConstruct decorator multiple times in the same class";
- b.L1a = function () {
- for (var a = [], b = 0; b < arguments.length; b++)
- a[b] = arguments[b];
- return "@postConstruct error in class " + a[0] + ": " + a[1];
- };
- b.iXa = function () {
- for (var a = [], b = 0; b < arguments.length; b++)
- a[b] = arguments[b];
- return "It looks like there is a circular dependency " + ("in one of the '" + a[0] + "' bindings. Please investigate bindings with") + ("service identifier '" + a[1] + "'.");
- };
- b.x2a = "Maximum call stack size exceeded";
- }, function (d, b, a) {
- var c,
- l;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.aZ = b.OG = b.bZ = b.fy = b.sl = b.Me = void 0;
- d = a(76);
- c = a(59);
- l = a(10);
- b.Me = new d.kj();
- b.sl = 1;
- b.fy = 2;
- b.bZ = 3;
- b.OG = 4;
- b.aZ = 5;
- c.tc(function () {
- var c,
- k,
- p;
- function a(a, b) {
- if (k)
- k.on(a, b);
- else
- t.addEventListener(a, b);
- }
- c = t.jQuery;
- k = c && c(t);
- c = (c = t.netflix) && c.cadmium && c.cadmium.addBeforeUnloadHandler;
- p = l.te.hidden;
- c ? c(function (a) {
- b.Me.Xb(b.sl, a);
- }) : a("beforeunload", function (a) {
- b.Me.Xb(b.sl, a);
- });
- a("keydown", function (a) {
- b.Me.Xb(b.fy, a);
- });
- a("resize", function () {
- b.Me.Xb(b.bZ);
- });
- l.te.addEventListener("visibilitychange", function () {
- p !== l.te.hidden && (p = l.te.hidden, b.Me.Xb(b.OG));
- });
- });
- (function () {
- t.addEventListener("error", function (a) {
- b.Me.Xb(b.aZ, a);
- return !0;
- });
- }
- ());
- }, function (d, b, a) {
- var l,
- q;
- function c(a, k) {
- var p;
- p = b.Zm[0];
- p == k && (p = b.Zm[1]);
- p ? p.close(function () {
- c(a, k);
- }) : a && a(l.kd);
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Ava = b.zva = b.m7 = b.n7 = b.kE = b.p7 = b.o7 = b.s7 = b.r7 = b.Zm = b.t7 = b.q7 = void 0;
- l = a(9);
- q = a(16);
- b.q7 = c;
- b.t7 = function (a, c) {
- switch (a) {
- case b.o7:
- b.r7.push(c);
- return;
- case b.p7:
- b.s7.push(c);
- return;
- }
- q.Xa(!1);
- };
- b.Zm = [];
- b.r7 = [];
- b.s7 = [];
- b.o7 = 1;
- b.p7 = 3;
- b.kE = {
- index: 0,
- lvb: void 0,
- pea: void 0
- };
- b.n7 = "network";
- b.m7 = "media";
- b.zva = "timedtext";
- b.Ava = "playback";
- }, function (d) {
- d.P = function (b, a) {
- for (var c in b)
- b.hasOwnProperty(c) && (a[c] = b[c]);
- return a;
- };
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.tc = void 0;
- b.tc = function (a) {
- return setTimeout(a, 0);
- };
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Vk = void 0;
- b.Vk = "PlayerErrorFactorySymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Wk = b.tg = b.W = void 0;
- d = function () {
- function a() {}
- a.DJ = "playready-h264mpl30-dash";
- a.ND = "playready-h264mpl31-dash";
- a.O4 = "playready-h264mpl40-dash";
- a.tZa = "playready-h264hpl22-dash";
- a.wS = "playready-h264hpl30-dash";
- a.xS = "playready-h264hpl31-dash";
- a.N4 = "playready-h264hpl40-dash";
- a.a5 = "hevc-main-L30-dash-cenc";
- a.b5 = "hevc-main-L31-dash-cenc";
- a.c5 = "hevc-main-L40-dash-cenc";
- a.d5 = "hevc-main-L41-dash-cenc";
- a.e5 = "hevc-main-L50-dash-cenc";
- a.f5 = "hevc-main-L51-dash-cenc";
- a.W4 = "hevc-main10-L30-dash-cenc";
- a.X4 = "hevc-main10-L31-dash-cenc";
- a.Y4 = "hevc-main10-L40-dash-cenc";
- a.Z4 = "hevc-main10-L41-dash-cenc";
- a.PD = "hevc-main10-L50-dash-cenc";
- a.QD = "hevc-main10-L51-dash-cenc";
- a.CS = "hevc-main10-L30-dash-cenc-prk";
- a.ES = "hevc-main10-L31-dash-cenc-prk";
- a.GS = "hevc-main10-L40-dash-cenc-prk";
- a.IS = "hevc-main10-L41-dash-cenc-prk";
- a.DS = "hevc-main10-L30-dash-cenc-prk-do";
- a.FS = "hevc-main10-L31-dash-cenc-prk-do";
- a.HS = "hevc-main10-L40-dash-cenc-prk-do";
- a.JS = "hevc-main10-L41-dash-cenc-prk-do";
- a.KS = "hevc-main10-L50-dash-cenc-prk-do";
- a.LS = "hevc-main10-L51-dash-cenc-prk-do";
- a.uMb = "hevc-main-L30-L31-dash-cenc-tl";
- a.vMb = "hevc-main-L31-L40-dash-cenc-tl";
- a.wMb = "hevc-main-L40-L41-dash-cenc-tl";
- a.xMb = "hevc-main-L50-L51-dash-cenc-tl";
- a.qMb = "hevc-main10-L30-L31-dash-cenc-tl";
- a.rMb = "hevc-main10-L31-L40-dash-cenc-tl";
- a.sMb = "hevc-main10-L40-L41-dash-cenc-tl";
- a.tMb = "hevc-main10-L50-L51-dash-cenc-tl";
- a.tJ = "hevc-dv5-main10-L30-dash-cenc-prk";
- a.uJ = "hevc-dv5-main10-L31-dash-cenc-prk";
- a.CD = "hevc-dv5-main10-L40-dash-cenc-prk";
- a.vJ = "hevc-dv5-main10-L41-dash-cenc-prk";
- a.wJ = "hevc-dv5-main10-L50-dash-cenc-prk";
- a.gS = "hevc-dv5-main10-L51-dash-cenc-prk";
- a.P4 = "hevc-hdr-main10-L30-dash-cenc";
- a.Q4 = "hevc-hdr-main10-L31-dash-cenc";
- a.R4 = "hevc-hdr-main10-L40-dash-cenc";
- a.S4 = "hevc-hdr-main10-L41-dash-cenc";
- a.T4 = "hevc-hdr-main10-L50-dash-cenc";
- a.U4 = "hevc-hdr-main10-L51-dash-cenc";
- a.GJ = "hevc-hdr-main10-L30-dash-cenc-prk";
- a.HJ = "hevc-hdr-main10-L31-dash-cenc-prk";
- a.OD = "hevc-hdr-main10-L40-dash-cenc-prk";
- a.IJ = "hevc-hdr-main10-L41-dash-cenc-prk";
- a.zS = "hevc-hdr-main10-L50-dash-cenc-prk";
- a.AS = "hevc-hdr-main10-L51-dash-cenc-prk";
- a.lya = "vp9-profile0-L21-dash-cenc";
- a.$T = "vp9-profile0-L30-dash-cenc";
- a.aU = "vp9-profile0-L31-dash-cenc";
- a.bU = "vp9-profile0-L40-dash-cenc";
- a.gya = "vp9-profile2-L30-dash-cenc-prk";
- a.hya = "vp9-profile2-L31-dash-cenc-prk";
- a.iya = "vp9-profile2-L40-dash-cenc-prk";
- a.jya = "vp9-profile2-L50-dash-cenc-prk";
- a.kya = "vp9-profile2-L51-dash-cenc-prk";
- a.ioa = "av1-main-L20-dash-cbcs-prk";
- a.joa = "av1-main-L21-dash-cbcs-prk";
- a.koa = "av1-main-L30-dash-cbcs-prk";
- a.loa = "av1-main-L31-dash-cbcs-prk";
- a.moa = "av1-main-L40-dash-cbcs-prk";
- a.noa = "av1-main-L41-dash-cbcs-prk";
- a.ooa = "av1-main-L50-dash-cbcs-prk";
- a.poa = "av1-main-L51-dash-cbcs-prk";
- a.k2a = [a.DJ];
- a.xZa = [a.ND, a.O4];
- a.Y2a = [a.a5, a.b5, a.c5, a.d5, a.e5, a.f5];
- a.$2a = [a.W4, a.X4, a.Y4, a.Z4, a.PD, a.QD];
- a.bya = [a.CS, a.ES, a.GS, a.IS, a.PD, a.QD];
- a.Z2a = [a.DS, a.FS, a.HS, a.JS, a.KS, a.LS];
- a.wZa = [a.P4, a.Q4, a.R4, a.S4, a.T4, a.U4];
- a.Hra = [a.GJ, a.HJ, a.OD, a.IJ, a.zS, a.AS];
- a.mqa = [a.tJ, a.CD, a.wJ, a.uJ, a.vJ, a.gS];
- a.pLb = [a.tJ, a.uJ, a.CD, a.vJ, a.wJ];
- if (!useAVC){
- a.fWa = [a.wS, a.xS, a.N4];
- }
- a.jQb = [a.$T, a.aU, a.bU];
- a.Mw = [a.lya, a.$T, a.aU, a.bU, a.gya, a.hya, a.iya, a.jya, a.kya];
- a.$Va = [a.ioa, a.joa, a.koa];
- a.ZVa = [a.loa, a.moa, a.noa];
- a.aWa = [a.ooa, a.poa];
- a.Fi = [].concat(a.$Va, a.ZVa, a.aWa);
- a.Gra = a.k2a.concat(a.xZa);
- a.vZa = a.Y2a;
- a.uZa = a.$2a;
- a.iWa = [].concat(a.Gra, a.vZa, a.uZa, a.bya, a.wZa, a.Hra, a.mqa, a.Mw, a.Fi);
- return a;
- }
- ();
- b.W = d;
- b.tg = function () {
- function a() {}
- a.JJ = "heaac-2-dash";
- a.yZa = "heaac-5.1-dash";
- a.KJ = "heaac-2hq-dash";
- a.eU = "xheaac-dash";
- a.rJ = "ddplus-2.0-dash";
- a.V3 = "ddplus-5.1-dash";
- a.sJ = "ddplus-atmos-dash";
- a.V4 = "playready-heaac-2-dash";
- a.AZa = "heaac-2-dash-enc";
- a.EXa = "ddplus-2.0-dash-enc";
- a.FXa = "ddplus-5.1-dash-enc";
- a.zZa = "playready-heaac-2-dash-enc";
- a.iWa = [a.JJ, a.KJ, a.rJ, a.V3, a.sJ, a.V4, a.AZa, a.EXa, a.FXa, a.zZa];
- return a;
- }
- ();
- b.Wk = function () {
- function a() {}
- a.t2a = "simplesdh";
- a.Y3 = "dfxp-ls-sdh";
- a.aE = "nflx-cmisc";
- a.qPb = "simplesdh-enc";
- a.iLb = "dfxp-ls-sdh-enc";
- a.dT = "nflx-cmisc-enc";
- return a;
- }
- ();
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.no = void 0;
- b.no = "LogMessageFactorySymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Za = void 0;
- b.Za = !1;
- }, function (d, b) {
- function a(a) {
- var b;
- b = Error.call(this, "TimeoutError");
- this.message = b.message;
- "stack" in b && (this.stack = b.stack);
- this.interval = a;
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Fw = b.gn = void 0;
- da(a, Error);
- b.gn = a;
- b.Fw = "PromiseTimerSymbol";
- }, function (d, b, a) {
- var c;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- c = a(37);
- d = function () {
- function a(a, b) {
- this.key = a;
- this.value = b;
- }
- a.prototype.toString = function () {
- return this.key === c.Bw ? "named: " + this.value.toString() + " " : "tagged: { key:" + this.key.toString() + ", value: " + this.value + " }";
- };
- return a;
- }
- ();
- b.Metadata = d;
- }, function (d, b, a) {
- var c,
- l,
- q,
- n,
- k,
- p;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.rh = void 0;
- c = a(0);
- l = a(1);
- q = a(313);
- n = a(3);
- k = a(47);
- p = a(30);
- d = function () {
- var b;
- function a(a, b, f, h, c, k) {
- this.context = a;
- this.errorCode = b;
- this.cCb = f;
- this.qla = c;
- this.w$ = k;
- this.name = h;
- }
- a.prototype.send = function (a, b, f, h, c, k, n) {
- var u;
- n = void 0 === n ? p.st.BT : n;
- u = this;
- return this.Ulb(a, b, f, n, h, c, k).then(function (a) {
- return u.context.uhb.send(a.context, a.request);
- });
- };
- a.prototype.Ulb = function (a, b, f, h, c, k, p) {
- var u,
- n;
- try {
- u = this.context.EBb.create(this.context.RG.eB(), b, f, c, h);
- n = this.dbb(a, h, k, p);
- return Promise.resolve({
- context: n,
- request: u
- });
- } catch (P) {
- return Promise.reject(P);
- }
- };
- a.prototype.dbb = function (a, b, f, h) {
- return {
- We: this.context.We,
- log: a,
- mk: this.name,
- url: this.context.hIb(q.nDa(this.context.eg, this.context.Lj, this.name, b)),
- Dla: this.cCb,
- timeout: n.ph(59),
- headers: q.mDa(this.context.Lj, this.context.Kx),
- pla: this.pla,
- qla: void 0 !== f ? f : this.qla,
- Jab: h
- };
- };
- a.prototype.mm = function (a) {
- return a instanceof k.Dc ? a : q.mm(this.errorCode, a);
- };
- a.prototype.ODa = function (a) {
- var b;
- b = this;
- a.forEach(function (a) {
- if (b.mO(a))
- throw a.error;
- });
- };
- a.prototype.mO = function (a) {
- return void 0 !== a.error;
- };
- pa.Object.defineProperties(a.prototype, {
- pla: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.w$;
- }
- }
- });
- b = a;
- return b = c.__decorate([l.N(), c.__param(0, l.ei()), c.__param(1, l.ei()), c.__param(2, l.ei()), c.__param(3, l.ei()), c.__param(4, l.ei()), c.__param(5, l.ei())], b);
- }
- ();
- b.rh = d;
- }, function (d, b, a) {
- var f,
- u,
- A,
- G,
- C,
- H,
- D,
- K,
- g,
- R,
- P,
- m,
- z,
- r,
- U,
- ea;
- function c(a) {
- var b,
- f,
- h,
- c;
- b = a.url.split("?");
- f = b[0];
- h = "sc=" + a.wCb;
- c = a.qDa ? "random=" + (1E17 * P.Pz()).toFixed(0) : "";
- f = b[1] ? f + ("?" + b[1] + "&" + h) : f + ("?" + h);
- f = f + (c ? "&" + c : "");
- a.kc && !G.e_(f) && (a = u.config && u.config.xba) && (f = a.replace("{URL}", f).replace("{EURL}", encodeURIComponent(f)));
- return f;
- }
- function l(a) {
- var b,
- f,
- h,
- c;
- b = a.url.split("?");
- f = b[0];
- h = "bb_reason=" + a.reason;
- c = a.qDa ? "random=" + (1E17 * P.Pz()).toFixed(0) : "";
- f = b[1] ? f + ("?" + b[1] + "&" + h) : f + ("?" + h);
- f = f + (c ? "&" + c : "");
- a.kc && !G.e_(f) && (a = u.config && u.config.xba) && (f = a.replace("{URL}", f).replace("{EURL}", encodeURIComponent(f)));
- return f;
- }
- function q(a, b) {
- var f,
- h,
- c,
- k;
- f = a.url.split("?");
- h = f[0];
- c = n(a);
- c && (b.Iq = c, (void 0 === a.Tq ? u.config.Tq : a.Tq) ? (a.headers = a.headers || {}, a.headers.Range = "bytes=" + c) : (b.Iq = c, h = "/" == h[h.length - 1] ? h + "range/" : h + "/range/", h += c));
- c = a.qDa ? "random=" + (1E17 * P.Pz()).toFixed(0) : "";
- u.config.sB && a.Y1 && (k = "sc=" + a.Y1, c = k + (c ? "&" + c : ""));
- h = f[1] ? h + ("?" + f[1] + (c ? "&" + c : "")) : h + (c ? "?" + c : "");
- a.kc && !G.e_(h) && (a = u.config && u.config.xba) && (h = a.replace("{URL}", h).replace("{EURL}", encodeURIComponent(h)));
- b.url = h;
- }
- function n(a) {
- var b;
- b = a.offset;
- if (void 0 !== b)
- return g.WM(b), void 0 !== a.length ? (a = a.offset + a.length - 1, g.WM(a), b + "-" + a) : b + "-";
- }
- function k() {
- return !1 !== P.Ki.onLine;
- }
- function p(a, f, h, c) {
- var k,
- p;
- k = c.tka;
- p = c.headers;
- a.open(k ? "POST" : "GET", f, !h);
- switch (c.responseType) {
- case b.YN:
- a.responseType = "arraybuffer";
- break;
- case b.Cga:
- R.yDa(a, "overrideMimeType", void 0, "text/xml");
- }
- k && (f = {
- "Content-Type": H.Od(k) ? "text/plain" : "application/x-octet-stream"
- }, p = p ? H.tb(f, p) : f);
- p && R.Ad(p, function (b, f) {
- a.setRequestHeader(b, f);
- });
- c.withCredentials && (a.withCredentials = !0);
- void 0 !== a.msCaching && (a.msCaching = "disabled");
- k ? a.send(k) : a.send();
- }
- function h(a, f) {
- switch (f.type) {
- case b.YN:
- return a.response || new ArrayBuffer(0);
- case b.Cga:
- return a.responseXML;
- default:
- return a.responseText;
- }
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.YN = b.Cga = b.Bga = b.Dga = b.wZ = b.XJa = b.WJa = b.uZ = b.o3a = b.p3a = b.Ipb = b.vZ = b.Fpb = b.Gpb = b.Epb = b.Hpb = b.We = void 0;
- f = a(76);
- u = a(12);
- A = a(9);
- G = a(44);
- C = a(35);
- H = a(23);
- D = a(2);
- K = a(5);
- g = a(16);
- R = a(20);
- P = a(10);
- m = a(59);
- z = a(15);
- r = a(26);
- U = {
- h8: 1,
- nQb: 2,
- sWa: 3
- };
- b.We = function () {
- var G,
- J,
- R,
- P;
- function a(a) {
- var b;
- try {
- b = a.url;
- z.uha(b) ? 0 === b.indexOf("https") ? P.ssl++ : 0 === b.indexOf("http") ? P["non-ssl"]++ : P.invalid++ : P.invalid++;
- } catch (ia) {}
- }
- function n() {
- J.Xb(b.XJa);
- J.Xb(b.Dga);
- }
- function d() {
- J.Xb(b.wZ);
- J.Xb(b.Dga);
- }
- G = K.Ah("Http");
- J = new f.kj();
- R = 0;
- P = {
- ssl: 0,
- "non-ssl": 0,
- invalid: 0
- };
- K.Z.get(r.yf).register(D.J.usa, function (a) {
- u.config.pIb && (t.addEventListener("online", n), t.addEventListener("offline", d), b.vZ = k);
- a(A.kd);
- });
- return {
- addEventListener: J.addListener,
- removeEventListener: J.removeListener,
- download: function (f, c) {
- var T,
- U,
- V,
- t,
- N,
- ta,
- ha,
- Q,
- na,
- ma,
- ja;
- function k() {
- var a;
- k = H.$e;
- ja && (clearTimeout(ja), ja = null);
- J.removeListener(b.wZ, d);
- na && (na.onloadstart = null, na.onreadystatechange = null, na.onprogress = null, na.onerror = null, na.onload = null, na = na.onabort = null);
- Q.V || (Q.ha != D.I.ow ? T.warn("Download failed", U, D.Kp(Q)) : T.trace("Download aborted", U));
- a = V;
- V = void 0;
- for (var f = a.length; f--; )
- (function () {
- var b;
- b = a[f];
- m.tc(function () {
- b(Q);
- });
- }
- ());
- J.Xb(b.WJa, Q, !0);
- }
- function n() {
- ja && (clearTimeout(ja), ja = null);
- ja = setTimeout(P, ma ? ha : ta);
- }
- function l(a, b, f, h) {
- var c,
- p;
- Q.V = !1;
- Q.ha = a;
- c = C.Yg();
- p = Q.Bk;
- p.oh = p.oh || c;
- p.Im = p.Im || c;
- 0 < b && (Q.Ui = Q.we = b);
- f && (Q.fb = f);
- h && (Q.Ty = h);
- a !== D.I.MJ && a !== D.I.Hz && a !== D.I.PJ || !na || (na.onabort = null, r());
- k();
- }
- function A(a) {
- var b,
- f;
- try {
- f = a.getResponseHeader("X-Netflix.Retry.Server.Policy");
- f && (b = JSON.parse(f));
- } catch (jb) {}
- return b;
- }
- function d() {
- b.vZ() || l(D.I.MJ);
- }
- function P() {
- l(ma ? D.I.Hz : D.I.PJ);
- }
- function r() {
- try {
- na && na.abort();
- } catch (Rc) {}
- }
- function ba() {
- l(D.I.ow);
- }
- g.Xa(c);
- T = f.j && f.j.log && K.$g(f.j, "Http") || G;
- U = {
- Num: R++
- };
- V = [c];
- t = {};
- ta = f.LW || u.config.LW;
- ha = f.vja || u.config.vja;
- a(f);
- Q = function () {
- var a,
- b,
- h;
- a = H.$e;
- b = H.$e;
- h = H.$e;
- return {
- request: f,
- type: f.responseType,
- Bk: t,
- abort: r,
- timeout: P,
- haa: function (a) {
- k !== H.$e && (g.Xa(V, "Callback should be added before download starts."), V && V.unshift(a));
- },
- p0: function (a) {
- h(a);
- },
- r0: function (b) {
- a(b);
- },
- Av: function (a) {
- b(a);
- },
- NDb: function (a) {
- h = a;
- },
- VDb: function (b) {
- a = b;
- },
- HDb: function (a) {
- b = a;
- }
- };
- }
- ();
- m.tc(function () {
- var a,
- c;
- if (z.uha(f.url))
- try {
- if (q(f, Q), N = Q.url, g.ZF(N), U.Url = N, b.vZ()) {
- na = new XMLHttpRequest();
- a = u.config.uIb && "undefined" != typeof na.onloadstart;
- a && (na.onloadstart = function () {
- var a;
- a = C.Yg();
- t.requestTime = a;
- Q.p0({
- mediaRequest: f,
- timestamp: a
- });
- });
- na.onreadystatechange = function () {
- if (2 == na.readyState) {
- ma = !0;
- t.oh = C.Yg();
- na.onreadystatechange = null;
- n();
- for (var a = Q, b = na.getAllResponseHeaders().split("\n"), h = b.length, c, k, p = {}; h--; )
- if (c = b[h])
- k = c.indexOf(": "), 1 <= k && k < c.length - 1 && (p[c.substr(0, k)] = c.substr(k + 2));
- a.headers = p;
- Q.r0({
- timestamp: t.oh,
- connect: !0,
- mediaRequest: f,
- start: t.requestTime,
- rt: [t.oh - t.requestTime]
- });
- }
- };
- na.onprogress = function (a) {
- ma = !0;
- t.Fx = a.loaded;
- n();
- a = {
- mediaRequest: f,
- bytes: a.loaded,
- tempstamp: C.Yg(),
- bytesLoaded: a.loaded
- };
- Q.r0(a);
- };
- na.onload = function () {
- var a;
- if (k !== H.$e) {
- g.Xa(void 0 === t.Im);
- t.Im = C.Yg();
- t.oh = t.oh || t.Im;
- if (200 <= na.status && 299 >= na.status)
- if (a = h(na, Q), f.og)
- try {
- Q.content = f.og(a, Q);
- Q.V = !0;
- Q.parsed = !0;
- Q.raw = a;
- } catch (jb) {
- T.warn("Exception parsing response", jb, U);
- l(D.I.h5, void 0, H.pd(jb));
- }
- else
- Q.parsed = !1, Q.content = a, Q.V = !0;
- else
- na.status == ea ? l(D.I.OJ, na.status) : l(D.I.NJ, na.status, na.response, A(na));
- k();
- }
- };
- na.onabort = ba;
- na.onerror = function () {
- var a,
- b;
- a = na.status;
- "undefined" !== typeof u.config.gHa && (a = u.config.gHa);
- if (0 < a)
- if (a == ea)
- l(D.I.OJ, a);
- else {
- try {
- b = na.responseText;
- } catch (nf) {}
- l(D.I.NJ, a, b, A(na));
- }
- else
- l(D.I.QJ);
- };
- c = C.Yg();
- p(na, N, !1, f);
- J.Xb(b.uZ, Q, !0);
- a || (t.requestTime = c, Q.p0({
- mediaRequest: f,
- timestamp: c
- }));
- n();
- J.addListener(b.wZ, d);
- } else
- m.tc(l.bind(void 0, D.I.MJ));
- } catch (Ge) {
- T.error("Exception starting download", Ge, U);
- l(D.I.l5, void 0, H.pd(Ge));
- }
- else
- l(D.I.Mra);
- });
- return Q;
- },
- Zb: P,
- JUb: function (a) {
- var b;
- b = new XMLHttpRequest();
- a = l(a);
- b.open("HEAD", a);
- b.onreadystatechange = function () {};
- b.send();
- },
- HEb: function (a) {
- var b;
- b = new XMLHttpRequest();
- a = c(a);
- b.open("HEAD", a);
- b.onreadystatechange = function () {};
- b.send();
- },
- uzb: function (a) {
- var b,
- f,
- h;
- b = new XMLHttpRequest();
- f = a.url;
- h = a.rzb;
- b.open("HEAD", f);
- b.timeout = Math.max(2 * h.btb, u.config.Fka);
- b.onreadystatechange = function () {
- 2 == b.readyState && h && h.xs({
- url: f
- });
- };
- b.ontimeout = b.onerror = function () {
- h && h.Dja({
- url: f
- });
- };
- b.send();
- },
- c2a: U
- };
- }
- ();
- b.Hpb = c;
- b.Epb = l;
- b.Gpb = q;
- b.Fpb = n;
- b.vZ = A.owa;
- b.Ipb = k;
- b.p3a = p;
- b.o3a = h;
- b.uZ = 1;
- b.WJa = 2;
- b.XJa = 3;
- b.wZ = 4;
- b.Dga = 5;
- b.Bga = 1;
- b.Cga = 2;
- b.YN = 3;
- ea = 420;
- t._cad_global.http = b.We;
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.i4 = b.ED = b.vS = b.rS = void 0;
- b.rS = "EventSourceSymbol";
- b.vS = "GlobalEventSourceSymbol";
- b.ED = "DebugEventSourceSymbol";
- b.i4 = "DiagnosticsEventSourceSymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.ZD = b.Kw = void 0;
- b.Kw = "TimingApiSymbol";
- b.ZD = "MilestoneTimingApiSymbol";
- }, function (d, b, a) {
- var c,
- l,
- q,
- n,
- k,
- p;
- c = this && this.__extends || function (a, b) {
- function f() {
- this.constructor = a;
- }
- for (var h in b)
- b.hasOwnProperty(h) && (a[h] = b[h]);
- a.prototype = null === b ? Object.create(b) : (f.prototype = b.prototype, new f());
- };
- l = a(497);
- d = a(115);
- q = a(259);
- n = a(258);
- k = function (a) {
- function b(b, f, h) {
- var c;
- a.call(this);
- this.gD = null;
- this.Eg = this.Om = this.fD = !1;
- switch (arguments.length) {
- case 0:
- this.destination = q.empty;
- break;
- case 1:
- if (!b) {
- this.destination = q.empty;
- break;
- }
- if ("object" === typeof b) {
- if (b instanceof k || "syncErrorThrowable" in b && b[n.QC]) {
- c = b[n.QC]();
- this.Om = c.Om;
- this.destination = c;
- c.add(this);
- } else
- this.Om = !0, this.destination = new p(this, b);
- break;
- }
- default:
- this.Om = !0,
- this.destination = new p(this, b, f, h);
- }
- }
- c(b, a);
- b.prototype[n.QC] = function () {
- return this;
- };
- b.create = function (a, f, h) {
- a = new b(a, f, h);
- a.Om = !1;
- return a;
- };
- b.prototype.next = function (a) {
- this.Eg || this.cl(a);
- };
- b.prototype.error = function (a) {
- this.Eg || (this.Eg = !0, this.bf(a));
- };
- b.prototype.complete = function () {
- this.Eg || (this.Eg = !0, this.Td());
- };
- b.prototype.unsubscribe = function () {
- this.closed || (this.Eg = !0, a.prototype.unsubscribe.call(this));
- };
- b.prototype.cl = function (a) {
- this.destination.next(a);
- };
- b.prototype.bf = function (a) {
- this.destination.error(a);
- this.unsubscribe();
- };
- b.prototype.Td = function () {
- this.destination.complete();
- this.unsubscribe();
- };
- b.prototype.F8a = function () {
- var a,
- b;
- a = this.xo;
- b = this.uA;
- this.uA = this.xo = null;
- this.unsubscribe();
- this.Eg = this.closed = !1;
- this.xo = a;
- this.uA = b;
- };
- return b;
- }
- (d.Jw);
- b.en = k;
- p = function (a) {
- function b(b, f, h, c) {
- var k;
- a.call(this);
- this.uL = b;
- b = this;
- l.Vb(f) ? k = f : f && (k = f.next, h = f.error, c = f.complete, f !== q.empty && (b = Object.create(f), l.Vb(b.unsubscribe) && this.add(b.unsubscribe.bind(b)), b.unsubscribe = this.unsubscribe.bind(this)));
- this.pj = b;
- this.cl = k;
- this.bf = h;
- this.Td = c;
- }
- c(b, a);
- b.prototype.next = function (a) {
- var b;
- if (!this.Eg && this.cl) {
- b = this.uL;
- b.Om ? this.J8(b, this.cl, a) && this.unsubscribe() : this.K8(this.cl, a);
- }
- };
- b.prototype.error = function (a) {
- var b;
- if (!this.Eg) {
- b = this.uL;
- if (this.bf)
- b.Om ? this.J8(b, this.bf, a) : this.K8(this.bf, a), this.unsubscribe();
- else if (b.Om)
- b.gD = a, b.fD = !0, this.unsubscribe();
- else
- throw this.unsubscribe(), a;
- }
- };
- b.prototype.complete = function () {
- var a,
- b,
- f;
- a = this;
- if (!this.Eg) {
- b = this.uL;
- if (this.Td) {
- f = function () {
- return a.Td.call(a.pj);
- };
- b.Om ? this.J8(b, f) : this.K8(f);
- }
- this.unsubscribe();
- }
- };
- b.prototype.K8 = function (a, b) {
- try {
- a.call(this.pj, b);
- } catch (G) {
- throw this.unsubscribe(),
- G;
- }
- };
- b.prototype.J8 = function (a, b, f) {
- try {
- b.call(this.pj, f);
- } catch (C) {
- return a.gD = C,
- a.fD = !0;
- }
- return !1;
- };
- b.prototype.T$ = function () {
- var a;
- a = this.uL;
- this.uL = this.pj = null;
- a.unsubscribe();
- };
- return b;
- }
- (k);
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Wq = b.f8 = void 0;
- b.f8 = "StorageValidatorSymbol";
- b.Wq = "AppStorageFactorySymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.ar = void 0;
- b.ar = "DeviceFactorySymbol";
- }, function (d) {
- d.P = function a(c, l) {
- var q;
- c.__proto__ && c.__proto__ !== Object.prototype && a(c.__proto__, l);
- Object.getOwnPropertyNames(c).forEach(function (a) {
- q = Object.getOwnPropertyDescriptor(c, a);
- void 0 !== q && Object.defineProperty(l, a, q);
- });
- };
- }, function (d, b, a) {
- var c,
- l,
- q,
- n,
- k,
- p,
- h,
- f;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Jh = void 0;
- c = a(0);
- a(6);
- l = a(18);
- q = a(73);
- n = a(399);
- k = a(34);
- d = a(38);
- p = a(163);
- h = a(221);
- a = a(109);
- f = function (a) {
- function b(b, f) {
- var c;
- c = a.call(this, b, f) || this;
- c.rj = f.index;
- c.DE = f.Ra;
- c.Et = f.hb;
- c.P8a = f.wc ? f.wc : b.wc;
- c.oI = f.oI;
- c.NAa = f.Pj || 0;
- c.Uza = !!f.hv;
- c.Cg = void 0 === f.Aea || void 0 === f.yea || f.Aea === f.Ra && f.yea === f.hb ? c : new h.xD(c, {
- Ra: f.Aea,
- hb: f.yea
- });
- c.e6a = f.ija;
- c.x3a = f.vi;
- c.Gt = f.Sa ? c.CNa(f.Sa) : void 0;
- c.lBa = f.Xv;
- c.Oi = !1;
- return c;
- }
- c.__extends(b, a);
- b.Jfb = function (a) {
- for (var b = new Uint32Array(a.length), f = new Uint32Array(a.length), h = 0, c, k, p = 0; p < a.length; ++p)
- c = a[p], k = c.dc, b[p] = c.Et - c.DE, f[p] = k, h += k;
- return new n.Y7(b, f, a.length ? a[0].S : 1E3, h);
- };
- Object.defineProperties(b.prototype, {
- TB: {
- get: function () {
- return !0;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- index: {
- get: function () {
- return this.rj;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- wc: {
- get: function () {
- return this.P8a;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- Ra: {
- get: function () {
- return this.DE;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- hb: {
- get: function () {
- return this.Et;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- Pj: {
- get: function () {
- return this.NAa;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- hv: {
- get: function () {
- return this.Uza;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- ija: {
- get: function () {
- return this.e6a;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- vi: {
- get: function () {
- return this.x3a;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- Sa: {
- get: function () {
- return this.Gt;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- Xv: {
- get: function () {
- return this.lBa;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- Aea: {
- get: function () {
- return this.Cg.Ra;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- yea: {
- get: function () {
- return this.Cg.hb;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- skb: {
- get: function () {
- return this.Cg.Ro;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- nHa: {
- get: function () {
- return this.Cg.oka;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- Wx: {
- get: function () {
- return this.Cg.ed;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- hY: {
- get: function () {
- return this.Cg.ze;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- mHa: {
- get: function () {
- return this.Cg.duration;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- zea: {
- get: function () {
- return this.Cg.zc;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- rkb: {
- get: function () {
- return this.Cg.Wb;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- xN: {
- get: function () {
- return this.skb / this.stream.Ta.Ab;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- b.prototype.dSa = function (a) {
- this.NAa = a.Nf(this.S).Ab;
- };
- b.prototype.mMa = function () {
- this.Uza = !0;
- };
- b.prototype.WDb = function (a) {
- this.oI = {
- pe: a.SHa(),
- qha: a.Qs
- };
- };
- b.prototype.xQ = function (a) {
- this.lBa = a;
- };
- b.prototype.Qj = function (a) {
- var b,
- f;
- void 0 === a && (a = {});
- b = this.stream.Ta.Ab;
- f = this.Gt || {
- start: 0,
- end: this.xN
- };
- a = this.CNa(a);
- this.Cg && this.Cg !== this || (this.Cg = new h.xD(this, this));
- a.start > f.start && (this.DE = this.Cg.Ra + a.start * b);
- a.end < f.end && (this.Et = this.Cg.Ra + a.end * b);
- this.Gt = a;
- };
- b.prototype.oda = function (a) {
- void 0 === a && (a = 1);
- this.Gt ? this.Qj({
- start: this.Gt.start + a,
- end: this.Gt.end
- }) : this.Qj({
- start: a
- });
- };
- b.prototype.Qhb = function () {
- this.Gt ? this.Qj({
- start: this.Gt.start,
- end: (this.Gt.end || 0) - 1
- }) : this.Qj({
- start: 0,
- end: -1
- });
- };
- b.prototype.Wjb = function (a) {
- var f;
- if (!(a < this.T || a >= this.na) && this.vi && this.vi.length) {
- a = new k.ka(a + 1 - this.T, 1E3).Eu(this.stream.Ta);
- for (var b = this.vi.length - 1; 0 <= b; --b) {
- f = this.vi[b];
- if (f.Jm <= a)
- return f;
- }
- return {
- Jm: 0,
- Vc: this.Wx
- };
- }
- };
- b.prototype.Vjb = function (a) {
- var f;
- if (!(a < this.T || a >= this.na) && this.vi && this.vi.length) {
- a = new k.ka(a + 1 - this.T, 1E3).Eu(this.stream.Ta);
- for (var b = this.vi.length - 1; 0 <= b; --b) {
- f = this.vi[b];
- if (f.Jm <= a)
- return f;
- }
- return {
- Jm: 0,
- Vc: this.Wx
- };
- }
- };
- b.prototype.NGa = function (a, b) {
- var f,
- h,
- c;
- if (!(a < this.T || a >= this.na)) {
- f = this.Ta.Ab;
- h = this.Ta.S;
- c = Math.floor(this.Ro / f);
- a = Math.min((b ? Math.ceil : Math.floor)((k.ka.lja(a, h) - this.Ra + (b ? -1 : 1) * (h / 1E3 - 1)) / f), c);
- f = k.ka.tna(this.Ra + a * f, h);
- return a === c ? void 0 : {
- Jm: a,
- Vc: f
- };
- }
- };
- b.prototype.VX = function (a) {
- return this.M === l.La.VIDEO ? this.Wjb(a) : this.NGa(a, !1);
- };
- b.prototype.Tjb = function (a) {
- return this.M === l.La.VIDEO ? this.Vjb(a) : this.NGa(a, !0);
- };
- b.prototype.vaa = function (a) {
- this.dc += a.ba;
- this.Et = a.hb;
- };
- b.prototype.toString = function () {
- return "[" + this.sa + ", " + this.O + "kbit/s, " + ("c:" + this.zc + "-" + this.Wb + ",") + ("p:" + this.ed + "-" + this.ze + ",d:" + this.duration + "]");
- };
- b.prototype.toJSON = function () {
- var a;
- a = p.hw.prototype.toJSON.call(this);
- q({
- index: this.index,
- startPts: this.T,
- endPts: this.na,
- contentStartPts: this.zc,
- contentEndPts: this.Wb,
- fragmentStartPts: this.Wx !== this.T ? this.Wx : void 0,
- fragmentEndPts: this.hY !== this.na ? this.hY : void 0,
- edit: this.Sa
- }, a);
- return a;
- };
- b.prototype.SGa = function (a) {
- var b;
- if (this.vi)
- for (var f = 0; f < this.vi.length; ++f)
- this.vi[f].Jm === a && (b = this.vi[f].offset);
- return b;
- };
- b.prototype.CNa = function (a) {
- return {
- start: a.start || 0,
- end: (void 0 !== a.end && 0 <= a.end ? 0 : this.xN) + (a.end || 0)
- };
- };
- return b;
- }
- (p.hw);
- b.Jh = f;
- d.uf(a.uz, f);
- d.uf(a.qz, f);
- }, function (d, b, a) {
- var c;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- c = a(128);
- b.kA = function (a) {
- c.assert("number" === typeof a);
- return String.fromCharCode(a >>> 24 & 255) + String.fromCharCode(a >>> 16 & 255) + String.fromCharCode(a >>> 8 & 255) + String.fromCharCode(a & 255);
- };
- b.aza = function (a) {
- return a.charCodeAt(3) + (a.charCodeAt(2) << 8) + (a.charCodeAt(1) << 16) + (a.charCodeAt(0) << 24);
- };
- b.xQb = function (a, b) {
- return Math.floor(1E3 * a / b);
- };
- }, function (d, b, a) {
- var l,
- q;
- function c() {
- var a,
- b;
- a = this;
- this.Pp = {};
- this.on = function (b, h, f) {
- a.addListener(b, h, f);
- };
- this.addListener = function (b, h, f) {
- a.Pp && (a.Pp[b] = a.Pp[b] || new q.F7(!0)).add(h, f);
- };
- this.removeListener = function (b, h) {
- a.Pp && a.Pp[b] && a.Pp[b].removeAll(h);
- };
- this.cfa = function (b) {
- return a.Pp && a.Pp[b] ? a.Pp[b].Xr() : [];
- };
- b = this;
- this.Xb = function (a, h, f) {
- var c;
- if (b.Pp) {
- c = b.cfa(a);
- for (a = {
- Gj: 0
- }; a.Gj < c.length; a = {
- Gj: a.Gj
- }, a.Gj++)
- f ? function (a) {
- return function () {
- var b;
- b = c[a.Gj];
- l.tc(function () {
- b(h);
- });
- };
- }
- (a)() : c[a.Gj].call(this, h);
- }
- };
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.kj = void 0;
- l = a(59);
- q = a(466);
- c.prototype.Ag = function () {
- this.Pp = void 0;
- };
- b.kj = c;
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Mg = void 0;
- b.Mg = {
- audio: "audio",
- video: "video",
- x2: "timedtext",
- Ena: "trickplay"
- };
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.B4 = b.a8 = b.E5 = b.e8 = b.d8 = b.qS = b.Kl = void 0;
- b.Kl = {
- start: "start",
- stop: "stop",
- oO: "keepAlive",
- nN: "engage",
- splice: "splice"
- };
- b.qS = "EventPboCommandFactorySymbol";
- b.d8 = "StartEventPboCommandSymbol";
- b.e8 = "StopEventPboCommandSymbol";
- b.E5 = "KeepAliveEventPboCommandSymbol";
- b.a8 = "SpliceEventPboCommandSymbol";
- b.B4 = "EngageEventPboCommandSymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Hp = {
- Request: "Request",
- Z7: "Singleton",
- XT: "Transient"
- };
- b.Hi = {
- Rpa: "ConstantValue",
- Spa: "Constructor",
- Nqa: "DynamicValue",
- J4: "Factory",
- Function: "Function",
- v5: "Instance",
- M_a: "Invalid",
- kwa: "Provider"
- };
- b.zt = {
- Lpa: "ClassProperty",
- Tpa: "ConstructorArgument",
- y8: "Variable"
- };
- }, function (d, b) {
- var c;
- function a(a, b) {
- var n;
- n = this;
- this.z9 = [];
- c.forEach(function (c) {
- (c = c(a, b)) && n.z9.push(c);
- });
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Qz = b.$ta = void 0;
- c = [];
- a.prototype.Ls = function (a) {
- var k;
- for (var b = [], c = this.z9.length; c--; ) {
- k = this.z9[c];
- k.Ls(a) && b.push(k.vG);
- }
- if (b.length)
- return b;
- };
- b.$ta = a;
- b.Qz = function (a) {
- c.push(a);
- };
- }, function (d, b, a) {
- var c;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- c = a(0);
- d = function (a) {
- function b() {
- return null !== a && a.apply(this, arguments) || this;
- }
- c.__extends(b, a);
- b.prototype.parse = function (b) {
- a.prototype.parse.call(this, b);
- this.Cd = this.Gs([{
- offset: 16,
- type: "offset"
- }, {
- offset: 16,
- type: "offset"
- }, {
- offset: 96,
- type: "offset"
- }, {
- width: "int16"
- }, {
- height: "int16"
- }, {
- rTb: "int32"
- }, {
- FWb: "int32"
- }, {
- offset: 32,
- type: "offset"
- }, {
- tkb: "int16"
- }, {
- Qcb: {
- type: "int8",
- u$a: 32
- }
- }, {
- depth: "int16"
- }, {
- offset: 16,
- type: "offset"
- }
- ]);
- return !0;
- };
- b.mc = !0;
- return b;
- }
- (a(226)["default"]);
- b["default"] = d;
- a = function (a) {
- function b() {
- return null !== a && a.apply(this, arguments) || this;
- }
- c.__extends(b, a);
- b.Se = "avc1";
- return b;
- }
- (d);
- b.bWa = a;
- a = function (a) {
- function b() {
- return null !== a && a.apply(this, arguments) || this;
- }
- c.__extends(b, a);
- b.Se = "avc2";
- return b;
- }
- (d);
- b.cWa = a;
- a = function (a) {
- function b() {
- return null !== a && a.apply(this, arguments) || this;
- }
- c.__extends(b, a);
- b.Se = "avc3";
- return b;
- }
- (d);
- b.dWa = a;
- a = function (a) {
- function b() {
- return null !== a && a.apply(this, arguments) || this;
- }
- c.__extends(b, a);
- b.Se = "avc4";
- return b;
- }
- (d);
- b.eWa = a;
- a = function (a) {
- function b() {
- return null !== a && a.apply(this, arguments) || this;
- }
- c.__extends(b, a);
- b.Se = "hvc1";
- return b;
- }
- (d);
- b.IZa = a;
- d = function (a) {
- function b() {
- return null !== a && a.apply(this, arguments) || this;
- }
- c.__extends(b, a);
- b.Se = "hev1";
- return b;
- }
- (d);
- b.DZa = d;
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.u6 = "6674654e-696c-5078-6966-665374726d21";
- b.v6 = "6674654e-696c-4878-6165-6465722e7632";
- b.lua = "6674654e-696c-5078-6966-66496e646578";
- b.cT = "6674654e-696c-4d78-6f6f-6653697a6573";
- b.bT = "6674654e-696c-5378-6565-6b506f696e74";
- b.Kua = "cedb7489-e77b-514c-84f9-7148f9882554";
- b.Jua = "524f39a2-9b5a-144f-a244-6c427c648df4";
- b.t6 = "6674654e-696c-4678-7261-6d6552617465";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Xq = void 0;
- d = function () {
- function a(a) {
- this.He = a;
- }
- a.prototype.eSa = function (a) {
- this.He = a;
- };
- a.prototype.WDa = function () {
- this.He = void 0;
- };
- a.prototype.wN = function (a) {
- return this.He && this.He.s0 && this.He.s0(a);
- };
- a.prototype.DB = function (a) {
- this.He && this.He.Ev && this.He.Ev(a);
- };
- a.prototype.CB = function (a) {
- this.He && this.He.sP && this.He.sP(a);
- };
- a.prototype.AG = function (a) {
- this.He && this.He.tP && this.He.tP(a);
- };
- a.prototype.iHa = function (a) {
- this.He && this.He.Sja && this.He.Sja(a);
- };
- a.prototype.hq = function (a) {
- this.He && this.He.bj && this.He.bj(a);
- };
- a.prototype.gY = function (a) {
- this.He && this.He.rP && this.He.rP(a);
- };
- a.prototype.fY = function (a, b, q) {
- this.He && this.He.qP && this.He.qP(a, b, q);
- };
- return a;
- }
- ();
- b.Xq = d;
- d.prototype.s0 = d.prototype.wN;
- d.prototype.Ev = d.prototype.DB;
- d.prototype.sP = d.prototype.CB;
- d.prototype.tP = d.prototype.AG;
- d.prototype.bj = d.prototype.hq;
- d.prototype.rP = d.prototype.gY;
- d.prototype.qP = d.prototype.fY;
- d.prototype.Sja = d.prototype.iHa;
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.jJ = b.pWa = b.o3 = b.p3 = void 0;
- (function (a) {
- a[a.RFa = 0] = "downloading";
- a[a.Lhb = 1] = "downloaded";
- a[a.Oi = 2] = "appended";
- a[a.buffered = 3] = "buffered";
- a[a.qBb = 4] = "removed";
- a[a.vWb = 5] = "unused";
- }
- (b.p3 || (b.p3 = {})));
- (function (a) {
- a[a.waiting = 1] = "waiting";
- a[a.QUb = 2] = "ondeck";
- a[a.RFa = 4] = "downloading";
- a[a.Lhb = 8] = "downloaded";
- a[a.hO = 6] = "inprogress";
- }
- (b.o3 || (b.o3 = {})));
- b.pWa = "AseBufferViewSymbol";
- b.jJ = "AseBufferAccountingSymbol";
- }, function (d, b, a) {
- d = a(143);
- a = "undefined" !== typeof self && "undefined" !== typeof WorkerGlobalScope && self instanceof WorkerGlobalScope && self;
- d = "undefined" !== typeof t && t || "undefined" !== typeof d && d || a;
- b.root = d;
- if (!d)
- throw Error("RxJS could not find any global context (window, self, global)");
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.$q = b.c4 = void 0;
- b.c4 = "DebugConfigSymbol";
- b.$q = "DebugSymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Tha = b.lj = void 0;
- (function (a) {
- a[a.Ol = 0] = "STANDARD";
- a[a.uw = 1] = "LIMITED";
- }
- (b.lj || (b.lj = {})));
- b.Tha = function (a) {
- return ["STANDARD", "LIMITED"][a];
- };
- }, function (d, b, a) {
- var l,
- q;
- function c(a, b, c, h, f) {
- a = void 0 === a ? l.J.Xk : a;
- return q.Dc.call(this, a, b, c, void 0, void 0, h, q.Dc.pd(f), f) || this;
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Pf = void 0;
- l = a(2);
- q = a(47);
- da(c, q.Dc);
- b.Pf = c;
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.$s = void 0;
- b.$s = "Base16EncoderSymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.nE = b.mt = b.u5 = void 0;
- b.u5 = "Injector";
- b.mt = 145152E5;
- b.nE = "ProfileSymbol";
- }, function (d, b, a) {
- var q,
- n;
- function c(a, b, h, f, c) {
- var k,
- p,
- n;
- k = {};
- p = "number" === typeof c;
- c = void 0 !== c && p ? c.toString() : h;
- if (p && void 0 !== h)
- throw Error(q.y_a);
- Reflect.kga(a, b) && (k = Reflect.getMetadata(a, b));
- h = k[c];
- if (Array.isArray(h))
- for (var p = 0, u = h; p < u.length; p++) {
- n = u[p];
- if (n.key === f.key)
- throw Error(q.CYa + " " + n.key.toString());
- }
- else
- h = [];
- h.push(f);
- k[c] = h;
- Reflect.Rca(a, k, b);
- }
- function l(a, b) {
- return function (h, f) {
- b(h, f, a);
- };
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- q = a(55);
- n = a(37);
- b.hD = function (a, b, h, f) {
- c(n.wxa, a, b, f, h);
- };
- b.WQ = function (a, b, h) {
- c(n.xxa, a.constructor, b, h);
- };
- b.Ix = function (a, b, h) {
- "number" === typeof h ? Reflect.Ix([l(h, a)], b) : "string" === typeof h ? Reflect.Ix([a], b, h) : Reflect.Ix([a], b);
- };
- }, function (d, b, a) {
- var c;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.th = b.U0a = b.Xm = void 0;
- c = a(15);
- b.Xm = b.Xm || function (a, b, c) {
- return a >= b ? a <= c ? a : c : b;
- };
- b.U0a = function (a, b, c, k, p) {
- return (a - b) * (p - k) / (c - b) + k;
- };
- b.th = function (a) {
- if (c.la(a))
- return (a / 1E3).toFixed(3);
- };
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.vw = b.KZa = b.ResponseType = void 0;
- d = b.ResponseType || (b.ResponseType = {});
- d[d.Text = 0] = "Text";
- d[d.oQb = 1] = "Xml";
- d[d.CKb = 2] = "Binary";
- b.KZa = "HttpClientSymbol";
- b.vw = "LegacyHttpSymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Ew = void 0;
- b.Ew = "PboConfigSymbol";
- }, function (d, b, a) {
- var c;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- d = a(228);
- c = a(127);
- b.DYa = c;
- c = a(408);
- b.t8 = c;
- c = a(404);
- b.$Qb = c;
- b.cxa = d.zH.Rc.sidx;
- d = a(842);
- b.Aw = d.Aw;
- d = a(400);
- b.XJ = d.XJ;
- d = a(838);
- b.zw = d.zw;
- b.GO = d.GO;
- d = a(75);
- b.kA = d.kA;
- a = a(837);
- b.hr = a.hr;
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Mz = void 0;
- b.Mz = "LoggerSinksSymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.bA = void 0;
- b.bA = "ThrottleFactorySymbol";
- }, function (d, b, a) {
- var c,
- l;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Iw = void 0;
- c = a(0);
- l = a(1);
- d = function () {
- var b;
- function a() {}
- a.prototype.format = function (a, b) {
- var f;
- for (var h = 1; h < arguments.length; ++h);
- f = Array.prototype.slice.call(arguments, 1);
- return a.replace(/{(\d+)}/g, function (a, b) {
- return "undefined" != typeof f[b] ? f[b] : a;
- });
- };
- a.prototype.Xma = function (a) {
- for (var b = a.length, h = new Uint16Array(b), f = 0; f < b; f++)
- h[f] = a.charCodeAt(f);
- return h.buffer;
- };
- a.prototype.eTa = function (a) {
- return JSON.stringify(a, null, " ");
- };
- b = a;
- return b = c.__decorate([l.N()], b);
- }
- ();
- b.Iw = d;
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Lw = void 0;
- b.Lw = "Utf8EncoderSymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.pt = void 0;
- b.pt = "MediaKeySystemAccessServicesSymbol";
- }, function (d, b) {
- var a;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- a = 0;
- b.id = function () {
- return a++;
- };
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.dr = void 0;
- d = b.dr || (b.dr = {});
- d[d.AKb = 8] = "Backspace";
- d[d.Tab = 9] = "Tab";
- d[d.NLb = 13] = "Enter";
- d[d.QPb = 16] = "Shift";
- d[d.ZKb = 17] = "Ctrl";
- d[d.cKb = 18] = "Alt";
- d[d.HOb = 19] = "PauseBreak";
- d[d.SKb = 20] = "CapsLock";
- d[d.PLb = 27] = "Escape";
- d[d.SPb = 32] = "Space";
- d[d.GOb = 33] = "PageUp";
- d[d.FOb = 34] = "PageDown";
- d[d.MLb = 35] = "End";
- d[d.AMb = 36] = "Home";
- d[d.TMb = 37] = "LeftArrow";
- d[d.fQb = 38] = "UpArrow";
- d[d.XOb = 39] = "RightArrow";
- d[d.vLb = 40] = "DownArrow";
- d[d.PMb = 45] = "Insert";
- d[d.sLb = 46] = "Delete";
- d[d.rQb = 48] = "Zero";
- d[d.gOb = 49] = "One";
- d[d.aQb = 50] = "Two";
- d[d.ZPb = 51] = "Three";
- d[d.jMb = 52] = "Four";
- d[d.hMb = 53] = "Five";
- d[d.RPb = 54] = "Six";
- d[d.PPb = 55] = "Seven";
- d[d.LLb = 56] = "Eight";
- d[d.ONb = 57] = "Nine";
- d[d.UJb = 65] = "A";
- d[d.eKb = 66] = "B";
- d[d.IKb = 67] = "C";
- d[d.DXa = 68] = "D";
- d[d.E = 69] = "E";
- d[d.QLb = 70] = "F";
- d[d.kMb = 71] = "G";
- d[d.nMb = 72] = "H";
- d[d.LZa = 73] = "I";
- d[d.QMb = 74] = "J";
- d[d.C5 = 75] = "K";
- d[d.Q_a = 76] = "L";
- d[d.WMb = 77] = "M";
- d[d.E0a = 78] = "N";
- d[d.aOb = 79] = "O";
- d[d.iOb = 80] = "P";
- d[d.Q = 81] = "Q";
- d[d.QOb = 82] = "R";
- d[d.i2a = 83] = "S";
- d[d.Q2a = 84] = "T";
- d[d.bQb = 85] = "U";
- d[d.gQb = 86] = "V";
- d[d.kQb = 87] = "W";
- d[d.F8 = 88] = "X";
- d[d.pQb = 89] = "Y";
- d[d.qQb = 90] = "Z";
- d[d.UMb = 91] = "LeftWindowKey";
- d[d.YOb = 92] = "RightWindowKey";
- d[d.NPb = 93] = "SelectKey";
- d[d.RNb = 96] = "Numpad0";
- d[d.SNb = 97] = "Numpad1";
- d[d.TNb = 98] = "Numpad2";
- d[d.UNb = 99] = "Numpad3";
- d[d.VNb = 100] = "Numpad4";
- d[d.WNb = 101] = "Numpad5";
- d[d.XNb = 102] = "Numpad6";
- d[d.YNb = 103] = "Numpad7";
- d[d.ZNb = 104] = "Numpad8";
- d[d.$Nb = 105] = "Numpad9";
- d[d.nNb = 106] = "Multiply";
- d[d.bKb = 107] = "Add";
- d[d.UPb = 109] = "Subtract";
- d[d.rLb = 110] = "DecimalPoint";
- d[d.uLb = 111] = "Divide";
- d[d.RLb = 112] = "F1";
- d[d.VLb = 113] = "F2";
- d[d.WLb = 114] = "F3";
- d[d.XLb = 115] = "F4";
- d[d.YLb = 116] = "F5";
- d[d.ZLb = 117] = "F6";
- d[d.$Lb = 118] = "F7";
- d[d.aMb = 119] = "F8";
- d[d.bMb = 120] = "F9";
- d[d.SLb = 121] = "F10";
- d[d.TLb = 122] = "F11";
- d[d.ULb = 123] = "F12";
- d[d.QNb = 144] = "NumLock";
- d[d.LPb = 145] = "ScrollLock";
- d[d.OPb = 186] = "SemiColon";
- d[d.OLb = 187] = "Equals";
- d[d.VKb = 188] = "Comma";
- d[d.qLb = 189] = "Dash";
- d[d.IOb = 190] = "Period";
- d[d.iMb = 191] = "ForwardSlash";
- d[d.$Pb = 192] = "Tilde";
- d[d.hOb = 219] = "OpenBracket";
- d[d.zKb = 220] = "BackSlash";
- d[d.UKb = 221] = "CloseBracket";
- d[d.POb = 222] = "Quote";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.eA = void 0;
- b.eA = "VideoPreparerSymbol";
- }, function (d, b, a) {
- (function (b, l) {
- var n;
- function c(a, b) {
- var h;
- h = Date.now();
- this.WEb = h;
- this.JX = h + a;
- this.Uxb = a;
- this.dgb = h + b;
- this.debug = !1;
- this.LM = this.xq = 0;
- }
- n = new(a(4)).Console("ASEJS_QOE_EVAL", "media|asejs");
- c.prototype.constructor = c;
- c.prototype.xb = function (a, c) {
- var h;
- a = ((a - this.WEb) / 1E3).toFixed(3);
- a = " ".slice(a.length - 4) + a;
- h = b.zub();
- n.debug(a + (" " + Math.floor(h.oTb / 1024 / 1024) + " MB/" + Math.floor(h.RJa / 1024 / 1024) + " MB ") + this.Ica + c);
- };
- c.prototype.$7a = function (a) {
- var b;
- b = Date.now();
- this.Ica = a;
- this.xq = 0;
- this.origin = b;
- this.xb(b, "starting");
- };
- c.prototype.G8a = function (a) {
- var c,
- h;
- this.LM++;
- if (!(1E3 > this.LM)) {
- this.LM = 0;
- c = Date.now();
- if (c >= this.dgb)
- throw Error("Execution deadline exceeded: " + this.Ica);
- h = b.zub();
- this.xq = Math.max(this.xq, h.RJa);
- if (7516192768 < h.RJa)
- throw Error("Heap total limit exceeded: " + this.Ica);
- if (!(c <= this.JX)) {
- for (; c > this.JX; )
- this.JX += this.Uxb;
- this.xb(c, a);
- }
- }
- };
- c.Db = function () {
- l.YH = new c(5E3, 33E5);
- };
- c.S1 = function (a) {
- l.YH && l.YH.$7a(a);
- };
- c.update = function (a) {
- l.YH && l.YH.G8a(a);
- };
- c.tfa = function () {
- if (l.YH)
- return l.YH.xq;
- };
- d.P = c;
- }
- .call(this, a(250), a(143)));
- }, function (d, b, a) {
- d.P = {
- EventEmitter: a(745),
- Ll: a(744)
- };
- }, function (d, b, a) {
- var k,
- p;
- function c(a) {
- return a instanceof ArrayBuffer || "[object ArrayBuffer]" === Object.prototype.toString.call(a);
- }
- function l(a) {
- return k.Od(a);
- }
- function q(a) {
- return k.la(a);
- }
- function n(a) {
- return !c(a) && !l(a) && !q(a) && !Array.isArray(a) && k.Xe(a);
- }
- k = a(7);
- p = {
- Bz: 0,
- OT: 1,
- M0a: 2,
- OBJECT: 3,
- Xk: 4
- };
- d.P = {
- $fa: function (a) {
- return c(a) ? p.Bz : l(a) ? p.OT : q(a) ? p.M0a : n(a) ? p.OBJECT : p.Xk;
- },
- PZ: c,
- Od: l,
- la: q,
- Xe: n,
- oo: p
- };
- }, function (d) {
- var b;
- b = {
- eO: function (a) {
- for (var c in a)
- a.hasOwnProperty(c) && (b[c] = a[c]);
- }
- };
- d.P = b;
- }, function (d, b, a) {
- var q,
- n,
- k,
- p,
- h,
- f,
- u,
- A;
- function c(a) {
- var b;
- if (!a.U$) {
- b = a.kJa();
- a.bl.MA(b["default"].Ca, a.li);
- a.bl.tD(b.sq ? b.sq.D0 : void 0, b.sq ? b.sq.RC : void 0);
- q.Ma(a.Tb) || (a.U$ = !0);
- }
- }
- function l(a, b, c) {
- var h;
- this.K = c;
- this.Rp = {};
- this.IE = c.IE;
- this.uza = new p(this.IE);
- this.UK = new f(!0);
- this.FK = new f(!1);
- this.reset();
- this.b$ = a;
- this.bl = b;
- this.Qza = n.ym.name();
- this.bl.R1(this.Qza);
- this.zL = this.fA = 0;
- this.GK = [];
- n.events.on("networkchange", function (a) {
- this.Qza = a;
- this.bl.R1(a);
- }
- .bind(this));
- h = c.Hca;
- h && (h = {
- Ld: k.Qe.FJ,
- Fa: {
- Ca: parseInt(h, 10),
- Ih: 0
- },
- Ch: {
- mab: 0,
- Ih: 0
- },
- rq: {
- mab: 0,
- Ih: 0
- }
- }, this.get = function () {
- return h;
- });
- A = this;
- }
- q = a(7);
- n = a(4);
- k = a(18);
- a(11);
- b = a(22).EventEmitter;
- p = a(396).wra;
- h = new n.Console("ASEJS_NETWORK_MONITOR", "media|asejs");
- f = a(823).fra;
- u = a(821);
- A = void 0;
- l.prototype.constructor = l;
- l.prototype = Object.create(b.prototype);
- l.kg = function () {
- u(void 0 !== A);
- return A;
- };
- l.reset = function () {
- A && A.reset();
- };
- Object.defineProperties(l.prototype, {
- startTime: {
- get: function () {
- return this.ge;
- }
- },
- Ld: {
- get: function () {
- return this.li;
- }
- },
- Eo: {
- get: function () {
- return this.fA;
- }
- },
- GBa: {
- get: function () {
- return this.GK;
- }
- }
- });
- l.prototype.v4a = function () {
- var a,
- b,
- f,
- c;
- a = this.K;
- b = a.K4a.concat(a.S4a);
- f = a.y9;
- c = this.uza;
- return b.reduce(function (a, b) {
- a[b] = c.create(b, f);
- return a;
- }, {});
- };
- l.prototype.reset = function () {
- var a,
- b,
- f;
- a = this.K.y9;
- b = this.uza;
- f = this.K;
- this.location = null;
- this.Rp = this.v4a();
- this.UK.reset();
- this.FK.reset();
- this.St = b.create("respconn-ewma", a);
- this.Kt = b.create("respconn-ewma", a);
- this.li = k.Qe.HAVE_NOTHING;
- this.I8a = function () {
- c(this);
- }
- .bind(this);
- this.QV = void 0;
- this.ax = this.dc = this.Tb = this.ge = null;
- this.S3a = this.KV = this.JL = 0;
- this.o$ = !1;
- f.YQa && (this.zL = this.fA = 0, this.GK = []);
- };
- l.prototype.uQ = function (a) {
- var b;
- b = this.Rp;
- if (a !== this.location) {
- q.Y(this.QV) || (clearInterval(this.QV), this.QV = void 0);
- q.Ma(this.location) && (this.KV = this.JL = 0, this.ge = null);
- if (!q.Ma(a)) {
- this.li = k.Qe.HAVE_NOTHING;
- for (var f in b)
- b[f] && b[f].reset && b[f].reset();
- this.St.reset();
- this.Kt.reset();
- }
- q.Ma(this.ge) || (this.JL += (q.Ma(this.Tb) ? n.time.ea() : this.Tb) - this.ge, this.KV += this.dc);
- this.Tb = this.ge = null;
- this.dc = 0;
- this.location = a;
- this.bl.uQ(a);
- }
- };
- l.prototype.R1 = function (a) {
- this.bl.R1(a);
- };
- l.prototype.p9a = function (a) {
- this.Rp.QoEEvaluator ? h.warn("monitor (QoEEvaluator) already existed.") : this.Rp.QoEEvaluator = a;
- };
- l.prototype.dBb = function () {
- delete this.Rp.QoEEvaluator;
- };
- l.prototype.px = function (a, b, f, p) {
- var u,
- n;
- u = this.K;
- n = this.Rp;
- if (!0 === p.vD)
- (p = n["throughput-wssl"]) && p.add(a, b, f, !0);
- else if (q.Y(b))
- h.warn("addDataReceived called with undefined start time");
- else {
- u.R4a && 10 > f - b ? b = f - 10 : 0 === f - b && (b = f - 1);
- this.UK.px(a, b, f, p);
- this.FK.px(a, b, f, p);
- for (var l in n)
- n[l] && n[l].add && n[l].add(a, b, f);
- this.li = Math.max(this.li, k.Qe.Gz);
- q.Ma(this.ge) && (this.ge = b, this.Tb = null, this.U$ = !1, this.dc = 0);
- q.Ma(this.Tb) || (b > this.Tb && (this.ge += b - this.Tb), this.Tb = null, this.U$ = !1);
- this.dc += a;
- this.li < k.Qe.Fz && (f - this.ge > u.c6a || this.dc > u.b6a) && (this.li = k.Qe.Fz);
- this.li < k.Qe.FJ && (f - this.ge > u.p7a || this.dc > u.o7a) && (!this.o$ || this.S3a > u.a6a) && (this.li = k.Qe.FJ, c(this), this.QV = setInterval(this.I8a, u.O5a));
- q.Ma(this.ax) || (b - this.ax > u.mAa ? this.b$.yKa(this.ax, b) : f - b > u.mAa && this.b$.yKa(b, f));
- this.ax = Math.max(f, this.ax);
- }
- };
- l.prototype.cu = function (a) {
- this.St.add(a);
- this.bl.cu(a);
- };
- l.prototype.bu = function (a) {
- this.Kt.add(a);
- this.bl.bu(a);
- };
- l.prototype.start = function (a) {
- var b;
- q.Ma(this.ax) && !q.Ma(this.Tb) && (this.ax = a);
- b = this.Rp;
- if (this.K.Oma)
- for (var f in b)
- b[f] && b[f].start && b[f].start(a);
- };
- l.prototype.stop = function (a) {
- var b,
- f;
- b = this.Rp;
- for (f in b)
- b[f] && b[f].stop && b[f].stop(a);
- this.Tb = q.Ma(this.Tb) ? a : Math.min(this.Tb, a);
- this.ax = null;
- };
- l.prototype.flush = function () {
- var a,
- b;
- a = this.Rp;
- for (b in a)
- a[b] && a[b].flush && a[b].flush();
- };
- l.prototype.fail = function () {
- this.ge = null;
- };
- l.prototype.eIa = function () {
- var a,
- b;
- a = this.Rp.entropy;
- a && (b = a.obb(), a.reset());
- return b;
- };
- l.prototype.kJa = function () {
- var a,
- b,
- f,
- c,
- h,
- k,
- p;
- a = n.time.ea();
- b = {};
- f = this.Rp;
- c = this.K;
- h = c.z4a;
- k = c.W7a;
- for (p in f)
- f[p] && f[p].get && (b[p] = f[p].get(a), "iqr" === f[p].type && (b.sq = b[p]), "tdigest" === f[p].type && (b.Di = b[p]), "wssl" === f[p].type && (b.vD = b[p]));
- b.cdnavtp = this.UK.qm();
- b.activecdnavtp = this.FK.qm();
- b["default"] = h && b[h] ? b[h] : b["throughput-ewma"];
- "none" !== c.Qla && "none" !== k && (b.ARa = k && b[k] ? b[k] : b["throughput-sw"]);
- return b;
- };
- l.prototype.get = function () {
- var a,
- b,
- f,
- c,
- h,
- k;
- a = this.kJa();
- b = a["default"];
- f = this.St.get();
- c = this.Kt.get();
- h = this.K;
- if (a.ARa)
- k = a.ARa, b = q.la(b.Ca) && q.la(k.Ca) && b.Ca > k.Ca && 0 < k.Ca ? k : b;
- a.Ld = this.li;
- a.Fa = b;
- !h.FX || !b || q.Ma(b.Ca) || isNaN(b.Ca) || !a.vD || q.Ma(a.vD.Ca) || isNaN(a.vD.Ca) || ("max" === h.wVa ? a.Fa.Ca = Math.max(a.vD.Ca, b.Ca) : "sum" === h.wVa && (a.Fa.Ca += a.vD.Ca));
- a.Ch = f;
- a.rq = c;
- b = this.JL + !q.Ma(this.ge) ? (q.Ma(this.Tb) ? n.time.ea() : this.Tb) - this.ge : 0;
- a.time = b;
- return a;
- };
- l.prototype.Ukb = function () {
- var a;
- a = this.JL + !q.Ma(this.ge) ? (q.Ma(this.Tb) ? n.time.ea() : this.Tb) - this.ge : 0;
- return {
- DF: Math.floor(8 * (this.KV + this.dc) / a),
- pTb: this.b$.bd()
- };
- };
- l.prototype.job = function () {
- var a,
- b,
- f;
- a = {};
- b = this.get(!0);
- if (b.Ld && b.Fa) {
- a.aseavtp = Number(b.Fa.Ca).toFixed(2);
- a.asevartp = Number(b.Fa.Ih).toFixed(2);
- if (b.sq) {
- f = b.sq.D0;
- !f || isNaN(f.Gk) || isNaN(f.Fk) || isNaN(f.cj) || (a.aseniqr = 0 < f.cj ? Number((f.Gk - f.Fk) / f.cj).toFixed(2) : -1, a.aseiqr = Number(f.Gk - f.Fk).toFixed(2), a.asemedtp = Number(f.cj).toFixed(2));
- a.iqrsamples = b.sq.RC;
- }
- b.Di && b.Di.Qu && (a.tdigest = b.Di.Qu());
- }
- return a;
- };
- l.prototype.LC = function (a, b) {
- var f;
- f = b.requestId;
- 1 === ++this.fA && (this.emit("active", a), this.start(a));
- f && this.GK.push(f);
- this.UK.LC(a, b);
- this.FK.LC(a, b);
- };
- l.prototype.sla = function () {
- ++this.zL;
- };
- l.prototype.NC = function (a, b, f) {
- var c;
- c = f.requestId;
- b && --this.zL;
- --this.fA;
- this.K.YQa && (this.fA = Math.max(this.fA, 0), this.zL = Math.max(this.zL, 0));
- 0 === this.fA && (this.stop(a), this.emit("inactive", a));
- c && (b = this.GK.indexOf(c), 0 <= b && this.GK.splice(b, 1));
- this.UK.NC(a, f);
- this.FK.NC(a, f);
- };
- d.P = l;
- }, function (d, b, a) {
- var k;
- function c(a, b) {
- return void 0 === a ? void 0 : 0 === a ? k.ka.wd : new k.ka(a, b);
- }
- function l(a, b) {
- return a && Math.floor(k.ka.tna(a, b));
- }
- function q(a, b) {
- return void 0 === a || void 0 === b ? void 0 : a + b;
- }
- function n(a, b) {
- return void 0 === a || void 0 === b ? void 0 : a - b;
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.qz = b.uz = void 0;
- k = a(34);
- d = function () {
- function a() {}
- Object.defineProperties(a.prototype, {
- Ro: {
- get: function () {
- return n(this.hb, this.Ra) || 0;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- oka: {
- get: function () {
- return q(this.Ra, this.Pj);
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- pPa: {
- get: function () {
- return q(this.hb, this.Pj);
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- qda: {
- get: function () {
- return c(this.Ro, this.S);
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- fm: {
- get: function () {
- return c(this.Ra, this.S);
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- $p: {
- get: function () {
- return c(this.hb, this.S);
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- Jy: {
- get: function () {
- return c(this.oka, this.S);
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- N0: {
- get: function () {
- return c(this.pPa, this.S);
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- Nzb: {
- get: function () {
- return c(this.Pj, this.S);
- },
- enumerable: !1,
- configurable: !0
- }
- });
- return a;
- }
- ();
- b.uz = d;
- d = function () {
- function a() {}
- Object.defineProperties(a.prototype, {
- duration: {
- get: function () {
- return n(this.na, this.T) || 0;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- T: {
- get: function () {
- return l(q(this.Ra, this.Pj), this.S);
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- na: {
- get: function () {
- return l(q(this.hb, this.Pj), this.S);
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- Em: {
- get: function () {
- return l(this.Pj, this.S);
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- Si: {
- get: function () {
- return l(this.Ra, this.S);
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- zc: {
- get: function () {
- return l(this.Ra, this.S);
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- Wb: {
- get: function () {
- return l(this.hb, this.S);
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- ed: {
- get: function () {
- return l(q(this.Ra, this.Pj), this.S);
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- ze: {
- get: function () {
- return l(q(this.hb, this.Pj), this.S);
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- Sr: {
- get: function () {
- return this.duration;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- Ov: {
- get: function () {
- return this.T;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- ZH: {
- get: function () {
- return this.na;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- return a;
- }
- ();
- b.qz = d;
- }, function (d, b, a) {
- var u;
- function c(a, b) {
- if (a.length == b.length && 1 < a.length) {
- for (var f = a.length, c = 0, h = k(a), p = k(b), u = 0; u < f; u++)
- c += a[u] * b[u];
- return (c - h * p / f) / f;
- }
- return !1;
- }
- function l(a) {
- if (!Array.isArray(a) || 2 > a.length)
- return !1;
- a = q(a);
- return Math.sqrt(a);
- }
- function q(a) {
- var b;
- if (!Array.isArray(a) || 2 > a.length)
- return !1;
- b = n(a);
- return k(a.map(function (a) {
- return (a - b) * (a - b);
- })) / (a.length - 1);
- }
- function n(a) {
- return Array.isArray(a) && a.length ? k(a) / a.length : !1;
- }
- function k(a) {
- return Array.isArray(a) ? a.reduce(function (a, b) {
- return a + b;
- }, 0) : !1;
- }
- function p(a, b, f) {
- return Math.max(Math.min(a, f), b);
- }
- function h(a, b) {
- return "number" === typeof a ? a : b;
- }
- function f(a) {
- return 1 / (1 + Math.exp(-a));
- }
- u = a(7);
- d.P = {
- Ja: function (a, b, f) {
- try {
- a.emit(b, f);
- } catch (H) {
- a.bf("JAVASCRIPT EXCEPTION: Caught in ASE client event listener. Exception:", H, "Event:", f);
- }
- },
- Pr: function () {
- var a,
- b,
- f;
- a = Array.prototype.concat.apply([], arguments);
- b = a.reduce(function (a, b) {
- return a + b.byteLength;
- }, 0);
- f = new Uint8Array(b);
- a.reduce(function (a, b) {
- f.set(new Uint8Array(b), a);
- return a + b.byteLength;
- }, 0);
- return f.buffer;
- },
- EW: p,
- lcb: function (a, b, f, c) {
- return {
- min: p(h(a.min, b), f, c),
- max: p(h(a.max, b), f, c),
- tu: p(a.tu || 6E4, 0, 6E5),
- FDa: p(a.FDa || 0, -3E5, 3E5),
- scale: p(a.scale || 6E4, 0, 3E5),
- vRa: p(a.vRa || 0, -3E5, 3E5),
- gamma: p(a.gamma || 1, .1, 10)
- };
- },
- Ad: function (a, b) {
- void 0 !== a && u.mxb(a).forEach(function (a) {
- b(a[0], a[1]);
- });
- },
- xGa: function (a, b, c) {
- return a.min + (a.max - a.min) * (1 - Math.pow(f(6 * (b - (a.tu + (a.FDa || 0) * (1 - c))) / (a.scale + (a.vRa || 0) * (1 - c))), a.gamma));
- },
- Yib: function (a, b) {
- return a.min + (a.max - a.min) * Math.pow(f(6 * (b - a.tu) / a.scale), a.gamma);
- },
- fTb: k,
- dlb: n,
- xob: q,
- dTb: l,
- RSb: c,
- QSb: function (a, b) {
- var f;
- if (a.length == b.length) {
- f = c(a, b);
- a = l(a);
- b = l(b);
- if (0 < a && 0 < b)
- return f / (a * b);
- }
- return !1;
- },
- uy: function (a, b, f) {
- return b.NEa ? b.NEa(f) : new a.Console("ASEJS", "media|asejs", f);
- },
- Xla: function (a) {
- return a.length ? "{" + a + "} " : "";
- },
- tCb: function (a, b, f) {
- return {
- min: a.min * f + (1 - f) * b.min,
- max: a.max * f + (1 - f) * b.max,
- tu: a.tu * f + (1 - f) * b.tu,
- scale: a.scale * f + (1 - f) * b.scale,
- gamma: a.gamma * f + (1 - f) * b.gamma
- };
- },
- tanh: Math.tanh || function (a) {
- var b;
- b = Math.exp(+a);
- a = Math.exp(-a);
- return Infinity == b ? 1 : Infinity == a ? -1 : (b - a) / (b + a);
- },
- Bma: f,
- vm: function (a) {
- var b;
- b = a.Ia.ad.da.id;
- return {
- T: a.T,
- duration: a.duration,
- offset: a.offset,
- ba: a.ba,
- O: a.O,
- profile: a.profile,
- ec: a.ec,
- Na: b,
- sa: a.sa,
- Lb: a.Lb,
- location: a.location,
- Fj: a.Fj,
- Si: a.Si,
- Hv: {
- ad: {
- da: {
- id: b
- }
- }
- }
- };
- }
- };
- }, function (d, b, a) {
- var c;
- c = a(167);
- d.P = function (a) {
- return function n(b) {
- return 0 === arguments.length || c(b) ? n : a.apply(this, arguments);
- };
- };
- }, function (d, b, a) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.As = b.aja = b.MMa = void 0;
- d = a(946);
- a = a(943);
- b.MMa = d;
- b.aja = function (a, l) {
- return b.MMa(function (a, b) {
- return void 0 !== b ? b : a;
- }, a, l);
- };
- b.As = a;
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.aA = void 0;
- b.aA = "SourceBufferTypeProviderSymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Kz = void 0;
- b.Kz = "IdProviderSymbol";
- }, function (d, b, a) {
- var l,
- q,
- n,
- k,
- p,
- h;
- function c(a) {
- return a.reduce(function (a, b) {
- return a.concat(b instanceof h.ZT ? b.rG : b);
- }, []);
- }
- l = a(176);
- q = a(496);
- n = a(497);
- k = a(1102);
- p = a(495);
- h = a(1101);
- d = function () {
- function a(a) {
- this.closed = !1;
- this.nF = this.uA = this.xo = null;
- a && (this.T$ = a);
- }
- a.prototype.unsubscribe = function () {
- var a,
- b,
- f,
- d,
- g,
- D;
- a = !1;
- if (!this.closed) {
- f = this.xo;
- d = this.uA;
- g = this.T$;
- D = this.nF;
- this.closed = !0;
- this.nF = this.uA = this.xo = null;
- for (var K = -1, J = d ? d.length : 0; f; )
- f.remove(this), f = ++K < J && d[K] || null;
- n.Vb(g) && (f = k.kUa(g).call(this), f === p.Qx && (a = !0, b = b || (p.Qx.e instanceof h.ZT ? c(p.Qx.e.rG) : [p.Qx.e])));
- if (l.isArray(D))
- for (K = -1, J = D.length; ++K < J; )
- f = D[K], q.Xe(f) && (f = k.kUa(f.unsubscribe).call(f), f === p.Qx && (a = !0, b = b || [], f = p.Qx.e, f instanceof h.ZT ? b = b.concat(c(f.rG)) : b.push(f)));
- if (a)
- throw new h.ZT(b);
- }
- };
- a.prototype.add = function (b) {
- var f;
- if (!b || b === a.EMPTY)
- return a.EMPTY;
- if (b === this)
- return this;
- f = b;
- switch (typeof b) {
- case "function":
- f = new a(b);
- case "object":
- if (f.closed || "function" !== typeof f.unsubscribe)
- return f;
- if (this.closed)
- return f.unsubscribe(), f;
- "function" !== typeof f.Jya && (b = f, f = new a(), f.nF = [b]);
- break;
- default:
- throw Error("unrecognized teardown " + b + " added to Subscription.");
- }
- (this.nF || (this.nF = [])).push(f);
- f.Jya(this);
- return f;
- };
- a.prototype.remove = function (a) {
- var b;
- b = this.nF;
- b && (a = b.indexOf(a), -1 !== a && b.splice(a, 1));
- };
- a.prototype.Jya = function (a) {
- var b,
- f;
- b = this.xo;
- f = this.uA;
- b && b !== a ? f ? -1 === f.indexOf(a) && f.push(a) : this.uA = [a] : this.xo = a;
- };
- a.EMPTY = function (a) {
- a.closed = !0;
- return a;
- }
- (new a());
- return a;
- }
- ();
- b.Jw = d;
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.oz = void 0;
- b.oz = "ApiInfoSymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.AJ = b.q4 = void 0;
- b.q4 = "DrmServicesSymbol";
- b.AJ = "DrmServicesProviderSymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.D7 = b.Fe = void 0;
- (function (a) {
- a.Dz = function () {
- function a() {}
- a.cXa = "cache_start";
- a.dXa = "cache_success";
- a.$Wa = "cache_abort";
- a.bXa = "cache_fail";
- a.aXa = "cache_evict";
- a.n1a = "pb_request";
- a.z2a = "start_playback";
- return a;
- }
- ();
- a.Xj = function () {
- function a() {}
- a.hoa = "auth";
- a.tw = "ldl";
- a.LJ = "hdr";
- a.MEDIA = "media";
- return a;
- }
- ();
- a.HR = function () {
- function a() {}
- a.RR = "cached";
- a.LOADING = "loading";
- a.aZa = "expired";
- return a;
- }
- ();
- }
- (b.Fe || (b.Fe = {})));
- b.D7 = "PrefetchEventsFactorySymbol";
- }, function (d, b, a) {
- var c,
- l,
- q,
- n,
- k,
- p,
- h,
- f,
- u,
- A,
- G,
- C,
- g,
- D,
- K,
- J,
- R,
- P;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.BK = void 0;
- c = a(189);
- l = a(12);
- q = a(57);
- n = a(5);
- k = a(192);
- p = a(2);
- h = a(28);
- f = a(199);
- u = a(149);
- A = a(283);
- G = a(180);
- C = a(103);
- g = a(26);
- D = a(280);
- K = a(24);
- J = a(144);
- R = a(166);
- P = a(503);
- d = function () {
- function a(b) {
- var h,
- u;
- h = this;
- this.createPlayer = function (a, b) {
- var f;
- b = void 0 === b ? {}
- : b;
- b = "number" === typeof b ? {
- di: b
- }
- : b;
- f = n.Z.get(R.XD);
- f = b.manifest ? f.create(b.manifest) : void 0;
- a = n.Z.get(G.mK).Ffb(a);
- return h.PEa(a, b, f);
- };
- this.createPlaygraphPlayer = function (a, b, f) {
- var c;
- c = n.Z.get(R.XD);
- f = f ? c.create(f) : void 0;
- return h.PEa(J.V1a.encode(a), b, f);
- };
- this.closeAllPlayers = function (a) {
- q.q7(void 0 === a ? function () {}
- : a);
- };
- this.init = function (b) {
- b = void 0 === b ? function () {}
- : b;
- h.BF.yO(function (f) {
- f.V ? (l.config.N1 ? h.bDb().then(function () {
- c.wva();
- })["catch"](function (a) {
- n.log.error("Unable to initialize the playdata services", a);
- }) : Promise.resolve()).then(function () {
- Object.assign(h, a.aM);
- b(Object.assign({
- success: !0
- }, a.aM));
- }) : b({
- success: !1,
- error: n.Kva(f.errorCode || p.J.csa, f)
- });
- });
- };
- this.applyConfig = function (a) {
- h.EUa(a);
- l.Xba(a);
- };
- this.prepare = function (a, b) {
- var f;
- a = h.Aka.xFa(a) || [];
- f = new Set();
- a = a.filter(function (a) {
- var b;
- b = f.has(a.u);
- f.add(a.u);
- return !b;
- });
- if (l.config.op && h.Cc())
- try {
- h.Cc().Mv(a, b);
- } catch (ta) {
- n.log.warn("Prepare call failed", ta);
- }
- };
- this.predownload = function (a, b) {
- if ((a = h.Aka.xFa(a)) && l.config.jz && h.Cc())
- try {
- h.Cc().Wyb(a, b);
- } catch (V) {
- n.log.warn("Predownload call failed", V);
- }
- };
- this.lookupPredownloaded = function () {
- return l.config.jz && h.Cc() ? h.Cc().nv() : Promise.resolve([]);
- };
- this.ppmUpdate = function (a) {
- t._cad_global.playerPredictionModel ? ((a = h.Aka.Zgb(a)) && t._cad_global.playerPredictionModel.update(a), t._cad_global.prefetchEvents && t._cad_global.prefetchEvents.update(a)) : n.log.error("ppmUpdate called but there is no ppmModel");
- };
- this.supportsHdr = function (a) {
- n.FB().PQ().then(a)["catch"](function () {
- return a(!1);
- });
- };
- this.supportsUltraHd = function (a) {
- n.FB().QQ().then(a)["catch"](function () {
- return a(!1);
- });
- };
- this.supportsDolbyAtmos = function (a) {
- n.FB().MQ().then(a)["catch"](function () {
- return a(!1);
- });
- };
- this.supportsDolbyVision = function (a) {
- n.FB().NQ().then(a)["catch"](function () {
- return a(!1);
- });
- };
- this.close = function () {};
- this.deviceThroughput = function () {
- var a;
- a = n.Z.get(f.$J).mca();
- return a ? Promise.resolve(a.qm()) : Promise.resolve(void 0);
- };
- this.deviceThroughputNiqr = function () {
- var a;
- a = n.Z.get(f.$J).mca();
- return a ? Promise.resolve(a.anb()) : Promise.resolve(void 0);
- };
- this.isSeamlessEnabled = function () {
- return l.config.yib;
- };
- this.EUa(b);
- this.Aka = n.Z.get(k.wT);
- this.BF = n.Z.get(g.yf);
- this.Cc = n.Z.get(C.eA);
- u = n.Z.get(P.j7).apply();
- l.sEa([b], u);
- n.FB().QQ();
- }
- a.prototype.EUa = function (a) {
- n.Z.get(h.TJ).Aub(a);
- };
- a.prototype.bDb = function () {
- return n.Z.get(u.iK)()["catch"](function (a) {
- n.log.error("Unable to initialize the playdata services", a);
- throw a;
- }).then(function (a) {
- return a.send(Infinity);
- })["catch"](function (a) {
- n.log.error("Unable to send deferred playdata", a);
- });
- };
- a.prototype.PEa = function (a, b, f) {
- var c,
- h,
- k,
- p;
- b = void 0 === b ? {}
- : b;
- c = n.Z.get(K.Oe);
- h = n.Z.get(A.z7);
- k = n.Z.get(D.B7);
- p = n.Z.get(G.mK);
- h = h.create(a);
- a = h.xY();
- c = c.$b();
- b = Object.assign(Object.assign({
- startPts: b.playbackState && b.playbackState.currentTime || a.sf,
- uiPlayStartTime: Date.now()
- }, b), {
- endPts: a.Bg,
- isPlaygraph: !0
- });
- k = k.create(c, h, p);
- k.addEpisode({
- movieId: a.oa,
- playbackParams: b,
- manifest: f
- });
- return k;
- };
- a.aM = {};
- return a;
- }
- ();
- b.BK = d;
- }, function (d, b, a) {
- var c,
- l,
- q,
- n;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.ko = void 0;
- c = a(0);
- l = a(1);
- q = a(43);
- n = a(66);
- a(153);
- d = function () {
- var b;
- function a(a, b, c, k, p) {
- b = n.rh.call(this, a, b, k, q.uh.events, p, q.uh.events + "/" + c) || this;
- b.context = a;
- b.Zib = c;
- return b;
- }
- da(a, n.rh);
- a.prototype.kf = function (a, b) {
- var f,
- c;
- f = this;
- c = this.qW(b);
- return this.send(a, b.href, c).then(function () {
- return b;
- })["catch"](function (a) {
- throw f.mm(a);
- });
- };
- a.prototype.Uo = function (a, b, c) {
- var f,
- h;
- f = this;
- h = this.qW(c);
- return this.send(a, b.ofa("events").href, h).then(function (a) {
- b.maa(a.result.links);
- return c;
- })["catch"](function (a) {
- throw f.mm(a);
- });
- };
- a.prototype.qW = function (a) {
- return {
- event: this.Zib,
- xid: a.fa,
- position: a.position || 0,
- clientTime: a.BM,
- sessionStartTime: a.rQ,
- mediaId: a.nH,
- trackId: a.eb,
- sessionId: a.sessionId,
- appId: a.WL,
- playTimes: this.fbb(a.yP),
- sessionParams: a.eo,
- mdxControllerEsn: a.Pia
- };
- };
- a.prototype.jba = function (a) {
- return {
- downloadableId: a.md,
- duration: a.duration
- };
- };
- a.prototype.fbb = function (a) {
- var b;
- b = {
- total: a.total,
- audio: a.audio.map(this.jba),
- video: a.video.map(this.jba),
- text: a.text.map(this.jba)
- };
- a.total !== a.nD && (b.totalContentTime = a.nD);
- return b;
- };
- b = a;
- return b = c.__decorate([l.N(), c.__param(0, l.ei()), c.__param(1, l.ei()), c.__param(2, l.ei()), c.__param(3, l.ei()), c.__param(4, l.ei())], b);
- }
- ();
- b.ko = d;
- }, function (d, b, a) {
- var c,
- l,
- q,
- n,
- k,
- p,
- h,
- f,
- u;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.xh = void 0;
- c = a(9);
- l = a(12);
- d = a(2);
- q = a(16);
- n = a(5);
- k = a(354);
- p = a(10);
- h = a(26);
- f = a(33);
- u = n.Z.get(h.yf);
- u.register(d.J.q5, function (a) {
- var h,
- d,
- A,
- D;
- h = n.Z.get(f.dk);
- q.Xa(l.config);
- q.Xa(p.ut && p.ut.getDeviceId || p.eT || h.lY);
- d = n.Z.get(k.h4);
- A = n.Ah("Device");
- u.fd("devs");
- D = n.Z.get(f.Mp);
- d.create({
- deviceId: l.config.deviceId,
- lY: h.lY,
- CFa: "deviceid",
- yh: l.config.yh,
- Rx: D.Vqa,
- Yca: h.Yca,
- userAgent: p.Nl,
- bia: l.config.bia,
- Zea: l.config.Zea,
- hhb: D.ZXa || !1,
- dab: l.config.OCa.e,
- ghb: D.fLb || !1,
- zUb: l.config.Tr ? "mslstoretest" : "mslstore"
- }).then(function (f) {
- b.xh = f;
- t._cad_global.device = b.xh;
- A.info("Esn source: " + b.xh.Nda);
- u.fd("devdone");
- a(c.kd);
- })["catch"](function (b) {
- b.V = void 0;
- a(b);
- });
- });
- }, function (d, b, a) {
- var c,
- l,
- q,
- n,
- k,
- p,
- h,
- f,
- u,
- A,
- G,
- C,
- g,
- D,
- K;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.$c = b.jl = void 0;
- c = a(51);
- l = a(316);
- q = a(623);
- n = a(186);
- k = a(12);
- p = a(9);
- h = a(148);
- f = a(301);
- u = a(35);
- d = a(2);
- A = a(5);
- G = a(199);
- C = a(10);
- g = a(145);
- D = a(26);
- K = a(57);
- A.Z.get(D.yf).register(d.J.dsa, function (d) {
- var D,
- H,
- J,
- m,
- r,
- U,
- t;
- D = A.Z.get(G.$J).mca();
- H = A.Z.get(h.n4).GD;
- J = A.Z.get(l.h6).ak;
- m = {
- zC: A.BN("ASE"),
- w$a: A.BN("JS-ASE", void 0, "Platform"),
- Ah: A.BN,
- storage: g.storage,
- Qo: g.Qo,
- bnb: C.DD,
- getTime: u.Yg,
- eH: {},
- ak: J,
- kr: q.kr,
- GD: H,
- MediaSource: f.Yta,
- SourceBuffer: n.f6,
- uk: function () {
- return [k.config.eW, k.config.gW];
- },
- Gx: function (a) {
- K.Zm.forEach(function (b) {
- b.nSa(a);
- });
- }
- };
- H = new Promise(function (a) {
- g.storage.load("nh", function (b) {
- m.eH.nh = b.V ? b.data : void 0;
- a();
- });
- });
- J = new Promise(function (a) {
- g.storage.load("lh", function (b) {
- m.eH.lh = b.V ? b.data : void 0;
- a();
- });
- });
- r = new Promise(function (a) {
- g.storage.load("gh", function (b) {
- m.eH.gh = b.V ? b.data : void 0;
- a();
- });
- });
- U = new Promise(function (a) {
- g.storage.load("sth", function (b) {
- m.eH.sth = b.V ? b.data : void 0;
- a();
- });
- });
- t = new Promise(function (a) {
- g.storage.load("vb", function (b) {
- m.eH.vb = b.V ? b.data : void 0;
- a();
- });
- });
- Promise.all([H, J, t, U, r]).then(function () {
- var f;
- f = a(621)(m);
- b.$c = a(300);
- b.$c.declare(c.hm);
- b.$c.declare({
- jz: ["useMediaCache", !1],
- Lx: ["diskCacheSizeLimit", 0],
- URb: ["dailyDiskCacheWriteLimit", 0],
- L_: ["mediaCachePrefetchMs", 8E3],
- Qia: ["mediaCachePartitionConfig", {}
- ]
- });
- b.$c.set(a(154)(k.config), !0, A.BN("ASE"));
- f = c.$La(f);
- b.jl = new f(b.$c, D);
- b.jl.Db(k.config.eW, k.config.gW, {
- zC: m.zC
- }, k.config.ZP);
- d(p.kd);
- })["catch"](function (a) {
- m.zC.error("Exception loading location history from local storage", a);
- });
- });
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.rT = b.Uk = b.Jh = void 0;
- b.Jh = function () {};
- (function (a) {
- a.O6 = "PRE_FETCH";
- a.G7 = "QC";
- a.Ol = "STANDARD";
- a.U7 = "SUPPLEMENTAL";
- a.zYa = "DOWNLOAD";
- }
- (b.Uk || (b.Uk = {})));
- b.rT = "PboManifestCommandSymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.mE = void 0;
- b.mE = "PlaygraphConfigSymbol";
- }, function (d, b, a) {
- var c,
- l;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Ctb = b.ROa = b.uxb = b.THa = b.Cxb = b.nz = b.e3 = b.Gp = b.hJ = b.gJ = b.Ei = void 0;
- c = a(20);
- l = a(16);
- b.Ei = "$attributes";
- b.gJ = "$children";
- b.hJ = "$name";
- b.Gp = "$text";
- b.e3 = "$parent";
- b.nz = "$sibling";
- b.Cxb = /^\s*\<\?xml.*\?\>/i;
- b.THa = function (a, b, c) {
- for (var k = 2; k < arguments.length; ++k);
- for (k = 1; (b = arguments[k++]) && (a = a[b]); );
- return a;
- };
- b.uxb = function (a, n) {
- var k;
- a ? k = c.Pd(a[b.Gp]) : void 0 !== n && (k = n);
- l.WM(k);
- return k;
- };
- b.ROa = function (a, c) {
- var k;
- a ? k = a[b.Gp] : void 0 !== c && (k = c);
- l.$Ea(k);
- return k;
- };
- b.Ctb = function (a, c) {
- var k;
- k = {};
- k[b.Ei] = a;
- k[b.Gp] = c;
- return k;
- };
- }, function (d, b, a) {
- var c,
- l;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- c = a(0);
- l = a(225);
- d = function () {
- function a(a, b, c) {
- this.tag = a;
- this.view = b;
- this.L = c;
- this.startOffset = c.offset;
- }
- a.gQa = function (b, c) {
- var k,
- h;
- k = b.ud();
- h = b.hAb();
- b = new(l.cG[k] || a)(k, b.Mlb(h), b);
- b.parse(c);
- return b;
- };
- Object.defineProperties(a.prototype, {
- length: {
- get: function () {
- return this.view.byteLength;
- },
- enumerable: !0,
- configurable: !0
- }
- });
- a.prototype.parse = function () {
- this.L.offset = this.startOffset + this.length;
- this.L.oC = 0;
- return !0;
- };
- a.prototype.OGa = function (a) {
- var b;
- b = [];
- this.tag === a && b.push(this);
- if (this.cG)
- for (var p = 0; p < this.cG.length; p++)
- b = c.__spreadArrays(b, this.cG[p].OGa(a));
- return b;
- };
- a.prototype.AB = function (a) {
- for (a = this.OGa(a); 0 < a.length; )
- return a[0];
- };
- a.prototype.RAa = function () {
- for (this.cG = []; this.L.offset < this.startOffset + this.length; )
- this.cG.push(a.gQa(this.L, this));
- };
- return a;
- }
- ();
- b.f4 = d;
- d.prototype.skip = d.prototype.parse;
- }, function (d) {
- var c,
- l;
- function b() {
- var b,
- n;
- if (DataView.prototype && DataView.prototype.LG && !l) {
- try {
- b = new ArrayBuffer(4);
- n = new DataView(b);
- n.MG(0, 4, 1);
- } catch (k) {
- return;
- }
- try {
- b = new ArrayBuffer(4);
- n = new DataView(b);
- n.MG(1, 2, 2);
- } catch (k) {
- DataView.prototype.MG = a(DataView.prototype.MG, DataView.prototype.getUint8, Uint8Array);
- DataView.prototype.VY = a(DataView.prototype.VY, DataView.prototype.getUint16, Uint16Array);
- DataView.prototype.LG = a(DataView.prototype.LG, DataView.prototype.getUint32, Uint32Array);
- DataView.prototype.jfa = a(DataView.prototype.jfa, DataView.prototype.getInt8, Int8Array);
- DataView.prototype.hfa = a(DataView.prototype.hfa, DataView.prototype.getInt16, Int16Array);
- DataView.prototype.ifa = a(DataView.prototype.ifa, DataView.prototype.getInt32, Int32Array);
- }
- c.tob = function (a, b, c, f, u) {
- return a.MG(b, c, f || 1, u);
- };
- c.rob = function (a, b, c, f, u) {
- return a.VY(b, c, f || 2, u);
- };
- c.sob = function (a, b, c, f, u) {
- return a.LG(b, c, f || 4, u);
- };
- c.VSb = function (a, b, c, f, u) {
- return a.jfa(b, c, f || 1, u);
- };
- c.TSb = function (a, b, c, f, u) {
- return a.hfa(b, c, f || 2, u);
- };
- c.USb = function (a, b, c, f, u) {
- return a.ifa(b, c, f || 4, u);
- };
- l = !0;
- }
- }
- function a(a, b, c) {
- return function (k, h, f, u) {
- var p;
- f = f || c.BYTES_PER_ELEMENT;
- if (k + h * f > this.byteLength) {
- p = new c(h);
- p.set(a.call(this, k, h - 1, f, u));
- p[h - 1] = b.call(this, k + (h - 1 * f), u);
- return p;
- }
- return a.call(this, k, h, f, u);
- };
- }
- c = {
- MG: function (a, b, c, p, h) {
- var f;
- f = new Uint8Array(c);
- p = p || 1;
- for (var k = 0; k < c; ++k, b += p)
- f[k] = a.getUint8(b, h);
- return f;
- },
- VY: function (a, b, c, p, h) {
- var f;
- f = new Uint16Array(c);
- p = p || 2;
- for (var k = 0; k < c; ++k, b += p)
- f[k] = a.getUint16(b, h);
- return f;
- },
- LG: function (a, b, c, p, h) {
- var f;
- f = new Uint32Array(c);
- p = p || 4;
- for (var k = 0; k < c; ++k, b += p)
- f[k] = a.getUint32(b, h);
- return f;
- },
- jfa: function (a, b, c, p, h) {
- var f;
- f = new Int8Array(c);
- p = p || 1;
- for (var k = 0; k < c; ++k, b += p)
- f[k] = a.getInt8(b, h);
- return f;
- },
- hfa: function (a, b, c, p, h) {
- var f;
- f = new Int16Array(c);
- p = p || 2;
- for (var k = 0; k < c; ++k, b += p)
- f[k] = a.getInt16(b, h);
- return f;
- },
- ifa: function (a, b, c, p, h) {
- var f;
- f = new Int32Array(c);
- p = p || 4;
- for (var k = 0; k < c; ++k, b += p)
- f[k] = a.getInt32(b, h);
- return f;
- },
- FSb: b
- };
- l = !1;
- c.Rlb = function () {
- return l;
- };
- b();
- d.P = c;
- }, function (d, b, a) {
- var c,
- l;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- c = a(0);
- l = function (a) {
- function b() {
- return null !== a && a.apply(this, arguments) || this;
- }
- c.__extends(b, a);
- return b;
- }
- (Error);
- b.assert = function (a, b) {
- if (!a)
- throw new l(b || "Assertion failed");
- };
- }, function (d) {
- var n,
- k,
- p,
- h;
- function b() {
- b.Db.call(this);
- }
- function a(a, c, h, k) {
- var f,
- p;
- if ("function" !== typeof h)
- throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof h);
- f = a.cg;
- void 0 === f ? (f = a.cg = Object.create(null), a.nA = 0) : (void 0 !== f.GUb && (a.emit("newListener", c, h.listener ? h.listener : h), f = a.cg), p = f[c]);
- void 0 === p ? (f[c] = h, ++a.nA) : ("function" === typeof p ? p = f[c] = k ? [h, p] : [p, h] : k ? p.unshift(h) : p.push(h), h = void 0 === a.oL ? b.Cgb : a.oL, 0 < h && p.length > h && !p.dJb && (p.dJb = !0, h = Error("Possible EventEmitter memory leak detected. " + p.length + " " + String(c) + " listeners added. Use emitter.setMaxListeners() to increase limit"), h.name = "MaxListenersExceededWarning", h.Hu = a, h.type = c, h.count = p.length, console && console.warn && console.warn(h)));
- return a;
- }
- function c() {
- for (var a = [], b = 0; b < arguments.length; b++)
- a.push(arguments[b]);
- this.WGa || (this.target.removeListener(this.type, this.sVa), this.WGa = !0, k(this.listener, this.target, a));
- }
- function l(a, b, h) {
- a = {
- WGa: !1,
- sVa: void 0,
- target: a,
- type: b,
- listener: h
- };
- b = c.bind(a);
- b.listener = h;
- return a.sVa = b;
- }
- function q(a) {
- var b;
- b = this.cg;
- if (void 0 !== b) {
- a = b[a];
- if ("function" === typeof a)
- return 1;
- if (void 0 !== a)
- return a.length;
- }
- return 0;
- }
- n = "object" === typeof Reflect ? Reflect : null;
- k = n && "function" === typeof n.apply ? n.apply : function (a, b, c) {
- return Function.prototype.apply.call(a, b, c);
- };
- p = Number.isNaN || function (a) {
- return a !== a;
- };
- d.P = b;
- b.EventEmitter = b;
- b.prototype.cg = void 0;
- b.prototype.nA = 0;
- b.prototype.oL = void 0;
- h = 10;
- Object.defineProperty(b, "defaultMaxListeners", {
- enumerable: !0,
- get: function () {
- return h;
- },
- set: function (a) {
- if ("number" !== typeof a || 0 > a || p(a))
- throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + a + ".");
- h = a;
- }
- });
- b.Db = function () {
- if (void 0 === this.cg || this.cg === Object.getPrototypeOf(this).cg)
- this.cg = Object.create(null), this.nA = 0;
- this.oL = this.oL || void 0;
- };
- b.prototype.setMaxListeners = function (a) {
- if ("number" !== typeof a || 0 > a || p(a))
- throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + a + ".");
- this.oL = a;
- return this;
- };
- b.prototype.emit = function (a) {
- var c,
- f,
- h;
- for (var b = [], f = 1; f < arguments.length; f++)
- b.push(arguments[f]);
- c = "error" === a;
- f = this.cg;
- if (void 0 !== f)
- c = c && void 0 === f.error;
- else if (!c)
- return !1;
- if (c) {
- 0 < b.length && (h = b[0]);
- if (h instanceof Error)
- throw h;
- b = Error("Unhandled error." + (h ? " (" + h.message + ")" : ""));
- b.context = h;
- throw b;
- }
- f = f[a];
- if (void 0 === f)
- return !1;
- if ("function" === typeof f)
- k(f, this, b);
- else {
- h = f.length;
- for (var c = Array(h), p = 0; p < h; ++p)
- c[p] = f[p];
- for (f = 0; f < h; ++f)
- k(c[f], this, b);
- }
- return !0;
- };
- b.prototype.addListener = function (b, c) {
- return a(this, b, c, !1);
- };
- b.prototype.on = b.prototype.addListener;
- b.prototype.EPa = function (b, c) {
- return a(this, b, c, !0);
- };
- b.prototype.once = function (a, b) {
- if ("function" !== typeof b)
- throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof b);
- this.on(a, l(this, a, b));
- return this;
- };
- b.prototype.izb = function (a, b) {
- if ("function" !== typeof b)
- throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof b);
- this.EPa(a, l(this, a, b));
- return this;
- };
- b.prototype.removeListener = function (a, b) {
- var f,
- c,
- h,
- k,
- p;
- if ("function" !== typeof b)
- throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof b);
- c = this.cg;
- if (void 0 === c)
- return this;
- f = c[a];
- if (void 0 === f)
- return this;
- if (f === b || f.listener === b)
- 0 === --this.nA ? this.cg = Object.create(null) : (delete c[a], c.removeListener && this.emit("removeListener", a, f.listener || b));
- else if ("function" !== typeof f) {
- h = -1;
- for (k = f.length - 1; 0 <= k; k--)
- if (f[k] === b || f[k].listener === b) {
- p = f[k].listener;
- h = k;
- break;
- }
- if (0 > h)
- return this;
- if (0 === h)
- f.shift();
- else {
- for (; h + 1 < f.length; h++)
- f[h] = f[h + 1];
- f.pop();
- }
- 1 === f.length && (c[a] = f[0]);
- void 0 !== c.removeListener && this.emit("removeListener", a, p || b);
- }
- return this;
- };
- b.prototype.IH = b.prototype.removeListener;
- b.prototype.removeAllListeners = function (a) {
- var b,
- f,
- c;
- f = this.cg;
- if (void 0 === f)
- return this;
- if (void 0 === f.removeListener)
- return 0 === arguments.length ? (this.cg = Object.create(null), this.nA = 0) : void 0 !== f[a] && (0 === --this.nA ? this.cg = Object.create(null) : delete f[a]), this;
- if (0 === arguments.length) {
- b = Object.keys(f);
- for (f = 0; f < b.length; ++f)
- c = b[f], "removeListener" !== c && this.removeAllListeners(c);
- this.removeAllListeners("removeListener");
- this.cg = Object.create(null);
- this.nA = 0;
- return this;
- }
- b = f[a];
- if ("function" === typeof b)
- this.removeListener(a, b);
- else if (void 0 !== b)
- for (f = b.length - 1; 0 <= f; f--)
- this.removeListener(a, b[f]);
- return this;
- };
- b.prototype.listeners = function (a) {
- var b;
- b = this.cg;
- if (void 0 === b)
- a = [];
- else if (a = b[a], void 0 === a)
- a = [];
- else if ("function" === typeof a)
- a = [a.listener || a];
- else {
- for (var b = Array(a.length), f = 0; f < b.length; ++f)
- b[f] = a[f].listener || a[f];
- a = b;
- }
- return a;
- };
- b.listenerCount = function (a, b) {
- return "function" === typeof a.listenerCount ? a.listenerCount(b) : q.call(a, b);
- };
- b.prototype.listenerCount = q;
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.WT = b.hn = void 0;
- b.hn = {
- hE: "PRIMARY",
- goa: "ASSISTIVE",
- ppa: "COMMENTARY",
- NONE: "NONE"
- };
- b.WT = {
- assistive: b.hn.goa,
- closedcaptions: b.hn.goa,
- directorscommentary: b.hn.ppa,
- commentary: b.hn.ppa,
- subtitles: b.hn.hE,
- primary: b.hn.hE,
- none: b.hn.NONE
- };
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.$D = void 0;
- b.$D = "MslProviderSymbol";
- }, function (d, b, a) {
- var c,
- l,
- q,
- n;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Il = void 0;
- c = a(31);
- l = a(61);
- q = a(447);
- d = a(98);
- n = a(133);
- new d.Iw();
- a = function () {
- function a(a, b, f) {
- var h;
- h = q.qJ.call(this, a, b, c.hr.oya) || this;
- h.config = a;
- h.Xia = b;
- h.is = f;
- h.type = c.oj.kw;
- h.zR = n.Ed.QEa();
- return h;
- }
- da(a, q.qJ);
- a.prototype.Ps = function () {
- return Promise.resolve(!1);
- };
- a.prototype.by = function () {
- return Promise.resolve("");
- };
- a.prototype.AY = function () {
- return Promise.resolve("");
- };
- a.prototype.PQ = function () {
- return Promise.resolve(!1);
- };
- a.prototype.NQ = function () {
- return Promise.resolve(!1);
- };
- a.prototype.QQ = function () {
- return Promise.resolve(!1);
- };
- a.prototype.MQ = function () {
- return Promise.resolve(!1);
- };
- a.prototype.BG = function (a) {
- return this.zR[a];
- };
- a.prototype.kaa = function (a) {
- return a;
- };
- a.prototype.iMa = function (a) {
- switch (a) {
- case c.gi.er:
- return "1.4";
- case c.gi.Lz:
- return "2.2";
- }
- };
- a.prototype.fB = function () {
- var a;
- a = {};
- a[l.W.DJ] = "avc1.4D401E";
- a[l.W.ND] = "avc1.4D401F";
- a[l.W.O4] = "avc1.4D4028";
- a[l.W.a5] = "hev1.1.6.L90.B0";
- a[l.W.b5] = "hev1.1.6.L93.B0";
- a[l.W.c5] = "hev1.1.6.L120.B0";
- a[l.W.d5] = "hev1.1.6.L123.B0";
- a[l.W.e5] = "hev1.1.6.L150.B0";
- a[l.W.f5] = "hev1.1.6.L153.B0";
- a[l.W.W4] = "hev1.2.6.L90.B0";
- a[l.W.X4] = "hev1.2.6.L93.B0";
- a[l.W.Y4] = "hev1.2.6.L120.B0";
- a[l.W.Z4] = "hev1.2.6.L123.B0";
- a[l.W.PD] = "hev1.2.6.L150.B0";
- a[l.W.QD] = "hev1.2.6.L153.B0";
- a[l.W.CS] = "hev1.2.6.L90.B0";
- a[l.W.ES] = "hev1.2.6.L93.B0";
- a[l.W.GS] = "hev1.2.6.L120.B0";
- a[l.W.IS] = "hev1.2.6.L123.B0";
- a[l.W.P4] = "hev1.2.6.L90.B0";
- a[l.W.Q4] = "hev1.2.6.L93.B0";
- a[l.W.R4] = "hev1.2.6.L120.B0";
- a[l.W.S4] = "hev1.2.6.L123.B0";
- a[l.W.T4] = "hev1.2.6.L150.B0";
- a[l.W.U4] = "hev1.2.6.L153.B0";
- a[l.W.GJ] = "hev1.2.6.L90.B0";
- a[l.W.HJ] = "hev1.2.6.L93.B0";
- a[l.W.OD] = "hev1.2.6.L120.B0";
- a[l.W.IJ] = "hev1.2.6.L123.B0";
- a[l.W.tJ] = n.Ed.Z3;
- a[l.W.uJ] = n.Ed.hqa;
- a[l.W.CD] = n.Ed.iqa;
- a[l.W.vJ] = n.Ed.jqa;
- a[l.W.wJ] = n.Ed.kqa;
- a[l.W.gS] = n.Ed.lqa;
- a[l.W.tZa] = "avc1.640016";
- a[l.W.wS] = "avc1.64001E";
- a[l.W.xS] = "avc1.64001F";
- a[l.W.N4] = "avc1.640028";
- a[l.W.lya] = n.Ed.AK;
- a[l.W.$T] = n.Ed.AK;
- a[l.W.aU] = n.Ed.AK;
- a[l.W.bU] = n.Ed.AK;
- a[l.W.gya] = n.Ed.zK;
- a[l.W.hya] = n.Ed.zK;
- a[l.W.iya] = n.Ed.zK;
- a[l.W.jya] = n.Ed.zK;
- a[l.W.kya] = n.Ed.zK;
- a[l.W.ioa] = n.Ed.Fi;
- a[l.W.joa] = n.Ed.Fi;
- a[l.W.koa] = n.Ed.Fi;
- a[l.W.loa] = n.Ed.Fi;
- a[l.W.moa] = n.Ed.Fi;
- a[l.W.noa] = n.Ed.Fi;
- a[l.W.ooa] = n.Ed.Fi;
- a[l.W.poa] = n.Ed.Fi;
- return a;
- };
- a.prototype.RIa = function () {
- return this.config().xR;
- };
- a.prototype.HG = function () {
- return Promise.resolve(void 0);
- };
- a.prototype.NN = function () {
- return Promise.resolve(void 0);
- };
- a.prototype.PM = function (a) {
- var b;
- b = [];
- this.is.Xd(a) && b.push(this.iMa(a));
- return [{
- type: "DigitalVideoOutputDescriptor",
- outputType: "unknown",
- supportedHdcpVersions: b,
- isHdcpEngaged: !!b.length
- }
- ];
- };
- a.VI = "video/mp4;codecs={0};";
- return a;
- }
- ();
- b.Il = a;
- }, function (d, b, a) {
- var c;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Ed = void 0;
- c = a(31);
- b.Ed = function () {
- function a() {}
- a.QEa = function (b) {
- var n;
- n = {};
- n[c.yd.qK] = a.MD;
- n[c.yd.yS] = a.MD;
- n[c.yd.YT] = a.EJ;
- n[c.yd.jt] = a.jt;
- n[c.yd.et] = b || a.et;
- n[c.yd.wD] = a.MD;
- n[c.yd.Mw] = a.AK;
- n[c.yd.Fi] = a.Fi;
- return n;
- };
- a.MD = "avc1.640028";
- a.EJ = "hev1.1.6.L93.B0";
- a.Z3 = "dvhe.05.01";
- a.hqa = "dvhe.05.04";
- a.iqa = "dvhe.05.05";
- a.jqa = "dvhe.05.06";
- a.kqa = "dvhe.05.07";
- a.lqa = "dvhe.05.09";
- a.et = a.Z3;
- a.jt = a.EJ;
- a.FR = "mp4a.40.2";
- a.eU = "mp4a.40.42";
- a.aLb = "ec-3";
- a.iQb = "vp9";
- a.AK = "vp09.00.11.08.02";
- a.zK = "vp09.02.31.10.01";
- a.Fi = "av01.0.04M.08";
- a.zXa = [a.lqa, a.kqa, a.jqa, a.iqa, a.hqa, a.Z3];
- return a;
- }
- ();
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.nK = b.g8 = void 0;
- b.g8 = "SystemRandomSymbol";
- b.nK = "RandomGeneratorSymbol";
- }, function (d, b, a) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- d = a(0);
- d.__exportStar(a(19), b);
- d.__exportStar(a(494), b);
- d.__exportStar(a(1098), b);
- d.__exportStar(a(259), b);
- d.__exportStar(a(115), b);
- a(1091);
- a(1087);
- a(1084);
- a(1080);
- a(1077);
- a(1074);
- a(1072);
- a(1069);
- a(1065);
- a(1062);
- a(1061);
- a(1055);
- a(1053);
- a(1051);
- a(1049);
- a(1048);
- a(1042);
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.ST = b.Ym = void 0;
- b.Ym = function () {};
- b.ST = "StringObjectReaderSymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.YD = void 0;
- b.YD = "MediaKeysStorageFactorySymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Lqa = b.Vm = void 0;
- d = b.Vm || (b.Vm = {});
- d[d.DC = 0] = "playready";
- d[d.b3 = 1] = "widevine";
- d[d.yB = 2] = "fairplay";
- d[d.IRb = 3] = "clearkey";
- b.Lqa = "DrmTypeSymbol";
- }, function (d, b, a) {
- var c,
- l,
- q;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.HD = b.nb = void 0;
- c = a(138);
- l = a(47);
- q = a(2);
- b.nb = function () {
- function a() {}
- a.$ea = function (a) {
- if (a) {
- if (a.includes(b.HD.DC))
- return c.Vm.DC;
- if (a.includes("fps"))
- return c.Vm.yB;
- if (a.includes(b.HD.b3))
- return c.Vm.b3;
- }
- throw new l.Dc(q.J.UYa, void 0, void 0, void 0, void 0, "Invalid KeySystem: " + a);
- };
- a.YHa = function (a) {
- switch (a) {
- case c.Vm.DC:
- return b.HD.DC;
- case c.Vm.yB:
- return b.HD.yB;
- default:
- return b.HD.b3;
- }
- };
- a.Np = "com.microsoft.playready";
- a.Gd = "com.microsoft.playready.hardware";
- a.lK = "com.microsoft.playready.software";
- a.KOb = "com.chromecast.playready";
- a.LOb = "org.chromium.external.playready";
- a.gMb = "com.apple.fps.2_0";
- a.n3a = "com.widevine.alpha";
- a.MOb = "com.microsoft.playready.recommendation";
- a.NOb = "com.microsoft.playready.recommendation.3000";
- a.OOb = "com.microsoft.playready.recommendation.2000";
- return a;
- }
- ();
- b.HD = {
- yB: "fairplay",
- b3: "widevine",
- DC: "playready"
- };
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.iE = void 0;
- b.iE = "PlatformConfigDefaultsSymbol";
- }, function (d, b, a) {
- var p;
- function c(a) {
- return "function" === typeof a ? a.name : "symbol" === typeof a ? a.toString() : a;
- }
- function l(a, b) {
- return null === a.Fv ? !1 : a.Fv.rf === b ? !0 : l(a.Fv, b);
- }
- function q(a) {
- function b(a, f) {
- void 0 === f && (f = []);
- f.push(c(a.rf));
- return null !== a.Fv ? b(a.Fv, f) : f;
- }
- return b(a).reverse().join(" --\x3e ");
- }
- function n(a) {
- a.Cba.forEach(function (a) {
- if (l(a, a.rf))
- throw a = q(a), Error(p.hXa + " " + a);
- n(a);
- });
- }
- function k(a) {
- var b;
- if (a.name)
- return a.name;
- a = a.toString();
- b = a.match(/^function\s*([^\s(]+)/);
- return b ? b[1] : "Anonymous function: " + a;
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- p = a(55);
- b.JG = c;
- b.ALa = function (a, b, c) {
- var f;
- f = "";
- a = c(a, b);
- 0 !== a.length && (f = "\nRegistered bindings:", a.forEach(function (a) {
- var b;
- b = "Object";
- null !== a.yk && (b = k(a.yk));
- f = f + "\n " + b;
- a.cB.NMa && (f = f + " - " + a.cB.NMa);
- }));
- return f;
- };
- b.kcb = n;
- b.tsb = function (a, b) {
- var f,
- c;
- if (b.pha() || b.iha()) {
- f = "";
- c = b.Xmb();
- b = b.Llb();
- null !== c && (f += c.toString() + "\n");
- null !== b && b.forEach(function (a) {
- f += a.toString() + "\n";
- });
- return " " + a + "\n " + a + " - " + f;
- }
- return " " + a;
- };
- b.getFunctionName = k;
- }, function (d, b) {
- var c;
- function a() {}
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.kt = void 0;
- c = /^\S+$/;
- a.prototype.kB = function (a) {
- return void 0 !== a;
- };
- a.prototype.Xd = function (a) {
- return null !== a && void 0 !== a;
- };
- a.prototype.OA = function (b) {
- return a.iCa(b);
- };
- a.prototype.baa = function (b) {
- return !(!b || !a.iCa(b));
- };
- a.prototype.eu = function (a) {
- return Array.isArray(a);
- };
- a.prototype.jCa = function (a) {
- return !(!a || a.constructor != Uint8Array);
- };
- a.prototype.dg = function (b, c, n) {
- return a.DBa(b, c, n);
- };
- a.prototype.aaa = function (b) {
- return a.aaa(b);
- };
- a.prototype.Aaa = function (b, c, n) {
- return a.$V(b, c, n) && 0 === b % 1;
- };
- a.prototype.Er = function (b, c, n) {
- return a.$V(b, c || 0, n);
- };
- a.prototype.OL = function (b) {
- return a.$V(b, 1);
- };
- a.prototype.V8a = function (b) {
- return a.$V(b, 0, 255);
- };
- a.prototype.W8a = function (a) {
- return a === +a && (0 === a || a !== (a | 0)) && !0 && !0;
- };
- a.prototype.kCa = function (a) {
- return !(!a || !c.test(a));
- };
- a.prototype.wn = function (b) {
- return a.EBa(b);
- };
- a.prototype.Xl = function (b) {
- return !(!a.EBa(b) || !b);
- };
- a.prototype.NL = function (a) {
- return !0 === a || !1 === a;
- };
- a.prototype.SV = function (a) {
- return "function" == typeof a;
- };
- a.EBa = function (a) {
- return "string" == typeof a;
- };
- a.DBa = function (a, b, c) {
- return "number" == typeof a && !isNaN(a) && isFinite(a) && (void 0 === b || a >= b) && (void 0 === c || a <= c);
- };
- a.aaa = function (a) {
- return "number" == typeof a && isNaN(a);
- };
- a.$V = function (b, c, n) {
- return a.DBa(b, c, n) && 0 === b % 1;
- };
- a.iCa = function (a) {
- return "object" == typeof a;
- };
- b.kt = new a();
- }, function (d) {
- var b;
- b = function () {
- return this;
- }
- ();
- try {
- b = b || Function("return this;")() || (0, eval)("this");
- } catch (a) {
- "object" === typeof t && (b = t);
- }
- d.P = b;
- }, function (d, b, a) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- d = a(0);
- d.__exportStar(a(569), b);
- d.__exportStar(a(568), b);
- }, function (d, b, a) {
- var c,
- l,
- q,
- n,
- k,
- p;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Qo = b.storage = void 0;
- c = a(12);
- l = a(9);
- q = a(305);
- d = a(2);
- n = a(304);
- k = a(302);
- p = a(5);
- a = a(26);
- b.storage = b.storage || void 0;
- b.Qo = b.Qo || void 0;
- p.Z.get(a.yf).register(d.J.msa, function (a) {
- var f;
- switch (c.config.oFb) {
- case "idb":
- f = n.XSa;
- break;
- case "none":
- f = q.ZSa;
- break;
- case "ls":
- f = k.YSa;
- }
- f(function (f) {
- f.V ? (b.storage = f.storage, b.Qo = f.Qo, a(l.kd)) : a(f);
- });
- });
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.jK = void 0;
- b.jK = "PboPublisherSymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Sb = void 0;
- b.Sb = function () {
- function a() {}
- a.Sd = {
- vua: "mr1",
- uua: "mr2",
- wua: "mr3",
- bK: "mr4",
- W0a: "mr5",
- Sz: "mr6"
- };
- a.oc = {
- UNSENT: 0,
- OPENED: 1,
- Gw: 2,
- Wz: 3,
- DONE: 5,
- nw: 6,
- iJ: 7,
- name: "UNSENT OPENED SENT RECEIVING DONE FAILED ABORTED".split(" ")
- };
- a.UOb = {
- foa: 0,
- $z: 1,
- mua: 2,
- name: ["ARRAYBUFFER", "STREAM", "NOTIFICATION"]
- };
- a.JD = {
- NO_ERROR: -1,
- jYa: 0,
- fqa: 1,
- vYa: 2,
- nYa: 3,
- oXa: 4,
- rpa: 5,
- J3: 6,
- pXa: 7,
- qXa: 8,
- rXa: 9,
- lXa: 10,
- nXa: 11,
- qpa: 12,
- mXa: 13,
- kXa: 14,
- FZa: 15,
- Ora: 16,
- Nra: 17,
- i5: 18,
- k5: 19,
- j5: 20,
- Qra: 21,
- HZa: 22,
- MS: 23,
- Pra: 24,
- GZa: 25,
- qYa: 26,
- kYa: 27,
- w2a: 28,
- aYa: 29,
- bYa: 30,
- cYa: 31,
- dYa: 32,
- eYa: 33,
- fYa: 34,
- gYa: 35,
- hYa: 36,
- iYa: 37,
- lYa: 38,
- mYa: 39,
- oYa: 40,
- pYa: 41,
- rYa: 42,
- sYa: 43,
- tYa: 44,
- uYa: 45,
- wYa: 46,
- xYa: 47,
- v2a: 48,
- TIMEOUT: 49,
- g5: 50,
- Lra: 51,
- EZa: 52,
- name: "DNS_ERROR DNS_TIMEOUT DNS_QUERY_REFUSED DNS_NOT_FOUND CONNECTION_REFUSED CONNECTION_TIMEOUT CONNECTION_CLOSED CONNECTION_RESET CONNECTION_RESET_ON_CONNECT CONNECTION_RESET_WHILE_RECEIVING CONNECTION_NET_UNREACHABLE CONNECTION_NO_ROUTE_TO_HOST CONNECTION_NETWORK_DOWN CONNECTION_NO_ADDRESS CONNECTION_ERROR HTTP_CONNECTION_ERROR HTTP_CONNECTION_TIMEOUT HTTP_CONNECTION_STALL HTTP_PROTOCOL_ERROR HTTP_RESPONSE_4XX HTTP_RESPONSE_420 HTTP_RESPONSE_5XX HTTP_TOO_MANY_REDIRECTS HTTP_TRANSACTION_TIMEOUT HTTP_MESSAGE_LENGTH_ERROR HTTP_HEADER_LENGTH_ERROR DNS_NOT_SUPPORTED DNS_EXPIRED SSL_ERROR DNS_BAD_FAMILY DNS_BAD_FLAGS DNS_BAD_HINTS DNS_BAD_NAME DNS_BAD_STRING DNS_CANCELLED DNS_CHANNEL_DESTROYED DNS_CONNECTION_REFUSED DNS_EOF DNS_FILE DNS_FORMAT_ERROR DNS_NOT_IMPLEMENTED DNS_NOT_INITIALIZED DNS_NO_DATA DNS_NO_MEMORY DNS_NO_NAME DNS_QUERY_MALFORMED DNS_RESPONSE_MALFORMED DNS_SERVER_FAILURE SOCKET_ERROR TIMEOUT HTTPS_CONNECTION_ERROR HTTPS_CONNECTION_TIMEOUT HTTPS_CONNECTION_REDIRECT_TO_HTTP".split(" ")
- };
- a.xc = {
- iI: {
- foa: !0,
- $z: !1,
- mua: !0
- }
- };
- return a;
- }
- ();
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.n4 = b.Cqa = void 0;
- b.Cqa = function () {
- this.AUDIO = 0;
- this.VIDEO = 1;
- this.BZa = 2;
- this.kf = function () {};
- };
- b.n4 = "DownloadTrackConstructorFactorySymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.iK = b.d7 = void 0;
- b.d7 = "PboPlaydataServicesSymbol";
- b.iK = "PboPlaydataServicesProviderSymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- d = function () {
- function a(a) {
- this.buffer = a;
- this.position = 0;
- }
- a.prototype.seek = function (a) {
- this.position = a;
- };
- a.prototype.skip = function (a) {
- this.position += a;
- };
- a.prototype.vk = function () {
- return this.buffer.length - this.position;
- };
- a.prototype.Ae = function () {
- return this.buffer[this.position++];
- };
- a.prototype.Qd = function (a) {
- var b;
- b = this.position;
- this.position += a;
- return this.yrb(this.buffer) ? this.buffer.subarray(b, this.position) : this.buffer.slice(b, this.position);
- };
- a.prototype.yrb = function (a) {
- return void 0 !== a.subarray;
- };
- a.prototype.Bc = function (a) {
- for (var b = 0; a--; )
- b = 256 * b + this.buffer[this.position++];
- return b;
- };
- a.prototype.Fs = function (a) {
- for (var b = ""; a--; )
- b += String.fromCharCode(this.buffer[this.position++]);
- return b;
- };
- a.prototype.Vka = function () {
- for (var a = "", b; b = this.Ae(); )
- a += String.fromCharCode(b);
- return a;
- };
- a.prototype.Rb = function () {
- return this.Bc(2);
- };
- a.prototype.Pa = function () {
- return this.Bc(4);
- };
- a.prototype.Hg = function () {
- return this.Bc(8);
- };
- a.prototype.c1 = function () {
- return this.Bc(2) / 256;
- };
- a.prototype.PP = function () {
- return this.Bc(4) / 65536;
- };
- a.prototype.Lf = function (a) {
- for (var b, c = ""; a--; )
- b = this.Ae(), c += "0123456789ABCDEF"[b >>> 4] + "0123456789ABCDEF"[b & 15];
- return c;
- };
- a.prototype.Qy = function () {
- return this.Lf(4) + "-" + this.Lf(2) + "-" + this.Lf(2) + "-" + this.Lf(2) + "-" + this.Lf(6);
- };
- a.prototype.QP = function (a) {
- for (var b = 0, c = 0; c < a; c++)
- b += this.Ae() << (c << 3);
- return b;
- };
- a.prototype.JC = function () {
- return this.QP(4);
- };
- a.prototype.DR = function (a) {
- this.buffer[this.position++] = a;
- };
- a.prototype.d3 = function (a, b) {
- this.position += b;
- for (var c = 1; c <= b; c++)
- this.buffer[this.position - c] = a & 255, a = Math.floor(a / 256);
- };
- a.prototype.CR = function (a) {
- for (var b = a.length, c = 0; c < b; c++)
- this.buffer[this.position++] = a[c];
- };
- a.prototype.uD = function (a, b) {
- this.CR(a.Qd(b));
- };
- a.prototype.vVa = function (b) {
- b = new a(b);
- for (var c, q; ; )
- if (c = b.vk(), q = c >>> 14)
- q = Math.min(4, q), this.DR(192 | q), this.uD(b, 16384 * q);
- else {
- 128 > c ? this.DR(c) : this.d3(c | 32768, 2);
- this.uD(b, c);
- break;
- }
- };
- a.prototype.dQa = function () {
- var q;
- for (var b = [], l = new a(b); ; ) {
- q = this.Ae();
- if (q & 128)
- if (128 == (q & 192))
- q &= 63, q = (q << 8) + this.Ae(), l.uD(this, q);
- else if (q &= 63, 0 < q && 4 >= q) {
- l.uD(this, 16384 * q);
- continue;
- } else
- throw Error("bad asn1");
- else
- l.uD(this, q);
- break;
- }
- return new Uint8Array(b);
- };
- return a;
- }
- ();
- b.xJ = d;
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.TD = void 0;
- b.TD = "LicenseProviderSymbol";
- }, function (d, b, a) {
- var l,
- q;
- function c(a) {
- switch (a) {
- case l.I.NJ:
- return "http";
- case l.I.PJ:
- return "connectiontimeout";
- case l.I.Hz:
- return "readtimeout";
- case l.I.h5:
- return "corruptcontent";
- case l.I.ow:
- return "abort";
- case l.I.QJ:
- case l.I.l5:
- return "unknown";
- }
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Lfa = b.Bfa = b.Afa = void 0;
- l = a(2);
- q = a(10);
- b.Afa = c;
- b.Bfa = function (a, b) {
- a = {
- errorcode: a + (b.errorCode || l.J.Xk)
- };
- b.ha && (a.errorsubcode = b.ha);
- b.we && (a.errorextcode = b.we);
- b.Lda && (a.erroredgecode = b.Lda);
- b.fb && (a.errordetails = b.fb);
- b.Ui && (a.httperr = b.Ui);
- b.a0 && (a.aseneterr = b.a0);
- b.pN && (a.errordata = b.pN);
- b.MO && (a.mediaerrormessage = b.MO);
- (b = c(Number(b.ha))) && (a.nwerr = b);
- return a;
- };
- b.Lfa = function () {
- return {
- screensize: q.jr.width + "x" + q.jr.height,
- screenavailsize: q.jr.availWidth + "x" + q.jr.availHeight,
- clientsize: t.innerWidth + "x" + t.innerHeight
- };
- };
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.hS = b.d4 = void 0;
- (b.d4 || (b.d4 = {})).R1a = "PboDebugEvent";
- b.hS = {
- y0a: "Manifest",
- Event: "Event",
- VMb: "Logblob"
- };
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- d.P = function (a) {
- return {
- minInitVideoBitrate: a.vs,
- minHCInitVideoBitrate: a.cja,
- maxInitVideoBitrate: a.sv,
- minInitAudioBitrate: a.ZO,
- maxInitAudioBitrate: a.HO,
- minHCInitAudioBitrate: a.YO,
- minAcceptableVideoBitrate: a.VO,
- minRequiredBuffer: a.$O,
- minPrebufSize: a.hh,
- rebufferingFactor: a.Zka,
- useMaxPrebufSize: a.Tna,
- maxPrebufSize: a.yy,
- maxRebufSize: a.Kia,
- maxBufferingTime: a.ip,
- minAudioMediaRequestSizeBytes: a.Q_,
- minVideoMediaRequestSizeBytes: a.V_,
- initialBitrateSelectionCurve: a.EZ,
- initSelectionLowerBound: a.lKa,
- initSelectionUpperBound: a.mKa,
- throughputPercentForAudio: a.v2,
- bandwidthMargin: a.Waa,
- bandwidthMarginContinuous: a.Xaa,
- bandwidthMarginCurve: a.Yaa,
- conservBandwidthMargin: a.aca,
- switchConfigBasedOnInSessionTput: a.cna,
- conservBandwidthMarginTputThreshold: a.HM,
- conservBandwidthMarginCurve: a.bca,
- switchAlgoBasedOnHistIQR: a.oTa,
- switchConfigBasedOnThroughputHistory: a.ez,
- maxPlayerStateToSwitchConfig: a.Jia,
- lowEndMarkingCriteria: a.jia,
- IQRThreshold: a.r5,
- histIQRCalcToUse: a.zga,
- maxTotalBufferLevelPerSession: a.vv,
- highWatermarkLevel: a.UJa,
- toStableThreshold: a.RTa,
- toUnstableThreshold: a.z2,
- skipBitrateInUpswitch: a.Hma,
- watermarkLevelForSkipStart: a.$na,
- highStreamRetentionWindow: a.sga,
- lowStreamTransitionWindow: a.kia,
- highStreamRetentionWindowUp: a.uga,
- lowStreamTransitionWindowUp: a.mia,
- highStreamRetentionWindowDown: a.tga,
- lowStreamTransitionWindowDown: a.lia,
- highStreamInfeasibleBitrateFactor: a.rga,
- lowestBufForUpswitch: a.ov,
- lockPeriodAfterDownswitch: a.v_,
- lowWatermarkLevel: a.oia,
- lowestWaterMarkLevel: a.pv,
- lowestWaterMarkLevelBufferRelaxed: a.pia,
- mediaRate: a.Wia,
- maxTrailingBufferLen: a.I_,
- audioBufferTargetAvailableSize: a.cM,
- videoBufferTargetAvailableSize: a.vR,
- maxVideoTrailingBufferSize: a.EMa,
- maxAudioTrailingBufferSize: a.pMa,
- fastUpswitchFactor: a.QX,
- fastDownswitchFactor: a.$da,
- maxMediaBufferAllowed: a.tv,
- maxMediaBufferAllowedInBytes: a.qs,
- simulatePartialBlocks: a.Ema,
- simulateBufferFull: a.ySa,
- considerConnectTime: a.cca,
- connectTimeMultiplier: a.$ba,
- lowGradeModeEnterThreshold: a.TLa,
- lowGradeModeExitThreshold: a.ULa,
- maxDomainFailureWaitDuration: a.sMa,
- maxAttemptsOnFailure: a.oMa,
- exhaustAllLocationsForFailure: a.zGa,
- maxNetworkErrorsDuringBuffering: a.yMa,
- maxBufferingTimeAllowedWithNetworkError: a.Dia,
- fastDomainSelectionBwThreshold: a.HGa,
- throughputProbingEnterThreshold: a.CTa,
- throughputProbingExitThreshold: a.DTa,
- locationProbingTimeout: a.GLa,
- finalLocationSelectionBwThreshold: a.LGa,
- throughputHighConfidenceLevel: a.ATa,
- throughputLowConfidenceLevel: a.BTa,
- locationStatisticsUpdateInterval: a.Zha,
- enablePerfBasedLocationSwitch: a.iGa,
- probeServerWhenError: a.Fq,
- probeRequestTimeoutMilliseconds: a.Fka,
- allowSwitchback: a.du,
- probeDetailDenominator: a.FC,
- maxDelayToReportFailure: a.D_,
- countGapInBuffer: a.DEa,
- bufferThresholdForAbort: a.iDa,
- allowCallToStreamSelector: a.eCa,
- pipelineScheduleTimeoutMs: a.gka,
- maxPartialBuffersAtBufferingStart: a.uv,
- minPendingBufferLen: a.dja,
- maxPendingBufferLen: a.xy,
- maxPendingBufferLenSABCell100: a.F_,
- maxActiveRequestsSABCell100: a.B_,
- maxStreamingSkew: a.Lia,
- maxPendingBufferPercentage: a.Iia,
- maxRequestsInBuffer: a.fC,
- headerRequestSize: a.pZ,
- minBufferLenForHeaderDownloading: a.XO,
- reserveForSkipbackBufferMs: a.ZP,
- numExtraFragmentsAllowed: a.Gja,
- pipelineEnabled: a.lp,
- maxParallelConnections: a.lH,
- socketReceiveBufferSize: a.ESa,
- audioSocketReceiveBufferSize: a.lW,
- videoSocketReceiveBufferSize: a.cJ,
- headersSocketReceiveBufferSize: a.pga,
- updatePtsIntervalMs: a.L2,
- bufferTraceDenominator: a.fba,
- bufferLevelNotifyIntervalMs: a.WA,
- aseReportDenominator: a.$L,
- aseReportIntervalMs: a.Kaa,
- enableAbortTesting: a.eGa,
- abortRequestFrequency: a.FBa,
- streamingStatusIntervalMs: a.Vma,
- prebufferTimeLimit: a.Lv,
- minBufferLevelForTrackSwitch: a.R_,
- penaltyFactorForLongConnectTime: a.aka,
- longConnectTimeThreshold: a.hia,
- additionalBufferingLongConnectTime: a.raa,
- additionalBufferingPerFailure: a.saa,
- rebufferCheckDuration: a.SP,
- enableLookaheadHints: a.hGa,
- lookaheadFragments: a.PLa,
- enableOCSideChannel: a.sB,
- OCSCBufferQuantizationConfig: a.jT,
- updateDrmRequestOnNetworkFailure: a.BUa,
- deferAseScheduling: a.rFa,
- maxDiffAudioVideoEndPtsMs: a.rMa,
- useHeaderCache: a.XI,
- useHeaderCacheData: a.BX,
- defaultHeaderCacheSize: a.fX,
- defaultHeaderCacheDataPrefetchMs: a.Oca,
- headerCacheMaxPendingData: a.lga,
- neverWipeHeaderCache: a.rja,
- headerCachePriorityLimit: a.mga,
- enableUsingHeaderCount: a.mN,
- networkFailureResetWaitMs: a.pja,
- networkFailureAbandonMs: a.oja,
- maxThrottledNetworkFailures: a.H_,
- throttledNetworkFailureThresholdMs: a.u2,
- lowThroughputThreshold: a.nia,
- excludeSessionWithoutHistoryFromLowThroughputThreshold: a.Rda,
- mp4ParsingInNative: a.dNa,
- sourceBufferInOrderAppend: a.FSa,
- requireAudioStreamToEncompassVideo: a.Js,
- allowAudioToStreamPastVideo: a.dCa,
- enableManagerDebugTraces: a.Zg,
- managerDebugMessageInterval: a.fMa,
- managerDebugMessageCount: a.eMa,
- bufferThresholdToSwitchToSingleConnMs: a.eba,
- bufferThresholdToSwitchToParallelConnMs: a.dba,
- netIntrStoreWindow: a.zvb,
- minNetIntrDuration: a.Yub,
- fastHistoricBandwidthExpirationTime: a.sjb,
- bandwidthExpirationTime: a.rab,
- failureExpirationTime: a.pjb,
- historyTimeOfDayGranularity: a.ypb,
- expandDownloadTime: a.fjb,
- minimumMeasurementTime: a.ivb,
- minimumMeasurementBytes: a.hvb,
- throughputMeasurementTimeout: a.iGb,
- initThroughputMeasureDataSize: a.mqb,
- throughputMeasureWindow: a.hGb,
- throughputIQRMeasureWindow: a.gGb,
- IQRBucketizerWindow: a.K_a,
- connectTimeHalflife: a.$cb,
- responseTimeHalflife: a.YBb,
- historicBandwidthUpdateInterval: a.xpb,
- throughputWarmupTime: a.lGb,
- minimumBufferToStopProbing: a.fvb,
- throughputPredictor: a.jGb,
- ase_stream_selector: a.y$a,
- enableFilters: a.jib,
- filterDefinitionOverrides: a.Hjb,
- defaultFilter: a.Agb,
- secondaryFilter: a.CCb,
- defaultFilterDefinitions: a.Bgb,
- initBitrateSelectorAlgorithm: a.Uga,
- bufferingSelectorAlgorithm: a.hba,
- ase_ls_failure_simulation: a.bFa,
- ase_dump_fragments: a.Fca,
- ase_location_history: a.Gca,
- ase_throughput: a.Hca,
- ase_simulate_verbose: a.dFa,
- secondThroughputEstimator: a.Qla,
- secondThroughputMeasureWindowInMs: a.zRa,
- marginPredictor: a.zia,
- networkMeasurementGranularity: a.qja,
- HistoricalTDigestConfig: a.Ura,
- maxIQRSamples: a.vMa,
- minIQRSamples: a.SMa,
- periodicHistoryPersistMs: a.F0,
- saveVideoBitrateMs: a.B1,
- needMinimumNetworkConfidence: a.eP,
- biasTowardHistoricalThroughput: a.bba,
- maxFastPlayBufferInMs: a.Fia,
- maxFastPlayBitThreshold: a.Eia,
- headerCacheTruncateHeaderAfterParsing: a.PJa,
- minAudioMediaRequestDuration: a.rH,
- minVideoMediaRequestDuration: a.wH,
- minAudioMediaRequestDurationCache: a.rH,
- minVideoMediaRequestDurationCache: a.wH,
- addHeaderDataToNetworkMonitor: a.VV,
- useMediaCache: a.jz,
- mediaCachePartitionConfig: a.Qia,
- diskCacheSizeLimit: a.Lx,
- mediaCachePrefetchMs: a.L_,
- hindsightDenominator: a.yga,
- hindsightDebugDenominator: a.xga,
- hindsightParam: a.sZ,
- minimumTimeBeforeBranchDecision: a.W_,
- enableSessionHistoryReport: a.lN,
- earlyStageEstimatePeriod: a.tda,
- lateStageEstimatePeriod: a.sLa,
- maxNumSessionHistoryStored: a.E_,
- minSessionHistoryDuration: a.U_,
- appendMediaRequestOnComplete: a.rCa,
- waitForDrmToAppendMedia: a.dJ,
- forceAppendHeadersAfterDrm: a.bY,
- startMonitorOnLoadStart: a.Oma,
- reportFailedRequestsToNetworkMonitor: a.lla,
- reappendRequestsOnSkip: a.RP,
- maxActiveRequestsPerSession: a.ns,
- limitAudioDiscountByMaxAudioBitrate: a.Uha,
- appendFirstHeaderOnComplete: a.Daa,
- maxAudioFragmentOverlapMs: 0,
- editAudioFragments: a.yX,
- editVideoFragments: a.Px,
- declareBufferingCompleteAtSegmentEnd: a.Jca,
- applyProfileTimestampOffset: a.PA,
- applyProfileStreamingOffset: a.Go,
- requireDownloadDataAtBuffering: a.q1,
- requireSetupConnectionDuringBuffering: a.r1,
- recordFirstFragmentOnSubBranchCreate: a.ala,
- earlyAppendSingleChildBranch: a.xX,
- selectStartingVMAFMethod: a.pI,
- activateSelectStartingVMAF: a.QL,
- minStartingVideoVMAF: a.vH,
- minAcceptableVMAF: a.UO,
- minAllowedVmaf: a.WO,
- alwaysNotifyEOSForPlaygraph: a.zaa,
- enableNewAse: a.EX,
- useNewApi: a.ZI,
- enableHudsonFieldTest: a.DX,
- hudsonTitles: a.$N,
- maxPartialBuffersAtHudson: a.Hia,
- numberOfChunksPerSegment: a.GH,
- targetContentLatency: a.t2,
- targetLongContentLatency: a.gna,
- minimumTimeDelay: a.fja,
- enableWsslEstimate: a.FX,
- maxAllowedOutstandingRequests: a.Cia
- };
- };
- }, function (d, b, a) {
- var c,
- l;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.wwa = b.lE = void 0;
- c = a(0);
- l = a(761);
- (function (a) {
- a[a.Qma = 0] = "startPlayback";
- a[a.Cda = 1] = "endPlayback";
- }
- (b.lE || (b.lE = {})));
- d = function () {
- function a(a) {
- this.config = a;
- this.PQa = [];
- }
- a.prototype.qaa = function (a) {
- var b,
- p;
- p = c.__read(this.config.Zca.filter(function (b) {
- return b.GM === a.GM;
- }), 1)[0];
- (null !== (b = null === p || void 0 === p ? void 0 : p.enabled) && void 0 !== b ? b : a.enabled) && this.PQa.push(a);
- };
- a.prototype.zN = function (a) {
- var b,
- p,
- h,
- f,
- q,
- d;
- h = {};
- f = [];
- try {
- for (var u = c.__values(this.PQa), n = u.next(); !n.done; n = u.next()) {
- q = n.value;
- try {
- d = q.zN({
- uq: a
- });
- d && (q.nNa ? h[q.nNa] = d : h = c.__assign(c.__assign({}, h), d));
- } catch (H) {
- f.push(H);
- }
- }
- } catch (H) {
- b = {
- error: H
- };
- }
- finally {
- try {
- n && !n.done && (p = u["return"]) && p.call(u);
- }
- finally {
- if (b)
- throw b.error;
- }
- }
- f.length && (h["rpt-error"] = new l.toa("Reporting error", f));
- return h;
- };
- return a;
- }
- ();
- b.wwa = d;
- }, function (d, b, a) {
- var c,
- l,
- q,
- n;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Ip = void 0;
- c = a(0);
- l = a(18);
- q = a(781);
- n = a(4);
- d = function () {
- function b(a) {
- this.EK = a;
- this.Fl = [];
- this.console = new n.Console("ASEJS_DOWNLOAD_TRACK_POOL", "media|asejs");
- }
- Object.defineProperties(b, {
- kg: {
- get: function () {
- var c;
- if (void 0 === b.oA) {
- c = a(4);
- b.oA = new b(c.GD);
- }
- return b.oA;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- b.reset = function () {
- b.oA = void 0;
- };
- b.prototype.gB = function (a, b, f, c, k, n) {
- var h,
- p,
- u,
- l;
- h = !1;
- u = n.oEb ? this.Qjb(f, b, a) : -1;
- if (-1 === u) {
- p = {
- track: this.jfb(f, c, a, k, n),
- Dq: f,
- u: b,
- $Pa: a,
- cI: [],
- bq: !1,
- zFa: !1
- };
- this.Fl.push(p);
- l = function () {
- p.bq = !0;
- p.track.removeListener("created", l);
- };
- p.track.on("created", l);
- h = !1;
- } else
- h = !0, p = this.Fl[u];
- a = new q.Bwa(this.console, p.track, p.bq, h);
- p.cI.push(a);
- return a;
- };
- b.prototype.nX = function (a) {
- var b,
- f;
- a.In();
- b = this.WX(function (b) {
- return b.track === a.track;
- });
- if (-1 !== b)
- if (b = this.Fl[b], 1 === b.cI.length)
- b.track.In(), b.zFa = !0;
- else {
- f = b.cI.indexOf(a);
- 0 <= f && b.cI.splice(f, 1);
- }
- else
- a.track.In();
- };
- b.prototype.kf = function () {
- this.EK.kf();
- };
- b.prototype.jfb = function (a, b, f, k, n) {
- var h,
- p,
- u;
- h = this;
- p = !1;
- a ? 1 === f ? (a = !1, b = 1, n.lp ? (a = !0, b = n.lH) : n.ns && 2 < n.ns && (a = !0, b = n.ns), a = {
- type: this.EK.VIDEO,
- openRange: !a,
- pipeline: a,
- connections: b,
- socketBufferSize: n.cJ,
- minRequestSize: n.uH
- }) : 0 === f ? (p = n.lp && (n.rIb || b && n.sIb), a = {
- type: this.EK.AUDIO,
- openRange: !p,
- pipeline: p,
- connections: 1,
- socketBufferSize: n.lW,
- minRequestSize: n.uH
- }) : a = {
- type: this.EK.BZa,
- openRange: !1,
- pipeline: !0,
- connections: 1,
- socketBufferSize: n.pga,
- minRequestSize: n.uH
- }
- : a = {
- type: 0 === f ? l.La.AUDIO : l.La.VIDEO,
- openRange: !1,
- pipeline: !1,
- connections: 1,
- socketBufferSize: 0 === f ? n.lW : n.cJ,
- minRequestSize: n.uH
- };
- u = new this.EK(a, k);
- u.on("transportreport", function (a) {
- var b;
- b = h.WX(function (a) {
- return a.track === u;
- });
- -1 !== b && (b = h.Fl[b], b.cI.length && b.cI[0].emit("transportreport", a));
- });
- u.on("destroyed", function () {
- var a;
- a = h.WX(function (a) {
- return a.track === u;
- });
- -1 !== a && h.Fl.splice(a, 1);
- u.removeAllListeners();
- });
- if (p && n.qIb || n.UUa)
- u.on("pipelinedisabled", function () {
- n.UUa && 1 === u.config.type ? u.g1(c.__assign(c.__assign({}, u.config), {
- socketBufferSize: n.cvb,
- pipeline: !1,
- openRange: !0,
- connections: 1
- })) : u.g1(c.__assign(c.__assign({}, u.config), {
- pipeline: !1,
- openRange: !0
- }));
- });
- return u;
- };
- b.prototype.Qjb = function (a, b, f) {
- return this.WX(function (c) {
- return !c.zFa && (a ? c.Dq && c.u === b && c.$Pa === f : !c.Dq && c.$Pa === f);
- });
- };
- b.prototype.WX = function (a) {
- for (var b = 0; b < this.Fl.length; ++b)
- if (a(this.Fl[b]))
- return b;
- return -1;
- };
- return b;
- }
- ();
- b.Ip = d;
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.wfa = b.yaa = void 0;
- b.yaa = function (a, b) {
- var c,
- q,
- n;
- c = b.profile;
- b = b.u;
- q = a.yCb;
- n = a.zCb;
- return a.xCb || Array.isArray(q) && -1 !== q.indexOf(c) || "object" === typeof n && Array.isArray(n[c]) && -1 !== n[c].indexOf("" + b);
- };
- b.wfa = function (a, b) {
- return void 0 !== a.sH ? a.sH : b && void 0 !== b.sH ? b.sH : 100;
- };
- }, function (d, b, a) {
- var q,
- n,
- k,
- p,
- h,
- f,
- u,
- A;
- function c(a) {
- return a && "function" === typeof a.Ag ? !0 : !1;
- }
- function l(a) {
- return c(a) && (a = typeof a.Nqb, "boolean" === a || "undefined" === a) ? !0 : !1;
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Xr = b.map = b.CXa = b.kjb = b.Mqb = b.nWa = b.vz = void 0;
- q = a(0);
- n = a(63);
- k = a(4).Promise;
- h = function () {
- function a(a) {
- var b;
- b = this;
- this.t5a = a;
- this.gL = !1;
- this.r7a = function (a) {
- return b.yzb(a);
- };
- this.EEa();
- }
- a.Grb = function (a, b) {
- function f() {
- var c;
- c = a.next();
- c.then(function (f) {
- l(a) && a.Nqb || b(f);
- });
- c.then(function (a) {
- return !a.done && f();
- });
- }
- f();
- };
- Object.defineProperties(a.prototype, {
- av: {
- get: function () {
- return this.gL;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- a.dmb = function () {
- return new f([]);
- };
- a.Wfa = function () {
- p || (p = k.resolve({
- done: !0
- }));
- return p;
- };
- a.hTb = function () {
- return {
- done: !0
- };
- };
- Object.defineProperties(a.prototype, {
- WG: {
- get: function () {
- return this.or || !1;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- a.prototype.Ag = function () {
- this.cancel();
- };
- a.prototype.cancel = function () {
- this.AAa();
- this.or = !0;
- return this.a9;
- };
- a.prototype.next = function () {
- return this.or ? this.a9 : k.race([this.a9, this.t5a()]).then(this.r7a);
- };
- a.prototype.yzb = function (a) {
- a.done && (this.gL = !0, this.Ag());
- this.WG || (this.AAa(), this.EEa());
- return a;
- };
- a.prototype.EEa = function () {
- var a;
- a = this;
- this.a9 = new k(function (b) {
- a.AAa = function () {
- b({
- done: !0
- });
- };
- });
- };
- return a;
- }
- ();
- b.vz = h;
- f = function (a) {
- function b(b) {
- var f;
- f = a.call(this, function () {
- return f.Zmb();
- }) || this;
- f.zn = b;
- f.index = 0;
- return f;
- }
- q.__extends(b, a);
- b.prototype.Ag = function () {
- c(this.zn) && this.zn.Ag();
- a.prototype.Ag.call(this);
- };
- b.prototype.Zmb = function () {
- return this.zn.length > this.index ? k.resolve({
- value: this.zn[this.index++],
- done: !1
- }) : k.resolve({
- done: !0
- });
- };
- return b;
- }
- (h);
- b.nWa = f;
- b.Mqb = c;
- b.kjb = l;
- u = function (a) {
- function b(b, c, h) {
- var k;
- k = a.call(this, function () {
- return k.sja();
- }) || this;
- k.console = c;
- k.sj = h;
- k.Hka = !1;
- Array.isArray(b) ? k.sL = new f(b) : k.sL = b;
- return k;
- }
- q.__extends(b, a);
- b.prototype.Azb = function (a) {
- var b;
- this.Hka = !1;
- b = this.console;
- n.Za && b && b.trace("CompoundIterator: processNextOuterIterator");
- if (a.done)
- return a;
- a = a.value;
- if (this.PE)
- return c(a) && a.Ag(), h.Wfa();
- Array.isArray(a) ? this.sj = new f(a) : this.sj = a;
- return this.sja();
- };
- b.prototype.zzb = function (a) {
- var b;
- b = this.console;
- n.Za && b && b.trace("CompoundIterator: processNextInnerResult", this.PE, a.done);
- if (!a.done || this.PE)
- return a;
- this.sj = void 0;
- return this.sja();
- };
- b.prototype.Ag = function () {
- var b;
- b = this.console;
- n.Za && b && b.trace("CompoundIterator: dispose");
- this.PE = !0;
- a.prototype.Ag.call(this);
- c(this.sL) && this.sL.Ag();
- c(this.sj) && this.sj.Ag();
- };
- b.prototype.toString = function () {
- return "CompoundIterator " + this.PE + " " + this.sL + " " + this.sj;
- };
- b.prototype.sja = function () {
- var a,
- b;
- a = this;
- b = this.console;
- n.Za && b && b.trace("CompoundIterator: nextImpl");
- if (this.sj)
- return n.Za && b && b.trace("CompoundIterator: getNextInner"), this.sj.next().then(function (b) {
- return a.zzb(b);
- });
- this.Hka = !0;
- n.Za && b && b.trace("CompoundIterator: getNextOuter");
- return this.sL.next().then(function (b) {
- return a.Azb(b);
- });
- };
- return b;
- }
- (h);
- b.CXa = u;
- b.map = function (a, b, f) {
- return new A(a, b, f);
- };
- A = function (a) {
- function b(b, f, c) {
- var h;
- h = a.call(this, function () {
- return h.e5a();
- }) || this;
- h.source = b;
- h.yia = f;
- h.Tcb = c;
- return h;
- }
- q.__extends(b, a);
- b.prototype.Ag = function () {
- c(this.source) && this.source.Ag();
- a.prototype.Ag.call(this);
- };
- b.prototype.e5a = function () {
- var a,
- b,
- f;
- a = this.Tcb;
- b = this.yia;
- f = this.source;
- n.Za && a && a.trace("MappedIterator: Requesting next");
- return f.next().then(function (a) {
- return a.done ? a : b(a.value);
- });
- };
- return b;
- }
- (h);
- b.Xr = function (a, b, f) {
- return new u(a, b, f);
- };
- }, function (d, b, a) {
- var c,
- l,
- q,
- n;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.tz = void 0;
- c = a(0);
- l = a(6);
- q = a(18);
- n = a(4);
- d = function (a) {
- function b(b, f, c, k, p) {
- c = a.call(this, c) || this;
- c.uaa = !1;
- c.UQa = b;
- c.$c = k;
- c.Xza = b.location || f.location;
- c.GL = b.uc || f.Lb;
- c.jma = b.jma || f.jma;
- c.lWb = n.time.ea();
- l.assert(p);
- c.G = p;
- return c;
- }
- c.__extends(b, a);
- Object.defineProperties(b.prototype, {
- console: {
- get: function () {
- return this.G;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- location: {
- get: function () {
- return this.Xza;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- Lb: {
- get: function () {
- return this.GL;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- b.prototype.Db = function (a) {
- this.Ia = a;
- };
- b.prototype.V1 = function (a, b) {
- this.Xza = a;
- this.GL = b;
- };
- b.prototype.pV = function (a) {
- var b,
- c,
- h;
- b = {
- type: "logdata",
- target: "endplay",
- fields: {}
- };
- c = this.M === q.La.AUDIO ? "audioedit" : "videoedit";
- h = [this.Wx === this.T ? this.Wb : this.zc, this.Wx === this.T ? -this.duration : this.duration];
- a && a.Ns && h.push(a.Ns);
- b.fields[c] = {
- type: "array",
- value: h
- };
- return b;
- };
- b.prototype.fV = function (a) {
- this.$c.RP && (this.oHa = !0, this.ZFa = a);
- };
- b.prototype.N2 = function () {
- var a,
- b;
- if (this.complete)
- return 0;
- a = this.UQa;
- b = a.R;
- return a.url ? this.url === a.url || (b.V1(this, a.location, a.uc), this.SQ(a.url)) ? 0 : (this.G.warn("swapUrl failed: ", this.uG), 2) : (this.G.warn("updateurl, missing url for streamId:", a.sa, "mediaRequest:", this, "stream:", a), 1);
- };
- return b;
- }
- (a(83).Xq);
- b.tz = d;
- }, function (d, b, a) {
- function c(a, b) {
- this.sF = a;
- this.ti = Math.floor((a + b - 1) / b);
- this.Qc = b;
- this.reset();
- }
- a(6);
- c.prototype.shift = function () {
- this.Yc.shift();
- this.Br.shift();
- };
- c.prototype.NH = function (a) {
- return this.vDa(this.Yc[a], a);
- };
- c.prototype.update = function (a, b) {
- this.Yc[a] = (this.Yc[a] || 0) + b;
- };
- c.prototype.push = function () {
- this.Yc.push(0);
- this.Br.push(0);
- this.Qa += this.Qc;
- };
- c.prototype.add = function (a, b, c) {
- var k,
- p,
- h;
- if (null === this.Qa)
- for (k = Math.max(Math.floor((c - b + this.Qc - 1) / this.Qc), 1), this.Qa = b; this.Yc.length < k; )
- this.push();
- for (; this.Qa <= c; )
- this.push(), this.Yc.length > this.ti && this.shift();
- if (null === this.Ql || b < this.Ql)
- this.Ql = b;
- if (b > this.Qa - this.Qc)
- this.update(this.Yc.length - 1, a);
- else if (b == c)
- k = this.Yc.length - Math.max(Math.ceil((this.Qa - c) / this.Qc), 1), 0 <= k && this.update(k, a);
- else
- for (k = 1; k <= this.Yc.length; ++k) {
- p = this.Qa - k * this.Qc;
- h = p + this.Qc;
- if (!(p > c)) {
- if (h < b)
- break;
- this.update(this.Yc.length - k, Math.round(a * (Math.min(h, c) - Math.max(p, b)) / (c - b)));
- }
- }
- for (; this.Yc.length > this.ti; )
- this.shift();
- };
- c.prototype.start = function (a) {
- null === this.Ql && (this.Ql = a);
- null === this.Qa && (this.Qa = a);
- };
- c.prototype.stop = function (a) {
- var b,
- c;
- if (null !== this.Qa)
- if (a - this.Qa > 10 * this.sF)
- this.reset();
- else {
- for (; this.Qa <= a; )
- this.push(), this.Yc.length > this.ti && this.shift();
- b = this.Yc.length - Math.ceil((this.Qa - this.Ql) / this.Qc);
- 0 > b && (this.Ql = this.Qa - this.Qc * this.Yc.length, b = 0);
- c = this.Yc.length - Math.ceil((this.Qa - a) / this.Qc);
- if (b === c)
- this.Br[b] += a - this.Ql;
- else if (c > b)
- for (this.Br[b] += (this.Qa - this.Ql) % this.Qc, this.Br[c] += this.Qc - (this.Qa - a) % this.Qc, a = b + 1; a < c; ++a)
- this.Br[a] = this.Qc;
- this.Ql = null;
- }
- };
- c.prototype.vDa = function (a, b) {
- b = this.Kea(b);
- return 0 === b ? null : 8 * a / b;
- };
- c.prototype.Kea = function (a) {
- var b;
- b = this.Br[a];
- null !== this.Ql && (a = this.Qa - (this.Yc.length - a - 1) * this.Qc, a > this.Ql && (b = a - this.Ql <= this.Qc ? b + (a - this.Ql) : this.Qc));
- return b;
- };
- c.prototype.get = function (a, b) {
- var c,
- k;
- c = this.Yc.map(this.vDa, this);
- if ("last" === a)
- for (a = 0; a < c.length; ++a)
- null === c[a] && (c[a] = 0 < a ? c[a - 1] : 0);
- else if ("average" === a) {
- b = 1 - Math.pow(.5, 1 / ((b || 2E3) / this.Qc));
- for (a = 0; a < c.length; ++a)
- null === c[a] ? c[a] = Math.floor(k || 0) : k = void 0 !== k ? b * c[a] + (1 - b) * k : c[a];
- }
- return c;
- };
- c.prototype.reset = function () {
- this.G9 || (this.Yc = [], this.Br = [], this.Ql = this.Qa = null);
- };
- c.prototype.setInterval = function (a) {
- this.ti = Math.floor((a + this.Qc - 1) / this.Qc);
- };
- d.P = c;
- }, function (d, b, a) {
- var c,
- l;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.ct = void 0;
- c = a(219);
- l = a(6);
- d = function () {
- function a(a) {
- this.config = a;
- this.reset();
- }
- a.kg = function () {
- l.assert(void 0 !== a.oA);
- return a.oA;
- };
- a.Zcb = function (b) {
- a.oA = new a(b);
- };
- a.GRb = function () {
- a.oA = void 0;
- };
- a.prototype.push = function (a) {
- this.Di && this.Di.push(a);
- };
- a.prototype.mb = function () {
- if (this.Di)
- return this.Di.yu(), this.Di.Wh([.25, .5, .75, .9, .95, .99]).map(function (a) {
- return a ? parseFloat(a.toFixed(1)) : 0;
- });
- };
- a.prototype.reset = function () {
- this.config.jGa && this.config.z5 && (this.Di = new c.VPb(this.config.z5.c, this.config.z5.maxc));
- };
- return a;
- }
- ();
- b.ct = d;
- }, function (d, b, a) {
- var c,
- l,
- q,
- n,
- k,
- p,
- h,
- f,
- u,
- A;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.rz = void 0;
- c = a(0);
- d = a(22);
- l = a(7);
- q = d.Ll;
- n = a(4);
- k = n.ak;
- p = a(161);
- h = a(108);
- f = a(11);
- d = a(38);
- u = a(159);
- A = a(163);
- a = function (a) {
- function b(b, f, c, h, p, n, l) {
- f = a.call(this, f, c) || this;
- u.tz.call(f, b, h, p, n, l);
- A.hw.call(f, b, h);
- f.DK = b.url || h.url;
- f.CK = h.responseType;
- f.Cya = h.Y1;
- void 0 === f.CK && (f.CK = k.xc && !k.xc.iI.$z ? 0 : 1);
- f.Sf = new q();
- f.Sf.on(f, k.Sd.vua, f.rL);
- f.Sf.on(f, k.Sd.uua, f.g$);
- f.Sf.on(f, k.Sd.wua, f.h$);
- f.Sf.on(f, k.Sd.bK, f.qL);
- f.Sf.on(f, k.Sd.Sz, f.$E);
- f.qE = !1;
- f.Xc = !1;
- f.yg = !1;
- f.yr = !1;
- f.XK = !1;
- f.yl = 0;
- return f;
- }
- c.__extends(b, a);
- Object.defineProperties(b.prototype, {
- active: {
- get: function () {
- return this.Xc;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- vQa: {
- get: function () {
- return this.yg;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- complete: {
- get: function () {
- return !this.qE && 5 === this.readyState;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- Cr: {
- get: function () {
- return this.qE;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- kha: {
- get: function () {
- return this.yr && !this.XK;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- b.prototype.Db = function (a) {
- u.tz.prototype.Db.call(this, a);
- this.bc || !this.$c.VV && this.ec || (this.bc = h.kg(), this.active && (this.bc.LC(n.time.ea(), {
- requestId: this.rn(),
- je: this.Lb,
- type: this.M
- }), this.yg && (this.bc.sla(n.time.ea()), this.connect && 0 < this.rp.length && this.bc.cu(this.rp[0]))));
- };
- b.prototype.RB = function () {
- return 1 === this.responseType ? 3 <= this.readyState : 5 === this.readyState;
- };
- b.prototype.yF = function (a) {
- this.Oi = a.appendBuffer(this.response, f.vm(this));
- return {
- V: this.Oi
- };
- };
- b.prototype.zs = function () {
- (this.yr = k.prototype.open.call(this, this.DK, {
- start: this.offset,
- end: this.offset + this.ba - 1
- }, this.CK, {}, void 0, void 0, this.Cya)) && this.wN(this);
- return this.yr;
- };
- b.prototype.abort = function () {
- var a;
- if (this.Cr)
- return !0;
- a = this.Xc;
- this.bc && a && this.bc.NC(n.time.ea(), this.yg, {
- requestId: this.rn(),
- je: this.Lb,
- type: this.M
- });
- this.qE = !0;
- this.yg = this.Xc = !1;
- k.prototype.abort.call(this);
- this.fY(this, a, this.kha);
- return !0;
- };
- b.prototype.yc = function () {
- 7 !== this.readyState && 5 !== this.readyState && (this.G.warn("AseMediaRequest: in-progress request should be aborted before cleanup", this), this.abort());
- this.Sf && this.Sf.clear();
- a.prototype.yc.call(this);
- };
- b.prototype.rL = function () {
- var a;
- a = this.cd || this.mf;
- p.ct.kg().push(n.time.ea() - a);
- this.Xc || (this.Xc = !0, this.Vn = this.track.Vn(), this.stream.K.nMa || this.bc && this.bc.LC(a, {
- requestId: this.rn(),
- je: this.Lb,
- type: this.M
- }), this.DB(this), this.zl = this.cd);
- };
- b.prototype.g$ = function () {
- var a,
- b,
- f;
- a = this.cd || this.iea;
- b = this.connect;
- f = this.rp;
- p.ct.kg().push(n.time.ea() - a);
- this.Xc || (this.Xc = !0);
- this.yg || (this.yg = !0, this.stream.K.nMa && this.bc && this.bc.LC(a, {
- requestId: this.rn(),
- je: this.Lb,
- type: this.M
- }), this.bc && this.bc.sla(), b && 0 < f.length && this.bc && this.bc.cu(f[0]), this.CB(this), this.zl = a);
- };
- b.prototype.h$ = function () {
- var a,
- b,
- f;
- a = this;
- b = this.cd;
- f = this.Ie - this.yl;
- p.ct.kg().push(n.time.ea() - b);
- this.yg || (this.yg = !0);
- this.bc && (void 0 === this.zl || this.bc.px(f, this.zl, b, {
- requestId: this.rn(),
- je: this.Lb,
- type: this.M
- }), this.rp && this.rp.length && this.rp.forEach(function (b) {
- a.bc.bu(b);
- }));
- this.AG(this);
- this.zl = b;
- this.yl = this.Ie;
- };
- b.prototype.qL = function () {
- var a,
- b,
- f;
- a = this;
- b = this.cd;
- f = this.Ie - this.yl;
- p.ct.kg().push(n.time.ea() - b);
- this.bc && (0 < f && this.bc.px(f, this.zl, b, {
- requestId: this.rn(),
- je: this.Lb,
- type: this.M
- }), this.rp && this.rp.length && this.rp.forEach(function (b) {
- a.bc.bu(b);
- }), this.bc.NC(b, this.yg, {
- requestId: this.rn(),
- je: this.Lb,
- type: this.M
- }));
- this.yg = this.Xc = !1;
- this.XK = !0;
- this.hq(this);
- this.zl = b;
- this.yl = this.Ie;
- this.yc();
- };
- b.prototype.rn = function () {
- var a,
- b;
- a = (a = this.stream) ? a.toString() : this.url;
- b = this.rW;
- b && (a += ",range " + b.start + "-" + b.end);
- return a;
- };
- b.prototype.$E = function () {
- var a,
- b,
- f,
- c;
- this.G.warn("AseMediaRequest._onError:", this.toString());
- a = this.cd;
- b = this.status;
- f = this.zh;
- c = this.aj;
- p.ct.kg().push(n.time.ea() - a);
- this.complete ? this.G.warn("Error on a done request " + this.toString() + ", failurecode: " + f) : this.Cr ? this.G.warn("Error on an aborted request " + this.toString() + ", failurecode: " + f) : l.la(f) ? (this.bc && this.$c && this.$c.lla && this.mf && void 0 === b && this.bc.px(this.yl ? this.Ie - this.yl : this.Ie, this.zl ? this.zl : this.mf, a, {
- requestId: this.rn(),
- je: this.Lb,
- type: this.M
- }), this.gY(this)) : this.G.warn("ignoring undefined request error (nativecode: " + c + ")");
- };
- return b;
- }
- (k);
- b.rz = a;
- d.uf(u.tz, a, !1);
- d.uf(A.hw, a, !1);
- }, function (d, b, a) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.hw = void 0;
- a(6);
- d = function () {
- function a(a, b) {
- this.Jd = a;
- this.dc = b.ba;
- this.Ud = b.offset;
- }
- Object.defineProperties(a.prototype, {
- stream: {
- get: function () {
- return this.Jd;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- ba: {
- get: function () {
- return this.dc;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- offset: {
- get: function () {
- return this.Ud;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- R: {
- get: function () {
- return this.Jd.R;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- u: {
- get: function () {
- return this.Jd.u;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- M: {
- get: function () {
- return this.Jd.M;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- sa: {
- get: function () {
- return this.Jd.sa;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- O: {
- get: function () {
- return this.Jd.O;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- profile: {
- get: function () {
- return this.Jd.profile;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- S: {
- get: function () {
- return this.Jd.S;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- yH: {
- get: function () {
- return this.Jd.yH;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- Ta: {
- get: function () {
- return this.Jd.Ta;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- a.prototype.toJSON = function () {
- return {
- movieId: this.u,
- streamId: this.sa,
- offset: this.offset,
- bytes: this.ba
- };
- };
- return a;
- }
- ();
- b.hw = d;
- }, function (d, b, a) {
- var c,
- l;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- c = a(0);
- l = a(27);
- d = function (a) {
- function b() {
- return null !== a && a.apply(this, arguments) || this;
- }
- c.__extends(b, a);
- b.prototype.parse = function (b) {
- b = a.prototype.parse.call(this, b);
- this.L.offset += 8;
- this.Ubb = this.L.kh();
- this.oCb = this.L.kh();
- this.L.offset += 4;
- this.sRa = this.L.kh();
- this.L.offset += 2;
- l.Za && this.L.console.trace("MP4AudioSampleEntry: channelcount: " + this.Ubb + ", samplesize: " + this.oCb + ", samplerate: " + this.sRa);
- return b;
- };
- b.mc = !1;
- return b;
- }
- (a(226)["default"]);
- b["default"] = d;
- }, function (d, b, a) {
- var c,
- l;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Hl = void 0;
- c = a(4);
- l = a(11);
- d = function () {
- function a(a) {
- this.G = new c.Console("ASEJS", "media|asejs", "(" + a + ")");
- this.X9 = [];
- }
- a.prototype.Qn = function (a) {
- this.X9[a] || (this.X9[a] = l.uy(c, this.G, "[" + a + "]"));
- return this.X9[a];
- };
- return a;
- }
- ();
- b.Hl = new d(0);
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.XD = void 0;
- b.XD = "ManifestFactorySymbol";
- }, function (d) {
- d.P = function (b) {
- return null != b && "object" === typeof b && !0 === b["@@functional/placeholder"];
- };
- }, function (d, b, a) {
- var c,
- l,
- q;
- c = a(111);
- l = a(52);
- q = a(167);
- d.P = function (a) {
- return function p(b, f, u) {
- switch (arguments.length) {
- case 0:
- return p;
- case 1:
- return q(b) ? p : l(function (f, c) {
- return a(b, f, c);
- });
- case 2:
- return q(b) && q(f) ? p : q(b) ? l(function (b, c) {
- return a(b, f, c);
- }) : q(f) ? l(function (f, c) {
- return a(b, f, c);
- }) : c(function (c) {
- return a(b, f, c);
- });
- default:
- return q(b) && q(f) && q(u) ? p : q(b) && q(f) ? l(function (b, f) {
- return a(b, f, u);
- }) : q(b) && q(u) ? l(function (b, c) {
- return a(b, f, c);
- }) : q(f) && q(u) ? l(function (f, c) {
- return a(b, f, c);
- }) : q(b) ? c(function (b) {
- return a(b, f, u);
- }) : q(f) ? c(function (f) {
- return a(b, f, u);
- }) : q(u) ? c(function (c) {
- return a(b, f, c);
- }) : a(b, f, u);
- }
- };
- };
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.RS = b.t5 = b.n5 = void 0;
- b.n5 = "IDBDatabaseFactorySymbol";
- b.t5 = "IndexedDBFactorySymbol";
- b.RS = "IndexedDBStorageFactorySymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.o5 = b.w6 = b.nua = void 0;
- b.nua = "NativeLocalStorageSymbol";
- b.w6 = "NativeLocalStorageFactorySymbol";
- b.o5 = "IDBFactorySymbol";
- }, function (d, b, a) {
- var c;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.yJ = b.FYa = void 0;
- c = a(31);
- b.FYa = function () {
- this.dM = [];
- this.xR = [];
- this.Oaa = c.Yq.kw;
- this.W2 = c.oj.kw;
- };
- b.yJ = "DeviceCapabilitiesConfigSymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.vK = void 0;
- b.vK = "TimeoutMonitorFactorySymbol";
- }, function (d, b, a) {
- var c;
- c = this && this.__extends || function (a, b) {
- function c() {
- this.constructor = a;
- }
- for (var k in b)
- b.hasOwnProperty(k) && (a[k] = b[k]);
- a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c());
- };
- d = function (a) {
- function b(b) {
- a.call(this);
- this.ta = b;
- }
- c(b, a);
- b.create = function (a) {
- return new b(a);
- };
- b.tc = function (a) {
- a.ij.complete();
- };
- b.prototype.Vl = function (a) {
- var c;
- c = this.ta;
- if (c)
- return c.Mc(b.tc, 0, {
- ij: a
- });
- a.complete();
- };
- return b;
- }
- (a(19).ob);
- b.pS = d;
- }, function (d, b, a) {
- var c,
- l,
- q,
- n,
- k,
- p,
- h,
- f;
- c = a(85);
- l = a(488);
- q = a(487);
- n = a(496);
- k = a(19);
- p = a(256);
- h = a(1088);
- f = a(257);
- b.s2 = function (a, b, d, C) {
- var u;
- u = new h.Hsa(a, d, C);
- if (u.closed)
- return null;
- if (b instanceof k.ob)
- if (b.Lt)
- u.next(b.value), u.complete();
- else
- return u.Om = !0, b.subscribe(u);
- else if (l.AKa(b)) {
- a = 0;
- for (d = b.length; a < d && !u.closed; a++)
- u.next(b[a]);
- u.closed || u.complete();
- } else {
- if (q.RKa(b))
- return b.then(function (a) {
- u.closed || (u.next(a), u.complete());
- }, function (a) {
- return u.error(a);
- }).then(null, function (a) {
- c.root.setTimeout(function () {
- throw a;
- });
- }), u;
- if (b && "function" === typeof b[p.iterator]) {
- b = b[p.iterator]();
- do {
- a = b.next();
- if (a.done) {
- u.complete();
- break;
- }
- u.next(a.value);
- if (u.closed)
- break;
- } while (1);
- } else if (b && "function" === typeof b[f.observable])
- if (b = b[f.observable](), "function" !== typeof b.subscribe)
- u.error(new TypeError("Provided object does not correctly implement Symbol.observable"));
- else
- return b.subscribe(new h.Hsa(a, d, C));
- else
- b = "You provided " + (n.Xe(b) ? "an invalid object" : "'" + b + "'") + " where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.", u.error(new TypeError(b));
- }
- return null;
- };
- }, function (d, b, a) {
- var c;
- c = this && this.__extends || function (a, b) {
- function c() {
- this.constructor = a;
- }
- for (var k in b)
- b.hasOwnProperty(k) && (a[k] = b[k]);
- a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c());
- };
- d = function (a) {
- function b() {
- a.apply(this, arguments);
- }
- c(b, a);
- b.prototype.l0 = function (a, b) {
- this.destination.next(b);
- };
- b.prototype.Uvb = function (a) {
- this.destination.error(a);
- };
- b.prototype.xs = function () {
- this.destination.complete();
- };
- return b;
- }
- (a(70).en);
- b.mT = d;
- }, function (d, b) {
- b.isArray = Array.isArray || function (a) {
- return a && "number" === typeof a.length;
- };
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.M4 = b.L4 = b.L7 = b.M7 = void 0;
- b.M7 = "ReportSyncSymbol";
- b.L7 = "ReportApiErrorSyncSymbol";
- b.L4 = "FtlProbeConfigSymbol";
- b.M4 = "FtlProbeSymbol";
- }, function (d) {
- d.P = {
- dt: {
- i8: 0,
- Fwa: 1,
- nj: 2,
- name: ["transient", "semiTransient", "permanent"]
- },
- Zs: {
- qra: 0,
- Cwa: 1,
- LT: 2,
- dK: 3,
- vt: 100,
- name: ["firstLoad", "scrollHorizontal", "search", "playFocus"]
- },
- hQb: {
- XPb: 0,
- bNb: 1,
- RKb: 2,
- vt: 100,
- name: ["trailer", "montage", "content"]
- },
- gr: {
- Osa: 0,
- qwa: 1,
- d3a: 2,
- yYa: 3,
- vt: 100,
- name: ["left", "right", "up", "down"]
- },
- UJ: {
- xXa: 0,
- LT: 1,
- mMb: 2,
- KLb: 3,
- iKb: 4,
- lMb: 5,
- rWa: 6,
- vt: 100,
- name: "continueWatching search grid episode billboard genre bigRow".split(" ")
- },
- SD: {
- dK: 0,
- cqa: 1,
- vt: 100,
- name: ["playFocused", "detailsOpened"]
- }
- };
- }, function (d, b, a) {
- b = a(250);
- d.P = "undefined" !== typeof b && "undefined" !== typeof nrdp ? nrdp.ea : Date.now;
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.mK = void 0;
- b.mK = "PlaygraphHelperSymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.qo = void 0;
- d = b.qo || (b.qo = {});
- d[d.rua = 0] = "None";
- d[d.vra = 1] = "Fetching";
- d[d.l4 = 2] = "Done";
- d[d.Error = 3] = "Error";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.J7 = void 0;
- b.J7 = function (a, b) {
- var c;
- this.uma = function () {
- c || (c = setInterval(b, a));
- };
- this.Jba = function () {
- c && (clearInterval(c), c = void 0);
- };
- };
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.ji = void 0;
- d = b.ji || (b.ji = {});
- d[d.ISa = 1] = "sourceopen";
- d[d.Po = 2] = "currentTimeChanged";
- d[d.iQ = 3] = "seeked";
- d[d.AUb = 4] = "needlicense";
- d[d.yLa = 5] = "licenseadded";
- d[d.HSa = 6] = "sourceBuffersAdded";
- d[d.Nja = 7] = "onNeedKey";
- }, function (d, b, a) {
- var c,
- l,
- q;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.SEa = b.qia = void 0;
- c = a(16);
- l = a(20);
- q = a(15);
- (function () {
- var k,
- p,
- h;
- function a(a) {
- c.Xa(void 0 !== k[a]);
- return k[a];
- }
- k = {
- '"': '""',
- "\r": "",
- "\n": " "
- };
- p = /["\r\n]/g;
- h = /[", ]/;
- b.SEa = function (b) {
- return q.ac(b) ? q.la(b) ? b : q.Od(b) ? b.replace(p, a) : q.dha(b) ? b : isNaN(b) ? "NaN" : "" : "";
- };
- b.qia = function (a) {
- var f,
- c;
- f = b.SEa;
- c = "";
- l.Ad(a, function (a, b) {
- a = f(a) + "=" + f(b);
- h.test(a) && (a = '"' + a + '"');
- c = c ? c + ("," + a) : a;
- });
- return c;
- };
- }
- ());
- }, function (d, b, a) {
- var l,
- q,
- n;
- function c(a, b) {
- this.ur = b ? [b] : [];
- this.F9 = "$op$" + n++;
- this.o = a;
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Oc = void 0;
- l = a(9);
- q = a(16);
- n = 0;
- c.prototype.addListener = function (a, b) {
- var c;
- c = this;
- q.Eca(a);
- q.Xa(0 > this.ur.indexOf(a));
- a[l.kT + this.F9] = b;
- this.ur = this.ur.slice();
- this.ur.push(a);
- this.ur.sort(function (a, b) {
- return c.QEb(a, b);
- });
- };
- c.prototype.removeListener = function (a) {
- var b;
- q.Eca(a);
- this.ur = this.ur.slice();
- 0 <= (b = this.ur.indexOf(a)) && this.ur.splice(b, 1);
- };
- c.prototype.set = function (a, b) {
- if (this.o !== a) {
- b = {
- oldValue: this.o,
- newValue: a,
- Hx: b
- };
- this.o = a;
- a = this.ur;
- for (var c = a.length, f = 0; f < c; f++)
- a[f](b);
- }
- };
- c.prototype.when = function (a) {
- var b;
- b = this;
- return new Promise(function (c) {
- function f(h) {
- if (a(h.newValue))
- return b.removeListener(f), c(h.newValue);
- }
- if (a(b.o))
- return c(b.o);
- b.addListener(f);
- });
- };
- c.prototype.QEb = function (a, b) {
- return (a[l.kT + this.F9] || 0) - (b[l.kT + this.F9] || 0);
- };
- pa.Object.defineProperties(c.prototype, {
- value: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.o;
- }
- }
- });
- b.Oc = c;
- }, function (d, b, a) {
- var l,
- q,
- n,
- k,
- p,
- h,
- f,
- u,
- A,
- G,
- C,
- g,
- D;
- function c(a, b, c, d, A) {
- var G,
- g;
- G = this;
- this.j = a;
- this.type = b;
- this.Mya = d;
- this.log = A;
- this.SU = new p.Oc(!1);
- this.mA = {
- data: [],
- state: "",
- operation: ""
- };
- this.qH = this.DGa((this.type === l.Ac.La.VIDEO ? this.j.sg.value : this.j.ld.value).ic);
- this.fk = new h.kj();
- this.R9 = {
- Type: this.type
- };
- k.config.ry && (g = !0, this.mea = new p.Oc(!1));
- this.log.trace("Adding source buffer", this.R9, {
- TypeId: this.qH
- });
- this.Gc = c.addSourceBuffer(this.qH);
- this.Gc.addEventListener("updatestart", function () {
- G.mA.state = "updatestart";
- });
- this.Gc.addEventListener("update", function () {
- G.mA.state = "update";
- });
- this.Gc.addEventListener("updateend", function () {
- var a;
- G.SU.set(!1);
- G.Uya && G.Uya();
- G.mA.state = "updateend";
- a = 0;
- try {
- a = G.Gc.buffered.length;
- } catch (ea) {}
- g && a && (g = !1, G.mea.set(!0));
- });
- this.Gc.addEventListener("error", function (b) {
- var c;
- try {
- c = b.target.error && b.target.error.message;
- (b.message || c) && A.error("error event received on sourcebuffer", {
- mediaErrorMessage: b.message
- });
- } catch (ha) {}
- b = f.Z.get(n.Vk);
- a.Wd(b(u.J.H1a, q.CY(G.type)));
- });
- this.Gc.addEventListener("abort", function () {});
- a.addEventListener(C.U.closed, function () {
- G.Gc = void 0;
- });
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.f6 = void 0;
- l = a(51);
- q = a(232);
- n = a(60);
- k = a(12);
- p = a(185);
- h = a(76);
- f = a(5);
- a(84);
- u = a(2);
- a(3);
- A = a(16);
- G = a(15);
- C = a(13);
- g = a(113);
- D = a(147);
- c.prototype.tk = function () {
- return this.SU.value;
- };
- c.prototype.updating = function () {
- return this.Gc ? this.Gc.updating : !1;
- };
- c.prototype.WRa = function (a) {
- this.Uya = a;
- };
- c.prototype.xY = function () {
- return this.mA;
- };
- c.prototype.buffered = function () {
- return this.Gc.buffered;
- };
- c.prototype.toString = function () {
- return "SourceBuffer (type: " + this.type + ")";
- };
- c.prototype.toJSON = function () {
- return {
- type: this.type
- };
- };
- c.prototype.tY = function () {
- var a,
- b,
- f,
- c,
- h,
- k,
- p;
- try {
- a = this.Gc.buffered;
- h = 0;
- if (a)
- for (b = [], f = 0, c = a.length, f = 0; f < c; f++) {
- k = a.start(f);
- p = a.end(f);
- h = h + (p - k);
- A.Xa(p > k);
- b.push(k + "-" + p);
- }
- if (b)
- return {
- Buffered: h.toFixed(3),
- Ranges: b.join("|")
- };
- } catch (U) {}
- };
- c.prototype.qCa = function (a, b) {
- try {
- A.Xa(this.Gc.buffered && 1 >= this.Gc.buffered.length, "Gaps in media are not allowed: " + JSON.stringify(this.tY()));
- } catch (R) {}
- A.Xa(!this.tk());
- this.rSa("append", a);
- b = b && b.Em / 1E3;
- G.la(b) && this.Gc.timestampOffset !== b && (this.Gc.timestampOffset = b);
- this.Gc.appendBuffer(a);
- this.SU.set(!0);
- };
- c.prototype.remove = function (a, b) {
- A.Xa(!this.tk());
- try {
- this.rSa("remove");
- this.Gc.remove(a, b);
- this.SU.set(!0);
- } catch (R) {
- this.log.error("SourceBuffer remove exception", R, this.R9);
- }
- };
- c.prototype.rSa = function (a, b) {
- this.mA.data = b || [];
- this.mA.state = "init";
- this.mA.operation = a;
- };
- c.prototype.bEb = function (a, b) {
- this.ksb = Math.floor(1E3 * a / b);
- };
- c.prototype.Tbb = function (a) {
- var b;
- if (this.Gc) {
- if (a = this.DGa([{
- type: this.fdb,
- Vf: a
- }
- ]), a !== this.qH) {
- b = this.qH;
- this.log.info("Changing SourceBuffer mime-type from: " + this.qH + " to: " + a);
- try {
- if (this.Gc.changeType)
- this.Gc.changeType(a), this.qH = a;
- else
- throw Error("Platform doesnt support changing SourceBuffer mime-type");
- } catch (R) {
- throw this.log.error("Error changing SourceBuffer type", R, this.R9, {
- From: b,
- To: a
- }),
- R;
- }
- }
- } else
- this.log.info("No SourceBuffer");
- };
- c.prototype.appendBuffer = function (a, b) {
- !b || b.ec ? this.Eaa(a, b) : this.bW(a, b);
- return !0;
- };
- c.prototype.Eaa = function (a, b) {
- this.j.$i.Eaa(this, a, b || {});
- };
- c.prototype.bW = function (a, b) {
- this.j.$i.bW(this.adb(a, b));
- };
- c.prototype.adb = function (a, b) {
- var f;
- f = this.ksb || 0;
- return {
- TDa: function () {
- this.response = void 0;
- },
- Fj: function () {
- return this.requestId;
- },
- constructor: {
- name: "MediaRequest"
- },
- M: this.M,
- readyState: D.Sb.oc.DONE,
- Ov: b.T,
- ZH: b.T + b.duration,
- Sr: b.duration,
- Em: f,
- Si: b.Si,
- Na: b.Na,
- sa: b.sa,
- Lb: +b.Lb,
- location: b.location,
- tM: b.offset,
- sM: b.offset + b.ba - 1,
- O: b.O,
- response: a,
- EJa: a && 0 < a.byteLength,
- TB: !0,
- get ec() {
- return !this.TB;
- },
- DRa: this.qj - f || Infinity,
- toJSON: function () {
- var a;
- a = {
- requestId: this.requestId,
- segmentId: this.Na,
- isHeader: this.ec,
- ptsStart: this.Ov,
- ptsOffset: this.Em,
- responseType: this.KQb,
- duration: this.Sr,
- readystate: this.xg
- };
- this.stream && (a.bitrate = this.stream.O);
- return JSON.stringify(a);
- }
- };
- };
- c.prototype.endOfStream = function () {
- var a;
- this.j.Fo("EndOfStream");
- null === (a = this.j.$i) || void 0 === a ? void 0 : a.j0(this.M);
- };
- c.prototype.addEventListener = function (a, b, f) {
- this.fk.addListener(a, b, f);
- };
- c.prototype.removeEventListener = function (a, b) {
- this.fk.removeListener(a, b);
- };
- c.prototype.DGa = function (a) {
- var b;
- b = f.Z.get(g.aA);
- return this.type === l.Ac.La.VIDEO ? b.SM(a) : b.MM(a);
- };
- pa.Object.defineProperties(c.prototype, {
- M: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.type;
- }
- },
- pW: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.Mya.pW;
- }
- },
- sourceId: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.Mya.sourceId;
- }
- },
- fdb: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return 0 === this.type ? "audio" : "video";
- }
- }
- });
- b.f6 = c;
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.oT = void 0;
- b.oT = "PboBindCommandSymbol";
- }, function (d, b, a) {
- var l,
- q,
- n,
- k,
- p,
- h,
- f,
- u,
- A,
- G,
- C,
- g,
- D,
- K,
- J,
- R,
- P;
- function c(a, b) {
- var c;
- function f(a) {
- return a && 0 < a.length && a[0].qy;
- }
- c = k.Z.get(C.TD);
- return a.fa && f(a.Yb) ? c.release(Object.assign(Object.assign({}, b), {
- fa: a.fa,
- Yb: a.Yb
- })) : b.fa && f(b.Yb) ? c.release(b) : Promise.resolve(l.kd);
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.CQa = b.Wpa = void 0;
- l = a(9);
- q = a(12);
- n = a(35);
- k = a(5);
- p = a(16);
- h = a(501);
- f = a(2);
- u = a(49);
- A = a(59);
- G = a(15);
- C = a(151);
- g = a(149);
- D = a(13);
- K = a(94);
- J = a(103);
- R = a(187);
- P = a(33);
- d = function () {
- function a(a) {
- var b;
- b = this;
- this.j = a;
- this.QCa = this.zLa = !1;
- this.log = k.$g(this.j, "Playback");
- this.s_ = k.Z.get(C.TD);
- this.Lj = k.Z.get(K.Ew);
- this.Cc = k.Z.get(J.eA);
- this.Jxb = k.Z.get(R.oT);
- this.j.addEventListener(D.U.xO, function () {
- return b.dIb();
- });
- p.Xa(q.config);
- q.config.Dp || (this.Nhb = k.Z.get(h.o4));
- }
- a.prototype.gM = function (a) {
- var h,
- k,
- u;
- function b() {
- h.j.IRa().then(c)["catch"](a);
- }
- function c(b) {
- try {
- h.j.MPa(b);
- a(l.kd);
- h.Yjb();
- } catch (N) {
- h.log.error("Exception processing authorization response", N);
- a({
- V: !1,
- ha: f.I.P1a
- });
- }
- }
- h = this;
- p.YF(this.j.u);
- p.YF(this.j.di);
- k = this.j.ya;
- if (k) {
- u = k.Uf.Sda;
- u ? (u -= n.Mba(), 18E5 < u ? A.tc(function () {
- c(k);
- h.j.pu = "ui";
- }) : (this.log.error("manifest is expired", {
- gap: u
- }), b())) : A.tc(function () {
- c(k);
- h.j.pu = "ui";
- });
- } else
- q.config.op && this.Cc() ? (u = this.Cc().jq(this.j.u, "manifest")) && u.then(function (a) {
- c(a);
- h.j.pu = "videopreparer";
- })["catch"](function (a) {
- h.log.warn("manifest not in cache", a);
- b();
- }) : b();
- };
- a.prototype.IB = function (a) {
- var b;
- b = this;
- return new Promise(function (f, c) {
- var h,
- p,
- n;
- h = u.Fd.zEa(a.Uh);
- p = a.Ph.map(function (a) {
- return {
- sessionId: a.sessionId,
- dataBase64: k.Hr(a.data)
- };
- });
- n = b.j.onb(a.Ph[0].sessionId);
- h = {
- pg: n.pg,
- Uh: G.is.Xl(a.Uh) ? a.Uh : h,
- uX: [n.sk],
- Ph: p,
- fa: n.fa,
- Kn: a.Kn,
- Jj: n.ya.Jj
- };
- b.j.JM && b.j.JM.NW && (h.LO = b.j.JM.NW);
- b.s_.LA(h).then(function (a) {
- b.j.Yb = a.Yb;
- f(a);
- b.Zjb(n);
- })["catch"](c);
- });
- };
- a.prototype.release = function (a) {
- return c(this.j, a);
- };
- a.prototype.FEa = function () {
- var a;
- a = this.Nhb.create();
- this.j.Df && (a.ce = this.j.Df.by());
- a.Yb = this.j.Yb;
- a.fa = this.j.fa;
- a.u = this.j.u;
- return a;
- };
- a.prototype.Zjb = function (a) {
- this.zLa || (this.zLa = !0, this.j.fireEvent(D.U.xO, {
- u: a.u
- }));
- };
- a.prototype.Yjb = function () {
- var a;
- a = this;
- this.QCa || (this.QCa = !0, this.j.fireEvent(D.U.eab), k.Z.get(g.iK)().then(function (b) {
- b.Qma(a.j);
- }));
- };
- a.prototype.dIb = function () {
- var b,
- c;
- b = this;
- c = k.Z.get(P.dk);
- this.Lj.YG || a.NUa || (a.NUa = !0, c.BIb && q.config.cIb && this.Jxb.kf(this.log, {}).then(function () {
- return b.log.trace("Updated NetflixId");
- })["catch"](function (a) {
- return b.log.error("NetflixId upgrade failed", f.Kp(a));
- }));
- };
- a.NUa = !1;
- return a;
- }
- ();
- b.Wpa = d;
- b.CQa = c;
- }, function (d, b, a) {
- var n,
- k,
- p,
- h,
- f,
- u,
- A,
- G,
- C,
- g,
- D,
- K,
- J,
- R,
- P,
- m,
- z,
- r;
- function c(a, b) {
- var D;
- function c(b) {
- return n.CQa(a, b);
- }
- function h() {
- var a,
- b,
- h,
- k;
- b = u.Ah("Eme");
- h = u.Z.get(f.Mp);
- a = new h.Cz(b, void 0, c, {
- Tc: !1,
- bh: !1
- });
- k = u.Z.get(G.aA);
- return h.Ez(b, "cenc", void 0, {
- Tc: !1,
- bh: !1,
- $G: p.config.Bi,
- nI: {
- M_: p.config.GCb,
- BW: p.config.Sla,
- uWb: p.config.FCb
- },
- hj: a,
- X0: p.config.Kka,
- kz: p.config.yda,
- $Ub: p.config.HCb,
- HCa: k.MM([]),
- cVa: k.SM([]),
- UG: p.config.UG
- });
- }
- function d(a, b) {
- var f,
- c;
- c = u.Z.get(z.yT)(0, b.movieId, void 0, {}, b.xid, P.Jb(m.Yg()), !1, void 0, function () {
- return null;
- });
- p.config.Bi && (D.info("secure stop is enabled"), f = a.V ? {
- success: a.V,
- persisted: !0,
- ss_km: a.RO,
- ss_sr: a.Wy,
- ss_ka: a.FM
- }
- : {
- success: a.V,
- persisted: !0,
- state: a.state,
- ErrorCode: a.code,
- ErrorSubCode: a.Hb,
- ErrorExternalCode: a.qd,
- ErrorEdgeCode: a.im,
- ErrorDetails: a.cause && a.cause.fb
- }, f.browserua = g.Nl, b = u.Z.get(J.$j), a = u.Z.get(R.no).Fn("securestop", a.V ? "info" : "error", f, c), b.Lc(a));
- }
- function C() {
- function a(a, b) {
- var f;
- if (!b.Yb || 0 === b.Yb.length || !b.Yb[0].qy)
- return D.error("releaseDrmSession exception: missing valid keySessionData"), l(a, b);
- if (0 < b.Yb.length) {
- D.info("Sending the deferred playdata and secure stop data");
- f = h();
- return f.create(p.config.ce).then(function () {
- return f.Mgb(b);
- }).then(function (f) {
- D.info("Sent the deferred playdata and secure stop data");
- d(f, b);
- return l(a, b);
- })["catch"](function (f) {
- f && f.code === A.J.n2a && l(a, b);
- f && f.code === A.J.O7 && l(a, b);
- D.error("Unable to send last stop", f);
- d(f, b);
- throw f;
- });
- }
- D.info("No key session so just send the playdata");
- return c(b).then(function () {
- D.trace("Successfully sent stop command for previous session");
- return l(a, b);
- })["catch"](function (a) {
- D.error("Unable to send stop command for previous session", a);
- throw a;
- });
- }
- q(D).then(function (f) {
- var c;
- c = f.vX.filter(function (a) {
- return !1 === a.active;
- }).map(function (b) {
- return a(f, b);
- });
- Promise.all(c).then(function () {
- D.info("release drm session completed for " + c.length + " entries");
- b(k.kd);
- })["catch"](function (a) {
- a = a || {};
- a.DrmCacheSize = c.length;
- D.error("Unable to release one or more DRM session data", a);
- b(k.kd);
- });
- })["catch"](function (a) {
- D.error("Unable to load DRM session data", a);
- b(k.kd);
- });
- }
- D = u.Ah("PlayDataManager");
- b = b || k.$e;
- p.config.Dp ? b(k.kd) : C();
- }
- function l(a, b) {
- return a ? a.jla(b) : Promise.resolve();
- }
- function q(a) {
- var f;
- if (!b.lda) {
- f = u.Z.get(C.aS);
- b.lda = new Promise(function (b, c) {
- f.hQa().then(function () {
- b(f);
- })["catch"](function (b) {
- a.error("Unable to load DRM data for persistent secure stop", b);
- c(b);
- });
- });
- }
- return b.lda;
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.wva = b.vva = b.lda = void 0;
- n = a(188);
- k = a(9);
- p = a(12);
- h = a(56);
- f = a(33);
- u = a(5);
- A = a(2);
- G = a(113);
- C = a(261);
- g = a(10);
- D = a(149);
- K = a(13);
- J = a(46);
- R = a(62);
- P = a(3);
- m = a(35);
- z = a(191);
- d = a(26);
- r = a(265);
- b.vva = function (a) {
- var d,
- A,
- G,
- C,
- g,
- H;
- function b() {
- A || (a.fd("pdsb"), A = u.Z.get(D.iK)().then(function (b) {
- C = b;
- a.fd("pdsc");
- return b;
- })["catch"](function (b) {
- d.error("Unable to initialize the playdata services", b);
- a.fd("pdse");
- throw b;
- }));
- return A;
- }
- function n() {
- G = !0;
- C && C.close();
- h.Me.removeListener(h.sl, n);
- }
- d = u.$g(a, "PlayDataManager");
- G = !1;
- g = u.Z.get(f.Mp);
- if (!g.Ez || !g.Cz) {
- H = u.Z.get(r.vT)();
- g.Ez = H.rb;
- g.Cz = H.request;
- }
- a.fd("pdctor");
- a.addEventListener(K.U.Cf, function () {
- h.Me.removeListener(h.sl, n);
- });
- a.addEventListener(K.U.xO, function () {
- var b;
- if (!p.config.Dp && a.Df) {
- b = a.IM.FEa();
- q(d).then(function (a) {
- return a.JBa(b);
- })["catch"](function () {
- d.error("Unable to load/add cached DRM data");
- });
- }
- });
- a.addEventListener(K.U.Cf, function () {
- var f;
- if (!G) {
- a.bJb();
- f = [function () {
- return p.config.Dp || !a.Df ? Promise.resolve() : new Promise(function (b) {
- var f;
- d.info("Sending the expedited playdata and secure stop data");
- f = a.IM.FEa();
- a.Df.hjb(f).then(function (b) {
- d.info("Sent the expedited playdata and secure stop data");
- p.config.Bi && a.mv.G1({
- success: b.V,
- persisted: !1,
- ss_km: b.RO,
- ss_sr: b.Wy,
- ss_ka: b.FM
- });
- return q(d);
- }).then(function (a) {
- return l(a, f);
- }).then(function () {
- b();
- })["catch"](function (f) {
- d.error("Unable to send the expedited playdata and secure stop data", f);
- p.config.Bi && a.mv.G1({
- success: f.V,
- state: f.state,
- ErrorCode: f.code,
- ErrorSubCode: f.Hb,
- ErrorExternalCode: f.qd,
- ErrorEdgeCode: f.im,
- ErrorDetails: f.cause && f.cause.fb
- });
- b();
- });
- });
- }
- (), function () {
- return b().then(function (b) {
- return b.VSa(a.ga);
- }).then(function () {
- d.info("Sent the playdata");
- })["catch"](function (a) {
- d.error("Unable to send the playdata", a);
- });
- }
- (), function () {
- return new Promise(function (a) {
- u.Z.get(J.$j).flush(!1)["catch"](function () {
- d.error("Unable to send logblob");
- a();
- }).then(function () {
- a();
- });
- });
- }
- ()];
- Promise.all(f).then(function () {
- a.i0();
- })["catch"](function () {
- a.i0();
- });
- }
- });
- h.Me.addListener(h.sl, n);
- return {
- aDb: function (f) {
- a.fd("pdpb");
- p.config.N1 || b().then(function (b) {
- return b.send(a.u);
- }).then(function () {
- p.config.Dp ? (a.fd("pdpc"), f(k.kd)) : c(a, function () {
- a.fd("pdpc");
- f(k.kd);
- });
- })["catch"](function () {
- a.fd("pdpe");
- f(k.kd);
- });
- }
- };
- };
- b.wva = function () {
- return new Promise(function (a) {
- c({}, function (b) {
- a(b);
- });
- });
- };
- u.Z.get(d.yf).register(A.J.pw, function (a) {
- a(k.kd);
- });
- }, function (d, b, a) {
- var c,
- l,
- q,
- n,
- k,
- p,
- h,
- f,
- u,
- A,
- G;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.dD = void 0;
- c = a(9);
- l = a(12);
- q = a(56);
- n = a(35);
- k = a(2);
- p = a(16);
- h = a(5);
- f = a(20);
- u = a(10);
- A = a(145);
- G = a(15);
- d = a(26);
- h.Z.get(d.yf).register(k.J.nsa, function (a) {
- var g,
- J,
- R;
- function d() {
- var a;
- d = c.$e;
- a = setInterval(C, l.config.dtb);
- q.Me.addListener(q.sl, function (b) {
- b && b.isPopStateEvent ? g.trace("popstate event, Lock timers can stay") : (f.Ad(J, function (a, b) {
- localStorage.removeItem(b.ep);
- }), clearInterval(a));
- }, c.Tz);
- }
- function C() {
- var a;
- a = n.CM();
- f.Ad(J, function (b, f) {
- b = localStorage.getItem(f.ep);
- (b = JSON.parse(b)) ? b.updated = a : b = {
- updated: a,
- sessionId: R,
- count: 1
- };
- localStorage.setItem(f.ep, JSON.stringify(b));
- });
- }
- p.Xa(A.storage);
- g = h.Ah("StorageLock");
- J = {};
- R = Date.now() + "-" + Math.floor(1E6 * Math.random());
- b.dD = {
- LA: function (a, b, h) {
- var q,
- A,
- C,
- D,
- K,
- H,
- P,
- m,
- z,
- r;
- function p(a) {
- localStorage.setItem(C, JSON.stringify(a));
- a = {
- ep: C
- };
- J[C] = a;
- g.trace("Lock acquired", {
- Name: a.ep
- });
- d();
- b({
- V: !0,
- w_: a
- });
- }
- h = void 0 === h ? !1 : h;
- q = this;
- if (localStorage) {
- A = n.CM();
- C = "lock-" + a;
- D = {
- updated: A,
- sessionId: R,
- count: 1
- };
- try {
- if (C in localStorage) {
- K = localStorage.getItem(C);
- H = 0;
- P = JSON.parse(K);
- G.dv(P.updated) && (H = P.updated);
- m = u.Oz(A - H) * c.mj;
- z = R === P.sessionId;
- if (m < l.config.HLa)
- if (z)
- P.count += 1, g.debug("Incremented lock count for existing playbackSession", {
- id: R,
- count: P.count
- }), P.updated = A, p(P);
- else if (h) {
- r = l.config.HLa - m + c.mj;
- g.error("Waiting until current expiration to confirm whether lock is still active", {
- id: R,
- count: P.count,
- Epoch: A,
- LockEpoch: H,
- waitTimeoutMs: r
- });
- t.setTimeout(function () {
- return q.LA(a, b, !1);
- }, r);
- } else
- b({
- V: !1
- });
- else
- g.error("Lock was expired or invalid, ignoring", {
- Epoch: A,
- LockEpoch: H
- }), p(D);
- } else
- p(D);
- } catch (Ea) {
- g.error("Error acquiring Lock", {
- errorSubCode: k.I.Of,
- errorDetails: f.pd(Ea)
- });
- b({
- V: !0
- });
- }
- } else
- u.Xha ? g.error("Local storage access exception", {
- errorSubCode: k.I.C2a,
- errorDetails: f.pd(u.Xha)
- }) : g.error("No localstorage", {
- errorSubCode: k.I.D2a
- }), b({
- V: !0
- });
- },
- release: function (a, b) {
- var f,
- h;
- p.Xa(J[a.ep] == a);
- if (localStorage) {
- try {
- f = localStorage.getItem(a.ep);
- h = JSON.parse(f);
- 1 < h.count ? (--h.count, localStorage.setItem(a.ep, JSON.stringify(h)), g.trace("Lock count decremented", {
- Name: a.ep,
- count: h.count
- })) : (localStorage.removeItem(a.ep), delete J[a.ep], g.trace("Lock released", {
- Name: a.ep
- }));
- } catch (U) {
- g.error("Unable to release Lock", {
- Name: a.ep
- }, U);
- }
- b && b(c.kd);
- }
- }
- };
- l.config.HX ? b.dD.LA("session", function (f) {
- b.dD.URa = f;
- a(c.kd);
- }) : a(c.kd);
- });
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.yT = void 0;
- b.yT = "PlaybackSegmentDataFactorySymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.wT = void 0;
- b.wT = "PlayPredictionDeserializerSymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.sO = void 0;
- b.sO = function (a, b, l) {
- var c;
- if (l.set)
- throw Error("Property " + b + " has a setter and cannot be made into a lazy property.");
- c = l.get;
- l.get = function () {
- var n,
- k;
- n = c.apply(this, arguments);
- k = {
- enumerable: l.enumerable,
- value: n
- };
- Object.getPrototypeOf(a) === Function.prototype ? Object.defineProperty(a, b, k) : Object.defineProperty(this, b, k);
- return n;
- };
- };
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.T5 = void 0;
- b.T5 = function () {
- function a() {}
- a.$Xa = "display";
- a.sXa = "console";
- a.ROb = "remote";
- a.lQb = "writer";
- return a;
- }
- ();
- }, function (d, b, a) {
- var l;
- function c() {}
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.dS = void 0;
- l = a(10);
- c.ica = function (a) {
- var b;
- if (l.te.queryCommandSupported && l.te.queryCommandSupported("copy")) {
- b = l.te.createElement("textarea");
- b.textContent = a;
- b.style.position = "fixed";
- l.te.body.appendChild(b);
- b.select();
- try {
- l.te.execCommand("copy");
- } catch (k) {
- console.warn("Copy to clipboard failed.", k);
- }
- finally {
- l.te.body.removeChild(b);
- }
- }
- };
- b.dS = c;
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.c7 = b.b7 = b.e7 = void 0;
- b.e7 = "PboPlaydataValidatorSymbol";
- b.b7 = "PboPlaydataArrayValidatorSymbol";
- b.c7 = "PboPlaydataCollectionValidatorSymbol";
- }, function (d, b, a) {
- var n,
- k,
- p,
- h,
- f,
- u,
- A;
- function c() {}
- function l() {}
- function q() {}
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.mva = b.sT = void 0;
- n = a(0);
- k = a(1);
- p = a(39);
- h = a(3);
- f = a(14);
- u = a(24);
- A = a(90);
- q.prototype.encode = function (a) {
- return {
- downloadableId: a.md,
- duration: a.duration
- };
- };
- q.prototype.decode = function (a) {
- return {
- md: a.downloadableId,
- duration: a.duration
- };
- };
- l.prototype.encode = function (a) {
- return {
- total: a.total,
- totalContentTime: a.nD,
- audio: a.audio.map(new q().encode),
- video: a.video.map(new q().encode),
- text: a.text.map(new q().encode)
- };
- };
- l.prototype.decode = function (a) {
- var b;
- return {
- total: a.total,
- nD: null !== (b = a.totalContentTime) && void 0 !== b ? b : a.total,
- audio: a.audio.map(new q().decode),
- video: a.video.map(new q().decode),
- text: a.text.map(new q().decode)
- };
- };
- c.prototype.encode = function (a) {
- return {
- type: a.type,
- href: a.href,
- xid: a.fa,
- movieId: a.u,
- position: a.position,
- clientTime: a.BM,
- sessionStartTime: a.rQ,
- mediaId: a.nH,
- playTimes: new l().encode(a.yP),
- trackId: a.eb,
- sessionId: a.sessionId,
- appId: a.WL,
- sessionParams: a.eo,
- mdxControllerEsn: a.Pia,
- profileId: a.profileId
- };
- };
- c.prototype.decode = function (a) {
- return {
- type: a.type,
- href: a.href,
- fa: a.xid,
- u: a.movieId,
- position: a.position,
- BM: a.clientTime,
- rQ: a.sessionStartTime,
- nH: a.mediaId,
- yP: new l().decode(a.playTimes),
- eb: a.trackId,
- sessionId: a.sessionId,
- WL: a.appId,
- eo: a.sessionParams,
- Pia: a.mdxControllerEsn,
- profileId: a.profileId
- };
- };
- b.sT = c;
- d = function () {
- var b;
- function a(a, b, f, c) {
- this.Ga = a;
- this.$Y = b;
- this.qa = f;
- this.profile = c;
- }
- a.prototype.create = function (a) {
- return {
- href: a.ya && a.ya.Jj ? a.ya.Jj.ofa("events").href : "",
- type: "online",
- fa: a.fa.toString(),
- u: a.u,
- position: a.zca || 0,
- BM: this.Ga.P1.ca(h.ia),
- rQ: a.VG ? a.VG.ca(h.ia) : -1,
- nH: this.Jlb(a),
- yP: this.mnb(a),
- eb: void 0 !== a.di ? a.di.toString() : "",
- sessionId: this.$Y().sessionId || this.qa.id,
- WL: this.$Y().WL || this.qa.id,
- eo: a.Oa.eo || {},
- profileId: this.profile
- };
- };
- a.prototype.nfb = function (a, b) {
- return Object.assign({}, this.create(a), {
- Pia: b && b.NW
- });
- };
- a.prototype.load = function (a) {
- return new c().decode(a);
- };
- a.prototype.Jlb = function (a) {
- var b,
- f,
- c;
- b = a.ld.value;
- f = a.sg.value;
- c = a.vc.value;
- return b && f && c ? (a = a.ya.Uf.media.find(function (a) {
- return a.Fl.AUDIO === b.eb && a.Fl.VIDEO === f.eb && a.Fl.h8 === c.eb;
- })) ? a.id : "" : "";
- };
- a.prototype.Efa = function (a) {
- return a.map(function (a) {
- return {
- md: a.downloadableId,
- duration: a.duration
- };
- });
- };
- a.prototype.mnb = function (a) {
- return (a = a.Cm) ? (a = a.lnb(), {
- total: a.total,
- nD: a.totalContentTime,
- audio: this.Efa(a.audio),
- video: this.Efa(a.video),
- text: this.Efa(a.timedtext)
- }) : {
- total: 0,
- nD: 0,
- video: [],
- audio: [],
- text: []
- };
- };
- b = a;
- return b = n.__decorate([k.N(), n.__param(0, k.l(p.Ii)), n.__param(1, k.l(f.jd)), n.__param(2, k.l(u.Oe)), n.__param(3, k.l(A.nE))], b);
- }
- ();
- b.mva = d;
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.qT = void 0;
- b.qT = "PboLicenseResponseTransformerSymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.$J = void 0;
- b.$J = "NetworkMonitorFactorySymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Q5 = b.P5 = void 0;
- b.P5 = "LogMessageRulerConfigSymbol";
- b.Q5 = "LogMessageRulerSymbol";
- }, function (d, b, a) {
- var c,
- l,
- q,
- n,
- k;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.doa = void 0;
- c = a(5);
- l = a(2);
- q = a(360);
- n = a(359);
- k = a(59);
- b.doa = function (a, b) {
- var f,
- h;
- try {
- f = q.xVa(a);
- } catch (A) {
- c.log.error("xml2xmlDoc exception", A);
- }
- k.tc(function () {
- if (f && f.documentElement)
- try {
- h = n.yVa(f);
- } catch (A) {
- c.log.error("xmlDoc2js exception", A);
- }
- k.tc(function () {
- h ? b({
- V: !0,
- object: h
- }) : b({
- V: !1,
- ha: l.I.rra
- });
- });
- });
- };
- }, function (d, b, a) {
- var c,
- l,
- q,
- n,
- k,
- p,
- h;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.IOa = b.HOa = b.y0 = b.Vja = b.JOa = b.LOa = b.KOa = b.MOa = b.z0 = b.NOa = b.OOa = b.GOa = void 0;
- c = a(16);
- l = a(23);
- q = a(9);
- n = a(125);
- k = a(10);
- p = a(15);
- h = a(20);
- b.GOa = function () {
- var ha,
- V,
- ta,
- N,
- na,
- ma,
- ja,
- Q,
- Ea,
- ia,
- Ga,
- x;
- function a(a) {
- if (l.ev(a)) {
- a = a.toLowerCase();
- if ("#" == a[0]) {
- if (7 == a.length)
- return a;
- if (4 == a.length)
- return "#" + a[1] + a[1] + a[2] + a[2] + a[3] + a[3];
- }
- return b.MOa[a];
- }
- }
- function u(a, b, f) {
- b = b[a];
- 0 <= b || (b = parseFloat(a));
- if (0 <= b)
- return k.Wm(b, f);
- }
- function d(a, b) {
- var f,
- c;
- f = a.length;
- c = a[f - 1];
- if ("t" === c)
- return parseFloat(a) * b | 0;
- if ("s" === c)
- return "m" === a[f - 2] ? parseFloat(a) | 0 : parseFloat(a) * q.mj | 0;
- if ((a = a.match(Ea)) && 4 <= a.length)
- return (3600 * parseInt(a[1], 10) + 60 * parseInt(a[2], 10) + parseFloat(a[3])) * q.mj | 0;
- throw Error("dfxp-badtime");
- }
- function G(a, b, f, c, h) {
- var k,
- p,
- u,
- n,
- q,
- l,
- d,
- A;
- if (a) {
- p = a.style;
- f = p ? f[p] : void 0;
- c = (p = a.region) ? c[p] : void 0;
- p = h.length;
- for (u = 0; u < p; u++)
- if (n = h[u], q = a[n], void 0 === q && f && (q = f[n]), void 0 === q && c && (q = c[n]), void 0 !== q && q !== b[n]) {
- if (!k)
- for (k = {}, l = 0; l < p; l++)
- d = h[l], A = b[d], void 0 !== A && (k[d] = A);
- k[n] = q;
- }
- }
- return k || b;
- }
- function C(a, b, f, c, h, k, p, u, q) {
- var A,
- C;
- function d(a, g, D) {
- var K,
- H,
- R,
- P,
- m,
- z;
- K = a[n.Ei];
- H = K.style || g.style || "";
- R = K.region || g.region || "";
- H || R ? (P = H + "/" + R, m = f[P]) : m = b;
- if (!m) {
- m = b;
- z = l.yI(c);
- l.tb(z, h[H]);
- m = J(m, z, p, u, q);
- f[H + "/"] = m;
- R && (l.tb(z, k[R]), l.tb(z, h[H]), m = J(m, z, p, u, q), f[P] = m);
- }
- if (!D)
- a: {
- for (D = ma.length; D--; )
- if (void 0 !== K[ma[D]]) {
- D = !0;
- break a;
- }
- D = void 0;
- }
- D && (K = G(K, g, h, k, ja), m = J(m, K, p, u, q));
- g = (a = a[n.gJ]) && a.length;
- for (H = 0; H < g; H++)
- R = a[H], l.Xe(R) ? ia.test(R[n.hJ]) ? C++ : d(R, K, D) : (A.push({
- text: R,
- lineBreaks: C,
- style: m
- }), C = 0);
- }
- A = [];
- C = 0;
- d(a, c, !1);
- 0 < C && A.push({
- text: "",
- lineBreaks: C,
- style: b
- });
- return A;
- }
- function g(a, b, f, c, h, k, p, u) {
- var n,
- q;
- f && (f = V[f] || "top", a.verticalAlignment !== f && (a.verticalAlignment = f));
- c && (f = ta[c] || "left", a.horizontalAlignment !== f && (a.horizontalAlignment = f));
- h ? ((q = u[h]) ? (c = q.marginLeft, f = q.marginTop) : (n = h.split(" "), c = m(n[0], p.x) || 0, f = m(n[1], p.y) || 0, q = {
- Ln: 0,
- marginLeft: c,
- marginTop: f,
- U9a: c * b.fga + b.SN,
- W9a: f * b.Wna + b.U2
- }, 30 > u.Ln && (u.Ln++, u[h] = q)), a.marginLeft = q.U9a, a.marginTop = q.W9a) : (f = c = 0, (q = u["default"]) || (u["default"] = q = {
- Ln: 0
- }));
- k && (h = q[k], h || (n = k.split(" "), h = {
- V9a: (1 - (c + (m(n[0], p.x) || 0))) * b.fga + b.SN,
- T9a: (1 - (f + (m(n[1], p.y) || 0))) * b.Wna + b.U2
- }, 30 > q.Ln && (q.Ln++, q[k] = h)), a.marginRight = h.V9a, a.marginBottom = h.T9a);
- }
- function D(a, b, f, c, h) {
- var k,
- p,
- u;
- k = a.displayAlign;
- p = a.textAlign;
- u = a.origin;
- a = a.extent;
- f = l.yI(f);
- g(f, b, k, p, u, a, c, h);
- f.id = ha++;
- return f;
- }
- function K(f, c, h, k) {
- var p,
- n,
- q,
- d,
- A,
- G;
- p = u(h.characterSize || c.characterSize, b.NOa, 2) || 1;
- n = (n = f.fontSize) && Ga.test(n) ? l.Xm(l.Pd(n), 25, 200) : void 0;
- p *= n / 100 || 1;
- n = f.textOutline;
- if (n && "none" != n) {
- d = n.split(" ");
- x.test(d) ? (G = 0, A = f.color) : (G = 1, A = a(d[0]));
- q = P(d[G]);
- d = P(d[G + 1]);
- }
- return {
- characterStyle: h.characterStyle || b.OOa[f.fontFamily] || c.characterStyle,
- characterSize: p * k,
- characterColor: a(h.characterColor || f.color || c.characterColor),
- characterOpacity: u(l.HW(h.characterOpacity, f.opacity, c.characterOpacity), b.z0, 1),
- characterEdgeAttributes: h.characterEdgeAttributes || n && ("none" === n ? b.KOa : d ? b.y0 : b.Vja) || c.characterEdgeAttributes,
- characterEdgeColor: a(h.characterEdgeColor || A || c.characterEdgeColor),
- characterEdgeWidth: q,
- characterEdgeBlur: d,
- characterItalic: "italic" === f.fontStyle,
- characterUnderline: "underline" === f.textDecoration,
- backgroundColor: a(h.backgroundColor || f.backgroundColor || c.backgroundColor),
- backgroundOpacity: u(l.HW(h.backgroundOpacity, f.opacity, c.backgroundOpacity), b.z0, 1)
- };
- }
- function J(a, b, f, c, p) {
- var u;
- b = K(b, f, c, p);
- h.Ad(b, function (b, f) {
- f !== a[b] && (u || (u = k.Uz(a)), u[b] = f);
- });
- return u || a;
- }
- function R(a, b, f, c, h, p, u, q) {
- var l;
- l = a[n.Ei];
- f = G(a[n.Ei], b, f, h, Q);
- b = f.region;
- a = l.displayAlign;
- f = f.textAlign;
- h = l.origin;
- l = l.extent;
- b || a || f || h || l ? ((c = c[b]) ? c = k.Uz(c) : a || h || l ? (c = k.Uz(na), c.id = ha++) : c = k.Uz(N), g(c, p, a, f, h, l, u, q)) : c = N;
- return c;
- }
- function P(a) {
- a = l.Pd(a);
- return p.dv(a, 0, 100) ? a : 0;
- }
- function m(a, b) {
- var f;
- f = a[a.length - 1];
- if ("%" === f)
- return l.Xm(.01 * parseFloat(a), 0, 1);
- if ("c" === f)
- return l.Xm(l.Pd(a) / b, 0, 1);
- }
- function z(a) {
- for (var b = a.length, f = a[--b].endTime; b--; )
- f = k.Wm(a[b].endTime, f);
- return f;
- }
- function r(b) {
- h.Ad(b, function (f, c) {
- 0 <= f.toLowerCase().indexOf("color") && (b[f] = a(c));
- });
- }
- function U(a, b) {
- var f,
- h,
- p,
- u;
- f = a.pixelAspectRatio;
- u = {
- SN: 0,
- fga: 1,
- U2: 0,
- Wna: 1
- };
- a = (a.extent || "640px 480px").split(" ");
- 2 <= a.length && (f = (f || "").split(" "), h = parseFloat(a[0]) * (parseFloat(f[0]) || 1), p = parseFloat(a[1]) * (parseFloat(f[1]) || 1));
- h = 0 < h && 0 < p ? h / p : 1280 / 720;
- b = b || 1280 / 720;
- f = h / b;
- .01 < k.Oz(b - h) && (b >= h ? (u.SN = (1 - f) / 2, u.fga = f) : c.Xa(!1, "not implemented"));
- return u;
- }
- function t(a) {
- var f,
- c,
- h,
- k,
- p;
- if (f = a.cellResolution)
- if (f = f.split(" "), 2 <= f.length) {
- c = l.Pd(f[0]);
- f = l.Pd(f[1]);
- if (0 < c && 0 < f)
- return {
- x: c,
- y: f
- };
- }
- f = a.extent;
- if (f && (f = f.split(" "), 2 <= f.length)) {
- c = l.Pd(f[0]);
- p = l.Pd(f[1]);
- if (a = a.pixelAspectRatio)
- f = a.split(" "), h = l.Pd(f[0]), k = l.Pd(f[1]);
- if (c && p && 1.5 < c * (h || 1) / (p * (k || 1)))
- return b.IOa;
- }
- return b.HOa;
- }
- ha = 1;
- V = {
- before: "top",
- center: "center",
- after: "bottom"
- };
- ta = {
- left: "left",
- start: "left",
- center: "center",
- right: "right",
- end: "right"
- };
- N = {
- id: ha++,
- verticalAlignment: "bottom",
- horizontalAlignment: "center",
- marginTop: .1,
- marginLeft: .1,
- marginRight: .1,
- marginBottom: .1
- };
- na = {
- id: ha++,
- verticalAlignment: "top",
- horizontalAlignment: "left",
- marginTop: 0,
- marginLeft: 0,
- marginRight: 0,
- marginBottom: 0
- };
- ma = "fontFamily fontSize fontStyle textDecoration color opacity backgroundColor textOutline".split(" ");
- ja = ma.concat(["style", "region"]);
- Q = ["region", "textAlign", "displayAlign", "extent", "origin"];
- Ea = /^([0-9]+):([0-9]+):([0-9.]+)$/;
- ia = /^br$/i;
- Ga = /^[0-9]{1,3}%$/;
- x = /^[0-9]/;
- return function (f, c, h, p, A) {
- var P,
- m,
- ba,
- T,
- V,
- N,
- ta,
- ea,
- ma,
- ia,
- Ea,
- Ga,
- Da,
- x,
- ka,
- Za,
- Oa,
- Pa,
- B,
- wb,
- S,
- W,
- Y,
- ca,
- da,
- fa,
- Ie,
- ga,
- la,
- oa;
- function g() {
- try {
- for (var a; Y; )
- if (ma = Y[n.Ei], ca.push({
- id: ha++,
- startTime: d(ma.begin, ba),
- endTime: d(ma.end, ba),
- region: R(Y, fa, N, ea, ta, T, x, Pa),
- textNodes: C(Y, Ie, ga, da, N, ta, Za, Oa, ka)
- }), Y = Y[n.nz], a = k.DD(), 100 < a - la) {
- la = Date.now();
- oa = setTimeout(g, 1);
- return;
- }
- } catch (lf) {
- J({
- ha: l.I.sS,
- fb: l.pd(lf)
- });
- return;
- }
- oa = setTimeout(H, 1);
- }
- function H() {
- var b,
- f,
- c,
- h,
- k,
- p,
- u;
- function a(a, c) {
- for (var h, k = [], p = {}, u, n = f.length; n--; )
- h = f[n], u = h.region.id, p[u] || (p[u] = 1, k.unshift(h));
- (h = b[b.length - 1]) && h.endTime == a && l.Nr(h.blocks, k) ? h.endTime = c : b.push({
- id: ha++,
- startTime: a,
- endTime: c,
- blocks: k
- });
- }
- try {
- if (!ca.length) {
- J({
- V: !0,
- entries: []
- });
- return;
- }
- l.wCa(ca, "startTime");
- b = [];
- f = [];
- c = ca[0];
- k = ca[0].startTime;
- for (p = 1; f.length || c; ) {
- for (; !f.length || c && c.startTime == k; )
- f.push(c), k = c.startTime, c = ca[p++];
- h = z(f);
- if (!c || h <= c.startTime)
- for (a(k, h), k = h, u = f.length; u--; )
- f[u].endTime <= k && f.splice(u, 1);
- else
- a(k, c.startTime), k = c.startTime, f.push(c), c = ca[p++];
- }
- for (p = b.length; p--; )
- b[p].index = p, b[p].previous = b[p - 1], b[p].next = b[p + 1];
- } catch (mf) {
- J({
- ha: l.I.sS,
- fb: l.pd(mf)
- });
- return;
- }
- J({
- V: !0,
- entries: b
- });
- }
- function J(a) {
- setTimeout(function () {
- P.abort = l.$e;
- A(a);
- }, 1);
- }
- P = {
- abort: function () {
- oa && clearTimeout(oa);
- }
- };
- try {
- m = f[n.Ei];
- ba = q.mj / (l.Pd(m.tickRate) || 1);
- T = U(m, c);
- V = l.tb(na, {
- marginLeft: T.SN,
- marginTop: T.U2,
- marginRight: T.SN,
- marginBottom: T.U2
- });
- N = {};
- ta = {};
- ea = {};
- Ga = f.head;
- Da = f.body;
- x = t(m);
- ka = 1 / x.y * T.Wna;
- Za = l.tb({
- characterStyle: "PROPORTIONAL_SANS_SERIF",
- characterColor: "#EBEB64",
- characterEdgeAttributes: b.y0,
- characterEdgeColor: "#000000",
- characterSize: 1
- }, h, {
- Dv: !0
- });
- Oa = p || {};
- Pa = {
- Ln: 0
- };
- if (Ga) {
- B = Ga.styling;
- if (B)
- for (Ea = B.style; Ea; )
- ma = Ea[n.Ei], r(ma), N[ma.id] = ma, Ea = Ea[n.nz];
- wb = Ga.layout;
- if (wb)
- for (var L = wb.region; L; ) {
- ma = L[n.Ei];
- S = ma.id;
- ia = l.yI(N[ma.style]);
- ia = l.tb(ia, ma);
- for (Ea = L.style; Ea; )
- l.tb(ia, Ea[n.Ei]), Ea = Ea[n.nz];
- r(ia);
- ta[S] = ia;
- ea[S] = D(ia, T, V, x, Pa);
- L = L[n.nz];
- }
- }
- W = Da.div;
- Y = W.p;
- ca = [];
- da = {};
- da = G(Da[n.Ei], da, N, ta, ja);
- da = G(W[n.Ei], da, N, ta, ja);
- fa = {};
- fa = G(Da[n.Ei], fa, N, ta, Q);
- fa = G(W[n.Ei], fa, N, ta, Q);
- Ie = K(da, Za, Oa, ka);
- l.tb(Ie, {
- windowColor: a(Oa.windowColor || Za.windowColor),
- windowOpacity: u(l.HW(Oa.windowOpacity, Za.windowOpacity), b.z0, 1),
- cellResolution: x
- }, {
- Dv: !0
- });
- ga = {};
- W.p = void 0;
- W[n.gJ] = [];
- } catch (kf) {
- J({
- ha: l.I.sS,
- fb: l.pd(kf)
- });
- return;
- }
- la = k.DD();
- oa = setTimeout(g, 1);
- return P;
- };
- }
- ();
- b.OOa = {
- "default": "PROPORTIONAL_SANS_SERIF",
- monospaceSansSerif: "MONOSPACED_SANS_SERIF",
- monospaceSerif: "MONOSPACED_SERIF",
- proportionalSansSerif: "PROPORTIONAL_SANS_SERIF",
- proportionalSerif: "PROPORTIONAL_SERIF",
- casual: "CASUAL",
- cursive: "CURSIVE",
- smallCapitals: "SMALL_CAPITALS",
- monospace: "MONOSPACED_SANS_SERIF",
- sansSerif: "PROPORTIONAL_SANS_SERIF",
- serif: "PROPORTIONAL_SERIF"
- };
- b.NOa = {
- SMALL: .5,
- MEDIUM: 1,
- LARGE: 2
- };
- b.z0 = {
- NONE: 0,
- SEMI_TRANSPARENT: .5,
- OPAQUE: 1
- };
- b.MOa = {
- black: "#000000",
- silver: "#c0c0c0",
- gray: "#808080",
- white: "#ffffff",
- maroon: "#800000",
- red: "#ff0000",
- purple: "#800080",
- fuchsia: "#ff00ff",
- magenta: "#ff00ff",
- green: "#00ff00",
- lime: "#00ff00",
- olive: "#808000",
- yellow: "#ffff00",
- navy: "#000080",
- blue: "#0000ff",
- teal: "#008080",
- aqua: "#00ffff",
- cyan: "#00ffff",
- orange: "#ffa500",
- pink: "#ffc0cb"
- };
- b.KOa = "NONE";
- b.LOa = "RAISED";
- b.JOa = "DEPRESED";
- b.Vja = "UNIFORM";
- b.y0 = "DROP_SHADOW";
- b.HOa = {
- x: 40,
- y: 19
- };
- b.IOa = {
- x: 52,
- y: 19
- };
- }, function (d, b, a) {
- var n;
- function c() {}
- function l(a, b) {
- this.Lo = a;
- void 0 !== b ? (n(b <= a.vp, "require remain_sec <= chunk.sec but has " + b + " and " + a.vp), this.gj = b) : this.gj = a.vp;
- }
- function q(a) {
- void 0 === a && (a = []);
- this.Mk = [];
- this.rg = this.Vj = 0;
- for (var b in a)
- this.add(a[b], void 0);
- }
- n = a(6).assert;
- c.prototype = Error();
- l.prototype.constructor = l;
- l.prototype.No = function () {
- return new l(this.Lo, this.gj);
- };
- q.prototype.constructor = q;
- q.prototype.add = function (a, b) {
- a = new l(a, b);
- this.Mk.push(a);
- this.rg += a.gj;
- this.Vj += a.Lo.Su() * a.gj;
- };
- q.prototype.No = function () {
- var a,
- b;
- a = new q(void 0);
- for (b in this.Mk)
- a.add(this.Mk[b].Lo, this.Mk[b].gj);
- return a;
- };
- q.prototype.oq = function () {
- try {
- return this.Mk[0];
- } catch (k) {}
- };
- q.prototype.hPa = function (a) {
- var b;
- for (n(0 <= a, "unexpected play_for_x_sec: x=" + a); 0 < a; ) {
- if (void 0 === this.oq())
- throw new c();
- if (a < this.oq().gj) {
- b = this.oq().Lo.Su() * a;
- this.oq().gj -= a;
- this.rg -= a;
- this.Vj -= b;
- a = 0;
- } else
- b = this.Mk.shift(), this.rg -= b.gj, this.Vj -= b.Lo.Su() * b.gj, a -= b.gj;
- }
- };
- q.prototype.qyb = function (a) {
- var h;
- n(0 <= a, "unexpected play_y_kb: y=" + a);
- for (var b = 0; 0 < a; ) {
- if (void 0 === this.oq())
- throw new c();
- if (a < this.oq().gj * this.oq().Lo.Su()) {
- h = a / this.oq().Lo.Su();
- this.oq().gj -= h;
- this.rg -= h;
- this.Vj -= a;
- b += h;
- a = 0;
- } else
- h = this.Mk.shift(), this.rg -= h.gj, this.Vj -= h.Lo.Su() * h.gj, b += h.gj, a -= h.Lo.Su() * h.gj;
- }
- return b;
- };
- d.P = {
- lpa: q,
- YWa: c
- };
- }, function (d) {
- d.P = {
- tJa: function (b) {
- var a;
- if (b && 0 !== b.length) {
- a = [];
- b.forEach(function (b) {
- var c;
- void 0 === b.error.code && (b.error.code = 0);
- void 0 === b.error.description && (b.error.description = "Unknown");
- a.forEach(function (a) {
- b.error && b.error.code == a.error.code && b.error.description === a.error.description && (c = a);
- });
- c ? c.aQ.push(b.co) : a.push({
- error: b.error,
- aQ: [b.co]
- });
- });
- return a;
- }
- },
- LHa: function (b) {
- var a;
- a = {
- freeSize: b.Ej,
- dailyBytesRemaining: b.WF,
- bytesWritten: b.Pi,
- time: b.time,
- duration: b.duration
- };
- b.items && (a.items = b.items.map(function (a) {
- return {
- key: a.key,
- operation: a.If,
- itemBytes: a.f_,
- error: a.error
- };
- }));
- return a;
- },
- Ds: function (b) {
- return b["catch"](function (a) {
- setTimeout(function () {
- throw a;
- }, 0);
- });
- }
- };
- }, function (d) {
- d.P = {
- uta: {
- code: -1,
- description: "MediaCache is not supported."
- },
- TOb: {
- code: 100,
- description: "Resource was not found"
- },
- e0a: {
- code: 101,
- description: "Resource Metadata was not found"
- },
- oE: {
- code: 102,
- description: "Read failed",
- jo: function (b, a) {
- return {
- code: this.code,
- description: b,
- cause: a
- };
- }
- },
- dU: {
- code: 200,
- description: "Daily write limit exceeded"
- },
- zD: {
- code: 201,
- description: "Capacity has been exceeded"
- },
- cU: {
- code: 202,
- description: "Write failed, cause unknown",
- jo: function (b, a) {
- return {
- code: this.code,
- description: b,
- cause: a
- };
- }
- },
- mQb: {
- code: 203,
- description: "Write failed, cause unknown"
- },
- XXa: {
- code: 300,
- description: "Failed to delete resource",
- jo: function (b, a) {
- return {
- code: this.code,
- description: b,
- cause: a
- };
- }
- },
- qw: {
- code: 900,
- description: "Invalid partition name"
- },
- B_a: {
- code: 700,
- description: "Invalid parition configuration, commitment exceeds capacity."
- },
- eqa: {
- code: 701,
- description: "Failed to initialize underlying disk cache."
- },
- d0a: {
- code: 800,
- description: 'Metadata failed to pass validation. Metadata must be an object with a numeric "lifespan" property.'
- }
- };
- }, function (d, b, a) {
- var c;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Faa = b.Ny = b.wGa = void 0;
- c = a(110).xGa;
- b.wGa = function (a, b, c) {
- var k,
- p,
- h;
- k = 0;
- if (c) {
- a.some(function (a) {
- var f;
- f = a.b;
- a = a.m;
- if (b <= f)
- return k = h && f !== p ? h + (a - h) / (f - p) * (b - p) : a, !0;
- p = f;
- k = h = a;
- return !1;
- });
- } else
- a.some(function (a) {
- k = a.m;
- return b <= a.b;
- });
- return k;
- };
- b.Ny = function (a, b, n) {
- var k;
- b = (null === (k = b.Fa) || void 0 === k ? void 0 : k.Ca) || 0;
- return a.vab ? (a = c(a.uab, n.em - n.Ic, 1), b * (1 - a)) : b * a.v2 / 100;
- };
- b.Faa = function (a, b) {
- return a < 2 * b ? a / 2 : a - b;
- };
- }, function (d, b, a) {
- var c,
- l;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- c = a(778);
- l = a(777);
- b["default"] = function (a, b) {
- switch (a.zia) {
- case "manifold":
- return new c.Lta(a, b);
- default:
- return new l.fxa(a, b);
- }
- };
- }, function (d, b, a) {
- var c;
- b = a(795);
- c = a(377);
- a = a(793);
- d.P = {
- STARTING: a.ERa,
- BUFFERING: b.J1,
- REBUFFERING: b.J1,
- PLAYING: c.nQ,
- PAUSED: c.nQ
- };
- }, function (d, b, a) {
- var c,
- l,
- q,
- n,
- k;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.pz = void 0;
- c = a(0);
- l = a(73);
- q = a(6);
- d = a(38);
- n = a(389);
- k = a(74);
- a = function (a) {
- function b(b, c, h, p, n) {
- h = a.call(this, b, c, h, p, n) || this;
- k.Jh.call(h, b, c);
- h.dc = 0;
- h.Sa || h.Qj();
- h.Oi = !1;
- return h;
- }
- c.__extends(b, a);
- Object.defineProperties(b.prototype, {
- ec: {
- get: function () {
- return !1;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- b.prototype.push = function (b) {
- this.dc += b.ba;
- a.prototype.push.call(this, b);
- };
- b.prototype.RB = function () {
- return !this.Oi && !!this.wa.length && this.wa.every(function (a) {
- return a.RB();
- });
- };
- b.prototype.yF = function (a, b) {
- q.assert(!this.Oi);
- this.Oi = this.wa.every(function (f) {
- return f.RB() ? f.yF(a, b, void 0, void 0) : !1;
- });
- return {
- V: this.Oi
- };
- };
- b.prototype.YAb = function () {
- this.wa.forEach(function (a) {
- a.UP();
- });
- };
- b.prototype.Fj = function () {
- return this.wa ? this.wa[0].Fj() + "-" + this.wa[this.wa.length - 1].Fj() : "empty";
- };
- b.prototype.toString = function () {
- return k.Jh.prototype.toString.call(this) + "(aggregate)";
- };
- b.prototype.toJSON = function () {
- var b;
- b = a.prototype.toJSON.call(this);
- l(k.Jh.prototype.toJSON.call(this), b);
- return b;
- };
- return b;
- }
- (n.n3);
- b.pz = a;
- d.uf(k.Jh, a);
- }, function (d, b, a) {
- var c,
- l,
- q,
- n,
- k,
- p,
- h,
- f,
- u;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.KR = void 0;
- c = a(0);
- a(6);
- d = a(38);
- l = a(209);
- q = a(74);
- n = a(162);
- k = a(18);
- p = a(73);
- h = a(4).ak;
- f = a(807);
- a = a(806);
- u = function (a) {
- var v3Y;
- v3Y = 2;
- while (v3Y !== 3) {
- switch (v3Y) {
- case 2:
- c.__extends(b, a);
- b.create = function (a, c, p, u, q, d, A) {
- var e3Y,
- G,
- C,
- g,
- d3Y;
- e3Y = 2;
- while (e3Y !== 19) {
- d3Y = "s";
- d3Y += "ubreq";
- d3Y += "uest";
- switch (e3Y) {
- case 7:
- G = Math.ceil(u.ba / G);
- e3Y = 6;
- break;
- case 4:
- G = Math.ceil(u.ba / u.eC);
- d = u.offset;
- C = u.ba;
- q = new l.pz(a, u, q, c, A);
- e3Y = 7;
- break;
- case 1:
- return new f.Boa(a, p, u, q, d, c, A);
- break;
- case 5:
- e3Y = u.eC && u.ba > u.eC ? 4 : 20;
- break;
- case 6:
- e3Y = 0 < C ? 14 : 10;
- break;
- case 2:
- e3Y = !c.Jg && u.Sa && a.M === k.La.VIDEO && h.xc && h.xc.iI.$z ? 1 : 5;
- break;
- case 14:
- g = {
- offset: d,
- ba: Math.min(C, G),
- responseType: u.responseType
- };
- d += g.ba;
- C -= g.ba;
- e3Y = 11;
- break;
- case 11:
- q.push(new n.rz(a, p, d3Y, g, q, c, A));
- e3Y = 6;
- break;
- case 10:
- return q;
- break;
- case 20:
- return new b(a, p, u, q, d, c, A);
- break;
- }
- }
- };
- b.prototype.toString = function () {
- var c3Y;
- c3Y = 2;
- while (c3Y !== 1) {
- switch (c3Y) {
- case 2:
- return n.rz.prototype.toString.call(this) + ":" + q.Jh.prototype.toString.call(this);
- break;
- }
- }
- };
- return b;
- break;
- }
- }
- function b(b, f, c, k, p, u, n) {
- var Z3Y,
- l,
- I3Y,
- m3Y,
- f3Y;
- Z3Y = 2;
- while (Z3Y !== 6) {
- I3Y = "e";
- I3Y += "di";
- I3Y += "t";
- m3Y = "c";
- m3Y += "ach";
- m3Y += "e";
- f3Y = "1SIY";
- f3Y += "bZrNJ";
- f3Y += "Cp9";
- switch (Z3Y) {
- case 2:
- l = this;
- f3Y;
- l = [m3Y, I3Y].filter(function (a, b) {
- var V3Y;
- V3Y = 2;
- while (V3Y !== 1) {
- switch (V3Y) {
- case 4:
- return [p, c.Sa][b];
- break;
- V3Y = 1;
- break;
- case 2:
- return [p, c.Sa][b];
- break;
- }
- }
- });
- l = l.length ? "(" + l.join(",") + ")" : "";
- Z3Y = 3;
- break;
- case 3:
- void 0 === c.responseType && (c.responseType = c.Sa || h.xc && !h.xc.iI.$z ? 0 : 1);
- l = a.call(this, b, f, l, c, k, u, n) || this;
- q.Jh.call(l, b, c);
- return l;
- break;
- }
- }
- }
- }
- (n.rz);
- b.KR = u;
- p(a["default"], u.prototype);
- d.uf(q.Jh, u, !1);
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.fw = void 0;
- d = b.fw || (b.fw = {});
- d[d.CLOSED = 0] = "CLOSED";
- d[d.OPEN = 1] = "OPEN";
- d[d.PKb = 2] = "COMPLETED";
- d[d.Lh = 3] = "PAUSED";
- d[d.zz = 4] = "CANCELLED";
- }, function (d, b, a) {
- var l,
- q,
- n,
- k,
- p,
- h;
- function c(a) {
- var b;
- b = a.va;
- return a.Nb(p.ka.Ff(0 > b ? Math.ceil(b) : Math.floor(b)));
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.H3 = b.kja = void 0;
- l = a(0);
- d = a(22);
- q = a(18);
- n = a(4);
- k = a(811);
- p = a(34);
- h = a(6);
- b.kja = c;
- a = function (a) {
- function b(b, f, c, h, k, p, u) {
- var n,
- q;
- q = a.call(this) || this;
- q.G = b;
- q.Re = f;
- q.ef = c;
- q.Gc = h;
- q.K = k;
- q.X = p;
- q.Wf = u;
- q.bf = q.G.error.bind(q.G);
- q.bb = q.G.warn.bind(q.G);
- q.uj = q.G.trace.bind(q.G);
- null === (n = h.events) || void 0 === n ? void 0 : n.addListener("ready", function () {
- q.Pw();
- });
- q.reset();
- return q;
- }
- l.__extends(b, a);
- Object.defineProperties(b.prototype, {
- endOfStream: {
- get: function () {
- return this.GU;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- pW: {
- get: function () {
- return this.Gc ? this.Gc.pW : -1;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- cJb: {
- get: function () {
- return this.Bo.length;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- Wrb: {
- get: function () {
- return this.qA;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- iTa: {
- get: function () {
- return !!this.Gc.Jib;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- b.prototype.reset = function (a) {
- var b,
- f;
- this.Ot = !1;
- a || (this.Bo = []);
- this.XU = this.qA = this.C9 = this.SE = void 0;
- this.bF = p.ka.wd;
- this.rA = void 0;
- this.yRa = new k.Twa(this.K, this.G);
- this.GU = !1;
- this.H$(p.ka.wd);
- null === (f = (b = this.Gc).reset) || void 0 === f ? void 0 : f.call(b);
- };
- b.prototype.cHa = function () {
- this.C9 = !0;
- };
- b.prototype.pause = function () {
- this.Ot = !0;
- };
- b.prototype.resume = function () {
- this.Ot = !1;
- this.Pw();
- };
- b.prototype.mfa = function () {
- var a;
- return null === (a = this.qA) || void 0 === a ? void 0 : a.ze;
- };
- b.prototype.Q$a = function (a) {
- var b;
- if (this.K.gGa) {
- h.assert(a.Ia);
- b = a.Ia.ad;
- h.assert(void 0 !== a.zc);
- h.assert(void 0 !== b.Wb);
- if (a.zc >= b.Wb)
- return;
- a.Em !== b.ie && a.dSa(new p.ka(b.ie, 1E3));
- }
- this.Bo.push(a);
- this.Pw();
- };
- b.prototype.Sq = function () {
- this.Pw();
- };
- b.prototype.o1 = function (a) {
- a = this.Bo.indexOf(a);
- -1 !== a && this.Bo.splice(a, 1);
- };
- b.prototype.JNa = function (a, b) {
- this.K.Daa && b && void 0 === this.qA && this.Lya(a, 0);
- this.Pw();
- };
- b.prototype.j0 = function () {
- this.GU || (this.GU = !0, this.Pw(), this.iTa || this.Gc.endOfStream());
- };
- b.prototype.O1 = function () {
- return JSON.stringify(this.Bo);
- };
- b.prototype.H$ = function (a) {
- this.oBa = a;
- this.Gc.bEb(a.Ab, a.S);
- };
- b.prototype.Pw = function () {
- var a,
- b,
- f,
- c,
- h,
- k,
- p,
- u;
- b = this.K;
- if (this.Bo.length)
- if (this.Gc && !1 !== this.Gc.ready) {
- f = this.Bo[0];
- if (this.Ot)
- this.cF("@" + n.time.ea() + ", bufferManager _append ignored, paused, nextRequest: " + JSON.stringify(f));
- else if (!f.complete && f.Cr)
- this.bb("aborted MediaRequest should not appear in the toAppend list"), this.cF("@" + n.time.ea() + ", append: removing aborted request from toAppend: " + f.toString()), this.Bo.shift();
- else {
- c = f.stream;
- h = c.R;
- if (c.xi)
- if (this.sEb(c, f.index))
- this.C9 = !1, this.Lya(c, f.index);
- else if (c = this.X.cv(h) || this.Vpb(c), !b.dJ || c)
- if (c = f.ed - this.X.$d(), !(this.Re === q.La.AUDIO && f.hv && f.Sa && !b.Js && !this.GU && 1 === this.Bo.length && c > b.XMa) || null !== (a = f.oI) && void 0 !== a && a.qha) {
- if (b.gGa || b.oib) {
- a = f.Ia.ad;
- k = this.dhb();
- if (k) {
- p = a.Ti;
- u = f.Wb >= k;
- c = c > b.XMa;
- if (k < a.Wb && u && c && !p)
- return;
- }
- }
- b.Gxb && this.Wf && (b = this.Wf(h.Ya)) && !b.XL ? this.pause() : (this.Bo.shift(), this.C3a(f));
- }
- }
- } else
- this.cF("@" + n.time.ea() + ", append: not appending, sourceBuffer not ready");
- };
- b.prototype.sEb = function (a, b) {
- var f;
- if (this.C9 || void 0 === this.SE || a.sa !== this.SE.sa)
- return !0;
- a = a.xi;
- h.assert(a);
- f = this.SE.IKa;
- return f === a.length - 1 ? !1 : b >= a[f + 1].EB;
- };
- b.prototype.Vpb = function (a) {
- if (void 0 === this.SE)
- return !1;
- a = a.xi;
- h.assert(a);
- return !1 === a[this.SE.IKa].Cj;
- };
- b.prototype.dhb = function () {
- throw Error("not supported");
- };
- b.prototype.y3a = function (a) {
- var b,
- f;
- if (a.zi) {
- f = null === (b = this.ef.xc) || void 0 === b ? void 0 : b.iSb;
- this.K.lIb && void 0 !== f && 0 <= f ? (b = new p.ka(f, 48E3), this.bF = a.zi.add(b)) : this.K.PA && (this.bF = a.zi);
- }
- };
- b.prototype.Lya = function (a, b) {
- var f;
- f = a.xi.reduce(function (a, f, c) {
- return f.EB <= b ? c : a;
- }, 0);
- if (this.Gc.appendBuffer(a.xi[f].data, {
- ec: !0,
- profile: a.profile,
- O: a.O,
- sa: a.id
- }))
- this.cF("@" + n.time.ea() + ", header appended, streamId: " + a.sa), this.SE = {
- sa: a.sa,
- IKa: f
- },
- this.J7a(a.R.Ya || 0, a.sa, f),
- this.y3a(a),
- this.Pw();
- else
- throw this.bb("appendHeader error: " + this.Gc.error), this.cF("@" + n.time.ea() + ", appendHeader error: " + this.Gc.error), Error("appendHeaderError");
- };
- b.prototype.C3a = function (a) {
- var b,
- f,
- c,
- h,
- k,
- u,
- l,
- d;
- k = a.Nzb || p.ka.wd;
- u = a.Ia.ad.da;
- u.na && Infinity !== u.na && (u = new p.ka(u.na, 1E3).add(k).ph, Infinity === this.ef.duration || this.ef.duration < u) && (this.ef.duration = u);
- if (void 0 === this.XU || k && !k.equal(this.XU))
- u = this.bF.add(this.yRa.At).add(k), this.H$(u), this.XU = k;
- k = this.yRa.Nla(this.Re, a, this.rA, this.bF, this.XU, this.qA, this.Bo[0], this.J5a, this.H$.bind(this), this.L7a.bind(this));
- u = k.Nla;
- l = k.Phb;
- k = k.$$a;
- if (void 0 === this.qA && !this.K.Yia && a.stream.zi && this.K.Go) {
- d = null === (b = a.fm) || void 0 === b ? void 0 : b.Nb(a.stream.zi).add(this.oBa);
- d.lessThan(p.ka.wd) && a.oda(Math.ceil(d.Z_(-1).Eu(a.stream.Ta)));
- }
- u = a.yF(this.Gc, this.ef.xc, this.qA, this.Bo[0], u, l);
- b = u.V;
- (u = u.Xn) && this.emit(u.type, u);
- if (b)
- void 0 === this.rA || this.Re !== q.La.AUDIO || a.Jy.equal(this.rA.add(k)) || (this.E7a(a, this.rA.add(k)), this.rA = void 0), this.cF("@" + n.time.ea() + ", request appended, type: " + a.M + ", streamId: " + a.sa + ", pts: " + a.ed + "-" + a.ze), this.qA = a, a.hv ? (this.rA = a.N0, this.J5a = this.W3a(a, this.oBa || p.ka.wd), null === (c = (f = this.Gc).Jib) || void 0 === c ? void 0 : c.call(f, a.oI), this.K.ZI && (null === (h = a.oI) || void 0 === h ? 0 : h.qha) && this.j0()) : this.rA = void 0, this.K7a(a), this.Pw();
- else {
- if (void 0 !== this.Gc.error) {
- if ("done" === this.Gc.error)
- return;
- this.bf("failure to append queued mediaRequest: " + (a && a.toJSON()) + " err: " + this.Gc.error);
- throw this.Gc.error;
- }
- a = Error("failure to append queued mediaRequest: " + (a && JSON.stringify(a)) + " err: " + this.Gc.error);
- this.bf(a.message);
- throw a;
- }
- };
- b.prototype.W3a = function (a, b) {
- var f,
- h;
- f = a.stream.Ta;
- h = a.$p;
- this.K.Go && a.stream.zi && (h = h.Nb(a.stream.zi));
- return c(h.Nb(f)).add(c(f)).add(c(b));
- };
- b.prototype.J7a = function (a, b, f) {
- a = {
- type: "headerAppended",
- mediaType: this.Re,
- manifestIndex: a,
- streamId: b,
- isIndex: f
- };
- this.emit(a.type, a);
- };
- b.prototype.K7a = function (a) {
- a = {
- type: "requestAppended",
- mediaType: this.Re,
- request: a
- };
- this.emit(a.type, a);
- };
- b.prototype.cF = function (a) {
- a = {
- type: "managerdebugevent",
- message: a
- };
- this.emit(a.type, a);
- };
- b.prototype.E7a = function (a, b) {
- var f;
- f = a.zc;
- a = a.Jy.Nb(b).va;
- f = {
- type: "logdata",
- target: "endplay",
- fields: {
- audiodisc: {
- type: "array",
- value: [f, a]
- }
- }
- };
- this.emit(f.type, f);
- };
- b.prototype.L7a = function (a, b) {
- a = {
- type: "logdata",
- target: "endplay",
- fields: {
- maxavsyncerror: a.va,
- minavsyncerror: b.va
- }
- };
- this.emit(a.type, a);
- };
- return b;
- }
- (d.EventEmitter);
- b.H3 = a;
- }, function (d, b, a) {
- var c,
- l,
- q,
- n,
- k,
- p,
- h,
- f;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Z1a = b.NR = void 0;
- c = a(0);
- d = a(22);
- l = a(158);
- q = a(63);
- n = a(4);
- k = a(11);
- a = a(38);
- p = n.Promise;
- h = function () {
- function a(a, b) {
- this.console = a;
- this.$f = b;
- this.i6a = this.SK = 0;
- this.Qf = [];
- this.console = k.uy(n, this.console, "QueueIterator:");
- }
- Object.defineProperties(a.prototype, {
- Sgb: {
- get: function () {
- return this.SK;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- Ocb: {
- get: function () {
- var a;
- for (a = 0; a < this.Qf.length && this.Qf[a].nO; a++);
- return a;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- count: {
- get: function () {
- return this.$f;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- av: {
- get: function () {
- return 0 === this.$f;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- tla: {
- get: function () {
- var a;
- for (a = 0; a < this.Qf.length && this.Qf[a].oha; a++);
- return a;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- head: {
- get: function () {
- var a;
- a = c.__read(this.Qf, 1)[0];
- return (a = a && a.item) && !a.done && a.value;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- tja: {
- get: function () {
- var a;
- for (a = 0; a < this.Qf.length && this.Qf[a].nO; a++);
- return a;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- a.prototype.IX = function () {
- var a;
- if (void 0 === this.$f) {
- a = this.console;
- q.Za && a && a.trace("QueueIterator: enqueueEnd");
- this.Nna(this.tja - (this.$f || 0));
- }
- };
- a.prototype.Ts = function () {
- return this.Qf.map(function (a) {
- return a.item;
- });
- };
- a.prototype.TTa = function () {
- return this.Qf.filter(function (a) {
- return (null === a || void 0 === a ? void 0 : a.item) && !a.item.done;
- }).map(function (a) {
- return a.item.value;
- });
- };
- a.prototype.Nna = function (a) {
- var b;
- q.Za && this.console.trace("updateCount", {
- PUb: this.$f,
- bG: a
- });
- if (void 0 !== this.$f) {
- b = this.Qf[this.$f];
- b && this.$ga(b);
- }
- this.$f = void 0 === this.$f ? a : void 0 === a ? a : this.$f + a;
- void 0 !== this.$f && (this.$f = Math.max(0, this.$f), (b = this.Qf[this.$f]) && b.bH.resolve({
- done: !0
- }));
- };
- a.prototype.enqueue = function (a) {
- q.Za && this.console.trace("Enqueue called");
- return this.Kzb(this.tja, {
- value: a,
- done: !1
- }).vFa.Cs;
- };
- a.prototype.s1 = function () {
- q.Za && this.console.trace("resetEnd");
- this.Nna(void 0);
- };
- a.prototype.clear = function (a) {
- var b,
- f,
- c;
- q.Za && this.console.trace("clear");
- this.TPa();
- b = this.tla;
- f = this.Qf.length - b;
- if (0 < f) {
- c = {
- index: b,
- Hja: f
- };
- q.Za && this.console.trace("Removing items", c);
- this.Qf.splice(b, f);
- this.emit("onRemoved", c);
- }
- for (f = 1; f < b; f++)
- this.$ga(this.Qf[f]);
- this.$f = void 0;
- this.Nna(a ? a + b : a);
- this.SK && (this.SK = 0);
- };
- a.prototype.qIa = function () {
- var a,
- b;
- a = this;
- b = k.uy(n, this.console, "QueueIteratorInstance::");
- return new f(this, function (b) {
- return a.IIa(b);
- }, b);
- };
- a.prototype.Uca = function () {
- var a;
- if (0 < this.tla) {
- a = c.__read(this.Qf, 1)[0];
- if (a.nO)
- return q.Za && this.console.trace("dequeue", a.id), this.TPa(1), this.emit("onDequeue", a.bH.Cs);
- }
- };
- a.prototype.remove = function (a) {
- var b,
- f,
- c;
- for (b = 0; b < this.Qf.length; b++) {
- f = this.Qf[b];
- c = f.item;
- if (c && !c.done && c.value === a) {
- this.Qf.splice(b, 1);
- q.Za && this.console.trace("removed", {
- id: f.id
- });
- this.emit("onRemoved", {
- index: b,
- Hja: 1
- });
- break;
- }
- }
- };
- a.prototype.TPa = function (a) {
- var b;
- a = a || Math.min(this.tla, this.tja);
- if (0 < a) {
- b = this.Qf.splice(0, a);
- this.$f && (this.$f -= a);
- q.Za && this.console.trace("pruned", a);
- setTimeout(function () {
- b.forEach(function (a) {
- a.vFa.resolve();
- });
- }, 0);
- this.emit("onRemoved", {
- index: 0,
- Hja: a
- });
- this.SK += a;
- }
- };
- a.prototype.IIa = function (a) {
- var b;
- q.Za && this.console.trace("getNextItemCalled", {
- offset: a
- });
- if (void 0 === this.count || 0 < this.count) {
- this.kKa(a);
- b = this.Qf[a];
- b.IBb.resolve();
- a = b.bH.Cs;
- q.Za && this.console.trace("getNextItem:return", {
- id: b.id
- });
- } else
- q.Za && this.console.trace("getNextItem:returnDone"), a = p.resolve({
- done: !0
- });
- return a;
- };
- a.prototype.Kzb = function (a, b) {
- var f;
- f = !b.done && b.value;
- f = f && f.toJSON ? f.toJSON() : f;
- q.Za && this.console.trace("Providing result", {
- t$a: a,
- item: f
- });
- this.kKa(a);
- a = this.Qf[a];
- f = a.bH.resolve;
- f(b);
- return a;
- };
- a.prototype.kKa = function (a) {
- var b;
- if (void 0 === this.Qf[a]) {
- b = {};
- this.$ga(b);
- this.Qf[a] = b;
- a === this.$f && b.bH.resolve({
- done: !0
- });
- q.Za && this.console.trace("Item initialized", {
- t$a: a
- });
- }
- };
- a.prototype.qca = function (a) {
- var b;
- b = {};
- b.Cs = new p(function (f, c) {
- b.resolve = function (b) {
- f(b);
- a && a(b);
- };
- b.reject = c;
- });
- return b;
- };
- a.prototype.$ga = function (a) {
- var b;
- b = this;
- a.bH = this.qca(function (f) {
- a.item = f;
- a.nO = !0;
- q.Za && b.console.trace("Item resolved", {
- id: a.id
- });
- });
- a.id && a.oha && !a.nO && (a.bH.resolve({
- done: !0
- }), q.Za && this.console.warn("Overwriting requested queue item", a.id));
- a.vFa = this.qca();
- a.IBb = this.qca(function () {
- a.oha = !0;
- q.Za && b.console.trace("Item requested", {
- id: a.id
- });
- });
- a.id = this.i6a++;
- a.oha = !1;
- a.nO = !1;
- a.item = void 0;
- };
- a.prototype.clb = function () {
- var a,
- b;
- a = this;
- b = new l.vz(function () {
- var f,
- c;
- if (0 === a.count)
- return l.vz.Wfa();
- f = a.IIa(0);
- c = a.Qf[0];
- f.then(function () {
- b.WG || c === a.Qf[0] && a.Uca();
- });
- return f;
- });
- return b;
- };
- return a;
- }
- ();
- b.NR = h;
- a.uf(d.EventEmitter, h);
- f = function (a) {
- function b(b, f, c) {
- var h;
- h = a.call(this, function () {
- q.Za && h.console.trace("Next item requested", {
- index: h.index
- });
- return h.fCb(h.index++);
- }) || this;
- h.parent = b;
- h.fCb = f;
- h.console = c;
- h.PE = !1;
- h.index = 0;
- h.dL = !1;
- h.kOa = function (a) {
- var b;
- b = a.index;
- a = a.Hja;
- h.index >= b && (h.index = Math.max(b, h.index - a));
- b = h.console;
- q.Za && b && b.trace("QueueIteratorInstance: onRemoved modified", h.index);
- };
- return h;
- }
- c.__extends(b, a);
- b.prototype.Ag = function () {
- this.console.trace("disposed");
- this.PE = !0;
- this.yc();
- a.prototype.Ag.call(this);
- };
- b.prototype.next = function () {
- this.WG || this.LZ();
- return a.prototype.next.call(this);
- };
- b.prototype.cancel = function () {
- this.yc();
- return a.prototype.cancel.call(this);
- };
- b.prototype.yc = function () {
- this.parent.IH("onRemoved", this.kOa);
- this.dL = !1;
- };
- b.prototype.LZ = function () {
- this.dL || (this.dL = !0, this.parent.on("onRemoved", this.kOa));
- };
- return b;
- }
- (l.vz);
- b.Z1a = f;
- }, function (d, b, a) {
- var k,
- p,
- h,
- f,
- u,
- A;
- function c(a) {
- var b;
- b = a.y9;
- this.K = a;
- this.li = p.Qe.HAVE_NOTHING;
- this.IE = a.IE;
- a = new u(this.IE);
- this.IL = a.create("throughput-location-history", b);
- this.St = a.create("respconn-location-history", b);
- this.Kt = a.create("respconn-location-history", b);
- this.IV = a.create("throughput-tdigest-history", b);
- this.RU = a.create("throughput-iqr-history", b);
- this.Qa = null;
- }
- function l(a, b, f, k, p) {
- this.Jt = new c(p);
- this.Ao = [];
- this.Z5a = h.time.ea() - Date.now() % 864E5;
- this.Ht = null;
- this.K = p;
- for (a = 0; a < k; ++a)
- this.Ao.push(new c(p));
- }
- function q(a, b, f) {
- return k.has(a, b) ? a[b] : a[b] = f;
- }
- function n(a, b) {
- var f;
- this.K = a;
- this.mBa = b;
- this.uGa();
- this.ZK = new c(this.K);
- this.kL();
- f = a.Gca;
- f && (f = {
- Ld: p.Qe.FJ,
- Fa: {
- Ca: parseInt(f, 10),
- Ih: 0
- },
- Ch: {
- Ca: 0,
- Ih: 0
- },
- rq: {
- Ca: 0,
- Ih: 0
- }
- }, this.get = function () {
- return f;
- });
- }
- k = a(7);
- p = a(18);
- b = a(11);
- h = a(4);
- f = b.Cra;
- u = a(396).wra;
- new h.Console("ASEJS_LOCATION_HISTORY", "media|asejs");
- A = {
- Ld: p.Qe.HAVE_NOTHING
- };
- c.prototype.MA = function (a, b) {
- this.li = b;
- this.IL.add(a);
- this.IV.add(a);
- this.Qa = h.time.ea();
- };
- c.prototype.tD = function (a, b) {
- this.RU.set(a, b);
- };
- c.prototype.cu = function (a) {
- this.St.add(a);
- };
- c.prototype.bu = function (a) {
- this.Kt.add(a);
- };
- c.prototype.bd = function () {
- var a,
- b,
- f,
- c,
- p,
- u;
- a = this.IL.bd();
- b = this.St.bd();
- f = this.Kt.bd();
- c = this.RU.bd();
- p = this.IV.bd();
- if (k.Ma(a) && k.Ma(b) && k.Ma(f))
- return null;
- u = {
- c: this.li,
- t: h.time.hja(this.Qa)
- };
- k.Ma(a) || (u.tp = a);
- k.Ma(b) || (u.rt = b);
- k.Ma(f) || (u.hrt = f);
- k.Ma(c) || (u.iqr = c);
- k.Ma(p) || (u.td = p);
- return u;
- };
- c.prototype.de = function (a) {
- var b;
- b = h.time.now();
- if (!(a && k.has(a, "c") && k.has(a, "t") && k.has(a, "tp") && k.isFinite(a.c) && k.isFinite(a.t)) || 0 > a.c || a.c > p.Qe.FJ || a.t > b || !this.IL.de(a.tp))
- return this.li = p.Qe.HAVE_NOTHING, this.Ht = this.Qa = null, this.IL.de(null), this.St.de(null), this.Kt.de(null), !1;
- this.li = a.c;
- this.Qa = h.time.Eja(a.t);
- this.St.de(k.has(a, "rt") ? a.rt : null);
- this.Kt.de(k.has(a, "hrt") ? a.hrt : null);
- k.has(a, "iqr") && this.RU.de(a.iqr);
- k.has(a, "td") && this.IV.de(a.td);
- return !0;
- };
- c.prototype.get = function () {
- var a,
- b,
- c,
- u,
- n,
- q;
- a = this.K;
- if (k.Ma(this.Qa))
- return A;
- b = (h.time.ea() - this.Qa) / 1E3;
- b > a.u5a ? this.li = p.Qe.HAVE_NOTHING : b > a.W4a && (this.li = Math.min(this.li, p.Qe.Gz));
- a = this.IL.get();
- c = this.St.get();
- u = this.Kt.get();
- n = this.RU.get();
- q = this.IV.get();
- b = {
- Zl: b,
- Ld: this.li,
- Fa: a,
- Ch: c,
- rq: u,
- sq: n,
- Di: q
- };
- a && (b.jWb = f.prototype.uka.bind(a));
- c && (b.wVb = f.prototype.uka.bind(c));
- u && (b.tTb = f.prototype.uka.bind(u));
- return b;
- };
- c.prototype.time = function () {
- return this.Qa;
- };
- c.prototype.HE = function () {
- this.get();
- h.time.ea();
- };
- l.prototype.rj = function () {
- return ((h.time.ea() - this.Z5a) / 1E3 / 3600 / (24 / this.Ao.length) | 0) % this.Ao.length;
- };
- l.prototype.bd = function () {
- var a;
- a = {
- g: this.Jt.bd(),
- h: this.Ao.map(function (a) {
- return a.bd();
- })
- };
- k.Ma(this.Ht) || (a.f = h.time.hja(this.Ht));
- return a;
- };
- l.prototype.de = function (a) {
- var b,
- f;
- if (!this.Jt.de(a.g))
- return !1;
- b = this.Ao.length;
- f = !1;
- this.Ao.forEach(function (c, h) {
- f = !c.de(a.h[h * a.h.length / b | 0]) || f;
- });
- this.Ht = k.has(a, "f") ? h.time.Eja(a.f) : null;
- return f;
- };
- l.prototype.MA = function (a, b) {
- this.Jt.MA(a, b);
- this.Ao[this.rj()].MA(a, b);
- this.Ht = null;
- };
- l.prototype.tD = function (a, b) {
- this.Jt.tD(a, b);
- this.Ao[this.rj()].tD(a, b);
- };
- l.prototype.cu = function (a) {
- this.Jt.cu(a);
- this.Ao[this.rj()].cu(a);
- };
- l.prototype.bu = function (a) {
- this.Jt.bu(a);
- this.Ao[this.rj()].bu(a);
- };
- l.prototype.fail = function (a) {
- this.Ht = a;
- };
- l.prototype.get = function () {
- var a,
- b;
- if (!k.Ma(this.Ht)) {
- if ((h.time.ea() - this.Ht) / 1E3 < this.K.V4a)
- return {
- Ld: p.Qe.HAVE_NOTHING,
- Tx: !0
- };
- this.Ht = null;
- }
- a = this.Ao[this.rj()].get();
- b = this.Jt.get();
- a = a.Ld >= b.Ld ? a : b;
- a.Tx = !1;
- return a;
- };
- l.prototype.time = function () {
- return this.Jt.time();
- };
- l.prototype.HE = function (a) {
- this.Jt.HE(a + ": global");
- this.Ao.forEach(function (b, f, c) {
- k.Ma(b.time()) || (f = 24 * f / c.length, b.HE(a + ": " + ((10 > f ? "0" : "") + f + "00") + "h"));
- });
- };
- n.prototype.Fza = function (a, b) {
- var f;
- f = this.K;
- a = q(this.Zw, a, {});
- return q(a, b, new l(0, 0, 0, f.CAa || 4, f));
- };
- n.prototype.kL = function () {
- var a,
- b;
- a = h.storage.get("lh");
- b = h.storage.get("gh");
- a && this.F$(a);
- b && this.a8a(b);
- };
- n.prototype.D9 = function () {
- var a;
- a = {};
- k.Yd(this.Zw, function (b, f) {
- k.Yd(b, function (b, c) {
- q(a, f, {})[c] = b.bd();
- }, this);
- }, this);
- return a;
- };
- n.prototype.a8a = function (a) {
- this.ZK.de(a);
- };
- n.prototype.F$ = function (a) {
- var b,
- f;
- b = null;
- f = this.K;
- k.Yd(a, function (a, c) {
- k.Yd(a, function (a, h) {
- var p;
- p = new l(0, 0, 0, f.CAa || 4, f);
- p.de(a) ? (q(this.Zw, c, {})[h] = p, b = !0) : k.Ma(b) && (b = !1);
- }, this);
- }, this);
- return k.Ma(b) ? !0 : b;
- };
- n.prototype.save = function () {
- var a;
- a = this.D9();
- h.storage.set("lh", a);
- h.storage.set("gh", this.ZK.bd());
- this.mBa && this.mBa.lma(this.ZK.bd());
- };
- n.prototype.uGa = function (a) {
- a ? (k.has(this.Zw, a) && delete this.Zw[a], this.AU == a && (this.lA = this.AU = "", this.bl = null)) : (this.Zw = {}, this.lA = this.AU = "", this.bl = null);
- };
- n.prototype.uQ = function (a) {
- this.AU = a;
- this.bl = null;
- };
- n.prototype.R1 = function (a) {
- this.lA = a;
- this.bl = null;
- };
- n.prototype.MU = function () {
- k.Ma(this.bl) && (this.bl = this.Fza(this.AU, this.lA));
- return this.bl;
- };
- n.prototype.MA = function (a, b) {
- this.MU().MA(a, b);
- this.ZK.MA(a, b);
- };
- n.prototype.tD = function (a, b) {
- a && a.Fk && a.cj && a.Gk && (this.MU().tD(a, b), this.ZK.tD(a, b));
- };
- n.prototype.cu = function (a) {
- this.MU().cu(a);
- };
- n.prototype.bu = function (a) {
- this.MU().bu(a);
- };
- n.prototype.fail = function (a, b) {
- this.Fza(a, this.lA).fail(b);
- };
- n.prototype.get = function (a, b) {
- var f,
- c,
- h,
- u;
- a = (a = this.Zw[a]) ? a[this.lA] : null;
- f = null;
- if (a && (f = a.get(), f.Ld > p.Qe.HAVE_NOTHING))
- return f;
- if (!1 === b)
- return A;
- c = f = null;
- h = !1;
- u = null;
- k.Yd(this.Zw, function (a) {
- k.Yd(a, function (a, b) {
- var k;
- if (!h || b == this.lA) {
- k = a.get();
- k && (!c || c <= k.Ld) && (!u || c < k.Ld || u < a.time()) && (c = k.Ld, h = b == this.lA, u = a.time(), f = k);
- }
- }, this);
- }, this);
- return f ? f : A;
- };
- n.prototype.HE = function () {
- k.Yd(this.Zw, function (a, b) {
- k.Yd(a, function (a, f) {
- a.HE(b + ":" + f);
- });
- });
- };
- d.P = n;
- }, function (d, b, a) {
- var c,
- l,
- q,
- n,
- k,
- p;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.BD = void 0;
- c = a(161);
- l = a(214);
- q = a(816);
- n = a(108);
- k = a(6);
- d = function () {
- function a(a, b) {
- var f;
- f = this;
- this.Gf = new l(a, b);
- this.zm = new q(a);
- this.ub = new n(this.zm, this.Gf, a);
- c.ct.Zcb(a);
- a.F0 && setInterval(function () {
- f.Gf.save();
- f.zm.save();
- }, a.F0);
- }
- a.LIa = function (b, c) {
- void 0 === p ? (a.config = b, a.Yv = c, p = new a(b, c)) : (k.assert(a.config === b), k.assert(a.Yv === c));
- return p;
- };
- a.reset = function () {
- a.config = void 0;
- p = a.Yv = void 0;
- };
- return a;
- }
- ();
- b.BD = d;
- }, function (d, b) {
- function a(a) {
- var b;
- b = {
- profile: a.spoofedProfile || a.profile,
- Dea: a.max_framerate_value,
- Cea: a.max_framerate_scale,
- maxWidth: a.maxWidth,
- maxHeight: a.maxHeight,
- gyb: a.pixelAspectX,
- hyb: a.pixelAspectY,
- Ko: a.channels,
- sampleRate: a.channels ? 48E3 : void 0
- };
- a.spoofedProfile && (b.TUb = a.profile);
- return b;
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.FIa = b.EIa = void 0;
- b.EIa = function (b, l, q) {
- var c;
- c = [{}, {}
- ];
- (0 === q ? ["audio_tracks"] : ["audio_tracks", "video_tracks"]).forEach(function (k, p) {
- b[k].some(function (b, f) {
- return f === l[p] ? (c[p] = a(b), !0) : !1;
- });
- });
- return c;
- };
- b.FIa = a;
- }, function (d, b, a) {
- b = a(819);
- d.P = b;
- }, function (d, b, a) {
- var n;
- function c(a) {
- this.rF = a;
- this.reset();
- }
- function l(a) {
- this.ti = new c(a);
- this.Ud = 0;
- this.Tb = null;
- }
- function q(a, b) {
- this.rF = a;
- this.dAa = b;
- this.reset();
- }
- n = a(7);
- c.prototype.OAa = function (a, b) {
- this.Qa += a;
- this.qj += a;
- this.dc += b;
- this.Ni.push({
- d: a,
- Taa: b
- });
- };
- c.prototype.xL = function () {
- var a;
- for (; this.qj > this.rF; ) {
- a = this.Ni.shift();
- this.dc -= a.Taa;
- this.qj -= a.d;
- }
- };
- c.prototype.reset = function () {
- this.Ni = [];
- this.Qa = null;
- this.qj = this.dc = 0;
- };
- c.prototype.setInterval = function (a) {
- this.rF = a;
- this.xL();
- };
- c.prototype.start = function (a) {
- n.Ma(this.Qa) && (this.Qa = a);
- };
- c.prototype.add = function (a, b, c) {
- n.Ma(this.Qa) && (this.Qa = b);
- b > this.Qa && this.OAa(b - this.Qa, 0);
- this.OAa(c > this.Qa ? c - this.Qa : 0, a);
- this.xL();
- };
- c.prototype.get = function () {
- return {
- Ca: Math.floor(8 * this.dc / this.qj),
- Ih: 0
- };
- };
- l.prototype.reset = function () {
- this.ti.reset();
- this.Ud = 0;
- this.Tb = null;
- };
- l.prototype.add = function (a, b, c) {
- !n.Ma(this.Tb) && c > this.Tb && (b > this.Tb && (this.Ud += b - this.Tb), this.Tb = null);
- this.ti.add(a, b - this.Ud, c - this.Ud);
- };
- l.prototype.start = function (a) {
- !n.Ma(this.Tb) && a > this.Tb && (this.Ud += a - this.Tb, this.Tb = null);
- this.ti.start(a - this.Ud);
- };
- l.prototype.stop = function (a) {
- this.Tb = n.Ma(this.Tb) ? a : Math.min(a, this.Tb);
- };
- l.prototype.get = function () {
- return this.ti.get();
- };
- l.prototype.setInterval = function (a) {
- this.ti.setInterval(a);
- };
- q.prototype.reset = function () {
- this.Ni = [];
- this.dc = this.qj = 0;
- };
- q.prototype.add = function (a, b, c, f) {
- void 0 !== f && !0 === f && (b = c - b, this.qj += b, this.dc += a, this.Ni.push({
- d: b,
- Taa: a
- }), this.xL());
- };
- q.prototype.xL = function () {
- var a;
- for (; this.qj > this.rF || this.Ni.length > this.dAa; ) {
- a = this.Ni.shift();
- this.dc -= a.Taa;
- this.qj -= a.d;
- }
- };
- q.prototype.start = function () {};
- q.prototype.stop = function () {};
- q.prototype.get = function () {
- return {
- Ca: Math.floor(8 * this.dc / this.qj),
- Ih: 0
- };
- };
- q.prototype.setInterval = function (a, b) {
- this.rF = a;
- this.dAa = b;
- this.xL();
- };
- d.P = {
- XKb: c,
- HYa: l,
- m3a: q
- };
- }, function (d, b, a) {
- var k;
- function c(a, b, f) {
- this.eG = !1 === a;
- this.bG = a || .01;
- this.C5 = void 0 === b ? 25 : b;
- this.xpa = void 0 === f ? 1.1 : f;
- this.wh = new k(l);
- this.reset();
- }
- function l(a, b) {
- return a.nf > b.nf ? 1 : a.nf < b.nf ? -1 : 0;
- }
- function q(a, b) {
- return a.rs - b.rs;
- }
- function n(a) {
- this.config = a || {};
- this.mode = this.config.mode || "auto";
- c.call(this, "cont" === this.mode ? a.bG : !1);
- this.khb = this.config.ratio || .9;
- this.lhb = this.config.iWb || 1E3;
- this.$_ = 0;
- }
- k = a(832).a2a;
- c.prototype.reset = function () {
- this.wh.clear();
- this.Qha = this.n = 0;
- };
- c.prototype.size = function () {
- return this.wh.size;
- };
- c.prototype.Ts = function (a) {
- var b;
- b = [];
- a ? (this.yU(!0), this.wh.Yd(function (a) {
- b.push(a);
- })) : this.wh.Yd(function (a) {
- b.push({
- nf: a.nf,
- n: a.n
- });
- });
- return b;
- };
- c.prototype.summary = function () {
- return [(this.eG ? "exact " : "approximating ") + this.n + " samples using " + this.size() + " centroids", "min = " + this.Wh(0), "Q1 = " + this.Wh(.25), "Q2 = " + this.Wh(.5), "Q3 = " + this.Wh(.75), "max = " + this.Wh(1)].join("\n");
- };
- c.prototype.push = function (a, b) {
- b = b || 1;
- a = Array.isArray(a) ? a : [a];
- for (var f = 0; f < a.length; f++)
- this.kza(a[f], b);
- };
- c.prototype.Nka = function (a) {
- a = Array.isArray(a) ? a : [a];
- for (var b = 0; b < a.length; b++)
- this.kza(a[b].nf, a[b].n);
- };
- c.prototype.yU = function (a) {
- var b;
- if (!(this.n === this.Qha || !a && this.xpa && this.xpa > this.n / this.Qha)) {
- b = 0;
- this.wh.Yd(function (a) {
- a.rs = b + a.n / 2;
- b = a.SF = b + a.n;
- });
- this.n = this.Qha = b;
- }
- };
- c.prototype.Xjb = function (a) {
- var b,
- f;
- if (0 === this.size())
- return null;
- b = this.wh.lowerBound({
- nf: a
- });
- f = null === b.data() ? b.EC() : b.data();
- return f.nf === a || this.eG ? f : (b = b.EC()) && Math.abs(b.nf - a) < Math.abs(f.nf - a) ? b : f;
- };
- c.prototype.YE = function (a, b, f) {
- a = {
- nf: a,
- n: b,
- SF: f
- };
- this.wh.Sn(a);
- this.n += b;
- return a;
- };
- c.prototype.fU = function (a, b, f) {
- b !== a.nf && (a.nf += f * (b - a.nf) / (a.n + f));
- a.SF += f;
- a.rs += f / 2;
- a.n += f;
- this.n += f;
- };
- c.prototype.kza = function (a, b) {
- var f,
- c,
- h;
- f = this.wh.min();
- c = this.wh.max();
- h = this.Xjb(a);
- h && h.nf === a ? this.fU(h, a, b) : h === f ? this.YE(a, b, 0) : h === c ? this.YE(a, b, this.n) : this.eG ? this.YE(a, b, h.SF) : (f = h.rs / this.n, Math.floor(4 * this.n * this.bG * f * (1 - f)) - h.n >= b ? this.fU(h, a, b) : this.YE(a, b, h.SF));
- this.yU(!1);
- !this.eG && this.C5 && this.size() > this.C5 / this.bG && this.yu();
- };
- c.prototype.Rab = function (a) {
- var b,
- f;
- this.wh.$k = q;
- b = this.wh.upperBound({
- rs: a
- });
- this.wh.$k = l;
- f = b.EC();
- a = f && f.rs === a ? f : b.next();
- return [f, a];
- };
- c.prototype.Wh = function (a) {
- var b;
- b = (Array.isArray(a) ? a : [a]).map(this.j7a, this);
- return Array.isArray(a) ? b : b[0];
- };
- c.prototype.j7a = function (a) {
- var b,
- f;
- if (0 !== this.size()) {
- this.yU(!0);
- this.wh.min();
- this.wh.max();
- a *= this.n;
- b = this.Rab(a);
- f = b[0];
- b = b[1];
- return b === f || null === f || null === b ? (f || b).nf : this.eG ? a <= f.SF ? f.nf : b.nf : f.nf + (a - f.rs) * (b.nf - f.nf) / (b.rs - f.rs);
- }
- };
- c.prototype.yu = function () {
- var a;
- if (!this.oEa) {
- a = this.Ts();
- this.reset();
- for (this.oEa = !0; 0 < a.length; )
- this.Nka(a.splice(Math.floor(Math.random() * a.length), 1)[0]);
- this.yU(!0);
- this.oEa = !1;
- }
- };
- n.prototype = Object.create(c.prototype);
- n.prototype.constructor = n;
- n.prototype.push = function (a) {
- c.prototype.push.call(this, a);
- this.ccb();
- };
- n.prototype.YE = function (a, b, f) {
- this.$_ += 1;
- c.prototype.YE.call(this, a, b, f);
- };
- n.prototype.fU = function (a, b, f) {
- 1 === a.n && --this.$_;
- c.prototype.fU.call(this, a, b, f);
- };
- n.prototype.ccb = function () {
- !("auto" !== this.mode || this.size() < this.lhb) && this.$_ / this.size() > this.khb && (this.mode = "cont", this.eG = !1, this.bG = this.config.bG || .01, this.yu());
- };
- d.P = {
- TDigest: c,
- Digest: n
- };
- }, function (d, b, a) {
- var c,
- l,
- q;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.kJ = void 0;
- c = a(0);
- d = a(73);
- l = a(162);
- q = a(163);
- a = function (a) {
- function b(b, c, f, k, n, l, d) {
- c = a.call(this, b, c, f, k, n, l, d) || this;
- q.hw.call(c, b, k);
- return c;
- }
- c.__extends(b, a);
- return b;
- }
- (l.rz);
- b.kJ = a;
- d(q.hw.prototype, a.prototype);
- }, function (d, b, a) {
- var c;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.xD = void 0;
- d = a(38);
- a = a(109);
- c = function () {
- function a(a, b) {
- this.xo = a;
- this.DE = b.Ra;
- this.Et = b.hb;
- }
- Object.defineProperties(a.prototype, {
- Ra: {
- get: function () {
- return void 0 !== this.DE ? this.DE : this.xo.Ra;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- hb: {
- get: function () {
- return void 0 !== this.Et ? this.Et : this.xo.hb;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- S: {
- get: function () {
- return this.xo.S;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- Pj: {
- get: function () {
- return this.xo.Pj;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- a.prototype.sQ = function (a) {
- this.Et = a;
- };
- a.prototype.Fba = function () {
- this.Et = void 0;
- };
- return a;
- }
- ();
- b.xD = c;
- d.uf(a.uz, c);
- d.uf(a.qz, c);
- }, function (d, b, a) {
- var c,
- l;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- c = a(0);
- d = a(126);
- l = a(225);
- a = function (a) {
- function b() {
- return null !== a && a.apply(this, arguments) || this;
- }
- c.__extends(b, a);
- b.prototype.mQa = function () {
- 15 !== this.L.Yf(4) || this.L.Yf(24);
- };
- b.prototype.parse = function (a) {
- if (this.Lqb(a) && 64 === a.owb)
- switch (this.QA = this.eQa(), this.mQa(), this.L.Yf(4), this.mjb = 5 === this.QA || 29 === this.QA ? 5 : -1, 0 < this.mjb && (this.mQa(), this.QA = this.eQa(), 22 === this.QA && this.L.Yf(4)), this.QA) {
- case 1:
- case 2:
- case 3:
- case 4:
- case 6:
- case 7:
- case 17:
- case 19:
- case 20:
- case 21:
- case 22:
- case 23:
- this.pHa = this.L.Yf(1),
- (this.Qgb = this.L.Yf(1)) && this.L.Yf(14),
- this.L.Yf(1),
- this.iY = 3 === this.QA ? 256 : 23 === this.QA ? this.pHa ? 480 : 512 : this.pHa ? 960 : 1024;
- }
- this.skip();
- return !0;
- };
- b.prototype.eQa = function () {
- var a;
- a = this.L.Yf(5);
- 31 === a && (a = 32 + this.L.Yf(6));
- return a;
- };
- b.prototype.Lqb = function (a) {
- return a.tag === l.qqa.tag;
- };
- b.tag = 5;
- return b;
- }
- (d.f4);
- b.EYa = a;
- }, function (d, b, a) {
- var c;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- c = a(0);
- d = function (a) {
- function b() {
- return null !== a && a.apply(this, arguments) || this;
- }
- c.__extends(b, a);
- b.prototype.parse = function () {
- this.owb = this.L.ud();
- this.L.ud();
- this.L.kh();
- this.L.ud();
- this.hp = this.L.Fb();
- this.nab = this.L.Fb();
- this.RAa();
- return !0;
- };
- b.tag = 4;
- return b;
- }
- (a(126).f4);
- b.qqa = d;
- }, function (d, b, a) {
- var c;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- c = a(0);
- d = function (a) {
- function b() {
- return null !== a && a.apply(this, arguments) || this;
- }
- c.__extends(b, a);
- b.prototype.parse = function () {
- var a;
- this.L.kh();
- a = this.L.ud();
- this.pFb = !!(a & 128);
- this.e3a = !!(a & 64);
- this.V0a = !!(a & 32);
- this.pFb && this.L.kh();
- this.e3a && this.L.b1(this.L.ud());
- this.V0a && this.L.kh();
- this.RAa();
- return !0;
- };
- b.tag = 3;
- return b;
- }
- (a(126).f4);
- b.Uqa = d;
- }, function (d, b, a) {
- var c;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- d = a(0);
- d.__exportStar(a(126), b);
- d.__exportStar(a(224), b);
- d.__exportStar(a(223), b);
- d.__exportStar(a(222), b);
- d = a(223);
- c = a(222);
- a = a(224);
- b.cG = {
- 3: a.Uqa,
- 4: d.qqa,
- 5: c.EYa
- };
- }, function (d, b, a) {
- var c;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- c = a(0);
- d = function (a) {
- function b() {
- return null !== a && a.apply(this, arguments) || this;
- }
- c.__extends(b, a);
- b.prototype.parse = function () {
- this.L.offset += 6;
- this.L.kh();
- return !0;
- };
- return b;
- }
- (a(27).ag);
- b["default"] = d;
- }, function (d, b) {
- function a(a, b) {
- return "number" !== typeof a || "number" !== typeof b ? !1 : a && b ? Math.abs(a * b / c(a, b)) : 0;
- }
- function c(a, b) {
- var c;
- a = Math.abs(a);
- for (b = Math.abs(b); b; ) {
- c = b;
- b = a % b;
- a = c;
- }
- return a;
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- d = function () {
- function b(a, b) {
- "object" === typeof a ? (this.Xt = a.Ab, this.Wl = a.S) : (this.Xt = a, this.Wl = b);
- }
- b.$wb = function (a) {
- return new b(1, a);
- };
- b.Ff = function (a) {
- return new b(a, 1E3);
- };
- b.tna = function (a, b) {
- return Math.floor(1E3 * a / b);
- };
- b.lja = function (a, b) {
- return Math.floor(a * b / 1E3);
- };
- b.max = function () {
- for (var a = [], b = 0; b < arguments.length; b++)
- a[b] = arguments[b];
- return a.reduce(function (a, b) {
- return a.greaterThan(b) ? a : b;
- });
- };
- b.min = function () {
- for (var a = [], b = 0; b < arguments.length; b++)
- a[b] = arguments[b];
- return a.reduce(function (a, b) {
- return a.lessThan(b) ? a : b;
- });
- };
- b.Hea = function (q, n) {
- var k;
- if (q.S === n.S)
- return new b(c(q.Ab, n.Ab), q.S);
- k = a(q.S, n.S);
- return b.Hea(q.Nf(k), n.Nf(k));
- };
- Object.defineProperties(b.prototype, {
- Ab: {
- get: function () {
- return this.Xt;
- },
- enumerable: !0,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- S: {
- get: function () {
- return this.Wl;
- },
- enumerable: !0,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- va: {
- get: function () {
- return 1E3 * this.Xt / this.Wl;
- },
- enumerable: !0,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- ph: {
- get: function () {
- return this.Xt / this.Wl;
- },
- enumerable: !0,
- configurable: !0
- }
- });
- b.prototype.Nf = function (a) {
- a /= this.S;
- return new b(Math.floor(this.Ab * a), Math.floor(this.S * a));
- };
- b.prototype.add = function (c) {
- var n;
- if (this.S === c.S)
- return new b(this.Ab + c.Ab, this.S);
- n = a(this.S, c.S);
- return this.Nf(n).add(c.Nf(n));
- };
- b.prototype.Nb = function (a) {
- return this.add(new b(-a.Ab, a.S));
- };
- b.prototype.Z_ = function (a) {
- return new b(this.Ab * a, this.S);
- };
- b.prototype.Eu = function (b) {
- var c;
- if (this.S === b.S)
- return this.Ab / b.Ab;
- c = a(this.S, b.S);
- return this.Nf(c).Eu(b.Nf(c));
- };
- b.prototype.lJa = function (b) {
- return a(this.S, b);
- };
- b.prototype.wQa = function () {
- return new b(this.S, this.Ab);
- };
- b.prototype.compare = function (b, c) {
- var k;
- if (this.S === c.S)
- return b(this.Ab, c.Ab);
- k = a(this.S, c.S);
- return b(this.Nf(k).Ab, c.Nf(k).Ab);
- };
- b.prototype.equal = function (a) {
- return this.compare(function (a, b) {
- return a === b;
- }, a);
- };
- b.prototype.DH = function (a) {
- return this.compare(function (a, b) {
- return a !== b;
- }, a);
- };
- b.prototype.lessThan = function (a) {
- return this.compare(function (a, b) {
- return a < b;
- }, a);
- };
- b.prototype.greaterThan = function (a) {
- return this.compare(function (a, b) {
- return a > b;
- }, a);
- };
- b.prototype.py = function (a) {
- return this.compare(function (a, b) {
- return a <= b;
- }, a);
- };
- b.prototype.PG = function (a) {
- return this.compare(function (a, b) {
- return a >= b;
- }, a);
- };
- b.prototype.toJSON = function () {
- return {
- ticks: this.Ab,
- timescale: this.S
- };
- };
- b.prototype.toString = function () {
- return this.Ab + "/" + this.S;
- };
- b.wd = new b(0, 1);
- b.Cv = new b(1, 1E3);
- return b;
- }
- ();
- b.ka = d;
- }, function (d, b, a) {
- var ha,
- V,
- ta,
- N,
- na,
- ma,
- ja,
- Q,
- Ea,
- ia,
- Ga,
- x,
- ka,
- Da,
- Oa,
- Pa,
- B,
- Ha,
- Wa,
- bb,
- L,
- Ba,
- kb,
- S,
- aa,
- wd,
- W,
- Y,
- ca,
- da,
- fa;
- function c(a, b, f, c, h) {
- N.call(this, a, b, f, c, h);
- }
- function l(a, b, f, c, h) {
- N.call(this, a, b, f, c, h);
- }
- function q(a, b, f, c, h) {
- N.call(this, a, b, f, c, h);
- }
- function n(a, b, f, c, h) {
- N.call(this, a, b, f, c, h);
- this.zma = a.config.zma;
- this.Nd = this.sizes = void 0;
- }
- function k(a, b, f, c, h) {
- N.call(this, a, b, f, c, h);
- }
- function p() {
- for (var a = new DataView(this), b = "", f, c = 0; c < this.byteLength; c++)
- f = a.getUint8(c), b += ("00" + f.toString(16)).slice(-2);
- return b;
- }
- function h(a, b, f, c, h) {
- N.call(this, a, b, f, c, h);
- }
- function f(a, b, f, c, h) {
- N.call(this, a, b, f, c, h);
- }
- function u(a, b, f, c, h) {
- N.call(this, a, b, f, c, h);
- }
- function A(a, b, f, c, h) {
- N.call(this, a, b, f, c, h);
- }
- function g(a, b, f, c, h) {
- N.call(this, a, b, f, c, h);
- }
- function C(a) {
- function b(b, f, c, h, k) {
- N.call(this, b, f, c, h, k);
- this.sNa = a;
- }
- b.mc = !1;
- b.prototype = new N();
- b.prototype.constructor = b;
- Object.defineProperties(b.prototype, {
- gqa: {
- get: function () {
- return this.sNa;
- }
- }
- });
- b.prototype.parse = function () {
- this.L.console.trace("renaming '" + this.type + "' to draft type '" + this.sNa + "'");
- this.L.offset = this.startOffset + 4;
- this.cb.uVa(this.gqa);
- this.type = this.gqa;
- return !0;
- };
- return b;
- }
- function H(a, b, f, c, h) {
- N.call(this, a, b, f, c, h);
- }
- function D(a, b, f, c, h) {
- N.call(this, a, b, f, c, h);
- }
- function K(a, b, f, c, h) {
- N.call(this, a, b, f, c, h);
- }
- function J(a, b, f, c, h) {
- N.call(this, a, b, f, c, h);
- }
- function R(a, b, f, c, h) {
- N.call(this, a, b, f, c, h);
- }
- function P(a, b, f, c, h) {
- N.call(this, a, b, f, c, h);
- }
- function m(a, b, f, c, h) {
- N.call(this, a, b, f, c, h);
- }
- function z(a, b, f, c, h) {
- N.call(this, a, b, f, c, h);
- }
- function r(a, b, f, c, h) {
- N.call(this, a, b, f, c, h);
- }
- function U(a, b, f, c, h) {
- N.call(this, a, b, f, c, h);
- }
- function t(a, b) {
- a.forEach(function (a) {
- b[a.Se] = a;
- });
- }
- ha = a(128).assert;
- b = a(82);
- V = a(227).ka;
- ta = a(408);
- a(127);
- a(75);
- a(75);
- a(75);
- N = a(27).ag;
- na = a(859)["default"];
- ma = a(858)["default"];
- ja = a(857)["default"];
- Q = a(856)["default"];
- Ea = a(855)["default"];
- ia = a(854)["default"];
- Ga = a(853)["default"];
- x = a(852)["default"];
- ka = a(851)["default"];
- a(226);
- a(164);
- Da = a(407).EVa;
- Oa = a(407).PYa;
- Pa = a(850)["default"];
- B = a(849)["default"];
- Ha = a(81)["default"];
- Wa = a(81).bWa;
- bb = a(81).cWa;
- L = a(81).dWa;
- Ba = a(81).eWa;
- kb = a(848)["default"];
- S = a(847)["default"];
- aa = a(81).IZa;
- wd = a(81).DZa;
- W = a(846)["default"];
- Y = a(845)["default"];
- ca = a(844)["default"];
- da = a(406)["default"];
- fa = a(405)["default"];
- a(126);
- a(223);
- a(222);
- a(224);
- a = a(843)["default"];
- c.mc = !0;
- c.prototype = new N();
- c.prototype.constructor = c;
- l.mc = !0;
- l.prototype = new N();
- l.prototype.constructor = l;
- q.mc = !1;
- q.prototype = new N();
- q.prototype.constructor = q;
- q.prototype.parse = function () {
- var a;
- this.Zf();
- 1 === this.version ? (this.L.fj(), this.L.fj(), this.S = this.L.Fb(), this.duration = this.L.fj()) : (this.L.Fb(), this.L.Fb(), this.S = this.L.Fb(), this.duration = this.L.Fb());
- a = this.L.kh() & 32767;
- this.language = String.fromCharCode(96 + (a >>> 10), 96 + (a >>> 5 & 31), 96 + (a & 31));
- return !0;
- };
- n.mc = !1;
- n.prototype = new N();
- n.prototype.constructor = n;
- n.prototype.g7a = function () {
- this.Zf();
- this.L.Fb();
- this.S = this.L.Fb();
- 0 === this.version ? (this.sda = this.L.Fb(), this.oea = this.L.Fb()) : (this.sda = this.L.fj(), this.oea = this.L.fj());
- this.NBb = this.L.kh();
- this.zQa = this.L.kh();
- };
- n.prototype.p4a = function (a, b) {
- var f,
- c,
- h;
- f = this.S;
- a = a && a.S || f;
- c = a / f;
- f = this.L.a1(b, 12, !1);
- h = 1 === c ? this.L.a1(b, 12, !1) : ta.from(Uint32Array, {
- length: b
- }, function () {
- var a;
- a = Math.round(this.L.Fb() * c);
- this.L.offset += 8;
- return a;
- }, this);
- this.H8a(b, h, f, a);
- };
- n.prototype.H8a = function (a, b, f, c) {
- if (this.zma) {
- c = this.zma * c / 1E3;
- for (var h = 0, k = 1; k < a; k++)
- Math.abs(b[h] - c) > Math.abs(b[h] + b[k] - c) ? (b[h] += b[k], f[h] += f[k]) : (++h, h !== k && (b[h] = b[k], f[h] = f[k]));
- ++h;
- b = new Uint32Array(b.buffer.slice(0, 4 * h));
- f = new Uint32Array(f.buffer.slice(0, 4 * h));
- }
- this.sizes = f;
- this.Nd = b;
- };
- n.prototype.parse = function (a) {
- var b,
- f,
- c,
- h;
- this.g7a();
- this.Ta = a.Ta;
- b = this.S;
- f = this.Ta && this.Ta.S || b;
- c = this.zQa;
- h = this.startOffset + this.length + this.oea;
- b = new V(this.sda, b).Nf(f).Ab;
- this.$ = {
- S: f,
- Sj: b,
- offset: h
- };
- this.p4a(this.Ta, c);
- this.$.Nd = this.Nd;
- this.$.sizes = this.sizes;
- a.Ms = this;
- return !0;
- };
- k.mc = !1;
- k.prototype = new N();
- k.prototype.constructor = k;
- k.prototype.parse = function () {
- var a;
- this.mz = [];
- this.Zxb = [];
- a = (this.length - 11) / 2;
- this.L.ud();
- this.L.ud();
- this.L.ud();
- for (var b = 0; b < a; b++)
- this.mz.push(this.L.ud()), this.Zxb.push(this.L.ud());
- return !0;
- };
- h.mc = !1;
- h.prototype = new N();
- h.prototype.constructor = h;
- h.prototype.parse = function () {
- this.Zf();
- this.L.offset += 4;
- this.kLa = this.L.offset;
- this.js = this.L.fAb();
- this.js.toString = p;
- return !0;
- };
- f.mc = !1;
- f.prototype = new N();
- f.prototype.constructor = f;
- f.prototype.parse = function () {
- this.Zf();
- this.Mn = this.L.kh();
- this.hub = this.L.a1(this.Mn, void 0, !0);
- return !0;
- };
- u.mc = !1;
- u.prototype = new N();
- u.prototype.constructor = u;
- u.prototype.parse = function (a) {
- var b,
- f,
- c,
- h,
- k,
- p;
- h = a.Ms;
- ha(h);
- a = a.Ta;
- b = h.S;
- h = h.zQa;
- ha(a);
- ha(b);
- ha(h);
- this.Zf();
- ha(2 > this.version);
- this.Mn = this.L.kh();
- this.TH = new Uint16Array(h + 1);
- f = a.lJa(b);
- k = f / b;
- p = a.Nf(f).Ab;
- if (0 === this.version)
- for (this.lI = new Uint16Array(), this.ih = new Uint32Array(), a = b = 0; a <= h; ++a) {
- if (this.TH[a] = b, a < this.Mn && (c = this.L.ud(), 0 !== c))
- for (f = 0; f < c; ++f, ++b)
- this.lI[b] = Math.floor((this.L.Fb() + 1) * k) / p, this.ih[b] = this.L.Fb();
- }
- else if (1 === this.version)
- for (f = this.L.dAb(this.Mn), this.L.offset += 4, this.ih = this.L.a1(this.Mn, 10, !1), this.L.offset -= 8, this.lI = ta.from(Uint16Array, {
- length: this.Mn
- }, function () {
- var a;
- a = Math.floor((this.L.Fb() + 1) * k) / p;
- this.L.offset += 6;
- return a;
- }, this), b = a = 0; a <= h; ++a) {
- for (; b < f.length && f[b] < a; )
- ++b;
- this.TH[a] = b;
- }
- this.vi = {
- TH: this.TH,
- lI: this.lI,
- ih: this.ih
- };
- return !0;
- };
- A.mc = !0;
- A.prototype = Object.create(c.prototype);
- A.prototype.constructor = A;
- g.mc = !0;
- g.prototype = Object.create(c.prototype);
- g.prototype.constructor = g;
- g.prototype.wG = function () {
- var a;
- a = this.Rq("tfhd");
- a && (this.ku = a.WCa ? a.ku : this.parent.startOffset);
- return !0;
- };
- H.mc = !1;
- H.prototype = new N();
- H.prototype.constructor = H;
- H.prototype.parse = function () {
- var a,
- n,
- q,
- f,
- h;
- a = this.L.offset;
- this.Zf();
- if (1 === this.version) {
- this.L.console.trace("translating vpcC box to draft equivalent");
- this.L.offset += 2;
- for (var b = this.L.offset, f = this.L.ud(), c = this.L.ud(), h = this.L.ud(), k = this.L.ud(), p = this.L.kh(), u = [], n = 0; n < p; ++n)
- u = this.L.ud();
- n = (f & 240) >>> 4;
- q = (f & 14) >>> 1;
- f = f & 1;
- h = 16 === h ? 1 : 0;
- c != k && this.L.console.warn("VP9: Has the VP9 spec for vpcC changed? colourPrimaries " + c + " and matrixCoefficients " + k + " should be the same value!");
- k = 2;
- switch (c) {
- case 1:
- k = 2;
- break;
- case 6:
- k = 1;
- break;
- case 9:
- k = 5;
- break;
- default:
- this.L.console.warn("VP9: Unknown colourPrimaries " + c + "! Falling back to default color space VP9_COLOR_SPACE_BT709_6 (2)");
- }
- this.version = 0;
- this.cb.c3(this.version, a);
- this.cb.c3(n << 4 | k, b++);
- this.cb.c3(q << 4 | h << 1 | f, b++);
- p += 2;
- u.push(0, 0);
- this.cb.pJb(p);
- b += 2;
- u.forEach(function (a) {
- this.cb.c3(a, b++);
- });
- }
- return !0;
- };
- D.mc = !1;
- D.prototype = new N();
- D.prototype.constructor = D;
- D.Se = "tfhd";
- Object.defineProperties(D.prototype, {
- WCa: {
- get: function () {
- return this.lf & 1;
- }
- },
- nCb: {
- get: function () {
- return this.lf & 2;
- }
- },
- Ggb: {
- get: function () {
- return this.lf & 8;
- }
- },
- Jgb: {
- get: function () {
- return this.lf & 16;
- }
- },
- Hgb: {
- get: function () {
- return this.lf & 32;
- }
- }
- });
- D.prototype.parse = function () {
- this.Zf();
- this.wna = this.L.Fb();
- this.ku = this.WCa ? this.L.fj() : void 0;
- this.nCb && this.L.Fb();
- this.gX = this.Ggb ? this.L.Fb() : void 0;
- this.iX = this.Jgb ? this.L.Fb() : void 0;
- this.hX = this.Hgb ? this.L.Fb() : void 0;
- return !0;
- };
- K.mc = !1;
- K.prototype = new N();
- K.prototype.constructor = K;
- K.prototype.parse = function () {
- this.Zf();
- this.jM = 1 === this.version ? this.L.fj() : this.L.Fb();
- return !0;
- };
- K.prototype.Sa = function (a) {
- var b;
- b = this.startOffset + 12;
- this.jM += a;
- 1 === this.version ? this.cb.qJb(this.jM, b) : this.cb.Ep(this.jM, b);
- };
- J.mc = !1;
- J.prototype = new N();
- J.prototype.constructor = J;
- Object.defineProperties(J.prototype, {
- YEa: {
- get: function () {
- return this.lf & 1;
- }
- },
- tea: {
- get: function () {
- return this.lf & 4;
- }
- },
- z1: {
- get: function () {
- return this.lf & 256;
- }
- },
- A1: {
- get: function () {
- return this.lf & 512;
- }
- },
- rRa: {
- get: function () {
- return this.lf & 1024;
- }
- },
- Ila: {
- get: function () {
- return this.lf & 2048;
- }
- }
- });
- J.prototype.parse = function () {
- this.Zf();
- this.fDa = this.L.offset;
- this.oe = this.L.Fb();
- this.Bu = this.YEa ? this.L.Wka() : 0;
- this.tea && this.L.Fb();
- this.bQ = (this.z1 ? 4 : 0) + (this.A1 ? 4 : 0) + (this.rRa ? 4 : 0) + (this.Ila ? 4 : 0);
- this.ZX = this.L.offset;
- ha(this.YEa, "Expected data offset to be present in Track Run");
- ha(this.length - (this.L.offset - this.startOffset) === this.oe * this.bQ, "Expected remaining data in box to be sample information");
- return !0;
- };
- J.prototype.yL = function (a, b, f) {
- var c,
- h,
- k;
- c = this.z1 ? this.L.Fb() : a.gX;
- h = this.A1 ? this.L.Fb() : a.iX;
- a = this.rRa ? this.L.Fb() : a.hX;
- k = 0 === this.version ? this.Ila ? this.L.Fb() : 0 : this.Ila ? this.L.Wka() : 0;
- return {
- mCb: k,
- JVb: a,
- iVb: f + k - (void 0 !== b ? b : k),
- Sv: h,
- cQ: c
- };
- };
- J.prototype.Sa = function (a, b, f, c, h, k, p) {
- var u,
- n,
- q,
- d;
- u = 0;
- n = 0;
- this.cb.offset = this.ZX;
- for (c = 0; c < h; ++c)
- d = this.yL(b, q, n), 0 == c && (q = d.mCb), u += d.Sv, n += d.cQ;
- c = h;
- h = this.L.offset;
- d = this.yL(b, q, n);
- this.AI = c;
- this.MEb = n;
- if (p) {
- if (this.dI = this.Bu + u, this.Pv = 0, c === this.oe)
- return !0;
- } else if (this.dI = this.Bu, this.Pv = u, 0 === c)
- return !0;
- if (0 === c || c === this.oe)
- return !1;
- this.zX = !0;
- if (p) {
- this.Pv += d.Sv;
- for (p = c + 1; p < this.oe; ++p)
- d = this.yL(b, q, n), this.Pv += d.Sv;
- this.cb.offset = this.fDa;
- this.oe = c;
- this.cb.Ep(this.oe);
- this.cb.boa(k);
- this.tea && (this.L.offset += 4);
- this.Nk(this.length - (h - this.startOffset), h);
- } else
- b = h - this.ZX, this.cb.offset = this.fDa, this.oe -= c, this.cb.Ep(this.oe), this.Bu += u, this.cb.boa(k, this.Bu), this.tea && (this.L.offset += 4), this.Nk(b, this.cb.offset);
- f.Nk(this.Pv, a.ku + this.dI);
- return !0;
- };
- J.prototype.wBb = function (a, b, f, c, h, k) {
- var u;
- if (c) {
- c = this.dI;
- for (var p = this.oe - 1; 0 <= p && this.oe - p <= h; --p) {
- this.cb.offset = this.ZX + p * this.bQ;
- u = this.yL(b);
- if (u.cQ != k.duration) {
- this.L.console.warn("Could not replace sample of duration " + u.cQ + " with silence of duration " + k.duration);
- break;
- }
- if (this.A1)
- this.cb.offset -= this.bQ - (this.z1 ? 4 : 0), this.cb.Ep(k.Tv.byteLength);
- else if (k.Tv.byteLength !== u.Sv) {
- this.L.console.warn("Cannot replace sample with default size with silence of different size");
- break;
- }
- c -= u.Sv;
- f.k1(u.Sv, k.Tv, a.ku + c);
- }
- } else
- for (c = this.dI + this.Pv, p = 0; p < this.oe && p < h; ++p) {
- this.cb.offset = this.ZX + (p + this.AI) * this.bQ;
- u = this.yL(b);
- if (u.cQ != k.duration) {
- this.L.console.warn("Could not replace sample of duration " + u.cQ + " with silence of duration " + k.duration);
- break;
- }
- if (this.A1)
- this.cb.offset -= this.bQ - (this.z1 ? 4 : 0), this.cb.Ep(k.Tv.byteLength);
- else if (k.Tv.byteLength !== u.Sv) {
- this.L.console.warn("Cannot replace sample with default size with silence of different size");
- break;
- }
- f.k1(u.Sv, k.Tv, a.ku + c);
- c += u.Sv;
- }
- };
- R.mc = !1;
- R.prototype = Object.create(N.prototype);
- R.prototype.constructor = R;
- Object.defineProperties(R.prototype, {
- TA: {
- get: function () {
- return this.lf & 1;
- }
- }
- });
- R.prototype.parse = function () {
- this.Zf();
- this.TA && this.L.Py();
- this.TA && this.L.Fb();
- this.Igb = this.L.ud();
- this.oe = this.L.Fb();
- this.L.b1(this.oe);
- return !0;
- };
- R.prototype.Sa = function (a, b) {
- if (a && 0 === this.Igb) {
- a = b ? this.oe - a : a;
- this.cb.offset = this.startOffset + 13 + (this.TA ? 8 : 0);
- this.oe -= a;
- this.cb.Ep(this.oe);
- this.Gla = 0;
- if (b)
- this.cb.offset += this.oe;
- else {
- for (b = 0; b < a; ++b)
- this.Gla += this.cb.ud();
- this.cb.offset -= a;
- }
- this.Nk(a, this.L.offset);
- }
- return !0;
- };
- P.mc = !1;
- P.prototype = Object.create(N.prototype);
- P.prototype.constructor = P;
- Object.defineProperties(P.prototype, {
- TA: {
- get: function () {
- return this.lf & 1;
- }
- }
- });
- P.prototype.parse = function () {
- this.Zf();
- this.TA && this.L.Py();
- this.TA && this.L.Fb();
- this.Mn = this.L.Fb();
- ha(1 === this.Mn, "Expected a single entry in Sample Auxiliary Information Offsets box");
- this.Bu = 0 === this.version ? this.L.Wka() : this.L.lAb();
- return !0;
- };
- P.prototype.Sa = function (a, b) {
- this.Bu += a;
- this.cb.offset = this.startOffset + 16 + (this.TA ? 8 : 0) + (0 === this.version ? 0 : 4);
- this.cb.boa(b, this.Bu);
- return !0;
- };
- m.mc = !1;
- m.prototype = Object.create(N.prototype);
- m.prototype.constructor = m;
- Object.defineProperties(m.prototype, {
- BOa: {
- get: function () {
- return this.lf & 1;
- }
- },
- vIb: {
- get: function () {
- return this.lf & 2;
- }
- }
- });
- m.prototype.parse = function () {
- this.Zf();
- this.BOa && (this.L.Fb(), this.Srb = this.L.b1(16));
- this.oe = this.L.Fb();
- return !0;
- };
- m.prototype.Sa = function (a, b) {
- var f,
- c;
- f = b ? this.oe - a : a;
- this.cb.offset = this.startOffset + 28 + (this.BOa ? 20 : 0);
- this.oe -= f;
- this.cb.Ep(this.oe);
- a = this.cb.offset;
- if (this.vIb)
- for (f = b ? this.oe : f; 0 < f; --f) {
- this.cb.offset += 8;
- c = this.cb.kh();
- this.cb.offset += 6 * c;
- }
- else
- this.cb.offset += 8 * (b ? this.oe : f);
- b ? this.Nk(this.length - (this.L.offset - this.startOffset), this.L.offset) : this.Nk(this.L.offset - a, a);
- };
- z.mc = !1;
- z.prototype = Object.create(N.prototype);
- z.prototype.constructor = z;
- z.prototype.parse = function () {
- this.Zf();
- return !0;
- };
- z.prototype.Sa = function (a, b, f) {
- f ? this.Nk(b - a, this.startOffset + 12 + a) : this.Nk(a, this.startOffset + 12);
- return !0;
- };
- r.mc = !1;
- r.prototype = Object.create(N.prototype);
- r.prototype.constructor = r;
- r.prototype.parse = function () {
- this.Zf();
- this.L.Py();
- 1 === this.version && this.L.Fb();
- this.Mn = this.L.Fb();
- this.dQ = [];
- for (var a = 0; a < this.Mn; ++a)
- for (var b = this.L.Fb(), f = this.L.Fb(), c = 0; c < b; ++c)
- this.dQ.push(f);
- return !0;
- };
- r.prototype.Sa = function (a, b) {
- this.dQ = b ? this.dQ.slice(0, a) : this.dQ.slice(a);
- a = this.dQ.reduce(function (a, b) {
- 0 !== a.length && a[a.length - 1].group === b || a.push({
- group: b,
- count: 0
- });
- ++a[a.length - 1].count;
- return a;
- }, []);
- this.cb.offset = this.startOffset + 16 + (1 === this.version ? 4 : 0);
- this.cb.Ep(a.length);
- a.forEach(function (a) {
- this.cb.Ep(a.count);
- this.cb.Ep(a.group);
- }
- .bind(this));
- this.Mn > a.length && this.Nk(8 * (this.Mn - a.length));
- this.Mn = a.length;
- return !0;
- };
- U.mc = !1;
- U.prototype = Object.create(N.prototype);
- U.prototype.constructor = U;
- Ha = {
- Rc: {
- moov: l,
- trak: c,
- mdia: c,
- mdhd: q,
- minf: c,
- encv: Ha,
- schi: c,
- sidx: n,
- sinf: c,
- stbl: c,
- tenc: h,
- mvex: c,
- moof: A,
- traf: g,
- tfhd: D,
- trun: J,
- sbgp: r,
- sdtp: z,
- saiz: R,
- saio: P,
- tfdt: K,
- mdat: U,
- vmaf: k
- },
- WGb: {
- vpcC: H,
- SmDm: C("smdm"),
- CoLL: C("coll")
- },
- fUa: {
- schm: kb
- },
- Hla: {}
- };
- t([S, ia, Ga, x, aa, wd, na, Q, da, fa, Ea, ka, ma, ja, a], Ha.Rc);
- t([Da, Pa, Wa, bb, L, Ba, Oa, B, Y, W], Ha.Hla);
- t([S, kb], Ha.fUa);
- Ha.Rc[b.Kua] = h;
- Ha.Rc[b.cT] = f;
- Ha.Rc[b.bT] = u;
- Ha.Rc[b.Jua] = m;
- Ha.Hla[b.t6] = ca;
- Ha.ag = N;
- d.P = {
- zH: Ha
- };
- }, function (d, b, a) {
- var c,
- l;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.mGa = b.BB = b.Lu = b.iIa = b.QY = void 0;
- c = a(6);
- l = a(165);
- b.QY = function (a, b) {
- return !(1 !== a || !b.Px) || 0 === a;
- };
- b.iIa = function (a, b, c, p) {
- a = a.km(b, void 0, !0);
- c && (a = Math.floor(a / p) * p);
- return a;
- };
- b.Lu = function (a, n, k, p, h, f) {
- var u,
- q,
- d,
- g;
- l.Hl.Qn(a);
- c.assert(k.$, "findFirstFragment called without stream fragments");
- u = k.$;
- c.assert(p >= u.$h(0));
- q = b.QY(a, n);
- 0 === a && !f && n.Go && !n.PA && k.zi && (p = Math.max(k.$.$h(0), p + k.zi.va));
- d = b.iIa(u, p, k.R.CX(a), n.GH);
- g = k.wi(d);
- if (g.na < p)
- return g;
- q && ((q = g.VX(p)) ? (0 < q.Jm && g.Qj({
- start: q.Jm
- }), 0 !== a || n.Yia || (0 > q.Vc && g.Qj({
- start: q.Jm
- }), q.Vc < (n.Go && !n.PA && k.zi ? Math.floor(k.zi.va) : 0) && g.oda())) : p >= g.na && d < u.length - 1 && (g = k.wi(d + 1)));
- 1 === a && h && g.na === h && d < u.length - 1 && (g = k.wi(d + 1));
- 0 === a && !g.Sa && (n.iO || n.xKa || n.bib) && f && g.Qj({});
- g.xQ(p);
- return g;
- };
- b.BB = function (a, c, k, p, h, f, u) {
- var n;
- l.Hl.Qn(a);
- n = k.$;
- void 0 === p && (p = n.na);
- if (h && (h = h.Njb(k, p, a, c, f)))
- return h;
- h = n.Ta;
- u = p ? p + b.mGa(a, h, c.Js, u) : n.Gda(n.length - 1);
- n = n.km(u, void 0, !0);
- h = k.wi(n);
- 0 === n || h.T !== p || 1 !== a && c.Js || (--n, h = k.wi(n));
- b.QY(a, c) ? (u = 1 === a ? u : p, u < h.na && ((f = h.Tjb(u)) && 0 !== f.Jm ? h.Qj({
- end: f.Jm
- }) : 0 === a && (f || u < h.T) && 0 !== n ? h = k.wi(n - 1) : 1 === a && f && 0 !== n && (h = k.wi(n - 1))), 0 !== a || h.Sa || !c.iO && !c.wKa || h.Qj()) : 0 === a && !c.Js && p - h.T < h.duration / 2 && 0 !== n && (h = k.wi(n - 1));
- h.xQ(p);
- return h;
- };
- b.mGa = function (a, b, c, p) {
- var h;
- return 1 === a || p ? 0 : c ? null !== (h = null === b || void 0 === b ? void 0 : b.va) && void 0 !== h ? h : 0 : b ? -b.va : 0;
- };
- }, function (d, b, a) {
- var c,
- l,
- q,
- n,
- k,
- p,
- h,
- f,
- u,
- A,
- g,
- C,
- H;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.MR = void 0;
- c = a(0);
- l = a(22);
- q = a(868);
- d = a(83);
- n = a(861);
- k = a(836);
- p = a(833);
- h = a(217);
- f = a(818);
- u = a(17);
- A = a(4);
- g = a(6);
- C = a(387);
- a(216);
- H = function () {
- return function (a) {
- var b;
- b = a.nha;
- a = a.TZ;
- this.KO = this.replace = b;
- this.Ef = a;
- };
- }
- ();
- a = function (a) {
- function b(b) {
- var f,
- u,
- d,
- g,
- D,
- G,
- K,
- J,
- m,
- r,
- t,
- na,
- ma,
- ja,
- Q,
- Ea,
- ia,
- Ga,
- x,
- ka,
- Da,
- Oa,
- Pa;
- f = b.oa;
- u = b.Ya;
- d = b.ya;
- g = b.Jk;
- D = b.jb;
- G = b.Oia;
- K = b.Ri;
- J = b.Vp;
- m = b.config;
- r = b.AQ;
- t = b.oga;
- na = b.OC;
- ma = b.AN;
- ja = b.ub;
- Q = b.Gf;
- Ea = b.EH;
- b = b.Mda;
- ia = a.call(this) || this;
- ia.qZ = !1;
- ia.Pza = [];
- ia.bAa = [];
- ia.vh = [];
- ia.cf = !1;
- ia.oa = f;
- ia.Ya = u;
- ia.ya = d;
- ia.Jk = g;
- ia.jb = D;
- ia.config = m;
- ia.console = new A.Console("ASEJS", "media|asejs", "<" + String(ia.oa) + ">");
- ia.A7a = new C.K7();
- t && (f = t.lq, ia.Ve = new p.Sra(ia, ia.console, ia.config, t.wl, t.OY, f, t.QZ, t.Ue, t.Mc, t.Wf, t.iy));
- ia.hy = new l.EventEmitter();
- ia.AN = ma;
- ia.ub = ja;
- ia.EH = Ea;
- ia.sm = new h.TS(d, ja, Q, ia.config, null === b || void 0 === b ? void 0 : b.wl);
- b && (t = b.ds, ma = b.bp, ja = b.ZG, Q = b.Gm, ia.fl = b.Ig, ia.ZG = ja, ia.bp = ma, ia.ds = t, ia.Gm = Q, ia.Rh = new k.jra(ia.sm, ia.config, ia.Oob.bind(ia), ia.Nob.bind(ia)));
- r && (b = r.vC, t = r.fa, ma = r.Mx, ja = r.Am, f = r.lq, b && t ? (ia.zQ = new q.bxa(b, {
- fa: String(t),
- Mx: ma,
- gub: ia.config.jT.mx,
- Zab: ia.config.jT.lv,
- Lba: ia.config.Lba
- }, ja), ia.lq = f) : ja("SideChannel: pbcid/xid is missing."));
- ia.Rh && ia.zQ && ia.Rh.ZDb(ia.zQ);
- ia.OC = na;
- ia.ye = new H(G);
- ia.Ri = K;
- Ga = [[], []];
- x = [{}, {}
- ];
- ka = [0, 0];
- Da = !1;
- Oa = ia.jb(0);
- Pa = ia.jb(1);
- ["audio_tracks", "video_tracks"].forEach(function (a, b) {
- var f;
- f = 0 === b;
- f && !Oa || 1 === b && !Pa || d[a].forEach(function (a, h) {
- a = new n.Noa({
- R: ia,
- cC: a,
- M: b,
- Ef: G.TZ,
- Vp: J,
- A2: h,
- KA: h + (f ? d.video_tracks.length : 0)
- }, ia.config, ia.console);
- Ga[b].push(a);
- x[b] = c.__assign(c.__assign({}, x[b]), a.KG());
- a.hp > ka[a.M] && (ka[a.M] = a.hp);
- Da = Da || a.lZ;
- });
- });
- ia.iU = Ga;
- ia.qFb = x;
- ia.wq = ka;
- ia.lZ = Da;
- ia.L4a = ia.config && ia.config.DX && ia.config.$N && !!ia.config.$N.length && -1 !== ia.config.$N.indexOf(String(ia.u));
- return ia;
- }
- c.__extends(b, a);
- Object.defineProperties(b.prototype, {
- jg: {
- get: function () {
- return this.Pza;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- Ytb: {
- get: function () {
- return this.bAa;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- u: {
- get: function () {
- return this.ya.movieId;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- uu: {
- get: function () {
- return this.ya.choiceMap;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- duration: {
- get: function () {
- return this.ya.duration;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- tq: {
- get: function () {
- return this.cf;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- ela: {
- get: function () {
- return this.A7a;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- b.prototype.close = function () {
- this.sm.close();
- this.cf = !0;
- };
- b.prototype.yc = function () {
- this.Ve && this.Ve.yc();
- };
- b.prototype.$u = function () {
- return void 0 !== this.uu;
- };
- b.prototype.getTracks = function (a) {
- return this.iU[a];
- };
- b.prototype.getTrackById = function (a) {
- var b;
- this.iU.some(function (f) {
- return f.some(function (f) {
- if (f.eb === a)
- return b = f, !0;
- });
- });
- b || this.console.warn("getTrackById not found:", a, "length:", this.iU.length);
- return b;
- };
- b.prototype.oJa = function (a, b) {
- var f;
- f = this.iU[a];
- if (0 > b || b >= f.length)
- this.console.warn("getTrackByIndex out of range:", b, "length:", f.length, "mediaType:", a);
- else
- return f[b];
- };
- b.prototype.cs = function (a, b) {
- return (a = this.KG(a)) && a[b];
- };
- b.prototype.KG = function (a) {
- return this.qFb[a];
- };
- b.prototype.zHb = function (a, b) {
- this.Pza[a] = b;
- b.stream.$ && this.GUa(a, b.stream.$);
- };
- b.prototype.CX = function (a) {
- return void 0 === a || 1 === a ? this.L4a : !1;
- };
- b.prototype.zrb = function (a) {
- var b,
- f;
- if (void 0 === a.T0 || void 0 === a.Dka) {
- b = this.sm.pfa().filter(function (b) {
- return void 0 !== b.ic[a.sa];
- })[0];
- f = b.children.filter(function (b) {
- return b.se.some(function (b) {
- return b.stream.id === a.sa;
- });
- })[0];
- a.T0 = b.id;
- a.Dka = f.id;
- }
- return {
- vha: a.location === a.T0,
- Arb: a.uc === a.Dka
- };
- };
- b.prototype.V1 = function (a, b, f) {
- void 0 !== b && void 0 !== f && (this.OQa(a.M, b), a.V1(b, f));
- };
- b.prototype.OQa = function (a, b) {
- var f,
- c;
- c = this.config.qja;
- ("location" === c || "video_location" === c && 1 === a) && this.ub.uQ(b);
- null === (f = this.AN) || void 0 === f ? void 0 : f.call(this).Mwb(a, b);
- };
- b.prototype.Ig = function (a, b, f, c, h) {
- g.assert(this.fl, "Stream failure reporting can not be used on prefetch viewables.");
- return this.fl(a, b, f, c, h);
- };
- b.prototype.Cp = function () {
- var a,
- b,
- f;
- a = this;
- b = [];
- if (this.tq)
- return this.console.error("updateRequestUrls, closed Viewable:", this.oa), !1;
- u.Pe.forEach(function (f) {
- a.jb(f) && a.THb(f) && (f = a.EHb(f), 0 < f.length && b.push.apply(b, f));
- });
- f = this.AHb();
- 0 < f.length && b.push.apply(b, f);
- return this.KBb(b);
- };
- b.prototype.THb = function (a) {
- var b,
- f,
- h,
- u,
- n;
- if (this.tq)
- return this.console.warn("updateStreamUrls ignored, viewable cleaned up"), !1;
- if (!this.jb(a))
- return this.console.warn("updateStreamUrls ignored, streaming for mediaType type not enabled", a), !1;
- h = !0;
- try {
- for (var k = c.__values(this.vh), p = k.next(); !p.done; p = k.next()) {
- u = p.value.Le(a);
- n = this.sm.mR(this.oa, u.track.Nc);
- n || u.bb("location selector failed to update streamList");
- h = h && n;
- }
- } catch (ha) {
- b = {
- error: ha
- };
- }
- finally {
- try {
- p && !p.done && (f = k["return"]) && f.call(k);
- }
- finally {
- if (b)
- throw b.error;
- }
- }
- return h;
- };
- b.prototype.AHb = function () {
- g.assert(this.Ve, "Headers not available from prefetch viewables.");
- return this.Ve.Cp();
- };
- b.prototype.EHb = function (a) {
- var b,
- f,
- h,
- u;
- h = [];
- if (this.tq)
- return this.console.warn("updateStreamUrls ignored, viewable cleaned up"), h;
- if (!this.jb(a))
- return this.console.warn("updateStreamUrls ignored, streaming for mediaType type not enabled", a), h;
- try {
- for (var k = c.__values(this.vh), p = k.next(); !p.done; p = k.next()) {
- u = p.value.Cp(a);
- u.length && h.push.apply(h, u);
- }
- } catch (ea) {
- b = {
- error: ea
- };
- }
- finally {
- try {
- p && !p.done && (f = k["return"]) && f.call(k);
- }
- finally {
- if (b)
- throw b.error;
- }
- }
- return h;
- };
- b.prototype.KBb = function (a) {
- var b,
- f,
- c;
- b = this;
- if (0 === a.length)
- return !0;
- f = 0;
- c = [];
- a.forEach(function (a) {
- var h;
- if (a.ec) {
- h = a.R;
- h.Ya > b.Ya && (c.push({
- R: h,
- track: a.stream.track
- }), ++f);
- }
- });
- c.forEach(function (a) {
- var b;
- b = a.track;
- a.R.gI([0 === b.M ? b : void 0, 1 === b.M ? b : void 0], void 0, b.M);
- });
- return f === a.length;
- };
- b.prototype.Ek = function () {
- var a;
- a = this;
- this.sm.Ek();
- this.Rh && this.Rh.Ek();
- this.zQ && (g.assert(this.lq), u.Pe.forEach(function (b) {
- b = a.lq(b);
- a.zQ.ama("rebuffer", b.Pha);
- }));
- };
- b.prototype.kP = function () {
- this.Rh && this.Rh.kP();
- };
- b.prototype.Qna = function (a, b) {
- g.assert(this.Ve, "Headers not available from prefetch viewables.");
- this.Ve.Qna(a, b);
- };
- b.prototype.kZ = function () {
- g.assert(this.Ve, "Headers not available from prefetch viewables.");
- return this.Ve.kZ();
- };
- b.prototype.Gba = function () {
- g.assert(this.Ve, "Headers not available from prefetch viewables.");
- this.Ve.Gba();
- };
- b.prototype.T1 = function (a) {
- g.assert(this.Ve, "Headers not available from prefetch viewables.");
- this.Ve.T1(a);
- };
- b.prototype.Yi = function (a, b) {
- g.assert(this.Ve, "Headers not available from prefetch viewables.");
- return this.Ve.Yi(a, b);
- };
- b.prototype.sia = function () {
- g.assert(this.Ve, "Headers not available from prefetch viewables.");
- this.Ve.sia();
- };
- b.prototype.IEa = function (a, b, f) {
- g.assert(this.Ve, "Headers not available from prefetch viewables.");
- this.Ve.E2(a, b, f, !0);
- };
- b.prototype.WV = function (a, b, f) {
- g.assert(this.Ve, "Headers not available from prefetch viewables.");
- return this.Ve.WV(a, b, !!f);
- };
- b.prototype.oD = function (a) {
- g.assert(this.Ve, "Headers not available from prefetch viewables.");
- return this.Ve.oD(a);
- };
- b.prototype.caa = function (a, b) {
- g.assert(this.Ve, "Headers not available from prefetch viewables.");
- return this.Ve.caa(a, b);
- };
- b.prototype.Ala = function (a) {
- g.assert(this.Ve, "Headers not available from prefetch viewables.");
- return this.Ve.Ala(a);
- };
- b.prototype.gI = function (a, b, f) {
- g.assert(this.Ve, "Headers not available from prefetch viewables.");
- return this.Ve.gI(a, b, f);
- };
- b.prototype.Qob = function (a) {
- var b,
- f,
- c,
- h;
- b = a.sa;
- f = a.M;
- this.GUa(f, a.stream.$);
- b = this.cs(f, b);
- c = this.$u() ? this.config.uMa : 0;
- h = A.uk()[f];
- 1 === f && 0 < this.config.qs && (h = Math.min(h, this.config.qs));
- b.zUa(h, c);
- this.hy.emit("onHeaderFragments", a);
- };
- b.prototype.BQa = function (a) {
- this.vh.push(a);
- };
- b.prototype.uUa = function (a) {
- a = this.vh.indexOf(a);
- g.assert(-1 !== a, "Unexpected call to unregisterBranch, branch not registered with Viewable.");
- this.vh.splice(a, 1);
- };
- b.prototype.s0 = function () {
- var a;
- null === (a = this.OC) || void 0 === a ? void 0 : a.wF();
- };
- b.prototype.Ev = function (a) {
- this.tq ? this.console.warn("onloadstart ignored, viewable cleaned up, mediaRequest:", a) : void 0 !== a.location && this.OQa(a.M, a.location);
- };
- b.prototype.tP = function (a) {
- g.assert(this.Rh, "Requests cannot be handled on prefetch viewables.");
- this.tq ? this.console.warn("onprogress ignored, viewable cleaned up, mediaRequest:", a) : this.Rh.I2({
- timestamp: a.cd,
- url: a.url
- });
- };
- b.prototype.bj = function (a) {
- var b;
- null === (b = this.OC) || void 0 === b ? void 0 : b.i1();
- g.assert(this.Rh && this.bp && this.EH, "Requests cannot be handled on prefetch viewables.");
- this.tq ? this.console.warn("oncomplete ignored, viewable cleanuped, mediaRequest:", a) : (this.bp() && this.Rh.$P(!0), this.Rh.I2({
- timestamp: a.cd,
- mediaRequest: a
- }), this.EH(a));
- };
- b.prototype.qP = function (a, b, f) {
- var c;
- f && (null === (c = this.OC) || void 0 === c ? void 0 : c.i1());
- };
- b.prototype.rP = function (a) {
- var b;
- g.assert(this.Rh && this.fl, "Requests cannot be handled on prefetch viewables.");
- if (this.tq)
- this.console.warn("onerror ignored, viewable cleaned up, mediaRequest:", a);
- else {
- b = a.zh;
- this.config.Kob && b === f.ak.JD.g5 && 0 < a.Ie && (b = f.ak.JD.J3);
- this.Rh.pp({
- url: a.url
- }, a.status, b, a.aj);
- this.Cp() || this.Ig(a.uG || "unknown", "NFErr_MC_StreamingFailure", a.zh, a.status, a.aj);
- }
- };
- b.prototype.GUa = function (a, b) {
- this.bAa[a] = b.Gia;
- };
- b.prototype.Oob = function (a) {
- var b,
- f,
- c;
- g.assert(this.ZG && this.fl, "Error handling not available on prefetch viewables.");
- if (!this.cf) {
- b = a.grb;
- f = a.exb;
- c = a.fxb;
- a = a.gxb;
- this.console.warn("Streaming failure, isBuffering " + this.ZG() + " is permanent: " + b + ", last error code: " + f + ", last http code: " + c + ", last native code: " + a);
- b ? (this.console.warn(" > Permanent failure, done"), this.Ig("Permanent failure", "NFErr_MC_StreamingFailure", f, c, a)) : this.ZG() ? (this.console.warn(" > We are buffering, calling it!"), this.Ig("Temporary failure while buffering", "NFErr_MC_StreamingFailure", a, c, a)) : (this.console.warn(" > Resetting failures"), this.Rh.$P());
- }
- };
- b.prototype.Nob = function () {
- g.assert(this.Gm && this.ds, "Error handling not available on prefetch viewables.");
- this.cf || (this.Gm(), this.Cp(), this.ds());
- };
- return b;
- }
- (d.Xq);
- b.MR = a;
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Pe = void 0;
- b.Pe = [0, 1];
- }, function (d, b, a) {
- var c,
- l;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.pwa = b.MT = b.CY = void 0;
- c = a(51);
- l = a(2);
- b.CY = function (a) {
- return a === c.Ac.Ji.AUDIO ? l.I.yta : l.I.zta;
- };
- b.MT = 50;
- b.pwa = 1E3;
- }, function (d, b, a) {
- var c,
- l,
- q,
- n,
- k,
- p,
- h,
- f,
- u,
- A,
- g,
- C,
- H;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.cA = void 0;
- c = a(0);
- l = a(67);
- q = a(12);
- n = a(77);
- k = a(5);
- p = a(61);
- h = a(16);
- f = a(361);
- u = a(15);
- A = a(708);
- g = a(13);
- C = a(2);
- (function (a) {
- a[a.iT = 0] = "NOT_LOADED";
- a[a.LOADING = 1] = "LOADING";
- a[a.LOADED = 2] = "LOADED";
- a[a.VJ = 3] = "LOAD_FAILED";
- }
- (H || (H = {})));
- d = function () {
- function a(a, b, f, c, h, u, q, d, l, A, g, D, G, C, m) {
- this.j = a;
- this.eb = b;
- this.QB = f;
- this.md = c;
- this.Fu = h;
- this.gda = u;
- this.ll = q;
- this.displayName = d;
- this.Tm = l;
- this.OP = A;
- this.profile = g;
- this.zq = D;
- this.wja = G;
- this.pkb = C;
- this.YZ = m;
- this.type = n.Mg.x2;
- this.Tq = void 0;
- this.Un = !(!g || g != p.Wk.aE && g != p.Wk.dT);
- this.eh = {
- bcp47: q,
- trackId: b,
- downloadableId: c,
- isImageBased: this.Un
- };
- this.log = k.$g(a, "TimedTextTrack");
- this.state = H.iT;
- this.request = this.request.bind(this);
- }
- a.prototype.getEntries = function () {
- var a;
- a = this;
- if (this.j.state.value === g.qb.CLOSED || this.j.state.value === g.qb.CLOSING)
- return Promise.reject({
- V: !1
- });
- if (this.Un)
- return this.rqb();
- this.QFa || (this.QFa = this.PFa());
- return this.QFa.then(function (b) {
- return a.qxb(b);
- });
- };
- a.prototype.bd = function () {
- return this.state;
- };
- a.prototype.ZZ = function () {
- return this.wja;
- };
- a.prototype.UZ = function () {
- return this.pkb;
- };
- a.prototype.cy = function (a, b) {
- var f;
- f = [];
- try {
- this.Un ? f = this.ig && this.ig.cy(a, b) || [] : this.entries && (f = this.entries.filter(function (f) {
- var c;
- c = S([f.startTime, f.endTime]);
- f = c.next().value;
- c = c.next().value;
- return f >= a && f <= b || f <= a && a <= c;
- }));
- } catch (P) {
- this.log.error("error in getSubtitles", P, {
- start: a,
- end: b,
- isImageBased: this.Un
- });
- }
- return f;
- };
- a.prototype.Wnb = function () {
- var b;
- if (!u.ac(this.T))
- try {
- this.T = this.Un ? (b = this.cy(0, a.Z_a)[0]) && b.displayTime : (b = this.entries && this.entries[0]) && b.startTime;
- } catch (J) {
- this.log.error("exception in getStartPts", J);
- }
- return this.T;
- };
- a.prototype.W1 = function (a) {
- return this.j.state.value === g.qb.CLOSING || this.j.state.value === g.qb.CLOSED ? (this.log.info("playback is closing, abort timed text retry", a), !1) : this.j.vc.value !== this ? (this.log.info("timed text track was changed, abort timed text retry", a), !1) : !0;
- };
- a.prototype.rqb = function () {
- var a,
- b,
- f,
- c,
- h,
- p,
- n,
- d,
- l;
- a = this;
- if (!this.rKa) {
- this.state = H.LOADING;
- b = {
- iab: !1,
- profile: this.profile,
- O_: this.zq.offset,
- bja: this.zq.length,
- Vc: this.j.cc.value || 0,
- bufferSize: q.config.Upb,
- OVb: {
- Va: this.j.vY()
- }
- };
- f = k.$g(this.j, "TimedTextTrack");
- f.warn = f.trace.bind(f);
- f.info = f.debug.bind(f);
- c = A.OEa(this.j, f, this.request);
- h = (this.gda || []).filter(function (b) {
- return b.id in a.Fu;
- }).sort(function (a, b) {
- return a.Xf - b.Xf;
- }).map(function (a) {
- return a.id;
- });
- p = 0;
- n = {};
- d = !0;
- l = function (f, A) {
- var g;
- if (u.ac(f))
- if (d || a.W1(a.$r(a.cq, "", "image"))) {
- d = !1;
- a.zq.url = a.Fu[a.cq];
- b.url = a.zq.url;
- n[f] = (n[f] || 0) + 1;
- g = new k.uxa(c, b);
- g.on("ready", function () {
- a.ig = g;
- A({
- V: !0,
- track: a
- });
- });
- g.on("error", function (b) {
- var c;
- b = Object.assign({
- V: !1
- }, b);
- c = a.$r(a.cq, a.zq.url, "image");
- c.details = {
- midxoffset: a.zq.offset,
- midxsize: a.zq.length
- };
- c.errorstring = b.errorString;
- n[f] <= q.config.JTa ? (a.XX(c, !0, "retry with current cdn"), a.Uaa(n[f]).then(function (b) {
- a.log.trace("retry timed text download after " + b, a.$r(a.cq, "", "image"));
- l(a.cq, A);
- })) : (a.cq = h[p++], a.cq ? (a.XX(c, !0, "retry with next cdn"), a.Uaa(n[f]).then(function (b) {
- a.log.trace("retry timed text download after " + b, a.$r(a.cq, "", "image"));
- l(a.cq, A);
- })) : (a.XX(c, !1, "all cdns tried"), A({
- V: !1,
- pvb: "all cdns failed for image subs",
- track: a
- })));
- });
- g.start();
- } else
- A({
- V: !1,
- Cr: !0
- });
- else
- A({
- V: !1,
- pvb: "cdnId is not defined for image subs downloadUrl"
- }), a.XX(a.$r(0, "", "image"), !1, "cdnId is undefined");
- };
- this.cq = h[p++];
- this.rKa = new Promise(function (b, f) {
- l(a.cq, function (c) {
- c.V ? (a.log.info("Loaded image subtitle manager"), a.state = H.LOADED, b(c)) : (a.log.error("Unable to load image subtitles manager", c), a.state = H.VJ, f(c));
- });
- });
- }
- return this.rKa;
- };
- a.prototype.XX = function (a, b, f) {
- a = Object.assign({}, a, {
- LWb: b,
- status: f
- });
- this.j.fireEvent(g.U.KI, a);
- this.log.warn("subtitleerror event", a);
- };
- a.prototype.request = function (a, b) {
- var f;
- f = this;
- this.log.trace("Downloading", a);
- a = {
- url: a.url,
- offset: a.offset,
- length: a.size,
- Tq: this.Tq,
- responseType: l.YN,
- headers: {},
- kc: this.Uea(this.cq)
- };
- this.j.xZ.download(a, function (a) {
- f.log.trace("imgsub: request status " + a.V);
- a.V ? b(null, new Uint8Array(a.content)) : b({
- ha: a.ha,
- we: a.we
- });
- });
- };
- a.prototype.$r = function (a, b, f) {
- return {
- currentCdnId: a,
- url: b,
- profile: this.profile,
- dlid: this.md,
- subtitletype: f,
- bcp47: this.ll,
- trackId: this.eb,
- cdnCount: Object.keys(this.Fu).length,
- isImageBased: this.Un
- };
- };
- a.prototype.Uea = function (a) {
- return (this.gda || []).find(function (b) {
- return b.id === a;
- });
- };
- a.prototype.PFa = function () {
- var h,
- k;
- function a(a) {
- return c.__awaiter(h, void 0, void 0, function () {
- var h,
- p,
- u,
- n,
- q;
- function c() {
- for (; ; )
- switch (h) {
- case 0:
- u = f();
- p = n.$r(a.kc.id, a.url, "text");
- p.errorstring = a.reason;
- if (!u || !n.W1(p)) {
- h = 1;
- break;
- }
- h = -1;
- return {
- value: n.Uaa(k[u.id]).then(b),
- done: !0
- };
- case 1:
- return h = -1, {
- value: Promise.reject({
- V: !1,
- Cr: !0
- }),
- done: !0
- };
- default:
- return {
- value: void 0,
- done: !0
- };
- }
- }
- h = 0;
- n = this;
- q = {
- next: function () {
- return c();
- },
- "throw": function () {
- return c();
- },
- "return": function () {
- throw Error("Not yet implemented");
- }
- };
- r();
- q[Symbol.iterator] = function () {
- return this;
- };
- return q;
- });
- }
- function b() {
- return c.__awaiter(h, void 0, void 0, function () {
- var c,
- h,
- p,
- u,
- n;
- function b() {
- for (; ; )
- switch (c) {
- case 0:
- h = (p = f()) && u.Fu[p.id];
- if (!p || !h) {
- c = 1;
- break;
- }
- k[p.id] = (k[p.id] || 0) + 1;
- c = -1;
- return {
- value: u.Chb(h, p)["catch"](a),
- done: !0
- };
- case 1:
- return c = -1, {
- value: Promise.reject({}),
- done: !0
- };
- default:
- return {
- value: void 0,
- done: !0
- };
- }
- }
- c = 0;
- u = this;
- n = {
- next: function () {
- return b();
- },
- "throw": function () {
- return b();
- },
- "return": function () {
- throw Error("Not yet implemented");
- }
- };
- r();
- n[Symbol.iterator] = function () {
- return this;
- };
- return n;
- });
- }
- function f() {
- return (h.gda || []).find(function (a) {
- return !!((k[a.id] || 0) < q.config.JTa && h.Fu[a.id]);
- });
- }
- h = this;
- this.state = H.LOADING;
- k = {};
- return b();
- };
- a.prototype.Uaa = function (a) {
- return new Promise(function (b) {
- var f;
- f = 1E3 * Math.min(Math.pow(2, a - 1), 8);
- setTimeout(function () {
- return b(f);
- }, f);
- });
- };
- a.prototype.qxb = function (a) {
- var b,
- c;
- b = this;
- c = this.j.bJ;
- h.Xa(c);
- return f.POa(a, c.width / c.height, q.config.KTa, q.config.qna).then(function (a) {
- var f;
- if (q.config.LTa) {
- f = 0;
- b.entries = a.map(function (a) {
- return Object.assign({}, a, {
- startTime: f,
- endTime: f += q.config.LTa
- });
- });
- } else
- b.entries = a;
- b.log.trace("Entries parsed", {
- Length: a.length
- }, b.eh);
- b.state = H.LOADED;
- return {
- V: !0,
- entries: b.entries,
- track: b
- };
- })["catch"](function (a) {
- b.log.error("Unable to parse timed text track", C.Kp(a), b.eh, {
- url: a.url
- });
- b.state = H.VJ;
- a.reason = "parseerror";
- a.track = b;
- throw a;
- });
- };
- a.prototype.Chb = function (a, b) {
- var f;
- f = this;
- this.log.trace("Downloading", b && {
- kc: b.id
- }, this.$r(b.id, a, "text"));
- return new Promise(function (c, h) {
- var k;
- k = {
- responseType: l.Bga,
- url: a,
- track: f,
- kc: b,
- lB: "tt-" + f.ll
- };
- f.j.xZ.download(k, function (a) {
- a.V ? c(a.content) : (a.reason = "downloadfailed", a.url = k.url, a.track = f, a.kc = b, h(a));
- });
- });
- };
- a.Z_a = 72E7;
- a.S7 = H;
- return a;
- }
- ();
- b.cA = d;
- }, function (d, b, a) {
- var l;
- function c() {}
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.TT = void 0;
- l = a(10);
- c.Gfa = function () {
- var a;
- a = l.jr && l.jr.height;
- return a ? 1080 <= a ? 1080 : 720 : 720;
- };
- b.TT = c;
- }, function (d) {
- d.P = function (b, a) {
- switch (b) {
- case 0:
- return function () {
- return a.apply(this, arguments);
- };
- case 1:
- return function (b) {
- return a.apply(this, arguments);
- };
- case 2:
- return function (b, d) {
- return a.apply(this, arguments);
- };
- case 3:
- return function (b, d, q) {
- return a.apply(this, arguments);
- };
- case 4:
- return function (b, d, q, n) {
- return a.apply(this, arguments);
- };
- case 5:
- return function (b, d, q, n, k) {
- return a.apply(this, arguments);
- };
- case 6:
- return function (b, d, q, n, k, p) {
- return a.apply(this, arguments);
- };
- case 7:
- return function (b, d, q, n, k, p, h) {
- return a.apply(this, arguments);
- };
- case 8:
- return function (b, d, q, n, k, p, h, f) {
- return a.apply(this, arguments);
- };
- case 9:
- return function (b, d, q, n, k, p, h, f, u) {
- return a.apply(this, arguments);
- };
- case 10:
- return function (b, d, q, n, k, p, h, f, u, A) {
- return a.apply(this, arguments);
- };
- default:
- throw Error("First argument to _arity must be a non-negative integer no greater than ten");
- }
- };
- }, function (d, b, a) {
- var q,
- n,
- k,
- p;
- function c(a, b, c) {
- for (var f = c.next(); !f.done; ) {
- if ((b = a["@@transducer/step"](b, f.value)) && b["@@transducer/reduced"]) {
- b = b["@@transducer/value"];
- break;
- }
- f = c.next();
- }
- return a["@@transducer/result"](b);
- }
- function l(a, b, c, p) {
- return a["@@transducer/result"](c[p](k(a["@@transducer/step"], a), b));
- }
- q = a(940);
- n = a(938);
- k = a(937);
- g();
- g();
- r();
- p = "undefined" !== typeof Symbol ? Symbol.iterator : "@@iterator";
- d.P = function (a, b, k) {
- "function" === typeof a && (a = n(a));
- if (q(k)) {
- for (var f = 0, h = k.length; f < h; ) {
- if ((b = a["@@transducer/step"](b, k[f])) && b["@@transducer/reduced"]) {
- b = b["@@transducer/value"];
- break;
- }
- f += 1;
- }
- return a["@@transducer/result"](b);
- }
- if ("function" === typeof k["fantasy-land/reduce"])
- return l(a, b, k, "fantasy-land/reduce");
- if (null != k[p])
- return c(a, b, k[p]());
- if ("function" === typeof k.next)
- return c(a, b, k);
- if ("function" === typeof k.reduce)
- return l(a, b, k, "reduce");
- throw new TypeError("reduce: list must be array or iterable");
- };
- }, function (d) {
- d.P = function (b, a) {
- return Object.prototype.hasOwnProperty.call(a, b);
- };
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.wK = void 0;
- b.wK = "TransportConfigSymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.QR = void 0;
- b.QR = "BookmarkSymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.F4 = b.lw = void 0;
- d = b.lw || (b.lw = {});
- d.f3a = "unknown";
- d.qoa = "absent";
- d.cwa = "present";
- d.Error = "error";
- b.F4 = "ExternalDisplayLogHelperSymbol";
- }, function (d, b, a) {
- var c,
- l,
- q;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.yw = void 0;
- c = a(31);
- d = a(98);
- l = a(139);
- q = new d.Iw();
- b.yw = function () {
- function a() {
- this.type = c.Yq.qt;
- }
- a.kca = function () {
- return {
- isTypeSupported: function (b) {
- var c;
- try {
- if (-1 == b.toLowerCase().indexOf("codec"))
- return t.MSMediaKeys.isTypeSupported(b, "video/mp4");
- c = b.split("|");
- return 1 === c.length ? t.MSMediaKeys.isTypeSupported(l.nb.Np, b) : "probably" === a.ana(c[0], c[1]);
- } catch (h) {
- return !1;
- }
- }
- };
- };
- a.SW = function (b, c, h) {
- c = q.format(a.VI, c);
- if (0 === h.length)
- return c;
- h = q.format('features="{0}"', h.join());
- return q.format("{0}|{1}{2}", b, c, h);
- };
- a.ana = function (a, b) {
- var c;
- try {
- c = t.MSMediaKeys.isTypeSupportedWithFeatures ? t.MSMediaKeys.isTypeSupportedWithFeatures(a, b) : "";
- } catch (f) {
- c = "exception";
- }
- return c;
- };
- a.VI = 'video/mp4;codecs="{0},mp4a";';
- return a;
- }
- ();
- }, function (d, b, a) {
- var c,
- l,
- q,
- n,
- k,
- p;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.cS = b.M3 = void 0;
- c = a(61);
- l = a(132);
- q = a(31);
- d = a(98);
- n = a(133);
- k = a(446);
- p = new d.Iw().format;
- a = function () {
- function a(b, c, h, k) {
- var f;
- f = l.Il.call(this, b, c, h) || this;
- f.cast = k;
- f.type = q.oj.L3;
- b = a.X2a;
- f.zR[q.yd.YT] = n.Ed.EJ + "; " + b;
- f.zR[q.yd.jt] = n.Ed.jt + "; " + b;
- b = n.Ed.zXa.find(function (b) {
- return f.qu(p(a.VI, b));
- });
- f.zR[q.yd.et] = b;
- return f;
- }
- da(a, l.Il);
- a.kca = function (b, c) {
- return (c = a.dRa(c)) ? {
- isTypeSupported: c
- }
- : b;
- };
- a.dRa = function (a) {
- if ("undefined" !== typeof a)
- return a.framework && a.framework.platform && a.framework.platform.canDisplayType ? a.framework.platform.canDisplayType : a.receiver && a.receiver.platform && a.receiver.platform.canDisplayType || a.__platform__ && a.__platform__.canDisplayType || void 0;
- };
- a.prototype.Ps = function (b) {
- var f,
- c;
- f = this.cast.__platform__.display && this.cast.__platform__.display.getHdcpVersion;
- if (this.config().QUa) {
- c = {};
- if (f)
- return c[q.gi.er] = "1.4", c[q.gi.Lz] = "2.2", f().then(function (a) {
- return a === c[b];
- });
- f = this.iMa(b);
- f = p(a.VI, n.Ed.EJ) + " hdcp=" + f;
- f = this.qu.bind(this, f);
- return Promise.resolve(f());
- }
- return Promise.resolve(!1);
- };
- a.prototype.BG = function (a) {
- return this.zR[a];
- };
- a.prototype.HG = function () {
- var a;
- a = this;
- return this.config().QUa ? this.Ps(q.gi.Lz).then(function (b) {
- return b ? Promise.resolve(q.gi.Lz) : a.Ps(q.gi.er).then(function (a) {
- return a ? Promise.resolve(q.gi.er) : Promise.resolve(void 0);
- });
- }).then(function (b) {
- return a.PM(b);
- }) : Promise.resolve(void 0);
- };
- a.prototype.fB = function () {
- var b,
- h;
- b = l.Il.prototype.fB.call(this);
- h = a.NJa;
- b[c.W.O4] = ["avc1.4D4028", "width=1920; height=1080; "];
- b[c.W.P4] = ["hev1.2.6.L90.B0", h];
- b[c.W.Q4] = ["hev1.2.6.L93.B0", h];
- b[c.W.R4] = ["hev1.2.6.L120.B0", h];
- b[c.W.S4] = ["hev1.2.6.L123.B0", h];
- b[c.W.T4] = ["hev1.2.6.L150.B0", "width=3840; height=2160; " + h];
- b[c.W.U4] = ["hev1.2.6.L153.B0", "width=3840; height=2160; " + h];
- b[c.W.GJ] = ["hev1.2.6.L90.B0", h];
- b[c.W.HJ] = ["hev1.2.6.L93.B0", h];
- b[c.W.OD] = ["hev1.2.6.L120.B0", h];
- b[c.W.IJ] = ["hev1.2.6.L123.B0", h];
- b[c.W.zS] = ["hev1.2.6.L150.B0", "width=3840; height=2160; " + h];
- b[c.W.AS] = ["hev1.2.6.L153.B0", "width=3840; height=2160; " + h];
- b[c.W.a5] = "hev1.1.6.L90.B0";
- b[c.W.b5] = "hev1.1.6.L93.B0";
- b[c.W.c5] = "hev1.1.6.L120.B0";
- b[c.W.d5] = "hev1.1.6.L123.B0";
- b[c.W.e5] = ["hev1.1.6.L150.B0", "width=3840; height=2160; "];
- b[c.W.f5] = ["hev1.1.6.L153.B0", "width=3840; height=2160; "];
- b[c.W.W4] = "hev1.2.6.L90.B0";
- b[c.W.X4] = "hev1.2.6.L93.B0";
- b[c.W.Y4] = "hev1.2.6.L120.B0";
- b[c.W.Z4] = "hev1.2.6.L123.B0";
- b[c.W.PD] = ["hev1.2.6.L150.B0", "width=3840; height=2160; "];
- b[c.W.QD] = ["hev1.2.6.L153.B0", "width=3840; height=2160; "];
- b[c.W.DS] = "hev1.2.6.L90.B0";
- b[c.W.FS] = "hev1.2.6.L93.B0";
- b[c.W.HS] = "hev1.2.6.L120.B0";
- b[c.W.JS] = "hev1.2.6.L123.B0";
- b[c.W.KS] = ["hev1.2.6.L150.B0", "width=3840; height=2160; "];
- b[c.W.LS] = ["hev1.2.6.L153.B0", "width=3840; height=2160; "];
- return b;
- };
- a.prototype.RHa = function () {
- return [k.sh.FR, k.sh.DJ, k.sh.ND];
- };
- a.prototype.Zga = function () {
- l.Il.prototype.Zga.call(this);
- !a.dRa(this.cast) && this.Al.push(k.sh.jt);
- };
- a.NJa = "eotf=smpte2084";
- a.nTb = "video/mp4;codecs={0}; " + a.NJa;
- a.X2a = "width=3840; height=2160; ";
- return a;
- }
- ();
- b.M3 = a;
- b.cS = "CastSDKSymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.k7 = b.x5 = void 0;
- b.x5 = "IsTypeSupportedProviderFactorySymbol";
- b.k7 = "PlatformIsTypeSupportedSymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.VT = b.k8 = void 0;
- b.k8 = "ThroughputTrackerSymbol";
- b.VT = "ThroughputTrackerFactorySymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.tT = void 0;
- b.tT = "PboPlaydataFactorySymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.PT = void 0;
- b.PT = "SegmentManagerFactorySymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.YS = void 0;
- b.YS = "MomentObserverFactory";
- }, function (d, b, a) {
- var l,
- q,
- n;
- function c(a, b, c, f) {
- this.qa = a;
- this.nu = b;
- this.El = c;
- this.cm = void 0 === f ? "General" : f;
- this.Pba = {};
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.UD = void 0;
- l = a(8);
- q = a(459);
- n = a(1002);
- c.prototype.iaa = function (a, b) {
- this.Pba[a] = b;
- };
- c.prototype.fatal = function (a, b) {
- for (var c = [], f = 1; f < arguments.length; ++f)
- c[f - 1] = arguments[f];
- this.ox(l.hi.kZa, a, n.YA(this.nu, this.CG(c)));
- };
- c.prototype.error = function (a, b) {
- for (var c = [], f = 1; f < arguments.length; ++f)
- c[f - 1] = arguments[f];
- this.ox(l.hi.ERROR, a, n.YA(this.nu, this.CG(c)));
- };
- c.prototype.warn = function (a, b) {
- for (var c = [], f = 1; f < arguments.length; ++f)
- c[f - 1] = arguments[f];
- this.ox(l.hi.A8, a, n.YA(this.nu, this.CG(c)));
- };
- c.prototype.info = function (a, b) {
- for (var c = [], f = 1; f < arguments.length; ++f)
- c[f - 1] = arguments[f];
- this.ox(l.hi.p5, a, n.YA(this.nu, this.CG(c)));
- };
- c.prototype.trace = function (a, b) {
- for (var c = [], f = 1; f < arguments.length; ++f)
- c[f - 1] = arguments[f];
- this.ox(l.hi.Dxa, a, n.YA(this.nu, this.CG(c)));
- };
- c.prototype.debug = function (a, b) {
- for (var c = 1; c < arguments.length; ++c);
- };
- c.prototype.log = function (a, b) {
- for (var c = 1; c < arguments.length; ++c);
- this.debug.apply(this, arguments);
- };
- c.prototype.write = function (a, b, c) {
- for (var f = [], h = 2; h < arguments.length; ++h)
- f[h - 2] = arguments[h];
- this.ox(a, b, n.YA(this.nu, this.CG(f)));
- };
- c.prototype.toString = function () {
- return JSON.stringify(this);
- };
- c.prototype.toJSON = function () {
- return {
- category: this.cm
- };
- };
- c.prototype.pca = function (a) {
- return new c(this.qa, this.nu, this.El, a);
- };
- c.prototype.ox = function (a, b, c) {
- a = new q.N5(a, this.cm, this.qa.$b(), b, c);
- b = S(this.El.El);
- for (c = b.next(); !c.done; c = b.next())
- c = c.value, c(a);
- };
- c.prototype.CG = function (a) {
- return 0 < Object.keys(this.Pba).length ? [].concat([this.Pba], Y(a)) : a;
- };
- b.UD = c;
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.C4 = b.Nw = void 0;
- b.Nw = "_ANY_";
- b.C4 = "EnricherSymbol";
- }, function (d) {
- var h,
- f,
- u,
- A,
- g,
- C;
- function b() {
- throw Error("setTimeout has not been defined");
- }
- function a() {
- throw Error("clearTimeout has not been defined");
- }
- function c(a) {
- if (h === setTimeout)
- return setTimeout(a, 0);
- if ((h === b || !h) && setTimeout)
- return h = setTimeout, setTimeout(a, 0);
- try {
- return h(a, 0);
- } catch (D) {
- try {
- return h.call(null, a, 0);
- } catch (K) {
- return h.call(this, a, 0);
- }
- }
- }
- function l(b) {
- if (f === clearTimeout)
- clearTimeout(b);
- else if (f !== a && f || !clearTimeout)
- try {
- f(b);
- } catch (D) {
- try {
- f.call(null, b);
- } catch (K) {
- f.call(this, b);
- }
- }
- else
- f = clearTimeout, clearTimeout(b);
- }
- function q() {
- A && g && (A = !1, g.length ? u = g.concat(u) : C = -1, u.length && n());
- }
- function n() {
- var a;
- if (!A) {
- a = c(q);
- A = !0;
- for (var b = u.length; b; ) {
- g = u;
- for (u = []; ++C < b; )
- g && g[C].kI();
- C = -1;
- b = u.length;
- }
- g = null;
- A = !1;
- l(a);
- }
- }
- function k(a, b) {
- this.Hkb = a;
- this.zn = b;
- }
- function p() {}
- d = d.P = {};
- try {
- h = "function" === typeof setTimeout ? setTimeout : b;
- } catch (H) {
- h = b;
- }
- try {
- f = "function" === typeof clearTimeout ? clearTimeout : a;
- } catch (H) {
- f = a;
- }
- u = [];
- A = !1;
- C = -1;
- d.uNa = function (a) {
- var b;
- b = Array(arguments.length - 1);
- if (1 < arguments.length)
- for (var f = 1; f < arguments.length; f++)
- b[f - 1] = arguments[f];
- u.push(new k(a, b));
- 1 !== u.length || A || c(n);
- };
- k.prototype.kI = function () {
- this.Hkb.apply(null, this.zn);
- };
- d.title = "browser";
- d.mRb = !0;
- d.Uib = {};
- d.WQb = [];
- d.version = "";
- d.DWb = {};
- d.on = p;
- d.addListener = p;
- d.once = p;
- d.IH = p;
- d.removeListener = p;
- d.removeAllListeners = p;
- d.emit = p;
- d.EPa = p;
- d.izb = p;
- d.listeners = function () {
- return [];
- };
- d.hRb = function () {
- throw Error("process.binding is not supported");
- };
- d.RRb = function () {
- return "/";
- };
- d.FRb = function () {
- throw Error("process.chdir is not supported");
- };
- d.tWb = function () {
- return 0;
- };
- }, function (d, b, a) {
- var c,
- l,
- q;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.OR = void 0;
- c = a(0);
- l = a(1);
- q = {
- 0: 0,
- 1: 1,
- 2: 2,
- 3: 3,
- 4: 4,
- 5: 5,
- 6: 6,
- 7: 7,
- 8: 8,
- 9: 9,
- A: 10,
- B: 11,
- C: 12,
- D: 13,
- E: 14,
- F: 15,
- a: 10,
- b: 11,
- c: 12,
- d: 13,
- e: 14,
- f: 15
- };
- d = function () {
- var b;
- function a() {}
- a.prototype.decode = function (a) {
- for (var b = new Uint8Array(a.length / 2), f = 0; f < b.length; f++)
- b[f] = this.STa(a.substr(2 * f, 2));
- return b;
- };
- a.prototype.encode = function (a) {
- for (var b = "", f = a.length, c = 0; c < f; c++)
- var k = a[c], b = b + ("0123456789ABCDEF"[k >>> 4] + "0123456789ABCDEF"[k & 15]);
- return b;
- };
- a.prototype.Ou = function (a, b) {
- var f;
- f = "";
- for (b <<= 1; b--; )
- f = ("0123456789ABCDEF"[a & 15] || "0") + f, a >>>= 4;
- return f;
- };
- a.prototype.STa = function (a) {
- var b;
- b = a.length;
- if (7 < b)
- throw Error("hex to long");
- for (var f = 0, c = 0; c < b; c++)
- f = 16 * f + q[a[c]];
- return f;
- };
- b = a;
- return b = c.__decorate([l.N()], b);
- }
- ();
- b.OR = d;
- }, function (d, b, a) {
- var c,
- l,
- q,
- n,
- k,
- p,
- h,
- f,
- u,
- A,
- g;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.mr = void 0;
- c = a(0);
- l = a(1);
- q = a(54);
- n = a(2);
- k = a(29);
- p = a(21);
- h = a(88);
- f = a(25);
- u = a(42);
- A = a(53);
- g = a(99);
- d = function () {
- var b,
- d;
- function a(a, b, f, c, h, k) {
- this.dP = a;
- this.is = b;
- this.qc = f;
- this.gd = c;
- this.Ke = h;
- this.Hh = k;
- q.wm(this, "nav");
- }
- a.prototype.ay = function () {
- if (this.$a)
- return this.$a.sessionId;
- };
- a.prototype.DBb = function (a, b) {
- return this.dP.requestMediaKeySystemAccess(a, b);
- };
- a.prototype.xfb = function (a) {
- return a.createMediaKeys();
- };
- a.prototype.Gn = function (a, b) {
- this.$a = a.createSession(b);
- };
- a.prototype.rrb = function () {
- return !!this.$a;
- };
- a.prototype.YDb = function (a, b) {
- return this.is.SV(a.setServerCertificate) ? a.setServerCertificate(b) : Promise.resolve();
- };
- a.prototype.Iea = function (a, b) {
- return this.$a ? this.$a.generateRequest(a, b[0]) : Promise.reject(new h.Pf(n.J.Pqa, n.I.BJ, void 0, "Unable to generate a license request, key session is not valid"));
- };
- a.prototype.update = function (a) {
- return this.$a ? this.$a.update(a[0]) : Promise.reject(new h.Pf(n.J.ID, n.I.BJ, void 0, "Unable to update the EME with a response, key session is not valid"));
- };
- a.prototype.load = function (a) {
- return this.$a ? this.$a.load(a) : Promise.reject(new h.Pf(n.J.YYa, n.I.BJ, void 0, "Unable to load a key session, key session is not valid"));
- };
- a.prototype.close = function () {
- var a;
- if (!this.$a)
- return Promise.reject(new h.Pf(n.J.QYa, n.I.BJ, void 0, "Unable to close a key session, key session is not valid"));
- a = Promise.resolve();
- this.ay() && (a = this.$a.close());
- this.$a = void 0;
- return a;
- };
- a.prototype.remove = function () {
- return this.$a ? this.$a.remove() : Promise.reject(new h.Pf(n.J.Tqa, n.I.BJ, void 0, "Unable to remove a key session, key session is not valid"));
- };
- a.prototype.fI = function () {
- return Promise.reject(new h.Pf(n.J.nS, void 0, "Unable to renew a key session, not supported"));
- };
- a.prototype.z9a = function (a) {
- if (!this.$a)
- throw ReferenceError("Unable to add message handler, key session is not valid");
- this.$a.addEventListener(b.Yqa, a);
- };
- a.prototype.t9a = function (a) {
- if (!this.$a)
- throw ReferenceError("Unable to add key status handler, key session is not valid");
- this.$a.addEventListener(b.Xqa, a);
- };
- a.prototype.n9a = function (a) {
- if (!this.$a)
- throw ReferenceError("Unable to add error handler, key session is not valid");
- this.$a.addEventListener(b.Wqa, a);
- };
- a.prototype.hBb = function (a) {
- if (!this.$a)
- throw ReferenceError("Unable to remove message handler, key session is not valid");
- this.$a.removeEventListener(b.Yqa, a);
- };
- a.prototype.eBb = function (a) {
- if (!this.$a)
- throw ReferenceError("Unable to remove key status handler, key session is not valid");
- this.$a.removeEventListener(b.Xqa, a);
- };
- a.prototype.cBb = function (a) {
- if (!this.$a)
- throw ReferenceError("Unable to remove error handler, key session is not valid");
- this.$a.removeEventListener(b.Wqa, a);
- };
- d = b = a;
- d.Yqa = "message";
- d.Xqa = "keystatuseschange";
- d.Wqa = "error";
- return d = b = c.__decorate([l.N(), c.__param(0, l.l(k.Cw)), c.__param(1, l.l(p.ee)), c.__param(2, l.l(u.Gi)), c.__param(3, l.l(f.af)), c.__param(4, l.l(A.Jl)), c.__param(5, l.l(g.Lw))], d);
- }
- ();
- b.mr = d;
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Jqa = b.xw = b.fr = void 0;
- b.fr = 'video/mp4; codecs="avc1.640028"';
- b.xw = 'audio/mp4; codecs="mp4a.40.5"';
- b.Jqa = "DrmTraitsSymbol";
- }, function (d, b, a) {
- var c,
- l,
- q,
- n;
- c = this && this.__extends || function (a, b) {
- function c() {
- this.constructor = a;
- }
- for (var f in b)
- b.hasOwnProperty(f) && (a[f] = b[f]);
- a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c());
- };
- d = a(19);
- l = a(483);
- q = a(173);
- n = a(255);
- a = function (a) {
- function b(b, f) {
- a.call(this);
- this.zn = b;
- (this.ta = f) || 1 !== b.length || (this.Lt = !0, this.value = b[0]);
- }
- c(b, a);
- b.create = function (a, f) {
- return new b(a, f);
- };
- b.of = function () {
- var c;
- for (var a = [], f = 0; f < arguments.length; f++)
- a[f - 0] = arguments[f];
- f = a[a.length - 1];
- n.a_(f) ? a.pop() : f = null;
- c = a.length;
- return 1 < c ? new b(a, f) : 1 === c ? new l.Rwa(a[0], f) : new q.pS(f);
- };
- b.tc = function (a) {
- var b,
- c,
- h;
- b = a.zn;
- c = a.index;
- h = a.ij;
- c >= a.count ? h.complete() : (h.next(b[c]), h.closed || (a.index = c + 1, this.Mc(a)));
- };
- b.prototype.Vl = function (a) {
- var f,
- c,
- h;
- f = this.zn;
- c = f.length;
- h = this.ta;
- if (h)
- return h.Mc(b.tc, 0, {
- zn: f,
- index: 0,
- count: c,
- ij: a
- });
- for (h = 0; h < c && !a.closed; h++)
- a.next(f[h]);
- a.complete();
- };
- return b;
- }
- (d.ob);
- b.m3 = a;
- }, function (d, b) {
- b.a_ = function (a) {
- return a && "function" === typeof a.Mc;
- };
- }, function (d, b, a) {
- function c(a) {
- var b,
- k;
- b = a.Symbol;
- if ("function" === typeof b)
- return b.iterator || (b.iterator = b("iterator polyfill")), b.iterator;
- if ((b = a.Set) && "function" === typeof new b()["@@iterator"])
- return "@@iterator";
- if (a = a.Map)
- for (var b = Object.getOwnPropertyNames(a.prototype), c = 0; c < b.length; ++c) {
- k = b[c];
- if ("entries" !== k && "size" !== k && a.prototype[k] === a.prototype.entries)
- return k;
- }
- return "@@iterator";
- }
- d = a(85);
- b.fWb = c;
- b.iterator = c(d.root);
- b.uJb = b.iterator;
- }, function (d, b, a) {
- function c(a) {
- var b;
- b = a.Symbol;
- "function" === typeof b ? b.observable ? a = b.observable : (a = b("observable"), b.observable = a) : a = "@@observable";
- return a;
- }
- d = a(85);
- b.gTb = c;
- b.observable = c(d.root);
- b.vJb = b.observable;
- }, function (d, b, a) {
- d = a(85).root.Symbol;
- b.QC = "function" === typeof d && "function" === typeof d["for"] ? d["for"]("rxSubscriber") : "@@rxSubscriber";
- b.wJb = b.QC;
- }, function (d, b) {
- b.empty = {
- closed: !0,
- next: function () {},
- error: function (a) {
- throw a;
- },
- complete: function () {}
- };
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.bS = void 0;
- b.bS = "CannedChallengeProvider";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.aS = void 0;
- b.aS = "CachedDrmDataSymbol";
- }, function (d, b, a) {
- var l,
- q;
- function c(a) {
- a ? (this.active = !1, this.Fea(a)) : this.active = !0;
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Fqa = b.kS = void 0;
- l = a(0);
- q = a(1);
- c.prototype.Fea = function (a) {
- this.Yb = a.keySessionData ? a.keySessionData.map(function (a) {
- return {
- id: a.id,
- qy: a.licenseContextId,
- gH: a.licenseId
- };
- }) : [];
- this.fa = a.xid;
- this.u = a.movieId;
- };
- c.prototype.Us = function () {
- return JSON.parse(JSON.stringify({
- keySessionData: this.Yb ? this.Yb.map(function (a) {
- return {
- id: a.id,
- licenseContextId: a.qy,
- licenseId: a.gH
- };
- }) : [],
- xid: this.fa,
- movieId: this.u
- }));
- };
- b.kS = c;
- d = function () {
- var b;
- function a() {}
- a.prototype.create = function () {
- return new c();
- };
- a.prototype.load = function (a) {
- return new c(a);
- };
- b = a;
- return b = l.__decorate([q.N()], b);
- }
- ();
- b.Fqa = d;
- }, function (d, b, a) {
- var c,
- l,
- q,
- n,
- k,
- p,
- h,
- f,
- u,
- A,
- g;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.iG = b.eme = void 0;
- d = a(1);
- c = a(117);
- l = a(501);
- q = a(262);
- n = a(261);
- k = a(1117);
- p = a(1116);
- h = a(100);
- f = a(137);
- u = a(1115);
- A = a(260);
- g = a(1114);
- b.eme = new d.Ec(function (a) {
- a(l.o4).to(q.Fqa).aa();
- a(n.aS).to(k.ypa).aa();
- a(c.AJ).cR(p.RPa);
- a(h.pt).iz(function (a) {
- b.iG.parent = a.lb;
- return b.iG.get(h.pt);
- });
- a(f.YD).tf(function () {
- return function () {
- return new u.Uta();
- };
- });
- a(A.bS).to(g.Apa).aa;
- });
- b.iG = new d.fS({
- ZC: !0
- });
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.rK = void 0;
- b.rK = "StringUtilsSymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.vT = void 0;
- b.vT = "PlatformEmeSymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.wz = void 0;
- b.wz = function () {
- function a() {}
- a.Q1a = "PSK";
- a.f0a = "MGK";
- a.aNb = "MGK_WITH_FALLBACK";
- a.$Mb = "MGK_JWE";
- a.O_a = "JWEJS_RSA";
- a.B5 = "JWK_RSA";
- a.RMb = "JWK_RSAES";
- return a;
- }
- ();
- }, function (d, b, a) {
- var c;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- c = a(268);
- a(505);
- d = function () {
- function a(a) {
- this.Ob = a;
- }
- a.prototype.when = function (a) {
- this.Ob.cB = a;
- return new c.PR(this.Ob);
- };
- a.prototype.AR = function () {
- this.Ob.cB = function (a) {
- return null !== a.target && !a.target.iha() && !a.target.pha();
- };
- return new c.PR(this.Ob);
- };
- return a;
- }
- ();
- b.A3 = d;
- }, function (d, b, a) {
- var c;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- c = a(267);
- d = function () {
- function a(a) {
- this.Ob = a;
- }
- a.prototype.ys = function (a) {
- this.Ob.ys = a;
- return new c.A3(this.Ob);
- };
- return a;
- }
- ();
- b.PR = d;
- }, function (d, b, a) {
- var c,
- l,
- q,
- n,
- k,
- p;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Pb = void 0;
- d = a(1);
- c = a(90);
- l = a(1121);
- q = a(263);
- n = a(1113);
- k = a(1105);
- p = a(1030);
- a = a(557);
- b.Pb = new d.fS({
- ZC: !0
- });
- p.CLa(b.Pb);
- b.Pb.load(l.platform);
- b.Pb.load(n.config);
- q.iG.load(k.aGa);
- b.Pb.load(a.oCa);
- b.Pb.load(a.profile);
- b.Pb.bind(c.u5).bi(b.Pb);
- }, function (d, b, a) {
- var q,
- n,
- k,
- p,
- h,
- f,
- u,
- A,
- G;
- function c(a) {
- var b;
- b = [];
- u(a, A, function (a, f, c, h) {
- b[b.length] = c ? u(h, G, "$1") : f || a;
- });
- return b;
- }
- function l() {
- throw new q();
- }
- q = TypeError;
- n = Object.getOwnPropertyDescriptor;
- if (n)
- try {
- n({}, "");
- } catch (C) {
- n = null;
- }
- b = n ? function () {
- try {
- return arguments.callee,
- l;
- } catch (C) {
- try {
- return n(arguments, "callee").get;
- } catch (H) {
- return l;
- }
- }
- }
- () : l;
- k = a(1152)();
- p = Object.getPrototypeOf || function (a) {
- return a.__proto__;
- };
- h = "undefined" === typeof Uint8Array ? void 0 : p(Uint8Array);
- g();
- r();
- g();
- g();
- g();
- r();
- g();
- r();
- g();
- r();
- g();
- r();
- g();
- g();
- f = {
- "%Array%": Array,
- "%ArrayBuffer%": "undefined" === typeof ArrayBuffer ? void 0 : ArrayBuffer,
- "%ArrayBufferPrototype%": "undefined" === typeof ArrayBuffer ? void 0 : ArrayBuffer.prototype,
- "%ArrayIteratorPrototype%": k ? p([][Symbol.iterator]()) : void 0,
- "%ArrayPrototype%": Array.prototype,
- "%ArrayProto_entries%": Array.prototype.entries,
- "%ArrayProto_forEach%": Array.prototype.forEach,
- "%ArrayProto_keys%": Array.prototype.keys,
- "%ArrayProto_values%": Array.prototype.values,
- "%AsyncFromSyncIteratorPrototype%": void 0,
- "%AsyncFunction%": void 0,
- "%AsyncFunctionPrototype%": void 0,
- "%AsyncGenerator%": void 0,
- "%AsyncGeneratorFunction%": void 0,
- "%AsyncGeneratorPrototype%": void 0,
- "%AsyncIteratorPrototype%": void 0,
- "%Atomics%": "undefined" === typeof Atomics ? void 0 : Atomics,
- "%Boolean%": Boolean,
- "%BooleanPrototype%": Boolean.prototype,
- "%DataView%": "undefined" === typeof DataView ? void 0 : DataView,
- "%DataViewPrototype%": "undefined" === typeof DataView ? void 0 : DataView.prototype,
- "%Date%": Date,
- "%DatePrototype%": Date.prototype,
- "%decodeURI%": decodeURI,
- "%decodeURIComponent%": decodeURIComponent,
- "%encodeURI%": encodeURI,
- "%encodeURIComponent%": encodeURIComponent,
- "%Error%": Error,
- "%ErrorPrototype%": Error.prototype,
- "%eval%": eval,
- "%EvalError%": EvalError,
- "%EvalErrorPrototype%": EvalError.prototype,
- "%Float32Array%": "undefined" === typeof Float32Array ? void 0 : Float32Array,
- "%Float32ArrayPrototype%": "undefined" === typeof Float32Array ? void 0 : Float32Array.prototype,
- "%Float64Array%": "undefined" === typeof Float64Array ? void 0 : Float64Array,
- "%Float64ArrayPrototype%": "undefined" === typeof Float64Array ? void 0 : Float64Array.prototype,
- "%Function%": Function,
- "%FunctionPrototype%": Function.prototype,
- "%Generator%": void 0,
- "%GeneratorFunction%": void 0,
- "%GeneratorPrototype%": void 0,
- "%Int8Array%": "undefined" === typeof Int8Array ? void 0 : Int8Array,
- "%Int8ArrayPrototype%": "undefined" === typeof Int8Array ? void 0 : Int8Array.prototype,
- "%Int16Array%": "undefined" === typeof Int16Array ? void 0 : Int16Array,
- "%Int16ArrayPrototype%": "undefined" === typeof Int16Array ? void 0 : Int8Array.prototype,
- "%Int32Array%": "undefined" === typeof Int32Array ? void 0 : Int32Array,
- "%Int32ArrayPrototype%": "undefined" === typeof Int32Array ? void 0 : Int32Array.prototype,
- "%isFinite%": isFinite,
- "%isNaN%": isNaN,
- "%IteratorPrototype%": k ? p(p([][Symbol.iterator]())) : void 0,
- "%JSON%": "object" === typeof JSON ? JSON : void 0,
- "%JSONParse%": "object" === typeof JSON ? JSON.parse : void 0,
- "%Map%": "undefined" === typeof Map ? void 0 : Map,
- "%MapIteratorPrototype%": "undefined" !== typeof Map && k ? p(new Map()[Symbol.iterator]()) : void 0,
- "%MapPrototype%": "undefined" === typeof Map ? void 0 : Map.prototype,
- "%Math%": Math,
- "%Number%": Number,
- "%NumberPrototype%": Number.prototype,
- "%Object%": Object,
- "%ObjectPrototype%": Object.prototype,
- "%ObjProto_toString%": Object.prototype.toString,
- "%ObjProto_valueOf%": Object.prototype.valueOf,
- "%parseFloat%": parseFloat,
- "%parseInt%": parseInt,
- "%Promise%": "undefined" === typeof Promise ? void 0 : Promise,
- "%PromisePrototype%": "undefined" === typeof Promise ? void 0 : Promise.prototype,
- "%PromiseProto_then%": "undefined" === typeof Promise ? void 0 : Promise.prototype.then,
- "%Promise_all%": "undefined" === typeof Promise ? void 0 : Promise.all,
- "%Promise_reject%": "undefined" === typeof Promise ? void 0 : Promise.reject,
- "%Promise_resolve%": "undefined" === typeof Promise ? void 0 : Promise.resolve,
- "%Proxy%": "undefined" === typeof Proxy ? void 0 : Proxy,
- "%RangeError%": RangeError,
- "%RangeErrorPrototype%": RangeError.prototype,
- "%ReferenceError%": ReferenceError,
- "%ReferenceErrorPrototype%": ReferenceError.prototype,
- "%Reflect%": "undefined" === typeof Reflect ? void 0 : Reflect,
- "%RegExp%": RegExp,
- "%RegExpPrototype%": RegExp.prototype,
- "%Set%": "undefined" === typeof Set ? void 0 : Set,
- "%SetIteratorPrototype%": "undefined" !== typeof Set && k ? p(new Set()[Symbol.iterator]()) : void 0,
- "%SetPrototype%": "undefined" === typeof Set ? void 0 : Set.prototype,
- "%SharedArrayBuffer%": "undefined" === typeof SharedArrayBuffer ? void 0 : SharedArrayBuffer,
- "%SharedArrayBufferPrototype%": "undefined" === typeof SharedArrayBuffer ? void 0 : SharedArrayBuffer.prototype,
- "%String%": String,
- "%StringIteratorPrototype%": k ? p(""[Symbol.iterator]()) : void 0,
- "%StringPrototype%": String.prototype,
- "%Symbol%": k ? Symbol : void 0,
- "%SymbolPrototype%": k ? Symbol.prototype : void 0,
- "%SyntaxError%": SyntaxError,
- "%SyntaxErrorPrototype%": SyntaxError.prototype,
- "%ThrowTypeError%": b,
- "%TypedArray%": h,
- "%TypedArrayPrototype%": h ? h.prototype : void 0,
- "%TypeError%": q,
- "%TypeErrorPrototype%": q.prototype,
- "%Uint8Array%": "undefined" === typeof Uint8Array ? void 0 : Uint8Array,
- "%Uint8ArrayPrototype%": "undefined" === typeof Uint8Array ? void 0 : Uint8Array.prototype,
- "%Uint8ClampedArray%": "undefined" === typeof Uint8ClampedArray ? void 0 : Uint8ClampedArray,
- "%Uint8ClampedArrayPrototype%": "undefined" === typeof Uint8ClampedArray ? void 0 : Uint8ClampedArray.prototype,
- "%Uint16Array%": "undefined" === typeof Uint16Array ? void 0 : Uint16Array,
- "%Uint16ArrayPrototype%": "undefined" === typeof Uint16Array ? void 0 : Uint16Array.prototype,
- "%Uint32Array%": "undefined" === typeof Uint32Array ? void 0 : Uint32Array,
- "%Uint32ArrayPrototype%": "undefined" === typeof Uint32Array ? void 0 : Uint32Array.prototype,
- "%URIError%": URIError,
- "%URIErrorPrototype%": URIError.prototype,
- "%WeakMap%": "undefined" === typeof WeakMap ? void 0 : WeakMap,
- "%WeakMapPrototype%": "undefined" === typeof WeakMap ? void 0 : WeakMap.prototype,
- "%WeakSet%": "undefined" === typeof WeakSet ? void 0 : WeakSet,
- "%WeakSetPrototype%": "undefined" === typeof WeakSet ? void 0 : WeakSet.prototype
- };
- u = a(271).call(Function.call, String.prototype.replace);
- A = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
- G = /\\(\\)?/g;
- d.P = function (a, b) {
- var h,
- k,
- u;
- if ("string" !== typeof a || 0 === a.length)
- throw new TypeError("intrinsic name must be a non-empty string");
- if (1 < arguments.length && "boolean" !== typeof b)
- throw new TypeError('"allowMissing" argument must be a boolean');
- h = c(a);
- k = "%" + (0 < h.length ? h[0] : "") + "%";
- if (!(k in f))
- throw new SyntaxError("intrinsic " + k + " does not exist!");
- if ("undefined" === typeof f[k] && !b)
- throw new q("intrinsic " + k + " exists, but is not available. Please file an issue!");
- k = f[k];
- for (var p = 1; p < h.length; p += 1)
- if (null != k)
- if (n && p + 1 >= h.length) {
- u = n(k, h[p]);
- if (!(b || h[p]in k))
- throw new q("base intrinsic for " + a + " exists, but the property is not available.");
- k = u ? u.get || u.value : k[h[p]];
- } else
- k = k[h[p]];
- return k;
- };
- }, function (d, b, a) {
- b = a(1155);
- d.P = Function.prototype.bind || b;
- }, function (d, b, a) {
- var n;
- function c(a, b, c, f, u, n, d) {
- this.rR = f;
- this.DVa = a;
- this.xNa = b;
- this.gja = c;
- this.Drb = n;
- this.Uy = d;
- this.split = u;
- }
- function l() {
- this.H = {};
- this.H["0"] = new c("1", "2", "1", "14", "-0.0000100136", 0, 0);
- this.H["1"] = new c("3", "4", "3", "20", "-0.0000100136", 0, 0);
- this.H["3"] = new c("7", "8", "7", "10", "1.5", 0, 0);
- this.H["7"] = new c("15", "16", "15", "9", "4.5", 0, 0);
- this.H["15"] = new c("31", "32", "31", "2", "5.5", 0, 0);
- this.H["31"] = new c("63", "64", "63", "29", "-0.0000100136", 0, 0);
- this.H["63"] = new c("123", "124", "123", "24", "-0.0000100136", 0, 0);
- this.H["123"] = new c("123", "124", "123", "0", "0", 1, .207298);
- this.H["124"] = new c("123", "124", "123", "0", "0", 1, .49076);
- this.H["64"] = new c("125", "126", "125", "4", "40.5", 0, 0);
- this.H["125"] = new c("125", "126", "125", "0", "0", 1, - .00157835);
- this.H["126"] = new c("125", "126", "125", "0", "0", 1, .934205);
- this.H["32"] = new c("65", "66", "65", "135", "5.5", 0, 0);
- this.H["65"] = new c("127", "128", "128", "4", "1272.5", 0, 0);
- this.H["127"] = new c("127", "128", "128", "0", "0", 1, - .510333);
- this.H["128"] = new c("127", "128", "128", "0", "0", 1, .18363);
- this.H["66"] = new c("129", "130", "129", "24", "-0.0000100136", 0, 0);
- this.H["129"] = new c("129", "130", "129", "0", "0", 1, - .0464542);
- this.H["130"] = new c("129", "130", "129", "0", "0", 1, .458833);
- this.H["16"] = new c("33", "34", "34", "10", "2.00001", 0, 0);
- this.H["33"] = new c("67", "68", "67", "0", "29.5", 0, 0);
- this.H["67"] = new c("131", "132", "131", "2", "39.5", 0, 0);
- this.H["131"] = new c("131", "132", "131", "0", "0", 1, - .37577);
- this.H["132"] = new c("131", "132", "131", "0", "0", 1, .512087);
- this.H["68"] = new c("133", "134", "134", "140", "1.5", 0, 0);
- this.H["133"] = new c("133", "134", "134", "0", "0", 1, .321272);
- this.H["134"] = new c("133", "134", "134", "0", "0", 1, - .675396);
- this.H["34"] = new c("69", "70", "70", "2", "24.5", 0, 0);
- this.H["69"] = new c("135", "136", "136", "9", "28.5", 0, 0);
- this.H["135"] = new c("135", "136", "136", "0", "0", 1, - .0573845);
- this.H["136"] = new c("135", "136", "136", "0", "0", 1, - .507455);
- this.H["70"] = new c("137", "138", "137", "45", "-0.0000100136", 0, 0);
- this.H["137"] = new c("137", "138", "137", "0", "0", 1, - .503909);
- this.H["138"] = new c("137", "138", "137", "0", "0", 1, .450886);
- this.H["8"] = new c("17", "18", "17", "4", "44189.5", 0, 0);
- this.H["17"] = new c("35", "36", "35", "2", "21.5", 0, 0);
- this.H["35"] = new c("71", "72", "72", "0", "19.5", 0, 0);
- this.H["71"] = new c("139", "140", "140", "9", "2.5", 0, 0);
- this.H["139"] = new c("139", "140", "140", "0", "0", 1, .00403497);
- this.H["140"] = new c("139", "140", "140", "0", "0", 1, - .312656);
- this.H["72"] = new c("141", "142", "141", "135", "96", 0, 0);
- this.H["141"] = new c("141", "142", "141", "0", "0", 1, - .465786);
- this.H["142"] = new c("141", "142", "141", "0", "0", 1, .159633);
- this.H["36"] = new c("73", "74", "73", "130", "89.5", 0, 0);
- this.H["73"] = new c("143", "144", "144", "10", "4.5", 0, 0);
- this.H["143"] = new c("143", "144", "144", "0", "0", 1, - .76265);
- this.H["144"] = new c("143", "144", "144", "0", "0", 1, - .580804);
- this.H["74"] = new c("145", "146", "146", "10", "16.5", 0, 0);
- this.H["145"] = new c("145", "146", "146", "0", "0", 1, .296357);
- this.H["146"] = new c("145", "146", "146", "0", "0", 1, - .691659);
- this.H["18"] = new c("37", "38", "38", "9", "1.5", 0, 0);
- this.H["37"] = new c("37", "38", "38", "0", "0", 1, .993951);
- this.H["38"] = new c("75", "76", "75", "0", "19", 0, 0);
- this.H["75"] = new c("147", "148", "147", "39", "-0.0000100136", 0, 0);
- this.H["147"] = new c("147", "148", "147", "0", "0", 1, - .346535);
- this.H["148"] = new c("147", "148", "147", "0", "0", 1, - .995745);
- this.H["76"] = new c("147", "148", "147", "0", "0", 1, - .99978);
- this.H["4"] = new c("9", "10", "9", "5", "4.5", 0, 0);
- this.H["9"] = new c("19", "20", "19", "2", "4.5", 0, 0);
- this.H["19"] = new c("39", "40", "39", "140", "7.5", 0, 0);
- this.H["39"] = new c("77", "78", "78", "134", "6.5", 0, 0);
- this.H["77"] = new c("149", "150", "150", "7", "11.5", 0, 0);
- this.H["149"] = new c("149", "150", "150", "0", "0", 1, .729843);
- this.H["150"] = new c("149", "150", "150", "0", "0", 1, .383857);
- this.H["78"] = new c("151", "152", "151", "133", "4.5", 0, 0);
- this.H["151"] = new c("151", "152", "151", "0", "0", 1, .39017);
- this.H["152"] = new c("151", "152", "151", "0", "0", 1, .0434342);
- this.H["40"] = new c("79", "80", "79", "133", "3.5", 0, 0);
- this.H["79"] = new c("153", "154", "154", "8", "4.5", 0, 0);
- this.H["153"] = new c("153", "154", "154", "0", "0", 1, - .99536);
- this.H["154"] = new c("153", "154", "154", "0", "0", 1, - .00943396);
- this.H["80"] = new c("155", "156", "155", "125", "-0.0000100136", 0, 0);
- this.H["155"] = new c("155", "156", "155", "0", "0", 1, .266272);
- this.H["156"] = new c("155", "156", "155", "0", "0", 1, .959904);
- this.H["20"] = new c("41", "42", "42", "10", "65.5", 0, 0);
- this.H["41"] = new c("81", "82", "82", "7", "10.5", 0, 0);
- this.H["81"] = new c("157", "158", "158", "2", "37.5", 0, 0);
- this.H["157"] = new c("157", "158", "158", "0", "0", 1, - .701873);
- this.H["158"] = new c("157", "158", "158", "0", "0", 1, .224649);
- this.H["82"] = new c("159", "160", "159", "133", "9.5", 0, 0);
- this.H["159"] = new c("159", "160", "159", "0", "0", 1, .0955181);
- this.H["160"] = new c("159", "160", "159", "0", "0", 1, - .58962);
- this.H["42"] = new c("83", "84", "83", "39", "-0.0000100136", 0, 0);
- this.H["83"] = new c("161", "162", "161", "135", "31", 0, 0);
- this.H["161"] = new c("161", "162", "161", "0", "0", 1, - .229692);
- this.H["162"] = new c("161", "162", "161", "0", "0", 1, .88595);
- this.H["84"] = new c("163", "164", "164", "1", "13.5", 0, 0);
- this.H["163"] = new c("163", "164", "164", "0", "0", 1, - .992157);
- this.H["164"] = new c("163", "164", "164", "0", "0", 1, .922159);
- this.H["10"] = new c("21", "22", "22", "4", "486", 0, 0);
- this.H["21"] = new c("43", "44", "44", "133", "4.5", 0, 0);
- this.H["43"] = new c("85", "86", "86", "10", "4.5", 0, 0);
- this.H["85"] = new c("165", "166", "166", "4", "158.5", 0, 0);
- this.H["165"] = new c("165", "166", "166", "0", "0", 1, - .127778);
- this.H["166"] = new c("165", "166", "166", "0", "0", 1, .955189);
- this.H["86"] = new c("165", "166", "166", "0", "0", 1, - .994012);
- this.H["44"] = new c("87", "88", "88", "1", "3.5", 0, 0);
- this.H["87"] = new c("167", "168", "168", "135", "7", 0, 0);
- this.H["167"] = new c("167", "168", "168", "0", "0", 1, - .997015);
- this.H["168"] = new c("167", "168", "168", "0", "0", 1, .400821);
- this.H["88"] = new c("169", "170", "169", "130", "36", 0, 0);
- this.H["169"] = new c("169", "170", "169", "0", "0", 1, - .898638);
- this.H["170"] = new c("169", "170", "169", "0", "0", 1, .56129);
- this.H["22"] = new c("45", "46", "45", "9", "2.5", 0, 0);
- this.H["45"] = new c("89", "90", "90", "9", "1.5", 0, 0);
- this.H["89"] = new c("171", "172", "171", "10", "10.5", 0, 0);
- this.H["171"] = new c("171", "172", "171", "0", "0", 1, .573986);
- this.H["172"] = new c("171", "172", "171", "0", "0", 1, - .627266);
- this.H["90"] = new c("173", "174", "173", "31", "-0.0000100136", 0, 0);
- this.H["173"] = new c("173", "174", "173", "0", "0", 1, .925273);
- this.H["174"] = new c("173", "174", "173", "0", "0", 1, - .994805);
- this.H["46"] = new c("91", "92", "91", "136", "5.5", 0, 0);
- this.H["91"] = new c("175", "176", "175", "10", "10.5", 0, 0);
- this.H["175"] = new c("175", "176", "175", "0", "0", 1, .548352);
- this.H["176"] = new c("175", "176", "175", "0", "0", 1, - .879195);
- this.H["92"] = new c("177", "178", "178", "8", "14.5", 0, 0);
- this.H["177"] = new c("177", "178", "178", "0", "0", 1, .457305);
- this.H["178"] = new c("177", "178", "178", "0", "0", 1, - .998992);
- this.H["2"] = new c("5", "6", "5", "10", "2.5", 0, 0);
- this.H["5"] = new c("11", "12", "11", "9", "4.5", 0, 0);
- this.H["11"] = new c("23", "24", "24", "10", "4.00001", 0, 0);
- this.H["23"] = new c("47", "48", "48", "133", "5.5", 0, 0);
- this.H["47"] = new c("93", "94", "93", "3", "13.5", 0, 0);
- this.H["93"] = new c("179", "180", "179", "138", "15.5", 0, 0);
- this.H["179"] = new c("179", "180", "179", "0", "0", 1, .658398);
- this.H["180"] = new c("179", "180", "179", "0", "0", 1, - .927007);
- this.H["94"] = new c("181", "182", "182", "3", "15.5", 0, 0);
- this.H["181"] = new c("181", "182", "182", "0", "0", 1, - .111351);
- this.H["182"] = new c("181", "182", "182", "0", "0", 1, - .99827);
- this.H["48"] = new c("95", "96", "95", "7", "167", 0, 0);
- this.H["95"] = new c("183", "184", "183", "132", "36.5", 0, 0);
- this.H["183"] = new c("183", "184", "183", "0", "0", 1, .895161);
- this.H["184"] = new c("183", "184", "183", "0", "0", 1, - .765217);
- this.H["96"] = new c("185", "186", "186", "137", "6.00001", 0, 0);
- this.H["185"] = new c("185", "186", "186", "0", "0", 1, - .851095);
- this.H["186"] = new c("185", "186", "186", "0", "0", 1, .674286);
- this.H["24"] = new c("49", "50", "49", "137", "5.5", 0, 0);
- this.H["49"] = new c("97", "98", "97", "5", "23.5", 0, 0);
- this.H["97"] = new c("187", "188", "187", "3", "28.5", 0, 0);
- this.H["187"] = new c("187", "188", "187", "0", "0", 1, .951654);
- this.H["188"] = new c("187", "188", "187", "0", "0", 1, - .993808);
- this.H["98"] = new c("187", "188", "187", "0", "0", 1, - .99705);
- this.H["50"] = new c("187", "188", "187", "0", "0", 1, - .997525);
- this.H["12"] = new c("25", "26", "25", "8", "8.5", 0, 0);
- this.H["25"] = new c("51", "52", "52", "10", "4.00001", 0, 0);
- this.H["51"] = new c("99", "100", "100", "133", "5.5", 0, 0);
- this.H["99"] = new c("189", "190", "190", "7", "40.5", 0, 0);
- this.H["189"] = new c("189", "190", "190", "0", "0", 1, .151839);
- this.H["190"] = new c("189", "190", "190", "0", "0", 1, - .855517);
- this.H["100"] = new c("191", "192", "192", "133", "14.5", 0, 0);
- this.H["191"] = new c("191", "192", "192", "0", "0", 1, .86223);
- this.H["192"] = new c("191", "192", "192", "0", "0", 1, .544394);
- this.H["52"] = new c("101", "102", "101", "135", "47.5", 0, 0);
- this.H["101"] = new c("193", "194", "194", "4", "24.5", 0, 0);
- this.H["193"] = new c("193", "194", "194", "0", "0", 1, .946185);
- this.H["194"] = new c("193", "194", "194", "0", "0", 1, .811859);
- this.H["102"] = new c("193", "194", "194", "0", "0", 1, - .991561);
- this.H["26"] = new c("53", "54", "54", "132", "6.5", 0, 0);
- this.H["53"] = new c("103", "104", "103", "131", "85", 0, 0);
- this.H["103"] = new c("195", "196", "196", "134", "16.5", 0, 0);
- this.H["195"] = new c("195", "196", "196", "0", "0", 1, .0473538);
- this.H["196"] = new c("195", "196", "196", "0", "0", 1, - .999401);
- this.H["104"] = new c("197", "198", "198", "8", "15.5", 0, 0);
- this.H["197"] = new c("197", "198", "198", "0", "0", 1, .816129);
- this.H["198"] = new c("197", "198", "198", "0", "0", 1, - .99322);
- this.H["54"] = new c("105", "106", "105", "133", "3.5", 0, 0);
- this.H["105"] = new c("105", "106", "105", "0", "0", 1, - .998783);
- this.H["106"] = new c("199", "200", "199", "39", "-0.0000100136", 0, 0);
- this.H["199"] = new c("199", "200", "199", "0", "0", 1, .528588);
- this.H["200"] = new c("199", "200", "199", "0", "0", 1, - .998599);
- this.H["6"] = new c("13", "14", "14", "10", "7.5", 0, 0);
- this.H["13"] = new c("27", "28", "28", "133", "7.5", 0, 0);
- this.H["27"] = new c("55", "56", "56", "10", "4.5", 0, 0);
- this.H["55"] = new c("107", "108", "107", "3", "3.5", 0, 0);
- this.H["107"] = new c("201", "202", "201", "4", "17.5", 0, 0);
- this.H["201"] = new c("201", "202", "201", "0", "0", 1, - .379512);
- this.H["202"] = new c("201", "202", "201", "0", "0", 1, .15165);
- this.H["108"] = new c("203", "204", "203", "57", "-0.0000100136", 0, 0);
- this.H["203"] = new c("203", "204", "203", "0", "0", 1, - .884606);
- this.H["204"] = new c("203", "204", "203", "0", "0", 1, .265406);
- this.H["56"] = new c("109", "110", "109", "136", "6.5", 0, 0);
- this.H["109"] = new c("205", "206", "205", "4", "157.5", 0, 0);
- this.H["205"] = new c("205", "206", "205", "0", "0", 1, - .0142737);
- this.H["206"] = new c("205", "206", "205", "0", "0", 1, .691279);
- this.H["110"] = new c("205", "206", "205", "0", "0", 1, - .998086);
- this.H["28"] = new c("57", "58", "58", "138", "11.5", 0, 0);
- this.H["57"] = new c("111", "112", "112", "2", "6.5", 0, 0);
- this.H["111"] = new c("207", "208", "208", "7", "67.5", 0, 0);
- this.H["207"] = new c("207", "208", "208", "0", "0", 1, .763925);
- this.H["208"] = new c("207", "208", "208", "0", "0", 1, - .309645);
- this.H["112"] = new c("209", "210", "209", "40", "-0.0000100136", 0, 0);
- this.H["209"] = new c("209", "210", "209", "0", "0", 1, - .306635);
- this.H["210"] = new c("209", "210", "209", "0", "0", 1, .556696);
- this.H["58"] = new c("113", "114", "113", "138", "50.5", 0, 0);
- this.H["113"] = new c("211", "212", "212", "8", "25.5", 0, 0);
- this.H["211"] = new c("211", "212", "212", "0", "0", 1, .508234);
- this.H["212"] = new c("211", "212", "212", "0", "0", 1, .793551);
- this.H["114"] = new c("211", "212", "212", "0", "0", 1, - .998438);
- this.H["14"] = new c("29", "30", "29", "134", "27.5", 0, 0);
- this.H["29"] = new c("59", "60", "60", "7", "17.5", 0, 0);
- this.H["59"] = new c("115", "116", "115", "135", "5.5", 0, 0);
- this.H["115"] = new c("213", "214", "214", "137", "5.5", 0, 0);
- this.H["213"] = new c("213", "214", "214", "0", "0", 1, .401747);
- this.H["214"] = new c("213", "214", "214", "0", "0", 1, .0367503);
- this.H["116"] = new c("215", "216", "216", "8", "5.5", 0, 0);
- this.H["215"] = new c("215", "216", "216", "0", "0", 1, - .0241984);
- this.H["216"] = new c("215", "216", "216", "0", "0", 1, - .999046);
- this.H["60"] = new c("117", "118", "117", "0", "12.5", 0, 0);
- this.H["117"] = new c("217", "218", "218", "132", "5.5", 0, 0);
- this.H["217"] = new c("217", "218", "218", "0", "0", 1, - .997294);
- this.H["218"] = new c("217", "218", "218", "0", "0", 1, .210398);
- this.H["118"] = new c("219", "220", "219", "137", "1.5", 0, 0);
- this.H["219"] = new c("219", "220", "219", "0", "0", 1, - .55763);
- this.H["220"] = new c("219", "220", "219", "0", "0", 1, .074493);
- this.H["30"] = new c("61", "62", "62", "133", "42.5", 0, 0);
- this.H["61"] = new c("119", "120", "119", "135", "5.5", 0, 0);
- this.H["119"] = new c("221", "222", "222", "4", "473.5", 0, 0);
- this.H["221"] = new c("221", "222", "222", "0", "0", 1, - .920213);
- this.H["222"] = new c("221", "222", "222", "0", "0", 1, - .17615);
- this.H["120"] = new c("223", "224", "224", "5", "144", 0, 0);
- this.H["223"] = new c("223", "224", "224", "0", "0", 1, - .954295);
- this.H["224"] = new c("223", "224", "224", "0", "0", 1, - .382538);
- this.H["62"] = new c("121", "122", "121", "133", "50", 0, 0);
- this.H["121"] = new c("225", "226", "226", "10", "18.5", 0, 0);
- this.H["225"] = new c("225", "226", "226", "0", "0", 1, - .0731343);
- this.H["226"] = new c("225", "226", "226", "0", "0", 1, .755454);
- this.H["122"] = new c("227", "228", "228", "0", "30", 0, 0);
- this.H["227"] = new c("227", "228", "228", "0", "0", 1, .25);
- this.H["228"] = new c("227", "228", "228", "0", "0", 1, - .997101);
- }
- function q(a, b, c, f, u, n) {
- this.y1 = u;
- this.IW = n;
- }
- b = a(300);
- n = a(179);
- a = {};
- a.T$a = new function () {
- this.Y4a = n();
- this.o = 0;
- this.update = function () {
- this.o = n() - this.Y4a;
- };
- this.getValue = function () {
- return this.o;
- };
- this.type = "num";
- }
- ();
- a.usb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = "becauseYouAdded" === c.Ba[a].context || null;
- };
- this.type = "cat";
- }
- ();
- a.wsb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = "becauseYouLiked" === c.Ba[a].context || null;
- };
- this.type = "cat";
- }
- ();
- a.ysb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = "billboard" === c.Ba[a].context || null;
- };
- this.type = "cat";
- }
- ();
- a.zsb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = "continueWatching" === c.Ba[a].context || null;
- };
- this.type = "cat";
- }
- ();
- a.xsb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = "bigRow" === c.Ba[a].context || null;
- };
- this.type = "cat";
- }
- ();
- a.Asb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = "genre" === c.Ba[a].context || null;
- };
- this.type = "cat";
- }
- ();
- a.Bsb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = "netflixOriginals" === c.Ba[a].context || null;
- };
- this.type = "cat";
- }
- ();
- a.Csb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = "newRelease" === c.Ba[a].context || null;
- };
- this.type = "cat";
- }
- ();
- a.Dsb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = "popularTitles" === c.Ba[a].context || null;
- };
- this.type = "cat";
- }
- ();
- a.Esb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = "queue" === c.Ba[a].context || null;
- };
- this.type = "cat";
- }
- ();
- a.Fsb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = "recentlyAdded" === c.Ba[a].context || null;
- };
- this.type = "cat";
- }
- ();
- a.Gsb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = "similars" === c.Ba[a].context || null;
- };
- this.type = "cat";
- }
- ();
- a.Isb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = "trendingNow" === c.Ba[a].context || null;
- };
- this.type = "cat";
- }
- ();
- a.Jsb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = "ultraHD" === c.Ba[a].context || null;
- };
- this.type = "cat";
- }
- ();
- a.Ksb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = "watchAgain" === c.Ba[a].context || null;
- };
- this.type = "cat";
- }
- ();
- a.Hsb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = "topTen" === c.Ba[a].context || null;
- };
- this.type = "cat";
- }
- ();
- a.Dab = new function () {
- this.update = function (a) {
- for (var b in a.Ba)
- if ("becauseYouAdded" === a.Ba[b].context) {
- this.o = Math.max(a.Ba[b].list.length, this.o);
- break;
- }
- };
- this.getValue = function () {
- return this.o;
- };
- this.type = "num";
- this.o = 0;
- }
- ();
- a.Eab = new function () {
- this.update = function (a) {
- for (var b in a.Ba)
- if ("becauseYouLiked" === a.Ba[b].context) {
- this.o = Math.max(a.Ba[b].list.length, this.o);
- break;
- }
- };
- this.getValue = function () {
- return this.o;
- };
- this.type = "num";
- this.o = 0;
- }
- ();
- a.Iab = new function () {
- this.update = function (a) {
- for (var b in a.Ba)
- if ("billboard" === a.Ba[b].context) {
- this.o = Math.max(a.Ba[b].list.length, this.o);
- break;
- }
- };
- this.getValue = function () {
- return this.o;
- };
- this.type = "num";
- this.o = 0;
- }
- ();
- a.jdb = new function () {
- this.update = function (a) {
- for (var b in a.Ba)
- if ("continueWatching" === a.Ba[b].context) {
- this.o = Math.max(a.Ba[b].list.length, this.o);
- break;
- }
- };
- this.getValue = function () {
- return this.o;
- };
- this.type = "num";
- this.o = 0;
- }
- ();
- a.Hab = new function () {
- this.update = function (a) {
- for (var b in a.Ba)
- if ("bigRow" === a.Ba[b].context) {
- this.o = Math.max(a.Ba[b].list.length, this.o);
- break;
- }
- };
- this.getValue = function () {
- return this.o;
- };
- this.type = "num";
- this.o = 0;
- }
- ();
- a.Okb = new function () {
- this.update = function (a) {
- for (var b in a.Ba)
- if ("genre" === a.Ba[b].context) {
- this.o = Math.max(a.Ba[b].list.length, this.o);
- break;
- }
- };
- this.getValue = function () {
- return this.o;
- };
- this.type = "num";
- this.o = 0;
- }
- ();
- a.Cvb = new function () {
- this.update = function (a) {
- for (var b in a.Ba)
- if ("netflixOriginals" === a.Ba[b].context) {
- this.o = Math.max(a.Ba[b].list.length, this.o);
- break;
- }
- };
- this.getValue = function () {
- return this.o;
- };
- this.type = "num";
- this.o = 0;
- }
- ();
- a.Fvb = new function () {
- this.update = function (a) {
- for (var b in a.Ba)
- if ("newRelease" === a.Ba[b].context) {
- this.o = Math.max(a.Ba[b].list.length, this.o);
- break;
- }
- };
- this.getValue = function () {
- return this.o;
- };
- this.type = "num";
- this.o = 0;
- }
- ();
- a.Lyb = new function () {
- this.update = function (a) {
- for (var b in a.Ba)
- if ("popularTitles" === a.Ba[b].context) {
- this.o = Math.max(a.Ba[b].list.length, this.o);
- break;
- }
- };
- this.getValue = function () {
- return this.o;
- };
- this.type = "num";
- this.o = 0;
- }
- ();
- a.Mk = new function () {
- this.update = function (a) {
- for (var b in a.Ba)
- if ("queue" === a.Ba[b].context) {
- this.o = Math.max(a.Ba[b].list.length, this.o);
- break;
- }
- };
- this.getValue = function () {
- return this.o;
- };
- this.type = "num";
- this.o = 0;
- }
- ();
- a.uAb = new function () {
- this.update = function (a) {
- for (var b in a.Ba)
- if ("recentlyAdded" === a.Ba[b].context) {
- this.o = Math.max(a.Ba[b].list.length, this.o);
- break;
- }
- };
- this.getValue = function () {
- return this.o;
- };
- this.type = "num";
- this.o = 0;
- }
- ();
- a.IEb = new function () {
- this.update = function (a) {
- for (var b in a.Ba)
- if ("similars" === a.Ba[b].context) {
- this.o = Math.max(a.Ba[b].list.length, this.o);
- break;
- }
- };
- this.getValue = function () {
- return this.o;
- };
- this.type = "num";
- this.o = 0;
- }
- ();
- a.YGb = new function () {
- this.update = function (a) {
- for (var b in a.Ba)
- if ("trendingNow" === a.Ba[b].context) {
- this.o = Math.max(a.Ba[b].list.length, this.o);
- break;
- }
- };
- this.getValue = function () {
- return this.o;
- };
- this.type = "num";
- this.o = 0;
- }
- ();
- a.mHb = new function () {
- this.update = function (a) {
- for (var b in a.Ba)
- if ("ultraHD" === a.Ba[b].context) {
- this.o = Math.max(a.Ba[b].list.length, this.o);
- break;
- }
- };
- this.getValue = function () {
- return this.o;
- };
- this.type = "num";
- this.o = 0;
- }
- ();
- a.eJb = new function () {
- this.update = function (a) {
- for (var b in a.Ba)
- if ("watchAgain" === a.Ba[b].context) {
- this.o = Math.max(a.Ba[b].list.length, this.o);
- break;
- }
- };
- this.getValue = function () {
- return this.o;
- };
- this.type = "num";
- this.o = 0;
- }
- ();
- a.JGb = new function () {
- this.update = function (a) {
- for (var b in a.Ba)
- if ("topTen" === a.Ba[b].context) {
- this.o = Math.max(a.Ba[b].list.length, this.o);
- break;
- }
- };
- this.getValue = function () {
- return this.o;
- };
- this.type = "num";
- this.o = 0;
- }
- ();
- a.tdb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = "AR" === c.Da || null;
- };
- this.type = "cat";
- }
- ();
- a.udb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = "AT" === c.Da || null;
- };
- this.type = "cat";
- }
- ();
- a.vdb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = "AU" === c.Da || null;
- };
- this.type = "cat";
- }
- ();
- a.wdb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = "AZ" === c.Da || null;
- };
- this.type = "cat";
- }
- ();
- a.xdb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = "BB" === c.Da || null;
- };
- this.type = "cat";
- }
- ();
- a.ydb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = "BE" === c.Da || null;
- };
- this.type = "cat";
- }
- ();
- a.zdb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = "BO" === c.Da || null;
- };
- this.type = "cat";
- }
- ();
- a.Adb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = "BR" === c.Da || null;
- };
- this.type = "cat";
- }
- ();
- a.Bdb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = "BS" === c.Da || null;
- };
- this.type = "cat";
- }
- ();
- a.Cdb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = "CA" === c.Da || null;
- };
- this.type = "cat";
- }
- ();
- a.Ddb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = "CH" === c.Da || null;
- };
- this.type = "cat";
- }
- ();
- a.Edb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = "CL" === c.Da || null;
- };
- this.type = "cat";
- }
- ();
- a.Fdb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = "CO" === c.Da || null;
- };
- this.type = "cat";
- }
- ();
- a.Gdb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = "CR" === c.Da || null;
- };
- this.type = "cat";
- }
- ();
- a.Hdb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = "CW" === c.Da || null;
- };
- this.type = "cat";
- }
- ();
- a.Idb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = "DE" === c.Da || null;
- };
- this.type = "cat";
- }
- ();
- a.Jdb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = "DK" === c.Da || null;
- };
- this.type = "cat";
- }
- ();
- a.Kdb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = "DM" === c.Da || null;
- };
- this.type = "cat";
- }
- ();
- a.Ldb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = "DO" === c.Da || null;
- };
- this.type = "cat";
- }
- ();
- a.Mdb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = "EC" === c.Da || null;
- };
- this.type = "cat";
- }
- ();
- a.Ndb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = "EE" === c.Da || null;
- };
- this.type = "cat";
- }
- ();
- a.Odb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = "EG" === c.Da || null;
- };
- this.type = "cat";
- }
- ();
- a.Pdb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = "ES" === c.Da || null;
- };
- this.type = "cat";
- }
- ();
- a.Qdb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = "FI" === c.Da || null;
- };
- this.type = "cat";
- }
- ();
- a.Rdb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = "FR" === c.Da || null;
- };
- this.type = "cat";
- }
- ();
- a.Sdb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = "GB" === c.Da || null;
- };
- this.type = "cat";
- }
- ();
- a.Tdb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = "GF" === c.Da || null;
- };
- this.type = "cat";
- }
- ();
- a.Udb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = "GP" === c.Da || null;
- };
- this.type = "cat";
- }
- ();
- a.Vdb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = "GT" === c.Da || null;
- };
- this.type = "cat";
- }
- ();
- a.Wdb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = "HK" === c.Da || null;
- };
- this.type = "cat";
- }
- ();
- a.Xdb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = "HN" === c.Da || null;
- };
- this.type = "cat";
- }
- ();
- a.Ydb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = "HR" === c.Da || null;
- };
- this.type = "cat";
- }
- ();
- a.Zdb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = "HU" === c.Da || null;
- };
- this.type = "cat";
- }
- ();
- a.$db = new function () {
- this.getValue = function (a, b, c) {
- return this.o = "ID" === c.Da || null;
- };
- this.type = "cat";
- }
- ();
- a.aeb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = "IE" === c.Da || null;
- };
- this.type = "cat";
- }
- ();
- a.beb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = "IL" === c.Da || null;
- };
- this.type = "cat";
- }
- ();
- a.ceb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = "IN" === c.Da || null;
- };
- this.type = "cat";
- }
- ();
- a.deb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = "IT" === c.Da || null;
- };
- this.type = "cat";
- }
- ();
- a.eeb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = "JE" === c.Da || null;
- };
- this.type = "cat";
- }
- ();
- a.feb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = "JM" === c.Da || null;
- };
- this.type = "cat";
- }
- ();
- a.geb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = "JP" === c.Da || null;
- };
- this.type = "cat";
- }
- ();
- a.heb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = "KE" === c.Da || null;
- };
- this.type = "cat";
- }
- ();
- a.ieb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = "KN" === c.Da || null;
- };
- this.type = "cat";
- }
- ();
- a.jeb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = "KR" === c.Da || null;
- };
- this.type = "cat";
- }
- ();
- a.keb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = "LU" === c.Da || null;
- };
- this.type = "cat";
- }
- ();
- a.leb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = "MK" === c.Da || null;
- };
- this.type = "cat";
- }
- ();
- a.meb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = "MU" === c.Da || null;
- };
- this.type = "cat";
- }
- ();
- a.neb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = "MX" === c.Da || null;
- };
- this.type = "cat";
- }
- ();
- a.oeb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = "MY" === c.Da || null;
- };
- this.type = "cat";
- }
- ();
- a.peb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = "NI" === c.Da || null;
- };
- this.type = "cat";
- }
- ();
- a.qeb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = "NL" === c.Da || null;
- };
- this.type = "cat";
- }
- ();
- a.reb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = "NO" === c.Da || null;
- };
- this.type = "cat";
- }
- ();
- a.seb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = "NZ" === c.Da || null;
- };
- this.type = "cat";
- }
- ();
- a.teb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = "OM" === c.Da || null;
- };
- this.type = "cat";
- }
- ();
- a.ueb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = "PA" === c.Da || null;
- };
- this.type = "cat";
- }
- ();
- a.veb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = "PE" === c.Da || null;
- };
- this.type = "cat";
- }
- ();
- a.web = new function () {
- this.getValue = function (a, b, c) {
- return this.o = "PF" === c.Da || null;
- };
- this.type = "cat";
- }
- ();
- a.xeb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = "PH" === c.Da || null;
- };
- this.type = "cat";
- }
- ();
- a.yeb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = "PK" === c.Da || null;
- };
- this.type = "cat";
- }
- ();
- a.zeb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = "PL" === c.Da || null;
- };
- this.type = "cat";
- }
- ();
- a.Aeb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = "PT" === c.Da || null;
- };
- this.type = "cat";
- }
- ();
- a.Beb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = "PY" === c.Da || null;
- };
- this.type = "cat";
- }
- ();
- a.Ceb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = "QA" === c.Da || null;
- };
- this.type = "cat";
- }
- ();
- a.Deb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = "RO" === c.Da || null;
- };
- this.type = "cat";
- }
- ();
- a.Eeb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = "RS" === c.Da || null;
- };
- this.type = "cat";
- }
- ();
- a.Feb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = "RU" === c.Da || null;
- };
- this.type = "cat";
- }
- ();
- a.Geb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = "SA" === c.Da || null;
- };
- this.type = "cat";
- }
- ();
- a.Heb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = "SE" === c.Da || null;
- };
- this.type = "cat";
- }
- ();
- a.Ieb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = "SG" === c.Da || null;
- };
- this.type = "cat";
- }
- ();
- a.Jeb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = "SV" === c.Da || null;
- };
- this.type = "cat";
- }
- ();
- a.Keb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = "SX" === c.Da || null;
- };
- this.type = "cat";
- }
- ();
- a.Leb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = "TH" === c.Da || null;
- };
- this.type = "cat";
- }
- ();
- a.Meb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = "TR" === c.Da || null;
- };
- this.type = "cat";
- }
- ();
- a.Neb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = "TT" === c.Da || null;
- };
- this.type = "cat";
- }
- ();
- a.Oeb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = "TW" === c.Da || null;
- };
- this.type = "cat";
- }
- ();
- a.Peb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = "US" === c.Da || null;
- };
- this.type = "cat";
- }
- ();
- a.Qeb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = "UY" === c.Da || null;
- };
- this.type = "cat";
- }
- ();
- a.Reb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = "VE" === c.Da || null;
- };
- this.type = "cat";
- }
- ();
- a.Seb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = "ZA" === c.Da || null;
- };
- this.type = "cat";
- }
- ();
- a.xAb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = 1 === c.mh || null;
- };
- this.type = "cat";
- }
- ();
- a.yAb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = 10 === c.mh || null;
- };
- this.type = "cat";
- }
- ();
- a.zAb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = 11 === c.mh || null;
- };
- this.type = "cat";
- }
- ();
- a.AAb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = 12 === c.mh || null;
- };
- this.type = "cat";
- }
- ();
- a.BAb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = 13 === c.mh || null;
- };
- this.type = "cat";
- }
- ();
- a.CAb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = 14 === c.mh || null;
- };
- this.type = "cat";
- }
- ();
- a.DAb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = 15 === c.mh || null;
- };
- this.type = "cat";
- }
- ();
- a.EAb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = 16 === c.mh || null;
- };
- this.type = "cat";
- }
- ();
- a.FAb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = 17 === c.mh || null;
- };
- this.type = "cat";
- }
- ();
- a.GAb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = 18 === c.mh || null;
- };
- this.type = "cat";
- }
- ();
- a.HAb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = 19 === c.mh || null;
- };
- this.type = "cat";
- }
- ();
- a.IAb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = 2 === c.mh || null;
- };
- this.type = "cat";
- }
- ();
- a.JAb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = 20 === c.mh || null;
- };
- this.type = "cat";
- }
- ();
- a.KAb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = 21 === c.mh || null;
- };
- this.type = "cat";
- }
- ();
- a.LAb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = 22 === c.mh || null;
- };
- this.type = "cat";
- }
- ();
- a.MAb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = 23 === c.mh || null;
- };
- this.type = "cat";
- }
- ();
- a.NAb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = 3 === c.mh || null;
- };
- this.type = "cat";
- }
- ();
- a.OAb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = 4 === c.mh || null;
- };
- this.type = "cat";
- }
- ();
- a.PAb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = 5 === c.mh || null;
- };
- this.type = "cat";
- }
- ();
- a.QAb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = 6 === c.mh || null;
- };
- this.type = "cat";
- }
- ();
- a.RAb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = 7 === c.mh || null;
- };
- this.type = "cat";
- }
- ();
- a.SAb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = 8 === c.mh || null;
- };
- this.type = "cat";
- }
- ();
- a.TAb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = 9 === c.mh || null;
- };
- this.type = "cat";
- }
- ();
- a.MFb = new function () {
- this.update = function (a) {
- "down" === a.direction && this.o++;
- };
- this.getValue = function () {
- return this.o;
- };
- this.type = "num";
- this.o = 0;
- }
- ();
- a.OFb = new function () {
- this.update = function (a) {
- "right" === a.direction && this.o++;
- };
- this.getValue = function () {
- return this.o;
- };
- this.type = "num";
- this.o = 0;
- }
- ();
- a.NFb = new function () {
- this.update = function (a) {
- "left" === a.direction && this.o++;
- };
- this.getValue = function () {
- return this.o;
- };
- this.type = "num";
- this.o = 0;
- }
- ();
- a.PFb = new function () {
- this.update = function (a) {
- "up" === a.direction && this.o++;
- };
- this.getValue = function () {
- return this.o;
- };
- this.type = "num";
- this.o = 0;
- }
- ();
- a.eub = new function () {
- this.o = 0;
- this.update = function (a) {
- this.o = Math.max(this.o, a.rowIndex);
- };
- this.getValue = function () {
- return this.o;
- };
- this.type = "num";
- }
- ();
- a.fub = new function () {
- this.o = 0;
- this.update = function (a) {
- this.o = Math.max(this.o, a.Oba);
- };
- this.getValue = function () {
- return this.o;
- };
- this.type = "num";
- }
- ();
- a.lub = new function () {
- this.QK = this.o = 0;
- this.update = function (a) {
- this.QK++;
- this.o = 1 * (this.o + a.rowIndex) / this.QK;
- };
- this.getValue = function () {
- return this.o;
- };
- this.type = "num";
- }
- ();
- a.mub = new function () {
- this.QK = this.o = 0;
- this.update = function (a) {
- this.QK++;
- return this.o = 1 * (this.o + a.Oba) / this.QK;
- };
- this.getValue = function () {
- return this.o;
- };
- this.type = "num";
- }
- ();
- a.kzb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = c.Oba + b;
- };
- this.type = "num";
- }
- ();
- a.lzb = new function () {
- this.getValue = function (a, b, c) {
- return this.o = c.rowIndex + a;
- };
- this.type = "num";
- }
- ();
- l.prototype.Uy = function (a) {
- return this.bBa(this.H["0"].xRa(a), a);
- };
- l.prototype.bBa = function (a, b) {
- return "string" == typeof a ? this.bBa(this.H[a].xRa(b), b) : a;
- };
- c.prototype.xRa = function (a) {
- switch (this.Drb) {
- case 0:
- switch (a.Bd[this.rR].type) {
- case "cat":
- return null === a.Bd[this.rR].value ? this.xNa : "missing" == a.Bd[this.rR].value ? this.gja : this.DVa;
- case "num":
- return null === a.Bd[this.rR].value ? this.gja : a.Bd[this.rR].value < this.split ? this.DVa : this.xNa;
- default:
- return this.gja;
- }
- case 1:
- return this.Uy;
- default:
- return this.Uy;
- }
- };
- b.declare({
- bP: ["modelSelector", "modelone"],
- Dcb: ["colEpisodeList", 5],
- Apb: ["holdDuration", 15E3],
- kRa: ["rowFirst", 2],
- eEa: ["colFirst", 5],
- mRa: ["rowScroll", 2],
- fEa: ["colScroll", 6],
- iCb: ["rowScrollHorizontal", 6],
- BCb: ["searchTop", 3],
- XEa: ["cwFirst", 2],
- WN: ["horizontalItemsFocusedMode", 3],
- Frb: ["itemsPerRank", 1],
- aub: ["maxNumberPayloadsStored", 10],
- zMa: ["maxNumberTitlesScheduled", 5],
- xSb: ["enableDetailedLogging", !0],
- xVb: ["rowStep", 20],
- KRb: ["colStep", 15],
- WUb: ["pageRows", 100],
- VUb: ["pageColumns", 75],
- Aia: ["maskParamsList", new function () {
- var a,
- b;
- this.Aia = [];
- this.Oj = {};
- this.y1 = 20;
- this.IW = 15;
- for (a = 0; 100 > a; a++)
- for (b = 0; 75 > b; b++)
- Math.floor(a / this.y1) + "_" + Math.floor(b / this.IW)in this.Oj || (this.Oj[Math.floor(a / this.y1) + "_" + Math.floor(b / this.IW)] = 1, this.Aia.push(new q(0, 0, 0, 0, Math.floor(a / this.y1), Math.floor(b / this.IW))));
- }
- ().Aia],
- H: ["nodes", new l().H],
- mapping: ["mapping", {
- fub: "0",
- mub: "1",
- eub: "2",
- lub: "3",
- T$a: "4",
- PFb: "5",
- NFb: "6",
- OFb: "7",
- MFb: "8",
- lzb: "9",
- kzb: "10",
- usb: "11",
- wsb: "12",
- ysb: "13",
- zsb: "14",
- xsb: "15",
- Asb: "16",
- Bsb: "17",
- Csb: "18",
- Dsb: "19",
- Esb: "20",
- Fsb: "21",
- Gsb: "22",
- Hsb: "23",
- Isb: "24",
- Jsb: "25",
- Ksb: "26",
- xAb: "27",
- yAb: "28",
- zAb: "29",
- AAb: "30",
- BAb: "31",
- CAb: "32",
- DAb: "33",
- EAb: "34",
- FAb: "35",
- GAb: "36",
- HAb: "37",
- IAb: "38",
- JAb: "39",
- KAb: "40",
- LAb: "41",
- MAb: "42",
- NAb: "43",
- OAb: "44",
- PAb: "45",
- QAb: "46",
- RAb: "47",
- SAb: "48",
- TAb: "49",
- tdb: "50",
- udb: "51",
- vdb: "52",
- wdb: "53",
- xdb: "54",
- ydb: "55",
- zdb: "56",
- Adb: "57",
- Bdb: "58",
- Cdb: "59",
- Ddb: "60",
- Edb: "61",
- Fdb: "62",
- Gdb: "63",
- Hdb: "64",
- Idb: "65",
- Jdb: "66",
- Kdb: "67",
- Ldb: "68",
- Mdb: "69",
- Ndb: "70",
- Odb: "71",
- Pdb: "72",
- Qdb: "73",
- Rdb: "74",
- Sdb: "75",
- Tdb: "76",
- Udb: "77",
- Vdb: "78",
- Wdb: "79",
- Xdb: "80",
- Ydb: "81",
- Zdb: "82",
- $db: "83",
- aeb: "84",
- beb: "85",
- ceb: "86",
- deb: "87",
- eeb: "88",
- feb: "89",
- geb: "90",
- heb: "91",
- ieb: "92",
- jeb: "93",
- keb: "94",
- leb: "95",
- meb: "96",
- neb: "97",
- oeb: "98",
- peb: "99",
- qeb: "100",
- reb: "101",
- seb: "102",
- teb: "103",
- ueb: "104",
- veb: "105",
- web: "106",
- xeb: "107",
- yeb: "108",
- zeb: "109",
- Aeb: "110",
- Beb: "111",
- Ceb: "112",
- Deb: "113",
- Eeb: "114",
- Feb: "115",
- Geb: "116",
- Heb: "117",
- Ieb: "118",
- Jeb: "119",
- Keb: "120",
- Leb: "121",
- Meb: "122",
- Neb: "123",
- Oeb: "124",
- Peb: "125",
- Qeb: "126",
- Reb: "127",
- Seb: "128",
- eJb: "129",
- uAb: "130",
- IEb: "131",
- Mk: "132",
- jdb: "133",
- Okb: "134",
- YGb: "135",
- JGb: "136",
- Iab: "137",
- Fvb: "138",
- mHb: "139",
- Lyb: "140",
- Dab: "141",
- Hab: "142",
- Eab: "143",
- Cvb: "144"
- }
- ],
- Bd: ["features", a],
- HQb: ["_modelName", "tree"],
- yQb: ["_format", "xgboost"],
- GQb: ["_itemsToKeep", 5],
- FQb: ["_itemsThreshold", null],
- uRb: ["cacheLimit", 20]
- });
- d.P = {
- config: b,
- ZTb: q,
- SRb: c
- };
- }, function (d, b, a) {
- var l;
- function c(a) {
- for (var b = "", c = 0; c < a.length; c++)
- b += a[c].oa + "|";
- return b;
- }
- l = a(178);
- d.P = {
- assert: function (a, b) {
- if (!a)
- throw Error("PlayPredictionModel assertion failed" + (b ? " : " + b : ""));
- },
- yTb: function (a, b, c) {
- Array.prototype.splice.apply(a, [b, 0].concat(c));
- },
- Elb: function (a) {
- for (var b = [], c = 0; c < a.length; c++)
- if (a[c].context === l.UJ.xXa) {
- b = a[c].list;
- break;
- }
- return b;
- },
- mlb: function (a) {
- for (var b = [], c = 0; c < a.length; c++)
- if (a[c].context === l.UJ.rWa) {
- b = a[c].list;
- break;
- }
- return b;
- },
- chb: function (a, b) {
- for (var k = 0, p, h, f, u = 0, n = a.length - 1; u < n; u++) {
- p = c(a[u].list || []);
- f = !1;
- for (var d = 0, q = b.length; d < q; d++)
- if (h = c(b[d].list || []), h == p) {
- f = !0;
- break;
- }
- if (!1 === f) {
- k = u;
- break;
- }
- }
- return k;
- },
- wwb: function (a, b, c) {
- for (var k = [], h, f = 0; f < Math.min(b, a.length); f++)
- h = a[f].list || [], k = k.concat(h.slice(0, c));
- return k;
- },
- vwb: function (a, b) {
- for (var c = [], p, h = 0; h < a.length && (p = a[h].list || [], p = p.slice(0, Math.min(p.length, b)), b -= p.length, c = c.concat(p), 0 !== b); h++);
- return c;
- },
- uwb: function (a, b, c) {
- var k;
- b < a.length && 0 <= b && (a = a[b].list || [], c < a.length && (k = a[c]));
- return k;
- },
- RGa: function (a) {
- for (var b = {}, c = a.length, p, h = 0; h < c; h++) {
- p = a[h].list || [];
- for (var f = 0; f < p.length; f++)
- if (p[f].property === l.SD.dK || p[f].property === l.SD.cqa) {
- b.Ai = h;
- b.lk = f;
- break;
- }
- }
- void 0 === b.Ai && void 0 === b.lk && (b.Ai = 0, b.lk = 0);
- return b;
- }
- };
- }, function (d, b, a) {
- var c,
- l,
- q,
- n,
- k,
- p,
- h,
- f,
- u,
- A,
- g,
- C,
- H,
- D;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.YTa = void 0;
- c = a(67);
- l = a(9);
- q = a(12);
- n = a(44);
- k = a(35);
- p = a(5);
- h = a(2);
- f = a(20);
- u = a(69);
- A = a(10);
- g = a(116);
- C = a(26);
- H = a(29);
- D = a(33);
- b.YTa = function () {
- var d,
- G,
- m,
- z,
- r,
- U;
- function a(a) {
- var c,
- h,
- k;
- c = "info";
- h = "";
- k = p.Z.get(u.Kw).AIa();
- a.V || (c = "error", h += "&errorcode=" + (a.errorCode || ""), h += "&errorsubcode=" + (a.ha || ""));
- h = "type=startup&sev=" + c + h + "&" + n.HH(f.tb({}, k, {
- prefix: "m_"
- }));
- b("startup", h, m);
- }
- function b(a, b, h) {
- h && z && q.config.$Ta[a] && (a = r + "&jsoffms=" + k.Yg() + "&do=" + A.Ki.onLine + "&" + b + "&" + n.HH(f.tb({}, U.Uc, {
- prefix: "im_"
- })), c.We.download({
- url: h,
- tka: a,
- withCredentials: !0,
- headers: {
- "Content-Type": "application/x-www-form-urlencoded"
- },
- lB: "track"
- }, l.$e));
- }
- d = p.Z.get(D.dk);
- G = p.Z.get(D.Mp);
- r = "cat=cadplayback&dev=" + encodeURIComponent(d.Xca) + "&ep=" + encodeURIComponent(G.Vqa) + "&ver=" + encodeURIComponent("6.0023.976.031") + "&jssid=" + k.A5;
- p.Ah("TrackingLog");
- U = p.Z.get(C.yf);
- r = r + ("&browserua=" + A.Nl);
- U.register(h.J.osa, function (b) {
- var c,
- h;
- m = p.Z.get(g.oz).host + q.config.yna;
- if (z = q.config.ZTa && !!q.config.yna) {
- q.config.gy && (r += "&groupname=" + encodeURIComponent(q.config.gy));
- q.config.qD && (r += "&uigroupname=" + encodeURIComponent(q.config.qD));
- c = r;
- h = p.Z.get(H.jE);
- h = f.tb({}, h, {
- prefix: "pi_"
- });
- h = "&" + n.HH(h);
- r = c + h;
- U.yO(a);
- }
- b(l.kd);
- });
- return b;
- }
- ();
- }, function (d, b, a) {
- var n;
- function c(a, b, c) {
- b = b || 0;
- c = c || a.length;
- for (var f, h = b, k, p, n, d = {}; h < b + c; ) {
- f = a[h];
- k = f & 7;
- p = f >> 3;
- n = l(a, h);
- if (!n.count)
- throw Error("Parsing error. bytes length is 0 for the tag " + f);
- h += n.count + 1;
- 2 == k && (h += n.value);
- d[p] = {
- HSb: p,
- MWb: k,
- value: n.value,
- count: n.count,
- start: n.start
- };
- }
- return d;
- }
- function l(a, b) {
- var c,
- f,
- k,
- p,
- d,
- q,
- l,
- g;
- c = b + 1;
- f = a.length;
- k = c;
- p = 0;
- d = {};
- q = [];
- g = 0;
- if (c >= f)
- throw Error("Invalid Range for Protobuf - start: " + c + " , len: " + f);
- for (; k < f; ) {
- p++;
- c = a[k];
- l = c & 127;
- q.push(l);
- if (!(c & 128))
- break;
- k++;
- }
- n.Xa(q.length);
- for (a = q.length - 1; 0 <= a; a--)
- g <<= 7, g |= q[a];
- d.count = p;
- d.value = g;
- d.start = b + p + 1;
- return d;
- }
- function q(a, b) {
- if (a && (a = a[b]))
- return a.value;
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.xnb = b.wnb = b.ojb = b.mrb = b.VKa = void 0;
- n = a(16);
- b.VKa = function (a) {
- a = c(a);
- if (1 == q(a, 1) && a[5] && a[5].value)
- return !0;
- };
- b.mrb = function (a) {
- var b;
- b = c(a);
- if (2 == q(b, 1) && (a = c(a, b[2].start, b[2].value), q(a, 5)))
- return !0;
- };
- b.ojb = c;
- b.wnb = l;
- b.xnb = q;
- }, function (d) {
- function b(a) {
- return Object.keys(a).every(function (b) {
- return "function" === typeof a[b];
- });
- }
- d.P = function (a) {
- var n,
- k,
- p;
- function c(a, b, c) {
- throw new TypeError(("undefined" !== typeof c.key ? "Types: expected " + c.key : "Types: expected argument " + c.index) + (" to be '" + a + "' but found '" + b + "'"));
- }
- function d(a, b, u) {
- var f;
- f = k[a];
- "undefined" !== typeof f ? f(b) || c(a, b, u) : a !== typeof b && c(a, b, u);
- }
- function q(a, b) {
- var c;
- c = a.filter(function (a) {
- return "object" !== typeof a && -1 === p.indexOf(a);
- });
- c = c.concat(a.filter(function (a) {
- return "object" === typeof a;
- }).reduce(function (a, b) {
- return a.concat(Object.keys(b).map(function (a) {
- return b[a];
- }).filter(function (a) {
- return -1 === p.indexOf(a);
- }));
- }, []));
- if (0 < c.length)
- throw Error(c.join(",") + " are invalid types");
- return function () {
- var c;
- c = Array.prototype.slice.call(arguments);
- if (c.length !== a.length)
- throw new TypeError("Types: unexpected number of arguments");
- a.forEach(function (a, b) {
- var f;
- f = c[b];
- if ("string" === typeof a)
- d(a, f, {
- index: b
- });
- else if ("object" === typeof a)
- Object.keys(a).forEach(function (b) {
- d(a[b], f[b], {
- key: b
- });
- });
- else
- throw Error("Types: unexpected type in type array");
- });
- return b.apply(this, c);
- };
- }
- n = "number boolean string object function symbol".split(" ");
- k = {
- array: function (a) {
- return Array.isArray(a);
- }
- };
- if ("undefined" !== typeof a) {
- if ("object" !== typeof a || !b(a))
- throw new TypeError("Types: extensions must be an object of type definitions");
- Object.keys(a).forEach(function (b) {
- if ("undefined" !== typeof k[b] || -1 < n.indexOf(b))
- throw new TypeError("Types: attempting to override a built in type with " + b);
- k[b] = a[b];
- });
- }
- p = Object.keys(k).concat(n);
- return q(["array", "function"], q);
- };
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Ara = void 0;
- b.Ara = function (a) {
- var q,
- n,
- k,
- p;
- function b() {
- if (k)
- for (var a; a = q.pop(); )
- a(p);
- }
- function d(a) {
- k = !0;
- p = a;
- b();
- }
- q = [];
- return function (c) {
- q.push(c);
- n || (n = !0, a(d));
- b();
- };
- };
- }, function (d, b, a) {
- var l;
- function c(a, b, c, p) {
- this.Kc = a;
- this.Gl = b;
- this.Mq = c;
- this.Kb = p;
- this.lEb();
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.YJ = void 0;
- l = a(13);
- c.prototype.sJa = function (a, b) {
- var c;
- c = this;
- return this.Mq.transition(b).then(function () {
- c.Kc.zg = a;
- });
- };
- c.prototype.close = function (a) {
- return this.Mq.close(a);
- };
- c.prototype.isReady = function () {
- return this.Mq.Bnb();
- };
- c.prototype.Pn = function () {
- return this.Mq.Pn();
- };
- c.prototype.Sh = function () {
- return this.Mq.Sh();
- };
- c.prototype.Cka = function (a) {
- return this.Mq.Sp(a);
- };
- c.prototype.lEb = function () {
- var a;
- a = this;
- this.Mq.addListener(l.Vz.kQ, function () {
- return a.Kb.Xb(l.Vz.kQ);
- });
- Object.keys(l.wb).forEach(function (b) {
- var c;
- c = l.wb[b];
- a.Mq.addListener(c, function (b) {
- return a.Kb.Xb(c, b);
- });
- });
- };
- c.prototype.mP = function () {};
- c.prototype.mOa = function (a) {
- this.Mq.OHb({
- id: a,
- u: this.Kc.ah(a).oa,
- Yn: this.Kc.$Ia(a)
- });
- };
- b.YJ = c;
- }, function (d, b, a) {
- var l;
- function c(a, b, c) {
- var k;
- k = this;
- this.Ik = a;
- this.Jf = b;
- this.BP = c;
- this.addEventListener = function (a, b, c) {
- return k.Jf.addListener(a, k.fFa(a, b), c);
- };
- this.removeEventListener = function (a, b) {
- return k.Jf.removeListener(a, k.fFa(a, b));
- };
- this.getReady = function () {
- return k.Jf.isReady();
- };
- this.getXid = function () {
- return k.ib().YY();
- };
- this.getMovieId = function () {
- return k.ib().Umb();
- };
- this.getPlaygraphId = function () {
- return k.ib().qnb();
- };
- this.getElement = function () {
- return k.Jf.Pn();
- };
- this.isPlaying = function () {
- return k.ib().my();
- };
- this.isPaused = function () {
- return k.ib().frb();
- };
- this.isMuted = function () {
- return k.ib().crb();
- };
- this.isReady = function () {
- return k.ib().isReady();
- };
- this.isBackground = function () {
- return k.ib().Fqb();
- };
- this.setBackground = function (a) {
- return k.ib().VRa(a);
- };
- this.startInactivityMonitor = function () {
- return k.ib().FQ();
- };
- this.setTransitionTime = function (a) {
- return k.ib().lSa(a);
- };
- this.getDiagnostics = function () {
- return k.ib().Plb();
- };
- this.getTextTrackList = function (a) {
- return k.ib().jJa(a);
- };
- this.getTextTrack = function () {
- return k.ib().iJa();
- };
- this.setTextTrack = function (a) {
- return k.ib().iSa(a);
- };
- this.getVolume = function () {
- return k.ib().Dob();
- };
- this.isEnded = function () {
- return k.ib().Qqb();
- };
- this.getBusy = function () {
- return k.ib().tk();
- };
- this.getError = function () {
- return k.ib().getError();
- };
- this.getCurrentTime = function () {
- return k.ib().j.cc.value;
- };
- this.getBufferedTime = function () {
- return k.ib().qlb();
- };
- this.getSegmentTime = function () {
- return k.ib().wY();
- };
- this.getDuration = function () {
- return k.ib().NHa();
- };
- this.getVideoSize = function () {
- return k.ib().Bob();
- };
- this.getAudioTrackList = function () {
- return k.ib().$kb();
- };
- this.getAudioTrack = function () {
- return k.ib().Zkb();
- };
- this.getTimedTextTrackList = function (a) {
- return k.ib().jJa(a);
- };
- this.getTimedTextTrack = function () {
- return k.ib().iJa();
- };
- this.getAdditionalLogInfo = function () {
- return k.ib().Skb();
- };
- this.getTrickPlayFrame = function (a) {
- return k.ib().oob(a);
- };
- this.getSessionSummary = function () {
- return k.ib().ZIa();
- };
- this.getTimedTextSettings = function () {
- return k.ib().TY();
- };
- this.setMuted = function (a) {
- return k.ib().PDb(a);
- };
- this.setVolume = function (a) {
- return k.ib().gEb(a);
- };
- this.getPlaybackRate = function () {
- return k.ib().PIa();
- };
- this.setPlaybackRate = function (a) {
- return k.ib().UDb(a);
- };
- this.setAudioTrack = function (a) {
- return k.ib().xDb(a);
- };
- this.setTimedTextTrack = function (a) {
- return k.ib().iSa(a);
- };
- this.setTimedTextSettings = function (a) {
- return k.ib().yQ(a);
- };
- this.prepare = function () {
- return k.ib().Mv();
- };
- this.load = function () {
- return k.ib().load();
- };
- this.close = function (a) {
- return k.sCa(k.Jf.close(), a);
- };
- this.play = function () {
- return k.ib().play();
- };
- this.pause = function () {
- return k.ib().pause();
- };
- this.seek = function (a) {
- return k.ib().seek(a);
- };
- this.engage = function (a, b) {
- return k.sCa(k.ib().nN(a), b);
- };
- this.induceError = function (a) {
- return k.ib().gqb(a);
- };
- this.loadCustomTimedTextTrack = function (a, b, c, n) {
- return k.ib().Osb(a, b, c, n);
- };
- this.tryRecoverFromStall = function () {
- return k.ib().fR();
- };
- this.addEpisode = function (a) {
- var b,
- c;
- k.log.info("Next episode added", a);
- b = k.jMa(a.playbackParams);
- c = "startPts" in a ? a.startPts : "nextStartPts" in a ? a.nextStartPts : b.T;
- if (void 0 === c || 0 > c)
- c = 0;
- return k.Jf.Sp({
- id: b.Zi ? void 0 : k.BP.nY(a.movieId, c),
- u: a.movieId,
- T: c,
- Yn: "endPts" in a ? a.endPts : "currentEndPts" in a ? a.currentEndPts : b.Yn,
- gb: b,
- ya: a.manifest,
- Ik: k.Ik
- });
- };
- this.playNextEpisode = function (a) {
- a = void 0 === a ? {}
- : a;
- a = k.jMa(a);
- k.log.info("Playing the next episode", a);
- return k.Jf.cga(k.Jf.QHa(), k.Jf.xY().ol, a);
- };
- this.playSegment = function (a) {
- return k.ib().pyb(a);
- };
- this.queueSegment = function (a) {
- return k.ib().Yzb(a);
- };
- this.updateNextSegmentWeights = function (a, b) {
- return k.ib().Bp(a, b);
- };
- this.getCropAspectRatio = function () {
- return k.ib().Yea();
- };
- this.getCropAspectRatioXandY = function () {
- return k.ib().Glb();
- };
- this.generateScreenshots = function (a) {
- return k.ib().Mkb(a);
- };
- this.getCurrentSegmentId = function () {
- return k.Jf.QHa();
- };
- this.getPlaygraphMap = function () {
- return k.Jf.rnb();
- };
- this.setNextSegment = function (a) {
- for (var b = [], c = 0; c < arguments.length; ++c)
- b[c - 0] = arguments[c];
- b = b.map(function (a) {
- return {
- Na: a.segmentId,
- gP: a.nextSegmentId
- };
- });
- k.Jf.vQ.apply(k.Jf, [].concat(Y(b)));
- };
- this.clearNextSegment = function (a) {
- for (var b = [], c = 0; c < arguments.length; ++c)
- b[c - 0] = arguments[c];
- return k.Jf.scb.apply(k.Jf, [].concat(Y(b)));
- };
- this.updatePlaygraphMap = function (a) {
- return k.Jf.KHb(a);
- };
- this.goToNextSegment = function (a, b) {
- return k.Jf.cga(a, b);
- };
- this.getPlaying = function () {
- return k.isPlaying();
- };
- this.getPaused = function () {
- return k.isPaused();
- };
- this.getMuted = function () {
- return k.isMuted();
- };
- this.getEnded = function () {
- return k.isEnded();
- };
- this.getTimedTextVisibility = function () {
- return k.isTimedTextVisible();
- };
- this.isTimedTextVisible = function () {
- return !!k.ib().TY().visibility;
- };
- this.setTimedTextVisibility = function (a) {
- return k.setTimedTextVisible(a);
- };
- this.setTimedTextSize = function (a) {
- return k.ib().yQ({
- size: a
- });
- };
- this.setTimedTextBounds = function (a) {
- return k.ib().yQ({
- bounds: a
- });
- };
- this.setTimedTextMargins = function (a) {
- return k.ib().yQ({
- margins: a
- });
- };
- this.setTimedTextVisible = function (a) {
- return k.ib().yQ({
- visibility: a
- });
- };
- this.getCongestionInfo = function (a) {
- a && a({
- success: !1,
- name: null,
- isCongested: null
- });
- };
- this.Pda = new Map();
- this.log = l.Ah("VideoPlayer");
- Object.defineProperty(this, "diagnostics", {
- get: this.getDiagnostics
- });
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.pya = void 0;
- l = a(5);
- a(84);
- c.prototype.ib = function () {
- return this.Jf.Sh();
- };
- c.prototype.fFa = function (a, b) {
- var c;
- this.Pda.has(a) || this.Pda.set(a, new Map());
- c = this.Pda.get(a);
- c.has(b) || c.set(b, this.zgb(a, b));
- return c.get(b);
- };
- c.prototype.zgb = function (a, b) {
- var c;
- c = this;
- return function (k) {
- return b(Object.assign({}, k, {
- type: a,
- target: c
- }));
- };
- };
- c.prototype.sCa = function (a, b) {
- return b ? a.then(b, b) : a;
- };
- c.prototype.jMa = function (a) {
- a = void 0 === a ? {}
- : a;
- return {
- di: a.trackingId,
- fM: a.authParams,
- eo: a.sessionParams,
- re: a.uiLabel,
- cda: a.disableTrackStickiness,
- G2: a.uiPlayStartTime,
- cY: a.forceAudioTrackId,
- dY: a.forceTimedTextTrackId,
- Zi: a.isBranching,
- Zna: a.vuiCommand,
- playbackState: a.playbackState ? {
- currentTime: a.playbackState.currentTime,
- volume: a.playbackState.volume,
- muted: a.playbackState.muted,
- playbackRate: a.playbackState.playbackRate
- }
- : void 0,
- mG: a.enableTrickPlay,
- qga: a.heartbeatCooldown,
- $Z: a.isPlaygraph,
- t_: a.loadImmediately || !1,
- dPa: a.pin,
- DP: a.preciseSeeking,
- T: a.startPts,
- na: a.endPts,
- Yn: a.logicalEnd,
- xl: a.packageId,
- j1: a.renderTimedText,
- BGa: a.extraManifestParams
- };
- };
- b.pya = c;
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.B7 = void 0;
- b.B7 = "PlaygraphVideoPlayerFactorySymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.A7 = void 0;
- b.A7 = "PlaygraphPlaybackStrategyFactorySymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.po = void 0;
- d = b.po || (b.po = {});
- d[d.aK = 0] = "No";
- d[d.H8 = 1] = "Yes";
- d[d.Qsa = 2] = "Later";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.z7 = void 0;
- b.z7 = "PlaygraphManagerFactorySymbol";
- }, function (d, b, a) {
- var c,
- l,
- q,
- n,
- k,
- p,
- h;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.nJ = void 0;
- c = a(0);
- l = a(2);
- q = a(1);
- n = a(15);
- k = a(23);
- p = a(5);
- h = a(13);
- d = function () {
- var b;
- function a(a, b, c) {
- this.me = a;
- this.Ib = b;
- this.j = c;
- this.uO = [];
- }
- a.prototype.YX = function (a) {
- this.uO.forEach(function (b) {
- return b(a);
- });
- };
- a.prototype.Wd = function (a, b, c) {
- this.j.Wd(this.me(a, b, c));
- };
- a.prototype.eZ = function (a) {
- this.j.fireEvent(h.U.mja, {
- GDa: a
- });
- };
- a.prototype.v9a = function (a) {
- -1 === this.uO.indexOf(a) && this.uO.push(a);
- };
- a.prototype.fBb = function (a) {
- a = this.uO.indexOf(a);
- 0 <= a && this.uO.splice(a, 1);
- };
- a.prototype.qJa = function (a) {
- var b,
- c;
- b = {};
- n.ac(a.code) ? b.ha = l.E4(a.code) : b.ha = l.I.Of;
- try {
- c = a.message.match(/\((\d*)\)/)[1];
- b.we = p.Zaa(c, 4);
- } catch (H) {}
- b.fb = k.pd(a);
- return b;
- };
- b = a;
- return b = c.__decorate([q.N()], b);
- }
- ();
- b.nJ = d;
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.xT = void 0;
- b.xT = "PlaybackMilestoneStoreSymbol";
- }, function (d, b, a) {
- var c,
- l,
- q,
- n,
- k,
- p;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.YLa = void 0;
- c = a(12);
- l = a(9);
- q = a(35);
- d = a(2);
- n = a(10);
- k = a(15);
- p = a(5);
- a = a(26);
- p.Z.get(a.yf).register(d.J.isa, function (a) {
- var h,
- p,
- d,
- g,
- H;
- function f() {
- var a;
- a = n.ot(q.Yg() / d);
- if (a != H) {
- for (var b = n.Wm(a - H, 30); b--; )
- g.push(0);
- (b = n.Ml(g.length - 31, 0)) && g.splice(0, b);
- H = a;
- }
- g[g.length - 1]++;
- }
- h = c.config.vtb;
- p = -6 / (h - 2 - 2);
- d = l.mj;
- g = [];
- H = n.ot(q.Yg() / d);
- k.lha(h) && (setInterval(f, 1E3 / h), b.YLa = {
- tmb: function () {
- var c;
- for (var a = [], b = g.length - 1; b--; ) {
- c = g[b];
- a.unshift(0 >= c ? 9 : 1 >= c ? 8 : c >= h - 1 ? 0 : n.Kh((c - 2) * p + 7));
- }
- return a;
- }
- });
- a(l.kd);
- });
- }, function (d, b, a) {
- var c,
- l,
- q,
- n,
- k,
- p,
- h;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.ora = void 0;
- c = a(12);
- l = a(56);
- q = a(20);
- n = a(2);
- k = a(60);
- p = a(5);
- h = a(13);
- b.ora = function (a, b, d) {
- function f(b) {
- var f,
- h;
- f = b.error || b;
- h = q.pd(f);
- d.error("uncaught exception", f, h);
- (f = (f = f && f.stack) && c.config.tUa && c.config.oHb ? 0 <= f.indexOf(c.config.tUa) : void 0) && (b && b.stopImmediatePropagation && b.stopImmediatePropagation(), b = p.Z.get(k.Vk), a.Wd(b(n.J.b3a)));
- }
- function u() {
- l.Me.removeListener(l.aZ, f);
- a.removeEventListener(h.U.Cf, u);
- a.removeEventListener(h.U.ao, u);
- }
- try {
- l.Me.addListener(l.aZ, f);
- a.addEventListener(h.U.Cf, u);
- c.config.Tpb && a.addEventListener(h.U.ao, u);
- } catch (H) {
- d.error("exception in exception handler ", H);
- }
- };
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.V7 = void 0;
- b.V7 = "SeekManagerFactorySymbol";
- }, function (d, b, a) {
- var l,
- q,
- n,
- k,
- p,
- h,
- f,
- u,
- A,
- g,
- C,
- H,
- D,
- K,
- J,
- R,
- m,
- r,
- z,
- T,
- U,
- t,
- ha,
- V,
- ta,
- N;
- function c(a) {
- var b;
- b = this;
- this.j = a;
- this.Ib = this.j.Ib;
- this.xb = g.$g(this.j, "MediaPresenterASE");
- this.nAa = this.iza = this.Sl = 0;
- this.zd = this.Ib.Wa;
- this.FAa = this.BAa = this.M$ = this.l$ = this.LL = this.JK = this.n$ = !1;
- this.Yk = {
- type: u.Mg.audio,
- $F: [],
- Zn: []
- };
- this.Do = {
- type: u.Mg.video,
- $F: [],
- Zn: []
- };
- this.GA = {};
- this.iAa = k.config.Xub;
- this.xAa = k.rEa(!!this.j.Oa.Zi).t0;
- this.V9 = k.config.C_;
- this.t8a = g.Z.get(t.bA)(U.Jb(z.MT));
- this.Lq = g.Z.get(V.V7)(this.j);
- this.Tf = {};
- this.fAa = {};
- this.YK = {};
- this.r8a = function () {
- var a,
- c,
- f;
- b.j.TQ = A.Yg();
- if (!b.cf() && b.eL) {
- a = b.Ib.Lnb();
- a || b.Q$();
- b.j.paused.value || !b.Mca() || !b.iba() || a || b.Lq.ly ? b.z$() : b.n$ || b.A$();
- if (!(a || b.Lq.ly && b.Sxb() || b.cf())) {
- a = b.Ib.GN(!0);
- c = b.j.Qb.value;
- f = b.Rcb();
- f === m.kb.br ? (b.Sl = b.j.Cq.ca(U.ia), b.z$()) : f !== m.kb.bg && b.GHb(a);
- b.yBa();
- b.pU();
- b.j.Qb.set(f);
- f !== m.kb.bg || c !== m.kb.Pc && c !== m.kb.Lh || b.Pwb();
- }
- }
- };
- this.ik = N.QPa(this.r8a);
- this.j.jk = !1;
- this.GA[l.Ac.Ji.AUDIO] = this.Yk;
- this.GA[l.Ac.Ji.VIDEO] = this.Do;
- D.Xa(this.V9 > this.iAa, "bad config");
- D.Xa(this.V9 > this.xAa, "bad config");
- this.Ib.addEventListener(T.ji.HSa, function () {
- b.xb.trace("sourceBuffers have been created. Initialize MediaPresenter.");
- try {
- b.dL();
- } catch (ja) {
- b.xb.error("Exception while initializing", ja);
- b.pn(C.J.s1a);
- }
- });
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Vta = void 0;
- l = a(51);
- q = a(60);
- n = a(9);
- k = a(12);
- p = a(57);
- h = a(56);
- f = a(44);
- u = a(77);
- A = a(35);
- g = a(5);
- a(84);
- C = a(2);
- H = a(468);
- D = a(16);
- K = a(92);
- J = a(23);
- R = a(59);
- m = a(13);
- r = a(15);
- z = a(232);
- T = a(183);
- U = a(3);
- t = a(97);
- ha = a(172);
- V = a(288);
- ta = a(49);
- N = a(615);
- c.prototype.bIa = function () {
- return this.Ib.GN(!1);
- };
- c.prototype.HB = function () {
- return this.Ib.HB();
- };
- c.prototype.GB = function () {
- return this.Ib.GB();
- };
- c.prototype.EN = function () {
- return this.Ib.EN();
- };
- c.prototype.DY = function () {
- return this.Ib.DY();
- };
- c.prototype.dL = function () {
- var a;
- a = this;
- this.xb.trace("Video element initializing");
- this.Ib.sourceBuffers.forEach(function (b) {
- return a.c8a(b);
- });
- this.v5a(this.j.fv);
- };
- c.prototype.v5a = function (a) {
- var u,
- p,
- d;
- function b() {
- function a(a) {
- var b,
- c;
- a = void 0 === a ? !0 : a;
- c = u.j.Gb && u.j.Gb.jga();
- u.j.Qb.value == m.kb.bg && u.j.state.value == m.qb.xd && u.j.Io.value == m.Ze.xd && u.j.Pk.value == m.Ze.xd && !u.j.jk && c ? (a && u.CU.Ci(), u.CU.uB(), b = "ensureTimer") : (u.CU.Ci(), b = "stopTimer");
- u.xb.trace("Timer update: " + b, {
- presentingState: u.j.Qb.value,
- playbackState: u.j.state.value,
- avBufferingState: u.j.Io.value,
- textBufferingState: u.j.Pk.value,
- autoplayWasBlocked: u.j.jk,
- hasLicense: c,
- restartTimer: a
- });
- }
- k.config.eFa && (D.Xa(!u.CU), u.CU = g.Z.get(ha.vK)(k.config.eFa, function () {
- var a;
- a = g.Z.get(H.e4).ihb(u.j);
- u.pn(a.code, a);
- }), u.j.Qb.addListener(function () {
- return a();
- }), u.j.Io.addListener(function () {
- return a();
- }), u.j.Pk.addListener(function () {
- return a();
- }), u.j.state.addListener(function () {
- return a();
- }), u.j.addEventListener(m.U.uLa, function () {
- return a();
- }), u.j.addEventListener(m.U.jk, function () {
- return a();
- }), u.j.addEventListener(m.U.Saa, function () {
- return a();
- }), u.j.addEventListener(m.U.Is, function () {
- return a(!0);
- }), a());
- }
- function c() {
- u.jA || (c = D.Voa, u.Ib.addEventListener(T.ji.iQ, u.Tf[T.ji.iQ] = function () {
- return u.i$();
- }), u.Ib.addEventListener(T.ji.Po, u.Tf[T.ji.Po] = function () {
- return u.R6a();
- }), u.zd.addEventListener("ended", u.Tf.ended = function () {
- return u.S6a();
- }), u.zd.addEventListener("play", u.Tf.play = function () {
- return u.X6a();
- }), u.zd.addEventListener("pause", u.Tf.pause = function () {
- return u.W6a();
- }), u.zd.addEventListener("playing", u.Tf.playing = function () {
- return u.Y6a();
- }), u.eL = !0, u.j.WKa && (u.Q$(), u.xb.trace("Video element initialization complete"), u.j.fd("vi"), k.config.tFa ? setTimeout(function () {
- u.e$ = !0;
- u.ik();
- }, k.config.tFa) : u.e$ = !0, b(), R.tc(function () {
- return u.ik();
- })));
- }
- u = this;
- a ? this.xb.trace("Waiting for needkey") : (this.xb.warn("Movie is not DRM protected", {
- MovieId: this.j.u
- }), this.j.Gb.wX("" + this.j.u));
- this.xb.trace("Waiting for loadedmetadata");
- this.Ib.addEventListener(T.ji.yLa, function (a) {
- a = a.oa;
- u.j.fd("ld", a);
- u.j.Gb.wX("" + a);
- u.j.fireEvent(m.U.uLa);
- });
- f.SBa(this.zd, "loadedmetadata", function () {
- u.xb.trace("Video element event: loadedmetadata");
- u.j.fd("md");
- });
- h.Me.addListener(h.sl, this.YK[h.sl] = function () {
- return u.Zya();
- }, n.Tz);
- this.j.addEventListener(m.U.Cf, function () {
- return u.Zya();
- }, n.Tz);
- this.j.addEventListener(m.U.pRa, function () {
- return u.A$();
- });
- this.j.addEventListener(m.U.fp, function () {
- return u.U6a();
- });
- this.j.paused.addListener(function () {
- return u.ik();
- });
- this.j.muted.addListener(function () {
- return u.V$();
- });
- this.j.volume.addListener(function () {
- return u.V$();
- });
- this.j.playbackRate.addListener(function () {
- return u.J8a();
- });
- this.j.Io.addListener(function () {
- return u.ik();
- });
- this.j.Pk.addListener(function () {
- return u.ik();
- });
- this.V$();
- null === (p = this.Yk.Rj) || void 0 === p ? void 0 : p.WRa(function () {
- return u.pL();
- });
- null === (d = this.Do.Rj) || void 0 === d ? void 0 : d.WRa(function () {
- return u.pL();
- });
- this.pL();
- R.tc(function () {
- c();
- });
- };
- c.prototype.bW = function (a) {
- var b,
- c;
- b = this;
- a.M === l.Ac.Ji.AUDIO ? this.JK = !1 : a.M === l.Ac.Ji.VIDEO && (this.LL = !1);
- c = this.GA[a.M];
- c ? c.Zn.push(a) : D.Xa(!1);
- this.e4a(a).then(function () {
- b.pL();
- b.j.fireEvent(m.U.K_);
- })["catch"](function (a) {
- b.pn(C.J.w1a, {
- fb: J.pd(a)
- });
- });
- };
- c.prototype.Eaa = function (a, b, c) {
- c = void 0 === c ? {}
- : c;
- b = {
- M: a.type,
- TB: !1,
- response: b,
- Fj: function () {
- return "header";
- },
- get ec() {
- return !this.TB;
- },
- profile: c.profile
- };
- (c = this.GA[a.type]) ? c.Zn.push(b) : D.Xa(!1);
- this.pL();
- this.BAa || a.type !== l.Ac.Ji.VIDEO || (this.Lq.ly || this.seek(this.j.T, m.Ge.Iz), this.BAa = !0);
- };
- c.prototype.c8a = function (a) {
- var b;
- b = this.GA[a.type];
- if (b)
- try {
- b.Rj = a;
- } catch (ja) {
- this.pn(C.J.N6, {
- ha: z.CY(a.type),
- fb: J.pd(ja)
- });
- }
- };
- c.prototype.pL = function () {
- this.eL ? this.ik() : k.config.k$a && this.Q$();
- };
- c.prototype.fwb = function () {
- var a;
- a = this.j.JB() || 0;
- this.j.Oa.Zi ? k.config.Vab && (a = Math.max(a - (this.Ib.Ula + 1) - k.config.Tla, this.j.Gb.KY().zc)) : (a -= k.config.JCb, a = Math.max(a, this.Lq.Kha));
- this.seek(a, m.Ge.sK);
- };
- c.prototype.j0 = function (a) {
- var b;
- b = this;
- a === l.Ac.Ji.AUDIO ? this.JK = !0 : a === l.Ac.Ji.VIDEO && (this.LL = !0);
- R.tc(function () {
- return b.ik();
- });
- };
- c.prototype.ymb = function () {
- return {
- ygb: this.iza,
- Evb: this.nAa
- };
- };
- c.prototype.Mca = function () {
- return this.lza(this.Yk, this.bX()) && this.lza(this.Do, this.bX());
- };
- c.prototype.e4a = function (a) {
- var b;
- b = this.Ib && this.Ib.GIa();
- return this.j.Cq && void 0 === this.k$ && b && Infinity !== a.DRa && (a = a.DRa + a.Em, a > this.j.Cq.P0(U.ia) && (this.j.Cq = U.Jb(a)), a > b.P0(U.ia)) ? (this.k$ = b.scale(2), this.v7a()) : Promise.resolve();
- };
- c.prototype.v7a = function () {
- var a;
- a = this;
- return new Promise(function (b, c) {
- function f() {
- return h().then(function (a) {
- if (!1 === a)
- return f();
- });
- }
- function h() {
- return new Promise(function (b) {
- setTimeout(function () {
- var c,
- f;
- if (!((null === (c = a.Yk.Rj) || void 0 === c ? 0 : c.tk()) || (null === (f = a.Do.Rj) || void 0 === f ? 0 : f.tk())))
- try {
- a.Ib.ODb(a.k$);
- a.M$ = !1;
- a.k$ = void 0;
- b(!0);
- } catch (ka) {
- b(!1);
- }
- b(!1);
- }, 0);
- });
- }
- a.M$ = !0;
- f().then(function () {
- b();
- })["catch"](function (b) {
- a.xb.error("Unable to change the duration", b);
- c(b);
- });
- });
- };
- c.prototype.Sxb = function () {
- var a;
- a = this;
- return this.Lq.ly && this.iba() && this.Mca() ? (this.Ib.seek(this.Sl), this.Lq.ly = !1, R.tc(function () {
- return a.ik();
- }), !0) : !1;
- };
- c.prototype.GHb = function (a) {
- var b;
- if (a < this.Sl) {
- b = this.Sl - a;
- k.config.Txb && a && b > z.MT && (a = {
- ElementTime: K.th(a),
- MediaTime: K.th(this.Sl)
- }, b > z.pwa ? (this.xb.error("VIDEO.currentTime became much smaller", a), this.pn(C.J.I1a)) : this.xb.warn("VIDEO.currentTime became smaller", a));
- } else
- this.Sl = K.Xm(a, 0, this.j.Cq.ca(U.ia));
- };
- c.prototype.bX = function () {
- return this.j.Qb.value === m.kb.bg ? this.xAa : this.iAa;
- };
- c.prototype.iba = function () {
- return this.j.Io.value === m.Ze.xd && this.j.Pk.value === m.Ze.xd;
- };
- c.prototype.Rcb = function () {
- var a,
- b,
- c;
- a = this;
- b = this.j.Qb.value;
- c = b;
- this.Lq.ly ? c = m.kb.bg : this.zd && this.zd.ended ? b === m.kb.Pc && (c = m.kb.br) : this.iba() && this.Mca() ? this.Ib.jhb() ? c = this.zd && this.zd.paused ? m.kb.Lh : m.kb.Pc : this.t8a.Mc(function () {
- return a.s8a();
- }) : c = this.j.Cq ? this.j.BJa(this.Sl, this.bX()) ? m.kb.bg : m.kb.br : m.kb.bg;
- return c;
- };
- c.prototype.Pwb = function () {
- var a;
- if (this.j.Qb.value === m.kb.bg) {
- a = this.w8a() > this.bX();
- this.j.Pk.value !== m.Ze.xd ? this.j.vj.value ? (this.j.fireEvent(m.U.lu, {
- cause: p.zva
- }), this.xb.warn("rebuffer due to timed text", this.j.vj.value.eh)) : this.j.fireEvent(m.U.QI) : a ? (this.iza++, this.j.fireEvent(m.U.lu, {
- cause: p.m7
- })) : (this.nAa++, this.j.fireEvent(m.U.lu, {
- cause: p.n7
- }));
- }
- };
- c.prototype.w8a = function () {
- var a,
- b;
- a = this.Do.Zn.filter(function (a) {
- return !a.ec;
- }).reduce(function (a, b) {
- return a + b.Sr;
- }, 0);
- b = this.Yk.Zn.filter(function (a) {
- return !a.ec;
- }).reduce(function (a, b) {
- return a + b.Sr;
- }, 0);
- return Math.min(a, b);
- };
- c.prototype.s8a = function () {
- this.cf() || (k.config.hwb && this.Yk.Rj && !this.Yk.Rj.tk() && this.Yk.Rj.qCa(new Uint8Array([0, 0, 0, 8, 102, 114, 101, 101])), this.ik());
- };
- c.prototype.lza = function (a, b) {
- var c;
- c = a.cX;
- c = c && c.OO;
- return !a.Rj || 0 === a.Zn.length && (a.type === u.Mg.audio && this.JK || a.type === u.Mg.video && this.LL) ? !0 : c && c.ZH - this.Sl >= b || !1;
- };
- c.prototype.i$ = function () {
- this.ik();
- };
- c.prototype.R6a = function () {
- this.ik();
- this.j.fireEvent(m.U.Po);
- };
- c.prototype.S6a = function () {
- this.xb.trace("Video element event: ended");
- this.ik();
- };
- c.prototype.X6a = function () {
- this.xb.trace("Video element event: play");
- this.ik();
- };
- c.prototype.W6a = function () {
- this.xb.trace("Video element event: pause");
- this.ik();
- };
- c.prototype.Y6a = function () {
- this.xb.trace("Video element event: playing");
- this.ik();
- };
- c.prototype.V$ = function () {
- this.cf() || (this.zd && this.zd.volume !== this.j.volume.value && (this.zd.volume = this.j.volume.value), this.zd && this.zd.muted !== this.j.muted.value && (this.zd.muted = this.j.muted.value));
- };
- c.prototype.J8a = function () {
- !this.cf() && this.zd && (this.zd.playbackRate = this.j.playbackRate.value);
- };
- c.prototype.Q$ = function () {
- var a,
- b;
- this.M$ || (this.uBa(this.Yk), this.uBa(this.Do));
- !(this.cf() || !(0 === this.Yk.Zn.length && this.JK || 0 === this.Do.Zn.length && this.LL) || (null === (a = this.Yk.Rj) || void 0 === a ? 0 : a.tk()) || (null === (b = this.Do.Rj) || void 0 === b ? 0 : b.tk()) || this.s9) && this.zd.readyState > ta.Fd.Kra.HAVE_NOTHING && (this.s9 = !0, this.Ib.endOfStream());
- };
- c.prototype.uBa = function (a) {
- var b,
- c,
- f;
- if (!this.cf() && a.Rj) {
- b = a.Rj;
- c = a.$F;
- !b.tk() && 0 < c.length && (a.cX = c[c.length - 1]);
- if (a.wma) {
- if (b.tk())
- return;
- a.wma = !1;
- f = this.Ib.GIa().P0(U.Pl);
- 0 < f && b.remove(0, f);
- }
- for (f = a.Zn[0]; f && f.response && (f.ec || f.Ov - this.Sl <= this.V9); )
- if (this.s9 = !1, this.D8a(f))
- a.Zn.shift(), f = a.Zn[0];
- else
- break;
- !b.tk() && 0 < c.length && (a.cX = c[c.length - 1]);
- }
- };
- c.prototype.D8a = function (a) {
- var b,
- c,
- f;
- D.Xa(a && a.response);
- b = a.response;
- c = a.M;
- f = this.GA[c];
- if (!this.cf() && f.Rj && !f.Rj.tk()) {
- try {
- a.ec && a.profile && f.Rj.Tbb(a.profile);
- this.xb.trace("Feeding media segment to decoder", {
- Bytes: b.byteLength
- });
- f.Rj.qCa(b, a);
- a.ec || f.$F.push(this.m4a(a));
- k.config.shb && !a.ec && a.TDa();
- } catch (Ea) {
- "QuotaExceededError" != Ea.name ? (this.xb.error("Exception while appending media", a, Ea), this.pn(C.J.G1a, z.CY(c))) : this.j.dX = this.j.dX ? this.j.dX + 1 : 1;
- return;
- }
- return !0;
- }
- };
- c.prototype.l4a = function (a) {
- var b;
- b = this.j.dpb(a.Lb);
- b || (this.xb.error("Could not find CDN", {
- cdnId: a.Lb
- }), b = {
- id: a.Lb,
- Yha: a.location
- });
- return b;
- };
- c.prototype.s4a = function (a) {
- var b,
- c;
- c = a.sa;
- a.M === l.Ac.Ji.AUDIO ? b = this.j.zJa(c) : a.M === l.Ac.Ji.VIDEO && (b = this.j.IJa(c));
- b || this.xb.error("Could not find stream", {
- stream: c
- });
- return b;
- };
- c.prototype.m4a = function (a) {
- var b;
- b = this.s4a(a);
- return {
- OO: a,
- stream: b,
- Lo: {
- startTime: Math.floor(a.Ov),
- endTime: Math.floor(a.ZH)
- },
- kc: this.l4a(a)
- };
- };
- c.prototype.A$ = function () {
- var a;
- a = this;
- this.cf() || !r.ac(this.zd) || this.zd.ended || !this.e$ || !this.pF && void 0 !== this.pF || (this.xb.trace("Calling play on element"), Promise.resolve(this.zd.play()).then(function () {
- a.jA || (a.pF = !1, a.n$ = !1, a.zd.style.display = null, a.j.jk = !1, a.j.fireEvent(m.U.Saa, {
- j: a.j
- }));
- })["catch"](function (b) {
- "NotAllowedError" === b.name ? (a.xb.warn("Playback is blocked by the browser settings", b), a.j.jk = !0, a.jA || (a.n$ = !0, a.zd.style.display = "none", a.j.fireEvent(m.U.jk, {
- player: {
- play: function () {
- return a.A$();
- }
- }
- }))) : a.jA || (a.pF = !1, a.FAa || (a.FAa = !0, a.xb.error("Play promise rejected", b)));
- }));
- };
- c.prototype.U6a = function () {
- this.Lq.Kha = this.j.JB() || 0;
- };
- c.prototype.z$ = function () {
- this.cf() || !r.ac(this.zd) || this.zd.ended || !this.e$ || this.pF && void 0 !== this.pF || (this.xb.trace("Calling pause on element"), this.zd.pause(), this.pF = !0);
- };
- c.prototype.pU = function (a) {
- if (r.ac(a)) {
- for (var b = this.GA[a], c = b.$F, h, k = !1; (h = c[0]) && h.OO.Ov <= this.Sl; )
- if (this.Sl < h.OO.ZH) {
- a = a === l.Ac.Ji.AUDIO ? this.j.qg : this.j.qf;
- f.Qba(h, a.value) || (k = !0, a.set(h));
- break;
- } else
- c.shift();
- !k && !this.l$ || this.s9 || (h = h && h.OO.Ov - h.OO.Sr - 1, 0 < h && ((b = b.Rj) && !b.tk() ? (b.remove(0, h / J.mj), this.l$ = !1) : this.l$ = !0));
- } else
- this.pU(l.Ac.Ji.AUDIO), this.pU(l.Ac.Ji.VIDEO);
- };
- c.prototype.yBa = function (a) {
- this.j.cc.set(this.Sl);
- a && this.j.jkb();
- };
- c.prototype.seek = function (a, b, c, f) {
- var h,
- k,
- u,
- p;
- b = void 0 === b ? m.Ge.xt : b;
- c = void 0 === c ? this.j.Na : c;
- f = void 0 === f ? !1 : f;
- if (!this.cf() && this.j.Gb) {
- h = this.j.Ru(c).u;
- k = this.Lq.Ymb(a, b, c, f);
- c = k.BH;
- f = k.Si;
- u = k.Ayb;
- k = k.ru;
- this.pU();
- p = this.Sl;
- a = K.th(a);
- this.j.Fo("SEEKING: Requested: (" + h + ":" + b + ":" + a + ") - Actual: (contentPts: " + f + "," + ("playerPts: " + u + ", newMediaTime: " + c + ")"));
- this.xb.info("Seeking", {
- Requested: a,
- Actual: K.th(c),
- Cause: b,
- Skip: k
- });
- this.j.fireEvent(m.U.Is, {
- jP: p,
- BH: c,
- cause: b,
- skip: k
- });
- this.j.Qb.set(m.kb.bg);
- b !== m.Ge.Iz && (this.XAa(), this.Yk.wma = !0, this.Do.wma = !0);
- this.Sl = c;
- this.Lq.Kha = f;
- a = this.j.qg.value;
- u = this.j.qf.value;
- this.j.qg.set(null);
- this.j.qf.set(null);
- this.yBa(!0);
- this.j.fireEvent(m.U.qp, {
- jP: p,
- BH: c,
- Si: f,
- cause: b,
- skip: k,
- qg: a,
- qf: u,
- u: h
- });
- this.Lq.ly = !0;
- this.ik();
- }
- };
- c.prototype.XAa = function () {
- this.Yk.$F = [];
- this.Yk.cX = void 0;
- this.Yk.Zn = [];
- this.Do.$F = [];
- this.Do.cX = void 0;
- this.Do.Zn = [];
- this.LL = this.JK = !1;
- this.j.fireEvent(m.U.K_);
- };
- c.prototype.pn = function (a, b, c) {
- var f;
- if (!this.jA) {
- f = g.Z.get(q.Vk);
- this.j.Wd(f(a, b, c));
- }
- };
- c.prototype.Zya = function () {
- if (!this.jA) {
- this.xb.info("Closing.");
- this.Ib.removeEventListener(T.ji.iQ, this.fAa[T.ji.iQ]);
- this.Ib.removeEventListener(T.ji.Po, this.fAa[T.ji.Po]);
- this.zd.removeEventListener("ended", this.Tf.ended);
- this.zd.removeEventListener("play", this.Tf.play);
- this.zd.removeEventListener("pause", this.Tf.pause);
- this.zd.removeEventListener("playing", this.Tf.playing);
- h.Me.removeListener(h.sl, this.YK[h.sl]);
- this.jA = !0;
- try {
- k.config.vvb && (this.zd.volume = 0, this.zd.muted = !0);
- this.z$();
- this.Ib.close();
- } catch (na) {}
- this.zd = void 0;
- this.XAa();
- }
- };
- c.prototype.cf = function () {
- return this.jA ? !0 : r.ac(this.zd) ? !1 : (this.xb.error("MediaPresenter not closed and _videoElement is not defined"), !0);
- };
- b.Vta = c;
- }, function (d, b, a) {
- var c,
- l,
- q,
- n,
- k,
- p,
- h,
- f;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Bva = void 0;
- c = a(9);
- l = a(12);
- q = a(35);
- n = a(92);
- k = a(10);
- p = a(59);
- h = a(15);
- f = a(13);
- b.Bva = function (a) {
- var g,
- D,
- K,
- J,
- R,
- m;
- function b() {
- return a.state.value === f.qb.LOADING || a.state.value === f.qb.xd && a.Qb.value === f.kb.bg;
- }
- function u() {
- b() ? m || (m = setInterval(d, 100)) : m && (clearInterval(m), m = void 0, p.tc(d));
- }
- function d() {
- var c,
- u,
- p,
- d,
- A,
- G,
- C,
- H;
- c = q.Yg();
- u = g.value;
- p = u ? u.Xh : 0;
- A = a.state.value == f.qb.LOADING || b() && c - D > l.config.gbb;
- A && a.state.value == f.qb.xd ? (a.xx.value === f.Ze.Hwa ? (C = p, G = !0) : (d = c + (a.ul && a.ul.Cpb() || 0), K = K || c, J = J || K + l.config.Vub + 1, h.la(d) && (d = k.Ml(d, J), C = a.ul ? a.ul.XSb() : .99, C = k.Kh(1E3 * n.Xm((c - K) / (d - K), 0, C)) / 1E3)), C < p && (p - C < l.config.Hzb / 100 ? (C = p, R = void 0) : R ? c - R > l.config.Gzb ? (H = !0, R = void 0) : C = p : (R = c, C = p))) : R = J = K = void 0;
- c = A ? {
- f2: G,
- Xh: C,
- Izb: H
- }
- : null;
- (!c || !g || !u || h.la(c.Xh) && !h.la(u.Xh) || h.la(c.Xh) && h.la(u.Xh) && .01 < k.Oz(c.Xh - u.Xh) || c.f2 !== u.f2) && g.set(c);
- }
- g = a.kba;
- D = 0;
- a.state.addListener(function () {
- u();
- d();
- }, c.lT);
- a.Qb.addListener(function (a) {
- if (a.oldValue !== f.kb.bg || a.newValue !== f.kb.bg)
- D = q.Yg();
- u();
- });
- a.xx.addListener(function () {
- u();
- });
- a.Io.addListener(function () {
- u();
- });
- a.Pk.addListener(function () {
- u();
- });
- m || (m = setInterval(d, 100));
- };
- }, function (d, b, a) {
- var p,
- h,
- f,
- u;
- function c(a, b, c, f, h) {
- var k;
- k = {};
- "right" == a.horizontalAlignment ? k.right = 100 * (c - b.left - b.width - h) / c + "%" : k.left = 100 * (b.left - h) / c + "%";
- "bottom" == a.verticalAlignment ? k.bottom = 100 * (f - b.top - b.height - h) / f + "%" : k.top = 100 * (b.top - h) / f + "%";
- return k;
- }
- function l(a, b) {
- var c;
- if (a && b) {
- 40 === b.x && 19 === b.y ? c = 4 / 3 / (40 / 19) : 52 === b.x && 19 === b.y && (c = 16 / 9 / (52 / 19));
- if (c)
- return a.width / a.fontSize / c;
- }
- }
- function q(a, b, c, h, k) {
- var u,
- p;
- u = a.style;
- p = f.XN(a.text);
- for (a = a.lineBreaks; a--; )
- p = " " + p;
- return n(p, u, b, c, h, k);
- }
- function n(a, b, c, f, n, d) {
- var q;
- q = b.characterStyle;
- n = n[q];
- f = b.characterSize * f.height / ((0 <= q.indexOf("MONOSPACE") ? l(n, b.cellResolution) || n.lineHeight : n.lineHeight) || 1);
- f = 0 < d ? u.ot(f * d) : u.Kh(f);
- d = {
- "font-size": f + "px",
- "line-height": "normal",
- "font-weight": "normal"
- };
- b.characterItalic && (d["font-style"] = "italic");
- b.characterUnderline && (d["text-decoration"] = "underline");
- b.characterColor && (d.color = b.characterColor);
- b.backgroundColor && 0 !== b.backgroundOpacity && (d["background-color"] = k(b.backgroundColor, b.backgroundOpacity));
- f = b.characterEdgeColor || "#000000";
- switch (b.characterEdgeAttributes) {
- case h.y0:
- d["text-shadow"] = f + " 0px 0px 7px";
- break;
- case h.Vja:
- d["text-shadow"] = "-1px 0px " + f + ",0px 1px " + f + ",1px 0px " + f + ",0px -1px " + f;
- break;
- case h.LOa:
- d["text-shadow"] = "-1px -1px white, 0px -1px white, -1px 0px white, 1px 1px black, 0px 1px black, 1px 0px black";
- break;
- case h.JOa:
- d["text-shadow"] = "1px 1px white, 0px 1px white, 1px 0px white, -1px -1px black, 0px -1px black, -1px 0px black";
- }
- d = p.dB(d);
- (c = c[b.characterStyle || "PROPORTIONAL_SANS_SERIF"]) && (d += ";" + c);
- b = b.characterOpacity;
- 0 < b && 1 > b && (a = '' + a + " ");
- return '' + a + " ";
- }
- function k(a, b) {
- a = a.substring(1);
- a = parseInt(a, 16);
- return "rgba(" + (a >> 16 & 255) + "," + (a >> 8 & 255) + "," + (a & 255) + "," + (void 0 !== b ? b : 1) + ")";
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.rGa = b.Rib = b.Pib = b.Sib = b.Qib = b.sGa = b.tGa = b.Kda = void 0;
- p = a(44);
- h = a(202);
- f = a(20);
- u = a(10);
- b.Kda = function (a, b, c, f, h) {
- var k;
- k = "";
- a.textNodes.forEach(function (a) {
- k += q(a, c, b, f, h);
- });
- return k;
- };
- b.tGa = function (a, b, h, k, p) {
- var n,
- d,
- q,
- A,
- g;
- n = "";
- d = p.width;
- p = p.height;
- for (var l = b.length; l--; ) {
- q = b[l];
- A = a[l];
- A = A && A.region;
- g = "position:absolute;background:" + k + ";width:" + u.Kh(q.width + 2 * h) + "px;height:" + u.Kh(q.height + 2 * h) + "px;";
- f.Ad(c(A, q, d, p, h), function (a, b) {
- g += a + ":" + b + ";";
- });
- n += '
';
- }
- return n;
- };
- b.sGa = c;
- b.Qib = l;
- b.Sib = q;
- b.Pib = n;
- b.Rib = k;
- b.rGa = function (a) {
- var b;
- b = {
- display: "block",
- "white-space": "nowrap"
- };
- switch (a.region.horizontalAlignment) {
- case "left":
- b["text-align"] = "left";
- break;
- case "right":
- b["text-align"] = "right";
- break;
- default:
- b["text-align"] = "center";
- }
- return p.dB(b);
- };
- }, function (d, b, a) {
- var c;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.rUa = void 0;
- c = a(10);
- b.rUa = function (a, b) {
- function n(a, b, u) {
- var l,
- q,
- g,
- m;
- if (a && 1 < a.length) {
- for (var f = [], h = [], p = 0; p < a.length; p++)
- f[p] = 0, h[p] = 0;
- for (var n = !1, p = 0; p < a.length; p++)
- for (var d = p + 1; d < a.length; d++) {
- q = a[p];
- g = a[d];
- if (0 > q.width || 0 > g.width || g.left > q.left + q.width || g.left + g.width < q.left || g.top > q.top + q.height ? 0 : g.top + g.height >= q.top) {
- l = c.Ml(q.left, g.left);
- m = c.Ml(q.top, g.top);
- l = {
- width: c.Ml(c.Wm(q.left + q.width, g.left + g.width) - l, 0),
- height: c.Ml(c.Wm(q.top + q.height, g.top + g.height) - m, 0),
- x: l,
- y: m
- };
- } else
- l = void 0;
- if (l && 1 < l.width && 1 < l.height)
- if (m = l.width <= l.height, q = k(a[p]), g = k(a[d]), m && b || !m && !b)
- l = c.Ml(l.width / 2, .25), q.x <= g.x ? (h[p] -= l, h[d] += l) : (h[d] -= l, h[p] += l);
- else if (m && !b || !m && b)
- q = c.Ml(l.height / 2, .25), f[p] -= q, f[d] += q;
- }
- for (p = 0; p < a.length; p++) {
- if ( - .25 > h[p] && 0 <= a[p].left + h[p] || .25 < h[p] && a[p].left + a[p].width + h[p] <= u.width)
- a[p].left += h[p], n = !0;
- if ( - .25 > f[p] && 0 <= a[p].top + f[p] || .25 < f[p] && a[p].top + a[p].height + f[p] <= u.height)
- a[p].top += f[p], n = !0;
- }
- return n;
- }
- }
- function k(a) {
- return {
- x: a.left + a.width / 2,
- y: a.top + a.height / 2
- };
- }
- a = a.map(function (a) {
- return {
- top: a.top,
- left: a.left,
- width: a.width,
- height: a.height
- };
- });
- (function (a, b) {
- a.forEach(function (a) {
- 0 > a.left && a.left + a.width < b.width ? a.left += c.Wm(-a.left, b.width - (a.left + a.width)) : a.left + a.width > b.width && 0 < a.left && (a.left -= c.Wm(a.left + a.width - b.width, a.left));
- 0 > a.top && a.top + a.height < b.height ? a.top += c.Wm(-a.top, b.height - (a.top + a.height)) : a.top + a.height > b.height && 0 < a.top && (a.top -= c.Wm(a.top + a.height - b.height, a.top));
- });
- }
- (a, b));
- for (var p = 0; 50 > p && n(a, !0, b); p++);
- for (p = 0; 50 > p && n(a, !1, b); p++);
- return a;
- };
- }, function (d, b, a) {
- var c,
- l,
- q,
- n,
- k;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Oxa = void 0;
- c = a(23);
- l = a(292);
- q = a(291);
- n = a(10);
- k = a(20);
- d = function () {
- function a(a, b) {
- this.uea = a;
- this.rB = {
- position: "absolute",
- left: "0",
- top: "0",
- right: "0",
- bottom: "0",
- display: "block"
- };
- this.element = c.createElement("DIV", void 0, void 0, {
- "class": "player-timedtext"
- });
- this.element.onselectstart = function () {
- return !1;
- };
- this.ZRa(b);
- this.bHa = this.lmb(this.uea);
- }
- a.prototype.Pn = function () {
- return this.element;
- };
- a.prototype.wDb = function (a) {
- this.Laa = a;
- };
- a.prototype.GDb = function (a) {
- this.ve = a;
- this.eI();
- };
- a.prototype.MDb = function (a) {
- this.ZRa(a);
- this.eI();
- };
- a.prototype.eI = function () {
- var b,
- f,
- k,
- p,
- n,
- d,
- g,
- D,
- K,
- J,
- R,
- r,
- z,
- T;
- b = this;
- f = this.Pn();
- k = f.parentElement;
- p = k && k.clientWidth || 0;
- n = k && k.clientHeight || 0;
- d = k = 0;
- g = {
- width: p,
- height: n
- };
- if (0 < p && 0 < n && this.ve) {
- this.Laa && (g = c.zG(p, n, this.Laa), k = Math.round((p - g.width) / 2), d = Math.round((n - g.height) / 2));
- D = this.Abb(g);
- J = c.zG(D.width, D.height, this.Laa);
- D = (K = this.ve.blocks) && K.map(function (f) {
- var h;
- h = q.Kda(f, J, b.uea, b.bHa);
- f = q.rGa(f) + ";position:absolute";
- return c.createElement("div", f, h, a.W3);
- });
- }
- Object.assign(this.rB, {
- left: k + "px",
- right: k + "px",
- top: d + "px",
- bottom: d + "px"
- });
- f.style.display = "none";
- f.style.direction = this.rB.direction;
- f.innerHTML = "";
- if (D && D.length) {
- p = g.width;
- k = g.height;
- R = g;
- this.nM && (R = this.$8a(g, this.nM, n, d));
- this.rB.margin = this.gp ? this.vW(g, "top") + "px " + this.vW(g, "right") + "px " + this.vW(g, "bottom") + "px " + this.vW(g, "left") + "px " : void 0;
- D.forEach(function (a) {
- return f.appendChild(a);
- });
- n = c.dB(this.rB);
- f.style.cssText = n + ";visibility:hidden;z-index:-1";
- for (var d = [], m = D.length - 1; 0 <= m; m--) {
- r = D[m];
- z = K[m];
- T = this.zNa(r, z, p, k);
- T.width > p && (r.innerHTML = q.Kda(z, g, this.uea, this.bHa, p / T.width), T = this.zNa(r, z, p, k));
- d[m] = T;
- }
- d = l.rUa(d, R);
- if (m = K && K[0] && K[0].textNodes && K[0].textNodes[0] && K[0].textNodes[0].style)
- R = m.windowColor, m = m.windowOpacity, R && 0 < m && (g = q.tGa(K, d, Math.round(k / 50), R, g), g = c.createElement("div", "position:absolute;left:0;top:0;right:0;bottom:0;opacity:" + m, g, a.W3), f.insertBefore(g, f.firstChild));
- f.style.display = "none";
- for (g = d.length - 1; 0 <= g; g--)
- R = D[g].style, m = q.sGa(K[g].region, d[g], p, k, 0), Object.assign(R, m);
- f.style.cssText = n;
- }
- };
- a.prototype.rma = function (a) {
- this.nM = a;
- this.eI();
- };
- a.prototype.Xfa = function () {
- return this.nM;
- };
- a.prototype.sma = function (a) {
- this.gp = a;
- this.eI();
- };
- a.prototype.Yfa = function () {
- return this.gp;
- };
- a.prototype.Zfa = function () {
- return "block" === this.rB.display;
- };
- a.prototype.tma = function (a) {
- var b;
- b = a ? "block" : "none";
- this.element.style.display = b;
- this.rB.display = b;
- a && this.eI();
- };
- a.prototype.lmb = function (a) {
- var b,
- c;
- b = this;
- c = {};
- k.Ad(a, function (a, f) {
- c[a] = b.nub(f);
- });
- return c;
- };
- a.prototype.ZRa = function (a) {
- this.rB.direction = "boolean" === typeof a ? a ? "ltr" : "rtl" : "inherit";
- };
- a.prototype.vW = function (a, b) {
- if (this.gp) {
- if ("left" === b || "right" === b)
- return a.width * (this.gp[b] || 0);
- if ("top" === b || "bottom" === b)
- return a.height * (this.gp[b] || 0);
- }
- return 0;
- };
- a.prototype.Abb = function (a) {
- return this.gp ? {
- height: a.height * (1 - (this.gp.top || 0) - (this.gp.bottom || 0)),
- width: a.width * (1 - (this.gp.left || 0) - (this.gp.right || 0))
- }
- : a;
- };
- a.prototype.nub = function (b) {
- var f;
- b = c.createElement("DIV", "display:block;position:fixed;z-index:-1;visibility:hidden;font-size:1000px;" + b + ";", "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", a.W3);
- n.te.body.appendChild(b);
- f = {
- fontSize: 1E3,
- height: b.clientHeight,
- width: b.clientWidth / 52,
- lineHeight: b.clientHeight / 1E3
- };
- n.te.body.removeChild(b);
- return f;
- };
- a.prototype.zNa = function (a, b, c, k) {
- var f,
- h,
- u,
- p,
- n;
- f = b.region;
- h = (f.marginTop || 0) * k;
- u = (f.marginBottom || 0) * k;
- p = (f.marginLeft || 0) * c;
- n = (f.marginRight || 0) * c;
- b = a.clientWidth || 1;
- a = a.clientHeight || 1;
- switch (f.verticalAlignment) {
- case "top":
- k = h;
- break;
- case "center":
- k = (h + k - u - a) / 2;
- break;
- default:
- k = k - u - a;
- }
- switch (f.horizontalAlignment) {
- case "left":
- c = p;
- break;
- case "right":
- c = c - n - b;
- break;
- default:
- c = (p + c - n - b) / 2;
- }
- return {
- top: k,
- left: c,
- width: b,
- height: a
- };
- };
- a.prototype.$8a = function (a, b, c, k) {
- return {
- height: c - Math.max(k, b.bottom || 0) - Math.max(k, b.top || 0),
- width: a.width
- };
- };
- a.W3 = {
- "class": "player-timedtext-text-container"
- };
- return a;
- }
- ();
- b.Oxa = d;
- }, function (d, b, a) {
- var l,
- q,
- n,
- k,
- p,
- h,
- f;
- function c(a) {
- var b,
- c,
- h,
- u;
- b = this;
- this.j = a;
- this.OM = void 0;
- this.r9 = n.createElement("DIV", "position:absolute;left:0;top:50%;right:0;bottom:0;text-align:center;color:#040;font-size:11px;font-family:monospace", void 0, {
- "class": "player-streams"
- });
- this.i9 = n.createElement("DIV", "display:inline-block;background-color:rgba(255,255,255,0.86);border:3px solid #fff;padding:5px;margin-top:-90px");
- this.Y8 = n.createElement("DIV", "width:100%;text-align:center");
- this.L3a = this.l9("Audio Bitrate");
- this.Y$ = this.l9("Video Bitrate");
- this.c9 = this.l9("CDN");
- this.tL = {};
- this.$Y = k.Z.get(p.Yj);
- this.r9.appendChild(this.i9);
- this.i9.appendChild(this.Y8);
- c = n.createElement("BUTTON", void 0, "Override");
- c.addEventListener("click", this.D3a.bind(this), !1);
- this.Y8.appendChild(c);
- c = n.createElement("BUTTON", void 0, "Reset");
- c.addEventListener("click", this.Q7a.bind(this), !1);
- this.Y8.appendChild(c);
- h = this.d7a.bind(this);
- q.Me.addListener(q.fy, h);
- a.addEventListener(f.U.fp, function () {
- b.tL = {};
- });
- a.addEventListener(f.U.Cf, function () {
- q.Me.removeListener(q.fy, h);
- });
- u = this.C7a.bind(this);
- a.kc.forEach(function (a) {
- a.addListener(u);
- });
- a.ld.addListener(u);
- a.sg.addListener(u);
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Iva = void 0;
- l = a(51);
- q = a(56);
- n = a(23);
- k = a(5);
- p = a(30);
- h = a(102);
- f = a(13);
- c.prototype.show = function () {
- this.ML || (this.VAa(), this.j.Mf.appendChild(this.r9), this.ML = !0);
- };
- c.prototype.Xo = function () {
- this.ML && (this.j.Mf.removeChild(this.r9), this.ML = !1);
- };
- c.prototype.toggle = function () {
- this.ML ? this.Xo() : this.show();
- };
- c.prototype.xUa = function () {
- var c,
- f,
- h;
- function a(a, b, c) {
- var f,
- h,
- k;
- k = [];
- b.filter(function (b) {
- return b.Vf === a;
- }).forEach(function (a) {
- 0 <= c.indexOf(a) ? (void 0 === f ? f = a.O : h = a.O, void 0 === h && (h = a.O)) : void 0 !== f && void 0 !== h && (k.push({
- min: f,
- max: h
- }), f = h = void 0);
- });
- void 0 !== f && void 0 !== h && (k.push({
- min: f,
- max: h
- }), f = h = void 0);
- return k;
- }
- function b(a, b, c) {
- var f;
- f = [];
- b.filter(function (b) {
- return b.Vf === a;
- }).forEach(function (a) {
- -1 === c.indexOf(a) && f.push({
- stream: {
- bitrate: a.O
- },
- disallowedBy: ["manual"]
- });
- });
- return f;
- }
- c = this.j.Gx();
- f = this.j.LB().sort(function (a, b) {
- return a.O - b.O;
- });
- h = f.reduce(function (a, b) {
- 0 > a.indexOf(b.Vf) && a.push(b.Vf);
- return a;
- }, []).map(function (h) {
- return {
- profile: h,
- ranges: a(h, f, c),
- disallowed: b(h, f, c)
- };
- });
- this.j.Gb.XC(h, this.j.u);
- };
- c.prototype.D3a = function () {
- var c,
- f,
- a,
- b;
- this.tL = {};
- for (var a = this.Y$.options, b = a.length; b--; ) {
- c = a[b];
- c.selected && (this.tL[c.value] = 1);
- }
- this.OM = this.n4a.bind(this);
- this.xUa();
- if (a = this.j.yj) {
- f = this.c9.value;
- a = a.filter(function (a) {
- return a.id == f;
- })[0];
- b = this.j.kc[l.Ac.La.VIDEO].value;
- a && a != b && (a.EDa = {
- testreason: "streammanager",
- selreason: "userselection"
- }, this.j.kc[l.Ac.La.VIDEO].set(a));
- }
- this.Xo();
- };
- c.prototype.Q7a = function () {
- this.OM = void 0;
- this.j.nSa(this.j.u);
- this.Xo();
- };
- c.prototype.n4a = function () {
- var a;
- a = this;
- return this.j.LB().filter(function (b) {
- return a.tL[b.O];
- });
- };
- c.prototype.VAa = function () {
- var a,
- b,
- c,
- f;
- a = this;
- b = this.j.ld.value;
- c = this.j.sg.value;
- f = this.j.yj;
- b && (f = f.slice(), f.sort(function (a, b) {
- return a.Xf - b.Xf;
- }), this.E$(this.L3a, b.ic.map(function (b) {
- return {
- value: b.O,
- caption: b.O,
- selected: b == a.j.kl.value
- };
- })));
- c && (this.E$(this.Y$, c.ic.map(function (b) {
- var c,
- f;
- c = a.j.PO.Ls(b);
- b = b.O;
- f = "" + b;
- c && (f += " (" + c.join("|") + ")");
- return {
- value: b,
- caption: f,
- selected: a.OM ? a.tL[b] : !c
- };
- })), this.Y$.removeAttribute("disabled"));
- f && (this.E$(this.c9, f.map(function (b) {
- return {
- value: b.id,
- caption: "[" + b.id + "] " + b.name,
- selected: b == a.j.kc[l.Ac.La.VIDEO].value
- };
- })), this.c9.removeAttribute("disabled"));
- };
- c.prototype.C7a = function () {
- this.ML && this.VAa();
- };
- c.prototype.l9 = function (a) {
- var b,
- c;
- b = n.createElement("DIV", "display:inline-block;vertical-align:top;margin:5px;");
- a = n.createElement("DIV", void 0, a);
- c = n.createElement("select", "width:120px;height:180px", void 0, {
- disabled: "disabled",
- multiple: "multiple"
- });
- b.appendChild(a);
- b.appendChild(c);
- this.i9.appendChild(b);
- return c;
- };
- c.prototype.E$ = function (a, b) {
- a.innerHTML = "";
- b.forEach(function (b) {
- var c;
- c = {
- title: b.caption
- };
- b.selected && (c.selected = "selected");
- c = n.createElement("option", void 0, b.caption, c);
- c.value = b.value;
- a.appendChild(c);
- });
- };
- c.prototype.d7a = function (a) {
- a.ctrlKey && a.altKey && a.shiftKey && a.keyCode == h.dr.i2a && this.toggle();
- };
- b.Iva = c;
- }, function (d, b, a) {
- var c,
- l,
- q,
- n,
- k,
- p,
- h,
- f,
- u;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Bsa = void 0;
- c = a(12);
- l = a(35);
- q = a(2);
- n = a(182);
- k = a(10);
- p = a(15);
- h = a(13);
- f = a(5);
- u = a(172);
- b.Bsa = function (a) {
- var d,
- g,
- A,
- K;
- function b() {
- a.state.value !== h.qb.xd || a.Qb.value !== h.kb.Lh && a.Qb.value !== h.kb.br ? g.Ci() : g.uB();
- }
- d = c.config.Hxb;
- if (!a.VB() && d) {
- g = f.Z.get(u.vK)(d, function () {
- a.fireEvent(h.U.TG, q.J.nT);
- });
- a.Qb.addListener(b);
- a.state.addListener(b);
- if (c.config.Kga) {
- K = l.Yg();
- A = new n.J7(c.config.Kga, function () {
- var b,
- f;
- b = l.Yg();
- f = b - K;
- f > d && (a.fireEvent(h.U.TG, q.J.PS), A.Jba());
- f > 2 * c.config.Kga && (a.Lga = k.Ml(f, a.Lga || 0));
- K = b;
- });
- A.uma();
- }
- a.addEventListener(h.U.Cf, function () {
- g.Ci();
- p.ac(A) && A.Jba();
- });
- }
- };
- }, function (d, b, a) {
- var c,
- l;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Wra = void 0;
- c = a(13);
- l = a(67);
- b.Wra = function (a) {
- function b(b) {
- a.fireEvent(c.U.Nx, {
- response: b,
- u: a.ga.u
- });
- }
- return {
- download: function (c, p) {
- c.j = a;
- c = l.We.download(c, p);
- c.haa(b);
- return c;
- }
- };
- };
- }, function (d, b, a) {
- var c;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Rxa = void 0;
- c = a(23);
- d = function () {
- function a(a, b) {
- var c;
- c = this;
- this.HIa = a;
- this.$Na = b;
- this.rna = !1;
- this.Bv = function () {
- c.Qm = void 0;
- c.update();
- };
- }
- a.prototype.update = function (a) {
- var b,
- k,
- p;
- b = this.HIa();
- if (this.KUa !== b) {
- c.ac(b) && c.ac(this.duration) && b < this.duration && this.entries && (p = this.tNa || this.entries[Math.floor(b * this.qGb)] || this.entries[0]);
- if (p) {
- for (; p && p.endTime < b; )
- p = p.next;
- for (; p && p.previous && p.previous.endTime >= b; )
- p = p.previous;
- }
- p && (p.startTime <= b && b <= p.endTime ? (k = p, this.FUa(p.endTime - b)) : this.FUa(p.startTime - b));
- this.tNa = p;
- this.KUa = b;
- this.gaa !== k && (this.gaa = k, !a && this.$Na && this.$Na());
- }
- };
- a.prototype.start = function () {
- this.rna = !0;
- this.update();
- };
- a.prototype.$Ra = function (a) {
- this.tNa = this.gaa = this.KUa = void 0;
- this.duration = (this.entries = a) && Math.max.apply(Math, [].concat(Y(a.map(function (a) {
- return a.endTime;
- })))) || 0;
- this.qGb = a && a.length / this.duration || 0;
- this.update();
- };
- a.prototype.stop = function () {
- this.rna = !1;
- this.Ci();
- };
- a.prototype.Qkb = function () {
- this.update(!0);
- return this.gaa;
- };
- a.prototype.FUa = function (b) {
- this.Ci();
- this.rna && 0 < b && (this.Qm = setTimeout(this.Bv, b + a.H0a));
- };
- a.prototype.Ci = function () {
- this.Qm && (clearTimeout(this.Qm), this.Qm = void 0);
- };
- a.H0a = 10;
- return a;
- }
- ();
- b.Rxa = d;
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.I5 = void 0;
- b.I5 = "LicenseBrokerFactorySymbol";
- }, function (d, b, a) {
- var c,
- l,
- q,
- n,
- k;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Ir = void 0;
- c = a(9);
- l = a(12);
- d = a(2);
- q = a(5);
- n = a(23);
- k = a(10);
- a = a(26);
- q.Z.get(a.yf).register(d.J.esa, function (a) {
- var f,
- u,
- p;
- function h() {
- p && clearTimeout(p);
- a(c.kd);
- h = n.$e;
- }
- f = q.Ah("BatteryManager");
- b.Ir = {
- gXa: "chargingchange",
- vIa: function () {
- return u ? u.level : null;
- },
- Wea: function () {
- return u ? u.charging : null;
- },
- addEventListener: function (a, b) {
- u && u.addEventListener(a, b);
- },
- removeEventListener: function (a, b) {
- u && u.removeEventListener(a, b);
- }
- };
- if (l.config.xM) {
- p = setTimeout(h, l.config.klb);
- try {
- k.Ki.getBattery().then(function (a) {
- u = a;
- h();
- })["catch"](function (a) {
- f.error("getBattery promise rejected", a);
- h();
- });
- } catch (G) {
- f.error("exception on getBattery api call", G);
- h();
- }
- } else
- h();
- });
- }, function (d, b, a) {
- var h,
- f,
- u,
- g,
- G,
- C,
- H,
- D;
- function c(a) {
- return a.split(",").reduce(function (a, b) {
- var c;
- c = b.split("=");
- b = c[0];
- c = c.slice(1).join("=");
- b && b.length && (a[b] = c || !0);
- return a;
- }, {});
- }
- function l(a) {
- return a && "object" === typeof a ? JSON.stringify(a) : "string" === typeof a ? '"' + a + '"' : "" + a;
- }
- function q(a, b, f) {
- var k;
- if ("string" === typeof a)
- return q.call(this, c(a), b, f);
- k = 0;
- Object.keys(a).forEach(function (c) {
- var u,
- p,
- n;
- u = G[c];
- p = a[c];
- if (u) {
- if (n = C[c] || D[typeof h[u]])
- try {
- p = n(p);
- } catch (ea) {
- f && f.error("Failed to convert value '" + p + "' for config '" + c + "' : " + ea.toString());
- return;
- }
- n = g[u];
- this[u] = p;
- g[u] !== n && (f && f.debug("Config changed for '" + c + "' from " + l(n) + " (" + typeof n + ") to " + l(p) + " (" + typeof p + ")"), ++k);
- } else
- b ? (u = (u = H[c]) ? u.filter(function (a) {
- return a[0] !== this;
- }, this) : [], u.push([this, p]), H[c] = u) : f && f.error("Attempt to change undeclared config option '" + c + "'");
- }, this);
- k && g.emit("changed");
- return k;
- }
- function n() {
- return Object.keys(G).reduce(function (a, b) {
- var c,
- f;
- c = G[b];
- f = a[c];
- f ? (f.push(b), a[c] = f.sort(function (a, b) {
- return b.length - a.length;
- })) : a[c] = [b];
- return a;
- }, {});
- }
- function k(a, b) {
- return a.hasOwnProperty(b) ? l(a[b]) : void 0;
- }
- function p(a, b) {
- return "undefined" === typeof a ? b : a;
- }
- b = a(58);
- a = a(105).EventEmitter;
- h = {};
- f = Object.create(h);
- u = Object.create(f);
- g = Object.create(u);
- G = {};
- C = {};
- H = {};
- g.declare = function (a) {
- Object.keys(a).forEach(function (b) {
- var c,
- f,
- k,
- u;
- c = a[b];
- f = c[0];
- k = c[1];
- u = c[2];
- if (h.hasOwnProperty(b))
- throw Error("The local configuraion key '" + b + "' is already in use");
- "string" === typeof f && (f = [f]);
- f.forEach(function (a) {
- var c;
- if (G.hasOwnProperty(a))
- throw Error("The configuration value '" + a + "' has been declared more than once");
- h.hasOwnProperty(b) || ("function" === typeof k && (k = k()), h[b] = k);
- G[a] = b;
- "function" === typeof u && (C[a] = u);
- if (c = H[a])
- c.forEach(function (b) {
- var c,
- f;
- c = b[0];
- f = {};
- f[a] = b[1];
- q.call(c, f, !1);
- }), delete H[a];
- });
- });
- return g;
- };
- D = {
- object: function (a) {
- return "object" == typeof a ? a : JSON.parse("" + a);
- },
- "boolean": function (a) {
- return "boolean" == typeof a ? a : !("0" === "" + a || "false" === ("" + a).toLowerCase());
- },
- number: function (a) {
- if ("number" == typeof a)
- return a;
- a = parseFloat("" + a);
- if (isNaN(a))
- throw Error("parseFloat returned NaN");
- return a;
- }
- };
- g.set = q.bind(f);
- g.KH = q.bind(u);
- g.dump = function (a, b) {
- var d,
- q,
- A,
- D;
- function c() {
- D && a && a.log("===========================================");
- }
- d = Object.keys(H).sort();
- q = {};
- A = n();
- b = p(b, !0);
- Object.keys(G).sort().forEach(function (n) {
- var d,
- C,
- K;
- n = G[n];
- !q[n] && (q[n] = !0, C = k(f, n), K = k(u, n), b || "undefined" !== typeof C || "undefined" !== typeof K) && (d = A[n].join(","), d += " = " + l(g[n]) + " (" + typeof g[n] + ") [", d += p(K, "") + ",", d += p(C, "") + ",", d += k(h, n) + "]", D || (D = !0, a && a.log("Current config values"), c()), a && a.log(d));
- });
- (b || d.length) && a && a.log(" :", d);
- c();
- };
- g.No = function (a) {
- var b,
- c;
- b = {};
- c = {};
- Object.keys(G).forEach(function (a) {
- a = G[a];
- c[a] || (c[a] = !0, b[a] = g[a]);
- });
- a && q.call(b, a);
- return b;
- };
- g.cPa = function () {
- var a;
- a = n();
- return Object.getOwnPropertyNames(f).reduce(function (b, c) {
- b[a[c][0]] = f[c];
- return b;
- }, {});
- };
- g.reset = function () {
- Object.keys(f).forEach(function (a) {
- delete f[a];
- });
- };
- g.sn = {};
- b(a, g);
- d.P = Object.freeze(g);
- }, function (d, b, a) {
- var l,
- q,
- n,
- k,
- p;
- function c(a) {
- var b,
- c;
- b = k.platform;
- l.Ah("MediaSourceASE").trace("Inside MediaSourceASE");
- c = a.ufa();
- this.readyState = p.oc.CLOSED;
- this.sourceBuffers = c.sourceBuffers;
- this.addSourceBuffer = function (a) {
- return c.addSourceBuffer(a);
- };
- this.YV = function (a) {
- return c.YV(a);
- };
- this.removeSourceBuffer = function (a) {
- return c.removeSourceBuffer(a);
- };
- this.In = function (a) {
- return c.In(a);
- };
- this.sourceId = b.KN();
- b.fO();
- this.duration = void 0;
- c.vDb(this.sourceId);
- this.readyState = p.oc.OPEN;
- this.xc = q.Z.get(n.af).kC(p.xc, {});
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Yta = void 0;
- l = a(5);
- q = a(5);
- n = a(25);
- k = a(51);
- Object.defineProperty(c.prototype, "duration", {
- get: function () {
- return this.qj;
- },
- set: function (a) {
- var b;
- this.qj = a || Infinity;
- b = Math.floor(1E3 * a) || Infinity;
- this.sourceBuffers.forEach(function (a) {
- a.qj = b;
- });
- }
- });
- p = {
- oc: {
- CLOSED: 0,
- OPEN: 1,
- br: 2,
- name: ["CLOSED", "OPEN", "ENDED"]
- },
- xc: {
- cEa: !0,
- jNa: !0
- }
- };
- b.Yta = Object.assign(c, p);
- }, function (d, b, a) {
- var c,
- l,
- q,
- n;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.YSa = void 0;
- c = a(303);
- l = a(5);
- q = a(438);
- n = a(25);
- b.YSa = function (a) {
- a({
- V: !0,
- storage: new c.H5(l.Z.get(q.J5), l.Z.get(n.af))
- });
- };
- }, function (d, b) {
- function a(a, b) {
- this.Fr = a;
- this.Wc = b;
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.H5 = void 0;
- a.prototype.load = function (b, d) {
- var c;
- c = this;
- this.Fr.load(b).then(function (b) {
- d && d(a.hTa(b));
- })["catch"](function (a) {
- d && d(c.qG(b, a));
- });
- };
- a.prototype.save = function (b, d, q, n) {
- var c;
- c = this;
- this.Fr.save(b, d, q).then(function () {
- n && n(a.hTa({
- key: b,
- value: d
- }));
- })["catch"](function (a) {
- n && n(c.qG(b, a));
- });
- };
- a.prototype.remove = function (a, b) {
- var c;
- c = this;
- this.Fr.remove(a).then(function () {
- b && b({
- V: !0,
- k2: a
- });
- })["catch"](function (n) {
- b && b(c.qG(a, n));
- });
- };
- a.hTa = function (a) {
- return {
- V: !0,
- data: a.value,
- k2: a.key
- };
- };
- a.prototype.qG = function (a, b) {
- return {
- V: !1,
- k2: a,
- ha: b.ha,
- fb: b.cause ? this.Wc.pd(b.cause) : void 0
- };
- };
- b.H5 = a;
- }, function (d, b, a) {
- var c,
- l,
- q,
- n,
- k;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.XSa = void 0;
- c = a(5);
- l = a(71);
- q = a(25);
- n = a(303);
- k = a(436);
- b.XSa = function (a) {
- c.Z.get(l.Wq).create().then(function (b) {
- a({
- V: !0,
- storage: new n.H5(b, c.Z.get(q.af)),
- Qo: c.Z.get(k.k4)
- });
- })["catch"](function (b) {
- a(b);
- });
- };
- }, function (d, b, a) {
- var c,
- l,
- q;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.ZSa = void 0;
- c = a(9);
- l = a(5);
- q = a(2);
- a(20);
- b.ZSa = function (a) {
- var b;
- l.Ah("Storage");
- b = {};
- a({
- V: !0,
- storage: {
- load: function (a, c) {
- b.hasOwnProperty(a) ? c({
- V: !0,
- data: b[a],
- k2: a
- }) : c({
- ha: q.I.Hw
- });
- },
- save: function (a, c, f, k) {
- f && b.hasOwnProperty(a) ? k({
- V: !1
- }) : (b[a] = c, k && k({
- V: !0,
- k2: a
- }));
- },
- remove: function (a, h) {
- delete b[a];
- h && h(c.kd);
- }
- }
- });
- };
- }, function (d, b, a) {
- var l,
- q,
- n,
- k,
- p,
- h,
- f,
- u,
- g,
- G,
- C,
- H,
- D,
- K,
- J,
- R,
- m,
- r,
- z,
- T,
- U,
- ea,
- ha,
- V,
- ta,
- N,
- na,
- ma,
- ja,
- Q,
- Ea,
- ia,
- Ga,
- x,
- ka,
- Da,
- Oa,
- Pa,
- B;
- function c(a, b, c, f, h, k, p, d, q, A, D, R, P, r, ba, N, Q, ia, ja, Ea, x, Oa, Za, Pa, B, wb, L, S) {
- var aa,
- bb,
- Ba,
- kb;
- function Ha(a) {
- a.newValue !== ka.kb.bg && a.newValue !== ka.kb.Lh && (aa.Qb.removeListener(Ha), aa.VG = aa.Ga.P1, aa.Kb.Xb(ka.U.ao));
- }
- function Wa(a) {
- a.newValue !== ka.kb.bg && (aa.Qb.removeListener(Wa), aa.mPa = aa.Ga.jf.ca(U.ia));
- }
- aa = this;
- this.RG = h;
- this.qa = p;
- this.BF = d;
- this.Ga = q;
- this.wia = A;
- this.xia = P;
- this.y_ = r;
- this.Cc = ba;
- this.me = N;
- this.Mj = Q;
- this.vx = ia;
- this.jka = ja;
- this.uia = Ea;
- this.Dna = x;
- this.Vh = Oa;
- this.Wc = Za;
- this.ika = Pa;
- this.Hk = B;
- this.n1 = wb;
- this.ZL = L;
- this.zW = S;
- this.rPa = [];
- this.RH = {};
- this.ld = new G.Oc(null);
- this.sg = new G.Oc(null);
- this.vc = new G.Oc(null);
- this.vj = new G.Oc(null);
- this.Ss = new G.Oc(void 0);
- this.xf = new G.Oc(null);
- this.kl = new G.Oc(null);
- this.cc = new G.Oc(void 0);
- this.playbackRate = new G.Oc(1);
- this.Lna = function (a) {
- return aa.ld.set(a.newValue);
- };
- this.ZHb = function (a) {
- return aa.sg.set(a.newValue);
- };
- this.WHb = function (a) {
- return aa.vc.set(a.newValue);
- };
- this.uHb = function (a) {
- return aa.vj.set(a.newValue);
- };
- this.VHb = function (a) {
- return aa.Ss.set(a.newValue);
- };
- this.YHb = function (a) {
- return aa.xf.set(a.newValue);
- };
- this.vHb = function (a) {
- return aa.kl.set(a.newValue);
- };
- this.MHb = function (a) {
- return aa.qf.set(a.newValue);
- };
- this.LHb = function (a) {
- return aa.qg.set(a.newValue);
- };
- this.FHb = function (a) {
- return aa.cc.set(a.newValue);
- };
- this.JHb = function (a) {
- return aa.playbackRate.set(a.newValue);
- };
- this.Xn = {};
- this.zla = this.vna = 0;
- this.Kb = new H.kj();
- this.wR = {};
- this.gAa = 0;
- this.RSa = !1;
- this.state = new G.Oc(ka.qb.dE);
- this.Dq = new G.Oc(!1);
- this.paused = new G.Oc(!1);
- this.muted = new G.Oc(!1);
- this.volume = new G.Oc(C.config.Fgb / 100);
- this.Qb = new G.Oc(ka.kb.bg);
- this.xx = new G.Oc(ka.Ze.Ce);
- this.Io = new G.Oc(ka.Ze.Ce);
- this.Pk = new G.Oc(ka.Ze.Ce);
- this.qg = new G.Oc(null);
- this.qf = new G.Oc(null);
- this.kba = new G.Oc(null);
- this.xZ = u.Wra(this);
- this.J_ = [];
- this.kc = [];
- this.aba = {};
- this.iN = this.fGa = !1;
- this.rFb = this.Fa = this.Ch = -1;
- this.Mfa = function (a, b) {
- a = void 0 === a ? null : a;
- return ma.la(a) ? b && !aa.Ru(b).ya ? a : aa.Gb ? aa.Gb.Rr(void 0, a, b) : a : null;
- };
- this.bOa = function () {
- aa.Lma();
- };
- this.WPa = this.RG.eB();
- this.hB = a;
- this.addEventListener = this.Kb.addListener;
- this.removeEventListener = this.Kb.removeListener;
- this.fireEvent = this.Kb.Xb;
- h = C.config.op && this.Cc() ? this.Cc().YY(a) : void 0;
- this.oaa({
- oa: a,
- Na: f,
- Oa: c || {}
- }, h, b);
- this.log = T.$g(this);
- this.Zca = k(this);
- this.wab = D(this);
- this.Mf = Ga.createElement("DIV", g.H7, void 0, {
- id: this.u
- });
- this.kqb();
- bb = R(U.ph(1));
- this.le = this.log.pca("Playback");
- this.myb = n.vva(this);
- J.kE.lvb = this;
- J.kE.pea || (J.kE.pea = this);
- this.le.info("Playback created", this.eh);
- this.eia ? this.le.info("Playback selected for trace playback info logging") : this.le.trace("Playback not selected for trace playback info logging");
- C.config.op && this.Cc() && (this.Cc().Xob(this.u), this.addEventListener(ka.U.ao, function () {
- aa.Cc().Yob(aa.u);
- aa.vc.addListener(function () {
- aa.Cc().xJa();
- });
- aa.ld.addListener(function () {
- aa.Cc().xJa();
- });
- }), this.addEventListener(ka.U.Cf, function () {
- aa.Cc().Wob(aa.u);
- }));
- this.state.addListener(function (a) {
- aa.le.info("Playback state changed", {
- From: a.oldValue,
- To: a.newValue
- });
- V.Xa(a.newValue > a.oldValue);
- });
- K.Me.addListener(K.sl, this.bOa, g.lT);
- this.cc.addListener(function () {
- bb.Mc(function () {
- return aa.VGa();
- });
- });
- kb = !1;
- this.paused.addListener(function (a) {
- var b;
- b = aa.Gb;
- !a.Aja && b && (!0 === a.newValue ? b.paused && b.paused() : b.kR && b.kR());
- a.newValue || (kb = !1);
- aa.le.info("Paused changed", {
- From: a.oldValue,
- To: a.newValue,
- MediaTime: ta.th(aa.cc.value)
- });
- });
- this.addEventListener(ka.U.Is, function (a) {
- aa.n1.Is(a);
- aa.ga.Cm.awb(a.jP, a.BH);
- });
- this.Qb.addListener(function (a) {
- aa.le.info("PresentingState changed", {
- From: a.oldValue,
- To: a.newValue,
- MediaTime: ta.th(aa.cc.value)
- }, aa.mH());
- });
- this.Qb.addListener(function () {
- aa.Dq.set(aa.Qb.value === ka.kb.Pc);
- });
- this.xx.addListener(function (a) {
- aa.le.info("BufferingState changed", {
- From: a.oldValue,
- To: a.newValue,
- MediaTime: ta.th(aa.cc.value)
- }, aa.mH());
- });
- this.Io.addListener(function (a) {
- aa.le.info("AV BufferingState changed", {
- From: a.oldValue,
- To: a.newValue,
- MediaTime: ta.th(aa.cc.value)
- }, aa.mH());
- });
- this.Pk.addListener(function (a) {
- aa.le.info("Text BufferingState changed", {
- From: a.oldValue,
- To: a.newValue,
- MediaTime: ta.th(aa.cc.value)
- }, aa.mH());
- });
- this.ld.addListener(function (a) {
- V.Xa(a.newValue);
- aa.le.info("AudioTrack changed", a.newValue && {
- ToBcp47: a.newValue.ll,
- To: a.newValue.eb
- }, a.oldValue && {
- FromBcp47: a.oldValue.ll,
- From: a.oldValue.eb
- }, {
- MediaTime: ta.th(aa.cc.value)
- });
- });
- this.sg.addListener(function () {
- for (var a = aa.LB(), b = a.length, c = 0; c < b; c++)
- a[c].lower = a[c - 1], a[c].upb = a[c + 1];
- });
- this.vc.addListener(function (a) {
- aa.le.info("TimedTextTrack changed", a.newValue ? {
- ToBcp47: a.newValue.ll,
- To: a.newValue.eb
- }
- : {
- To: "none"
- }, a.oldValue ? {
- FromBcp47: a.oldValue.ll,
- From: a.oldValue.eb
- }
- : {
- From: "none"
- }, {
- MediaTime: ta.th(aa.cc.value)
- });
- });
- this.kc[l.Ac.La.AUDIO] = new G.Oc(null);
- this.kc[l.Ac.La.VIDEO] = new G.Oc(null);
- this.Qb.addListener(Wa, g.Tz);
- this.Qb.addListener(Ha);
- this.addEventListener(ka.U.ao, function () {
- var a,
- b,
- c,
- f;
- aa.RSa = !0;
- aa.XEb = aa.qba();
- aa.fd("start");
- a = aa.qf.value;
- b = t._cad_global.prefetchEvents;
- if (b) {
- c = U.Jb(aa.Rn ? aa.Rn.audio : 0);
- f = U.Jb(aa.Rn ? aa.Rn.video : 0);
- b.Dm(aa.u, aa.fa, "notcached" !== aa.pu, "notcached" !== aa.Bx, !!aa.Rn, c, f);
- }
- aa.KZ = a.stream.O;
- });
- z.Bva(this);
- J.Zm.push(this);
- C.config.VP && (this.I0 = this.ika(this), this.K0 = new m.Iva(this));
- J.r7.forEach(function (a) {
- a(aa);
- });
- this.J9a = function (a) {
- aa.addEventListener(ka.U.Is, function (b) {
- b = b.cause;
- b !== ka.Ge.Iz && b !== ka.Ge.Yz && a.stop();
- });
- aa.addEventListener(ka.U.qp, function (b) {
- var c,
- f,
- h,
- k,
- u,
- p,
- n;
- c = b.cause;
- f = b.skip;
- h = b.BH;
- k = b.jP;
- u = b.u;
- b = b.Si;
- if (c !== ka.Ge.Yz && (C.config.ikb && c === ka.Ge.sK && aa.Nm.vM(), c !== ka.Ge.Iz))
- if (f)
- if (a.ru(h)) {
- aa.le.trace("Repositioned. Skipping from " + k + " to " + h);
- c = function (a) {
- aa.log.error("streamingSession.skipped threw an exception", a);
- a = Da.Dc.kY(ea.J.NVa, a);
- aa.bo(a.code, a);
- };
- try {
- p = a.Zh(h);
- p ? p.then(function (b) {
- b.WG || a.play();
- })["catch"](c) : a.play();
- } catch (Sc) {
- c(Sc);
- }
- } else
- aa.log.error("can skip returned false");
- else {
- aa.le.trace("Repositioned. Seeking from " + k + " to " + h);
- try {
- n = aa.pm(u).Na;
- a.Vy(b, aa.uIa(n), n);
- } catch (Sc) {
- aa.log.error("streamingSession.seekByContentPts threw an exception", Sc);
- h = Da.Dc.kY(ea.J.LVa, Sc);
- aa.bo(h.code, h);
- }
- }
- });
- a.addEventListener("maxPosition", function (a) {
- var b;
- b = U.Jb(a.maxPts);
- if (a = aa.Jv[a.index])
- a.Qr = b;
- aa.Cq || (aa.Cq = b);
- });
- a.addEventListener("segmentStarting", function (a) {
- aa.fireEvent(ka.U.QCb, a);
- });
- a.addEventListener("lastSegmentPts", function (a) {
- aa.fireEvent(ka.U.MCb, a);
- });
- a.addEventListener("segmentPresenting", function (a) {
- aa.fireEvent(ka.U.H1, a);
- });
- a.addEventListener("segmentAborted", function (a) {
- aa.fireEvent(ka.U.KCb, a);
- });
- a.addEventListener("manifestPresenting", function (a) {
- aa.hMa({
- u: parseInt(a.movieId),
- S0: a.previousMovieId ? parseInt(a.previousMovieId) : void 0,
- SB: !1
- });
- });
- a.addEventListener("skip", function (a) {
- aa.fireEvent(ka.U.Zh, a);
- });
- a.addEventListener("error", function (a) {
- "NFErr_MC_StreamingFailure" === a.error && (aa.le.trace("receiving an unrecoverable streaming error: " + JSON.stringify(a)), aa.le.trace("StreamingFailure, buffer status:" + JSON.stringify(aa.mH())), na.tc(function () {
- aa.Wd(aa.me(ea.J.MVa, {
- ha: a.nativeCode,
- fb: a.errormsg,
- Ui: a.httpCode,
- a0: a.networkErrorCode
- }));
- }));
- });
- a.addEventListener("maxvideobitratechanged", function (a) {
- aa.J_.push(a);
- });
- a.addEventListener("bufferingStarted", function () {
- aa.Io.set(ka.Ze.Ce);
- });
- a.addEventListener("locationSelected", function (a) {
- aa.fireEvent(ka.U.ks, a);
- });
- a.addEventListener("serverSwitch", function (a) {
- var b;
- aa.fireEvent(ka.U.vI, a);
- "video" === a.mediatype ? b = l.Ac.La.VIDEO : "audio" === a.mediatype && (b = l.Ac.La.AUDIO);
- ma.ac(b) && aa.BDb(a.server, b);
- });
- a.addEventListener("bufferingComplete", function (b) {
- aa.le.trace("Buffering complete", {
- Cause: "ASE Buffering complete",
- evt: b
- }, aa.mH());
- aa.Jo = b;
- aa.Io.set(ka.Ze.xd);
- Ba || (Ba = !0, aa.fd("pb"));
- a.play();
- });
- a.addEventListener("audioTrackSwitchStarted", function () {
- a.aOa();
- C.config.Fxb && !aa.paused.value && (kb = !0, aa.paused.set(!0, {
- Aja: !0
- }));
- });
- a.addEventListener("audioTrackSwitchComplete", function () {
- aa.paused.value && kb && (kb = !1, aa.paused.set(!1, {
- Aja: !0
- }));
- aa.$i.fwb();
- });
- a.addEventListener("asereportenabled", function () {
- aa.iN = !0;
- });
- a.addEventListener("asereport", function (a) {
- aa.fireEvent(ka.U.AF, a);
- });
- a.addEventListener("aseexception", function (a) {
- aa.fireEvent(ka.U.zF, a);
- });
- a.addEventListener("hindsightreport", function (a) {
- var b,
- c;
- b = ma.la(aa.mf) ? 0 : aa.mf;
- c = a.report;
- c && c.length && c.forEach(function (a) {
- a.bst -= b;
- a.pst -= b;
- void 0 === a.nd && a.tput && (a.tput.ts -= b);
- });
- aa.wga = {
- BBb: c,
- Dpb: a.hptwbr,
- ZJa: a.htwbr,
- C0: a.pbtwbr
- };
- a.rr && (aa.wga.nRa = a.rr);
- a.ra && (aa.wga.bAb = a.ra);
- });
- a.addEventListener("streamingstat", function (a) {
- var b;
- b = a.bt;
- aa.Fa = a.location.bandwidth;
- aa.Ch = a.location.httpResponseTime;
- aa.rFb = a.stat.streamingBitrate;
- b && (void 0 === aa.XA && (aa.XA = {
- interval: C.config.WA,
- startTime: b.startTime,
- hu: [],
- dw: []
- }), aa.XA.hu = aa.XA.hu.concat(b.hu), aa.XA.dw = aa.XA.dw.concat(b.dw));
- a.psdConservCount && (aa.UPa = a.psdConservCount);
- });
- a.addEventListener("headerCacheDataHit", function (a) {
- a.movieId === "" + aa.u && (aa.Rn = a);
- });
- a.addEventListener("startEvent", function (a) {
- t._cad_global.prefetchEvents && "adoptHcdEnd" === a.event && t._cad_global.prefetchEvents.uM(ha.Fe.Xj.MEDIA, aa.u);
- });
- a.addEventListener("requestComplete", function (a) {
- var b;
- b = (a = a && a.mediaRequest) && a.OF && a.OF.cadmiumResponse;
- b && aa.fireEvent(ka.U.Nx, {
- response: b,
- u: aa.Ru(a.Na).u
- });
- });
- a.addEventListener("streamSelected", function (a) {
- var b,
- c;
- a.mediaType === l.Ac.La.VIDEO ? (c = aa.IJa(a.streamId), b = aa.xf) : a.mediaType === l.Ac.La.AUDIO && (c = aa.zJa(a.streamId), b = aa.kl);
- c && b ? b.set(c, {
- SDa: a.movieTime,
- qab: a.bandwidth
- }) : aa.le.error("not matching stream for streamSelected event", {
- streamId: a.streamId
- });
- });
- a.addEventListener("logdata", function (a) {
- var b,
- c;
- if ("string" === typeof a.target && "object" === typeof a.fields) {
- b = aa.Xn[a.target];
- c = ma.la(aa.mf) ? aa.mf : 0;
- b || (b = aa.Xn[a.target] = {});
- Object.keys(a.fields).forEach(function (f) {
- var h,
- k,
- u,
- p;
- h = a.fields[f];
- if ("object" !== typeof h || null === h)
- b[f] = h;
- else {
- k = h.type;
- if ("count" === k)
- void 0 === b[f] && (b[f] = 0), ++b[f];
- else if (void 0 !== h.value)
- if ("array" === k) {
- k = b[f];
- u = h.adjust;
- p = h.value;
- k || (k = b[f] = []);
- u && 0 < u.length && u.forEach(function (a) {
- p[a] -= c || 0;
- });
- k.push(p);
- } else
- "sum" === k ? (void 0 === b[f] && (b[f] = 0), b[f] += h.value) : b[f] = h.value;
- else
- b[f] = h;
- }
- });
- }
- });
- };
- this.ld.addListener(function (a) {
- var b,
- c,
- f,
- h;
- if (aa.Gb)
- if (a.Hx && a.Hx.hCa)
- aa.le.trace("Not processing already applied track", null === (b = a.newValue) || void 0 === b ? void 0 : b.eb);
- else {
- h = a.newValue;
- aa.Gb.pTa({
- RA: h.QB,
- toJSON: function () {
- return h.eh;
- }
- }) ? aa.le.trace("ASE accepted the audio track switch", null === (f = a.newValue) || void 0 === f ? void 0 : f.eb) : (aa.le.trace("ASE rejected the audio track switch", null === (c = a.newValue) || void 0 === c ? void 0 : c.eb), a.oldValue.QB !== h.QB && aa.ld.set(a.oldValue, {
- hCa: !0
- }));
- }
- });
- this.addEventListener(ka.U.lu, function (a) {
- a.cause == J.n7 && (aa.xx.set(ka.Ze.Ce), aa.Gb.sUa(aa.$i.bIa()));
- });
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Dva = void 0;
- l = a(51);
- q = a(190);
- n = a(189);
- k = a(122);
- p = a(299);
- h = a(620);
- f = a(619);
- u = a(296);
- g = a(9);
- G = a(185);
- C = a(12);
- H = a(76);
- D = a(295);
- K = a(56);
- J = a(57);
- R = a(80);
- m = a(294);
- r = a(616);
- z = a(290);
- T = a(5);
- U = a(3);
- ea = a(2);
- ha = a(118);
- V = a(16);
- ta = a(92);
- N = a(20);
- na = a(59);
- ma = a(15);
- ja = a(121);
- Q = a(289);
- Ea = a(112);
- ia = a(183);
- Ga = a(23);
- x = a(123);
- ka = a(13);
- Da = a(47);
- Oa = a(188);
- Pa = a(287);
- B = a(130);
- c.prototype.fd = function (a, b) {
- b = void 0 === b ? this.hB : b;
- this.RH[b].fd(a);
- };
- c.prototype.Xu = function (a) {
- this.ga.Xu(a);
- };
- c.prototype.kqb = function () {
- var a;
- a = this;
- this.ld.addListener(function (b) {
- return a.ga.ld.set(b.newValue);
- });
- this.sg.addListener(function (b) {
- return a.ga.sg.set(b.newValue);
- });
- this.vc.addListener(function (b) {
- return a.ga.vc.set(b.newValue);
- });
- this.vj.addListener(function (b) {
- return a.ga.vj.set(b.newValue);
- });
- this.Ss.addListener(function (b) {
- return a.ga.Ss.set(b.newValue);
- });
- this.xf.addListener(function (b) {
- return a.ga.xf.set(b.newValue);
- });
- this.kl.addListener(function (b) {
- return a.ga.kl.set(b.newValue);
- });
- this.qf.addListener(function (b) {
- return a.ga.qf.set(b.newValue);
- });
- this.qg.addListener(function (b) {
- return a.ga.qg.set(b.newValue);
- });
- this.cc.addListener(function (b) {
- return a.ga.cc.set(b.newValue);
- });
- this.playbackRate.addListener(function (b) {
- return a.ga.playbackRate.set(b.newValue);
- });
- this.jRa();
- };
- c.prototype.jRa = function () {
- this.ga !== this.Zla && (this.ga.cc.set(this.cc.value), this.ga.playbackRate.set(this.playbackRate.value), this.Vq(function (a) {
- return a.ld;
- }, this.Lna), this.Vq(function (a) {
- return a.sg;
- }, this.ZHb), this.Vq(function (a) {
- return a.Ss;
- }, this.VHb), this.Vq(function (a) {
- return a.vc;
- }, this.WHb), this.Vq(function (a) {
- return a.vj;
- }, this.uHb), this.Vq(function (a) {
- return a.xf;
- }, this.YHb), this.Vq(function (a) {
- return a.kl;
- }, this.vHb), this.Vq(function (a) {
- return a.qg;
- }, this.LHb), this.Vq(function (a) {
- return a.qf;
- }, this.MHb), this.Vq(function (a) {
- return a.cc;
- }, this.FHb), this.Vq(function (a) {
- return a.playbackRate;
- }, this.JHb), this.vc.set(this.ga.vc.value), this.ld.set(this.ga.ld.value, {
- hCa: !0
- }), this.sg.set(this.ga.sg.value), this.vj.set(this.ga.vj.value), this.Ss.set(this.ga.Ss.value), this.xf.set(this.ga.xf.value), this.kl.set(this.ga.kl.value), this.Zla = this.ga);
- };
- c.prototype.Vq = function (a, b) {
- this.Zla && a(this.Zla).removeListener(b);
- a(this.ga).addListener(b);
- };
- c.prototype.load = function (a) {
- var b,
- c;
- b = this;
- this.load = function () {};
- this.tPa = a;
- if (this.state.value == ka.qb.dE) {
- this.le.info("Playback loading", this);
- this.Wvb();
- this.fd("asl_load_start");
- a = this.BF;
- c = a.endTime;
- ma.ac(a.startTime) ? ma.ac(c) ? this.fd("asl_ended") : this.fd("asl_in_progress") : this.fd("asl_not_started");
- this.BF.yO(function (a) {
- b.fd("asl_load_complete");
- a.V ? b.dfb() : b.bo(a.errorCode || ea.J.csa, a);
- });
- }
- };
- c.prototype.Nyb = function () {
- var a;
- try {
- if (this.state.value === ka.qb.LOADING) {
- a = {
- width: 1,
- height: 1,
- taa: 1
- };
- this.LB().forEach(function (b) {
- a.width * a.height < b.width * b.height && (a.width = b.width, a.height = b.height, a.taa = b.taa);
- });
- this.bJ = a;
- this.VA = this.vx.$Ba({
- sD: U.Jb(this.T),
- u: this.u,
- zP: this.Qr,
- Oa: this.Oa
- }).ca(U.ia);
- this.Haa();
- this.Rfb();
- }
- } catch (Wa) {
- this.bo(ea.J.q_a, {
- ha: ea.I.Of,
- fb: N.pd(Wa)
- });
- }
- };
- c.prototype.oaa = function (a, b, c) {
- var f,
- h,
- k;
- b = void 0 === b ? this.RG.eB() : b;
- c = void 0 === c ? this.qa.$b() : c;
- f = !!C.config.aVa && !(b % C.config.aVa);
- h = a.oa;
- k = a.Na;
- a = a.Oa;
- b = this.jka(J.kE.index++, h, k, a, b, c, f, this.ga, this.Mfa);
- this.RH[h] = b;
- 1 < this.Jv.length && (b.mv = this.y_.create(this, b, !1));
- b.PO = new R.$ta(this, b);
- return h;
- };
- c.prototype.uIa = function (a) {
- return a ? void 0 : 0;
- };
- c.prototype.pm = function (a) {
- return this.RH[a];
- };
- c.prototype.Ru = function (a) {
- return this.Jv.find(function (b) {
- return b.Na === a;
- }) || this.ga;
- };
- c.prototype.onb = function (a) {
- return this.Jv.find(function (b) {
- var c,
- f;
- return (null === (f = null === (c = b.Df) || void 0 === c ? void 0 : c.xe) || void 0 === f ? void 0 : f.sessionId) === a;
- }) || this.ga;
- };
- c.prototype.Wzb = function (a, b) {
- var c,
- f;
- b = void 0 === b ? !0 : b;
- c = this;
- f = this.pm(a);
- return this.IRa(f).then(function (a) {
- var h;
- if (!c.Gb)
- throw new Da.Dc(ea.J.J6, ea.I.FVa);
- c.MPa(a, f);
- a = [f.gc.jFa, f.gc.pFa];
- h = !1;
- try {
- h = !!c.Gb.NBa(f.ya.Uf, {
- NGb: a,
- replace: !1,
- T: f.Oa.T,
- na: f.Oa.na,
- CC: !0,
- Ri: !f.fv,
- RCa: b,
- Vp: c.tca(f.u),
- Qpb: !0
- }, f.Na);
- } catch (Pb) {
- throw Da.Dc.kY(ea.J.J6, Pb);
- }
- if (!h)
- throw new Da.Dc(ea.J.J6, ea.I.GVa);
- return f.fv ? c.Ib.Ij.RQa(f) : Promise.resolve();
- })["catch"](function (a) {
- c.log.error("queueManifest failed", a);
- throw c.me(a.code, a);
- });
- };
- c.prototype.blb = function () {
- if (ma.la(this.Uc.ats) && ma.la(this.Uc.at))
- return this.Uc.at - this.Uc.ats;
- };
- c.prototype.DHa = function () {
- var a,
- b;
- a = this.uR();
- b = this.bM();
- return Math.min(a, b);
- };
- c.prototype.FQ = function () {
- this.background || (this.le.info("Starting inactivity monitor for movie " + this.u), new D.Bsa(this));
- };
- c.prototype.close = function (a) {
- a && (this.state.value == ka.qb.CLOSED ? a() : this.addEventListener(ka.U.closed, function () {
- a();
- }));
- this.Lma();
- };
- c.prototype.Wd = function (a, b) {
- var c,
- f,
- h;
- c = this;
- if (this.state.value == ka.qb.dE)
- this.Vi || (this.Vi = a, this.load());
- else {
- b && (this.state.value == ka.qb.CLOSED ? b() : this.addEventListener(ka.U.closed, function () {
- b();
- }));
- f = function () {
- c.Lma(a);
- };
- h = C.config.sFa && a && C.config.sFa[a.errorCode];
- ma.ev(h) && (h = N.Pd(h));
- this.le.error("Fatal playback error", {
- Error: "" + a,
- HandleDelay: "" + h
- });
- 0 <= h ? setTimeout(f, h) : f();
- }
- };
- c.prototype.fR = function () {
- this.Kb.Xb(ka.U.fR);
- };
- c.prototype.Fo = function (a, b) {
- b = void 0 === b ? this.Na : b;
- this.rPa.push(this.qa.$b().ca(U.ia) + "-" + b + "-" + a);
- };
- c.prototype.jkb = function () {
- this.VGa();
- };
- c.prototype.Dfa = function () {
- var a;
- a = this.Gb;
- return a && (a = a.LY(), void 0 !== a) ? a : null;
- };
- c.prototype.JB = function () {
- return void 0 !== this.ga.MW && void 0 === this.Gb ? this.ga.MW : this.Mfa(this.cc.value, this.Na);
- };
- c.prototype.Cfa = function () {
- var a;
- a = this.Mfa(this.$i.bIa());
- return null === a ? null : Math.min(this.Qr.ca(U.ia), Math.max(0, a));
- };
- c.prototype.vY = function () {
- var a,
- b;
- return null === (b = null === (a = this.ya) || void 0 === a ? void 0 : a.Uf.uu) || void 0 === b ? void 0 : b.Va;
- };
- c.prototype.IHb = function (a) {
- this.Oa = Ea.aja(this.Oa, a);
- this.Haa();
- };
- c.prototype.LB = function (a) {
- a = void 0 === a ? this.u : a;
- return (a = this.pm(a).sg) && a.value ? a.value.ic : [];
- };
- c.prototype.dpb = function (a) {
- for (var b = S(this.Jv), c = b.next(); !c.done; c = b.next())
- if (c = (c = c.value.yj) && c.find(function (b) {
- return b.id === a;
- }))
- return c;
- };
- c.prototype.$yb = function (a) {
- a = void 0 === a ? this.ga : a;
- a.vc.value ? this.ho.Yyb(a.vc.value) : Promise.resolve();
- };
- c.prototype.zJa = function (a) {
- for (var b = S(this.Jv), c = b.next(); !c.done; c = b.next())
- for (var c = S(c.value.Bn), f = c.next(); !f.done; f = c.next())
- if (f = f.value.ic.find(function (b) {
- return b.md === a;
- }))
- return f;
- };
- c.prototype.IJa = function (a) {
- for (var b = S(this.Jv), c = b.next(); !c.done; c = b.next())
- for (var c = S(c.value.Um), f = c.next(); !f.done; f = c.next())
- if (f = (f = f.value) && f.ic.find(function (b) {
- return b.md === a;
- }))
- return f;
- };
- c.prototype.Gx = function () {
- var a,
- b,
- c;
- return null !== (c = null === (b = null === (a = this.K0) || void 0 === a ? void 0 : a.OM) || void 0 === b ? void 0 : b.call(a)) && void 0 !== c ? c : this.HEa().Nc;
- };
- c.prototype.nSa = function (a) {
- var b;
- this.Gb && this.pm(a) && ((null === (b = this.K0) || void 0 === b ? 0 : b.OM) ? this.K0.xUa() : (b = this.tca(a), this.Gb.XC(b, a)));
- };
- c.prototype.xrb = function () {
- return "trailer" === this.re;
- };
- c.prototype.CKa = function () {
- return !!this.re && 0 <= this.re.indexOf("billboard");
- };
- c.prototype.Brb = function () {
- return !!this.re && 0 <= this.re.indexOf("video-merch");
- };
- c.prototype.arb = function () {
- return !!this.re && 0 <= this.re.indexOf("mini-modal");
- };
- c.prototype.VB = function () {
- return this.xrb() || this.CKa() || this.Brb() || this.arb();
- };
- c.prototype.Yea = function () {
- var h;
- if (this.Um) {
- for (var a, b = 0; b < this.Um.length; b++)
- for (var c = this.Um[b], f = 0; f < c.ic.length; f++) {
- h = c.ic[f];
- ma.la(h.uca) && ma.la(h.WW) && ma.la(h.VW) && ma.la(h.UW) && (0 < h.uca || 0 < h.WW) && (h = h.UW / h.VW, a = ma.la(a) ? Math.min(a, h) : h);
- }
- return a;
- }
- };
- c.prototype.Hnb = function () {
- return {
- tr: this.vna,
- rt: this.zla
- };
- };
- c.prototype.Qu = function (a) {
- return this.Xn[a];
- };
- c.prototype.rbb = function () {
- return this.Rk ? this.qa.$b().ca(U.ia) - this.Rk : this.Ga.jf.ca(U.ia) - this.qY();
- };
- c.prototype.qba = function () {
- var a;
- if (this.Rk)
- return this.qa.$b().ca(U.ia) - this.Rk;
- a = this.qa.$B;
- return this.mPa - (this.Ik.ca(U.ia) + a.ca(U.ia));
- };
- c.prototype.wbb = function () {
- return this.Rk ? this.qa.$b().ca(U.ia) - this.Rk : this.mPa - this.qY();
- };
- c.prototype.Pvb = function (a) {
- var b,
- c;
- b = this.mf;
- c = {};
- N.Ad(a, function (a, f) {
- c[a] = f.map(function (a) {
- return a - b;
- });
- });
- return c;
- };
- c.prototype.llb = function () {
- var a,
- b;
- a = this.mf;
- b = {};
- N.Ad(this.aba, function (c, f) {
- b[c] = f.map(function (b) {
- return b - a;
- });
- });
- return p.Ir ? {
- level: p.Ir.vIa(),
- charging: p.Ir.Wea(),
- statuses: b
- }
- : null;
- };
- c.prototype.WY = function () {
- this.UGa();
- return this.wR;
- };
- c.prototype.qY = function () {
- var a;
- a = this.Oa.G2;
- a = ma.la(a) ? a : this.Ik.ca(U.ia) + this.qa.$B.ca(U.ia);
- V.Xa(ma.dv(a));
- return a;
- };
- c.prototype.Ifa = function () {
- return this.qa.$b().ca(U.ia) - this.Ik.ca(U.ia);
- };
- c.prototype.dEb = function () {
- this.wR.HasRA = !0;
- };
- c.prototype.bJb = function () {
- this.DEb = !0;
- };
- c.prototype.i0 = function () {
- this.DQa();
- };
- c.prototype.uR = function () {
- var a;
- a = this.fW();
- return a && a.vbuflmsec || 0;
- };
- c.prototype.bM = function () {
- var a;
- a = this.fW();
- return a && a.abuflmsec || 0;
- };
- c.prototype.Xna = function () {
- var a;
- a = this.fW();
- return a && a.vbuflbytes || 0;
- };
- c.prototype.Maa = function () {
- var a;
- a = this.fW();
- return a && a.abuflbytes || 0;
- };
- c.prototype.IRa = function (a) {
- var b,
- c,
- f,
- h;
- a = void 0 === a ? this : a;
- b = this;
- c = C.config.Y0.enabled ? x.Uk.G7 : this.VB() ? x.Uk.U7 : x.Uk.Ol;
- c = {
- fa: a.fa,
- Oa: a.Oa,
- oa: a.u,
- Vx: c
- };
- f = a.u !== this.u;
- h = this.qa.$b().ca(U.ia);
- return this.uia.kf(this.log, c).then(function (a) {
- var c;
- c = b.qa.$b().ca(U.ia);
- f && (a.Sy = h, a.MC = c);
- return a;
- })["catch"](function (a) {
- b.log.error("PBO manifest failed", a);
- return Promise.reject(a);
- });
- };
- c.prototype.MPa = function (a, b) {
- b = void 0 === b ? this : b;
- b.ya = a;
- a = this.wia.create(this).Xja(a);
- b.gc = a;
- b.sg.set(a.Qca);
- b.ld.set(a.eX);
- b.vc.set(a.Pca);
- };
- c.prototype.fHa = function (a, b) {
- this.hMa({
- u: a,
- S0: this.hB,
- SB: void 0 === b ? !1 : b
- });
- };
- c.prototype.Fob = function (a, b) {
- this.pm(a.oa) || this.oaa(a);
- this.fHa(a.oa, !0);
- this.Wd(b);
- };
- c.prototype.BJa = function (a, b) {
- if (!this.Mj.P2)
- return !0;
- a = this.Cq.ca(U.ia) - a;
- return 0 > a || a > b;
- };
- c.prototype.hMa = function (a) {
- var b,
- c;
- if (a.S0) {
- if (a.u === this.hB)
- return;
- b = this.pm(a.u);
- c = b.ya;
- c && ma.ac(c.Sy) && ma.ac(c.MC) && b.Xu({
- pr_ats: c.Sy,
- pr_at: c.MC
- });
- this.fireEvent(ka.U.jH, {
- u: this.hB
- });
- this.hB = a.u;
- this.Haa();
- a.SB || this.jRa();
- this.VG = this.Ga.P1;
- this.ga.Rk || (this.ga.Rk = this.qa.$b().ca(U.ia));
- }
- ("boolean" === typeof this.Oa.mG ? this.Oa.mG : C.config.mG) && !a.SB && this.Dna.mG(this);
- this.fireEvent(ka.U.fp, a);
- };
- c.prototype.dfb = function () {
- try {
- this.IM = new Oa.Wpa(this);
- this.mv = this.y_.create(this, this.ga, !0);
- C.config.Ibb && new Pa.ora(this, this.Vh, this.log);
- C.config.xM && this.xM(this);
- this.HIb();
- } catch (Ha) {
- this.bo(ea.J.p_a, {
- ha: ea.I.Of,
- fb: N.pd(Ha)
- });
- }
- };
- c.prototype.HIb = function () {
- this.Vi ? this.Wd(this.Vi) : ma.lha(this.u) ? this.bcb() : this.bo(ea.J.d_a, {
- fb: "" + this.u
- });
- };
- c.prototype.bcb = function () {
- var a;
- a = q.dD.URa;
- a ? a.V ? this.Nba() : this.bo(ea.J.xsa, a) : (V.Xa(!C.config.HX), this.eaa());
- };
- c.prototype.Nba = function () {
- var a;
- a = this;
- !this.background && C.config.Nba ? J.q7(function () {
- a.eaa();
- }, this) : this.eaa();
- };
- c.prototype.eaa = function () {
- var a;
- a = this;
- this.state.value == ka.qb.LOADING && (C.config.Ida && !this.VB() ? q.dD.LA(J.Ava, function (b) {
- b.V ? (a.w_ = b.w_, C.config.N1 ? a.gM() : a.dma()) : a.bo(ea.J.wsa);
- }, !0) : C.config.N1 ? this.gM() : this.dma());
- };
- c.prototype.dma = function () {
- var a;
- a = this;
- this.state.value == ka.qb.LOADING && (this.fd("ic"), this.myb.aDb(function (b) {
- b.error && a.log.error("Error sending persisted playdata", ea.Kp(b));
- try {
- a.gM();
- } catch (bb) {
- a.log.error("playback.authorize threw an exception", bb);
- a.bo(ea.J.YVa, {
- ha: ea.I.Of,
- fb: N.pd(bb)
- });
- }
- }));
- };
- c.prototype.gM = function () {
- var a,
- b;
- a = this;
- if (this.state.value == ka.qb.LOADING) {
- this.log.info("Authorizing", this);
- b = this.qa.$b().ca(U.ia);
- this.fd("ats");
- this.IM.gM(function (c) {
- var f;
- if (a.state.value == ka.qb.LOADING) {
- a.fd("at");
- f = a.ya;
- a.Xu({
- pr_ats: f && ma.ac(f.Sy) ? f.Sy : b,
- pr_at: f && ma.ac(f.MC) ? f.MC : a.qa.$b().ca(U.ia)
- });
- c.V ? 0 < a.gc.yj.length && a.gc.eX && a.gc.Qca && a.gc.Pca ? a.Bzb() : a.bo(ea.J.Y_a, a.xia(a.gc)) : a.bo(ea.J.MANIFEST, c);
- }
- });
- }
- };
- c.prototype.Bzb = function () {
- var a;
- a = this;
- this.tPa ? (this.log.info("Processing post-authorize", this), this.tPa(this, function (b) {
- b.V ? a.AUa() : a.bo(ea.J.u_a, b);
- })) : this.AUa();
- };
- c.prototype.AUa = function () {
- var b,
- c,
- f,
- h;
- b = this;
- if (this.state.value == ka.qb.LOADING) {
- c = {};
- this.Nm = k.jl;
- C.config.hkb && this.Nm.vM();
- k.$c.set(a(154)(C.config), !0, T.Ah("ASE"));
- k.$c.set({
- maxNumberTitlesScheduled: C.config.xPa ? C.config.xPa.maxNumberTitlesScheduled : 1
- }, !0, this.le);
- C.config.sdb && 3E5 > this.ya.Uf.duration ? k.$c.KH({
- expandDownloadTime: !1
- }, !0, this.le) : k.$c.KH({
- expandDownloadTime: k.$c.cPa().expandDownloadTime
- }, !0, this.le);
- this.background || C.config.Oyb && "postplay" === this.re ? k.$c.KH({
- initBitrateSelectorAlgorithm: "historical"
- }, !0, this.le) : k.$c.KH({
- initBitrateSelectorAlgorithm: k.$c.cPa().initBitrateSelectorAlgorithm
- }, !0, this.le);
- h = this.sg && this.sg.value && this.sg.value.ic;
- h && h.length && (f = h[0].Vf);
- k.$c.KH(C.Yba(this.Oa.Zi, this.Oa.$Z, f), !0, this.le);
- c = this.Wc.kC(c, C.Zba(this.re));
- this.tFb = k.$c.No(c);
- l.platform.events.emit("networkchange", this.gc.uDb);
- this.Nm.K2({
- KN: function () {
- return b.KN();
- },
- fO: function () {
- return b.fO();
- }
- });
- this.Nyb();
- }
- };
- c.prototype.Rfb = function () {
- var a,
- b,
- c,
- k,
- u;
- a = this;
- try {
- this.Ib = new h.Rta(this);
- this.Ib.open();
- b = new Promise(function (b) {
- a.Ib.addEventListener(ia.ji.ISa, b);
- });
- this.$i = new Q.Vta(this);
- c = {
- Ef: !1,
- XI: C.config.XI,
- O2: C.config.BX,
- CO: !1,
- Ri: !this.fv,
- CC: !!this.Oa.$Z,
- na: this.Oa.na,
- SIb: this.gc.eX.Tm === B.hn.NONE
- };
- k = {
- zC: this.log,
- ul: this.ul,
- sessionId: this.u + "-" + this.fa,
- fa: this.fa,
- vC: this.nk,
- yh: ja.xh ? ja.xh.yh : void 0,
- Mx: 0 === C.config.eN || 0 !== this.fa % C.config.eN ? !1 : !0
- };
- this.fGa = k.Mx;
- u = this.pm(this.u).Na;
- this.Gb = this.Nm.Gn(this.ya.Uf, [this.gc.jFa, this.gc.pFa], this.T, c, k, void 0, {
- $d: function () {
- return a.cc.value;
- },
- PIa: function () {
- return a.playbackRate.value;
- },
- ufa: function () {
- return a.Ib;
- }
- }, this.tFb, this.tca(this.u), u);
- this.J9a(this.Gb);
- b.then(function () {
- a.state.value !== ka.qb.CLOSING && a.state.value !== ka.qb.CLOSED && a.Gb.open();
- });
- this.cc.set(this.T);
- this.ho = new f.Pxa(this);
- if ("boolean" === typeof this.Oa.j1 ? this.Oa.j1 : C.config.j1)
- this.aR = new r.Qxa(this);
- this.FQ();
- J.s7.forEach(function (b) {
- b(a);
- });
- this.Vvb();
- } catch (kb) {
- this.bo(ea.J.r_a, {
- ha: ea.I.Of,
- fb: N.pd(kb)
- });
- }
- };
- c.prototype.Wvb = function () {
- V.Xa(this.state.value == ka.qb.dE);
- this.mf = this.qa.$b().ca(U.ia);
- this.state.set(ka.qb.LOADING);
- t._cad_global.prefetchEvents && t._cad_global.prefetchEvents.tyb(this.u);
- };
- c.prototype.bo = function (a, b) {
- this.done || (this.done = !0, b instanceof Da.Dc ? this.Wd(this.me(b.code, b)) : this.Wd(this.me(a, b)));
- };
- c.prototype.xM = function (a) {
- var c,
- f;
- function b() {
- var b,
- f;
- b = p.Ir.Wea() + "";
- f = a.aba[b];
- f || (f = a.aba[b] = []);
- f.push(c.qa.$b().ca(U.ia));
- c.log.trace("charging change event", {
- level: p.Ir.vIa(),
- charging: p.Ir.Wea()
- });
- }
- c = this;
- f = p.Ir.gXa;
- p.Ir.addEventListener(f, b);
- a.addEventListener(ka.U.Cf, function () {
- p.Ir.removeEventListener(f, b);
- });
- };
- c.prototype.Lma = function (a) {
- var b;
- b = this;
- if (this.state.value == ka.qb.dE || this.state.value == ka.qb.LOADING || this.state.value == ka.qb.xd) {
- this.le.info("Playback closing", this, a ? {
- ErrorCode: a.oX
- }
- : void 0);
- this.Fo("Closing");
- K.Me.removeListener(K.sl, this.bOa);
- this.Vi = a;
- this.UGa();
- this.Gb && this.Gb.flush();
- try {
- this.Kb.Xb(ka.U.Cf, {
- movieId: this.hB
- });
- } catch (bb) {
- this.le.error("Unable to fire playback closing event", bb);
- }
- this.state.set(ka.qb.CLOSING);
- this.ga.MW = this.JB();
- this.KVa();
- this.DEb || na.tc(function () {
- return b.DQa();
- });
- }
- };
- c.prototype.VGa = function () {
- var a;
- a = this.cc.value;
- this.jsb != a && (this.jsb = a, this.Kb.Xb(ka.U.kna));
- };
- c.prototype.DQa = function () {
- var a,
- b;
- a = this;
- V.Xa(this.state.value == ka.qb.CLOSING);
- b = this.w_;
- this.w_ = void 0;
- b ? q.dD.release(b, function (b) {
- V.Xa(b.V);
- a.Tba();
- }) : this.Tba();
- };
- c.prototype.KVa = function () {
- this.Gb && (this.Gb.close(), this.Gb.yc());
- this.Nm && this.Vi && this.Nm.vM();
- delete this.Gb;
- delete this.Nm;
- };
- c.prototype.Tba = function () {
- var a;
- this.Tba = g.$e;
- V.Xa(this.state.value == ka.qb.CLOSING);
- a = J.Zm.indexOf(this);
- V.Xa(0 <= a);
- J.Zm.splice(a, 1);
- this.state.set(ka.qb.CLOSED);
- this.Kb.Xb(ka.U.closed, void 0, !0);
- this.Kb.Ag();
- delete this.Df;
- this.ga.i0();
- };
- c.prototype.Haa = function () {
- this.Oa.playbackState && ("number" === typeof this.Oa.playbackState.volume && this.volume.set(ta.Xm(this.Oa.playbackState.volume, 0, 1)), "boolean" === typeof this.Oa.playbackState.muted && this.muted.set(this.Oa.playbackState.muted), "number" === typeof this.Oa.playbackState.playbackRate && this.playbackRate.set(ta.Xm(this.Oa.playbackState.playbackRate, 0, 2)));
- };
- c.prototype.UGa = function () {
- this.Kb.Xb(ka.U.vSa, {
- wR: this.wR
- });
- };
- c.prototype.BDb = function (a, b) {
- var c;
- c = this.yj.filter(function (b) {
- return b.id === a;
- })[0];
- c && this.kc[b].set(c);
- };
- c.prototype.mH = function () {
- return {
- AudioBufferLength: this.bM(),
- VideoBufferLength: this.uR()
- };
- };
- c.prototype.fW = function () {
- if (this.Gb)
- return this.Gb.NZ(!1);
- };
- c.prototype.KN = function () {
- return this.gAa;
- };
- c.prototype.fO = function () {
- this.gAa++;
- };
- c.prototype.Vvb = function () {
- this.state.value == ka.qb.LOADING && this.state.set(ka.qb.xd);
- };
- c.prototype.HEa = function (a) {
- var b,
- c;
- a = void 0 === a ? this.u : a;
- b = void 0;
- c = this.pm(a);
- a = this.LB(a).filter(function (a) {
- var f;
- f = c.PO.Ls(a);
- f && (b = b || [], b.push({
- stream: a,
- dG: f
- }));
- return !f;
- });
- 0 === a.length && this.log.error("FilteredVideoStreamList is empty. Media stream filters are not setup correctly.");
- for (var f = 0; f < a.length; f++)
- a[f].lower = a[f - 1], a[f].upb = a[f + 1];
- return {
- Nc: a,
- rhb: b
- };
- };
- c.prototype.tca = function (a) {
- var b,
- c,
- f,
- h,
- k,
- u,
- p;
- a = void 0 === a ? this.u : a;
- b = this.HEa(a);
- c = b.Nc;
- f = b.rhb;
- h = [];
- this.LB(a).forEach(function (a) {
- -1 == h.indexOf(a.Vf) && h.push(a.Vf);
- });
- k = null;
- u = null;
- c.forEach(function (a) {
- null === k ? u = k = a.O : u < a.O ? u = a.O : k > a.O && (k = a.O);
- });
- p = [];
- h.forEach(function (a) {
- var b;
- b = {
- ranges: [],
- profile: a
- };
- k && u && (b.ranges.push({
- min: k,
- max: u
- }), f && (b.disallowed = f.filter(function (b) {
- return b.stream.Vf === a;
- })), p.push(b));
- });
- return p;
- };
- pa.Object.defineProperties(c.prototype, {
- Jv: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- var a;
- a = this;
- return Object.keys(this.RH).map(function (b) {
- return a.RH[b];
- });
- }
- },
- ga: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.RH[this.hB];
- }
- },
- WKa: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return 1 === this.Jv.length;
- }
- },
- T: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return void 0 !== this.VA ? this.VA : this.Jv[0].Oa.T || 0;
- }
- },
- gc: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.ga.gc;
- },
- set: function (a) {
- this.ga.gc = a;
- }
- },
- cY: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.ga.Oa.cY;
- }
- },
- dY: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.ga.Oa.dY;
- }
- },
- index: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.ga.index;
- }
- },
- Na: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.ga.Na;
- }
- },
- Df: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.ga.Df;
- },
- set: function (a) {
- this.ga.Df = a;
- }
- },
- Rk: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.ga.Rk;
- },
- set: function (a) {
- this.ga.Rk = a;
- }
- },
- pu: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.ga.pu;
- },
- set: function (a) {
- this.ga.pu = a;
- }
- },
- Bx: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.ga.Bx;
- },
- set: function (a) {
- this.ga.Bx = a;
- }
- },
- KZ: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.ga.KZ;
- },
- set: function (a) {
- this.ga.KZ = a;
- }
- },
- ya: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.ga.ya;
- },
- set: function (a) {
- this.ga.ya = a;
- }
- },
- VA: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.ga.VA;
- },
- set: function (a) {
- this.ga.VA = a;
- }
- },
- TQ: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.ga.TQ;
- },
- set: function (a) {
- this.ga.TQ = a;
- }
- },
- Oa: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.ga.Oa;
- },
- set: function (a) {
- this.ga.Oa = a;
- }
- },
- mv: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.ga.mv;
- },
- set: function (a) {
- this.ga.mv = a;
- }
- },
- Cm: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.ga.Cm;
- }
- },
- u: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.ga.u;
- }
- },
- re: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.ga.re;
- }
- },
- Bn: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.ga.Bn;
- }
- },
- Um: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.ga.Um;
- }
- },
- aw: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.ga.aw;
- }
- },
- Qk: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.ga.Qk;
- }
- },
- pg: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.ga.pg;
- }
- },
- fv: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.ga.fv;
- }
- },
- Hq: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.ga.Hq;
- }
- },
- sk: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.ga.sk;
- }
- },
- yj: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.ga.yj;
- }
- },
- R0: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.ga.R0;
- }
- },
- Qr: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.ga.Qr;
- },
- set: function (a) {
- this.ga.Qr = a;
- }
- },
- fa: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.ga.fa;
- }
- },
- di: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.ga.di;
- }
- },
- Ik: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.ga.Ik;
- }
- },
- VG: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.ga.VG;
- },
- set: function (a) {
- this.ga.VG = a;
- }
- },
- nk: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.ga.nk;
- }
- },
- TC: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.ga.TC;
- }
- },
- background: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.ga.background;
- },
- set: function (a) {
- this.ga.background = a;
- }
- },
- zca: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.ga.zca;
- }
- },
- Uc: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.ga.Uc;
- }
- },
- Dn: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.ga.Dn;
- }
- },
- pda: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.ga.pda;
- }
- },
- PO: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.ga.PO;
- }
- },
- eh: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return {
- MovieId: this.u,
- TrackingId: this.di,
- Xid: this.fa
- };
- }
- }
- });
- b.Dva = c;
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.N7 = void 0;
- b.N7 = "RepositionTraceSymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.v7 = void 0;
- b.v7 = "PlaybackInfoPanelFactorySymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.v3 = void 0;
- b.v3 = "BandwidthMeterFactorySymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.jn = void 0;
- d = b.jn || (b.jn = {});
- d[d.iT = 0] = "NOT_LOADED";
- d[d.LOADING = 1] = "LOADING";
- d[d.LOADED = 2] = "LOADED";
- d[d.VJ = 3] = "LOAD_FAILED";
- d[d.Dua = 4] = "PARSE_FAILED";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.r8 = void 0;
- b.r8 = "TrickPlayManagerSymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.g7 = void 0;
- b.g7 = "PboRequestFactorySymbol";
- }, function (d, b, a) {
- var h,
- f;
- function c(a) {
- return !(!a || !a.wC && !a.pboc || !a.code && !a.code);
- }
- function l(a) {
- return !(!a || !a.Hb);
- }
- function q(a) {
- return !!(a instanceof Error);
- }
- function n(a) {
- switch (a) {
- case "ACCOUNT_ON_HOLD":
- return f.I.$0a;
- case "STREAM_QUOTA_EXCEEDED":
- return f.I.d1a;
- case "INSUFFICICENT_MATURITY":
- return f.I.f1a;
- case "TITLE_OUT_OF_WINDOW":
- return f.I.l1a;
- case "CHOICE_MAP_ERROR":
- return f.I.c1a;
- case "BadRequest":
- return f.I.h1a;
- case "Invalid_SemVer_Format":
- return f.I.g1a;
- case "RESTRICTED_TO_TESTERS":
- return f.I.k1a;
- case "AGE_VERIFICATION_REQUIRED":
- return f.I.a1a;
- case "BLACKLISTED_IP":
- return f.I.b1a;
- case "DEVICE_EOL_WARNING":
- return f.I.G6;
- case "DEVICE_EOL_FINAL":
- return f.I.Eua;
- case "INCORRECT_PIN":
- return f.I.Iua;
- case "MOBILE_ONLY":
- return f.I.j1a;
- case "MDX_CONTROLLER_CTICKET_INVALID":
- return f.I.i1a;
- case "VIEWABLE_RESTRICTED_BY_PROFILE":
- return f.I.m1a;
- case "RESET_DEVICE":
- return f.I.Hua;
- case "RELOAD_DEVICE":
- return f.I.Gua;
- case "EXIT_DEVICE":
- return f.I.Fua;
- default:
- return f.I.Bra;
- }
- }
- function k(a, b) {
- return new h.Dc(a, n(b.code), "BadRequest" === b.code ? f.OS.IWa : void 0, b.code, void 0, b.display, void 0, b.detail, b.display, b.bladeRunnerCode ? Number(b.bladeRunnerCode) : void 0, b.alert, b.alertTag);
- }
- function p(a, b) {
- return new h.Dc(a, b.Hb, b.qd, void 0, b.ws, b.message, b.Jx, b.data);
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.mDa = b.nDa = b.xkb = b.Bkb = b.mm = b.Akb = b.mO = b.Iqb = b.PKa = void 0;
- h = a(47);
- f = a(2);
- b.PKa = c;
- b.Iqb = l;
- b.mO = q;
- b.Akb = n;
- b.mm = function (a, b) {
- return l(b) ? p(a, b) : c(b) ? k(a, b) : q(b) ? h.Dc.kY(a, b) : new h.Dc(a, void 0, void 0, void 0, void 0, "Recieved an unexpected error type", void 0, b);
- };
- b.Bkb = k;
- b.xkb = p;
- b.nDa = function (a, b, c, f, h) {
- var k,
- u,
- p,
- n;
- k = b.QRa[c];
- if (void 0 === k)
- throw {
- wC: !0,
- code: "FAIL",
- display: "Unable to build the URL for " + c + " because there was no configuration information",
- detail: b
- };
- u = k.version;
- if (void 0 === u)
- throw {
- wC: !0,
- code: "FAIL",
- display: "Unable to build the URL for " + c + " because there was no version information",
- detail: b
- };
- p = b.YG && k.serviceNonMember ? k.serviceNonMember : k.service;
- if (void 0 === p)
- throw {
- wC: !0,
- code: "FAIL",
- display: "Unable to build the URL for " + c + " because there was no service information",
- detail: b
- };
- n = k.orgOverride;
- if (void 0 === n && (n = b.tOa, void 0 === n))
- throw {
- wC: !0,
- code: "FAIL",
- display: "Unable to build the URL for " + c + " because there was no organization information",
- detail: b
- };
- return k.isPlayApiDirect ? a.knb(f) + "/" + n + "/" + p + "/" + u : a.cnb(f) + "/" + n + "/" + p + "/" + u + "/" + (void 0 === h ? "router" : h);
- };
- b.mDa = function (a, b) {
- var c;
- c = {
- "Content-Type": "text/plain"
- };
- b = b();
- a.VBa && b && (c["X-Esn"] = b.yh);
- return c;
- };
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.b8 = b.s6 = b.p8 = void 0;
- b.p8 = "TransportFactorySymbol";
- b.s6 = "MslTransportSymbol";
- b.b8 = "SslTransportSymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.T6 = void 0;
- b.T6 = "PboDispatcherSymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.h6 = void 0;
- b.h6 = "MediaRequestConstructorFactorySymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.i6 = b.D6 = void 0;
- b.D6 = "OpenConnectSideChannelSymbol";
- b.i6 = "MediaRequestDownloaderSymbol";
- }, function (d, b, a) {
- var G,
- C,
- H;
- function c(a, b, c) {
- this.type = a;
- this.size = b;
- this.Fx = c;
- }
- function l(a) {
- var b,
- f,
- h,
- k,
- u;
- a: {
- b = a.position;
- if (8 <= a.vk()) {
- f = a.Pa();
- h = a.Fs(4);
- if (!C.test(h))
- throw a.seek(b), Error("mp4-badtype");
- if (1 == f) {
- if (8 > a.vk()) {
- a.seek(b);
- b = void 0;
- break a;
- }
- f = a.Hg();
- }
- if (!(8 <= f))
- throw a.seek(b), Error("mp4-badsize");
- if ("uuid" == h) {
- if (16 > a.vk()) {
- a.seek(b);
- b = void 0;
- break a;
- }
- h = a.Qy();
- }
- b = {
- type: h,
- offset: b,
- size: f,
- Fx: b + f - a.position
- };
- } else
- b = void 0;
- }
- if (b && b.Fx <= a.vk()) {
- k = b.type;
- f = b.size;
- u = b.Fx;
- h = new c(k, f, u);
- k = H[k];
- if (a.vk() < u)
- throw Error("mp4-shortcontent");
- k ? (u = new G(a.Qd(u)), k(h, u)) : a.skip(u);
- a.seek(b.offset);
- h.raw = a.Qd(f);
- return h;
- }
- }
- function q(a, b) {
- for (var c = [], f = {}, h, k; 0 < b.vk(); ) {
- h = l(b);
- if (!h)
- throw Error("mp4-badchildren");
- k = h.type;
- c.push(h);
- f[k] || (f[k] = h);
- }
- a.children = c;
- a.lea = f;
- }
- function n(a, b) {
- a.version = b.Bc(1);
- a.lf = b.Bc(3);
- }
- function k(a, b) {
- b.skip(6);
- a.agb = b.Rb();
- b.skip(8);
- a.channelCount = b.Rb();
- a.RC = b.Rb();
- b.skip(4);
- a.sampleRate = b.Rb();
- b.skip(2);
- q(a, b);
- }
- function p(a, b) {
- var c;
- b.skip(6);
- a.agb = b.Rb();
- b.skip(16);
- a.width = b.Rb();
- a.height = b.Rb();
- a.qTb = b.Pa();
- a.EWb = b.Pa();
- b.skip(4);
- a.tkb = b.Rb();
- c = b.Ae();
- a.Qcb = b.Fs(c);
- b.skip(31 - c);
- a.depth = b.Rb();
- b.skip(2);
- q(a, b);
- }
- function h(a, b) {
- n(a, b);
- a.$Rb = b.Bc(3);
- a.aSb = b.Ae();
- a.js = b.Qd(16);
- }
- function f(a, b) {
- for (var c = [], f; b--; )
- f = a.Rb(), c.push(a.Qd(f));
- return c;
- }
- function u(a) {
- var b;
- b = a.Qd(2);
- a = {
- IVb: b[1] >> 1 & 7,
- HVb: !!(b[1] & 1),
- AVb: a.Rb()
- };
- g(a, (b[0] << 8 | b[1]) >> 4);
- return a;
- }
- function g(a, b) {
- a.BVb = b >> 4 & 3;
- a.GVb = b >> 2 & 3;
- a.EVb = b & 3;
- return a;
- }
- G = a(641);
- C = /^[a-zA-Z0-9-]{4,4}$/;
- c.prototype.Yx = function (a) {
- var b,
- c,
- f,
- h,
- k;
- b = this;
- a = a.split("/");
- for (h = 0; h < a.length && b; h++) {
- f = a[h].split("|");
- c = void 0;
- for (k = 0; k < f.length && !c; k++)
- c = f[k], c = b.lea && b.lea[c];
- b = c;
- }
- return b;
- };
- c.prototype.toString = function () {
- return "[" + this.type + "]";
- };
- H = {
- ftyp: function (a, b) {
- a.WTb = b.Fs(4);
- a.wUb = b.Pa();
- for (a.Icb = []; 4 <= b.vk(); )
- a.Icb.push(b.Fs(4));
- },
- moov: q,
- sidx: function (a, b) {
- n(a, b);
- a.qVb = b.Pa();
- a.nna = b.Pa();
- a.sda = 1 <= a.version ? b.Hg() : b.Pa();
- a.oea = 1 <= a.version ? b.Hg() : b.Pa();
- b.skip(2);
- for (var c = b.Rb(), f = [], h, k; c--; ) {
- h = b.Pa();
- k = h >> 31;
- if (0 !== k)
- throw Error("mp4-badsdix");
- h &= 2147483647;
- k = b.Pa();
- b.skip(4);
- f.push({
- size: h,
- duration: k
- });
- }
- a.rVb = f;
- },
- moof: q,
- mvhd: function (a, b) {
- var c;
- n(a, b);
- c = 1 <= a.version ? 8 : 4;
- a.Qh = b.Bc(c);
- a.modificationTime = b.Bc(c);
- a.nna = b.Pa();
- a.duration = b.Bc(c);
- a.bQa = b.PP();
- a.volume = b.c1();
- b.skip(70);
- a.HUb = b.Pa();
- },
- pssh: function (a, b) {
- var c;
- n(a, b);
- a.Ohb = b.Qy();
- c = b.Pa();
- a.data = b.Qd(c);
- },
- trak: q,
- mdia: q,
- minf: q,
- stbl: q,
- stsd: function (a, b) {
- n(a, b);
- b.Pa();
- q(a, b);
- },
- encv: p,
- avc1: p,
- hvcC: p,
- hev1: p,
- mp4a: k,
- enca: k,
- "ec-3": k,
- avcC: function (a, b) {
- a.version = b.Ae();
- a.cRb = b.Ae();
- a.lVb = b.Ae();
- a.bRb = b.Ae();
- a.NTb = (b.Ae() & 3) + 1;
- a.RVb = f(b, b.Ae() & 31);
- a.aVb = f(b, b.Ae());
- },
- pasp: function (a, b) {
- a.kTb = b.Pa();
- a.CWb = b.Pa();
- },
- sinf: q,
- frma: function (a, b) {
- a.VRb = b.Fs(4);
- },
- schm: function (a, b) {
- n(a, b);
- a.vCb = b.Fs(4);
- a.LVb = b.Pa();
- a.lf & 1 && (a.KVb = b.Vka());
- },
- schi: q,
- tenc: h,
- mvex: q,
- trex: function (a, b) {
- n(a, b);
- a.eb = b.Pa();
- a.Dgb = b.Pa();
- a.aG = b.Pa();
- a.nFa = b.Pa();
- a.mFa = u(b);
- },
- traf: q,
- tfhd: function (a, b) {
- var c;
- n(a, b);
- a.eb = b.Pa();
- c = a.lf;
- c & 1 && (a.eRb = b.Hg());
- c & 2 && (a.DVb = b.Pa());
- c & 8 && (a.aG = b.Pa());
- c & 16 && (a.nFa = b.Pa());
- c & 32 && (a.mFa = u(b));
- },
- saio: function (a, b) {
- n(a, b);
- a.lf & 1 && (a.kab = b.Pa(), a.lab = b.Pa());
- for (var c = 1 <= a.version ? 8 : 4, f = b.Pa(), h = []; f--; )
- h.push(b.Bc(c));
- a.qRa = h;
- },
- mdat: function (a, b) {
- a.data = b.Qd(b.vk());
- },
- tkhd: function (a, b) {
- var c;
- n(a, b);
- c = 1 <= a.version ? 8 : 4;
- a.Qh = b.Bc(c);
- a.modificationTime = b.Bc(c);
- a.eb = b.Pa();
- b.skip(4);
- a.duration = b.Bc(c);
- b.skip(8);
- a.msb = b.Rb();
- a.e$a = b.Rb();
- a.volume = b.c1();
- b.skip(2);
- b.skip(36);
- a.width = b.PP();
- a.height = b.PP();
- },
- mdhd: function (a, b) {
- var c;
- n(a, b);
- c = 1 <= a.version ? 8 : 4;
- a.Qh = b.Bc(c);
- a.modificationTime = b.Bc(c);
- a.nna = b.Pa();
- a.duration = b.Bc(c);
- c = b.Rb();
- a.language = String.fromCharCode((c >> 10 & 31) + 96) + String.fromCharCode((c >> 5 & 31) + 96) + String.fromCharCode((c & 31) + 96);
- b.skip(2);
- },
- mfhd: function (a, b) {
- n(a, b);
- a.QVb = b.Pa();
- },
- tfdt: function (a, b) {
- n(a, b);
- a.jM = b.Bc(1 <= a.version ? 8 : 4);
- 8 == b.vk() && b.skip(8);
- },
- saiz: function (a, b) {
- n(a, b);
- a.lf & 1 && (a.kab = b.Pa(), a.lab = b.Pa());
- for (var c = b.Ae(), f = b.Pa(), h = []; f--; )
- h.push(c || b.Ae());
- a.FVb = h;
- },
- trun: function (a, b) {
- var c,
- f;
- n(a, b);
- c = b.Pa();
- f = a.lf;
- f & 1 && (a.XRb = b.Pa());
- f & 4 && (a.KSb = u(b));
- for (var h = [], k; c--; )
- k = {},
- f & 256 && (k.duration = b.Pa()),
- f & 512 && (k.size = b.Pa()),
- f & 1024 && (k.lf = b.Pa()),
- f & 2048 && (k.MRb = b.Pa()),
- h.push(k);
- a.up = h;
- },
- sdtp: function (a, b) {
- n(a, b);
- for (var c = []; 0 < b.vk(); )
- c.push(g({}, b.Ae()));
- a.up = c;
- },
- "4E657466-6C69-7850-6966-665374726D21": function (a, b) {
- n(a, b);
- a.fileSize = b.Hg();
- a.nna = b.Hg();
- a.duration = b.Hg();
- a.YNa = b.Hg();
- a.VVb = b.Hg();
- 1 <= a.version && (a.CUb = b.Hg(), a.DUb = b.Pa(), a.ZNa = b.Hg(), a.XGa = b.Pa(), a.KGa = b.Qy());
- },
- "A2394F52-5A9B-4F14-A244-6C427C648DF4": function (a, b) {
- n(a, b);
- a.lf & 1 && (a.UQb = b.Bc(3), a.JTb = b.Ae(), a.Srb = b.Qy());
- a.zVb = b.Pa();
- a.jab = b.Qd(b.vk());
- },
- "4E657466-6C69-7846-7261-6D6552617465": function (a, b) {
- n(a, b);
- a.n0 = b.Pa();
- a.aN = b.Rb();
- },
- "8974DBCE-7BE7-4C51-84F9-7148F9882554": h,
- "636F6D2E-6E65-7466-6C69-782E6974726B": q,
- "636F6D2E-6E65-7466-6C69-782E68696E66": function (a, b) {
- n(a, b);
- a.hW = b.Qy();
- a.Qh = b.Hg();
- a.u = b.Hg();
- a.xl = b.Hg();
- a.w1 = b.Rb();
- a.x1 = b.Rb();
- a.Vrb = b.Qd(16);
- a.JFb = b.Qd(16);
- },
- "636F6D2E-6E65-7466-6C69-782E76696E66": function (a, b) {
- n(a, b);
- a.sRb = b.Qd(b.vk());
- },
- "636F6D2E-6E65-7466-6C69-782E6D696478": function (a, b) {
- var c;
- n(a, b);
- a.OCb = b.Hg();
- c = b.Pa();
- a.Va = [];
- for (var f = 0; f < c; f++)
- a.Va.push({
- duration: b.Pa(),
- size: b.Rb()
- });
- },
- "636F6D2E-6E65-7466-6C69-782E69736567": q,
- "636F6D2E-6E65-7466-6C69-782E73696478": function (a, b) {
- var c;
- n(a, b);
- a.hW = b.Qy();
- a.duration = b.Pa();
- c = b.Pa();
- a.up = [];
- for (var f = 0; f < c; f++)
- a.up.push({
- Bj: b.Pa(),
- duration: b.Pa(),
- u0: b.Rb(),
- v0: b.Rb(),
- b2: b.Rb(),
- c2: b.Rb(),
- gs: b.Hg(),
- SG: b.Pa()
- });
- },
- "636F6D2E-6E65-7466-6C69-782E73656E63": function (a, b) {
- var c,
- f,
- k,
- u;
- n(a, b);
- c = b.Pa();
- f = b.Ae();
- a.up = [];
- for (var h = 0; h < c; h++) {
- k = b.Ae();
- u = k >> 6;
- k = k & 63;
- 0 != u && 0 === k && (k = f);
- a.up.push({
- lGa: u,
- oy: b.Qd(k)
- });
- }
- }
- };
- d.P = {
- oVb: function (a, b) {
- a = new G(a);
- b && a.seek(b);
- return l(a);
- },
- Tka: function (a, b) {
- var c;
- if (!a)
- throw Error("mp4-badinput");
- a = new G(a);
- c = [];
- for (b && a.seek(b); b = l(a); )
- c.push(b);
- return c;
- }
- };
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.P3 = void 0;
- b.P3 = "ChunkMediaSymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.g6 = void 0;
- b.g6 = "MediaHttpSymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.C7 = void 0;
- b.C7 = "PrefetchEventsConfigSymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.D8 = void 0;
- b.D8 = "WindowUtilsSymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.z6 = void 0;
- b.z6 = "NfCryptoSymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.M5 = void 0;
- b.M5 = "LogDisplayConfigSymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.t4 = b.u4 = void 0;
- b.u4 = "DxManagerSymbol";
- b.t4 = "DxManagerProviderSymbol";
- }, function (d, b, a) {
- var c,
- l,
- q,
- n,
- k,
- p;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.tK = b.AD = b.wpa = b.vpa = b.upa = void 0;
- c = a(0);
- l = a(1);
- q = a(25);
- n = a(21);
- k = a(664);
- p = a(10);
- b.upa = "position:fixed;left:0px;top:0px;right:0px;bottom:100px;z-index:1;background-color:rgba(255,255,255,.65)";
- b.vpa = "position:fixed;left:100px;top:30px;right:100px;bottom:210px;z-index:9999;color:#000;overflow:auto;box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.2), 0 5px 5px 0 rgba(0, 0, 0, 0.24);background-color:rgba(255,255,255,.65);";
- b.wpa = "position:fixed;left:100px;right:100px;height=30px;bottom:130px;z-index:9999;color:#000;overflow:auto;box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.2), 0 5px 5px 0 rgba(0, 0, 0, 0.24);background-color:rgba(255,255,255,.65);";
- b.AD = "";
- d = function () {
- var f;
- function a(a, b, c) {
- this.gd = a;
- this.is = b;
- this.prefix = c;
- this.FP = this.Wn = !1;
- this.pDa = new k.Xxa(b);
- }
- a.prototype.show = function () {
- this.Wn || (this.bdb(), this.QF && p.te.body.appendChild(this.QF), this.Mf && p.te.body.appendChild(this.Mf), this.mM && p.te.body.appendChild(this.mM), this.eD && p.te.getElementsByTagName("head")[0].appendChild(this.eD), this.Wn = !0, this.refresh());
- };
- a.prototype.Xo = function () {
- this.Wn && (this.Mf && p.te.body.removeChild(this.Mf), this.mM && p.te.body.removeChild(this.mM), this.QF && p.te.body.removeChild(this.QF), this.eD && p.te.getElementsByTagName("head")[0].removeChild(this.eD), this.eD = this.VQ = this.QF = this.mM = this.Mf = void 0, this.Wn = !1);
- };
- a.prototype.toggle = function () {
- this.Wn ? this.Xo() : this.show();
- };
- a.prototype.HGb = function () {
- (this.FP = !this.FP) || this.refresh();
- };
- a.prototype.tlb = function (a) {
- return "table." + a + '-display-table {border-collapse:collapse;font-family:"Lucida Console", Monaco, monospace;font-size:small}' + ("table." + a + "-display-table tr:nth-child(2n+2) {background-color: #EAF3FF;}") + ("table." + a + "-display-table tr:nth-child(2n+3) {background-color: #fff;}") + ("table." + a + "-display-table tr:nth-child(0n+1) {background-color: lightgray;}") + ("table." + a + "-display-table, th, td {padding: 2px;text-align: left;vertical-align: top;border-right:solid 1px gray;border-left:solid 1px gray;}") + ("table." + a + "-display-table, th {border-top:solid 1px gray;border-bottom:solid 1px gray}") + ("span." + a + "-display-indexheader {margin-left:5px;}") + ("span." + a + "-display-indexvalue {margin-left:5px;}") + ("span." + a + "-display-keyheader {margin-left:5px;}") + ("span." + a + "-display-keyvalue {margin-left:5px;}") + ("span." + a + "-display-valueheader {margin-left:5px;}") + ("ul." + a + "-display-tree {margin-top: 0px;margin-bottom: 0px;margin-right: 5px;margin-left: -20px;}") + ("ul." + a + "-display-tree li {list-style-type: none; position: relative;}") + ("ul." + a + "-display-tree li ul {display: none;}") + ("ul." + a + "-display-tree li.open > ul {display: block;}") + ("ul." + a + "-display-tree li a {color: black;text-decoration: none;}") + ("ul." + a + "-display-tree li a:before {height: 1em;padding: 0 .1em;font-size: .8em;display: block;position: absolute;left: -1.3em;top: .2em;}") + ("ul." + a + "-display-tree li > a:not(:last-child):before {content: '+';}") + ("ul." + a + "-display-tree li.open > a:not(:last-child):before {content: '-';}") + ("div." + a + "-display-div {float:right;display:flex;align-items:center;height:30px;width:130px;margin:10px;background-color:#C6CCD2;transition: all 200ms ease-in-out 0s;border-radius:6px;font-weight:300;font-size:16px;border-style:none;}") + ("button." + a + "-display-btn {float:right;display:inline-block;height:30px;width:100px;padding:3px;margin:10px;background-color:#C6CCD2;transition: all 200ms ease-in-out 0s;border-radius:6px;font-weight:300;font-size:16px;border-style:none;}") + ("select." + a + "-display-select {float:right;display:inline-block;height:30px;width:100px;padding:3px;margin:10px;background-color:#C6CCD2;transition: all 200ms ease-in-out 0s;border-radius:6px;font-weight:300;font-size:16px;border-style:none;}") + ("ul." + a + "-display-item-inline {margin:0;padding:0}") + ("." + a + "-display-btn:hover, ." + a + "-display-btn:focus, ." + a + "-display-btn:active {background: none repeat scroll 0 0 #B8BFC7 !important; }") + ("button." + a + "-display-btn-inline {float:right;display:inline-block;height:20px;width:40px;background-color:#C6CCD2;transition: all 200ms ease-in-out 0s;border-radius:6px;font-weight:300;font-size:12px;border-style:none;padding:0;color:palevioletred;background:rgba(0,0,0,0)}") + ("." + a + "-display-btn-inline:hover, ." + a + "-display-btn-inline:focus, ." + a + "-display-btn-inline:active {background: none repeat scroll 0 0 #B8BFC7 !important; }");
- };
- a.prototype.bdb = function () {
- var a;
- a = this;
- this.eD = p.te.createElement("style");
- this.eD.type = "text/css";
- this.eD.innerHTML = this.tlb(this.prefix);
- this.mM = this.gd.createElement("div", b.upa, void 0, {
- "class": this.prefix + "-display-blur"
- });
- this.Mf = this.gd.createElement("div", b.vpa, void 0, {
- "class": this.prefix + "-display"
- });
- this.QF = this.gd.createElement("div", b.wpa, void 0, {
- "class": this.prefix + "-display"
- });
- this.OHa().forEach(function (b) {
- return a.QF.appendChild(b);
- });
- };
- a.prototype.edb = function (a) {
- a = this.gd.createElement("div", "", a, {
- "class": this.prefix + "-display-tree1"
- });
- for (var b = a.querySelectorAll("ul." + this.prefix + "-display-tree a:not(:last-child)"), c = 0; c < b.length; c++)
- b[c].addEventListener("click", function (a) {
- var b,
- c;
- if (a = a.target.parentElement) {
- b = a.classList;
- if (b.contains("open")) {
- b.remove("open");
- try {
- c = a.querySelectorAll(":scope .open");
- for (a = 0; a < c.length; a++)
- c[a].classList.remove("open");
- } catch (K) {}
- } else
- b.add("open");
- }
- });
- return a;
- };
- a.prototype.refresh = function () {
- var a;
- a = this;
- return !this.Wn || this.FP ? Promise.resolve() : this.AQa().then(function (b) {
- if (b && (b = a.edb(b), a.Mf)) {
- a.VQ && (a.Mf.removeChild(a.VQ), a.VQ = void 0);
- a.VQ = b;
- a.Mf.appendChild(a.VQ);
- b = a.Mf.querySelectorAll("button." + a.prefix + "-display-btn-inline");
- for (var c = 0; c < b.length; ++c)
- b[c].addEventListener("click", a.lRa);
- (b = a.Mf.querySelector("#" + a.prefix + "-display-close-btn")) && b.addEventListener("click", function () {
- a.toggle();
- });
- }
- });
- };
- f = a;
- return f = c.__decorate([l.N(), c.__param(0, l.l(q.af)), c.__param(1, l.l(n.ee)), c.__param(2, l.ei())], f);
- }
- ();
- b.tK = d;
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.s4 = void 0;
- b.s4 = "DxDisplaySymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.V6 = b.pT = void 0;
- b.pT = {
- oO: "keepAlive",
- splice: "splice"
- };
- b.V6 = "PboEventSenderSymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.w7 = void 0;
- b.w7 = "PlaydataConfigSymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.S6 = void 0;
- b.S6 = "PboCachedPlaydataSymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.X6 = void 0;
- b.X6 = "PboLicenseRequestTransformerSymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.f7 = void 0;
- b.f7 = "PboReleaseLicenseCommandSymbol";
- }, function (d, b, a) {
- var k,
- p,
- h,
- f,
- u,
- g;
- function c(a) {
- var b;
- a = new h.xJ(a);
- if (1481462272 != a.Pa())
- throw Error("Invalid header");
- b = {
- XMR: {
- Version: a.Pa(),
- RightsID: a.Lf(16)
- }
- };
- l(a, b.XMR, a.buffer.length);
- return b;
- }
- function l(a, b, c) {
- var f,
- h,
- k,
- u,
- p;
- for (; a.position < c; ) {
- f = a.Rb();
- h = a.Pa();
- h = h - 8;
- switch (f) {
- case 1:
- k = "OuterContainer";
- break;
- case 2:
- k = "GlobalPolicy";
- break;
- case 3:
- k = "MinimumEnvironment";
- break;
- case 4:
- k = "PlaybackPolicy";
- break;
- case 5:
- k = "OutputProtection";
- break;
- case 6:
- k = "UplinkKID";
- break;
- case 7:
- k = "ExplicitAnalogVideoOutputProtectionContainer";
- break;
- case 8:
- k = "AnalogVideoOutputConfiguration";
- break;
- case 9:
- k = "KeyMaterial";
- break;
- case 10:
- k = "ContentKey";
- break;
- case 11:
- k = "Signature";
- break;
- case 12:
- k = "DeviceIdentification";
- break;
- case 13:
- k = "Settings";
- break;
- case 18:
- k = "ExpirationRestriction";
- break;
- case 42:
- k = "ECCKey";
- break;
- case 48:
- k = "ExpirationAfterFirstPlayRestriction";
- break;
- case 50:
- k = "PlayReadyRevocationInformationVersion";
- break;
- case 51:
- k = "EmbeddedLicenseSettings";
- break;
- case 52:
- k = "SecurityLevel";
- break;
- case 54:
- k = "PlayEnabler";
- break;
- case 57:
- k = "PlayEnablerType";
- break;
- case 85:
- k = "RealTimeExpirationRestriction";
- break;
- default:
- k = "Other";
- }
- u = {
- Type: q(f)
- };
- p = b[k];
- p ? g.isArray(p) ? p.push(u) : (b[k] = [], b[k].push(p), b[k].push(u)) : b[k] = u;
- switch (f) {
- case 1:
- case 2:
- case 4:
- case 7:
- case 9:
- case 54:
- l(a, u, a.position + h);
- break;
- case 5:
- u.Reserved1 = a.Rb();
- u.MinimumUncompressedDigitalVideoOutputProtectionLevel = a.Rb();
- u.MinimumAnalogVideoOutputProtectionLevel = a.Rb();
- u.Reserved2 = a.Rb();
- u.MinimumUncompressedDigitalAudioOutputProtectionLevel = a.Rb();
- break;
- case 10:
- u.Reserved = a.Lf(16);
- u.SymmetricCipherType = a.Rb();
- u.AsymmetricCipherType = a.Rb();
- h = a.Rb();
- u.EncryptedKeyLength = h;
- f = a.Lf(h);
- u.EncryptedKeyData = 10 >= h ? f : f.substring(0, 4) + "..." + f.substring(f.length - 4, f.length);
- break;
- case 11:
- u.SignatureType = a.Lf(2);
- h = a.Rb();
- f = a.Lf(h);
- u.SignatureData = 10 >= h ? f : f.substring(0, 4) + "..." + f.substring(f.length - 4, f.length);
- break;
- case 13:
- u.Reserved = a.Rb();
- break;
- case 18:
- u.BeginDate = a.Pa();
- u.EndDate = a.Pa();
- break;
- case 42:
- u.CurveType = a.Lf(2);
- h = a.Rb();
- f = a.Lf(h);
- u.Key = 10 >= h ? f : f.substring(0, 4) + "..." + f.substring(f.length - 4, f.length);
- break;
- case 48:
- u.ExpireAfterFirstPlay = a.Pa();
- break;
- case 50:
- u.Sequence = a.Pa();
- break;
- case 51:
- u.LicenseProcessingIndicator = a.Rb();
- break;
- case 52:
- u.MinimumSecurityLevel = a.Rb();
- break;
- case 57:
- u.PlayEnablerType = n(a.Lf(16));
- break;
- case 85:
- break;
- default:
- u.OtherData = a.Lf(h);
- }
- }
- }
- function q(a) {
- return "0x" + a.toString(16);
- }
- function n(a) {
- return a.substring(6, 8) + a.substring(4, 6) + a.substring(2, 4) + a.substring(0, 2) + "-" + a.substring(10, 12) + a.substring(8, 10) + "-" + a.substring(14, 16) + a.substring(12, 14) + "-" + a.substring(16, 20) + "-" + a.substring(20, 32);
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.qgb = b.rgb = b.pgb = b.ogb = b.ngb = void 0;
- k = a(9);
- p = a(5);
- h = a(150);
- f = a(125);
- u = a(201);
- g = a(15);
- b.ngb = function (a, b, h) {
- switch (b) {
- case k.lS:
- a && (a = p.VCa(a), u.doa(a, function (a) {
- a.V && (a = a.object) && (a = f.THa(a, "Body", "AcquireLicenseResponse", "AcquireLicenseResult", "Response", "LicenseResponse", "Licenses", "License")) && (a = f.ROa(a)) && (a = p.am(a)) && (a = c(a)) && h(a);
- }));
- }
- };
- b.ogb = c;
- b.pgb = l;
- b.rgb = q;
- b.qgb = n;
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Q6 = void 0;
- b.Q6 = "PboAcquireLicenseCommandSymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.m5 = void 0;
- b.m5 = "HttpRequesterSymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.K4 = void 0;
- b.K4 = "FtlDataParserSymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.y6 = void 0;
- b.y6 = "NetworkMonitorSymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.G8 = void 0;
- b.G8 = "XhrFactorySymbol";
- }, function (d, b, a) {
- var c,
- l,
- q,
- n,
- k,
- p,
- h,
- f,
- u,
- g;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Aqa = void 0;
- c = a(0);
- l = a(152);
- q = a(77);
- n = a(20);
- k = a(2);
- p = a(16);
- h = a(10);
- f = a(15);
- u = a(1);
- g = a(14);
- d = function () {
- var b;
- function a(a) {
- this.config = a;
- }
- a.prototype.construct = function (a, b) {
- var c,
- f,
- h;
- c = this;
- f = {};
- a.forEach(function (a) {
- var b;
- b = a.url;
- f[b] || (f[b] = []);
- f[b].push(a);
- });
- h = [];
- n.Ad(f, function (a, f) {
- h.push(c.wob(f, b));
- });
- return {
- urls: h
- };
- };
- a.prototype.wob = function (a, b) {
- var c,
- h,
- k,
- u;
- c = this;
- h = a[0];
- k = {
- url: h.url,
- bitrate: h.O,
- cdnid: f.Xe(h.kc) ? h.kc.id : h.kc,
- dltype: h.yhb,
- id: h.md
- };
- u = {};
- a.forEach(function (a) {
- var b;
- b = c.Rqb(a) ? "fail" : "success";
- u[b] || (u[b] = []);
- u[b].push(a);
- });
- n.Ad(u, function (a, f) {
- "fail" === a ? k.failures = c.imb(f, b) : "success" === a && (k.downloads = c.Zlb(f, b));
- });
- return k;
- };
- a.prototype.Zlb = function (a, b) {
- var c,
- f,
- h;
- c = this;
- f = {};
- a.forEach(function (a) {
- var b;
- b = a.wcb;
- f[b] || (f[b] = []);
- f[b].push(a);
- });
- h = [];
- n.Ad(f, function (a, f) {
- var k;
- k = [];
- f.forEach(function (f) {
- k.push(f);
- c.Eqb(f) && (h.push(c.WHa(k, b, a)), k = []);
- });
- 0 < k.length && h.push(c.WHa(k, b, a));
- });
- return h;
- };
- a.prototype.WHa = function (a, b, c) {
- var n;
- for (var f = a.sort(function (a, b) {
- return a.Bk.oh < b.Bk.oh ? -1 : a.Bk.oh > b.Bk.oh ? 1 : 0;
- }), h = f[0].Bk, k = h.requestTime, u = h.oh, h = h.Im, p = 1; p < a.length; p++) {
- n = a[p].Bk;
- n.requestTime < k && (k = n.requestTime);
- n.oh < u && (u = n.oh);
- n.Im > h && (h = n.Im);
- }
- p = this.znb(f);
- n = f[f.length - 1];
- return {
- time: k - b,
- tcpid: c ? parseInt(c) : -1,
- tresp: u - k,
- first: p,
- ranges: this.Anb(f, p),
- dur: h - u,
- trace: this.mob(a),
- status: this.RY(n)
- };
- };
- a.prototype.znb = function (a) {
- var b;
- b = 0;
- a.forEach(function (a) {
- a.Iq && (b = h.Wm(b, a.Iq[0]));
- });
- return b;
- };
- a.prototype.Anb = function (a, b) {
- var c;
- c = [];
- a.forEach(function (a) {
- a.Iq ? c.push([a.Iq[0] - b, a.Iq[1] - b]) : c.push([0, -1]);
- });
- return c;
- };
- a.prototype.mob = function (a) {
- var b,
- c;
- b = [];
- a.forEach(function (a) {
- var f;
- a = a.Bk;
- if (c) {
- f = a.requestTime - c.Im;
- 0 < f && b.push([f, -2]);
- f = h.Ml(c.Im, a.requestTime);
- f = a.oh - f;
- 0 < f && b.push([f, -3]);
- }
- b.push([a.Im - a.oh, a.Fx || 0]);
- c = a;
- });
- return b;
- };
- a.prototype.Eqb = function (a) {
- if (a.ha === k.I.ow || a.ha === k.I.Hz)
- return !0;
- };
- a.prototype.RY = function (a) {
- if (a.V)
- return "complete";
- if (a.ha === k.I.ow)
- return "abort";
- if (a.ha === k.I.Hz)
- return "stall";
- p.Xa(!1, "download status should never be: other");
- return "other";
- };
- a.prototype.imb = function (a, b) {
- var c,
- f;
- c = this;
- f = [];
- a.forEach(function (a) {
- var h;
- h = a.Bk;
- a = {
- time: h.oh - b,
- tresp: h.oh - h.requestTime,
- dur: h.Im - h.oh,
- range: a.Iq,
- reason: c.Cnb(a),
- httpcode: a.Ui,
- nwerr: l.Afa(a.ha)
- };
- f.push(a);
- });
- return f;
- };
- a.prototype.Cnb = function (a) {
- return a.Ui || a.ha === k.I.NJ ? "http" : a.ha === k.I.PJ ? "timeout" : "network";
- };
- a.prototype.Rqb = function (a) {
- return a.V || void 0 === a.V || a.ha === k.I.ow || a.ha === k.I.Hz ? !1 : !0;
- };
- a.prototype.odb = function (a) {
- var b,
- c,
- f,
- h,
- k,
- u;
- b = a.request;
- c = b.stream;
- f = b.track;
- h = b.url;
- k = this.Wlb(f, h);
- switch (k) {
- case q.Mg.audio:
- case q.Mg.video:
- u = b.stream.md;
- break;
- case q.Mg.x2:
- case q.Mg.Ena:
- u = f.md;
- }
- a = {
- O: c && c.O,
- yhb: k,
- md: u,
- Bk: a.Bk,
- kc: b.kc,
- url: h,
- we: a.we,
- Ui: a.Ui,
- ha: a.ha,
- V: a.V,
- wcb: this.njb(a)
- };
- void 0 !== b.offset && void 0 != b.length && (a.Iq = [b.offset, b.offset + b.length - 1]);
- return a;
- };
- a.prototype.Wlb = function (a, b) {
- if (a)
- return a.type;
- if (0 <= b.indexOf("netflix.com")) {
- if (0 <= b.indexOf("nccp"))
- return "nccp";
- if (0 <= b.indexOf("api"))
- return "api";
- }
- return "other";
- };
- a.prototype.njb = function (a) {
- if (a.headers && (a = a.headers["X-TCP-Info"] || a.headers["x-tcp-info"]))
- return (a = a.split(";").filter(function (a) {
- return 0 == a.indexOf("port=");
- }).map(function (a) {
- return a.split("=")[1];
- })[0]) ? n.Pd(a) : a;
- };
- b = a;
- return b = c.__decorate([u.N(), c.__param(0, u.l(g.jd))], b);
- }
- ();
- b.Aqa = d;
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.o6 = void 0;
- b.o6 = "MilestonesEventBuilderSymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.m4 = void 0;
- b.m4 = "DownloadReportBuilderSymbol";
- }, function (d, b, a) {
- var c;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.jS = void 0;
- c = a(48);
- b.jS = function (a, b) {
- this.Fhb = a;
- this.size = b.MKa() ? c.wd : b;
- };
- }, function (d, b, a) {
- var l,
- q,
- n,
- k,
- p,
- h,
- f,
- u,
- g,
- G,
- C,
- H,
- D,
- K,
- J,
- m,
- r,
- ba,
- z,
- T,
- U,
- ea,
- ha,
- V;
- function c(a, b, c, f, k, d, l, A, G, R, P, T, U, x, B, L, Wa, bb, S, Ba, kb, Pb) {
- var N;
- N = this;
- this.j = a;
- this.Km = b;
- this.ETa = f;
- this.AW = k;
- this.Vh = d;
- this.Tia = l;
- this.Wda = A;
- this.Lj = G;
- this.Wc = R;
- this.tX = P;
- this.We = T;
- this.config = U;
- this.Cc = x;
- this.Ga = B;
- this.qa = L;
- this.platform = Wa;
- this.Bm = bb;
- this.AO = S;
- this.Mj = Ba;
- this.iq = kb;
- this.P_ = Pb;
- this.$Q = [];
- this.Pub = this.OZ = this.QQa = 0;
- this.gG = [];
- this.paa = !1;
- this.kv = function (a, b) {
- return function (c) {
- var f;
- f = b(c);
- if ("number" !== typeof f)
- throw Error("Event " + JSON.stringify(c) + " does not have movie Id");
- f === N.u && a(c);
- };
- };
- this.fp = this.kv(function (a) {
- N.LSa(a.SB);
- }, function (a) {
- return a.u;
- });
- this.jH = this.kv(function () {
- N.Acb();
- }, function (a) {
- return a.u;
- });
- this.QI = function () {
- N.Lc(ea.De.tGb, !1, V.ii | V.qh, {
- track: N.j.vc.value.eh
- });
- };
- this.MTa = function (a) {
- a.newValue && N.Dm && (a = {
- track: a.newValue.eh
- }, N.NB(a, N.j.qf.value && N.j.qf.value.stream, N.j.qg.value && N.j.qg.value.stream), N.Lc(ea.De.uGb, !1, V.ii | V.qh, a));
- };
- this.Dn = function (a) {
- N.Lc(ea.De.Kab, !1, V.ii | V.qh, a.newValue);
- };
- this.FFa = function () {
- var a,
- b,
- c;
- if (N.j.yj)
- try {
- a = !1;
- N.fa % N.config().eN && !N.j.iN && (a = !0, N.gG = N.gG.filter(function (a) {
- return !a.V;
- }));
- if (0 < N.gG.length) {
- b = N.tX.construct(N.gG, N.j.Ik.ca(g.ia));
- N.gG = [];
- b.erroronly = a;
- c = {};
- u.Ad(b, function (a, b) {
- c[a] = JSON.stringify(b);
- });
- N.Lc(ea.De.whb, !1, V.qh, c);
- }
- } catch (Rc) {
- N.log.error("Exception in dlreport.", Rc);
- }
- };
- this.N_ = function () {
- var a,
- b;
- if (N.j.state.value == z.qb.xd) {
- a = N.lPa();
- N.config().mla && (a.avtp = N.hz.qm().iD, N.j.Nm && N.AZ(a));
- a.midplayseq = N.Pub++;
- b = N.j.Qb.value;
- a.prstate = b === z.kb.Pc ? "playing" : b === z.kb.Lh ? "paused" : b === z.kb.br ? "ended" : "waiting";
- N.config().fDb && N.gTa("midplay");
- N.config().op && N.Cc() && N.Rga(a);
- N.Oga(a);
- N.Pga(a);
- N.Qga(a);
- N.Lc(ea.De.N_, !1, V.ii | V.qh | V.jw | V.pK, a);
- }
- };
- this.sya = /-?l(\d\d)/i;
- this.OFa = this.kv(function (a) {
- N.gG.push(N.tX.odb(a.response));
- }, function (a) {
- return a.u;
- });
- this.sX = this.kv(function (a) {
- var b,
- c,
- f,
- h,
- k,
- n;
- a = a.response;
- b = a.request;
- c = a.request.jp;
- f = b.track;
- if (f) {
- h = !a.V && a.ha != C.I.ow;
- k = f.type;
- n = a.Bk;
- if (h || N.Km.eia) {
- c = {
- dltype: k,
- url1: b.url,
- url2: a.url || "",
- cdnid: b.kc && b.kc.id,
- tresp: u.lm(n.oh - n.requestTime),
- brecv: u.hHa(n.Fx),
- trecv: u.lm(n.Im - n.oh),
- sbr: c && c.O
- };
- a.Iq && (c.range = a.Iq);
- switch (k) {
- case p.Mg.audio:
- c.adlid = b.stream.md;
- break;
- case p.Mg.video:
- c.vdlid = b.stream.md;
- break;
- case p.Mg.x2:
- c.ttdlid = f.md;
- }
- (b = ha.Afa(a.ha)) && (c.nwerr = b);
- a.Ui && (c.httperr = a.Ui);
- N.Lc(ea.De.sX, h, V.qh, c);
- }
- }
- }, function (a) {
- return a.u;
- });
- this.jk = function () {
- N.Lc(ea.De.Lab, !1, V.ii | V.jw, {
- browserua: r.Nl
- });
- };
- this.gEa = this.kv(function (a) {
- var b,
- c,
- f;
- a = a.response;
- b = a.Bk;
- c = g.Jb(b.oh);
- f = g.Jb(b.Im);
- b = D.ba(b.Fx || 0);
- b.dLa() || b.MKa() || (c = new K.I7(c, f), N.hz.UV(new J.jS(c, b)), a && a.request && a.request.jp && a.request.jp.Lb && N.AW.UV(new m.Fpa(c, b, a.request.jp.Lb)));
- }, function (a) {
- return a.u;
- });
- this.VOa = function (a) {
- var b;
- b = a.newValue;
- a.Hx && a.Hx.Aja && b || b == N.Hha || (N.cFb(N.Hha, b), N.Hha = b);
- };
- this.lu = function (a) {
- function b(a) {
- var b;
- if (N.j.Ib && N.j.Ib.sourceBuffers) {
- b = N.j.Ib.sourceBuffers.filter(function (b) {
- return b.type === a;
- }).pop();
- if (b)
- return {
- busy: b.tk(),
- updating: b.updating(),
- ranges: b.tY()
- };
- }
- }
- N.jI = "rebuffer";
- a = {
- cause: a.cause
- };
- a.cause && a.cause === n.m7 && (a.mediaTime = N.j.cc.value, a.buf_audio = b(q.VS), a.buf_video = b(q.WD));
- N.bha(N.$Q[z.kb.Pc] || 0, N.$Q[z.kb.Lh] || 0, a);
- N.fJ = N.getTime();
- ba.tc(N.DW);
- };
- this.XTa = function (a) {
- var b;
- a = a.oldValue;
- b = N.getTime();
- a === z.kb.bg ? N.$Q = [] : N.$Q[a] = (N.$Q[a] || 0) + (b - N.fsb);
- N.fsb = b;
- };
- this.qp = function (a) {
- switch (a.cause) {
- case z.Ge.xt:
- case z.Ge.sK:
- N.jI && N.fJ ? N.ryb(N.getTime() - N.fJ, N.jI) : N.Dm || N.iPa(),
- N.jI = "repos",
- N.nla(a.jP, a.qg, a.qf),
- N.fJ = N.getTime(),
- ba.tc(N.DW);
- }
- };
- this.DW = function () {
- var a;
- if (N.fJ && N.j.Qb.value !== z.kb.bg) {
- a = N.getTime() - N.fJ;
- N.Cla(a, N.Zh);
- N.Dha && N.Dha != N.j.ld.value && N.Y$a();
- N.fJ = void 0;
- N.jI = void 0;
- N.Zh = void 0;
- }
- };
- this.yba = this.kv(function () {
- N.j.Qb.value === z.kb.Pc && (N.j.Qb.removeListener(N.yba), N.ao());
- }, function () {
- return N.j.u;
- });
- this.eM = function (a) {
- N.Yrb = N.getTime();
- N.Dha = a.oldValue;
- };
- this.ao = function () {
- N.Dm || (N.Dm = !0, N.i2(!1), N.jqb(), N.config().oKa && (N.IZ = t.setTimeout(function () {
- N.Vh.flush(!1)["catch"](function () {
- return N.log.warn("failed to flush logbatcher on initialLogFlushTimeout");
- });
- N.IZ = void 0;
- }, N.config().oKa)));
- };
- this.Cf = function () {
- N.IZ && (t.clearTimeout(N.IZ), N.IZ = void 0);
- if (N.config().eN || N.config().$L)
- N.hda && (t.clearInterval(N.hda), N.hda = void 0), N.FFa();
- N.vUa && N.vUa();
- N.Dm ? N.Hda(!!N.j.Vi) : N.j.Vi ? N.i2(!0) : N.Km.background || N.iPa();
- N.ECb || (N.Lc = q.$e);
- };
- this.bEa = this.kv(function () {
- N.Cf();
- }, function (a) {
- return a.movieId;
- });
- this.fVa = function (a) {
- a.oldValue && a.Hx && a.Hx.SDa && N.Bba(a.oldValue, a.newValue, a.Hx.SDa, a.Hx.qab);
- };
- this.GPa = function (a) {
- var b;
- if (a.newValue) {
- b = a.newValue.stream;
- N.Iha != b && (N.Iha && N.sBb(N.Iha, b, a.newValue.Lo.startTime), N.Iha = b);
- }
- };
- this.ks = this.kv(function (a) {
- function b(a, b) {
- var c;
- if (!a || a.aia !== b.location) {
- c = {
- aia: b.location,
- ILa: b.locationlv,
- qDb: b.serverid,
- SC: b.servername
- };
- N.Pbb(a, b);
- return c;
- }
- }
- if ("audio" === a.mediaType) {
- if (a = b(N.Xrb, a))
- N.Xrb = a;
- } else if (a = b(N.pO, a))
- N.pO = a;
- }, function (a) {
- return N.j.Ru(a.segmentId).u;
- });
- this.vI = this.kv(function (a) {
- var b,
- c;
- b = a.mediatype;
- c = a.reason;
- "video" === b ? "serverswitchaway" === c ? (N.ai.summary.lVa++, N.ai.n_ = N.Ga.jf.ca(g.ia)) : "serverswitchback" === c && (N.ai.summary.mVa++, N.ai.n_ && (N.ai.summary.nVa.push(N.Ga.jf.ca(g.ia) - N.ai.n_), N.ai.n_ = void 0)) : "audio" === b && ("serverswitchaway" === c ? (N.ai.summary.yCa++, N.ai.i_ = N.Ga.jf.ca(g.ia)) : "serverswitchback" === c && (N.ai.summary.zCa++, N.ai.i_ && (N.ai.summary.ACa.push(N.Ga.jf.ca(g.ia) - N.ai.i_), N.ai.i_ = void 0)));
- N.Lc(ea.De.sDb, !1, V.ii | V.qh, {
- mediatype: a.mediatype,
- server: a.server,
- selreason: a.reason,
- location: a.location,
- bitrate: a.bitrate,
- confidence: a.confidence,
- throughput: a.throughput,
- oldserver: a.oldserver
- });
- }, function (a) {
- return N.j.Ru(a.segmentId).u;
- });
- this.AF = function (a) {
- N.Lc(ea.De.A$a, !1, V.qh, {
- strmsel: a.strmsel
- });
- };
- this.zF = function (a) {
- N.Lc(ea.De.z$a, !1, V.qh, {
- msg: a.msg
- });
- };
- this.KI = function (a) {
- a = H.yI(a);
- a.details && (a.details = JSON.stringify(a.details));
- N.Lc(ea.De.KFb, !0, V.ii | V.gE | V.UR, a);
- };
- this.paa = Ba.P2 || Ba.Q2;
- this.hz = f();
- this.log = h.$g(a, "LogblobBuilder");
- this.Hha = a.paused.value;
- this.u = b.u;
- this.fa = this.Km.fa;
- this.ai = {
- summary: {
- lVa: 0,
- mVa: 0,
- nVa: [],
- yCa: 0,
- zCa: 0,
- ACa: []
- },
- n_: void 0,
- i_: void 0
- };
- this.Db();
- c && this.LSa();
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.kta = void 0;
- l = a(51);
- q = a(9);
- n = a(57);
- k = a(44);
- p = a(77);
- h = a(5);
- f = a(16);
- u = a(20);
- g = a(3);
- G = a(49);
- C = a(2);
- H = a(23);
- D = a(48);
- K = a(355);
- J = a(342);
- m = a(691);
- r = a(10);
- ba = a(59);
- z = a(13);
- T = a(15);
- U = a(690);
- ea = a(348);
- ha = a(152);
- c.prototype.Db = function () {
- this.j.addEventListener(z.U.fp, this.fp);
- this.j.addEventListener(z.U.jH, this.jH);
- this.j.addEventListener(z.U.ks, this.ks);
- this.j.addEventListener(z.U.vI, this.vI);
- this.j.addEventListener(z.U.Cf, this.bEa);
- this.j.addEventListener(z.U.Nx, this.sX, q.lT);
- if (this.config().eN || this.config().$L)
- this.j.addEventListener(z.U.Nx, this.OFa), this.hda = t.setInterval(this.FFa, this.config().Ehb);
- this.config().mla && this.j.addEventListener(z.U.Nx, this.gEa);
- };
- c.prototype.LSa = function (a) {
- var b;
- b = this;
- this.aNa || (this.j.Qb.value !== z.kb.Pc || (void 0 === a ? 0 : a) ? this.j.Qb.addListener(this.yba) : this.ao(), this.j.vj.addListener(this.MTa), this.j.ld.addListener(this.eM), this.j.paused.addListener(this.VOa), this.j.qf.addListener(this.GPa), this.j.Qb.addListener(this.DW), this.j.Qb.addListener(this.XTa), this.j.xf.addListener(this.fVa), this.j.addEventListener(z.U.jk, this.jk), this.j.addEventListener(z.U.zF, this.zF), this.j.addEventListener(z.U.AF, this.AF), this.j.addEventListener(z.U.KI, this.KI), this.j.addEventListener(z.U.lu, this.lu), this.j.addEventListener(z.U.qp, this.qp), this.j.addEventListener(z.U.QI, this.QI), this.j.addEventListener(z.U.Zh, function () {
- b.Zh = !0;
- }), this.Km.Dn && this.Km.Dn.addListener(this.Dn), this.config().Bi && (this.ECb = !0), this.aNa = !0);
- };
- c.prototype.Acb = function () {
- this.Cf();
- this.aNa && (this.j.removeEventListener(z.U.fp, this.fp), this.j.removeEventListener(z.U.jH, this.jH), this.j.removeEventListener(z.U.ks, this.ks), this.j.removeEventListener(z.U.vI, this.vI), this.j.vj.removeListener(this.MTa), this.j.ld.removeListener(this.eM), this.j.paused.removeListener(this.VOa), this.j.qf.removeListener(this.GPa), this.j.Qb.removeListener(this.DW), this.j.Qb.removeListener(this.yba), this.j.Qb.removeListener(this.XTa), this.j.xf.removeListener(this.fVa), this.j.removeEventListener(z.U.Nx, this.sX), this.j.removeEventListener(z.U.Cf, this.bEa), this.j.removeEventListener(z.U.jk, this.jk), this.j.removeEventListener(z.U.zF, this.zF), this.j.removeEventListener(z.U.AF, this.AF), this.j.removeEventListener(z.U.KI, this.KI), this.j.removeEventListener(z.U.lu, this.lu), this.j.removeEventListener(z.U.qp, this.qp), this.j.removeEventListener(z.U.QI, this.QI), this.Km.Dn && this.Km.Dn.removeListener(this.Dn), this.j.removeEventListener(z.U.Nx, this.OFa), this.j.removeEventListener(z.U.Nx, this.gEa));
- };
- c.prototype.i2 = function (a) {
- var b,
- c,
- d,
- q,
- l,
- A,
- C,
- D,
- H,
- K,
- J,
- m,
- R,
- P,
- ba,
- ta,
- ha,
- x,
- B,
- L,
- S,
- W,
- Y,
- ca;
- b = {};
- try {
- b = {
- browserua: r.Nl,
- browserhref: location.href,
- playdelaysdk: u.lm(this.j.qba()),
- applicationPlaydelay: u.lm(this.j.rbb()),
- playdelay: u.lm(this.j.wbb()),
- trackid: this.j.di,
- bookmark: u.lm(this.j.VA || 0),
- pbnum: this.j.index,
- endianness: k.dIa()
- };
- this.config().Bib && (b.transitiontime = this.j.Rk, b.uiplaystarttime = this.j.Oa.G2, b.playbackrequestedat = this.j.Ik.ca(g.ia), b.clockgettime = this.getTime(), b.clockgetpreciseepoch = this.Ga.jf.ca(g.ia), b.clockgetpreciseappepoch = this.qa.$B.ca(g.ia), b.absolutestarttime = this.j.qY(), b.relativetime = this.j.Ifa());
- this.pY(b, "startplay");
- } catch (jb) {
- this.log.error("error in startplay log fields", jb);
- }
- this.j.jk && (b.blocked = this.j.jk);
- b.configversion = this.config().version;
- this.config().endpoint || (b.configendpoint = "error");
- this.j.pg && (b.playbackcontextid = this.j.pg);
- this.eKa(b);
- if (this.config().Z2 && this.j.Oa.Zna) {
- for (var f = {}, h = Object.keys(this.j.Oa.Zna), p, n = h.length; n--; )
- p = h[n], f[p.toLowerCase()] = this.j.Oa.Zna[p];
- b.vui = f;
- }
- T.la(this.j.eDa) && (b.bookmarkact = u.lm(this.j.eDa));
- (f = this.j.Uc.at && this.j.Uc.ats ? this.j.Uc.at - this.j.Uc.ats : void 0) && (b.nccpat = f);
- (f = this.j.Uc.lr && this.j.Uc.lc ? this.j.Uc.lr - this.j.Uc.lc : void 0) && (b.nccplt = f);
- (f = this.Khb()) && (b.downloadables = f);
- t._cad_global.device && T.ac(t._cad_global.device.Nda) && (b.esnSource = t._cad_global.device.Nda);
- u.tb(b, this.Bm, {
- prefix: "pi_"
- });
- (f = r.Ki && r.Ki.connection && r.Ki.connection.type) && (b.nettype = f);
- this.j.Jo && this.j.Jo.initBitrate && (b.initvbitrate = this.j.Jo.initBitrate);
- this.j.Jo && this.j.Jo.selector && (b.selector = this.j.Jo.selector);
- b.fullDlreports = this.j.fGa;
- if (this.j.state.value >= z.qb.xd)
- try {
- d = this.j.Gx();
- d && (this.hp = k.l3(d.map(function (a) {
- return a.O;
- })), this.CMa = k.l3(d.map(function (a) {
- return a.height;
- })), c = 0 < d.length ? U.qMa(d, function (a) {
- return a.O;
- }) : void 0, b.maxbitrate = this.hp, b.maxresheight = this.CMa);
- } catch (jb) {
- this.log.error("Exception computing max bitrate", jb);
- }
- try {
- q = k.ON();
- q && (b.pdltime = q);
- } catch (jb) {}
- try {
- u.tb(b, this.j.Uc, {
- prefix: "sm_"
- });
- u.tb(b, this.j.WY(), {
- prefix: "vd_"
- });
- } catch (jb) {}
- "undefined" !== typeof nrdp && nrdp.device && (b.firmware_version = nrdp.device.firmwareVersion);
- a && this.j.Hq && (b.pssh = this.j.Hq);
- this.j.Df && this.j.Df.pf && this.j.Df.pf.keySystem && (b.keysys = this.j.Df.pf.keySystem);
- if (this.config().op && this.Cc())
- try {
- d = {};
- l = this.Cc().getStats(void 0, void 0, this.j.u);
- A = this.j.qY();
- C = l.fz.Ncb;
- d.attempts = l.APa || 0;
- d.num_completed_tasks = C.length;
- D = this.Wc.Fjb;
- q = {};
- H = G.Fd.Ee.Nwa;
- K = G.Fd.Ee.nw;
- J = G.Fd.Ee.TR;
- m = G.Fd.Ee.oJ;
- R = G.Fd.Ee.SR;
- l.Dj && (q.scheduled = l.Dj - A);
- P = this.j.ya;
- P && T.la(P.Sy) && (q.preauthsent = P.Sy - this.j.mf, q.preauthreceived = P.MC - this.j.mf);
- ba = C.filter(D("type", "manifest"));
- d.mf_succ = ba.filter(D("status", H)).length;
- d.mf_fail = ba.filter(D("status", K)).length;
- ta = this.j.Uc;
- T.ac(ta.lg) && 0 > ta.lg && this.j.mf && (q.ldlsent = ta.lc, q.ldlreceived = ta.lr);
- ha = C.filter(D("type", "ldl"));
- d.ldl_succ = ha.filter(D("status", H)).length;
- d.ldl_fail = ha.filter(D("status", K)).length;
- l = !0;
- x = "ui" === this.j.pu;
- q.preauthreceived && 0 > q.preauthreceived || x || (l = !1);
- this.config().lG || (l = !1);
- B = ha.filter(D("status", J)).length;
- L = ha.filter(D("status", m)).length;
- S = ha.filter(D("status", R)).length;
- this.config().lG && 0 === B + L + S && (!q.ldlreceived || 0 <= q.ldlreceived) && (l = !1);
- if (this.config().BX) {
- W = this.j.Rn && this.j.Rn.stats;
- if (W) {
- if (W.$X && (q.headersent = W.$X - this.j.mf), W.p_ && (q.headerreceived = W.p_ - this.j.mf), W.UH && (q.prebuffstarted = W.UH - this.j.mf), W.O0 && (q.prebuffcomplete = W.O0 - this.j.mf), !q.prebuffcomplete || 0 <= q.prebuffcomplete)
- l = !1;
- } else
- l = !1;
- }
- Y = C.filter(D("type", "getHeadersAndMedia"));
- d.hm_succ = Y.filter(D("status", H)).length;
- d.hm_fail = Y.filter(D("status", K)).length;
- u.tb(b, d, {
- prefix: "pr_"
- });
- this.iq.kN && (b.eventlist = this.P_.OIa(this.j));
- b.prefetchCompleted = l;
- this.Rga(b);
- } catch (jb) {
- this.log.warn("error in collecting video prepare data", jb);
- }
- b.avtp = this.hz.qm().iD;
- this.j.Nm && this.AZ(b);
- if (this.j.vc.value)
- try {
- b.ttTrackFields = this.j.vc.value.eh;
- } catch (jb) {}
- if (C = this.j.ld && this.j.ld.value && this.j.ld.value.ic) {
- ca = {};
- C.forEach(function (a) {
- ca[a.Vf] = void 0;
- });
- b.audioProfiles = Object.keys(ca);
- }
- this.Sga(b);
- this.j.ya && "boolean" === typeof this.j.ya.Uf.VB && (b.isSupplemental = this.j.ya.Uf.VB);
- b.headerCacheHit = !!this.j.Rn;
- this.j.Rn && (b.headerCacheDataAudio = this.j.Rn.audio, b.headerCacheDataAudioFromMediaCache = this.j.Rn.audioFromMediaCache, b.headerCacheDataVideo = this.j.Rn.video, b.headerCacheDataVideoFromMediaCache = this.j.Rn.videoFromMediaCache);
- this.j.ya && (b.packageId = this.j.ya.Uf.xl);
- this.j.ya && this.j.ya.Uf.uu && (b.hasChoiceMap = !0);
- this.config().eHa && (b.forceL3WidevineCdm = !0);
- b.isNonMember = this.Lj.YG;
- this.Rrb(c);
- this.Qrb();
- this.cKa(this.j, b);
- this.dKa(this.j, b);
- this.OB(this.j, b);
- this.jy(this.j, b, this.paa);
- this.Oga(b);
- this.Pga(b);
- this.Qga(b);
- this.hKa(b);
- this.bKa(b);
- this.iKa(b);
- this.Lc(ea.De.i2, a, V.ii | V.gE | V.qh | V.pK | V.jw | V.UR | V.I4, b);
- };
- c.prototype.Cla = function (a, b) {
- b = {
- playdelay: u.lm(a),
- reason: this.jI,
- intrplayseq: this.OZ - 1,
- skipped: b
- };
- this.OB(this.j, b);
- this.Lc(ea.De.Cla, !1, V.ii | V.gE | V.qh, b);
- "rebuffer" == this.jI && this.j.Cm.s9a(Number(u.lm(a)));
- };
- c.prototype.Bba = function (a, b, c, f) {
- a = {
- moff: u.Nu(c),
- vbitrate: b.O,
- vbitrateold: a.O,
- vdlid: b.md,
- vdlidold: a.md,
- vheight: b.height,
- vheightold: a.height,
- vwidth: b.width,
- vwidthold: a.width,
- bw: f
- };
- this.OB(this.j, a);
- this.jy(this.j, a);
- this.Lc(ea.De.Bba, !1, V.qh, a);
- };
- c.prototype.sBb = function (a, b, c) {
- a = {
- moff: u.Nu(c),
- vdlidold: a.md,
- vbitrateold: a.O
- };
- this.OB(this.j, a);
- this.jy(this.j, a);
- this.NB(a, b, this.j.qg.value && this.j.qg.value.stream);
- this.Lc(ea.De.tBb, !1, V.qh, a);
- };
- c.prototype.iPa = function () {
- var a,
- b;
- a = {
- waittime: u.lm(this.j.Ifa()),
- abortedevent: "startplay",
- browserua: r.Nl,
- browserhref: location.href,
- trackid: this.j.di
- };
- this.pY(a, "endplay");
- this.iq.kN && (a.eventlist = this.P_.OIa(this.j));
- this.j.pg && (a.playbackcontextid = this.j.pg);
- this.j.Jo && this.j.Jo.initBitrate && (a.initvbitrate = this.j.Jo.initBitrate);
- try {
- b = k.ON();
- b && (a.pdltime = b);
- u.tb(a, this.j.Uc, {
- prefix: "sm_"
- });
- } catch (na) {}
- this.Mga(a, !0);
- this.iKa(a);
- this.Sga(a);
- this.fKa(a);
- this.NB(a, this.j.xf.value, this.j.kl.value);
- this.Lc(ea.De.nPa, !1, V.ii | V.qh | V.jw | V.pK, a);
- };
- c.prototype.ryb = function (a, b) {
- a = {
- waittime: u.lm(a),
- abortedevent: "resumeplay",
- browserua: r.Nl,
- resumeplayreason: b
- };
- this.j.pg && (a.playbackcontextid = this.j.pg);
- this.j.Jo && this.j.Jo.initBitrate && (a.initvbitrate = this.j.Jo.initBitrate);
- this.NB(a, this.j.xf.value, this.j.kl.value);
- this.Lc(ea.De.nPa, !1, V.ii | V.qh, a);
- };
- c.prototype.cFb = function (a, b) {
- a = {
- newstate: b ? "Paused" : "Playing",
- oldstate: a ? "Paused" : "Playing"
- };
- this.OB(this.j, a);
- this.jy(this.j, a);
- this.NB(a, this.j.qf.value && this.j.qf.value.stream, this.j.qg.value && this.j.qg.value.stream);
- this.Lc(ea.De.eFb, !1, V.ii | V.qh, a);
- };
- c.prototype.bha = function (a, b, c) {
- a = u.tb({
- vdlid: this.j.xf.value.md,
- playingms: a,
- pausedms: b,
- intrplayseq: this.OZ++
- }, c);
- this.pY(a, "intrplay");
- b = this.j.kc[l.Ac.La.VIDEO].value;
- c = this.j.kc[l.Ac.La.AUDIO].value;
- a.cdnid = a.vcdnid = b && b.id;
- a.acdnid = c && c.id;
- a.locid = this.pO && this.pO.aia;
- a.loclv = this.pO && this.pO.ILa;
- a.avtp = this.hz.qm().iD;
- this.j.Nm && (this.Mga(a, !0), this.AZ(a), this.gKa(a));
- try {
- u.tb(a, this.j.WY(), {
- prefix: "vd_"
- });
- } catch (ma) {}
- this.OB(this.j, a);
- this.jy(this.j, a);
- this.NB(a, this.j.qf.value && this.j.qf.value.stream, this.j.qg.value && this.j.qg.value.stream);
- this.Lc(ea.De.bha, !1, V.ii | V.qh, a);
- };
- c.prototype.nla = function (a, b, c) {
- a = {
- moffold: u.Nu(a),
- reposseq: this.QQa++
- };
- this.jy(this.j, a);
- this.NB(a, c && c.stream, b && b.stream);
- this.Lc(ea.De.nla, !1, V.ii | V.qh, a);
- };
- c.prototype.Y$a = function () {
- this.Lc(ea.De.cab, !1, V.ii | V.qh, {
- switchdelay: u.lm(this.getTime() - this.Yrb),
- newtrackinfo: this.j.ld.value.eb,
- oldtrackinfo: this.Dha.eb
- });
- };
- c.prototype.Pbb = function (a, b) {
- var c,
- f,
- h,
- k;
- c = b.serverid;
- f = b.serverrtt;
- h = b.serverbw;
- k = {
- locid: b.location,
- loclv: b.locationlv,
- selocaid: c,
- selcdnid: c,
- selocaname: b.servername
- };
- k.mediatype = b.mediatype;
- k.selcdnrtt = f;
- k.selcdnbw = h;
- k.selreason = b.selreason || "unknown";
- k.testreason = b.testreason;
- k.fastselthreshold = b.fastselthreshold;
- k.seldetail = b.seldetail;
- k.cdnbwdata = JSON.stringify([{
- id: c,
- rtt: f,
- bw: h
- }
- ]);
- a && (k.oldlocid = a.aia, k.oldloclv = a.ILa, k.oldocaid = a.qDb, k.oldocaname = a.SC);
- this.Lc(ea.De.EDa, !1, V.UR, k);
- };
- c.prototype.gTa = function (a) {
- var b,
- c;
- b = {};
- b.trigger = a;
- try {
- c = this.j.Cfa();
- b.subtitleqoescore = this.j.ho.bob(c);
- b.metrics = JSON.stringify(this.j.ho.Tfa(c));
- } catch (ma) {
- this.log.error("error getting subtitle qoe data", ma);
- }
- this.Lc(ea.De.LFb, !1, V.ii | V.jw | V.gE, b, "info");
- };
- c.prototype.transition = function (a) {
- this.jy(this.j, a);
- this.Lc(ea.De.transition, !1, 0, a);
- };
- c.prototype.Pnb = function (a, b) {
- if (a = a.vY())
- if (b = a[b])
- return b.sf;
- };
- c.prototype.cKa = function (a, b) {
- a.Oa.Zi && (b.isBranching = !0);
- };
- c.prototype.dKa = function (a, b) {
- b.cachedManifest = a.pu;
- b.cachedLicense = a.Bx;
- b.usedldl = this.config().lG ? ("videopreparer" === a.Bx).toString() : "not_capable";
- };
- c.prototype.OB = function (a, b) {
- var c,
- f;
- if (this.config().aqb) {
- c = a.Dfa();
- f = a.ga.ya;
- c && f && (b.segment = c, f = a.JB(), b.segmenttime = f, a = this.Pnb(a, c), null !== f && void 0 !== a && (b.segmentoffset = f - a));
- }
- };
- c.prototype.jy = function (a, b, c) {
- b.pxid = a.WPa;
- (void 0 === c ? 0 : c) && (b.playgraph_trace = a.rPa);
- };
- c.prototype.gKa = function (a) {
- var b,
- c;
- b = this.j.wga;
- c = b && b.BBb;
- b && b.ZJa && (a.htwbr = b.ZJa, a.pbtwbr = b.C0, a.hptwbr = b.Dpb);
- b && b.nRa && (a.rr = b.nRa, a.ra = b.bAb);
- b && c && 0 < (c.length || 0) && (a.qe = JSON.stringify(c));
- };
- c.prototype.Sga = function (a) {
- var b,
- c,
- f,
- h,
- k;
- b = this;
- c = this.j.sg && this.j.sg.value && this.j.sg.value.ic;
- if (c) {
- f = new Set();
- h = new Set();
- k = new Set();
- c.forEach(function (a) {
- a = a.Vf;
- f.add(a);
- h.add(a.replace(b.sya, ""));
- (a = a.match(b.sya)) && 0 < a.length && k.add(a[1]);
- });
- a.videoProfiles = [].concat(Y(f));
- a.videoProfile = 0 === h.size ? "none" : [].concat(Y(h))[0];
- a.videoProfileLevels = [].concat(Y(k));
- }
- };
- c.prototype.fKa = function (a) {
- var b,
- c,
- f;
- try {
- b = this.Wc.createElement("canvas");
- c = b.getContext("webgl") || b.getContext("experimental-webgl");
- if (c) {
- f = c.getExtension("WEBGL_debug_renderer_info");
- f && (a.WebGLRenderer = c.getParameter(f.UNMASKED_RENDERER_WEBGL), a.WebGLVendor = c.getParameter(f.UNMASKED_VENDOR_WEBGL));
- }
- } catch (ja) {}
- };
- c.prototype.bqb = function (a) {
- a.switchAwaySummary = {
- vsa: this.ai.summary.lVa,
- vsb: this.ai.summary.mVa,
- vsbt: this.ai.summary.nVa,
- asa: this.ai.summary.yCa,
- asb: this.ai.summary.zCa,
- asbt: this.ai.summary.ACa
- };
- };
- c.prototype.Hda = function (a) {
- var b,
- c,
- f,
- h,
- A;
- b = this;
- c = this.lPa();
- this.pY(c, "endplay");
- c.browserua = r.Nl;
- this.j.$v && "downloaded" === this.j.$v.RY() && (c.trickplay_ms = this.j.eR.offset, c.trickplay_res = this.j.eR.XQa);
- this.config().VUa && (c.rtinfo = this.j.Hnb());
- if (this.config().mla) {
- f = this.hz.qm().iD;
- void 0 !== c.avtp ? c.avtp_retired = f : c.avtp = f;
- f = this.AW.zlb().map(function (a) {
- return {
- cdnid: a.Dx,
- avtp: a.iD,
- tm: a.ida
- };
- });
- void 0 != c.cdnavtp ? c.cdnavtp_retired = f : c.cdnavtp = f;
- this.j.Nm && this.AZ(c);
- }
- this.eKa(c);
- c.endreason = a ? "error" : this.j.Qb.value === z.kb.br ? "ended" : "stopped";
- f = this.Bm;
- this.Wpb(f);
- f && u.tb(c, f, {
- prefix: "pi_"
- });
- f = this.j.Vi;
- a && f && C.ira(f.errorCode) && (h = "info");
- try {
- u.tb(c, this.j.Uc, {
- prefix: "sm_"
- });
- } catch (Pa) {}
- this.j.Lga && (c.inactivityTime = this.j.Lga);
- this.Mga(c, "info" !== h && a);
- this.gKa(c);
- if (this.j.XA) {
- for (var f = this.j.XA, k = this.config().WA, p = this.j.mf, n = {
- iv: k,
- seg: []
- }, d = function (a, b, c) {
- return 0 === b || void 0 === c[b - 1] ? a : a - c[b - 1];
- }, q = f.hu.map(d), d = f.dw.map(d), l, g = 0; g < q.length; g++) {
- if (q[g] || d[g])
- l ? (l.ams.push(q[g]), l.vms.push(d[g])) : l = {
- ams: [f.hu[g]],
- vms: [f.dw[g]],
- soffms: f.startTime + g * k - p
- };
- g !== q.length - 1 && q[g] && d[g] || !l || (n.seg.push(l), l = void 0);
- }
- c.bt = JSON.stringify(n);
- }
- if (this.j.J_ && 0 < this.j.J_.length) {
- A = [];
- this.j.J_.forEach(function (a) {
- A.push({
- soffms: a.time - b.j.mf,
- maxvb: a.maxvb,
- maxvb_old: a.maxvb_old,
- spts: a.spts,
- reason: a.reason
- });
- });
- c.maxvbevents = A;
- }
- this.j.UPa && (c.psdConservCount = this.j.UPa);
- a && this.fKa(c);
- this.gTa("endplay");
- this.config().op && this.Cc() && this.Rga(c);
- c.isNonMember = this.Lj.YG;
- this.Sga(c);
- this.cKa(this.j, c);
- this.dKa(this.j, c);
- this.OB(this.j, c);
- this.jy(this.j, c, this.paa);
- this.Oga(c);
- this.Pga(c);
- this.Qga(c);
- this.hKa(c);
- this.Xpb(c);
- this.bKa(c);
- this.Zpb(c);
- this.Ypb(c);
- this.bqb(c);
- this.Lc(ea.De.Hda, a, V.ii | V.gE | V.qh | V.jw | V.pK | V.I4, c, h);
- };
- c.prototype.U4a = function (a) {
- var b;
- b = [];
- return a ? Object.keys(a).map(function (a) {
- return +a;
- }) : b;
- };
- c.prototype.Khb = function () {
- var a,
- b;
- a = this;
- if (this.j.Um && this.j.Bn) {
- b = [];
- this.j.Um.concat(this.j.Bn).forEach(function (c) {
- c.ic.forEach(function (c) {
- b.push({
- dlid: c.md,
- type: c.type,
- bitrate: c.O,
- vmaf: c.wc,
- cdn_ids: a.U4a(c.Fu)
- });
- });
- });
- return JSON.stringify(b);
- }
- };
- c.prototype.Obb = function () {
- var b,
- c,
- h;
- function a(a, b) {
- var k,
- p,
- n;
- k = a.cdnId;
- p = h[k];
- n = a.vmaf;
- p || (p = {
- cdnid: k,
- dls: []
- }, h[k] = p, c.push(p));
- f.YF(a.bitrate);
- f.YF(a.duration);
- k = {
- bitrate: a.bitrate,
- tm: r.Kh(a.duration)
- };
- n && (f.YF(a.vmaf), k.vf = n);
- k[b] = u.Pd(a.downloadableId);
- p.dls.push(k);
- }
- b = this.j.Cm.alb();
- c = [];
- h = {};
- b.audio.forEach(function (b) {
- a(b, "adlid");
- });
- b.video.forEach(function (b) {
- a(b, "dlid");
- });
- return JSON.stringify(c);
- };
- c.prototype.lPa = function () {
- var a,
- b,
- c,
- h,
- k,
- p,
- n,
- d,
- q,
- A,
- C;
- a = this.j.Cm;
- b = {
- totaltime: u.Nu(a.QN()),
- totalcontenttime: u.Nu(a.nJa()),
- cdndldist: this.Obb(),
- reposcount: this.QQa,
- intrplaycount: this.OZ
- };
- try {
- c = {
- numskip: 0,
- numlowqual: 0
- };
- h = this.j.$i;
- k = h.HB();
- T.la(k) && (b.totfr = k, c.numren = k);
- k = h.GB();
- T.la(k) && (b.totdfr = k, c.numrendrop = k);
- k = h.EN();
- T.la(k) && (b.totcfr = k, c.numrenerr = k);
- k = h.DY();
- T.la(k) && (b.totfdl = k);
- b.playqualvideo = JSON.stringify(c);
- p = this.j.xf.value;
- p && (b.videofr = p.jY.toFixed(3));
- n = a.zHa();
- n && (b.abrdel = n);
- d = a.opb() && a.flb();
- d && (b.tw_vmaf = d);
- q = a.elb();
- q && u.tb(b, q);
- b.rbfrs = this.OZ;
- b.maxbitrate = this.hp;
- b.maxresheight = this.CMa;
- for (var l = this.j.LB(), g, a = 0; a < l.length; a++) {
- A = l[a];
- C = this.Km.PO.Ls(A);
- if (C) {
- f.Xa(g);
- b.maxbitrate = g ? g.O : 0;
- b.maxresheight = g ? g.height : 0;
- b.bitratefilters = C.join("|");
- break;
- }
- g = A;
- }
- this.j.$v && (b.trickplay = this.j.$v.RY());
- null !== this.j.ho.UCa && (b.avg_subt_delay = this.j.ho.UCa);
- } catch (Pa) {
- this.log.error("Exception reading some of the endplay fields", Pa);
- }
- u.tb(b, this.j.WY(), {
- prefix: "vd_"
- });
- return b;
- };
- c.prototype.getTime = function () {
- return this.qa.$b().ca(g.ia);
- };
- c.prototype.G1 = function (a) {
- a.browserua = r.Nl;
- this.Lc(ea.De.ICb, !a.success, V.ii | V.jw, a);
- this.Lc = q.$e;
- };
- c.prototype.jqb = function () {
- var a,
- b,
- c;
- a = this;
- c = [];
- this.config().Nub && (this.config().Oub.forEach(function (b) {
- c.push(t.setTimeout(a.N_, b));
- }), this.config().OMa && (b = t.setInterval(this.N_, this.config().OMa)), this.vUa = function () {
- c.forEach(function (a) {
- t.clearTimeout(a);
- });
- b && t.clearInterval(b);
- });
- };
- c.prototype.Rga = function (a) {
- var b;
- try {
- b = this.Cc().getStats();
- a.pr_cache_size = JSON.stringify(b.cache);
- a.pr_stats = JSON.stringify(b.sHa);
- } catch (na) {}
- };
- c.prototype.Oga = function (a) {
- this.log.debug("httpstats", this.We.Zb);
- u.tb(a, this.We.Zb, {
- prefix: "http_"
- });
- };
- c.prototype.Mga = function (a, b) {
- this.config().aFa && !(this.fa % this.config().aFa) && this.j.Gb && this.j.Gb.NZ && (a.ASEstats = JSON.stringify(this.j.Gb.NZ(b)));
- };
- c.prototype.AZ = function (a) {
- Object.assign(a, this.j.Nm.ub.job());
- };
- c.prototype.Pga = function (a) {
- var b;
- try {
- b = r.ir.memory;
- T.cLa(b) && (a.totalJSHeapSize = b.totalJSHeapSize, a.usedJSHeapSize = b.usedJSHeapSize, a.jsHeapSizeLimit = b.jsHeapSizeLimit);
- } catch (na) {}
- };
- c.prototype.Qga = function (a) {
- var b,
- c;
- if (this.config().wib) {
- c = null === (b = null === r.Ki || void 0 === r.Ki ? void 0 : r.Ki.connection) || void 0 === b ? void 0 : b.effectiveType;
- b = null === r.Ki || void 0 === r.Ki ? void 0 : r.Ki.deviceMemory;
- c && (a.effectiveType = c);
- b && (a.deviceMemory = b);
- }
- };
- c.prototype.hKa = function (a) {
- var b;
- b = this.j.Df;
- this.config().Hbb && b && !this.config().Dp && (a.keystatuses = this.j.Pvb(b.WSb()), this.log.trace("keystatuses", a.keystatuses));
- };
- c.prototype.bKa = function (a) {
- try {
- this.config().xM && (a.battery = this.j.llb(), this.log.trace("batterystatuses", a.battery));
- } catch (N) {}
- };
- c.prototype.Xpb = function (a) {
- this.j.dX && (a.dqec = this.j.dX);
- };
- c.prototype.Wpb = function (a) {
- this.j.zW && u.tb(a, {
- cast_interaction_counts: this.j.zW.iTb()
- });
- };
- c.prototype.iKa = function (a) {
- var b;
- b = this.j.Oa.eo;
- b && b.isUIAutoPlay && (a.isUIAutoPlay = !0);
- };
- c.prototype.Ypb = function (a) {
- this.Vda && (a.externaldisplay = this.Vda.qN);
- };
- c.prototype.Zpb = function (a) {
- this.lz && this.lz.xc && (a.media_capabilities_smooth = this.lz.xc.PEb, a.media_capabilities_efficient = this.lz.xc.Pyb, a.media_capabilities_bitrate = this.lz.xc.O, a.media_capabilities_height = this.lz.xc.height, a.media_capabilities_width = this.lz.xc.width);
- };
- c.prototype.NB = function (a, b, c) {
- c && (a.adlid = c.md, a.abitrate = c.O);
- b && (a.vdlid = b.md, a.vbitrate = b.O);
- };
- c.prototype.eKa = function (a) {
- var b,
- c;
- if (this.j.JM) {
- b = this.j.JM;
- b.NW && (a.controllerESN = b.NW);
- b.ldb && (a.controllerUiVer = b.ldb);
- if (b.kdb)
- try {
- c = JSON.parse(b.kdb);
- a.controllerGroupNames = c;
- } catch (ma) {
- this.log.error("Exception parsing controller group names", ma);
- }
- }
- };
- c.prototype.Qrb = function () {
- void 0 === this.Vda && (this.Vda = this.Wda.Ajb());
- };
- c.prototype.Rrb = function (a) {
- void 0 === this.lz && void 0 !== a && (this.lz = this.Tia.aea(a));
- };
- c.prototype.pY = function (a, b) {
- var c;
- c = this.j.Qu(b);
- c && Object.keys(c).forEach(function (b) {
- a[b] = c[b];
- });
- };
- c.prototype.Lc = function (a, b, c, f, h) {
- this.k9a(f, this.j, b, c);
- a = this.AO.Fn(a, h || (b ? "error" : "info"), f, this.Km);
- this.Vh.Lc(a);
- };
- c.prototype.k9a = function (a, b, c, h) {
- var k,
- p,
- n,
- d,
- q;
- "undefined" !== typeof nrdp && nrdp.device && nrdp.device.deviceModel && (a.devmod = nrdp.device.deviceModel);
- b.nk && (a.pbcid = b.nk);
- h & V.ii && (f.Xa(!a || void 0 === a.moff), 0 <= b.cc.value && (a.moff = u.Nu(b.cc.value)));
- if (h & V.gE) {
- k = b.kc[l.Ac.La.VIDEO].value;
- p = b.kc[l.Ac.La.AUDIO].value;
- n = b.qg.value;
- d = b.qf.value;
- k && (a.cdnid = k.id, a.cdnname = k.name);
- p && (a.acdnid = p.id, a.acdnname = p.name);
- n && (a.adlid = n.stream.md, a.abitrate = n.stream.O);
- d && (a.vdlid = d.stream.md, a.vbitrate = d.stream.O, a.vheight = d.stream.height, a.vwidth = d.stream.width);
- }
- h & V.qh && b.Gb && (a.abuflbytes = b.Maa(), a.abuflmsec = b.bM(), a.vbuflbytes = b.Xna(), a.vbuflmsec = b.uR());
- if (h & V.pK) {
- Object.assign(a, ha.Lfa());
- try {
- q = b.Mf.getBoundingClientRect();
- a.rendersize = q.width + "x" + q.height;
- a.renderpos = q.left + "x" + q.top;
- } catch (Za) {}
- }
- h & V.jw && (k = r.Ki.hardwareConcurrency, 0 <= k && (a.numcores = k), k = this.Km.pda) && (p = k.glb(), a.droppedFrames = JSON.stringify(p), k = k.MN(this.config().Whb), u.Ad(k, function (b, c) {
- a["droppedFramesP" + b] = JSON.stringify(c);
- }));
- if (h & V.UR)
- try {
- b.yj && (a.cdninfo = JSON.stringify(b.yj.map(function (a) {
- return {
- id: a.id,
- nm: a.name,
- rk: a.Xf,
- wt: a.location.weight,
- lv: a.location.level
- };
- })));
- } catch (Za) {}
- c && h & V.I4 && (f.Xa(b.Vi), (c = b.Vi) ? a = Object.assign(a, ha.Bfa(this.platform.xB, c)) : a.errorcode = C.J.Xk, a.errorcode === this.platform.xB + C.J.Mua && (a.lastSyncWithVideoElement = this.getTime() - b.TQ));
- };
- b.kta = c;
- (function (a) {
- a[a.ii = 1] = "MOFF";
- a[a.gE = 2] = "PRESENTEDSTREAMS";
- a[a.qh = 4] = "BUFFER";
- a[a.pK = 8] = "SCREEN";
- a[a.jw = 16] = "CPU";
- a[a.UR = 32] = "CDN";
- a[a.I4 = 64] = "FATALERROR";
- }
- (V || (V = {})));
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.R5 = void 0;
- b.R5 = "LogblobBuilderFactorySymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.j3 = void 0;
- b.j3 = "AppLogSinkSymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.x8 = void 0;
- b.x8 = "UuidProviderSymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.a7 = void 0;
- b.a7 = "PboLogblobCommandSymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.De = void 0;
- d = b.De || (b.De = {});
- d.Kab = "bitraterestriction";
- d.EDa = "cdnsel";
- d.Bba = "chgstrm";
- d.debug = "debug";
- d.whb = "dlreport";
- d.Hda = "endplay";
- d.bha = "intrplay";
- d.N_ = "midplay";
- d.nPa = "playbackaborted";
- d.tBb = "renderstrmswitch";
- d.nla = "repos";
- d.Cla = "resumeplay";
- d.sDb = "serversel";
- d.i2 = "startplay";
- d.eFb = "statechanged";
- d.transition = "transition";
- d.A$a = "asereport";
- d.z$a = "aseexception";
- d.cab = "audioswitch";
- d.Lab = "blockedautoplay";
- d.config = "config";
- d.gSb = "destiny_prepare";
- d.hSb = "destiny_start";
- d.eSb = "destiny_events";
- d.dSb = "destiny_cachestate";
- d.fSb = "destiny_playback";
- d.sX = "dlreq";
- d.Mv = "prepare";
- d.OSb = "ftlProbeError";
- d.ICb = "securestop";
- d.KFb = "subtitleerror";
- d.LFb = "subtitleqoe";
- d.tGb = "timedtextrebuffer";
- d.uGb = "timedtextswitch";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.l6 = void 0;
- b.l6 = "MessageQueueSymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.S5 = void 0;
- b.S5 = "LogblobSenderSymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.R6 = void 0;
- b.R6 = "PboBindDeviceCommandSymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.T3 = void 0;
- b.T3 = "CryptoKeysSymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.S3 = void 0;
- b.S3 = "CryptoDeviceIdSymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.h4 = void 0;
- b.h4 = "DeviceProviderSymbol";
- }, function (d, b) {
- function a(b, d, q) {
- if (null != q) {
- if (0 < q(b, d))
- throw a.MEa(b, d);
- } else if (b.nl && 0 < b.nl(d))
- throw a.MEa(b, d);
- this.start = b;
- this.end = d;
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.I7 = void 0;
- a.MEa = function (a, b) {
- return new RangeError("end [" + b + "] must be >= start [" + a + "]");
- };
- b.I7 = a;
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.g4 = void 0;
- b.g4 = "DeviceIdGeneratorSymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.ZS = void 0;
- b.ZS = "MslReadyNotifierSymbol";
- }, function (d, b, a) {
- var c,
- l,
- q,
- n;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.yXa = b.zpa = void 0;
- c = a(9);
- l = a(20);
- q = a(15);
- n = a(77);
- b.zpa = function (a, b, c, f, u, n, d, g, H, D) {
- var h,
- k;
- h = this;
- k = {
- Type: b,
- Bitrate: f,
- DownloadableId: c
- };
- l.tb(h, {
- track: a,
- type: b,
- md: c,
- O: f,
- wc: u,
- Vf: g,
- size: n,
- Fu: d,
- Wo: null,
- hEb: function (a, b, c, f) {
- if (q.ac(a) || q.ac(b))
- h.width = a, h.height = b, q.la(c) && q.la(f) && (h.taa = c / f * a), k.Resolution = (h.width || "") + ":" + (h.height || "");
- },
- CDb: function (a, b, c, f) {
- q.ac(a) && q.ac(b) && q.ac(c) && q.ac(f) && (h.uca = a, h.WW = b, h.VW = c, h.UW = f);
- },
- jY: H,
- bv: D,
- eh: k,
- toJSON: function () {
- return k;
- }
- });
- };
- b.yXa = function (a, b, h, f, u) {
- if (a == c.VS || a === n.Mg.audio)
- return b;
- if (a == c.WD || a === n.Mg.video)
- return h;
- if (a == n.Mg.x2)
- return f;
- if (a == n.Mg.Ena)
- return u;
- };
- }, function (d, b, a) {
- var l;
- function c(a) {
- var n,
- k,
- p,
- h,
- f,
- u,
- d;
- p = {};
- p[l.hJ] = a.localName;
- h = {};
- p[l.Ei] = h;
- f = [];
- p[l.gJ] = f;
- u = a.attributes;
- n = u.length;
- for (k = 0; k < n; k++) {
- d = u[k];
- h[d.localName] = d.value;
- }
- a = a.childNodes;
- n = a.length;
- h = {};
- for (k = 0; k < n; k++)
- switch (u = a[k], u.nodeType) {
- case b.BVa:
- u = c(u);
- d = u[l.hJ];
- u[l.e3] = p;
- f.push(u);
- p[d] ? h[d][l.nz] = u : p[d] = u;
- h[d] = u;
- break;
- case b.CVa:
- case b.zVa:
- u = u.text || u.nodeValue,
- f.push(u),
- p[l.Gp] || (p[l.Gp] = u);
- }
- return p;
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.AVa = b.zVa = b.CVa = b.sJb = b.BVa = b.tJb = b.yVa = void 0;
- l = a(125);
- b.yVa = function (a) {
- return c(a.nodeType == b.AVa ? a.documentElement : a);
- };
- b.tJb = c;
- b.BVa = 1;
- b.sJb = 2;
- b.CVa = 3;
- b.zVa = 4;
- b.AVa = 9;
- }, function (d, b, a) {
- var c,
- l;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.xVa = void 0;
- c = a(5);
- l = a(15);
- b.xVa = function (a) {
- var b,
- k;
- if (l.ev(a)) {
- b = new DOMParser().parseFromString(a, "text/xml");
- k = b.getElementsByTagName("parsererror");
- if (k && k[0]) {
- try {
- c.log.error("parser error details", {
- errornode: new XMLSerializer().serializeToString(k[0]),
- xmlData: a.slice(0, 300),
- fileSize: a.length
- });
- } catch (p) {}
- throw Error("xml parser error");
- }
- return b;
- }
- throw Error("bad xml text");
- };
- }, function (d, b, a) {
- var c,
- l;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.POa = void 0;
- c = a(202);
- l = a(201);
- b.POa = function (a, b, k, p) {
- return new Promise(function (h, f) {
- l.doa(a, function (a) {
- a.V ? c.GOa(a.object, b, k, p, function (a) {
- a.V ? h(a.entries) : f(a);
- }) : f(a);
- });
- });
- };
- }, function (d, b, a) {
- var c,
- l,
- q,
- n,
- k,
- p;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Tra = b.NS = void 0;
- c = a(0);
- l = a(7);
- q = a(4);
- n = a(727);
- k = a(726);
- p = function () {
- return function () {
- this.DF = new k.kK(100);
- this.c0 = new k.kK(100);
- };
- }
- ();
- d = function () {
- function a(a, b, c) {
- var f,
- h,
- k;
- this.K = b;
- this.G = c;
- this.yV = a;
- f = this.AA = this.vE = this.uE = 0;
- h = 0;
- k = 0;
- this.yV.length >= this.K.S_ && (this.yV.forEach(function (a) {
- !(a = a.get().kkb) || l.Y(a.avtp) || l.Y(a.neuhd) || (f += a.avtp, h += 1 * a.neuhd, k++);
- }), this.AA = k, this.uE = f / k, this.vE = h / k);
- }
- Object.defineProperties(a.prototype, {
- SCa: {
- get: function () {
- return this.uE;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- TCa: {
- get: function () {
- return this.vE;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- tDb: {
- get: function () {
- return this.AA;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- a.prototype.WZ = function () {
- return this.AA >= this.K.S_ && this.uE >= this.K.baselineHighAndStableThreshold.bwThreshold && this.vE < this.K.baselineHighAndStableThreshold.nethreshold;
- };
- return a;
- }
- ();
- b.NS = d;
- d = function (a) {
- function b(b, c, f) {
- b = a.call(this, b, c, f) || this;
- b.F8 = [];
- b.zjb = {};
- b.zTa = [];
- b.zu = new p();
- b.yV.length >= b.K.S_ && (b.xBa("avtp", b.zu.DF), b.xBa("neuhd", b.zu.c0));
- return b;
- }
- c.__extends(b, a);
- b.prototype.WZ = function () {
- var a;
- this.inb();
- a = new n.ota(this.G, this.zTa, this.Gab);
- a.xka(this.F8);
- a = a.ncb(this.K.rZ.jVb);
- return this.nIb && 1 === a && this.AA >= this.K.S_;
- };
- b.prototype.GN = function () {
- var a,
- b,
- c,
- f;
- a = {};
- b = q.time.now();
- c = new Date(b);
- f = c.getHours();
- a.currentMonoTime = b;
- a.currentTime = c.getTime();
- a.currentHour = f;
- return a;
- };
- b.prototype.VHa = function (a, b, c) {
- a = "avtp" === a ? this.uE : this.vE;
- for (var f = b.xW(), h = 0, k = "skew" === c ? 3 : 4, u = 0; u < b.ff.length; u++)
- l.Y(a) || l.Y(f) || (h += Math.pow(b.ff[u] - a, k));
- h /= b.ff.length;
- return !l.Y(f) && 0 < f ? h / Math.pow(f, k) - 3 * ("skew" === c ? 0 : 1) : NaN;
- };
- b.prototype.gIa = function (a, b, c) {
- var f;
- f = 0;
- "lte" === c ? f = a.reduce(function (a, c) {
- return c <= b ? a + 1 : a;
- }, 0) / (1 * a.length) : "gte" === c && (f = a.reduce(function (a, c) {
- return c >= b ? a + 1 : a;
- }, 0) / (1 * a.length));
- return f;
- };
- b.prototype.Wmb = function (a) {
- var b,
- c;
- b = a.Xp(25);
- c = a.Xp(50);
- a = a.Xp(75);
- return l.Y(b) || l.Y(c) || l.Y(a) ? NaN : 0 < c ? (a - b) / c : NaN;
- };
- b.prototype.rlb = function (a, b) {
- a = "avtp" === a ? this.uE : this.vE;
- b = b.xW();
- return !l.Y(b) && !l.Y(a) && (0 < b || 0 < a) && 0 < a ? (a - b) / (a + b) : NaN;
- };
- b.prototype.MN = function (a, b) {
- a = a.Xp(b);
- return l.Y(a) ? NaN : a;
- };
- b.prototype.normalize = function (a, b, c) {
- return !isNaN(a) && 0 < c ? (a - b) / c : NaN;
- };
- b.prototype.inb = function () {
- var a,
- b,
- c,
- f,
- h,
- k,
- p,
- n,
- d,
- q,
- g,
- m;
- a = this;
- b = this.K.rZ.XLa.UTb;
- c = this.K.rZ.XLa.STb;
- f = this.K.rZ.XLa.TTb;
- n = [];
- m = 0;
- this.nIb = !Object.keys(b).some(function (u) {
- var A;
- g = NaN;
- if (!(b.hasOwnProperty(u) && c.hasOwnProperty(u) && f.hasOwnProperty(u) && !l.Y(a.zu) && a.zu.DF && a.zu.c0) || 1 > a.AA || "number" !== typeof b[u] || "number" !== typeof c[u] || "number" !== typeof f[u])
- return !0;
- h = b[u];
- k = c[u];
- p = f[u];
- n = u.split("_", 2);
- d = n[0];
- q = n[1];
- switch (d) {
- case "avtp":
- A = a.zu.DF;
- break;
- case "neuhd":
- A = a.zu.c0;
- break;
- default:
- A = void 0;
- }
- if ("avtp" === d || "neuhd" === d) {
- if (A)
- switch (q) {
- case "last":
- g = A.ff[a.AA - 1];
- break;
- case "mean":
- g = "avtp" === d ? a.uE : a.vE;
- break;
- case "niqr":
- g = a.Wmb(A);
- break;
- case "skew":
- g = a.VHa(d, A, "skew");
- break;
- case "kurtosis":
- g = a.VHa(d, A, "kurtosis");
- break;
- case "std":
- g = A.xW();
- break;
- case "b":
- g = a.rlb(d, A);
- break;
- default:
- -1 !== u.search("[p][1-9]?[1-9]") && (g = a.MN(A, Number(u.split("_p", 2)[1])));
- }
- } else
- switch (u) {
- case "fracAbove20Mbps":
- A = a.zu.DF;
- g = l.Y(A) ? NaN : a.gIa(A.ff, 2E4, "gte");
- break;
- case "fracBelow20p":
- A = a.zu.c0;
- g = l.Y(A) ? NaN : a.gIa(A.ff, .15, "lte");
- break;
- case "hour_current":
- g = a.GN().currentHour;
- break;
- case "session_ct":
- g = a.AA;
- break;
- case "intercept":
- g = h,
- a.Gab = g;
- }
- g = a.normalize(g, k, p);
- if (isNaN(g))
- return !0;
- "intercept" !== u && (a.F8.push(g), a.zTa.push(h), a.zjb[u] = m, m += 1);
- });
- };
- b.prototype.xBa = function (a, b) {
- this.yV.forEach(function (c) {
- c = c.get().kkb;
- !c || "avtp" !== a && "neuhd" !== a || l.Y(c[a]) || b.XV(Number(c[a]));
- });
- };
- return b;
- }
- (d);
- b.Tra = d;
- }, function (d, b, a) {
- var n;
- function c() {}
- function l(a, b, c) {
- void 0 === c && (c = !1);
- n(a.length === b.length, "bitrates_kbps and durations_sec must be of the same length.");
- n(1E-8 < q(a), "bitrate zero, won't be able to send anything.");
- this.ux = a;
- this.VFa = b;
- this.repeat = c;
- this.pk = this.gm = 0;
- }
- function q(a) {
- return a.reduce(function (a, b) {
- return a + b;
- }, 0);
- }
- n = a(6).assert;
- c.prototype = Error();
- l.prototype.constructor = l;
- l.prototype.No = function () {
- var a;
- a = new l(this.ux, this.VFa, this.repeat);
- a.gm = this.gm;
- a.pk = this.pk;
- return a;
- };
- l.prototype.bga = function () {
- return this.ux[this.gm % this.ux.length];
- };
- l.prototype.ey = function () {
- return this.VFa[this.gm % this.ux.length];
- };
- l.prototype.Hhb = function (a) {
- n(0 < a, "expect x_sec > 0.0");
- if (!(this.repeat || 0 <= this.gm && this.gm < this.ux.length))
- throw new c();
- n(this.pk < this.ey(), "expect this.cur_pos_sec_in_bin < this.get_curr_duration_sec()");
- for (var b; ; ) {
- b = this.ey() - this.pk;
- b = a < b ? a : b;
- a -= b;
- this.pk += b;
- if (this.pk < this.ey())
- break;
- this.pk -= this.ey();
- this.gm += 1;
- if (!this.repeat && this.gm >= this.ux.length) {
- if (0 < a)
- throw new c();
- break;
- }
- }
- };
- l.prototype.UOa = function (a) {
- this.Hhb(a);
- };
- l.prototype.Ihb = function (a) {
- n(0 < a, "expect y_kb > 0.0");
- if (!(this.repeat || 0 <= this.gm && this.gm < this.ux.length))
- throw new c();
- n(this.pk < this.ey(), "expect this.cur_pos_sec_in_bin < this.get_curr_duration_sec()");
- for (var b, h = 0; ; ) {
- b = this.ey() - this.pk;
- b = a < b * this.bga() ? a / this.bga() : b;
- a -= this.bga() * b;
- h += b;
- this.pk += b;
- if (this.pk < this.ey())
- return h;
- this.pk -= this.ey();
- this.gm += 1;
- if (!this.repeat && this.gm >= this.ux.length) {
- if (0 < a)
- throw new c();
- return h;
- }
- }
- };
- d.P = {
- U2a: l,
- V2a: c
- };
- }, function (d, b, a) {
- var q;
- function c(a, b, c) {
- this.ba = a;
- this.vp = b;
- this.JP = c;
- }
- function l(a, b) {
- this.tia = b;
- void 0 === b && (this.tia = !0);
- this.Qi = a;
- this.I3a();
- }
- q = a(6).assert;
- c.prototype.constructor = c;
- c.prototype.Su = function () {
- return 8 * this.ba / 1E3 / this.vp;
- };
- l.prototype.constructor = l;
- l.prototype.No = function (a, b, c, h, f) {
- void 0 === b && (b = 0);
- void 0 === c && (c = a.NG());
- void 0 === h && (h = 0);
- void 0 === f && (f = a.Qi.length);
- for (var k = [], p, n = h; n < f; n++) {
- h = [];
- for (var d = b; d < c; d++)
- p = a.Qi[n][d], h.push(p);
- k.push(h);
- }
- return new l(k, a.tia);
- };
- l.prototype.I3a = function () {
- var a,
- b;
- a = this.Qi[0].length;
- for (b in this.Qi.slice(1))
- q(this.Qi[b].length === a, "expect this.chunkss[chunksIndex].length === n but got " + this.Qi[b].length + " and " + a);
- this.tia && this.J3a();
- this.K3a();
- };
- l.prototype.NG = function () {
- return this.Qi[0].length;
- };
- l.prototype.J3a = function () {
- for (var a = 0; a < this.Qi.length - 1; a++)
- for (var b = 0; b < this.NG(); b++)
- q(this.Qi[a][b].ba <= this.Qi[a + 1][b].ba, "Chunk size for epoch " + b + " is not monotonic");
- };
- l.prototype.K3a = function () {
- for (var a = 0; a < this.Qi.length - 1; a++)
- for (var b = 0; b < this.NG(); b++)
- q(1E-8 > Math.abs(this.Qi[a][b].vp - this.Qi[a + 1][b].vp), "Chunk duration for epoch " + b + " is not consistent");
- };
- l.prototype.Eob = function () {
- var a;
- a = [];
- this.Qi[0].forEach(function (b) {
- a.push(b.vp);
- });
- return a;
- };
- d.P = {
- AXa: c,
- BXa: l
- };
- }, function (d, b, a) {
- var c,
- l,
- q,
- n,
- k,
- p,
- h,
- f;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.SS = void 0;
- c = a(0);
- l = a(736);
- d = a(381);
- q = a(157);
- n = a(18);
- k = a(229);
- p = a(6);
- h = a(34);
- f = a(4);
- a = function (a) {
- function b(b, c, k, p, u, n, d, q, g, A, m, r, t) {
- k = a.call(this, p, q, k, p, p, u, h.ka.Ff(n), d, m, r, t) || this;
- k.$a = b;
- k.Tg = c;
- k.hf = g;
- k.Af = A;
- k.gba = 0;
- k.wA.PUa = !1;
- k.V7a = q;
- k.VK = new l.Tsa(p, k.Af, q, k.G, k.M, k.Tg, k.Ia, k.$a);
- k.isb = f.time.ea();
- k.Zrb = void 0;
- k.gC = q.Wga;
- k.HPa = f.time.ea();
- k.jSa(u);
- return k;
- }
- c.__extends(b, a);
- Object.defineProperties(b.prototype, {
- xaa: {
- get: function () {
- return this.Ia.xaa;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- NF: {
- get: function () {
- return this.Ia.NF;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- bB: {
- get: function () {
- return this.Ia.bB;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- Ry: {
- get: function () {
- return this.Ia.Ry;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- Lg: {
- get: function () {
- return this.VK.Lg;
- },
- set: function (a) {
- (this.VK.Lg = a) ? this.Ia.FDb() : this.Ia.pcb();
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- mo: {
- get: function () {
- return this.VK.mo;
- },
- set: function (a) {
- this.VK.mo = a;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- r_: {
- get: function () {
- return this.Fc;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- qqb: {
- get: function () {
- return this.Oza.va;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- sI: {
- get: function () {
- return this.L$.sI;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- Tnb: {
- get: function () {
- return this.$a.u$;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- b.prototype.reset = function () {
- this.seeking = void 0;
- this.connected = this.Lg = !1;
- this.wA.reset();
- };
- b.prototype.Xg = function () {
- this.reset();
- a.prototype.Xg.call(this);
- };
- b.prototype.BB = function (a, b) {
- return k.BB(this.Vg.M, this.K, a, b, this.Jg, this.$a.xub, this.EL);
- };
- b.prototype.Lu = function (a, b, c, f) {
- return k.Lu(this.Vg.M, this.K, a, b, c, f);
- };
- b.prototype.Zh = function (a) {
- this.Ia.Zh(a);
- this.gC = this.K.Wga;
- };
- b.prototype.CF = function () {
- this.Ia.gR();
- };
- b.prototype.jSa = function (a) {
- var b,
- c;
- b = this.$a;
- c = this.M;
- p.assert(a.M === c);
- p.assert(a.R === this.ad.R);
- this.Vg = a;
- this.ad.R.Qna(c, a.Nc);
- 0 === c && (this.EL = q.yaa(this.V7a, a.Nc[0]));
- b.q5a(this, a.cC);
- this.tbb(a.Nc);
- this.Oq.QDb(a);
- this.ad.R.Gba();
- this.Lg = !1;
- };
- b.prototype.dea = function (a) {
- var b;
- b = this.ad.R.jg[this.M];
- if (b && b.stream.ae && (a = b.stream.$.km(a), -1 !== a))
- return a;
- };
- b.prototype.WC = function (a) {
- var b,
- c,
- f;
- if (this.gg && this.gg.T === a)
- b = this.gg.index, c = a;
- else {
- f = this.ad.R;
- b = f.jg[this.M];
- if (!b || !b.stream.ae) {
- this.xC = a;
- return;
- }
- c = b.stream.$;
- this.gg = this.Lu(b.stream, a, void 0, !1);
- if (void 0 === this.gg) {
- if (b = c.length - 1, c = c.$h(b), this.bb("setStreamingPts out of range of fragments, pts:", a, "last startPts:", c, "fragment index:", b, "fastplay:", f.ye.Ef), f.ye.Ef) {
- this.xC = a;
- return;
- }
- } else
- b = this.gg.index, c = this.gg.T;
- }
- this.Ck = b;
- this.FV = c;
- this.xC = void 0;
- };
- b.prototype.LIb = function (a) {
- var b,
- c;
- b = this.Vg.cs(a);
- c = "verifying streamId: " + a + " stream's track: " + (b ? b.sa : "unknown") + " currentTrack: " + this.Vg.eb;
- return b ? !0 : (this.Tg.Dk(c), this.Tg.Dk("unknown streamId: " + a), !1);
- };
- b.prototype.tbb = function (a) {
- this.vpb = a.reduce(function (a, b) {
- return b.Hj && b.O > a.O ? b : a;
- }, a[0]);
- };
- b.prototype.U1 = function (a) {
- this.mg = a;
- };
- b.prototype.Dtb = function (a, b, c, f) {
- this.lUa(a, b, f);
- c && ++this.gba;
- this.$a.si();
- };
- b.prototype.Ev = function (b) {
- b.na && b.T && (this.gC -= b.na - b.T);
- a.prototype.Ev.call(this, b);
- };
- b.prototype.bj = function (a) {
- this.wJa(a);
- this.hq(a);
- };
- b.prototype.DHb = function (a) {
- var b;
- b = f.time.ea();
- this.gC += a * (b - this.HPa);
- this.HPa = b;
- };
- b.prototype.QBb = function () {
- this.gC = this.K.Wga;
- };
- b.prototype.KF = function (a) {
- this.Ia.NDa();
- this.Jg || this.VK.KF(a, this.Wb);
- };
- b.prototype.wJa = function (a) {
- var b,
- c,
- f;
- c = this.r_;
- f = this.$a;
- this.hf.kBa() || (this.Tg.K6a(a.M, a.R.Ya, a.stream.track.KA, this.Or), null === (b = this.Jg) || void 0 === b ? void 0 : b.dqb(a), b = c.X.$d() || 0, f.ab.Dt() || (c = c.Le(n.La.VIDEO)) && !c.xj && c.nZ && f.ab.Rfa(c), this.KF(b), this.$a.vJa(a), this.hf.tU(this) && this.hf.si());
- };
- b.prototype.Sja = function (a) {
- this.$a.dZ(a);
- };
- b.prototype.MDa = function (a, b, c, f, h) {
- var k,
- p;
- k = this.K;
- p = k.hh;
- if (c >= k.hh && (k.q1 && (p = c + 1E3), k.r1 && !this.connected))
- return !1;
- if (this.Jg)
- return this.Jg.dm();
- c = this.Lg && 0 === this.Ia.B0 && 0 === this.Ia.Xs;
- return !c && f < p ? !1 : c ? h && 0 === f ? (this.bb("playlist mode with nothing buffered, waiting for next manifest"), !1) : !0 : this.PDa(a, b);
- };
- b.prototype.RDb = function (a) {
- this.FV = a;
- };
- return b;
- }
- (d.h7);
- b.SS = a;
- }, function (d, b, a) {
- var c,
- l,
- q,
- n,
- k,
- p,
- h,
- f,
- u,
- g,
- G;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Ssa = b.oK = void 0;
- c = a(0);
- d = a(22);
- l = a(382);
- q = a(365);
- n = a(17);
- k = a(378);
- p = a(34);
- h = a(38);
- f = a(7);
- u = a(58);
- g = a(4);
- (function (a) {
- a[a.jHa = 0] = "forwards";
- a[a.Vaa = 1] = "backwards";
- a[a.wja = 2] = "none";
- }
- (G = b.oK || (b.oK = {})));
- a = function (a) {
- function b(b, c, f, h, k, u, n, d, l, g, A, C, G, H, m, r) {
- var D,
- K;
- D = a.call(this, c, h, l.R, b, l, g, G, A, n.$d.bind(n), C, r, void 0, void 0, !0) || this;
- D.$a = b;
- D.Tg = f;
- D.zb = k;
- D.FU = u;
- D.X = n;
- D.gF = d;
- D.Kf = C;
- D.CN = H;
- D.Af = m;
- D.ln = r;
- D.active = !1;
- D.Kza = [];
- D.p$ = 0;
- D.children = Object.create(null);
- D.Vs = [];
- D.sd = void 0;
- void 0 === G && (G = p.ka.Ff(l.T));
- K = [D.K.Qaa, D.K.n2];
- g.forEach(function (a) {
- var f,
- h;
- f = a.M;
- h = k.jIa.bind(k, D, f);
- a = new q.SS(b, D.Tg, D.G, D, a, G.va, K[f], c, D.FU, D.Af, D.LU[f], null === C || void 0 === C ? void 0 : C.Le(f), h);
- D.ri[f] = a;
- });
- D.wL = D.JY()[0];
- return D;
- }
- c.__extends(b, a);
- Object.defineProperties(b.prototype, {
- u: {
- get: function () {
- return this.R.u;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- Bl: {
- get: function () {
- return [this.dd[0].Bl, this.dd[1].Bl];
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- Mo: {
- get: function () {
- return [this.dd[0].Mo, this.dd[1].Mo];
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- I1: {
- get: function () {
- return this.da.T;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- nka: {
- get: function () {
- return this.I1 + this.ie;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- Wb: {
- get: function () {
- return this.da.na;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- ze: {
- get: function () {
- return this.Wb + this.ie;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- jb: {
- get: function () {
- return this.R.jb;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- weight: {
- get: function () {
- return this.da.weight;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- da: {
- get: function () {
- return this.cBa;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- dd: {
- get: function () {
- return this.ri;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- b.prototype.Xg = function () {
- this.Yp || (this.active = !1, this.Kf && (delete this.Kf.children[this.da.id], this.Kf = void 0), f.Yd(this.children, function (a) {
- a && a.Kf && (a.Kf = void 0);
- }), this.children = Object.create(null), this.AE = void 0, a.prototype.Xg.call(this), this.ri = []);
- };
- b.prototype.xla = function (a, b) {
- void 0 === b && (b = G.Vaa);
- this.dd.forEach(function (b) {
- (f.Y(a) || b.M === a) && b.reset();
- });
- switch (b) {
- case G.Vaa:
- this.Kf && this.Kf.xla(a, b);
- break;
- case G.jHa:
- this.children && f.Yd(this.children, function (c) {
- c && c.xla(a, b);
- });
- }
- };
- b.prototype.zKa = function (a) {
- var b,
- c,
- f;
- if (!this.active)
- return !1;
- b = this.Kf;
- if (b) {
- c = b.Le(a);
- f = c.Ia.ZOa;
- if (0 !== f && (b.CF(a), f = c.Ia.ZOa, 0 !== f))
- return !1;
- }
- return !0;
- };
- b.prototype.Jc = function (a) {
- return this.dd[a];
- };
- b.prototype.mpb = function () {
- return this.dd.every(function (a) {
- return 0 === a.Ry;
- });
- };
- b.prototype.toJSON = function () {
- return c.__assign(c.__assign({}, a.prototype.toJSON.call(this)), {
- active: this.active,
- playerStartPts: this.ed,
- playerEndPts: this.ze,
- pipelines: this.dd,
- previousBranch: this.Kf
- });
- };
- b.prototype.oSa = function (a, b) {
- this.R.uUa(this);
- this.R = this.da.R = a;
- this.eSa(this.R);
- this.R.BQa(this);
- this.dd.forEach(function (a) {
- var c;
- c = b[a.M];
- c && a.jSa(c);
- });
- };
- b.prototype.pnb = function (a) {
- return this.ln[a];
- };
- b.prototype.Le = function (a) {
- return this.dd[a];
- };
- b.prototype.Enb = function (a) {
- return this.dd[a].Ry;
- };
- b.prototype.qma = function (a, b, c) {
- var f,
- h,
- k,
- p;
- f = this;
- h = this.da;
- a = this.wW(h.T, this.R, a, this.u === (a ? a.u : this.zb.Ub.u));
- k = a.$H;
- p = a.Mu;
- void 0 === b && (b = [0, 1]);
- 0 === p.length || b.forEach(function (a) {
- var b,
- k;
- b = f.dd[a];
- c && (b.gg = p[a]);
- k = f.tN(h.na);
- b.U1(k[a]);
- });
- return k;
- };
- b.prototype.yQa = function (a, b) {
- var c,
- h,
- k,
- p;
- c = this.$a;
- h = this.dd[0];
- void 0 === b && (b = h.qqb);
- this.Kf && (k = this.Kf.Jc(0));
- p = this.zb.jIa.bind(this.zb, this, 0);
- c = new q.SS(c, this.Tg, this.G, this, a, b, h.sI, this.K, this.FU, this.Af, this.LU[0], k, p);
- this.dd[0] = c;
- this.wL = this.JY()[0];
- this.qma(this.Kf, [0], !0);
- c.WC(b);
- h.Xg();
- f.Yd(this.children, function (b) {
- b && b.yQa(a);
- });
- };
- b.prototype.Ur = function (a, b) {
- if (b = this.dd[b])
- return b.Ia.Ur(a);
- };
- b.prototype.CF = function (a) {
- void 0 === a ? this.dd.forEach(function (a) {
- a.CF();
- }) : this.dd[a].CF();
- };
- b.prototype.HP = function (a, b, c) {
- (a = this.dd[a]) && a.Ia.HP(b, c);
- };
- b.prototype.NY = function (a, b) {
- (b = this.dd[b]) && b.Ia.NY(a);
- };
- b.prototype.Ntb = function (a) {
- this.Kza[a] = !0;
- };
- b.prototype.Ybb = function () {
- var a;
- a = this;
- return [0, 1].every(function (b) {
- return !a.jb(b) || a.Kza[b];
- });
- };
- b.prototype.Wbb = function (a, b, c, f) {
- var h,
- p,
- u,
- d,
- q,
- l,
- A,
- C,
- G;
- h = this.K;
- p = this.$a;
- u = this.X.bd();
- d = u === n.ma.Ce || u === n.ma.Ng;
- if (!d && void 0 === c)
- return {
- xj: !0
- };
- if (u === n.ma.Ng && g.time.ea() < this.p$ + h.gvb)
- return {
- xj: !1
- };
- q = this.dd[0];
- l = this.dd[1];
- A = this.zb.Mr(this, 0);
- C = this.zb.Mr(this, 1);
- G = k.pka(u);
- A = !q || q.MDa(G, this.X.$d(), b, A, f);
- C = !l || l.MDa(G, this.X.$d(), a, C, f);
- void 0 !== c && A && (c = c.eb, a = this.R.getTrackById(c), this.M3a(c, a.A2), p.iu = void 0);
- if (A && C)
- return this.gF(), u === n.ma.Ng && (this.p$ = g.time.ea()), {
- xj: !0,
- Wp: l ? l.mu : q.mu
- };
- A = this.Xi(0);
- C = this.Xi(1);
- if (d) {
- p = !l || C > h.hh;
- if ((!q || A > h.hh) && p && (q = this.CN(), q >= h.Lv))
- return this.bb("buffering longer than limit: " + q + " >= " + h.Lv + ", audio buffer: " + A + " ms, video buffer: " + C + " ms"), this.gF(), u === n.ma.Ng && (this.p$ = g.time.ea()), {
- xj: !0,
- Wp: "prebufferTimeLimit"
- };
- this.Tg.m6a();
- }
- return {
- xj: !1
- };
- };
- b.prototype.Aba = function (a, b) {
- var c,
- f,
- h,
- k,
- p,
- u;
- c = this.K;
- f = this.dd[0];
- h = this.dd[1];
- b ? (b = this.Xi(0, a), a = this.Xi(1, a)) : (b = this.zb.Mr(this, 0, a), a = this.zb.Mr(this, 1, a));
- k = c.hh;
- p = !this.jb(0) || f.Lg && 0 === f.Ia.Gv && 0 === f.Ia.Xs;
- f = !this.jb(1) || h.Lg && 0 === h.Ia.Gv && 0 === h.Ia.Xs;
- u = p && f;
- c = !p && b < c.hh;
- if (!u && (c || !f && a < k))
- return !1;
- if (h && h.xj || !this.jb(1))
- return !0;
- if (u)
- if (this.$a.jV && 0 === b && 0 === a)
- this.bb("playlist mode with nothing buffered, waiting for next manifest");
- else
- return !0;
- return !1;
- };
- b.prototype.UC = function (a, b) {
- var c,
- f;
- c = this;
- f = this.K;
- this.dd.forEach(function (a) {
- a.seeking = void 0;
- });
- a && f.Zg && this.dd.forEach(function (a) {
- var f;
- if (a) {
- f = c.zb.$A(c, a.M);
- a = "bufferingComplete: , mediaType: " + a.M + ", bufferLevelBytes: " + a.Mo.ba + ", completedMs: " + a.NF + ", completedBytes: " + f + ", partials: " + a.Ia.Gv + ", streamingPts: " + a.Mb + ", completeStreamingPts: " + a.Or + ", fragments: " + JSON.stringify(a.Ia.$) + ", toAppend: " + b(a.M);
- c.Tg.Dk(a);
- }
- });
- };
- b.prototype.CHa = function () {
- var a,
- b;
- a = !0;
- b = {};
- this.dd.map(function (c) {
- var f;
- f = 1 === c.M ? "v" : "a";
- c = c.Mo;
- b[f + "buflmsec"] = c.va;
- b[f + "buflbytes"] = c.ba;
- a = a && 0 < c.va;
- });
- return {
- gZ: a,
- qM: b
- };
- };
- b.prototype.g2 = function (a, b, c) {
- var h,
- k,
- p;
- h = this;
- k = g.time.ea();
- p = {};
- f.Yd(this.children, function (a) {
- var b,
- c;
- if (a) {
- a.sd ? (a.sd.Mhb = k - a.sd.GZ, a.sd.GZ = void 0, b = a.sd.weight) : b = h.zb.VIa(h.da.id, a.da.id);
- c = a.CHa();
- p[a.da.id] = {
- weight: b,
- qM: c.qM,
- gZ: c.gZ
- };
- }
- });
- c = {
- requestTime: k,
- E1: a,
- Kgb: c,
- e2: this.da.id,
- sd: p
- };
- a || (a = b.$d(), c.DI = a - (this.da.T + this.ie), c.DI = Math.max(0, c.DI), c.jX = 0, c.startTime = k);
- this.Vs.unshift(c);
- return c;
- };
- b.prototype.Mcb = function (a) {
- var b,
- c;
- b = this.Vs[0];
- b.E1 && (b.DI = this.Wb - this.da.T, b.DI = Math.max(0, b.DI));
- c = a.CHa();
- b.cUa = {};
- u(c.qM, b.cUa);
- b.gZ = a.Mo.every(function (a) {
- return 0 < a.va;
- });
- this.Vs = [];
- return b;
- };
- b.prototype.Zh = function (a) {
- var b;
- b = this.da;
- a -= this.ie;
- if (b.T < a && a < b.na)
- this.Vs.shift();
- else if (b = this.Vs[0])
- b.Zh = !0;
- };
- b.prototype.wW = function (a, b, c, f) {
- var h,
- k,
- p,
- u;
- h = this;
- void 0 === b && (b = this.R);
- k = !1;
- if (c) {
- k = !0;
- p = c.dd[1].mg;
- c = c.dd[0].mg;
- if (!p || !c)
- return {
- $H: [],
- Mu: []
- };
- p = p.na;
- f || (p = void 0);
- }
- u = this.PGa(a, p, k, b);
- b.Ya === this.zb.Yfb && [1, 0].forEach(function (a) {
- var b;
- b = h.Le(a);
- b && (b.gg = u[a]);
- });
- return {
- $H: u.map(function (a) {
- return a.T;
- }),
- Mu: u
- };
- };
- b.prototype.PGa = function (a, b, c, f) {
- var h;
- h = this;
- void 0 === f && (f = this.R);
- return this.ABa(f) ? [1, 0].map(function (k) {
- if (!h.jb(k))
- return {};
- k = h.dd[k].Lu(f.jg[k].stream, a, b, c);
- a = k.T;
- return k;
- }).reverse() : [];
- };
- b.prototype.tN = function (a, b) {
- var c;
- c = this;
- void 0 === b && (b = this.R);
- return this.ABa(b) ? [1, 0].map(function (f) {
- var h;
- if (!c.jb(f))
- return {};
- h = b.jg[f].stream;
- f = c.dd[f].BB(h, a);
- a = c.K.Jg ? new p.ka(f.hb, h.Ta.S).va : f.na;
- return f;
- }).reverse() : [];
- };
- b.prototype.BHb = function (a, b) {
- var c;
- c = this.da.na;
- c && c < b && (a = this.tN(c));
- b = this.Jc(1);
- c = this.Jc(0);
- b && b.U1(a[1]);
- c && c.U1(a[0]);
- };
- b.prototype.ABa = function (a) {
- var b;
- b = a.jg;
- if (!b)
- return !1;
- a = b[1];
- a = !this.jb(1) || a && a.stream.ae;
- b = b[0];
- b = !this.jb(0) || b && b.stream.ae;
- return a && b ? !0 : !1;
- };
- b.prototype.M3a = function (a, b) {
- this.Tg.k6a(a, b);
- };
- return b;
- }
- (l.E3);
- b.Ssa = a;
- h.uf(d.EventEmitter, a);
- }, function (d, b, a) {
- var c,
- l,
- q,
- n,
- k,
- p,
- h,
- f,
- u,
- g;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.F3 = void 0;
- c = a(7);
- l = a(58);
- q = a(4);
- n = a(366);
- k = a(735);
- p = a(17);
- h = a(213);
- f = a(11);
- u = a(6);
- g = a(34);
- d = function () {
- function a(a, b, c, k, p, n, d, l, g, A) {
- this.$a = a;
- this.Tg = b;
- this.G = c;
- this.gF = k;
- this.K = d;
- this.FU = l;
- this.GAa = g;
- this.CN = A;
- this.bb = this.G.warn.bind(this.G);
- this.uj = this.G.trace.bind(this.G);
- this.xb = this.G.log.bind(this.G);
- this.vh = [];
- this.un = {};
- p.uu ? (u.assert(!p.Jk), this.W8 = !0, this.f7a(p, p.uu, n)) : (this.Rl = this.k9(p.Jk || "", p, 0, void 0, void 0, {}, !0), this.Rl.CH = !0, this.Rl.na = Infinity, this.JV = [this.Rl]);
- this.Fc = this.vU(this.Rl, void 0, n);
- this.Fc.active = !0;
- a = f.uy(q, this.G, "BranchQueue::");
- this.ek = new h.NR(a);
- this.ek.enqueue(this.Fc);
- this.q$ = this.iL = void 0;
- }
- a.Jea = function (a) {
- return "m" + a;
- };
- Object.defineProperties(a.prototype, {
- $u: {
- get: function () {
- return !!this.W8;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- tq: {
- get: function () {
- return this.Fc.Yp;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- Th: {
- get: function () {
- return this.Rl;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- zg: {
- get: function () {
- return this.Fc.da.id;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- Yfb: {
- get: function () {
- return this.Fc.R.Ya;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- Ub: {
- get: function () {
- return this.Fc;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- Sc: {
- get: function () {
- return this.vh;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- ie: {
- get: function () {
- return this.Fc.ie;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- Af: {
- get: function () {
- return this.$a.Af;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- Kk: {
- get: function () {
- return this.iL ? this.iL : this.Sc[0];
- },
- enumerable: !1,
- configurable: !0
- }
- });
- a.prototype.Jn = function () {
- this.vh.forEach(function (a) {
- a.Xg();
- });
- this.vh = [];
- this.ek.clear();
- };
- a.prototype.ah = function (a) {
- return this.un[a];
- };
- a.prototype.WIa = function () {
- return this.ek.qIa();
- };
- a.prototype.VIa = function (a, b) {
- var c;
- c = this.un[a];
- if (c)
- return (a = c.Aj[b]) && a.weight;
- this.bb("getSegmentWeight, unknown segment:", a);
- };
- a.prototype.Onb = function (a) {
- var b;
- b = this.un[a];
- if (b)
- return b.T;
- this.bb("getSegmentStartPts, unknown segment:", a);
- };
- a.prototype.Nnb = function (a) {
- var b;
- b = this.un[a];
- if (!b)
- this.bb("getSegmentDuration, unknown segment:", a);
- else if (c.la(b.na) && isFinite(b.na) && c.la(b.T) && isFinite(b.T))
- return b.na - b.T;
- };
- a.prototype.ila = function (a) {
- var b;
- b = -1;
- this.vh.some(function (c, f) {
- return c === a ? (b = f, !0) : !1;
- });
- -1 !== b ? this.vh.splice(b, 1) : this.bb("Unable to find branch:", a, "in branches array");
- };
- a.prototype.qbb = function (a, b) {
- var c;
- c = 0;
- this.Cza(a).forEach(function (a) {
- (a = a.Jc(b)) && (c += a.xaa);
- });
- return c;
- };
- a.prototype.$A = function (a, b) {
- var c;
- c = 0;
- this.Cza(a).forEach(function (a) {
- (a = a.Jc(b)) && (c += a.bB);
- });
- return c;
- };
- a.prototype.Mr = function (a, b, c) {
- if (!a.jb(b))
- return 0;
- for (var f = a.Le(b), f = c ? f.Mb : f.Or; void 0 === f; ) {
- if (!a.Kf)
- return 0;
- a = a.Kf;
- f = a.Le(b);
- f = c ? f.Mb : f.Or;
- }
- a = this.GAa.$d();
- return Math.max(f - a, 0);
- };
- a.prototype.jIa = function (a, b) {
- var c;
- if (void 0 !== this.K.eC) {
- c = q.uk()[b];
- a = this.qbb(a, b);
- return c - a;
- }
- };
- a.prototype.cea = function (a) {
- return this.vh.filter(function (b) {
- if (b.R.Ya === a)
- return !0;
- });
- };
- a.prototype.Kjb = function (a, b) {
- return this.vza(a, !1, b);
- };
- a.prototype.Jjb = function (a, b) {
- return this.vza(a, !0, b);
- };
- a.prototype.uBb = function (a, b, f) {
- c.Yd(this.vh, function (c) {
- c.R === a && c.oSa(b, f);
- });
- c.Yd(this.un, function (c) {
- c.R === a && (c.R = b);
- });
- };
- a.prototype.ZQa = function () {
- var a;
- a = this;
- c.Yd(this.vh, function (b) {
- var c;
- c = a.$a.Wf(b.R.Ya);
- b.Jr = g.ka.Ff(c.ms);
- });
- };
- a.prototype.XC = function (a) {
- var b;
- b = this;
- c.Yd(this.vh, function (c) {
- c.Le(1).track.Nc.forEach(function (c) {
- var f;
- f = p.YL(c.Vf, c.O, a, b.G);
- l(f, c);
- });
- });
- };
- a.prototype.Ur = function (a, b, c, f) {
- var h;
- for (; b; ) {
- h = b.Ur(a, c);
- if (h)
- return h;
- if (f)
- break;
- b = b.Kf;
- }
- };
- a.prototype.ZEa = function (a) {
- var b,
- c;
- b = this;
- void 0 === a && (a = !1);
- c = this.vh;
- a && (c = c.filter(function (a) {
- return a !== b.Fc;
- }));
- c.forEach(function (a) {
- a.active = !1;
- b.ek.remove(a);
- });
- a || this.ek.clear();
- return c;
- };
- a.prototype.Mzb = function () {
- var a;
- for (; 0 < this.vh.length; ) {
- a = this.vh[0];
- if (!a.active)
- break;
- if (a === this.Fc)
- break;
- if (!a.mpb())
- break;
- a.Xg();
- this.vh.shift();
- }
- };
- a.prototype.HP = function (a, b, c, f, h) {
- if (c > f) {
- for (c -= f; a; )
- a.HP(b, c, h), a = a.Kf;
- return c;
- }
- };
- a.prototype.cMa = function (a, b) {
- for (var c = {
- EM: null,
- SH: null,
- ed: null,
- dj: 0,
- ci: 0,
- $: []
- }; a; )
- a.NY(c, b), a = a.Kf;
- return c;
- };
- a.prototype.zcb = function (a) {
- var b,
- c,
- f;
- b = this.Fc;
- if (b.SLa)
- c = b.SLa;
- else {
- f = this.Fc.ie;
- c = this.vU(b.da, b);
- p.Pe.forEach(function (a) {
- var f;
- f = c.Jc(a);
- f && (f.WC(0), f.U1(b.Jc(a).mg));
- });
- c.Jr = g.ka.Ff(f + a);
- b.SLa = c;
- }
- this.rE(c, b);
- };
- a.prototype.I9a = function (b, c, f) {
- var h,
- k;
- u.assert(!b.$u());
- if (!this.W8) {
- this.W8 = !0;
- this.iL = this.Kk;
- h = this.Rl.id || a.Jea(0);
- this.Rl.id = h;
- this.un[h] = this.Rl;
- this.Rl.na = this.$a.wmb().tIa();
- this.Rl.Ly = !0;
- }
- k = void 0 !== b.Jk ? b.Jk : a.Jea(b.Ya);
- b = this.k9(k, b, c, f, void 0, {}, !0);
- b.Ly = !0;
- this.JV.forEach(function (a) {
- a.Aj = {};
- a.Aj[k] = {
- weight: 100
- };
- a.XM = k;
- a.Qs = !1;
- });
- this.JV = [b];
- };
- a.prototype.vu = function (a, b) {
- var c,
- f,
- h,
- k;
- c = this.Kk;
- f = c.g2(b, this.$a.X);
- h = c.da;
- k = c.children[a];
- if (b) {
- if (!h.Aj[a])
- return this.Fc.bb("chooseNextSegment, invalid destination:", a, "for current segment:", h.id), !1;
- if (c.Ti)
- return c.Ti === a;
- c.Ti = a;
- k && c.eY && this.rE(k, c);
- return !0;
- }
- if (void 0 !== c.Ti)
- return !1;
- if (!k)
- return f.pNa = !0, !1;
- f.pNa = !k.Aba();
- this.$a.y$(void 0, n.oK.wja);
- c.eY = void 0;
- c.Ti = a;
- this.rE(k, c);
- c.Eda();
- this.$a.DL();
- return !0;
- };
- a.prototype.zpb = function (a, b) {
- var f,
- h,
- k,
- p;
- f = this;
- p = a.da;
- b && !a.Ti && (a.Ti = p.XM, a.g2(!0, this.$a.X, !0));
- a.children = Object.create(null);
- c.Yd(p.Aj, function (b, c) {
- a.Ti && c !== a.Ti || (h = f.un[c], k = f.u4a(h, a), a.children[c] = k);
- });
- a.Ti && (b = a.children[a.Ti]) && this.rE(b, a);
- a.eY = !0;
- };
- a.prototype.KGb = function () {
- var a;
- a = 0;
- c.Yd(this.vh, function (b) {
- p.Pe.forEach(function (c) {
- b.jb(c) && (a += b.Jc(c).Ia.Eo);
- });
- });
- return a;
- };
- a.prototype.XFb = function (a, b) {
- var c,
- f,
- h;
- c = this;
- f = this.X4a(a, b);
- if (f) {
- f !== this.Fc.da ? (this.ZEa(), h = this.vU(f, this.Fc, a), h.Kf = void 0, h.qma(void 0, void 0, !0), this.r3a(this.Fc), this.rE(h, this.Fc)) : (this.ZEa(!0).forEach(function (a) {
- a.Xg();
- c.ila(a);
- c.ek.remove(a);
- }), this.Fc.Ona(a, this.K.t2));
- f === this.Kk.da && (this.Kk.Vs.shift(), h && (h.Vs = this.Kk.Vs, h.Ti = this.Kk.Ti));
- this.Tg.dV(f, this.Fc.ie);
- this.Fc.eY = void 0;
- } else
- this.bb("findSegment no segment for manifestIndex:", b);
- };
- a.prototype.aMa = function (a, b) {
- var c;
- c = a.da;
- b || (b = c.XM);
- f.Xla(c.id);
- a.Ti || (a.Ti = b, a.g2(!0, this.$a.X, !0));
- (b = a.children[a.Ti]) && this.rE(b, a);
- };
- a.prototype.XRa = function (a, b) {
- if (this.Fc !== a) {
- if (b)
- for (b = this.Fc; b && b !== a; )
- b.active = !1, this.ek.remove(b), b = b.Kf;
- this.Fc = a;
- }
- };
- a.prototype.Sq = function (a, b) {
- var c,
- h,
- k,
- u,
- n;
- c = this;
- if (this.$u) {
- h = this.K;
- k = this.Kk;
- u = k.da;
- n = f.Xla(u.id);
- !k.Ti && !u.Qs && k.Wb - b <= h.W_ && (this.bb(n + "updatePts making fork decision at playerPts:", a, "contentPts:", b), this.aMa(k));
- }
- p.Pe.forEach(function (a) {
- c.Fc.jb(a) && c.Af[a].Sq();
- });
- };
- a.prototype.dwb = function (a, b) {
- var c,
- f;
- if (this.$u) {
- c = this.iL;
- if (!(this.K.Spb && a && this.q$ && a.T === this.q$ || (a = a.Ia.ad, c && a.da.id === c.da.id))) {
- f = null === c || void 0 === c ? void 0 : c.Jc(1);
- f = null === f || void 0 === f ? void 0 : f.mg;
- this.q$ = null === f || void 0 === f ? void 0 : f.T;
- this.iL = a;
- this.P3a(c);
- c = c && c.Mcb(a);
- this.Tg.G6a(a.da, b, c);
- }
- }
- };
- a.prototype.yja = function (a, b, c) {
- b.CH || (b.T = this.JIa(a, b.T, !0), c || (b.na = this.JIa(a, b.na, !1)), b.CH = !0, !1);
- };
- a.prototype.H2 = function (a, b) {
- var h;
- f.Xla(a);
- h = this.un[a];
- h ? c.Yd(h.Aj, function (a, c) {
- a.weight = b[c] || 0;
- }) : this.bb("updateChoiceMapEntry, unknown segment:", a);
- };
- a.prototype.JIa = function (a, b, c) {
- a = c ? a.PGa(b) : a.tN(b);
- if (!a.length)
- return b;
- b = a[1];
- return c ? b.T : b.na;
- };
- a.prototype.Sza = function (a, b, c) {
- var f;
- f = b ? c.Wb : c.ze;
- return (b ? c.I1 : c.nka) <= a && a < f;
- };
- a.prototype.vza = function (a, b, f) {
- var u;
- for (var h = this.$a, k = this.Fc; k; ) {
- if ((!c.la(f) || h.eha(f, k.R.Ya)) && this.Sza(a, b, k))
- return k;
- k = k.Kf;
- }
- if (b)
- for (var k = Object.keys(this.Fc.children), p = 0; p < k.length; p++) {
- u = this.Fc.children[k[p]];
- if ((!c.la(f) || h.eha(f, u.R.Ya)) && this.Sza(a, b, u))
- return u;
- }
- };
- a.prototype.u4a = function (a, b) {
- var c,
- f;
- c = this.vU(a, b);
- f = c.qma(b, void 0, this.K.ala);
- p.Pe.forEach(function (a) {
- var h,
- k,
- p;
- if (c.jb(a)) {
- h = c.Jc(a);
- k = b.Jc(a);
- p = f[a];
- 1 === a && (c.Jr = g.ka.Ff(k.Mb + b.ie - p));
- h.WC(p);
- }
- });
- this.Tg.dV(a, c.ie);
- return c;
- };
- a.prototype.r3a = function (a) {
- for (var b = [a.da.id]; a.Kf; )
- a = a.Kf, b.unshift(a.da.id);
- this.L8(a);
- };
- a.prototype.L8 = function (a) {
- var b,
- f;
- b = this;
- f = a.da;
- c.Yd(a.children, function (a) {
- a && b.L8(a);
- });
- this.ek.remove(a);
- a.Xg();
- this.ila(a);
- this.Tg.D6a(f);
- };
- a.prototype.rE = function (a, b) {
- var f,
- h,
- k,
- p;
- f = this;
- h = b.da;
- b.R !== a.R && this.$a.$za(a.R.Ya);
- a.active = !0;
- this.ek.enqueue(a);
- a.CF();
- k = q.time.ea();
- p = {};
- c.Yd(b.children, function (b) {
- var c,
- h;
- if (b) {
- if (b.sd) {
- c = b.Jc(0);
- h = b.Jc(1);
- b.sd.pM = [c ? c.Mo.va : 0, h ? h.Mo.va : 0];
- b.sd.Mhb = k - b.sd.GZ;
- b.sd.GZ = void 0;
- p[b.da.id] = b.sd;
- }
- b.da.id !== a.da.id && f.L8(b);
- }
- });
- b.children = Object.create(null);
- b.children[a.da.id] = a;
- b.AE = void 0;
- this.XRa(a);
- this.Tg.E6a(a.da, p);
- 1 < Object.keys(h.Aj).length && a.Aba();
- };
- a.prototype.P3a = function (a) {
- var b,
- c;
- if (a) {
- b = q.time.ea();
- c = a.Vs[0];
- c && void 0 === c.jX ? c.jX = b - c.requestTime : c || (this.bb("missing metrics for branch:", a.da.id), c = {
- e2: a.da.id,
- E1: !0,
- jX: 0,
- sd: {}
- }, a.Vs.unshift(c));
- void 0 === c.startTime && (c.startTime = b);
- }
- };
- a.prototype.X4a = function (a, b) {
- var f,
- h,
- p,
- n;
- u.assert(0 <= a);
- for (var k in this.un) {
- p = this.un[k];
- if (this.$a.eha(p.R.Ya, b)) {
- if (p.T <= a && (Infinity === p.na || void 0 === p.na || a < p.na))
- return p;
- n = Math.min(Math.abs(a - p.T), Math.abs(a - p.na));
- if (c.Y(f) || n < f)
- f = n, h = p;
- }
- }
- return h;
- };
- a.prototype.k9 = function (a, b, c, f, h, p, u, n, d) {
- b = new k.Wwa(a, b, c, f, h, p, u, n, void 0, d);
- return this.un[a] = b;
- };
- a.prototype.f7a = function (a, b, f) {
- var h,
- k,
- p;
- h = this;
- this.Rl = void 0;
- this.JV = [];
- k = null;
- p = null;
- c.Yd(b.segments, function (b, u) {
- var n,
- d,
- q,
- l,
- g;
- n = b.startTimeMs;
- d = b.endTimeMs;
- q = {};
- c.Yd(b.next, function (a, c) {
- q[c] = {
- weight: a.weight || 0,
- VGb: a.transitionHint || b.transitionHint,
- uSb: "number" === typeof a.earliestSkipRequestOffset ? a.earliestSkipRequestOffset : b.earliestSkipRequestOffset
- };
- });
- l = b.defaultNext;
- c.Y(l) && (l = Object.keys(q)[0]);
- g = c.Y(l);
- l = h.k9(u, a, n, d, l, q, g, b.transitionDelayZones, b.transitionHint);
- n <= f && (f < d || c.Y(d)) ? h.Rl = l : n > f && (!k || n < p) && (k = u, p = n);
- g && h.JV.push(l);
- });
- this.Rl || (this.Rl = k ? this.un[k] : this.un[b.initialSegment]);
- };
- a.prototype.vU = function (a, b, c) {
- var f,
- h,
- k,
- p;
- f = a.R;
- h = this.$a.Wf(f.Ya);
- k = h.ms;
- p = [];
- [0, 1].forEach(function (a) {
- f.jb(a) && p.push(h.om(a));
- });
- a = new n.Ssa(this.$a, this.K, this.Tg, this.G, this, this.FU, this.GAa, this.gF, a, p, k, b, c ? g.ka.Ff(c) : void 0, this.CN, this.$a.Af, this.$a.zr);
- this.u3a(a);
- this.vh.push(a);
- return a;
- };
- a.prototype.u3a = function (a) {
- var c;
- function b(a) {
- c.$a.emit(a.type, a);
- }
- c = this;
- a.addListener("locationSelected", b);
- a.addListener("logdata", b);
- a.addListener("serverSwitch", b);
- a.addListener("streamSelected", b);
- a.addListener("lastSegmentPts", b);
- a.addListener("managerdebugevent", b);
- a.addListener("requestCreated", function (a) {
- a = a.request;
- c.$a.D$(a.M, a.T);
- });
- };
- a.prototype.Cza = function (a) {
- for (var b = [a]; a.Kf; )
- a = a.Kf, b.push(a);
- return b;
- };
- return a;
- }
- ();
- b.F3 = d;
- }, function (d, b, a) {
- var n,
- k;
- function c(a, b, c, k, n, d) {
- return new q(a, b, c, k, n, d);
- }
- function l(a) {
- return a && 0 <= a.indexOf(".__metadata__");
- }
- function q(a, b, c, k, n, d) {
- this.partition = a;
- this.lifespan = c;
- this.resourceIndex = b;
- this.size = k;
- this.creationTime = n;
- this.lastRefresh = d;
- return this.VTa();
- }
- n = a(7);
- k = a(107);
- a(106);
- new k.Console("MEDIACACHE", "media|asejs");
- q.prototype.refresh = function () {
- this.lastRefresh = k.time.now();
- return this.VTa();
- };
- q.prototype.fSa = function (a) {
- this.size = a;
- };
- q.prototype.pEa = function () {
- var a;
- a = k.time.now();
- return (this.lastRefresh + 1E3 * this.lifespan - a) / 1E3;
- };
- q.prototype.VTa = function () {
- this.lastMetadataUpdate = k.time.now();
- return this;
- };
- q.prototype.constructor = q;
- d.P = {
- create: c,
- Eea: function (a) {
- var b;
- b = a;
- "string" === typeof a && (b = JSON.parse(a));
- if (b && b.partition && !n.Y(b.lifespan) && b.resourceIndex && b.creationTime && b.lastRefresh)
- return a = c(b.partition, b.resourceIndex, b.lifespan, -1, b.creationTime, b.lastRefresh), b.lastMetadataUpdate && (a.lastMetadataUpdate = b.lastMetadataUpdate), !n.Y(b.size) && 0 <= b.size && a.fSa(b.size), a.pEa(), a.convertToBinaryData = b.convertToBinaryData, a;
- },
- lca: function (a) {
- return a + ".__metadata__";
- },
- NX: function (a) {
- return l(a) ? a.slice(0, a.length - 13) : a;
- },
- XG: l
- };
- }, function (d, b, a) {
- var C,
- H,
- D,
- K,
- J,
- m,
- r,
- t,
- z,
- T,
- U,
- ea,
- ha;
- function c() {}
- function l(a, b) {
- var f,
- k,
- p,
- n;
- f = C.Vb(b) ? b : c;
- this.K = a || {};
- (function (a, b, c) {
- this.oi[a].Hd[b] = c;
- }
- .bind(this));
- (function (a, b) {
- return this.oi[a].Hd ? this.oi[a].Hd[b] : void 0;
- }
- .bind(this));
- this.on = this.addEventListener = ea.addEventListener;
- this.removeEventListener = ea.removeEventListener;
- this.emit = this.Ja = a.ySb ? ea.Ja : c;
- k = K.hfb(a);
- p = this.K.dailyDiskCacheWriteLimit;
- if (k) {
- this.qr = k;
- n = u(a.Qia || ha, K.Tlb());
- this.$t = function (a) {
- return C.Y(n) || null === n || void 0 === this.oi[a] ? !1 : !C.Y(n[a]);
- };
- n ? (this.oi = {}, b = H.Promise.all(Object.keys(n).map(function (b) {
- return new H.Promise(function (c, f) {
- var h;
- h = n[b];
- h.SUa = a.SUa;
- new J(b, k, h, function (a, b) {
- a ? f(a) : c(b);
- }, p);
- });
- })).then(function (a) {
- a.map(function (a) {
- var b;
- b = a.dx;
- this.oi[b] = a;
- n[b].wkb = n[b].Zp - a.Zt;
- this.oi[b].on(J.Sd.REPLACE, function (a) {
- a = a || {};
- a.partition = b;
- a.type = "save";
- this.Ja("mediacache", a);
- }
- .bind(this));
- this.oi[b].on(J.Sd.xya, function (a) {
- a = a || {};
- a.partition = b;
- a.type = "save";
- this.Ja("mediacache", a);
- }
- .bind(this));
- this.oi[b].on(J.Sd.ERROR, function (a) {
- a = a || {};
- a.partition = b;
- a.type = J.Sd.ERROR;
- this.Ja("mediacache-error", a);
- }
- .bind(this));
- }
- .bind(this));
- return this;
- }
- .bind(this)).then(function (a) {
- h(k, H.storage.eE, Object.keys(n));
- return a;
- }
- .bind(this)).then(function (a) {
- Object.keys(a.oi).map(function (b) {
- a.oi[b].dfa().map(function (c) {
- a["delete"](b, c);
- });
- });
- a.$o = !0;
- f(null, a);
- }
- .bind(this))["catch"](function (a) {
- D.error("Failed to initialize media cache ", a);
- this.PB = T.eqa;
- f(this.PB, this);
- }
- .bind(this)), U.Ds(b)) : (this.PB = T.B_a, f(this.PB, this));
- } else
- this.PB = T.eqa, f(this.PB, this);
- }
- function q(a, b, c, f, h, k) {
- var p;
- p = k ? "mediacache-error" : "mediacache";
- b = {
- partition: c,
- type: b,
- resource: f,
- time: H.time.now()
- };
- k && (b.error = k);
- h && (C.la(h.duration) && (b.duration = h.duration), C.la(h.ou) && (b.bytesRead = h.ou));
- try {
- a.Ja(p, b);
- } catch (Ea) {
- D.warn("caught exception while emitting basic event", Ea);
- }
- }
- function n(a, b, c, f, h) {
- var k;
- k = h ? "mediacache-error" : "mediacache";
- b = {
- partition: c,
- type: b,
- resources: f,
- time: H.time.now()
- };
- h && (b.error = h);
- try {
- a.Ja(k, b);
- } catch (Q) {
- D.warn("caught exception while emitting basic event", Q);
- }
- }
- function k(a) {
- return !C.Y(a) && !C.Ma(a) && C.la(a.lifespan);
- }
- function p(a) {
- return !m.XG(a) && !t.Xqb(a);
- }
- function h(a, b, f) {
- a.query(b, "", function (h, k) {
- h || Object.keys(k).filter(function (a) {
- return 0 > f.indexOf(a.slice(0, a.indexOf(".")));
- }).map(function (f) {
- a.remove(b, f, c);
- });
- });
- }
- function f(a, b, c) {
- var h,
- k;
- function f(b) {
- a["delete"](h, function (f) {
- f ? c(f) : (delete a.Hd[k], f = Object.keys(b.resourceIndex), f = H.Promise.all(f.map(function (b) {
- return new H.Promise(function (c, f) {
- a["delete"](b, function (a) {
- a ? f(a) : c(b);
- });
- });
- })).then(function () {
- c();
- }, function (a) {
- c(a);
- }), U.Ds(f));
- });
- }
- m.XG(b) ? (h = b, k = m.NX(b)) : (h = m.lca(b), k = b);
- (b = a.Hd[k]) ? f(b) : a.read(h, function (a, b) {
- a ? c(a) : f(b);
- });
- }
- function u(a, b) {
- var c,
- f,
- h;
- c = {};
- f = a.partitions.reduce(function (a, b) {
- return a + b.capacity;
- }, 0);
- h = b / f;
- a.partitions.map(function (a) {
- var b;
- b = a.key;
- c[b] = {};
- c[b].Zp = Math.floor(h * a.capacity);
- c[b].$fb = a.dailyWriteFactor || 1;
- c[b].UUb = a.owner;
- c[b].ajb = a.evictionPolicy;
- });
- return c;
- }
- function g(a, b, c) {
- if (c)
- return t.thb(a, b).reduce(function (a, b) {
- Object.keys(b).map(function (c) {
- a[c] = b[c];
- });
- return a;
- }, {});
- c = {};
- c[a] = b;
- return c;
- }
- function G(a, b, c, f, h, k, p, u, n, d, q) {
- return function (l, g) {
- l ? C.isArray(l) ? (g = l.map(function (a) {
- return a.error;
- }), g.some(function (a) {
- return a.code === T.zD.code;
- }) && !g.some(function (a) {
- return a.code === T.dU.code;
- }) ? q(d, l, function () {
- n.save(b, c, f, h, k, p);
- }) : (d["delete"](u), delete d.Hd[c], k({
- error: l[0].error,
- As: l[0].As,
- type: l[0].type,
- bCa: l
- }))) : k({
- error: l,
- As: b,
- type: "save"
- }) : (l = g.items.filter(function (b) {
- return 0 <= Object.keys(a).indexOf(b.key);
- }).reduce(function (a, b) {
- return a + b.f_;
- }, 0), d.Hd[c].fSa(l), l = {
- wkb: g.Ej,
- TRb: g.WF,
- Pi: 0,
- items: g
- }, 0 < g.Pi && (l.Pi = g.Pi), 0 < g.duration && (l.duration = g.duration), k(null, l));
- };
- }
- C = a(7);
- H = a(107);
- D = new H.Console("MEDIACACHE", "media|asejs");
- K = a(749);
- J = a(748);
- m = a(368);
- r = a(106);
- t = a(741);
- z = a(740);
- T = a(205);
- U = a(204);
- ea = a(105).EventEmitter;
- ha = {
- XUb: []
- };
- l.prototype.HC = function (a, b, f) {
- var h;
- h = C.Vb(f) ? f : c;
- this.$t(a) ? this.oi[a].query(b, function (a, b) {
- a ? (D.error("Failed to query resources", a), h([])) : h(b.filter(p));
- }) : h([]);
- };
- l.prototype.read = function (a, b, f) {
- var h,
- k,
- p,
- u;
- h = C.Vb(f) ? f : c;
- if (this.$t(a)) {
- k = this.oi[a];
- p = k.Hd[b];
- if (!m.XG(b) && this.K.rub) {
- u = function (c) {
- k.d1(Object.keys(c), function (c, f, k) {
- c ? h(T.oE.jo("Failed to read " + b, c)) : (q(this, "read", a, b, k), h(null, t.uqb(f)));
- }
- .bind(this), c);
- }
- .bind(this);
- p ? u(p.resourceIndex) : this.iAb(a, b, function (a, c) {
- a ? h(T.oE.jo("Failed to read " + b, a)) : u(c.resourceIndex);
- });
- } else
- k.read(b, function (c, f, k) {
- c ? h(T.oE.jo("Failed to read " + b, c)) : (p && p.convertToBinaryData && (f = z.mdb(f)), q(this, "read", a, b, k), h(null, f));
- }
- .bind(this));
- } else
- h(T.qw);
- };
- l.prototype.d1 = function (a, b, f) {
- var h,
- k;
- h = C.Vb(f) ? f : c;
- if (this.$t(a)) {
- k = {};
- b = H.Promise.all(b.map(function (b) {
- return new H.Promise(function (c, f) {
- this.read(a, b, function (a, h) {
- a ? (h = {}, h[b] = a, f(h)) : (k[b] = h, c());
- });
- }
- .bind(this));
- }
- .bind(this))).then(function () {
- h(null, k);
- }, function (a) {
- h(a);
- });
- U.Ds(b);
- } else
- h(T.qw);
- };
- l.prototype.tRa = function (a, b, f) {
- var h;
- h = C.Vb(f) ? f : c;
- this.$t(a) ? "[object Object]" !== Object.prototype.toString.call(b) ? h(T.cU.jo("items must be a map of keys to objects")) : (f = new H.Promise(function (c) {
- var f,
- h;
- f = this.oi[a].dfa();
- h = Object.keys(b);
- (f = f.filter(function (a) {
- return -1 === h.indexOf(a);
- })) && 0 < f.length ? this.uFa(a, f, function () {
- c();
- }) : c();
- }
- .bind(this)).then(function () {
- return H.Promise.all(Object.keys(b).map(function (c) {
- return new H.Promise(function (f, h) {
- this.save(a, c, b[c].co, b[c].Dd, function (a, b) {
- a ? (D.error("Received an error saving", c, a), h(a)) : f(b);
- }, !0);
- }
- .bind(this));
- }
- .bind(this)));
- }
- .bind(this)).then(function (c) {
- var f,
- k,
- p;
- try {
- f = Number.MAX_VALUE;
- k = Number.MAX_VALUE;
- p = c.reduce(function (a, b) {
- b.Ej && b.Ej < f && (f = b.Ej);
- b.WF && b.WF < k && (k = b.WF);
- f < Number.MAX_VALUE && (a.freeSize = f);
- k < Number.MAX_VALUE && (a.dailyBytesRemaining = k);
- C.la(b.Pi) && (a.bytesWritten += b.Pi);
- C.la(b.duration) && (a.duration += b.duration);
- return a;
- }, {
- partition: a,
- type: "saveMultiple",
- keys: Object.keys(b),
- time: H.time.now(),
- bytesWritten: 0,
- duration: 0
- });
- this.Ja("mediacache", p);
- h(null, p);
- } catch (ia) {
- h(err);
- }
- }
- .bind(this), function (b) {
- C.isArray(b.bCa) ? b.bCa.forEach(function (b) {
- this.Ja("mediacache-error", {
- partition: a,
- type: "saveMultiple",
- error: b.error,
- resources: b.aQ
- });
- }
- .bind(this)) : this.Ja("mediacache-error", {
- partition: a,
- type: "saveMultiple",
- error: b
- });
- h(b);
- }
- .bind(this)), U.Ds(f)) : (C.Vb(f) ? f : c)(T.qw);
- };
- l.prototype.save = function (a, b, f, h, p, u) {
- var d,
- l,
- A,
- K,
- J,
- R,
- P,
- t,
- ba;
- d = C.Vb(p) ? p : c;
- if (this.$t(a)) {
- l = this.oi[a];
- A = m.lca(b);
- p = l.dfa();
- p = p.filter(function (a) {
- return a !== b;
- });
- if (k(h)) {
- K = g(b, f, this.K.rub);
- J = l.Hd[b] || {};
- R = J.resourceIndex;
- R && Object.keys(R).map(function (a) {
- C.Y(K[a]) && l["delete"](a);
- });
- h.convertToBinaryData && (f = z.ndb(K), K = g(b, f, !1));
- R = H.time.now();
- P = {};
- P.partition = a;
- P.resourceIndex = Object.keys(K).reduce(function (a, b) {
- a[b] = r.$fa(K[b]);
- return a;
- }, {});
- P.creationTime = J.creationTime || R;
- P.lastRefresh = R;
- P.lifespan = h.lifespan;
- P.lastMetadataUpdate = R;
- P.size = J.size;
- P.convertToBinaryData = h.convertToBinaryData;
- t = function (a, c, f) {
- a.Pgb(function (h, k) {
- h && D.error("Evicting", "Failed to delete some orphaned records", h);
- k.cla ? f() : (h = a.fmb()) ? this["delete"](a.getName(), h, function (h) {
- h ? (u || (C.isArray(c) ? c.forEach(function (b) {
- n(this, "save", a.getName, b.aQ, b.error);
- }
- .bind(this)) : q(this, "save", a.getName(), b, void 0, c)), d(c)) : f();
- }
- .bind(this)) : d(T.zD);
- }
- .bind(this));
- }
- .bind(this);
- ba = function () {
- var a,
- b,
- c;
- a = this.oi;
- b = 0;
- c = H.time.now();
- if (!C.Y(a))
- for (var f in a)
- b += a[f].slb(c);
- return b;
- }
- .bind(this);
- this.uFa(a, p, function () {
- l.replace(A, P, function (c, k) {
- k ? (l.Hd[b] = m.Eea(P), l.vBb(K, G(K, a, b, f, h, d, u, A, this, l, t), u, ba)) : c.code === T.zD.code ? t(l, c, function () {
- this.save(a, b, f, h, d, u);
- }
- .bind(this)) : d(c);
- }
- .bind(this), u, ba);
- }
- .bind(this));
- } else
- d(T.d0a);
- } else
- d(T.qw);
- };
- l.prototype["delete"] = function (a, b, h) {
- var k;
- k = C.Vb(h) ? h : c;
- this.$t(a) ? f(this.oi[a], b, function (c) {
- q(this, "delete", a, b, void 0, c);
- k(c);
- }
- .bind(this)) : k(T.qw);
- };
- l.prototype.uFa = function (a, b, h) {
- var k,
- p;
- k = C.Vb(h) ? h : c;
- if (this.$t(a)) {
- p = this.oi[a];
- h = H.Promise.all(b.map(function (a) {
- return new H.Promise(function (b) {
- f(p, a, function (c) {
- b({
- V: C.Y(c),
- error: c,
- co: a
- });
- }
- .bind(this));
- }
- .bind(this));
- }
- .bind(this))).then(function (b) {
- var u,
- d;
- for (var c = [], f = [], h = [], p = 0; p < b.length; p++) {
- u = b[p];
- u.V ? c.push(u.co) : u.error && f.push(u);
- }
- 0 < c.length && n(this, "delete", a, c);
- 0 < f.length && (h = f.map(function (a) {
- return a.co;
- }), b = U.tJa(f), d = b[0], b.forEach(function (b) {
- D.error("Failed to delete resources ", b.error, b.aQ);
- n(this, "delete", a, b.aQ, b.error);
- }
- .bind(this)));
- b = {};
- b.uVb = c;
- 0 < h.length && (b.vVb = h);
- d ? k(d, b) : k(void 0, b);
- }
- .bind(this), function (c) {
- n(this, "delete", a, b, c);
- k(c);
- }
- .bind(this));
- U.Ds(h);
- } else
- k(T.qw);
- };
- l.prototype.clear = function (a, b) {
- var f;
- f = C.Vb(b) ? b : c;
- this.$t(a) ? this.oi[a].clear(function (a) {
- f(a.filter(p));
- }) : f(T.qw);
- };
- l.prototype.iAb = function (a, b, f) {
- var h,
- k;
- h = C.Vb(f) ? f : c;
- if (this.$t(a)) {
- f = m.lca(b);
- k = this.oi[a];
- k.read(f, function (a, c) {
- var f;
- if (a)
- h(T.e0a);
- else {
- f = m.Eea(c) || {};
- k.MIa(Object.keys(f.yla), function (a) {
- f.size = a;
- (a = k.Hd[b]) && (f.lastMetadataUpdate && a.lastMetadataUpdate && a.lastMetadataUpdate <= f.lastMetadataUpdate ? k.Hd[b] = f : a.lastMetadataUpdate && (a.lastMetadataUpdate > f.lastMetadataUpdate || C.Y(f.lastMetadataUpdate)) && (f = a));
- h(null, f);
- });
- }
- });
- } else
- h(T.qw);
- };
- l.prototype.K2 = function (a) {
- H.eO(a);
- };
- l.prototype.constructor = l;
- d.P = l;
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.fca = void 0;
- b.fca = function (a, b) {
- var c;
- if (!Array.isArray(a.xEa))
- return a;
- c = a.No ? a.No() : Object.create(a);
- a.xEa.forEach(function (a) {
- if (void 0 !== a.dvb && b.duration >= a.dvb && a.config)
- for (var n in a.config)
- c[n] = a.config[n];
- });
- return c;
- };
- }, function (d) {
- d.P = "4.1.1050";
- }, function (d, b, a) {
- var n,
- k,
- p,
- h;
- function c(a, b, c) {
- this.np = b;
- this.En = c;
- this.Uv = this.gO = this.C0 = this.XOa = this.WOa = this.FH = this.Nc = this.xyb = this.En = this.Gh = this.Mb = this.T = this.sR = this.tR = this.$ = this.uKa = this.sx = void 0;
- }
- function l(a, b, c) {
- this.na = b;
- this.TKa = c;
- this.vCa = this.kVa = this.daa = this.tR = this.ps = this.rl = void 0;
- }
- function q(a, b, h, k, d, l) {
- var f;
- f = new c(0, b, a.En);
- a.forEach(function (a) {
- var c,
- h;
- c = a.buffer;
- h = c.$;
- a.M === n.La.AUDIO ? f.sx = h.length ? h[0].O : void 0 : a.M === n.La.VIDEO && (f.uKa = h.length ? h[0].O : void 0, f.$ = h, f.tR = c.em - c.Ic, f.sR = c.ci, f.T = c.Ic, f.Mb = c.Mb, f.Gh = a.az, f.En = a.En, f.xyb = b - a.En, f.Nc = a.Nc.filter(function (a) {
- return p(a, !0);
- }), f.FH = h.filter(function (a) {
- return f.T <= a.ZH;
- }).length);
- });
- this.Eh = f;
- this.jm = void 0;
- this.cFa = k;
- this.cba = d;
- this.Yka = this.f1 = this.oOa = this.Qq = this.xF = this.MGa = this.Sk = this.Nc = this.jm = void 0;
- this.$9a = l;
- }
- n = a(18);
- b = a(32);
- k = b.assert;
- p = b.UB;
- h = a(17).ma;
- c.prototype.constructor = c;
- l.prototype.constructor = l;
- q.prototype.constructor = q;
- q.prototype.wG = function (a, b) {
- var c,
- f,
- k,
- p,
- u,
- d,
- q,
- g,
- m,
- r,
- z,
- T,
- t,
- ea,
- ha,
- ta,
- N,
- na,
- ma,
- ja,
- Q;
- c = this.Eh;
- f = [];
- p = a[n.La.VIDEO];
- u = a[n.La.AUDIO];
- if (void 0 === p || void 0 === u)
- return !1;
- d = p.buffer;
- q = u.buffer;
- g = c.Nc.filter(function (a) {
- return a.FY();
- });
- if (void 0 === d || void 0 === q || void 0 === g || 0 === g.length)
- return !1;
- k = new l(0, p.Ic, b === h.Ng);
- m = 0;
- r = 0;
- z = 0;
- T = 0;
- ea = c.T;
- a = a[n.La.VIDEO].Ic;
- ha = c.$;
- t = c.FH;
- for (var V = 0; V < t; V++) {
- ta = ha[V];
- N = ta.offset;
- na = ta.offset + ta.ba - 1;
- ja = ta.Sr;
- ma = ta.Ov;
- Q = ma + ja;
- ta && ma <= a && Q > ea && (ja = ta.Sr, ma = Math.min(ja, Math.min(a, Q) - Math.max(ma, ea) + 1), T += ma, m += ma / ja * (na - N + 1), r += ta.O * ma, z += ta.wc * ma);
- }
- c.WOa = m;
- c.XOa = T;
- c.C0 = 0 < T ? r / T : 0;
- c.Oxb = 0 < T ? z / T : 0;
- c.gO || (c.gO = 0, g.some(function (a, b) {
- if (a.O === c.uKa)
- return c.gO = b, !0;
- }));
- g.forEach(function (a) {
- var b,
- h;
- a = a.FY();
- b = [];
- c.Uv || (c.Uv = a.km(c.T, void 0, !0));
- k.rl || (k.rl = a.km(k.na, void 0, !0), k.ps = a.length - 1);
- c.Gh !== c.Uv + c.FH && (c.Gh = c.Uv + c.FH);
- t = Math.min(k.ps, k.rl + 1);
- for (var p = c.Uv; p <= t; p++)
- h = a.get(p), b[p] = h;
- f.push(b);
- });
- b === h.Ng && (k.tR = d.em - d.Ic, k.daa = q.em - q.Ic, k.kVa = p.pQa, k.vCa = u.pQa);
- this.jm = k;
- this.Nc = g;
- this.Sk = f;
- return this.MGa = !0;
- };
- q.prototype.Qu = function () {
- var a,
- b,
- c,
- h,
- p,
- n,
- d,
- l,
- q,
- g,
- m,
- r,
- T,
- t,
- ea;
- if (this.Xn)
- return this.Xn;
- b = this.Qq;
- a = this.Eh;
- h = this.jm;
- p = this.Nc;
- n = this.oOa;
- r = this.$9a;
- k(void 0 !== b, "throughput object must be defined before retrieving the logdata from PlaySegment");
- if (b.trace && 0 === b.trace.length || void 0 === b.timestamp)
- h.TKa ? (q = !1, d = !0) : h.rl - a.Uv + 1 <= a.FH ? d = q = !0 : (q = !0, d = !1), l = !0;
- if (n) {
- g = n.ap;
- m = n.LX;
- for (var z = 0; z < r.length; z++)
- c = r[z], (b = n[c]) && b.Dy && (d = !0);
- }
- a = {
- bst: a.En,
- pst: a.np,
- s: a.Uv,
- e: h.rl,
- prebuf: a.FH,
- brsi: a.Gh,
- pbdlbytes: a.WOa,
- pbdur: a.XOa,
- pbtwbr: a.C0,
- pbvmaf: a.Oxb
- };
- l && (a.nt = l);
- d && (a.nd = d);
- g && (a.invalid = g);
- m && (a.exception = m);
- this.Yka && (a.rr = this.Yka);
- this.f1 && (a.ra = this.f1);
- if (!d && !g && !m && this.cFa) {
- a.bitrate = p.map(function (a) {
- return a.O;
- });
- b = this.Qq;
- c = b.trace;
- T = [];
- t = 0;
- c.forEach(function (a) {
- a = Number(a).toFixed(0);
- T.push(a - t);
- t = a;
- });
- a.tput = {
- ts: b.timestamp,
- trace: T,
- bkms: b.bm
- };
- }
- if (d || l || g || m)
- a.feasible = q;
- else
- for (a.sols = {}, a.elapsed = n.AX, z = 0; z < r.length; z++) {
- c = r[z];
- b = n[c];
- d = {};
- if (b && b.Os && (d.algelapsed = b.Z9a, d.maxHeapTotal = b.xq, d.f = b && b.yi || !1, d.dltwbr = b.xhb, d.dlvmaf = b.GFa, d.dlvdur = b.fda, d.dlvbytes = b.eda, d.dlabytes = b.dda, this.cFa)) {
- t = 0;
- ea = [];
- b.Os.filter(function (a) {
- return a;
- }).map(function (a) {
- return a.vd;
- }).forEach(function (a) {
- ea.push(a - t);
- t = a;
- });
- d.strmsel = ea;
- }
- a.sols[c] = d;
- }
- return this.Xn = a;
- };
- d.P = q;
- }, function (d, b, a) {
- var c,
- l,
- q,
- n,
- k,
- p,
- h,
- f,
- u,
- g,
- G,
- C;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.J2a = b.m6 = b.L2a = b.mxa = void 0;
- c = a(7);
- l = a(4);
- q = a(32).UB;
- n = a(11).uy;
- k = a(372);
- p = a(388);
- h = a(231);
- f = a(17);
- u = a(6);
- d = function () {
- function a(a, b, c, f, h, k, p, d, n, u, l) {
- var q;
- q = this;
- this.G = a;
- this.zf = b;
- this.K = c;
- this.jb = f;
- this.X = h;
- this.wI = k;
- this.ub = p;
- this.Ua = d;
- this.hf = n;
- this.oM = u;
- this.ix = l;
- this.EV = [];
- this.K$ = [];
- this.hAa = [];
- this.Oya = void 0;
- [0, 1].forEach(function (a) {
- q.jb(a) && (q.EV[a] = new C(q.G, a), q.K$[a] = new g(a), q.hAa[a] = new G(a));
- });
- this.Uw = void 0;
- }
- Object.defineProperties(a.prototype, {
- Ne: {
- get: function () {
- return this.EV;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- Wv: {
- get: function () {
- return this.K$;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- us: {
- get: function () {
- return this.hAa;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- iu: {
- get: function () {
- return this.Oya;
- },
- set: function (a) {
- this.Oya = a;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- a.prototype.A_ = function (a) {
- var b,
- f,
- h,
- k,
- p;
- b = this.K;
- f = a.M;
- h = l.uk()[f];
- b = b.kIb ? 0 === f ? b.cM : b.vR : 1 === f ? b.cM : b.vR;
- k = this.X.bd();
- p = this.X.$d();
- f = this.oM.cMa(a.Ia.ad, f);
- h = {
- Zp: h,
- T: f.ed,
- Ic: p,
- Mb: f.SH || p,
- em: f.EM || p,
- ci: f.ci,
- dj: f.dj,
- Bea: f.$.length,
- $: []
- };
- b = {
- state: k,
- my: this.X.my(),
- az: a.Ck,
- buffer: h,
- kda: b,
- RLa: !!this.wI.CO,
- iN: !!this.wI.Hs,
- Eo: this.ub && this.ub.Eo,
- $ka: a.Tnb
- };
- void 0 === b.az && (b.az = a.dea(h.Mb));
- h.$ = f.$;
- c.la(h.T) ? a.seeking && h.Ic != h.T && (h.Ic = h.T) : (h.T = 0, h.Mb = 0);
- this.zf.acb(b);
- this.zf.G9a(b);
- return b;
- };
- a.prototype.$bb = function (a, b, c) {
- var d,
- n;
- a = this.EV[a];
- for (var f = a.hp, h = "manifest", k = 0, p = b.length - 1; 0 <= p; p--) {
- d = b[p];
- n = d.O;
- if (q(d)) {
- k = Math.max(k, n);
- break;
- } else !d.inRange && d.dG && Array.isArray(d.dG) ? h = d.dG.join("|") : this.K.q2 && !d.Ux ? h = "bc" : d.Tn ? d.Uu && (h = "hf") : h = "av";
- }
- if (void 0 === f || k !== f) {
- a.hp = k;
- if (this.ix.So)
- try {
- this.Uw && this.Tob();
- } catch (ea) {
- this.Ua.Am("Hindsight: Error when handling maxbitrate chagned: " + ea);
- }
- this.Ua.Zvb(f, k, h, c);
- }
- };
- a.prototype.Qnb = function (a) {
- return this.Rfa(a).Kg;
- };
- a.prototype.Rfa = function (a) {
- var b,
- h,
- k,
- d,
- n,
- l,
- q,
- g,
- A,
- G,
- C,
- D;
- b = this.K;
- h = a.M;
- k = 1 == h;
- n = this.EV[h];
- l = this.K$[h];
- if (!n.Fm)
- return {
- Kg: void 0
- };
- q = this.A_(a);
- g = a.Oq;
- A = g.jv;
- G = a.r_.R;
- C = a.track.Nc;
- D = A ? A.Kg : n.sea;
- if (A && (d = A.O, A && !A.track.equals(g.track))) {
- D = p.eea(C, d);
- void 0 === D && a.bb("Unable to find stream for bitrate " + d);
- d = C[D];
- if (A.O !== d.O || 1 === h)
- q.state = f.ma.Pg;
- A = d;
- }
- if (!G.sm.mR(G.oa, C))
- return a.bf("location selector did not find any urls"), {
- Kg: void 0
- };
- if (!k && (d = b.MI, !(d && 0 < d.length) && D && C[D] && A && A.location === C[D].location))
- return {
- Kg: D
- };
- d = a.JI.L1(q, C, void 0, this.zf.snb(h), n.Fm.config.Hv, G.Rh);
- if (!d)
- return a.bf("stream selector did not find a stream"), {
- Kg: void 0
- };
- this.wI.Hs && this.wI.Hs.K9a(a.M, d, C);
- k && this.$bb(h, C, a.Mb);
- q = d.vd;
- A = C[q];
- g = A.O;
- q != D && (k && b.jG && this.hf.Fya(a, g), k || this.zf.xI(g));
- c.la(n.sea) || (n.sea = q);
- a.xj || (d.xj ? (u.assert(void 0 !== d.oW), a.UC(d.oW), l.Wp = d.oW) : (a.ty = d.ty, a.PC = d.PC, a.Xh = d.Xh));
- this.Dt();
- if (k)
- if (d.Cu)
- G.T1(d.Cu);
- else if (!G.kZ() && !b.DSa)
- for (a = 0; a < C.length; ++a)
- if (b = C[a], b.Hj && !G.Yi(h, b.sa)) {
- G.T1([b.sa]);
- break;
- }
- return {
- sa: A.sa,
- Kg: q
- };
- };
- a.prototype.Dt = function () {
- var a,
- b,
- c,
- f,
- h,
- k;
- c = this.Ne[0];
- f = this.Ne[1];
- h = this.Wv[1];
- k = this.Wv[0];
- c = this.oM.Ub.Wbb(null !== (a = null === f || void 0 === f ? void 0 : f.Eq) && void 0 !== a ? a : 0, null !== (b = null === c || void 0 === c ? void 0 : c.Eq) && void 0 !== b ? b : 0, this.iu, this.wI.CC);
- c.Wp && (this.wI.Tk && h ? h.Wp = c.Wp : k && (k.Wp = c.Wp));
- return c.xj;
- };
- a.prototype.bea = function (a, b) {
- var c,
- k,
- p,
- d;
- c = this;
- if (this.Uw) {
- k = this.Uw;
- p = this.X.$d();
- d = [];
- b && (p = b.na);
- h.Pe.forEach(function (b) {
- var h,
- k;
- h = c.oM.Ub.Jc(b);
- if (h) {
- k = c.A_(h);
- k.M = b;
- k.Ic = p;
- a === f.ma.Ng && (k.pQa = h.Ia.Baa(p));
- d[b] = k;
- }
- });
- k.MGa || k.wG(d, a) || this.vla();
- return k;
- }
- };
- a.prototype.Tob = function () {
- var a,
- b,
- c,
- f;
- a = this;
- b = this.Uw;
- c = this.K;
- f = [];
- b && (this.bea(void 0), b && !b.xF && this.zf.Oka.Oda(b));
- h.Pe.forEach(function (b) {
- var c,
- h;
- c = a.oM.Ub.Jc(b);
- if (c) {
- h = a.A_(c);
- h.En = l.time.ea();
- h.Nc = c.track.Nc;
- h.M = b;
- f[b] = h;
- }
- });
- b = l.uk();
- b = {
- Y8a: b[0],
- aJ: b[1],
- JO: c.fC,
- tv: c.tv
- };
- this.Uw = b = new k(f, l.time.ea(), void 0, this.ix.kG, b, c.VN);
- };
- a.prototype.vla = function () {
- this.Uw = void 0;
- };
- a.prototype.HHb = function (a) {
- var b,
- c,
- p,
- d,
- n;
- b = this;
- c = a.oldValue;
- p = a.newValue;
- d = this.Uw;
- a = this.K;
- p === f.ma.Pc && c !== f.ma.Pc ? (d && this.G.warn("override an existing play segment!"), n = [], h.Pe.forEach(function (a) {
- var c,
- f,
- h;
- c = b.oM.Ub.Jc(a);
- if (c) {
- f = b.A_(c);
- h = b.Ne[a];
- h.Jma ? (f.En = h.Jma, h.Jma = void 0) : f.En = h.En;
- f.Nc = c.track.Nc;
- f.M = a;
- n[a] = f;
- }
- }), p = l.uk(), p = {
- Y8a: p[0],
- aJ: p[1],
- JO: a.fC,
- tv: a.tv
- }, this.Uw = d = new k(n, l.time.ea(), c, this.ix.kG, p, a.VN)) : p !== f.ma.Pc && c === f.ma.Pc && d && (this.bea(p), d && !d.xF && this.zf.Oka.Oda(d), this.vla());
- };
- return a;
- }
- ();
- b.mxa = d;
- g = function () {
- function a(a) {
- this.M = a;
- this.rM = this.Vo = this.Zu = this.Wp = this.Zo = void 0;
- }
- a.prototype.PHb = function (a, b, c, f) {
- this.Zo = a ? a : this.Zo;
- this.Wp = this.Wp;
- this.Zu = b ? b : this.Zu;
- this.Vo = c ? c : this.Vo;
- this.lqb = f ? f : this.lqb;
- };
- return a;
- }
- ();
- b.L2a = g;
- G = function () {
- return function (a) {
- this.M = a;
- this.m_ = this.Pha = this.m_ = this.Mha = this.YB = void 0;
- };
- }
- ();
- b.m6 = G;
- C = function () {
- return function (a, b) {
- this.M = b;
- this.G = n(l, a, "[" + b + "]");
- this.bf = this.G.error.bind(this.G);
- this.bb = this.G.warn.bind(this.G);
- this.uj = this.G.trace.bind(this.G);
- this.xb = this.G.log.bind(this.G);
- this.HE = this.G.debug.bind(this.G);
- this.sea = this.En = this.Yl = this.Fm = void 0;
- this.CP = this.Eq = 0;
- this.eJ = !1;
- this.hp = void 0;
- };
- }
- ();
- b.J2a = C;
- }, function (d, b, a) {
- var l;
- function c(a, b) {
- return a < b ? -1 : a > b ? 1 : 0;
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.p6 = void 0;
- l = a(0);
- d = function () {
- function a(a, b) {
- this.data = null !== a && void 0 !== a ? a : [];
- this.compare = null !== b && void 0 !== b ? b : c;
- if (!this.empty)
- for (a = (this.length >> 1) - 1; 0 <= a; a--)
- this.mza(a);
- }
- Object.defineProperties(a.prototype, {
- length: {
- get: function () {
- return this.data.length;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- empty: {
- get: function () {
- return 0 === this.data.length;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- a.prototype.push = function (a) {
- this.data.push(a);
- this.wBa(this.length - 1);
- };
- a.prototype.pop = function () {
- var a,
- b;
- if (!this.empty) {
- a = this.data[0];
- b = this.data.pop();
- this.empty || (this.data[0] = b, this.mza(0));
- return a;
- }
- };
- a.prototype.NH = function () {
- return this.data[0];
- };
- a.prototype.pzb = function (a) {
- a = this.data.indexOf(a);
- -1 !== a && this.wBa(a);
- };
- a.prototype.map = function (a) {
- return this.data.map(a);
- };
- a.prototype.find = function (a) {
- return l.__read(this.data.filter(a), 1)[0];
- };
- a.prototype.clear = function () {
- this.data = [];
- };
- a.prototype.remove = function (a) {
- a = this.data.indexOf(a);
- -1 !== a && this.data.splice(a, 1);
- };
- a.prototype.wBa = function (a) {
- for (var b = this.data, c = this.compare, h = b[a], f, d; 0 < a; ) {
- f = a - 1 >> 1;
- d = b[f];
- if (0 <= c(h, d))
- break;
- b[a] = d;
- a = f;
- }
- b[a] = h;
- };
- a.prototype.mza = function (a) {
- for (var b = this.data, c = this.compare, h = this.length >> 1, f = b[a], d, n, l; a < h; ) {
- d = (a << 1) + 1;
- l = b[d];
- n = d + 1;
- n < this.length && 0 > c(b[n], l) && (d = n, l = b[n]);
- if (0 <= c(l, f))
- break;
- b[a] = l;
- a = d;
- }
- b[a] = f;
- };
- return a;
- }
- ();
- b.p6 = d;
- }, function (d, b, a) {
- var c;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.y3 = void 0;
- c = a(206);
- d = function () {
- var U3Y;
- U3Y = 2;
- function a(a, b) {
- var K3Y,
- R3Y;
- K3Y = 2;
- while (K3Y !== 3) {
- R3Y = "1S";
- R3Y += "IYbZ";
- R3Y += "rN";
- R3Y += "JC";
- R3Y += "p9";
- switch (K3Y) {
- case 4:
- R3Y;
- K3Y = 3;
- break;
- case 2:
- this.config = a;
- this.kH = b;
- this.Paa = null;
- K3Y = 4;
- break;
- }
- }
- }
- while (U3Y !== 3) {
- switch (U3Y) {
- case 2:
- a.prototype.EFa = function (a, b) {
- var C3Y,
- k;
- C3Y = 2;
- while (C3Y !== 9) {
- switch (C3Y) {
- case 2:
- k = null === this.Paa ? a * (100 - this.config.v2) / 100 : c.Faa(a, this.Paa);
- b = null !== b && void 0 !== b ? b : this.kH;
- C3Y = 4;
- break;
- case 4:
- this.config.Uha && b ? (a = c.Faa(a, b), a = Math.max(a, k)) : a = k;
- return a;
- break;
- }
- }
- };
- a.prototype.xI = function (a) {
- var k3Y;
- k3Y = 2;
- while (k3Y !== 1) {
- switch (k3Y) {
- case 2:
- this.Paa = a;
- k3Y = 1;
- break;
- case 4:
- this.Paa = a;
- k3Y = 9;
- break;
- k3Y = 1;
- break;
- }
- }
- };
- a.prototype.Mna = function (a) {
- var h3Y;
- h3Y = 2;
- while (h3Y !== 1) {
- switch (h3Y) {
- case 4:
- this.config = a;
- h3Y = 4;
- break;
- h3Y = 1;
- break;
- case 2:
- this.config = a;
- h3Y = 1;
- break;
- }
- }
- };
- return a;
- break;
- }
- }
- }
- ();
- b.y3 = d;
- }, function (d, b, a) {
- var q,
- n,
- k,
- p,
- h,
- f;
- function c(a, b, c, h) {
- p(!q.Y(h), "Must have at least one selected stream");
- return new f(h);
- }
- function l(a, b, c, h) {
- p(!q.Y(h), "Must have at least one selected stream");
- return new f(h);
- }
- q = a(7);
- b = a(32);
- n = b.console;
- k = b.debug;
- p = b.assert;
- h = b.UB;
- f = b.bn;
- d.P = {
- STARTING: function (a, b, c) {
- var d,
- u,
- l,
- q;
- function p(c, f) {
- var h,
- p,
- d,
- u;
- h = c.id;
- p = c.O;
- d = c.Fa || 0;
- u = !!d;
- k && n.log("Checking feasibility of [" + f + "] " + h + " (" + p + " Kbps)");
- if (!c.Hj)
- return k && !c.Tn && n.log(" Not available"), k && !c.inRange && n.log(" Not in range"), k && c.Uu && n.log(" Failed"), !1;
- if (p > a.HO)
- return k && n.log(" Above maxInitAudioBitrate (" + a.HO + " Kbps)"), !1;
- if (!(p * a.T_ / 8 < b.buffer.Zp))
- return k && n.log(" audio buffer too small to handle this stream"), !1;
- if (u) {
- k && n.log(" Have throughput history = " + u + " : available throughput = " + d + " Kbps");
- if (p < d / l)
- return k && n.log(" +FEASIBLE: bitrate less than available throughput"), !0;
- k && n.log(" bitrate requires more than available throughput");
- return !1;
- }
- c = a.ZO;
- b.VZ && (c = Math.max(c, a.YO));
- if (p <= c)
- return k && n.log(" Bitrate is less than max of minInitAudioBitrate (" + a.ZO + " Kbps) " + (b.VZ ? " and also minHCInitAudioBitrate (" + a.YO + " Kbps)" : "")), k && n.log(" +FEASIBLE: no throughput history and has minimum bitrate configured"), !0;
- k && n.log(" No throughput history");
- return !1;
- }
- d = new f();
- l = a.XQb || 1;
- for (q = c.length - 1; 0 <= q; --q) {
- u = c[q];
- if (p(u, q)) {
- d.vd = q;
- break;
- }
- h(u) && (d.vd = q);
- }
- return d;
- },
- BUFFERING: c,
- REBUFFERING: c,
- PLAYING: l,
- PAUSED: l
- };
- }, function (d, b, a) {
- var c,
- l,
- q,
- n,
- k,
- p,
- h,
- f,
- u;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.nQ = void 0;
- c = a(50);
- l = a(7);
- q = a(74);
- n = a(18);
- d = a(32);
- k = a(794);
- p = a(17);
- h = d.assert;
- f = d.bn;
- b.nQ = u;
- (function () {
- var l3Y,
- a8P;
- l3Y = 2;
- while (l3Y !== 5) {
- a8P = "1";
- a8P += "SIYb";
- a8P += "Z";
- a8P += "rNJCp9";
- switch (l3Y) {
- case 2:
- b.nQ = u = function (b, d, u, g, A, m) {
- var V7B = v3YY;
- var Q3Y,
- D,
- H,
- K,
- J,
- r,
- t,
- V,
- ta,
- N,
- na,
- ma,
- ja,
- Q,
- Ea,
- ia,
- Ga,
- x,
- ka,
- Da,
- Oa,
- Pa,
- B,
- L,
- h8P,
- Q8P,
- o8P,
- y8P;
- function C(a, c, f, p, u, n) {
- var N3Y,
- l,
- q,
- g,
- A,
- G,
- C,
- D,
- K,
- R,
- z,
- P,
- T,
- ba,
- U,
- N,
- X8P,
- B8P,
- N8P,
- Z8P,
- M8P,
- L8P,
- A8P,
- w8P,
- l8P,
- i8P;
- N3Y = 2;
- while (N3Y !== 61) {
- X8P = "Fi";
- X8P += "rs";
- X8P += "t stream";
- X8P += " ";
- X8P += "has failed";
- B8P = "Firs";
- B8P += "t ";
- B8P += "strea";
- B8P += "m not in ";
- B8P += "range";
- N8P = "Firs";
- N8P += "t str";
- N8P += "eam un";
- N8P += "avai";
- N8P += "lable";
- Z8P = "First str";
- Z8P += "e";
- Z8P += "a";
- Z8P += "m undef";
- Z8P += "ined";
- M8P = "Se";
- M8P += "cond str";
- M8P += "eam";
- M8P += " not usa";
- M8P += "ble";
- L8P = "Se";
- L8P += "co";
- L8P += "nd";
- L8P += " stream has ";
- L8P += "failed";
- A8P = "Second stream not in";
- A8P += " rang";
- A8P += "e";
- w8P = "Second stream un";
- w8P += "availab";
- w8P += "le";
- l8P = "Second ";
- l8P += "s";
- l8P += "tream un";
- l8P += "def";
- l8P += "ined";
- i8P = "First str";
- i8P += "eam ";
- i8P += "not usa";
- i8P += "ble";
- switch (N3Y) {
- case 65:
- N3Y = 0 < P ? 64 : 63;
- break;
- case 14:
- N3Y = l >= Math.max(a.G_, a.O * g) && !a.xSa ? 13 : 10;
- break;
- case 45:
- P = u;
- N3Y = 65;
- break;
- case 32:
- h(a.Hj, i8P);
- h(c, l8P);
- h(c.Tn, w8P);
- h(c.inRange, A8P);
- h(!c.Uu, L8P);
- h(c.Hj, M8P);
- N3Y = 43;
- break;
- case 9:
- return !1;
- break;
- case 7:
- N3Y = !n || !q ? 6 : 10;
- break;
- case 12:
- N3Y = l >= a.O * g ? 11 : 10;
- break;
- case 6:
- N3Y = q && !b.q2 ? 14 : 12;
- break;
- case 46:
- U = Math.min(P, a.$.length - G),
- ba.push(a.$.zI.subarray(G, G + U)),
- P -= U,
- G += U,
- G >= a.$.length && (G = 0);
- N3Y = 47;
- break;
- case 3:
- N3Y = Q && !Q.RX && Q.Fa >= l && Q.O <= a.O ? 9 : 8;
- break;
- case 43:
- T = a.Fa;
- V7B.P8P(0);
- ba = V7B.E8P(n, g);
- U = a.$ && a.$.length;
- N = c.$ && c.$.length;
- h(f.length === C);
- b.pia && (R = Math.min(R, ba));
- N3Y = 37;
- break;
- case 2:
- l = a.Fa || 0;
- q = a.$ && a.$.length;
- g = n ? b.$da : q ? b.QX : b.vjb;
- N3Y = 3;
- break;
- case 64:
- U = Math.min(P, c.$.length - G),
- ba.push(c.$.zI.subarray(G, G + U)),
- P -= U,
- G += U,
- G >= c.$.length && (G = 0);
- N3Y = 65;
- break;
- case 8:
- n || q || (a.Tma = !0);
- N3Y = 7;
- break;
- case 36:
- c = !1;
- N3Y = 54;
- break;
- case 53:
- Q = {
- RX: c && c.result,
- Fa: l,
- O: a.O
- };
- return c && c.result;
- break;
- case 10:
- n = !b.cca || a === f || a.uc === f.uc && m ? 0 : (f = a.mb) && f.Ch && f.Ch.Ca ? f.Ch.Ca + b.$ba * (f.Ch.Ih ? Math.sqrt(f.Ch.Ih) : 0) : 0;
- f = Ga;
- V7B.P8P(2);
- n = V7B.E8P(r, n, J);
- q = ma;
- V7B.G8P(0);
- g = V7B.E8P(J, V);
- N3Y = 16;
- break;
- case 51:
- N || (c = a);
- ba = [];
- N3Y = 49;
- break;
- case 13:
- return !0;
- break;
- case 63:
- c = 0 < p || 0 < u ? k(f.concat(ba), C + p + u, n, g, q, D, A, C, C + p, z, K, T, R, b.$O, b.q2) : T > a.G_ ? {
- result: !0,
- DO: 0,
- Ux: !0
- }
- : {
- result: !1,
- DO: 0,
- Ux: !0
- };
- N3Y = 54;
- break;
- case 54:
- c && c.result && (H.RTb = c.DO);
- N3Y = 53;
- break;
- case 47:
- N3Y = 0 < P ? 46 : 45;
- break;
- case 22:
- P = !!d.RLa;
- h(a, Z8P);
- h(a.Tn, N8P);
- h(a.inRange, B8P);
- h(!a.Uu, X8P);
- N3Y = 32;
- break;
- case 62:
- p = Math.max(0, Math.min(p, a.$.length - G)),
- u = Math.max(0, Math.min(u, c.$.length - G - p)),
- 0 < p && ba.push(a.$.zI.subarray(G, G + p)),
- 0 < u && ba.push(c.$.zI.subarray(G + p, G + p + u));
- N3Y = 63;
- break;
- case 11:
- return !0;
- break;
- case 48:
- P = p;
- N3Y = 47;
- break;
- case 37:
- N3Y = !T || T < a.O * b.rga || !U ? 36 : 51;
- break;
- case 49:
- N3Y = P ? 48 : 62;
- break;
- case 16:
- V7B.P8P(0);
- A = V7B.J8P(J, t);
- G = ta;
- C = Ga.length;
- D = na;
- K = ka;
- R = ja;
- z = d.kda;
- N3Y = 22;
- break;
- }
- }
- }
- function G(a, b, c) {
- var J3Y;
- J3Y = 2;
- while (J3Y !== 1) {
- switch (J3Y) {
- case 2:
- return a.$ ? a.$.jca(b, c) : 0;
- break;
- case 4:
- return a.$ ? a.$.jca(b, c) : 3;
- break;
- J3Y = 1;
- break;
- }
- }
- }
- Q3Y = 2;
- while (Q3Y !== 40) {
- h8P = "n";
- h8P += "u";
- h8P += "mb";
- h8P += "e";
- h8P += "r";
- Q8P = "n";
- Q8P += "u";
- Q8P += "mbe";
- Q8P += "r";
- o8P = "playe";
- o8P += "r m";
- o8P += "issing streamingIndex";
- y8P = "Mus";
- y8P += "t have a";
- y8P += "t least one s";
- y8P += "el";
- y8P += "ected stream";
- switch (Q3Y) {
- case 16:
- Q3Y = (this.PU || n.BS.Pg) === n.BS.c3a || !A.Fa ? 15 : 27;
- break;
- case 35:
- Q3Y = C(A, x, A, Ea, ia, !1) ? 34 : 28;
- break;
- case 28:
- Q3Y = A.$ && A.$.length ? 44 : 30;
- break;
- case 11:
- V7B.P8P(0);
- N = V7B.E8P(r, V);
- na = d.state === p.ma.Pc || d.state === p.ma.Lh ? d.buffer.dj : 0;
- ma = b.I_;
- Q3Y = 19;
- break;
- case 33:
- Oa = G(A, ta, b.uga);
- V7B.G8P(1);
- Pa = G(A, V7B.E8P(ta, Oa), b.mia);
- Q3Y = 31;
- break;
- case 44:
- B = G(A, ta, b.tga);
- V7B.G8P(1);
- L = G(A, V7B.E8P(ta, B), b.lia);
- Q3Y = 42;
- break;
- case 34:
- Q3Y = g + 1 < u.length && N > b.ov && (void 0 === this.j_ || this.Oha && this.Oha > this.j_ || t - this.j_ > b.v_ && N > b.oia) ? 33 : 30;
- break;
- case 2:
- h(!l.Y(g), y8P);
- h(l.la(d.az), o8P);
- h(Q8P === typeof d.buffer.Zp);
- Q3Y = 3;
- break;
- case 3:
- h(h8P === typeof d.kda);
- H = new f();
- K = A = u[g];
- J = d.buffer.T;
- Q3Y = 6;
- break;
- case 23:
- ka = x - Ga.ba;
- x = u[Math.max(V7B.J8P(1, g, V7B.G8P(0)), 0)];
- Da = null !== (D = this.qfa(d, u, b).Dl) && void 0 !== D ? D : u[0];
- Q3Y = 35;
- break;
- case 15:
- return a.call(this, d, b, u, A);
- break;
- case 30:
- H.Dl = A || K;
- return H;
- break;
- case 41:
- A = Da;
- Q3Y = 30;
- break;
- case 6:
- r = d.buffer.Ic;
- t = d.buffer.Mb;
- V = d.buffer.em;
- ta = d.az;
- Q3Y = 11;
- break;
- case 27:
- A.$ && A.$.length || (A.Tma = !0);
- Ga = q.Jh.Jfb(d.buffer.$);
- x = d.buffer.Zp;
- 0 < b.qs && (x = Math.min(x, b.qs));
- Q3Y = 23;
- break;
- case 19:
- ja = b.pv ? b.pv : 1E3;
- Ea = G(A, ta, b.sga);
- V7B.P8P(1);
- ia = G(A, V7B.J8P(ta, Ea), b.kia);
- Q3Y = 16;
- break;
- case 31:
- A = c.An(u.slice(g + 1, b.Hma && N >= b.$na ? u.length : g + 2), function (a, b) {
- var a3Y;
- a3Y = 2;
- while (a3Y !== 1) {
- switch (a3Y) {
- case 2:
- return C(a, u[g + b], K, Oa, Pa, !1);
- break;
- case 4:
- return C(a, u[g / b], K, Oa, Pa, -2);
- break;
- a3Y = 1;
- break;
- }
- }
- });
- Q3Y = 30;
- break;
- case 42:
- Q3Y = (A = c.An(u.slice(0, g).reverse(), function (a, b) {
- var z3Y;
- z3Y = 2;
- while (z3Y !== 1) {
- switch (z3Y) {
- case 2:
- return C(a, u[Math.max(g - b - 2, 0)], K, B, L, !0);
- break;
- }
- }
- })) && A.Kg < Da.Kg || !A ? 41 : 30;
- break;
- }
- }
- };
- a8P;
- l3Y = 5;
- break;
- }
- }
- function a(a, b, c, f) {
- var X3Y,
- h,
- k;
- X3Y = 2;
- while (X3Y !== 9) {
- switch (X3Y) {
- case 5:
- X3Y = (null !== (k = null === (h = a.Dl) || void 0 === h ? void 0 : h.O) && void 0 !== k ? k : -Infinity > f.O) ? 4 : 3;
- break;
- case 4:
- a.Dl = f;
- X3Y = 3;
- break;
- case 2:
- a = this.qfa(a, c, b);
- X3Y = 5;
- break;
- case 3:
- return a;
- break;
- }
- }
- }
- }
- ());
- }, function (d, b, a) {
- var c;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.pka = void 0;
- c = a(17);
- b.pka = function (a) {
- switch (a) {
- case c.ma.Ce:
- a = c.Ye.Ce;
- break;
- case c.ma.Ng:
- a = c.Ye.Ng;
- break;
- case c.ma.Pg:
- case c.ma.$m:
- case c.ma.pE:
- a = c.Ye.$m;
- break;
- default:
- a = c.Ye.NT;
- }
- return a;
- };
- }, function (d, b, a) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- a(0).__exportStar(a(798), b);
- }, function (d, b, a) {
- var c;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.c8 = void 0;
- c = a(157);
- a(34);
- d = function () {
- function a(a, b) {
- this.Jg = a;
- this.console = b;
- this.tA = Infinity;
- this.OK = this.sV = 0;
- }
- a.ABb = function () {
- this.S$ = !0;
- };
- a.HRb = function () {
- this.S$ = !1;
- };
- a.prototype.Njb = function (a, b, k, p, h) {
- var f;
- if (this.Jg) {
- f = a.$;
- if (f) {
- if (1 === k)
- k = f.km(this.Jg * a.Ta.va, void 0, !0), f = a.wi(k), f.Qj({
- start: 0,
- end: this.Jg - k * f.qda.Eu(a.Ta)
- }), this.tA = this.Jg;
- else {
- k = c.wfa(p, h) + p.V$a * a.Ta.va;
- k = b + k;
- b = Math.ceil(k / a.Ta.va);
- k = f.km(k, void 0, !0);
- for (h = p = 0; h < k; ++h)
- f = a.wi(h), p += f.qda.Eu(a.Ta);
- p = b - p;
- f = a.wi(k);
- f.Qj({
- end: p
- });
- this.tA = b;
- }
- f.mMa();
- return f;
- }
- }
- };
- a.prototype.dqb = function (a) {
- this.OK += a.WQa;
- this.console.warn("StallAtFrameCount, adding frames: " + a.WQa, "total frames: " + this.OK, "needed frames: " + this.tA);
- };
- a.prototype.ipb = function () {
- this.console.trace("stallAtFrameCount.hasEnoughRequestedFrames:", "requested: " + this.sV, "needed: " + this.tA);
- return this.sV >= this.tA;
- };
- a.prototype.hpb = function () {
- return this.OK >= this.tA;
- };
- a.prototype.eqb = function (a, b) {
- this.sV += this.HB(a, b);
- };
- a.prototype.Nib = function (a, b, c) {
- a.WQa = this.HB(b, c);
- };
- a.prototype.HB = function (a, b) {
- return a.qda.Eu(b.Ta);
- };
- a.prototype.dm = function () {
- if (!this.hpb())
- return !1;
- if (a.S$)
- return this.console.warn("StallAtFrameCount underflow reported, bufferingComplete = false"), !1;
- this.console.warn("StallAtFrameCount bufferingComplete = true:", this.OK + " >= " + this.tA);
- return !0;
- };
- a.S$ = !1;
- return a;
- }
- ();
- b.c8 = d;
- }, function (d, b, a) {
- var c,
- l,
- q,
- n,
- k,
- p,
- h,
- f,
- u,
- g,
- G,
- C,
- H,
- D;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.h7 = void 0;
- c = a(0);
- l = a(809);
- q = a(83);
- n = a(229);
- k = a(17);
- p = a(808);
- h = a(380);
- f = a(799);
- u = a(379);
- g = a(11);
- G = a(6);
- C = a(34);
- H = a(7);
- D = a(4);
- d = a(109);
- a = a(38);
- q = function (a) {
- function b(b, c, k, d, n, q, A, G, C, H, K) {
- var m;
- b = a.call(this, b) || this;
- b.K = c;
- b.Fc = n;
- b.Vg = q;
- b.Oza = A;
- b.Z4a = C;
- b.a5a = K;
- b.connected = !1;
- b.or = !1;
- b.Bt = !1;
- b.G = g.uy(D, k, "[" + b.M + "]");
- b.bf = b.G.error.bind(b.G);
- b.bb = b.G.warn.bind(b.G);
- b.uj = b.G.trace.bind(b.G);
- b.wQb = A;
- b.FV = A.va;
- b.UMa = 1 === b.M ? c.V_ : c.Q_;
- b.tH = (1 === b.M ? c.wH : c.rH) || c.tH;
- H && (m = H.L$);
- b.Oq = new f.pxa(q, H ? H.Oq : void 0);
- b.L$ = new u.RT(G, c, m);
- b.Pt = new l.tva(b, d, b.K, b.G, b.M);
- b.wA = new p.zwa(b, c, b.G, b.Pt, b.Fc, b.M);
- b.EL = !1;
- c.Jg && (b.Jg = new h.c8(c.Jg, b.G));
- return b;
- }
- c.__extends(b, a);
- Object.defineProperties(b.prototype, {
- M: {
- get: function () {
- return this.Vg.M;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- track: {
- get: function () {
- return this.Vg;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- ad: {
- get: function () {
- return this.Fc;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- Na: {
- get: function () {
- return this.Fc.da.id;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- Ia: {
- get: function () {
- return this.wA;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- Nc: {
- get: function () {
- return this.Vg.Nc;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- Mo: {
- get: function () {
- return this.wA.Mo;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- Bl: {
- get: function () {
- return this.wA.Bl;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- Mb: {
- get: function () {
- return this.FV;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- Or: {
- get: function () {
- return this.Ia.Or;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- Uba: {
- get: function () {
- return this.Ia.Uba;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- Jha: {
- get: function () {
- return !!this.mg && this.Ck > this.mg.index;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- NA: {
- get: function () {
- return this.Jha && 0 === this.wA.Gv;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- JI: {
- get: function () {
- return this.L$;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- jv: {
- get: function () {
- return this.Oq.jv;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- S: {
- get: function () {
- var a,
- b;
- return null !== (b = null === (a = this.gg) || void 0 === a ? void 0 : a.S) && void 0 !== b ? b : 1;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- Ra: {
- get: function () {
- var a;
- return null === (a = this.gg) || void 0 === a ? void 0 : a.Ra;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- hb: {
- get: function () {
- var a;
- return null === (a = this.mg) || void 0 === a ? void 0 : a.hb;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- Pj: {
- get: function () {
- return this.ad.Jr.Nf(this.S).Ab;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- xj: {
- get: function () {
- return this.Bt;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- mu: {
- get: function () {
- return this.Sya;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- nZ: {
- get: function () {
- return this.Ia.nZ;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- cD: {
- get: function () {
- return this.Ia.cD;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- Pma: {
- get: function () {
- return this.Ia.Pma;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- b.prototype.Xg = function () {
- this.or = !0;
- this.wA.Xg();
- };
- b.prototype.toJSON = function () {
- return {
- started: this.cD,
- startOfSequence: this.Pma,
- segmentId: this.Na,
- requestedBufferLevel: this.Bl,
- viewableId: this.Fc.R.oa,
- hasFragments: this.nZ
- };
- };
- b.prototype.UC = function (a) {
- this.Bt = !0;
- this.Sya = a;
- };
- b.prototype.FW = function () {
- this.Bt = !1;
- this.Sya = void 0;
- };
- b.prototype.Cp = function () {
- return this.Ia.Cp();
- };
- b.prototype.pma = function (a, b) {
- this.FV = a;
- this.Ck = b;
- };
- b.prototype.PN = function () {
- return this.Ia.PN();
- };
- b.prototype.Eda = function () {
- this.Ia.close();
- };
- Object.defineProperties(b.prototype, {
- weight: {
- get: function () {
- return this.Fc.weight;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- p2: {
- get: function () {
- return void 0 === this.Vg.Sm || void 0 === this.Ck ? this.Oza.add(C.ka.Ff(this.Fc.ie)) : this.Vg.Sm.get(this.Ck).fm.add(C.ka.Ff(this.Fc.ie));
- },
- enumerable: !1,
- configurable: !0
- }
- });
- b.prototype.hHb = function (a, b) {
- var c;
- if (this.or)
- return G.assert(!1, "pipeline.tryIssueRequest on disabled pipeline"), !1;
- c = a.FY();
- return c ? this.lUa(a, c, b) : a.oD();
- };
- b.prototype.tKa = function (a, b) {
- a && (this.gg = a);
- b && (this.mg = b);
- G.assert(this.gg);
- G.assert(this.mg);
- G.assert(void 0 === this.Ck);
- this.pma(this.gg.zc, this.gg.index);
- };
- b.prototype.vma = function () {
- return n.QY(this.Vg.M, this.K);
- };
- b.prototype.$Ka = function () {
- return this.GKa() ? !1 : this.drb() ? !0 : this.track.xvb;
- };
- b.prototype.drb = function () {
- return void 0 !== this.gg && void 0 !== this.mg;
- };
- b.prototype.GKa = function () {
- return this.mg ? this.Ck > this.mg.index : !1;
- };
- b.prototype.dm = function (a, b, c, f, h) {
- var k,
- p;
- k = this.K;
- p = k.hh;
- if (c >= k.hh && (k.q1 && (p = c + 1E3), k.r1 && !this.connected))
- return !1;
- if (this.Jg)
- return (a = this.Jg.dm()) && this.UC("stall"), a;
- c = this.GKa() && 0 === this.Ia.B0 && 0 === this.Ia.Xs;
- if (!c && f < p)
- return !1;
- if (c) {
- if (h && 0 === f)
- return this.bb("playlist mode with nothing buffered, waiting for next manifest"), !1;
- this.UC("complete");
- return !0;
- }
- return 0 === this.M ? (this.UC("audio"), !0) : this.PDa(a, b);
- };
- b.prototype.PDa = function (a, b) {
- if (this.xj || 0 === this.M)
- return !0;
- if (void 0 === this.jv)
- return !1;
- b = this.$4a(b, a);
- a = this.JI.dm(b, a, this.jv, this.ad.R.Rh);
- a.complete ? this.UC(a.reason) : (this.FW(), this.ty = a.ty, this.Xh = a.Xh);
- return this.xj;
- };
- b.prototype.bj = function (a) {
- this.Pt.bwb(a);
- this.hq(a);
- };
- b.prototype.Ev = function (a) {
- a.ec || this.Pt.ONa(a.stream, a.T, a.zc);
- this.Pt.Yvb(this.Na, a.stream, a.ec);
- this.DB(a);
- };
- b.prototype.sP = function (a) {
- a.uaa || (this.connected = !0);
- this.CB(a);
- };
- b.prototype.mmb = function (a) {
- var b,
- c;
- b = this.Ia.$;
- if (0 === b.length)
- return {
- $: [],
- $ja: 0,
- dj: 0
- };
- c = b.xG(a.va);
- 0 > c && (c = void 0 === b.T || a.va <= b.T ? 0 : b.length);
- return {
- $: b.TCb(c),
- $ja: Math.max(0, b.Pcb - c),
- dj: b.dj
- };
- };
- b.prototype.lUa = function (a, b, c) {
- var f,
- h,
- k,
- p,
- d,
- u,
- n;
- p = this.Fc;
- d = p.R;
- u = this.M;
- n = this.Ck;
- if (n >= b.length)
- return this.bb("makeRequest nextFragmentIndex:", n, "past fragments length:", b.length), !1;
- if (!this.gg || !this.mg)
- return this.bb("makeRequest delayed, first or last fragment not set", "first:", !!this.gg, "last:", !!this.mg), !1;
- b = this.Z4a.hIa(a, n, this, d.$u());
- if (!b)
- return this.bb("makeRequest unable to get valid fragment"), !1;
- null === (f = this.Jg) || void 0 === f ? void 0 : f.eqb(b, a);
- b.hv && 1 === u && this.Pt.d$(p.da, b.na);
- b.dSa(p.Jr);
- f = null === (h = this.a5a) || void 0 === h ? void 0 : h.call(this);
- this.K.eC && void 0 !== f && f < b.ba && (b.eC = this.K.eC);
- D.time.ea();
- c = this.Ia.Ifb(p, b, c, a);
- if (!c.zs()) {
- this.bb("MediaRequest.open error: " + c.zh + " native: " + c.aj);
- if (7 === c.readyState)
- return !1;
- this.bb("makeRequest caught:", c.zh);
- d.Ig("MediaRequest open failed (1)", "NFErr_MC_StreamingFailure");
- return !1;
- }
- null === (k = this.Jg) || void 0 === k ? void 0 : k.Nib(c, b, a);
- this.Pt.cwb(c);
- this.pma(c.Wb, b.fP);
- return !0;
- };
- b.prototype.$4a = function (a, b) {
- var c,
- f,
- h,
- p,
- d;
- p = D.uk()[this.M];
- d = this.Ia.NY();
- a = {
- Zp: p,
- T: null !== (c = d.ed) && void 0 !== c ? c : 0,
- Ic: a,
- Mb: null !== (f = d.SH || a) && void 0 !== f ? f : 0,
- em: null !== (h = d.EM || a) && void 0 !== h ? h : 0,
- ci: d.ci,
- dj: d.dj,
- Bea: d.$.length,
- $: d.$
- };
- H.la(a.T) ? b === k.Ye.Ce && a.Ic !== a.T && (a.Ic = a.T) : (a.T = 0, a.Mb = 0);
- return a;
- };
- return b;
- }
- (q.Xq);
- b.h7 = q;
- a.uf(d.qz, q);
- a.uf(d.uz, q);
- }, function (d, b, a) {
- var l,
- q,
- n,
- k,
- p,
- h,
- f,
- u,
- g,
- G,
- C,
- H;
- function c(a, b) {
- return (1 === a.M ? 0 : 1) - (1 === b.M ? 0 : 1);
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.E3 = b.T1a = void 0;
- l = a(0);
- q = a(22);
- n = a(381);
- k = a(83);
- p = a(158);
- h = a(785);
- f = a(17);
- u = a(784);
- g = a(11);
- G = a(6);
- C = a(34);
- H = a(4);
- d = a(109);
- a = a(38);
- b.T1a = {
- IWb: c
- };
- k = function (a) {
- function b(b, c, f, k, p, d, l, A, D, m, K, r, t, ma) {
- var J,
- R,
- z,
- P;
- z = a.call(this, f) || this;
- z.K = b;
- z.R = f;
- z.cBa = p;
- z.qBa = d;
- z.Eza = D;
- z.parent = m;
- z.ln = K;
- z.lU = r;
- z.o$ = !1;
- z.Q8a = 1;
- z.or = !1;
- z.FL = !1;
- z.U8 = 0;
- z.bx = 0;
- z.Tya = z.Dwb.bind(z);
- G.assert(f.oa === z.da.oa || isNaN(f.oa) && isNaN(z.da.oa));
- z.R.BQa(z);
- z.G = g.uy(H, c, p.id && p.id.length ? "{" + p.id + "}" : "");
- z.bf = z.G.error.bind(z.G);
- z.bb = z.G.warn.bind(z.G);
- z.uj = z.G.trace.bind(z.G);
- z.FZ = null !== l && void 0 !== l ? l : C.ka.Ff(z.da.T);
- z.Jr = C.ka.Ff(A);
- z.LU = [];
- d.forEach(function (a) {
- var b;
- a = a.M;
- b = z.R.CX(a) ? new h.Yra(z.K.GH) : new h.sua();
- z.LU[a] = b;
- });
- z.ri = [];
- if (!ma) {
- P = [z.K.Qaa, z.K.n2];
- d.forEach(function (a) {
- var b;
- b = a.M;
- z.ri[b] = new n.h7(z, z.K, z.G, k, z, a, z.FZ, P[b], z.LU[b], null === m || void 0 === m ? void 0 : m.Le(b), t);
- });
- z.vL = new u.sva({
- config: z.K,
- R: z.R,
- da: z.da,
- dd: z.ri,
- fm: z.FZ,
- $p: null !== (J = z.da.tB) && void 0 !== J ? J : void 0 !== z.da.na ? C.ka.Ff(z.da.na) : void 0,
- splice: void 0 !== m
- });
- z.wL = z.JY()[0];
- }
- z.Ona(z.FZ.va, z.K.t2);
- z.events = new q.EventEmitter();
- null === (R = z.lU) || void 0 === R ? void 0 : R.addListener(z.Tya);
- return z;
- }
- l.__extends(b, a);
- Object.defineProperties(b.prototype, {
- Yp: {
- get: function () {
- return this.or;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- Dq: {
- get: function () {
- return this.o$;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- weight: {
- get: function () {
- return this.Q8a;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- da: {
- get: function () {
- return this.cBa;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- Jha: {
- get: function () {
- return this.ri.every(function (a) {
- return a.Jha;
- });
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- NA: {
- get: function () {
- return this.ri.every(function (a) {
- return a.NA;
- });
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- Fl: {
- get: function () {
- return this.qBa;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- S: {
- get: function () {
- return this.wL.S;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- Ra: {
- get: function () {
- return this.wL.Ra;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- hb: {
- get: function () {
- return this.wL.hb;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- Pj: {
- get: function () {
- return this.Jr.Nf(this.S).Ab;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- Xga: {
- get: function () {
- return this.FZ.add(this.Jr);
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- Byb: {
- get: function () {
- return this.da.Mm.add(this.Jr);
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- pKa: {
- get: function () {
- return this.Xga.va;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- ie: {
- get: function () {
- return this.Jr.va;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- b.prototype.Db = function () {
- var a;
- null === (a = this.vL) || void 0 === a ? void 0 : a.Db(this.T6a.bind(this));
- };
- b.prototype.PN = function (a) {
- return (a = this.Le(a)) ? a.PN() : p.vz.dmb();
- };
- b.prototype.Eda = function () {
- var a;
- a = this;
- this.qBa.forEach(function (b) {
- a.Le(b.M).Eda();
- });
- };
- b.prototype.Xg = function () {
- var a,
- b;
- this.or || (this.or = !0, this.R.uUa(this), this.parent = void 0, null === (a = this.vL) || void 0 === a ? void 0 : a.yc(), this.vL = void 0, this.ri.forEach(function (a) {
- a.Xg();
- }), null === (b = this.lU) || void 0 === b ? void 0 : b.removeListener(this.Tya), this.events.removeAllListeners());
- };
- b.prototype.zKa = function () {
- return !0;
- };
- b.prototype.Le = function (a) {
- return this.ri[a];
- };
- b.prototype.JY = function () {
- var a;
- void 0 === a && (a = c);
- return this.ri.filter(function (a) {
- return a;
- }).sort(a);
- };
- b.prototype.Pmb = function () {
- return this.ri.filter(function (a) {
- return a.$Ka();
- });
- };
- b.prototype.Omb = function (a) {
- a = this.ri[a];
- if (a.$Ka())
- return a;
- };
- b.prototype.Xi = function (a, b) {
- a = this.ri[a];
- if (!a)
- return 0;
- if (b)
- return a.Bl;
- b = a.Or;
- if (void 0 === b)
- return 0;
- a = this.Eza();
- return b - a;
- };
- b.prototype.aJa = function (a) {
- var b;
- return (a = this.ri[a]) ? null !== (b = a.Or) && void 0 !== b ? b : 0 : 0;
- };
- b.prototype.Ona = function (a, b) {
- this.iqb = a + b;
- this.nqb = H.time.ea();
- };
- b.prototype.Cp = function (a) {
- return this.Le(a).Cp();
- };
- b.prototype.Dwb = function (a) {
- a = a.newValue;
- if (a === f.Ye.Ce || a === f.Ye.Ng)
- this.FL = !1, this.U8 = H.time.ea(), this.bx = 0, this.ri.forEach(function (a) {
- return a.FW();
- }), this.dm();
- };
- b.prototype.bj = function (a) {
- this.or || (a.uaa || G.assert(!a.ec), !1 === this.FL && this.dm(), this.NA && this.a7a());
- this.hq(a);
- };
- b.prototype.T6a = function (a) {
- var b,
- c;
- null === (b = this.vL) || void 0 === b ? void 0 : b.yc();
- this.vL = void 0;
- b = (null !== (c = this.ri[1]) && void 0 !== c ? c : this.ri[0]).track.Sm.tB;
- this.events.emit("branchNormalized", {
- type: "branchNormalized",
- segmentContentStart: this.da.Mm,
- branchContentStart: this.fm,
- branchContentEnd: this.$p,
- contentEnd: b,
- didNormalizeSegment: a
- });
- };
- b.prototype.eV = function (a) {
- a = {
- type: "branchBufferingComplete",
- audioBufferLevel: this.Xi(0),
- videoBufferLevel: this.Xi(1),
- reason: a
- };
- this.events.emit(a.type, a);
- this.FL = !0;
- };
- b.prototype.f$ = function (a, b, c) {
- var f;
- f = this.K;
- c ? b = (H.time.ea() - this.U8) / f.Lv : b || (b = a / f.hh);
- a = Math.min(Math.max(Math.round(100 * b), this.bx), 99);
- a != this.bx && (b = {
- type: "branchBufferingProgress",
- percentage: a
- }, this.events.emit(b.type, b), this.bx = a);
- };
- b.prototype.a7a = function () {
- var a;
- a = {
- type: "branchStreamingComplete"
- };
- this.events.emit(a.type, a);
- };
- b.prototype.dm = function () {
- var a,
- b,
- c,
- h,
- k,
- p,
- d,
- u,
- n,
- l,
- q;
- if (!0 !== this.FL) {
- k = this.K;
- p = this.ri[0];
- d = this.ri[1];
- u = this.Xi(0);
- n = this.Xi(1);
- l = this.Eza();
- q = !p || p.dm(null !== (b = null === (a = this.lU) || void 0 === a ? void 0 : a.value) && void 0 !== b ? b : f.Ye.$m, l, 0, u);
- a = !d || d.dm(null !== (h = null === (c = this.lU) || void 0 === c ? void 0 : c.value) && void 0 !== h ? h : f.Ye.$m, l, 0, n);
- q && a ? (k = d ? d.mu : p.mu, G.assert(void 0 !== k), this.eV(k)) : (c = H.time.ea() - this.U8, c >= k.Lv && (h = !d || n > k.hh, (!p || u > k.hh) && h && (this.bb("buffering longer than limit: " + c + " >= " + k.Lv + ", audio buffer: " + u + " ms, video buffer: " + n + " ms"), this.eV("prebufferTimeLimit"))));
- !1 === this.FL && (p = d ? d : p, d = this.Xi(d ? 1 : 0), this.f$(d, p.Xh, p.ty));
- }
- };
- b.prototype.toJSON = function () {
- var a,
- b;
- return {
- segment: this.da.id,
- branchOffset: this.ie,
- viewableId: this.R.oa,
- contentStartPts: null === (a = this.fm) || void 0 === a ? void 0 : a.va,
- contentEndPts: null === (b = this.$p) || void 0 === b ? void 0 : b.va
- };
- };
- return b;
- }
- (k.Xq);
- b.E3 = k;
- a.uf(d.uz, k);
- a.uf(d.qz, k);
- }, function (d, b, a) {
- var c,
- l,
- q;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Kv = b.bLa = void 0;
- c = a(11);
- l = a(6);
- q = a(63);
- b.bLa = function (a, b) {
- a = a.Va[b.Na];
- if (void 0 === a)
- return !1;
- if (void 0 === a.Bg || null === a.Bg)
- throw Error("Cannot validate graph position without endTimeMs");
- a = a.Bg - a.sf;
- return 0 <= b.offset.va && b.offset.va < a;
- };
- b.Kv = function (a, b) {
- var k,
- h,
- f,
- d;
- f = b.sb;
- b = b.pqb;
- d = f.Gg;
- f = f.navigator;
- d = f.ah(null !== (k = null === b || void 0 === b ? void 0 : b.id) && void 0 !== k ? k : d.Th);
- k = null !== (h = null === b || void 0 === b ? void 0 : b.PCb) && void 0 !== h ? h : d.Mm;
- if (!k.greaterThan(a))
- for (h = f.Hrb(d), b = h.next(); !b.done; ) {
- b = b.value;
- f = b.tB.Nb(b.Mm);
- d = k;
- k = d.add(f);
- if (k.greaterThan(a))
- return a = a.Nb(d), q.Za && l.assert(a.PG(c.ka.wd) && a.lessThan(f)), {
- Na: b.id,
- offset: a
- };
- b = h.next();
- }
- };
- }, function (d, b, a) {
- var c,
- l,
- q,
- n,
- k,
- p;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.x7 = void 0;
- c = a(0);
- l = a(22);
- q = a(11);
- n = a(6);
- k = a(17);
- p = a(383);
- d = function () {
- function a() {
- this.pB = [];
- this.MH = [];
- this.events = new l.EventEmitter();
- }
- Object.defineProperties(a.prototype, {
- Oo: {
- get: function () {
- return this.FN();
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- position: {
- get: function () {
- var a,
- b;
- a = this.Oo;
- b = this.Kv(a);
- n.assert(b, "Could not find current branch for " + a.va);
- return b;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- a.prototype.jW = function (a) {
- if (void 0 !== this.sb)
- return !1;
- a.ml.FCa(this.events);
- return !0;
- };
- a.prototype.Jn = function () {};
- a.prototype.Tvb = function () {
- var a,
- b;
- if (this.sb) {
- b = null === (a = this.sb) || void 0 === a ? void 0 : a.Xi(this.Oo);
- this.events.emit("updateBufferLevel", {
- type: "updateBufferLevel",
- abuflbytes: 0,
- vbuflbytes: 0,
- totalabuflmsecs: b.LGb,
- totalvbuflmsecs: b.MGb,
- currentBandwidth: 0
- });
- }
- };
- a.prototype.cZ = function (a) {
- if (void 0 !== this.sb && a.Na === this.sb.Gg.Th)
- return a.offset;
- };
- a.prototype.cv = function (a) {
- return -1 !== this.pB.indexOf(a.oa) || a.Ri;
- };
- a.prototype.rv = function () {
- this.c_ = !0;
- };
- a.prototype.Kv = function (a) {
- var b,
- c;
- b = this.olb(a);
- if (!b) {
- if (void 0 === this.sb)
- return;
- c = this.Sc[this.Sc.length - 1];
- return p.Kv(a, {
- sb: this.sb,
- pqb: c && {
- id: c.da.id,
- PCb: c.Byb
- }
- });
- }
- c = b.da;
- b = c.Mm.add(b.Jr);
- return {
- Na: c.id,
- offset: a.Nb(b)
- };
- };
- a.prototype.reset = function () {
- this.c_ = !1;
- };
- a.prototype.pause = function (a) {
- void 0 === a && (a = k.Pe);
- this.MH = null === a || void 0 === a ? void 0 : a.reduce(function (a, b) {
- -1 === a.indexOf(b) && a.push(b);
- return a;
- }, this.MH);
- };
- a.prototype.resume = function (a) {
- var b;
- b = this;
- void 0 === a && (a = k.Pe);
- a.forEach(function (a) {
- a = b.MH.indexOf(a);
- -1 !== a && b.MH.splice(a, 1);
- });
- };
- a.prototype.EDb = function (a) {
- a = this.pB.indexOf(a);
- -1 !== a && this.pB.splice(a, 1);
- };
- a.prototype.tQ = function (a) {
- -1 === this.pB.indexOf(a) && this.pB.push(a);
- };
- a.prototype.zna = function (a) {
- var b;
- n.assert(this.sb);
- n.assert(a !== this);
- this.sb.ml.AFa();
- this.HI();
- b = a.jW(this.sb, this);
- b && (this.c_ && (a.rv(), this.c_ = !1), a.pause(this.MH), a.Jda.apply(a, c.__spread(this.Sc)), a.pB = c.__spread(this.pB), this.Wca(this.sb));
- return b;
- };
- a.prototype.FN = function () {
- return this.pIa();
- };
- a.prototype.pIa = function () {
- var a,
- b,
- h,
- k;
- k = this.Sc;
- return k.length ? (h = c.__read(k, 1)[0], n.assert(h), null !== (a = h.Jy) && void 0 !== a ? a : h.Xga) : this.sb ? (a = null === (b = this.sb) || void 0 === b ? void 0 : b.Gg.Th, a = null === (h = this.sb) || void 0 === h ? void 0 : h.Gg.Va[a], q.ka.Ff(a.sf)) : q.ka.wd;
- };
- a.prototype.olb = function (a) {
- var b;
- if (0 !== this.Sc.length) {
- b = this.pIa();
- return a.lessThan(b) ? this.Sc[0] : q.TGa(this.Sc, a);
- }
- };
- return a;
- }
- ();
- b.x7 = d;
- }, function (d, b, a) {
- var c;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.zT = void 0;
- c = a(4).Promise;
- d = function () {
- function a(a, b, c) {
- var k;
- this.x$a = a;
- this.c$ = b;
- this.w4a = c;
- this.v9 = (k = {}, k[0] = !1, k[1] = !1, k);
- this.reset();
- }
- a.prototype.dm = function () {
- var a,
- b;
- a = this;
- b = this.x$a.filter(function (b) {
- return !b.EKa(a.w4a());
- });
- 0 === b.length && this.K9 ? this.n6a() : b.forEach(function (b) {
- a.v9[b.M] || (b.once("requestAppended", function () {
- a.v9[b.M] = !1;
- a.dm();
- }), a.v9[b.M] = !0);
- });
- };
- a.prototype.reset = function () {
- var a;
- a = this;
- this.K9 = !1;
- new c(function (b) {
- a.n6a = b;
- }).then(function () {
- return a.c$();
- });
- };
- a.prototype.rv = function () {
- this.K9 || (this.K9 = !0, this.dm());
- };
- return a;
- }
- ();
- b.zT = d;
- }, function (d, b, a) {
- var c,
- l,
- q,
- n,
- k,
- p,
- h;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.r3 = void 0;
- c = a(0);
- d = a(22);
- l = a(63);
- q = a(4);
- n = a(11);
- k = a(813);
- p = a(158);
- h = a(812);
- a = function (a) {
- function b() {
- var b;
- b = null !== a && a.apply(this, arguments) || this;
- b.WAa = 0;
- b.x$ = 0;
- b.PK = 0;
- b.h9 = 0;
- return b;
- }
- c.__extends(b, a);
- b.prototype.rla = function (b) {
- var c,
- f;
- a.prototype.rla.call(this, b);
- this.WAa++;
- this.x$++;
- this.nBa = q.time.ea();
- this.JE || (this.JE = {
- Wb: b.Wb,
- zc: b.zc,
- index: b.index
- }, this.JU || (this.JU = this.JE));
- c = this.WU;
- f = !1;
- c && 100 > Math.abs(c.Wb - b.zc) && (this.PK += b.Wb - c.Wb, this.h9++, f = !0);
- f || (this.PK = b.Sr, this.h9 = 1);
- this.WU = b;
- };
- b.prototype.stop = function () {
- a.prototype.stop.call(this);
- this.PK = this.x$ = 0;
- this.JE = void 0;
- };
- b.prototype.rIa = function () {
- var a,
- b,
- c,
- f;
- a = this.dF;
- b = a.XW;
- if (b) {
- f = b.Le(this.Re);
- f && f.Ia && (c = f.Ia.Hfa());
- return {
- RM: c,
- currentBranch: {
- sId: b.da && b.da.id,
- cancelled: b.Yp
- },
- currentReceivedCount: a && a.Xfb,
- totalReceivedCount: this.WAa,
- currentState: a && a.Zfb || "Uninitialized",
- lastRequestPushed: this.WU && {
- contentEndPts: this.WU.Wb,
- fragmentIndex: this.WU.index
- },
- tslp: this.nBa && q.time.ea() - this.nBa,
- cpts: this.PK,
- crq: this.h9,
- rslp: this.x$,
- firstRequestSSPushed: this.JE && {
- contentStartPts: this.JE.zc,
- fragmentIndex: this.JE.index
- },
- firstRequestPushed: this.JU && {
- contentStartPts: this.JU.zc,
- fragmentIndex: this.JU.index
- }
- };
- }
- };
- return b;
- }
- (function (a) {
- function b(b, c, f, d, p, u) {
- var l;
- l = a.call(this) || this;
- l.nr = b;
- l.Re = c;
- l.K = d;
- l.G = p;
- l.G = n.uy(q, l.G, "AsePlayerBuffer:");
- l.dF = new k.hpa(l.G, f, c);
- l.resume();
- u && (l.FPa = new h.dwa(c, p, u, u.X, l.nr, u.events, n.ka.Ff(d.ZP)));
- l.nr.on("requestAppended", function () {
- return l.emit("requestAppended");
- });
- return l;
- }
- c.__extends(b, a);
- Object.defineProperties(b.prototype, {
- M: {
- get: function () {
- return this.Re;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- b.prototype.rIa = function () {};
- b.prototype.resume = function () {
- l.Za && this.G.trace("resume");
- this.Mma();
- };
- b.prototype.EKa = function (a) {
- return this.nr.mfa() > a;
- };
- b.prototype.reset = function (a) {
- var b;
- void 0 === a && (a = !1);
- l.Za && this.G.trace("reset");
- this.stop();
- this.nr.reset(a);
- a || (this.jU = void 0);
- null === (b = this.FPa) || void 0 === b ? void 0 : b.reset();
- };
- b.prototype.ZBb = function () {
- var a;
- a = !0;
- void 0 === a && (a = !1);
- this.reset(a);
- this.Mma(!0);
- };
- b.prototype.stop = function () {
- this.dF.USa();
- };
- b.prototype.close = function () {
- var a;
- null === (a = this.FPa) || void 0 === a ? void 0 : a.close();
- };
- b.prototype.Lja = function () {
- this.K.bY && this.nr.cHa();
- this.K.dJ && this.nr.resume();
- };
- b.prototype.ckb = function (a) {
- this.nr.JNa(a, !0);
- };
- b.prototype.Mma = function (a) {
- if (!this.dF.qrb || a)
- this.dF.$Bb(), p.vz.Grb(this.dF, this.g_.bind(this));
- };
- b.prototype.g_ = function (a) {
- a.done || this.rla(a.value);
- };
- b.prototype.rla = function (a) {
- this.nr.endOfStream ? l.Za && this.G.error("Buffer manager has declared EOS, ignoring request", a.toString()) : (this.jU ? (this.jU.csb = a.Wb, this.jU.esb = a.ze) : this.jU = {
- ISb: a.zc,
- JSb: a.ed,
- csb: a.Wb,
- esb: a.ze
- }, this.nr.Q$a(a));
- };
- return b;
- }
- (d.EventEmitter));
- b.r3 = a;
- }, function (d, b, a) {
- var c,
- l;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.K7 = void 0;
- c = a(4).Promise;
- d = function () {
- function a() {
- var a;
- a = this;
- this.oV = [];
- this.mBb = function (b) {
- b = a.oV.indexOf(b);
- 0 <= b && a.oV.splice(b, 1);
- };
- }
- Object.defineProperties(a.prototype, {
- qx: {
- get: function () {
- return 0 !== this.oV.length;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- a.prototype.add = function () {
- var a;
- a = new l(this.mBb);
- this.oV.push(a);
- return a;
- };
- a.prototype.rVa = function (a) {
- var b;
- b = this.add();
- try {
- return c.resolve(a()).then(function (a) {
- b.release();
- return a;
- }, function (a) {
- b.release();
- return c.reject(a);
- });
- } catch (p) {
- return b.release(),
- c.reject(p);
- }
- };
- return a;
- }
- ();
- b.K7 = d;
- l = function () {
- function a(a) {
- this.B7a = a;
- }
- a.prototype.release = function () {
- this.B7a(this);
- };
- return a;
- }
- ();
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.eea = void 0;
- b.eea = function (a, b) {
- for (var c, d, n = a.length - 1; 0 <= n; --n)
- if (d = a[n], d.Hj) {
- if (d.O <= b)
- return n;
- c = n;
- }
- return c;
- };
- }, function (d, b, a) {
- var c;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.n3 = void 0;
- c = a(0);
- a(4);
- a(6);
- d = function (a) {
- function b(b, c, d, h, f) {
- b = a.call(this, b, c, d, h, f) || this;
- b.Aza = !1;
- b.zza = !1;
- b.XK = !1;
- b.wa = [];
- b.yr = !1;
- b.wAa = !1;
- b.eL = !1;
- b.Xc = !1;
- b.yg = !1;
- b.Td = !1;
- b.qE = !1;
- b.RE = void 0;
- b.sr = void 0;
- return b;
- }
- c.__extends(b, a);
- Object.defineProperties(b.prototype, {
- kha: {
- get: function () {
- return this.yr && !this.XK;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- active: {
- get: function () {
- return this.Xc;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- vQa: {
- get: function () {
- return this.yg;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- complete: {
- get: function () {
- return this.Td || (this.Td = this.wa.every(function (a) {
- return a.complete;
- }));
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- Cr: {
- get: function () {
- return this.qE;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- ci: {
- get: function () {
- return this.wa.reduce(function (a, b) {
- return a + b.ci;
- }, 0);
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- Ie: {
- get: function () {
- return this.wa.reduce(function (a, b) {
- return a + b.Ie;
- }, 0);
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- cd: {
- get: function () {
- return this.RE || 0;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- url: {
- get: function () {
- return this.wa[0] && this.wa[0].url;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- readyState: {
- get: function () {
- return this.xg || this.wa.reduce(function (a, b) {
- return Math.min(a, b.readyState);
- }, Infinity);
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- status: {
- get: function () {
- return this.sr && this.sr.status || 0;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- zh: {
- get: function () {
- return this.sr && this.sr.zh;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- uG: {
- get: function () {
- return this.sr && this.sr.uG;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- aj: {
- get: function () {
- return this.sr && this.sr.aj;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- Vn: {
- get: function () {
- return !!this.wa.length && this.wa[0].Vn;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- b.prototype.push = function (a) {
- this.eL && a.Db(this.Ia);
- this.wa.push(a);
- this.yr && a.zs();
- };
- b.prototype.Db = function (b) {
- a.prototype.Db.call(this, b);
- this.wa.forEach(function (a) {
- return a.Db(b);
- });
- this.eL = !0;
- };
- b.prototype.zs = function () {
- this.wAa = !0;
- (this.yr = this.wa.every(function (a) {
- return a.zs();
- })) && this.wN(this);
- this.wAa = !1;
- return this.yr;
- };
- b.prototype.yc = function () {
- 7 !== this.readyState && 5 !== this.readyState && (this.G.warn("AseCompoundRequest: in-progress request should be aborted before cleanup", this), this.abort());
- this.wa.forEach(function (a) {
- return a.yc();
- });
- };
- b.prototype.SQ = function (a) {
- this.xg = this.sr = void 0;
- return this.wa.every(function (b) {
- return 5 !== b.readyState && 7 !== b.readyState ? b.SQ(a) : !0;
- });
- };
- b.prototype.abort = function () {
- var a,
- b;
- a = this.active;
- this.xg = 7;
- this.qE = !0;
- this.yg = this.Xc = !1;
- b = this.wa.map(function (a) {
- return a.abort();
- }).every(function (a) {
- return a;
- });
- this.fY(this, a, this.kha);
- return b;
- };
- b.prototype.getResponseHeader = function (a) {
- var b;
- b = null;
- this.wa.some(function (c) {
- return !!(b = c.getResponseHeader(a));
- });
- return b;
- };
- b.prototype.getAllResponseHeaders = function () {
- var a;
- a = null;
- this.wa.some(function (b) {
- return !!(a = b.getAllResponseHeaders());
- });
- return a;
- };
- b.prototype.s0 = function () {};
- b.prototype.Ev = function (a) {
- this.Xc || (this.Xc = !0);
- this.Aza || (this.Aza = !0, this.yl = 0, this.RE = this.zl = a.cd, this.DB(this));
- };
- b.prototype.sP = function (a) {
- this.yg || (this.yg = !0);
- this.zza || (this.zza = !0, this.RE = a.cd, this.CB(this));
- };
- b.prototype.tP = function (a) {
- this.RE = a.cd;
- this.AG(this);
- this.yl = this.Ie;
- this.zl = a.cd;
- };
- b.prototype.bj = function (a) {
- this.RE = a.cd;
- this.complete ? (this.Td = !0, this.xg = 5, this.yg = this.Xc = !1, this.XK = !0, this.hq(this)) : this.AG(this);
- this.yl = this.Ie;
- this.zl = a.cd;
- };
- b.prototype.rP = function (a) {
- this.RE = a.cd;
- this.sr = a;
- this.xg = 6;
- this.gY(this);
- };
- b.prototype.qP = function () {};
- b.prototype.Fj = function () {
- return this.wa[0].Fj() + "-" + this.wa[this.wa.length - 1].Fj();
- };
- b.prototype.toString = function () {
- return "Compound[" + this.wa.map(function (a) {
- return a.toString();
- }).join(",") + "]";
- };
- b.prototype.toJSON = function () {
- return {
- requests: this.wa
- };
- };
- return b;
- }
- (a(159).tz);
- b.n3 = d;
- }, function (d, b, a) {
- var c,
- l;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.LR = void 0;
- c = a(0);
- l = a(6);
- d = function (a) {
- function b(b, c, h) {
- b = a.call(this, b, c) || this;
- b.CI = !1;
- b.Vr = !1;
- b.AH = !1;
- b.Ox = !1;
- b.Mk = void 0;
- b.NE = c.xi;
- b.qn = c.Zja;
- b.rza = c.Cj;
- b.G = h;
- return b;
- }
- c.__extends(b, a);
- Object.defineProperties(b.prototype, {
- ec: {
- get: function () {
- return !0;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- xi: {
- get: function () {
- return this.NE;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- Zja: {
- get: function () {
- return this.qn;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- Cj: {
- get: function () {
- return this.rza;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- b.prototype.yc = function () {};
- b.prototype.N2 = function () {};
- b.prototype.X9a = function (a) {
- l.assert(this.Jd.sa === a.sa);
- !a.ae && this.Jd.ae && a.PW(this.Jd);
- !a.location && this.Jd.location && (a.location = this.Jd.location, a.uc = this.Jd.uc, a.SC = this.Jd.SC, a.url = this.Jd.url, a.mb = this.Jd.mb);
- this.Jd = a;
- };
- b.prototype.toJSON = function () {
- return c.__assign(c.__assign({}, a.prototype.toJSON.call(this)), {
- isHeader: !0,
- fragments: this.stream.$
- });
- };
- return b;
- }
- (a(163).hw);
- b.LR = d;
- }, function (d) {
- (function () {
- var U8P,
- u9P;
- U8P = 2;
- while (U8P !== 8) {
- u9P = "1S";
- u9P += "IY";
- u9P += "bZ";
- u9P += "rNJCp9";
- switch (U8P) {
- case 2:
- b.prototype.start = function (a) {
- var F8P;
- F8P = 2;
- while (F8P !== 1) {
- switch (F8P) {
- case 2:
- this.ge ? a < this.ge ? (this.hx += this.ge - a, this.ge = a) : a > this.Qa && (this.Qa = this.ge = a) : this.Qa = this.ge = a;
- F8P = 1;
- break;
- }
- }
- };
- b.prototype.stop = function (a) {
- var f8P;
- f8P = 2;
- while (f8P !== 1) {
- switch (f8P) {
- case 2:
- this.Qa && a > this.Qa && (this.hx += a - this.Qa, this.Qa = a);
- f8P = 1;
- break;
- }
- }
- };
- b.prototype.add = function (a, b, d) {
- var z9P;
- z9P = 2;
- while (z9P !== 4) {
- switch (z9P) {
- case 2:
- this.start(b);
- this.stop(d);
- z9P = 5;
- break;
- case 5:
- this.dc += a;
- z9P = 4;
- break;
- }
- }
- };
- U8P = 4;
- break;
- case 4:
- b.prototype.get = function () {
- var g9P;
- g9P = 2;
- while (g9P !== 1) {
- switch (g9P) {
- case 2:
- return {
- Ca: this.hx ? Math.floor(8 * this.dc / this.hx) : null,
- rX: this.hx ? this.hx : 0
- };
- break;
- }
- }
- };
- d.P = b;
- u9P;
- U8P = 8;
- break;
- }
- }
- function b() {
- var j8P;
- j8P = 2;
- while (j8P !== 5) {
- switch (j8P) {
- case 2:
- this.hx = this.dc = 0;
- this.Qa = this.ge = void 0;
- j8P = 5;
- break;
- }
- }
- }
- }
- ());
- }, function (d, b, a) {
- var l,
- q;
- function c(a) {
- this.K = {
- IO: a.maxc || 25,
- Vba: a.c || .5,
- tAb: a.rc || "none",
- Lob: a.hl || 7200
- };
- this.CL();
- this.z7a = this.K.tAb;
- this.$K = this.K.Lob;
- this.R8 = Math.exp(Math.log(2) / this.$K);
- this.R8 = Math.max(this.R8, 1);
- this.xU = 1;
- }
- l = a(7);
- q = a(219).TDigest;
- new(a(4)).Console("ASEJS_NETWORK_HISTORY", "media|asejs");
- c.prototype.bd = function () {
- var a;
- if (0 === this.he.size())
- return null;
- a = this.he.Wh([.25, .75]);
- if (a[0] === a[1])
- return null;
- this.he.size() > this.K.IO && this.he.yu();
- a = this.he.Ts(!1).reduce(function (a, b) {
- l.la(b.nf) && l.la(b.n) && a.push({
- mean: b.nf,
- n: b.n / this.xU
- });
- return a;
- }
- .bind(this), []);
- return {
- tdigest: JSON.stringify(a)
- };
- };
- c.prototype.de = function (a) {
- var b;
- if (l.Ma(a) || !l.has(a, "tdigest") || !l.Od(a.tdigest))
- return !1;
- try {
- b = JSON.parse(a.tdigest);
- } catch (p) {
- return !1;
- }
- b.forEach(function (a) {
- l.isFinite(a.n) || (a.n = 1);
- });
- a = b.map(function (a) {
- return {
- nf: a.mean,
- n: a.n
- };
- });
- this.xU = 1;
- this.he.Nka(a);
- void 0 === this.he.Wh(0) && this.CL();
- };
- c.prototype.get = function () {
- var a,
- b;
- a = this.he;
- b = a.Wh([0, .1, .25, .5, .75, .9, 1]);
- return {
- min: b[0],
- Tja: b[1],
- Fk: b[2],
- cj: b[3],
- Gk: b[4],
- Uja: b[5],
- max: b[6],
- wh: a.Ts(!1)
- };
- };
- c.jnb = function (a) {
- var b;
- b = new c({});
- l.Ma(a) || l.Y(a) || !l.isArray(a.wh) || (b.he.Nka(a.wh), void 0 === b.he.Wh(0) && b.CL());
- a = b.he.Wh([.25, .75]);
- return a[0] === a[1] ? null : function (a) {
- return b.he.Wh(a);
- };
- };
- c.prototype.add = function (a) {
- var b;
- b = 1;
- "ewma" === this.z7a && (this.xU = b = this.xU * this.R8);
- this.he.push(a, b);
- };
- c.prototype.toString = function () {
- return "TDigestHist(" + this.he.summary() + ")";
- };
- c.prototype.CL = function () {
- this.he = new q(this.K.Vba, this.K.IO);
- };
- d.P = {
- Hxa: c
- };
- }, function (d, b, a) {
- var l,
- q;
- function c(a) {
- this.K = {
- IO: a.maxc || 25,
- Vba: a.c || .5,
- iJb: a.w || 15E3,
- bm: a.b || 5E3
- };
- l.call(this, this.K.iJb, this.K.bm);
- this.CL();
- }
- l = a(160);
- q = a(219).TDigest;
- c.prototype = Object.create(l.prototype);
- c.prototype.shift = function () {
- var a;
- a = this.NH(0);
- l.prototype.shift.call(this);
- null !== a && (this.he.push(a, 1), this.Co = !0);
- return a;
- };
- c.prototype.flush = function () {
- var a;
- a = this.get();
- this.he.push(a, 1);
- this.Co = !0;
- l.prototype.reset.call(this);
- return a;
- };
- c.prototype.get = function () {
- return this.hJa();
- };
- c.prototype.Qu = function () {
- var a;
- a = this.hJa();
- return {
- min: a.min,
- p10: a.Tja,
- p25: a.Fk,
- p50: a.cj,
- p75: a.Gk,
- p90: a.Uja,
- max: a.max,
- centroidSize: a.Rbb,
- sampleSize: a.RC,
- centroids: a.wh
- };
- };
- c.prototype.hJa = function () {
- var a;
- if (0 === this.he.size())
- return null;
- a = this.he.Wh([0, .1, .25, .5, .75, .9, 1]);
- if (a[2] === a[4])
- return null;
- if (this.Co || !this.ue)
- this.Co = !1, this.ue = {
- min: a[0],
- Tja: a[1],
- Fk: a[2],
- cj: a[3],
- Gk: a[4],
- Uja: a[5],
- max: a[6],
- Wh: this.he.Wh.bind(this.he),
- Rbb: this.he.size(),
- RC: this.he.n,
- wh: this.Alb(),
- Qu: this.Qu.bind(this)
- };
- return this.ue;
- };
- c.prototype.Alb = function () {
- var a;
- if (0 === this.he.size())
- return null;
- if (!this.Co && this.ue)
- return this.ue.centroids;
- a = this.he.Wh([.25, .75]);
- if (a[0] === a[1])
- return null;
- this.he.size() > this.K.IO && this.he.yu();
- a = this.he.Ts(!1).map(function (a) {
- return {
- mean: a.nf,
- n: a.n
- };
- });
- return JSON.stringify(a);
- };
- c.prototype.fJa = function () {
- return this.he.summary();
- };
- c.prototype.size = function () {
- return this.he.size();
- };
- c.prototype.toString = function () {
- return "btdtput(" + this.sF + "," + this.Qc + "," + this.ti + "): " + this.he.summary();
- };
- c.prototype.CL = function () {
- this.he = new q(this.K.Vba, this.K.IO);
- };
- d.P = c;
- }, function (d, b, a) {
- var l,
- q;
- function c(a, b, c, h) {
- l.call(this, c, h);
- this.xr = new q(a);
- this.$5a = b;
- }
- l = a(160);
- q = a(411);
- c.prototype = Object.create(l.prototype);
- c.prototype.shift = function () {
- var a;
- a = this.NH(0);
- l.prototype.shift.call(this);
- null !== a && this.xr.XV(a);
- return a;
- };
- c.prototype.flush = function () {
- var a;
- a = this.get();
- this.xr.XV(a);
- l.prototype.reset.call(this);
- return a;
- };
- c.prototype.get = function () {
- var a;
- a = this.MN();
- return {
- RC: this.IG(),
- D0: a,
- hP: a.cj ? (a.Gk - a.Fk) / a.cj : void 0
- };
- };
- c.prototype.IG = function () {
- return this.xr.IG();
- };
- c.prototype.MN = function () {
- return this.xr.IG() < this.$5a ? {
- Fk: void 0,
- cj: void 0,
- Gk: void 0,
- RC: void 0,
- Wh: void 0
- }
- : {
- Fk: this.xr.Xp(25),
- cj: this.xr.Xp(50),
- Gk: this.xr.Xp(75),
- RC: this.xr.IG(),
- Wh: this.xr.Xp.bind(this.xr)
- };
- };
- c.prototype.toString = function () {
- return "biqr(" + this.sF + "," + this.Qc + "," + this.ti + ")";
- };
- d.P = c;
- }, function (d, b, a) {
- var n;
- function c(a) {
- this.reset();
- this.SDb(a);
- }
- function l(a) {
- this.setInterval(a);
- this.reset();
- }
- function q(a) {
- this.Ww = new l(a);
- this.Ud = 0;
- this.Tb = null;
- }
- n = a(7);
- c.prototype.SDb = function (a) {
- this.tE = Math.pow(.5, 1 / a);
- this.$K = a;
- };
- c.prototype.reset = function (a) {
- a && a.Ca && n.la(a.Ca) ? a.Ih && n.la(a.Ih) ? (this.pr = this.w5a, this.nn = a.Ca, this.Qw = a.Ih + a.Ca * a.Ca) : (this.pr = this.w5a, this.nn = a.Ca, this.Qw = a.Ca * a.Ca) : this.Qw = this.nn = this.pr = 0;
- };
- c.prototype.add = function (a) {
- var b;
- if (n.la(a)) {
- this.pr++;
- b = this.tE;
- this.nn = b * this.nn + (1 - b) * a;
- this.Qw = b * this.Qw + (1 - b) * a * a;
- }
- };
- c.prototype.get = function () {
- var a,
- b,
- c;
- if (0 === this.pr)
- return {
- Ca: 0,
- Ih: 0
- };
- a = this.nn;
- b = this.Qw;
- c = 1 - Math.pow(this.tE, this.pr);
- a = a / c;
- b = b / c;
- c = a * a;
- return {
- Ca: Math.floor(a),
- Ih: Math.floor(b > c ? b - c : 0)
- };
- };
- c.prototype.bd = function () {
- return 0 === this.pr ? null : {
- a: Math.round(this.nn),
- s: Math.round(this.Qw),
- n: this.pr
- };
- };
- c.prototype.de = function (a) {
- if (n.Ma(a) || !n.has(a, "a") || !n.has(a, "s") || !n.isFinite(a.a) || !n.isFinite(a.s))
- return this.Qw = this.nn = this.pr = 0, !1;
- this.nn = a.a;
- this.Qw = a.s;
- n.has(a, "n") && n.la(a.n) ? this.pr = a.n : this.pr = 16 * this.$K;
- return !0;
- };
- l.prototype.setInterval = function (a) {
- this.$K = a;
- this.tE = -Math.log(.5) / a;
- };
- l.prototype.reset = function (a) {
- this.Qa = this.ge = null;
- a && n.isFinite(a.Ca) ? this.nn = a.Ca : this.nn = 0;
- };
- l.prototype.start = function (a) {
- n.Ma(this.ge) && (this.Qa = this.ge = a);
- };
- l.prototype.add = function (a, b, c) {
- var f,
- h;
- n.Ma(this.ge) && (this.Qa = this.ge = b);
- this.ge = Math.min(this.ge, b);
- b = Math.max(c - b, 1);
- f = this.tE;
- h = c > this.Qa ? c : this.Qa;
- this.nn = this.nn * (h > this.Qa ? Math.exp(-f * (h - this.Qa)) : 1) + 8 * a / b * (1 - Math.exp(-f * b)) * (c > h ? Math.exp(-f * (h - c)) : 1);
- this.Qa = h;
- };
- l.prototype.get = function (a) {
- var b;
- a = Math.max(a, this.Qa);
- b = this.nn * Math.exp(-this.tE * (a - this.Qa));
- a = 1 - Math.exp(-this.tE * (a - this.ge));
- 0 < a && (b /= a);
- return {
- Ca: Math.floor(b)
- };
- };
- l.prototype.toString = function () {
- return "ewmav(" + this.$K + ")";
- };
- q.prototype.setInterval = function (a) {
- this.Ww.setInterval(a);
- };
- q.prototype.reset = function (a) {
- this.Ww.reset(a);
- this.Ud = 0;
- this.Tb = null;
- };
- q.prototype.start = function (a) {
- !n.Ma(this.Tb) && a > this.Tb && (this.Ud += a - this.Tb, this.Tb = null);
- this.Ww.start(a - this.Ud);
- };
- q.prototype.add = function (a, b, c) {
- !n.Ma(this.Tb) && c > this.Tb && (this.Ud += b > this.Tb ? b - this.Tb : 0, this.Tb = null);
- this.Ww.add(a, b - this.Ud, c - this.Ud);
- };
- q.prototype.stop = function (a) {
- this.Tb = Math.max(n.Ma(this.Ww.Qa) ? 0 : this.Ww.Qa + this.Ud, n.Ma(this.Tb) ? a : Math.min(this.Tb, a));
- };
- q.prototype.get = function (a) {
- return this.Ww.get((n.Ma(this.Tb) ? a : this.Tb) - this.Ud);
- };
- q.prototype.toString = function () {
- return this.Ww.toString();
- };
- d.P = {
- IYa: c,
- YKb: l,
- GYa: q
- };
- }, function (d, b, a) {
- d.P = {
- DSb: a(395),
- XVb: a(218),
- FKb: a(829),
- EKb: a(394),
- GKb: a(393),
- wra: a(826)
- };
- }, function (d) {
- function b() {}
- function a(a) {
- this.rBa = a;
- this.kn = [];
- this.Bf = null;
- }
- b.prototype.clear = function () {
- this.Vd = null;
- this.size = 0;
- };
- b.prototype.find = function (a) {
- var c;
- for (var b = this.Vd; null !== b; ) {
- c = this.$k(a, b.data);
- if (0 === c)
- return b.data;
- b = b.hg(0 < c);
- }
- return null;
- };
- b.prototype.lowerBound = function (a) {
- var k;
- for (var b = this.Vd, c = this.iterator(), d = this.$k; null !== b; ) {
- k = d(a, b.data);
- if (0 === k)
- return c.Bf = b, c;
- c.kn.push(b);
- b = b.hg(0 < k);
- }
- for (k = c.kn.length - 1; 0 <= k; --k)
- if (b = c.kn[k], 0 > d(a, b.data))
- return c.Bf = b, c.kn.length = k, c;
- c.kn.length = 0;
- return c;
- };
- b.prototype.upperBound = function (a) {
- for (var b = this.lowerBound(a), c = this.$k; null !== b.data() && 0 === c(b.data(), a); )
- b.next();
- return b;
- };
- b.prototype.min = function () {
- var a;
- a = this.Vd;
- if (null === a)
- return null;
- for (; null !== a.left; )
- a = a.left;
- return a.data;
- };
- b.prototype.max = function () {
- var a;
- a = this.Vd;
- if (null === a)
- return null;
- for (; null !== a.right; )
- a = a.right;
- return a.data;
- };
- b.prototype.iterator = function () {
- return new a(this);
- };
- b.prototype.Yd = function (a) {
- for (var b = this.iterator(), c; null !== (c = b.next()); )
- a(c);
- };
- a.prototype.data = function () {
- return null !== this.Bf ? this.Bf.data : null;
- };
- a.prototype.next = function () {
- var a;
- if (null === this.Bf) {
- a = this.rBa.Vd;
- null !== a && this.jAa(a);
- } else if (null === this.Bf.right) {
- do
- if (a = this.Bf, this.kn.length)
- this.Bf = this.kn.pop();
- else {
- this.Bf = null;
- break;
- }
- while (this.Bf.right === a);
- } else
- this.kn.push(this.Bf), this.jAa(this.Bf.right);
- return null !== this.Bf ? this.Bf.data : null;
- };
- a.prototype.EC = function () {
- var a;
- if (null === this.Bf) {
- a = this.rBa.Vd;
- null !== a && this.eAa(a);
- } else if (null === this.Bf.left) {
- do
- if (a = this.Bf, this.kn.length)
- this.Bf = this.kn.pop();
- else {
- this.Bf = null;
- break;
- }
- while (this.Bf.left === a);
- } else
- this.kn.push(this.Bf), this.eAa(this.Bf.left);
- return null !== this.Bf ? this.Bf.data : null;
- };
- a.prototype.jAa = function (a) {
- for (; null !== a.left; )
- this.kn.push(a), a = a.left;
- this.Bf = a;
- };
- a.prototype.eAa = function (a) {
- for (; null !== a.right; )
- this.kn.push(a), a = a.right;
- this.Bf = a;
- };
- d.P = b;
- }, function (d, b, a) {
- var c,
- l,
- q,
- n,
- k,
- p,
- h,
- f,
- u,
- g;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.q3 = void 0;
- c = a(0);
- l = a(95);
- q = a(18);
- n = a(4);
- d = a(22);
- k = a(11);
- p = a(38);
- h = a(6);
- f = a(220);
- u = a(390);
- a = a(389);
- g = n.MediaSource;
- a = function (a) {
- function b(b, c, f, h, k, d, p) {
- c = a.call(this, b, h, k, c, p) || this;
- u.LR.call(c, b, h, p);
- c.Mk = f;
- c.track = f.track;
- c.Vr = !!h.Vr;
- c.AH = !!h.AH;
- c.Ox = !!h.Ox;
- c.dxb = h.ba;
- c.CI = !!h.CI;
- c.M9 = (d ? "(cache)" : "") + c.sa + " header";
- c.jF(b.url || h.url, h.offset, h.ba);
- return c;
- }
- c.__extends(b, a);
- Object.defineProperties(b.prototype, {
- ec: {
- get: function () {
- return !0;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- A0: {
- get: function () {
- return this.h7a;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- b.prototype.yc = function () {
- var b;
- if (!this.complete) {
- b = {
- type: "headerRequestCancelled",
- request: this
- };
- this.emit(b.type, b);
- }
- a.prototype.yc.call(this);
- };
- b.prototype.wN = function (b) {
- this.stream.Mja();
- a.prototype.wN.call(this, b);
- };
- b.prototype.bj = function (b) {
- this.qn = this.qn ? k.Pr(this.qn, b.response) : b.response;
- b.UP();
- this.e7a() ? a.prototype.bj.call(this, b) : this.Kya ? (this.jF(b.url, b.offset + b.ba, this.Kya), a.prototype.bj.call(this, b)) : this.gY(this);
- };
- b.prototype.jF = function (a, b, c) {
- a = new f.kJ(this.stream, this.track, this.M9 + " (" + this.wa.length + ")", {
- offset: b,
- ba: c,
- url: a,
- location: this.location,
- Lb: this.Lb,
- responseType: 0
- }, this, this.$c, this.G);
- this.push(a);
- this.dc = this.wa.reduce(function (a, b) {
- return a + b.ba;
- }, 0);
- };
- b.prototype.e7a = function () {
- var a,
- c,
- f;
- a = this.$c;
- c = new l.Aw(b.mvb, this.stream, this.qn, ["sidx"], this.M === q.La.VIDEO && a.Px || this.M === q.La.AUDIO, {
- UVb: this.stream.track.nda,
- QOa: void 0 === this.Ta,
- eUa: !g.xc || !g.xc.cEa,
- Bna: a.Bna,
- Go: a.Go,
- YI: this.$c.YI,
- eCb: !0,
- d2: !g.xc || !g.xc.jNa
- });
- f = c.parse({
- Ta: this.Ta
- });
- this.wIb = a.YI && c.lpb;
- f.Gy ? (h.assert(f.xi), this.NE = f.xi, this.h7a = f.A0, this.rza = !!f.GX, void 0 === this.Ta && void 0 === f.Ta && this.G.error("No frame duration available for " + this.sa), void 0 === this.Ta && void 0 === f.Ta && this.G.error("No frame duration available for " + this.sa), c = f.Ta ? new k.ka(f.Ta) : this.Ta, this.stream.o0(f.xi, f.S, c, f.$, f.xH, f.vi, a.OH && a.OH.enabled ? f.mz : void 0), this.qn = void 0) : this.Kya = f.Q9a || 0;
- return !!f.Gy;
- };
- b.mvb = new n.Console("MP4", "media|asejs");
- return b;
- }
- (a.n3);
- b.q3 = a;
- p.uf(u.LR, a, !1, !1);
- p.uf(d.EventEmitter, a);
- }, function (d, b, a) {
- var c,
- l;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Y7 = void 0;
- c = a(0);
- l = a(95);
- a(6);
- a(32);
- d = function () {
- function a(a, b, c, h) {
- this.S = c;
- this.Nd = a;
- this.sizes = b;
- this.length = Math.min(a.length, b.length);
- this.dc = h;
- }
- Object.defineProperties(a.prototype, {
- ba: {
- get: function () {
- return void 0 !== this.dc ? this.dc : this.dc = this.Z8();
- },
- enumerable: !1,
- configurable: !0
- }
- });
- a.prototype.subarray = function (b, c) {
- return new a(this.Nd.subarray(b, c), this.sizes.subarray(b, c), this.S);
- };
- a.prototype.concat = function () {
- var k,
- b,
- d,
- h;
- for (var b = [], k = 0; k < arguments.length; k++)
- b[k] = arguments[k];
- k = [this];
- b = k.concat.apply(k, c.__spread(b));
- k = b.reduce(function (a, b) {
- return a + b.length;
- }, 0);
- d = new Uint32Array(k);
- h = new Uint32Array(k);
- k = b.reduce(function (a, b) {
- return a || b.S;
- }, void 0);
- b.reduce(function (a, b) {
- l.t8.set(d, b.Nd, a);
- l.t8.set(h, b.sizes, a);
- return a + b.length;
- }, 0);
- return new a(d, h, k);
- };
- a.prototype.Z8 = function () {
- for (var a = this.sizes, b = this.length, c = 0, h = 0; h < b; ++h)
- c += a[h];
- return c;
- };
- return a;
- }
- ();
- b.Y7 = d;
- }, function (d, b, a) {
- var c,
- l,
- q;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- c = a(402);
- l = a(228);
- q = a(401);
- d = function () {
- function a(a, b, c) {
- this.console = a;
- this.stream = b;
- this.view = c instanceof ArrayBuffer ? new DataView(c) : new DataView(c.data, c.offset, c.length);
- }
- a.prototype.parse = function (a) {
- var b;
- b = new q.sqa(this.view.byteLength);
- this.og = new c.D3(l.zH.Rc, b, this.view, this.console, {
- Yja: !0
- });
- a = this.og.parse(a);
- this.Rc = this.og.Rc;
- return a.done;
- };
- return a;
- }
- ();
- b.XJ = d;
- }, function (d, b, a) {
- var l;
- function c(a, b) {
- a = b.indexOf(a);
- -1 !== a && b.splice(a, 1);
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- l = a(82);
- d = function () {
- function a(a) {
- this.endOffset = a;
- this.done = !1;
- }
- a.prototype.kHa = function () {
- return this.done;
- };
- a.prototype.LFa = function (a, b, c) {
- return this.done = b + c >= this.endOffset;
- };
- return a;
- }
- ();
- b.sqa = d;
- d = function () {
- function a(a, b, c, h) {
- void 0 === b && (b = []);
- void 0 === c && (c = []);
- void 0 === h && (h = !1);
- this.Kq = a;
- this.lX = b;
- this.vTa = c;
- this.SOa = h;
- this.done = !1;
- this.Oj = {};
- }
- a.prototype.kHa = function (b, c, d) {
- -1 !== a.ppb.indexOf(b) && (this.Oj[b] = {
- offset: c,
- size: d
- });
- if (-1 !== this.vTa.indexOf(b))
- if (this.Oj[b] = {
- offset: c,
- size: d
- }, this.SOa)
- this.endOffset = c + d;
- else
- return this.endOffset = c, this.done = !0;
- else
- this.Kq && -1 !== this.Kq.indexOf(b) ? (b = 1 < this.Kq.length ? 4096 : 0, this.endOffset = Math.max(c + d + b, this.endOffset || 0)) : -1 !== this.lX.indexOf(b) && (b = this.Kq ? 4096 : 0, this.endOffset = Math.max(c + d + b, this.endOffset || 0));
- return this.done;
- };
- a.prototype.LFa = function (a, b, d, h) {
- var f;
- f = this;
- if (-1 !== this.vTa.indexOf(a))
- return this.done = !0;
- a === l.u6 && this.cSa(h.Oj);
- a === l.v6 && this.cSa(h.Oj);
- this.Kq && c(a, this.Kq);
- c(a, this.lX);
- return this.Kq && 0 === this.Kq.length && !this.lX.some(function (a) {
- return f.Oj[a];
- }) ? this.done = !0 : this.done;
- };
- a.prototype.cSa = function (a) {
- var b;
- b = this;
- this.Oj = a;
- this.endOffset = (this.Kq || []).concat(this.lX).reduce(function (a, c) {
- return b.Oj[c] ? (c = b.Oj[c], Math.max(c.offset + (c.size || 4096), a)) : a;
- }, this.endOffset || 0);
- };
- a.ppb = ["moov", "sidx"];
- return a;
- }
- ();
- b.JZa = d;
- }, function (d, b, a) {
- var c,
- l,
- q;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- c = a(0);
- l = a(27);
- q = a(75);
- d = function (a) {
- function b(b, c, f, k, d) {
- f = a.call(this, f, k, d) || this;
- f.Sab = b;
- f.II = c;
- f.Rc = {};
- return f;
- }
- c.__extends(b, a);
- b.prototype.parse = function (a) {
- var b,
- c,
- k,
- d,
- p,
- n;
- this.offset = 0;
- b = [];
- for (a = a || {}; this.offset < this.view.byteLength && !(8 > this.view.byteLength - this.offset); ) {
- c = this.offset;
- k = this.Fb();
- if (0 === k)
- return {
- done: !1,
- offset: this.offset,
- error: "Invalid zero-length box"
- };
- d = q.kA(this.Fb());
- if (null === d)
- return {
- done: !1,
- offset: this.offset,
- error: "Invalid box type"
- };
- if ("uuid" === d) {
- if (16 > this.view.byteLength - this.offset)
- break;
- d = this.e1();
- }
- if (0 === b.length && this.II.kHa(d, c, k))
- break;
- if (c + k > this.view.byteLength)
- break;
- p = this.Sab[d];
- n = void 0;
- if (p)
- if (n = new p(this, d, c, k, b[0]), (b[0] || this).SL(n), n.parse(a))
- this.config.Yja && p.mc ? b.unshift(n) : this.offset = c + k;
- else
- return {
- done: !1,
- offset: this.offset,
- error: "parse error in " + d + " box"
- };
- else
- this.offset = c + k;
- for (; b.length && this.offset > b[0].byteOffset + b[0].uC - 8; ) {
- n = b.shift();
- if (!n.wG(a))
- return {
- done: !1,
- offset: this.offset,
- error: "finalize error in " + n.type + " box"
- };
- this.offset = n.byteOffset + n.uC;
- }
- if (0 === b.length && this.II.LFa(d, c, k, n))
- break;
- }
- return !this.II.done && (a = this.II.endOffset ? this.II.endOffset - this.view.byteLength : 4096, 0 < a) ? {
- done: !1,
- offset: this.offset,
- oNa: a
- }
- : {
- done: !0,
- offset: Math.min(this.II.endOffset || Infinity, this.offset)
- };
- };
- b.prototype.SL = function (a) {
- l.ag.SL(this, a);
- };
- return b;
- }
- (a(840).i3a);
- b.D3 = d;
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.concat = function () {
- var a,
- b,
- d;
- for (var a = [], b = 0; b < arguments.length; b++)
- a[b] = arguments[b];
- a = Array.prototype.concat.apply([], a);
- b = a.reduce(function (a, b) {
- return a + b.byteLength;
- }, 0);
- d = new Uint8Array(b);
- a.reduce(function (a, b) {
- d.set(new Uint8Array(b), a);
- return a + b.byteLength;
- }, 0);
- return d.buffer;
- };
- }, function (d) {
- var b,
- a,
- c,
- l;
- b = {
- name: "heaac-2-dash reset sample",
- profile: 53,
- Ko: 2,
- sampleRate: 24E3,
- duration: 1024,
- Tv: new Uint8Array([33, 17, 69, 0, 20, 80, 1, 70, 157, 188, 0, 0, 8, 28, 0, 0, 0, 14]).buffer
- };
- a = {
- name: "heaac-2-dase standard sample",
- profile: 53,
- Ko: 2,
- sampleRate: 24E3,
- duration: 1024,
- Tv: new Uint8Array([33, 17, 69, 0, 20, 80, 1, 70, 240, 77, 251, 1, 60, 8, 64, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 14, 0, 14]).buffer
- };
- c = {
- name: "ddplus-5.1-dash standard sample",
- profile: 54,
- Ko: 6,
- sampleRate: 48E3,
- duration: 1536,
- Tv: new Uint8Array([11, 119, 1, 127, 63, 134, 255, 225, 6, 32, 0, 32, 0, 66, 10, 65, 0, 135, 216, 68, 3, 254, 202, 2, 88, 163, 1, 16, 177, 64, 146, 32, 160, 75, 20, 80, 37, 136, 35, 227, 36, 160, 152, 156, 165, 37, 38, 41, 37, 73, 74, 9, 201, 146, 130, 114, 82, 116, 160, 152, 152, 150, 136, 58, 125, 89, 245, 39, 207, 159, 63, 116, 150, 147, 242, 73, 95, 165, 171, 175, 253, 215, 126, 82, 21, 55, 188, 8, 165, 126, 249, 242, 100, 175, 255, 249, 73, 42, 255, 253, 215, 124, 246, 156, 23, 239, 108, 36, 134, 249, 211, 228, 181, 255, 246, 253, 205, 119, 176, 179, 86, 126, 166, 27, 231, 175, 225, 58, 255, 222, 170, 110, 127, 249, 215, 41, 232, 146, 73, 183, 0, 88, 211, 192, 0, 0, 31, 7, 178, 116, 62, 122, 114, 245, 8, 233, 196, 71, 223, 196, 18, 59, 202, 113, 248, 103, 242, 80, 250, 118, 15, 1, 60, 79, 251, 46, 14, 8, 9, 37, 4, 14, 183, 67, 131, 195, 103, 241, 250, 32, 124, 81, 61, 76, 9, 40, 161, 2, 1, 16, 64, 114, 219, 225, 217, 172, 140, 44, 12, 64, 147, 49, 210, 195, 206, 12, 52, 186, 196, 0, 107, 134, 202, 4, 9, 216, 72, 67, 11, 127, 185, 13, 125, 124, 124, 194, 90, 203, 69, 1, 209, 8, 129, 183, 36, 196, 101, 7, 248, 73, 181, 38, 181, 30, 232, 124, 27, 18, 222, 207, 92, 251, 85, 227, 78, 0, 70, 196, 59, 0, 207, 194, 0, 252, 226, 209, 111, 144, 239, 111, 148, 54, 39, 28, 176, 248, 160, 58, 88, 113, 9, 76, 65, 57, 180, 96, 82, 224, 115, 52, 208, 161, 184, 86, 120, 211, 212, 168, 13, 52, 217, 124, 121, 189, 237, 163, 53, 72, 52, 157, 245, 160, 110, 16, 182, 219, 180, 152, 180, 136, 47, 23, 151, 198, 192, 20, 62, 220, 249, 107, 82, 0, 0, 0, 234, 22, 24, 202, 252, 104, 154, 198, 95, 7, 98, 110, 113, 104, 187, 197, 110, 105, 201, 123, 18, 61, 45, 233, 135, 20, 0, 151, 155, 45, 131, 75, 174, 9, 228, 53, 214, 32, 19, 131, 131, 87, 146, 156, 22, 16, 160, 0, 0, 5, 169, 31, 241, 155, 119, 242, 21, 168, 176, 225, 35, 130, 186, 60, 97, 189, 244, 57, 5, 158, 124, 200, 224, 156, 74, 33, 48, 12, 75, 235, 252, 25, 83, 61, 12, 178, 134, 75, 92, 124, 56, 71, 63, 232, 35, 142, 23, 11, 179, 154, 25, 17, 254, 160, 55, 0, 28, 144, 253, 91, 117, 102, 221, 190, 135, 231, 10, 70, 30, 23, 176, 0, 0, 1, 176, 4, 8, 133, 150, 0, 255, 79, 159, 83, 83, 77, 46, 180, 197, 95, 161, 141, 13, 44, 47, 253, 61, 176, 86, 148, 52, 201, 148, 194, 126, 246, 155, 165, 78, 181, 18, 73, 32, 28, 45, 70, 221, 101, 80, 78, 20, 6, 206, 130, 30, 219, 0, 30, 251, 237, 127, 232, 113, 255, 107, 248, 25, 147, 2, 185, 140, 224, 224, 189, 152, 101, 89, 28, 152, 47, 182, 88, 216, 198, 90, 3, 213, 0, 64, 150, 89, 96, 5, 18, 73, 32, 18, 105, 56, 170, 112, 129, 132, 77, 233, 15, 190, 8, 58, 109, 254, 217, 232, 164, 181, 91, 34, 227, 8, 27, 140, 83, 141, 186, 71, 175, 110, 91, 83, 37, 82, 15, 247, 58, 112, 134, 42, 42, 18, 3, 0, 8, 18, 196, 44, 5, 18, 73, 32, 25, 234, 135, 27, 145, 161, 76, 95, 163, 44, 124, 140, 151, 13, 189, 174, 93, 108, 80, 63, 112, 61, 88, 28, 46, 219, 213, 65, 40, 74, 243, 69, 108, 141, 37, 80, 21, 72, 191, 2, 50, 88, 122, 3, 0, 0, 10, 36, 146, 64, 54, 170, 52, 196, 80, 163, 79, 142, 148, 81, 36, 46, 131, 66, 255, 221, 26, 128, 73, 23, 103, 49, 192, 55, 30, 59, 219, 161, 166, 249, 122, 141, 88, 62, 36, 228, 107, 116, 158, 14, 252, 92, 103, 226, 0, 0, 20, 73, 36, 128, 113, 105, 27, 109, 199, 165, 26, 100, 240, 30, 8, 113, 124, 175, 175, 166, 144, 115, 74, 138, 80, 24, 32, 117, 28, 206, 194, 21, 85, 40, 218, 254, 177, 100, 37, 127, 63, 131, 208, 68, 250, 76, 169, 40, 0, 0, 0, 0, 0, 0, 0, 95, 208, 40, 5]).buffer
- };
- l = {
- name: "ddplus-2.0-dash standard sample",
- profile: 57,
- Ko: 2,
- sampleRate: 48E3,
- duration: 1536,
- Tv: new Uint8Array([11, 119, 0, 191, 52, 134, 255, 224, 4, 32, 24, 132, 33, 46, 136, 15, 236, 128, 165, 150, 32, 161, 69, 16, 65, 66, 33, 0, 160, 224, 136, 32, 48, 40, 56, 176, 233, 159, 62, 203, 176, 139, 218, 213, 221, 58, 124, 249, 83, 239, 245, 26, 179, 232, 106, 97, 174, 75, 74, 149, 104, 85, 223, 38, 74, 253, 242, 95, 253, 47, 117, 10, 116, 228, 206, 145, 61, 126, 153, 83, 169, 201, 146, 214, 124, 251, 202, 125, 62, 3, 184, 113, 105, 44, 145, 91, 107, 58, 206, 87, 7, 170, 74, 27, 187, 48, 217, 65, 241, 1, 161, 157, 113, 91, 21, 163, 111, 51, 104, 115, 118, 123, 44, 77, 110, 247, 112, 43, 8, 73, 76, 172, 73, 150, 207, 95, 153, 3, 182, 105, 124, 66, 2, 0, 118, 237, 94, 135, 88, 83, 124, 41, 205, 76, 76, 109, 131, 40, 166, 169, 150, 166, 233, 51, 26, 43, 143, 131, 162, 201, 227, 35, 146, 30, 46, 75, 41, 1, 28, 21, 124, 91, 11, 74, 112, 106, 170, 137, 88, 102, 81, 122, 90, 108, 154, 41, 64, 72, 81, 74, 40, 176, 29, 246, 45, 81, 141, 178, 47, 68, 210, 113, 129, 217, 48, 217, 176, 77, 157, 147, 211, 28, 106, 174, 210, 66, 110, 190, 228, 106, 249, 236, 107, 188, 90, 91, 41, 31, 191, 71, 149, 201, 40, 136, 209, 138, 100, 91, 53, 25, 18, 245, 27, 148, 208, 18, 20, 81, 70, 24, 7, 147, 116, 48, 233, 47, 145, 81, 32, 242, 74, 51, 50, 138, 85, 186, 6, 202, 227, 8, 169, 201, 206, 77, 68, 201, 80, 186, 57, 179, 90, 232, 234, 208, 230, 109, 96, 154, 4, 249, 38, 86, 153, 185, 81, 45, 38, 146, 243, 73, 117, 105, 140, 5, 34, 48, 227, 11, 10, 32, 130, 14, 49, 4, 40, 131, 127, 229, 199, 232, 95, 78, 126, 229, 243, 175, 254, 117, 124, 233, 83, 154, 239, 93, 63, 195, 190, 120, 247, 107, 232, 10, 68, 177, 11, 22, 24, 32, 66, 4, 99, 231, 207, 159, 7, 124, 241, 174, 215, 192, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 84, 40, 187, 227]).buffer
- };
- d.P = {
- standard: {
- "heaac-2-dash": a,
- "heaac-2hq-dash": a,
- "ddplus-5.1-dash": c,
- "ddplus-5.1hq-dash": c,
- "ddplus-2.0-dash": l
- },
- reset: {
- "heaac-2-dash": b,
- "heaac-2hq-dash": b
- },
- "heaac-2-dash": b,
- "heaac-2-dash-alt": a,
- "ddplus-5.1-dash": c,
- "ddplus-2.0-dash": l
- };
- }, function (d, b, a) {
- var c,
- l;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- c = a(0);
- d = a(82);
- a = a(27);
- l = d.v6;
- a = function (a) {
- function b() {
- return null !== a && a.apply(this, arguments) || this;
- }
- c.__extends(b, a);
- b.prototype.parse = function () {
- var a,
- f,
- d;
- this.Zf();
- 1 <= this.version && (this.KGa = this.L.e1());
- a = this.L.Fb();
- this.Oj = {};
- for (var b = this.startOffset + this.length, c = 0; c < a; ++c) {
- f = this.L.Py();
- "uuid" === f && (f = this.L.e1());
- d = this.L.fj();
- this.Oj[f] = {
- offset: b,
- size: d
- };
- b += d;
- }
- return !0;
- };
- b.Se = l;
- b.mc = !1;
- return b;
- }
- (a.ag);
- b["default"] = a;
- }, function (d, b, a) {
- var c,
- l,
- q;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- c = a(0);
- l = a(82);
- d = a(27);
- q = l.u6;
- d = function (a) {
- function b() {
- return null !== a && a.apply(this, arguments) || this;
- }
- c.__extends(b, a);
- b.prototype.parse = function () {
- this.Zf();
- this.fileSize = this.L.fj();
- this.S = this.L.fj();
- this.duration = this.L.fj(!1, !0);
- this.YNa = this.L.fj();
- this.L.fj();
- this.zwb = this.L.fj();
- this.Kvb = this.L.Fb();
- this.ZNa = this.L.fj();
- this.XGa = this.L.Fb();
- this.KGa = this.L.e1();
- this.Oj = {
- moof: {
- offset: this.YNa
- },
- sidx: {
- offset: this.ZNa,
- size: this.XGa
- }
- };
- this.Oj[l.lua] = {
- offset: this.zwb,
- size: this.Kvb
- };
- this.L.offset - this.startOffset <= this.length - 24 && (this.ywb = this.L.fj(), this.Bvb = this.L.Fb(), this.xwb = this.L.fj(), this.Avb = this.L.Fb(), this.Oj[l.cT] = {
- offset: this.ywb,
- size: this.Bvb
- }, this.Oj[l.bT] = {
- offset: this.xwb,
- size: this.Avb
- });
- return !0;
- };
- b.Se = q;
- b.mc = !1;
- return b;
- }
- (d.ag);
- b["default"] = d;
- }, function (d, b, a) {
- var c;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- c = a(0);
- d = function (a) {
- function b() {
- var b;
- b = null !== a && a.apply(this, arguments) || this;
- b.iY = 1536;
- return b;
- }
- c.__extends(b, a);
- b.mc = !0;
- return b;
- }
- (a(164)["default"]);
- b["default"] = d;
- a = function (a) {
- function b() {
- return null !== a && a.apply(this, arguments) || this;
- }
- c.__extends(b, a);
- b.Se = "ac-3";
- return b;
- }
- (d);
- b.EVa = a;
- d = function (a) {
- function b() {
- return null !== a && a.apply(this, arguments) || this;
- }
- c.__extends(b, a);
- b.Se = "ec-3";
- return b;
- }
- (d);
- b.PYa = d;
- }, function (d) {
- var b;
- b = function () {
- var a;
- a = new Uint32Array([0, 0]);
- a.set(new Uint32Array([16843009]), 1);
- return 0 !== a[0];
- }
- () ? function (a, b, d) {
- new Uint8Array(a.buffer, a.byteOffset, a.byteLength).set(new Uint8Array(b.buffer, b.byteOffset, b.byteLength), d * a.byteLength / a.length);
- }
- : function (a, b, d) {
- a.set(b, d);
- };
- d.P = {
- from: function (a, b, d, q) {
- a = new a(b.length);
- for (var c = "function" === typeof d, k = 0; k < b.length; ++k)
- a[k] = c ? d.call(q, b[k], k, b) : b[k];
- return a;
- },
- set: b
- };
- }, function (d, b, a) {
- var l,
- q,
- n;
- function c(a) {
- return void 0 === a ? !0 : a;
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Moa = void 0;
- l = a(860);
- q = a(34);
- a(6);
- n = a(74);
- d = function () {
- function a(a, b, f) {
- this.K = b;
- this.G = f;
- this.Vg = a.track;
- this.l8a = a.Kg;
- this.vy = a.vy;
- this.C5a = -1 === this.profile.indexOf("none");
- this.NE = this.Ea = void 0;
- this.Tn = c(a.Tn);
- this.inRange = c(a.inRange);
- this.dG = a.dG;
- this.Yw = void 0;
- this.cAa = this.Ct = 0;
- this.url = this.SC = this.uc = this.xp = this.$ha = this.location = this.Fa = this.mb = void 0;
- this.Uu = !1;
- this.vha = this.ke = void 0;
- a = this.K && "object" === typeof this.K.OPa && this.K.OPa[this.profile];
- "object" === typeof a && (a = a[this.O]) && (this.bF = new q.ka(a.ticks, a.timescale));
- }
- Object.defineProperties(a.prototype, {
- ae: {
- get: function () {
- return !!this.Ea;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- R: {
- get: function () {
- return this.Vg.R;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- u: {
- get: function () {
- return this.Vg.u;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- M: {
- get: function () {
- return this.Vg.M;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- Ta: {
- get: function () {
- return this.Vg.Ta;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- S: {
- get: function () {
- return this.Vg.S;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- yH: {
- get: function () {
- return this.Vg.yH;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- eb: {
- get: function () {
- return this.Vg.eb;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- track: {
- get: function () {
- return this.Vg;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- Kg: {
- get: function () {
- return this.l8a;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- sa: {
- get: function () {
- return this.vy.downloadable_id;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- id: {
- get: function () {
- return this.sa;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- bv: {
- get: function () {
- return this.C5a;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- O: {
- get: function () {
- return this.vy.bitrate;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- wc: {
- get: function () {
- return this.vy.vmaf || null;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- profile: {
- get: function () {
- return this.vy.content_profile;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- Vf: {
- get: function () {
- return this.profile;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- Ms: {
- get: function () {
- return this.vy.sidx;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- zi: {
- get: function () {
- return this.bF;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- $: {
- get: function () {
- return this.Ea;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- G_: {
- get: function () {
- return this.Ea && this.Ea.G_;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- Dea: {
- get: function () {
- return this.Vg.Dea;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- Cea: {
- get: function () {
- return this.Vg.Cea;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- T: {
- get: function () {
- return 0;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- xSa: {
- get: function () {
- return this.vrb();
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- Ux: {
- get: function () {
- return void 0 !== this.Yw ? this.Yw : this.b_();
- },
- set: function (a) {
- this.Yw = a;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- Hj: {
- get: function () {
- return this.Tn && this.inRange && !this.Uu;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- xi: {
- get: function () {
- return this.NE;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- a.prototype.Yi = function () {
- return this.R.Yi(this.M, this.sa);
- };
- a.prototype.FY = function () {
- var a;
- a = this.Yi();
- return a && a.stream.$;
- };
- a.prototype.oD = function () {
- return this.R.oD(this);
- };
- a.prototype.Mja = function () {
- this.track.Mja();
- };
- a.prototype.o0 = function (a, b, c, k, d, n, q) {
- k && void 0 !== k.Sj && (this.track.ae || void 0 !== k.Nd && k.Nd.length) && void 0 !== k.offset && void 0 !== k.sizes && k.sizes.length ? (this.K.Go && this.zi && 0 === k.Sj && (k.Sj += this.zi.Nf(k.S).Ab), this.NE = a, this.ae || (this.track.o0(this, b, c, k, n), this.Ea = new l.oxa(this.track.Sm, k, d, n, q, this.u), this.track.Jwb(this))) : k ? this.G.error("AseStream.onHeaderReceived: fragmentsData was missing data:" + (void 0 !== k.Sj) + "," + this.track.ae + "," + this.track.nda + "," + (void 0 !== k.Nd) + "," + !(!k.Nd || !k.Nd.length) + "," + (void 0 !== k.offset) + "," + (void 0 !== k.sizes) + "," + !(!k.sizes || !k.sizes.length)) : this.G.error("AseStream.onHeaderReceived: fragmentsData was undefined.");
- };
- a.prototype.PW = function (a) {
- this.ae || (this.track.pdb(a.track), this.Ea = a.$, this.NE = a.xi);
- };
- a.prototype.wi = function (a) {
- return new n.Jh(this, this.$.get(a));
- };
- a.prototype.fIa = function (a) {
- var b;
- b = this.wi(a.index);
- a.Sa && (b.Qj(a.Sa), b.xQ(a.Xv));
- return b;
- };
- a.prototype.zUa = function (a, b) {
- this.Ct = a;
- this.cAa = b;
- };
- a.prototype.tcb = function () {
- this.Fa = this.mb = this.uc = this.location = this.url = void 0;
- };
- a.prototype.toJSON = function () {
- return {
- movieId: this.u,
- mediaType: this.M,
- streamId: this.sa,
- bitrate: this.O
- };
- };
- a.prototype.toString = function () {
- return (0 === this.M ? "a" : "v") + ":" + this.sa + ":" + this.O;
- };
- a.prototype.b_ = function () {
- var a;
- if (!this.ae)
- return !0;
- if (this.track.vga >= this.O)
- return this.Yw = !0;
- if (this.track.VLa <= this.O)
- return this.Yw = !1;
- a = this.Ea.b_(this.K.$O, this.Ct, this.cAa);
- if (a) {
- if (!this.track.nda || this.bv)
- this.track.vga = this.O;
- } else
- this.track.VLa = this.O;
- return this.Yw = a;
- };
- a.prototype.vrb = function () {
- return void 0 !== this.Yw ? !this.Yw : !this.b_();
- };
- return a;
- }
- ();
- b.Moa = d;
- }, function (d, b, a) {
- var l,
- q,
- n,
- k;
- function c(a) {
- return function () {
- for (var b = Array(this.length), c = 0; c < this.length; ++c)
- b[c] = a.call(this, c);
- return b;
- };
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.v$a = b.EO = b.m8 = b.Txa = void 0;
- l = a(6);
- d = a(4);
- q = a(34);
- n = new d.Console("FRAGMENTS", "media|asejs");
- k = function () {
- function a(a, b) {
- this.jc = a;
- this.rj = b;
- }
- Object.defineProperties(a.prototype, {
- index: {
- get: function () {
- return this.rj;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- fm: {
- get: function () {
- return new q.ka(this.Ra, this.S);
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- Ra: {
- get: function () {
- return this.jc.BV + this.jc.lx[this.rj];
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- hb: {
- get: function () {
- return this.Ra + this.jc.uo[this.rj];
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- Ro: {
- get: function () {
- return this.jc.uo[this.rj];
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- Ta: {
- get: function () {
- return this.jc.Ta;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- S: {
- get: function () {
- return this.jc.S;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- T: {
- get: function () {
- return Math.floor(1E3 * this.Ra / this.S);
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- na: {
- get: function () {
- return Math.floor(1E3 * (this.Ra + this.Ro) / this.S);
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- duration: {
- get: function () {
- return this.na - this.T;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- a.prototype.toJSON = function () {
- return {
- startPts: 1E3 * this.Ra / this.Ta.S,
- endPts: 1E3 * this.hb / this.Ta.S,
- duration: 1E3 * this.Ro / this.Ta.S,
- index: this.index
- };
- };
- return a;
- }
- ();
- b.Txa = k;
- a = function () {
- function a(a, b, c, k) {
- this.M = a;
- this.length = c.Nd.length;
- this.Wl = c.S;
- this.uo = c.Nd;
- this.ZV = k && k.TH;
- this.YBa = k && k.lI;
- this.KE = b;
- this.Jna = this.Kna = this.aAa = void 0;
- this.BV = c.Sj;
- this.lx = new Uint32Array(this.length + 1);
- if (this.length) {
- for (b = a = 0; b < this.length; ++b)
- this.lx[b] = a, a += this.uo[b];
- this.lx[b] = a;
- this.Q8 = Math.floor((this.na - this.T) / this.length);
- }
- }
- Object.defineProperties(a.prototype, {
- Sj: {
- get: function () {
- return this.QSa(0);
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- Fda: {
- get: function () {
- return this.QSa(this.length);
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- T: {
- get: function () {
- return this.$h(0);
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- na: {
- get: function () {
- return this.$h(this.length);
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- tB: {
- get: function () {
- return new q.ka(this.Fda, this.S);
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- Gia: {
- get: function () {
- return this.aAa || this.V3a();
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- Ta: {
- get: function () {
- return this.KE;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- S: {
- get: function () {
- return this.Wl;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- a.prototype.QSa = function (a) {
- return this.BV + this.lx[a];
- };
- a.prototype.$h = function (a) {
- return Math.floor(1E3 * (this.BV + this.lx[a]) / this.S);
- };
- a.prototype.Gda = function (a) {
- return this.$h(a + 1);
- };
- a.prototype.Nd = function (a) {
- return this.Gda(a) - this.$h(a);
- };
- a.prototype.get = function (a) {
- return new k(this, a);
- };
- a.prototype.km = function (a, b, c) {
- if (0 === this.length || a < this.$h(0))
- return -1;
- a = Math.max(a, b || 0);
- for (var f = 0, h = this.length - 1, k, d; h >= f; )
- if (k = f + (h - f >> 1), d = this.$h(k), a < d)
- h = k - 1;
- else if (a >= d + this.Nd(k))
- f = k + 1;
- else {
- for (; b && k < this.length && this.$h(k) < b; )
- ++k;
- return k < this.length ? k : c ? this.length - 1 : -1;
- }
- return c ? this.length - 1 : -1;
- };
- a.prototype.UX = function (a, b, c) {
- a = this.km(a, b, c);
- return 0 <= a ? this.get(a) : void 0;
- };
- a.prototype.jca = function (a, b) {
- var c,
- f;
- c = Math.floor(b * this.S / 1E3);
- b = Math.min(a + Math.ceil(b / this.Q8), this.length);
- f = this.lx[b] - this.lx[a];
- if (f > c) {
- for (; f >= c; )
- --b, f -= this.uo[b];
- return b - a + 1;
- }
- for (; f < c && b <= this.length; )
- f += this.uo[b], ++b;
- return b - a;
- };
- a.prototype.subarray = function (b, c) {
- l.assert(void 0 === b || 0 <= b && b < this.length);
- l.assert(void 0 === c || c > b && c <= this.length);
- return new a(this.M, this.Ta, {
- S: this.S,
- Sj: this.BV + this.lx[b],
- Nd: this.uo.subarray(b, c)
- }, this.ZV && {
- TH: this.ZV.subarray(b, c + 1),
- lI: this.YBa
- });
- };
- a.prototype.forEach = function (a) {
- for (var b = 0; b < this.length; ++b)
- a(this.get(b), b, this);
- };
- a.prototype.map = function (a) {
- for (var b = [], c = 0; c < this.length; ++c)
- b.push(a(this.get(c), c, this));
- return b;
- };
- a.prototype.reduce = function (a, b) {
- for (var c = 0; c < this.length; ++c)
- b = a(b, this.get(c), c, this);
- return b;
- };
- a.prototype.toJSON = function () {
- return {
- length: this.length,
- averageFragmentDuration: this.Q8
- };
- };
- a.prototype.dump = function () {
- var b;
- n.trace("TrackFragments: " + this.length + ", averageFragmentDuration: " + this.Q8 + "ms");
- for (var a = 0; a < this.length; ++a) {
- b = this.get(a);
- n.trace("TrackFragments: " + a + ": [" + b.T + "-" + b.na + "]");
- }
- };
- a.prototype.V3a = function () {
- for (var a = 0, b = 0; b < this.length; b++)
- a = Math.max(this.uo[b], a);
- return this.aAa = a;
- };
- return a;
- }
- ();
- b.m8 = a;
- b.EO = c;
- a.prototype.PSa = c(a.prototype.$h);
- b.v$a = function (a) {
- return "[" + Array(a.length).map(function (b, c) {
- return a[c].toString();
- }).join(",") + "]";
- };
- }, function (d) {
- function b(a) {
- this.W9 = a;
- this.ff = [];
- this.Co = !1;
- this.CA = void 0;
- this.pi = {};
- }
- b.prototype.XV = function (a) {
- this.ff.length === this.W9 && this.ff.shift();
- Array.isArray(a) ? this.ff = this.ff.concat(a) : this.ff.push(a);
- this.Co = !0;
- };
- b.prototype.IG = function () {
- return this.ff.length;
- };
- b.prototype.pba = function () {
- var a;
- a = this.ff;
- return 0 < a.length ? a.reduce(function (a, b) {
- return a + b;
- }, 0) / this.ff.length : void 0;
- };
- b.prototype.xW = function () {
- var a,
- b;
- a = this.ff;
- if (0 < a.length) {
- b = this.pba();
- a = a.reduce(function (a, b) {
- return a + b * b;
- }, 0) / a.length;
- return Math.sqrt(a - b * b);
- }
- };
- b.prototype.Xp = function (a) {
- var b,
- d,
- q;
- if (this.Co || void 0 === this.CA)
- this.CA = this.ff.slice(0).sort(function (a, b) {
- return a - b;
- }), this.pi = {},
- this.Co = !1;
- if (void 0 === this.pi[a]) {
- b = this.CA;
- d = Math.floor(a / 100 * (b.length - 1) + 1) - 1;
- q = (a / 100 * (b.length - 1) + 1) % 1;
- this.pi[a] = d === b.length - 1 ? b[d] : b[d] + q * (b[d + 1] - b[d]);
- }
- return this.pi[a];
- };
- d.P = b;
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.gw = void 0;
- d = b.gw || (b.gw = {});
- d[d.CLOSED = 0] = "CLOSED";
- d[d.OPEN = 1] = "OPEN";
- }, function (d, b, a) {
- var c;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.YL = void 0;
- c = a(7);
- b.YL = function (a, b, d) {
- var k,
- p;
- k = !0;
- d.forEach(function (h) {
- var f;
- if (k && a === h.profile) {
- f = h.ranges;
- k = c.Y(f) ? b >= h.min && b <= h.max : f.some(function (a) {
- return b >= a.min && b <= a.max;
- });
- !k && h.disallowed && h.disallowed.some(function (a) {
- if (a.stream.bitrate === b)
- return p = a.disallowedBy, !0;
- });
- }
- });
- return {
- inRange: k,
- dG: p
- };
- };
- }, function (d, b, a) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- d = a(0);
- d.__exportStar(a(912), b);
- d.__exportStar(a(911), b);
- d.__exportStar(a(910), b);
- d.__exportStar(a(909), b);
- d.__exportStar(a(908), b);
- d.__exportStar(a(907), b);
- d.__exportStar(a(906), b);
- d.__exportStar(a(905), b);
- d.__exportStar(a(904), b);
- d.__exportStar(a(903), b);
- d.__exportStar(a(902), b);
- d.__exportStar(a(413), b);
- d.__exportStar(a(901), b);
- d.__exportStar(a(897), b);
- d.__exportStar(a(896), b);
- d.__exportStar(a(895), b);
- d.__exportStar(a(231), b);
- d.__exportStar(a(894), b);
- d.__exportStar(a(893), b);
- d.__exportStar(a(892), b);
- d.__exportStar(a(891), b);
- d.__exportStar(a(890), b);
- d.__exportStar(a(889), b);
- d.__exportStar(a(888), b);
- d.__exportStar(a(887), b);
- d.__exportStar(a(886), b);
- d.__exportStar(a(885), b);
- d.__exportStar(a(884), b);
- d.__exportStar(a(883), b);
- d.__exportStar(a(882), b);
- d.__exportStar(a(881), b);
- d.__exportStar(a(880), b);
- d.__exportStar(a(879), b);
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.V5 = void 0;
- b.V5 = "ManifestEnricherSymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Y6 = b.Z6 = void 0;
- b.Z6 = "PboLinksManagerSymbol";
- b.Y6 = "PboLinksManagerFactorySymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Z5 = void 0;
- b.Z5 = "ManifestTransformerSymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.a6 = void 0;
- b.a6 = "ManifestVerifyErrorFactorySymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.q8 = void 0;
- b.q8 = "TrickPlayFactorySymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.n8 = void 0;
- b.n8 = "TrackStreamFactorySymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.y7 = void 0;
- b.y7 = "PlayerTextTrackFactorySymbol";
- }, function (d, b) {
- function a(a, b) {
- this.log = a;
- this.B2 = b;
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.WJ = void 0;
- a.prototype.bUa = function (a, b) {
- var c;
- c = this;
- if (!a)
- return this.log.warn("There are no media streams for " + b.type + " track - " + b.eb), [];
- a = a.map(function (a) {
- var k;
- k = c.B2(b, b.type, a.jda, a.O, a.wc, a.size, c.Xlb(a.se), a.PF, a.vkb / a.ukb, a.bv);
- k.hEb(a.MBb, a.LBb, a.dyb, a.cyb);
- k.CDb(a.Ufb, a.Vfb, a.Tfb, a.Sfb);
- b.sk && (k.sk = b.sk);
- a.PF && (k.Vf = a.PF);
- return k;
- });
- a.sort(function (a, b) {
- return a.O - b.O;
- });
- return a;
- };
- a.prototype.Xlb = function (a) {
- return a.reduce(function (a, b) {
- a[b.DDa] = b.url;
- return a;
- }, {});
- };
- b.WJ = a;
- }, function (d, b, a) {
- var c,
- l,
- q;
- c = a(235);
- l = a(111);
- b = a(52);
- q = a(932);
- a = b(function (a, b) {
- return 1 === a ? l(b) : c(a, q(a, [], b));
- });
- d.P = a;
- }, function (d) {
- d.P = function (b, a) {
- for (var c = 0, d = a.length, q = Array(d); c < d; )
- q[c] = b(a[c]), c += 1;
- return q;
- };
- }, function (d, b, a) {
- var c,
- l,
- q,
- n,
- k;
- b = a(111);
- c = a(237);
- l = a(935);
- q = !{
- toString: null
- }
- .propertyIsEnumerable("toString");
- n = "constructor valueOf isPrototypeOf toString propertyIsEnumerable hasOwnProperty toLocaleString".split(" ");
- k = function () {
- return arguments.propertyIsEnumerable("length");
- }
- ();
- a = b("function" !== typeof Object.keys || k ? function (a) {
- var b,
- f,
- d,
- p;
- if (Object(a) !== a)
- return [];
- d = [];
- f = k && l(a);
- for (b in a)
- !c(b, a) || f && "length" === b || (d[d.length] = b);
- if (q)
- for (f = n.length - 1; 0 <= f; ) {
- b = n[f];
- if (p = c(b, a)) {
- a: {
- for (p = 0; p < d.length; ) {
- if (d[p] === b) {
- p = !0;
- break a;
- }
- p += 1;
- }
- p = !1;
- }
- p = !p;
- }
- p && (d[d.length] = b);
- --f;
- }
- return d;
- }
- : function (a) {
- return Object(a) !== a ? [] : Object.keys(a);
- });
- d.P = a;
- }, function (d) {
- d.P = {
- Db: function () {
- return this.ER["@@transducer/init"]();
- },
- result: function (b) {
- return this.ER["@@transducer/result"](b);
- }
- };
- }, function (d) {
- d.P = Array.isArray || function (b) {
- return null != b && 0 <= b.length && "[object Array]" === Object.prototype.toString.call(b);
- };
- }, function (d, b, a) {
- var c,
- l;
- c = a(427);
- l = a(942);
- d.P = function (a, b, k) {
- return function () {
- var d,
- h;
- if (0 === arguments.length)
- return k();
- d = Array.prototype.slice.call(arguments, 0);
- h = d.pop();
- if (!c(h)) {
- for (var f = 0; f < a.length; ) {
- if ("function" === typeof h[a[f]])
- return h[a[f]].apply(h, d);
- f += 1;
- }
- if (l(h))
- return b.apply(null, d)(h);
- }
- return k.apply(this, arguments);
- };
- };
- }, function (d, b, a) {
- var c,
- l,
- q,
- n,
- k,
- p;
- b = a(52);
- c = a(428);
- l = a(941);
- q = a(430);
- n = a(236);
- k = a(936);
- p = a(425);
- a = b(c(["filter"], k, function (a, b) {
- return q(b) ? n(function (c, f) {
- a(b[f]) && (c[f] = b[f]);
- return c;
- }, {}, p(b)) : l(a, b);
- }));
- d.P = a;
- }, function (d) {
- d.P = function (b) {
- return "[object Object]" === Object.prototype.toString.call(b);
- };
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.X5 = void 0;
- b.X5 = "ManifestProviderConfigSymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Y5 = void 0;
- b.Y5 = "ManifestParserFactorySymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.I3 = void 0;
- b.I3 = "CDMAttestedDescriptorProvider";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.B3 = void 0;
- b.B3 = "BookmarkConfigParserSymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.C3 = void 0;
- b.C3 = "BookmarkConfigSymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.k4 = void 0;
- b.k4 = "DiskStorageRegistrySymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.k6 = void 0;
- b.k6 = "MemoryStorageSymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.J5 = void 0;
- b.J5 = "LocalStorageSymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.R3 = void 0;
- b.R3 = "CorruptedStorageValidatorConfigSymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.QT = void 0;
- b.QT = "Storage";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.SJ = void 0;
- b.SJ = "IndexedDBConfigSymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.E7 = void 0;
- b.E7 = "PresentationAPISymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.c6 = void 0;
- b.c6 = "MediaCapabilitiesLogHelperSymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.d6 = void 0;
- b.d6 = "MediaCapabilitiesSymbol";
- }, function (d, b, a) {
- var c,
- l,
- q;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.iS = void 0;
- c = a(31);
- l = a(447);
- q = a(61);
- a(133);
- new(a(98)).Iw();
- d = function () {
- function a(a, b) {
- var h;
- h = l.qJ.call(this, a, b, c.hr.Audio) || this;
- h.config = a;
- h.Xia = b;
- h.type = c.Yq.kw;
- return h;
- }
- da(a, l.qJ);
- a.prototype.MQ = function () {
- return Promise.resolve(!1);
- };
- a.prototype.fB = function () {
- var a;
- a = {};
- a[q.tg.JJ] = "mp4a.40.2";
- a[q.tg.yZa] = "mp4a.40.2";
- a[q.tg.V4] = "mp4a.40.5";
- a[q.tg.KJ] = "mp4a.40.2";
- a[q.tg.eU] = "mp4a.40.42";
- this.config().xda && (a[q.tg.rJ] = "ec-3");
- this.config().wda && (a[q.tg.V3] = "ec-3");
- this.config().jN && (a[q.tg.sJ] = "ec-3");
- return a;
- };
- a.prototype.RIa = function () {
- return this.config().dM;
- };
- a.VI = "audio/mp4;codecs={0};";
- return a;
- }
- ();
- b.iS = d;
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.sh = void 0;
- b.sh = function () {
- function a() {}
- a.Jra = /^hevc-main/;
- a.Ira = /^hevc-hdr-|hevc-dv/;
- a.jt = /^hevc-hdr-/;
- a.et = /^hevc-dv/;
- a.MD = /-h264mpl/;
- a.DJ = /-h264mpl30/;
- a.ND = /-h264mpl31/;
- a.wD = /-h264hpl/;
- a.Mw = /^vp9-/;
- a.Fi = /^av1-/;
- a.FR = /^heaac-2-/;
- a.zMb = /^heaac-2hq-dash/;
- a.eU = /^xheaac-dash/;
- a.GXa = /ddplus-2/;
- a.HXa = /ddplus-5/;
- a.IXa = /ddplus-atmos/;
- return a;
- }
- ();
- }, function (d, b, a) {
- var l,
- q,
- n;
- function c(a, b, c) {
- this.config = a;
- this.Xia = b;
- this.M = c;
- this.Zia = {};
- this.Zia[l.hr.Audio] = "audio";
- this.Zia[l.hr.oya] = "video";
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.qJ = void 0;
- l = a(31);
- d = a(98);
- q = a(446);
- n = new d.Iw().format;
- c.prototype.gJa = function () {
- return this.ehb(this.RIa());
- };
- c.prototype.qu = function (a) {
- return this.Xia.isTypeSupported(a);
- };
- c.prototype.RHa = function () {
- return [q.sh.FR, q.sh.MD];
- };
- c.prototype.Zga = function () {
- this.Al = [];
- this.Gq = [];
- this.config().zOa && this.Gq.push(q.sh.Jra);
- this.config().yOa && this.Gq.push(q.sh.Ira);
- this.config().w0 && this.Gq.push(q.sh.wD);
- this.config().AOa && this.Gq.push(q.sh.Mw);
- this.config().xOa && this.Gq.push(q.sh.Fi);
- this.Gq = this.Gq.concat(this.RHa());
- !this.config().Cib && this.Al.push(q.sh.eU);
- !this.config().xda && this.Al.push(q.sh.GXa);
- !this.config().wda && this.Al.push(q.sh.HXa);
- !this.config().jN && this.Al.push(q.sh.IXa);
- !this.config().uib && this.Al.push(/prk$/);
- this.config().zOa || this.config().kib || this.Al.push(q.sh.Jra);
- this.config().yOa || this.config().zda || this.Al.push(q.sh.Ira);
- this.config().w0 || this.config().vda || this.Al.push(q.sh.wD);
- this.config().AOa || this.config().Aib || this.Al.push(q.sh.Mw);
- this.config().xOa || this.config().gib || this.Al.push(q.sh.Fi);
- };
- c.prototype.SX = function (a) {
- var b;
- b = this;
- a = a.filter(function (a) {
- for (var c = S(b.Gq), h = c.next(); !h.done; h = c.next())
- if (h.value.test(a))
- return !0;
- c = S(b.Al);
- for (h = c.next(); !h.done; h = c.next())
- if (h.value.test(a))
- return !1;
- a = b.Jka[a];
- h = "";
- if (a)
- return Array.isArray(a) && (h = 1 < a.length ? " " + a[1] : "", a = a[0]), a = n("{0}/mp4;codecs={1};{2}", b.Zia[b.M], a, h), b.qu(a);
- });
- return Promise.resolve(a);
- };
- c.prototype.ehb = function (a) {
- var b;
- b = {};
- this.Zga();
- return this.SX(a).then(function (a) {
- return a.map(function (a) {
- return b[a] = 1;
- });
- }).then(function () {
- return Object.keys(b);
- });
- };
- pa.Object.defineProperties(c.prototype, {
- Jka: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- this.LAa || (this.LAa = this.fB());
- return this.LAa;
- }
- }
- });
- b.qJ = c;
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.s3 = void 0;
- b.s3 = {
- "playready-oggvorbis-2-piff": "OGG_VORBIS",
- "playready-oggvorbis-2-dash": "OGG_VORBIS",
- "heaac-2-piff": "AAC",
- "heaac-2-dash": "AAC",
- "heaac-2hq-dash": "AAC",
- "heaac-5.1-dash": "AAC",
- "playready-heaac-2-dash": "AAC",
- "heaac-2-elem": "AAC",
- "heaac-2-m2ts": "AAC",
- "xheaac-dash": "XHEAAC",
- "ddplus-5.1-piff": "DDPLUS",
- "ddplus-2.0-dash": "DDPLUS",
- "ddplus-5.1-dash": "DDPLUS",
- "ddplus-atmos-dash": "DDPLUS",
- "dd-5.1-elem": "DD",
- "dd-5.1-m2ts": "DD"
- };
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.K3 = void 0;
- b.K3 = "CapabilityDetectorFactorySymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.G4 = void 0;
- b.G4 = "ExtraPlatformInfoProviderSymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.N3 = void 0;
- b.N3 = "CdnThroughputTracker";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.j8 = void 0;
- b.j8 = "ThroughputTrackerConfigSymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.W6 = void 0;
- b.W6 = "PboGenerateScreenshotsCommandSymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.j4 = void 0;
- b.j4 = "DiagnosticsFactorySymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.o8 = void 0;
- b.o8 = "TransitionLoggerSymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.z8 = void 0;
- b.z8 = "VideoPlayerFactorySymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.u7 = void 0;
- b.u7 = "PlaybackFactorySymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.W7 = void 0;
- b.W7 = "SegmentConfigFactorySymbol";
- }, function (d, b, a) {
- var l;
- function c(a, b, c, d, h, f) {
- this.level = a;
- this.cm = b;
- this.timestamp = c;
- this.message = d;
- this.Cd = h;
- this.index = void 0 === f ? 0 : f;
- this.R_a = {
- 0: "F",
- 1: "E",
- 2: "W",
- 3: "I",
- 4: "T",
- 5: "D"
- };
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.N5 = void 0;
- l = a(3);
- c.prototype.y2 = function (a, b) {
- var c;
- c = "" + this.message;
- this.Cd.forEach(function (k) {
- c += k.mD(a, b);
- });
- return (this.timestamp.ca(l.ia) / 1E3).toFixed(3) + "|" + this.index + "|" + (this.R_a[this.level] || this.level) + "|" + this.cm + "| " + c;
- };
- b.N5 = c;
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.b4 = void 0;
- b.b4 = "DebouncerFactorySymbol";
- }, function (d, b, a) {
- var c,
- l,
- q;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.KD = b.nra = void 0;
- c = a(0);
- l = a(471);
- q = a(1);
- d = function () {
- var b;
- function a() {}
- a.prototype.create = function () {
- return new l.kj();
- };
- b = a;
- return b = c.__decorate([q.N()], b);
- }
- ();
- b.nra = d;
- b.KD = "EventSourceFactorySymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.KD = void 0;
- b.KD = "EventSourceFactorySymbol";
- }, function (d, b, a) {
- var l,
- q,
- n;
- function c() {}
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.e6 = void 0;
- l = a(5);
- q = a(14);
- n = a(9);
- c.prototype.kq = function () {
- return this.Jqb() ? n.Kqa : /widevine/i.test(this.config().ce) ? n.r4 : /fps/i.test(this.config().ce) ? "fairplay" : n.lS;
- };
- c.prototype.Jqb = function () {
- return /clearkey/i.test(this.config().ce);
- };
- pa.Object.defineProperties(c.prototype, {
- config: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- this.K || (this.K = l.Z.get(q.jd));
- return this.K;
- }
- }
- });
- b.e6 = new c();
- }, function (d, b, a) {
- var l,
- q,
- n,
- k;
- function c(a, b, c, k, d, l, g) {
- this.debug = a;
- this.config = b;
- this.platform = c;
- this.KMa = k;
- this.debug.assert(d && d != q.J.Xk, "There should always be a specific error code");
- this.errorCode = d || q.J.Xk;
- l && n.Xe(l) ? (this.ha = l.ha || l.Hb, this.we = l.we || l.qd, this.Lda = l.Lda || l.im, this.fb = l.fb || l.Jx, this.mB = l.Nn, this.pG = l.pG || l.hNa || l.ws, this.pN = l.pN || l.data, l.MO && (this.MO = l.MO), this.Ui = l.Ui, this.method = l.method, this.a0 = l.a0, this.alert = l.alert, this.waa = l.waa, this.debug.assert(!this.Ui || this.Ui == this.we)) : (this.ha = l, this.we = g);
- this.stack = [this.errorCode];
- this.ha ? this.stack.push(this.ha) : this.we && this.stack.push(q.I.Xk);
- this.we && this.stack.push(this.we);
- this.oX = this.platform.xB + this.stack.join("-");
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Lva = void 0;
- l = a(9);
- q = a(2);
- n = a(23);
- k = a(15);
- a(20);
- c.prototype.toString = function () {
- var a;
- a = "[PlayerError #" + this.oX + "]";
- this.fb && (a += " " + this.fb);
- this.mB && (a += " (CustomMessage: " + this.mB + ")");
- return a;
- };
- c.prototype.una = function () {
- var a,
- b;
- this.mB && (a = ["streaming_error"]);
- a || this.KMa.kq() !== l.lS || ("80080017" == this.we && (a = ["admin_mode_not_supported", "platform_error"]), "8004CD12" === this.we && (a = ["pause_timeout"]));
- a || this.KMa.kq() !== l.r4 || this.errorCode !== q.J.Oqa && this.errorCode !== q.J.mS || (a = ["no_cdm", "platform_error", "plugin_error"]);
- this.trb() && (a = ["received_soad"]);
- b = this.xlb();
- b && (a = [b], this.mB = void 0);
- if (!a)
- switch (this.errorCode) {
- case q.J.nT:
- case q.J.PS:
- case q.J.XVa:
- case q.J.Nua:
- a = ["pause_timeout"];
- break;
- case q.J.wsa:
- case q.J.xsa:
- a = this.ha ? ["platform_error"] : ["multiple_tabs"];
- break;
- case q.J.W_a:
- case q.J.F2a:
- case q.J.t_a:
- case q.J.s_a:
- case q.J.v_a:
- a = ["should_signout_and_signin"];
- break;
- case q.J.q5:
- case q.J.Qua:
- case q.J.Pua:
- case q.J.N6:
- case q.J.Lua:
- a = ["platform_error", "plugin_error"];
- break;
- case q.J.L6:
- a = ["no_cdm", "platform_error", "plugin_error"];
- break;
- case q.J.eK:
- a = this.ha ? ["platform_error", "plugin_error"] : ["no_cdm", "platform_error", "plugin_error"];
- break;
- case q.J.ID:
- case q.J.Dw:
- case q.J.M6:
- switch (this.we) {
- case "FFFFD000":
- a = ["device_needs_service", "platform_error"];
- break;
- case "48444350":
- a = ["unsupported_output", "platform_error"];
- break;
- case "00000024":
- a = ["private_mode"];
- }
- break;
- case q.J.Oua:
- case q.J.K6:
- a = ["unsupported_output"];
- }
- !a && q.lra(this.ha) && (a = this.ha == q.I.OJ ? ["geo"] : ["internet_connection_problem"]);
- a || this.errorCode !== q.J.mS || this.ha !== q.I.Of || "S" !== this.platform.xB || (a = ["private_mode"]);
- if (!a)
- switch (this.fTa(this.ha)) {
- case q.I.B8:
- a = ["should_upgrade"];
- break;
- case q.I.Hua:
- a = ["should_reset_device"];
- break;
- case q.I.Gua:
- a = ["should_reload_device"];
- break;
- case q.I.Fua:
- a = ["should_exit_device"];
- break;
- case q.I.F0a:
- case q.I.Ata:
- a = ["should_signout_and_signin"];
- break;
- case q.I.G0a:
- a = ["internet_connection_problem"];
- break;
- case q.I.dqa:
- a = ["platform_error", "plugin_error"];
- break;
- case q.I.X3:
- case q.I.$ra:
- case q.I.bsa:
- a = ["private_mode"];
- }
- a = a || [];
- a.push(this.platform.xB + this.errorCode);
- if (this.ha)
- switch (this.fTa(this.ha)) {
- case q.I.Iua:
- a.push("incorrect_pin");
- break;
- default:
- a.push("" + this.ha);
- }
- a = {
- display: {
- code: this.oX,
- text: this.mB
- },
- messageIdList: a,
- alert: this.alert,
- alertTag: this.waa
- };
- if (this.pG || this.hNa)
- a.mslErrorCode = this.pG || this.hNa || this.ws;
- return a;
- };
- c.prototype.fTa = function (a) {
- var b;
- b = parseInt(a, 10);
- return isNaN(b) ? a : b;
- };
- c.prototype.trb = function () {
- var a;
- a = k.la(this.we) ? this.we.toString() : k.Od(this.we) ? this.we : "";
- return this.pG === q.$S.u8 && (a.endsWith("2018") || a.endsWith("2020"));
- };
- c.prototype.xlb = function () {
- if (this.errorCode === q.J.tw && (this.ha === q.I.G6 || this.ha === q.I.Eua))
- return this.ylb(this.ha === q.I.G6);
- };
- c.prototype.ylb = function (a) {
- var b,
- c,
- k;
- b = (this.config().browserInfo || {}).os || {};
- c = b.name;
- k = (b.version || "").split(".");
- b = parseInt(k && k[0]);
- k = parseInt(k && k[1]);
- switch (c) {
- case "Windows":
- return 6 > b || 6 === b && 1 > k ? a ? "cdm_not_supported_warning_switch_windows" : "cdm_not_supported_switch_windows" : a ? "cdm_not_supported_warning_update" : "cdm_not_supported_update";
- case "Mac OS X":
- return 10 > b || 10 === b && 10 > k ? a ? "cdm_not_supported_warning_switch_mac" : "cdm_not_supported_switch_mac" : a ? "cdm_not_supported_warning_update" : "cdm_not_supported_update";
- default:
- return a ? "cdm_not_supported_warning_other" : "cdm_not_supported_other";
- }
- };
- b.Lva = c;
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.v8 = void 0;
- b.v8 = "UrlFactorySymbol";
- }, function (d, b, a) {
- var c,
- l;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.F7 = void 0;
- c = a(0);
- l = a(1);
- d = function () {
- var b;
- function a(a) {
- this.F5a = void 0 === a ? !1 : a;
- this.Vd = {
- 0: []
- };
- }
- a.prototype.add = function (a, b) {
- var c;
- b = void 0 === b ? 0 : b;
- c = this.Vd[b];
- c ? this.F5a && -1 !== c.indexOf(a) || c.push(a) : this.Vd[b] = [a];
- };
- a.prototype.remove = function (a, b) {
- this.Rt(a, void 0 === b ? 0 : b);
- };
- a.prototype.removeAll = function (a) {
- this.Rt(a);
- };
- a.prototype.Xr = function () {
- var a;
- a = this;
- return Object.keys(this.Vd).sort().reduce(function (b, c) {
- return b.concat(a.Vd[c]);
- }, []);
- };
- a.prototype.Rt = function (a, b) {
- var c;
- c = this;
- Object.keys(this.Vd).forEach(function (f) {
- var h;
- if (void 0 === b || b === parseInt(f)) {
- f = c.Vd[f];
- -1 < (h = f.indexOf(a)) && f.splice(h, 1);
- }
- });
- };
- b = a;
- return b = c.__decorate([l.N()], b);
- }
- ();
- b.F7 = d;
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.r6 = b.D0a = void 0;
- b.D0a = function () {};
- b.r6 = "MseConfigSymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.e4 = void 0;
- b.e4 = "DecoderTimeoutPathologistSymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.U3 = void 0;
- b.U3 = "CsvEncoderSymbol";
- }, function (d, b, a) {
- (function (c) {
- var V,
- ta,
- N,
- na,
- ma,
- ja;
- function d(a, c) {
- var f;
- f = {
- Vla: [],
- Uj: n
- };
- 3 <= arguments.length && (f.depth = arguments[2]);
- 4 <= arguments.length && (f.MF = arguments[3]);
- H(c) ? f.yma = c : c && b.T4a(f, c);
- J(f.yma) && (f.yma = !1);
- J(f.depth) && (f.depth = 2);
- J(f.MF) && (f.MF = !1);
- J(f.WEa) && (f.WEa = !0);
- f.MF && (f.Uj = q);
- return p(f, a, f.depth);
- }
- function q(a, b) {
- return (b = d.AFb[b]) ? "\u001b[" + d.MF[b][0] + "m" + a + "\u001b[" + d.MF[b][1] + "m" : a;
- }
- function n(a) {
- return a;
- }
- function k(a) {
- var b;
- b = {};
- a.forEach(function (a) {
- b[a] = !0;
- });
- return b;
- }
- function p(a, c, d) {
- var l,
- n,
- q,
- g,
- D;
- if (a.WEa && c && T(c.kO) && c.kO !== b.kO && (!c.constructor || c.constructor.prototype !== c)) {
- l = c.kO(d, a);
- m(l) || (l = p(a, l, d));
- return l;
- }
- if (l = h(a, c))
- return l;
- n = Object.keys(c);
- q = k(n);
- a.yma && (n = Object.getOwnPropertyNames(c));
- if (z(c) && (0 <= n.indexOf("message") || 0 <= n.indexOf("description")))
- return f(c);
- if (0 === n.length) {
- if (T(c))
- return a.Uj("[Function" + (c.name ? ": " + c.name : "") + "]", "special");
- if (r(c))
- return a.Uj(RegExp.prototype.toString.call(c), "regexp");
- if (t(c))
- return a.Uj(Date.prototype.toString.call(c), "date");
- if (z(c))
- return f(c);
- }
- l = "";
- g = !1;
- D = ["{", "}"];
- C(c) && (g = !0, D = ["[", "]"]);
- T(c) && (l = " [Function" + (c.name ? ": " + c.name : "") + "]");
- r(c) && (l = " " + RegExp.prototype.toString.call(c));
- t(c) && (l = " " + Date.prototype.toUTCString.call(c));
- z(c) && (l = " " + f(c));
- if (0 === n.length && (!g || 0 == c.length))
- return D[0] + l + D[1];
- if (0 > d)
- return r(c) ? a.Uj(RegExp.prototype.toString.call(c), "regexp") : a.Uj("[Object]", "special");
- a.Vla.push(c);
- n = g ? u(a, c, d, q, n) : n.map(function (b) {
- return A(a, c, d, q, b, g);
- });
- a.Vla.pop();
- return G(n, l, D);
- }
- function h(a, b) {
- if (J(b))
- return a.Uj("undefined", "undefined");
- if (m(b))
- return b = "'" + JSON.stringify(b).replace(/^"|"$/g, "").replace(/'/g, "\\'").replace(/\\"/g, '"') + "'", a.Uj(b, "string");
- if (D(b))
- return a.Uj("" + b, "number");
- if (H(b))
- return a.Uj("" + b, "boolean");
- if (null === b)
- return a.Uj("null", "null");
- }
- function f(a) {
- return "[" + Error.prototype.toString.call(a) + "]";
- }
- function u(a, b, c, f, h) {
- for (var k = [], d = 0, p = b.length; d < p; ++d)
- Object.prototype.hasOwnProperty.call(b, String(d)) ? k.push(A(a, b, c, f, String(d), !0)) : k.push("");
- h.forEach(function (h) {
- h.match(/^\d+$/) || k.push(A(a, b, c, f, h, !0));
- });
- return k;
- }
- function A(a, b, c, f, h, k) {
- var d,
- u;
- b = Object.getOwnPropertyDescriptor(b, h) || {
- value: b[h]
- };
- b.get ? u = b.set ? a.Uj("[Getter/Setter]", "special") : a.Uj("[Getter]", "special") : b.set && (u = a.Uj("[Setter]", "special"));
- Object.prototype.hasOwnProperty.call(f, h) || (d = "[" + h + "]");
- u || (0 > a.Vla.indexOf(b.value) ? (u = null === c ? p(a, b.value, null) : p(a, b.value, c - 1), -1 < u.indexOf("\n") && (u = k ? u.split("\n").map(function (a) {
- return " " + a;
- }).join("\n").substr(2) : "\n" + u.split("\n").map(function (a) {
- return " " + a;
- }).join("\n"))) : u = a.Uj("[Circular]", "special"));
- if (J(d)) {
- if (k && h.match(/^\d+$/))
- return u;
- d = JSON.stringify("" + h);
- d.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/) ? (d = d.substr(1, d.length - 2), d = a.Uj(d, "name")) : (d = d.replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'"), d = a.Uj(d, "string"));
- }
- return d + ": " + u;
- }
- function G(a, b, c) {
- var f;
- f = 0;
- return 60 < a.reduce(function (a, b) {
- f++;
- 0 <= b.indexOf("\n") && f++;
- return a + b.replace(/\u001b\[\d\d?m/g, "").length + 1;
- }, 0) ? c[0] + ("" === b ? "" : b + "\n ") + " " + a.join(",\n ") + " " + c[1] : c[0] + b + " " + a.join(", ") + " " + c[1];
- }
- function C(a) {
- return Array.isArray(a);
- }
- function H(a) {
- return "boolean" === typeof a;
- }
- function D(a) {
- return "number" === typeof a;
- }
- function m(a) {
- return "string" === typeof a;
- }
- function J(a) {
- return void 0 === a;
- }
- function r(a) {
- return P(a) && "[object RegExp]" === Object.prototype.toString.call(a);
- }
- function P(a) {
- return "object" === typeof a && null !== a;
- }
- function t(a) {
- return P(a) && "[object Date]" === Object.prototype.toString.call(a);
- }
- function z(a) {
- return P(a) && ("[object Error]" === Object.prototype.toString.call(a) || a instanceof Error);
- }
- function T(a) {
- return "function" === typeof a;
- }
- function U(a) {
- return 10 > a ? "0" + a.toString(10) : a.toString(10);
- }
- function ea() {
- var a,
- b;
- a = new Date();
- b = [U(a.getHours()), U(a.getMinutes()), U(a.getSeconds())].join(":");
- return [a.getDate(), ma[a.getMonth()], b].join(" ");
- }
- function ha(a, b) {
- var c;
- if (!a) {
- c = Error("Promise was rejected with a falsy value");
- c.reason = a;
- a = c;
- }
- return b(a);
- }
- V = Object.aTb || function (a) {
- for (var b = Object.keys(a), c = {}, f = 0; f < b.length; f++)
- c[b[f]] = Object.getOwnPropertyDescriptor(a, b[f]);
- return c;
- };
- ta = /%[sdj%]/g;
- b.format = function (a) {
- if (!m(a)) {
- for (var b = [], c = 0; c < arguments.length; c++)
- b.push(d(arguments[c]));
- return b.join(" ");
- }
- for (var c = 1, f = arguments, h = f.length, b = String(a).replace(ta, function (a) {
- if ("%%" === a)
- return "%";
- if (c >= h)
- return a;
- switch (a) {
- case "%s":
- return String(f[c++]);
- case "%d":
- return Number(f[c++]);
- case "%j":
- try {
- return JSON.stringify(f[c++]);
- } catch (Oa) {
- return "[Circular]";
- }
- default:
- return a;
- }
- }), k = f[c]; c < h; k = f[++c])
- b = null !== k && P(k) ? b + (" " + d(k)) : b + (" " + k);
- return b;
- };
- b.Rgb = function (a, f) {
- var h;
- if ("undefined" !== typeof c && !0 === c.IUb)
- return a;
- if ("undefined" === typeof c)
- return function () {
- return b.Rgb(a, f).apply(this, arguments);
- };
- h = !1;
- return function () {
- if (!h) {
- if (c.kWb)
- throw Error(f);
- c.mWb ? console.trace(f) : console.error(f);
- h = !0;
- }
- return a.apply(this, arguments);
- };
- };
- N = {};
- b.ZRb = function (a) {
- var f;
- J(na) && (na = c.Uib.DNb || "");
- a = a.toUpperCase();
- if (!N[a])
- if (new RegExp("\\b" + a + "\\b", "i").test(na)) {
- f = c.bVb;
- N[a] = function () {
- var c;
- c = b.format.apply(b, arguments);
- console.error("%s %d: %s", a, f, c);
- };
- } else
- N[a] = function () {};
- return N[a];
- };
- b.kO = d;
- d.MF = {
- bold: [1, 22],
- italic: [3, 23],
- underline: [4, 24],
- inverse: [7, 27],
- white: [37, 39],
- grey: [90, 39],
- black: [30, 39],
- blue: [34, 39],
- cyan: [36, 39],
- green: [32, 39],
- magenta: [35, 39],
- red: [31, 39],
- yellow: [33, 39]
- };
- d.AFb = {
- special: "cyan",
- number: "yellow",
- "boolean": "yellow",
- undefined: "grey",
- "null": "bold",
- string: "green",
- date: "magenta",
- regexp: "red"
- };
- b.isArray = C;
- b.Gqb = H;
- b.Ma = function (a) {
- return null === a;
- };
- b.ETb = function (a) {
- return null == a;
- };
- b.la = D;
- b.Od = m;
- b.HTb = function (a) {
- return "symbol" === typeof a;
- };
- b.Y = J;
- b.UKa = r;
- b.Xe = P;
- b.RZ = t;
- b.mO = z;
- b.Vb = T;
- b.QKa = function (a) {
- return null === a || "boolean" === typeof a || "number" === typeof a || "string" === typeof a || "symbol" === typeof a || "undefined" === typeof a;
- };
- b.isBuffer = a(1021);
- ma = "Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" ");
- b.log = function () {
- console.log("%s - %s", ea(), b.format.apply(b, arguments));
- };
- b.hqb = a(1020);
- b.T4a = function (a, b) {
- if (b && P(b))
- for (var c = Object.keys(b), f = c.length; f--; )
- a[c[f]] = b[c[f]];
- };
- g();
- g();
- ja = "undefined" !== typeof Symbol ? Symbol("util.promisify.custom") : void 0;
- b.Jzb = function (a) {
- function b() {
- for (var b, c, f = new Promise(function (a, f) {
- b = a;
- c = f;
- }), h = [], k = 0; k < arguments.length; k++)
- h.push(arguments[k]);
- h.push(function (a, f) {
- a ? c(a) : b(f);
- });
- try {
- a.apply(this, h);
- } catch (Oa) {
- c(Oa);
- }
- return f;
- }
- if ("function" !== typeof a)
- throw new TypeError('The "original" argument must be of type Function');
- if (ja && a[ja]) {
- b = a[ja];
- if ("function" !== typeof b)
- throw new TypeError('The "util.promisify.custom" argument must be of type Function');
- Object.defineProperty(b, ja, {
- value: b,
- enumerable: !1,
- writable: !1,
- configurable: !0
- });
- return b;
- }
- Object.setPrototypeOf(b, Object.getPrototypeOf(a));
- ja && Object.defineProperty(b, ja, {
- value: b,
- enumerable: !1,
- writable: !1,
- configurable: !0
- });
- return Object.defineProperties(b, V(a));
- };
- b.Jzb.QRb = ja;
- b.zRb = function (a) {
- function b() {
- var k,
- d;
- function b() {
- return k.apply(d, arguments);
- }
- for (var f = [], h = 0; h < arguments.length; h++)
- f.push(arguments[h]);
- k = f.pop();
- if ("function" !== typeof k)
- throw new TypeError("The last argument must be of type Function");
- d = this;
- a.apply(this, f).then(function (a) {
- c.uNa(b, null, a);
- }, function (a) {
- c.uNa(ha, a, b);
- });
- }
- if ("function" !== typeof a)
- throw new TypeError('The "original" argument must be of type Function');
- Object.setPrototypeOf(b, Object.getPrototypeOf(a));
- Object.defineProperties(b, V(a));
- return b;
- };
- }
- .call(this, a(250)));
- }, function (d, b, a) {
- var c,
- l;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.kj = void 0;
- c = a(0);
- l = a(1);
- d = function () {
- var b,
- k;
- function a() {
- this.On = {};
- this.id = "$es$" + b.LM++;
- }
- a.prototype.addListener = function (a, b, c) {
- var f,
- h;
- f = "$netflix$player$order" + this.id + "$" + a;
- if (this.On) {
- h = this.On[a] ? this.On[a].slice() : [];
- c && (b[f] = c);
- 0 > h.indexOf(b) && (h.push(b), h.sort(function (a, b) {
- return (a[f] || 0) - (b[f] || 0);
- }));
- this.On[a] = h;
- }
- };
- a.prototype.removeListener = function (a, b) {
- if (this.On && this.On[a]) {
- for (var c = this.On[a].slice(), h; 0 <= (h = c.indexOf(b)); )
- c.splice(h, 1);
- this.On[a] = c;
- }
- };
- a.prototype.Xb = function (a, b, c) {
- var f;
- if (this.On) {
- f = this.cfa(a);
- for (a = {
- Gj: 0
- }; a.Gj < f.length; a = {
- Gj: a.Gj
- }, a.Gj++)
- c ? function (a) {
- return function () {
- var c;
- c = f[a.Gj];
- setTimeout(function () {
- c(b);
- }, 0);
- };
- }
- (a)() : f[a.Gj].call(this, b);
- }
- };
- a.prototype.Ag = function () {
- this.On = void 0;
- };
- a.prototype.on = function (a, b, c) {
- this.addListener(a, b, c);
- };
- a.prototype.cfa = function (a) {
- return this.On && (this.On[a] || (this.On[a] = []));
- };
- k = b = a;
- k.LM = 0;
- return k = b = c.__decorate([l.N()], k);
- }
- ();
- b.kj = d;
- }, function (d, b, a) {
- var c,
- l,
- q,
- n,
- k;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.w8 = void 0;
- c = a(0);
- l = a(1);
- a(2);
- q = a(21);
- n = a(89);
- k = a(10);
- d = function () {
- var b;
- function a(a, b) {
- this.is = a;
- this.Nh = b;
- }
- a.prototype.kC = function (a, b, c) {
- var f,
- h,
- k,
- d;
- f = this;
- if (b)
- if (c) {
- h = c.iH;
- k = c.prefix;
- d = c.Dv;
- this.Ju(b, function (b, c) {
- if (!d || f.is.Xd(c))
- a[(k || "") + (h ? b.toLowerCase() : b)] = c;
- });
- } else
- this.Ju(b, function (b, c) {
- a[b] = c;
- });
- return a;
- };
- a.prototype.Ju = function (a, b) {
- for (var c in a)
- a.hasOwnProperty(c) && b(c, a[c]);
- };
- a.prototype.Nr = function (a, b) {
- if (a.length == b.length) {
- for (var c = a.length; c--; )
- if (a[c] != b[c])
- return !1;
- return !0;
- }
- return !1;
- };
- a.prototype.wEa = function (a, b) {
- if (a.length != b.length)
- return !1;
- a.sort();
- b.sort();
- for (var c = a.length; c--; )
- if (a[c] !== b[c])
- return !1;
- return !0;
- };
- a.prototype.pd = function (a) {
- var b,
- c,
- f;
- if (a) {
- b = a.stack;
- c = a.number;
- f = a.message;
- f || (f = "" + a);
- b ? (a = "" + b, 0 !== a.indexOf(f) && (a = f + "\n" + a)) : a = f;
- c && (a += "\nnumber:" + c);
- return a;
- }
- };
- a.prototype.getFunctionName = function (a) {
- return (a = /function (.{1,})\(/.exec(a.toString())) && 1 < a.length ? a[1] : "";
- };
- a.prototype.Xea = function (a) {
- return this.getFunctionName(a.constructor);
- };
- a.prototype.Ija = function (a) {
- var b,
- c;
- b = this;
- c = "";
- this.is.eu(a) || this.is.jCa(a) ? c = Array.prototype.reduce.call(a, function (a, b) {
- return a + (32 <= b && 128 > b ? String.fromCharCode(b) : ".");
- }, "") : this.is.wn(a) ? c = a : this.Ju(a, function (a, f) {
- c += (c ? ", " : "") + "{" + a + ": " + (b.is.SV(f) ? b.getFunctionName(f) || "function" : f) + "}";
- });
- return "[" + this.Xea(a) + " " + c + "]";
- };
- a.prototype.createElement = function (a, b, c, h) {
- var f;
- f = k.te.createElement(a);
- b && (f.style.cssText = b);
- c && (f.innerHTML = c);
- h && this.Ju(h, function (a, b) {
- f.setAttribute(a, b);
- });
- return f;
- };
- a.prototype.Fjb = function (a, b) {
- return function (c) {
- return c[a] === b;
- };
- };
- a.prototype.vP = function (a) {
- var b;
- b = {};
- (a || "").split("&").forEach(function (a) {
- var c;
- a = a.trim();
- c = a.indexOf("=");
- 0 <= c ? b[decodeURIComponent(a.substr(0, c)).toLowerCase()] = decodeURIComponent(a.substr(c + 1)) : b[a.toLowerCase()] = void 0;
- });
- return b;
- };
- b = a;
- return b = c.__decorate([l.N(), c.__param(0, l.l(q.ee)), c.__param(1, l.l(n.$s))], b);
- }
- ();
- b.w8 = d;
- }, function (d, b, a) {
- var c,
- l,
- q,
- n,
- k,
- p,
- h,
- f;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.w3 = void 0;
- c = a(0);
- l = a(1);
- d = Array.prototype.slice;
- q = d.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/");
- d = d.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_");
- n = {};
- k = {};
- p = {};
- h = {};
- f = /\s+/g;
- [q, d].forEach(function (a) {
- var c;
- for (var b = a.length; b--; ) {
- c = a[b];
- n[c] = b << 18;
- k[c] = b << 12;
- p[c] = b << 6;
- h[c] = b;
- }
- });
- d = function () {
- var b,
- d;
- function a() {}
- a.prototype.encode = function (a) {
- return b.Bda(a, q, "=");
- };
- a.prototype.decode = function (a) {
- return b.Lca(a);
- };
- a.Lca = function (a) {
- var b,
- c,
- d;
- a = a.replace(f, "");
- b = a.length;
- c = a.charAt(b - 1);
- "=" !== c && "." !== c || b--;
- c = a.charAt(b - 1);
- "=" !== c && "." !== c || b--;
- c = 3 * (b >> 2);
- d = 0;
- switch (b % 4) {
- case 2:
- d = 1;
- break;
- case 3:
- d = 2;
- break;
- case 1:
- throw Error("bad base64");
- }
- for (var b = new Uint8Array(c + d), u = 0, l = 0, q; l < c; ) {
- q = n[a[u++]] + k[a[u++]] + p[a[u++]] + h[a[u++]];
- if (!(0 <= q && 16777215 >= q))
- throw Error("bad base64");
- b[l++] = q >>> 16;
- b[l++] = q >>> 8 & 255;
- b[l++] = q & 255;
- }
- if (0 < d && (q = n[a[u++]] + k[a[u++]], b[l++] = q >>> 16, 1 < d && (q += p[a[u++]], b[l++] = q >>> 8 & 255), !(0 <= q && 16776960 >= q && 0 === (q & (1 < d ? 255 : 65535)))))
- throw Error("bad base64");
- return b;
- };
- a.Bda = function (a, b, c) {
- for (var f = "", h = 0, k = a.length, d = k - 2, p; h < d; ) {
- p = (a[h++] << 16) + (a[h++] << 8) + a[h++];
- if (!(0 <= p && 16777215 >= p))
- throw Error("not bytes");
- f += b[p >>> 18] + b[p >>> 12 & 63] + b[p >>> 6 & 63] + b[p & 63];
- }
- if (h == d) {
- p = (a[h++] << 8) + a[h++];
- if (!(0 <= p && 65535 >= p))
- throw Error("not bytes");
- f += b[p >>> 10] + b[p >>> 4 & 63] + b[p << 2 & 63] + c;
- } else if (h == k - 1) {
- p = a[h++];
- if (!(0 <= p && 255 >= p))
- throw Error("not bytes");
- f += b[p >>> 2] + b[p << 4 & 63] + c + c;
- }
- return f;
- };
- d = b = a;
- return d = b = c.__decorate([l.N()], d);
- }
- ();
- b.w3 = d;
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.C6 = void 0;
- b.C6 = "OneWayCounterFactorySymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Q3 = void 0;
- b.Q3 = "ClockConfigSymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.lo = void 0;
- d = b.lo || (b.lo = {});
- d.Sna = "usable";
- d.ijb = "expired";
- d.ZAb = "released";
- d.vOa = "output-restricted";
- d.jxb = "output-downscaled";
- d.TSa = "status-pending";
- d.vqb = "internal-error";
- }, function (d, b) {
- var a;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.TFa = b.Jp = void 0;
- (function (a) {
- a[a.xLa = 0] = "licenseStarted";
- a[a.rQa = 1] = "receivedLicenseChallenge";
- a[a.qQa = 2] = "receivedLicense";
- a[a.sQa = 3] = "receivedRenewalChallengeComplete";
- a[a.tQa = 4] = "receivedRenewalLicenseComplete";
- a[a.uQa = 5] = "receivedRenewalLicenseFailed";
- a[a.rAb = 6] = "receivedIndivChallengeComplete";
- a[a.sAb = 7] = "receivedIndivLicenseComplete";
- a[a.MBa = 8] = "addLicenseComplete";
- a[a.PBa = 9] = "addRenewalLicenseComplete";
- a[a.QBa = 10] = "addRenewalLicenseFailed";
- }
- (a = b.Jp || (b.Jp = {})));
- b.TFa = function (b) {
- switch (b) {
- case a.xLa:
- return "lg";
- case a.rQa:
- return "lc";
- case a.qQa:
- return "lr";
- case a.sQa:
- return "renew_lc";
- case a.tQa:
- return "renew_lr";
- case a.uQa:
- return "renew_lr_failed";
- case a.rAb:
- return "ilc";
- case a.sAb:
- return "ilr";
- case a.MBa:
- return "ld";
- case a.PBa:
- return "renew_ld";
- case a.QBa:
- return "renew_ld_failed";
- default:
- return "unknown";
- }
- };
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.H4 = b.wya = void 0;
- b.wya = "CAUSwwUKvQIIAxIQ5US6QAvBDzfTtjb4tU/7QxiH8c+TBSKOAjCCAQoCggEBAObzvlu2hZRsapAPx4Aa4GUZj4/GjxgXUtBH4THSkM40x63wQeyVxlEEo1D/T1FkVM/S+tiKbJiIGaT0Yb5LTAHcJEhODB40TXlwPfcxBjJLfOkF3jP6wIlqbb6OPVkDi6KMTZ3EYL6BEFGfD1ag/LDsPxG6EZIn3k4S3ODcej6YSzG4TnGD0szj5m6uj/2azPZsWAlSNBRUejmP6Tiota7g5u6AWZz0MsgCiEvnxRHmTRee+LO6U4dswzF3Odr2XBPD/hIAtp0RX8JlcGazBS0GABMMo2qNfCiSiGdyl2xZJq4fq99LoVfCLNChkn1N2NIYLrStQHa35pgObvhwi7ECAwEAAToQdGVzdC5uZXRmbGl4LmNvbRKAA4TTLzJbDZaKfozb9vDv5qpW5A/DNL9gbnJJi/AIZB3QOW2veGmKT3xaKNQ4NSvo/EyfVlhc4ujd4QPrFgYztGLNrxeyRF0J8XzGOPsvv9Mc9uLHKfiZQuy21KZYWF7HNedJ4qpAe6gqZ6uq7Se7f2JbelzENX8rsTpppKvkgPRIKLspFwv0EJQLPWD1zjew2PjoGEwJYlKbSbHVcUNygplaGmPkUCBThDh7p/5Lx5ff2d/oPpIlFvhqntmfOfumt4i+ZL3fFaObvkjpQFVAajqmfipY0KAtiUYYJAJSbm2DnrqP7+DmO9hmRMm9uJkXC2MxbmeNtJHAHdbgKsqjLHDiqwk1JplFMoC9KNMp2pUNdX9TkcrtJoEDqIn3zX9p+itdt3a9mVFc7/ZL4xpraYdQvOwP5LmXj9galK3s+eQJ7bkX6cCi+2X+iBmCMx4R0XJ3/1gxiM5LiStibCnfInub1nNgJDojxFA3jH/IuUcblEf/5Y0s1SzokBnR8V0KbA==";
- b.H4 = "MIIE2jCCA8KgAwIBAgIIBRGnbPd8z1YwDQYJKoZIhvcNAQEFBQAwfzELMAkGA1UEBhMCVVMxEzARBgNVBAoMCkFwcGxlIEluYy4xJjAkBgNVBAsMHUFwcGxlIENlcnRpZmljYXRpb24gQXV0aG9yaXR5MTMwMQYDVQQDDCpBcHBsZSBLZXkgU2VydmljZXMgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkwHhcNMTMwMzI3MjEyNjU2WhcNMTUwMzI4MjEyNjU2WjBjMQswCQYDVQQGEwJVUzEUMBIGA1UECgwLTmV0ZmxpeC5jb20xDDAKBgNVBAsMA0VEUzEwMC4GA1UEAwwnRlBTIEFwcGxpY2F0aW9uIENlcnRpZmljYXRlICgyMDEzIHYxLjApMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDfaIdDptThILsQcAbDMvT5FpK4JNn/BnHAY++rS9OFfhg5R4pV7CI+UMZeC64TFJJZciq6dX4/Vh7JDDULooAeZxlOLqJB4v+KDMpFS6VsRPweeMRSCE5rQffF5HoRKx682Kw4Ltv2PTxE3M16ktYCOxq+/7fxevMt3uII+2V0tQIDAQABo4IB+DCCAfQwHQYDVR0OBBYEFDuQUJCSl+l2UeybrEfNbUR1JcwSMAwGA1UdEwEB/wQCMAAwHwYDVR0jBBgwFoAUY+RHVMuFcVlGLIOszEQxZGcDLL4wgeIGA1UdIASB2jCB1zCB1AYJKoZIhvdjZAUBMIHGMIHDBggrBgEFBQcCAjCBtgyBs1JlbGlhbmNlIG9uIHRoaXMgY2VydGlmaWNhdGUgYnkgYW55IHBhcnR5IGFzc3VtZXMgYWNjZXB0YW5jZSBvZiB0aGUgdGhlbiBhcHBsaWNhYmxlIHN0YW5kYXJkIHRlcm1zIGFuZCBjb25kaXRpb25zIG9mIHVzZSwgY2VydGlmaWNhdGUgcG9saWN5IGFuZCBjZXJ0aWZpY2F0aW9uIHByYWN0aWNlIHN0YXRlbWVudHMuMDUGA1UdHwQuMCwwKqAooCaGJGh0dHA6Ly9jcmwuYXBwbGUuY29tL2tleXNlcnZpY2VzLmNybDAOBgNVHQ8BAf8EBAMCBSAwLQYLKoZIhvdjZAYNAQMBAf8EGwGcLBpLUU8iNtuBsGfgldUUE/I42u6RKyl8uzBJBgsqhkiG92NkBg0BBAEB/wQ3AV+LX+Xo3O4lI5WzFXfxVrna5jJD1GHioNsMHMKUv97Kx9dCozZVRhmiGdTREdjOptDoUjj2ODANBgkqhkiG9w0BAQUFAAOCAQEAmkGc6tT450ENeFTTmvhyTHfntjWyEpEvsvoubGpqPnbPXhYsaz6U1RuoLkf5q4BkaXVE0yekfKiPa5lOSIYOebyWgDkWBuJDPrQFw8QYreq5T/rteSNQnJS1lAbg5vyLzexLMH7kq47OlCAnUlrI20mvGM71RuU6HlKJIlWIVlId5JZQF2ae0/A6BVZWh35+bQu+iPI1PXjrTVYqtmrV6N+vV8UaHRdKV6rCD648iJebynWZj4Gbgzqw7AX4RE6UwiX0Rgz9ZMM5Vzfgrgk8KxOmsuaP8Kgqf5KWeH/LDa+ocftU7zGz1jO5L999JptFIatsdPyZXnA3xM+QjzBW8w==";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.A4 = void 0;
- b.A4 = "EmeSessionFactorySymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.p4 = void 0;
- b.p4 = "DrmProviderSymbol";
- }, function (d, b, a) {
- var q,
- n;
- function c(a) {
- var b;
- b = a.value;
- a = a.ij;
- a.closed || (a.next(b), a.complete());
- }
- function l(a) {
- var b;
- b = a.wB;
- a = a.ij;
- a.closed || a.error(b);
- }
- q = this && this.__extends || function (a, b) {
- function c() {
- this.constructor = a;
- }
- for (var f in b)
- b.hasOwnProperty(f) && (a[f] = b[f]);
- a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c());
- };
- n = a(85);
- d = function (a) {
- function b(b, c) {
- a.call(this);
- this.Cs = b;
- this.ta = c;
- }
- q(b, a);
- b.create = function (a, c) {
- return new b(a, c);
- };
- b.prototype.Vl = function (a) {
- var b,
- h,
- k;
- b = this;
- h = this.Cs;
- k = this.ta;
- if (null == k)
- this.Lt ? a.closed || (a.next(this.value), a.complete()) : h.then(function (c) {
- b.value = c;
- b.Lt = !0;
- a.closed || (a.next(c), a.complete());
- }, function (b) {
- a.closed || a.error(b);
- }).then(null, function (a) {
- n.root.setTimeout(function () {
- throw a;
- });
- });
- else if (this.Lt) {
- if (!a.closed)
- return k.Mc(c, 0, {
- value: this.value,
- ij: a
- });
- } else
- h.then(function (f) {
- b.value = f;
- b.Lt = !0;
- a.closed || a.add(k.Mc(c, 0, {
- value: f,
- ij: a
- }));
- }, function (b) {
- a.closed || a.add(k.Mc(l, 0, {
- wB: b,
- ij: a
- }));
- }).then(null, function (a) {
- n.root.setTimeout(function () {
- throw a;
- });
- });
- };
- return b;
- }
- (a(19).ob);
- b.iwa = d;
- }, function (d, b, a) {
- d = a(1059);
- b.from = d.rZa.create;
- }, function (d, b, a) {
- var c;
- c = this && this.__extends || function (a, b) {
- function c() {
- this.constructor = a;
- }
- for (var k in b)
- b.hasOwnProperty(k) && (a[k] = b[k]);
- a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c());
- };
- d = function (a) {
- function b(b, c) {
- a.call(this);
- this.value = b;
- this.ta = c;
- this.Lt = !0;
- c && (this.Lt = !1);
- }
- c(b, a);
- b.create = function (a, c) {
- return new b(a, c);
- };
- b.tc = function (a) {
- var b,
- c;
- b = a.value;
- c = a.ij;
- a.done ? c.complete() : (c.next(b), c.closed || (a.done = !0, this.Mc(a)));
- };
- b.prototype.Vl = function (a) {
- var c,
- d;
- c = this.value;
- d = this.ta;
- if (d)
- return d.Mc(b.tc, 0, {
- done: !1,
- value: c,
- ij: a
- });
- a.next(c);
- a.closed || a.complete();
- };
- return b;
- }
- (a(19).ob);
- b.Rwa = d;
- }, function (d, b, a) {
- d = a(254);
- b.of = d.m3.of;
- }, function (d, b, a) {
- var c,
- l,
- q,
- n;
- c = this && this.__extends || function (a, b) {
- function c() {
- this.constructor = a;
- }
- for (var f in b)
- b.hasOwnProperty(f) && (a[f] = b[f]);
- a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c());
- };
- l = a(174);
- d = a(175);
- b.pH = function (a, b, c) {
- void 0 === c && (c = Number.POSITIVE_INFINITY);
- return function (f) {
- "number" === typeof b && (c = b, b = null);
- return f.vq(new q(a, b, c));
- };
- };
- q = function () {
- function a(a, b, c) {
- void 0 === c && (c = Number.POSITIVE_INFINITY);
- this.GC = a;
- this.Ks = b;
- this.Wba = c;
- }
- a.prototype.call = function (a, b) {
- return b.subscribe(new n(a, this.GC, this.Ks, this.Wba));
- };
- return a;
- }
- ();
- b.kNb = q;
- n = function (a) {
- function b(b, c, k, d) {
- void 0 === d && (d = Number.POSITIVE_INFINITY);
- a.call(this, b);
- this.GC = c;
- this.Ks = k;
- this.Wba = d;
- this.AJa = !1;
- this.buffer = [];
- this.index = this.active = 0;
- }
- c(b, a);
- b.prototype.cl = function (a) {
- this.active < this.Wba ? this.B8a(a) : this.buffer.push(a);
- };
- b.prototype.B8a = function (a) {
- var b,
- c;
- c = this.index++;
- try {
- b = this.GC(a, c);
- } catch (A) {
- this.destination.error(A);
- return;
- }
- this.active++;
- this.z5a(b, a, c);
- };
- b.prototype.z5a = function (a, b, c) {
- this.add(l.s2(this, a, b, c));
- };
- b.prototype.Td = function () {
- this.AJa = !0;
- 0 === this.active && 0 === this.buffer.length && this.destination.complete();
- };
- b.prototype.l0 = function (a, b, c, k) {
- this.Ks ? this.C6a(a, b, c, k) : this.destination.next(b);
- };
- b.prototype.C6a = function (a, b, c, k) {
- var f;
- try {
- f = this.Ks(a, b, c, k);
- } catch (C) {
- this.destination.error(C);
- return;
- }
- this.destination.next(f);
- };
- b.prototype.xs = function (a) {
- var b;
- b = this.buffer;
- this.remove(a);
- this.active--;
- 0 < b.length ? this.cl(b.shift()) : 0 === this.active && this.AJa && this.destination.complete();
- };
- return b;
- }
- (d.mT);
- b.lNb = n;
- }, function (d, b, a) {
- var c,
- l;
- c = a(485);
- l = a(1075);
- b.iC = function (a) {
- void 0 === a && (a = Number.POSITIVE_INFINITY);
- return c.pH(l.Mpb, null, a);
- };
- }, function (d, b) {
- b.RKa = function (a) {
- return a && "function" !== typeof a.subscribe && "function" === typeof a.then;
- };
- }, function (d, b) {
- b.AKa = function (a) {
- return a && "number" === typeof a.length;
- };
- }, function (d, b, a) {
- var c,
- l,
- q,
- n,
- k;
- c = this && this.__extends || function (a, b) {
- function c() {
- this.constructor = a;
- }
- for (var h in b)
- b.hasOwnProperty(h) && (a[h] = b[h]);
- a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c());
- };
- d = a(70);
- l = a(1092);
- b.OUb = function (a, b) {
- void 0 === b && (b = 0);
- return function (c) {
- return c.vq(new q(a, b));
- };
- };
- q = function () {
- function a(a, b) {
- void 0 === b && (b = 0);
- this.ta = a;
- this.pl = b;
- }
- a.prototype.call = function (a, b) {
- return b.subscribe(new n(a, this.ta, this.pl));
- };
- return a;
- }
- ();
- b.fOb = q;
- n = function (a) {
- function b(b, c, h) {
- void 0 === h && (h = 0);
- a.call(this, b);
- this.ta = c;
- this.pl = h;
- }
- c(b, a);
- b.tc = function (a) {
- a.notification.observe(a.destination);
- this.unsubscribe();
- };
- b.prototype.Lla = function (a) {
- this.add(this.ta.Mc(b.tc, this.pl, new k(a, this.destination)));
- };
- b.prototype.cl = function (a) {
- this.Lla(l.Notification.Afb(a));
- };
- b.prototype.bf = function (a) {
- this.Lla(l.Notification.lfb(a));
- };
- b.prototype.Td = function () {
- this.Lla(l.Notification.bfb());
- };
- return b;
- }
- (d.en);
- b.Aua = n;
- k = function () {
- return function (a, b) {
- this.notification = a;
- this.destination = b;
- };
- }
- ();
- b.eOb = k;
- }, function (d, b, a) {
- var c;
- c = this && this.__extends || function (a, b) {
- function c() {
- this.constructor = a;
- }
- for (var k in b)
- b.hasOwnProperty(k) && (a[k] = b[k]);
- a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c());
- };
- d = function (a) {
- function b() {
- a.apply(this, arguments);
- this.xn = [];
- this.active = !1;
- }
- c(b, a);
- b.prototype.flush = function (a) {
- var b,
- c;
- b = this.xn;
- if (this.active)
- b.push(a);
- else {
- this.active = !0;
- do
- if (c = a.kf(a.state, a.pl))
- break;
- while (a = b.shift());
- this.active = !1;
- if (c) {
- for (; a = b.shift(); )
- a.unsubscribe();
- throw c;
- }
- }
- };
- return b;
- }
- (a(1093).G2a);
- b.Soa = d;
- }, function (d, b, a) {
- var c,
- l;
- c = this && this.__extends || function (a, b) {
- function c() {
- this.constructor = a;
- }
- for (var d in b)
- b.hasOwnProperty(d) && (a[d] = b[d]);
- a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c());
- };
- l = a(85);
- d = function (a) {
- function b(b, c) {
- a.call(this, b, c);
- this.ta = b;
- this.wP = !1;
- this.aoa = c;
- }
- c(b, a);
- b.prototype.Mc = function (a, b) {
- var c;
- void 0 === b && (b = 0);
- if (this.closed)
- return this;
- this.state = a;
- this.wP = !0;
- a = this.id;
- c = this.ta;
- null != a && (this.id = this.dla(a, b));
- this.pl = b;
- this.id = this.id || this.ola(c, this.id, b);
- return this;
- };
- b.prototype.ola = function (a, b, c) {
- void 0 === c && (c = 0);
- return l.root.setInterval(a.flush.bind(a, this), c);
- };
- b.prototype.dla = function (a, b) {
- void 0 === b && (b = 0);
- return null !== b && this.pl === b && !1 === this.wP ? a : (l.root.clearInterval(a), void 0);
- };
- b.prototype.kf = function (a) {
- if (this.closed)
- return Error("executing a cancelled action");
- this.wP = !1;
- if (a = this.tza(a))
- return a;
- !1 === this.wP && null != this.id && (this.id = this.dla(this.id, null));
- };
- b.prototype.tza = function (a) {
- var b,
- c;
- b = !1;
- c = void 0;
- try {
- this.aoa(a);
- } catch (f) {
- b = !0;
- c = !!f && f || Error(f);
- }
- if (b)
- return this.unsubscribe(), c;
- };
- b.prototype.T$ = function () {
- var a,
- b,
- c;
- a = this.id;
- b = this.ta.xn;
- c = b.indexOf(this);
- this.state = this.aoa = null;
- this.wP = !1;
- this.ta = null;
- -1 !== c && b.splice(c, 1);
- null != a && (this.id = this.dla(a, null));
- this.pl = null;
- };
- return b;
- }
- (a(1095).hWa);
- b.Poa = d;
- }, function (d, b, a) {
- var c;
- c = this && this.__extends || function (a, b) {
- function c() {
- this.constructor = a;
- }
- for (var k in b)
- b.hasOwnProperty(k) && (a[k] = b[k]);
- a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c());
- };
- d = function (a) {
- function b(b, c) {
- a.call(this);
- this.KQ = b;
- this.ij = c;
- this.closed = !1;
- }
- c(b, a);
- b.prototype.unsubscribe = function () {
- var a,
- b;
- if (!this.closed) {
- this.closed = !0;
- a = this.KQ;
- b = a.zv;
- this.KQ = null;
- !b || 0 === b.length || a.Eg || a.closed || (a = b.indexOf(this.ij), -1 !== a && b.splice(a, 1));
- }
- };
- return b;
- }
- (a(115).Jw);
- b.txa = d;
- }, function (d, b) {
- var a;
- a = this && this.__extends || function (a, b) {
- function c() {
- this.constructor = a;
- }
- for (var d in b)
- b.hasOwnProperty(d) && (a[d] = b[d]);
- a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c());
- };
- d = function (b) {
- function c() {
- var a;
- a = b.call(this, "object unsubscribed");
- this.name = a.name = "ObjectUnsubscribedError";
- this.stack = a.stack;
- this.message = a.message;
- }
- a(c, b);
- return c;
- }
- (Error);
- b.fE = d;
- }, function (d, b, a) {
- var c,
- l,
- q,
- n,
- k,
- p,
- h,
- f;
- c = this && this.__extends || function (a, b) {
- function c() {
- this.constructor = a;
- }
- for (var f in b)
- b.hasOwnProperty(f) && (a[f] = b[f]);
- a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c());
- };
- l = a(19);
- d = a(70);
- q = a(115);
- n = a(493);
- k = a(492);
- p = a(258);
- h = function (a) {
- function b(b) {
- a.call(this, b);
- this.destination = b;
- }
- c(b, a);
- return b;
- }
- (d.en);
- b.TPb = h;
- a = function (a) {
- function b() {
- a.call(this);
- this.zv = [];
- this.TN = this.Eg = this.closed = !1;
- this.mna = null;
- }
- c(b, a);
- b.prototype[p.QC] = function () {
- return new h(this);
- };
- b.prototype.vq = function (a) {
- var b;
- b = new f(this, this);
- b.JH = a;
- return b;
- };
- b.prototype.next = function (a) {
- if (this.closed)
- throw new n.fE();
- if (!this.Eg)
- for (var b = this.zv, c = b.length, b = b.slice(), f = 0; f < c; f++)
- b[f].next(a);
- };
- b.prototype.error = function (a) {
- if (this.closed)
- throw new n.fE();
- this.TN = !0;
- this.mna = a;
- this.Eg = !0;
- for (var b = this.zv, c = b.length, b = b.slice(), f = 0; f < c; f++)
- b[f].error(a);
- this.zv.length = 0;
- };
- b.prototype.complete = function () {
- if (this.closed)
- throw new n.fE();
- this.Eg = !0;
- for (var a = this.zv, b = a.length, a = a.slice(), c = 0; c < b; c++)
- a[c].complete();
- this.zv.length = 0;
- };
- b.prototype.unsubscribe = function () {
- this.closed = this.Eg = !0;
- this.zv = null;
- };
- b.prototype.R$ = function (b) {
- if (this.closed)
- throw new n.fE();
- return a.prototype.R$.call(this, b);
- };
- b.prototype.Vl = function (a) {
- if (this.closed)
- throw new n.fE();
- if (this.TN)
- return a.error(this.mna), q.Jw.EMPTY;
- if (this.Eg)
- return a.complete(), q.Jw.EMPTY;
- this.zv.push(a);
- return new k.txa(this, a);
- };
- b.prototype.Jaa = function () {
- var a;
- a = new l.ob();
- a.source = this;
- return a;
- };
- b.create = function (a, b) {
- return new f(a, b);
- };
- return b;
- }
- (l.ob);
- b.dn = a;
- f = function (a) {
- function b(b, c) {
- a.call(this);
- this.destination = b;
- this.source = c;
- }
- c(b, a);
- b.prototype.next = function (a) {
- var b;
- b = this.destination;
- b && b.next && b.next(a);
- };
- b.prototype.error = function (a) {
- var b;
- b = this.destination;
- b && b.error && this.destination.error(a);
- };
- b.prototype.complete = function () {
- var a;
- a = this.destination;
- a && a.complete && this.destination.complete();
- };
- b.prototype.Vl = function (a) {
- return this.source ? this.source.subscribe(a) : q.Jw.EMPTY;
- };
- return b;
- }
- (a);
- b.dKb = f;
- }, function (d, b) {
- b.Qx = {
- e: {}
- };
- }, function (d, b) {
- b.Xe = function (a) {
- return null != a && "object" === typeof a;
- };
- }, function (d, b) {
- b.Vb = function (a) {
- return "function" === typeof a;
- };
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.x6 = void 0;
- b.x6 = "NetworkMonitorConfigSymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.DT = void 0;
- b.DT = "QueryStringDataProviderSymbol";
- }, function (d, b, a) {
- var l,
- q;
- function c(a, b, c, h, f) {
- this.version = a;
- this.PH = b;
- this.aTa = c;
- this.Tj = h;
- this.Us = f;
- this.Lr = [];
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.s5 = void 0;
- l = a(2);
- q = a(47);
- c.prototype.load = function (a) {
- return this.Msb(a);
- };
- c.prototype.add = function (a) {
- this.Lr.push(a);
- return this.cka();
- };
- c.prototype.remove = function (a, b) {
- a = this.GHa(this.jq(a, b));
- return 0 <= a ? (this.Lr.splice(a, 1), this.cka()) : Promise.resolve();
- };
- c.prototype.update = function (a, b) {
- b = this.GHa(this.jq(a, b));
- return 0 <= b ? (this.Lr[b] = a, this.cka()) : Promise.resolve();
- };
- c.prototype.Msb = function (a) {
- var b;
- b = this;
- this.DLa || (this.DLa = new Promise(function (c, h) {
- function f(a) {
- b.Ngb().then(function () {
- h(a);
- })["catch"](function () {
- h(a);
- });
- }
- b.Qfa().then(function (a) {
- b.storage = a;
- return b.storage.load(b.PH);
- }).then(function (h) {
- var k;
- h = h.value;
- try {
- k = a(h);
- b.version = k.version;
- b.Lr = k.data;
- c();
- } catch (G) {
- f(G);
- }
- })["catch"](function (a) {
- a.ha !== l.I.Hw ? h(a) : c();
- });
- }));
- return this.DLa;
- };
- c.prototype.cka = function () {
- var a,
- b,
- c,
- h,
- f;
- a = this;
- if (!this.aTa)
- return Promise.resolve();
- if (this.l2) {
- h = new Promise(function (a, f) {
- b = a;
- c = f;
- });
- f = function () {
- a.l2 = h;
- a.$Sa().then(function () {
- b();
- })["catch"](function (a) {
- c(a);
- });
- };
- this.l2.then(f)["catch"](f);
- return h;
- }
- return this.l2 = this.$Sa();
- };
- c.prototype.$Sa = function () {
- var a,
- b;
- a = this;
- b = this.Us();
- return new Promise(function (k, h) {
- a.Qfa().then(function (c) {
- return c.save(a.PH, b, !1);
- }).then(function () {
- k();
- })["catch"](function (a) {
- h(c.CGb(l.J.q1a, a));
- });
- });
- };
- c.prototype.Ngb = function () {
- var a;
- a = this;
- return this.aTa ? new Promise(function (b, c) {
- a.Qfa().then(function (b) {
- return b.remove(a.PH);
- }).then(function () {
- b();
- })["catch"](function (a) {
- c(a);
- });
- }) : Promise.resolve();
- };
- c.prototype.Qfa = function () {
- return this.storage ? Promise.resolve(this.storage) : this.Tj.create();
- };
- c.prototype.jq = function (a, b) {
- for (var c = 0; c < this.Lr.length; ++c)
- if (b(this.Lr[c], a))
- return this.Lr[c];
- };
- c.prototype.GHa = function (a) {
- return a ? this.Lr.indexOf(a) : -1;
- };
- c.CGb = function (a, b) {
- var c;
- if (b.ha && b.cause)
- return new q.Dc(a, b.ha, void 0, void 0, void 0, void 0, void 0, b.cause);
- if (void 0 !== b.Hb) {
- c = (b.message ? b.message + " " : "") + "";
- b.code = a;
- b.message = "" === c ? void 0 : c;
- return b;
- }
- return b instanceof Error ? new q.Dc(a, l.I.Of, void 0, void 0, void 0, void 0, b.stack, b) : new q.Dc(a, l.I.Xk, void 0, void 0, void 0, void 0, void 0, b);
- };
- b.s5 = c;
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.o4 = void 0;
- b.o4 = "DrmDataFactorySymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.G3 = void 0;
- b.G3 = "BrowserInfoSymbol";
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.j7 = void 0;
- b.j7 = "PlatformConfigOverridesSymbol";
- }, function (d, b, a) {
- var q;
- function c(a, b) {
- this.wf = b;
- this.qv = Math.floor(a);
- this.display = this.qv + " " + this.wf.name;
- }
- function l(a, b, c) {
- this.wf = a;
- this.name = b;
- this.Cn = c ? c : this;
- q.wm(this, "base");
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Lp = b.yK = void 0;
- q = a(54);
- l.prototype.oN = function (a) {
- return this.wf == a.wf;
- };
- l.prototype.toJSON = function () {
- return this.name;
- };
- b.yK = l;
- c.prototype.ca = function (a) {
- return this.wf.oN(a) ? this.qv : Math.floor(this.qv * this.wf.wf / a.wf);
- };
- c.prototype.P0 = function (a) {
- return this.wf.oN(a) ? this.qv : this.qv * this.wf.wf / a.wf;
- };
- c.prototype.to = function (a) {
- return new c(this.ca(a), a);
- };
- c.prototype.toString = function () {
- return this.display;
- };
- c.prototype.toJSON = function () {
- return {
- magnitude: this.qv,
- units: this.wf.name
- };
- };
- c.prototype.add = function (a) {
- return this.hEa(a);
- };
- c.prototype.Nb = function (a) {
- return this.hEa(a, function (a) {
- return -a;
- });
- };
- c.prototype.scale = function (a) {
- return new c(this.ca(this.wf.Cn) * a, this.wf.Cn);
- };
- c.prototype.nl = function (a) {
- return this.ca(this.wf.Cn) - a.ca(this.wf.Cn);
- };
- c.prototype.oN = function (a) {
- return 0 == this.nl(a);
- };
- c.prototype.dLa = function () {
- return 0 == this.qv;
- };
- c.prototype.MKa = function () {
- return 0 > this.qv;
- };
- c.prototype.jrb = function () {
- return 0 < this.qv;
- };
- c.prototype.hEa = function (a, b) {
- b = void 0 === b ? function (a) {
- return a;
- }
- : b;
- return new c(this.ca(this.wf.Cn) + b(a.ca(this.wf.Cn)), this.wf.Cn);
- };
- b.Lp = c;
- }, function (d, b, a) {
- var q;
- function c(a) {
- return function (b) {
- function c(c) {
- return null !== c && null !== c.target && c.target.Bia(a)(b);
- }
- c.NMa = new q.Metadata(a, b);
- return c;
- };
- }
- function l(a, b) {
- a = a.Fv;
- return null !== a ? b(a) ? !0 : l(a, b) : !1;
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- d = a(37);
- q = a(65);
- b.iUa = l;
- b.tTa = c;
- b.mNa = c(d.Bw);
- b.oUa = function (a) {
- return function (b) {
- var c;
- return null !== b ? (c = b.kM[0], "string" === typeof a ? c.rf === a : a === b.kM[0].yk) : !1;
- };
- };
- }, function (d, b, a) {
- var c,
- l;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- c = a(268);
- l = a(267);
- d = function () {
- function a(a) {
- this.Ob = a;
- this.KK = new l.A3(this.Ob);
- this.S8 = new c.PR(this.Ob);
- }
- a.prototype.when = function (a) {
- return this.KK.when(a);
- };
- a.prototype.AR = function () {
- return this.KK.AR();
- };
- a.prototype.ys = function (a) {
- return this.S8.ys(a);
- };
- return a;
- }
- ();
- b.xz = d;
- }, function (d, b, a) {
- var c,
- l,
- q,
- n;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- c = a(37);
- l = a(101);
- q = a(65);
- n = a(1140);
- d = function () {
- function a(a, b, f, k) {
- this.id = l.id();
- this.type = a;
- this.rf = f;
- this.name = new n.X1a(b || "");
- this.Dd = [];
- a = null;
- "string" === typeof k ? a = new q.Metadata(c.Bw, k) : k instanceof q.Metadata && (a = k);
- null !== a && this.Dd.push(a);
- }
- a.prototype.HJa = function (a) {
- for (var b = 0, c = this.Dd; b < c.length; b++)
- if (c[b].key === a)
- return !0;
- return !1;
- };
- a.prototype.isArray = function () {
- return this.HJa(c.Nz);
- };
- a.prototype.Rtb = function (a) {
- return this.Bia(c.Nz)(a);
- };
- a.prototype.iha = function () {
- return this.HJa(c.Bw);
- };
- a.prototype.pha = function () {
- return this.Dd.some(function (a) {
- return a.key !== c.RJ && a.key !== c.Nz && a.key !== c.aT && a.key !== c.xK && a.key !== c.Bw;
- });
- };
- a.prototype.OKa = function () {
- return this.Bia(c.xua)(!0);
- };
- a.prototype.Xmb = function () {
- return this.iha() ? this.Dd.filter(function (a) {
- return a.key === c.Bw;
- })[0] : null;
- };
- a.prototype.Llb = function () {
- return this.pha() ? this.Dd.filter(function (a) {
- return a.key !== c.RJ && a.key !== c.Nz && a.key !== c.aT && a.key !== c.xK && a.key !== c.Bw;
- }) : null;
- };
- a.prototype.Bia = function (a) {
- var b;
- b = this;
- return function (c) {
- var k;
- for (var f = 0, h = b.Dd; f < h.length; f++) {
- k = h[f];
- if (k.key === a && k.value === c)
- return !0;
- }
- return !1;
- };
- };
- return a;
- }
- ();
- b.UT = d;
- }, function (d, b, a) {
- var c,
- l,
- q,
- n;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- c = a(55);
- l = a(37);
- q = a(65);
- n = a(91);
- d = function () {
- function a(a) {
- this.d4a = a;
- }
- a.prototype.tHb = function () {
- return this.d4a();
- };
- return a;
- }
- ();
- b.G5 = d;
- b.l = function (a) {
- return function (b, h, f) {
- var k;
- if (void 0 === a)
- throw Error(c.a3a(b.name));
- k = new q.Metadata(l.RJ, a);
- "number" === typeof f ? n.hD(b, h, f, k) : n.WQ(b, h, k);
- };
- };
- }, function (d, b, a) {
- var c;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- c = a(55);
- b.XKa = function (a) {
- return a instanceof RangeError || a.message === c.x2a;
- };
- }, function (d, b, a) {
- var c;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- c = a(37);
- d = function () {
- function a() {}
- a.prototype.MHa = function (a) {
- var b;
- b = Reflect.getMetadata(c.F6, a);
- a = Reflect.getMetadata(c.wxa, a);
- return {
- kEa: b,
- yIb: a || {}
- };
- };
- a.prototype.vnb = function (a) {
- return Reflect.getMetadata(c.xxa, a) || [];
- };
- return a;
- }
- ();
- b.n6 = d;
- }, function (d, b, a) {
- var c;
- c = a(512);
- d.P = function () {
- return "function" === typeof Object.values ? Object.values : c;
- };
- }, function (d, b, a) {
- var c,
- l,
- q;
- c = a(1156);
- l = a(1154);
- q = a(1150)("Object.prototype.propertyIsEnumerable");
- d.P = function (a) {
- var b,
- d;
- a = l(a);
- b = [];
- for (d in a)
- c(a, d) && q(a, d) && b.push(a[d]);
- return b;
- };
- }, function (d) {
- var b;
- b = Object.prototype.toString;
- d.P = function (a) {
- var c,
- d;
- c = b.call(a);
- d = "[object Arguments]" === c;
- d || (d = "[object Array]" !== c && null !== a && "object" === typeof a && "number" === typeof a.length && 0 <= a.length && "[object Function]" === b.call(a.callee));
- return d;
- };
- }, function (d, b, a) {
- var l,
- q,
- n,
- k,
- p,
- h;
- function c(a, b) {
- var c,
- f,
- u,
- g,
- m,
- J;
- c = 2 < arguments.length ? arguments[2] : {};
- f = l(b);
- q && (f = k.call(f, Object.getOwnPropertySymbols(b)));
- for (var d = 0; d < f.length; d += 1) {
- u = a;
- g = f[d];
- m = b[f[d]];
- J = c[f[d]];
- if (!(g in u) || "function" === typeof J && "[object Function]" === n.call(J) && J())
- h ? p(u, g, {
- configurable: !0,
- enumerable: !1,
- value: m,
- writable: !0
- }) : u[g] = m;
- }
- }
- l = a(1158);
- g();
- g();
- q = "function" === typeof Symbol && "symbol" === typeof Symbol("foo");
- n = Object.prototype.toString;
- k = Array.prototype.concat;
- p = Object.defineProperty;
- h = p && function () {
- var a;
- a = {};
- try {
- p(a, "x", {
- enumerable: !1,
- value: a
- });
- for (var b in a)
- return !1;
- return a.x === a;
- } catch (A) {
- return !1;
- }
- }
- ();
- c.eWb = !!h;
- d.P = c;
- }, function (d, b, a) {
- var c,
- l,
- q,
- n,
- k,
- p;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- c = a(122);
- l = a(9);
- d = a(2);
- q = a(5);
- n = a(118);
- k = a(49);
- a = a(26);
- q.Z.get(a.yf).register(d.J.ksa, function (a) {
- var b,
- h;
- b = t._cad_global.videoPreparer;
- h = t._cad_global.playerPredictionModel;
- b && t._cad_global.playerPredictionModel && (p = q.Z.get(n.D7).create(h, b.Zyb.bind(b)), t._cad_global.prefetchEvents = p, b.Oh.on("deletedCacheItem", function (a) {
- p.uM(k.Fd.hK[a.type], parseInt(a.movieId, 10), a.reason);
- }), c.jl.addEventListener("cacheEvict", function (a) {
- p.uM(n.Fe.Xj.LJ, a.movieId, "ase_cacheEvict");
- p.uM(n.Fe.Xj.MEDIA, a.movieId, "ase_cacheEvict");
- }), c.jl.addEventListener("flushedBytes", function () {
- c.jl.wM().forEach(function (a) {
- p.uM(n.Fe.Xj.MEDIA, a.u, "ase_flushedBytes");
- }, this);
- }), b.Ap.addEventListener(b.Ap.events.Axa, function (a) {
- p.lbb(k.Fd.hK[a.type], a.u, a.reason);
- }), b.Ap.addEventListener(b.Ap.events.yxa, function (a) {
- p.ibb(k.Fd.hK[a.type], a.u, a.reason);
- }), b.Ap.addEventListener(b.Ap.events.zxa, function (a) {
- p.kbb(k.Fd.hK[a.type], a.u, a.reason);
- }), b.Ap.addEventListener(b.Ap.events.Bxa, function (a) {
- p.nbb(k.Fd.hK[a.type], a.u, a.reason);
- }));
- a(l.kd);
- });
- }, function (d, b, a) {
- var q,
- n,
- k,
- p,
- h,
- f,
- u,
- g,
- G,
- C;
- function c(a, b) {
- this.Ai = a;
- this.lk = b;
- }
- function l(a) {
- this.G = a;
- this.reset();
- }
- q = a(179);
- n = a(178);
- b = a(273);
- k = a(272).config;
- p = b.Elb;
- h = b.mlb;
- f = b.chb;
- u = b.wwb;
- g = b.vwb;
- G = b.uwb;
- C = b.RGa;
- l.prototype.constructor = l;
- l.prototype.reset = function () {
- this.IAa = void 0;
- this.Mi = [];
- this.sAa = this.tAa = !1;
- };
- l.prototype.update = function (a, b) {
- var c;
- this.Mi && (this.Mi = this.Mi.filter(this.wEb, this));
- if (!1 === this.tAa) {
- c = p(a.Ba).slice(0, k.XEa);
- 0 < c.length && (this.lC(c, n.dt.nj), this.tAa = !0, this.Mi = this.rD(c.concat(this.Mi)));
- }
- !1 === this.sAa && (c = h(a.Ba).slice(0, k.XEa), 0 < c.length && (this.lC(c, n.dt.nj), this.sAa = !0, this.Mi = this.rD(c.concat(this.Mi))));
- switch (b) {
- case n.Zs.qra:
- b = this.Pob(a);
- break;
- case n.Zs.Cwa:
- b = this.Zob(a);
- break;
- case n.Zs.LT:
- b = this.$ob(a);
- break;
- case n.Zs.dK:
- b = this.Vob(a);
- break;
- default:
- b = this.Mob(a);
- }
- this.IAa = a;
- return b;
- };
- l.prototype.Pob = function (a) {
- a = u(a.Ba, k.kRa, k.eEa);
- this.lC(a, n.dt.nj);
- return this.Mi = this.rD(this.Mi.concat(a));
- };
- l.prototype.Zob = function (a) {
- var b,
- c;
- this.G.log("handleScrollHorizontal");
- b = a.Ba;
- a = u(b, k.mRa, k.fEa);
- c = f(b, this.IAa.Ba);
- b = b[c].list.slice(0, k.iCb);
- b.concat(a);
- this.lC(b, n.dt.i8);
- return this.rD(b.concat(this.Mi));
- };
- l.prototype.lC = function (a, b) {
- a.forEach(function (a) {
- if (void 0 === a.Ax || a.Ax < b)
- a.Ax = b;
- void 0 === a.OI && (a.OI = q());
- void 0 === a.Dj && (a.Dj = q());
- });
- };
- l.prototype.$ob = function (a) {
- this.G.log("handleSearch");
- a = g(a.Ba, k.BCb);
- this.lC(a, n.dt.Fwa);
- this.Mi = a.concat(this.Mi);
- return this.Mi = this.rD(this.Mi);
- };
- l.prototype.Vob = function (a) {
- var b,
- f,
- h,
- d,
- u;
- this.G.log("handlePlayFocus: ", k.WN);
- b = a.direction;
- f = a.Ba;
- a = [];
- h = C(f);
- if (void 0 !== h.Ai)
- switch (a.push(h), b) {
- case n.gr.qwa:
- for (b = 1; b < k.WN; b++)
- a.push(new c(h.Ai, h.lk + b));
- a.push(new c(h.Ai - 1, h.lk));
- a.push(new c(h.Ai + 1, h.lk));
- break;
- case n.gr.Osa:
- for (b = 1; b < k.WN; b++)
- a.push(new c(h.Ai, h.lk - b));
- a.push(new c(h.Ai - 1, h.lk));
- a.push(new c(h.Ai + 1, h.lk));
- break;
- case n.gr.d3a:
- a.push(new c(h.Ai - 1, h.lk));
- for (b = 1; b <= k.WN / 2; b++)
- a.push(new c(h.Ai, h.lk + b)), a.push(new c(h.Ai, h.lk - b));
- break;
- case n.gr.yYa:
- for (a.push(new c(h.Ai + 1, h.lk)), b = 1; b <= k.WN / 2; b++)
- a.push(new c(h.Ai, h.lk + b)), a.push(new c(h.Ai, h.lk - b));
- }
- d = [];
- a.forEach(function (a) {
- u = G(f, a.Ai, a.lk);
- void 0 !== u && d.push(u);
- });
- this.lC(d, n.dt.i8);
- return this.rD(d.concat(this.Mi));
- };
- l.prototype.Mob = function (a) {
- this.G.log("ModelOne: handleDefaultCase");
- a = u(a.Ba, k.mRa, k.fEa);
- this.lC(a, n.dt.i8);
- return this.rD(a.concat(this.Mi));
- };
- l.prototype.wEb = function (a) {
- return a.Ax == n.dt.nj | a.Ax == n.dt.Fwa & q() - a.OI < k.Apb;
- };
- l.prototype.rD = function (a) {
- var b,
- c,
- f,
- h,
- k,
- d,
- u;
- b = [];
- c = {};
- d = 0;
- u = a.length;
- for (k = 0; k < u; k++)
- f = a[k].oa, h = a[k], !1 === f in c ? (b.push(h), c[f] = d, d++) : (f = b[c[f]], h.Dj < f.Dj && (f.Dj = h.Dj), h.Ax > f.Ax && (f.Ax = h.Ax), h.OI > f.OI && (f.OI = h.OI));
- return b;
- };
- d.P = l;
- }, function (d, b, a) {
- var n,
- k,
- p,
- h,
- f,
- u,
- g;
- function c(a, b, c, f, h, k) {
- this.u = this.oa = a;
- this.ne = b;
- this.Vc = c;
- k && k.re && (this.re = k.re);
- void 0 !== f && (this.yC = f);
- this.Dj = h;
- this.gb = k;
- }
- function l(a, b, c, f, h) {
- p(void 0 !== f, "video preparer is null");
- p(void 0 !== h, "ui preparer is null");
- this.G = b || console;
- this.G = b;
- this.Cb = c;
- this.M8a = f;
- this.E8a = h;
- this.HAa = u.vka;
- this.lF = [];
- this.X$ = !1;
- this.so = 0;
- new g().on(u, "changed", q, this);
- this.reset();
- }
- function q() {
- this.G.log("config changed");
- u.vka && (this.HAa = u.vka);
- u.bP !== this.XE && (this.reset(), this.xBb());
- }
- n = a(179);
- k = a(178);
- b = a(273);
- p = b.assert;
- h = b.RGa;
- f = a(516);
- u = a(272).config;
- g = a(105).Ll;
- u.declare({
- vka: ["ppmConfig", {
- DKb: {
- VNa: 0,
- UNa: 2,
- SNa: 0,
- TNa: 5,
- pSa: 0
- },
- MPb: {
- VNa: 0,
- UNa: 1,
- SNa: 0,
- TNa: 3,
- pSa: 1E3
- },
- TKb: {
- VNa: 0,
- UNa: 1,
- SNa: 0,
- TNa: 3,
- pSa: 1E3
- }
- }
- ]
- });
- l.prototype.constructor = l;
- l.prototype.reset = function () {
- this.A9 = !0;
- this.XE = u.bP;
- this.G.log("create model: " + u.bP, u.kRa, u.eEa);
- switch (u.bP) {
- case "modelone":
- this.XE = new f(this.G);
- break;
- default:
- this.XE = new f(this.G);
- }
- };
- l.prototype.xBb = function () {
- var b,
- c;
- if (!1 === this.X$) {
- this.X$ = !0;
- for (var a = 0; a < this.lF.length; a++) {
- this.G.log("PlayPredictionModel replay: ", JSON.stringify(this.lF[a]));
- b = this.AEa(this.lF[a]);
- c = this.wHa(b);
- this.XE.update(b, c);
- this.A9 = !1;
- }
- this.lF = [];
- }
- };
- l.prototype.update = function (a) {
- var b,
- c,
- f;
- this.G.log("PlayPredictionModel update: ", JSON.stringify(a));
- if (a && a.Ba && a.Ba[0]) {
- !1 === this.X$ && this.lF.length < u.aub && this.lF.push(a);
- b = this.AEa(a);
- c = this.wHa(b);
- this.G.log("actionType", c);
- b = "mlmodel" == u.bP ? this.XE.update(a, c) : this.XE.update(b, c);
- b = this.Lkb(b, u.Frb || 1);
- this.G.log("PlayPredictionModel.prototype.update() - returnedList: ", JSON.stringify(b));
- 0 === this.so && (this.so = n(), this.Cb && this.Cb.XP && this.Cb.XP({
- mX: this.so
- }));
- if (this.Cb && this.Cb.NQa) {
- f = {
- mX: this.so,
- offset: this.zY(),
- zPa: []
- };
- b.forEach(function (a) {
- f.zPa.push({
- Pq: a.oa
- });
- });
- f.vPa = JSON.stringify(a);
- f.wPa = JSON.stringify(b);
- this.Cb.NQa(f);
- }
- this.M8a.Mv(b);
- this.E8a.Mv(b);
- this.A9 = !1;
- }
- };
- l.prototype.OBb = function () {
- this.so = 0;
- };
- l.prototype.zY = function () {
- return n() - this.so;
- };
- l.prototype.XP = function () {
- this.so = n();
- this.Cb && this.Cb.XP && this.Cb.XP({
- mX: this.so
- });
- };
- l.prototype.AEa = function (a) {
- var b,
- c,
- f,
- h,
- d;
- b = {};
- h = a.Ba || [];
- d = function (a) {
- var h,
- d;
- h = {};
- c = k.UJ.name.indexOf(a.context);
- h.context = 0 <= c ? c : k.UJ.vt;
- h.rowIndex = a.rowIndex;
- h.requestId = a.requestId;
- h.list = [];
- f = a.list || [];
- f.forEach(function (a) {
- d = {
- oa: a.oa,
- Vc: a.Vc,
- index: a.index,
- yC: a.yC,
- WH: a.WH,
- list: a.list,
- gb: a.gb
- };
- void 0 !== a.property && (c = k.SD.name.indexOf(a.property), d.property = 0 <= c ? c : k.SD.vt);
- h.list.push(d);
- }
- .bind(this));
- b.Ba.push(h);
- }
- .bind(this);
- void 0 !== a.direction && (c = k.gr.name.indexOf(a.direction), b.direction = 0 <= c ? c : k.gr.vt);
- void 0 !== a.uN && (b.MSb = a.uN.rowIndex, b.LSb = a.uN.Fcb);
- b.uN = a.uN;
- b.Ba = [];
- h.forEach(d);
- return b;
- };
- l.prototype.wHa = function (a) {
- var b,
- c,
- f;
- b = a.direction || k.gr.vt;
- c = a.uN;
- f = a.Ba || [];
- !0 === this.A9 ? a = k.Zs.qra : !0 === f.some(this.npb) ? (a = k.Zs.dK, this.l1(f, b, c)) : a = f[0].context === k.UJ.LT ? k.Zs.LT : b === k.gr.qwa || b === k.gr.Osa ? k.Zs.Cwa : k.Zs.vt;
- return a;
- };
- l.prototype.npb = function (a) {
- return (a.list || []).some(function (a) {
- return a.property === k.SD.dK || a.property === k.SD.cqa;
- });
- };
- l.prototype.l1 = function (a, b, c) {
- var f,
- d;
- this.G.log("reportPlayFocusEvent: ", b, c);
- f = {};
- d = h(a);
- this.Cb && this.Cb.l1 && (f.CSb = n(), f.direction = k.gr.name[b], c && (f.rowIndex = c.rowIndex, f.Oba = c.Fcb), void 0 !== d.Ai && (f.requestId = a[d.Ai].requestId), this.Cb.l1 && this.Cb.l1(f));
- };
- l.prototype.Lkb = function (a, b) {
- for (var c = a.length, f = [], h, k, d, p, l = 0; l < c; l++) {
- k = a[l];
- h = Math.floor(l / b) + 1;
- if (void 0 !== k.list) {
- d = k.list;
- p = d.length;
- for (var n = 0; n < Math.min(u.Dcb, p) && !(d[n].Dj = k.Dj, this.OBa(d[n], h, f), f.length >= u.zMa); n++);
- } else
- this.OBa(k, h, f);
- if (f.length >= u.zMa)
- break;
- }
- return f;
- };
- l.prototype.OBa = function (a, b, f) {
- var k,
- d;
- function h(a) {
- a.re && (a.gb || (a.gb = {}), a.gb.re = a.re);
- return a.gb;
- }
- k = a.WH;
- void 0 !== k && k instanceof Array ? k.forEach(function (k) {
- void 0 !== k.oa && (d = h(k), f.push(new c(k.oa, b, k.Vc, k.yC, a.Dj, d)));
- }) : void 0 !== k && void 0 !== k.oa && (k = a.WH, d = h(k), f.push(new c(k.oa, b, k.Vc, k.yC, a.Dj, d)));
- void 0 !== a.oa && (d = h(a), f.push(new c(a.oa, b, a.Vc, a.yC, a.Dj, d)));
- };
- l.prototype.Xx = function (a) {
- var b;
- b = this.HAa;
- return a ? b[a] : b;
- };
- d.P = l;
- }, function (d, b, a) {
- var c,
- l,
- q,
- n;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- c = a(12);
- l = a(9);
- d = a(2);
- q = a(5);
- b = a(26);
- q.Z.get(b.yf).register(d.J.lsa, function (b) {
- var k,
- h;
- if (c.config.zyb) {
- k = q.Ah("PlayerPredictionModel");
- t._cad_global.videoPreparer || (k.error("videoPreparer is not defined"), b(l.kd));
- h = a(517);
- k.log = k.trace.bind(k);
- n = new h({}, k, {
- XP: function (a) {
- t._cad_global.prefetchEvents.bhb(a.mX);
- },
- NQa: function (a) {
- t._cad_global.prefetchEvents.azb(a);
- }
- }, t._cad_global.videoPreparer, {
- Mv: function () {}
- });
- t._cad_global.playerPredictionModel = n;
- k.info("ppm v2 initialized");
- }
- b(l.kd);
- });
- }, function (d) {
- d.P = {
- Sx: {
- ya: 12E5,
- tO: 9E5,
- Dd: 12E5
- },
- zx: {
- ya: 10,
- tO: 10,
- Dd: 10
- },
- yx: {
- ya: 10240,
- tO: 10240,
- Dd: 10240
- }
- };
- }, function (d) {
- function b(a) {
- var b;
- b = [];
- return function q(a) {
- if (a && "object" === typeof a) {
- if (-1 !== b.indexOf(a))
- return !0;
- b.push(a);
- for (var c in a)
- if (a.hasOwnProperty(c) && q(a[c]))
- return !0;
- }
- return !1;
- }
- (a);
- }
- d.P = function (a, c) {
- var q;
- if (c && b(a))
- return -1;
- c = [];
- a = [a];
- for (var d = 0; a.length; ) {
- q = a.pop();
- if ("boolean" === typeof q)
- d += 4;
- else if ("string" === typeof q)
- d += 2 * q.length;
- else if ("number" === typeof q)
- d += 8;
- else if ("object" === typeof q && -1 === c.indexOf(q)) {
- c.push(q);
- for (var n in q)
- a.push(q[n]);
- }
- }
- return d;
- };
- }, function (d, b, a) {
- var k,
- p;
- function c() {
- return Object.create(null);
- }
- function l(a) {
- this.log = a.log;
- this.Ga = a.Ga;
- this.mC = c();
- this.Promise = a.Promise;
- this.yu = a.yu;
- this.Ina = a.Ina;
- this.Tc = a.Tc || !1;
- this.Sx = c();
- this.zx = c();
- this.yx = c();
- this.d8a(a);
- a.sG && (this.sG = a.sG, k(this.sG, l.prototype));
- }
- function q(a) {
- return "undefined" !== typeof a;
- }
- function n(a) {
- var h;
- for (var b = 0, c = arguments.length; b < c; ) {
- h = arguments[b++];
- if (q(h))
- return h;
- }
- }
- k = a(58);
- a(520);
- p = a(519);
- l.prototype.d8a = function (a) {
- this.Sx.manifest = n(a.Uda, p.Sx.ya);
- this.Sx.ldl = n(a.Tda, p.Sx.tO);
- this.Sx.metadata = n(a.ESb, p.Sx.Dd);
- this.zx.manifest = n(a.oba, p.zx.ya);
- this.zx.ldl = n(a.nba, p.zx.tO);
- this.zx.metadata = n(a.yRb, p.zx.Dd);
- this.yx.manifest = n(a.wRb, p.yx.ya);
- this.yx.ldl = n(a.vRb, p.yx.tO);
- this.yx.metadata = n(a.xRb, p.yx.Dd);
- };
- l.prototype.jZ = function (a, b, c) {
- this.qk("undefined" !== typeof a);
- this.qk("undefined" !== typeof b);
- return !!this.wza(a, b, c).value;
- };
- l.prototype.wza = function (a, b, c) {
- var f,
- h;
- f = {
- value: null,
- reason: "",
- log: ""
- };
- h = this.mC[b];
- if ("undefined" === typeof h)
- return f.log = "cache miss: no data exists for field:" + b, f.reason = "unavailable", f;
- "undefined" === typeof h[a] ? (f.log = "cache miss: no data exists for movieId:" + a, f.reason = "unavailable") : (c = h[a][c ? c : "DEFAULTCAPS"]) && c.value ? this.SZ(b, c.Qh) ? (f.log = "cache miss: " + b + " data expired for movieId:" + a, f.reason = "expired") : (f.log = this.Promise && c.value instanceof this.Promise ? "cache hit: " + b + " request in flight for movieId:" + a : "cache hit: " + b + " available for movieId:" + a, f.value = c.value) : (f.log = "cache miss: " + b + " data not available for movieId:" + a, f.reason = "unavailable");
- return f;
- };
- l.prototype.getData = function (a, b, c) {
- this.qk("undefined" !== typeof a);
- this.qk("undefined" !== typeof b);
- a = this.wza(a, b, c);
- this.log.trace(a.log);
- return a.value ? this.Promise ? a.value instanceof this.Promise ? a.value : Promise.resolve(a.value) : this.Ina ? JSON.parse(this.Ina(a.value, "gzip", !1)) : a.value : this.Promise ? Promise.reject(a.reason) : a.reason;
- };
- l.prototype.setData = function (a, b, k, d, l) {
- var f;
- this.qk("undefined" !== typeof a);
- this.qk("undefined" !== typeof b);
- f = this.mC;
- l = l ? l : "DEFAULTCAPS";
- f[b] || (f[b] = c(), Object.defineProperty(f[b], "numEntries", {
- enumerable: !1,
- configurable: !0,
- writable: !0,
- value: 0
- }), Object.defineProperty(f[b], "size", {
- enumerable: !1,
- configurable: !0,
- writable: !0,
- value: 0
- }));
- k = this.yu ? this.yu(JSON.stringify(k), "gzip", !0) : k;
- f = f[b];
- this.R5a(a, b, l, f);
- b = {
- Qh: this.Ga.getTime(),
- value: k,
- size: 0,
- type: b,
- Vca: d
- };
- f[a] = f[a] || c();
- f[a][l] = f[a][l] || c();
- f[a][l] = b;
- f.size += 0;
- f.numEntries++;
- this.sG && this.emit("addedCacheItem", b);
- return b;
- };
- l.prototype.R5a = function (a, b, c, k) {
- var f,
- h,
- d,
- u,
- l,
- p,
- n,
- q,
- g;
- f = this;
- h = k.numEntries;
- d = this.zx[b];
- p = k[a] && k[a][c];
- if (p && p.value)
- u = a, l = "promise_or_expired";
- else if (h >= d) {
- q = Number.POSITIVE_INFINITY;
- Object.keys(k).every(function (a) {
- var h;
- h = k[a] && k[a][c];
- h && h.value && f.SZ(b, h.Qh) && (g = a);
- h && h.value && h.Qh < q && (q = h.Qh, n = a);
- return !0;
- });
- u = g || n;
- l = "cache_full";
- }
- this.Tc && this.log.debug("makespace ", {
- maxCount: d,
- currentCount: k.numEntries,
- field: b,
- movieId: a,
- movieToBeRemoved: u
- });
- u && (f.clearData(u, b, c, void 0, l), this.log.debug("removed from cache: ", u, b));
- };
- l.prototype.Eba = function (a, b) {
- var c,
- f;
- c = this;
- c.qk("undefined" !== typeof a);
- f = a + "";
- b.forEach(function (a) {
- var b;
- b = c.mC[a];
- b && Object.keys(b).forEach(function (b) {
- b != f && c.clearData(b, a, void 0, void 0, "clear_all");
- });
- });
- };
- l.prototype.clearData = function (a, b, c, k, d) {
- var f;
- this.qk("undefined" !== typeof a);
- this.qk("undefined" !== typeof b);
- f = this.mC[b];
- b = f ? f[a] : void 0;
- c = c ? c : "DEFAULTCAPS";
- if (b && b[c]) {
- f.size -= b[c].size;
- f.numEntries--;
- if (f = b && b[c])
- b[c] = void 0, !k && f.Vca && f.Vca();
- this.sG && (a = {
- creationTime: f.Qh,
- destroyFn: f.Vca,
- size: f.size,
- type: f.type,
- value: f.value,
- reason: d,
- movieId: a
- }, this.emit("deletedCacheItem", a));
- }
- };
- l.prototype.flush = function (a) {
- var b;
- this.qk("undefined" !== typeof a);
- b = this.mC;
- b[a] = c();
- b[a].numEntries = 0;
- b[a].size = 0;
- };
- l.prototype.SZ = function (a, b) {
- return this.Ga.getTime() - b > this.Sx[a];
- };
- l.prototype.getStats = function (a, b, c) {
- var f,
- h,
- k,
- d,
- u;
- f = {};
- h = this;
- k = h.mC;
- d = q(a) && q(b);
- u = c || "DEFAULTCAPS";
- Object.keys(k).forEach(function (c) {
- var l,
- p;
- l = Object.keys(k[c]);
- p = k[c];
- l.forEach(function (k) {
- !(k = p && p[k] && p[k][u]) || !q(k.value) || k.value instanceof this.Promise || (f[c] = (f[c] | 0) + 1, h.SZ(k.type, k.Qh) && (f[c + "_expired"] = (f[c + "_expired"] | 0) + 1), d && k.Qh >= a && k.Qh < b && (f[c + "_delta"] = (f[c + "_delta"] | 0) + 1));
- });
- });
- return f;
- };
- l.prototype.bd = function (a) {
- var b,
- c,
- h,
- k;
- b = [];
- c = this;
- h = c.mC;
- k = a || "DEFAULTCAPS";
- Object.keys(h).forEach(function (a) {
- var f,
- d;
- f = Object.keys(h[a]);
- d = h[a];
- f.forEach(function (f) {
- var h,
- u;
- h = d && d[f] && d[f][k];
- h && q(h.value) && (u = c.SZ(h.type, h.Qh) ? "expired" : h.value instanceof this.Promise ? "loading" : "cached", b.push({
- movieId: f,
- state: u,
- type: a,
- size: h.size
- }));
- });
- });
- return b;
- };
- l.prototype.oma = function (a, b) {
- this.qk("undefined" !== typeof a);
- this.qk("undefined" !== typeof b);
- this.yx[a] = b;
- };
- l.prototype.qk = function (a) {
- if (!a && (this.log.error("Debug Assert Failed for"), this.Tc))
- throw Error("Debug Assert Failed ");
- };
- d.P = l;
- }, function (d, b, a) {
- var l,
- q;
- function c(a, b, c, h, f, d, g) {
- this.u = a;
- this.ne = b;
- this.type = c;
- this.id = ++q;
- this.bq = h;
- this.status = l.Ee.tpa;
- this.Wxb = void 0 === f ? !1 : f;
- this.INa = g;
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.uK = void 0;
- l = a(49);
- q = 0;
- c.prototype.$r = function () {
- var a;
- a = {
- id: this.id,
- type: this.type,
- created: this.bq,
- status: this.status,
- movieId: this.u
- };
- this.startTime && (a.startTime = this.startTime);
- this.endTime && this.startTime && (a.duration = this.endTime - this.startTime, a.endTime = this.endTime);
- return a;
- };
- c.prototype.xs = function (a) {
- this.INa && this.INa(a);
- };
- b.uK = c;
- }, function (d, b, a) {
- var q,
- n,
- k,
- p;
- function c(a) {
- this.log = a.log;
- this.Ga = a.Ga;
- this.YW = this.TM = 0;
- this.fz = [];
- this.paused = !1;
- this.h2 = [];
- this.nEa = [];
- this.jO = a.jO || k.eoa;
- this.Pb = a.Pb;
- this.fk = this.Pb.get(n.rS);
- this.addEventListener = this.fk.addListener.bind(this.fk);
- this.events = {
- Axa: "taskstart",
- yxa: "taskabort",
- zxa: "taskfail",
- Bxa: "tasksuccess"
- };
- }
- function l(a) {
- return a.$r();
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Gxa = void 0;
- d = a(142);
- q = a(49);
- n = a(68);
- k = function () {
- function a() {}
- a.N1a = "prepend";
- a.eoa = "append";
- a.MZa = "ignore";
- return a;
- }
- ();
- p = d.kt;
- b.Gxa = c;
- c.prototype.TBa = function (a) {
- this.log.trace("adding tasks, number of tasks: " + a.length);
- this.paused = !1;
- this.fz = this.A5a(a);
- this.TM = 0;
- this.YW += 1;
- this.tc();
- };
- c.prototype.A5a = function (a) {
- var b,
- c;
- b = this.fz.filter(function (a) {
- return a.Wxb && a.status === q.Ee.tpa;
- });
- c = this.jO;
- if (c === k.MZa)
- return [].concat(a);
- if (c === k.N1a)
- return b.concat(a);
- if (c === k.eoa)
- return a.concat(b);
- };
- c.prototype.pause = function () {
- this.paused = !0;
- };
- c.prototype.tc = function () {
- var a,
- b;
- if (this.TM === this.fz.length)
- this.log.trace("all tasks completed");
- else if (this.paused)
- this.log.trace("in paused state", {
- currentTaskIndex: this.TM,
- numberOfTasks: this.fz.length
- });
- else {
- a = this.$mb();
- b = this.YW;
- a.startTime = this.Ga.getTime();
- a.status = q.Ee.Iwa;
- this.fk.Xb(this.events.Axa, {
- u: a.u,
- type: a.type
- });
- this.h2.push(a);
- a.If(function (c) {
- a.endTime = this.Ga.getTime();
- c ? 0 <= [q.Ee.zz, q.Ee.TR, q.Ee.oJ, q.Ee.SR].indexOf(c.status) ? (a.status = c.status, this.s$(a, this.events.yxa, "cancelled task")) : (a.status = q.Ee.nw, this.s$(a, this.events.zxa, "task failed", c)) : (a.status = q.Ee.Nwa, this.s$(a, this.events.Bxa, "task succeeded"));
- this.nEa.push(a);
- this.h2.splice(this.h2.indexOf(a), 1);
- this.YW === b && (this.TM++, this.tc());
- }
- .bind(this));
- }
- };
- c.prototype.$mb = function () {
- return this.fz[this.TM];
- };
- c.prototype.s$ = function (a, b, c, k) {
- var f;
- f = a.$r();
- k ? this.log.warn(c, f, k) : this.log.trace(c, f);
- this.fk.Xb(b, {
- u: a.u,
- type: a.type,
- reason: a.status
- });
- a.xs(f);
- };
- c.prototype.getStats = function (a, b, c) {
- var f,
- h,
- k,
- d;
- f = this.nEa.map(l);
- h = this.h2.map(l);
- k = p.Xd(a) && p.Xd(b);
- d = {};
- if (p.Xd(c))
- return d.Ncb = f.filter(function (a) {
- return a.movieId === c;
- }), d;
- f.concat(h).forEach(function (c) {
- var f;
- d[c.type + "_" + c.status] = (d[c.type + "_" + c.status] | 0) + 1;
- f = c.status == q.Ee.Iwa ? c.startTime : c.endTime;
- k && f >= a && f < b && (d[c.type + "_" + c.status + "_delta"] = (d[c.type + "_" + c.status + "_delta"] | 0) + 1);
- });
- return d;
- };
- }, function (d, b, a) {
- var l,
- q,
- n,
- k,
- p,
- h,
- f,
- u,
- g,
- G;
- function c(a) {
- this.log = a.log;
- this.Ga = a.Ga;
- this.rfa = a.rfa;
- this.HY = a.HY;
- this.GY = a.GY;
- this.GG = a.GG;
- this.nv = a.nv;
- this.YM = a.YM;
- this.Pb = a.Pb;
- this.config = this.Pb.get(h.jd)();
- this.$M = a.$M;
- this.ZM = a.ZM;
- this.coa = a.coa;
- this.Oja = a.Oja;
- this.Pja = a.Pja;
- this.lP = a.lP;
- this.afa = a.afa;
- this.Tc = a.Tc || !1;
- this.$$ = {};
- this.bV = {};
- this.CV = {
- num_of_calls: 0,
- num_of_movies: 0
- };
- this.zba = a.zba;
- this.jja = a.jja;
- this.Xkb = a.Xkb;
- this.Oea = a.Oea;
- this.Oh = new f({
- log: this.log,
- Ga: this.Ga,
- Promise: Promise,
- Tc: this.Tc,
- oba: a.oba,
- nba: a.nba,
- Uda: a.Uda,
- Tda: a.Tda,
- sG: u
- });
- this.Ap = new l.Gxa({
- log: this.log,
- Ga: this.Ga,
- jO: a.jO,
- Pb: this.Pb
- });
- this.jq = this.Oh.getData.bind(this.Oh);
- this.Xy = this.Oh.setData.bind(this.Oh);
- this.hZ = this.Oh.jZ.bind(this.Oh);
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.rya = void 0;
- l = a(523);
- q = a(522);
- d = a(142);
- n = a(251);
- k = a(472);
- p = a(118);
- h = a(14);
- f = a(521);
- u = a(105).EventEmitter;
- g = d.kt;
- G = new k.w8(g, new n.OR());
- b.rya = c;
- c.prototype.FHa = function (a) {
- var b;
- b = this.Oh.getData(a, "ldl");
- this.Oh.clearData(a, "ldl", void 0, !0);
- return b;
- };
- c.prototype.Mv = function (a, b) {
- var c,
- f,
- h;
- c = this;
- a = a.map(function (a) {
- a.gb = a.gb || {
- fM: {
- ePa: !1
- },
- di: 0
- };
- g.kB(a.gb.di) || (a.gb.di = 0);
- g.kB(a.Vc) && (a.gb.T = a.Vc);
- return a;
- });
- f = a.map(function (a) {
- return c.cza(a, b);
- }).reduce(function (a, b) {
- return a.concat(b);
- }, []);
- h = f.map(function (a) {
- return a.u + "-" + a.type;
- });
- this.log.trace("prepare tasks", h);
- this.Ap.TBa(f);
- this.CV.num_of_calls++;
- this.CV.num_of_movies += a.length;
- };
- c.prototype.Wyb = function (a, b) {
- var c,
- f,
- h;
- c = this;
- f = a.map(function (a) {
- return a.u + "";
- });
- a = a.map(function (a) {
- a.gb = a.gb || {
- fM: {
- ePa: !1
- },
- di: 0
- };
- a.gb.Be = !0;
- a.gb.cNa = f;
- return c.cza(a, b);
- }).reduce(function (a, b) {
- return a.concat(b);
- }, []);
- h = a.map(function (a) {
- return a.u + "-" + a.type;
- });
- this.log.trace("predownload tasks", h);
- this.Ap.TBa(a);
- };
- c.prototype.RHb = function (a, b) {
- this.bV[a] || (this.bV[a] = {});
- a = this.bV[a];
- a.APa = (a.APa | 0) + 1;
- a.Dj = b;
- };
- c.prototype.getStats = function (a, b, c) {
- var f;
- f = c && this.bV[c] || {};
- f.fz = this.Ap.getStats(a, b, c);
- f.cache = this.Oh.getStats(a, b);
- f.sHa = G.kC(this.afa(), this.CV);
- return f || {};
- };
- c.prototype.cza = function (a, b) {
- var c,
- f,
- h,
- k,
- d;
- a.re && (a.gb.re = a.re);
- c = [];
- f = a.u;
- h = !!a.gb.Be;
- this.RHb(f, a.Dj);
- k = null;
- if (this.Oh.jZ(f, "manifest"))
- this.log.trace("manifest exists in cache for " + f);
- else {
- d = new q.uK(f, a.ne, "manifest", this.Ga.getTime(), h, void 0, b);
- k = d.id;
- d.If = this.rfa.bind(this, f, a);
- c.push(d);
- }
- this.HY && (this.Oh.jZ(f, "ldl") ? this.Tc && this.log.trace("ldl exists in cache for " + f) : (d = new q.uK(f, a.ne, "ldl", this.Ga.getTime(), h, k, b), d.If = this.HY.bind(this, f, a), c.push(d)));
- this.GY && this.GG && this.zba() && (this.jja(f) ? this.Tc && this.log.trace("headers/media exists in cache for " + f) : (f = new q.uK(a.u, a.ne, "getHeaders", this.Ga.getTime(), h, k, b), f.If = this.GY.bind(this, a.u, a), c.push(f), b = new q.uK(a.u, a.ne, "getMedia", this.Ga.getTime(), h, k, b), b.If = this.GG.bind(this, a.u, a), c.push(b)));
- return c;
- };
- c.prototype.Yob = function (a) {
- this.Pja(a);
- };
- c.prototype.Xob = function (a) {
- this.log.trace("task scheduler paused on playback created");
- this.Ap.pause();
- this.$M && this.Oh.Eba(a, ["manifest"]);
- this.ZM && this.Oh.Eba(a, ["ldl"]);
- this.Oja(a);
- };
- c.prototype.xJa = function () {
- this.log.info("track changed, clearing all manifests from cache");
- this.Oh.Eba("none", ["manifest"]);
- };
- c.prototype.Wob = function (a) {
- var b;
- b = this;
- this.YM ? this.Oh.clearData(a, "manifest") : this.Oh.jZ(a, "manifest") && this.Oh.getData(a, "manifest").then(function (c) {
- c.isSupplemental || b.Oh.clearData(a, "manifest");
- }, function (c) {
- b.log.warn("Failed to get manifest for movieId [" + a + "] from cacheManager.", c);
- });
- this.Kba(a);
- this.lP();
- };
- c.prototype.Kba = function (a) {
- this.$$[a] = void 0;
- };
- c.prototype.YY = function (a) {
- return this.$$[a];
- };
- c.prototype.REa = function (a) {
- return this.$$[a] = this.coa();
- };
- c.prototype.Zyb = function () {
- var a;
- a = [];
- a = this.Oh.bd().map(function (a) {
- return {
- Pq: parseInt(a.movieId, 10),
- state: a.state,
- gu: a.type,
- size: a.size || void 0
- };
- });
- this.Oea().map(function (b) {
- 2 === b.pq ? a.push({
- Pq: b.u,
- state: "cached",
- gu: p.Fe.Xj.LJ,
- size: void 0
- }) : b.fkb && !b.dsb && a.push({
- Pq: b.u,
- state: "loading",
- gu: p.Fe.Xj.LJ,
- size: void 0
- });
- b.bVa && 0 < b.bVa && b.GCa && 0 < b.GCa ? a.push({
- Pq: b.u,
- state: "cached",
- gu: p.Fe.Xj.MEDIA,
- size: void 0
- }) : b.Syb && !b.Ryb && a.push({
- Pq: b.u,
- state: "loading",
- gu: p.Fe.Xj.MEDIA,
- size: void 0
- });
- });
- return a;
- };
- c.prototype.CKa = function (a) {
- return a && 0 <= a.indexOf("billboard");
- };
- }, function (d, b, a) {
- var c,
- l,
- q,
- n,
- k,
- p,
- h,
- f,
- u,
- g,
- G,
- C,
- m,
- D,
- K,
- J,
- r,
- P,
- ba,
- z,
- T,
- U,
- ea,
- ha,
- V;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- c = a(51);
- l = a(122);
- q = a(12);
- n = a(9);
- k = a(35);
- d = a(2);
- p = a(5);
- h = a(21);
- f = a(239);
- u = a(3);
- g = a(87);
- G = a(117);
- C = a(113);
- m = a(49);
- D = a(182);
- K = a(23);
- J = a(33);
- r = a(524);
- P = a(123);
- ba = a(151);
- z = a(46);
- T = a(62);
- b = a(26);
- U = a(137);
- ea = a(166);
- ha = a(265);
- p.Z.get(b.yf).register(d.J.psa, function (a) {
- var ta,
- ia,
- x,
- B,
- ka,
- Da,
- Oa,
- Pa,
- L,
- S,
- Wa,
- bb,
- W,
- Ba;
- function b() {
- var a,
- b,
- c;
- if (q.config.op) {
- a = {};
- a.trigger = m.Fd.M1a.o1a;
- b = ta.getTime();
- c = V.getStats(W, b);
- a.startoffset = W;
- W = a.endoffset = b;
- a.cache = JSON.stringify(c.cache);
- a.tasks = JSON.stringify(c.fz);
- a.general = JSON.stringify(c.sHa);
- b = p.Z.get(z.$j);
- a = p.Z.get(T.no).Fn("prepare", "info", a);
- b.Lc(a);
- }
- }
- function d(a, b, c) {
- var f,
- h;
- h = a.ew;
- h && h.length && h[0].ic && h[0].ic.length && (f = h[0].ic[0].PF);
- h = q.Zba(b.re);
- f = q.Yba(!!a.uu, !1, f);
- f = l.$c.No(Object.assign(Object.assign({}, h), f));
- return {
- u: c,
- ne: 0,
- Kmb: function () {
- return {
- ya: a,
- Ef: !1,
- RA: a.oFa[0].RA
- };
- },
- config: f,
- Be: !!b.Be,
- cNa: b.cNa
- };
- }
- function A(a, b, c) {
- V.jq(a, "ldl").then(function (a) {
- c(null, a);
- })["catch"](function (f) {
- Da.trace("ldl not available in cache", f);
- V.jq(a, "manifest").then(function (f) {
- var k,
- d,
- u,
- l,
- n;
- function h(b) {
- Da.warn("ldl is now invalid", b);
- n.close();
- V.Xy(a, "ldl", void 0);
- V.Kba(a);
- }
- k = f.Uf;
- if (V.hZ(a, "ldl"))
- c({
- status: m.Fd.Ee.zz
- });
- else if (k.mZ)
- if (q.config.IFa && Oa && Oa !== a && !b.force)
- c({
- status: m.Fd.Ee.TR
- });
- else if (q.config.JFa && Pa && Pa !== a && !b.force)
- c({
- status: m.Fd.Ee.oJ
- });
- else {
- Oa && Oa !== a && (L[a] = (L[a] | 0) + 1);
- Pa && Pa !== a && (S[a] = (S[a] | 0) + 1);
- d = k.ew[0].XH;
- u = k.ew[0].mda;
- l = (d ? d : [u]).map(function (a) {
- return p.am(a.bytes);
- });
- n = R({
- jKa: "cenc",
- bGa: Da,
- IB: function (b) {
- var c;
- c = [];
- b.Ph.forEach(function (a) {
- c.push({
- sessionId: a.sessionId,
- dataBase64: p.Hr(a.data)
- });
- });
- b = {
- Ph: c,
- uX: [k.sk],
- Uh: m.Fd.zEa(b.Uh),
- pg: k.pg,
- fa: V.REa(a),
- Jj: f.Jj
- };
- Da.trace("xid created ", {
- MovieId: a,
- xid: b.fa
- });
- return B.LA(b);
- },
- kFb: void 0,
- Vib: h,
- fd: void 0,
- k0: K.$e,
- Ga: ka
- });
- V.Xy(a, "ldl", n, function () {
- n.close();
- });
- return n.create(q.config.ce).then(function () {
- return n.Fg(g.lj.uw, l, !0);
- }).then(function () {
- c(null, n);
- })["catch"](function (a) {
- h(a);
- c(a);
- });
- }
- else
- c({
- status: m.Fd.Ee.SR
- });
- })["catch"](function (a) {
- Da.warn("Manifest not available for ldl request", a);
- c({
- status: m.Fd.Ee.zz
- });
- });
- });
- }
- function H(a, b, c) {
- V.jq(a, "ldl").then(function (a) {
- c(null, a);
- })["catch"](function (f) {
- Da.trace("ldl not available in cache", f);
- V.jq(a, "manifest").then(function (f) {
- var k,
- d,
- u,
- l,
- n;
- function h(b, c) {
- Da.warn(b + " LDL is now invalid.", c);
- V.Xy(a, "ldl", void 0);
- V.Kba(a);
- }
- k = f.Uf;
- if (V.hZ(a, "ldl"))
- c({
- status: m.Fd.Ee.zz
- });
- else if (k.mZ)
- if (q.config.IFa && Oa && Oa !== a && !b.force)
- c({
- status: m.Fd.Ee.TR
- });
- else if (q.config.JFa && Pa && Pa !== a && !b.force)
- c({
- status: m.Fd.Ee.oJ
- });
- else {
- Oa && Oa !== a && (L[a] = (L[a] | 0) + 1);
- Pa && Pa !== a && (S[a] = (S[a] | 0) + 1);
- d = k.ew[0].XH;
- u = k.ew[0].mda;
- l = (d ? d : [u]).map(function (a) {
- return p.am(a.bytes);
- });
- n = p.Z.get(G.AJ)().then(function (b) {
- var c;
- c = {
- type: g.lj.uw,
- CZ: l,
- context: {
- ce: q.config.ce
- },
- jh: {
- u: a,
- fa: V.REa(a),
- pg: k.pg,
- sk: k.sk,
- Jj: f.Jj
- }
- };
- return b.Mv(c, p.Z.get(U.YD)());
- }).then(function (a) {
- c(null, a);
- return a;
- })["catch"](function (a) {
- h("Unable to prepare an EME session.", a);
- });
- V.Xy(a, "ldl", n, function () {
- try {
- n.then(function (a) {
- a.close().subscribe(void 0, function (a) {
- h("Unable to cleanup LDL session, unable to close the session.", a);
- });
- })["catch"](function (a) {
- h("Unable to cleanup LDL session, Unable to get the session.", a);
- });
- } catch (jf) {
- h("Unable to cleanup LDL session, unexpected exception.", jf);
- }
- });
- }
- else
- c({
- status: m.Fd.Ee.SR
- });
- })["catch"](function (a) {
- Da.warn("Manifest not available for ldl request", a);
- c({
- status: m.Fd.Ee.zz
- });
- });
- });
- }
- function R(a) {
- var b,
- c,
- f;
- b = p.Z.get(J.Mp);
- c = new b.Cz(a.bGa, a.IB, a.kFb, {
- Tc: !1,
- bh: !1
- });
- f = p.Z.get(C.aA);
- return b.Ez(a.bGa, a.jKa, a.fd, {
- Tc: !1,
- bh: !1,
- $G: q.config.Bi,
- nI: {
- M_: q.config.BRa,
- BW: q.config.Sla
- },
- hj: c,
- X0: q.config.Kka,
- Wa: void 0,
- kz: q.config.yda,
- onerror: a.Vib,
- k0: a.k0,
- Ga: a.Ga,
- J0: !1,
- HCa: f.MM([]),
- cVa: f.SM([]),
- UG: q.config.UG
- });
- }
- ta = {
- getTime: k.Yg,
- SSb: k.CM
- };
- ia = p.Z.get(h.ee);
- x = p.Z.get(P.rT);
- B = p.Z.get(ba.TD);
- ka = ta;
- Da = p.Ah("VideoPreparer");
- L = {};
- S = {};
- Wa = p.Z.get(J.Mp);
- if (!Wa.Ez || !Wa.Cz) {
- bb = p.Z.get(ha.vT)();
- Wa.Ez = bb.rb;
- Wa.Cz = bb.request;
- }
- Da.info("instance created");
- V = new r.rya({
- log: Da,
- Ga: ta,
- coa: k.ZDa,
- rfa: function (a, b, c) {
- var h;
- function f() {
- var b;
- ia.OA(h) || (h = {
- trackingId: h
- });
- b = {
- Oa: h,
- oa: a,
- Vx: P.Uk.O6
- };
- Da.trace("manifest request for:" + a);
- return x.kf(Da, b);
- }
- h = b.gb;
- Da.trace("getManifest: " + a);
- q.config.Z8a && h && h.ya && !V.hZ(a, "manifest") && (!h.ya.clientGenesis || Date.now() - h.ya.clientGenesis < q.config.BPa) ? (b = p.Z.get(ea.XD).create(h.ya), b.Sy = ta.getTime(), b.MC = ta.getTime(), V.Xy(a, "manifest", b), c(null, b)) : V.jq(a, "manifest").then(function (a) {
- c(null, a);
- })["catch"](function (b) {
- var h;
- Da.trace("manifest not available in cache", b);
- if (V.hZ(a, "manifest"))
- c({
- status: m.Fd.Ee.zz
- });
- else {
- h = ta.getTime();
- b = f();
- V.Xy(a, "manifest", b);
- b.then(function (b) {
- b.Sy = h;
- b.MC = ta.getTime();
- V.Xy(a, "manifest", b);
- c(null, b);
- })["catch"](function (b) {
- c(b);
- V.Xy(a, "manifest", void 0);
- });
- }
- });
- },
- HY: q.config.lG ? q.config.Dp ? H : A : void 0,
- GY: function (a, b, c) {
- var f;
- f = b.gb;
- V.jq(a, "manifest").then(function (b) {
- b = d(b.Uf, f, a);
- l.jl.tW(b, function () {
- c(null, {});
- });
- })["catch"](function (a) {
- Da.error("Exception in getHeaders", a);
- c(a);
- });
- },
- GG: function (a, b, c) {
- var k;
- k = b.gb;
- V.jq(a, "manifest").then(function (n) {
- var q,
- g,
- A;
- q = n.Uf;
- n = d(q, k, a);
- g = q.duration;
- q = p.Z.get(f.QR).$Ba({
- sD: u.Jb(q.vx),
- u: a,
- zP: u.Jb(g),
- Oa: k
- }).ca(u.ia);
- p.Z.get(h.ee).Er(k.T) && (q = k.T);
- n.Vc = q;
- if (Oa != a || k.Be || b.force) {
- A = function (b) {
- b.movieId === a && b.stats && b.stats.prebuffcomplete && (l.jl.removeEventListener("prebuffstats", A), c(null, {}));
- };
- l.jl.addEventListener("prebuffstats", A);
- l.jl.tW(n);
- } else
- c({
- status: m.Fd.Ee.oJ
- });
- })["catch"](function (a) {
- Da.error("Exception in getMedia", a);
- c(a);
- });
- },
- nv: function () {
- return l.jl.nv();
- },
- zba: function () {
- return q.config.BX;
- },
- jja: function (a) {
- var b;
- b = !1;
- l.jl.wM().forEach(function (c) {
- c.u == a && (b = !0);
- });
- return b;
- },
- Oea: function () {
- return l.jl.wM().map(function (a) {
- var b,
- f;
- b = l.jl.iia(a.u);
- f = b[c.Ac.Ji.AUDIO] && b[c.Ac.Ji.AUDIO].data;
- b = b[c.Ac.Ji.VIDEO] && b[c.Ac.Ji.VIDEO].data;
- return {
- u: a.u,
- pq: a.pq,
- GCa: f && f.length,
- bVa: b && b.length,
- fkb: ia.Er(a.Zb.$X),
- dsb: ia.Er(a.Zb.p_),
- Syb: ia.Er(a.Zb.UH),
- Ryb: ia.Er(a.Zb.O0)
- };
- });
- },
- Oja: function (a) {
- Oa = a;
- },
- Pja: function (a) {
- Ba && (Ba.Jba(), b());
- Pa = a;
- },
- lP: function () {
- Ba && Ba.uma();
- Pa = Oa = void 0;
- },
- afa: function () {
- return {
- ldls_after_create: L,
- ldls_after_start: S
- };
- },
- YM: q.config.YM,
- $M: q.config.$M,
- ZM: q.config.ZM,
- jO: q.config.bzb,
- oba: q.config.ezb,
- nba: q.config.czb,
- Uda: q.config.BPa,
- Tda: q.config.dzb,
- Tc: !1,
- Pb: p.Z
- });
- t._cad_global.videoPreparer = V;
- Wa = q.config.Vxb;
- W = ta.getTime();
- Wa && (Ba = new D.J7(Wa, b), Ba.uma());
- a(n.kd);
- });
- }, function (d, b, a) {
- var c,
- l,
- q,
- n,
- k,
- p,
- h,
- f,
- u,
- g,
- G,
- C;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- c = a(119);
- l = a(121);
- q = a(9);
- n = a(44);
- d = a(2);
- k = a(5);
- p = a(150);
- h = a(16);
- f = a(23);
- u = a(10);
- b = a(26);
- g = a(35);
- G = a(90);
- C = a(131);
- k.Z.get(b.yf).register(d.J.rsa, function (a) {
- function b(a, b) {
- function c(a) {
- a = new p.xJ(k.am(a));
- a.Ae();
- return {
- oy: a.dQa(),
- Iib: a.dQa()
- };
- }
- return {
- encrypt: function (b, c) {
- var d;
- b = f.Od(b) ? k.$I(b) : b;
- d = u.ut.getRandomValues(new Uint8Array(16));
- n.sC(u.Hn.encrypt({
- name: "AES-CBC",
- iv: d
- }, a, b)).then(function (a) {
- var b,
- f;
- a = new Uint8Array(a);
- b = [];
- f = new p.xJ(b);
- f.DR(2);
- f.vVa(d);
- f.vVa(a);
- a = k.Hr(b);
- c({
- success: !0,
- encryptedDataAsn1Base64: a
- });
- }, function (a) {
- h.Xa(!1, "Encrypt error: " + a);
- c({
- success: !1
- });
- });
- },
- decrypt: function (b, f) {
- b = c(b);
- n.sC(u.Hn.decrypt({
- name: "AES-CBC",
- iv: b.oy
- }, a, b.Iib)).then(function (a) {
- a = new Uint8Array(a);
- f({
- success: !0,
- text: k.pR(a)
- });
- }, function (a) {
- h.Xa(!1, "Decrypt error: " + a);
- f({
- success: !1
- });
- });
- },
- hmac: function (a, c) {
- a = f.Od(a) ? k.$I(a) : a;
- n.sC(u.Hn.sign({
- name: "HMAC",
- hash: {
- name: "SHA-256"
- }
- }, b, a)).then(function (a) {
- a = new Uint8Array(a);
- c({
- success: !0,
- hmacBase64: k.Hr(a)
- });
- }, function (a) {
- h.Xa(!1, "Hmac error: " + a);
- c({
- success: !1
- });
- });
- }
- };
- }
- c.BK.aM.mdx = {
- getEsn: function () {
- return l.xh.yh;
- },
- createCryptoContext: function (a) {
- var b;
- b = k.Z.get(G.nE);
- k.Z.get(C.$D)().then(function (c) {
- var d,
- u;
- d = c.cP.getStateForMdx(b);
- u = d.cryptoContext;
- c = d.masterToken;
- d = d.userIdToken;
- c && d ? (h.Xa(u), c = ["1", k.Hr(JSON.stringify(c.toJSON())), k.Hr(JSON.stringify(d.toJSON()))].join(), a({
- success: !0,
- cryptoContext: {
- cTicket: c,
- encrypt: function (a, b) {
- a = f.Od(a) ? k.$I(a) : a;
- u.encrypt(a, {
- result: function (a) {
- a = k.Hr(a);
- b({
- success: !0,
- mslEncryptionEnvelopeBase64: a
- });
- },
- timeout: function () {
- b({
- success: !1
- });
- },
- error: function (a) {
- h.Xa(!1, "Encrypt error: " + a);
- b({
- success: !1
- });
- }
- });
- },
- decrypt: function (a, b) {
- a = k.am(a);
- u.decrypt(a, {
- result: function (a) {
- b({
- success: !0,
- text: k.pR(a)
- });
- },
- timeout: function () {
- b({
- success: !1
- });
- },
- error: function (a) {
- h.Xa(!1, "Decrypt error: " + a);
- b({
- success: !1
- });
- }
- });
- },
- hmac: function (a, b) {
- a = f.Od(a) ? k.$I(a) : a;
- u.sign(a, {
- result: function (a) {
- b({
- success: !0,
- hmacBase64: k.Hr(a)
- });
- },
- timeout: function () {
- b({
- success: !1
- });
- },
- error: function (a) {
- h.Xa(!1, "Hmac error: " + a);
- b({
- success: !1
- });
- }
- });
- }
- }
- })) : (h.Xa(!1, "Must login first"), a({
- success: !1
- }));
- });
- },
- createCryptoContextFromSharedSecret: function (a, c) {
- var f;
- f = k.am(a);
- a = f.subarray(32, 48);
- f = f.subarray(0, 32);
- if (16 != a.length || 32 != f.length)
- throw Error("Bad shared secret");
- Promise.all([n.sC(u.Hn.importKey("raw", a, {
- name: "AES-CBC"
- }, !1, ["encrypt", "decrypt"])), n.sC(u.Hn.importKey("raw", f, {
- name: "HMAC",
- hash: {
- name: "SHA-256"
- }
- }, !1, ["sign", "verify"]))]).then(function (a) {
- c({
- success: !0,
- cryptoContext: b(a[0], a[1])
- });
- }, function () {
- c({
- success: !1
- });
- });
- },
- getServerEpoch: function () {
- return g.Mba();
- }
- };
- a(q.kd);
- });
- }, function (d, b, a) {
- var c,
- l,
- q,
- n,
- k,
- p,
- h,
- f,
- u;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- d = a(119);
- c = a(9);
- l = a(12);
- q = a(57);
- b = a(8);
- n = a(5);
- k = a(46);
- p = a(96);
- h = a(16);
- f = a(23);
- u = a(10);
- t.netflix = t.netflix || {};
- h.Xa(!t.netflix.player);
- t.netflix.player = {
- VideoSession: d.BK,
- diag: {
- togglePanel: function (a, b) {
- var c;
- c = [];
- if (!l.config || l.config.VP) {
- switch (a) {
- case "info":
- c = q.Zm.map(function (a) {
- return a.I0;
- });
- break;
- case "streams":
- c = q.Zm.map(function (a) {
- return a.K0;
- });
- break;
- case "log":
- c = [];
- }
- c.forEach(function (a) {
- f.ac(b) ? b ? a.show() : a.Xo() : a.toggle();
- });
- }
- },
- addLogMessageSink: function (a) {
- n.Z.get(k.$j).addListener({
- PVb: function () {},
- Bub: function (b) {
- a({
- data: b.data
- });
- }
- });
- }
- },
- log: n.Ah("Ext"),
- LogLevel: b.hi,
- addLogSink: function (a, b) {
- n.Z.get(p.Mz).h1(a, b);
- },
- getVersion: function () {
- return "6.0023.976.031";
- },
- isWidevineSupported: function (a) {
- var f;
- function b(a) {
- return function (b, c) {
- return c.contentType == a;
- };
- }
- if ("function" !== typeof a)
- throw Error("input param is not a function");
- f = [{
- distinctiveIdentifier: "not-allowed",
- videoCapabilities: [{
- contentType: c.fr,
- robustness: "SW_SECURE_DECODE"
- }
- ],
- audioCapabilities: [{
- contentType: c.xw,
- robustness: "SW_SECURE_CRYPTO"
- }
- ]
- }
- ];
- try {
- u.Ki.requestMediaKeySystemAccess("com.widevine.alpha", f).then(function (f) {
- var h;
- h = f.getConfiguration();
- f = h.videoCapabilities || [];
- h = (h.audioCapabilities || []).reduce(b(c.xw), !1);
- f = f.reduce(b(c.fr), !1);
- a(h && f);
- })["catch"](function () {
- a(!1);
- });
- } catch (H) {
- a(!1);
- }
- }
- };
- }, function (d, b, a) {
- var c,
- l,
- q,
- n,
- k,
- p,
- h,
- f,
- u,
- g;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- d = a(26);
- b = a(2);
- c = a(8);
- l = a(33);
- q = a(146);
- n = a(9);
- k = a(12);
- p = a(5);
- h = a(122);
- f = a(57);
- u = a(119);
- g = a(187);
- p.Z.get(d.yf).register(b.J.ssa, function (a) {
- var d,
- A,
- G;
- function b(a, b) {
- return void 0 === a || void 0 === b ? Promise.reject("Invalid email and/or password") : p.Z.get(g.oT).kf(this.log, {}, {
- $Fa: a,
- password: b
- }).then(function () {});
- }
- if (k.config.jjb) {
- d = p.Z.get(q.jK);
- A = p.Z.get(l.dk);
- G = p.Z.get(c.Bb).yb("Test");
- u.BK.aM.test = {
- pboRequests: d.hj.map(function (a) {
- return JSON.parse(JSON.stringify(a));
- }),
- playbacks: f.Zm,
- getPlayback: function (a) {
- return f.Zm.find(function (b) {
- return b.fa === a;
- });
- },
- playgraphManager: {
- isNextSegmentReady: function (a, b) {
- var c,
- h;
- return void 0 !== (null === (h = null === (c = f.Zm.find(function (b) {
- return b.fa === a;
- })) || void 0 === c ? void 0 : c.Gb) || void 0 === h ? void 0 : h.uY(b));
- }
- },
- aseManager: {
- cacheDestroy: function () {
- return h.jl.sW();
- }
- },
- device: {
- esn: t._cad_global.device.yh,
- esnPrefix: A.Rx,
- errorPrefix: A.xB
- },
- log: {
- info: function (a, b) {
- for (var c = [], f = 1; f < arguments.length; ++f)
- c[f - 1] = arguments[f];
- return G.info(a, c);
- },
- error: function (a, b) {
- for (var c = [], f = 1; f < arguments.length; ++f)
- c[f - 1] = arguments[f];
- return G.error(a, c);
- },
- warn: function (a, b) {
- for (var c = [], f = 1; f < arguments.length; ++f)
- c[f - 1] = arguments[f];
- return G.warn(a, c);
- },
- trace: function (a, b) {
- for (var c = [], f = 1; f < arguments.length; ++f)
- c[f - 1] = arguments[f];
- return G.trace(a, c);
- },
- log: function (a, b) {
- for (var c = [], f = 1; f < arguments.length; ++f)
- c[f - 1] = arguments[f];
- return G.log(a, c);
- },
- debug: function (a, b) {
- for (var c = [], f = 1; f < arguments.length; ++f)
- c[f - 1] = arguments[f];
- return G.debug(a, c);
- }
- },
- login: b
- };
- }
- a(n.kd);
- });
- }, function (d, b, a) {
- var c,
- l,
- q,
- n,
- k,
- p,
- h,
- f,
- u,
- g,
- G;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- c = a(121);
- l = a(119);
- q = a(9);
- n = a(12);
- d = a(2);
- k = a(5);
- p = a(16);
- h = a(20);
- f = a(23);
- u = a(15);
- g = a(46);
- G = a(62);
- a = a(26);
- k.Z.get(a.yf).register(d.J.qsa, function (a) {
- var b,
- d;
- b = k.Ah("NccpApi");
- d = h.xCa(["info", "warn", "trace", "error"]);
- l.BK.aM.nccp = {
- getEsn: function () {
- return c.xh.yh;
- },
- getPreferredLanguages: function () {
- return n.config.Gu.yka;
- },
- setPreferredLanguages: function (a) {
- p.Xa(u.isArray(a) && f.ev(a[0]));
- n.config.Gu.yka = a;
- },
- queueLogblob: function (a, c, f) {
- var h;
- if (a && c)
- if (c = c.toLowerCase(), d[c]) {
- h = k.Z.get(g.$j);
- a = k.Z.get(G.no).Fn(a, c, f);
- h.Lc(a);
- } else
- b.warn("Invalid severity", {
- severity: c
- });
- },
- flushLogblobs: function () {
- k.Z.get(g.$j).flush(!0);
- }
- };
- a(q.kd);
- });
- }, function (d, b, a) {
- var c,
- l,
- q,
- n,
- k;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Ppa = void 0;
- c = a(67);
- l = a(44);
- q = a(16);
- n = a(20);
- k = a(23);
- b.Ppa = function (a, b) {
- q.Xa(a);
- q.Xa(b);
- q.ZF(b.Lib, "endpointURL property is required");
- q.Xa(b.Wg);
- this.log = a;
- this.qPa = b;
- };
- b.Ppa.prototype.Xx = function () {
- var a,
- b,
- f;
- a = this;
- a.log.trace("Downloading config data.");
- b = {
- browserInfo: JSON.stringify(a.qPa.Wg)
- };
- f = a.qPa.Lib + "?" + l.HH(b);
- return new Promise(function (b, h) {
- function d(b) {
- var c;
- try {
- if (b.V) {
- c = new Uint8Array(b.content);
- return {
- V: !0,
- config: JSON.parse(String.fromCharCode.apply(null, c)).core.initParams
- };
- }
- return {
- V: !1,
- message: "Unable to download the config. " + b.fb,
- ZN: b.Ui
- };
- } catch (R) {
- return b = n.pd(R),
- a.log.error("Unable to download the config. Received an exception parsing response", {
- message: R.message,
- exception: b,
- url: f
- }), {
- V: !1,
- fb: b,
- message: "Unable to download the config. " + R.message
- };
- }
- }
- function u(b, c, f) {
- return c > f ? (a.log.error("Config download failed, retry limit exceeded, giving up", k.tb({
- Attempts: c - 1,
- MaxRetries: f
- }, b)), !1) : !0;
- }
- function l(a) {
- return new Promise(function (b) {
- setTimeout(function () {
- b();
- }, a);
- });
- }
- function p(f, q, g) {
- c.We.download(f, function (c) {
- var A;
- c = d(c);
- if (c.V)
- b(c);
- else {
- a.log.warn("Config download failed, retrying", k.tb({
- Attempt: q,
- WaitTime: A,
- MaxRetries: g
- }, c));
- if (u(c, q + 1, g))
- return A = n.Qka(1E3, 1E3 * Math.pow(2, Math.min(q - 1, g))), l(A).then(function () {
- return p(f, q + 1, g);
- });
- h(c);
- }
- });
- }
- return c.We ? p({
- url: f,
- responseType: 3,
- withCredentials: !0,
- lB: "config-download"
- }, 1, 3) : Promise.reject({
- V: !1,
- message: "Unable to download Config. There was no HTTP object supplied"
- });
- });
- };
- }, function (d, b, a) {
- var c,
- l,
- q,
- n;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- c = a(12);
- l = a(9);
- d = a(2);
- q = a(5);
- n = a(177);
- a = a(26);
- q.Z.get(a.yf).register(d.J.fsa, function (a) {
- c.config.Gkb && q.Z.get(n.M4).start();
- a(l.kd);
- });
- }, function (d, b, a) {
- var c,
- l,
- q,
- n,
- k,
- p,
- h,
- f,
- u,
- g,
- G,
- C,
- m,
- D;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- c = a(152);
- l = a(274);
- d = a(57);
- q = a(12);
- n = a(56);
- k = a(9);
- p = a(44);
- h = a(35);
- f = a(20);
- u = a(10);
- g = a(5);
- G = a(116);
- C = a(13);
- m = a(26);
- D = a(33);
- d.t7(d.o7, function (a) {
- var ea,
- ha,
- V,
- ta,
- N,
- na;
- function b(c) {
- c.newValue >= C.qb.LOADING && (a.state.removeListener(b), t("type=openplay&sev=info&locstor=" + u.fT(r())), V = h.Yg(), H());
- }
- function d() {
- na("type=startplay&sev=info&outcome=success");
- }
- function A() {
- var b,
- h;
- b = a.Vi;
- if (b) {
- h = "type=startplay&sev=error&outcome=error";
- b = c.Bfa(g.Z.get(D.dk).xB, b);
- f.Ad(b, function (a, b) {
- h += "&" + u.fT(a) + "=" + u.fT(b || "");
- });
- na(h);
- } else
- na("type=startplay&sev=info&outcome=abort");
- }
- function H() {
- var a,
- b;
- a = ta.shift();
- if (0 < a) {
- b = u.Ml(a - (h.Yg() - V), 0);
- ha = setTimeout(function () {
- t("type=startstall&sev=info&kt=" + a);
- H();
- }, b);
- }
- }
- function K() {
- na("type=startplay&sev=info&outcome=unload");
- }
- function r() {
- var a,
- b,
- c;
- try {
- b = "" + h.CM();
- localStorage.setItem("player$test", b);
- c = localStorage.getItem("player$test");
- localStorage.removeItem("player$test");
- a = b == c ? "success" : "mism";
- } catch (Ea) {
- a = "ex: " + Ea;
- }
- return a;
- }
- function t(b) {
- b = N + "&soffms=" + a.Ifa() + "&" + b;
- a.Uc && Object.keys(a.Uc).length && (b += "&" + p.HH(f.tb({}, a.Uc, {
- prefix: "sm_"
- })));
- l.YTa("playback", b, ea);
- }
- ea = g.Z.get(G.oz).host + q.config.yna;
- if (q.config.ZTa && ea && q.config.$Ta.playback) {
- ta = q.config.PGb.slice();
- N = "xid=" + a.fa + "&pbi=" + a.index + "&uiLabel=" + (a.re || "");
- a.state.addListener(b);
- a.addEventListener(C.U.ao, d);
- a.addEventListener(C.U.Cf, A);
- n.Me.addListener(n.sl, K, k.Tz);
- na = function (b) {
- var c;
- na = k.$e;
- c = g.Z.get(m.yf);
- b += "&initstart=" + c.startTime + "&initend=" + c.endTime;
- t(b);
- clearTimeout(ha);
- a.removeEventListener(C.U.ao, d);
- a.removeEventListener(C.U.Cf, A);
- n.Me.removeListener(n.sl, K);
- };
- }
- });
- }, function (d, b, a) {
- var c,
- l;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- d = a(80);
- c = a(12);
- l = a(5);
- d.Qz(function (a, b) {
- var k,
- d,
- h,
- f;
- k = {
- "video-merch-bob-vertical": 480,
- "video-merch-bob-horizontal": 384,
- "video-merch-jaw": 720,
- "show-as-a-row-bob-horizontal": 480,
- "mini-modal-horizontal": 720
- };
- Object.assign(k, c.config.jHb);
- d = k[b.re];
- if (c.config.kHb && d) {
- h = {};
- f = l.$g(a, "MediaStreamFilter");
- return {
- vG: "uiLabel",
- Ls: function (a) {
- if (a.lower && a.height > d)
- return h[a.height] || (h[a.height] = !0, f.warn("Restricting resolution due to uiLabel", {
- MaxHeight: d,
- streamHeight: a.height
- }), b.Dn.set({
- reason: "uiLabel",
- height: a.height
- })), !0;
- }
- };
- }
- });
- }, function (d, b, a) {
- var l;
- function c(a, b, c, d) {
- this.j = a;
- this.Km = b;
- this.ja = c;
- this.qc = d;
- this.log = this.ja.yb("KeyStatusStreamFilter", this.j);
- this.d_ = !1;
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Nsa = void 0;
- l = a(476);
- c.prototype.Ls = function (a) {
- this.CFb();
- if (a.lower && 1080 < a.height && !this.d_)
- return this.log.trace("stream restricted", {
- height: a.height,
- bitrate: a.O
- }), !0;
- this.log.debug("stream allowed", {
- height: a.height,
- bitrate: a.O
- });
- return !1;
- };
- c.prototype.rfb = function () {
- var a,
- b,
- c;
- b = {};
- c = null === (a = this.Km.sg.value) || void 0 === a ? void 0 : a.XH;
- null === c || void 0 === c ? void 0 : c.forEach(function (a) {
- b[a.js] = a.cRa.height;
- });
- this.log.trace("KeyStatusMap", b);
- return b;
- };
- c.prototype.Hvb = function (a) {
- var b;
- b = this.Orb[this.qc.encode(a.js)];
- if (1080 < b)
- switch (a.value) {
- case l.lo.Sna:
- this.d_ = !0;
- break;
- case l.lo.TSa:
- this.d_ = !1;
- break;
- default:
- this.d_ = !1,
- this.log.error("Restricting resolution due to keyStatus", {
- keyHeight: b,
- keyStatus: a.value
- }),
- this.Km.Dn.set({
- reason: "keyStatus",
- height: b
- });
- }
- this.log.trace("keyStatus change", {
- keyHeight: b,
- keyStatus: a.value
- });
- };
- c.prototype.CFb = function () {
- var a,
- b,
- c;
- a = this;
- b = this.Km.Df;
- c = b && b.Bha;
- !this.wrb && c && (this.wrb = !0, this.Orb = this.rfb(), b.Bha().subscribe(function (b) {
- return a.Hvb(b);
- }));
- };
- pa.Object.defineProperties(c.prototype, {
- vG: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return "keyStatus";
- }
- }
- });
- b.Nsa = c;
- }, function (d, b, a) {
- var c,
- l,
- q,
- n;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- d = a(80);
- c = a(12);
- l = a(5);
- q = a(534);
- n = a(473);
- d.Qz(function (a, b) {
- if (c.config.Nrb)
- return new q.Nsa(a, b, l.Hf, new n.w3());
- });
- }, function (d, b, a) {
- var l,
- q,
- n;
- function c(a) {
- var c,
- f;
- function b(h) {
- h = h.GDa;
- a.removeEventListener(n.U.mja, b);
- try {
- q.VKa(h.data[0]) && (f = !0, a.dEb());
- c.trace("RA check", {
- HasRA: f
- });
- } catch (A) {
- c.error("RA check exception", A);
- }
- }
- c = l.$g(a, "RAF");
- a.addEventListener(n.U.mja, b);
- return {
- vG: "ra",
- Ls: function (a) {
- if (!f && a.bv)
- return a = a.Vf, !(0 < a.toLowerCase().indexOf("l30") || 0 < a.toLowerCase().indexOf("l31"));
- }
- };
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.C0a = void 0;
- d = a(80);
- l = a(5);
- q = a(275);
- n = a(13);
- a = a(33);
- l.Z.get(a.dk).$Ab && d.Qz(c);
- b.C0a = c;
- }, function (d, b, a) {
- var l,
- q;
- function c(a, b) {
- var c,
- h;
- c = q.$g(a, "MSS");
- if (l.config.Lub)
- return {
- vG: "mss",
- Ls: function (a) {
- var f,
- k;
- if (a.lower && 2160 <= a.height)
- a: {
- for (f = a; f.lower; ) {
- if (2160 > f.height && 1080 < f.height) {
- f = !0;
- break a;
- }
- if (1080 >= f.height)
- break;
- f = f.lower;
- }
- f = !1;
- }
- else
- f = void 0;
- if (f) {
- if (void 0 === h) {
- try {
- k = t.MSMediaKeys;
- h = k && k.isTypeSupportedWithFeatures ? "probably" === k.isTypeSupportedWithFeatures("com.microsoft.playready.software", 'video/mp4;codecs="avc1,mp4a";features="display-res-x=3840,display-res-y=2160,display-bpc=8"') : !1;
- } catch (G) {
- c.error("hasUltraHdDisplay exception");
- h = !0;
- }
- h || (c.warn("Restricting resolution due screen size", {
- MaxHeight: a.height
- }), b.Dn.set({
- reason: "microsoftScreenSize",
- height: a.height
- }));
- }
- return !h;
- }
- }
- };
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.B0a = void 0;
- d = a(80);
- l = a(12);
- q = a(5);
- d.Qz(c);
- b.B0a = c;
- }, function (d, b, a) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- a(80).Qz(function () {
- return {
- vG: "op",
- Ls: function () {}
- };
- });
- }, function (d, b, a) {
- var l,
- q,
- n,
- k,
- p,
- h,
- f,
- u,
- g;
- function c(a, b) {
- var A,
- G,
- C,
- m,
- r,
- z,
- T,
- U,
- ea,
- ha,
- V;
- function c() {
- var c;
- c = a.Qb.value === u.kb.Pc && a.state.value === u.qb.xd && a.u === b.u;
- V ? c || (clearInterval(V), z = V = void 0) : c && (V = t.setInterval(d, 1E3));
- }
- function d() {
- var b,
- c,
- f,
- h,
- d,
- l;
- b = a.qf.value;
- b = (b = b && b.stream) && b.height;
- if (null !== b && 0 < b) {
- c = k.Yg();
- f = a.$i.GB();
- if (f) {
- if (z && 2E3 > c - z.time && b === z.height) {
- h = f - z.Rhb;
- d = G[b];
- d || (G[b] = d = [], b > U && (r.push(b), n.IR(r)));
- 0 < h && !(ha && ha < b) && (ha = b);
- d.push(h);
- d.length > T && d.shift();
- (d = m[b]) || (m[b] = d = {});
- l = d[h];
- d[h] = l ? l + 1 : 1;
- }
- z = {
- time: c,
- Rhb: f,
- height: b
- };
- a.I0 && a.I0.DDb(G);
- }
- }
- }
- A = p.$g(a, "DFF");
- G = {};
- C = l.config.Vhb;
- m = {};
- r = [];
- T = l.config.Thb;
- U = l.config.Uhb;
- ea = q.qta;
- if (l.config.Shb)
- return b.pda = {
- glb: function () {
- var a;
- a = {};
- m && r.forEach(function (b) {
- var c,
- f,
- k;
- c = m[b];
- if (c) {
- f = 0;
- k = 0;
- g.Ad(c, function (a, b) {
- k += h.Pd(a);
- f += b;
- });
- a[b] = k / f;
- }
- });
- return a;
- },
- MN: function (a) {
- var b;
- b = {};
- a.forEach(function (a) {
- b[a] = {};
- });
- m && (n.IR(a), r.forEach(function (c) {
- var h,
- k,
- d,
- l;
- h = m[c];
- if (h) {
- k = 0;
- d = 0;
- g.Ad(h, function (a, b) {
- k += b;
- });
- l = Object.keys(h).map(Number);
- n.IR(l);
- for (var u = l.length - 1, p = l[u], q = a.length - 1; 0 <= q; q--) {
- for (var A = a[q]; p >= A && 0 <= u; )
- (p = h[p]) && (d += p), p = l[--u];
- b[A][c] = f.Kh(d / k * 100);
- }
- }
- }));
- return b;
- }
- },
- a.state.addListener(c),
- a.Qb.addListener(c),
- a.addEventListener(u.U.fp, c), {
- vG: "df",
- Ls: function (a) {
- var c,
- h,
- k,
- d;
- if (a.lower && a.height > U) {
- a = a.height;
- a: {
- if (ha) {
- c = r.length;
- for (var f = 0; f < c; f++) {
- h = r[f];
- if (h >= ha && h < ea) {
- k = G[h];
- if (d = k)
- b: {
- d = C.length;
- for (var l = k.length, u = 0; u < d; u++)
- for (var p = C[u], n = p[0], p = p[1], q = 0; q < l; q++)
- if (k[q] >= p && 0 >= --n) {
- d = !0;
- break b;
- }
- d = !1;
- }
- if (d && ea != h) {
- A.warn("Restricting resolution due to high number of dropped frames", {
- MaxHeight: h
- });
- b.Dn.set({
- reason: "droppedFrames",
- height: h
- });
- c = ea = h;
- break a;
- }
- }
- }
- ha = void 0;
- }
- c = ea;
- }
- a = a >= c;
- } else
- a = !1;
- return a;
- }
- };
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.A0a = void 0;
- d = a(80);
- l = a(12);
- q = a(9);
- n = a(44);
- k = a(35);
- p = a(5);
- h = a(23);
- f = a(10);
- u = a(13);
- g = a(20);
- d.Qz(c);
- b.A0a = c;
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- }, function (d, b, a) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- d = a(5);
- a = a(345);
- a = d.Z.get(a.j3);
- a;
- }, function (d, b, a) {
- var c,
- l,
- q,
- n,
- k,
- p,
- h,
- f,
- u,
- g,
- G,
- C,
- m,
- D,
- K;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- c = a(152);
- l = a(9);
- q = a(12);
- n = a(57);
- k = a(35);
- d = a(2);
- p = a(5);
- h = a(69);
- f = a(10);
- u = a(59);
- g = a(15);
- G = a(46);
- C = a(62);
- a = a(26);
- K = p.Z.get(a.yf);
- K.register(d.J.hsa, function (a) {
- var d;
- function b() {
- var a,
- b,
- h,
- l;
- a = K.startTime;
- b = {
- browserua: f.Nl,
- browserhref: f.gT.href,
- initstart: a,
- initdelay: K.endTime - a
- };
- (a = f.te.documentMode) && (b.browserdm = "" + a);
- "undefined" !== typeof t.nrdp && t.nrdp.device && (b.firmware_version = t.nrdp.device.firmwareVersion);
- g.ev(q.config.JGa) && (b.fesn = q.config.JGa);
- Object.assign(b, c.Lfa());
- h = f.ir && f.ir.timing;
- h && q.config.jtb.map(function (a) {
- var c;
- c = h[a];
- c && (b["pt_" + a] = c - k.$Da());
- });
- l = d.AIa();
- Object.keys(l).forEach(function (a) {
- return b["m_" + a] = l[a];
- });
- a = D.Fn("startup", "info", b, n.kE.pea);
- m.Lc(a);
- }
- D = p.Z.get(C.no);
- m = p.Z.get(G.$j);
- d = p.Z.get(h.Kw);
- K.yO(function () {
- m.Db();
- u.tc(b);
- });
- a(l.kd);
- });
- }, function (d, b, a) {
- var c,
- l,
- q,
- n,
- k,
- p,
- h,
- f,
- u,
- g,
- G,
- C,
- m,
- D,
- K,
- r,
- R,
- P,
- ba;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- c = a(190);
- l = a(121);
- q = a(12);
- n = a(9);
- k = a(2);
- p = a(16);
- h = a(5);
- f = a(69);
- u = a(49);
- g = a(71);
- G = a(20);
- C = a(10);
- m = a(15);
- D = a(44);
- K = a(97);
- r = a(3);
- d = a(26);
- R = a(357);
- P = {};
- ba = h.Z.get(d.yf);
- ba.register(k.J.jsa, function (a) {
- var H,
- J,
- z,
- N,
- na,
- ma,
- ja,
- Q,
- x,
- ia,
- Ga,
- B,
- ka,
- Da;
- function b(b) {
- b && b.userList && q.config.uEb && (b.userList = []);
- N({
- esn: l.xh.yh,
- esnPrefix: l.xh.Rx,
- authenticationType: q.config.SA,
- authenticationKeyNames: q.config.OCa,
- systemKeyWrapFormat: q.config.ZFb,
- serverIdentityId: "MSL_TRUSTED_NETWORK_SERVER_KEY",
- serverIdentityKeyData: ka,
- storeState: b,
- notifyMilestone: ba.fd.bind(ba),
- log: ja,
- ErrorSubCodes: {
- MSL_REQUEST_TIMEOUT: k.I.v0a,
- MSL_READ_TIMEOUT: k.I.u0a
- }
- }, {
- result: function (a) {
- d(a);
- },
- timeout: function () {
- a({
- ha: k.I.Bta
- });
- },
- error: function (b) {
- a(A(k.I.Bta, void 0, b));
- }
- });
- }
- function d(b) {
- var f,
- d,
- l;
- function c() {
- B && h.Z.get(g.Wq).create().then(function (a) {
- return a.save(ia, d, !1);
- })["catch"](function (a) {
- ja.error("Error persisting msl store", k.Kp(a));
- });
- }
- f = h.Z.get(K.bA)(r.Jb(100));
- l = na.extend({
- init: function (a) {
- this.lAa = a;
- },
- getResponse: function (a, b, c) {
- var f,
- k;
- b = this.lAa;
- f = b.gNa.We || f;
- a = m.sha(a.body) ? h.pR(a.body) : a.body;
- p.ZF(a, "Msl should not be sending empty request");
- a = {
- url: b.url,
- tka: a,
- withCredentials: !0,
- lB: "nq-" + b.method,
- headers: b.headers
- };
- b = this.lAa.timeout;
- a.LW = b;
- a.vja = b;
- k = f.download(a, function (a) {
- try {
- if (a.V)
- c.result({
- body: a.content
- });
- else if (400 === a.Ui && a.fb)
- c.result({
- body: a.fb
- });
- else
- throw G.tb(new ma("HTTP error, SubCode: " + a.ha + (a.Ui ? ", HttpCode: " + a.Ui : "")), {
- cadmiumResponse: a
- });
- } catch (wd) {
- c.error(wd);
- }
- });
- return {
- abort: function () {
- k.abort();
- }
- };
- }
- });
- x && b.addEventHandler("shouldpersist", function (a) {
- d = a.storeState;
- f.Mc(c);
- });
- G.tb(P, {
- xTb: function () {
- Ga = !0;
- },
- send: function (a) {
- function c() {
- var b,
- c;
- b = a.gNa;
- c = {
- method: a.method,
- nonReplayable: a.Mvb,
- encrypted: a.Cj,
- userId: a.zIb,
- body: a.body,
- timeout: 2 * a.timeout,
- url: new l(a),
- allowTokenRefresh: B,
- sendUserAuthIfRequired: Da,
- shouldSendUserAuthData: q.config.zEb
- };
- b.$Fa ? (c.email = b.$Fa, c.password = b.password || "") : b.IGb ? (c.token = b.IGb, c.mechanism = b.lUb, b.nja && (c.netflixId = b.nja, c.secureNetflixId = b.DCb), b.Ika && (c.profileGuid = b.Ika)) : b.nja ? (c.netflixId = b.nja, c.secureNetflixId = b.DCb) : b.jub ? (c.mdxControllerToken = b.jub, c.mdxPin = b.jUb, c.mdxNonce = b.iUb, c.mdxEncryptedPinB64 = b.hUb, c.mdxSignature = b.kUb) : Ga || b.useNetflixUserAuthData ? c.useNetflixUserAuthData = !0 : b.Ika && (c.profileGuid = b.Ika);
- return c;
- }
- return new Promise(function (a, f) {
- var h;
- h = c();
- b.send(h).then(function (b) {
- Ga && (Ga = !1);
- a({
- V: !0,
- body: b.body
- });
- })["catch"](function (a) {
- var c,
- h;
- if (a.error) {
- c = a.error.cadmiumResponse && a.error.cadmiumResponse.ha ? a.error.cadmiumResponse.ha : b.isErrorReauth(a.error) ? k.I.Ata : b.isErrorHeader(a.error) ? k.I.o0a : k.I.n0a;
- h = b.getErrorCode(a.error);
- f(A(c, h, a.error));
- } else
- ja.error("Unknown MSL error", a), a.Hb = a.subCode, f({
- ha: a.Hb ? a.Hb : k.I.w0a
- });
- });
- });
- },
- cP: b
- });
- a(n.kd);
- h.Z.get(R.ZS).uvb(P);
- }
- function A(a, b, c) {
- var f,
- h,
- k,
- d;
- d = {
- ha: a,
- pG: b
- };
- if (c) {
- f = function (a) {
- var b;
- a = a || "" + c;
- if (c.stack) {
- b = "" + c.stack;
- a = 0 <= b.indexOf(a) ? b : a + b;
- }
- return a;
- };
- if (k = c.cadmiumResponse) {
- if (h = k.we && k.we.toString())
- k.we = h;
- k.ha = a;
- k.pG = b;
- k.fb = f(c.message);
- k.error = {
- Hb: a,
- qd: h,
- ws: b,
- data: c.cause,
- message: c.message
- };
- return k;
- }
- f = f(c.errorMessage);
- h = G.Pd(c.internalCode) || G.Pd(c.error && c.error.internalCode);
- k = void 0 !== c.Xib ? D.Ija(c.Xib) : void 0;
- }
- f && (d.fb = f);
- h && (d.we = h);
- d.error = {
- Hb: a,
- qd: h.toString(),
- ws: b,
- data: k,
- message: f
- };
- return d;
- }
- p.Xa(q.config);
- H = h.Z.get(f.Kw);
- J = u.Fd.ki;
- if (C.ut && C.Hn && C.Hn.unwrapKey) {
- try {
- z = t.netflix.msl;
- N = z.createMslClient;
- na = z.IHttpLocation;
- ma = z.MslIoException;
- } catch (Oa) {
- a({
- ha: k.I.p0a
- });
- return;
- }
- ja = h.Ah("Msl");
- Q = q.config.qvb;
- x = q.config.svb;
- ia = q.config.Tr ? "mslstoretest" : "mslstore";
- z = c.dD.URa;
- Ga = q.config.$pb;
- B = !z || z.V;
- ka = h.am(q.config.Tr ? "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAm84o+RfF7KdJgbE6lggYAdUxOArfgCsGCq33+kwAK/Jmf3VnNo1NOGlRpLQUFAqYRqG29u4wl8fH0YCn0v8JNjrxPWP83Hf5Xdnh7dHHwHSMc0LxA2MyYlGzn3jOF5dG/3EUmUKPEjK/SKnxeKfNRKBWnm0K1rzCmMUpiZz1pxgEB/cIJow6FrDAt2Djt4L1u6sJ/FOy/zA1Hf4mZhytgabDfapxAzsks+HF9rMr3wXW5lSP6y2lM+gjjX/bjqMLJQ6iqDi6++7ScBh0oNHmgUxsSFE3aBRBaCL1kz0HOYJe26UqJqMLQ71SwvjgM+KnxZvKa1ZHzQ+7vFTwE7+yxwIDAQAB" : "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAlibeiUhffUDs6QqZiB+jXH/MNgITf7OOcMzuSv4G3JysWkc0aPbT3vkCVaxdjNtw50zo2Si8I24z3/ggS3wZaF//lJ/jgA70siIL6J8kBt8zy3x+tup4Dc0QZH0k1oxzQxM90FB5x+UP0hORqQEUYZCGZ9RbZ/WNV70TAmFkjmckutWN9DtR6WUdAQWr0HxsxI9R05nz5qU2530AfQ95h+WGZqnRoG0W6xO1X05scyscNQg0PNCy3nfKBG+E6uIl5JB4dpc9cgSNgkfAIeuPURhpD0jHkJ/+4ytpdsXAGmwYmoJcCSE1TJyYYoExuoaE8gLFeM01xXK5VINU7/eWjQIDAQAB");
- Da = !!q.config.gma;
- h.Z.get(g.Wq).create().then(function (c) {
- Q ? c.remove(ia).then(function () {
- b();
- })["catch"](function (a) {
- ja.error("Unable to delete MSL store", k.Kp(a));
- b();
- }) : x ? c.load(ia).then(function (a) {
- H.mark(J.r0a);
- b(a.value);
- })["catch"](function (f) {
- f.ha == k.I.Hw ? (H.mark(J.t0a), b()) : (ja.error("Error loading msl store", k.Kp(f)), H.mark(J.s0a), c.remove(ia).then(function () {
- b();
- })["catch"](function (b) {
- a(b);
- }));
- }) : b();
- })["catch"](function (b) {
- ja.error("Error creating app storage while loading msl store", k.Kp(b));
- a(b);
- });
- } else
- a({
- ha: k.I.q0a
- });
- });
- }, function (d, b, a) {
- var n,
- k,
- p,
- h;
- function c(a, b, c, d) {
- var f,
- u,
- g;
- n.Xa(h.Xe(a) && !h.isArray(a));
- d = d || "";
- f = "";
- u = a.hasOwnProperty(p.Ei) && a[p.Ei];
- u && k.Ad(u, function (a, b) {
- f && (f += " ");
- f += a + '="' + q(b) + '"';
- });
- c = (b ? b + ":" : "") + c;
- u = d + "<" + c + (f ? " " + f : "");
- g = a.hasOwnProperty(p.Gp) && a[p.Gp].trim && "" !== a[p.Gp].trim() && a[p.Gp];
- if (g)
- return u + ">" + q(g) + "" + c + ">";
- a = l(a, b, d + " ");
- return u + (a ? ">\n" + a + "\n" + d + "" + c + ">" : "/>");
- }
- function l(a, b, d) {
- var f;
- n.Xa(h.Xe(a) && !h.isArray(a));
- d = d || "";
- f = "";
- k.Ad(a, function (a, l) {
- var n;
- if ("$" != a[0])
- for (var u = k.EO(l), p = 0; p < u.length; p++)
- if (l = u[p], f && (f += "\n"), h.Xe(l))
- f += c(l, b, a, d);
- else {
- n = (b ? b + ":" : "") + a;
- f += d + "<" + n + ">" + q(l) + "" + n + ">";
- }
- });
- return f;
- }
- function q(a) {
- if (h.Od(a))
- return k.XN(a);
- if (h.la(a))
- return n.WM(a, "Convert non-integer numbers to string for xml serialization."), "" + a;
- if (null === a || void 0 === a)
- return "";
- n.Xa(!1, "Invalid xml value.");
- return "";
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.GGb = b.Krb = b.Jrb = void 0;
- n = a(16);
- k = a(20);
- p = a(125);
- h = a(15);
- b.Jrb = c;
- b.Krb = l;
- b.GGb = q;
- }, function (d, b, a) {
- var c,
- l;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- d = a(2);
- c = a(5);
- l = a(325);
- a = a(26);
- c.Z.get(a.yf).register(d.J.gsa, function (a) {
- c.Z.get(l.t4)().then(function () {
- a({
- V: !0
- });
- })["catch"](function (b) {
- c.log.error("error in initializing indexedDb debug tool", b);
- a({
- V: !0
- });
- });
- });
- }, function (d, b, a) {
- var c,
- l,
- q,
- n,
- k,
- p,
- h,
- f,
- u;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- c = a(44);
- l = a(9);
- q = a(12);
- n = a(2);
- k = a(266);
- p = a(33);
- h = a(10);
- f = a(5);
- d = a(26);
- u = f.Z.get(d.yf);
- u.register(n.J.tsa, function (a) {
- h.Hn && h.Hn.generateKey && h.Hn.importKey && h.Hn.unwrapKey ? !f.Z.get(p.Mp).ZXa && q.config.SA != k.wz.Q1a && q.config.SA != k.wz.f0a || h.eT ? (u.fd("wcs"), c.sC(h.Hn.generateKey({
- name: "AES-CBC",
- length: 128
- }, !0, ["encrypt", "decrypt"])).then(function () {
- u.fd("wcdone");
- a(l.kd);
- }, function (b) {
- var c;
- b = "" + b;
- 0 <= b.indexOf("missing crypto.subtle") ? c = n.I.B8 : 0 <= b.indexOf("timeout waiting for iframe to load") && (c = n.I.l3a);
- a({
- ha: c,
- fb: b
- });
- })) : a({
- ha: n.I.k3a
- }) : a({
- ha: n.I.B8
- });
- });
- }, function (d, b, a) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- a(12);
- a(9);
- d = a(5);
- a(96);
- a(194);
- a(2);
- a(97);
- a(3);
- a = a(26);
- d.Z.get(a.yf);
- }, function (d, b, a) {
- var h,
- f,
- u,
- g,
- G;
- function c(a) {
- var c,
- k;
- f.ZF(a);
- if (u.Od(a) && b.ysa.test(a)) {
- c = a.split(".");
- if (4 === c.length) {
- for (var h = 0; h < c.length; h++) {
- k = u.Pd(c[h]);
- if (0 > k || !G.dv(k, 0, 255) || 1 !== c[h].length && 0 === c[h].indexOf("0"))
- return;
- }
- return a;
- }
- }
- }
- function l(a) {
- var b;
- b = 0;
- if (c(a) === a)
- return a = a.split("."), b += u.Pd(a[0]) << 24, b += u.Pd(a[1]) << 16, b += u.Pd(a[2]) << 8, b + u.Pd(a[3]);
- }
- function q(a) {
- var c;
- f.ZF(a);
- if (u.Od(a) && a.match(b.zsa)) {
- c = a.split(":");
- -1 !== c[c.length - 1].indexOf(".") && (a = n(c[c.length - 1]), c.pop(), c.push(a[0]), c.push(a[1]), a = c.join(":"));
- a = a.split("::");
- if (!(2 < a.length || 1 === a.length && 8 !== c.length) && (c = 1 < a.length ? k(a) : c, a = c.length, 8 === a)) {
- for (; a--; )
- if (!G.dv(parseInt(c[a], 16), 0, h.rta))
- return;
- return c.join(":");
- }
- }
- }
- function n(a) {
- var b;
- a = l(a) >>> 0;
- b = [];
- b.push((a >>> 16 & 65535).toString(16));
- b.push((a & 65535).toString(16));
- return b;
- }
- function k(a) {
- var b,
- c,
- f;
- b = a[0].split(":");
- a = a[1].split(":");
- 1 === b.length && "" === b[0] && (b = []);
- 1 === a.length && "" === a[0] && (a = []);
- c = 8 - (b.length + a.length);
- if (1 > c)
- return [];
- for (f = 0; f < c; f++)
- b.push("0");
- for (f = 0; f < a.length; f++)
- b.push(a[f]);
- return b;
- }
- function p(a) {
- return -1 << 32 - a;
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.E_a = b.J_a = b.G_a = b.F_a = b.I_a = b.D_a = b.H_a = b.Jz = b.zsa = b.ysa = void 0;
- h = a(9);
- f = a(16);
- u = a(23);
- g = a(10);
- G = a(15);
- b.ysa = /^[0-9.]*$/;
- b.zsa = /^([a-fA-F0-9]*:){2}[a-fA-F0-9:.]*$/;
- b.Jz = "0000000000000000";
- b.H_a = c;
- b.D_a = l;
- b.I_a = q;
- b.F_a = n;
- b.G_a = k;
- b.J_a = function (a, f, h) {
- var k,
- d,
- u,
- n;
- k = c(a);
- d = q(a);
- u = c(f);
- n = q(f);
- if (!k && !d || !u && !n || k && !u || d && !n)
- return !1;
- if (a === k)
- return h = p(h), (l(a) & h) !== (l(f) & h) ? !1 : !0;
- if (a === d) {
- a = a.split(":");
- f = f.split(":");
- for (k = g.ot(h / b.Jz.length); k--; )
- if (a[k] !== f[k])
- return !1;
- h %= b.Jz.length;
- if (0 !== h)
- for (a = parseInt(a[k], 16).toString(2), f = parseInt(f[k], 16).toString(2), a = b.Jz.substring(0, b.Jz.length - a.length) + a, f = b.Jz.substring(0, b.Jz.length - f.length) + f, k = 0; k < h; k++)
- if (a[k] !== f[k])
- return !1;
- return !0;
- }
- return !1;
- };
- b.E_a = p;
- }, function (d, b, a) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- d = a(5);
- b = a(96);
- a = a(194);
- d.Z.get(b.Mz).h1(a.T5.sXa, function (a) {
- var b,
- c;
- b = a.level;
- if (!t._cad_global.config || b <= t._cad_global.config.ntb) {
- a = a.y2();
- c = t.console;
- 1 >= b ? c.error(a) : 2 >= b ? c.warn(a) : c.log(a);
- }
- });
- }, function (d, b, a) {
- var c,
- l;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.CIb = b.P2a = b.N2a = b.M2a = b.O2a = void 0;
- c = a(23);
- l = a(10);
- b.O2a = function (a, b, c) {
- for (c = (c - a.length) / b.length; 0 < c--; )
- a += b;
- return a;
- };
- b.M2a = function (a, b, k) {
- k = c.Od(k) ? k : "...";
- return a.length <= b ? a : a.substr(0, a.length - (a.length + k.length - b)) + k;
- };
- b.N2a = function (a, b) {
- var d;
- for (var c = 1; c < arguments.length; ++c);
- d = l.slice.call(arguments, 1);
- return a.replace(/{(\d+)}/g, function (a, b) {
- return "undefined" != typeof d[b] ? d[b] : a;
- });
- };
- b.P2a = function (a) {
- for (var b = a.length, c = new Uint16Array(b), d = 0; d < b; d++)
- c[d] = a.charCodeAt(d);
- return c.buffer;
- };
- b.CIb = function (a) {
- var b;
- b = new Uint8Array(a.length);
- Array.prototype.forEach.call(a, function (a, c) {
- b[c] = a.charCodeAt(0);
- });
- return b;
- };
- }, function (d) {
- function b(a, b) {
- return a.id === b.id && a.displayTime + a.duration === b.displayTime;
- }
- function a(a) {
- return a.duration;
- }
- function c(a, b) {
- return a + b;
- }
- d.P = {
- Hcb: function (a, b, c) {
- for (var k = 0; k < a.length; k++)
- if (a[k] !== b[k])
- return c.error("indexId mismatch in sidx", {
- sIndexId: a,
- mIndexId: b
- }), !1;
- return !0;
- },
- sca: function (a, b, c) {
- var k;
- k = {};
- k.displayTime = a.Bj;
- k.duration = a.duration;
- k.originX = a.u0;
- k.originY = a.v0;
- k.sizeX = a.b2;
- k.sizeY = a.c2;
- k.imageData = b;
- k.id = a.gs;
- k.rootContainerExtentX = c.w1;
- k.rootContainerExtentY = c.x1;
- return k;
- },
- Vlb: function (a, b) {
- return "o_" + a + "s_" + b;
- },
- $Ua: function (a, b) {
- b("P" == String.fromCharCode(a[1]));
- b("N" == String.fromCharCode(a[2]));
- b("G" == String.fromCharCode(a[3]));
- },
- ac: function (a) {
- return "undefined" !== typeof a;
- },
- ACb: function (a, b) {
- return a.some(function (a) {
- return a.id === b;
- });
- },
- Yhb: function (d, q) {
- return d.filter(b.bind(null, q)).map(a).reduce(c, 0);
- },
- JN: function (a, b) {
- var c,
- k;
- c = Object.create({});
- for (k in a)
- c[k] = a[k];
- a instanceof Error && (c.message = a.message, c.stack = a.stack);
- c.errorString = b;
- return c;
- },
- assert: function (a, b) {
- if (!a)
- throw b && b.error(Error("Assertion Failed").stack), Error("Assertion Failed");
- }
- };
- }, function (d) {
- function b(a) {
- this.buffer = a;
- this.position = 0;
- }
- b.prototype = {
- seek: function (a) {
- this.position = a;
- },
- skip: function (a) {
- this.position += a;
- },
- vk: function () {
- return this.buffer.length - this.position;
- },
- Ae: function () {
- return this.buffer[this.position++];
- },
- Qd: function (a) {
- var b;
- b = this.position;
- this.position += a;
- a = this.buffer;
- return a.subarray ? a.subarray(b, this.position) : a.slice(b, this.position);
- },
- Bc: function (a) {
- for (var b = 0; a--; )
- b = 256 * b + this.buffer[this.position++];
- return b;
- },
- Fs: function (a) {
- for (var b = ""; a--; )
- b += String.fromCharCode(this.buffer[this.position++]);
- return b;
- },
- Vka: function () {
- for (var a = "", b; b = this.Ae(); )
- a += String.fromCharCode(b);
- return a;
- },
- Rb: function () {
- return this.Bc(2);
- },
- Pa: function () {
- return this.Bc(4);
- },
- Hg: function () {
- return this.Bc(8);
- },
- c1: function () {
- return this.Bc(2) / 256;
- },
- PP: function () {
- return this.Bc(4) / 65536;
- },
- Lf: function (a) {
- for (var b, d = ""; a--; )
- b = this.Ae(), d += "0123456789ABCDEF"[b >>> 4] + "0123456789ABCDEF"[b & 15];
- return d;
- },
- Qy: function () {
- return this.Lf(4) + "-" + this.Lf(2) + "-" + this.Lf(2) + "-" + this.Lf(2) + "-" + this.Lf(6);
- },
- QP: function (a) {
- for (var b = 0, d = 0; d < a; d++)
- b += this.Ae() << (d << 3);
- return b;
- },
- JC: function () {
- return this.QP(4);
- },
- DR: function (a) {
- this.buffer[this.position++] = a;
- },
- d3: function (a, b) {
- this.position += b;
- for (var c = 1; c <= b; c++)
- this.buffer[this.position - c] = a & 255, a = Math.floor(a / 256);
- },
- CR: function (a) {
- for (var b = a.length, d = 0; d < b; d++)
- this.buffer[this.position++] = a[d];
- },
- uD: function (a, b) {
- this.CR(a.Qd(b));
- }
- };
- d.P = b;
- }, function (d, b, a) {
- var t,
- z,
- T,
- U,
- ea,
- ha;
- function c(a) {
- t.call(this);
- this.Ilb = h;
- this.il = a.url;
- this.BL = a.request;
- this.mV = a.Vc || 0;
- this.TU = a.Tc;
- this.Cb = a.ja;
- this.hk = this.ni = null;
- this.RK = {};
- this.Tw = 0;
- this.mL = a.bufferSize || 4194304;
- this.j$ = {};
- this.BBa = a.version || 1;
- a.key && (this.eza = a.crypto, this.pA = this.eza.importKey("raw", a.key, {
- name: "AES-CTR"
- }, !1, ["encrypt", "decrypt"]));
- a.zq ? this.ni = a.zq : (this.Ud = a.offset, this.hF = a.size);
- }
- function l() {}
- function q() {}
- function n(a, b) {
- var c,
- f,
- h,
- d,
- u,
- p,
- n,
- q;
- if (a)
- this.emit(ea.ERROR, U.JN(a, ha.g0a));
- else
- try {
- if (2 === this.BBa) {
- f = new l();
- h = T.Tka(b)[0];
- d = h.Yx("636F6D2E-6E65-7466-6C69-782E68696E66");
- u = h.Yx("636F6D2E-6E65-7466-6C69-782E6D696478");
- f.BZ = d.hW;
- f.Qh = d.Qh;
- f.xl = d.xl;
- f.u = d.u;
- f.w1 = d.w1;
- f.x1 = d.x1;
- f.language = d.Vrb;
- f.eGb = d.JFb;
- f.startOffset = u.OCb;
- p = [];
- n = 0;
- for (a = 0; a < u.Va.length; a++) {
- q = u.Va[a];
- b = {};
- b.duration = q.duration;
- b.size = q.size;
- p.push(b);
- n += b.duration;
- }
- f.entries = p;
- f.endTime = n;
- c = f;
- } else {
- p = new z(b);
- n = new l();
- n.identifier = p.Fs(4);
- U.assert("midx" === n.identifier);
- n.version = p.Bc(4);
- U.assert(0 === n.version);
- n.BZ = p.Qd(36);
- n.Qh = p.Hg();
- n.xl = p.Hg();
- n.u = p.Hg();
- n.w1 = p.Rb();
- n.x1 = p.Rb();
- n.language = p.Qd(16);
- n.eGb = p.Qd(16);
- n.startOffset = p.Hg();
- n.Ln = p.Rb();
- f = [];
- for (q = u = 0; q < n.Ln; q++)
- a = {},
- a.duration = p.Bc(4),
- a.size = p.Rb(),
- f.push(a),
- u += a.duration;
- n.entries = f;
- n.endTime = u;
- c = n;
- }
- this.ni = c;
- k.call(this);
- } catch (Za) {
- this.emit(ea.ERROR, U.JN(Za, ha.h0a));
- }
- }
- function k() {
- var a,
- b;
- a = this.ni;
- b = a.startOffset;
- (a = a.entries.reduce(function (a, b) {
- return a + b.size;
- }, 0)) ? (b = {
- url: this.il,
- offset: b,
- size: a
- }, this.emit(ea.i0a, this.ni), this.BL(b, p.bind(this))) : this.emit(ea.ERROR, U.JN({}, ha.J0a));
- }
- function p(a, b) {
- var c,
- h,
- k,
- d;
- c = this;
- if (a)
- c.emit(ea.ERROR, U.JN(a, ha.q2a));
- else {
- h = 0;
- k = [];
- d = 0;
- try {
- c.ni.entries.forEach(function (a) {
- var f,
- u,
- p,
- l,
- n,
- A,
- G;
- u = h;
- p = c.ni.BZ;
- l = c.Cb;
- if (2 === c.BBa) {
- f = new q();
- n = T.Tka(b);
- f.entries = [];
- f.images = [];
- for (var g = 0; g < n.length; g++)
- for (p = n[g], u = p.Yx("636F6D2E-6E65-7466-6C69-782E73696478"), p = p.Yx("636F6D2E-6E65-7466-6C69-782E73656E63"), l = 0; l < u.up.length; l++) {
- A = {};
- G = u.up[l];
- A.Bj = G.Bj;
- A.duration = G.duration;
- A.u0 = G.u0;
- A.v0 = G.v0;
- A.b2 = G.b2;
- A.c2 = G.c2;
- A.gs = G.gs;
- A.SG = G.SG;
- if (G = p && p.up[l])
- A.GX = {
- oy: G.oy.slice(0),
- mode: G.lGa
- };
- f.entries.push(A);
- }
- } else {
- f = new z(b);
- n = new q();
- g = 0;
- f.position = u;
- n.identifier = f.Fs(4);
- U.assert("sidx" === n.identifier);
- n.BZ = f.Qd(36);
- U.Hcb(n.BZ, p, l);
- n.duration = f.Bc(4);
- n.Ln = f.Rb();
- n.entries = [];
- for (n.images = []; g < n.Ln; )
- u = {},
- u.Bj = f.Bc(4),
- u.duration = f.Bc(4),
- u.u0 = f.Rb(),
- u.v0 = f.Rb(),
- u.b2 = f.Rb(),
- u.c2 = f.Rb(),
- u.gs = f.Hg(),
- u.SG = f.Bc(4),
- g++,
- n.entries.push(u);
- f = n;
- }
- k.push(f);
- a.Ama = f;
- f.Rka = d;
- f.MP = d + a.duration;
- d = f.MP;
- n = f.entries;
- n.length && (f.startTime = n[0].Bj, f.endTime = n[n.length - 1].Bj + n[n.length - 1].duration);
- h += a.size;
- });
- } catch (Q) {
- c.emit(ea.ERROR, U.JN(Q, ha.r2a));
- return;
- }
- c.hk = k;
- c.emit(ea.s2a, this.hk);
- a = f.call(c, c.mV, 2);
- a.length ? C.call(c, a, c.mV, function (a) {
- a && c.Cb.error("initial sidx download failed");
- c.emit(ea.mwa);
- }) : c.emit(ea.mwa);
- }
- }
- function h(a) {
- var b,
- c,
- h,
- k,
- d;
- b = f.call(this, a, 2);
- c = (c = this.ni) ? c.endTime : void 0;
- if (a > c)
- return [];
- h = this.RK.Ms;
- k = this.RK.index;
- c = [];
- k = U.ac(k) && this.hk[k + 1];
- if (!(k && k.entries.length || h && !(a > h.endTime)))
- return [];
- b.length && C.call(this, b, a);
- h && h.images.length && (c = g(h, a, [], this.ni));
- k && k.images.length && (b = g(k, a, c, this.ni), c.push.apply(c, b));
- b = G(c);
- if (this.hk && 0 != this.hk.length) {
- c = this.hk[Math.floor(a / 6E4)];
- if (!(c.Rka <= a && a <= c.MP))
- a: {
- c = this.hk.length;
- if (!this.Wib) {
- this.Wib = !0;
- b: {
- try {
- d = String.fromCharCode.apply(String, this.ni.language);
- break b;
- } catch (Q) {}
- d = "";
- }
- this.Cb.error("bruteforce search for ", {
- movieId: this.ni.u,
- packageId: this.ni.xl,
- lang: d
- });
- }
- for (d = 0; d < c; d++)
- if (h = this.hk[d], h.Rka <= a && a <= h.MP) {
- c = h;
- break a;
- }
- c = void 0;
- }
- d = c;
- } else
- d = void 0;
- if (c = d && 0 < d.entries.length && 0 === d.images.length)
- a: {
- c = d.entries.length;
- for (k = 0; k < c; k++)
- if (h = d.entries[k], h.Bj <= a && h.Bj + h.duration >= a) {
- c = !0;
- break a;
- }
- c = !1;
- }
- return c ? null : b;
- }
- function f(a, b) {
- var c,
- k;
- c = [];
- if (a = u.call(this, a))
- this.RK = a;
- else
- return this.RK = {},
- c;
- for (var f = 0, h = this.hk ? this.hk.length : 0; f < b && a.index + f < h; ) {
- k = this.hk[a.index + f];
- k && !k.images.length && c.push(k);
- f++;
- }
- return c;
- }
- function u(a) {
- var b,
- c,
- f,
- h,
- k,
- d,
- u;
- c = this.RK;
- f = c.Ms;
- h = c.index;
- k = this.hk;
- this.qk(U.ac(a));
- f && (0 === h && a <= f.startTime ? (u = !0, b = c) : a >= f.startTime && a <= f.endTime ? (u = !0, b = c) : (d = k[h - 1], k = k[h + 1], d && a > d.endTime && a <= f.startTime ? (u = !0, b = c) : k && a >= f.endTime && a <= k.endTime && (u = !0, b = {
- Ms: k,
- index: h + 1
- })));
- if (!u)
- for (c = this.ni.entries, f = c.length, h = 0; h < f; h++)
- if (d = c[h].Ama, a <= d.startTime || a > d.startTime && a <= d.endTime) {
- b = {
- Ms: c[h].Ama,
- index: h
- };
- break;
- }
- return b;
- }
- function g(a, b, c, f) {
- var h,
- k,
- d,
- u,
- p,
- l;
- h = a.entries;
- k = h.length;
- d = [];
- p = 0;
- if (!h.length)
- return d;
- for (; p < k; ) {
- u = h[p];
- if (u.Bj <= b)
- u.Bj + u.duration >= b && d.push(U.sca(u, a.images[p].data, f));
- else {
- l = d.length && d[d.length - 1] || c.length && c[c.length - 1];
- if (l && l.Bj > b && l.Bj !== u.Bj)
- break;
- l.gs !== u.gs && d.push(U.sca(u, a.images[p].data, f));
- }
- p++;
- }
- return d;
- }
- function G(a) {
- return a.map(function (b, c) {
- b.duration += U.Yhb(a.slice(c + 1), b);
- return b;
- }).reduce(function (a, b) {
- U.ACb(a, b.id) || a.push(b);
- return a;
- }, []);
- }
- function C(a, b, c) {
- var f,
- h,
- k,
- d,
- u,
- p;
- f = this;
- h = a[0];
- k = a[a.length - 1];
- 0 < h.entries.length && (d = h.entries[0].gs, u = h.entries[h.entries.length - 1]);
- 0 < k.entries.length && (U.ac(d) || (d = k.entries[0].gs), u = k.entries[k.entries.length - 1]);
- if (d) {
- h = u.gs + u.SG - d;
- p = U.Vlb(d, h);
- f.j$[p] || (f.j$[p] = !0, m.call(f, a, b), f.BL({
- url: f.il,
- offset: d,
- size: h
- }, function (b, h) {
- var k,
- u,
- l,
- n;
- setTimeout(function () {
- delete f.j$[p];
- }, 1E3);
- if (b)
- c && c(b);
- else {
- k = new z(h);
- u = 0;
- n = [];
- a.forEach(function (a) {
- a.entries.forEach(function (b, c) {
- var h,
- p;
- k.position = b.gs - d;
- h = {
- data: k.Qd(b.SG)
- };
- p = b.GX;
- p && (h.oy = p.oy, h.lGa = p.mode, l = !0, n.push(h));
- a.images[c] = h;
- !b.GX && U.$Ua(a.images[c].data, f.qk.bind(f));
- u += a.images[c].data.length;
- });
- });
- f.Tw += u;
- l ? f.pA.then(function (a) {
- return P.call(f, n, a);
- }).then(function () {
- c && c(null);
- })["catch"](function (a) {
- f.Cb.error("decrypterror", a);
- c && c({
- V: !1
- });
- }) : c && c(null);
- }
- }));
- } else
- c && c(null);
- }
- function m(a, b) {
- var k,
- d,
- p,
- l,
- n,
- q;
- function c() {
- return {
- pts: b,
- hasEnoughSpace: k.Tw + d <= k.mL,
- required: d,
- currentSize: k.Tw,
- max: k.mL,
- currentIndex: u.call(k, b).index,
- sidxWithImages: K.call(k),
- newSidxes: a.map(function (a) {
- return k.hk.indexOf(a);
- })
- };
- }
- function f(a, b) {
- k.TU && !a && k.Cb.info("not done in iteration", b);
- }
- function h(a) {
- var b,
- c,
- f;
- b = k.hk[a];
- c = b.images && b.images.length;
- if (0 < c) {
- f = D([b]);
- b.images = [];
- k.Tw -= f;
- k.TU && k.Cb.info("cleaning up space from sidx", {
- index: a,
- start: b.startTime,
- size: f,
- images: c
- });
- if (k.Tw + d <= k.mL)
- return !0;
- }
- }
- k = this;
- d = D(a);
- k.Cb.info("make space start:", c());
- if (!(k.Tw + d <= k.mL)) {
- p = u.call(k, b).index;
- l = !1;
- n = 0;
- q = k.hk.length - 1;
- if (0 > p) {
- k.Cb.error("inconsistent sidx index");
- return;
- }
- for (; !l && n < p - 2; )
- l = h(n), n++;
- for (f(l, 1); !l && q > p + 2; )
- l = h(q), q--;
- for (f(l, 2); !l && n < p; )
- l = h(n), n++;
- for (f(l, 3); !l && q > p; )
- l = h(q), q--;
- f(l, 4);
- l || k.Cb.error("could not make enough space", {
- maxBuffer: this.mL
- });
- }
- k.Cb.info("make space end", c());
- }
- function D(a) {
- return a.reduce(function (a, b) {
- return a + b.entries.reduce(function (a, b) {
- return b.SG + a;
- }, 0);
- }, 0);
- }
- function K() {
- var a;
- a = [];
- this.ni && this.ni.entries && this.ni.entries.reduce(function (b, c, f) {
- var h;
- c = c.Ama;
- h = 0;
- c && c.images.length && (a.push(f), h = c.images.reduce(function (a, b) {
- return a + b.data.length;
- }, 0));
- return b + h;
- }, 0);
- return a.join(", ");
- }
- function r(a, b) {
- return a && a.Rka <= b && a.MP >= b;
- }
- function R(a, b) {
- var c,
- f,
- h,
- k,
- d,
- u;
- c = this;
- f = c.ni;
- h = c.hk;
- k = h && h.length;
- if (a > b || 0 > a)
- throw Error("invalid range startPts: " + a + ", endPts: " + b);
- if (f && h) {
- if (0 === k)
- return [];
- f = h[0].duration;
- if (U.ac(f) && 0 < f)
- f = Math.floor(a / f), d = f < k && r(h[f], a) ? h[f] : void 0;
- else
- for (c.TU && c.Cb.warn("duration not defined, so use brute force to get starting sidx"), f = 0; f < k; f++) {
- u = h[f];
- if (r(u, a)) {
- d = u;
- break;
- }
- }
- if (U.ac(d)) {
- d = [];
- for (var p = function (c) {
- var f;
- f = c.Bj <= a && a <= c.Bj + c.duration;
- return a <= c.Bj && c.Bj <= b || f;
- }; f < k; ) {
- u = h[f];
- d = d.concat(u.entries.filter(p));
- if (b < u.MP)
- break;
- f++;
- }
- d = d.map(function (a) {
- return U.sca(a, null, c.ni);
- });
- return G(d);
- }
- }
- }
- function P(a, b) {
- var f,
- h;
- function c(a, b) {
- var c,
- f;
- c = this;
- f = new Uint8Array(16);
- f.set(a.oy);
- return c.eza.decrypt({
- name: "AES-CTR",
- counter: f,
- length: 128
- }, b, a.data).then(function (b) {
- a.data.set(new Uint8Array(b));
- U.$Ua(a.data, c.qk.bind(c));
- });
- }
- f = this;
- try {
- h = [];
- a.forEach(function (a) {
- a.oy && (a = c.call(f, a, b), h.push(a));
- });
- return (void 0).all(h);
- } catch (ja) {
- return f.Cb.error("decrypterror", ja),
- (void 0).reject(ja);
- }
- }
- t = a(129).EventEmitter;
- z = a(552);
- T = a(318);
- U = a(551);
- ea = c.events = {
- i0a: "midxready",
- s2a: "sidxready",
- mwa: "ready",
- ERROR: "error"
- };
- ha = c.ASb = {
- g0a: "midxdownloaderror",
- h0a: "midxparseerror",
- J0a: "nosidxfoundinmidx",
- q2a: "sidxdownloaderror",
- r2a: "sidxparseerror"
- };
- c.prototype = Object.create(t.prototype);
- c.prototype.constructor = c;
- c.prototype.start = function () {
- var a;
- if (this.ni)
- this.Cb.warn("midx was prefectched and provided"), k.call(this);
- else {
- a = {
- url: this.il,
- offset: this.Ud,
- size: this.hF,
- responseType: "binary"
- };
- this.Cb.warn("downloading midx...");
- this.BL(a, n.bind(this));
- }
- };
- c.prototype.close = function () {};
- c.prototype.qk = function (a) {
- this.TU && U.assert(a, this.Cb);
- };
- c.prototype.cy = function (a, b) {
- return R.call(this, a, b);
- };
- c.prototype.Ufa = function (a, b) {
- return (a = this.cy(a, b)) ? a.length : a;
- };
- d.P = c;
- }, function (d, b, a) {
- var q;
- function c(a, b) {
- return b.reduce(l.bind(this, a), []);
- }
- function l(a, b, c) {
- var h,
- f;
- h = c.displayTime - a;
- a = c.displayTime + c.duration - a;
- f = 0 < b.length ? b[0].timeout : Infinity;
- return 0 < h && h < f ? [{
- timeout: h,
- type: "showsubtitle",
- ve: c
- }
- ] : h === f ? b.concat([{
- timeout: h,
- type: "showsubtitle",
- ve: c
- }
- ]) : 0 < a && a < f ? [{
- timeout: a,
- type: "removesubtitle",
- ve: c
- }
- ] : a === f ? b.concat([{
- timeout: a,
- type: "removesubtitle",
- ve: c
- }
- ]) : b;
- }
- q = a(129).EventEmitter;
- b = a(276)({});
- a = function k(a, b, c) {
- if (!(this instanceof k))
- return new k(a, b, c);
- q.call(this);
- this.It = a;
- this.h5a = b;
- this.Ut = {};
- this.iF = {};
- this.Cb = c || console;
- this.kU = !1;
- };
- a.prototype = Object.create(q.prototype);
- a.prototype.stop = function () {
- var a;
- a = this;
- clearTimeout(a.gl);
- Object.keys(a.Ut).forEach(function (b) {
- a.emit("removesubtitle", a.Ut[b]);
- });
- a.Ut = {};
- };
- a.prototype.pause = function () {
- clearTimeout(this.gl);
- };
- a.prototype.Sq = function (a, b) {
- var h,
- f;
- h = this;
- f = h.It();
- clearTimeout(this.gl);
- a = h.h5a(f);
- null !== a && h.kU && (h.kU = !1, h.emit("bufferingComplete"));
- b = "number" === typeof b ? b : 0;
- Object.keys(h.Ut).forEach(function (a) {
- a = h.Ut[a];
- a.displayTime <= f && f < a.displayTime + a.duration || (delete h.Ut[a.id], h.emit("removesubtitle", a));
- });
- Object.keys(h.iF).forEach(function (a) {
- a = h.iF[a];
- f >= a.displayTime + a.duration && delete h.iF[a.id];
- });
- null !== a && 0 < a.length ? (b = a.length, h.Cb.info("found " + b + " entries for pts " + f), a.forEach(function (a) {
- a.displayTime <= f && f < a.displayTime + a.duration && !h.Ut[a.id] && (h.emit("showsubtitle", a), h.Ut[a.id] = a, delete h.iF[a.id]);
- }), b = a[a.length - 1], h.Ut[b.id] || h.iF[b.id] || (h.emit("stagesubtitle", b), h.iF[b.id] = b), b = c(f, a), 0 < b.length ? h.uV(b[0].timeout) : h.uV(2E4)) : null === a ? (a = 250 * Math.pow(2, b), 2E3 < a && (a = 2E3), h.Cb.warn("checking buffer again in " + a + "ms"), h.kU || (h.kU = !0, h.emit("underflow")), h.uV(a, b + 1)) : h.uV(2E4);
- };
- a.prototype.uV = function (a, b) {
- var c;
- c = this;
- c.Cb.trace("Scheduling pts check.");
- c.gl = setTimeout(function () {
- c.Sq(c.It(), b);
- }, a);
- };
- d.P = b(["function", "function", "object"], a);
- }, function (d, b, a) {
- var k,
- p,
- h;
- function c(a) {
- var b;
- b = 1;
- "dfxp-ls-sdh" === this.lV && (b = a.kRb.length);
- this.Cb.info("show subtitle called at " + this.It() + " for displayTime " + a.displayTime);
- this.emit("showsubtitle", a);
- this.$w[this.$w.length - 1].X1 += b;
- }
- function l(a) {
- this.Cb.info("remove subtitle called at " + this.It() + " for remove time " + (a.displayTime + a.duration));
- this.emit("removesubtitle", a);
- }
- function q() {
- this.Cb.info("underflow fired by the subtitle timer");
- this.emit("underflow");
- }
- function n() {
- this.Cb.info("bufferingComplete fired by the subtitle timer");
- this.emit("bufferingComplete");
- }
- k = a(129).EventEmitter;
- p = a(554);
- b = a(276)();
- h = a(553);
- a = function u(a, b) {
- var d,
- g;
- d = this;
- g = a.Tc || !1;
- if (!(d instanceof u))
- return new u(a, b);
- k.call(d);
- d.Cb = a.ja || console;
- d.BL = a.request;
- d.It = a.SIa;
- d.gl = null;
- d.Ot = !0;
- d.$w = [];
- d.lV = b.profile;
- d.il = b.url;
- d.mV = b.Vc;
- d.n7a = b.Xyb;
- d.B4a = b.hm;
- a = {
- url: d.il,
- request: d.BL,
- Vc: d.mV,
- xml: b.xml,
- Xyb: d.n7a,
- hm: d.B4a,
- ja: d.Cb,
- Tc: g,
- bufferSize: b.bufferSize,
- crypto: b.crypto,
- key: b.key,
- zq: b.zq
- };
- if ("nflx-cmisc" === d.lV)
- a.offset = b.O_, a.size = b.bja, d.Jd = new h(a);
- else if ("nflx-cmisc-enc" === d.lV)
- a.version = 2, a.offset = b.O_, a.size = b.bja, d.Jd = new h(a);
- else
- throw Error("SubtitleManager: " + d.lV + " is an unsupported profile");
- d.Jd.on("ready", function () {
- var a,
- h;
- a = !!b.iab;
- d.Cb.info("ready event fired by subtitle stream");
- d.emit("ready");
- h = d.Jd.Ilb.bind(d.Jd);
- d.gl = new p(d.It, h, d.Cb);
- d.gl.on("showsubtitle", c.bind(d));
- d.gl.on("removesubtitle", l.bind(d));
- d.gl.on("underflow", q.bind(d));
- d.gl.on("bufferingComplete", n.bind(d));
- a && (d.Cb.info("autostarting subtitles"), setTimeout(function () {
- d.Sq(d.It());
- }, 10));
- });
- d.Jd.on("error", d.emit.bind(d, "error"));
- };
- a.prototype = Object.create(k.prototype);
- a.prototype.start = function () {
- this.Jd.start();
- };
- a.prototype.Sq = function (a) {
- this.Ot && (this.Ot = !1, this.Cb.info("creating a new subtitle interval at " + a), this.$w.push({
- T: a,
- X1: 0
- }));
- null !== this.gl && this.gl.Sq(a);
- };
- a.prototype.stop = function () {
- var a;
- this.It();
- this.Cb.info("stop called");
- this.Ot || this.pause();
- this.Jd.removeAllListeners(["ready"]);
- null !== this.gl && this.gl.stop();
- a = this.$w.reduce(function (a, b) {
- a.wSa += b.X1;
- a.gq += b.AGa;
- a.yqb.push(b);
- return a;
- }, {
- wSa: 0,
- gq: 0,
- yqb: []
- });
- "object" === typeof this.Jd && this.Jd.close();
- this.Cb.info("metrics: " + JSON.stringify(a));
- return a;
- };
- a.prototype.pause = function () {
- var a,
- b;
- a = this.It();
- if (this.Ot)
- this.Cb.warn("pause called on subtitle manager, but it was already paused!");
- else {
- this.Cb.info("pause called at " + a);
- this.Ot = !0;
- this.Cb.info("ending subtitle interval at " + a);
- b = this.$w[this.$w.length - 1];
- b.na = a;
- b.na < b.T && (this.Cb.warn("correcting for interval where endPts is smaller than startPts"), b.T = 0 < b.na ? b.na - 1 : 0);
- b.AGa = this.Jd.Ufa(b.T, b.na);
- this.Cb.info("showed " + b.X1 + " during this interval");
- this.Cb.info("expected " + b.AGa + " for this interval");
- }
- null !== this.gl && this.gl.pause();
- };
- a.prototype.cy = function (a, b) {
- return this.Jd.cy(a, b);
- };
- a.prototype.Ufa = function (a, b) {
- return this.Jd.Ufa(a, b);
- };
- a = b([{
- request: "function",
- SIa: "function",
- ja: "object"
- }, "object"], a);
- d.P = a;
- }, function (d, b, a) {
- var c,
- l,
- q,
- n,
- k,
- p,
- h;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.voa = void 0;
- c = a(0);
- l = a(1);
- q = a(30);
- n = a(41);
- k = a(40);
- p = a(28);
- h = a(238);
- d = function () {
- var b;
- function a(a, b, c, f) {
- a = k.fe.call(this, a, void 0 === f ? "AppInfoConfigImpl" : f) || this;
- a.config = b;
- a.D2 = c;
- return a;
- }
- da(a, k.fe);
- a.prototype.cnb = function (a) {
- return "" + this.oGa + (this.D2.xma(a) ? "/msl_v1" : "");
- };
- a.prototype.knb = function (a) {
- return "" + this.host + (this.D2.xma(a) ? "/msl" : "") + "/playapi";
- };
- pa.Object.defineProperties(a.prototype, {
- endpoint: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.host + "/api";
- }
- },
- oGa: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.host + "/nq";
- }
- },
- host: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- var a;
- switch (this.config.oG) {
- case q.ht.I2a:
- a = "www.stage";
- break;
- case q.ht.Ixa:
- a = "www-qa.test";
- break;
- case q.ht.Isa:
- a = "www-int.test";
- break;
- default:
- a = "www";
- }
- return "https://" + a + ".netflix.com";
- }
- },
- ZCa: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return "pbo_manifests";
- }
- }
- });
- b = a;
- c.__decorate([n.config(n.string, "apiEndpoint")], b.prototype, "endpoint", null);
- c.__decorate([n.config(n.string, "nqEndpoint")], b.prototype, "oGa", null);
- c.__decorate([n.config(n.string, "bindService")], b.prototype, "ZCa", null);
- return b = c.__decorate([l.N(), c.__param(0, l.l(p.Li)), c.__param(1, l.l(q.Yj)), c.__param(2, l.l(h.wK)), c.__param(3, l.l(p.Az)), c.__param(3, l.optional())], b);
- }
- ();
- b.voa = d;
- }, function (d, b, a) {
- var c,
- l,
- q,
- n;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.profile = b.oCa = void 0;
- c = a(556);
- l = a(116);
- d = a(1);
- q = a(90);
- n = a(14);
- b.oCa = new d.Ec(function (a) {
- a(l.oz).to(c.voa).aa();
- });
- b.profile = new d.Ec(function (a) {
- a(q.nE).iz(function (a) {
- return (a = a.lb.get(n.jd)()) && a.Tr ? "browsertest" : "browser";
- });
- });
- }, function (d, b, a) {
- var c,
- l,
- q;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.IPa = void 0;
- c = a(2);
- l = [c.J.h_a, c.J.osa, c.J.msa, c.J.nsa, c.J.tsa, c.J.isa, c.J.gsa, c.J.q5, c.J.usa, c.J.jsa, c.J.e_a, c.J.f_a, c.J.hsa, c.J.pw, c.J.dsa, c.J.fsa, c.J.qsa, c.J.rsa, c.J.ssa, c.J.i_a, c.J.k_a, c.J.o_a, c.J.m_a, c.J.l_a, c.J.j_a, c.J.n_a, c.J.psa, c.J.lsa, c.J.ksa, c.J.esa];
- (function (a) {
- a.Q0a = function (a) {
- var f;
- for (var b = {}, h = 0; h < a.length; h++) {
- f = a[h];
- if (b[f.errorCode])
- return {
- errorCode: f.errorCode,
- ha: c.I.OVa
- };
- b[f.errorCode] = 1;
- }
- };
- a.R0a = function (a) {
- var h;
- for (var b = 0; b < a.length; b++) {
- h = a[b];
- if (-1 === l.indexOf(h.errorCode))
- return {
- errorCode: h.errorCode,
- ha: c.I.PVa
- };
- }
- };
- }
- (q || (q = {})));
- b.IPa = function (a) {
- return new Promise(function (b, c) {
- var h;
- h = q.R0a(a);
- h && c(h);
- (h = q.Q0a(a)) && c(h);
- b(a.sort(function (a, b) {
- return l.indexOf(a.errorCode) - l.indexOf(b.errorCode);
- }));
- });
- };
- }, function (d, b, a) {
- var c,
- l,
- q,
- n,
- k,
- p,
- h,
- f,
- u,
- g,
- G,
- m,
- H,
- D;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Qoa = void 0;
- c = a(0);
- l = a(69);
- q = a(2);
- n = a(558);
- k = a(49);
- p = a(1);
- h = a(8);
- f = a(14);
- u = a(64);
- g = a(3);
- G = a(86);
- m = a(277);
- H = a(24);
- D = a(9);
- d = function () {
- var b;
- function a(a, b, c, f, h, d) {
- var k;
- k = this;
- this.jj = a;
- this.config = c;
- this.Lk = f;
- this.debug = h;
- this.qa = d;
- this.PTa = [];
- this.Uc = {};
- this.log = b.yb("loadAsync");
- this.Atb = m.Ara(function (a) {
- k.VAb = !0;
- k.startTime = k.qa.$b().ca(g.ia);
- k.load(k.PTa).then(function () {
- k.endTime = k.qa.$b().ca(g.ia);
- a(D.kd);
- })["catch"](function (b) {
- k.endTime = k.qa.$b().ca(g.ia);
- a(b);
- });
- });
- }
- a.prototype.yO = function (a) {
- this.Atb(a);
- };
- a.prototype.register = function (a, b) {
- this.debug.assert(!this.VAb);
- this.PTa.push({
- Rsb: this.Cbb(b),
- errorCode: a
- });
- };
- a.prototype.fd = function (a) {
- this.debug.assert(void 0 === this.Uc[a]);
- this.Uc[a] = this.qa.$b().ca(g.ia);
- };
- a.prototype.load = function (a) {
- var b;
- b = this;
- return n.IPa(a).then(function (a) {
- b.jj.mark(k.Fd.ki.UVa);
- return a.reduce(function (a, c) {
- return a.then(function () {
- return b.Nsb(c);
- });
- }, Promise.resolve()).then(function () {
- b.jj.mark(k.Fd.ki.SVa);
- });
- });
- };
- a.prototype.Nsb = function (a) {
- var b,
- c;
- b = this;
- c = a.Rsb;
- return this.Lk.Hm(g.Jb(this.config().N$a), c())["catch"](function (c) {
- b.log.error("Failed to load component " + a.errorCode, c);
- b.jj.mark(k.Fd.ki.TVa);
- if (c instanceof u.gn)
- throw {
- ha: q.I.RVa,
- errorCode: a.errorCode
- };
- c.errorCode = c.errorCode || a.errorCode;
- c.ha = c.ha || q.I.QVa;
- throw c;
- });
- };
- a.prototype.Cbb = function (a) {
- return function () {
- return new Promise(function (b, c) {
- a(function (a) {
- a.V ? b() : c(a);
- });
- });
- };
- };
- b = a;
- return b = c.__decorate([p.N(), c.__param(0, p.l(l.Kw)), c.__param(1, p.l(h.Bb)), c.__param(2, p.l(f.jd)), c.__param(3, p.l(u.Fw)), c.__param(4, p.l(G.$q)), c.__param(5, p.l(H.Oe))], b);
- }
- ();
- b.Qoa = d;
- }, function (d, b, a) {
- var c,
- l;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.ECa = void 0;
- d = a(1);
- c = a(559);
- l = a(26);
- b.ECa = new d.Ec(function (a) {
- a(l.yf).to(c.Qoa).aa();
- });
- }, function (d, b, a) {
- var l,
- q,
- n,
- k,
- p,
- h,
- f;
- function c(a, b, c, f, h, d, k, q, g, m) {
- var u;
- u = p.YJ.call(this, b, c, g, m) || this;
- u.Mj = a;
- u.ja = f;
- u.me = h;
- u.qa = d;
- u.Fyb = k;
- u.yG = !1;
- u.Bka = Promise.resolve();
- u.YMa = q.nca({
- Ffa: function () {
- return n.Jb(100);
- }
- }, function () {
- return u.Sh().wY() || 0;
- });
- u.Kb.addListener(l.wb.loaded, function () {
- return u.VH();
- });
- return u;
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.gxa = void 0;
- l = a(13);
- q = a(181);
- n = a(3);
- k = a(2);
- p = a(278);
- h = a(282);
- f = a(112);
- da(c, p.YJ);
- c.prototype.mP = function () {
- this.VH();
- };
- c.prototype.mOa = function () {};
- c.prototype.sJa = function (a, b) {
- var c,
- h,
- d,
- u;
- c = this.Kc.ah(a);
- if (this.Mj.Q2 && this.Kc.ga.oa === c.oa)
- return Promise.resolve(this.Sh().seek(c.sf, l.Ge.xt, void 0));
- h = this.Gl.XY(c.oa);
- b = f.aja(h.gb, b);
- d = this.Sh().as();
- if (h.state !== q.qo.l4)
- return h = h.state === q.qo.Error ? h.error : this.me(k.J.r1a, {
- fb: a
- }), d.Fob({
- oa: c.oa,
- Na: a,
- Oa: b
- }, h), d.Fo("Transition " + this.Kc.zg + "->" + a + " error " + h.mB), Promise.reject();
- c = d.Gb;
- if (!c)
- throw this.ja.debug("No streaming session. Aborting transition"), Error("No streaming session");
- this.ja.debug("going to next segment: " + this.Kc.zg + " -> " + a);
- d.Fo("Transition " + this.Kc.zg + "->" + a);
- u = d.Ru(a);
- u.Rk = this.qa.$b().ca(n.ia);
- u.Oa = b;
- return (void 0 !== c.uY(a) ? this.Gob(a, u.u) : this.hQ(a, u.u)).then(function () {
- d.fHa(u.u);
- });
- };
- c.prototype.hQ = function (a, b) {
- var c;
- c = this.Kc.Nj.Va[a].sf;
- this.ja.debug("Segment is not pre-buffered - performing a regular seek");
- this.Sh().as().Fo("NO DATA " + a + ", SEEKING " + c + ", viewableId: " + b);
- return Promise.resolve(this.Sh().seek(c, l.Ge.xt, a, !0));
- };
- c.prototype.Gob = function (a, b) {
- var c,
- f,
- h,
- d,
- k;
- c = this;
- f = this.Sh().as();
- h = f.Gb;
- if (!h)
- throw Error("No streaming session");
- d = new Promise(function (a) {
- function b() {
- c.ja.debug("Stopped ASE");
- h.removeEventListener("stop", b);
- a();
- }
- h.addEventListener("stop", b);
- });
- k = new Promise(function (a) {
- function b() {
- c.ja.debug("Repositioned");
- f.removeEventListener(l.U.qp, b);
- a();
- }
- function d() {
- c.ja.debug("Repositioning");
- f.removeEventListener(l.U.Is, d);
- h.stop();
- }
- f.addEventListener(l.U.Is, d);
- f.addEventListener(l.U.qp, b);
- });
- d = Promise.all([d, k]).then(function () {
- if (!h.vu(a, !1, !0))
- return f.Fo("Seek forced - ASE chooseNextSegment failed. Likely ASE entered panic mode and chose a default segment."), c.hQ(a, b);
- f.fireEvent(l.U.e0, {
- zg: c.Kc.zg,
- gP: a
- });
- });
- k = h.KM(void 0, this.Kc.Nj.Va[a].sf, a);
- this.ja.debug("Calling seek on internal player to " + k);
- this.Sh().seek(k, l.Ge.Yz, a, !0);
- return d;
- };
- c.prototype.Cka = function (a) {
- if (!this.yG)
- return this.yG = !0, p.YJ.prototype.Cka.call(this, a);
- this.VH();
- this.Bka = this.Sh().as().Qb.when(function (a) {
- return a !== l.kb.bg;
- }).then(function () {});
- return this.Gl.XY(a.u).mAb;
- };
- c.prototype.VH = function () {
- var a,
- b;
- a = this;
- if (this.isReady()) {
- this.YMa.cancel();
- b = this.Fyb.xEb();
- b.result === h.po.Qsa ? this.YMa.observe(b.Si, function () {
- a.VH();
- }) : b.result === h.po.H8 && this.gzb(b.iVa);
- }
- };
- c.prototype.gzb = function (a) {
- var c,
- f,
- h,
- d,
- k,
- u,
- p;
- function b(a) {
- a.u === k && (c.Kc.zg = f, c.VH(), d.removeEventListener(l.U.fp, b), c.Kb.Xb(l.Vz.kQ));
- }
- c = this;
- f = a.Na;
- h = this.Kc.ah(f);
- d = this.Sh().as();
- a = Object.assign(this.Gl.XY(a.oa).gb || {}, {
- T: h.sf,
- na: h.Bg,
- Zi: !1,
- G2: Date.now(),
- $Z: !0
- });
- k = d.oaa({
- oa: h.oa,
- Na: f,
- Oa: a
- });
- u = d.pm(k);
- this.ja.debug("Creating new playback xid: " + u.fa + ", movieId: " + u.u);
- d.addEventListener(l.U.fp, b);
- p = "pauseAtStart" !== h.pe;
- this.Gl.JDb(h.oa);
- d.Fo("queueManifest", u.Na);
- this.Bka = a = this.Bka.then(function () {
- return d.Wzb(k, p);
- }).then(function () {
- d.Fo("queueManifest done", u.Na);
- c.Gl.YRa(h.oa);
- d.$yb(u);
- })["catch"](function (a) {
- d.Fo("queueManifest error " + a.mB, u.Na);
- c.Gl.IDb(h.oa, a);
- throw a;
- });
- a.then(function () {
- return c.VH();
- });
- };
- b.gxa = c;
- }, function (d, b, a) {
- var c,
- l,
- q,
- n,
- k,
- p,
- h,
- f,
- u,
- g,
- G,
- m;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Tva = void 0;
- c = a(0);
- l = a(1);
- q = a(60);
- n = a(24);
- k = a(124);
- p = a(561);
- h = a(458);
- f = a(246);
- u = a(14);
- g = a(278);
- G = a(247);
- m = a(29);
- d = function () {
- var b;
- function a(a, b, c, f, h, d, k, u) {
- this.qa = a;
- this.me = b;
- this.NCb = f;
- this.Mj = d;
- this.By = k;
- this.Bm = u;
- this.LCb = c.Xx(!1, "6.0023.976.031", a.id, u, h);
- }
- a.prototype.create = function (a, b, c, f, h) {
- var d,
- k;
- d = this.NCb.vfb(this.LCb);
- k = this.Mj.P2 || this.Mj.XUa && 1 < Object.keys(a.Nj.Va).length;
- c.debug("Using " + (k ? "single" : "multiple") + " player playback strategy");
- return k ? new p.gxa(this.Mj, a, b, c, this.me, this.qa, f, this.By, d, h) : new g.YJ(a, b, d, h);
- };
- b = a;
- return b = c.__decorate([l.N(), c.__param(0, l.l(n.Oe)), c.__param(1, l.l(q.Vk)), c.__param(2, l.l(h.W7)), c.__param(3, l.l(f.PT)), c.__param(4, l.l(u.jd)), c.__param(5, l.l(k.mE)), c.__param(6, l.l(G.YS)), c.__param(7, l.l(m.jE))], b);
- }
- ();
- b.Tva = d;
- }, function (d, b, a) {
- var c,
- l,
- q,
- n,
- k,
- p;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Nva = void 0;
- c = a(0);
- l = a(1);
- q = a(40);
- n = a(28);
- k = a(41);
- p = a(3);
- d = function () {
- var b;
- function a(a) {
- return q.fe.call(this, a, "PlaygraphConfigImpl") || this;
- }
- da(a, q.fe);
- pa.Object.defineProperties(a.prototype, {
- DPa: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return 2;
- }
- },
- CPa: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return p.aP(3);
- }
- },
- P2: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return !1;
- }
- },
- Q2: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return !1;
- }
- },
- XUa: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return !0;
- }
- }
- });
- b = a;
- c.__decorate([k.config(k.cw, "prepareSegmentsUpfront")], b.prototype, "DPa", null);
- c.__decorate([k.config(k.fh, "prepareSegmentsDuration")], b.prototype, "CPa", null);
- c.__decorate([k.config(k.Kd, "usePlaygraphForPostPlay")], b.prototype, "P2", null);
- c.__decorate([k.config(k.Kd, "usePlaygraphForSkipSegment")], b.prototype, "Q2", null);
- c.__decorate([k.config(k.Kd, "useSinglePlayerPlayback")], b.prototype, "XUa", null);
- return b = c.__decorate([l.N(), c.__param(0, l.l(n.Li))], b);
- }
- ();
- b.Nva = d;
- }, function (d, b, a) {
- var c,
- l,
- q;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Ova = void 0;
- c = a(0);
- l = a(1);
- q = a(144);
- d = function () {
- var b;
- function a() {}
- a.prototype.Ffb = function (a) {
- var d,
- k,
- l;
- for (var b = [], c = 0; c < arguments.length; ++c)
- b[c - 0] = arguments[c];
- d = this;
- if (0 === b.length)
- throw Error("Empty playgraph");
- k = new q.AT().mma(this.nY(b[0]));
- b.reverse().forEach(function (a) {
- var b;
- b = d.nY(a);
- k.Sp(b, Object.assign({
- oa: a,
- sf: 0
- }, l ? {
- ol: l
- }
- : {}));
- l = b;
- });
- return k.kk();
- };
- a.prototype.nY = function (a, b) {
- return a + ":[startPts:" + (void 0 === b ? 0 : b) + "]";
- };
- a.prototype.l$a = function (a, b) {
- var c,
- h,
- d,
- k;
- c = void 0 === c ? this.nY(b.u, b.T) : c;
- h = void 0 === h ? "pauseAtStart" : h;
- d = this.Emb(a);
- k = new q.AT(a);
- k.Sp(c, {
- oa: b.u,
- sf: b.T || 0,
- pe: h
- });
- a = a.Va[d];
- b = {};
- k.Sp(d, Object.assign({}, a, {
- ol: c,
- next: Object.assign({}, a.next || {}, (b[c] = {}, b))
- }));
- return k.kk();
- };
- a.prototype.Emb = function (a) {
- for (var b = a.Th, c = b; c = a.Va[c].ol; )
- b = c;
- return b;
- };
- b = a;
- return b = c.__decorate([l.N()], b);
- }
- ();
- b.Ova = d;
- }, function (d, b, a) {
- var c,
- l;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Xva = void 0;
- c = a(0);
- l = a(1);
- d = function () {
- var d;
- function b() {}
- b.prototype.create = function (b, c, h) {
- return new(a(279)).pya(b, c, h);
- };
- d = b;
- return d = c.__decorate([l.N()], d);
- }
- ();
- b.Xva = d;
- }, function (d, b, a) {
- var l,
- q;
- function c(a, b, c) {
- this.Mj = a;
- this.Jf = b;
- this.Gl = c;
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Uva = void 0;
- l = a(3);
- q = a(282);
- c.prototype.xEb = function () {
- var a,
- b,
- c,
- h,
- f;
- a = this.Gl.vNa;
- if (!a)
- return {
- result: q.po.aK
- };
- b = this.Jf.Kc;
- if (b.zg === a.Na)
- return {
- result: q.po.H8,
- iVa: a
- };
- c = this.Mnb(b, b.zg, a.Na);
- if (!c)
- return {
- result: q.po.aK
- };
- h = c.duration;
- if (c.Du >= this.Mj.DPa)
- return {
- result: q.po.aK
- };
- c = this.aIa(b.zg);
- if (!c)
- return {
- result: q.po.aK
- };
- b = this.Jf.Sh().wY() || 0;
- c = Math.max(0, c - b);
- h = c + h;
- f = this.Mj.CPa.ca(l.ia);
- if (h <= f)
- return {
- result: q.po.H8,
- iVa: a
- };
- a = h - f;
- return c < a ? {
- result: q.po.aK
- }
- : {
- result: q.po.Qsa,
- Si: b + a
- };
- };
- c.prototype.Mnb = function (a, b, c) {
- var d,
- k,
- f;
- b = a.LN(b);
- for (var h = 0, f = 0; b !== c && void 0 !== b; ) {
- h++;
- d = a.ah(b);
- k = this.aIa(b) || Infinity;
- f = f + (k - d.sf);
- b = a.LN(b);
- }
- return b ? {
- Du: h,
- duration: f
- }
- : void 0;
- };
- c.prototype.aIa = function (a) {
- var b,
- c;
- b = this.Jf.Kc;
- c = b.$Ia(a);
- if (void 0 !== c)
- return c;
- a = b.ah(a);
- if (a = this.Jf.pm(a.oa))
- return a.Qr.ca(l.ia);
- };
- b.Uva = c;
- }, function (d, b, a) {
- var l;
- function c() {}
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Rva = void 0;
- l = a(144);
- c.prototype.SGb = function (a) {
- var b;
- if (!this.srb(a.Va))
- return a;
- b = new l.AT().mma(a.Th);
- Object.keys(a.Va).forEach(function (c) {
- c === a.Th ? b.Sp(c, Object.assign(Object.assign({}, a.Va[c]), {
- next: void 0,
- Bg: void 0,
- ol: void 0
- })) : b.Sp(c, a.Va[c]);
- });
- return b.kk();
- };
- c.prototype.srb = function (a) {
- var b;
- b = Object.keys(a).map(function (b) {
- return a[b].oa;
- });
- return 1 === new Set(b).size;
- };
- b.Rva = c;
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- d = function () {
- function a() {}
- a.decode = function (b) {
- return Object.assign({
- initialSegment: b.Th,
- segments: a.vgb(b.Va)
- }, void 0 !== b.pe ? {
- transitionType: b.pe
- }
- : {});
- };
- a.encode = function (b) {
- return Object.assign({
- Th: b.initialSegment,
- Va: a.Gib(b.segments)
- }, void 0 !== b.transitionType ? {
- pe: b.transitionType
- }
- : {});
- };
- a.ATb = function (a) {
- return void 0 !== a.Th && void 0 !== a.Va;
- };
- a.GTb = function (a) {
- return void 0 !== a.oa && void 0 !== a.sf;
- };
- a.Gib = function (b) {
- return Object.keys(b).reduce(function (c, d) {
- c[d] = a.Fib(b[d]);
- return c;
- }, {});
- };
- a.Fib = function (b) {
- return Object.assign({
- oa: b.viewableId,
- sf: b.startTimeMs
- }, b.endTimeMs ? {
- Bg: b.endTimeMs
- }
- : {}, b.defaultNext ? {
- ol: b.defaultNext
- }
- : {}, b.transitionType ? {
- pe: b.transitionType
- }
- : {}, b.next ? {
- next: a.Dib(b.next)
- }
- : {}, b.transitionDelayZones ? {
- C2: b.transitionDelayZones
- }
- : {});
- };
- a.Dib = function (b) {
- return Object.keys(b).reduce(function (c, d) {
- c[d] = a.Eib(b[d]);
- return c;
- }, {});
- };
- a.Eib = function (a) {
- return Object.assign({}, void 0 !== a.weight ? {
- weight: a.weight
- }
- : {}, a.transitionType ? {
- pe: a.transitionType
- }
- : {});
- };
- a.vgb = function (b) {
- return Object.keys(b).reduce(function (c, d) {
- c[d] = a.ugb(b[d]);
- return c;
- }, {});
- };
- a.ugb = function (b) {
- return Object.assign({
- viewableId: b.oa,
- startTimeMs: b.sf
- }, b.Bg ? {
- endTimeMs: b.Bg
- }
- : {}, b.ol ? {
- defaultNext: b.ol
- }
- : {}, b.pe ? {
- transitionType: b.pe
- }
- : {}, b.next ? {
- next: a.sgb(b.next)
- }
- : {}, b.C2 ? {
- transitionDelayZones: b.C2
- }
- : {});
- };
- a.sgb = function (b) {
- return Object.keys(b).reduce(function (c, d) {
- c[d] = a.tgb(b[d]);
- return c;
- }, {});
- };
- a.tgb = function (a) {
- return Object.assign({}, void 0 !== a.weight ? {
- weight: a.weight
- }
- : {}, a.pe ? {
- transitionType: a.pe
- }
- : {});
- };
- return a;
- }
- ();
- b.V1a = d;
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- d = function () {
- function a(a) {
- a && (this.mma(a.Th), this.cEb(a.pe), this.XDb(a.Va));
- }
- a.prototype.mma = function (a) {
- this.Th = a;
- return this;
- };
- a.prototype.cEb = function (a) {
- this.pe = a;
- };
- a.prototype.Sp = function (a, b) {
- this.Va || (this.Va = {});
- this.Va[a] = this.gFa(b);
- return this;
- };
- a.prototype.XDb = function (a) {
- var b;
- b = this;
- this.Va = {};
- Object.keys(a).forEach(function (c) {
- return b.Sp(c, a[c]);
- });
- };
- a.prototype.kk = function () {
- if (!this.Va)
- throw Error("Invalid playgraph - `segments` is not defined");
- if (!this.Th)
- throw Error("Invalid playgraph - `initialSegment` is not defined");
- if (!this.Va[this.Th])
- throw Error("Invalid playgraph - `initialSegment` is not part of `segments`");
- return Object.assign({
- Th: this.Th,
- Va: this.Va
- }, this.pe ? {
- pe: this.pe
- }
- : {});
- };
- a.prototype.gFa = function (a) {
- var b;
- b = this;
- return a && "object" === typeof a ? Object.keys(a).reduce(function (c, d) {
- c[d] = "object" === typeof a[d] ? b.gFa(a[d]) : a[d];
- return c;
- }, {}) : a;
- };
- return a;
- }
- ();
- b.AT = d;
- }, function (d, b, a) {
- var l;
- function c(a) {
- this.cV = {};
- this.Ima = {};
- this.DUa = [];
- this.CSa = [];
- this.Nj = a;
- this.zg = a.Th;
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Wva = void 0;
- l = a(144);
- c.prototype.vQ = function (a) {
- var d;
- for (var b = [], c = 0; c < arguments.length; ++c)
- b[c - 0] = arguments[c];
- d = this;
- b.filter(function (a) {
- return d.jQ(a.Na);
- }).filter(function (a) {
- a = a.gP;
- return !a || d.jQ(a);
- }).forEach(function (a) {
- d.cV[a.Na] = d.Fja(a.gP);
- });
- };
- c.prototype.BCa = function (a) {
- var b;
- b = this;
- a.filter(function (a) {
- return b.jQ(a);
- }).forEach(function (a) {
- b.cV[a] = b.Fja(b.ah(a).ol);
- });
- };
- c.prototype.Bp = function (a, b) {
- var c,
- d,
- h;
- c = this.ah(a);
- if (c && c.next) {
- d = new l.AT(this.Nj);
- h = Object.keys(c.next).reduce(function (a, h) {
- a[h] = void 0 === b[h] ? c.next[h] : Object.assign({}, c.next[h], {
- weight: b[h]
- });
- return a;
- }, {});
- h = Object.assign({}, c, {
- next: h
- });
- d.Sp(a, h);
- this.Nj = d.kk();
- }
- };
- c.prototype.jQ = function (a, b) {
- b = void 0 === b ? this.Nj.Va : b;
- return a in b;
- };
- c.prototype.LN = function (a) {
- return this.cV[a];
- };
- c.prototype.ah = function (a) {
- return this.Nj.Va[a];
- };
- c.prototype.$Ia = function (a) {
- return void 0 === this.Ima[a] ? this.Fja(this.ah(a).Bg) : this.Ima[a];
- };
- c.prototype.QHb = function (a, b) {
- this.Ima[a] = b;
- this.ewb(a);
- };
- c.prototype.EFb = function (a) {
- this.DUa.push(a);
- };
- c.prototype.FFb = function (a) {
- this.CSa.push(a);
- };
- c.prototype.gwb = function () {
- var a;
- a = this;
- this.DUa.forEach(function (b) {
- return b(a.Nj);
- });
- };
- c.prototype.ewb = function (a) {
- this.CSa.forEach(function (b) {
- return b(a);
- });
- };
- c.prototype.Fja = function (a) {
- return null === a ? void 0 : a;
- };
- pa.Object.defineProperties(c.prototype, {
- Nj: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.m7a;
- },
- set: function (a) {
- if (this.zg && !this.jQ(this.zg, a.Va))
- throw Error("Provided playgraphMap does not contain the current segmentId " + this.zg);
- this.m7a = a;
- this.cV = {};
- a = Object.keys(a.Va);
- this.BCa(a);
- this.gwb();
- }
- },
- zg: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.x4a;
- },
- set: function (a) {
- if (!this.jQ(a))
- throw Error("Provided currentSegmentId " + a + " does not exist in the current playgraph");
- this.x4a = a;
- }
- },
- ga: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.ah(this.zg);
- }
- }
- });
- b.Wva = c;
- }, function (d, b, a) {
- var l;
- function c(a) {
- this.Gg = a;
- this.Ys = {};
- this.mP();
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Yva = void 0;
- l = a(181);
- c.prototype.mP = function () {
- var a,
- b;
- a = this;
- b = this.Gg.Nj.Va;
- Object.keys(b).map(function (c) {
- var d,
- h;
- c = b[c].oa;
- if (!a.Ys[c]) {
- d = void 0;
- h = new Promise(function (a, b) {
- d = function (c) {
- (c ? a : b)();
- };
- });
- a.Ys[c] = {
- state: l.qo.rua,
- mAb: h,
- eRa: d
- };
- }
- });
- this.J2();
- };
- c.prototype.XY = function (a) {
- return this.Ys[a];
- };
- c.prototype.JDb = function (a) {
- this.Ys[a].state = l.qo.vra;
- this.J2();
- };
- c.prototype.IDb = function (a, b) {
- a = this.Ys[a];
- a.state = l.qo.Error;
- a.error = b;
- a.eRa(!1);
- this.J2();
- };
- c.prototype.YRa = function (a) {
- a = this.Ys[a];
- a.state = l.qo.l4;
- a.eRa(!0);
- this.J2();
- };
- c.prototype.D9a = function (a, b) {
- this.Ys[a].gb = b;
- };
- c.prototype.J2 = function () {
- var b;
- this.vNa = void 0;
- for (var a = this.Gg.zg; a = this.Gg.LN(a); ) {
- b = this.aga(a);
- if (this.Ys[b].state === l.qo.Error)
- break;
- if (this.Ys[b].state === l.qo.vra)
- break;
- if (this.Ys[b].state === l.qo.rua) {
- this.vNa = {
- oa: b,
- Na: a
- };
- break;
- }
- }
- };
- c.prototype.aga = function (a) {
- return this.Gg.Nj.Va[a].oa;
- };
- b.Yva = c;
- }, function (d, b, a) {
- var l,
- q,
- n,
- k,
- p,
- h;
- function c(a, b, c, d, l, q, g) {
- this.BP = d;
- this.Ana = q;
- this.yG = !1;
- l.Q2 && (a = new p.Rva().SGb(a));
- this.Kc = new k.Wva(a);
- this.Gl = new n.Yva(this.Kc);
- this.Gl.YRa(this.Kc.ga.oa);
- this.log = b.yb("PlaygraphManager");
- a = new h.Uva(l, this, this.Gl);
- this.Kb = c.create();
- this.Iy = g.create(this.Kc, this.Gl, this.log, a, this.Kb);
- this.mEb();
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Qva = void 0;
- l = a(13);
- q = a(181);
- n = a(571);
- k = a(570);
- p = a(567);
- h = a(566);
- c.prototype.xY = function () {
- return this.Kc.ga;
- };
- c.prototype.QHa = function () {
- return this.Kc.zg;
- };
- c.prototype.rnb = function () {
- return this.Kc.Nj;
- };
- c.prototype.vQ = function (a) {
- for (var b = [], c = 0; c < arguments.length; ++c)
- b[c - 0] = arguments[c];
- this.Kc.vQ.apply(this.Kc, [].concat(Y(b)));
- };
- c.prototype.scb = function (a) {
- for (var b = [], c = 0; c < arguments.length; ++c)
- b[c - 0] = arguments[c];
- this.Kc.BCa(b);
- };
- c.prototype.KHb = function (a) {
- this.Kc.Nj = a;
- };
- c.prototype.Bp = function (a, b) {
- this.Kc.Bp(a, b);
- };
- c.prototype.cga = function (a, b, c) {
- if (a !== this.Kc.zg)
- throw Error("Invalid currentSegmentId");
- if (b !== this.Kc.LN(a))
- throw Error("Invalid nextSegmentId");
- this.log.info("Transition initiated: " + a + " -> " + b);
- return this.Iy.sJa(b, c);
- };
- c.prototype.isReady = function () {
- return this.Iy.isReady();
- };
- c.prototype.addListener = function (a, b, c) {
- this.Kb.addListener(a, b, c);
- };
- c.prototype.removeListener = function (a, b) {
- this.Kb.removeListener(a, b);
- };
- c.prototype.Pn = function () {
- return this.Iy.Pn();
- };
- c.prototype.Sh = function () {
- return this.Iy.Sh();
- };
- c.prototype.Sp = function (a) {
- var b,
- c;
- b = this;
- this.log.info("Adding segment - movieId: " + a.u + ", startPts: " + a.T + ", logicalEnd: " + ("" + a.Yn));
- if (this.yG) {
- c = Object.keys(this.Kc.Nj.Va).find(function (c) {
- return b.Kc.Nj.Va[c].oa === a.u;
- });
- if (c)
- return a.Yn && this.Kc.QHb(c, a.Yn), null;
- c = this.BP.l$a(this.Kc.Nj, a);
- this.Kc.Nj = c;
- this.Sh().as().Fo("addSegment movieId: " + a.u + ", startPts: " + a.T + ", logicalEnd: " + a.Yn);
- this.Gl.D9a(a.u, a.gb);
- }
- c = this.Iy.Cka(a);
- this.yG || (this.Sh().as().addEventListener(l.U.H1, function (a) {
- return b.Qja(a);
- }), this.yG = !0);
- return c;
- };
- c.prototype.transition = function (a) {
- var b;
- b = this.Kc.LN(this.Kc.zg);
- return b ? this.cga(this.Kc.zg, b, a) : (this.log.error("Next segment is not defined"), Promise.reject());
- };
- c.prototype.close = function (a) {
- return this.Iy.close(a);
- };
- c.prototype.pm = function (a) {
- if (this.Gl.XY(a).state == q.qo.l4)
- return this.Sh().as().pm(a);
- };
- c.prototype.mEb = function () {
- var a;
- a = this;
- this.Kc.EFb(function () {
- a.Gl.mP();
- a.Iy.mP();
- });
- this.Kc.FFb(function (b) {
- a.Iy.mOa(b);
- });
- this.addListener(l.Vz.kQ, function () {
- return a.Uwb();
- });
- };
- c.prototype.Uwb = function () {
- var a;
- a = this.Sh().getError();
- a ? this.Kb.Xb(l.wb.lba, a) : (this.Kb.Xb(l.wb.ICa), this.Kb.Xb(l.wb.eM), this.Kb.Xb(l.wb.lD), this.Kb.Xb(l.wb.SI), this.Kb.Xb(l.wb.dR), this.Kb.Xb(l.wb.lba));
- };
- c.prototype.Qja = function (a) {
- var b,
- c,
- f;
- b = a.metrics;
- if (b) {
- c = this.Sh().as();
- f = c.Ru(a.segmentId);
- b = c.Ru(b.srcsegment);
- this.Ana.Dzb(a, f, b);
- }
- };
- b.Qva = c;
- }, function (d, b, a) {
- var c,
- l,
- q,
- n,
- k,
- p,
- h,
- f,
- u;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Pva = void 0;
- c = a(0);
- l = a(1);
- q = a(572);
- n = a(8);
- k = a(124);
- p = a(462);
- h = a(281);
- f = a(180);
- u = a(455);
- d = function () {
- var b;
- function a(a, b, c, f, h, d) {
- this.Hf = a;
- this.Qda = b;
- this.Mj = c;
- this.BP = f;
- this.Ana = h;
- this.Eyb = d;
- }
- a.prototype.create = function (a) {
- return new q.Qva(a, this.Hf, this.Qda, this.BP, this.Mj, this.Ana, this.Eyb);
- };
- b = a;
- return b = c.__decorate([l.N(), c.__param(0, l.l(n.Bb)), c.__param(1, l.l(p.KD)), c.__param(2, l.l(k.mE)), c.__param(3, l.l(f.mK)), c.__param(4, l.l(u.o8)), c.__param(5, l.l(h.A7))], b);
- }
- ();
- b.Pva = d;
- }, function (d, b, a) {
- var c,
- l,
- q,
- n,
- k,
- p,
- h,
- f,
- u,
- g;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Jf = void 0;
- d = a(1);
- c = a(283);
- l = a(573);
- q = a(280);
- n = a(565);
- k = a(180);
- p = a(564);
- h = a(563);
- f = a(124);
- u = a(281);
- g = a(562);
- b.Jf = new d.Ec(function (a) {
- a(c.z7).to(l.Pva).aa();
- a(q.B7).to(n.Xva).aa();
- a(k.mK).to(p.Ova).aa();
- a(f.mE).to(h.Nva).aa();
- a(u.A7).to(g.Tva).aa();
- });
- }, function (d, b, a) {
- var c,
- l,
- q,
- n,
- k,
- p,
- h,
- f,
- u,
- g,
- G;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Usa = void 0;
- c = a(0);
- l = a(2);
- q = a(5);
- n = a(113);
- k = a(44);
- p = a(10);
- h = a(1);
- f = a(193);
- u = a(33);
- g = a(284);
- G = a(87);
- d = function () {
- var d;
- function b(a, b, c, f, h) {
- c = g.nJ.call(this, c, f, h) || this;
- c.config = a;
- c.Cc = b;
- c.log = q.$g(c.j, "LegacyLicenseBroker");
- c.ce = c.config().ce;
- c.config().Kka ? k.SKa() ? c.R2 = !0 : c.log.error("Promise based eme requested but platform does not support it", {
- browserua: p.Nl
- }) : c.R2 = !1;
- return c;
- }
- da(b, g.nJ);
- b.prototype.GEa = function (a) {
- var b;
- b = void 0 === b ? this.j : b;
- return new this.xP.Cz(a, function (a) {
- return b.IM.IB(a);
- }, function (a) {
- return b.IM.release(a);
- }, {
- Tc: !1,
- bh: !1
- });
- };
- b.prototype.NM = function (b, c) {
- var f,
- h,
- d,
- k,
- u,
- p;
- c = void 0 === c ? this.j : c;
- f = this;
- k = a(35).Yg;
- this.xP.Cz || this.Wd(l.J.tw, l.I.SYa);
- d = q.$g(c, "Eme");
- h = this.GEa(d);
- u = q.Z.get(n.aA);
- p = u.MM(c.ld.value.ic);
- u = u.SM(c.sg.value.ic);
- return this.xP.Ez(d, b, function (a) {
- return c.fd(a);
- }, {
- Tc: !1,
- bh: !1,
- $G: this.config().Bi,
- nI: {
- M_: this.config().BRa,
- BW: this.config().Sla
- },
- Ga: {
- getTime: k
- },
- hj: h,
- X0: !!this.R2,
- Wa: this.Ib.Wa,
- kz: this.config().yda,
- onerror: function (a, b, c) {
- return f.Wd(a, b, c);
- },
- k0: function (a) {
- return f.eZ(a);
- },
- J0: !0,
- HCa: p,
- cVa: u,
- UG: this.config().UG
- });
- };
- b.prototype.VC = function (a) {
- var b;
- b = this;
- return this.R2 ? new Promise(function (c, f) {
- if (b.Ib.Wa)
- b.Ib.Wa.setMediaKeys(a).then(function () {
- c();
- })["catch"](function (a) {
- var c;
- c = b.qJa(a);
- f({
- V: !1,
- code: l.J.fK,
- Hb: c.ha,
- qd: c.we,
- fb: c.fb,
- message: "Set media keys is a failure",
- cause: a
- });
- });
- else
- return Promise.resolve();
- }) : Promise.resolve();
- };
- b.prototype.vGa = function (a) {
- return {
- code: a.code,
- subCode: a.Hb,
- extCode: a.qd,
- edgeCode: a.im,
- message: a.message,
- errorDetails: a.fb,
- errorData: a.pN,
- state: a.state
- };
- };
- b.prototype.nma = function (a, b, c) {
- var h,
- d,
- k;
- function f() {
- d.fI()["catch"](function (a) {
- h.log.error("Unable to set the license", h.vGa(a));
- a.cause && a.cause.fb && (a.fb = a.fb ? a.fb + a.cause.fb : a.cause.fb);
- h.Wd(a.code, a, a.qd);
- });
- }
- c = void 0 === c ? this.j : c;
- h = this;
- d = c.Df;
- this.log.info("Setting the license");
- k = b ? function () {
- return Promise.resolve();
- }
- : function () {
- return d.Fg(h.nfa(), a);
- };
- return (b ? function () {
- return d.cW(h.Ib.Wa);
- }
- : function () {
- return d.create(h.ce).then(function () {
- return Promise.resolve();
- });
- })().then(function () {
- return h.config().bSa ? h.VC(d.pf) : Promise.resolve();
- }).then(k).then(function () {
- return h.config().bSa ? Promise.resolve() : h.VC(d.pf);
- }).then(function () {
- h.log.info("license set");
- h.YX(c.u);
- h.Ib.pVa.then(function () {
- h.config().ry && (b || h.config().vN) && (h.MQa = t.setTimeout(f, h.config().ry));
- });
- })["catch"](function (a) {
- h.log.error("Unable to set the license", h.vGa(a));
- a.cause && a.cause.fb && (a.fb = a.fb ? a.fb + a.cause.fb : a.cause.fb);
- if (b)
- throw Error(a && a.message ? a.message : "failed to set license");
- h.Wd(a.code, a, a.qd);
- });
- };
- b.prototype.bPa = function () {
- return Promise.resolve();
- };
- b.prototype.Nja = function (a) {
- var c;
- function b() {
- var b;
- c.j.Df = c.NM(a.initDataType);
- b = [];
- c.j.Hq.forEach(function (a) {
- b.push(q.am(a));
- });
- c.nma(b);
- }
- c = this;
- this.log.trace("Received event: " + a.type);
- this.vO || (this.vO = !0, this.xP.Ez ? this.j.Hq ? this.config().lG && this.config().op && this.Cc() ? this.Cc().FHa(this.j.u).then(function (a) {
- c.j.Df = a;
- return a.oVa.then(function () {
- var b;
- b = [];
- c.j.Hq.forEach(function (a) {
- b.push(q.am(a));
- });
- return c.nma(b, !0).then(function () {
- var b;
- if (a.JRb)
- c.Wd(l.J.XYa);
- else {
- b = q.$g(c.j, "Eme");
- a.NHb({
- log: b,
- Fy: function (a) {
- return c.j.fd(a);
- }
- }, {
- hj: c.GEa(b),
- onerror: function (a, b, f) {
- return c.Wd(a, b, f);
- }
- });
- (b = a.bka) && c.eZ(b);
- c.j.Xu(a.Uc || {});
- c.j.Bx = "videopreparer";
- }
- });
- });
- })["catch"](function (a) {
- c.log.warn("eme not in cache", a);
- b();
- }) : b() : (this.log.error("Missing the PSSH on the video track, closing the player"), this.Wd(l.J.A1a)) : this.Wd(l.J.tw, l.I.TYa));
- };
- b.prototype.RQa = function (a) {
- var b;
- a = void 0 === a ? this.j : a;
- a.Df = this.NM("cenc");
- b = [];
- a.Hq.forEach(function (a) {
- b.push(q.am(a));
- });
- return this.nma(b, !1, a);
- };
- b.prototype.nfa = function () {
- return this.config().vN ? G.lj.uw : G.lj.Ol;
- };
- pa.Object.defineProperties(b.prototype, {
- xP: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return q.Z.get(u.Mp);
- }
- },
- pC: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.R2 ? "encrypted" : this.Ib.z4 + "needkey";
- }
- }
- });
- d = b;
- c.__decorate([f.sO], d.prototype, "xP", null);
- c.__decorate([f.sO], d.prototype, "pC", null);
- return d = c.__decorate([h.N()], d);
- }
- ();
- b.Usa = d;
- }, function (d, b, a) {
- var c,
- l,
- q,
- n,
- k,
- p,
- h,
- f,
- u,
- g,
- G;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Xsa = void 0;
- c = a(0);
- l = a(2);
- q = a(5);
- n = a(9);
- k = a(477);
- p = a(3);
- h = a(1);
- f = a(193);
- u = a(284);
- g = a(87);
- G = a(13);
- d = function () {
- var b;
- function a(a, b, c, f, h, d, k, l) {
- f = u.nJ.call(this, f, h, d) || this;
- f.config = a;
- f.Ke = b;
- f.Cc = c;
- f.qB = k;
- f.Via = l;
- f.log = q.$g(f.j, "LicenseBroker");
- f.vO = new Set();
- f.Uia = !1;
- return f;
- }
- da(a, u.nJ);
- a.prototype.Nja = function () {
- var a,
- b,
- c;
- a = this;
- c = this.j.ga;
- this.vO.has(c.u) || (this.vO.add(c.u), ((null === (b = c.ya) || void 0 === b ? 0 : b.oB) ? this.n$a(c, c.ya.oB) : this.config.lG && this.Ke.op && this.Cc() ? this.o$a(c) : Promise.reject())["catch"](function () {
- return a.SQa(c);
- }).then(function () {
- return a.uCa(c);
- })["catch"](function (b) {
- return a.tCa(c, b);
- })["catch"](function (b) {
- return a.Wd(b.code, b, b.qd);
- }));
- };
- a.prototype.o$a = function (a) {
- var b;
- b = this;
- return this.Cc().FHa(a.u).then(function (c) {
- return b.cW(c, a, "videopreparer");
- })["catch"](function (a) {
- b.log.warn("eme not in cache", a);
- throw a;
- });
- };
- a.prototype.n$a = function (a, b) {
- var c;
- c = this;
- return this.qB().then(function (f) {
- var h;
- h = c.xIa(a);
- f.$Ma(h, b);
- f.fH().subscribe(c.KHa(a));
- return c.cW(b, a, "manifest");
- });
- };
- a.prototype.cW = function (a, b, c) {
- this.JPa(a, b);
- b.Bx = c;
- this.Via.VC(a.pf);
- return a.Gaa().bR();
- };
- a.prototype.qkb = function (a) {
- var b;
- b = {};
- a.forEach(function (a) {
- b[k.TFa(a.Qub)] = a.time.ca(p.ia);
- });
- return b;
- };
- a.prototype.Rob = function (a, b) {
- this.log.trace("Key status", {
- viewable: a.u,
- keyId: q.Hr(b.js),
- status: b.value
- });
- };
- a.prototype.JPa = function (a, b) {
- var c,
- f,
- h;
- c = this;
- b.Df = a;
- f = {
- next: function (a) {
- c.Rob(b, a);
- },
- error: n.$e,
- complete: n.$e
- };
- h = {
- next: function (a) {
- c.Wd(a.code, a, a.qd);
- },
- error: n.$e,
- complete: n.$e
- };
- a.Bha().subscribe(f);
- (a = a.rG()) && a.subscribe(h);
- };
- a.prototype.uCa = function (a) {
- var b;
- this.log.info("Successfully applied license for xid: " + a.fa + ", viewable: " + a.u + ", segment: " + a.Na);
- b = a.Df;
- (null === b || void 0 === b ? 0 : b.Sha) && this.eZ(b.Sha);
- this.Xu(a);
- this.Uia ? this.YX(a.u) : this.VC(a);
- };
- a.prototype.tCa = function (a, b) {
- this.Xu(a);
- throw b;
- };
- a.prototype.Xu = function (a) {
- a.Df && a.Xu(this.qkb(a.Df.Uc));
- };
- a.prototype.KHa = function (a) {
- var b;
- b = this;
- return {
- next: function (c) {
- b.vO.add(a.u);
- b.eZ(c);
- },
- error: n.$e,
- complete: n.$e
- };
- };
- a.prototype.xIa = function (a) {
- return {
- type: this.nfa(),
- CZ: a.Hq.map(function (a) {
- return q.am(a);
- }),
- context: {
- ce: this.config.ce,
- Wa: this.Ib.Wa
- },
- jh: {
- u: a.u,
- fa: a.fa,
- pg: a.pg,
- sk: a.sk,
- Jj: a.ya.Jj
- }
- };
- };
- a.prototype.SQa = function (a) {
- var b;
- b = this;
- return this.qB().then(function (c) {
- var f;
- f = b.xIa(a);
- c.fH().subscribe(b.KHa(a));
- return c.Fg(f, b.Via).Wr(function (c) {
- b.JPa(c, a);
- b.j.fireEvent(G.U.xO, {
- u: a.u
- });
- return c.Gaa();
- }).bR();
- });
- };
- a.prototype.VC = function (a) {
- var b;
- b = this;
- if (this.Uia)
- this.log.trace("Media Keys already set");
- else
- try {
- this.Ib.Wa ? this.Ib.Wa.setMediaKeys(a.Df.pf).then(function () {
- b.YX(a.u);
- b.Uia = !0;
- })["catch"](function (a) {
- a = b.qJa(a);
- b.Wd(l.J.fK, a, a.we);
- }) : this.YX(a.u);
- } catch (J) {
- this.Wd(l.J.fK, J, void 0);
- }
- };
- a.prototype.bPa = function () {
- var a,
- b;
- a = this;
- b = this.j.ga.Df;
- return b ? this.qB().then(function (c) {
- return new Promise(function (f) {
- c.lFb(b, a.Via).Wr(function (a) {
- return a.p$a();
- }).Wr(function (b) {
- a.log.trace("Fulfilled the last secure stop");
- a.Ke.Bi && a.j.mv.G1({
- success: !0,
- persisted: !1
- });
- return b.close();
- }).subscribe({
- error: function (b) {
- a.log.error("Unable to get/add secure stop data", b);
- a.Ke.Bi && a.j.mv.G1({
- success: b.V,
- ErrorCode: b.code,
- ErrorSubCode: b.Hb,
- ErrorExternalCode: b.qd,
- ErrorEdgeCode: b.im,
- ErrorDetails: b.Jx
- });
- f();
- },
- complete: function () {
- f();
- }
- });
- });
- }) : Promise.resolve();
- };
- a.prototype.RQa = function (a) {
- var b;
- a = void 0 === a ? this.j : a;
- b = this;
- return this.SQa(a).then(function () {
- return b.uCa(a);
- })["catch"](function (c) {
- return b.tCa(a, c);
- });
- };
- a.prototype.nfa = function () {
- return this.Ke.vN ? g.lj.uw : g.lj.Ol;
- };
- pa.Object.defineProperties(a.prototype, {
- pC: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return "encrypted";
- }
- },
- ce: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.config.ce;
- }
- }
- });
- b = a;
- c.__decorate([f.sO], b.prototype, "pC", null);
- return b = c.__decorate([h.N()], b);
- }
- ();
- b.Xsa = d;
- }, function (d, b, a) {
- var c,
- l,
- q,
- n,
- k,
- p,
- h,
- f,
- u,
- g;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Wsa = void 0;
- c = a(0);
- l = a(1);
- q = a(117);
- n = a(576);
- k = a(575);
- p = a(53);
- h = a(60);
- f = a(14);
- u = a(137);
- g = a(103);
- d = function () {
- var b;
- function a(a, b, c, f, h, d) {
- this.qB = a;
- this.Ke = b;
- this.me = c;
- this.config = f;
- this.NO = h;
- this.Cc = d;
- }
- a.prototype.create = function (a, b, c) {
- return a ? new n.Xsa(this.config(), this.Ke, this.Cc, this.me, b, c, this.qB, this.NO()) : new k.Usa(this.config, this.Cc, this.me, b, c);
- };
- b = a;
- return b = c.__decorate([l.N(), c.__param(0, l.l(q.AJ)), c.__param(1, l.l(p.Jl)), c.__param(2, l.l(h.Vk)), c.__param(3, l.l(f.jd)), c.__param(4, l.l(u.YD)), c.__param(5, l.l(g.eA))], b);
- }
- ();
- b.Wsa = d;
- }, function (d, b, a) {
- var c,
- l;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Ij = void 0;
- d = a(1);
- c = a(298);
- l = a(577);
- b.Ij = new d.Ec(function (a) {
- a(c.I5).to(l.Wsa);
- });
- }, function (d, b, a) {
- var c,
- l,
- q,
- n,
- k,
- p;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Wxa = void 0;
- c = a(0);
- l = a(1);
- q = a(40);
- n = a(28);
- k = a(41);
- p = a(30);
- d = function () {
- var b;
- function a(a) {
- return q.fe.call(this, a, "TransportConfigImpl") || this;
- }
- da(a, q.fe);
- a.prototype.xma = function (a) {
- var b,
- c;
- b = this.Vna;
- c = this.fCa;
- switch (a) {
- case p.st.BT:
- return b;
- case p.st.$va:
- return b && !c;
- case p.st.S0a:
- return !1;
- }
- };
- pa.Object.defineProperties(a.prototype, {
- Vna: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return !0;
- }
- },
- fCa: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return !1;
- }
- }
- });
- b = a;
- c.__decorate([k.config(k.Kd, "usesMsl")], b.prototype, "Vna", null);
- c.__decorate([k.config(k.Kd, "allowRequestsWithoutMsl")], b.prototype, "fCa", null);
- return b = c.__decorate([l.N(), c.__param(0, l.l(n.Li))], b);
- }
- ();
- b.Wxa = d;
- }, function (d, b, a) {
- var c,
- l,
- q,
- n,
- k,
- p;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.jxa = void 0;
- c = a(0);
- l = a(1);
- q = a(3);
- n = a(8);
- k = a(146);
- p = a(93);
- d = function () {
- var b;
- function a(a, b, c) {
- this.receiver = b;
- this.We = c;
- this.log = a.yb("SslTransport");
- }
- a.prototype.send = function (a, b) {
- var c,
- f;
- c = this;
- f = {
- url: a.url.href,
- lB: "nq-" + a.mk,
- tka: JSON.stringify(b),
- LW: a.timeout.ca(q.ia),
- headers: a.headers,
- withCredentials: !0
- };
- return new Promise(function (a, b) {
- c.We.download(f, function (c) {
- c.V ? a(c) : b(c);
- });
- }).then(function (f) {
- f = {
- status: "success",
- body: f.content
- };
- c.receiver.aI({
- command: a.mk,
- inputs: b,
- outputs: f
- });
- return f;
- })["catch"](function (f) {
- var h;
- if (!f.error)
- throw f.Hb = f.ha || f.Hb, c.receiver.aI({
- command: a.mk,
- inputs: b,
- outputs: f
- }), f;
- h = f.error;
- h.Ty = f.Ty;
- c.log.error("Error sending SSL request", {
- subCode: h.Hb,
- data: h.content,
- message: h.message
- });
- c.receiver.aI({
- command: a.mk,
- inputs: b,
- outputs: h
- });
- throw h;
- });
- };
- a.prototype.dca = function () {
- return {};
- };
- b = a;
- return b = c.__decorate([l.N(), c.__param(0, l.l(n.Bb)), c.__param(1, l.l(k.jK)), c.__param(2, l.l(p.vw))], b);
- }
- ();
- b.jxa = d;
- }, function (d, b, a) {
- var c,
- l,
- q,
- n,
- k,
- p,
- h,
- f;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.jua = void 0;
- c = a(0);
- l = a(1);
- q = a(8);
- n = a(131);
- k = a(3);
- p = a(146);
- h = a(90);
- f = {
- license: !0
- };
- d = function () {
- var b;
- function a(a, b, c, f) {
- var h;
- h = this;
- this.Cy = b;
- this.receiver = c;
- this.profile = f;
- this.log = a.yb("MslTransport");
- this.Cy().then(function (a) {
- return h.fNa = a;
- });
- }
- a.prototype.send = function (a, b) {
- var c,
- h;
- c = this;
- h = {
- gNa: Object.assign({
- We: a.We,
- log: a.log,
- profile: this.profile
- }, a.Jab),
- method: a.mk,
- url: a.url.href,
- body: JSON.stringify(b),
- timeout: a.timeout.ca(k.ia),
- zIb: this.profile,
- sVb: !f[a.mk],
- Mvb: !!f[a.mk],
- Cj: !0,
- u1: a.Dla,
- headers: a.headers
- };
- return this.Cy().then(function (f) {
- return f.send(h).then(function (f) {
- c.receiver.aI({
- command: a.mk,
- inputs: b,
- outputs: f
- });
- return f;
- })["catch"](function (f) {
- var h;
- if (!f.error)
- throw f.Hb = f.ha || f.Hb, c.receiver.aI({
- command: a.mk,
- inputs: b,
- outputs: f
- }), f;
- h = f.error;
- h.Ty = f.Ty;
- c.log.error("Error sending MSL request", {
- mslCode: h.ws,
- subCode: h.Hb,
- data: h.data,
- message: h.message
- });
- c.receiver.aI({
- command: a.mk,
- inputs: b,
- outputs: h
- });
- throw h;
- });
- });
- };
- a.prototype.dca = function () {
- var a;
- return {
- userTokens: null === (a = this.fNa) || void 0 === a ? void 0 : a.cP.getUserIdTokenKeys()
- };
- };
- b = a;
- return b = c.__decorate([l.N(), c.__param(0, l.l(q.Bb)), c.__param(1, l.l(n.$D)), c.__param(2, l.l(p.jK)), c.__param(3, l.l(h.nE))], b);
- }
- ();
- b.jua = d;
- }, function (d, b, a) {
- var c,
- l,
- q,
- n,
- k,
- p;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.hUa = void 0;
- d = a(1);
- c = a(238);
- l = a(314);
- q = a(581);
- n = a(580);
- k = a(579);
- p = a(30);
- b.hUa = new d.Ec(function (a) {
- a(c.wK).to(k.Wxa).aa();
- a(l.s6).to(q.jua);
- a(l.b8).to(n.jxa);
- a(l.p8).tf(function (a) {
- return function (b) {
- var f;
- return a.lb.get(c.wK).xma(null !== (f = null === b || void 0 === b ? void 0 : b.rvb) && void 0 !== f ? f : p.st.BT) ? a.lb.get(l.s6) : a.lb.get(l.b8);
- };
- });
- });
- }, function (d, b, a) {
- var c,
- l,
- q,
- n,
- k,
- p;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.ava = void 0;
- c = a(0);
- l = a(1);
- q = a(2);
- n = a(43);
- k = a(66);
- p = a(45);
- d = function () {
- var b;
- function a(a) {
- return k.rh.call(this, a, q.J.sZa, 2, n.uh.ya, n.wg.cr, "generateScreenshots") || this;
- }
- da(a, k.rh);
- a.prototype.kf = function (a, b) {
- var c;
- c = this;
- return this.send(a, "/generateScreenshots", b).then(function (a) {
- return a.result;
- })["catch"](function (a) {
- throw c.mm(a);
- });
- };
- a.prototype.Uo = function () {
- return Promise.reject(Error("Links are unsupported with GenerateScreenshots"));
- };
- b = a;
- return b = c.__decorate([l.N(), c.__param(0, l.l(p.ck))], b);
- }
- ();
- b.ava = d;
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.jva = void 0;
- b.jva = "PboPingCommandSymbol";
- }, function (d, b, a) {
- var c,
- l,
- q,
- n,
- k,
- p;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.iva = void 0;
- c = a(0);
- l = a(1);
- q = a(2);
- n = a(43);
- k = a(66);
- p = a(45);
- d = function () {
- var b;
- function a(a) {
- return k.rh.call(this, a, q.J.p1a, 1, n.uh.ping, n.wg.cr, n.uh.ping) || this;
- }
- da(a, k.rh);
- a.prototype.kf = function (a, b, c) {
- var f;
- f = this;
- return this.send(a, "/" + this.name, b, void 0, void 0, c).then(function (a) {
- return a.result;
- })["catch"](function (a) {
- throw f.mm(a);
- });
- };
- a.prototype.Uo = function () {
- return Promise.reject(Error("Links are unsupported with ping"));
- };
- b = a;
- return b = c.__decorate([l.N(), c.__param(0, l.l(p.ck))], b);
- }
- ();
- b.iva = d;
- }, function (d, b, a) {
- var c,
- l,
- q,
- n,
- k,
- p;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Vua = void 0;
- c = a(0);
- l = a(1);
- q = a(2);
- n = a(43);
- k = a(66);
- p = a(45);
- d = function () {
- var b;
- function a(a) {
- return k.rh.call(this, a, q.J.uWa, 2, n.uh.bind, n.wg.cr, n.uh.bind) || this;
- }
- da(a, k.rh);
- a.prototype.kf = function (a, b, c) {
- var f;
- f = this;
- return this.send(a, "/bindDevice", b, void 0, void 0, c).then(function (a) {
- return a.result;
- })["catch"](function (a) {
- throw f.mm(a);
- });
- };
- a.prototype.Uo = function () {
- return Promise.reject(Error("Links are unsupported with bindDevice"));
- };
- b = a;
- return b = c.__decorate([l.N(), c.__param(0, l.l(p.ck))], b);
- }
- ();
- b.Vua = d;
- }, function (d, b, a) {
- var c,
- l,
- q,
- n,
- k,
- p;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.gva = void 0;
- c = a(0);
- l = a(1);
- q = a(2);
- n = a(43);
- k = a(66);
- p = a(45);
- d = function () {
- var b;
- function a(a) {
- return k.rh.call(this, a, q.J.Y0a, 2, n.uh.COa, n.wg.cr, n.uh.COa) || this;
- }
- da(a, k.rh);
- a.prototype.kf = function (a, b, c) {
- var f;
- f = this;
- return this.send(a, "/" + this.name, b, void 0, void 0, c).then(function (a) {
- return a.result;
- })["catch"](function (a) {
- throw f.mm(a);
- });
- };
- a.prototype.Uo = function () {
- return Promise.reject(Error("Links are unsupported with pair"));
- };
- b = a;
- return b = c.__decorate([l.N(), c.__param(0, l.l(p.ck))], b);
- }
- ();
- b.gva = d;
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.hva = void 0;
- b.hva = "PboPairCommandSymbol";
- }, function (d, b, a) {
- var c,
- l,
- q,
- n,
- k,
- p;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Uua = void 0;
- c = a(0);
- l = a(1);
- q = a(2);
- n = a(43);
- k = a(66);
- p = a(45);
- d = function () {
- var b;
- function a(a) {
- return k.rh.call(this, a, q.J.tWa, 2, n.uh.bind, n.wg.cr, n.uh.bind) || this;
- }
- da(a, k.rh);
- a.prototype.kf = function (a, b, c) {
- var f;
- f = this;
- return this.send(a, "/" + this.name, b, void 0, void 0, c).then(function (a) {
- return a.result;
- })["catch"](function (a) {
- throw f.mm(a);
- });
- };
- a.prototype.Uo = function () {
- return Promise.reject(Error("Links are unsupported with bind"));
- };
- b = a;
- return b = c.__decorate([l.N(), c.__param(0, l.l(p.ck))], b);
- }
- ();
- b.Uua = d;
- }, function (d, b, a) {
- var c,
- l,
- q,
- n,
- k,
- p,
- h,
- f,
- u,
- g,
- G;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Xua = void 0;
- c = a(0);
- l = a(1);
- q = a(116);
- n = a(94);
- k = a(312);
- p = a(315);
- h = a(114);
- f = a(93);
- u = a(465);
- g = a(68);
- G = a(72);
- d = function () {
- function a(a, b, c, f, h, d, k, l, p) {
- this.eg = a;
- this.We = b;
- this.Lj = c;
- this.uhb = f;
- this.RG = h;
- this.hIb = d;
- this.aX = k;
- this.EBb = l;
- this.Kx = p;
- }
- return a = c.__decorate([l.N(), c.__param(0, l.l(q.oz)), c.__param(1, l.l(f.vw)), c.__param(2, l.l(n.Ew)), c.__param(3, l.l(p.T6)), c.__param(4, l.l(h.Kz)), c.__param(5, l.l(u.v8)), c.__param(6, l.l(g.ED)), c.__param(7, l.l(k.g7)), c.__param(8, l.l(G.ar))], a);
- }
- ();
- b.Xua = d;
- }, function (d, b, a) {
- var c,
- l,
- q,
- n,
- k,
- p,
- h;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.gra = void 0;
- c = a(0);
- l = a(1);
- q = a(2);
- n = a(120);
- k = a(78);
- p = a(45);
- h = a(43);
- d = function () {
- var b;
- function a(a) {
- return n.ko.call(this, a, q.J.ZYa, k.Kl.nN, 3, h.wg.VD) || this;
- }
- da(a, n.ko);
- a.prototype.qW = function (a) {
- return Object.assign(Object.assign({}, n.ko.prototype.qW.call(this, a)), {
- action: a.action
- });
- };
- b = a;
- return b = c.__decorate([l.N(), c.__param(0, l.l(p.ck))], b);
- }
- ();
- b.gra = d;
- }, function (d, b, a) {
- var c,
- l,
- q,
- n,
- k,
- p,
- h;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.ixa = void 0;
- c = a(0);
- l = a(1);
- q = a(2);
- n = a(120);
- k = a(78);
- p = a(45);
- h = a(43);
- d = function () {
- var b;
- function a(a) {
- return n.ko.call(this, a, q.J.Gwa, k.Kl.splice, 1, h.wg.VD) || this;
- }
- da(a, n.ko);
- b = a;
- return b = c.__decorate([l.N(), c.__param(0, l.l(p.ck))], b);
- }
- ();
- b.ixa = d;
- }, function (d, b, a) {
- var c,
- l,
- q,
- n,
- k,
- p,
- h;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Msa = void 0;
- c = a(0);
- l = a(1);
- q = a(2);
- n = a(120);
- k = a(78);
- p = a(45);
- h = a(43);
- d = function () {
- var b;
- function a(a) {
- return n.ko.call(this, a, q.J.D5, k.Kl.oO, 1, h.wg.VD) || this;
- }
- da(a, n.ko);
- b = a;
- return b = c.__decorate([l.N(), c.__param(0, l.l(p.ck))], b);
- }
- ();
- b.Msa = d;
- }, function (d, b, a) {
- var c,
- l,
- q,
- n,
- k,
- p,
- h;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.nxa = void 0;
- c = a(0);
- l = a(1);
- q = a(2);
- n = a(120);
- k = a(78);
- p = a(45);
- h = a(43);
- d = function () {
- var b;
- function a(a) {
- return n.ko.call(this, a, q.J.Jwa, k.Kl.stop, 3, h.wg.j6) || this;
- }
- da(a, n.ko);
- b = a;
- return b = c.__decorate([l.N(), c.__param(0, l.l(p.ck))], b);
- }
- ();
- b.nxa = d;
- }, function (d, b, a) {
- var c,
- l,
- q,
- n,
- k,
- p,
- h;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.kxa = void 0;
- c = a(0);
- l = a(1);
- q = a(2);
- n = a(120);
- k = a(78);
- p = a(45);
- h = a(43);
- d = function () {
- var b;
- function a(a) {
- return n.ko.call(this, a, q.J.y2a, k.Kl.start, 3, h.wg.cr) || this;
- }
- da(a, n.ko);
- b = a;
- return b = c.__decorate([l.N(), c.__param(0, l.l(p.ck))], b);
- }
- ();
- b.kxa = d;
- }, function (d, b, a) {
- var c,
- l,
- q,
- n;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.cva = void 0;
- c = a(0);
- l = a(1);
- q = a(25);
- n = a(42);
- d = function () {
- var b;
- function a(a, b) {
- this.gd = a;
- this.ju = b;
- }
- a.prototype.aUa = function (a) {
- var b,
- c;
- b = this;
- c = a.map(function (a) {
- return a.links.releaseLicense.href;
- }).map(function (a) {
- return b.gd.vP(a.substring(a.indexOf("?") + 1));
- });
- return {
- V: !0,
- Yb: a.map(function (a, b) {
- return {
- id: a.drmSessionId,
- qy: c[b].drmlicensecontextid,
- gH: c[b].licenseid
- };
- }),
- zk: a.map(function (a) {
- return {
- data: b.ju.decode(a.licenseResponseBase64),
- sessionId: a.drmSessionId
- };
- })
- };
- };
- a.prototype.UGb = function (a) {
- return {
- V: !0,
- response: {
- data: a.reduce(function (a, b) {
- var c;
- c = b.secureStopResponseBase64;
- (b = b.drmSessionId) && c && (a[b] = c);
- return a;
- }, {})
- }
- };
- };
- b = a;
- return b = c.__decorate([l.N(), c.__param(0, l.l(q.af)), c.__param(1, l.l(n.Gi))], b);
- }
- ();
- b.cva = d;
- }, function (d, b, a) {
- var c,
- l,
- q,
- n;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.bva = void 0;
- c = a(0);
- l = a(1);
- q = a(39);
- n = a(3);
- d = function () {
- var b;
- function a(a) {
- this.Ga = a;
- }
- a.prototype.QGb = function (a) {
- var b;
- b = this.Ga.jf.ca(n.Pl);
- return {
- inputs: a.Ph.map(function (c) {
- return {
- drmSessionId: c.sessionId,
- clientTime: b,
- challengeBase64: c.dataBase64,
- xid: a.fa.toString(),
- mdxControllerEsn: a.LO
- };
- }),
- Vha: "standard" === a.Uh.toLowerCase() ? "license" : "ldl"
- };
- };
- a.prototype.TGb = function (a) {
- var b,
- c,
- h,
- d;
- b = this;
- c = a.gQ || {};
- h = [];
- d = a.Yb.map(function (f) {
- var d;
- h.push(f.id);
- d = c[f.id];
- delete c[f.id];
- return {
- url: b.oDa(f.qy, f.gH),
- echo: "drmSessionId",
- params: {
- drmSessionId: f.id,
- secureStop: d,
- secureStopId: d ? f.gH : void 0,
- xid: a.fa.toString()
- }
- };
- });
- Object.keys(c).forEach(function (f) {
- d.push({
- url: b.oDa(a.Yb[0].qy),
- echo: "drmSessionId",
- params: {
- drmSessionId: f,
- secureStop: c[f],
- secureStopId: void 0,
- xid: a.fa.toString()
- }
- });
- });
- return d;
- };
- a.prototype.oDa = function (a, b) {
- return "/releaseLicense?drmLicenseContextId=" + a + (b ? "&licenseId=" + b : "");
- };
- b = a;
- return b = c.__decorate([l.N(), c.__param(0, l.l(q.Ii))], b);
- }
- ();
- b.bva = d;
- }, function (d, b, a) {
- var c,
- l,
- q,
- n,
- k,
- p;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.qva = void 0;
- c = a(0);
- l = a(1);
- q = a(2);
- n = a(43);
- k = a(66);
- p = a(45);
- d = function () {
- var b;
- function a(a) {
- return k.rh.call(this, a, q.J.Dwa, 3, n.uh.Fg, n.wg.j6, "release/license") || this;
- }
- da(a, k.rh);
- a.prototype.kf = function (a, b) {
- var c;
- c = this;
- return this.send(a, "/bundle", b).then(function (a) {
- a = a.result;
- c.ODa(a);
- return a;
- })["catch"](function (a) {
- throw c.mm(a);
- });
- };
- a.prototype.Uo = function () {
- return Promise.reject(Error("Links are unsupported with release"));
- };
- b = a;
- return b = c.__decorate([l.N(), c.__param(0, l.l(p.ck))], b);
- }
- ();
- b.qva = d;
- }, function (d, b, a) {
- var c,
- l,
- q,
- n,
- k,
- p;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Tua = void 0;
- c = a(0);
- l = a(1);
- q = a(2);
- n = a(43);
- k = a(66);
- p = a(45);
- d = function () {
- var b;
- function a(a) {
- return k.rh.call(this, a, q.J.tw, 3, n.uh.Fg, n.wg.cr, n.uh.Fg) || this;
- }
- da(a, k.rh);
- a.prototype.kf = function () {
- return Promise.reject(Error("Links are required with acquire command"));
- };
- a.prototype.Uo = function (a, b, c) {
- var f,
- h;
- f = this;
- b = b.ofa(c.Vha).href;
- h = "license" === c.Vha ? n.wg.cr : n.wg.VD;
- this.w$ = "ldl" === c.Vha ? "prefetch/license" : n.uh.Fg;
- return this.send(a, b, c.inputs, "drmSessionId", h).then(function (a) {
- a = a.result;
- f.ODa(a);
- f.Zbb(a);
- return a;
- })["catch"](function (a) {
- throw f.mm(a);
- });
- };
- a.prototype.Zbb = function (a) {
- a.forEach(function (a) {
- if (!a.licenseResponseBase64)
- throw Error("Received empty licenseResponseBase64");
- });
- };
- b = a;
- return b = c.__decorate([l.N(), c.__param(0, l.l(p.ck))], b);
- }
- ();
- b.Tua = d;
- }, function (d, b, a) {
- var c,
- l,
- q,
- n,
- k,
- p,
- h,
- f,
- u,
- g,
- G,
- m,
- H,
- D,
- r,
- J,
- R,
- t,
- ba,
- z,
- T,
- U;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.fva = void 0;
- c = a(0);
- l = a(1);
- q = a(123);
- n = a(2);
- k = a(43);
- p = a(463);
- h = a(5);
- f = a(14);
- u = a(68);
- a(153);
- g = a(66);
- G = a(45);
- m = a(234);
- H = a(433);
- D = a(285);
- r = a(100);
- J = a(33);
- R = a(30);
- t = a(166);
- ba = a(39);
- z = a(3);
- T = a(260);
- U = a(198);
- d = function () {
- var b;
- function a(a, b, c, f, h, d, l, p, u, q, A) {
- a = g.rh.call(this, a, n.J.MANIFEST, 3, k.uh.ya, k.wg.cr, k.uh.ya) || this;
- a.platform = b;
- a.config = c;
- a.aX = f;
- a.Kbb = h;
- a.syb = d;
- a.vl = l;
- a.Ftb = p;
- a.sba = u;
- a.Ga = q;
- a.rsb = A;
- return a;
- }
- da(a, g.rh);
- a.prototype.kf = function (a, b) {
- var c;
- c = this;
- this.w$ = b.Vx === q.Uk.O6 ? "prefetch/manifest" : k.uh.ya;
- return this.gjb(b).then(function (f) {
- var h,
- d;
- f = S(f);
- h = f.next().value;
- d = f.next().value;
- return c.send(a, d.mk, h, void 0, c.Fnb(b.Vx), void 0, b.Vx === q.Uk.U7 ? R.st.$va : R.st.BT).then(function (a) {
- var b;
- a = c.Ftb.create(a.result);
- b = a.Uf.ew.map(function (a) {
- return a.Fg;
- }).filter(Boolean);
- d.oB && (0 < b.length ? (b = c.rsb.aUa(b), d.oB.LBa(b), a.oB = d.oB) : d.oB.close().subscribe());
- return a;
- });
- })["catch"](function (a) {
- throw c.mm(a);
- });
- };
- a.prototype.Uo = function () {
- return Promise.reject(Error("Links are not supported with manifest command"));
- };
- a.prototype.gjb = function (a) {
- var b,
- c,
- f,
- d,
- k,
- l,
- u,
- n;
- b = this;
- c = a.Oa;
- f = Object.assign({}, c.fM, c.eo);
- d = {};
- k = a.oa;
- d[k] = {
- unletterboxed: !!f.preferUnletterboxed
- };
- l = this.config().tIb ? 30 : 25;
- u = h.FB();
- n = this.config().Dp ? this.vl.$lb() : Promise.resolve(p.e6.kq());
- return Promise.all([u.cob(), u.dob(), u.HG(), u.NN(), this.wlb(a.fa), this.cmb(a), n]).then(function (h) {
- var p,
- u,
- n,
- q,
- g,
- A;
- p = S(h);
- u = p.next().value;
- n = p.next().value;
- q = p.next().value;
- g = p.next().value;
- A = p.next().value;
- h = p.next().value;
- p = p.next().value;
- u = (u || []).concat(n || []).concat(b.config().Zv).concat(["BIF240", "BIF320"]).filter(Boolean);
- n = g && void 0 !== g.SUPPORTS_SECURE_STOP ? !!g.SUPPORTS_SECURE_STOP : void 0;
- g = g ? g.DEVICE_SECURITY_LEVEL : void 0;
-
- if(useddplus) {
- u.push("ddplus-2.0-dash");
- u.push("ddplus-5.1-dash");
- u.push("ddplus-5.1hq-dash");
- u.push("ddplus-atmos-dash");
- }
-
- if(useallSub) {
- f.showAllSubDubTracks = 1
- }
-
- q = {
- type: "standard",
- viewableId: k,
- profiles: u,
- flavor: a.Vx,
- drmType: p,
- drmVersion: l,
- usePsshBox: !0,
- isBranching: !!a.Oa.Zi,
- useHttpsStreams: !0,
- supportsUnequalizedDownloadables: b.config().VFb,
- imageSubtitleHeight: m.TT.Gfa(),
- uiVersion: b.context.Lj.iR,
- uiPlatform: b.context.Lj.F2,
- clientVersion: b.platform.version,
- supportsPreReleasePin: b.config().Gu.RFb,
- supportsWatermark: b.config().Gu.SFb,
- showAllSubDubTracks: b.config().Gu.EEb || !!f.showAllSubDubTracks,
- packageId: b.hnb(c),
- deviceSupportsSecureStop: n,
- deviceSecurityLevel: g,
- videoOutputInfo: q,
- titleSpecificData: d,
- preferAssistiveAudio: !!f.assistiveAudioPreferred,
- preferredTextLocale: f.preferredTextLocale,
- preferredAudioLocale: f.preferredAudioLocale,
- isUIAutoPlay: !!f.isUIAutoPlay,
- challenge: A,
- isNonMember: b.context.Lj.YG,
- pin: c.dPa,
- desiredVmaf: b.config().oIb ? b.config().$gb : b.config().ahb
- };//console.log(u);
- c.BGa && (q.extraParams = c.BGa);
- A = {
- mk: h ? "licensedManifest" : "manifest",
- oB: null === h || void 0 === h ? void 0 : h.rb
- };
- h && (h = {
- drmSessionId: h.rb.ay() || "session",
- clientTime: b.Ga.P1.ca(z.Pl),
- challengeBase64: h.HDa
- }, q.challenges = {
- "default": [h]
- }, q.profileGroups = [{
- name: "default",
- profiles: u
- }
- ], q.licenseType = "standard");
- return [q, A];
- });
- };
- a.prototype.hnb = function (a) {
- if (this.config().Y0.enabled) {
- if (void 0 !== a.xl)
- return a.xl;
- if (void 0 !== this.config().Y0.xl)
- return Number(this.config().Y0.xl);
- }
- };
- a.prototype.Fnb = function (a) {
- switch (a) {
- case q.Uk.Ol:
- case q.Uk.zYa:
- return k.wg.cr;
- case q.Uk.G7:
- case q.Uk.U7:
- return k.wg.j6;
- case q.Uk.O6:
- return k.wg.VD;
- }
- };
- a.prototype.wlb = function (a) {
- var b;
- b = this;
- return this.Kbb.JHa().then(function (c) {
- var f;
- f = a && b.syb.nnb(a);
- f && f.yn("cad");
- return c;
- });
- };
- a.prototype.cmb = function (a) {
- return (a.Vx === q.Uk.Ol || a.Vx === q.Uk.G7) && this.config().Dp && this.config().Gcb ? this.sba.XIa() : Promise.resolve(void 0);
- };
- b = a;
- return b = c.__decorate([l.N(), c.__param(0, l.l(G.ck)), c.__param(1, l.l(J.dk)), c.__param(2, l.l(f.jd)), c.__param(3, l.l(u.ED)), c.__param(4, l.l(H.I3)), c.__param(5, l.l(D.xT)), c.__param(6, l.l(r.pt)), c.__param(7, l.l(t.XD)), c.__param(8, l.l(T.bS)), c.__param(9, l.l(ba.Ii)), c.__param(10, l.l(U.qT))], b);
- }
- ();
- b.fva = d;
- }, function (d, b, a) {
- var c,
- l,
- q,
- n,
- k,
- p;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.eva = void 0;
- c = a(0);
- l = a(1);
- q = a(2);
- n = a(43);
- k = a(66);
- p = a(45);
- d = function () {
- var b;
- function a(a) {
- return k.rh.call(this, a, q.J.V_a, 1, n.uh.MLa, n.wg.VD, n.uh.MLa) || this;
- }
- da(a, k.rh);
- a.prototype.kf = function (a, b) {
- var c;
- c = this;
- return this.send(a, "/" + this.name, b).then(function (a) {
- return a.result;
- })["catch"](function (a) {
- throw c.mm(a);
- });
- };
- a.prototype.Uo = function () {
- return Promise.reject(Error("Links are unsupported with logblobs"));
- };
- b = a;
- return b = c.__decorate([l.N(), c.__param(0, l.l(p.ck))], b);
- }
- ();
- b.eva = d;
- }, function (d, b, a) {
- var c,
- l,
- q,
- n,
- k,
- p,
- h,
- f,
- u,
- g,
- G,
- m,
- H,
- D,
- r,
- J,
- R,
- t,
- ba,
- z,
- T,
- U,
- ea,
- ha,
- V,
- ta,
- N,
- na,
- ma,
- x,
- Q,
- B;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.iEa = void 0;
- d = a(1);
- c = a(347);
- l = a(601);
- q = a(123);
- n = a(600);
- k = a(334);
- p = a(599);
- h = a(332);
- f = a(598);
- u = a(331);
- g = a(597);
- G = a(198);
- m = a(596);
- H = a(78);
- D = a(595);
- r = a(594);
- J = a(47);
- R = a(2);
- t = a(593);
- ba = a(592);
- z = a(591);
- T = a(45);
- U = a(590);
- ea = a(187);
- ha = a(589);
- V = a(588);
- ta = a(587);
- N = a(351);
- na = a(586);
- ma = a(585);
- x = a(584);
- Q = a(453);
- B = a(583);
- b.iEa = new d.Ec(function (a) {
- a(T.ck).to(U.Xua);
- a(c.a7).to(l.eva);
- a(ea.oT).to(ha.Uua);
- a(N.R6).to(na.Vua);
- a(V.hva).to(ta.gva);
- a(q.rT).to(n.fva);
- a(k.Q6).to(p.Tua);
- a(h.f7).to(f.qva);
- a(u.X6).to(g.bva);
- a(G.qT).to(m.cva);
- a(H.d8).to(D.kxa);
- a(H.e8).to(r.nxa);
- a(H.E5).to(t.Msa);
- a(H.a8).to(ba.ixa);
- a(H.B4).to(z.gra);
- a(x.jva).to(ma.iva);
- a(Q.W6).to(B.ava);
- a(H.qS).tf(function (a) {
- return function (b) {
- switch (b) {
- case H.Kl.start:
- return a.lb.get(H.d8);
- case H.Kl.stop:
- return a.lb.get(H.e8);
- case H.Kl.oO:
- return a.lb.get(H.E5);
- case H.Kl.splice:
- return a.lb.get(H.a8);
- case H.Kl.nN:
- return a.lb.get(H.B4);
- }
- throw new J.Dc(R.J.e1a, void 0, void 0, void 0, void 0, "The event key was invalid - " + b);
- };
- });
- });
- }, function (d, b, a) {
- var c,
- l,
- q,
- n,
- k,
- p,
- h,
- f;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.eua = void 0;
- c = a(0);
- l = a(1);
- q = a(49);
- n = a(69);
- k = a(3);
- p = a(67);
- h = a(30);
- f = {
- start: {
- video: q.xa.$R,
- audio: q.xa.WR
- },
- end: {
- video: q.xa.ZR,
- audio: q.xa.VR
- }
- };
- d = function () {
- var b;
- function a(a, b) {
- var c;
- c = this;
- this.Hk = a;
- this.iq = b;
- this.WTa = function (a) {
- var b,
- f,
- h,
- d,
- k,
- l;
- b = c.uTa++;
- f = a.request.lB || "dl";
- h = c.mJa(f, "start");
- if (h) {
- d = a.request.jp.stream.R.Jk;
- if (d && !c.SSa.has(d)) {
- k = c.NIa(d);
- l = a.Iq;
- c.Hk.mark(h, k, l ? f + "-" + l + "-" + b : f);
- a.haa(function () {
- var a,
- h;
- a = c.mJa(f, "end");
- h = l ? f + "-" + l + "-" + b : f;
- a && c.Hk.mark(a, k, h);
- });
- }
- }
- };
- this.uTa = 0;
- this.SSa = new Set();
- this.Yla = new Map();
- b.kN && this.jJb();
- }
- a.prototype.OIa = function (a) {
- var c,
- f,
- h,
- d,
- l,
- p,
- u,
- n;
- function b(b) {
- return k.timestamp(c.ZBa(k.timestamp(b), a, !0));
- }
- c = this;
- f = new Set();
- h = a.Uc;
- d = a.XEb;
- l = a.fa;
- p = a.Na;
- u = this.Hk.CIa(l);
- n = p && this.NIa(p);
- n && u.push.apply(u, [].concat(Y(this.Hk.CIa(n))));
- this.Hk.GQa(a.fa);
- n && this.Hk.GQa(n);
- p && this.SSa.add(p);
- p = [];
- "pr_ats" in h && p.push({
- name: q.xa.JT,
- Rs: b(h.pr_ats),
- fa: l,
- nk: "request-pre-manifest"
- });
- "ats" in h && p.push({
- name: q.xa.HT,
- Rs: b(h.ats),
- fa: l,
- nk: "request-manifest"
- });
- "pr_at" in h && p.push({
- name: q.xa.IT,
- Rs: b(h.pr_at),
- fa: l,
- nk: "request-pre-manifest"
- });
- "at" in h && p.push({
- name: q.xa.GT,
- Rs: b(h.at),
- fa: l,
- nk: "request-manifest"
- });
- "lg" in h && p.push({
- name: q.xa.FT,
- Rs: b(h.lg),
- fa: l,
- nk: "request-license"
- });
- "lr" in h && p.push({
- name: q.xa.ET,
- Rs: b(h.lr),
- fa: l,
- nk: "request-license"
- });
- "tt_start" in h && p.push({
- name: q.xa.YR,
- Rs: b(h.tt_start),
- fa: l,
- nk: "request-timed-text"
- });
- "tt_comp" in h && p.push({
- name: q.xa.XR,
- Rs: b(h.tt_comp),
- fa: l,
- nk: "request-timed-text"
- });
- return p.concat(u).map(function (b) {
- return c.yGb(b, a);
- }).filter(function (a) {
- return a.timestamp <= d ? ("end" === a.step && f.add(a.eventId), !0) : !1;
- }).filter(function (a) {
- return "start" !== a.step || f.has(a.eventId) ? !0 : !1;
- }).sort(function (a, b) {
- return a.timestamp - b.timestamp;
- });
- };
- a.prototype.S9a = function (a, b, c) {
- return (void 0 === c ? 0 : c) ? a.ca(k.ia) + b.Ik.ca(k.ia) : a.ca(k.ia) - b.Ik.ca(k.ia);
- };
- a.prototype.ZBa = function (a, b, c) {
- c = void 0 === c ? !1 : c;
- if (b.Rk)
- if (c)
- a.ca(k.ia) + b.Rk;
- else
- return a.ca(k.ia) - b.Rk;
- return this.S9a(a, b, c);
- };
- a.prototype.yGb = function (a, b) {
- var c;
- c = a.name;
- return {
- eventName: c,
- eventId: a.nk || c,
- timestamp: this.ZBa(a.Rs, b),
- component: this.DN(c),
- category: this.vlb(c),
- step: this.Ynb(c)
- };
- };
- a.prototype.DN = function (a) {
- switch (a) {
- case q.xa.JT:
- case q.xa.IT:
- case q.xa.HT:
- case q.xa.GT:
- return "manifest";
- case q.xa.FT:
- case q.xa.ET:
- case q.xa.R7:
- case q.xa.Q7:
- case q.xa.uS:
- case q.xa.tS:
- case q.xa.i3:
- case q.xa.h3:
- return "license";
- case q.xa.YR:
- case q.xa.XR:
- case q.xa.WR:
- case q.xa.VR:
- case q.xa.$R:
- case q.xa.ZR:
- case q.xa.g3:
- case q.xa.f3:
- return "buffering";
- case q.xa.I6:
- case q.xa.H6:
- return "playback";
- default:
- return null;
- }
- };
- a.prototype.vlb = function (a) {
- switch (a) {
- case q.xa.JT:
- case q.xa.IT:
- case q.xa.HT:
- case q.xa.GT:
- return "aws";
- case q.xa.FT:
- case q.xa.ET:
- return "mixed";
- case q.xa.I6:
- case q.xa.H6:
- case q.xa.R7:
- case q.xa.Q7:
- case q.xa.uS:
- case q.xa.tS:
- case q.xa.i3:
- case q.xa.h3:
- case q.xa.g3:
- case q.xa.f3:
- return "dev";
- case q.xa.YR:
- case q.xa.XR:
- case q.xa.WR:
- case q.xa.VR:
- case q.xa.$R:
- case q.xa.ZR:
- return "cdn";
- default:
- return null;
- }
- };
- a.prototype.Ynb = function (a) {
- switch (a) {
- case q.xa.JT:
- case q.xa.I6:
- case q.xa.HT:
- case q.xa.FT:
- case q.xa.g3:
- case q.xa.YR:
- case q.xa.WR:
- case q.xa.$R:
- case q.xa.R7:
- case q.xa.uS:
- case q.xa.i3:
- return "start";
- case q.xa.IT:
- case q.xa.H6:
- case q.xa.GT:
- case q.xa.ET:
- case q.xa.Q7:
- case q.xa.tS:
- case q.xa.h3:
- case q.xa.f3:
- case q.xa.XR:
- case q.xa.VR:
- case q.xa.ZR:
- return "end";
- default:
- return null;
- }
- };
- a.prototype.mJa = function (a, b) {
- if (a in f[b])
- return f[b][a];
- };
- a.prototype.sHb = function () {
- p.We.removeEventListener(p.uZ, this.WTa);
- };
- a.prototype.jJb = function () {
- this.sHb();
- p.We.addEventListener(p.uZ, this.WTa);
- };
- a.prototype.NIa = function (a) {
- var b;
- if (this.Yla.has(a))
- return this.Yla.get(a);
- b = Date.now();
- this.Yla.set(a, b);
- return b;
- };
- b = a;
- return b = c.__decorate([l.N(), c.__param(0, l.l(n.ZD)), c.__param(1, l.l(h.Yj))], b);
- }
- ();
- b.eua = d;
- }, function (d, b, a) {
- var l;
- function c(a, b, c, d) {
- this.$ca = a;
- this.debug = b;
- this.qa = c;
- this.j = d;
- this.x0 = [];
- this.X_ = {};
- this.bda = {};
- this.gea = !1;
- this.uTa = 1;
- this.Woa = 7.8125;
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.xqa = void 0;
- l = a(3);
- a(13);
- a(15);
- a(67);
- c.prototype.register = function (a, b) {
- this.debug.assert(!(0 <= this.x0.indexOf(a)), "panel already registered");
- this.X_[a] = b;
- this.x0.push(a);
- };
- c.prototype.QNa = function (a) {
- var b;
- b = this;
- this.bda[a] = !0;
- this.gea || (this.gea = !0, setTimeout(function () {
- return b.akb();
- }, 0));
- };
- c.prototype.Smb = function (a) {
- return (a = this.X_[a]) ? a() : void 0;
- };
- c.prototype.EY = function () {
- var a;
- a = this.j.I0;
- return a ? a.EY() : [];
- };
- c.prototype.addEventListener = function (a, b) {
- this.$ca.addListener(a, b);
- this.X_[a] && this.QNa(a);
- };
- c.prototype.removeEventListener = function (a, b) {
- this.$ca.removeListener(a, b);
- };
- c.prototype.getTime = function () {
- return this.qa.$b().ca(l.ia);
- };
- c.prototype.akb = function () {
- this.gea = !1;
- for (var a = this.x0.length, b; a--; )
- b = this.x0[a], this.bda[b] && (this.bda[b] = !1, this.$ca.Xb(b + "changed", {
- getModel: this.X_[b]
- }));
- };
- b.xqa = c;
- }, function (d, b, a) {
- var l,
- q,
- n,
- k,
- p,
- h,
- f;
- function c(a, b, c, d, k, q, g, m, r) {
- var u;
- u = this;
- this.cHb = a;
- this.j = b;
- this.id = c;
- this.height = d;
- this.width = k;
- this.eyb = q;
- this.fyb = g;
- this.size = m;
- this.se = r;
- this.type = l.Mg.Ena;
- this.Rv = !0;
- this.state = p.jn.iT;
- this.eh = {};
- this.kW = {};
- this.Czb = function (a) {
- if (a.V)
- try {
- u.data = u.cHb.parse(a.content);
- u.state = p.jn.LOADED;
- u.log.trace("TrickPlay parsed", {
- Images: u.data.images.length
- }, u.eh);
- u.j.fireEvent(h.U.dR);
- } catch (z) {
- u.state = p.jn.Dua;
- u.log.error("TrickPlay parse failed.", z);
- }
- else
- u.state = p.jn.iT, u.log.error("TrickPlay download failed.", f.Kp(a), u.eh);
- };
- this.log = n.$g(b, "TrickPlay");
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Yxa = void 0;
- l = a(77);
- q = a(12);
- n = a(5);
- k = a(67);
- p = a(310);
- h = a(13);
- f = a(2);
- c.prototype.nmb = function (a) {
- if (this.data && (a = Math.floor(a / this.data.Wo.NTa), 0 <= a && a < this.data.images.length))
- return {
- image: this.data.images[a],
- time: a * this.data.Wo.NTa,
- height: this.height,
- width: this.width,
- pixelAspectHeight: this.eyb,
- pixelAspectWidth: this.fyb
- };
- };
- c.prototype.RY = function () {
- switch (this.state) {
- case p.jn.LOADED:
- return "downloaded";
- case p.jn.LOADING:
- return "loading";
- case p.jn.VJ:
- return "downloadfailed";
- case p.jn.Dua:
- return "parsefailed";
- default:
- return "notstarted";
- }
- };
- c.prototype.download = function () {
- var a;
- a = this.vob();
- a ? (this.state = p.jn.LOADING, this.Dhb(a)) : this.Rv = !1;
- };
- c.prototype.bd = function () {
- return this.state;
- };
- c.prototype.vob = function () {
- var a,
- b,
- c;
- a = this;
- b = Object.keys(this.se).find(function (b) {
- return (a.kW[a.se[b]] || 0) <= q.config.ZGb;
- });
- if (b) {
- c = this.se[b];
- c in this.kW ? this.kW[c]++ : this.kW[c] = 1;
- return {
- url: c,
- Dx: b
- };
- }
- };
- c.prototype.Dhb = function (a) {
- this.log.trace("Downloading", a.url, this.eh);
- a = {
- responseType: k.YN,
- kc: this.Uea(a.Dx),
- url: a.url,
- track: this
- };
- this.j.xZ.download(a, this.Czb);
- };
- c.prototype.Uea = function (a) {
- return this.j.yj.find(function (b) {
- return b && b.id === a;
- });
- };
- b.Yxa = c;
- }, function (d, b, a) {
- var c,
- l,
- q,
- n,
- k;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.xwa = void 0;
- c = a(0);
- l = a(13);
- q = a(1);
- n = a(24);
- k = a(3);
- d = function () {
- var b;
- function a(a) {
- this.qa = a;
- this.trace = [];
- }
- a.prototype.Is = function (a) {
- a.cause !== l.Ge.Iz && (this.trace.unshift({
- time: this.qa.$b(),
- event: a
- }), 5 < this.trace.length && this.trace.pop());
- };
- a.prototype.fJa = function () {
- var a,
- b;
- a = this;
- if (0 === this.trace.length)
- return {};
- b = this.trace[0];
- return {
- timeSinceLastRepositionMs: this.HTa(b.time),
- lastRepositionCause: this.IHa(b.event.cause),
- repositionTrace: this.trace.map(function (b) {
- return {
- timeSince: a.HTa(b.time),
- cause: a.IHa(b.event.cause),
- newMediaTime: b.event.BH,
- oldMediaTime: b.event.jP,
- skip: b.event.skip
- };
- })
- };
- };
- a.prototype.HTa = function (a) {
- return this.qa.$b().Nb(a).ca(k.ia);
- };
- a.prototype.IHa = function (a) {
- switch (a) {
- case l.Ge.Iz:
- return "initial";
- case l.Ge.xt:
- return "seek";
- case l.Ge.Yz:
- return "segment_changed";
- case l.Ge.sK:
- return "track_changed";
- }
- };
- b = a;
- return b = c.__decorate([q.N(), c.__param(0, q.l(n.Oe))], b);
- }
- ();
- b.xwa = d;
- }, function (d, b, a) {
- var l,
- q,
- n,
- k,
- p;
- function c(a, b, c, d) {
- this.fa = a;
- this.HBb = b;
- this.ja = c;
- this.app = d;
- this.Uc = {};
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Gva = void 0;
- l = a(0);
- q = a(1);
- n = a(8);
- k = a(24);
- p = a(3);
- d = function () {
- var b;
- function a(a, b) {
- this.Hf = a;
- this.app = b;
- this.Dd = {};
- this.ja = a.yb("PlaybackMilestoneStoreImpl");
- }
- a.prototype.UAb = function (a, b) {
- this.Dd[a] && this.ja.warn("registerPlayback: xid " + a + " already registered, overriding");
- b = (b ? b : this.app.$b()).ca(p.ia);
- this.ja.trace("registerPlayback: xid " + a + " at " + b);
- this.Dd[a] = new c(a, b, this.ja, this.app);
- return this.Dd[a];
- };
- a.prototype.nnb = function (a) {
- this.Dd[a] || this.ja.warn("getPlaybackMilestones: xid " + a + " is not registered");
- return this.Dd[a];
- };
- a.prototype.jBb = function (a) {
- this.ja.trace("removePlayback: xid " + a);
- delete this.Dd[a];
- };
- b = a;
- return b = l.__decorate([q.N(), l.__param(0, q.l(n.Bb)), l.__param(1, q.l(k.Oe))], b);
- }
- ();
- b.Gva = d;
- c.prototype.yn = function (a, b) {
- b = b ? b.ca(p.ia) : this.app.$b().ca(p.ia) - this.HBb;
- this.ja.trace("addMilestone: xid " + this.fa + " " + a + " at " + b);
- this.Uc[a] = b;
- };
- }, function (d, b, a) {
- var l,
- q,
- n,
- k,
- p,
- h,
- f,
- u,
- g,
- G,
- m,
- H,
- D,
- r;
- function c(a, b, c, f, d) {
- var p;
- p = this;
- this.j = a;
- this.xh = b;
- this.nR = c;
- this.gd = f;
- this.GSa = d;
- this.Cca = {};
- this.update = function () {
- var a;
- if (p.Pm.selectionStart == p.Pm.selectionEnd) {
- a = "";
- p.EY().forEach(function (b) {
- a = a ? a + "\n" : "";
- Object.keys(b).forEach(function (c) {
- a += c + ": " + b[c] + "\n";
- });
- });
- p.Pm.style.fontSize = k.Xm(h.ot(p.element.clientHeight / 60), 8, 18) + "px";
- p.Pm.value = a;
- }
- };
- this.Kwb = function () {
- var a,
- b;
- if (p.j.$i) {
- b = p.j.$i.GB();
- b && (p.Aca = b - (null !== (a = p.UTa) && void 0 !== a ? a : 0), p.UTa = b, p.nP());
- }
- };
- this.nP = function () {
- p.nR.Mc(p.update);
- };
- this.onkeydown = function (a) {
- a.ctrlKey && a.altKey && a.shiftKey && (a.keyCode == g.dr.DXa || a.keyCode == g.dr.Q) && p.toggle();
- };
- this.kPa = [a.cc, a.kc[l.Ac.La.AUDIO], a.kc[l.Ac.La.VIDEO], a.qg, a.qf, a.kl, a.xf, a.vj, a.state, a.Io, a.Qb, a.volume, a.muted];
- this.element = this.gd.createElement("div", "position:absolute;left:10px;top:10px;right:10px;bottom:10px", void 0, {
- "class": "player-info"
- });
- this.Pm = this.gd.createElement("textarea", "position:absolute;resize:none;box-sizing:border-box;width:100%;height:100%;padding:10px;background-color:rgba(0,0,0,0.4);color:#fff;font-size:12px;font-family:Arial;overflow:auto", void 0, {
- readonly: "readonly"
- });
- this.element.appendChild(this.Pm);
- this.controls = this.gd.createElement("div", "position:absolute;top:2px;right:2px");
- this.element.appendChild(this.controls);
- b = this.gd.createElement("button", void 0, "X");
- b.addEventListener("click", function () {
- return p.Xo();
- }, !1);
- this.controls.appendChild(b);
- n.Me.addListener(n.fy, this.onkeydown);
- a.addEventListener(u.U.Cf, function () {
- n.Me.removeListener(n.fy, p.onkeydown);
- p.Xo();
- });
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Eva = void 0;
- l = a(51);
- q = a(57);
- n = a(56);
- k = a(92);
- p = a(184);
- h = a(10);
- f = a(15);
- u = a(13);
- g = a(102);
- G = a(3);
- d = {};
- m = (d[u.qb.dE] = "Not Loaded", d[u.qb.LOADING] = "Loading", d[u.qb.xd] = "Normal", d[u.qb.CLOSING] = "Closing", d[u.qb.CLOSED] = "Closed", d);
- d = {};
- H = (d[u.Ze.xd] = "Normal", d[u.Ze.Ce] = "Pre-buffering", d[u.Ze.Hwa] = "Network stalled", d);
- d = {};
- D = (d[u.kb.bg] = "Waiting for decoder", d[u.kb.Pc] = "Playing", d[u.kb.Lh] = "Paused", d[u.kb.br] = "Media ended", d);
- r = [u.U.K_, u.U.xab];
- c.prototype.DDb = function (a) {
- this.Cca.DFR = a;
- };
- c.prototype.show = function () {
- var a;
- a = this;
- this.visible || (this.xqb = t.setInterval(this.Kwb, 1E3), this.j.Mf.appendChild(this.element), this.kPa.forEach(function (b) {
- b.addListener(a.nP);
- }), r.forEach(function (b) {
- a.j.addEventListener(b, a.nP);
- }), this.visible = !0);
- this.update();
- };
- c.prototype.Xo = function () {
- var a;
- a = this;
- this.visible && (clearInterval(this.xqb), this.UTa = this.Aca = void 0, this.j.Mf.removeChild(this.element), this.kPa.forEach(function (b) {
- b.removeListener(a.nP);
- }), r.forEach(function (b) {
- a.j.removeEventListener(b, a.nP);
- }), this.nR.Mc(), this.visible = !1);
- };
- c.prototype.toggle = function () {
- this.visible ? this.Xo() : this.show();
- };
- c.prototype.EY = function () {
- var b,
- c,
- d,
- u,
- n,
- g,
- A,
- C,
- r,
- K,
- t,
- N,
- na,
- ma,
- x,
- Q,
- B,
- ia,
- Ga,
- Za,
- ka,
- Da,
- Oa,
- Pa,
- L,
- S,
- Wa,
- W,
- Y,
- Ba,
- ca,
- da,
- aa,
- fa,
- ga,
- la,
- oa;
- b = this;
- K = [];
- t = this.xh();
- K.push({
- Version: "6.0023.976.031",
- Esn: t ? t.yh : "UNKNOWN",
- PBCID: this.j.nk,
- UserAgent: h.Nl
- });
- try {
- N = {
- MovieId: this.j.u,
- TrackingId: this.j.di,
- Xid: this.j.fa + " (" + q.Zm.map(function (a) {
- return a.fa;
- }).join(", ") + ")",
- Position: k.th(this.j.cc.value),
- Duration: k.th(this.j.Qr.ca(G.ia)),
- PlayerDuration: k.th(this.j.Cq.ca(G.ia)),
- Volume: h.Kh(100 * this.j.volume.value) + "%" + (this.j.muted.value ? " (Muted)" : "")
- };
- if (this.j.Oa.Zi || this.j.Oa.$Z)
- N["Segment Position"] = k.th(this.j.JB()), N.Segment = this.j.Dfa();
- K.push(N);
- } catch (ac) {}
- try {
- na = this.j.ul ? this.j.ul.Cpb() : void 0;
- K.push({
- "Player state": m[this.j.state.value],
- "Buffering state": H[this.j.Io.value] + (f.la(na) ? ", ETA:" + k.th(na) : ""),
- "Rendering state": D[this.j.Qb.value]
- });
- } catch (ac) {}
- try {
- ma = this.j.Xna() + this.j.Maa();
- x = this.j.qg.value;
- Q = null === x || void 0 === x ? void 0 : x.stream;
- B = this.j.qf.value;
- ia = null === B || void 0 === B ? void 0 : B.stream;
- Ga = null !== (c = null === Q || void 0 === Q ? void 0 : Q.O) && void 0 !== c ? c : "?";
- Za = ia ? ia.O + " (" + ia.width + "x" + ia.height + ")" : "?";
- ka = null !== (d = null === ia || void 0 === ia ? void 0 : ia.wc) && void 0 !== d ? d : "?";
- Da = null !== (n = null === (u = this.j.xf.value) || void 0 === u ? void 0 : u.wc) && void 0 !== n ? n : "?";
- Oa = null !== (A = null === (g = this.j.kl.value) || void 0 === g ? void 0 : g.O) && void 0 !== A ? A : "?";
- Pa = null !== (r = null === (C = this.j.xf.value) || void 0 === C ? void 0 : C.O) && void 0 !== r ? r : "?";
- L = this.j.kc[l.Ac.La.VIDEO].value;
- S = this.j.kc[l.Ac.La.AUDIO].value;
- K.push({
- "Playing bitrate (a/v)": Ga + " / " + Za,
- "Playing/Buffering vmaf": ka + "/" + Da,
- "Buffering bitrate (a/v)": Oa + " / " + Pa,
- "Buffer size in Bytes (a/v)": this.j.Maa() + " / " + this.j.Xna(),
- "Buffer size in Bytes": "" + ma,
- "Buffer size in Seconds (a/v)": k.th(this.j.bM()) + " / " + k.th(this.j.uR()),
- "Current CDN (a/v)": (S ? S.name + ", Id: " + S.id : "?") + " / " + (L ? L.name + ", Id: " + L.id : "?")
- });
- } catch (ac) {}
- try {
- if (this.j.qg.value && this.j.qf.value) {
- Wa = this.j.qg.value.stream.track;
- W = this.j.qf.value.stream;
- Y = this.j.vj.value;
- Ba = this.GSa.SM(this.j.sg.value ? this.j.sg.value.ic : []);
- ca = this.GSa.MM(Wa.ic);
- da = W.Vf;
- aa = /hevc/.test(da) ? "hevc" : /vp9/.test(da) ? "vp9" : /h264hpl/.test(da) ? "avchigh" : "avc";
- /hdr/.test(da) && (aa += ", hdr");
- /dv/.test(da) && (aa += ", dv");
- /prk/.test(da) && (aa += ", prk");
- K.push({
- "Audio Track": Wa.ll + ", Id: " + Wa.eb + ", Channels: " + Wa.Ko + ", Codec: " + ca,
- "Video Track": "Codec: " + Ba + " (" + aa + ")",
- "Timed Text Track": Y ? Y.ll + ", Profile: " + Y.profile + ", Id: " + Y.eb : "none"
- });
- }
- } catch (ac) {}
- try {
- fa = this.j.$i;
- ga = this.j.xf.value ? this.j.xf.value.jY : 0;
- la = a(286).YLa;
- K.push({
- Framerate: ga.toFixed(3),
- "Current Dropped Frames": f.la(this.Aca) ? this.Aca : "",
- "Total Frames": fa.HB(),
- "Total Dropped Frames": fa.GB(),
- "Total Corrupted Frames": fa.EN(),
- "Total Frame Delay": fa.DY(),
- "Main Thread stall/sec": la ? la.tmb().join(" ") : "DISABLED",
- VideoDiag: p.qia(this.j.WY())
- });
- } catch (ac) {}
- try {
- K.push({
- Throughput: this.j.Fa + " kbps"
- });
- } catch (ac) {}
- oa = void 0;
- try {
- Object.keys(this.Cca).forEach(function (a) {
- oa = oa || {};
- oa[a] = JSON.stringify(b.Cca[a]);
- });
- oa && K.push(oa);
- } catch (ac) {}
- return K;
- };
- b.Eva = c;
- }, function (d, b, a) {
- var l,
- q,
- n;
- function c(a, b) {
- this.config = a;
- this.j = b;
- this.ly = !1;
- this.Kha = 0;
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Uwa = void 0;
- l = a(13);
- q = a(3);
- n = a(92);
- c.prototype.Ymb = function (a, b, c, f) {
- var h,
- d,
- k,
- p,
- n;
- c = void 0 === c ? this.j.Na : c;
- f = void 0 === f ? !1 : f;
- h = b === l.Ge.Yz;
- d = this.j.uIa(c);
- f = this.zbb(h ? a : this.mcb(a, c), f, c, d);
- h ? (a = f, f = this.j.Gb.Rr(d, f, c)) : a = this.j.Gb.KM(d, f, c);
- b === l.Ge.Iz && (this.j.eDa = f);
- k = this.ru(a, b);
- p = (b === l.Ge.xt || b === l.Ge.sK) && !this.j.WKa;
- p = (h = h || k || p) ? a : f;
- if (this.j.Cq) {
- n = this.config().t0;
- this.j.BJa(p, n) || b !== l.Ge.xt || (p = this.j.Cq.ca(q.ia) - n - 1E3, h ? (a = p, f = this.j.Gb.Rr(d, p, c)) : (a = this.j.Gb.KM(d, p, c), f = p));
- }
- return {
- BH: p,
- Si: f,
- Ayb: a,
- ru: k
- };
- };
- c.prototype.zbb = function (a, b, c, f) {
- a = this.krb() || b ? Math.round(a) : this.Vnb(a, c, f);
- this.config().Tla && (a += this.config().Tla);
- return a;
- };
- c.prototype.ru = function (a, b) {
- return b === l.Ge.Yz || this.j.Oa.Zi && this.ly ? !1 : (b = this.j.Gb) && b.ru(a) || !1;
- };
- c.prototype.krb = function () {
- return this.j.Oa.Zi ? !0 : "boolean" === typeof this.j.Oa.DP ? this.j.Oa.DP : navigator.hardwareConcurrency && 2 >= navigator.hardwareConcurrency ? this.config().DP && this.config().Tyb : this.config().DP;
- };
- c.prototype.mcb = function (a, b) {
- b = this.j.Ru(b).Qr.ca(q.ia) - this.config().oJb;
- return n.Xm(a, 0, b);
- };
- c.prototype.Vnb = function (a, b, c) {
- var f;
- f = this.j.Oa.Zi ? this.config().YFa : this.config().Px;
- return this.j.Gb.xDa(a, c, f, b);
- };
- b.Uwa = c;
- }, function (d, b, a) {
- var c,
- l,
- q;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.aya = void 0;
- c = a(0);
- l = a(150);
- q = a(1);
- d = function () {
- var b,
- d;
- function a() {}
- a.prototype.parse = function (a) {
- var b,
- c;
- if (!a)
- throw Error("invalid array buffer");
- b = new Uint8Array(a);
- c = new l.xJ(b);
- a = this.rxb(c);
- b = this.txb(c, b, a);
- return {
- Wo: a,
- images: b
- };
- };
- a.prototype.rxb = function (a) {
- var c,
- h,
- d,
- k;
- if (a.vk() < this.JBb())
- throw Error("array buffer too short");
- b.pta.forEach(function (b) {
- if (b != a.Ae())
- throw Error("BIF has invalid magic.");
- });
- c = a.JC();
- if (c > b.VERSION)
- throw Error("BIF version in unsupported");
- h = a.JC();
- if (0 == h)
- throw Error("BIF has no frames.");
- d = a.JC();
- k = a.Qd(b.nwa);
- return {
- version: c,
- mwb: h,
- NTa: d,
- NBb: k
- };
- };
- a.prototype.txb = function (a, b, c) {
- var d,
- k;
- for (var f = [], h = 0; h <= c.mwb; h++) {
- k = {
- timestamp: a.JC(),
- offset: a.JC()
- };
- void 0 != d && f.push(b.subarray(d.offset, k.offset));
- d = k;
- }
- return f;
- };
- a.prototype.JBb = function () {
- return b.pta.length + 4 + 4 + 4 + b.nwa;
- };
- d = b = a;
- d.pta = [137, 66, 73, 70, 13, 10, 26, 10];
- d.VERSION = 0;
- d.nwa = 44;
- return d = b = c.__decorate([q.N()], d);
- }
- ();
- b.aya = d;
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.s8 = void 0;
- b.s8 = "TrickPlayParserSymbol";
- }, function (d, b, a) {
- var l,
- q;
- function c(a, b, c, h, f, d, q, g, m, H, D) {
- this.index = a;
- this.u = b;
- this.Na = c;
- this.Oa = h;
- this.fa = f;
- this.Ik = d;
- this.eia = q;
- this.gdb = m;
- this.PMa = D;
- this.ld = new l.Oc(null);
- this.sg = new l.Oc(null);
- this.vc = new l.Oc(null);
- this.vj = new l.Oc(null);
- this.Ss = new l.Oc(void 0);
- this.xf = new l.Oc(null);
- this.kl = new l.Oc(null);
- this.qg = new l.Oc(null);
- this.qf = new l.Oc(null);
- this.cc = new l.Oc(void 0);
- this.playbackRate = new l.Oc(1);
- this.Dn = new l.Oc(null);
- this.pu = this.Bx = "notcached";
- this.background = !1;
- g && (this.xf.set(g.xf.value), this.kl.set(g.kl.value));
-
- this.Cm = H(this);
- this.Hk = this.PMa.UAb(this.fa, this.Ik);
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Hva = void 0;
- l = a(185);
- q = a(3);
- c.prototype.fd = function (a) {
- this.Hk.yn(a);
- };
- c.prototype.Xu = function (a) {
- var b;
- b = this;
- Object.keys(a).forEach(function (c) {
- b.Hk.yn(c, q.Jb(a[c] - b.Ik.ca(q.ia)));
- });
- };
- c.prototype.i0 = function () {
- this.PMa.jBb(this.fa);
- };
- pa.Object.defineProperties(c.prototype, {
- re: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.Oa.re;
- }
- },
- sk: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.gc && this.gc.sk;
- }
- },
- Bn: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.gc && this.gc.Bn;
- }
- },
- Um: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.gc && this.gc.Um;
- }
- },
- aw: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.gc && this.gc.aw;
- }
- },
- Qk: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.gc && this.gc.Qk;
- }
- },
- pg: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.gc && this.gc.pg;
- }
- },
- fv: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.gc && this.gc.fv;
- }
- },
- Hq: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.gc && this.gc.Hq;
- }
- },
- yj: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.gc && this.gc.yj;
- }
- },
- R0: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.gc && this.gc.R0;
- }
- },
- Qr: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.g9 && 0 < this.g9.ca(q.ia) ? this.g9 : q.Jb(this.ya ? this.ya.Uf.duration : 0);
- },
- set: function (a) {
- this.g9 = a;
- }
- },
- di: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.Oa.di || 0;
- }
- },
- zca: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return void 0 !== this.MW ? this.MW : void 0 === this.cc.value ? null : this.gdb(this.cc.value, this.Na);
- }
- },
- nk: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- var a,
- b;
- return null === (b = null === (a = this.ya) || void 0 === a ? void 0 : a.Uf.CDa) || void 0 === b ? void 0 : b.vC;
- }
- },
- TC: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- var a,
- b;
- return null === (b = null === (a = this.ya) || void 0 === a ? void 0 : a.Uf.CDa) || void 0 === b ? void 0 : b.TC;
- }
- },
- Uc: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.Hk.Uc;
- }
- }
- });
- b.Hva = c;
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.l7 = void 0;
- b.l7 = "PlayTimeTrackerFactorySymbol";
- }, function (d, b, a) {
- var l,
- q,
- n,
- k,
- p,
- h,
- f,
- u,
- g;
- function c() {}
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.yva = void 0;
- l = a(0);
- q = a(1);
- n = a(8);
- k = a(14);
- p = a(90);
- a(3);
- h = a(21);
- f = a(86);
- u = a(9);
- g = a(20);
- c.prototype.encode = function (a) {
- return {
- key: a.key,
- downloadableId: a.md,
- bitrate: a.O,
- vmaf: a.wc,
- duration: a.duration,
- metric: a.TO,
- cdnId: a.Dx
- };
- };
- c.prototype.decode = function (a) {
- return {
- key: a.key,
- md: a.downloadableId,
- O: a.bitrate,
- wc: a.vmaf,
- duration: a.duration,
- TO: a.metric,
- Dx: a.cdnId
- };
- };
- d = function () {
- var b;
- function a(a, b, c, f, h) {
- var d;
- d = this;
- this.Bh = a;
- this.config = c;
- this.Ha = f;
- this.debug = h;
- this.M0 = [];
- this.mp = [];
- this.kka = [];
- this.UA = {};
- this.MFa = !1;
- this.iM = {};
- this.cha = 0;
- this.log = b.yb("PlayTimeTracker");
- this.startTime = this.Bh.cc.value;
- this.x_ = this.config().X8a;
- this.BR();
- this.UA.abrdel = 0;
- this.x_.forEach(function (a) {
- a = "abrdel" + a;
- d.iM[a] = 0;
- d.UA[a] = 0;
- });
- }
- a.prototype.QN = function () {
- var a;
- this.aD(this.Bh.cc.value);
- a = 0;
- this.mp.forEach(function (b) {
- a += b.endTime - b.startTime;
- });
- this.debug.assert(a === Math.floor(a), "Value of totalPlayTime is not an integer.");
- return Math.floor(a);
- };
- a.prototype.nJa = function () {
- var a;
- this.aD(this.Bh.cc.value);
- a = 0;
- this.mp.forEach(function (b) {
- a += (b.endTime - b.startTime) * b.bQa;
- });
- return Math.floor(a);
- };
- a.prototype.alb = function () {
- this.aD(this.Bh.cc.value);
- return {
- audio: this.IN(this.M0, this.XHa),
- video: this.IN(this.mp, this.XHa)
- };
- };
- a.prototype.lnb = function () {
- var a;
- a = {
- total: this.QN(),
- totalContentTime: this.nJa(),
- audio: this.IN(this.M0, this.BY),
- video: this.IN(this.mp, this.BY),
- timedtext: this.IN(this.kka, this.BY)
- };
- this.debug.assert(!(!a.audio || !a.video));
- return a;
- };
- a.prototype.zHa = function () {
- var a,
- b;
- this.aD(this.Bh.cc.value);
- a = this.Lea(this.mp, this.nlb);
- try {
- b = this.AHa(a);
- } catch (K) {
- return this.log.warn("Failed to calc average bitrate."),
- null;
- }
- this.UA.abrdel = Math.round(b);
- return this.UA.abrdel;
- };
- a.prototype.flb = function () {
- var a,
- b;
- this.aD(this.Bh.cc.value);
- a = this.Lea(this.mp, this.Cob);
- try {
- b = this.AHa(a);
- } catch (K) {
- return this.log.warn("Failed to calc average vmaf."),
- null;
- }
- return Math.round(b);
- };
- a.prototype.elb = function () {
- var a,
- b;
- a = this;
- if (!this.MFa) {
- b = this.QN();
- this.x_.forEach(function (c) {
- var f,
- h,
- d;
- if (0 === a.iM["abrdel" + c] && b > c * u.mj) {
- f = 0;
- h = 0;
- d = 0;
- a.mp.some(function (a) {
- f += a.stream.O * (a.endTime - a.startTime);
- h += a.endTime - a.startTime;
- d = a.stream.O;
- if (h > c * u.mj)
- return !0;
- });
- f && (a.iM["abrdel" + c] = Math.round((f - d * (h - c * u.mj)) / (c * u.mj)));
- }
- });
- 0 !== this.iM["abrdel" + this.x_[this.x_.length - 1]] && (this.MFa = !0);
- g.Ad(this.iM, function (b, c) {
- a.UA[b] = 0 === c ? a.UA.abrdel : c;
- });
- }
- return this.UA;
- };
- a.prototype.s9a = function (a) {
- this.cha += a;
- };
- a.prototype.opb = function () {
- return !!(this.mp[0] && this.mp[0].stream && this.Ha.Xd(this.mp[0].stream.wc));
- };
- a.prototype.BR = function () {
- var a;
- a = this;
- this.Bh.qg.addListener(function (b) {
- a.TF = a.JDa(a.TF, a.M0, b.newValue);
- });
- this.Bh.qf.addListener(function (b) {
- a.VF = a.JDa(a.VF, a.mp, b.newValue);
- });
- this.Bh.playbackRate.addListener(function (b) {
- a.aD(a.Bh.cc.value, b.oldValue);
- });
- this.Bh.vj.addListener(this.Awb.bind(this));
- };
- a.prototype.awb = function (a, b) {
- this.aD(a);
- this.startTime = b;
- this.VF = this.TF = void 0;
- this.UF && (this.UF.startTime = this.startTime);
- };
- a.prototype.Awb = function (a) {
- this.IP(this.UF, this.kka, this.Bh.cc.value);
- this.UF = a.newValue ? {
- track: a.newValue,
- startTime: this.Bh.cc.value,
- endTime: p.mt
- }
- : void 0;
- };
- a.prototype.aD = function (a, b) {
- b = void 0 === b ? this.Bh.playbackRate.value : b;
- a && this.TF && this.VF && (a = Math.min(a, this.TF.endTime, this.VF.endTime), this.IP(this.TF, this.M0, a, b), this.TF.startTime = a, this.IP(this.VF, this.mp, a, b), this.VF.startTime = a, this.UF && (this.IP(this.UF, this.kka, a, b), this.UF.startTime = a), this.startTime = a);
- };
- a.prototype.JDa = function (a, b, c) {
- a && this.IP(a, b, Math.min(a.endTime, this.Bh.cc.value));
- if (c && c.stream)
- return a = c.Lo, b = c.stream, {
- kc: c.kc,
- track: b.track,
- stream: b,
- startTime: Math.max(a.startTime, this.startTime),
- endTime: a.endTime
- };
- };
- a.prototype.IP = function (a, b, c, f) {
- f = void 0 === f ? this.Bh.playbackRate.value : f;
- a && c && c >= a.startTime && (a = {
- kc: a.kc,
- track: a.track,
- stream: a.stream,
- startTime: a.startTime,
- endTime: c,
- bQa: f
- }, (c = b[b.length - 1]) && c.track === a.track && c.stream === a.stream && c.kc === a.kc && c.endTime === a.startTime ? c.endTime = a.endTime : b.push(a));
- };
- a.prototype.Lea = function (a, b) {
- var c,
- f;
- c = this;
- f = {};
- return a.reduce(function (a, h) {
- var d,
- k,
- l;
- d = b.bind(c, h)();
- k = d.key;
- h = h.endTime - h.startTime;
- l = f[k];
- l ? l.duration += h : (delete d.key, l = d, l.duration = h, a.push(l), f[k] = l);
- return a;
- }, []);
- };
- a.prototype.IN = function (a, b) {
- return this.Lea(a, b).map(function (a) {
- return new c().encode(a);
- });
- };
- a.prototype.BY = function (a) {
- var b,
- c,
- f;
- f = a.stream;
- f ? (a = f.md, b = f.O, c = f.wc) : a = a.track.md;
- return {
- key: a + "$" + (b || 0),
- md: a,
- O: b,
- wc: c
- };
- };
- a.prototype.XHa = function (a) {
- var b;
- b = this.BY(a);
- a = a.kc.id;
- return Object.assign({}, b, {
- key: b.key + "$" + a,
- Dx: a
- });
- };
- a.prototype.nlb = function (a) {
- a = (a = a.stream) ? a.O : 0;
- return {
- key: a,
- TO: a
- };
- };
- a.prototype.Cob = function (a) {
- a = (a = a.stream) ? a.wc : 0;
- return {
- key: a,
- TO: a
- };
- };
- a.prototype.AHa = function (a) {
- var b,
- c,
- f;
- b = this;
- c = 0;
- a.forEach(function (a) {
- if (b.Ha.Xd(a.duration) && b.Ha.Xd(a.TO))
- c += a.duration;
- else
- throw Error("Invalid arguments: missing duration and/or metric in segment.");
- });
- if (!c)
- return 0;
- f = 0;
- a.forEach(function (a) {
- f += a.TO * a.duration / c;
- });
- return f;
- };
- b = a;
- return b = l.__decorate([q.N(), l.__param(1, q.l(n.Bb)), l.__param(2, q.l(k.jd)), l.__param(3, q.l(h.ee)), l.__param(4, q.l(f.$q))], b);
- }
- ();
- b.yva = d;
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.QPa = void 0;
- b.QPa = function (a) {
- var b,
- d;
- b = !1;
- d = !1;
- return function () {
- if (b)
- d = !0;
- else
- for (d = !0; d; )
- d = !1, b = !0, a(), b = !1;
- };
- };
- }, function (d, b, a) {
- var l,
- q,
- n,
- k,
- p,
- h;
- function c(a) {
- var b,
- c;
- b = this;
- this.j = a;
- this.Hwb = function () {
- var a;
- n.Me.removeListener(n.bZ, b.lOa);
- a = b.Yo.Pn();
- a && a.parentNode && a.parentNode.removeChild(a);
- };
- this.Rja = function (a) {
- b.Yo.GDb(a.newValue);
- };
- this.Ywb = function (a) {
- b.Yo.MDb(a.newValue ? a.newValue.YZ : void 0);
- };
- this.lOa = function () {
- b.Yo.eI();
- };
- this.Yo = new p.Oxa(k.config.pna, a.vc.value ? a.vc.value.YZ : void 0);
- c = a.bJ;
- q.Xa(.1 < c.width / c.height);
- this.Yo.wDb(c.width / c.height);
- a.Mf.appendChild(this.Yo.Pn());
- a.Ss.addListener(this.Rja);
- a.vc.addListener(this.Ywb);
- a.addEventListener(h.U.Cf, this.Hwb, l.Tz);
- n.Me.addListener(n.bZ, this.lOa);
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Qxa = void 0;
- l = a(9);
- q = a(16);
- n = a(56);
- k = a(12);
- p = a(293);
- h = a(13);
- c.prototype.tma = function (a) {
- this.Yo.tma(a);
- };
- c.prototype.Zfa = function () {
- return this.Yo.Zfa();
- };
- c.prototype.rma = function (a) {
- this.Yo.rma(a);
- };
- c.prototype.Xfa = function () {
- return this.Yo.Xfa();
- };
- c.prototype.sma = function (a) {
- this.Yo.sma(a);
- };
- c.prototype.Yfa = function () {
- return this.Yo.Yfa();
- };
- b.Qxa = c;
- }, function (d, b, a) {
- var c,
- l,
- q,
- n,
- k,
- p,
- h,
- f,
- u;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Nxa = void 0;
- d = a(57);
- c = a(12);
- l = a(56);
- q = a(5);
- n = a(23);
- k = a(233);
- p = a(130);
- h = a(67);
- f = a(102);
- u = a(13);
- d.t7(d.p7, function (a) {
- var h;
- function b(b) {
- var c;
- if (b.ctrlKey && b.altKey && b.shiftKey && b.keyCode == f.dr.Q2a) {
- c = n.createElement("INPUT", void 0, void 0, {
- type: "file"
- });
- c.addEventListener("change", function () {
- var b,
- f,
- d;
- b = c.files[0];
- if (b) {
- f = b.name;
- h.info("Loading file", {
- FileName: f
- });
- d = new FileReader();
- d.readAsText(b);
- d.addEventListener("load", function () {
- return a.ho.jaa("nourl", f, {
- content: d.result
- });
- });
- }
- });
- c.click();
- }
- }
- h = q.$g(a, "TimedTextCustomTrack");
- c.config.Bca && (h.info("Loading url", {
- Url: c.config.Bca
- }), a.ho.jaa(c.config.Bca, "custom"));
- l.Me.addListener(l.fy, b);
- a.addEventListener(u.U.Cf, function () {
- l.Me.removeListener(l.fy, b);
- });
- });
- a = function () {
- function a(a, b, c, f, h) {
- var d,
- l;
- a = k.cA.call(this, b, a, a, "1", {
- 0: c
- }, [{
- id: 0,
- name: "custom"
- }
- ], "xx", f || a, p.hn.hE, "primary", null !== (d = null === h || void 0 === h ? void 0 : h.profile) && void 0 !== d ? d : "custom", null !== (l = null === h || void 0 === h ? void 0 : h.midx) && void 0 !== l ? l : {}, !1, !1, null === h || void 0 === h ? void 0 : h.isLanguageLeftToRight) || this;
- a.j = b;
- a.url = c;
- a.options = h;
- a.Tq = null === h || void 0 === h ? void 0 : h.useRangeHeader;
- return a;
- }
- da(a, k.cA);
- a.efb = function (b, c, f, h) {
- var d;
- d = "custom" + a.tqb++;
- return new a(d, b, c, f, h);
- };
- a.prototype.PFa = function () {
- var a;
- a = this;
- return new Promise(function (b, c) {
- var f,
- d;
- if (null === (f = a.options) || void 0 === f ? 0 : f.content)
- b(a.options.content);
- else if (a.url) {
- d = {
- responseType: h.Bga,
- url: a.url,
- track: a,
- kc: null,
- lB: "tt-" + a.ll
- };
- a.j.xZ.download(d, function (f) {
- f.V ? b(f.content) : (f.reason = "downloadfailed", f.url = d.url, f.track = a, c(f));
- });
- }
- });
- };
- a.tqb = 0;
- return a;
- }
- ();
- b.Nxa = a;
- }, function (d, b, a) {
- var q;
- function c(a, b, c) {
- this.start = a;
- this.track = b;
- this.LI = Array.isArray(c) ? c : [];
- }
- function l(a, b) {
- this.log = a;
- this.kz = b;
- this.Ska = [];
- this.orphans = [];
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.vxa = void 0;
- q = a(16);
- l.prototype.e9a = function (a, b) {
- this.rNa(a, b, "activating");
- };
- l.prototype.cgb = function (a) {
- this.Dda(a, "de-activating");
- };
- l.prototype.rNa = function (a, b, d) {
- var h;
- this.zj && this.Dda(a, "close current for new");
- h = [];
- this.orphans.length && (h.push.apply(h, [].concat(Y(this.orphans))), this.orphans = []);
- this.zj = new c(a, b, h);
- this.kz && this.log.trace("new range: " + d, this.zj);
- };
- l.prototype.Dda = function (a, b) {
- this.zj && (this.zj.end = a, this.Ska.push(this.zj), this.kz && this.log.trace("end range: " + b, this.zj || {}), this.zj = void 0);
- };
- l.prototype.JUa = function (a) {
- this.zj ? this.zj.LI.push(a) : this.orphans.push(a);
- };
- l.prototype.Tfa = function (a) {
- var b,
- d;
- b = this.Ska.slice(0);
- if (this.zj && "undefined" !== typeof a) {
- d = new c(this.zj.start, this.zj.track, this.zj.LI);
- d.end = a;
- b.push(d);
- }
- a = b.reduce(function (a, b) {
- var c,
- f,
- h,
- d;
- if (!b.track)
- return a;
- f = b.track.md;
- h = b.track.cy(b.start, b.end);
- if (!h)
- return a;
- d = new Set(b.LI);
- a[f] ? (b = a[f], b.expected += h.length, b.missed += h.length - d.size) : a[f] = {
- dlid: f,
- bcp47: b.track.ll,
- profile: b.track.profile,
- expected: h.length,
- missed: h.length - d.size,
- startPts: null !== (c = b.track.Wnb()) && void 0 !== c ? c : 0
- };
- return a;
- }, {});
- a = Object.values(a);
- this.kz && this.log.trace("subtitleqoe:", JSON.stringify(a, null, "\t"));
- return a;
- };
- l.prototype.Knb = function (a) {
- var b,
- d,
- h,
- f;
- b = this.Ska.slice(0);
- d = 0;
- h = 0;
- this.zj && "undefined" != typeof a && (f = new c(this.zj.start, this.zj.track, this.zj.LI), f.end = a, b.push(f));
- b.forEach(function (a) {
- var b,
- c;
- if (a.track) {
- if (a.end < a.start) {
- q.Xa("negative range", a);
- a.Uy = 0;
- return;
- }
- b = new Set(a.LI);
- c = a.track.cy(a.start, a.end);
- a.gq = c ? c.map(function (a) {
- return a.id;
- }) : [];
- a.Uy = c ? 0 === c.length ? 100 : 100 * b.size / c.length : 0;
- } else
- a.Uy = 100;
- b = a.end - a.start;
- d += b;
- h += a.Uy * b;
- });
- f = d ? Math.round(h / d) : 100;
- this.log.trace("qoe score " + f + ", at pts: " + a);
- this.kz && (a = b.map(function (a) {
- return {
- start: a.start,
- "end ": a.end,
- duration: a.end - a.start,
- score: Math.round(a.Uy),
- lang: a.track ? a.track.ll : "none",
- "actual ": a.LI.join(" "),
- expected: (a.gq || []).join(" ")
- };
- }), this.log.trace("score for each range: ", JSON.stringify(a, function (a, b) {
- return b;
- }, " ")));
- return f;
- };
- b.vxa = l;
- }, function (d, b, a) {
- var c,
- l,
- q,
- n,
- k,
- p,
- h,
- f,
- u,
- g,
- m,
- C,
- r;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Pxa = void 0;
- c = a(233);
- l = a(297);
- q = a(76);
- n = a(12);
- k = a(44);
- p = a(5);
- h = a(618);
- f = a(2);
- u = a(59);
- g = a(15);
- m = a(13);
- C = a(617);
- r = a(60);
- d = function () {
- var b;
- function a(b) {
- var d;
- d = this;
- this.j = b;
- this.Zma = this.kNa = 0;
- this.Cf = this.Dm = !1;
- this.u1 = 0;
- this.SI = function () {
- var a,
- b;
- d.t1();
- d.TEa && (d.log.info("Deactivating", d.TEa), d.bz.cgb(d.$d()));
- d.j.vj.set(null);
- d.kD.$Ra(d.entries = void 0);
- d.UDa();
- a = d.j.vc.value;
- a && a.ZZ() && !a.UZ() && (a = null);
- if (a && d.j.Qb.value !== m.kb.bg) {
- b = d.$d();
- d.bz.e9a(b, a);
- }
- a ? (d.log.info("Activating", a), d.j.Pk.set(a.bd() === c.cA.S7.LOADED ? m.Ze.xd : m.Ze.Ce), d.Dm || d.j.fd("tt_start"), a.getEntries().then(d.uF)["catch"](d.uF)) : d.j.Pk.set(m.Ze.xd);
- d.TEa = a;
- d.WI();
- };
- this.fna = function () {
- d.Dm && (d.kD.start(), d.j.Qb.value !== m.kb.Pc && d.kD.stop());
- };
- this.WI = function () {
- var b;
- d.j.state.value === m.qb.xd && d.j.Qb.value !== m.kb.bg && (d.entries ? b = d.kD.Qkb() : d.j.vc.value && (b = a.dFb[d.j.vc.value.bd()]));
- b && g.ac(b.startTime) && (d.kNa++, d.Zma += d.kD.HIa() - b.startTime, d.UCa = Math.ceil(d.Zma / (d.kNa + 0)));
- d.j.Ss.set(b);
- };
- this.$d = function () {
- return d.j.Cfa();
- };
- this.Wwb = function (b) {
- d.fireEvent(a.GEb, b);
- b && b.id && d.bz.JUa(b.id);
- d.log.trace("showsubtitle", d.eJa(b));
- };
- this.Rwb = function (b) {
- d.fireEvent(a.rBb, b);
- d.log.trace("removesubtitle", d.eJa(b));
- };
- this.Ek = function () {
- d.log.warn("imagesubs buffer underflow", d.j.vc.value.eh);
- d.j.Pk.set(m.Ze.Ce);
- };
- this.Cwb = function () {
- d.log.info("imagesubs buffering complete", d.j.vc.value.eh);
- d.j.Pk.set(m.Ze.xd);
- };
- this.cOa = function () {
- d.Dm && d.ig && d.ig.Sq(d.$d());
- };
- this.iOa = function (a) {
- d.ig && d.ig.vQ && d.ig.vQ(a.zg, a.gP);
- };
- this.nOa = function (a) {
- d.ig && d.ig.Bp && d.ig.Bp(a.Na, a.$Hb);
- };
- this.q0 = function () {
- d.Dm = !0;
- u.tc(function () {
- d.ig ? d.ig.Sq(d.$d()) : d.fna();
- d.WI();
- });
- };
- this.lP = function () {
- d.entries = void 0;
- d.UDa();
- d.kD.stop();
- d.WI();
- d.Cf = !0;
- d.t1();
- };
- this.Rja = function (a) {
- (a = a.newValue) && g.ac(a.id) && d.bz.JUa(a.id);
- };
- this.Owb = function (a) {
- d.UHb(a.newValue, a.oldValue);
- d.fna();
- };
- this.uF = function (a) {
- var b;
- if (!d.Cf) {
- b = a.track;
- if (b === d.j.vc.value)
- try {
- b.Un ? d.c9a(a) : d.d9a(a);
- } catch (z) {
- d.log.error("Error activating track:", z, b);
- return;
- }
- d.Dm || d.j.fd(a.V ? "tt_comp" : "tt_err");
- a.V ? (n.config.oRa ? setTimeout(function () {
- d.j.Pk.set(m.Ze.xd);
- }, n.config.oRa) : d.j.Pk.set(m.Ze.xd), b.Un || d.WI()) : a.Cr ? d.log.warn("aborted timed text track loading") : n.config.wjb ? (b = p.Z.get(r.Vk), d.j.Wd(b(f.J.w_a, {
- fb: a.track ? a.track.eh : {}
- }))) : (d.log.error("ignore subtitle initialization error", a), d.j.Pk.set(m.Ze.xd));
- }
- };
- this.Kb = new q.kj();
- this.bz = new h.vxa(p.$g(b, "SubtitleTracker"), n.config.zib);
- this.log = p.$g(b, "TimedTextManager");
- this.kD = new l.Rxa(this.$d, this.WI);
- this.j.vc.addListener(this.SI);
- n.config.Qyb ? (this.j.addEventListener(m.U.ao, this.q0), this.SI()) : (this.j.Pk.set(m.Ze.xd), this.j.addEventListener(m.U.ao, function () {
- d.Dm = !0;
- d.SI();
- }));
- this.j.Qb.addListener(this.Owb);
- this.j.addEventListener(m.U.kna, this.fna);
- this.j.Ss.addListener(this.Rja);
- this.j.addEventListener(m.U.Cf, this.lP);
- }
- a.prototype.addEventListener = function (a, b, c) {
- this.Kb.addListener(a, b, c);
- };
- a.prototype.removeEventListener = function (a, b) {
- this.Kb.removeListener(a, b);
- };
- a.prototype.fireEvent = function (a, b, c) {
- this.Kb.Xb(a, b, c);
- };
- a.prototype.jaa = function (a, b, c) {
- var f;
- f = C.Nxa.efb(this.j, a, b, c);
- this.j.Qk.push(f);
- this.j.Bn.forEach(function (a) {
- k.zoa(a.Qk, f);
- });
- this.j.vc.set(f);
- this.j.fireEvent(m.U.lD);
- };
- a.prototype.Yyb = function (a) {
- this.ula(a) ? a.getEntries().then(function () {}) : Promise.resolve();
- };
- a.prototype.bob = function (a) {
- return this.bz.Knb(a);
- };
- a.prototype.Tfa = function (a) {
- return this.bz.Tfa(a);
- };
- a.prototype.TY = function () {
- var a,
- b;
- a = this.j.aR;
- b = n.config.KTa.characterSize;
- b = {
- size: n.config.qna.characterSize || b
- };
- a && (b.visibility = a.Zfa(), b.nM = a.Xfa(), b.gp = a.Yfa());
- return b;
- };
- a.prototype.aEb = function (a) {
- n.config.qna.characterSize = a;
- a = this.j.vc.value;
- this.ula(a) && !a.Un && a.getEntries().then(this.uF)["catch"](this.uF);
- };
- a.prototype.UHb = function (a, b) {
- var c;
- a === m.kb.Pc || a == m.kb.Lh ? b !== m.kb.Pc && b !== m.kb.Lh && ((b = this.j.vc.value) && !this.ula(b) || this.bz.rNa(this.$d(), b || void 0, "presentingstate:" + a)) : a !== m.kb.bg && a !== m.kb.br || this.bz.Dda(null !== (c = this.$d()) && void 0 !== c ? c : void 0, "presentingstate:" + a);
- };
- a.prototype.t1 = function () {
- this.u1 = 0;
- clearTimeout(this.dCb);
- };
- a.prototype.UDa = function () {
- this.ig && (this.ig.stop(), this.dMa("removeListener"));
- this.ig = void 0;
- };
- a.prototype.dMa = function (a) {
- this.ig && (this.ig[a]("showsubtitle", this.Wwb), this.ig[a]("removesubtitle", this.Rwb), this.ig[a]("underflow", this.Ek), this.ig[a]("bufferingComplete", this.Cwb), "addListener" === a ? (this.j.addEventListener(m.U.Po, this.cOa), this.j.addEventListener(m.U.e0, this.iOa), this.j.addEventListener(m.U.Bp, this.nOa)) : (this.j.removeEventListener(m.U.Po, this.cOa), this.j.removeEventListener(m.U.e0, this.iOa), this.j.removeEventListener(m.U.Bp, this.nOa)));
- };
- a.prototype.eJa = function (a) {
- return {
- currentPts: this.$d(),
- displayTime: a.displayTime,
- duration: a.duration,
- id: a.id,
- originX: a.originX,
- originY: a.originY,
- sizeX: a.sizeX,
- sizeY: a.sizeY,
- rootContainerExtentX: a.rootContainerExtentX,
- rootContainerExtentY: a.rootContainerExtentY
- };
- };
- a.prototype.c9a = function (a) {
- var b,
- c;
- b = this;
- c = a.track;
- if (!c || !c.Un)
- throw Error("Not an image base subtitle");
- a.V ? (this.t1(), this.ig = c.ig, this.dMa("addListener"), this.log.info("Activated", c), this.j.vj.set(c), this.Dm ? u.tc(function () {
- b.ig.Sq(b.$d());
- }) : this.ig.pause()) : this.gRa(c, a);
- };
- a.prototype.d9a = function (a) {
- var b,
- c;
- b = a.track;
- c = a.entries;
- if (!b || b.Un)
- throw Error("Not a valid text track");
- c ? (this.t1(), this.kD.$Ra(this.entries = c), this.log.info("Activated", b), this.j.vj.set(b)) : this.gRa(b, f.Kp(a));
- this.WI();
- };
- a.prototype.gRa = function (a, b) {
- var c,
- f;
- c = this;
- f = this.u1 < n.config.dub;
- f && (this.dCb = setTimeout(function () {
- c.u1++;
- a.getEntries().then(c.uF)["catch"](c.uF);
- }, n.config.rGb));
- this.log.error("Failed to activate" + ((null === a || void 0 === a ? 0 : a.Un) ? " img subtitle" : ""), {
- retry: f
- }, b, a);
- };
- a.prototype.ula = function (a) {
- return !(!a || a.ZZ() && !a.UZ());
- };
- b = {};
- a.dFb = (b[c.cA.S7.LOADING] = {
- QTb: !0
- }, b[c.cA.S7.VJ] = {
- Tx: !0
- }, b);
- a.GEb = "showsubtitle";
- a.rBb = "removesubtitle";
- return a;
- }
- ();
- b.Pxa = d;
- }, function (d, b, a) {
- var k,
- p,
- h,
- f,
- u,
- g,
- m,
- C,
- r,
- D,
- K,
- J,
- R,
- P,
- ba,
- z,
- T,
- U,
- ea,
- ha,
- V,
- ta,
- N,
- na,
- ma,
- x,
- Q;
- function c(a) {
- var b;
- b = this;
- this.j = a;
- this.pVa = Promise.resolve();
- this.z4 = t.WebKitMediaKeys || HTMLVideoElement.prototype.webkitGenerateKeyRequest ? "webkit" : HTMLVideoElement.prototype.msSetMediaKeys ? "ms" : "";
- this.kx = [];
- this.fk = new g.kj();
- this.gza = this.O8 = 0;
- this.uU = [];
- this.xb = r.$g(this.j, "MediaElementASE");
- this.ZAa = ba.$e;
- this.n9 = !1;
- this.Tf = {};
- this.YK = {};
- this.HB = this.wU(function () {
- var a;
- if (b.Wa) {
- a = b.NU();
- return a ? a.totalVideoFrames : b.Wa.webkitDecodedFrameCount;
- }
- });
- this.GB = this.wU(function () {
- var a;
- if (b.Wa) {
- a = b.NU();
- return a ? a.droppedVideoFrames : b.Wa.webkitDroppedFrameCount;
- }
- });
- this.EN = this.wU(function () {
- var a;
- if (b.Wa) {
- a = b.NU();
- return a && a.corruptedVideoFrames;
- }
- });
- this.DY = this.wU(function () {
- var a;
- if (b.Wa) {
- a = b.NU();
- return a && T.Kh(a.totalFrameDelay * ba.mj);
- }
- });
- this.Wza = function (a) {
- return b.fk.Xb(ha.ji.yLa, {
- oa: a
- });
- };
- this.Ij = r.Z.get(ea.I5).create(u.config.Dp, this, this.j);
- u.config.ry && (this.pVa = new Promise(function (a) {
- b.ZAa = a;
- b.j.addEventListener(N.U.Cf, a);
- }));
- this.xb.trace("Created Media Element");
- this.addEventListener = this.fk.addListener;
- this.removeEventListener = this.fk.removeListener;
- this.Wa = l(this.j.bJ);
- this.sourceBuffers = this.kx;
- }
- function l(a) {
- var b,
- c;
- b = r.Z.get(V.D8).Dnb();
- a = a.width / a.height * b.height;
- c = (b.width - a) / 2;
- return u.config.eEb ? ba.createElement("VIDEO", "position:absolute;width:" + a + "px;height:" + b.height + "px;left:" + c + "px;top:0px") : ba.createElement("VIDEO", "position:absolute;width:100%;height:100%");
- }
- function q(a) {
- a.preventDefault();
- return !1;
- }
- function n(a, b) {
- var c,
- f,
- h;
- c = a.target;
- c = c && c.error;
- f = a.errorCode;
- h = c && c.code;
- ba.ac(h) || (h = f && f.code);
- f = c && c.msExtendedCode;
- ba.ac(f) || (f = c && c.systemCode);
- ba.ac(f) || (f = a.systemCode);
- a = ba.tb({}, {
- code: h,
- systemCode: f
- }, {
- Dv: !0
- });
- b = {
- ha: b(h),
- fb: z.qia(a)
- };
- try {
- c && c.message && (b.MO = c.message);
- } catch (Da) {}
- f = ba.Pd(f);
- U.la(f) && (b.we = r.Zaa(f, 4));
- return {
- qG: b,
- ftb: a
- };
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Rta = void 0;
- k = a(51);
- p = a(186);
- h = a(60);
- f = a(9);
- u = a(12);
- g = a(76);
- m = a(56);
- C = a(44);
- r = a(5);
- D = a(2);
- K = a(16);
- J = a(92);
- R = a(474);
- P = a(20);
- ba = a(23);
- z = a(184);
- T = a(10);
- U = a(15);
- ea = a(298);
- ha = a(183);
- V = a(322);
- ta = a(3);
- N = a(13);
- na = a(172);
- ma = a(49);
- x = !!(T.cE && HTMLVideoElement && URL && HTMLVideoElement.prototype.play);
- Q = x && (HTMLVideoElement.prototype.webkitGenerateKeyRequest || T.bE);
- c.prototype.GN = function (a) {
- try {
- this.Wa && (this.gza = this.Wa.currentTime);
- } catch (ia) {
- this.xb.error("Exception while getting VIDEO.currentTime", ia);
- a && this.CE(D.J.E1a, ia);
- }
- return T.Kh(this.gza * ba.mj);
- };
- c.prototype.seek = function (a) {
- var b;
- K.Xa(!this.tn);
- this.UAa();
- b = this.GN(!0);
- if (!u.config.c$a && T.Oz(b - a) <= this.Ula)
- this.xb.trace("Seek delta too small", {
- currentTime: b,
- seekTime: a,
- min: this.Ula
- });
- else
- try {
- this.xb.trace("Setting video elements currentTime", {
- From: J.th(b),
- To: J.th(a)
- });
- this.tn = {};
- this.Wa.currentTime = a / ba.mj;
- this.fk.Xb(ha.ji.Po);
- } catch (Ga) {
- this.xb.error("Exception while setting VIDEO.currentTime", Ga);
- this.CE(D.J.F1a, Ga);
- }
- };
- c.prototype.Lnb = function () {
- return !!this.tn;
- };
- c.prototype.addSourceBuffer = function (a) {
- var b,
- c;
- b = ba.Pd(this.O8.toString() + this.kx.length.toString());
- b = {
- sourceId: this.O8,
- pW: b
- };
- try {
- c = new p.f6(this.j, a, this.ef, b, this.xb);
- this.kx.push(c);
- a == f.WD && c.mea && c.mea.addListener(this.ZAa);
- return c;
- } catch (Za) {
- c = ba.pd(Za);
- this.xb.error("Unable to add source buffer.", {
- error: c
- });
- b = r.Z.get(h.Vk);
- this.j.Wd(b(D.J.N6, {
- ha: a === k.Ac.Ji.AUDIO ? ba.I.yta : ba.I.zta,
- fb: c
- }));
- }
- };
- c.prototype.YV = function (a) {
- var b;
- b = this;
- a.forEach(function (a) {
- return b.addSourceBuffer(a);
- });
- this.fk.Xb(ha.ji.HSa);
- return !0;
- };
- c.prototype.removeSourceBuffer = function (a) {
- this.kx = this.kx.filter(function (b) {
- return !C.Qba(a, b);
- });
- this.ef.removeSourceBuffer(a);
- };
- c.prototype.endOfStream = function () {
- u.config.rba && this.ef.endOfStream();
- };
- c.prototype.In = function (a) {
- this.kx = [];
- a && a.RUb();
- return !0;
- };
- c.prototype.vDb = function (a) {
- this.O8 = a;
- };
- c.prototype.GIa = function () {
- if (this.ef)
- return ta.yPa(this.ef.duration);
- };
- c.prototype.ODb = function (a) {
- this.ef && (this.ef.duration = a.P0(ta.Pl));
- };
- c.prototype.jhb = function () {
- var a;
- if (!this.n9 && this.Wa && this.Wa.readyState >= ma.Fd.Kra.HAVE_CURRENT_DATA) {
- a = this.Wa.webkitDecodedFrameCount;
- if (void 0 === a || 0 < a || u.config.gJb)
- this.n9 = !0;
- }
- return this.n9;
- };
- c.prototype.open = function () {
- var a,
- b,
- c;
- a = this;
- this.j.addEventListener(N.U.vSa, function (b) {
- return a.$6a(b);
- });
- if (x) {
- if (this.j.fv) {
- if (!Q) {
- this.pn(D.J.Pua);
- return;
- }
- if (T.bE && T.bE.isTypeSupported && this.Ij.ce)
- try {
- if (!T.bE.isTypeSupported(this.Ij.ce, "video/mp4")) {
- this.A8a(function (b) {
- a.pn(D.J.eK, b);
- });
- return;
- }
- } catch (Za) {
- this.CE(D.J.eK, Za);
- return;
- }
- }
- try {
- this.ef = new T.cE();
- } catch (Za) {
- this.CE(D.J.t1a, Za);
- return;
- }
- try {
- this.il = URL.createObjectURL(this.ef);
- } catch (Za) {
- this.CE(D.J.u1a, Za);
- return;
- }
- try {
- this.Ij.v9a(this.Wza);
- this.ef.addEventListener("sourceopen", function (b) {
- return a.vAa(b);
- });
- this.ef.addEventListener(this.z4 + "sourceopen", function (b) {
- return a.vAa(b);
- });
- this.Wa.addEventListener("error", this.Tf.error = function (b) {
- return a.$E(b);
- });
- this.Wa.addEventListener("seeking", this.Tf.seeking = function () {
- return a.Z6a();
- });
- this.Wa.addEventListener("seeked", this.Tf.seeked = function () {
- return a.i$();
- });
- this.Wa.addEventListener("timeupdate", this.Tf.timeupdate = function () {
- return a.b7a();
- });
- this.Wa.addEventListener("loadstart", this.Tf.loadstart = function () {
- return a.rL();
- });
- this.Wa.addEventListener("volumechange", this.Tf.volumechange = function (b) {
- return a.c7a(b);
- });
- this.Wa.addEventListener(this.Ij.pC, this.Tf[this.Ij.pC] = function (b) {
- return a.V6a(b);
- });
- b = this.j.Mf;
- c = b.lastChild;
- c ? b.insertBefore(this.Wa, c) : b.appendChild(this.Wa);
- u.config.DFa && this.Wa.addEventListener("contextmenu", q);
- this.Wa.src = this.il;
- m.Me.addListener(m.OG, this.YK[m.OG] = function () {
- return a.uAa();
- });
- this.uAa();
- } catch (Za) {
- this.CE(D.J.v1a, Za);
- }
- } else
- this.pn(D.J.Qua);
- };
- c.prototype.close = function () {
- var b;
- function a() {
- b.il && (b.UAa(), m.Me.removeListener(m.OG, b.YK[m.OG]), b.j4a());
- }
- b = this;
- this.Wa.removeEventListener(this.Ij.pC, this.Tf[this.Ij.pC]);
- this.Wa.removeEventListener("error", this.Tf.error);
- this.Wa.removeEventListener("seeking", this.Tf.seeking);
- this.Wa.removeEventListener("seeked", this.Tf.seeked);
- this.Wa.removeEventListener("timeupdate", this.Tf.timeupdate);
- this.Wa.removeEventListener("loadstart", this.Tf.loadstart);
- this.Wa.removeEventListener("volumechange", this.Tf.volumechange);
- this.Ij.fBb(this.Wza);
- u.config.Dp ? this.Ij.bPa().then(function () {
- return a();
- }) : a();
- this.Ij.MQa && clearTimeout(this.Ij.MQa);
- };
- c.prototype.V6a = function (a) {
- return this.Ij.Nja(a);
- };
- c.prototype.NU = function () {
- if (this.Wa)
- return this.Wa.getVideoPlaybackQuality && this.Wa.getVideoPlaybackQuality() || this.Wa.videoPlaybackQuality || this.Wa.playbackQuality;
- };
- c.prototype.f8a = function () {
- var a;
- a = this.j.Vi;
- return (a = a && a.errorCode) && 0 <= [D.J.nT, D.J.PS].indexOf(a);
- };
- c.prototype.j4a = function () {
- var a;
- a = !1;
- u.config.ozb && this.f8a() && (a = !0);
- u.config.ucb && !a && (this.Wa.removeAttribute("src"), this.Wa.load && this.Wa.load());
- URL.revokeObjectURL(this.il);
- u.config.DFa && this.Wa.removeEventListener("contextmenu", q);
- !a && this.Wa && this.j.Mf.removeChild(this.Wa);
- this.Wa = this.ef = void 0;
- this.il = "";
- };
- c.prototype.uAa = function () {
- !0 === T.te.hidden ? this.uU.forEach(function (a) {
- a.refresh();
- a.UEb();
- }) : this.uU.forEach(function (a) {
- a.refresh();
- a.iFb();
- });
- };
- c.prototype.wU = function (a) {
- var b;
- b = r.Z.get(R.C6)(a);
- this.uU.push(b);
- return function () {
- b.refresh();
- return b.Flb();
- };
- };
- c.prototype.CE = function (a, b) {
- var c,
- f;
- c = {
- ha: ba.I.Of,
- fb: ba.pd(b)
- };
- try {
- (f = b.message.match(/(?:[x\W\s]|^)([0-9a-f]{8})(?:[x\W\s]|$)/i)[1].toUpperCase()) && 8 == f.length && (c.we = f);
- } catch (ka) {}
- b = r.Z.get(h.Vk);
- this.j.Wd(b(a, c));
- };
- c.prototype.UAa = function () {
- this.uU.forEach(function (a) {
- a.refresh();
- });
- };
- c.prototype.b5a = function () {
- return this.Wa && this.Wa.msGraphicsTrustStatus;
- };
- c.prototype.pn = function (a, b, c) {
- var f;
- f = r.Z.get(h.Vk);
- this.j.Wd(f(a, b, c));
- };
- c.prototype.A8a = function (a) {
- var c,
- h;
- function b(f) {
- b = ba.$e;
- c.Ci();
- a(f);
- }
- c = r.Z.get(na.vK)(500, function () {
- b();
- });
- c.uB();
- try {
- h = this.j.xf.value.Wo.xUb.children.filter(function (a) {
- return "pssh" == a.type && a.Ohb == f.Iqa;
- })[0];
- new T.bE(this.Ij.ce).createSession("video/mp4", h.raw, null).addEventListener(this.z4 + "keyerror", function (a) {
- a = n(a, D.E4);
- b(a.qG);
- });
- } catch (ka) {
- b();
- }
- };
- c.prototype.$6a = function (a) {
- var b,
- h,
- d,
- k,
- l,
- p,
- n;
- if (this.Wa) {
- a = a.wR;
- b = this.b5a();
- b && (a.ConstrictionActive = b.constrictionActive, a.Status = b.status);
- try {
- a.readyState = "" + this.Wa.readyState;
- a.currentTime = "" + this.Wa.currentTime;
- a.pbRate = "" + this.Wa.playbackRate;
- } catch (Ha) {}
- for (var b = this.kx.length, c; b--; ) {
- c = this.kx[b];
- h = "";
- c.type == f.VS ? h = "audio" : c.type == f.WD && (h = "video");
- ba.tb(a, c.tY(), {
- prefix: h
- });
- u.config.qib && this.j.Vi && f.WD == c.type && (h = ba.yI(c.xY()), 3E3 > (h.data && h.data.length) && (h.data = P.BEa(h.data).join(), ba.tb(a, h, {
- prefix: c.type
- })));
- }
- this.ef && (b = this.ef.duration) && !isNaN(b) && (a.duration = b.toFixed(4));
- if (u.config.gtb)
- try {
- d = this.j.Df;
- k = d && d.xe;
- if (k) {
- l = k.expiration;
- isNaN(l) || (a.exp = l);
- p = k.keyStatuses.entries();
- if (p.next) {
- n = p.next().value;
- n && (a.keyStatus = n[1]);
- }
- }
- } catch (Ha) {}
- }
- };
- c.prototype.vAa = function (a) {
- this.h8a || (this.h8a = !0, this.fk.Xb(ha.ji.ISa, a));
- };
- c.prototype.Z6a = function () {
- this.xb.trace("Video element event: seeking");
- this.tn ? this.tn.qwb = !0 : (this.xb.error("unexpected seeking event"), u.config.yjb && this.pn(D.J.K1a));
- };
- c.prototype.i$ = function () {
- this.xb.trace("Video element event: seeked");
- this.tn ? (K.Xa(this.tn.qwb), this.tn.pwb = !0, this.tBa()) : (this.xb.error("unexpected seeked event"), u.config.xjb && this.pn(D.J.J1a));
- };
- c.prototype.b7a = function () {
- this.tn && (this.tn.swb = !0, this.tBa());
- this.fk.Xb(ha.ji.Po);
- };
- c.prototype.rL = function () {
- this.xb.trace("Video element event: loadstart");
- };
- c.prototype.c7a = function (a) {
- this.xb.trace("Video element event:", a.type);
- try {
- this.j.volume.set(this.Wa.volume);
- this.j.muted.set(this.Wa.muted);
- } catch (ia) {
- this.xb.error("error updating volume", ia);
- }
- };
- c.prototype.$E = function (a) {
- a = n(a, D.mra);
- this.xb.error("Video element event: error", a.ftb);
- this.pn(D.J.D1a, a.qG);
- };
- c.prototype.tBa = function () {
- this.tn && this.tn.pwb && this.tn.swb && (this.tn = void 0, this.fk.Xb(ha.ji.iQ));
- };
- pa.Object.defineProperties(c.prototype, {
- Ula: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return u.config.OEb;
- }
- }
- });
- b.Rta = c;
- }, function (d, b, a) {
- var h,
- f,
- u,
- g,
- m,
- C,
- r,
- D,
- K,
- J,
- t,
- P,
- ba,
- z,
- T,
- U,
- ea,
- ha;
- function c(a, b, c) {
- this.cm = a;
- this.ega = b;
- this.prefix = c;
- a = P(a, b, c);
- this.info = a.info.bind(a);
- this.fatal = a.fatal.bind(a);
- this.error = a.error.bind(a);
- this.warn = a.warn.bind(a);
- this.trace = a.trace.bind(a);
- this.debug = a.debug.bind(a);
- this.log = a.log.bind(a);
- }
- function l() {
- this.yFa = h.Qo.yFa.bind(h.Qo);
- this.RW = h.Qo.RW.bind(h.Qo);
- this.fG = h.Qo.fG;
- this.eE = "NDA";
- }
- function q() {}
- function n() {}
- function k() {
- return K ? K : "0.0.0.0";
- }
- function p(a) {
- a({
- uOa: 0,
- UQ: 0,
- SJa: 0,
- IGa: 0
- });
- }
- h = a(145);
- l.prototype.set = function (a, b) {
- g[a] = b;
- m.save(a, b);
- };
- l.prototype.get = function (a, b) {
- if (g.hasOwnProperty(a))
- return g[a];
- D.trace("key: " + a + ", is not available in storage cache and needs to be retrieved asynchronously");
- m.load(a, function (c) {
- c.V ? (g[a] = c.data, b && b(c.data)) : g[a] = void 0;
- });
- };
- l.prototype.remove = function (a) {
- m.remove(a);
- };
- l.prototype.clear = function () {
- D.info("WARNING: Calling unimplemented function Storage.clear()");
- };
- q.prototype.now = function () {
- return C();
- };
- q.prototype.ea = function () {
- return r();
- };
- q.prototype.hja = function (a) {
- return a + C() - r();
- };
- q.prototype.Eja = function (a) {
- return a + r() - C();
- };
- b = a(105).EventEmitter;
- a(58)(b, n.prototype);
- c.prototype.NEa = function (a) {
- var b;
- b = [];
- this.prefix && Array.isArray(this.prefix) ? b.push.apply(b, [].concat(Y(this.prefix))) : this.prefix && b.push(this.prefix);
- b.push(a);
- return new c(this.cm, this.ega, b);
- };
- ba = function () {
- var a;
- a = Promise;
- a.prototype.fail = Promise.prototype["catch"];
- return a;
- }
- ();
- d.P = function (a) {
- f = a.zC;
- P = a.Ah;
- m = a.storage;
- g = a.eH;
- C = a.bnb;
- J = a.KN;
- t = a.fO;
- r = a.getTime;
- D = a.w$a;
- z = a.ak;
- ha = a.kr;
- T = a.GD;
- U = a.SourceBuffer;
- ea = a.MediaSource;
- K = a.zTb;
- u = a.Gx;
- return {
- name: "cadmium",
- Gx: u,
- zC: f,
- KN: J,
- fO: t,
- storage: new l(),
- Storage: l,
- time: new q(),
- events: new n(),
- console: new c("JS-ASE", void 0, "default"),
- Console: c,
- options: {},
- Promise: ba,
- ak: z,
- GD: T,
- z0a: U,
- MediaSource: ea,
- kr: ha,
- ym: {
- name: k
- },
- memory: {
- rmb: p
- },
- uk: a.uk
- };
- };
- }, function (d, b, a) {
- var c,
- l;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.gwa = void 0;
- c = a(5);
- l = a(67);
- b.gwa = function () {
- c.Ah("ProbeDownloader");
- return {
- yN: function (a) {
- l.We.uzb({
- url: a.url,
- rzb: a
- });
- }
- };
- }
- ();
- }, function (d, b, a) {
- var l,
- q,
- n,
- k,
- p,
- h,
- f;
- function c() {
- var a;
- a = new q.kj();
- this.addEventListener = a.addListener.bind(this);
- this.removeEventListener = a.removeListener.bind(this);
- this.emit = a.Xb.bind(this);
- this.rV = h++;
- this.xb = n.Ah("ProbeRequest");
- this.JAa = l.gwa;
- k.Xa(void 0 !== this.JAa);
- this.xg = b.kr.oc.UNSENT;
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.kr = void 0;
- l = a(622);
- q = a(76);
- n = a(5);
- k = a(16);
- p = a(23);
- h = 0;
- (function () {
- function a() {
- return JSON.stringify({
- url: this.il,
- id: this.rV,
- affected: this.gU,
- readystate: this.xg
- });
- }
- p.tb(c.prototype, {
- xs: function (a) {
- a.affected = this.gU;
- a.probed = {
- requestId: this.rV,
- url: this.il,
- Lb: this.GL,
- groupId: this.OU
- };
- this.emit(b.kr.Sd.bK, a);
- },
- Dja: function (a) {
- this.k8a = a.httpcode;
- a.affected = this.gU;
- a.probed = {
- requestId: this.rV,
- url: this.il,
- Lb: this.GL,
- groupId: this.OU
- };
- this.emit(b.kr.Sd.Sz, a);
- },
- open: function (a, c, f, h) {
- if (!a)
- return !1;
- this.il = a;
- this.gU = c;
- this.GL = f;
- this.xg = b.kr.oc.OPENED;
- this.N5a = h;
- this.JAa.yN(this);
- return !0;
- },
- yc: function () {
- return !0;
- },
- Fj: function () {
- return this.rV;
- },
- toString: a,
- toJSON: a
- });
- Object.defineProperties(c.prototype, {
- readyState: {
- get: function () {
- return this.xg;
- },
- set: function () {}
- },
- status: {
- get: function () {
- return this.k8a;
- }
- },
- url: {
- get: function () {
- return this.il;
- }
- },
- TQb: {
- get: function () {
- return this.gU;
- }
- },
- btb: {
- get: function () {
- return this.N5a;
- }
- }
- });
- }
- ());
- (function (a) {
- a.Sd = {
- bK: "pr0",
- Sz: "pr1"
- };
- a.oc = {
- UNSENT: 0,
- OPENED: 1,
- Gw: 2,
- DONE: 3,
- nw: 4,
- name: ["UNSENT", "OPENED", "SENT", "DONE", "FAILED"]
- };
- }
- (f || (f = {})));
- b.kr = Object.assign(c, f);
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Cpa = b.Dpa = void 0;
- d = b.Dpa || (b.Dpa = {});
- d[d.Z0a = 0] = "PAUSE";
- d[d.d2a = 1] = "RESUME";
- d[d.MKb = 2] = "CAPTIONS_ON";
- d[d.LKb = 3] = "CAPTIONS_OFF";
- d[d.NKb = 4] = "CAPTION_LANGUAGE_CHANGED";
- d[d.aKb = 5] = "AUDIO_LANGUAGE_CHANGED";
- d[d.CNb = 6] = "NEXT_EP";
- d[d.BOb = 7] = "PREV_EP";
- d[d.xt = 8] = "SEEK";
- d[d.Jwa = 9] = "STOP";
- b.Cpa = "CastInteractionTrackerSymbol";
- }, function (d, b, a) {
- var c,
- l,
- q,
- n,
- k,
- p,
- h,
- f,
- u,
- g,
- m,
- C,
- r,
- D,
- K,
- J,
- t,
- P,
- ba,
- z,
- T,
- U,
- ea,
- ha,
- V;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Cva = void 0;
- c = a(0);
- l = a(114);
- q = a(1);
- n = a(97);
- k = a(26);
- p = a(24);
- h = a(39);
- f = a(309);
- u = a(432);
- g = a(418);
- m = a(344);
- C = a(103);
- r = a(60);
- D = a(124);
- K = a(84);
- J = a(239);
- t = a(191);
- P = a(123);
- ba = a(624);
- z = a(311);
- T = a(46);
- U = a(25);
- ea = a(308);
- ha = a(69);
- V = a(307);
- d = function () {
- var d;
- function b(a, b, c, f, h, d, k, l, p, u, n, q, g, A, m, G, C, r, D, H, K, z, J) {
- this.RG = a;
- this.BF = b;
- this.qa = c;
- this.Ga = f;
- this.yab = h;
- this.jna = d;
- this.wia = k;
- this.xia = l;
- this.y_ = p;
- this.Cc = u;
- this.me = n;
- this.Mj = q;
- this.vx = g;
- this.jka = A;
- this.uia = m;
- this.Dna = G;
- this.Vh = C;
- this.Hk = r;
- this.Wc = D;
- this.ika = H;
- this.n1 = K;
- this.zW = z;
- this.ZL = J;
- }
- b.prototype.create = function (b, c, f, h, d) {
- return new(a(306)).Dva(b, c, h, d, this.RG, f, this.qa, this.BF, this.Ga, this.wia, this.yab, this.jna, this.xia, this.y_, this.Cc, this.me, this.Mj, this.vx, this.jka, this.uia, this.Dna, this.Vh, this.Wc, this.ika, this.Hk, this.n1, void 0, this.zW);
- };
- d = b;
- return d = c.__decorate([q.N(), c.__param(0, q.l(l.Kz)), c.__param(1, q.l(k.yf)), c.__param(2, q.l(p.Oe)), c.__param(3, q.l(h.Ii)), c.__param(4, q.l(f.v3)), c.__param(5, q.l(n.bA)), c.__param(6, q.l(u.Y5)), c.__param(7, q.l(g.a6)), c.__param(8, q.l(m.R5)), c.__param(9, q.l(C.eA)), c.__param(10, q.l(r.Vk)), c.__param(11, q.l(D.mE)), c.__param(12, q.l(J.QR)), c.__param(13, q.l(t.yT)), c.__param(14, q.l(P.rT)), c.__param(15, q.l(z.r8)), c.__param(16, q.l(T.$j)), c.__param(17, q.l(ha.ZD)), c.__param(18, q.l(U.af)), c.__param(19, q.l(ea.v7)), c.__param(20, q.l(V.N7)), c.__param(21, q.l(ba.Cpa)), c.__param(21, q.optional()), c.__param(22, q.l(K.jJ)), c.__param(22, q.optional())], d);
- }
- ();
- b.Cva = d;
- }, function (d, b) {
- function a(a) {
- this.j = a;
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.$oa = void 0;
- a.prototype.IUa = function () {
- var a;
- a = this.j.Nm && this.j.Nm.ub.get() || {};
- a.Ch && (this.j.Ch = a.Ch.Ca);
- a.Fa && (this.j.Fa = a.Fa.Ca);
- };
- a.prototype.qm = function () {
- -1 === this.j.Fa && this.IUa();
- return this.j.Fa;
- };
- a.prototype.sbb = function (a) {
- -1 !== this.j.Ch && -1 !== this.j.Fa || this.IUa();
- return -1 === this.j.Ch || -1 === this.j.Fa ? Number.MAX_VALUE : this.j.Ch + 8 * a / this.j.Fa;
- };
- b.$oa = a;
- }, function (d, b, a) {
- var c,
- l,
- q,
- n,
- k,
- p,
- h;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.$xa = void 0;
- c = a(0);
- l = a(13);
- q = a(310);
- n = a(24);
- k = a(1);
- p = a(3);
- h = a(14);
- d = function () {
- var b;
- function a(a, b) {
- this.app = a;
- this.config = b;
- }
- a.prototype.mG = function (a) {
- var b;
- a.eR = {};
- if (!a.VB() && a.aw && 0 < a.aw.length && (a.$v = this.nIa(a), a.$v)) {
- b = this.kEb(a);
- b() || (a.Qb.addListener(b), a.xf.addListener(b));
- }
- };
- a.prototype.kEb = function (a) {
- var c;
- function b() {
- var f,
- h;
- if (!a.xf.value || a.Qb.value === l.kb.bg)
- return !1;
- f = a.$v;
- h = f.bd();
- return h === q.jn.LOADING ? !1 : h !== q.jn.LOADED && f.Rv ? (f = c.pob(a)) ? (a.eR.offset = c.app.$b().ca(p.ia), a.$v = f, f.download(), !0) : !1 : (a.Qb.removeListener(b), a.xf.removeListener(b), !1);
- }
- c = this;
- return b;
- };
- a.prototype.pob = function (a) {
- var b,
- c;
- b = this.config();
- c = a.Cm.QN() < b.aHb;
- b = (a.xf.value ? a.xf.value.O : 0) > b.$Gb;
- return this.Jnb(a, c && b);
- };
- a.prototype.Jnb = function (a, b) {
- if (b && (b = this.nIa(a), this.UIa(a, b.size)))
- return a.eR.XQa = "h", b;
- b = this.Imb(a);
- if (this.UIa(a, b.size))
- return a.eR.XQa = "l", b;
- };
- a.prototype.UIa = function (a, b) {
- var c,
- f;
- c = this.config();
- f = Math.min(a.bM(), a.uR());
- return a.wab.sbb(b) * (1 + .01 * c.R9a[2]) < f * c.dHb;
- };
- a.prototype.nIa = function (a) {
- return a.aw[a.aw.length - 1];
- };
- a.prototype.Imb = function (a) {
- return a.aw[0];
- };
- b = a;
- return b = c.__decorate([k.N(), c.__param(0, k.l(n.Oe)), c.__param(1, k.l(h.jd))], b);
- }
- ();
- b.$xa = d;
- }, function (d, b, a) {
- var c,
- l,
- q,
- n,
- k,
- p,
- h,
- f,
- u,
- g,
- m,
- C,
- r,
- D,
- K,
- J,
- t,
- P,
- ba,
- z,
- T,
- U,
- ea,
- ha,
- V,
- ta,
- N,
- na,
- ma,
- x,
- Q,
- B,
- ia,
- Ga,
- L,
- ka;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.j = void 0;
- d = a(1);
- c = a(419);
- l = a(311);
- q = a(627);
- n = a(309);
- k = a(626);
- p = a(454);
- h = a(457);
- f = a(625);
- u = a(614);
- g = a(14);
- m = a(24);
- C = a(86);
- r = a(21);
- D = a(8);
- K = a(613);
- J = a(191);
- t = a(612);
- P = a(3);
- ba = a(611);
- z = a(610);
- T = a(288);
- U = a(609);
- ea = a(68);
- ha = a(308);
- V = a(608);
- ta = a(97);
- N = a(25);
- na = a(113);
- ma = a(72);
- x = a(340);
- Q = a(285);
- B = a(607);
- ia = a(69);
- Ga = a(30);
- L = a(307);
- ka = a(606);
- b.j = new d.Ec(function (b) {
- b(Q.xT).to(B.Gva).aa();
- b(c.q8).tf(function (b) {
- var c;
- c = b.lb;
- return function (b, f, h, d, k, l, p, u) {
- return new(a(605)).Yxa(c.get(ba.s8), b, f, h, d, k, l, p, u);
- };
- });
- b(ba.s8).to(z.aya).aa();
- b(l.r8).to(q.$xa).aa();
- b(h.u7).to(f.Cva).aa();
- b(L.N7).to(ka.xwa);
- b(p.j4).tf(function (b) {
- var c;
- c = b.lb;
- return function (b) {
- return new(a(604)).xqa(c.get(ea.i4), c.get(C.$q), c.get(m.Oe), b);
- };
- });
- b(n.v3).tf(function () {
- return function (a) {
- return new k.$oa(a);
- };
- });
- b(K.l7).tf(function (a) {
- var b;
- b = a.lb;
- return function (a) {
- return new u.yva(a, b.get(D.Bb), b.get(g.jd), b.get(r.ee), b.get(C.$q));
- };
- });
- b(J.yT).tf(function (a) {
- var b;
- b = a.lb;
- return function (a, c, f, h, d, k, l, p, u) {
- return new t.Hva(a, c, f, h, d, k, l, p, u, b.get(K.l7), b.get(Q.xT));
- };
- });
- b(T.V7).tf(function (a) {
- return function (b) {
- var c;
- c = a.lb.get(g.jd);
- return new U.Uwa(c, b);
- };
- });
- b(ha.v7).tf(function (a) {
- return function (b) {
- var c,
- f,
- h,
- d;
- c = a.lb.get(ma.ar);
- f = a.lb.get(ta.bA);
- h = a.lb.get(N.af);
- d = a.lb.get(na.aA);
- return new V.Eva(b, c, f(P.ph(1)), h, d);
- };
- });
- b(x.o6).iz(function (b) {
- return new(a(603)).eua(b.lb.get(ia.ZD), b.lb.get(Ga.Yj));
- }).aa();
- });
- }, function (d, b, a) {
- var c,
- l,
- q;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.pva = void 0;
- c = a(0);
- l = a(1);
- q = a(135);
- d = function () {
- var b;
- function a() {
- this.KQ = new q.dn();
- }
- a.prototype.aI = function (a) {
- this.KQ.next(a);
- };
- pa.Object.defineProperties(a.prototype, {
- hj: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.KQ;
- }
- }
- });
- b = a;
- return b = c.__decorate([l.N()], b);
- }
- ();
- b.pva = d;
- }, function (d, b, a) {
- var c,
- l,
- q,
- n;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.dva = void 0;
- c = a(0);
- l = a(1);
- q = a(8);
- n = a(72);
- d = function () {
- var b;
- function a(a, b) {
- this.Kx = b;
- this.log = a.yb("Pbo");
- this.links = {};
- }
- a.prototype.maa = function (a) {
- a && (this.links = Object.assign(Object.assign({}, this.links), a));
- };
- a.prototype.ofa = function (a) {
- return this.links[a];
- };
- a.prototype.u9a = function (a) {
- var b;
- b = "playbackContextId=" + a.playbackContextId + "&esn=" + this.Kx().yh;
- a = "drmContextId=" + a.drmContextId;
- this.maa({
- events: {
- rel: "events",
- href: "/events?" + b
- },
- license: {
- rel: "license",
- href: "/license?licenseType=standard&" + b + "&" + a
- },
- ldl: {
- rel: "ldl",
- href: "/license?licenseType=limited&" + b + "&" + a
- }
- });
- };
- b = a;
- return b = c.__decorate([l.N(), c.__param(0, l.l(q.Bb)), c.__param(1, l.l(n.ar))], b);
- }
- ();
- b.dva = d;
- }, function (d, b, a) {
- var l,
- q,
- n;
- function c(a, b, c, f, d, l, n) {
- this.version = a;
- this.url = b;
- this.id = c;
- this.languages = f;
- this.gb = d;
- this.Zhb = l;
- this.rvb = n;
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.rva = void 0;
- l = a(0);
- q = a(1);
- n = a(94);
- d = function () {
- var b;
- function a(a) {
- this.Lj = a;
- }
- a.prototype.create = function (a, b, d, k, l) {
- return new c(this.Lj.version, b, a, this.Lj.languages, d, k, l);
- };
- b = a;
- return b = l.__decorate([q.N(), l.__param(0, q.l(n.Ew))], b);
- }
- ();
- b.rva = d;
- c.prototype.toJSON = function () {
- return {
- version: this.version,
- url: this.url,
- id: this.id,
- languages: this.languages,
- params: this.gb,
- echo: this.Zhb
- };
- };
- }, function (d, b, a) {
- var c,
- l,
- q,
- n,
- k,
- p,
- h;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Yua = void 0;
- c = a(0);
- l = a(1);
- q = a(40);
- n = a(28);
- k = a(41);
- p = a(14);
- h = a(116);
- d = function () {
- var b;
- function a(a, b, c) {
- a = q.fe.call(this, a, "PboConfigImpl") || this;
- a.config = b;
- a.i$a = c;
- return a;
- }
- da(a, q.fe);
- pa.Object.defineProperties(a.prototype, {
- iR: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.config().Gu.iR || "";
- }
- },
- F2: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.config().Gu.F2 || "";
- }
- },
- version: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return 2;
- }
- },
- tOa: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return "cadmium";
- }
- },
- languages: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.config().Gu.yka;
- }
- },
- YG: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return !1;
- }
- },
- iub: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return !0;
- }
- },
- kub: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return !0;
- }
- },
- QRa: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return Object.assign({
- logblob: {
- service: "logblob",
- isPlayApiDirect: !0,
- version: "1"
- },
- manifest: {
- service: "pbo_manifests",
- serviceNonMember: "pbo_nonmember",
- version: "^1.0.0"
- },
- license: {
- service: "pbo_licenses",
- serviceNonMember: "pbo_nonmember",
- version: "^1.0.0"
- },
- events: {
- service: "pbo_events",
- serviceNonMember: "pbo_nonmember",
- version: "^1.0.0"
- },
- bind: {
- service: this.i$a.ZCa,
- serviceNonMember: "pbo_nonmember",
- version: "^1.0.0"
- },
- pair: {
- service: "pbo_mdx",
- serviceNonMember: "pbo_nonmember",
- version: "^1.0.0"
- },
- ping: {
- service: "pbo_events",
- serviceNonMember: "pbo_nonmember",
- version: "^1.0.0"
- },
- config: {
- service: "pbo_config",
- version: "^1.0.0"
- }
- }, this.RRa);
- }
- },
- RRa: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return {};
- }
- },
- xQa: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return !1;
- }
- },
- Aga: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return 10;
- }
- },
- VBa: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return !1;
- }
- }
- });
- b = a;
- c.__decorate([k.config(k.string, "uiVersion")], b.prototype, "iR", null);
- c.__decorate([k.config(k.string, "uiPlatform")], b.prototype, "F2", null);
- c.__decorate([k.config(k.cw, "pboVersion")], b.prototype, "version", null);
- c.__decorate([k.config(k.string, "pboOrganization")], b.prototype, "tOa", null);
- c.__decorate([k.config(k.r2, "pboLanguages")], b.prototype, "languages", null);
- c.__decorate([k.config(k.Kd, "hasLimitedPlaybackFunctionality")], b.prototype, "YG", null);
- c.__decorate([k.config(k.Kd, "mdxBindUsingNodeQuark")], b.prototype, "iub", null);
- c.__decorate([k.config(k.Kd, "mdxPairUsingNodeQuark")], b.prototype, "kub", null);
- c.__decorate([k.config(k.object(), "pboCommands")], b.prototype, "QRa", null);
- c.__decorate([k.config(k.object(), "pboCommandsOverride")], b.prototype, "RRa", null);
- c.__decorate([k.config(k.Kd, "pboRecordHistory")], b.prototype, "xQa", null);
- c.__decorate([k.config(k.cw, "pboHistorySize")], b.prototype, "Aga", null);
- c.__decorate([k.config(k.Kd, "pboAddXEsnHeader")], b.prototype, "VBa", null);
- return b = c.__decorate([l.N(), c.__param(0, l.l(n.Li)), c.__param(1, l.l(p.jd)), c.__param(2, l.l(h.oz))], b);
- }
- ();
- b.Yua = d;
- }, function (d, b, a) {
- var l;
- function c() {}
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.U6 = void 0;
- l = a(2);
- c.prb = function (a) {
- var b,
- c;
- b = a && a.code;
- c = a && (a.ha || a.Hb);
- a = a.qd !== l.OS.Sua;
- c = !!c && c >= l.I.QJ && c <= l.I.OJ && a;
- return !("RETRY" !== b && "FAIL" !== b) || c;
- };
- c.Mmb = function (a) {
- var b,
- c;
- c = null === (b = null === a || void 0 === a ? void 0 : a.Ty) || void 0 === b ? void 0 : b.maxRetries;
- return "number" === typeof c ? c : "FAIL" === (null === a || void 0 === a ? void 0 : a.code) ? 1 : void 0;
- };
- b.U6 = c;
- }, function (d, b, a) {
- var g,
- n,
- k,
- p,
- h,
- f,
- u,
- A,
- m,
- C,
- r,
- D,
- K,
- J,
- t,
- P;
- function c(a) {
- this.config = a;
- this.wu = [];
- }
- function l(a, b, c) {
- this.qa = a;
- this.UI = b;
- this.context = c;
- this.startTime = this.qa.$b();
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Zua = void 0;
- g = a(0);
- n = a(1);
- k = a(3);
- p = a(314);
- h = a(8);
- f = a(29);
- u = a(24);
- A = a(30);
- m = a(134);
- C = a(36);
- r = a(313);
- D = a(94);
- K = a(68);
- J = a(13);
- t = a(43);
- P = a(633);
- d = function () {
- var b;
- function a(a, b, f, h, d, k, l, p, u) {
- this.gUa = b;
- this.json = f;
- this.qa = h;
- this.iq = d;
- this.Pka = k;
- this.ta = l;
- this.Kb = u;
- this.log = a.yb("Pbo");
- p.xQa && (this.wu = new c(p));
- this.UI = this.gUa();
- }
- a.prototype.send = function (a, b) {
- var c;
- c = new l(this.qa, this.UI, a);
- this.wu && this.wu.append(c);
- return this.ema(a, b, c);
- };
- a.prototype.ema = function (a, b, c) {
- var f;
- f = this;
- return new Promise(function (h, d) {
- f.Rv(a, b).then(function (a) {
- var b,
- k;
- f.eDb(a);
- b = S(f.JIb(a));
- k = b.next().value;
- b = b.next().value;
- k && (f.Bcb(c), h(a));
- b && (f.dEa(c, b), d(b));
- })["catch"](function (a) {
- var b;
- b = f.dEa(c, a);
- a.fb && (a.fb = [a.fb, " ", b].join(""));
- d(a);
- });
- });
- };
- a.prototype.eDb = function (a) {
- (a = a.serverTime) && this.Kb.Xb(J.w5.PRa, k.Jb(a));
- };
- a.prototype.JIb = function (a) {
- var b;
- b = a.result;
- if ("deviceCommand" in a) {
- a = a.deviceCommand;
- this.log.trace("Received device command '" + a + "'");
- switch (a) {
- case "reset":
- b = "RESET_DEVICE";
- break;
- case "reload":
- b = "RELOAD_DEVICE";
- break;
- case "exit":
- b = "EXIT_DEVICE";
- break;
- default:
- b = "FAIL",
- this.log.error("Unhandled device command '" + a + "'");
- }
- return [, {
- code: b,
- detail: {
- message: "Server sent device action to '" + a + "' device"
- }
- }
- ];
- }
- if (b)
- return [b, void 0];
- if (a.code)
- return this.log.error("Response did not contain a result or an error but did contain an error code", a), [, {
- code: a.code,
- detail: {
- message: a.message
- }
- }
- ];
- this.log.error("Response did not contain a result or an error", a);
- return [, {
- code: "FAIL",
- detail: {
- message: "Response did contain a result or an error"
- }
- }
- ];
- };
- a.prototype.yxb = function (a) {
- var b;
- if (a) {
- try {
- b = this.json.parse(a);
- } catch (ea) {
- throw {
- wC: !0,
- code: "FAIL",
- message: "Unable to parse the response body",
- data: a
- };
- }
- if (b.error)
- throw b.error;
- if (b.result)
- return b;
- throw {
- wC: !0,
- code: "FAIL",
- message: "There is no result property on the response"
- };
- }
- throw {
- wC: !0,
- code: "FAIL",
- message: "There is no body property on the response"
- };
- };
- a.prototype.R$a = function (a, b, c) {
- var f;
- f = this;
- this.XHb(b, a);
- this.UI = this.gUa(c);
- return this.UI.send(b, c).then(function (a) {
- return {
- Rv: !1,
- result: f.yxb(a.body)
- };
- })["catch"](function (c) {
- var h,
- d;
- d = (h = P.U6.Mmb(c)) ? Math.min(h, b.Dla) : b.Dla;
- return f.W1(b, c, a, d) ? (h = f.ybb(c, a, d), f.log.warn("Method failed, retrying", Object.assign({
- Method: b.mk,
- Attempt: a + 1,
- WaitTime: h,
- MaxRetries: d
- }, f.Kca(c))), Promise.resolve({
- Rv: !0,
- pl: h,
- error: c
- })) : Promise.resolve({
- Rv: !1,
- error: c
- });
- });
- };
- a.prototype.XHb = function (a, b) {
- var c;
- c = a.url.searchParams;
- c.set(t.KT.g2a, (b + 1).toString());
- c.set(t.KT.wg, a.qla.toString());
- c.set(t.KT.h2a, a.pla);
- };
- a.prototype.Rv = function (a, b, c) {
- var f;
- c = void 0 === c ? 0 : c;
- f = this;
- return this.R$a(c++, a, b).then(function (h) {
- if (h.Rv)
- return f.aJb(h.pl).then(function () {
- return f.Rv(a, b, c);
- });
- if (h.error)
- throw h.error;
- if (void 0 === h.result)
- throw {
- pboc: !1,
- code: "FAIL",
- detail: {
- message: "The response was undefined"
- }
- };
- return h.result;
- });
- };
- a.prototype.W1 = function (a, b, c, f) {
- var h;
- h = this.iq.hRa || P.U6.prb(b);
- if (h && c < f)
- return !0;
- h ? this.log.error("Method failed, retry limit exceeded, giving up", Object.assign({
- Method: a.mk,
- Attempt: c + 1,
- MaxRetries: f
- }, this.Kca(b))) : this.log.error("Method failed with an error that is not retriable, giving up", Object.assign({
- Method: a.mk
- }, this.Kca(b)));
- return !1;
- };
- a.prototype.ybb = function (a, b, c) {
- return a && a.Ty && void 0 !== a.Ty.retryAfterSeconds ? k.ph(a.Ty.retryAfterSeconds) : k.Jb(this.Pka.aQa(1E3 * (0 === b ? 1 : b), 1E3 * Math.pow(2, Math.min(b, c))));
- };
- a.prototype.aJb = function (a) {
- var b;
- b = this;
- return new Promise(function (c) {
- b.ta.Dh(a || k.wd, c);
- });
- };
- a.prototype.Kca = function (a) {
- return r.PKa(a) ? a : {
- message: a.message,
- subCode: a.Hb,
- extCode: a.qd,
- mslCode: a.ws,
- data: a.data
- };
- };
- a.prototype.Bcb = function (a) {
- a.Yma();
- };
- a.prototype.dEa = function (a, b) {
- var c;
- a.Tx(b);
- if (this.wu)
- try {
- c = this.json.stringify(this.wu);
- this.log.error("PBO command history", c);
- return c;
- } catch (ha) {}
- return "";
- };
- b = a;
- return b = g.__decorate([n.N(), g.__param(0, n.l(h.Bb)), g.__param(1, n.l(p.p8)), g.__param(2, n.l(f.rw)), g.__param(3, n.l(u.Oe)), g.__param(4, n.l(A.Yj)), g.__param(5, n.l(m.nK)), g.__param(6, n.l(C.Qg)), g.__param(7, n.l(D.Ew)), g.__param(8, n.l(K.vS))], b);
- }
- ();
- b.Zua = d;
- l.prototype.Yma = function () {
- this.V = !0;
- this.elapsedTime = this.qa.$b().Nb(this.startTime);
- };
- l.prototype.Tx = function (a) {
- this.V = !1;
- this.elapsedTime = this.qa.$b().Nb(this.startTime);
- this.BFb = a.Hb || a.subCode;
- this.ljb = a.qd || a.extCode;
- };
- l.prototype.toString = function () {
- return JSON.stringify(this);
- };
- l.prototype.toJSON = function () {
- var a;
- a = Object.assign({
- success: this.V,
- method: this.context.mk,
- startTime: this.startTime.ca(k.ia),
- elapsedTime: this.elapsedTime ? this.elapsedTime.ca(k.ia) : "in progress"
- }, this.UI.dca());
- return this.V ? a : Object.assign(Object.assign(Object.assign({}, a), this.UI.dca()), {
- subcode: this.BFb,
- extcode: this.ljb
- });
- };
- c.prototype.append = function (a) {
- this.wu.push(a);
- 0 < this.config.Aga && this.wu.length > this.config.Aga && this.wu.shift();
- };
- c.prototype.toJSON = function () {
- return this.wu;
- };
- }, function (d, b, a) {
- var c,
- l,
- g,
- n,
- k,
- p,
- h,
- f,
- u,
- A;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.YOa = void 0;
- d = a(1);
- c = a(315);
- l = a(634);
- g = a(94);
- n = a(632);
- k = a(312);
- p = a(631);
- h = a(416);
- f = a(630);
- u = a(146);
- A = a(629);
- b.YOa = new d.Ec(function (a) {
- a(g.Ew).to(n.Yua).aa();
- a(c.T6).to(l.Zua).aa();
- a(h.Z6).to(f.dva);
- a(h.Y6).tf(function (a) {
- return function () {
- return a.lb.get(h.Z6);
- };
- });
- a(k.g7).to(p.rva).aa();
- a(u.jK).to(A.pva).aa();
- });
- }, function (d, b, a) {
- var c,
- l,
- g,
- n,
- k,
- p;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.hua = void 0;
- c = a(0);
- l = a(41);
- g = a(40);
- n = a(1);
- k = a(28);
- p = a(3);
- d = function () {
- var b;
- function a(a) {
- return g.fe.call(this, a, "MseConfigImpl") || this;
- }
- da(a, g.fe);
- pa.Object.defineProperties(a.prototype, {
- WMa: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return p.Jb(5E3);
- }
- },
- qOa: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return p.Jb(1E3);
- }
- },
- rOa: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return p.Jb(1E3);
- }
- }
- });
- b = a;
- c.__decorate([l.config(l.fh, "minDecoderBufferMilliseconds")], b.prototype, "WMa", null);
- c.__decorate([l.config(l.fh, "optimalDecoderBufferMilliseconds")], b.prototype, "qOa", null);
- c.__decorate([l.config(l.fh, "optimalDecoderBufferMillisecondsBranching")], b.prototype, "rOa", null);
- return b = c.__decorate([n.N(), c.__param(0, n.l(k.Li))], b);
- }
- ();
- b.hua = d;
- }, function (d, b, a) {
- var c,
- l;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.eNa = void 0;
- d = a(1);
- c = a(467);
- l = a(636);
- b.eNa = new d.Ec(function (a) {
- a(c.r6).to(l.hua).aa();
- });
- }, function (d, b, a) {
- var c,
- l,
- g,
- n,
- k,
- p,
- h,
- f,
- u,
- A;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Wta = void 0;
- c = a(0);
- l = a(1);
- g = a(8);
- n = a(14);
- k = a(10);
- p = a(21);
- h = a(317);
- f = a(76);
- u = a(147);
- A = a(114);
- d = function () {
- function a(a, b, c, h, d, l) {
- function p(k, p) {
- this.track = k;
- this.label = p;
- this.xg = u.Sb.oc.UNSENT;
- this.Ie = 0;
- this.rp = [];
- this.requestId = l.eB().toString();
- this.Ha = c;
- this.log = b.yb("MediaRequest");
- this.config = a;
- this.Kb = new f.kj();
- "notification" === this.label ? this.config().sB && (this.ul = h) : this.ul = d;
- }
- function n(k, p) {
- this.requestId = l.eB().toString();
- this.Ha = c;
- this.log = b.yb("MediaRequest");
- this.config = a;
- this.Kb = new f.kj();
- this.label = p;
- "notification" === this.label ? this.config().sB && (this.ul = h) : this.ul = d;
- this.hO = this.sM = this.tM = void 0;
- this.track = k;
- this.rW = this.url = this.responseType = void 0;
- this.xg = u.Sb.oc.UNSENT;
- this.aj = this.uG = this.zh = this.status = void 0;
- this.yl = this.Ie = 0;
- this.connect = this.jea = this.aB = this.sy = this.Fha = this.cd = this.iea = this.mf = this.fF = void 0;
- this.rp = [];
- this.bq = !1;
- }
- p.prototype.addEventListener = function (a, b, c) {
- this.Kb.addListener.call(this, a, b, c);
- };
- p.prototype.removeEventListener = function (a, b) {
- this.Kb.removeListener.call(this, a, b);
- };
- p.prototype.emit = function (a, b, c) {
- this.Kb.Xb.call(this, a, b, c);
- };
- p.prototype.Xvb = function (a) {
- this.xg === u.Sb.oc.OPENED && (this.hO = !0, this.mf = this.cd = a.timestamp, this.xg = u.Sb.oc.Gw, this.emit(u.Sb.Sd.vua, a));
- };
- p.prototype.Cja = function (a) {
- var b;
- if (this.xg < u.Sb.oc.Wz) {
- this.rp = [];
- b = a.timestamp - this.mf;
- !this.ec && 0 < b && (this.connect = !0, this.rp.push(b));
- !0 === this.config().Rpb ? this.iea = a.timestamp : this.iea = this.cd = a.timestamp;
- this.xg = u.Sb.oc.Wz;
- this.emit(u.Sb.Sd.uua, a);
- }
- };
- p.prototype.$vb = function (a) {
- this.xg === u.Sb.oc.Wz && (this.Fha = this.cd = a.timestamp, a.newBytes = a.bytesLoaded - this.Ie, this.Ie = a.bytesLoaded, this.Ha.Xd(this.Fha) && this.emit(u.Sb.Sd.wua, a));
- };
- p.prototype.xs = function (a) {
- -1 < [u.Sb.oc.Gw, u.Sb.oc.Wz].indexOf(this.xg) && (this.hO = !1, this.cd = a.timestamp, this.xg = u.Sb.oc.DONE, a.newBytes = this.ci - this.Ie, this.Ie = this.ci, this.Ha.Xd(this.aB) && (this.cd = this.aB, 0 === a.newBytes && (this.Fha = this.aB)), this.Ha.Xd(this.sy) && (this.mf = this.sy), this.fF = a.response, this.emit(u.Sb.Sd.bK, a));
- };
- p.prototype.Svb = function (a) {
- this.hO = !1;
- this.emit(u.Sb.Sd.W0a, a);
- };
- p.prototype.Dja = function (a) {
- this.cd = a.timestamp;
- this.status = a.httpcode;
- this.zh = a.errorcode;
- this.uG = u.Sb.JD.name[this.zh];
- this.aj = a.nativecode;
- this.emit(u.Sb.Sd.Sz, a);
- this.hO = !1;
- };
- p.prototype.open = function (a, b, c, f, h, d, k) {
- this.cD = !1;
- this.rW = b;
- this.url = a;
- this.responseType = c;
- if (!this.url)
- return !1;
- this.xg = u.Sb.oc.OPENED;
- this.ul.yN(this, b, k);
- return !0;
- };
- p.prototype.yc = function () {
- -1 !== [u.Sb.oc.OPENED, u.Sb.oc.Gw, u.Sb.oc.Wz].indexOf(this.xg) && this.abort();
- return !0;
- };
- p.prototype.TDa = function () {
- this.fF = void 0;
- this.OF && (this.OF.response = void 0, this.OF.cadmiumResponse.content = void 0);
- this.Ega = void 0;
- };
- p.prototype.SQ = function (a) {
- this.url = a;
- return !0;
- };
- p.prototype.abort = function () {
- this.xg = u.Sb.oc.iJ;
- this.ul.JA(this);
- return !0;
- };
- p.prototype.pause = function () {};
- p.prototype.getResponseHeader = function () {
- return null;
- };
- p.prototype.getAllResponseHeaders = function () {
- return "";
- };
- p.prototype.UP = function () {};
- p.prototype.Fj = function () {
- return this.requestId;
- };
- p.prototype.toString = function () {
- var a;
- a = {
- requestId: this.Fj(),
- segmentId: this.Na,
- isHeader: this.ec,
- ptsStart: this.Ov,
- ptsOffset: this.Em,
- responseType: this.responseType,
- duration: this.Sr,
- readystate: this.xg
- };
- this.stream && (a.bitrate = this.stream.O);
- return JSON.stringify(a);
- };
- p.prototype.toJSON = function () {
- return this.toString();
- };
- p.prototype.lob = function () {
- var a,
- b;
- if (this.config().VUa && k.ir && k.ir.getEntriesByType && (!this.Ha.Xd(this.sy) || !this.Ha.Xd(this.aB) && this.Ha.Xd(this.url))) {
- a = "" + this.url.split("nflxvideo.net")[0].split("//").pop() + ("*nflxvideo.net/range/" + this.tM + "-" + this.sM + "*");
- b = new RegExp(a);
- a = k.ir.getEntriesByType("resource").filter(function (a) {
- return b.exec(a.name);
- })[0];
- this.Ha.Xd(a) && (0 < a.startTime && (this.sy = a.startTime, 0 < a.requestStart && (this.sy = Math.max(this.sy, a.requestStart))), 0 < a.responseStart && (this.jea = a.responseStart), 0 < a.responseEnd && (this.aB = a.responseEnd));
- }
- };
- p.prototype.orb = function () {
- return this.Ha.Xd(this.sy) && this.Ha.Xd(this.aB) && this.Ha.Xd(this.jea);
- };
- pa.Object.defineProperties(p.prototype, {
- ci: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.rW.end - this.rW.start + 1;
- }
- },
- byteLength: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.sM - this.tM + 1;
- }
- },
- EJa: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return !!(this.response && 0 < this.response.byteLength);
- }
- },
- ec: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return !this.TB;
- }
- },
- response: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.fF;
- }
- },
- readyState: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.xg;
- },
- set: function () {}
- }
- });
- Object.getOwnPropertyNames(p.prototype).forEach(function (a) {
- Object.defineProperty(n.prototype, a, Object.getOwnPropertyDescriptor(p.prototype, a));
- });
- this.ak = Object.assign(n, u.Sb);
- }
- return a = c.__decorate([l.N(), c.__param(0, l.l(n.jd)), c.__param(1, l.l(g.Bb)), c.__param(2, l.l(p.ee)), c.__param(3, l.l(h.D6)), c.__param(4, l.l(h.i6)), c.__param(5, l.l(A.Kz))], a);
- }
- ();
- b.Wta = d;
- }, function (d, b, a) {
- var c,
- l,
- g,
- n,
- k,
- p,
- h,
- f,
- u,
- A,
- m,
- C,
- r;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Xta = void 0;
- c = a(0);
- l = a(51);
- g = a(1);
- n = a(8);
- k = a(93);
- p = a(320);
- h = a(77);
- f = a(147);
- u = a(24);
- A = a(3);
- m = a(319);
- C = a(30);
- r = a(14);
- d = function () {
- var b;
- function a(a, b, c, f, h, d, k) {
- this.qa = a;
- this.iq = b;
- this.config = c;
- this.We = h;
- this.tub = d;
- this.RDa = k;
- this.log = f.yb("MediaRequestDownloader");
- }
- a.prototype.yN = function (a, b, c) {
- var k,
- p,
- u;
- function d() {
- a.removeEventListener(f.Sb.Sd.Sz, d);
- a.sN ? a.sN++ : a.sN = 1;
- a.sN >= k.config().Yda.length && (a.sN = k.config().Yda.length - 1);
- setTimeout(function () {
- k.yN(a, b, c);
- }, k.config().Yda[a.sN]);
- }
- k = this;
- a.FTb = !0;
- p = {
- url: a.url,
- responseType: this.We.c2a.sWa,
- withCredentials: !1,
- lB: a.M === l.Ac.La.AUDIO ? "audio" : "video",
- offset: b.start,
- length: a.ci,
- track: {
- type: a.M === l.Ac.La.AUDIO ? h.Mg.audio : h.Mg.video
- },
- stream: {
- md: a.sa,
- O: a.O
- },
- kc: a.Lb,
- jp: a,
- og: a.ec ? void 0 : this.RDa.parse.bind(this.RDa),
- Y1: c,
- Tq: this.iq.Tq
- };
- p = this.tub.download(p, function (b) {
- b.V && a.readyState !== f.Sb.oc.DONE && a.readyState !== f.Sb.oc.iJ && (a.readyState !== f.Sb.oc.nw && a.readyState === f.Sb.oc.Gw && (a.readyState = f.Sb.oc.Wz, a.Cja({
- mediaRequest: a,
- readyState: a.readyState,
- timestamp: k.Pu(),
- connect: !1
- })), a.readyState = f.Sb.oc.DONE, b = {
- mediaRequest: a,
- readyState: a.readyState,
- timestamp: k.Pu(),
- cadmiumResponse: b,
- response: b.content
- }, a.OF = b, a.xs(b));
- });
- if (a.ec) {
- u = {
- mediaRequest: a,
- readyState: a.readyState,
- timestamp: this.Pu(),
- connect: !1
- };
- a.Cja(u);
- }
- a.addEventListener(f.Sb.Sd.Sz, d);
- a.Ega = p.abort;
- };
- a.prototype.JA = function (a) {
- try {
- a.Ega();
- } catch (R) {
- this.log.warn("exception aborting request");
- }
- };
- a.prototype.Pu = function () {
- return this.qa.$b().ca(A.ia);
- };
- b = a;
- return b = c.__decorate([g.N(), c.__param(0, g.l(u.Oe)), c.__param(1, g.l(C.Yj)), c.__param(2, g.l(r.jd)), c.__param(3, g.l(n.Bb)), c.__param(4, g.l(k.vw)), c.__param(5, g.l(p.g6)), c.__param(6, g.l(m.P3))], b);
- }
- ();
- b.Xta = d;
- }, function (d, b, a) {
- var c,
- l,
- g,
- n;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Cua = void 0;
- c = a(0);
- l = a(1);
- g = a(8);
- n = a(93);
- d = function () {
- var b;
- function a(a, b) {
- this.We = b;
- this.log = a.yb("OpenConnectSideChannel");
- }
- a.prototype.yN = function (a, b, c) {
- this.We.HEb({
- url: a.url,
- wCb: c
- });
- };
- a.prototype.JA = function (a) {
- try {
- a.Ega();
- } catch (f) {
- this.log.warn("exception aborting request");
- }
- };
- b = a;
- return b = c.__decorate([l.N(), c.__param(0, l.l(g.Bb)), c.__param(1, l.l(n.vw))], b);
- }
- ();
- b.Cua = d;
- }, function (d) {
- function b(a) {
- this.buffer = a;
- this.position = 0;
- }
- b.prototype = {
- seek: function (a) {
- this.position = a;
- },
- skip: function (a) {
- this.position += a;
- },
- vk: function () {
- return this.buffer.length - this.position;
- },
- Ae: function () {
- return this.buffer[this.position++];
- },
- Qd: function (a) {
- var b;
- b = this.position;
- this.position += a;
- a = this.buffer;
- return a.subarray ? a.subarray(b, this.position) : a.slice(b, this.position);
- },
- Bc: function (a) {
- for (var b = 0; a--; )
- b = 256 * b + this.buffer[this.position++];
- return b;
- },
- Fs: function (a) {
- for (var b = ""; a--; )
- b += String.fromCharCode(this.buffer[this.position++]);
- return b;
- },
- Vka: function () {
- for (var a = "", b; b = this.Ae(); )
- a += String.fromCharCode(b);
- return a;
- },
- Rb: function () {
- return this.Bc(2);
- },
- Pa: function () {
- return this.Bc(4);
- },
- Hg: function () {
- return this.Bc(8);
- },
- c1: function () {
- return this.Bc(2) / 256;
- },
- PP: function () {
- return this.Bc(4) / 65536;
- },
- Lf: function (a) {
- for (var b, d = ""; a--; )
- b = this.Ae(), d += "0123456789ABCDEF"[b >>> 4] + "0123456789ABCDEF"[b & 15];
- return d;
- },
- Qy: function () {
- return this.Lf(4) + "-" + this.Lf(2) + "-" + this.Lf(2) + "-" + this.Lf(2) + "-" + this.Lf(6);
- },
- QP: function (a) {
- for (var b = 0, d = 0; d < a; d++)
- b += this.Ae() << (d << 3);
- return b;
- },
- JC: function () {
- return this.QP(4);
- },
- DR: function (a) {
- this.buffer[this.position++] = a;
- },
- d3: function (a, b) {
- this.position += b;
- for (var c = 1; c <= b; c++)
- this.buffer[this.position - c] = a & 255, a = Math.floor(a / 256);
- },
- CR: function (a) {
- for (var b = a.length, d = 0; d < b; d++)
- this.buffer[this.position++] = a[d];
- },
- uD: function (a, b) {
- this.CR(a.Qd(b));
- }
- };
- d.P = b;
- }, function (d, b, a) {
- var c,
- l,
- g,
- n,
- k,
- p,
- h;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Kpa = void 0;
- c = a(0);
- l = a(1);
- g = a(150);
- n = a(8);
- k = a(9);
- p = a(14);
- h = a(318).Tka;
- d = function () {
- var b;
- function a(a, b) {
- this.config = a;
- this.log = b.yb("ChunkMediaParser");
- }
- a.prototype.parse = function (a) {
- var f,
- d,
- l;
- a = new Uint8Array(a);
- for (var b = h(a), c = 0; c < b.length; c += 2) {
- f = b[c];
- if ("moof" !== f.type || "mdat" !== b[c + 1].type)
- throw this.log.error("data is not moof-mdat box pairs", {
- boxType: f.type,
- nextBoxType: b[c + 1].type
- }), Error("data is not moof-mdat box pairs");
- if (this.config().nJb && "moof" == f.type) {
- d = f.Yx("traf/saio");
- l = f.Yx("traf/" + k.gpa);
- d && l && (f = l.jab.byteOffset - f.raw.byteOffset, d.qRa[0] !== f && (this.log.error("Repairing bad SAIO", {
- saioOffsets: d.qRa[0],
- auxDataOffsets: f
- }), this.kxb(d, f)));
- }
- }
- return a.buffer;
- };
- a.prototype.kxb = function (a, b) {
- var c;
- c = new g.xJ(a.raw);
- c.seek(a.size - a.Fx);
- a = c.Bc(1);
- c.Bc(3) & 1 && (c.Pa(), c.Pa());
- a = 1 <= a ? 8 : 4;
- c.Pa();
- c.d3(b, a);
- };
- b = a;
- return b = c.__decorate([l.N(), c.__param(0, l.l(p.jd)), c.__param(1, l.l(n.Bb))], b);
- }
- ();
- b.Kpa = d;
- }, function (d, b, a) {
- var c,
- l,
- g,
- n,
- k,
- p,
- h,
- f,
- u,
- A,
- m;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Sta = void 0;
- c = a(0);
- l = a(147);
- g = a(84);
- n = a(2);
- k = a(8);
- p = a(1);
- h = a(93);
- f = a(21);
- u = a(24);
- A = a(3);
- m = a(14);
- d = function () {
- var b;
- function a(a, b, c, f, h, d) {
- this.ZL = a;
- this.We = c;
- this.Ha = f;
- this.qa = h;
- this.config = d;
- this.log = b.yb("MediaHttp");
- }
- a.prototype.Pu = function () {
- return this.qa.$b().ca(A.ia);
- };
- a.prototype.KNa = function (a, b) {
- a.Xvb({
- mediaRequest: a,
- timestamp: b
- });
- };
- a.prototype.fOa = function (a) {
- var b;
- b = a.mediaRequest.jp;
- b.readyState = l.Sb.oc.Wz;
- a = a.connect ? a : {
- timestamp: this.Pu(),
- connect: !1
- };
- a.mediaRequest = b;
- a.readyState = b.readyState;
- b.Cja(a);
- };
- a.prototype.p0 = function (a) {
- this.KNa(a.mediaRequest.jp, a.timestamp);
- };
- a.prototype.r0 = function (a) {
- var b,
- c;
- b = a.mediaRequest.jp;
- c = a.bytes;
- "undefined" !== typeof b && (b.readyState === l.Sb.oc.Gw && this.fOa(a), this.Ha.dg(c) && (a.mediaRequest = b, a.timestamp = this.Pu(), c > b.Ie && (a.newBytes = c - b.Ie, a.bytesLoaded = c, b.$vb(a))));
- };
- a.prototype.Av = function (a) {
- var b,
- c,
- f,
- h;
- b = a.mediaRequest;
- c = a.errorcode;
- f = a.httpcode;
- h = l.Sb.JD;
- if ("undefined" !== typeof b && (b = b.jp, "undefined" !== typeof b && b.readyState !== l.Sb.oc.nw))
- if (c === n.I.ow)
- b.readyState = l.Sb.oc.iJ, a.mediaRequest = b, a.readyState = b.readyState, b.Svb(a);
- else {
- b.readyState = l.Sb.oc.nw;
- switch (c) {
- case n.I.QJ:
- f = h.J3;
- break;
- case n.I.l5:
- f = h.i5;
- break;
- case n.I.NJ:
- f = 400 < f && 500 > f ? h.k5 : 500 <= f ? h.Qra : h.i5;
- break;
- case n.I.OJ:
- f = h.j5;
- break;
- case n.I.MJ:
- f = h.qpa;
- break;
- case n.I.PJ:
- f = h.MS;
- break;
- case n.I.Hz:
- f = h.MS;
- break;
- case n.I.h5:
- f = h.Pra;
- break;
- case n.I.Mra:
- f = h.k5;
- break;
- case n.I.AYa:
- f = h.j5;
- break;
- default:
- f = h.MS;
- }
- a.mediaRequest = b;
- a.readyState = b.readyState;
- a.errorcode = f;
- a.nativecode = c;
- b.Dja(a);
- }
- };
- a.prototype.Kja = function (a, b) {
- var c,
- f;
- c = b.request.jp;
- if (c)
- if (b.V) {
- if (a.j && c.readyState !== l.Sb.oc.DONE) {
- switch (c.readyState) {
- case l.Sb.oc.iJ:
- return;
- case l.Sb.oc.Gw:
- this.fOa({
- mediaRequest: b.request
- });
- }
- c.readyState = l.Sb.oc.DONE;
- if (!c.ec) {
- f = {
- mediaRequest: c,
- readyState: c.readyState,
- timestamp: this.Pu(),
- cadmiumResponse: b
- };
- a.j.vna += 1;
- c.lob();
- c.orb() && (a.j.zla += 1, b.Bk.oh = Math.ceil(c.jea), b.Bk.Im = Math.ceil(c.aB), b.Bk.requestTime = Math.floor(c.sy));
- c.OF = f;
- c.xs(f);
- }
- }
- } else
- c.readyState !== l.Sb.oc.iJ && (a = {
- mediaRequest: b.request,
- timestamp: this.Pu(),
- errorcode: b.ha,
- httpcode: b.Ui
- }, this.Av(a));
- };
- a.prototype.download = function (a, b) {
- var c,
- f;
- c = this;
- b = this.We.download(a, b);
- if (a.jp) {
- f = a.jp;
- -1 < [l.Sb.oc.OPENED, l.Sb.oc.nw].indexOf(f.readyState) && (f.readyState = l.Sb.oc.Gw, this.config().vub ? b.NDb(function (a) {
- c.p0(a);
- }) : this.KNa(f, this.Pu()));
- }
- b.haa(function (b) {
- c.Kja(a, b);
- });
- b.VDb(function (a) {
- c.r0(a);
- });
- b.HDb(function (a) {
- c.Av(a);
- });
- return b;
- };
- b = a;
- return b = c.__decorate([p.N(), c.__param(0, p.l(g.jJ)), c.__param(1, p.l(k.Bb)), c.__param(2, p.l(h.vw)), c.__param(3, p.l(f.ee)), c.__param(4, p.l(u.Oe)), c.__param(5, p.l(m.jd))], b);
- }
- ();
- b.Sta = d;
- }, function (d, b, a) {
- var c,
- l,
- g,
- n,
- k;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Bqa = void 0;
- c = a(0);
- l = a(1);
- g = a(8);
- n = a(148);
- k = a(129).EventEmitter;
- d = function () {
- function a(a) {
- function b(b, c) {
- this.K = b;
- this.al = c;
- this.OX = !1;
- this.emit = k.prototype.emit;
- this.addListener = k.prototype.addListener;
- this.on = k.prototype.on;
- this.once = k.prototype.once;
- this.removeListener = k.prototype.removeListener;
- this.removeAllListeners = k.prototype.removeAllListeners;
- this.listeners = k.prototype.listeners;
- this.listenerCount = k.prototype.listenerCount;
- k.call(this);
- this.xb = a.yb("DownloadTrack");
- }
- b.prototype.In = function () {
- this.LV = void 0;
- this.emit("destroyed");
- };
- b.prototype.toString = function () {
- return "id:" + this.LV + " config: " + JSON.stringify(this.K);
- };
- b.prototype.toJSON = function () {
- return "Download Track id:" + this.LV + " config: " + JSON.stringify(this.K);
- };
- b.prototype.g1 = function (a) {
- this.K.connections !== a.connections && (this.K = a);
- };
- b.prototype.Vn = function () {
- return 1 < this.K.connections ? !0 : !1;
- };
- pa.Object.defineProperties(b.prototype, {
- eb: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.LV;
- }
- },
- bq: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return void 0 === this.LV;
- }
- },
- config: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.K;
- }
- },
- zC: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.xb;
- }
- },
- ul: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.al.ul;
- }
- }
- });
- this.GD = Object.assign(b, new n.Cqa());
- }
- return a = c.__decorate([l.N(), c.__param(0, l.l(g.Bb))], a);
- }
- ();
- b.Bqa = d;
- }, function (d, b, a) {
- var c,
- l,
- g,
- n,
- k,
- p,
- h,
- f,
- u,
- A,
- m;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.fg = void 0;
- d = a(1);
- c = a(148);
- l = a(644);
- g = a(320);
- n = a(643);
- k = a(319);
- p = a(642);
- h = a(317);
- f = a(640);
- u = a(639);
- A = a(316);
- m = a(638);
- b.fg = new d.Ec(function (a) {
- a(c.n4).to(l.Bqa).aa();
- a(g.g6).to(n.Sta).aa();
- a(k.P3).to(p.Kpa).aa();
- a(h.D6).to(f.Cua).aa();
- a(h.i6).to(u.Xta).aa();
- a(A.h6).to(m.Wta).aa();
- });
- }, function (d, b, a) {
- var c,
- l,
- g,
- n,
- k,
- p;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.awa = void 0;
- c = a(0);
- l = a(1);
- g = a(40);
- n = a(28);
- k = a(41);
- p = a(3);
- d = function () {
- var b;
- function a(a) {
- return g.fe.call(this, a, "PrefetchEventsConfigImpl") || this;
- }
- da(a, g.fe);
- pa.Object.defineProperties(a.prototype, {
- JRa: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return !0;
- }
- },
- gia: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return p.aP(5);
- }
- }
- });
- b = a;
- c.__decorate([k.config(k.Kd, "sendPrefetchEventLogs")], b.prototype, "JRa", null);
- c.__decorate([k.config(k.fh, "logsInterval")], b.prototype, "gia", null);
- return b = c.__decorate([l.N(), c.__param(0, l.l(n.Li))], b);
- }
- ();
- b.awa = d;
- }, function (d, b, a) {
- var c,
- l,
- g,
- n;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.xva = void 0;
- c = a(0);
- l = a(1);
- g = a(8);
- n = a(21);
- d = function () {
- var b;
- function a(a, b) {
- this.Ha = b;
- this.ja = a.yb("PlayPredictionDeserializer");
- }
- a.prototype.Zgb = function (a) {
- var b;
- b = this;
- try {
- return {
- direction: a.direction,
- nsb: a.layoutHasChanged,
- hCb: a.rowInteractionIndex,
- Ba: a.lolomos.map(function (a) {
- return b.Vgb(a);
- })
- };
- } catch (u) {
- this.ja.error("Failed to deserialize update Payload: ", {
- payload: JSON.stringify(a)
- });
- }
- };
- a.prototype.Vgb = function (a) {
- var b;
- b = this;
- return {
- context: a.context,
- list: a.list.map(function (a) {
- return b.Ugb(a);
- }),
- requestId: a.requestId,
- rowIndex: a.rowIndex,
- jCb: a.rowSegment
- };
- };
- a.prototype.Ugb = function (a) {
- var b,
- c;
- b = {
- Vc: a.pts,
- property: a.property,
- oa: a.viewableId,
- index: a.index
- };
- c = a.preplay;
- this.Ha.Xd(c) && (b.WH = this.Ygb(c));
- a = a.params;
- this.Ha.Xd(a) && (b.gb = this.wFa(a));
- return b;
- };
- a.prototype.Ygb = function (a) {
- var b;
- b = {
- Vc: a.pts,
- oa: a.viewableId,
- yC: a.pipelineNum,
- index: a.index
- };
- a = a.params;
- this.Ha.Xd(a) && (b.gb = this.wFa(a));
- return b;
- };
- a.prototype.wFa = function (a) {
- return {
- re: a.uiLabel,
- di: a.trackingId,
- eo: a.sessionParams
- };
- };
- a.prototype.xFa = function (a) {
- var b;
- b = this;
- try {
- return a.map(function (a) {
- return b.Wgb(a);
- });
- } catch (u) {
- this.ja.error("Failed to deserialize uprepareList", {
- prepareList: JSON.stringify(a)
- });
- }
- };
- a.prototype.Wgb = function (a) {
- var b,
- c;
- c = a.params;
- this.Ha.Xd(c) && (b = this.Xgb(c));
- return {
- u: a.movieId,
- ne: a.priority,
- force: a.force,
- gb: b,
- re: a.uiLabel,
- sWb: a.uiExpectedStartTime,
- rWb: a.uiExpectedEndTime,
- Dj: a.firstTimeAdded
- };
- };
- a.prototype.Xgb = function (a) {
- var b,
- c;
- b = void 0;
- c = a.sessionParams;
- this.Ha.Xd(c) && (b = c);
- return {
- fM: this.Tgb(a.authParams),
- eo: b,
- di: a.trackingId,
- T: a.startPts,
- ya: a.manifest,
- Zi: a.isBranching
- };
- };
- a.prototype.Tgb = function (a) {
- return {
- ePa: (a || {}).pinCapableClient
- };
- };
- a.prototype.hDb = function (a) {
- var b,
- c;
- try {
- b = "";
- this.Ha.Xd(a.vPa) && (b = JSON.stringify(this.kDb(JSON.parse(a.vPa))));
- c = "";
- this.Ha.Xd(a.wPa) && (c = JSON.stringify(this.lDb(JSON.parse(a.wPa))));
- return {
- dest_id: a.mX,
- offset: a.offset,
- predictions: a.zPa.map(this.nDb, this),
- ppm_input: b,
- ppm_output: c,
- prepare_type: a.hVb
- };
- } catch (A) {
- this.ja.error("Failed to serialize serializeDestinyPrepareEvent", {
- prepareList: JSON.stringify(a)
- });
- }
- };
- a.prototype.nDb = function (a) {
- return {
- title_id: a.Pq
- };
- };
- a.prototype.kDb = function (a) {
- return {
- direction: a.direction,
- layoutHasChanged: a.nsb,
- rowInteractionIndex: a.hCb,
- lolomos: a.Ba.map(this.jDb, this)
- };
- };
- a.prototype.jDb = function (a) {
- return {
- context: a.context,
- list: a.list.map(this.iDb, this),
- requestId: a.requestId,
- rowIndex: a.rowIndex,
- rowSegment: a.jCb
- };
- };
- a.prototype.iDb = function (a) {
- var b,
- c;
- this.Ha.Xd(a.WH) && (b = this.oDb(a.WH));
- this.Ha.Xd(a.gb) && (c = this.ima(a.gb));
- return {
- preplay: b,
- pts: a.Vc,
- viewableId: a.oa,
- params: c,
- property: a.property,
- index: a.index
- };
- };
- a.prototype.oDb = function (a) {
- var b;
- this.Ha.Xd(a.gb) && (b = this.ima(a.gb));
- return {
- pts: a.Vc,
- viewableId: a.oa,
- params: b,
- pipelineNum: a.yC,
- index: a.index
- };
- };
- a.prototype.ima = function (a) {
- return {
- uiLabel: a.re,
- trackingId: a.di,
- sessionParams: a.eo
- };
- };
- a.prototype.lDb = function (a) {
- return a.map(this.mDb, this);
- };
- a.prototype.mDb = function (a) {
- var b;
- this.Ha.Xd(a.gb) && (b = this.ima(a.gb));
- return {
- movieId: a.u,
- priority: a.ne,
- params: b,
- uiLabel: a.re,
- firstTimeAdded: a.Dj,
- viewableId: a.oa,
- pts: a.Vc
- };
- };
- b = a;
- return b = c.__decorate([l.N(), c.__param(0, l.l(g.Bb)), c.__param(1, l.l(n.ee))], b);
- }
- ();
- b.xva = d;
- }, function (d, b, a) {
- var l,
- g,
- n,
- k,
- p,
- h,
- f,
- u,
- A,
- m;
- function c(a, b, c, f, d, h, k, l) {
- this.Vh = a;
- this.jC = b;
- this.ta = c;
- this.Hy = d;
- this.config = h;
- this.Tea = k;
- this.hka = l;
- this.$0 = [];
- this.Eha = [];
- this.zka = {};
- this.ja = f.yb("PrefetchEvents");
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.bwa = void 0;
- l = a(0);
- g = a(118);
- n = a(1);
- k = a(3);
- p = a(46);
- h = a(62);
- f = a(36);
- u = a(8);
- A = a(321);
- m = a(192);
- d = function () {
- var b;
- function a(a, b, c, f, d, h) {
- this.Vh = a;
- this.jC = b;
- this.ta = c;
- this.Hf = f;
- this.config = d;
- this.hka = h;
- }
- a.prototype.create = function (a, b) {
- return new c(this.Vh, this.jC, this.ta, this.Hf, a, this.config, b, this.hka);
- };
- b = a;
- return b = l.__decorate([n.N(), l.__param(0, n.l(p.$j)), l.__param(1, n.l(h.no)), l.__param(2, n.l(f.Qg)), l.__param(3, n.l(u.Bb)), l.__param(4, n.l(A.C7)), l.__param(5, n.l(m.wT))], b);
- }
- ();
- b.bwa = d;
- c.prototype.lbb = function (a, b, c) {
- this.aC(g.Fe.Dz.cXa, a, b, void 0, c);
- };
- c.prototype.nbb = function (a, b, c) {
- this.aC(g.Fe.Dz.dXa, a, b, void 0, c);
- };
- c.prototype.kbb = function (a, b, c) {
- this.aC(g.Fe.Dz.bXa, a, b, void 0, c);
- };
- c.prototype.ibb = function (a, b, c) {
- this.aC(g.Fe.Dz.$Wa, a, b, void 0, c);
- };
- c.prototype.uM = function (a, b, c) {
- this.aC(g.Fe.Dz.aXa, a, b, void 0, c);
- };
- c.prototype.tyb = function (a) {
- this.aC(g.Fe.Dz.n1a, void 0, a);
- };
- c.prototype.Dm = function (a, b, c, f, d, h, k) {
- this.TV() && (this.aC(g.Fe.Dz.z2a, void 0, a), this.ktb(a, b, c, f, d, h, k), this.aHa(), this.JLa());
- this.lrb(a) && this.PBb();
- };
- c.prototype.bhb = function (a) {
- a = {
- dest_id: a,
- cache: this.hma(this.Tea())
- };
- this.pQ("destiny_start", a);
- };
- c.prototype.azb = function (a) {
- (a = this.hka.hDb(a)) ? this.pQ("destiny_prepare", a) : this.ja.error("failed to serialize prepare event");
- };
- c.prototype.aHa = function () {
- 0 < this.$0.length && this.TV() && (this.pQ("destiny_events", {
- dest_id: this.Hy.so,
- events: this.$0
- }), this.$0 = []);
- this.D1 && (this.D1.cancel(), this.D1 = void 0);
- this.qGa();
- };
- c.prototype.JLa = function () {
- var a;
- if (this.mbb() && this.TV()) {
- a = this.Tea();
- this.Eha = a;
- a = {
- dest_id: this.Hy.so,
- offset: this.Hy.zY(),
- cache: this.hma(a)
- };
- this.pQ("destiny_cachestate", a);
- }
- this.C1 && (this.C1.cancel(), this.C1 = void 0);
- this.pGa();
- };
- c.prototype.update = function (a) {
- var b;
- b = this;
- a.Ba.forEach(function (a) {
- a.list.forEach(function (a) {
- b.zka[a.oa] = !0;
- });
- });
- };
- c.prototype.lrb = function (a) {
- return this.zka[a];
- };
- c.prototype.mbb = function () {
- var a,
- b,
- c;
- a = this;
- b = this.Tea();
- if (b.length !== this.Eha.length)
- return !0;
- c = !1;
- b.forEach(function (b, f) {
- try {
- JSON.stringify(b) !== JSON.stringify(a.Eha[f]) && (c = !0);
- } catch (R) {
- a.ja.error("Failed to stringify cachedTitle", R);
- }
- });
- return c;
- };
- c.prototype.aC = function (a, b, c, f, d) {
- this.TV() && (a = {
- offset: this.Hy.zY(),
- event_type: a,
- title_id: c,
- asset_type: b,
- size: f,
- reason: d
- }, this.$0.push(a), this.qGa(), this.pGa());
- };
- c.prototype.qGa = function () {
- this.D1 || (this.D1 = this.ta.Dh(this.config.gia, this.aHa.bind(this)));
- };
- c.prototype.pGa = function () {
- this.C1 || (this.C1 = this.ta.Dh(this.config.gia, this.JLa.bind(this)));
- };
- c.prototype.ktb = function (a, b, c, f, d, h, l) {
- var p;
- p = [];
- c && p.push({
- Pq: a,
- gu: g.Fe.Xj.hoa,
- state: g.Fe.HR.RR
- });
- f && p.push({
- Pq: a,
- gu: g.Fe.Xj.tw,
- state: g.Fe.HR.RR
- });
- d && p.push({
- Pq: a,
- gu: g.Fe.Xj.LJ,
- state: g.Fe.HR.RR
- });
- (0 < h.ca(k.ia) || 0 < l.ca(k.ia)) && p.push({
- Pq: a,
- gu: g.Fe.Xj.MEDIA,
- state: g.Fe.HR.RR,
- bab: h.ca(k.ia),
- VIb: l.ca(k.ia)
- });
- a = {
- dest_id: this.Hy.so,
- offset: this.Hy.zY(),
- xid: b,
- cache: this.hma(p)
- };
- this.pQ("destiny_playback", a);
- };
- c.prototype.pQ = function (a, b) {
- this.config.JRa && (a = this.jC.Fn(a, "info", b), this.Vh.Lc(a));
- };
- c.prototype.hma = function (a) {
- return a.map(function (a) {
- return {
- title_id: a.Pq,
- state: a.state,
- asset_type: a.gu,
- size: a.size,
- audio_ms: a.bab,
- video_ms: a.VIb
- };
- });
- };
- c.prototype.TV = function () {
- return 0 !== this.Hy.so;
- };
- c.prototype.PBb = function () {
- this.Hy.OBb();
- this.zka = {};
- };
- }, function (d, b, a) {
- var c,
- l,
- g,
- n,
- k,
- p,
- h;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Cc = void 0;
- d = a(1);
- c = a(118);
- l = a(648);
- g = a(192);
- n = a(647);
- k = a(646);
- p = a(321);
- h = a(103);
- b.Cc = new d.Ec(function (a) {
- a(p.C7).to(k.awa).aa();
- a(c.D7).to(l.bwa).aa();
- a(g.wT).to(n.xva).aa();
- a(h.eA).tf(function () {
- return function () {
- return t._cad_global.videoPreparer;
- };
- });
- });
- }, function (d, b, a) {
- var c,
- l,
- g,
- n,
- k,
- p;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.yya = void 0;
- c = a(0);
- l = a(1);
- g = a(10);
- n = a(33);
- k = a(193);
- p = a(5);
- d = function () {
- var b;
- function a() {}
- a.prototype.Dnb = function () {
- var a;
- a = t.devicePixelRatio || 1;
- return {
- width: this.m$.hLb || g.jr.width * a,
- height: this.m$.gLb || g.jr.height * a
- };
- };
- pa.Object.defineProperties(a.prototype, {
- m$: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return p.Z.get(n.Mp);
- }
- }
- });
- b = a;
- c.__decorate([k.sO], b.prototype, "m$", null);
- return b = c.__decorate([l.N()], b);
- }
- ();
- b.yya = d;
- }, function (d, b, a) {
- var c,
- l,
- g;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.yua = void 0;
- c = a(0);
- l = a(1);
- g = a(142);
- d = function () {
- var b;
- function a() {}
- a.prototype.compare = function (a, b) {
- var c;
- c = [];
- this.Rba(a, b, "", c);
- return c;
- };
- a.prototype.Rba = function (a, b, c, d) {
- var f;
- f = this;
- if (g.kt.eu(a))
- g.kt.eu(b) && a.length === b.length ? a.forEach(function (h, k) {
- f.Rba(a[k], b[k], c + "[" + k + "]", d);
- }) : d.push({
- a: a,
- b: b,
- path: c
- });
- else if (g.kt.OA(a) && null != a)
- if (g.kt.OA(b) && null != b) {
- for (var h in a)
- this.Rba(a[h], b[h], c + "." + h, d);
- for (var k in b)
- k in a || void 0 === b[k] || d.push({
- a: void 0,
- b: b[k],
- path: c + "." + k
- });
- } else
- d.push({
- a: a,
- b: b,
- path: c
- });
- else
- a !== b && d.push({
- a: a,
- b: b,
- path: c
- });
- };
- b = a;
- return b = c.__decorate([l.N()], b);
- }
- ();
- b.yua = d;
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.zua = void 0;
- b.zua = "ObjectComparerSymbol";
- }, function (d, b, a) {
- var c,
- l,
- g,
- n;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.lwa = void 0;
- c = a(0);
- l = a(54);
- g = a(29);
- n = a(1);
- d = function () {
- var b,
- d;
- function a(a) {
- this.location = a;
- l.wm(this, "location");
- }
- a.vP = function (a) {
- var c,
- d,
- h;
- c = {};
- if (0 < a.length) {
- a = a.split("&");
- for (var f = 0; f < a.length; f++) {
- d = a[f].trim();
- h = d.indexOf("=");
- 0 <= h ? c[decodeURIComponent(d.substr(0, h).replace(b.Rua, "%20"))] = decodeURIComponent(d.substr(h + 1).replace(b.Rua, "%20")) : c[d.toLowerCase()] = "";
- }
- }
- return c;
- };
- pa.Object.defineProperties(a.prototype, {
- Uzb: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.data ? this.data : this.data = b.vP(this.YPa);
- }
- },
- YPa: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- var a;
- if (void 0 !== this.KP)
- return this.KP;
- this.KP = this.location.search.substr(1);
- a = this.KP.indexOf("#");
- 0 <= a && (this.KP = this.YPa.substr(0, a));
- return this.KP;
- }
- }
- });
- d = b = a;
- d.Rua = /[+]/g;
- return d = b = c.__decorate([n.N(), c.__param(0, n.l(g.K5))], d);
- }
- ();
- b.lwa = d;
- }, function (d, b, a) {
- var c,
- l;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.fya = void 0;
- c = a(0);
- l = a(1);
- d = function () {
- var b;
- function a() {}
- a.prototype.vHa = function (a) {
- var b;
- b = this;
- return a ? (a ^ 16 * Math.random() >> a / 4).toString(16) : "10000000-1000-4000-8000-100000000000".replace(/[018]/g, function (a) {
- return b.vHa(a);
- });
- };
- b = a;
- return b = c.__decorate([l.N()], b);
- }
- ();
- b.fya = d;
- }, function (d, b, a) {
- var c,
- l,
- g,
- n,
- k,
- p;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.sxa = void 0;
- c = a(0);
- l = a(54);
- g = a(29);
- n = a(1);
- k = a(21);
- p = a(136);
- d = function () {
- var b,
- d;
- function a(a, b) {
- this.is = a;
- this.json = b;
- l.wm(this, "json");
- }
- a.prototype.jQa = function (a) {
- var c;
- c = this;
- return b.read(a, function (a) {
- return parseInt(a);
- }, function (a) {
- return c.is.Aaa(a);
- });
- };
- a.prototype.Uka = function (a) {
- var c;
- c = this;
- return b.read(a, function (a) {
- return "true" == a ? !0 : "false" == a ? !1 : void 0;
- }, function (a) {
- return c.is.NL(a);
- });
- };
- a.prototype.Pa = function (a) {
- var c;
- c = this;
- return b.read(a, function (a) {
- return parseInt(a);
- }, function (a) {
- return c.is.Er(a);
- });
- };
- a.prototype.gAb = function (a) {
- var c;
- c = this;
- return b.read(a, function (a) {
- return parseFloat(a);
- }, function (a) {
- return c.is.dg(a);
- });
- };
- a.prototype.iQa = function (a, c) {
- return b.read(a, function (a) {
- return b.Mjb(a, c);
- }, function (a) {
- return void 0 !== a;
- });
- };
- a.prototype.Xka = function (a, c) {
- return b.read(a, function (a) {
- return a;
- }, function (a) {
- return c ? c.test(a) : !0;
- });
- };
- a.prototype.kQa = function (a) {
- var c,
- f;
- c = void 0 === c ? function () {
- return !0;
- }
- : c;
- f = this;
- try {
- return b.read(a, function (a) {
- return f.json.parse(decodeURIComponent(a));
- }, function (a) {
- return f.is.OA(a) && c(a);
- });
- } catch (H) {
- return new p.Ym();
- }
- };
- a.prototype.Qd = function (a, c, f) {
- var d,
- h;
- f = void 0 === f ? 1 : f;
- d = this;
- a = a.trim();
- h = c instanceof Function ? c : this.zfb(c, f);
- c = a.indexOf("[");
- f = a.lastIndexOf("]");
- if (0 != c || f != a.length - 1)
- return new p.Ym();
- a = a.substring(c + 1, f);
- try {
- return b.vxb(a).map(function (a) {
- a = h(d, b.IIb(a));
- if (a instanceof p.Ym)
- throw a;
- return a;
- });
- } catch (K) {
- return K instanceof p.Ym ? K : new p.Ym();
- }
- };
- a.prototype.zfb = function (a, c) {
- var f;
- c = void 0 === c ? 1 : c;
- f = this;
- return function (d, h) {
- d = b.gnb(a);
- return 1 < c ? f.Qd(h, a, c - 1) : d(f, h);
- };
- };
- a.Mjb = function (a, b) {
- var f;
- for (var c in b) {
- f = parseInt(c);
- if (b[f] == a)
- return f;
- }
- };
- a.read = function (a, b, c) {
- a = b(a);
- return void 0 !== a && c(a) ? a : new p.Ym();
- };
- a.gnb = function (a) {
- switch (a) {
- case "int":
- return function (a, b) {
- return a.jQa(b);
- };
- case "bool":
- return function (a, b) {
- return a.Uka(b);
- };
- case "uint":
- return function (a, b) {
- return a.Pa(b);
- };
- case "float":
- return function (a, b) {
- return a.gAb(b);
- };
- case "string":
- return function (a, b) {
- return a.Xka(b);
- };
- case "object":
- return function (a, b) {
- return a.kQa(b);
- };
- }
- };
- a.vxb = function (a) {
- var u;
- for (var b = [["[", "]"]], c = [], f = 0, d = 0, h = 0, k = [], l = {}; d < a.length; l = {
- "char": l["char"]
- }, ++d) {
- l["char"] = a.charAt(d);
- u = void 0;
- "," == l["char"] && 0 == h ? (c.push(a.substr(f, d - f)), f = d + 1) : (u = b.find(function (a) {
- return function (b) {
- return b[0] == a["char"];
- };
- }
- (l))) ? (++h, k.push(u)) : 0 < k.length && k[k.length - 1][1] == l["char"] && (--h, k.pop());
- }
- if (f != d)
- c.push(a.substr(f, d - f));
- else if (f == d && 0 < f)
- throw new p.Ym();
- return c;
- };
- a.IIb = function (a) {
- var b;
- b = a.charAt(0);
- if ('"' == b || "'" == b) {
- if (a.charAt(a.length - 1) != b)
- throw new p.Ym();
- return a.substring(1, a.length - 1);
- }
- return a;
- };
- d = b = a;
- return d = b = c.__decorate([n.N(), c.__param(0, n.l(k.ee)), c.__param(1, n.l(g.rw))], d);
- }
- ();
- b.sxa = d;
- }, function (d, b, a) {
- var c,
- l,
- g,
- n,
- k,
- p,
- h,
- f,
- u,
- A;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Wc = void 0;
- d = a(1);
- c = a(655);
- l = a(654);
- g = a(653);
- n = a(136);
- k = a(499);
- p = a(346);
- h = a(652);
- f = a(651);
- u = a(322);
- A = a(650);
- b.Wc = new d.Ec(function (a) {
- a(n.ST).to(c.sxa).aa();
- a(k.DT).to(g.lwa).aa();
- a(p.x8).to(l.fya).aa();
- a(h.zua).to(f.yua).aa();
- a(u.D8).to(A.yya).aa();
- });
- }, function (d, b, a) {
- var c,
- l,
- g;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Zpa = void 0;
- c = a(0);
- l = a(323);
- g = a(1);
- d = function () {
- var b;
- function a(a) {
- this.Jvb = a;
- }
- a.prototype.UHa = function () {
- var a;
- a = this.Jvb.getDeviceId();
- return new Promise(function (b, c) {
- a.oncomplete = function () {
- b(a.result);
- };
- a.onerror = function () {
- c(a.error);
- };
- });
- };
- b = a;
- return b = c.__decorate([g.N(), c.__param(0, g.l(l.z6))], b);
- }
- ();
- b.Zpa = d;
- }, function (d, b, a) {
- var c,
- l,
- g,
- n,
- k;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.crypto = void 0;
- d = a(1);
- c = a(323);
- l = a(352);
- g = a(353);
- n = a(657);
- k = a(10);
- b.crypto = new d.Ec(function (a) {
- a(g.S3).to(n.Zpa).aa();
- a(c.z6).bi(k.ut);
- a(l.T3).bi(k.eT);
- });
- }, function (d, b, a) {
- var c,
- l,
- g,
- n,
- k,
- p,
- h,
- f,
- u;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.N0a = void 0;
- c = a(0);
- l = a(1);
- g = a(25);
- n = a(21);
- k = a(68);
- p = a(153);
- h = a(326);
- f = a(102);
- u = a(195);
- d = function () {
- var b;
- function a(a, b, c) {
- var f;
- f = h.tK.call(this, a, b, "network") || this;
- f.aX = c;
- f.qX = p.hS.y0a;
- f.Wtb = 30;
- f.Zwb = function (a) {
- f.qX = a.target.value;
- f.refresh();
- };
- f.Fwb = function () {
- f.data = {};
- f.refresh();
- };
- f.lRa = function (a) {
- var b,
- c;
- b = Number(a.target.id);
- a = a.target.getAttribute("data-type");
- b = f.data[f.qX][b].value;
- c = JSON.stringify(b, null, 4);
- "copy" === a ? u.dS.ica(c) : "log" === a && console.log(b);
- };
- return f;
- }
- da(a, h.tK);
- a.prototype.Db = function () {
- var a;
- a = this;
- if (this.$o)
- return Promise.resolve();
- t.addEventListener("keydown", function (b) {
- b.ctrlKey && b.altKey && b.shiftKey && b.keyCode == f.dr.E0a && a.toggle();
- });
- this.data = {};
- this.aX.addListener(p.d4.R1a, function (b) {
- var c;
- a.data[b.type] || (a.data[b.type] = []);
- c = a.data[b.type];
- c.length === a.Wtb && c.shift();
- c.push(b);
- b.type === a.qX && a.refresh();
- });
- this.$o = !0;
- return Promise.resolve();
- };
- a.prototype.Yi = function () {
- return '";
- };
- a.prototype.Kfa = function (a, b, c) {
- var f;
- f = a.toString();
- b = '"' + b + '" ';
- c = this.pDa.kk(c);
- return '\n \n ' + f + ' \n ' + b + ' \n \n \n \n \n Copy\n \n \n Log\n \n
\n \n \n ';
- };
- a.prototype.Vfa = function () {
- for (var a = '' + this.Yi(), b = this.data[this.qX] || [], c = 0; c < b.length; ++c)
- a += this.Kfa(c, b[c].name, b[c].value);
- return a + "
";
- };
- a.prototype.OHa = function () {
- var a;
- a = this.gd.createElement("button", h.AD, "Clear", {
- "class": this.prefix + "-display-btn"
- });
- a.onclick = this.Fwb;
- return [a, this.Nfb(), this.Gfb()];
- };
- a.prototype.Nfb = function () {
- var a;
- a = this.gd.createElement("select", h.AD, Object.keys(p.hS).reduce(function (a, b) {
- b = p.hS[b];
- return a + ('' + b + " ");
- }, ""), {
- "class": this.prefix + "-display-select"
- });
- a.onchange = this.Zwb;
- return a;
- };
- a.prototype.Gfb = function () {
- var a,
- b,
- c,
- f;
- a = this;
- b = this.gd.createElement("input", "margin:3px;", void 0, {
- id: "preventRefresh",
- type: "checkbox",
- title: "PreventRefresh"
- });
- b.checked = this.FP;
- b.onchange = function () {
- return a.HGb();
- };
- c = this.gd.createElement("label", void 0, "Prevent Refresh", {
- "for": "preventRefresh"
- });
- f = this.gd.createElement("div", void 0, void 0, {
- "class": this.prefix + "-display-div"
- });
- f.appendChild(b);
- f.appendChild(c);
- return f;
- };
- a.prototype.AQa = function () {
- return Promise.resolve(this.Vfa());
- };
- b = a;
- return b = c.__decorate([l.N(), c.__param(0, l.l(g.af)), c.__param(1, l.l(n.ee)), c.__param(2, l.l(k.ED))], b);
- }
- ();
- b.N0a = d;
- }, function (d, b, a) {
- var l,
- g,
- n,
- k,
- p,
- h,
- f,
- u,
- A,
- m,
- r,
- H,
- D,
- K,
- J,
- R,
- P,
- ba;
- function c() {}
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.dta = void 0;
- l = a(0);
- g = a(1);
- n = a(25);
- k = a(97);
- p = a(460);
- h = a(36);
- f = a(39);
- u = a(3);
- A = a(24);
- m = a(72);
- r = a(8);
- H = a(96);
- D = a(194);
- K = a(324);
- J = a(71);
- R = a(102);
- P = a(195);
- c.download = function (a, b) {
- return c.jmb(a).then(function (a) {
- return c.hob(a, b.join("\r\n")).then(function (a) {
- return c.Ahb(a.filename, a.text);
- });
- });
- };
- c.jmb = function (a) {
- return new Promise(function (b, c) {
- var f,
- d,
- h,
- k,
- l,
- p,
- g;
- try {
- f = new Date();
- d = f.getDate().toString();
- h = (f.getMonth() + 1).toString();
- k = f.getFullYear().toString();
- l = f.getHours().toString();
- p = f.getMinutes().toString();
- g = f.getSeconds().toString();
- 1 === d.length && (d = "0" + d);
- 1 === h.length && (h = "0" + h);
- 1 === l.length && (l = "0" + l);
- 1 === p.length && (p = "0" + p);
- 1 === g.length && (g = "0" + g);
- b(k + h + d + l + p + g + "." + a + ".log");
- } catch (ja) {
- c(ja);
- }
- });
- };
- c.hob = function (a, b) {
- return new Promise(function (c, f) {
- try {
- c({
- filename: a,
- text: URL.createObjectURL(new Blob([b], {
- type: "text/plain"
- }))
- });
- } catch (ha) {
- f(ha);
- }
- });
- };
- c.Ahb = function (a, b) {
- var c;
- try {
- c = document.createElement("a");
- c.setAttribute("href", b);
- c.setAttribute("download", a);
- c.style.display = "none";
- document.body.appendChild(c);
- c.click();
- document.body.removeChild(c);
- return Promise.resolve();
- } catch (ea) {
- return Promise.reject(ea);
- }
- };
- ba = function () {
- function a(b) {
- var c;
- this.elements = [];
- c = document.createElementNS(a.RQ, "svg");
- c.setAttribute("viewBox", b);
- this.elements.push(c);
- }
- a.prototype.FI = function () {
- var b;
- b = document.createElementNS(a.RQ, "g");
- b.setAttribute("stroke", "none");
- b.setAttribute("stroke-width", 1..toString());
- b.setAttribute("fill", "none");
- b.setAttribute("fill-rule", "evenodd");
- b.setAttribute("stroke-linecap", "round");
- this.addElement(b);
- return this;
- };
- a.prototype.GI = function (b, c, f) {
- var d;
- d = document.createElementNS(a.RQ, "path");
- d.setAttribute("d", b);
- c && d.setAttribute("fill", c);
- f && d.setAttribute("fill-rule", f);
- this.addElement(d);
- return this;
- };
- a.prototype.GQ = function (b, c, f, d, h) {
- var k;
- h = void 0 === h ? "#000000" : h;
- k = document.createElementNS(a.RQ, "rect");
- k.setAttribute("x", b.toString());
- k.setAttribute("y", c.toString());
- k.setAttribute("height", f.toString());
- k.setAttribute("width", d.toString());
- h && k.setAttribute("fill", h);
- this.addElement(k);
- return this;
- };
- a.prototype.$Eb = function () {
- var b;
- b = document.createElementNS(a.RQ, "polygon");
- b.setAttribute("points", "0 0 24 0 24 24 0 24");
- b.setAttribute("transform", "translate(12.000000, 12.000000) scale(-1, 1) translate(-12.000000, -12.000000)");
- this.addElement(b);
- return this;
- };
- a.prototype.end = function () {
- this.elements.pop();
- return this;
- };
- a.prototype.kk = function () {
- if (1 < this.elements.length)
- throw new RangeError("Some item wasn't terminated correctly");
- if (0 === this.elements.length)
- throw new RangeError("Too many items were terminated");
- return this.elements[0];
- };
- a.prototype.addElement = function (a) {
- if (0 === this.elements.length)
- throw new RangeError("Too many items were terminated");
- this.elements[this.elements.length - 1].appendChild(a);
- this.elements.push(a);
- };
- pa.Object.defineProperties(a, {
- background: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return "transparent";
- }
- },
- iB: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return "#000000";
- }
- }
- });
- a.RQ = "http://www.w3.org/2000/svg";
- return a;
- }
- ();
- d = function () {
- var b;
- function a(a, b, f, d, h, k, l, p, g, n) {
- var q;
- q = this;
- this.Ga = a;
- this.app = b;
- this.gd = f;
- this.ta = d;
- this.El = h;
- this.config = k;
- this.Kx = l;
- this.jna = p;
- this.egb = g;
- this.Tj = n;
- this.fGb = function () {
- q.nR.Mc(function () {
- q.update();
- });
- };
- this.clear = function () {
- q.entries = [];
- q.update();
- };
- this.TMa = function () {
- q.Rd.aH = !q.Rd.aH;
- q.wy && q.Ay && (q.Rd.aH ? (q.wy.style.display = "inline-block", q.Ay.style.display = "none") : (q.Ay.style.display = "inline-block", q.wy.style.display = "none"));
- q.YC(!1);
- };
- this.qtb = function (a) {
- var b;
- q.entries.push(a);
- b = q.config.hH;
- 0 <= b && q.entries.length > b && q.entries.shift();
- void 0 === q.Rd.su[a.cm] && (q.Rd.su[a.cm] = !0, q.YC(!1));
- q.Rd.Wn && !q.yTa ? q.fGb() : q.nR.Mc();
- };
- this.Bhb = function () {
- c.download("all", q.entries.map(function (a) {
- return a.y2(!1, !1);
- }))["catch"](function (a) {
- console.error("Unable to download all logs to the file", a);
- });
- };
- this.$o = !1;
- this.Rd = {
- Wn: !1,
- aH: !0,
- pX: !0,
- dia: r.hi.p5,
- su: {}
- };
- this.nR = this.jna(u.ph(1));
- this.Gjb = this.egb(u.Jb(250));
- this.entries = [];
- }
- a.prototype.Db = function () {
- var a;
- a = this;
- this.tl || (this.tl = new Promise(function (b) {
- t.addEventListener("keydown", function (b) {
- b.ctrlKey && b.altKey && b.shiftKey && (b.keyCode == R.dr.Q_a ? a.toggle() : b.keyCode == R.dr.E && P.dS.ica(a.Kx().yh));
- });
- a.El.h1(D.T5.$Xa, a.qtb);
- b();
- }));
- return this.tl;
- };
- a.prototype.show = function () {
- document.body && (this.element || (this.cfb(), this.$o = !0), !this.Rd.Wn && this.element && (document.body.appendChild(this.element), this.Rd.Wn = !0, this.update(!0)));
- };
- a.prototype.Xo = function () {
- this.$o && this.Rd.Wn && this.element && (document.body.removeChild(this.element), this.Rd.Wn = !1);
- };
- a.prototype.toggle = function () {
- this.Rd.Wn ? this.Xo() : this.show();
- this.YC(!1);
- };
- a.prototype.cfb = function () {
- var a,
- b;
- try {
- a = this.createElement("div", "position:fixed;left:10px;top:30px;right:10px;z-index:10000;color:#000;bottom:10px;", void 0, {
- "class": "player-log"
- });
- b = this.createElement("style");
- b.type = "text/css";
- b.appendChild(document.createTextNode("button:focus { outline: none; }"));
- a.appendChild(b);
- a.appendChild(this.Pm = this.Lfb());
- a.appendChild(this.Mfb());
- a.appendChild(this.Xeb());
- this.element = a;
- } catch (ha) {
- console.error("Unable to create the log console", ha);
- }
- };
- a.prototype.Lfb = function () {
- var a,
- b;
- a = this;
- b = this.createElement("textarea", "position:absolute;resize:none;box-sizing:border-box;width:100%;height:100%;margin:0;color:#040;font-size:11px;font-family:monospace;overflow:scroll;background-color:rgba(255,255,255,0.6)");
- b.setAttribute("wrap", "off");
- b.setAttribute("readonly", "readonly");
- b.addEventListener("focus", function () {
- a.yTa = !0;
- a.update();
- a.Pm && (a.Pm.style.cssText = "position:absolute;resize:none;box-sizing:border-box;width:100%;height:100%;margin:0;color:#040;font-size:11px;font-family:monospace;overflow:scroll;background-color:rgba(255,255,255,0.86)");
- });
- b.addEventListener("blur", function () {
- a.yTa = !1;
- a.update();
- a.Pm && (a.Pm.style.cssText = "position:absolute;resize:none;box-sizing:border-box;width:100%;height:100%;margin:0;color:#040;font-size:11px;font-family:monospace;overflow:scroll;background-color:rgba(255,255,255,0.6)");
- });
- return b;
- };
- a.prototype.Mfb = function () {
- var a;
- a = this.createElement("div", "float:right;opacity:0.8;background-color:white;display:flex;align-items:center;font-size:small;font-family:sans-serif");
- a.appendChild(this.tfb());
- a.appendChild(this.mfb());
- a.appendChild(this.gfb());
- a.appendChild(this.Ofb());
- a.appendChild(this.$eb());
- a.appendChild(this.yfb());
- a.appendChild(this.wfb());
- a.appendChild(this.ifb());
- a.appendChild(this.afb());
- return a;
- };
- a.prototype.Xeb = function () {
- var a,
- b,
- c,
- f,
- d,
- h;
- a = this;
- b = this.createElement("div", "float:right;opacity:0.8;background-color:white;font-size:small;font-family:sans-serif");
- c = this.createElement("div", "padding:2px");
- f = this.createElement("select", this.Zr(22, 160, 1, 2), "Select categories ");
- d = this.createElement("div", "height:500px;overflow-y:auto;display:none;border:1px #dadada solid");
- b.appendChild(c);
- b.appendChild(d);
- c.appendChild(f);
- c.addEventListener("mousedown", function (a) {
- a.preventDefault();
- });
- h = !1;
- c.addEventListener("click", function () {
- h ? d.style.display = "none" : (d.innerHTML = "", ["all", "none"].concat(Object.keys(a.Rd.su).sort()).forEach(function (b) {
- d.appendChild(a.Yeb(b, c));
- }), d.style.display = "block");
- h = !h;
- });
- return b;
- };
- a.prototype.Yeb = function (a, b) {
- var c,
- f,
- d;
- c = this;
- f = this.createElement("label", "display: block;margin:1px");
- f.htmlFor = a;
- d = this.createElement("input", "margin:1px");
- d.type = "checkbox";
- d.id = a;
- d.checked = this.Rd.su[a];
- d.addEventListener("click", function () {
- "all" === a || "none" === a ? (Object.keys(c.Rd.su).forEach(function (b) {
- c.Rd.su[b] = "all" === a;
- }), b.click()) : c.Rd.su[a] = !c.Rd.su[a];
- c.YC(!0);
- });
- f.appendChild(d);
- f.insertAdjacentText("beforeend", 18 < a.length ? a.slice(0, 15) + "..." : a);
- return f;
- };
- a.prototype.tfb = function () {
- var a,
- b;
- a = this;
- b = this.createElement("select", this.Zr(22, NaN, 1, 2), 'Error ' + ('Warn ') + ('Info ') + ('Trace ') + ('Debug '));
- b.value = this.Rd.dia.toString();
- b.addEventListener("change", function (b) {
- a.Rd.dia = parseInt(b.target.value);
- a.YC(!0);
- }, !1);
- return b;
- };
- a.prototype.mfb = function () {
- var b,
- c;
- function a(a) {
- return b.Gjb.Mc(function () {
- var c;
- c = a.target.value;
- b.Rd.filter = c ? new RegExp(c) : void 0;
- b.YC(!0);
- });
- }
- b = this;
- c = this.createElement("input", this.Zr(14, 150, 1, 2));
- c.value = this.Rd.filter ? this.Rd.filter.source : "";
- c.title = "Filter (RegEx)";
- c.placeholder = "Filter (RegEx)";
- c.addEventListener("keydown", a, !1);
- c.addEventListener("change", a, !1);
- return c;
- };
- a.prototype.gfb = function () {
- var a,
- b,
- c,
- f;
- a = this;
- b = this.createElement("div", this.Zr(NaN, NaN));
- c = this.createElement("input", "vertical-align: middle;margin: 0px 2px 0px 0px;");
- c.id = "details";
- c.type = "checkbox";
- c.title = "Details";
- c.checked = this.Rd.pX;
- c.addEventListener("change", function (b) {
- a.Rd.pX = b.target.checked;
- a.YC(!0);
- }, !1);
- f = this.createElement("label", "vertical-align: middle;margin: 0px 0px 0px 2px;");
- f.setAttribute("for", "details");
- f.innerHTML = "View details";
- b.appendChild(c);
- b.appendChild(f);
- return b;
- };
- a.prototype.Ofb = function () {
- var a,
- b,
- c;
- a = this;
- b = this.createElement("button", this.Zr());
- c = new ba("0 0 24 24").FI().$Eb().end().GI("M20,12.3279071 L21.9187618,10.9573629 L23.0812382,12.5848299 L19,15.5 L14.9187618,12.5848299 L16.0812382,10.9573629 L18,12.3279071 L18,12 C18,8.13 14.87,5 11,5 C7.13,5 4,8.13 4,12 C4,15.87 7.13,19 11,19 C12.93,19 14.68,18.21 15.94,16.94 L17.36,18.36 C15.73,19.99 13.49,21 11,21 C6.03,21 2,16.97 2,12 C2,7.03 6.03,3 11,3 C15.97,3 20,7.03 20,12 L20,12.3279071 Z", ba.iB, "nonzero").end().end().kk();
- b.appendChild(c);
- b.addEventListener("click", function () {
- a.update();
- }, !1);
- b.setAttribute("title", "Refresh the log console");
- return b;
- };
- a.prototype.$eb = function () {
- var a,
- b;
- a = this.createElement("button", this.Zr());
- b = new ba("0 0 24 24").FI().GQ(0, 0, 24, 24, ba.background).end().GI("M19,4 L15.5,4 L14.5,3 L9.5,3 L8.5,4 L5,4 L5,6 L19,6 L19,4 Z M6,19 C6,20.1 6.9,21 8,21 L16,21 C17.1,21 18,20.1 18,19 L18,7 L6,7 L6,19 Z", ba.iB).end().end().kk();
- a.appendChild(b);
- a.addEventListener("click", this.clear, !1);
- a.setAttribute("title", "Remove all log messages");
- return a;
- };
- a.prototype.yfb = function () {
- var a;
- this.Ay = this.createElement("button", this.Zr());
- this.Ay.style.display = this.Rd.aH ? "none" : "inline-block";
- a = new ba("0 0 24 24").FI().GQ(0, 0, 24, 24, ba.background).end().GI("M3,3 L21,3 L21,21 L3,21 L3,3 Z M5,5 L5,19 L19,19 L19,5 L5,5 Z M6,6 L18,6 L18,12 L6,12 L6,6 Z", ba.iB, "nonzero").end().end().kk();
- this.Ay.addEventListener("click", this.TMa, !1);
- this.Ay.appendChild(a);
- this.Ay.setAttribute("title", "Shrink the log console");
- return this.Ay;
- };
- a.prototype.wfb = function () {
- var a;
- this.wy = this.createElement("button", this.Zr());
- this.wy.style.display = this.Rd.aH ? "inline-block" : "none";
- a = new ba("0 0 24 24").FI().GQ(4, 4, 16, 16, ba.background).end().GI("M5,5 L5,19 L19,19 L19,5 L5,5 Z M3,3 L21,3 L21,21 L3,21 L3,3 Z", ba.iB, "nonzero").end().end().kk();
- this.wy.addEventListener("click", this.TMa, !1);
- this.wy.appendChild(a);
- this.wy.setAttribute("title", "Expand the log console");
- return this.wy;
- };
- a.prototype.ifb = function () {
- var a,
- b;
- a = this.createElement("button", this.Zr());
- b = new ba("0 0 26 26").FI().GQ(0, 0, 24, 24, ba.background).end().GI("M20,20 L20,22 L4,22 L4,20 L20,20 Z M7.8,12.85 L12,16 L16.2,12.85 L17.4,14.45 L12,18.5 L6.6,14.45 L7.8,12.85 Z M7.8,7.85 L12,11 L16.2,7.85 L17.4,9.45 L12,13.5 L6.6,9.45 L7.8,7.85 Z M7.8,2.85 L12,6 L16.2,2.85 L17.4,4.45 L12,8.5 L6.6,4.45 L7.8,2.85 Z", ba.iB, "nonzero").end().end().kk();
- a.appendChild(b);
- a.addEventListener("click", this.Bhb, !1);
- a.setAttribute("title", "Download all log messages");
- return a;
- };
- a.prototype.afb = function () {
- var a,
- b,
- c;
- a = this;
- b = this.createElement("button", this.Zr());
- c = new ba("0 0 24 24").FI().GQ(0, 0, 24, 24, ba.background).end().GI("M12,10.5857864 L19.2928932,3.29289322 L20.7071068,4.70710678 L13.4142136,12 L20.7071068,19.2928932 L19.2928932,20.7071068 L12,13.4142136 L4.70710678,20.7071068 L3.29289322,19.2928932 L10.5857864,12 L3.29289322,4.70710678 L4.70710678,3.29289322 L12,10.5857864 Z", ba.iB, "nonzero").end().end().kk();
- b.appendChild(c);
- b.addEventListener("click", function () {
- a.toggle();
- }, !1);
- b.setAttribute("title", "Close the log console");
- return b;
- };
- a.prototype.YC = function (a) {
- (void 0 === a ? 0 : a) && this.update(!1);
- };
- a.prototype.update = function (a) {
- var b;
- a = void 0 === a ? !1 : a;
- b = this;
- this.element && this.config.VP && Promise.resolve(this.ebb() + this.kmb().join("\r\n")).then(function (c) {
- b.element && b.Pm && (b.Pm.value = c, b.element.style.cssText = b.Rd.aH ? "position:fixed;left:10px;top:30px;right:10px;z-index:10000;color:#000;height:30%;" : "position:fixed;left:10px;top:30px;right:10px;z-index:10000;color:#000;bottom:10px;", a && b.ta.Dh(u.wd, function () {
- b.Pm.scrollTop = b.Pm.scrollHeight;
- }));
- })["catch"](function (a) {
- console.error("Unable to update the log console", a);
- });
- };
- a.prototype.kmb = function () {
- var a,
- b;
- a = this;
- b = [];
- this.entries.forEach(function (c) {
- (c.level || c.level) <= a.Rd.dia && a.Rd.su[c.cm] && (c = c.y2(!a.Rd.pX, !a.Rd.pX), a.Rd.filter && !a.Rd.filter.test(c) || b.push(c));
- });
- return b;
- };
- a.prototype.ebb = function () {
- var a;
- a = this.Kx();
- return "Version: 6.0023.976.031 \n" + ((a ? "Esn: " + a.yh : "") + "\n") + ("JsSid: " + this.app.id + ", Epoch: " + this.Ga.jf.ca(u.Pl) + ", Start: " + this.app.$B.ca(u.Pl) + ", TimeZone: " + new Date().getTimezoneOffset() + "\n") + ("Href: " + location.href + "\n") + ("UserAgent: " + navigator.userAgent + "\n") + "--------------------------------------------------------------------------------\n";
- };
- a.prototype.createElement = function (a, b, c, f) {
- return this.gd.createElement(a, b, c, f);
- };
- a.prototype.Zr = function (a, b, c, f) {
- a = void 0 === a ? 26 : a;
- b = void 0 === b ? 26 : b;
- return "display:inline-block;border:" + (void 0 === c ? 0 : c) + "px solid " + ba.iB + ";padding:3px;" + (isNaN(a) ? "" : "height:" + a + "px") + ";" + (isNaN(b) ? "" : "width:" + b + "px") + ";margin:0px 3px;background-color:transparent;" + (f ? "border-radius:" + f + "px;" : "");
- };
- b = a;
- b.nFb = "logDxDisplay";
- return b = l.__decorate([g.N(), l.__param(0, g.l(f.Ii)), l.__param(1, g.l(A.Oe)), l.__param(2, g.l(n.af)), l.__param(3, g.l(h.Qg)), l.__param(4, g.l(H.Mz)), l.__param(5, g.l(K.M5)), l.__param(6, g.l(m.ar)), l.__param(7, g.l(k.bA)), l.__param(8, g.l(p.b4)), l.__param(9, g.l(J.Wq))], b);
- }
- ();
- b.dta = d;
- }, function (d, b, a) {
- var c,
- l,
- g,
- n,
- k,
- p;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.cta = void 0;
- c = a(0);
- l = a(1);
- g = a(41);
- n = a(40);
- k = a(28);
- p = a(140);
- d = function () {
- var b;
- function a(a, b) {
- a = n.fe.call(this, a, "LogDisplayConfigImpl") || this;
- a.hm = b;
- return a;
- }
- da(a, n.fe);
- pa.Object.defineProperties(a.prototype, {
- VP: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return !0;
- }
- },
- hH: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.hm.hH;
- }
- },
- LLa: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return -1;
- }
- }
- });
- b = a;
- c.__decorate([g.config(g.Kd, "renderDomDiagnostics")], b.prototype, "VP", null);
- c.__decorate([g.config(g.MZ, "logDisplayMaxEntryCount")], b.prototype, "hH", null);
- c.__decorate([g.config(g.MZ, "logDisplayAutoshowLevel")], b.prototype, "LLa", null);
- return b = c.__decorate([l.N(), c.__param(0, l.l(k.Li)), c.__param(1, l.l(p.iE))], b);
- }
- ();
- b.cta = d;
- }, function (d, b, a) {
- var c,
- l,
- g;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Aoa = void 0;
- c = a(0);
- l = a(1);
- a(3);
- g = a(84);
- d = function () {
- var b;
- function a() {
- this.Wla = "";
- this.jVa = [[], []];
- this.$ = [[], []];
- }
- a.prototype.downloadRequest = function (a) {
- var b;
- "" === this.Wla && (this.Wla = a.Na);
- if (!a.ec) {
- b = this.AGb(a);
- this.$[a.M].push(b);
- this.jVa[a.M].forEach(function (a) {
- a.QQb(b);
- });
- }
- };
- a.prototype.AGb = function (a) {
- return {
- id: a.Fj(),
- Na: a.Na,
- M: a.M,
- Si: a.Si,
- startTime: a.Ov,
- endTime: a.ZH,
- offset: a.Em,
- tM: a.tM,
- sM: a.sM,
- duration: a.Sr,
- O: a.O,
- state: g.p3.RFa,
- Dq: !1,
- wTb: !1,
- EJa: !1,
- pSb: g.o3.waiting
- };
- };
- a.prototype.update = function (a) {
- this.jVa[a.M].forEach(function (b) {
- b.wWb(a);
- });
- };
- pa.Object.defineProperties(a.prototype, {
- Na: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.Wla;
- }
- }
- });
- b = a;
- return b = c.__decorate([l.N()], b);
- }
- ();
- b.Aoa = d;
- }, function (d, b, a) {
- var c,
- l,
- g;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Mqa = void 0;
- c = a(0);
- l = a(1);
- g = a(327);
- d = function () {
- var b;
- function a(a) {
- this.vhb = a;
- }
- a.prototype.Db = function () {
- var a;
- a = this;
- this.tl || (this.tl = new Promise(function (b, c) {
- var f;
- f = [];
- a.vhb.forEach(function (a) {
- f.push(a.Db());
- });
- Promise.all(f).then(function () {
- b();
- })["catch"](function (a) {
- c(a);
- });
- }));
- return this.tl;
- };
- b = a;
- return b = c.__decorate([l.N(), c.__param(0, l.nC(g.s4))], b);
- }
- ();
- b.Mqa = d;
- }, function (d, b) {
- function a(a) {
- this.is = a;
- this.Mrb = "#881391";
- this.uFb = "#C41A16";
- this.Qab = this.lwb = "#1C00CF";
- this.zqb = "#D79BDB";
- this.qHb = this.iwb = "#808080";
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Xxa = void 0;
- a.prototype.kk = function (a) {
- return this.getValue("~~NONAME~~", a);
- };
- a.prototype.$x = function (a, b) {
- return '' + a + ": ";
- };
- a.prototype.xHa = function (a, b) {
- b = b || "";
- a = "" + ('' + this.$x(a) + "Array[" + b.length + "] ");
- a += "";
- for (var c = 0; c < b.length; ++c)
- a += this.getValue(c.toString(), b[c]);
- a += this.getValue("length", b.length, !0);
- return a + " ";
- };
- a.prototype.KIa = function (a, b) {
- var c,
- d,
- k;
- c = this;
- if (b instanceof CryptoKey)
- return this.Hlb(a, b);
- d = Object.keys(b);
- k = "";
- k = k + ('' + ("~~NONAME~~" !== a ? this.$x(a) : "") + "Object ");
- k = k + "";
- d.forEach(function (a) {
- k = a.startsWith("$") ? k + c.getValue(a, "REMOVED") : k + c.getValue(a, b[a]);
- });
- k += " ";
- return k += " ";
- };
- a.prototype.Hlb = function (a, b) {
- a = "" + ('' + this.$x(a) + "CryptoKey ");
- a = a + "" + this.KIa("algorithm", b.algorithm);
- a += this.BHa("extractable", b.extractable);
- a += this.dJa("type", b.type);
- a += this.xHa("usages", b.usages);
- return a + " ";
- };
- a.prototype.enb = function (a, b, d) {
- return '' + this.$x(a, void 0 === d ? !1 : d) + ('' + b.toString() + " ") + " ";
- };
- a.prototype.BHa = function (a, b, d) {
- return '' + this.$x(a, void 0 === d ? !1 : d) + ('' + b.toString() + " ") + " ";
- };
- a.prototype.dJa = function (a, b, d) {
- 128 < b.length && (b = b.substr(0, 128) + "...");
- return '' + this.$x(a, void 0 === d ? !1 : d) + ('"' + b + '" ') + " ";
- };
- a.prototype.dnb = function (a) {
- return '' + this.$x(a) + ('null ') + " ";
- };
- a.prototype.uob = function (a, b) {
- b = "undefined" === typeof b ? "" : b.toString();
- 255 < b.length && (b = b.substr(0, 255) + "...");
- return '' + this.$x(a) + ('' + b + " ") + " ";
- };
- a.prototype.getValue = function (a, b, d) {
- d = void 0 === d ? !1 : d;
- return null === b ? "" + this.dnb(a) : this.is.eu(b) ? "" + this.xHa(a, b) : this.is.OA(b) ? "" + this.KIa(a, b) : this.is.wn(b) ? "" + this.dJa(a, b, d) : this.is.dg(b) ? "" + this.enb(a, b, d) : this.is.NL(b) ? "" + this.BHa(a, b, d) : "" + this.uob(a, b);
- };
- b.Xxa = a;
- }, function (d, b, a) {
- var c,
- l,
- g,
- n,
- k,
- p,
- h,
- f;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.L_a = void 0;
- c = a(0);
- l = a(1);
- g = a(25);
- n = a(21);
- k = a(169);
- p = a(326);
- h = a(102);
- f = a(195);
- d = function () {
- var b;
- function a(a, b, c) {
- var f;
- f = p.tK.call(this, a, b, "idb") || this;
- f.Tj = c;
- f.lRa = function (a) {
- f.Ogb(a.target.id).then(function () {
- return f.refresh();
- });
- };
- f.Gwb = function () {
- f.qcb().then(function () {
- return f.refresh();
- });
- };
- f.Qwb = function () {
- f.refresh();
- };
- f.Iwb = function () {
- f.qdb();
- };
- return f;
- }
- da(a, p.tK);
- a.prototype.Db = function () {
- var a;
- a = this;
- if (this.$o)
- return Promise.resolve();
- t.addEventListener("keydown", function (b) {
- b.ctrlKey && b.altKey && b.shiftKey && b.keyCode == h.dr.LZa && a.toggle();
- });
- return this.Tj.create().then(function (b) {
- a.storage = b;
- a.$o = !0;
- });
- };
- a.prototype.Yi = function () {
- return '";
- };
- a.prototype.Kfa = function (a, b, c) {
- var f;
- a = a.toString();
- f = '"' + b + '" ';
- c = this.pDa.kk({
- name: b,
- data: c
- });
- return "" + ('' + a + " ") + ('' + f + " ") + (' ") + (' ') + " ";
- };
- a.prototype.Vfa = function (a) {
- for (var b = '' + this.Yi(), c = Object.keys(a), f = 0; f < c.length; ++f)
- b += this.Kfa(f, c[f], a[c[f]]);
- return b + "
";
- };
- a.prototype.OHa = function () {
- var a,
- b,
- c;
- a = this.gd.createElement("button", p.AD, "Clear", {
- "class": this.prefix + "-display-btn"
- });
- b = this.gd.createElement("button", p.AD, "Refresh", {
- "class": this.prefix + "-display-btn"
- });
- c = this.gd.createElement("button", p.AD, "Copy", {
- "class": this.prefix + "-display-btn"
- });
- a.onclick = this.Gwb;
- b.onclick = this.Qwb;
- c.onclick = this.Iwb;
- return [a, b, c];
- };
- a.prototype.Ssb = function () {
- var a;
- a = this;
- return this.storage.loadAll().then(function (b) {
- a.aKa = b.reduce(function (a, b) {
- a[b.key] = b.value;
- return a;
- }, {});
- return a.aKa;
- });
- };
- a.prototype.Ogb = function (a) {
- return this.storage.remove(a);
- };
- a.prototype.qcb = function () {
- return this.storage.removeAll();
- };
- a.prototype.AQa = function () {
- var a;
- a = this;
- return this.Ssb().then(function (b) {
- return a.Vfa(b);
- });
- };
- a.prototype.qdb = function () {
- var a;
- a = JSON.stringify(this.aKa, null, 4);
- f.dS.ica(a);
- };
- b = a;
- return b = c.__decorate([l.N(), c.__param(0, l.l(g.af)), c.__param(1, l.l(n.ee)), c.__param(2, l.l(k.RS))], b);
- }
- ();
- b.L_a = d;
- }, function (d, b, a) {
- var l,
- g,
- n,
- k,
- p,
- h,
- f,
- u;
- function c(a) {
- return function () {
- return new Promise(function (b, c) {
- var f;
- f = a.lb.get(g.u4);
- f.Db().then(function () {
- b(f);
- })["catch"](function (a) {
- c(a);
- });
- });
- };
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.WFa = void 0;
- d = a(1);
- l = a(327);
- a(665);
- g = a(325);
- n = a(663);
- k = a(84);
- p = a(662);
- h = a(324);
- f = a(661);
- u = a(660);
- a(659);
- b.WFa = new d.Ec(function (a) {
- a(h.M5).to(f.cta).aa();
- a(l.s4).to(u.dta);
- a(k.jJ).to(p.Aoa).aa();
- a(g.u4).to(n.Mqa).aa();
- a(g.t4).cR(c);
- });
- }, function (d, b, a) {
- var c,
- l,
- g,
- n,
- k;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.ova = b.lva = b.kva = void 0;
- c = a(0);
- l = a(1);
- g = a(196);
- n = a(47);
- k = a(2);
- d = function () {
- var b;
- function a(a) {
- this.Nxb = a;
- }
- a.prototype.Uq = function (a) {
- a.map(this.Nxb.Uq);
- };
- b = a;
- return b = c.__decorate([l.N(), c.__param(0, l.l(g.e7))], b);
- }
- ();
- b.kva = d;
- d = function () {
- var b;
- function a(a) {
- this.Lxb = a;
- }
- a.prototype.Uq = function (a) {
- this.Lxb.Uq(a.data);
- };
- b = a;
- return b = c.__decorate([l.N(), c.__param(0, l.l(g.b7))], b);
- }
- ();
- b.lva = d;
- d = function () {
- var b;
- function a() {}
- a.prototype.Uq = function (a) {
- var b;
- a.fa && "string" === typeof a.fa ? a.href && "string" === typeof a.href ? a.profileId && "string" === typeof a.profileId || (b = "ProfileId value is corrupted.") : b = "Href value is corrupted." : b = "Xid value is corrupted.";
- if (b)
- throw new n.Dc(k.J.pw, k.I.iw, void 0, void 0, void 0, b, void 0, a.fa);
- };
- b = a;
- return b = c.__decorate([l.N()], b);
- }
- ();
- b.ova = d;
- }, function (d, b, a) {
- var c,
- l,
- g,
- n;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.$ua = void 0;
- c = a(0);
- l = a(78);
- g = a(8);
- n = a(1);
- d = function () {
- var b;
- function a(a, b) {
- this.DM = b;
- this.log = a.yb("PboEventSenderImpl");
- }
- a.prototype.fma = function (a, b) {
- var c;
- c = this.DM(l.Kl.start);
- return this.yGa(c, a, b);
- };
- a.prototype.MRa = function (a) {
- var b;
- b = this;
- return this.DM(l.Kl.stop).kf(this.log, a).then(function () {})["catch"](function (a) {
- b.log.error("PBO stop event failed", a);
- throw a;
- });
- };
- a.prototype.oQ = function (a, b, c) {
- a = this.DM(a);
- return this.yGa(a, b, c);
- };
- a.prototype.yGa = function (a, b, c) {
- var f;
- f = this;
- return a.Uo(this.log, b.ya.Jj, c).then(function () {})["catch"](function (a) {
- f.log.error("PBO event failed", a);
- throw a;
- });
- };
- b = a;
- return b = c.__decorate([n.N(), c.__param(0, n.l(g.Bb)), c.__param(1, n.l(l.qS))], b);
- }
- ();
- b.$ua = d;
- }, function (d, b, a) {
- var c,
- l,
- g,
- n,
- k,
- p,
- h;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Jva = void 0;
- c = a(0);
- l = a(1);
- g = a(40);
- n = a(28);
- k = a(41);
- p = a(3);
- h = a(30);
- d = function () {
- var b;
- function a(a, b) {
- a = g.fe.call(this, a, "PlaydataConfigImpl") || this;
- a.config = b;
- return a;
- }
- da(a, g.fe);
- pa.Object.defineProperties(a.prototype, {
- PH: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.config.Tr ? "unsentplaydatatest" : "unsentplaydata";
- }
- },
- cma: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return !0;
- }
- },
- HRa: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return p.Jb(1E4);
- }
- },
- dka: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return p.Jb(4E3);
- }
- },
- iLa: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return p.aP(1);
- }
- },
- jLa: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return p.ph(30);
- }
- }
- });
- b = a;
- c.__decorate([k.config(k.string, "playdataPersistKey")], b.prototype, "PH", null);
- c.__decorate([k.config(k.Kd, "sendPersistedPlaydata")], b.prototype, "cma", null);
- c.__decorate([k.config(k.fh, "playdataSendDelayMilliseconds")], b.prototype, "HRa", null);
- c.__decorate([k.config(k.fh, "playdataPersistIntervalMilliseconds")], b.prototype, "dka", null);
- c.__decorate([k.config(k.fh, "heartbeatCooldown")], b.prototype, "iLa", null);
- c.__decorate([k.config(k.fh, "keepAliveWindow")], b.prototype, "jLa", null);
- return b = c.__decorate([l.N(), c.__param(0, l.l(n.Li)), c.__param(1, l.l(h.Yj))], b);
- }
- ();
- b.Jva = d;
- }, function (d, b, a) {
- var g,
- n,
- k,
- p,
- h,
- f,
- u,
- A,
- m,
- r,
- H,
- D,
- K,
- J,
- t;
- function c(a, b) {
- this.config = a;
- this.Ga = b;
- }
- function l(a, b, c, f, d, h) {
- this.log = a;
- this.ta = b;
- this.Bh = c;
- this.Bq = f;
- this.Ws = d;
- this.nyb = h;
- this.FGa = this.Yp = !1;
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.nva = b.S1a = void 0;
- g = a(0);
- n = a(1);
- k = a(3);
- p = a(8);
- h = a(36);
- f = a(245);
- u = a(330);
- A = a(13);
- m = a(329);
- r = a(2);
- H = a(197);
- D = a(328);
- K = a(112);
- J = a(39);
- t = a(60);
- l.prototype.Y_ = function (a, b) {
- var f;
- function c() {
- var a;
- a = f.Bq.create(f.Bh);
- f.Ws.Pna(a)["catch"](function (a) {
- var b;
- b = f.FGa ? p.hi.A8 : p.hi.ERROR;
- f.FGa = !0;
- f.log.write(b, "Unable to save playdata changes to IDB", a);
- });
- }
- f = this;
- this.log.trace("Adding initial playdata", b);
- this.Ws.E9a(b).then(function () {
- f.log.trace("Scheduling monitor", {
- interval: a
- });
- f.sp = f.ta.Kla(a, c);
- })["catch"](function (d) {
- f.log.error("Unable to add playdata", {
- error: d,
- playdata: new H.sT().encode(b)
- });
- f.sp = f.ta.Kla(a, c);
- });
- };
- l.prototype.stop = function (a) {
- var b,
- c;
- b = this;
- if (this.Yp)
- return Promise.resolve();
- this.sp && this.sp.cancel();
- c = this.Bq.create(this.Bh);
- return this.Ws.Pna(c)["catch"](function (a) {
- b.log.error("Unable to update playdata changes during stop", a);
- }).then(function () {
- if (a) {
- if (b.Bh.background)
- return b.log.trace("Playback is currently in the background and never played, not sending the playdata", c), Promise.resolve();
- b.log.trace("Sending final playdata to the server", c);
- return b.nyb.MRa(c);
- }
- b.log.trace("Currently configured to not send play data, not sending the data to the server");
- }).then(function () {
- if (a)
- return b.log.trace("Removing playdata from the persisted store", c), b.Ws.HQa(c);
- b.log.trace("Currently configured to not send play data, not removing the play data from IDB");
- }).then(function () {
- b.log.info("Successfully stopped the playback", c.u);
- })["catch"](function (a) {
- b.log.error("Unable to remove playdata changes", a);
- throw a;
- });
- };
- l.prototype.cancel = function () {
- this.Yp = !0;
- this.sp && this.sp.cancel();
- this.Ws.Pna(this.Bq.create(this.Bh));
- };
- pa.Object.defineProperties(c.prototype, {
- Dbb: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- var a;
- a = this.Ga.jf;
- return !this.XB || 0 <= a.Nb(this.XB).nl(this.config.jLa) ? (this.XB = a, !0) : !1;
- }
- }
- });
- b.S1a = c;
- d = function () {
- var b;
- function a(a, b, f, d, h, k, l, p) {
- this.config = a;
- this.ta = f;
- this.Ws = d;
- this.Bq = h;
- this.L0 = k;
- this.me = l;
- this.XB = Promise.resolve();
- this.closed = !1;
- this.log = b.yb("PlaydataServices");
- this.AC = [];
- this.active = new Set();
- this.bCb = new c(a, p);
- }
- a.prototype.Db = function () {
- var a;
- a = this;
- this.tl || (this.log.trace("Starting playdata services"), this.tl = this.Ws.jAb().then(function () {
- return a;
- })["catch"](function (b) {
- a.log.error("Unable to read the playdata, it will be deleted and not sent to the server", b);
- return a;
- }));
- return this.tl;
- };
- a.prototype.close = function () {
- this.closed = !0;
- this.AC.forEach(function (a) {
- a.Y_.cancel();
- });
- };
- a.prototype.send = function (a) {
- var b;
- if (this.closed)
- return Promise.resolve();
- b = this.config;
- return b.PH && b.cma ? this.YCb(a) : Promise.resolve();
- };
- a.prototype.Qma = function (a) {
- this.closed || this.YEb(a);
- };
- a.prototype.VSa = function (a) {
- var b,
- c,
- f;
- b = this;
- if (this.closed)
- return Promise.resolve();
- c = this.Bq.create(a);
- this.active["delete"](c.fa);
- a = S(K.As(function (a) {
- return a.key === c.fa;
- }, this.AC));
- f = a.next().value;
- this.AC = a.next().value;
- return Promise.all(f.map(function (a) {
- a.WSa = !0;
- return a.Y_.stop(b.config.cma);
- })).then(function () {});
- };
- a.prototype.q0 = function (a, b) {
- var c,
- f;
- c = this;
- f = a.ga;
- this.MSa(f, b);
- this.fma(f, a.JM)["catch"](function (a) {
- c.log.error("Start command failed", {
- playdata: a.BC,
- error: a.wB
- });
- });
- this.VEb(a);
- };
- a.prototype.YEb = function (a) {
- var b;
- b = this;
- a.addEventListener(A.U.fp, function (c) {
- var f;
- if (void 0 !== c.S0) {
- f = a.pm(c.S0);
- b.VSa(f);
- c.SB || new Promise(function (b) {
- var c;
- if (a.Dq.value)
- b();
- else {
- c = function (f) {
- f.newValue && (b(), a.Dq.removeListener(c));
- };
- a.Dq.addListener(c);
- }
- }).then(function () {
- return b.q0(a, "online");
- });
- }
- });
- a.addEventListener(A.U.ao, function () {
- b.q0(a, "online");
- });
- a.background || a.addEventListener(A.U.xO, function (c) {
- c = a.pm(c.u);
- b.MSa(c, "online");
- });
- a.addEventListener(A.U.Cf, function () {
- b.jFb();
- });
- a.addEventListener(A.U.YUa, function () {
- b.dDb(a.ga)["catch"](function (b) {
- (b = b.lka) && a.Wd(b);
- });
- });
- a.vc.addListener(function () {
- a.Oa.cda ? b.log.trace("stickiness is disabled for timedtext") : b.LRa(a.ga);
- });
- a.ld.addListener(function () {
- a.Oa.cda ? b.log.trace("stickiness is disabled for audio") : b.LRa(a.ga)["catch"](function (b) {
- (b = b.lka) && a.Wd(b);
- });
- });
- };
- a.prototype.MSa = function (a, b) {
- var c,
- f;
- a.fd("pdb");
- if (this.config.dka.jrb()) {
- c = this.Bq.create(a);
- f = c.fa;
- this.AC.some(function (a) {
- return a.key === f;
- }) ? this.log.trace("Already collecting " + b + " playdata, ignoring", c) : (this.log.info("Starting to collect " + b + " playdata", c), this.active.add(f), this.AC.push({
- key: f,
- Y_: this.Tmb(a, c),
- cD: !1,
- WSa: !1
- }));
- }
- };
- a.prototype.YCb = function (a) {
- var b,
- c,
- f,
- d;
- b = this;
- c = this.Ws.BC.filter(function (a) {
- return !b.active.has(a.fa);
- });
- f = void 0;
- d = void 0;
- a && Infinity === a ? f = c : (c = S(K.As(function (b) {
- return b.u === a;
- }, c)), f = c.next().value, d = c.next().value);
- d && 0 < d.length && this.ta.Dh(this.config.HRa, function () {
- b.KRa(d);
- });
- return f && 0 !== f.length ? this.KRa(f) : Promise.resolve();
- };
- a.prototype.KRa = function (a) {
- var c;
- function b(a) {
- return c.L0.MRa(a).then(function () {
- return c.iBb(a);
- });
- }
- c = this;
- return a.reduce(function (a, c) {
- return a.then(function () {
- return b(c);
- });
- }, Promise.resolve());
- };
- a.prototype.iBb = function (a) {
- var b;
- b = this;
- return this.Ws.HQa(a).then(function () {})["catch"](function (a) {
- b.log.error("Unble to complete the stop lifecycle event", a);
- throw a;
- });
- };
- a.prototype.Tmb = function (a, b) {
- a = new l(this.log, this.ta, a, this.Bq, this.Ws, this.L0);
- a.Y_(this.config.dka, b);
- return a;
- };
- a.prototype.fma = function (a, b) {
- var c,
- f;
- c = this;
- f = this.Bq.nfb(a, b);
- return this.L0.fma(a, f).then(function () {
- c.AC.filter(function (b) {
- return b.key === a.fa.toString();
- }).forEach(function (a) {
- a.cD = !0;
- });
- })["catch"](function (a) {
- throw {
- BC: f,
- wB: a
- };
- });
- };
- a.prototype.dDb = function (a) {
- return this.bCb.Dbb ? this.oQ(D.pT.oO, a, r.J.D5) : Promise.resolve();
- };
- a.prototype.LRa = function (a) {
- return this.oQ(D.pT.splice, a, r.J.Gwa);
- };
- a.prototype.oQ = function (a, b, c) {
- var d;
- function f(a) {
- var b;
- b = d.AC.filter(function (b) {
- return b.key === a.fa.toString();
- });
- return 0 === b.length ? !0 : b.reduce(function (a, b) {
- return a || b.WSa || !b.cD;
- }, !1);
- }
- d = this;
- return f(b) ? this.XB : this.XB = this.XB["catch"](function () {
- return Promise.resolve();
- }).then(function () {
- var c;
- if (f(b))
- return Promise.resolve();
- c = d.Bq.create(b);
- return d.L0.oQ(a, b, c);
- }).then(function (a) {
- return a;
- })["catch"](function (f) {
- var h;
- d.log.error("Failed to send event", {
- eventKey: a,
- xid: b.fa,
- error: f
- });
- f.Nn ? h = d.me(c, f) : f.ws === r.$S.u8 && (h = d.me(c, f));
- throw {
- wB: f,
- lka: h
- };
- });
- };
- a.prototype.VEb = function (a) {
- this.yEb(a) && this.Nma(this.Cmb(a.ga), a);
- };
- a.prototype.Nma = function (a, b) {
- var c;
- c = this;
- this.Hba();
- this.zha = this.ta.Dh(a, function () {
- c.Hba();
- c.oQ(D.pT.oO, b.ga, r.J.D5).then(function () {
- c.Nma(a, b);
- })["catch"](function (f) {
- var d;
- d = f.wB;
- (f = f.lka) && b.Wd(f);
- d.ws === r.$S.u8 && c.Nma(a, b);
- });
- });
- };
- a.prototype.jFb = function () {
- this.Hba();
- };
- a.prototype.yEb = function (a) {
- return a.state.value == A.qb.xd;
- };
- a.prototype.Hba = function () {
- this.zha && (this.zha.cancel(), this.zha = void 0);
- };
- a.prototype.Cmb = function (a) {
- return a.Oa.qga ? k.Jb(a.Oa.qga) : this.config.iLa;
- };
- b = a;
- return b = g.__decorate([n.N(), g.__param(0, n.l(m.w7)), g.__param(1, n.l(p.Bb)), g.__param(2, n.l(h.Qg)), g.__param(3, n.l(u.S6)), g.__param(4, n.l(f.tT)), g.__param(5, n.l(D.V6)), g.__param(6, n.l(t.Vk)), g.__param(7, n.l(J.Ii))], b);
- }
- ();
- b.nva = d;
- }, function (d, b, a) {
- var g,
- n,
- k,
- p,
- h,
- f,
- u,
- A,
- m,
- r,
- H;
- function c() {}
- function l() {}
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Wua = void 0;
- g = a(0);
- n = a(1);
- k = a(14);
- p = a(2);
- h = a(21);
- f = a(47);
- u = a(500);
- A = a(71);
- m = a(72);
- r = a(197);
- H = a(196);
- d = function () {
- var b;
- function a(a, b, d, h, k) {
- var l;
- l = this;
- this.is = a;
- this.Tj = b;
- this.config = d;
- this.Kx = h;
- this.Mxb = k;
- this.Us = function () {
- return new c().encode({
- version: l.version,
- data: l.BC
- });
- };
- this.bIb = function (a) {
- a = l.aIb(a);
- l.Mxb.Uq(a);
- return a;
- };
- this.aIb = function (a) {
- if (l.is.Xl(a))
- return l.eIb(a);
- if (void 0 != a.version && l.is.dg(a.version) && 1 == a.version)
- return l.fIb(a);
- if (void 0 != a.version && l.is.dg(a.version) && 2 == a.version)
- return new c().decode(a);
- if (a.version && l.is.dg(a.version))
- throw new f.Dc(p.J.pw, p.I.npa, void 0, void 0, void 0, "Version number is not supported. Version: " + a.version, void 0, a);
- throw new f.Dc(p.J.pw, p.I.iw, void 0, void 0, void 0, "The format of the playdata is inconsistent with what is expected.", void 0, a);
- };
- this.yp = new u.s5(2, this.config().oPa, "" !== this.config().oPa && 0 < this.config().wyb, this.Tj, this.Us);
- }
- a.prototype.jAb = function () {
- return this.yp.load(this.bIb)["catch"](function (a) {
- throw new f.Dc(p.J.pw, a.ha || a.Hb, void 0, void 0, void 0, "Unable to load persisted playdata.", void 0, a);
- });
- };
- a.prototype.E9a = function (a) {
- return this.yp.add(a);
- };
- a.prototype.HQa = function (a) {
- return this.yp.remove(a, function (a, b) {
- return a.fa === b.fa;
- });
- };
- a.prototype.Pna = function (a) {
- return this.yp.update(a, function (a, b) {
- return a.fa === b.fa;
- });
- };
- a.prototype.toString = function () {
- return JSON.stringify(this.Us(), null, " ");
- };
- a.prototype.LUa = function (a) {
- return a ? "/events?playbackContextId=" + a + "&esn=" + this.Kx().yh : "";
- };
- a.prototype.Rna = function (a) {
- return a.map(function (a) {
- return {
- md: a.downloadableId,
- duration: a.duration
- };
- });
- };
- a.prototype.MUa = function (a) {
- var b;
- return a ? {
- total: a.playTimes.total,
- nD: null !== (b = a.playTimes.totalContentTime) && void 0 !== b ? b : a.playTimes.total,
- audio: this.Rna(a.playTimes.audio || []),
- video: this.Rna(a.playTimes.video || []),
- text: this.Rna(a.playTimes.timedtext || [])
- }
- : {
- total: 0,
- nD: 0,
- audio: [],
- video: [],
- text: []
- };
- };
- a.prototype.eIb = function (a) {
- var b,
- c,
- d;
- b = this;
- a = JSON.parse(a);
- c = {
- type: "online",
- href: this.LUa(a.playbackContextId),
- fa: a.xid ? a.xid.toString() : "",
- u: a.movieId,
- position: a.position,
- BM: a.timestamp,
- rQ: a.playback ? 1E3 * a.playback.startEpoch : -1,
- nH: a.mediaId,
- yP: this.MUa(a.playback),
- eb: "",
- eo: {},
- profileId: a.accountKey
- };
- d = JSON.stringify({
- keySessionIds: a.keySessionIds,
- movieId: a.movieId,
- xid: a.xid,
- licenseContextId: a.licenseContextId,
- profileId: a.profileId
- });
- this.Tj.create().then(function (a) {
- a.save(b.config().hN, d, !1);
- });
- if ("" === c.href || "" === c.fa)
- throw new f.Dc(p.J.pw, p.I.iw);
- return {
- version: 2,
- data: [c]
- };
- };
- a.prototype.fIb = function (a) {
- var b;
- b = this;
- if (!a.playdata || !this.is.eu(a.playdata))
- throw new f.Dc(p.J.pw, p.I.iw, void 0, void 0, void 0, "The version 1 playdata is corrupted.", void 0, a);
- return {
- version: 2,
- data: function (a) {
- return a.map(function (a) {
- return {
- type: a.type,
- href: b.LUa(a.playbackContextId),
- fa: a.xid ? a.xid.toString() : "",
- u: a.movieId,
- position: a.position,
- BM: a.timestamp,
- rQ: a.playback ? 1E3 * a.playback.startEpoch : -1,
- nH: a.mediaId,
- yP: b.MUa(a.playback),
- eb: "",
- eo: {},
- profileId: a.profileId
- };
- });
- }
- (a.playdata)
- };
- };
- pa.Object.defineProperties(a.prototype, {
- version: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.yp.version;
- }
- },
- BC: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.yp.Lr;
- }
- }
- });
- b = a;
- return b = g.__decorate([n.N(), g.__param(0, n.l(h.ee)), g.__param(1, n.l(A.Wq)), g.__param(2, n.l(k.jd)), g.__param(3, n.l(m.ar)), g.__param(4, n.l(H.c7))], b);
- }
- ();
- b.Wua = d;
- l.prototype.encode = function (a) {
- var b;
- b = new r.sT();
- return a.map(b.encode);
- };
- l.prototype.decode = function (a) {
- var b;
- b = new r.sT();
- return a.map(b.decode);
- };
- c.prototype.encode = function (a) {
- return {
- version: a.version,
- data: new l().encode(a.data)
- };
- };
- c.prototype.decode = function (a) {
- return {
- version: a.version,
- data: new l().decode(a.data)
- };
- };
- }, function (d, b, a) {
- var l,
- g,
- n,
- k,
- p,
- h,
- f,
- u,
- A,
- m,
- r,
- H;
- function c(a) {
- return function () {
- return a.lb.get(l.d7).Db();
- };
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.BC = void 0;
- d = a(1);
- l = a(149);
- g = a(245);
- n = a(197);
- k = a(330);
- p = a(671);
- h = a(670);
- f = a(329);
- u = a(669);
- A = a(328);
- m = a(668);
- r = a(196);
- H = a(667);
- b.BC = new d.Ec(function (a) {
- a(f.w7).to(u.Jva).aa();
- a(g.tT).to(n.mva).aa();
- a(k.S6).to(p.Wua).aa();
- a(l.d7).to(h.nva).aa();
- a(l.iK).cR(c);
- a(A.V6).to(m.$ua).aa().AR();
- a(r.e7).to(H.ova).aa();
- a(r.b7).to(H.kva).aa();
- a(r.c7).to(H.lva).aa();
- });
- }, function (d, b, a) {
- var c,
- l,
- g,
- n,
- k,
- p,
- h;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Ysa = void 0;
- c = a(0);
- l = a(1);
- g = a(8);
- n = a(334);
- a(333);
- k = a(332);
- p = a(331);
- h = a(198);
- d = function () {
- var b;
- function a(a, b, c, f, d) {
- this.b9a = a;
- this.XAb = b;
- this.VQa = f;
- this.fRa = d;
- this.ja = c.yb("LicenseProviderImpl");
- }
- a.prototype.LA = function (a) {
- var b,
- c;
- b = this;
- c = this.VQa.QGb(a);
- return this.b9a.Uo(this.ja, a.Jj, c).then(function (a) {
- a.map(function (a) {
- return a.qsb;
- });
- return b.fRa.aUa(a);
- })["catch"](function (a) {
- b.ja.error("PBO license failed", a);
- return Promise.reject(a);
- });
- };
- a.prototype.release = function (a) {
- var b;
- b = this;
- a = this.VQa.TGb(a);
- return this.XAb.kf(this.ja, a).then(function (a) {
- return b.fRa.UGb(a);
- })["catch"](function (a) {
- b.ja.error("PBO release license failed", a);
- return Promise.reject(a);
- });
- };
- b = a;
- return b = c.__decorate([l.N(), c.__param(0, l.l(n.Q6)), c.__param(1, l.l(k.f7)), c.__param(2, l.l(g.Bb)), c.__param(3, l.l(p.X6)), c.__param(4, l.l(h.qT))], b);
- }
- ();
- b.Ysa = d;
- }, function (d, b, a) {
- var c,
- l,
- g,
- n,
- k,
- p,
- h,
- f,
- u;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Gqa = void 0;
- c = a(0);
- l = a(1);
- g = a(25);
- n = a(42);
- k = a(99);
- p = a(138);
- h = a(87);
- f = a(478);
- u = a(151);
- d = function () {
- var b;
- function a(a, b, c, f) {
- this.gd = a;
- this.ju = b;
- this.DIb = c;
- this.s_ = f;
- }
- a.prototype.Fg = function (a) {
- var b;
- b = this;
- return this.gd.Nr(a.Ph[0].data[0], [8, 4]) ? Promise.resolve({
- Yb: [{
- id: "ddd",
- qy: "cert",
- gH: void 0
- }
- ],
- zk: [{
- sessionId: "ddd",
- data: new Uint8Array(this.ju.decode(f.wya))
- }
- ]
- }) : this.gd.Nr(a.Ph[0].data[0], this.DIb.decode("certificate")) ? Promise.resolve({
- Yb: [{
- id: "ddd",
- qy: "cert",
- gH: void 0
- }
- ],
- zk: [{
- sessionId: "ddd",
- data: new Uint8Array(this.ju.decode(f.H4))
- }
- ]
- }) : this.s_.LA(this.ykb(a)).then(function (a) {
- return b.zkb(a);
- });
- };
- a.prototype.release = function (a) {
- var b;
- b = this;
- return this.s_.release(this.Ckb(a)).then(function (c) {
- return b.Dkb(c, a);
- });
- };
- a.prototype.ykb = function (a) {
- var b,
- c;
- b = this;
- c = a.Ph.map(function (a) {
- return a.data.map(function (c) {
- return {
- sessionId: a.sessionId,
- dataBase64: b.ju.encode(c)
- };
- });
- });
- return {
- fa: a.fa,
- pg: a.pg,
- uX: a.uX,
- Uh: h.Tha(a.Uh),
- Kn: p.Vm[a.Kn],
- Ph: c.reduce(function (a, b) {
- return a.concat(b);
- }, []),
- LO: a.LO,
- Jj: a.Jj
- };
- };
- a.prototype.Ckb = function (a) {
- var b;
- b = {};
- a.Ph && a.Yb[0].id && (b[a.Yb[0].id] = this.ju.encode(a.Ph[0]));
- return a && a.Ph ? {
- fa: a.fa,
- Yb: a.Yb,
- gQ: b
- }
- : {
- fa: a.fa,
- Yb: a.Yb
- };
- };
- a.prototype.zkb = function (a) {
- return {
- Yb: a.Yb,
- zk: a.zk
- };
- };
- a.prototype.Dkb = function (a, b) {
- return a && a.response && a.response.data && b.Yb[0].id && (a = a.response.data[b.Yb[0].id]) ? {
- response: this.ju.decode(a)
- }
- : {};
- };
- b = a;
- return b = c.__decorate([l.N(), c.__param(0, l.l(g.af)), c.__param(1, l.l(n.Gi)), c.__param(2, l.l(k.Lw)), c.__param(3, l.l(u.TD))], b);
- }
- ();
- b.Gqa = d;
- }, function (d, b, a) {
- var c,
- l,
- g,
- n;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.SPa = void 0;
- d = a(1);
- c = a(480);
- l = a(674);
- g = a(151);
- n = a(673);
- b.SPa = new d.Ec(function (a) {
- a(c.p4).to(l.Gqa).aa();
- a(g.TD).to(n.Ysa).aa();
- });
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Btb = b.bMa = b.ztb = void 0;
- b.ztb = function (a) {
- return a;
- };
- b.bMa = function (a) {
- return a;
- };
- b.Btb = function (a) {
- return Object.assign({}, a);
- };
- }, function (d, b, a) {
- var c,
- l,
- g,
- n,
- k,
- p,
- h,
- f,
- u;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Xra = void 0;
- c = a(0);
- l = a(54);
- g = a(676);
- n = a(48);
- k = a(29);
- p = a(39);
- h = a(1);
- f = a(338);
- u = a(3);
- d = function () {
- var b,
- d;
- function a(a, b, c) {
- this.Ga = a;
- this.rJb = b;
- this.performance = c;
- l.wm(this, "performance");
- }
- a.prototype.get = function (a, c, f) {
- var d;
- d = this;
- return new Promise(function (h, k) {
- var l,
- p,
- g;
- try {
- l = d.rJb.create();
- "withCredentials" in l || k(Error("Missing CORS support"));
- l.open("GET", a, !0);
- c && (l.withCredentials = !0);
- f && (l.timeout = f.ca(u.ia));
- p = d.Ga.jf;
- g = void 0;
- l.onreadystatechange = function () {
- var c;
- switch (l.readyState) {
- case XMLHttpRequest.HEADERS_RECEIVED:
- g = d.Ga.jf.Nb(p);
- break;
- case XMLHttpRequest.DONE:
- c = d.Ga.jf.Nb(p),
- c = {
- body: l.responseText,
- status: l.status,
- headers: b.sxb(l.getAllResponseHeaders()),
- sd: d.Qmb(a, n.ba(l.responseText.length), c, g)
- };
- h(c);
- }
- };
- l.send();
- } catch (U) {
- k(U);
- }
- });
- };
- a.sxb = function (a) {
- var b,
- f,
- d;
- b = {};
- a = a.split("\r\n");
- for (var c = 0; c < a.length; c++) {
- f = a[c];
- d = f.indexOf(": ");
- 0 < d && (b[f.substring(0, d).toLowerCase()] = f.substring(d + 2));
- }
- return b;
- };
- a.prototype.Qmb = function (a, b, c, f) {
- b = {
- size: b,
- duration: c,
- ona: f
- };
- if (!this.performance || !this.performance.getEntriesByName)
- return b;
- c = this.performance.getEntriesByName(a);
- if (0 == c.length && (c = this.performance.getEntriesByName(a + "/"), 0 == c.length))
- return b;
- a = c[c.length - 1];
- b = g.bMa(b);
- a.wgb && (b.size = n.ba(a.wgb));
- 0 < a.duration ? b.duration = u.timestamp(a.duration) : 0 < a.startTime && 0 < a.responseEnd && (b.duration = u.timestamp(a.responseEnd - a.startTime));
- 0 < a.requestStart && (b.HFa = u.timestamp(a.domainLookupEnd - a.domainLookupStart), b.hna = u.timestamp(a.connectEnd - a.connectStart), b.ona = u.timestamp(a.responseStart - a.startTime), 0 === a.secureConnectionStart ? b.sna = u.timestamp(0) : void 0 !== a.secureConnectionStart && (c = a.connectEnd - a.secureConnectionStart, b.sna = u.timestamp(c), b.hna = u.timestamp(a.connectEnd - a.connectStart - c)));
- return b;
- };
- d = b = a;
- return d = b = c.__decorate([h.N(), c.__param(0, h.l(p.Ii)), c.__param(1, h.l(f.G8)), c.__param(2, h.l(k.uT)), c.__param(2, h.optional())], d);
- }
- ();
- b.Xra = d;
- }, function (d, b, a) {
- var c,
- l,
- g,
- n,
- k,
- p;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.xra = void 0;
- c = a(0);
- l = a(1);
- g = a(54);
- n = a(29);
- k = a(3);
- p = a(21);
- d = function () {
- var b;
- function a(a, b) {
- this.is = a;
- this.json = b;
- g.wm(this, "json");
- }
- a.prototype.parse = function (a) {
- var c;
- a = this.json.parse(a);
- if (!this.is.baa(a))
- throw Error("FtlProbe: param: not an object");
- if (a.next && !this.is.OL(a.next))
- throw Error("FtlProbe: param.next: not a positive integer");
- if (!this.is.OL(a.pulses))
- throw Error("FtlProbe: param.pulses: not a positive integer");
- if (a.pulse_delays && !this.is.eu(a.pulse_delays))
- throw Error("FtlProbe: param.pulse_delays: not an array");
- if (!this.is.OL(a.pulse_timeout))
- throw Error("FtlProbe: param.pulse_timeout: not a positive integer");
- if (!this.is.eu(a.urls))
- throw Error("FtlProbe: param.urls: not an array");
- if (!this.is.Xl(a.logblob))
- throw Error("FtlProbe: param.logblob: not a string");
- if (!this.is.OA(a.ctx))
- throw Error("FtlProbe: param.ctx: not an object");
- for (var b = 0; b < a.urls.length; ++b) {
- c = a.urls[b];
- if (!this.is.baa(c))
- throw Error("FtlProbe: param.urls[" + b + "]: not an object");
- if (!this.is.wn(c.name))
- throw Error("FtlProbe: param.urls[" + b + "].name: not a string");
- if (!this.is.wn(c.url))
- throw Error("FtlProbe: param.urls[" + b + "].url: not a string");
- }
- return {
- Qzb: a.pulses,
- VPa: a.pulse_delays ? a.pulse_delays.map(k.Jb) : [],
- Pzb: k.Jb(a.pulse_timeout),
- hLa: a.next ? k.Jb(a.next) : void 0,
- se: a.urls,
- fia: a.logblob,
- context: a.ctx
- };
- };
- b = a;
- return b = c.__decorate([l.N(), c.__param(0, l.l(p.ee)), c.__param(1, l.l(n.rw))], b);
- }
- ();
- b.xra = d;
- }, function (d, b, a) {
- var c,
- l,
- g,
- n,
- k,
- p;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.twa = void 0;
- c = a(0);
- l = a(1);
- g = a(48);
- n = a(3);
- k = a(46);
- p = a(62);
- d = function () {
- var b,
- d;
- function a(a, b) {
- this.Vh = a;
- this.jC = b;
- }
- a.prototype.WP = function (a) {
- a = this.jC.Fn("ftlProbeError", "info", b.lJb({
- url: a.url,
- sc: a.status,
- pf_err: a.fka
- }, a));
- this.Vh.Lc(a);
- };
- a.lJb = function (a, c) {
- c.sd && (c = c.sd, b.Dr(a, "d", c.duration), b.Dr(a, "dns", c.HFa), b.Dr(a, "tcp", c.hna), b.Dr(a, "tls", c.sna), b.Dr(a, "ttfb", c.ona), a.sz = c.size.ca(g.Zq));
- return a;
- };
- a.Dr = function (a, b, c) {
- c && (a[b] = c.ca(n.ia));
- return a;
- };
- d = b = a;
- return d = b = c.__decorate([l.N(), c.__param(0, l.l(k.$j)), c.__param(1, l.l(p.no))], d);
- }
- ();
- b.twa = d;
- }, function (d, b, a) {
- var c,
- l,
- g,
- n,
- k,
- p;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.uwa = void 0;
- c = a(0);
- l = a(1);
- g = a(48);
- n = a(3);
- k = a(46);
- p = a(62);
- d = function () {
- var b,
- d;
- function a(a, b) {
- this.Vh = a;
- this.jC = b;
- }
- a.prototype.WP = function (a) {
- a = this.jC.Fn(a.fia, "info", {
- ctx: a.context,
- data: a.data.map(function (a) {
- return {
- name: a.name,
- url: a.url,
- data: a.data.map(function (a) {
- return b.mJb({
- d: a.sd.duration.ca(n.ia),
- sc: a.status,
- sz: a.sd.size.ca(g.Zq),
- via: a.OIb,
- cip: a.jcb,
- err: a.wB
- }, a);
- })
- };
- })
- });
- this.Vh.Lc(a);
- };
- a.mJb = function (a, c) {
- b.Dr(a, "dns", c.sd.HFa);
- b.Dr(a, "tcp", c.sd.hna);
- b.Dr(a, "tls", c.sd.sna);
- b.Dr(a, "ttfb", c.sd.ona);
- return a;
- };
- a.Dr = function (a, b, c) {
- c && (a[b] = c.ca(n.ia));
- return a;
- };
- d = b = a;
- return d = b = c.__decorate([l.N(), c.__param(0, l.l(k.$j)), c.__param(1, l.l(p.no))], d);
- }
- ();
- b.uwa = d;
- }, function (d, b, a) {
- var c,
- l,
- g,
- n,
- k,
- p,
- h,
- f;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.zra = void 0;
- c = a(0);
- l = a(1);
- g = a(3);
- n = a(36);
- k = a(8);
- p = a(336);
- h = a(335);
- f = a(177);
- d = function () {
- var b,
- d;
- function a(a, b, c, f, d, h, k) {
- this.config = a;
- this.YJa = b;
- this.ta = c;
- this.og = f;
- this.zBb = d;
- this.kla = h;
- this.Irb = 0;
- this.ja = k.yb("FTL");
- }
- a.prototype.start = function () {
- this.config.enabled && !this.sp && (this.sp = this.ta.Dh(this.config.KSa, this.kI.bind(this)));
- };
- a.prototype.stop = function () {
- this.sp && (this.sp.cancel(), this.sp = void 0);
- };
- a.prototype.kI = function () {
- var a,
- b;
- a = this;
- b = "" + this.config.endpoint + (-1 === this.config.endpoint.indexOf("?") ? "?" : "&") + "iter=" + this.Irb++;
- this.eob(b).then(function (b) {
- return Promise.all(b.se.map(function (c) {
- return a.cpb(b, c.url, c.name);
- })).then(function (c) {
- 0 < c.length && a.zBb.WP({
- data: c,
- context: b.context,
- fia: b.fia
- });
- }).then(function () {
- return b;
- });
- }).then(function (b) {
- a.sp && (b.hLa ? a.sp = a.ta.Dh(b.hLa, a.kI.bind(a)) : a.stop());
- })["catch"](function (b) {
- return a.ja.error("FTL run failed", b);
- });
- };
- a.prototype.eob = function (a) {
- var b;
- b = this;
- return this.YJa.get(a, !1).then(function (c) {
- var f;
- if (200 != c.status || null == c.body)
- return b.kla.WP({
- url: a,
- status: c.status,
- fka: "FTL API request failed",
- sd: c.sd
- }), Promise.reject(Error("FTL API request failed: " + c.status));
- f = b.og.parse(c.body);
- return f instanceof Error ? (b.kla.WP({
- url: a,
- status: 4,
- fka: "FTL Probe API JSON parsing error",
- sd: c.sd
- }), Promise.reject(f)) : Promise.resolve(f);
- })["catch"](function (c) {
- c instanceof Error && (b.kla.WP({
- url: a,
- status: 0,
- fka: c.message
- }), b.ja.error("FTL API call failed", c.message));
- return Promise.reject(c);
- });
- };
- a.prototype.cpb = function (a, c, f) {
- var d;
- d = this;
- return new Promise(function (h, k) {
- var m;
- for (var l, p, n, u = [], q = {}, A = 0; A < a.Qzb; q = {
- pl: q.pl,
- Mka: q.Mka
- }, ++A) {
- q.pl = A < a.VPa.length ? a.VPa[A] : g.wd;
- q.Mka = "" + c + (-1 === c.indexOf("?") ? "?" : "&") + "pulse=" + (A + 1);
- m = function (c) {
- return function () {
- return new Promise(function (f, h) {
- d.ta.Dh(c.pl, function () {
- b.vzb(d.YJa, c.Mka, a.Pzb).then(function (a) {
- function b(a, b, c) {
- a || (a = c.headers[b]);
- return a;
- }
- l = b(l, "via", a);
- p = b(p, "x-ftl-probe-data", a);
- n = b(n, "x-ftl-error", a);
- f({
- status: a.status,
- sd: a.sd,
- OIb: l || "",
- jcb: p || "",
- wB: n || ""
- });
- })["catch"](function (a) {
- h(a);
- });
- });
- });
- };
- }
- (q);
- u.push(0 < A ? u[A - 1].then(m) : m());
- }
- Promise.all(u).then(function (a) {
- h({
- url: c,
- name: f,
- data: a
- });
- })["catch"](function (a) {
- k(a);
- });
- });
- };
- a.vzb = function (a, b, c) {
- return a.get(b, !1, c).then(function (a) {
- return Object.assign({}, a);
- });
- };
- d = b = a;
- return d = b = c.__decorate([l.N(), c.__param(0, l.l(f.L4)), c.__param(1, l.l(h.m5)), c.__param(2, l.l(n.Qg)), c.__param(3, l.l(p.K4)), c.__param(4, l.l(f.M7)), c.__param(5, l.l(f.L7)), c.__param(6, l.l(k.Bb))], d);
- }
- ();
- b.zra = d;
- }, function (d, b, a) {
- var c,
- l,
- g,
- n,
- k,
- p,
- h,
- f;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.qHa = void 0;
- d = a(1);
- c = a(681);
- l = a(680);
- g = a(679);
- n = a(678);
- k = a(677);
- p = a(336);
- h = a(335);
- f = a(177);
- b.qHa = new d.Ec(function (a) {
- a(f.M4).to(c.zra).aa();
- a(f.M7).to(l.uwa).aa();
- a(f.L7).to(g.twa).aa();
- a(p.K4).to(n.xra).aa();
- a(h.m5).to(k.Xra).aa();
- });
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- d = function () {
- function a(a) {
- this.Fr = a;
- }
- a.prototype.hP = function () {
- var a,
- b,
- d;
- a = this.Fr.zmb();
- b = this.Fr.Amb();
- d = this.Fr.Bmb();
- if ("number" === typeof a && "number" === typeof b && "number" === typeof d)
- return (d - a) / b;
- };
- return a;
- }
- ();
- b.P0a = d;
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- d = function () {
- function a(a, b) {
- this.Fr = a;
- this.hP = b;
- }
- a.prototype.lma = function (a) {
- return this.Fr.lma(a);
- };
- a.prototype.qm = function () {
- return this.Fr.qm();
- };
- a.prototype.anb = function () {
- return this.hP.hP();
- };
- return a;
- }
- ();
- b.O0a = d;
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- d = function () {
- function a(a) {
- this.FLa = a;
- }
- a.prototype.lma = function (a) {
- try {
- this.FLa.setItem("gtp", JSON.stringify(a));
- } catch (l) {
- return !1;
- }
- return !0;
- };
- a.prototype.lIa = function () {
- var a;
- try {
- a = this.FLa.getItem("gtp");
- if (a)
- return JSON.parse(a);
- } catch (l) {}
- };
- a.prototype.qm = function () {
- var a;
- a = this.lIa();
- if (a && a.tp)
- return a.tp.a;
- };
- a.prototype.zmb = function () {
- var a;
- a = this.kfa();
- if (a)
- return a.p25;
- };
- a.prototype.Amb = function () {
- var a;
- a = this.kfa();
- if (a)
- return a.p50;
- };
- a.prototype.Bmb = function () {
- var a;
- a = this.kfa();
- if (a)
- return a.p75;
- };
- a.prototype.kfa = function () {
- var a;
- a = this.lIa();
- if (a && (a = a.iqr))
- return a;
- };
- return a;
- }
- ();
- b.k3 = d;
- }, function (d, b, a) {
- var c,
- l,
- g;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- c = a(685);
- l = a(684);
- g = a(683);
- b["default"] = function (a) {
- var b;
- a = new c.k3(a);
- b = new g.P0a(a);
- return new l.O0a(a, b);
- };
- }, function (d, b, a) {
- var c,
- l,
- g,
- n,
- k;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.pua = void 0;
- c = a(0);
- l = a(498);
- g = a(1);
- n = a(170);
- k = a(337);
- d = function () {
- var b;
- function a(a, b, c) {
- this.config = a;
- this.atb = b;
- this.ub = c;
- }
- a.prototype.mca = function () {
- if (this.config.RUa)
- return this.ub(this.atb());
- };
- b = a;
- return b = c.__decorate([g.N(), c.__param(0, g.l(l.x6)), c.__param(1, g.l(n.w6)), c.__param(2, g.l(k.y6))], b);
- }
- ();
- b.pua = d;
- }, function (d, b, a) {
- var c,
- l;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Bya = void 0;
- c = a(0);
- l = a(1);
- d = function () {
- var b;
- function a() {}
- a.prototype.create = function () {
- return new XMLHttpRequest();
- };
- b = a;
- return b = c.__decorate([l.N()], b);
- }
- ();
- b.Bya = d;
- }, function (d, b, a) {
- var c,
- l,
- g,
- n,
- k,
- p,
- h;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.qNa = void 0;
- d = a(1);
- c = a(688);
- l = a(93);
- g = a(338);
- n = a(687);
- k = a(199);
- p = a(337);
- h = a(686);
- b.qNa = new d.Ec(function (a) {
- a(g.G8).to(c.Bya).aa();
- a(l.vw).iz(function () {
- return t._cad_global.http;
- });
- a(k.$J).to(n.pua).aa();
- a(p.y6).bi(h["default"]);
- });
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.qMa = void 0;
- b.qMa = function (a, b) {
- var k,
- p;
- if (0 !== a.length) {
- if (1 === a.length)
- return a[0];
- for (var c = a[0], d = b(c), g = 1; g < a.length; g++) {
- k = a[g];
- p = b(k);
- p > d && (c = k, d = p);
- }
- return c;
- }
- };
- }, function (d, b, a) {
- var l;
- function c(a, b, c) {
- a = l.jS.call(this, a, b) || this;
- a.Dx = c;
- return a;
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Fpa = void 0;
- l = a(342);
- da(c, l.jS);
- b.Fpa = c;
- }, function (d, b, a) {
- var c,
- l,
- g,
- n,
- k,
- p,
- h,
- f,
- u,
- A,
- m,
- r,
- H,
- D,
- K,
- t,
- R,
- P,
- ba,
- z,
- T,
- U;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.jta = void 0;
- c = a(0);
- l = a(244);
- g = a(451);
- n = a(46);
- k = a(25);
- p = a(443);
- h = a(240);
- f = a(94);
- u = a(1);
- A = a(343);
- m = a(341);
- r = a(93);
- H = a(14);
- D = a(39);
- K = a(24);
- t = a(33);
- R = a(62);
- P = a(103);
- ba = a(124);
- z = a(29);
- T = a(30);
- U = a(340);
- d = function () {
- var b;
- function a(a, b, c, f, d, h, k, l, p, g, n, u, q, A, m, r, G, C, D) {
- this.ETa = a;
- this.AW = b;
- this.Vh = c;
- this.Tia = f;
- this.Wda = d;
- this.Lj = h;
- this.Wc = k;
- this.tX = l;
- this.We = p;
- this.config = g;
- this.Cc = n;
- this.Ga = u;
- this.qa = q;
- this.platform = A;
- this.Bm = m;
- this.AO = r;
- this.Mj = G;
- this.iq = C;
- this.P_ = D;
- }
- a.prototype.create = function (a, b, c) {
- return new A.kta(a, b, c, this.ETa, this.AW, this.Vh, this.Tia, this.Wda, this.Lj, this.Wc, this.tX, this.We, this.config, this.Cc, this.Ga, this.qa, this.platform, this.Bm, this.AO, this.Mj, this.iq, this.P_);
- };
- b = a;
- return b = c.__decorate([u.N(), c.__param(0, u.l(l.VT)), c.__param(1, u.l(g.N3)), c.__param(2, u.l(n.$j)), c.__param(3, u.l(p.c6)), c.__param(4, u.l(h.F4)), c.__param(5, u.l(f.Ew)), c.__param(6, u.l(k.af)), c.__param(7, u.l(m.m4)), c.__param(8, u.l(r.vw)), c.__param(9, u.l(H.jd)), c.__param(10, u.l(P.eA)), c.__param(11, u.l(D.Ii)), c.__param(12, u.l(K.Oe)), c.__param(13, u.l(t.dk)), c.__param(14, u.l(z.jE)), c.__param(15, u.l(R.no)), c.__param(16, u.l(ba.mE)), c.__param(17, u.l(T.Yj)), c.__param(18, u.l(U.o6))], b);
- }
- ();
- b.jta = d;
- }, function (d, b, a) {
- var c,
- l,
- g,
- n;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.hta = void 0;
- c = a(0);
- l = a(1);
- g = a(48);
- n = a(72);
- d = function () {
- var b;
- function a(a) {
- this.xh = a;
- }
- a.prototype.itb = function () {
- var a;
- a = this.xh() ? this.xh().yh.length : 40;
- return g.ba(a + 33);
- };
- b = a;
- return b = c.__decorate([l.N(), c.__param(0, l.l(n.ar))], b);
- }
- ();
- b.hta = d;
- }, function (d, b, a) {
- var l,
- g,
- n,
- k,
- p,
- h,
- f,
- u,
- A,
- m;
- function c(a, b, c, f, d, h, k, l, g, n) {
- this.platform = b;
- this.xca = c;
- this.type = f;
- this.severity = d;
- this.timestamp = h;
- this.data = k;
- this.qa = l;
- this.data.type = f;
- this.data.sev = d;
- this.data.devmod = this.platform.Xca;
- this.data.clver = this.platform.version;
- a && a.Wg && (a.Wg.os && (this.data.osplatform = a.Wg.os.name, this.data.osver = a.Wg.os.version), this.data.browsername = a.Wg.name, this.data.browserver = a.Wg.version);
- a.rha && (this.data.tester = !0);
- a.gy && !this.data.groupname && (this.data.groupname = a.gy);
- a.HF && (this.data.groupname = this.data.groupname ? this.data.groupname + "|" + a.HF : a.HF);
- a.qD && (this.data.uigroupname = a.qD);
- this.data.uigroupname && (this.data.groupname = this.data.groupname ? this.data.groupname + ("|" + this.data.uigroupname) : this.data.uigroupname);
- this.data.appLogSeqNum = this.qa.Hmb();
- this.data.uniqueLogId = g.vHa();
- this.data.appId = this.qa.id;
- n && (a = this.qa.$b(), this.data.soffms = a.Nb(n.Ik).ca(p.ia), this.data.mid = this.data.mid || n.u, this.data.lvpi = n.eia, this.data.uiLabel = n.re, f = "startup" === f ? "playbackxid" : "xid", this.data[f] = "xid" === f && this.data.xid || n.fa, n.TC && (f = n.TC, (n = n.TC.split(".")) && 1 < n.length && "S" !== n[0][0] && (f = "SABTest" + n[0] + ".Cell" + n[1]), this.data.groupname = this.data.groupname ? this.data.groupname + "|" + f : f));
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.gta = void 0;
- l = a(0);
- g = a(48);
- n = a(1);
- k = a(39);
- p = a(3);
- h = a(469);
- f = a(30);
- u = a(24);
- A = a(346);
- m = a(33);
- d = function () {
- var b;
- function a(a, b, c, f, d, h) {
- this.Ga = a;
- this.xca = b;
- this.config = c;
- this.qa = f;
- this.FIb = d;
- this.platform = h;
- }
- a.prototype.Fn = function (a, b, f, d) {
- return new c(this.config, this.platform, this.xca, a, b, this.Ga.jf, f, this.qa, this.FIb, d);
- };
- b = a;
- return b = l.__decorate([n.N(), l.__param(0, n.l(k.Ii)), l.__param(1, n.l(h.U3)), l.__param(2, n.l(f.Yj)), l.__param(3, n.l(u.Oe)), l.__param(4, n.l(A.x8)), l.__param(5, n.l(m.dk))], b);
- }
- ();
- b.gta = d;
- pa.Object.defineProperties(c.prototype, {
- size: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- this.tDa || (this.tDa = g.ba(this.xca.encode(this.data).length));
- return this.tDa;
- }
- }
- });
- }, function (d, b, a) {
- var c,
- l,
- g,
- n,
- k,
- p,
- h,
- f;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.ata = void 0;
- c = a(0);
- l = a(48);
- g = a(3);
- n = a(1);
- k = a(14);
- p = a(41);
- h = a(40);
- f = a(28);
- d = function () {
- var b;
- function a(a, b) {
- a = h.fe.call(this, a, "PboConfigImpl") || this;
- a.config = b;
- a.Xtb = l.ba(5E5);
- a.$Cb = g.aP(1);
- a.wMa = l.ba(1E6);
- return a;
- }
- da(a, h.fe);
- pa.Object.defineProperties(a.prototype, {
- laa: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.config().laa;
- }
- },
- uSa: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return [];
- }
- },
- tSa: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return ["MslTransport", "Pbo", "LogblobSender"];
- }
- }
- });
- b = a;
- c.__decorate([p.config(p.object(), "shedLogblobTypes")], b.prototype, "uSa", null);
- c.__decorate([p.config(p.zn("string"), "shedDebugTypes")], b.prototype, "tSa", null);
- return b = c.__decorate([n.N(), c.__param(0, n.l(f.Li)), c.__param(1, n.l(k.jd))], b);
- }
- ();
- b.ata = d;
- }, function (d, b, a) {
- var c,
- l,
- g,
- n;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.ita = void 0;
- c = a(0);
- l = a(1);
- g = a(200);
- n = a(48);
- d = function () {
- var b;
- function a(a) {
- this.config = a;
- }
- a.prototype.measure = function (a) {
- var b;
- b = this;
- return a.map(function (a) {
- return a.size.add(b.config.itb());
- }).reduce(function (a, b) {
- return a.add(b);
- }, n.ba(0));
- };
- b = a;
- return b = c.__decorate([l.N(), c.__param(0, l.l(g.P5))], b);
- }
- ();
- b.ita = d;
- }, function (d, b, a) {
- var l,
- g,
- n,
- k,
- p,
- h,
- f,
- u,
- A,
- m,
- r,
- H;
- function c() {
- this.entries = [];
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.lta = void 0;
- l = a(0);
- g = a(1);
- n = a(54);
- k = a(29);
- p = a(3);
- h = a(25);
- f = a(24);
- u = a(33);
- A = a(72);
- m = a(8);
- r = a(347);
- H = a(94);
- d = function () {
- var b;
- function a(a, b, c, f, d, h, k, l) {
- this.qa = a;
- this.platform = c;
- this.xh = f;
- this.json = d;
- this.gd = h;
- this.Lj = k;
- this.ptb = l;
- n.wm(this, "json");
- this.ja = b.yb("LogblobSender");
- }
- a.prototype.send = function (a) {
- var b;
- b = this;
- return new Promise(function (f, d) {
- var h;
- try {
- h = a.reduce(function (a, c) {
- a.entries.push(b.ufb(c));
- return a;
- }, new c());
- f(b.Kkb(h));
- } catch (T) {
- b.ja.error(T.message);
- d(T);
- }
- }).then(function (a) {
- return b.ema(a);
- });
- };
- a.prototype.ufb = function (a) {
- return this.gd.kC(this.gd.kC({}, a.data), {
- esn: this.xh().yh,
- sev: a.severity,
- type: a.type,
- lver: this.platform.otb,
- jssid: this.qa.id,
- devmod: this.platform.Xca,
- jsoffms: a.timestamp.Nb(this.qa.$B).ca(p.ia),
- clienttime: a.timestamp.ca(p.ia),
- client_utc: a.timestamp.ca(p.Pl),
- uiver: this.Lj.iR
- });
- };
- a.prototype.Kkb = function (a) {
- var b;
- b = this;
- try {
- return this.json.stringify(a);
- } catch (z) {
- for (var c = {}, f = 0; f < a.entries.length; c = {
- JQ: c.JQ,
- ve: c.ve
- }, ++f) {
- c.ve = Object.assign({}, a.entries[f]);
- try {
- this.json.stringify(c.ve);
- } catch (T) {
- c.JQ = void 0;
- this.gd.Ju(c.ve, function (a) {
- return function (c, f) {
- try {
- b.json.stringify(f);
- } catch (V) {
- a.JQ = V.message;
- a.ve[c] = a.JQ;
- }
- };
- }
- (c));
- c.ve.stringifyException = c.JQ;
- c.ve.originalType = c.ve.type;
- c.ve.type = "debug";
- c.ve.sev = "error";
- }
- }
- return this.json.stringify(a);
- }
- };
- a.prototype.ema = function (a) {
- var b;
- b = this;
- return this.ptb.kf(this.ja, {
- logblobs: a
- }).then(function () {})["catch"](function (a) {
- b.ja.error("PBO logblob failed", a);
- return Promise.reject(a);
- });
- };
- b = a;
- return b = l.__decorate([g.N(), l.__param(0, g.l(f.Oe)), l.__param(1, g.l(m.Bb)), l.__param(2, g.l(u.dk)), l.__param(3, g.l(A.ar)), l.__param(4, g.l(k.rw)), l.__param(5, g.l(h.af)), l.__param(6, g.l(H.Ew)), l.__param(7, g.l(r.a7))], b);
- }
- ();
- b.lta = d;
- }, function (d, b, a) {
- var l,
- g,
- n,
- k,
- p,
- h,
- f,
- u;
- function c(a) {
- this.hF = k.wd;
- this.Y9 = [];
- this.gL = this.QU = !1;
- this.Nya = 0;
- a && (this.hF = a.size, this.Y9 = a.ss, a instanceof c && (this.Nya = a.S$a + 1));
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.cua = void 0;
- l = a(0);
- g = a(1);
- n = a(54);
- k = a(48);
- p = a(200);
- h = a(8);
- f = a(29);
- u = a(46);
- d = function () {
- var b;
- function a(a, b, c, f) {
- this.Cub = a;
- this.config = b;
- this.Hf = c;
- this.json = f;
- n.wm(this, "json");
- this.ja = this.Hf.yb("MessageQueue");
- this.Up = [];
- }
- a.prototype.naa = function (a) {
- var b,
- c;
- 0 === this.Up.length && this.Up.push(this.bfa());
- if (a = this.Inb(a)) {
- b = this.Cub.measure([a]);
- c = this.Up[this.Up.length - 1];
- 0 < c.size.add(b).nl(this.config.wMa) && (c = this.bfa(), this.Up.push(c));
- c.naa(a);
- }
- };
- a.prototype.jlb = function () {
- var a;
- a = this.Up.filter(function (a) {
- return a.Fbb;
- });
- this.Up.push(this.bfa());
- a.forEach(function (a) {
- return a.Otb();
- });
- return a;
- };
- a.prototype.h9a = function (a) {
- a.av || this.Up.unshift(new c(a));
- };
- a.prototype.bBb = function (a) {
- a = this.Up.indexOf(a);
- 0 <= a && this.Up.splice(a, 1);
- };
- a.prototype.Inb = function (a) {
- try {
- return {
- data: this.json.parse(this.json.stringify(a.data)),
- severity: a.severity,
- size: a.size,
- timestamp: a.timestamp,
- type: a.type
- };
- } catch (K) {
- var b,
- c;
- b = {};
- c = a.data.debugMessage;
- c && "string" === typeof c && (b.originalDebugMessage = c);
- (a = a.data.debugCategory) && "string" === typeof a && (b.originalDebugCategory = a);
- this.ja.error("JSON.stringify error: " + K.message, b);
- }
- };
- a.prototype.bfa = function () {
- return new c();
- };
- pa.Object.defineProperties(a.prototype, {
- size: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.Up.reduce(function (a, b) {
- return a.add(b.size);
- }, k.wd);
- }
- }
- });
- b = a;
- return b = l.__decorate([g.N(), l.__param(0, g.l(p.Q5)), l.__param(1, g.l(u.US)), l.__param(2, g.l(h.Bb)), l.__param(3, g.l(f.rw))], b);
- }
- ();
- b.cua = d;
- c.prototype.Yma = function () {
- this.QU = !1;
- this.gL = !0;
- };
- c.prototype.Tx = function () {
- this.QU = !1;
- };
- c.prototype.naa = function (a) {
- this.Y9.push(a);
- this.hF = this.hF.add(a.size);
- };
- c.prototype.Otb = function () {
- this.QU = !0;
- };
- pa.Object.defineProperties(c.prototype, {
- S$a: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.Nya;
- }
- },
- size: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.hF;
- }
- },
- ss: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.Y9;
- }
- },
- Fbb: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return 0 < this.ss.length && !1 === this.QU;
- }
- },
- av: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.gL;
- }
- }
- });
- }, function (d, b, a) {
- var c,
- l,
- g,
- n,
- k,
- p,
- h,
- f,
- u,
- A,
- m,
- r;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.bta = void 0;
- c = a(0);
- l = a(1);
- g = a(54);
- n = a(29);
- k = a(350);
- p = a(36);
- h = a(8);
- f = a(46);
- u = a(349);
- A = a(2);
- m = a(68);
- a(153);
- r = a(348);
- d = function () {
- var b;
- function a(a, b, c, f, d, h, k) {
- this.config = a;
- this.json = b;
- this.ta = c;
- this.etb = f;
- this.QO = h;
- this.aX = k;
- this.XZ = this.$o = !1;
- this.listeners = [];
- g.wm(this, "json");
- this.ja = d.yb("LogBatcher");
- }
- a.prototype.Db = function () {
- this.$o = !0;
- };
- a.prototype.Lc = function (a) {
- var b;
- b = this;
- this.AEb(a) || (0 < a.size.nl(this.config.Xtb) ? this.ja.error("Logblob is too large, dropping from the queue", {
- logblobType: a.type,
- logblobSize: a.size.toString()
- }) : (this.listeners.forEach(function (b) {
- return b.Bub(a);
- }), this.QO.naa(a), this.ta.Mc(function () {
- b.$jb();
- })));
- };
- a.prototype.flush = function (a) {
- var b;
- a = void 0 === a ? !1 : a;
- b = this;
- return this.XZ ? (this.ja.trace("LogBatcher is in error state, ignoring flush"), Promise.reject()) : new Promise(function (c, f) {
- b.ja.trace("Flushing", h.zJ);
- b.Ci();
- b.ta.Mc(function () {
- b.bma(a).then(function () {
- c();
- })["catch"](function (a) {
- f(a);
- });
- });
- });
- };
- a.prototype.addListener = function (a) {
- this.listeners.push(a);
- };
- a.prototype.removeListener = function (a) {
- a = this.listeners.indexOf(a);
- 0 <= a && this.listeners.splice(a, 1);
- };
- a.prototype.bma = function (a) {
- var b,
- c;
- a = void 0 === a ? !1 : a;
- b = this;
- if (!this.$o)
- return this.ja.trace("LogBatcher is not initialized"), Promise.resolve();
- if (this.XZ)
- return this.ja.trace("LogBatcher is in error state, ignoring sendLogMessages"), Promise.resolve();
- c = this.QO.jlb();
- if (0 === c.length && !a)
- return this.ja.trace("No logblobs to send"), Promise.resolve();
- this.Ci();
- this.listeners.forEach(function () {});
- a = Promise.resolve();
- for (var f = {}, d = S(c), h = d.next(); !h.done; f = {
- $aa: f.$aa
- }, h = d.next())
- f.$aa = h.value, a = a.then(function (a) {
- return function () {
- return b.ZCb(a.$aa);
- };
- }
- (f));
- return a.then(function () {
- return b.uB();
- })["catch"](function (a) {
- c.filter(function (a) {
- return !a.av;
- }).forEach(function (a) {
- return a.Tx();
- });
- b.uB();
- throw Error("Send failure. " + a);
- });
- };
- a.prototype.ZCb = function (a) {
- var b;
- b = this;
- this.ja.trace("Sending batch: " + a.size, h.zJ);
- return Promise.resolve(this.QO.bBb(a)).then(function () {
- return b.etb.send(a.ss);
- }).then(function () {
- return a.Yma();
- })["catch"](function (c) {
- b.ja.warn("Failed to send batch of logblobs.", c, h.zJ);
- a.Tx();
- b.qEb(c) && b.QO.h9a(a);
- b.BEb(c) && (b.XZ = !0);
- throw c;
- });
- };
- a.prototype.qEb = function (a) {
- return a.qd === A.OS.Sua ? !1 : this.config.laa;
- };
- a.prototype.BEb = function (a) {
- return a.Hb === A.I.Bra || a.Hb === A.I.MJ || a.Hb === A.I.QJ ? !0 : !1;
- };
- a.prototype.$jb = function () {
- var a;
- a = this;
- 0 < this.QO.size.nl(this.config.wMa) ? this.bma()["catch"](function (b) {
- return a.ja.warn("Failed to send log messages on size threshold. " + b);
- }) : this.uB();
- };
- a.prototype.Ci = function () {
- this.WB && (this.WB.cancel(), this.WB = void 0);
- };
- a.prototype.uB = function () {
- this.WB || (this.WB = this.ta.Dh(this.config.$Cb, this.Bv.bind(this)));
- };
- a.prototype.Bv = function () {
- var a;
- a = this;
- this.XZ = !1;
- this.Ci();
- this.bma()["catch"](function (b) {
- return a.ja.warn("Failed to send log messages on timer. " + b);
- });
- };
- a.prototype.stringify = function (a) {
- var b;
- b = "";
- try {
- b = this.json.stringify(a.data, void 0, " ");
- } catch (R) {}
- return b;
- };
- a.prototype.AEb = function (a) {
- return 0 <= this.config.uSa.indexOf(a.type) ? !0 : a.type === r.De.debug ? 0 <= this.config.tSa.indexOf(a.data.debugCategory) : !1;
- };
- b = a;
- return b = c.__decorate([l.N(), c.__param(0, l.l(f.US)), c.__param(1, l.l(n.rw)), c.__param(2, l.l(p.Qg)), c.__param(3, l.l(k.S5)), c.__param(4, l.l(h.Bb)), c.__param(5, l.l(u.l6)), c.__param(6, l.l(m.ED))], b);
- }
- ();
- b.bta = d;
- }, function (d, b, a) {
- var c,
- l,
- g,
- n,
- k,
- p,
- h;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.woa = void 0;
- c = a(0);
- l = a(1);
- g = a(14);
- n = a(96);
- k = a(46);
- p = a(62);
- h = a(8);
- d = function () {
- var b,
- d;
- function a(a, c, f, d) {
- var k;
- k = this;
- this.rtb = a;
- this.AO = c;
- this.config = d;
- this.bla = [];
- this.rtb.h1(b.HVa, this.Sob.bind(this));
- f().then(function (a) {
- var b;
- b = d().Gu.mkb;
- k.$tb = b ? h.hi[b.toUpperCase()] : h.hi.ERROR;
- k.Vh = a;
- k.cDb();
- });
- }
- a.prototype.Sob = function (a, b) {
- this.Vh ? this.ZPa(a, b) : this.bla.push([a, b]);
- };
- a.prototype.cDb = function () {
- var a,
- b;
- a = this;
- b = this.bla;
- this.bla = [];
- b.forEach(function (b) {
- a.ZPa(b[0], b[1]);
- });
- };
- a.prototype.ZPa = function (a, b) {
- var c;
- if (this.Vh && this.tEb(a)) {
- c = {
- debugMessage: a.message,
- debugCategory: a.cm
- };
- a.Cd.forEach(function (a) {
- return c = Object.assign(Object.assign({}, c), a.value);
- });
- c = Object.assign(Object.assign({}, c), {
- prefix: "debug"
- });
- a = this.AO.Fn("debug", h.hi[a.level].toLowerCase(), c, b);
- this.Vh.Lc(a);
- }
- };
- a.prototype.tEb = function (a) {
- var b;
- b = this.$tb;
- return void 0 !== b && a.level <= b && !a.Cd.find(function (a) {
- return a.oN(h.zJ);
- });
- };
- d = b = a;
- d.HVa = "adaptorAll";
- return d = b = c.__decorate([l.N(), c.__param(0, l.l(n.Mz)), c.__param(1, l.l(p.no)), c.__param(2, l.l(k.L5)), c.__param(3, l.l(g.jd))], d);
- }
- ();
- b.woa = d;
- }, function (d, b, a) {
- var c,
- l,
- g,
- n,
- k,
- p,
- h,
- f,
- u,
- A,
- m,
- r,
- H,
- D,
- K,
- t,
- R,
- P,
- ba,
- z,
- T,
- U;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.NLa = void 0;
- d = a(1);
- c = a(131);
- l = a(700);
- g = a(699);
- n = a(698);
- k = a(697);
- p = a(696);
- h = a(14);
- f = a(695);
- u = a(694);
- A = a(693);
- m = a(36);
- r = a(72);
- H = a(345);
- D = a(349);
- K = a(350);
- t = a(62);
- R = a(200);
- P = a(46);
- ba = a(344);
- z = a(692);
- T = a(341);
- U = a(339);
- b.NLa = new d.Ec(function (a) {
- a(P.$j).to(g.bta).aa();
- a(D.l6).to(n.cua).aa();
- a(K.S5).to(k.lta).aa();
- a(R.Q5).to(p.ita).aa();
- a(P.US).to(f.ata).aa();
- a(t.no).to(u.gta).aa();
- a(R.P5).to(A.hta).aa();
- a(ba.R5).to(z.jta).aa();
- a(T.m4).to(U.Aqa).aa();
- a(H.j3).to(l.woa).aa();
- a(P.L5).cR(function (a) {
- return function () {
- return a.lb.get(c.$D)().then(function (b) {
- return new Promise(function (c) {
- var d,
- k,
- l;
- function f() {
- k() && l() && b.cP ? c(a.lb.get(P.$j)) : d.Mc(f);
- }
- d = a.lb.get(m.Qg);
- k = a.lb.get(h.jd);
- l = a.lb.get(r.ar);
- d.Mc(f);
- });
- });
- };
- });
- });
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.vqa = void 0;
- b.vqa = function (a, b, d, g) {
- this.yh = a;
- this.Rx = b;
- this.Nda = g;
- };
- }, function (d, b, a) {
- var c,
- l,
- g,
- n,
- k,
- p,
- h,
- f,
- u,
- A,
- m,
- r,
- H,
- D;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.wqa = void 0;
- c = a(0);
- l = a(2);
- g = a(21);
- n = a(702);
- k = a(8);
- p = a(356);
- h = a(42);
- f = a(86);
- u = a(25);
- A = a(1);
- m = a(71);
- r = a(353);
- H = a(352);
- D = a(351);
- d = function () {
- var b;
- function a(a, b, c, f, d, h, k, l, p, g) {
- this.BFa = a;
- this.Tj = b;
- this.Ha = f;
- this.wca = d;
- this.qc = h;
- this.debug = k;
- this.EIb = l;
- this.vca = p;
- this.Kxb = g;
- this.y4 = /^(SDK-|SLW32-|SLW64-|SLMAC-|WWW-BROWSE-|.{10})([A-Z0-9-=]{4,})$/;
- this.log = c.yb("Device");
- }
- a.prototype.CGa = function (a) {
- try {
- return a.match(this.y4)[2];
- } catch (P) {}
- };
- a.prototype.EGa = function (a) {
- try {
- return a.match(this.y4)[1];
- } catch (P) {}
- };
- a.prototype.create = function (a) {
- var b;
- b = this;
- return new Promise(function (c, f) {
- b.Tj.create().then(function (d) {
- var k,
- p,
- g,
- u,
- q,
- A;
- function h(d) {
- b.Ha.Xl(d) && b.Ha.Xl(k) ? (p = new n.vqa(d, k, void 0, g, a.Yca || "cadmium"), c(p)) : f({
- ha: l.I.dqa
- });
- }
- k = a.Rx;
- if (a.Zea)
- g = "bind_device", b.Kxb.kf(b.log, {}).then(function (a) {
- h(a.esn);
- })["catch"](function (a) {
- f(a);
- });
- else if (a.lY) {
- q = a.yh;
- if (b.Ha.Xl(q)) {
- A = b.EGa(q);
- A != a.Rx && b.log.error("esn prefix from ui is different", {
- ui: A,
- cad: a.Rx,
- ua: a.userAgent
- });
- } else
- a.bia && b.log.error("esn from ui is missing");
- d.load(a.CFa).then(function (a) {
- u = a.value;
- b.Ha.Xl(u) && (b.Ha.Xl(q) ? (a = b.CGa(q), g = a === u ? "storage_matched_esn_in_config" : "storage_did_not_match_esn_in_config") : g = "storage_esn_not_in_config", h(k + u));
- })["catch"](function (c) {
- var n;
- function p() {
- d.save(a.CFa, n, !1).then(function () {
- h(k + n);
- })["catch"](function (a) {
- f(a);
- });
- }
- c.ha === l.I.Hw ? (b.Ha.Xl(a.yh) ? (n = b.CGa(a.yh), b.Ha.Xl(n) ? g = "config_since_not_in_storage" : (g = "generated_since_invalid_in_config_and_not_in_storage", b.log.error("invalid esn passed from UI", a.yh), n = b.BFa.tHa())) : (g = "generated_since_not_in_config_and_storage", n = b.BFa.tHa()), p()) : f(c);
- });
- } else
- a.hhb && b.wca && b.wca.getKeyByName ? b.wca.getKeyByName(a.dab).then(function (a) {
- a = a.id;
- if (b.Ha.wn(a))
- a = String.fromCharCode.apply(void 0, b.qc.decode(a)), b.debug.assert("" != a), k = b.EGa(a), h(a);
- else
- throw "ESN from getKeyByName is not a string";
- })["catch"](function (a) {
- f({
- ha: l.I.X3,
- fb: b.EIb.pd(a)
- });
- }) : a.ghb && b.vca && b.vca.UHa ? b.vca.UHa().then(function (a) {
- var c;
- a = String.fromCharCode.apply(void 0, a);
- c = k + a;
- b.debug.assert(b.y4.test(a));
- h(c);
- })["catch"](function () {
- f({
- ha: l.I.X3
- });
- }) : h();
- })["catch"](function (a) {
- f(a);
- });
- });
- };
- b = a;
- return b = c.__decorate([A.N(), c.__param(0, A.l(p.g4)), c.__param(1, A.l(m.Wq)), c.__param(2, A.l(k.Bb)), c.__param(3, A.l(g.ee)), c.__param(4, A.l(H.T3)), c.__param(5, A.l(h.Gi)), c.__param(6, A.l(f.$q)), c.__param(7, A.l(u.af)), c.__param(8, A.l(r.S3)), c.__param(9, A.l(D.R6))], b);
- }
- ();
- b.wqa = d;
- }, function (d, b, a) {
- var c,
- l,
- g,
- n,
- k,
- p,
- h;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.uqa = void 0;
- c = a(0);
- l = a(39);
- g = a(3);
- n = a(134);
- k = a(355);
- p = a(54);
- h = a(1);
- d = function () {
- var b;
- function a(a, b) {
- this.Ga = a;
- this.Pka = b;
- }
- a.prototype.tHa = function () {
- for (var a = "", b = this.Ga.jf.ca(g.ia), c = 6; c--; )
- a = "0123456789ACDEFGHJKLMNPQRTUVWXYZ"[b % 32] + a, b = Math.floor(b / 32);
- for (; 30 > a.length; )
- a += "0123456789ACDEFGHJKLMNPQRTUVWXYZ"[this.Pka.aQa(new k.I7(0, 31, p.XNa))];
- return a;
- };
- b = a;
- return b = c.__decorate([h.N(), c.__param(0, h.l(l.Ii)), c.__param(1, h.l(n.nK))], b);
- }
- ();
- b.uqa = d;
- }, function (d, b, a) {
- var c,
- l,
- g,
- n,
- k;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.xh = void 0;
- d = a(1);
- c = a(72);
- l = a(356);
- g = a(704);
- n = a(354);
- k = a(703);
- b.xh = new d.Ec(function (a) {
- a(c.ar).tf(function () {
- return function () {
- return t._cad_global.device;
- };
- });
- a(n.h4).to(k.wqa).aa();
- a(l.g4).to(g.uqa).aa();
- });
- }, function (d, b, a) {
- var c,
- l;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.iua = void 0;
- c = a(0);
- l = a(1);
- d = function () {
- var b;
- function a() {
- var a;
- a = this;
- this.ready = !1;
- this.tvb = new Promise(function (b) {
- a.TBb = b;
- });
- }
- a.prototype.uvb = function (a) {
- this.ready || (this.TBb(a), this.ready = !0);
- };
- a.prototype.isReady = function () {
- return this.ready;
- };
- b = a;
- return b = c.__decorate([l.N()], b);
- }
- ();
- b.iua = d;
- }, function (d, b, a) {
- var c,
- l,
- g;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Cy = void 0;
- d = a(1);
- c = a(357);
- l = a(706);
- g = a(131);
- b.Cy = new d.Ec(function (a) {
- a(c.ZS).to(l.iua).aa();
- a(g.$D).cR(function (a) {
- return function () {
- return a.lb.get(c.ZS).tvb;
- };
- });
- });
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.OEa = void 0;
- b.OEa = function (a, b, d) {
- return {
- SIa: function () {
- return a.Cfa();
- },
- ja: b,
- request: d,
- Tc: !1
- };
- };
- }, function (d, b, a) {
- var c,
- l,
- g;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.zw = b.XJ = b.Aw = b.GO = b.cxa = void 0;
- c = a(0);
- l = a(95);
- Object.defineProperty(b, "Mp4FragmentParser", {
- enumerable: !0,
- get: function () {
- return l.XJ;
- }
- });
- Object.defineProperty(b, "Mp4FragmentSlicer", {
- enumerable: !0,
- get: function () {
- return l.zw;
- }
- });
- Object.defineProperty(b, "makeMdatHeader", {
- enumerable: !0,
- get: function () {
- return l.GO;
- }
- });
- Object.defineProperty(b, "SidxBox", {
- enumerable: !0,
- get: function () {
- return l.cxa;
- }
- });
- g = a(51);
- d = function (a) {
- function b(c, d, f, k, l) {
- return a.call(this, b.console, c, d, f, k, l) || this;
- }
- c.__extends(b, a);
- Object.defineProperties(b, {
- console: {
- get: function () {
- return this.G || (this.G = new g.platform.Console("MP4", "media|asejs"));
- },
- enumerable: !1,
- configurable: !0
- }
- });
- return b;
- }
- (l.Aw);
- b.Aw = d;
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.hm = b.uEa = void 0;
- b.uEa = {
- vs: ["minInitVideoBitrate", -Infinity],
- cja: ["minHCInitVideoBitrate", -Infinity],
- sv: ["maxInitVideoBitrate", Infinity],
- ZO: ["minInitAudioBitrate", -Infinity],
- YO: ["minHCInitAudioBitrate", -Infinity],
- HO: ["maxInitAudioBitrate", Infinity],
- VO: ["minAcceptableVideoBitrate", -Infinity],
- UO: ["minAcceptableVMAF", 0],
- Rub: ["minAcceptableVMAFRebufferScalingFactor", 0],
- Sub: ["minAllowedVideoBitrate", -Infinity],
- Stb: ["maxAllowedVideoBitrate", Infinity],
- WO: ["minAllowedVmaf", -Infinity],
- Ttb: ["maxAllowedVmaf", Infinity],
- IQ: ["streamFilteringRules", {
- enabled: !1,
- profiles: ["playready-h264mpl40-dash"],
- action: "keepLowest"
- }
- ],
- $O: ["minRequiredBuffer", 2E4],
- T_: ["minRequiredAudioBuffer", 0],
- hh: ["minPrebufSize", 5800],
- zSb: ["enableNewBufferingComplete", !0],
- gvb: ["minimumBufferingCompleteInterval", 1E4],
- q1: ["requireDownloadDataAtBuffering", !1],
- r1: ["requireSetupConnectionDuringBuffering", !1],
- Zka: ["rebufferingFactor", 1],
- ip: ["maxBufferingTime", 2E3],
- Tna: ["useMaxPrebufSize", !0],
- yy: ["maxPrebufSize", 4E4],
- Kia: ["maxRebufSize", Infinity],
- ujb: ["fastRebufferRecoveryThreshold", Infinity],
- tjb: ["fastRebufferRecoverBwThrehold", 3E3],
- EZ: ["initialBitrateSelectionCurve", null],
- lKa: ["initSelectionLowerBound", -Infinity],
- mKa: ["initSelectionUpperBound", Infinity],
- v2: ["throughputPercentForAudio", 15],
- Waa: ["bandwidthMargin", 0],
- Yaa: ["bandwidthMarginCurve", [{
- m: 20,
- b: 15E3
- }, {
- m: 17,
- b: 3E4
- }, {
- m: 10,
- b: 6E4
- }, {
- m: 5,
- b: 12E4
- }
- ]],
- uab: ["bandwidthMarginCurveAudio", {
- min: .7135376,
- max: .85,
- tu: 76376,
- scale: 18862.4,
- gamma: 3.0569
- }
- ],
- Xaa: ["bandwidthMarginContinuous", !1],
- vab: ["bandwidthMarginForAudio", !0],
- cna: ["switchConfigBasedOnInSessionTput", !0],
- aca: ["conservBandwidthMargin", 20],
- HM: ["conservBandwidthMarginTputThreshold", 6E3],
- bca: ["conservBandwidthMarginCurve", [{
- m: 25,
- b: 15E3
- }, {
- m: 20,
- b: 3E4
- }, {
- m: 15,
- b: 6E4
- }, {
- m: 10,
- b: 12E4
- }, {
- m: 5,
- b: 24E4
- }
- ]],
- oTa: ["switchAlgoBasedOnHistIQR", !1],
- ez: ["switchConfigBasedOnThroughputHistory", "iqr"],
- Jia: ["maxPlayerStateToSwitchConfig", -1],
- jia: ["lowEndMarkingCriteria", "iqr"],
- r5: ["IQRThreshold", .5],
- zga: ["histIQRCalcToUse", "simple"],
- Tp: ["bandwidthManifold", {
- curves: [{
- min: .05,
- max: .82,
- tu: 7E4,
- scale: 178E3,
- gamma: 1.16
- }, {
- min: 0,
- max: .03,
- tu: 15E4,
- scale: 16E4,
- gamma: 3.7
- }
- ],
- threshold: 14778,
- gamma: 2.1,
- niqrcurve: {
- min: 1,
- max: 1,
- center: 2,
- scale: 2,
- gamma: 1
- },
- filter: "throughput-sw",
- niqrfilter: "throughput-iqr",
- simpleScaling: !0
- }
- ],
- vv: ["maxTotalBufferLevelPerSession", 0],
- UJa: ["highWatermarkLevel", 3E4],
- RTa: ["toStableThreshold", 3E4],
- z2: ["toUnstableThreshold", 0],
- Hma: ["skipBitrateInUpswitch", !1],
- $na: ["watermarkLevelForSkipStart", 8E3],
- sga: ["highStreamRetentionWindow", 9E4],
- kia: ["lowStreamTransitionWindow", 51E4],
- uga: ["highStreamRetentionWindowUp", 5E5],
- mia: ["lowStreamTransitionWindowUp", 1E5],
- tga: ["highStreamRetentionWindowDown", 6E5],
- lia: ["lowStreamTransitionWindowDown", 0],
- rga: ["highStreamInfeasibleBitrateFactor", .5],
- ov: ["lowestBufForUpswitch", 9E3],
- v_: ["lockPeriodAfterDownswitch", 15E3],
- oia: ["lowWatermarkLevel", 15E3],
- pv: [["lowestWaterMarkLevel", "lowestWatermarkLevel"], 3E4],
- pia: ["lowestWaterMarkLevelBufferRelaxed", !1],
- Wia: ["mediaRate", 1.5],
- I_: ["maxTrailingBufferLen", 15E3],
- cM: ["audioBufferTargetAvailableSize", 262144],
- vR: ["videoBufferTargetAvailableSize", 1048576],
- EMa: ["maxVideoTrailingBufferSize", 8388608],
- pMa: ["maxAudioTrailingBufferSize", 393216],
- QX: ["fastUpswitchFactor", 3],
- vjb: ["fastUpswitchFactorWithoutHeaders", 3],
- $da: ["fastDownswitchFactor", 3],
- tv: ["maxMediaBufferAllowed", 27E4],
- vUb: ["minMediaBufferLen", 1E4],
- qs: ["maxMediaBufferAllowedInBytes", 0],
- Ema: ["simulatePartialBlocks", !0],
- ySa: ["simulateBufferFull", !0],
- cca: ["considerConnectTime", !0],
- $ba: ["connectTimeMultiplier", 1],
- TLa: ["lowGradeModeEnterThreshold", 12E4],
- ULa: ["lowGradeModeExitThreshold", 9E4],
- sMa: ["maxDomainFailureWaitDuration", 3E4],
- oMa: ["maxAttemptsOnFailure", 18],
- zGa: ["exhaustAllLocationsForFailure", !0],
- yMa: ["maxNetworkErrorsDuringBuffering", 20],
- Dia: ["maxBufferingTimeAllowedWithNetworkError", 6E4],
- HGa: ["fastDomainSelectionBwThreshold", 2E3],
- CTa: ["throughputProbingEnterThreshold", 4E4],
- DTa: ["throughputProbingExitThreshold", 34E3],
- GLa: ["locationProbingTimeout", 1E4],
- LGa: ["finalLocationSelectionBwThreshold", 1E4],
- ATa: ["throughputHighConfidenceLevel", .75],
- BTa: ["throughputLowConfidenceLevel", .4],
- Zha: ["locationStatisticsUpdateInterval", 6E4],
- ctb: ["locationSelectorPersistFailures", !0],
- iGa: ["enablePerfBasedLocationSwitch", !1],
- eUb: ["maxRateMaxFragmentGroups", 4500],
- gka: ["pipelineScheduleTimeoutMs", 2],
- uv: ["maxPartialBuffersAtBufferingStart", 2],
- dja: ["minPendingBufferLen", 3E3],
- xy: ["maxPendingBufferLen", 6E3],
- tib: ["enableNginxRateLimit", !1],
- g0: ["nginxSendingRate", 4E4],
- xib: ["enableRequestPacingToken", !1],
- wub: ["mediaRequestPacingSpeed", 2],
- Wga: ["initialMediaRequestToken", 2E4],
- B_: ["maxActiveRequestsSABCell100", 2],
- F_: ["maxPendingBufferLenSABCell100", 500],
- YQa: ["resetActiveRequestsAtSessionInit", !0],
- iib: ["enableCpr", !1],
- Lba: ["clientPacingParams", {
- minRequiredBuffer: 3E4,
- rateDiscountFactors: [2, 2, 3]
- }
- ],
- Lia: ["maxStreamingSkew", 2E3],
- Utb: ["maxBufferOccupancyForSkewCheck", Infinity],
- jIb: ["useBufferOccupancySkipBack", !0],
- Iia: ["maxPendingBufferPercentage", 10],
- fC: ["maxRequestsInBuffer", 120],
- pZ: ["headerRequestSize", 4096],
- qpb: ["headerCacheEstimateHeaderSize", !1],
- rja: ["neverWipeHeaderCache", !1],
- WUa: ["useSidxInfoFromManifestForHeaderRequestSize", !1],
- PX: ["fastPlayHeaderRequestSize", 0],
- eC: ["maxRequestSize", 0],
- uH: ["minRequestSize", 65536],
- XO: ["minBufferLenForHeaderDownloading", 1E4],
- DSa: ["smartHeaderPreDownloading", !1],
- SUb: ["onlyAllowPtsUpdatePolling", !1],
- Zub: ["minVideoBufferPoolSizeForSkipbackBuffer", 33554432],
- ZP: ["reserveForSkipbackBufferMs", 15E3],
- Gja: ["numExtraFragmentsAllowed", 2],
- lp: ["pipelineEnabled", !0],
- lH: ["maxParallelConnections", 3],
- rIb: ["usePipelineForAudio", !1],
- qIb: ["usePipelineDetectionForAudio", !1],
- ESa: ["socketReceiveBufferSize", 0],
- lW: ["audioSocketReceiveBufferSize", 32768],
- cJ: ["videoSocketReceiveBufferSize", 65536],
- UUa: ["usePipelineDetectionForVideo", !1],
- cvb: ["minVideoSocketReceiveBufferSize", 65536],
- pga: ["headersSocketReceiveBufferSize", 32768],
- oEb: ["shareDownloadTracks", !0],
- eja: ["minTimeBetweenHeaderRequests", void 0],
- L2: ["updatePtsIntervalMs", 1E3],
- fba: ["bufferTraceDenominator", 0],
- WA: ["bufferLevelNotifyIntervalMs", 2E3],
- eGa: ["enableAbortTesting", !1],
- FBa: ["abortRequestFrequency", 8],
- Vma: ["streamingStatusIntervalMs", 2E3],
- Lv: ["prebufferTimeLimit", 6E4],
- R_: ["minBufferLevelForTrackSwitch", 2E3],
- vib: ["enablePenaltyForLongConnectTime", !1],
- aka: ["penaltyFactorForLongConnectTime", 2],
- hia: ["longConnectTimeThreshold", 200],
- raa: ["additionalBufferingLongConnectTime", 2E3],
- saa: ["additionalBufferingPerFailure", 8E3],
- SP: ["rebufferCheckDuration", 6E4],
- hGa: ["enableLookaheadHints", !1],
- PLa: ["lookaheadFragments", 2],
- sB: ["enableOCSideChannel", !0],
- Fka: ["probeRequestTimeoutMilliseconds", 3E4],
- kVb: ["probeRequestConnectTimeoutMilliseconds", 8E3],
- jT: ["OCSCBufferQuantizationConfig", {
- lv: 5,
- mx: 240
- }
- ],
- BUa: ["updateDrmRequestOnNetworkFailure", !0],
- rMa: ["maxDiffAudioVideoEndPtsMs", 1E3],
- $Tb: ["maxAudioFragmentOverlapMs", 80],
- Lgb: ["deferAseHeaderCache", !1],
- rFa: ["deferAseScheduling", !1],
- nGb: ["timeBeforeEndOfStreamBufferMark", 6E3],
- Fia: ["maxFastPlayBufferInMs", 2E4],
- Eia: ["maxFastPlayBitThreshold", 2E8],
- Vtb: ["maxBufferingCompleteBufferInMs", Infinity],
- Q_: ["minAudioMediaRequestSizeBytes", 0],
- V_: ["minVideoMediaRequestSizeBytes", 0],
- rH: ["minAudioMediaRequestDuration", 0],
- wH: ["minVideoMediaRequestDuration", 0],
- tH: ["minMediaRequestDuration", 0],
- Uub: ["minAudioMediaRequestDurationCache", 0],
- bvb: ["minVideoMediaRequestDurationCache", 0],
- sib: ["enableMultiFragmentRequest", !1],
- XI: [["useHeaderCache", "usehc"], !0],
- O2: [["useHeaderCacheData", "usehcd"], !0],
- fX: ["defaultHeaderCacheSize", 4],
- Nca: ["defaultHeaderCacheDataCount", 4],
- Oca: ["defaultHeaderCacheDataPrefetchMs", 0],
- lga: ["headerCacheMaxPendingData", 6],
- mga: ["headerCachePriorityLimit", 5],
- OJa: ["headerCacheAdoptBothAV", !1],
- sIb: ["usePipelineForBranchedAudio", !0],
- ecb: ["childBranchBatchedAmount", 1E4],
- W_: ["minimumTimeBeforeBranchDecision", 2E3],
- cub: ["maxRequestsToAttachOnBranchActivation", void 0],
- XMa: ["minimumJustInTimeBufferLevel", 3E3],
- oib: ["enableJustInTimeAppends", !1],
- gGa: ["enableDelayedSeamless", !1],
- lRb: ["branchEndPtsIntervalMs", 250],
- Spb: ["ignorePtsJustBeforeCurrentSegment", !1],
- uMa: ["maxFragsForFittableOnBranching", 300],
- Gxb: ["pausePlaylistAtEnd", !0],
- g9a: ["adaptiveParallelTimeoutMs", 1E3],
- jG: ["enableAdaptiveParallelStreaming", !1],
- eba: ["bufferThresholdToSwitchToSingleConnMs", 45E3],
- dba: ["bufferThresholdToSwitchToParallelConnMs", 35E3],
- fib: ["enableAPSForBranching", !1],
- a3: ["waitForPendingConnAdaptation", !1],
- pja: ["networkFailureResetWaitMs", 2E3],
- oja: ["networkFailureAbandonMs", 6E4],
- H_: ["maxThrottledNetworkFailures", 5],
- u2: ["throttledNetworkFailureThresholdMs", 200],
- nia: ["lowThroughputThreshold", 400],
- Rda: ["excludeSessionWithoutHistoryFromLowThroughputThreshold", !1],
- mGb: ["timeAtEachBitrateRoundRobin", 1E4],
- gCb: ["roundRobinDirection", "forward"],
- Kob: ["hackForHttpsErrorCodes", !1],
- Jpb: ["httpsConnectErrorAsPerm", !1],
- dNa: ["mp4ParsingInNative", !1],
- Zg: ["enableManagerDebugTraces", !1],
- fMa: ["managerDebugMessageInterval", 1E3],
- eMa: ["managerDebugMessageCount", 20],
- MNa: ["notifyManifestCacheEom", !0],
- mN: ["enableUsingHeaderCount", !1],
- FSa: ["sourceBufferInOrderAppend", !0],
- Js: ["requireAudioStreamToEncompassVideo", !1],
- dCa: ["allowAudioToStreamPastVideo", !1],
- DEa: ["countGapInBuffer", !1],
- eCa: ["allowCallToStreamSelector", !1],
- iDa: ["bufferThresholdForAbort", 2E4],
- n2: ["ase_stream_selector", "optimized"],
- Qaa: ["audiostreamSelectorAlgorithm", "selectaudioadaptive"],
- Uga: ["initBitrateSelectorAlgorithm", "default"],
- hba: ["bufferingSelectorAlgorithm", "default"],
- bFa: ["ase_ls_failure_simulation", ""],
- Fca: ["ase_dump_fragments", !1],
- Gca: ["ase_location_history", 0],
- Hca: ["ase_throughput", 0],
- dFa: ["ase_simulate_verbose", !1],
- Jg: ["stallAtFrameCount", void 0],
- zia: ["marginPredictor", "simple"],
- iIb: ["useBackupUnderflowTimer", !0],
- zWb: ["useManifestDrmHeader", !0],
- AWb: ["useOnlyManifestDrmHeader", !0],
- qja: ["networkMeasurementGranularity", "video_location"],
- Dvb: ["netIntrStoreWindow", 36E3],
- FUb: ["minNetIntrDuration", 8E3],
- W4a: ["fastHistoricBandwidthExpirationTime", 10368E3],
- u5a: ["bandwidthExpirationTime", 5184E3],
- V4a: ["failureExpirationTime", 86400],
- CAa: ["historyTimeOfDayGranularity", 4],
- R4a: ["expandDownloadTime", !0],
- c6a: ["minimumMeasurementTime", 500],
- b6a: ["minimumMeasurementBytes", 131072],
- p7a: ["throughputMeasurementTimeout", 2E3],
- o7a: ["initThroughputMeasureDataSize", 262144],
- O5a: ["historicBandwidthUpdateInterval", 2E3],
- a6a: ["minimumBufferToStopProbing", 1E4],
- OQb: ["throughputPredictor", "ewma"],
- Qla: ["secondThroughputEstimator", "slidingwindow"],
- zRa: ["secondThroughputMeasureWindowInMs", 3E5],
- NQb: ["throughputMeasureWindow", 5E3],
- PQb: ["throughputWarmupTime", 5E3],
- MQb: ["throughputIQRMeasureWindow", 1E3],
- sQb: ["IQRBucketizerWindow", 15E3],
- vMa: ["maxIQRSamples", 100],
- SMa: ["minIQRSamples", 5],
- JQb: ["connectTimeHalflife", 10],
- CQb: ["responseTimeHalflife", 10],
- BQb: ["historicThroughputHalflife", 14400],
- AQb: ["historicResponseTimeHalflife", 100],
- zQb: ["historicHttpResponseTimeHalflife", 100],
- Ura: ["HistoricalTDigestConfig", {
- maxc: 25,
- rc: "ewma",
- c: .5,
- hl: 7200
- }
- ],
- mAa: ["minReportedNetIntrDuration", 4E3],
- LQb: ["throughputBucketMs", 500],
- vQb: ["bucketHoltWintersWindow", 2E3],
- K4a: ["enableFilters", "throughput-ewma throughput-sw throughput-iqr throughput-tdigest avtp entropy".split(" ")],
- S4a: ["experimentalFilter", ["throughput-wssl"]],
- y9: ["filterDefinitionOverrides", {}
- ],
- z4a: ["defaultFilter", "throughput-ewma"],
- W7a: ["secondaryFilter", "throughput-sw"],
- IE: ["defaultFilterDefinitions", {
- "throughput-ewma": {
- type: "discontiguous-ewma",
- mw: 5E3
- },
- "throughput-sw": {
- type: "slidingwindow",
- mw: 3E5
- },
- "throughput-wssl": {
- type: "wssl",
- mw: 5E3,
- max_n: 20
- },
- "throughput-iqr": {
- type: "iqr",
- mx: 100,
- mn: 5,
- bw: 15E3,
- iv: 1E3
- },
- "throughput-iqr-history": {
- type: "iqr-history"
- },
- "throughput-location-history": {
- type: "discrete-ewma",
- hl: 14400
- },
- "respconn-location-history": {
- type: "discrete-ewma",
- hl: 100
- },
- "throughput-tdigest": {
- type: "tdigest",
- maxc: 25,
- c: .5,
- b: 1E3,
- w: 15E3,
- mn: 6
- },
- "throughput-tdigest-history": {
- type: "tdigest-history",
- maxc: 25,
- rc: "ewma",
- c: .5,
- hl: 7200
- },
- "respconn-ewma": {
- type: "discrete-ewma",
- hl: 10
- },
- avtp: {
- type: "avtp"
- },
- entropy: {
- type: "entropy",
- mw: 2E3,
- sw: 6E4,
- mins: 1,
- "in": "none",
- hdl: [150, 230, 352, 539, 825, 1264, 1936, 2966, 4543, 6958],
- uhdl: [150, 230, 352, 539, 825, 1264, 1936, 2966, 4543, 6958, 10657, 16322, 25E3]
- }
- }
- ],
- DX: ["enableHudsonFieldTest", !1],
- FX: ["enableWsslEstimate", !1],
- Nia: ["maxWsslRequestSize", 131072],
- Mia: ["maxWsslRequestRatio", .2],
- wVa: ["wsslAggregationMethod", "max"],
- $N: ["hudsonTitles", ["81127954", "70125931"]],
- Hia: ["maxPartialBuffersAtHudson", 1],
- GH: ["numberOfChunksPerSegment", 4],
- t2: ["targetContentLatency", 1E4],
- gna: ["targetLongContentLatency", 3E4],
- fja: ["minimumTimeDelay", 1],
- lN: ["enableSessionHistoryReport", !0],
- tda: ["earlyStageEstimatePeriod", 1E4],
- sLa: ["lateStageEstimatePeriod", 3E4],
- E_: ["maxNumSessionHistoryStored", 10],
- U_: ["minSessionHistoryDuration", 3E5],
- spb: ["highAndStableModelName", "baseline"],
- Ada: ["enableHighAndStablePredictor", !1],
- S_: ["minNumSessionHistory", 5],
- fRb: ["baselineHighAndStableThreshold", {
- bwThreshold: 2E4,
- nethreshold: .15
- }
- ],
- rZ: ["highAndStableLRModelParams", {
- probThresh: .5,
- lrParams: {
- lrMeans: {
- avtp_b: .6717527000068912,
- avtp_kurtosis: - .32272653860208733,
- avtp_last: 18162.25923773571,
- avtp_mean: 18374.85489469472,
- avtp_niqr: .36157000863524086,
- avtp_p1: 15217.082220651864,
- avtp_p25: 16255.438250827538,
- avtp_p50: 18018.48498809834,
- avtp_p75: 20633.64785646099,
- avtp_p99: 23493.017531706773,
- avtp_skew: - .15988915479533752,
- avtp_std: 3494.2469335662795,
- fracAbove20Mbps: .36069774394324833,
- fracBelow20p: .44509094302767843,
- hour_current: 14.88892246562775,
- intercept: 0,
- neuhd_b: .19944416382669086,
- neuhd_kurtosis: - .3831651109303816,
- neuhd_last: .18607356003210967,
- neuhd_mean: .18446011173649746,
- neuhd_p1: .08973105578594363,
- neuhd_p25: .11425784546899986,
- neuhd_p50: .16178032426296476,
- neuhd_p75: .24808260501822446,
- neuhd_p99: .3802747624363075,
- neuhd_skew: .5015094291572232,
- neuhd_std: .11460618864890261,
- session_ct: 9.244559018608745
- },
- lrStd: {
- avtp_b: .2163710864106512,
- avtp_kurtosis: 1.3411069011423224,
- avtp_last: 15614.28989483334,
- avtp_mean: 15019.534079778174,
- avtp_niqr: 1.5102894334298487,
- avtp_p1: 13558.687640161155,
- avtp_p25: 14056.082157854784,
- avtp_p50: 14989.029847375388,
- avtp_p75: 16706.411995109334,
- avtp_p99: 19150.29672591333,
- avtp_skew: .8845810368911663,
- avtp_std: 3980.545705351505,
- fracAbove20Mbps: .43529176129377334,
- fracBelow20p: .3274979541369119,
- hour_current: 5.5716567906096826,
- intercept: 1,
- neuhd_b: 2.3749059625699656,
- neuhd_kurtosis: 1.2291306781983045,
- neuhd_last: .16618636811434156,
- neuhd_mean: .10880818013405419,
- neuhd_p1: .11470893745650394,
- neuhd_p25: .11090914485422533,
- neuhd_p50: .11733552791484116,
- neuhd_p75: .1358051961745428,
- neuhd_p99: .18492685125890918,
- neuhd_skew: .7361251697238183,
- neuhd_std: .07376059312467607,
- session_ct: 1.9982003410777347
- },
- lrWeights: {
- avtp_b: - .4168110388005385,
- avtp_kurtosis: - .008309418872795704,
- avtp_last: .9636719412610095,
- avtp_mean: .4596368266505147,
- avtp_niqr: .004794244204030071,
- avtp_p1: .04179963884288828,
- avtp_p25: - .05971214541667236,
- avtp_p50: - .06609686988077124,
- avtp_p75: - .021163989843701936,
- avtp_p99: - .5012233043639935,
- avtp_skew: .04960520099458782,
- avtp_std: - .04377297768250326,
- fracAbove20Mbps: 1.4353872225089277,
- fracBelow20p: .536611494372919,
- hour_current: - .02151363764568746,
- intercept: -2.454070409461966,
- neuhd_b: - .010631811493285886,
- neuhd_kurtosis: .0392239159548721,
- neuhd_last: - .26007106077057324,
- neuhd_mean: - .14989131456288793,
- neuhd_p1: .03395316119601572,
- neuhd_p25: - .03267433155107594,
- neuhd_p50: .016260475942198947,
- neuhd_p75: .09080546760249925,
- neuhd_p99: .07570542703705993,
- neuhd_skew: - .0072781558054514205,
- neuhd_std: - .06708762681381578,
- session_ct: .010263062689577421
- }
- }
- }
- ],
- tpb: ["highAndStableParams", {
- minRequiredBuffer: 1E4,
- bandwidthMarginCurve: [{
- m: 10,
- b: 15E3
- }, {
- m: 5,
- b: 3E4
- }, {
- m: 0,
- b: 12E4
- }
- ]
- }
- ],
- VV: ["addHeaderDataToNetworkMonitor", !0],
- Oma: ["startMonitorOnLoadStart", !1],
- lla: ["reportFailedRequestsToNetworkMonitor", !1],
- F0: ["periodicHistoryPersistMs", 0],
- B1: ["saveVideoBitrateMs", 0],
- eP: ["needMinimumNetworkConfidence", !0],
- bba: ["biasTowardHistoricalThroughput", !1],
- htb: ["logMemoryUsage", !1],
- PJa: ["headerCacheTruncateHeaderAfterParsing", !0],
- Fq: ["probeServerWhenError", !0],
- du: ["allowSwitchback", !0],
- FC: ["probeDetailDenominator", 100],
- D_: ["maxDelayToReportFailure", 300],
- UL: ["allowParallelStreaming", !1],
- uub: ["mediaPrefetchDisabled", !1],
- RMa: ["minBufferLevelToAllowPrefetch", 5E3],
- Px: ["editVideoFragments", !1],
- yX: ["editAudioFragments", !0],
- xCb: ["seamlessAudio", !1],
- yCb: ["seamlessAudioProfiles", []],
- zCb: ["seamlessAudioProfilesAndTitles", {}
- ],
- Ola: ["seamlessAudioMaximumSyncError", void 0],
- Pla: ["seamlessAudioMinimumSyncError", void 0],
- iO: ["insertSilentFrames", 0],
- xKa: ["insertSilentFramesOnExit", void 0],
- wKa: ["insertSilentFramesOnEntry", void 0],
- vKa: ["insertSilentFramesForProfile", void 0],
- nkb: ["forceDiscontinuityAtTransition", !0],
- dz: ["supportAudioResetOnDiscontinuity", void 0],
- cz: ["supportAudioEasingOnDiscontinuity", void 0],
- Gr: ["audioCodecResetForProfiles", ["heaac-2-dash", "heaac-2hq-dash"]],
- bib: ["editCompleteFragments", !0],
- evb: ["minimumAudioFramesPerFragment", 1],
- PA: ["applyProfileTimestampOffset", !1],
- Go: ["applyProfileStreamingOffset", !0],
- OPa: ["profileTimestampOffsets", {
- "heaac-2-dash": {
- 64: {
- ticks: -3268,
- timescale: 48E3
- },
- 96: {
- ticks: -3352,
- timescale: 48E3
- }
- },
- "heaac-2hq-dash": {
- 128: {
- ticks: -3352,
- timescale: 48E3
- }
- }
- }
- ],
- lIb: ["useDpiAssumedAacEncoderDelay", !0],
- Yia: ["mediaSourceSupportsNegativePts", !1],
- sH: ["minAudioPtsGap", void 0],
- V$a: ["audioOverlapGuardSampleCount", 2],
- jGa: ["enableRecordJSBridgePerf", !1],
- z5: ["JSBridgeTDigestConfig", {
- maxc: 25,
- c: .5
- }
- ],
- kGb: ["throughputThresholdSelectorParam", 0],
- gIb: ["upswitchDuringBufferingFactor", 2],
- d$a: ["allowUpswitchDuringBuffering", !1],
- xEa: ["contentOverrides", void 0],
- eca: ["contentProfileOverrides", void 0],
- yga: ["hindsightDenominator", 0],
- xga: ["hindsightDebugDenominator", 0],
- VN: ["hindsightAlgorithmsEnabled", ["htwbr"]],
- sZ: ["hindsightParam", {
- numB: Infinity,
- bSizeMs: 1E3,
- fillS: "last",
- fillHl: 1E3
- }
- ],
- rCa: ["appendMediaRequestOnComplete", !1],
- dJ: ["waitForDrmToAppendMedia", !1],
- bY: ["forceAppendHeadersAfterDrm", !1],
- RP: ["reappendRequestsOnSkip", !1],
- Jca: ["declareBufferingCompleteAtSegmentEnd", !1],
- ns: ["maxActiveRequestsPerSession", void 0],
- Uha: ["limitAudioDiscountByMaxAudioBitrate", !1],
- Daa: ["appendFirstHeaderOnComplete", !0],
- q2: ["strictBufferCapacityCheck", !1],
- $L: ["aseReportDenominator", 0],
- Kaa: ["aseReportIntervalMs", 3E5],
- Bna: ["translateToVp9Draft", !1],
- MI: ["switchableAudioProfiles", []],
- W$a: ["audioProfilesOverride", [{
- profiles: ["ddplus-5.1-dash", "ddplus-5.1hq-dash"],
- override: {
- maxInitAudioBitrate: 256,
- audioBwFactor: 5.02
- }
- }, {
- profiles: ["ddplus-atmos-dash"],
- override: {
- maxInitAudioBitrate: 448
- }
- }
- ]],
- qTa: ["switchableAudioProfilesOverride", [{
- profiles: ["ddplus-5.1-dash", "ddplus-5.1hq-dash"],
- override: {
- maxInitAudioBitrate: 192
- }
- }, {
- profiles: ["ddplus-atmos-dash"],
- override: {
- minInitAudioBitrate: 448,
- maxInitAudioBitrate: 448,
- minAudioBitrate: 448
- }
- }
- ]],
- Z$a: ["audioSwitchConfig", {
- upSwitchFactor: 5.02,
- downSwitchFactor: 3.76,
- lowestBufForUpswitch: 16E3,
- lockPeriodAfterDownswitch: 16E3
- }
- ],
- DMa: ["maxStartingVideoVMAF", 110],
- vH: ["minStartingVideoVMAF", 1],
- QL: ["activateSelectStartingVMAF", !1],
- K1: ["selectStartingVMAFTDigest", -1],
- pI: ["selectStartingVMAFMethod", "fallback"],
- FRa: ["selectStartingVMAFMethodCurve", {
- log_p50: [6.0537, - .8612],
- log_p40: [5.41, - .7576],
- log_p20: [4.22, - .867],
- sigmoid_1: [11.0925, -8.0793]
- }
- ],
- OH: ["perFragmentVMAFConfig", {
- enabled: !1,
- simulatedFallback: !1,
- fallbackBound: 12
- }
- ],
- qhb: ["disablePtsStartsEvent", !0],
- ala: ["recordFirstFragmentOnSubBranchCreate", !0],
- HMa: ["mediaCacheConvertToBinaryData", !1],
- Ria: ["mediaCacheSaveOneObject", !1],
- nMa: ["markRequestActiveOnFirstByte", !1],
- xX: ["earlyAppendSingleChildBranch", !0],
- YI: ["useNativeDataViewMethods", !0],
- zaa: ["alwaysNotifyEOSForPlaygraph", !1],
- kIb: ["useCorrectDrainingAmounts", !0],
- EX: ["enableNewAse", !1],
- ZI: ["useNewApi", !1],
- Zca: ["aseDiagnostics", [{
- GM: "queue-audit",
- enabled: !1
- }
- ]],
- Dyb: ["playgraphImmediateTransitionDistance", 3E3],
- Uab: ["branchDistanceThreshold", 6E4],
- Cia: ["maxAllowedOutstandingRequests", 3]
- };
- b.hm = b.uEa;
- }, function (d, b, a) {
- var g,
- n;
- function c() {
- this.Nt = this.TK = this.KU = this.YU = this.HU = null;
- }
- function l(a) {
- this.K = a;
- this.Tt = [];
- this.ro = new c();
- this.kL();
- }
- g = a(7);
- a(18);
- a(11);
- n = a(4);
- new n.Console("ASEJS_SESSION_HISTORY", "media|asejs");
- c.prototype.de = function (a) {
- var b;
- b = !1;
- a && g.has(a, "ens") && g.has(a, "lns") && g.has(a, "fns") && g.has(a, "d") && g.has(a, "t") && (this.HU = a.ens, this.YU = a.lns, this.KU = a.fns, this.TK = a.d, this.Nt = a.t, b = !0);
- return b;
- };
- c.prototype.bd = function () {
- var a;
- if (g.Ma(this.HU) || g.Ma(this.YU) || g.Ma(this.KU) || g.Ma(this.TK) || g.Ma(this.Nt))
- return null;
- a = {
- d: this.TK,
- t: this.Nt
- };
- a.ens = this.HU;
- a.lns = this.YU;
- a.fns = this.KU;
- return a;
- };
- c.prototype.get = function () {
- var a,
- b;
- a = this.bd();
- if (a) {
- b = new Date(this.Nt);
- a.dateint = 1E4 * b.getFullYear() + 100 * (b.getMonth() + 1) + b.getDate();
- a.hour = b.getHours();
- }
- return a;
- };
- l.prototype.kL = function () {
- var a;
- a = n.storage.get("sth");
- a && this.de(a);
- };
- l.prototype.de = function (a) {
- var b,
- d;
- b = null;
- d = this.K;
- a.forEach(function (a) {
- var f;
- f = new c();
- f.de(a) ? (b = !0, this.Tt.push(f)) : g.Ma(b) && (b = !1);
- }, this);
- this.Tt = this.Tt.filter(function (a) {
- return a.TK >= d.U_;
- });
- this.Tt.sort(function (a, b) {
- return a.Nt - b.Nt;
- });
- return g.Ma(b) ? !0 : b;
- };
- l.prototype.D9 = function () {
- var a;
- a = [];
- this.Tt.forEach(function (b) {
- a.push(b.bd());
- }, this);
- return a;
- };
- l.prototype.save = function () {
- var a,
- b,
- d;
- a = this.D9();
- b = this.K;
- d = this.ro.bd();
- d && d.d >= b.U_ && (a.push(d), this.Tt.push(this.ro));
- a.length > b.E_ && (a = a.slice(a.length - b.E_, a.length));
- this.ro = new c();
- a && n.storage.set("sth", a);
- };
- l.prototype.reset = function () {
- this.ro = new c();
- };
- l.prototype.Klb = function () {
- return this.ro.get();
- };
- l.prototype.Snb = function () {
- return this.Tt.length + 1;
- };
- l.prototype.l9a = function (a) {
- this.ro.HU = a;
- this.ro.Nt = n.time.ea();
- };
- l.prototype.x9a = function (a) {
- this.ro.YU = a;
- this.ro.Nt = n.time.ea();
- };
- l.prototype.q9a = function (a, b) {
- this.ro.KU = a;
- this.ro.Nt = n.time.ea();
- this.ro.TK = b;
- };
- d.P = l;
- }, function (d, b, a) {
- var l,
- g,
- n,
- k;
- function c(a) {
- var b;
- b = nrdp.xh.YVb.match(/android-(\d*)/);
- b ? 23 < b[1] ? (a.dz = !1, a.cz = !1, a.Gr = void 0) : (b = nrdp.xh.ZOb.LRb.platform.cVb.match(/(\d*)\.(\d*).(\d*)/)) ? 6 < b[1] || 6 == b[1] && 1 < b[2] || 6 == b[1] && 1 == b[2] && 1 <= b[3] ? (a.dz = !0, a.cz = !1, a.Gr = void 0) : (a.dz = !1, a.cz = !1, a.Gr = []) : (a.dz = !1, a.cz = !1, a.Gr = []) : (a.dz = !1, a.cz = !1, a.Gr = []);
- }
- l = a(6).assert;
- a(73);
- g = a(4);
- n = g.ak;
- k = g.z0a;
- d.P = function () {
- var a,
- b,
- f;
- new g.Console("ASEJSMONKEY", "media|asejs");
- if (!g.ak.xc) {
- a = function (a) {
- this.W5a = a;
- };
- b = k.prototype.appendBuffer;
- g.MediaSource.xc || (g.MediaSource.xc = {});
- "undefined" !== typeof nrdp && nrdp.VQb && (c(g.MediaSource.xc), g.MediaSource.xc.cEa = !1, g.MediaSource.xc.jNa = !1);
- g.ak.xc = {
- iI: {
- foa: !0,
- $z: !0,
- mua: !0
- }
- };
- Object.defineProperty(n.prototype, "_response", {
- get: function () {
- return this.n8a || this.y4a;
- },
- set: function (a) {
- this.y4a = a;
- }
- });
- f = n.prototype.open;
- n.prototype.open = function (b, c, d, h, k, l, g) {
- 1 === d && (this.n8a = new a(this));
- return f.call(this, b, c, d, h, k, l, g);
- };
- n.prototype.UP = function () {
- this.fF = void 0;
- };
- k.prototype.appendBuffer = function (c) {
- if (c instanceof ArrayBuffer)
- return b.call(this, c);
- if (c instanceof a)
- return this.bW(c.W5a);
- l(!1);
- };
- }
- };
- }, function (d, b, a) {
- var c;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.soa = void 0;
- c = a(63);
- d = function () {
- function a(a) {
- this.console = a;
- this.vA = [];
- this.ex = [];
- c.Za && this.console.trace("Received pending adoption " + this.hj.length);
- }
- Object.defineProperties(a.prototype, {
- length: {
- get: function () {
- return this.vA.length;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- hj: {
- get: function () {
- return this.ex;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- a.prototype.Ptb = function (a) {
- a = this.ex.indexOf(a);
- -1 !== a && (c.Za && this.console.trace("Marking request attached"), this.vA[a].BKa = !0, this.mUa(a));
- };
- a.prototype.Qtb = function (a) {
- a = this.ex.indexOf(a);
- -1 !== a && (c.Za && this.console.trace("Marking request completed"), this.vA[a].av = !0, this.mUa(a));
- };
- a.prototype.pBb = function (a) {
- var b,
- c;
- b = this;
- c = [];
- this.ex.forEach(function (b, d) {
- a(b) && c.unshift(d);
- });
- c.forEach(function (a) {
- b.ex.splice(a, 1);
- b.vA.splice(a, 1);
- });
- };
- a.prototype.push = function (a) {
- this.ex.push(a);
- this.vA.push({
- BKa: !1,
- av: !1
- });
- c.Za && this.console.trace("Pushing pending request, " + this.length + " total");
- };
- a.prototype.MB = function () {
- return 0 < this.length;
- };
- a.prototype.mUa = function (a) {
- var b;
- b = this.vA[a];
- b.BKa && b.av && (b = this.ex[a], this.ex.splice(a, 1), this.vA.splice(a, 1), c.Za && this.console.trace("Removing request, " + this.length + " left"), 0 === this.length && c.Za && this.console.trace("Removing last request, contentEndPts: " + b.Wb));
- };
- return a;
- }
- ();
- b.soa = d;
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Uxa = void 0;
- d = function () {
- function a(a) {
- this.$Aa = a;
- }
- Object.defineProperties(a.prototype, {
- WG: {
- get: function () {
- return this.B5a;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- result: {
- get: function () {
- return this.$Aa;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- aCb: {
- get: function () {
- var a;
- a = this;
- return this.$Aa.then(function () {
- return a;
- });
- },
- enumerable: !1,
- configurable: !0
- }
- });
- a.prototype.cancel = function () {
- this.B5a = !0;
- };
- a.prototype.Kja = function (a, b) {
- var c;
- c = this;
- this.result.then(function (d) {
- c.WG ? b && b(d) : a(d);
- });
- return this;
- };
- return a;
- }
- ();
- b.Uxa = d;
- }, function (d, b, a) {
- var c,
- l,
- g,
- n,
- k,
- p;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Vwa = void 0;
- c = a(7);
- l = a(17);
- g = a(17);
- n = a(4);
- k = a(714);
- p = a(367);
- d = function () {
- var c9P;
- function a(a, b, c, d) {
- var V9P,
- R9P;
- V9P = 2;
- while (V9P !== 9) {
- R9P = "1";
- R9P += "SI";
- R9P += "Yb";
- R9P += "ZrNJCp9";
- switch (V9P) {
- case 3:
- R9P;
- V9P = 9;
- break;
- case 2:
- this.Aa = a;
- this.G = b;
- this.jb = c;
- this.Tg = d;
- V9P = 3;
- break;
- }
- }
- }
- c9P = 2;
- while (c9P !== 13) {
- switch (c9P) {
- case 2:
- a.prototype.Vy = function (a, b) {
- var e9P,
- f,
- d,
- h,
- k,
- n,
- u,
- q,
- A9P,
- w9P,
- l9P,
- i9P,
- P9P,
- G9P,
- E9P,
- J9P,
- r9P,
- Y9P,
- t9P,
- s9P,
- I9P,
- O9P;
- e9P = 2;
- while (e9P !== 48) {
- A9P = "seek";
- A9P += "De";
- A9P += "lay";
- A9P += "ed";
- w9P = "seek";
- w9P += "De";
- w9P += "la";
- w9P += "yed";
- l9P = "s";
- l9P += "eekFa";
- l9P += "ile";
- l9P += "d";
- i9P = "seek, n";
- i9P += "o";
- i9P += " manifest at manifest";
- i9P += "Index:";
- P9P = "se";
- P9P += "e";
- P9P += "kD";
- P9P += "el";
- P9P += "ayed";
- G9P = " player";
- G9P += "State:";
- G9P += " ";
- E9P = " ";
- E9P += "med";
- E9P += "ia.cur";
- E9P += "rentPt";
- E9P += "s: ";
- J9P = " ";
- J9P += "current";
- J9P += " ";
- J9P += "mani";
- J9P += "fest: ";
- r9P = " ma";
- r9P += "nife";
- r9P += "stIndex: ";
- Y9P = "s";
- Y9P += "ee";
- Y9P += "k";
- Y9P += ":";
- Y9P += " ";
- t9P = "se";
- t9P += "ekF";
- t9P += "ailed";
- s9P = "after seek";
- s9P += "ing,";
- s9P += " playerSta";
- s9P += "te no longer START";
- s9P += "ING: ";
- I9P = "s";
- I9P += "e";
- I9P += "ek";
- O9P = "p";
- O9P += "tsch";
- O9P += "a";
- O9P += "nge";
- O9P += "d";
- switch (e9P) {
- case 22:
- k = this.Aa.Ho ? this.Aa.Tk ? Math.min(k[0].T, k[1].T) : k[0].T : k[1].T;
- e9P = 21;
- break;
- case 40:
- return this.Aa.emit(O9P, d),
- this.Aa.emit(I9P),
- this.PL(b),
- a = k && this.Aa.ab.Dt() ? 100 : 0,
- this.Aa.zV(1, a),
- this.Aa.si(),
- d;
- break;
- case 30:
- a = k,
- d = a + this.Aa.pa.ie;
- e9P = 29;
- break;
- case 20:
- b < k.R.Ya && h.R.ye.replace && (h.R.ye.replace = !1);
- n = this.Aa.pa.Ub;
- g.Pe.forEach(function (a) {
- var d9P;
- d9P = 2;
- while (d9P !== 1) {
- switch (d9P) {
- case 2:
- (a = n.Jc(a)) && f.Aa.dBa(a);
- d9P = 1;
- break;
- }
- }
- });
- e9P = 17;
- break;
- case 29:
- this.Aa.X.de(l.ma.Pg);
- this.Aa.Rma();
- this.Aa.pa.XFb(a, b);
- e9P = 43;
- break;
- case 6:
- this.Aa.pa.ZQa();
- e9P = 14;
- break;
- case 41:
- e9P = this.Aa.X.YKa() ? 40 : 39;
- break;
- case 39:
- this.G.warn(s9P + this.Aa.X.bd());
- this.Aa.emit(t9P);
- e9P = 48;
- break;
- case 3:
- k = this.Aa.X.$d();
- d = a;
- h.Zg && this.Tg.Dk(Y9P + a + r9P + b + J9P + this.Aa.Md.R.Ya + E9P + k + G9P + this.Aa.X.bd());
- c.Y(b) && (b = this.Aa.Md.R.Ya);
- e9P = 6;
- break;
- case 24:
- k = this.Aa.pa.Ub.tN(h.na || Infinity, h.R);
- e9P = 23;
- break;
- case 17:
- e9P = !this.Aa.Yya(b) ? 16 : 26;
- break;
- case 53:
- q = this.Aa.pa.Ub;
- g.Pe.forEach(function (a) {
- var p9P,
- b;
- p9P = 2;
- while (p9P !== 4) {
- switch (p9P) {
- case 2:
- b = q.Jc(a);
- f.jb(a) && f.s7a(b, u[a]);
- p9P = 4;
- break;
- }
- }
- });
- e9P = 51;
- break;
- case 14:
- e9P = (h = this.Aa.Wf(b)) ? 13 : 49;
- break;
- case 35:
- e9P = h.R.ye.Ef ? 34 : 30;
- break;
- case 2:
- f = this;
- null === (d = this.Vza) || void 0 === d ? void 0 : d.cancel();
- h = this.Aa.K;
- e9P = 3;
- break;
- case 23:
- e9P = k.length ? 22 : 50;
- break;
- case 21:
- e9P = a > k ? 35 : 29;
- break;
- case 50:
- this.fx = {
- Ya: b,
- Si: a
- },
- this.Aa.emit(P9P);
- e9P = 48;
- break;
- case 43:
- e9P = (k = this.Aa.Md.R.Ya === b && !this.E5a(b) && a === h.T) ? 42 : 37;
- break;
- case 13:
- !h.R.ye.KO && 0 < b && (d = this.Aa.KM(b, a));
- this.Aa.X.de(l.ma.$m);
- k = this.Aa.Md;
- e9P = 10;
- break;
- case 25:
- return;
- break;
- case 37:
- this.Aa.y$();
- u = this.Aa.pa.Ub.wW(a).$H;
- h.xja();
- e9P = 53;
- break;
- case 42:
- g.Pe.forEach(function (a) {
- var k9P;
- k9P = 2;
- while (k9P !== 1) {
- switch (k9P) {
- case 2:
- f.Aa.zr[a].ZBb();
- k9P = 1;
- break;
- }
- }
- });
- e9P = 41;
- break;
- case 10:
- e9P = b != k.R.Ya ? 20 : 24;
- break;
- case 49:
- this.G.warn(i9P, b),
- this.Aa.emit(l9P);
- e9P = 48;
- break;
- case 33:
- this.fx = {
- Ya: h.R.Ya + 1,
- Si: a
- };
- this.Aa.emit(w9P);
- return;
- break;
- case 51:
- this.Aa.DL();
- e9P = 41;
- break;
- case 34:
- e9P = !this.Aa.MV(h.R.Ya + 1) ? 33 : 29;
- break;
- case 26:
- e9P = this.vu(p.F3.Jea(b), !1, !0) ? 25 : 24;
- break;
- case 16:
- this.fx = {
- Ya: b,
- Si: a
- };
- this.Aa.emit(A9P);
- return;
- break;
- }
- }
- };
- a.prototype.seek = function (a, b) {
- var n9P,
- f;
- n9P = 2;
- while (n9P !== 8) {
- switch (n9P) {
- case 4:
- this.Aa.pa.ZQa();
- this.Aa.Wf(b).R.ye.KO || this.Aa.UE || (f = this.Aa.Rr(b, a));
- return this.Vy(f, b);
- break;
- case 2:
- f = a;
- c.Y(b) && (b = this.Aa.Md.R.Ya);
- n9P = 4;
- break;
- }
- }
- };
- a.prototype.vu = function (a, b, c) {
- var x9P,
- f,
- d,
- M9P,
- L9P;
- x9P = 2;
- while (x9P !== 8) {
- M9P = "s";
- M9P += "e";
- M9P += "e";
- M9P += "k";
- L9P = "p";
- L9P += "tsch";
- L9P += "ang";
- L9P += "ed";
- switch (x9P) {
- case 2:
- x9P = 1;
- break;
- case 1:
- d = this.Aa.pa.vu(a, b);
- x9P = 5;
- break;
- case 5:
- x9P = b ? 4 : 3;
- break;
- case 4:
- return d;
- break;
- case 3:
- d ? (this.Aa.X.de(l.ma.$m), (a = this.Aa.pa.Kk.children[a]) && this.Aa.emit(L9P, null !== (f = a.ed) && void 0 !== f ? f : a.pKa), this.Aa.X.de(l.ma.Pg), this.Aa.emit(M9P), a && this.PL(a.R.Ya), this.Aa.zV(1), this.Aa.si(), this.Aa.ab.Dt()) : c || (f = this.Aa.pa.Onb(a), this.Vy(f));
- return d;
- break;
- }
- }
- };
- a.prototype.E5a = function (a) {
- var T9P;
- T9P = 2;
- while (T9P !== 1) {
- switch (T9P) {
- case 4:
- return - ~this.Aa.Wf(a).XL;
- break;
- T9P = 1;
- break;
- case 2:
- return !!this.Aa.Wf(a).XL;
- break;
- }
- }
- };
- c9P = 3;
- break;
- case 3:
- a.prototype.PL = function (a) {
- var K9P,
- b;
- K9P = 2;
- while (K9P !== 3) {
- switch (K9P) {
- case 2:
- b = this;
- a = this.Aa.Wf(a);
- K9P = 4;
- break;
- case 4:
- a.XL || (a.XL = !0, g.Pe.forEach(function (a) {
- var m9P;
- m9P = 2;
- while (m9P !== 1) {
- switch (m9P) {
- case 2:
- b.Aa.Af[a].resume();
- m9P = 1;
- break;
- }
- }
- }), this.Aa.DL());
- K9P = 3;
- break;
- }
- }
- };
- a.prototype.s7a = function (a, b) {
- var H9P,
- c,
- f,
- d;
- H9P = 2;
- while (H9P !== 6) {
- switch (H9P) {
- case 8:
- this.Aa.Rg.hj.forEach(function (a) {
- var C9P;
- C9P = 2;
- while (C9P !== 1) {
- switch (C9P) {
- case 4:
- c.Aa.JA(a, ~9);
- C9P = 8;
- break;
- C9P = 1;
- break;
- case 2:
- c.Aa.JA(a, !1);
- C9P = 1;
- break;
- }
- }
- }),
- this.Aa.Rg = void 0;
- H9P = 7;
- break;
- case 2:
- c = this;
- d = a.M;
- a.WC(b);
- a.QBb();
- H9P = 9;
- break;
- case 7:
- this.Aa.gN.TAa(d, a.ad.R);
- H9P = 6;
- break;
- case 9:
- H9P = (null === (f = this.Aa.Rg) || void 0 === f ? 0 : f.MB()) ? 8 : 7;
- break;
- }
- }
- };
- a.prototype.w9 = function () {
- var W9P,
- a,
- b;
- W9P = 2;
- while (W9P !== 9) {
- switch (W9P) {
- case 5:
- a = this.fx.Si;
- b = this.fx.Ya;
- this.Aa.Wf(b) && (this.fx = void 0, this.Vy(a, b));
- W9P = 9;
- break;
- case 1:
- W9P = this.fx ? 5 : 9;
- break;
- case 2:
- W9P = 1;
- break;
- }
- }
- };
- a.prototype.Zh = function (a) {
- var q9P,
- c,
- f,
- d;
- function b(f, d) {
- var S9P,
- Z9P;
- S9P = 2;
- while (S9P !== 5) {
- Z9P = "s";
- Z9P += "kip: unexpected behaviour - a non-p";
- Z9P += "resenting branch doesn't have a previous b";
- Z9P += "ranch";
- switch (S9P) {
- case 2:
- f !== c.Aa.pa.Kk && (f.Kf ? b(f.Kf, d) : c.G.error(Z9P));
- (f = f.Jc(d)) && f.Zh(a);
- S9P = 5;
- break;
- }
- }
- }
- q9P = 2;
- while (q9P !== 14) {
- switch (q9P) {
- case 7:
- this.Vza = f = new k.Uxa(this.Aa.EI());
- return f.Kja(function () {
- var v9P,
- N9P;
- v9P = 2;
- while (v9P !== 4) {
- N9P = "s";
- N9P += "k";
- N9P += "i";
- N9P += "p";
- switch (v9P) {
- case 2:
- c.Aa.X.de(l.ma.Pc);
- c.Aa.KL();
- c.Aa.emit(N9P);
- v9P = 4;
- break;
- }
- }
- }).aCb;
- break;
- case 2:
- c = this;
- null === (f = this.Vza) || void 0 === f ? void 0 : f.cancel();
- d = this.Aa.K;
- q9P = 3;
- break;
- case 3:
- this.Aa.Rma();
- this.Aa.pa.Kk.Zh(a);
- g.Pe.forEach(function (a) {
- var b9P,
- f,
- B9P;
- b9P = 2;
- while (b9P !== 8) {
- B9P = "skip";
- B9P += ": no";
- B9P += "t resuming buff";
- B9P += "erMa";
- B9P += "nager, audio track switch in progress";
- switch (b9P) {
- case 5:
- f = c.Aa.ab.Ne[a];
- c.Aa.So && (f.Jma = n.time.ea());
- d.RP ? c.Aa.Af[a].reset() : f.eJ ? f.bb(B9P) : c.Aa.Af[a].resume();
- b(c.Aa.pa.Ub, a);
- b9P = 8;
- break;
- case 2:
- b9P = 1;
- break;
- case 1:
- b9P = c.jb(a) ? 5 : 8;
- break;
- }
- }
- });
- q9P = 7;
- break;
- }
- }
- };
- a.prototype.ru = function (a) {
- var D9P,
- b,
- c,
- f;
- D9P = 2;
- while (D9P !== 6) {
- switch (D9P) {
- case 3:
- return !1;
- break;
- case 4:
- D9P = a < (null !== (b = c.ed) && void 0 !== b ? b : c.pKa) || a >= f ? 3 : 9;
- break;
- case 9:
- b = this.Aa.Ur(a, 0, !0);
- a = this.Aa.Ur(a, 1, !0);
- return void 0 !== b && void 0 !== a && b.complete && a.complete;
- break;
- case 2:
- c = this.Aa.pa.Kk;
- f = 0 < Object.keys(c.da && c.da.Aj || {}).length && !c.Ti ? c.ze - this.Aa.K.W_ : c.ze;
- D9P = 4;
- break;
- }
- }
- };
- c9P = 14;
- break;
- case 14:
- return a;
- break;
- }
- }
- }
- ();
- b.Vwa = d;
- }, function (d, b, a) {
- var c,
- l;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Foa = void 0;
- c = a(17);
- l = a(11);
- d = function () {
- function a(a) {
- this.AM = a;
- this.state = new l.cK(c.ma.Pg);
- this.zk = {};
- }
- a.prototype.bd = function () {
- return this.state.value;
- };
- a.prototype.de = function (a) {
- this.state.set(a);
- };
- a.prototype.addListener = function (a) {
- this.state.addListener(a);
- };
- a.prototype.paused = function () {
- this.state.value === c.ma.Pc && this.state.set(c.ma.Lh);
- };
- a.prototype.kR = function () {
- this.state.value === c.ma.Lh && this.state.set(c.ma.Pc);
- };
- a.prototype.YKa = function () {
- return this.state.value === c.ma.Pg;
- };
- a.prototype.my = function () {
- return "function" === typeof this.AM.my ? this.AM.my() : this.state.value === c.ma.Pc;
- };
- a.prototype.Dg = function () {
- return this.state.value === c.ma.Ce || this.state.value === c.ma.Ng;
- };
- a.prototype.Eg = function () {
- return this.state.value === c.ma.$m;
- };
- a.prototype.ZKa = function () {
- return this.state.value === c.ma.pE;
- };
- a.prototype.$d = function () {
- return this.AM.$d();
- };
- a.prototype.ufa = function () {
- return this.AM.ufa();
- };
- a.prototype.tQ = function (a, b) {
- this.zk[a] = b;
- };
- a.prototype.cv = function (a) {
- return !!this.zk[a.u] || a.Ri;
- };
- return a;
- }
- ();
- b.Foa = d;
- }, function (d, b, a) {
- var c,
- l,
- g,
- n,
- k,
- p;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.tua = void 0;
- c = a(7);
- l = a(165);
- g = a(18);
- n = a(73);
- k = a(4);
- p = a(11);
- a(6);
- d = function () {
- var X9P;
- X9P = 2;
- function a(a, b) {
- var y9P,
- i2P;
- y9P = 2;
- while (y9P !== 4) {
- i2P = "1";
- i2P += "SIYbZ";
- i2P += "rNJCp9";
- switch (y9P) {
- case 2:
- this.Ka = a;
- this.G = b;
- i2P;
- y9P = 4;
- break;
- }
- }
- }
- while (X9P !== 39) {
- switch (X9P) {
- case 31:
- a.prototype.pAa = function () {
- var s2P,
- a,
- l2P;
- s2P = 2;
- while (s2P !== 3) {
- l2P = "a";
- l2P += "sere";
- l2P += "po";
- l2P += "r";
- l2P += "t";
- switch (s2P) {
- case 5:
- a = {
- type: l2P
- };
- this.Ka.Hs.Bjb(a) && p.Ja(this.Ka, a.type, a);
- s2P = 3;
- break;
- case 2:
- s2P = 1;
- break;
- case 1:
- s2P = this.Ka.Hs ? 5 : 3;
- break;
- }
- }
- };
- a.prototype.j6a = function () {
- var t2P,
- a,
- w2P;
- t2P = 2;
- while (t2P !== 4) {
- w2P = "ase";
- w2P += "reportenabl";
- w2P += "ed";
- switch (t2P) {
- case 2:
- a = {
- type: w2P
- };
- p.Ja(this.Ka, a.type, a);
- t2P = 4;
- break;
- }
- }
- };
- a.prototype.t6a = function (a) {
- var Y2P,
- b,
- c,
- f,
- d,
- h,
- k,
- l,
- g,
- n,
- q,
- m,
- r,
- t,
- U,
- ea,
- ha,
- V,
- x,
- N,
- na,
- A2P,
- N2P,
- Z2P,
- M2P,
- L2P;
- Y2P = 2;
- while (Y2P !== 7) {
- A2P = "hindsi";
- A2P += "ghtr";
- A2P += "e";
- A2P += "port";
- switch (Y2P) {
- case 2:
- Y2P = 1;
- break;
- case 1:
- Y2P = a ? 5 : 7;
- break;
- case 8:
- p.Ja(this.Ka, b.type, b);
- Y2P = 7;
- break;
- case 5:
- b = {
- type: A2P
- };
- c = this.Ka.K.VN;
- for (f in c) {
- N2P = "hvmaf";
- N2P += "d";
- N2P += "p";
- Z2P = "h";
- Z2P += "vma";
- Z2P += "f";
- Z2P += "g";
- Z2P += "r";
- M2P = "hv";
- M2P += "maf";
- M2P += "tb";
- L2P = "h";
- L2P += "t";
- L2P += "w";
- L2P += "b";
- L2P += "r";
- d = c[f];
- h = 0;
- k = 0;
- l = 0;
- g = 0;
- n = 0;
- q = 0;
- m = void 0;
- r = void 0;
- t = !1;
- U = -1;
- ea = -1;
- ha = -1;
- V = -1;
- x = -1;
- N = -1;
- for (na in a)
- r = a[na], void 0 === r.nd && (m = (m = r.sols) && m[d]) && (t = !0, l += m.dlvdur, h += m.dltwbr * m.dlvdur, k += m.dlvmaf * m.dlvdur), q += r.pbdur, g += r.pbtwbr * r.pbdur, n += r.pbvmaf * r.pbdur, m = r.rr, r = r.ra;
- 0 < q && (U = 1 * g / q, V = 1 * n / q);
- t && (0 < l && (ea = 1 * h / l, x = 1 * k / l), 0 < l + q && (ha = 1 * (h + g) / (l + q), N = 1 * (k + n) / (l + q)));
- switch (d) {
- case L2P:
- b.htwbr = ha;
- b.hptwbr = ea;
- b.pbtwbr = U;
- m && (b.rr = m, b.ra = r);
- break;
- case M2P:
- b.hvmaftb = N;
- b.hpvmaftb = x;
- b.pbvmaftb = V;
- m && (b.rrvmaftb = m, b.ravmaftb = r);
- break;
- case Z2P:
- b.hvmafgr = N;
- b.hpvmafgr = x;
- b.pbvmafgr = V;
- m && (b.rrvmafgr = m, b.ravmafgr = r);
- break;
- case N2P:
- b.hvmafdp = N,
- b.hpvmafdp = x,
- b.pbvmafdp = V,
- m && (b.rrvmafdp = m, b.ravmafdp = r);
- }
- }
- this.Ka.kG && (b.report = a);
- Y2P = 8;
- break;
- }
- }
- };
- a.prototype.p6a = function (a) {
- var r2P,
- B2P;
- r2P = 2;
- while (r2P !== 5) {
- B2P = "e";
- B2P += "ndOfS";
- B2P += "tream";
- switch (r2P) {
- case 2:
- a = {
- type: B2P,
- mediaType: a
- };
- p.Ja(this.Ka, a.type, a);
- r2P = 5;
- break;
- }
- }
- };
- a.prototype.Am = function (a) {
- var J2P,
- y2P,
- X2P;
- J2P = 2;
- while (J2P !== 1) {
- y2P = "a";
- y2P += "seexceptio";
- y2P += "n";
- X2P = "ase";
- X2P += "exce";
- X2P += "pt";
- X2P += "ion";
- switch (J2P) {
- case 2:
- this.Ka.emit(X2P, {
- type: y2P,
- msg: a
- });
- J2P = 1;
- break;
- }
- }
- };
- a.prototype.Zvb = function (a, b, c, d) {
- var E2P,
- Q2P,
- o2P;
- E2P = 2;
- while (E2P !== 5) {
- Q2P = "maxvid";
- Q2P += "eobi";
- Q2P += "tra";
- Q2P += "techange";
- Q2P += "d";
- o2P = "ma";
- o2P += "x";
- o2P += "videobitratec";
- o2P += "hang";
- o2P += "ed";
- switch (E2P) {
- case 2:
- a = {
- type: o2P,
- time: k.time.ea(),
- spts: d,
- maxvb_old: a,
- maxvb: b,
- reason: c
- };
- this.Ka.emit(Q2P, a);
- E2P = 5;
- break;
- }
- }
- };
- X9P = 42;
- break;
- case 42:
- a.prototype.PNa = function () {
- var G2P,
- a,
- h2P;
- G2P = 2;
- while (G2P !== 9) {
- h2P = "s";
- h2P += "t";
- h2P += "rea";
- h2P += "merend";
- switch (G2P) {
- case 2:
- G2P = 1;
- break;
- case 1:
- G2P = !this.o8a && this.Ka.K.MNa ? 5 : 9;
- break;
- case 5:
- this.o8a = !0;
- G2P = 4;
- break;
- case 4:
- a = {
- type: h2P,
- time: k.time.ea()
- };
- p.Ja(this.Ka, a.type, a);
- G2P = 9;
- break;
- }
- }
- };
- a.prototype.Dk = function (a) {
- var P2P,
- U2P,
- a2P;
- P2P = 2;
- while (P2P !== 5) {
- U2P = ",";
- U2P += " ";
- a2P = "manag";
- a2P += "erdebug";
- a2P += "event";
- switch (P2P) {
- case 2:
- a = {
- type: a2P,
- message: "@" + k.time.ea() + U2P + a
- };
- p.Ja(this.Ka, a.type, a);
- P2P = 5;
- break;
- }
- }
- };
- return a;
- break;
- case 2:
- a.prototype.gk = function (a) {
- var o9P,
- j2P;
- o9P = 2;
- while (o9P !== 5) {
- j2P = "sta";
- j2P += "rt";
- j2P += "E";
- j2P += "ven";
- j2P += "t";
- switch (o9P) {
- case 2:
- a = {
- type: j2P,
- event: a,
- time: k.time.ea()
- };
- p.Ja(this.Ka, a.type, a);
- o9P = 5;
- break;
- }
- }
- };
- a.prototype.A6a = function () {
- var Q9P,
- a,
- F2P;
- Q9P = 2;
- while (Q9P !== 4) {
- F2P = "ope";
- F2P += "nC";
- F2P += "om";
- F2P += "pl";
- F2P += "ete";
- switch (Q9P) {
- case 2:
- a = {
- type: F2P
- };
- p.Ja(this.Ka, a.type, a);
- Q9P = 4;
- break;
- }
- }
- };
- a.prototype.B6a = function (a, b, c, d, h) {
- var h9P,
- f2P;
- h9P = 2;
- while (h9P !== 1) {
- f2P = "p";
- f2P += "t";
- f2P += "sSt";
- f2P += "ar";
- f2P += "ts";
- switch (h9P) {
- case 2:
- this.Ka.K.qhb || (a = {
- type: f2P,
- manifestIndex: a,
- mediaType: b,
- movieId: d,
- streamId: c,
- ptsStarts: h.PSa()
- }, p.Ja(this.Ka, a.type, a));
- h9P = 1;
- break;
- }
- }
- };
- X9P = 4;
- break;
- case 27:
- a.prototype.K6a = function (a, b, c, d) {
- var m2P,
- z4P;
- m2P = 2;
- while (m2P !== 4) {
- z4P = "updat";
- z4P += "eStreami";
- z4P += "ngPts";
- switch (m2P) {
- case 2:
- b = {
- type: z4P,
- mediaType: a,
- manifestIndex: b,
- trackIndex: c,
- movieTime: Math.floor(d)
- };
- l.Hl.Qn(a);
- p.Ja(this.Ka, b.type, b);
- m2P = 4;
- break;
- }
- }
- };
- a.prototype.q6a = function (a) {
- var H2P,
- g4P;
- H2P = 2;
- while (H2P !== 5) {
- g4P = "firs";
- g4P += "tRe";
- g4P += "q";
- g4P += "uestAppen";
- g4P += "ded";
- switch (H2P) {
- case 2:
- a = {
- type: g4P,
- manifestIndex: a.Ia.ad.R.Ya,
- mediatype: a.M,
- time: k.time.ea()
- };
- p.Ja(this.Ka, a.type, a);
- H2P = 5;
- break;
- }
- }
- };
- a.prototype.u6a = function (a, b) {
- var C2P,
- u4P;
- C2P = 2;
- while (C2P !== 5) {
- u4P = "i";
- u4P += "n";
- u4P += "it";
- u4P += "i";
- u4P += "alAudioTrack";
- switch (C2P) {
- case 2:
- a = {
- type: u4P,
- trackId: b,
- trackIndex: a
- };
- p.Ja(this.Ka, a.type, a);
- C2P = 5;
- break;
- }
- }
- };
- a.prototype.l6a = function (a, b) {
- var W2P,
- c4P;
- W2P = 2;
- while (W2P !== 3) {
- c4P = "audioTrack";
- c4P += "Swit";
- c4P += "chStarte";
- c4P += "d";
- switch (W2P) {
- case 2:
- a = a.cC;
- b = b.cC;
- b = {
- type: c4P,
- oldLangCode: a.language,
- oldNumChannels: a.channels,
- newLangCode: b.language,
- newNumChannels: b.channels
- };
- p.Ja(this.Ka, b.type, b);
- W2P = 3;
- break;
- }
- }
- };
- X9P = 23;
- break;
- case 18:
- a.prototype.y6a = function (a, b) {
- var n2P,
- c,
- e4P,
- V4P;
- n2P = 2;
- while (n2P !== 9) {
- e4P = "noti";
- e4P += "fyManifest";
- e4P += "Selected: ";
- V4P = "ma";
- V4P += "nifest";
- V4P += "S";
- V4P += "elect";
- V4P += "ed";
- switch (n2P) {
- case 5:
- a = {
- type: V4P,
- index: a,
- replace: b.R.ye.replace,
- ptsStarts: b.$H,
- streamingOffset: b.T + b.ms
- };
- c.Zg && (b = e4P + JSON.stringify(a), c.Zg && this.Dk(b));
- p.Ja(this.Ka, a.type, a);
- n2P = 9;
- break;
- case 2:
- c = this.Ka.K;
- n2P = 5;
- break;
- }
- }
- };
- X9P = 17;
- break;
- case 34:
- a.prototype.qAa = function () {
- var R2P,
- a,
- b,
- c,
- d,
- h,
- k,
- l,
- d4P;
- R2P = 2;
- while (R2P !== 19) {
- d4P = "up";
- d4P += "d";
- d4P += "at";
- d4P += "eB";
- d4P += "ufferLevel";
- switch (R2P) {
- case 8:
- this.Ka.zf.j9a(c, d);
- h = this.Ka.zb.ub.get();
- h = h.Ld ? h.Fa.Ca : 0;
- R2P = 14;
- break;
- case 5:
- R2P = !this.Ka.cf() ? 4 : 19;
- break;
- case 14:
- k = this.Ka.pa;
- l = k.$A(b, 0);
- b = k.$A(b, 1);
- c = {
- type: d4P,
- abuflbytes: l,
- vbuflbytes: b,
- totalabuflmsecs: c,
- totalvbuflmsecs: d,
- predictedFutureRebuffers: 0,
- currentBandwidth: h
- };
- d > a.RMa && this.Ka.zb.Ue && this.Ka.zb.Ue.VL(!0, this.Ka.al.sessionId);
- p.Ja(this.Ka, c.type, c);
- R2P = 19;
- break;
- case 2:
- a = this.Ka.K;
- R2P = 5;
- break;
- case 4:
- b = this.Ka.pa.Ub;
- c = b.Xi(0);
- d = b.Xi(1);
- R2P = 8;
- break;
- }
- }
- };
- a.prototype.P5a = function (a) {
- var O2P,
- b,
- f,
- d,
- K4P,
- T4P,
- x4P,
- n4P,
- p4P,
- k4P;
- O2P = 2;
- while (O2P !== 13) {
- K4P = ",";
- K4P += " s";
- K4P += "ystemDe";
- K4P += "lta: ";
- T4P = "memo";
- T4P += "ryUs";
- T4P += "a";
- T4P += "ge at tim";
- T4P += "e: ";
- x4P = ", ";
- x4P += "osAllocatorDel";
- x4P += "ta: ";
- n4P = ", jsHe";
- n4P += "apDe";
- n4P += "lt";
- n4P += "a: ";
- p4P = ", fastM";
- p4P += "allocDel";
- p4P += "ta: ";
- k4P = "memoryUs";
- k4P += "age at tim";
- k4P += "e";
- k4P += ": ";
- switch (O2P) {
- case 2:
- O2P = 1;
- break;
- case 1:
- O2P = !c.Y(a) ? 5 : 13;
- break;
- case 5:
- c.la(a.UQ);
- O2P = 4;
- break;
- case 4:
- O2P = !c.Y(this.WE) ? 3 : 14;
- break;
- case 3:
- b = a.IGa - this.WE.IGa;
- f = a.SJa - this.WE.SJa;
- d = a.uOa - this.WE.uOa;
- (4194304 < b || 4194304 < d) && this.G.warn(k4P + k.time.ea() + p4P + b + n4P + f + x4P + d);
- O2P = 6;
- break;
- case 6:
- c.la(a.UQ) && c.la(this.WE.UQ) && (b = a.UQ - this.WE.UQ, 4194304 < b && this.G.warn(T4P + k.time.ea(), K4P + b));
- O2P = 14;
- break;
- case 14:
- this.WE = a;
- O2P = 13;
- break;
- }
- }
- };
- a.prototype.L6a = function () {
- var I2P,
- a,
- m4P;
- I2P = 2;
- while (I2P !== 9) {
- m4P = "strea";
- m4P += "m";
- m4P += "ingst";
- m4P += "at";
- switch (I2P) {
- case 2:
- this.Ka.K.htb && k.memory.rmb(this.P5a.bind(this));
- a = {
- type: m4P,
- time: k.time.ea(),
- playbackTime: this.Ka.X.$d()
- };
- this.Ka.zf.Djb(a);
- p.Ja(this.Ka, a.type, a);
- I2P = 9;
- break;
- }
- }
- };
- X9P = 31;
- break;
- case 9:
- a.prototype.z6a = function (a, b, c) {
- var j9P,
- H4P;
- j9P = 2;
- while (j9P !== 5) {
- H4P = "ma";
- H4P += "x";
- H4P += "P";
- H4P += "osit";
- H4P += "ion";
- switch (j9P) {
- case 2:
- a = {
- type: H4P,
- index: a,
- endPts: b,
- maxPts: c
- };
- p.Ja(this.Ka, a.type, a);
- j9P = 5;
- break;
- }
- }
- };
- a.prototype.J6a = function (a, b, c, d, h, k) {
- var F9P,
- W4P,
- C4P;
- F9P = 2;
- while (F9P !== 4) {
- W4P = "notifyStream";
- W4P += "in";
- W4P += "gErro";
- W4P += "r: ";
- C4P = "e";
- C4P += "r";
- C4P += "r";
- C4P += "o";
- C4P += "r";
- switch (F9P) {
- case 2:
- a = {
- type: C4P,
- error: a,
- errormsg: b,
- networkErrorCode: c,
- httpCode: d,
- nativeCode: h,
- manifestIndex: k
- };
- this.G.error(W4P + JSON.stringify(a));
- p.Ja(this.Ka, a.type, a);
- F9P = 4;
- break;
- }
- }
- };
- a.prototype.dV = function (a, b) {
- var f9P,
- q4P;
- f9P = 2;
- while (f9P !== 5) {
- q4P = "segm";
- q4P += "entStarti";
- q4P += "ng";
- switch (f9P) {
- case 2:
- b = {
- type: q4P,
- segmentId: a.id,
- contentOffset: b,
- maxBitrates: {
- audio: a.R.wq[0],
- video: a.R.wq[1]
- }
- };
- a.Ly || p.Ja(this.Ka, b.type, b);
- f9P = 5;
- break;
- }
- }
- };
- a.prototype.D6a = function (a) {
- var z2P,
- b,
- S4P;
- z2P = 2;
- while (z2P !== 4) {
- S4P = "segme";
- S4P += "nt";
- S4P += "Aborted";
- switch (z2P) {
- case 1:
- b = {
- type: S4P,
- segmentId: a.id
- };
- a.Ly || p.Ja(this.Ka, b.type, b);
- z2P = 4;
- break;
- case 2:
- z2P = 1;
- break;
- }
- }
- };
- X9P = 14;
- break;
- case 14:
- a.prototype.j5a = function (a, b) {
- var g2P,
- f,
- d,
- h,
- I4P,
- O4P,
- R4P,
- D4P,
- v4P,
- b4P;
- g2P = 2;
- while (g2P !== 20) {
- I4P = "r";
- I4P += "e";
- I4P += "set";
- O4P = "s";
- O4P += "k";
- O4P += "ip";
- R4P = "l";
- R4P += "o";
- R4P += "n";
- R4P += "g";
- D4P = "l";
- D4P += "on";
- D4P += "g";
- v4P = "s";
- v4P += "eamles";
- v4P += "s";
- b4P = "sea";
- b4P += "m";
- b4P += "le";
- b4P += "ss";
- switch (g2P) {
- case 2:
- f = {
- segment: a,
- srcsegment: b.e2,
- srcoffset: b.DI,
- seamlessRequested: b.E1,
- atRequest: {},
- discard: {}
- };
- h = b.sd[a];
- h ? (d = h.weight, n(h.qM, f.atRequest)) : d = this.Ka.pa.VIa(b.e2, a);
- g2P = 3;
- break;
- case 7:
- f.transitionType = d;
- b.Kgb || (f.delayToTransition = b.jX);
- d = b4P === d ? 0 : k.time.ea() - b.startTime;
- g2P = 13;
- break;
- case 3:
- f.atRequest.weight = d;
- c.Yd(b.sd, function (b, c) {
- var u2P;
- u2P = 2;
- while (u2P !== 1) {
- switch (u2P) {
- case 2:
- c != a && (f.discard[c] = {
- weight: b.weight
- }, n(b.qM, f.discard[c]));
- u2P = 1;
- break;
- }
- }
- });
- d = b.E1 ? b.gZ ? v4P : D4P : b.pNa ? R4P : b.Zh ? O4P : I4P;
- g2P = 7;
- break;
- case 13:
- f.durationOfTransition = d;
- f.atTransition = b.cUa;
- f.srcsegmentduration = this.Ka.pa.Nnb(b.e2);
- return f;
- break;
- }
- }
- };
- a.prototype.G6a = function (a, b, c) {
- var c2P,
- s4P;
- c2P = 2;
- while (c2P !== 4) {
- s4P = "segment";
- s4P += "Pres";
- s4P += "ent";
- s4P += "in";
- s4P += "g";
- switch (c2P) {
- case 2:
- c = c ? this.j5a(a.id, c) : void 0;
- a = {
- type: s4P,
- segmentId: a.id,
- contentOffset: b,
- metrics: c,
- playlistSegment: a.Ly,
- manifestIndex: a.R.Ya
- };
- p.Ja(this.Ka, a.type, a);
- c2P = 4;
- break;
- }
- }
- };
- a.prototype.E6a = function (a, b) {
- var V2P,
- t4P;
- V2P = 2;
- while (V2P !== 5) {
- t4P = "s";
- t4P += "egmen";
- t4P += "t";
- t4P += "Appe";
- t4P += "nded";
- switch (V2P) {
- case 2:
- b = {
- type: t4P,
- segmentId: a.id,
- metrics: b
- };
- a.Ly || p.Ja(this.Ka, b.type, b);
- V2P = 5;
- break;
- }
- }
- };
- a.prototype.F6a = function (a, b, c) {
- var e2P,
- Y4P;
- e2P = 2;
- while (e2P !== 5) {
- Y4P = "s";
- Y4P += "egm";
- Y4P += "entComplete";
- switch (e2P) {
- case 2:
- a = {
- type: Y4P,
- mediaType: a,
- manifestIndex: b,
- segmentId: c.id
- };
- p.Ja(this.Ka, a.type, a);
- e2P = 5;
- break;
- }
- }
- };
- a.prototype.d$ = function (a, b) {
- var d2P,
- r4P;
- d2P = 2;
- while (d2P !== 5) {
- r4P = "la";
- r4P += "stS";
- r4P += "egmen";
- r4P += "tP";
- r4P += "ts";
- switch (d2P) {
- case 2:
- b = {
- type: r4P,
- segmentId: a.id,
- pts: Math.floor(b)
- };
- a.Ly || p.Ja(this.Ka, b.type, b);
- d2P = 5;
- break;
- }
- }
- };
- a.prototype.x6a = function (a, b, c, d, h) {
- var k2P,
- J4P;
- k2P = 2;
- while (k2P !== 5) {
- J4P = "m";
- J4P += "a";
- J4P += "nif";
- J4P += "estRan";
- J4P += "ge";
- switch (k2P) {
- case 2:
- a = {
- type: J4P,
- index: a,
- manifestOffset: b,
- startPts: Math.floor(c),
- endPts: Math.floor(d),
- maxPts: Math.floor(h)
- };
- p.Ja(this.Ka, a.type, a);
- k2P = 5;
- break;
- }
- }
- };
- a.prototype.rAa = function (a) {
- var p2P,
- E4P;
- p2P = 2;
- while (p2P !== 5) {
- E4P = "m";
- E4P += "axBi";
- E4P += "tr";
- E4P += "a";
- E4P += "tes";
- switch (p2P) {
- case 2:
- a = {
- type: E4P,
- audio: a[0],
- video: a[1]
- };
- p.Ja(this.Ka, a.type, a);
- p2P = 5;
- break;
- }
- }
- };
- X9P = 18;
- break;
- case 4:
- a.prototype.s6a = function (a, b) {
- var a9P,
- G4P;
- a9P = 2;
- while (a9P !== 5) {
- G4P = "h";
- G4P += "ead";
- G4P += "e";
- G4P += "r";
- G4P += "CacheHit";
- switch (a9P) {
- case 2:
- a = {
- type: G4P,
- movieId: a,
- streamId: b
- };
- p.Ja(this.Ka, a.type, a);
- a9P = 5;
- break;
- }
- }
- };
- a.prototype.r6a = function (a, b, c, d, h) {
- var U9P,
- f,
- P4P;
- U9P = 2;
- while (U9P !== 9) {
- P4P = "he";
- P4P += "aderCacheDa";
- P4P += "taHit";
- switch (U9P) {
- case 4:
- a = {
- type: P4P,
- movieId: a,
- audio: b,
- audioFromMediaCache: d,
- video: c,
- videoFromMediaCache: h,
- actualStartPts: f && f.Yl,
- headerCount: f && f.pq,
- stats: f && f.Zb
- };
- p.Ja(this.Ka, a.type, a);
- U9P = 9;
- break;
- case 2:
- f = this.Ka.Mza;
- this.Ka.Mza = void 0;
- U9P = 4;
- break;
- }
- }
- };
- X9P = 9;
- break;
- case 23:
- a.prototype.k6a = function (a, b) {
- var q2P,
- c;
- q2P = 2;
- while (q2P !== 4) {
- switch (q2P) {
- case 2:
- c = this;
- setTimeout(function () {
- var S2P,
- f,
- i4P;
- S2P = 2;
- while (S2P !== 4) {
- i4P = "au";
- i4P += "dioTrackSw";
- i4P += "itchComplete";
- switch (S2P) {
- case 2:
- f = {
- type: i4P,
- trackId: a,
- trackIndex: b
- };
- p.Ja(c.Ka, f.type, f);
- S2P = 4;
- break;
- }
- }
- }, 0);
- q2P = 4;
- break;
- }
- }
- };
- a.prototype.o6a = function (a) {
- var b2P,
- b,
- l4P;
- b2P = 2;
- while (b2P !== 3) {
- l4P = "buf";
- l4P += "ferin";
- l4P += "gSt";
- l4P += "a";
- l4P += "rted";
- switch (b2P) {
- case 2:
- b = {
- type: l4P,
- time: k.time.ea(),
- percentage: a || 0
- };
- b2P = 5;
- break;
- case 5:
- p.Ja(this.Ka, b.type, b);
- this.bx = a || 0;
- b2P = 3;
- break;
- }
- }
- };
- a.prototype.m6a = function () {
- var v2P,
- a,
- b,
- c,
- d,
- h,
- w4P;
- v2P = 2;
- while (v2P !== 14) {
- w4P = "bu";
- w4P += "f";
- w4P += "fe";
- w4P += "ring";
- switch (v2P) {
- case 2:
- a = this.Ka.K;
- b = k.time.ea();
- c = this.Ka.pa.Ub;
- d = this.Ka.Tk ? 1 : 0;
- v2P = 9;
- break;
- case 9:
- h = c.Le(d);
- c = c.Xi(d);
- a = Math.min(Math.max(Math.round(100 * (h.ty ? (b - this.Ka.X8) / a.Lv : h.Xh ? h.Xh : c / a.hh)), this.bx), 99);
- a != this.bx && (b = {
- type: w4P,
- time: b,
- percentage: a
- }, p.Ja(this.Ka, b.type, b), this.bx = a);
- v2P = 14;
- break;
- }
- }
- };
- a.prototype.c$ = function () {
- var D2P,
- a,
- b,
- c,
- d,
- h,
- A4P;
- D2P = 2;
- while (D2P !== 13) {
- A4P = "buf";
- A4P += "feringCo";
- A4P += "mplete";
- switch (D2P) {
- case 3:
- this.qAa();
- d = this.Ka.Tk ? this.Ka.ab.Wv[g.La.VIDEO] : this.Ka.ab.Wv[g.La.AUDIO];
- D2P = 8;
- break;
- case 2:
- a = this.Ka.pa.Ub;
- b = a.Le(0);
- c = a.Le(1);
- D2P = 3;
- break;
- case 8:
- h = d.rM;
- a = {
- type: A4P,
- time: k.time.ea(),
- actualStartPts: h,
- aBufferLevelMs: a.Xi(0),
- vBufferLevelMs: a.Xi(1),
- selector: c ? c.sI : b.sI,
- initBitrate: d.Vo,
- skipbackBufferSizeBytes: this.Ka.zb.$C
- };
- this.Ka.zf.Cjb({
- initSelReason: d.Zo,
- initSelectionPredictedDelay: d.Zu,
- buffCompleteReason: d.Wp,
- hashindsight: this.Ka.So,
- hasasereport: !!this.Ka.Hs
- });
- D2P = 14;
- break;
- case 14:
- p.Ja(this.Ka, a.type, a);
- D2P = 13;
- break;
- }
- }
- };
- X9P = 34;
- break;
- case 17:
- a.prototype.w6a = function (a, b, c, d, h) {
- var x2P,
- L4P;
- x2P = 2;
- while (x2P !== 4) {
- L4P = "manifestP";
- L4P += "rese";
- L4P += "nting";
- switch (x2P) {
- case 2:
- a = {
- type: L4P,
- index: a.Ya,
- pts: Math.floor(b),
- movieId: a.u,
- replace: a.ye.replace,
- contentOffset: c
- };
- null != d && null != h && (a.previousMovieId = d, a.previousIndex = h);
- p.Ja(this.Ka, a.type, a);
- x2P = 4;
- break;
- }
- }
- };
- a.prototype.H6a = function (a, b, c, d) {
- var T2P,
- f,
- M4P;
- T2P = 2;
- while (T2P !== 9) {
- M4P = "st";
- M4P += "reamPresent";
- M4P += "i";
- M4P += "ng";
- switch (T2P) {
- case 3:
- p.Ja(this.Ka, a.type, a);
- T2P = 9;
- break;
- case 2:
- f = a.M;
- l.Hl.Qn(f);
- a = {
- type: M4P,
- startPts: Math.floor(b),
- contentStartPts: Math.floor(c),
- mediaType: f,
- manifestIndex: d,
- trackIndex: a.track.KA,
- streamIndex: a.Kg
- };
- T2P = 3;
- break;
- }
- }
- };
- a.prototype.M6a = function (a) {
- var K2P,
- Z4P;
- K2P = 2;
- while (K2P !== 5) {
- Z4P = "v";
- Z4P += "ideoLo";
- Z4P += "o";
- Z4P += "p";
- Z4P += "ed";
- switch (K2P) {
- case 2:
- a = {
- type: Z4P,
- offset: a
- };
- p.Ja(this.Ka, a.type, a);
- K2P = 5;
- break;
- }
- }
- };
- X9P = 27;
- break;
- }
- }
- }
- ();
- b.tua = d;
- }, function (d, b, a) {
- var c,
- l,
- g,
- n;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Zsa = void 0;
- c = a(161);
- l = a(17);
- g = a(17);
- n = a(11);
- d = function () {
- var N4P;
- function a(a, b, c, d) {
- var B4P,
- A8J;
- B4P = 2;
- while (B4P !== 8) {
- A8J = "1S";
- A8J += "IYbZ";
- A8J += "rNJC";
- A8J += "p";
- A8J += "9";
- switch (B4P) {
- case 2:
- this.rb = a;
- this.G = b;
- this.jb = c;
- this.ix = d;
- this.zAa = this.N$ = !1;
- A8J;
- B4P = 8;
- break;
- }
- }
- }
- N4P = 2;
- while (N4P !== 6) {
- switch (N4P) {
- case 2:
- a.prototype.play = function () {
- var X4P,
- a,
- k8J,
- r8J;
- X4P = 2;
- while (X4P !== 4) {
- k8J = "p";
- k8J += "l";
- k8J += "a";
- k8J += "y";
- r8J = "play called after pipeline";
- r8J += "s";
- r8J += " already shutdown";
- switch (X4P) {
- case 2:
- a = this;
- this.cf() ? this.G.warn(r8J) : (this.rb.X.de(l.ma.Pc), this.rb.e8a(), this.rb.ab.Ne.forEach(function (b) {
- var y4P,
- x8J;
- y4P = 2;
- while (y4P !== 1) {
- x8J = "pl";
- x8J += "ay: no";
- x8J += "t resuming bufferManager, au";
- x8J += "di";
- x8J += "o track switch in progress";
- switch (y4P) {
- case 2:
- a.jb(b.M) && (b.eJ ? b.bb(x8J) : (a.rb.Af[b.M].resume(), a.rb.zr[b.M].resume()));
- y4P = 1;
- break;
- }
- }
- }), this.rb.KL(), this.rb.emit(k8J));
- X4P = 4;
- break;
- }
- }
- };
- a.prototype.stop = function () {
- var o4P,
- a,
- b,
- c,
- d,
- y8J;
- o4P = 2;
- while (o4P !== 12) {
- y8J = "s";
- y8J += "t";
- y8J += "o";
- y8J += "p";
- switch (o4P) {
- case 2:
- a = this;
- b = this.rb.X.ZKa();
- c = this.rb.X.Eg();
- this.rb.X.de(l.ma.pE);
- this.rb.qU();
- o4P = 8;
- break;
- case 8:
- b || c || this.rb.pa.Kk.g2(!1, this.rb.X);
- d = this.rb.pa.Ub;
- g.Pe.forEach(function (a) {
- var Q4P;
- Q4P = 2;
- while (Q4P !== 5) {
- switch (Q4P) {
- case 2:
- Q4P = (a = d.Jc(a)) ? 1 : 5;
- break;
- case 1:
- a.Lg = !1;
- Q4P = 5;
- break;
- }
- }
- });
- g.Pe.forEach(function (b) {
- var h4P;
- h4P = 2;
- while (h4P !== 1) {
- switch (h4P) {
- case 2:
- (b = a.rb.Af[b]) && b.pause();
- h4P = 1;
- break;
- }
- }
- });
- this.rb.emit(y8J);
- o4P = 12;
- break;
- }
- }
- };
- a.prototype.suspend = function () {
- var a4P;
- a4P = 2;
- while (a4P !== 1) {
- switch (a4P) {
- case 4:
- this.N$ = +1;
- a4P = 2;
- break;
- a4P = 1;
- break;
- case 2:
- this.N$ = !0;
- a4P = 1;
- break;
- }
- }
- };
- a.prototype.resume = function () {
- var U4P;
- U4P = 2;
- while (U4P !== 5) {
- switch (U4P) {
- case 2:
- this.N$ = !1;
- this.rb.hf.si();
- U4P = 5;
- break;
- }
- }
- };
- N4P = 3;
- break;
- case 3:
- a.prototype.close = function () {
- var j4P,
- a,
- X8J,
- j8J,
- T8J;
- j4P = 2;
- while (j4P !== 13) {
- X8J = "en";
- X8J += "d";
- X8J += "pl";
- X8J += "a";
- X8J += "y";
- j8J = "logd";
- j8J += "at";
- j8J += "a";
- T8J = "c";
- T8J += "l";
- T8J += "o";
- T8J += "se";
- switch (j4P) {
- case 7:
- this.rb.zb.Ue && this.rb.zb.Ue.VL(!0, this.rb.al.sessionId, !0);
- this.rb.Ua.PNa();
- this.rb.JQa();
- j4P = 13;
- break;
- case 2:
- a = this.rb.K;
- this.zAa = !0;
- j4P = 4;
- break;
- case 4:
- this.stop();
- this.rb.emit(T8J);
- this.rb.mF = !1;
- a.jGa && (a = c.ct.kg().mb()) && (a = {
- type: j8J,
- target: X8J,
- fields: {
- bridgestat: a
- }
- }, n.Ja(this.rb, a.type, a));
- j4P = 7;
- break;
- }
- }
- };
- a.prototype.flush = function () {
- var F4P,
- f4P,
- a,
- b,
- c,
- d,
- k,
- g,
- q,
- J8J,
- p8J,
- t8J,
- H8J,
- s8J,
- z8J,
- Z8J,
- w8J,
- S8J,
- Q8J,
- P8J;
- F4P = 2;
- while (F4P !== 25) {
- J8J = "end";
- J8J += "p";
- J8J += "l";
- J8J += "a";
- J8J += "y";
- p8J = "lo";
- p8J += "g";
- p8J += "d";
- p8J += "a";
- p8J += "ta";
- t8J = "e";
- t8J += "nd";
- t8J += "pla";
- t8J += "y";
- H8J = "logd";
- H8J += "a";
- H8J += "ta";
- s8J = "thro";
- s8J += "u";
- s8J += "g";
- s8J += "h";
- s8J += "put-sw";
- z8J = "thro";
- z8J += "ughpu";
- z8J += "t";
- z8J += "-sw";
- Z8J = "th";
- Z8J += "roughpu";
- Z8J += "t";
- Z8J += "-sw";
- w8J = "th";
- w8J += "rough";
- w8J += "put-sw";
- switch (F4P) {
- case 20:
- c && c.length && (d.activeRequests = JSON.stringify(c));
- this.rb.Md.R.CX(1) && (d.enableHudson = !0);
- d.aseApiVersion = this.rb.aW;
- F4P = 17;
- break;
- case 15:
- this.rb.Ua.pAa();
- F4P = 27;
- break;
- case 27:
- F4P = this.ix.So ? 26 : 25;
- break;
- case 16:
- b.lN && (k && k[w8J] && k[Z8J].Ca && this.rb.zp.x9a({
- avtp: k[z8J].Ca,
- variance: k[s8J].Ih
- }), this.rb.zp.q9a(g, null === (a = k.avtp) || void 0 === a ? void 0 : a.rX), a = this.rb.zp.Klb(), b = this.rb.zp.Snb(), a && (a.n = b, a = {
- type: H8J,
- target: t8J,
- fields: {
- ibef: a
- }
- }, n.Ja(this.rb, a.type, a), this.rb.zp.save()));
- F4P = 15;
- break;
- case 7:
- k && k.avtp && k.avtp.Ca && (d.avtp = k.avtp.Ca, d.dltm = k.avtp.rX, g.avtp = d.avtp);
- k && k.cdnavtp && (d.cdnavtp = k.cdnavtp, d.activecdnavtp = k.activecdnavtp);
- c.flush();
- q = c.eIa();
- c = c.GBa;
- F4P = 11;
- break;
- case 17:
- Object.keys(d).length && (d = {
- type: p8J,
- target: J8J,
- fields: d
- }, n.Ja(this.rb, d.type, d));
- F4P = 16;
- break;
- case 26:
- try {
- f4P = 2;
- while (f4P !== 1) {
- switch (f4P) {
- case 2:
- this.rb.KX(l.ma.pE);
- f4P = 1;
- break;
- }
- }
- } catch (D) {
- var N8J;
- N8J = "Hin";
- N8J += "dsight: Error evaluatin";
- N8J += "g QoE at ";
- N8J += "stopping: ";
- v3YY.l8J(0);
- this.rb.Ua.Am(v3YY.e8J(N8J, D));
- }
- F4P = 25;
- break;
- case 10:
- for (var m in q) {
- S8J = "n";
- S8J += "e";
- Q8J = "n";
- Q8J += "e";
- P8J = "n";
- P8J += "e";
- q.hasOwnProperty(m) && (d[P8J + m] = Number(q[m]).toFixed(6), g[Q8J + m] = 1 * d[S8J + m]);
- }
- F4P = 20;
- break;
- case 11:
- F4P = q ? 10 : 20;
- break;
- case 4:
- F4P = c ? 3 : 15;
- break;
- case 2:
- b = this.rb.K;
- c = this.rb.zb.ub;
- F4P = 4;
- break;
- case 3:
- d = {};
- k = c.get();
- g = {};
- F4P = 7;
- break;
- }
- }
- };
- a.prototype.cf = function () {
- var z3P;
- z3P = 2;
- while (z3P !== 1) {
- switch (z3P) {
- case 2:
- return this.zAa || this.rb.pa.tq;
- break;
- case 4:
- return this.zAa && this.rb.pa.tq;
- break;
- z3P = 1;
- break;
- }
- }
- };
- return a;
- break;
- }
- }
- }
- ();
- b.Zsa = d;
- }, function (d, b, a) {
- var c,
- l,
- g;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Eqa = void 0;
- c = a(7);
- l = a(17);
- g = a(4);
- d = function () {
- var E8J;
- function a(a, b, c) {
- var Y8J,
- r5n;
- Y8J = 2;
- while (Y8J !== 9) {
- r5n = "1SIY";
- r5n += "bZr";
- r5n += "N";
- r5n += "JC";
- r5n += "p9";
- switch (Y8J) {
- case 2:
- this.za = a;
- this.G = b;
- this.jb = c;
- r5n;
- this.Rya = this.gA = void 0;
- Y8J = 9;
- break;
- }
- }
- }
- E8J = 2;
- while (E8J !== 18) {
- switch (E8J) {
- case 4:
- a.prototype.tU = function (a) {
- var o8J;
- o8J = 2;
- while (o8J !== 1) {
- switch (o8J) {
- case 2:
- return this.kBa() || this.za.ab.Ne[a.M].eJ || this.za.Ow.qx ? !1 : !0;
- break;
- }
- }
- };
- a.prototype.si = function () {
- var O8J,
- a,
- b;
- O8J = 2;
- while (O8J !== 3) {
- switch (O8J) {
- case 2:
- a = this;
- b = this.za.K;
- !this.za.DAa || this.za.tV || this.za.mF || (this.za.tV = setTimeout(function () {
- var M8J;
- M8J = 2;
- while (M8J !== 4) {
- switch (M8J) {
- case 2:
- clearTimeout(a.za.tV);
- a.za.tV = void 0;
- a.pza();
- M8J = 4;
- break;
- }
- }
- }, b.gka), b.jG && this.za.Tk && (this.gA || (this.gA = setTimeout(function () {
- var L8J,
- b;
- L8J = 2;
- while (L8J !== 9) {
- switch (L8J) {
- case 2:
- clearTimeout(a.gA);
- a.gA = void 0;
- b = a.za.pa.Ub.Jc(1);
- b && a.Fya(b);
- L8J = 9;
- break;
- }
- }
- }, b.g9a))));
- O8J = 3;
- break;
- }
- }
- };
- a.prototype.Fya = function (a, b) {
- var g8J,
- c,
- f,
- d,
- k;
- g8J = 2;
- while (g8J !== 7) {
- switch (g8J) {
- case 2:
- c = a.M;
- f = this.za.ab.us[c].YB;
- d = a.Oq.ZB;
- g8J = 3;
- break;
- case 9:
- k = this.za.ab.Ne[c].Fm;
- k && (this.za.X.Dg() || this.za.zf.f9a(c, k, f.O, d.O, a.vpb.O, b));
- g8J = 7;
- break;
- case 3:
- g8J = f && d ? 9 : 7;
- break;
- }
- }
- };
- a.prototype.nza = function (a, b) {
- var b8J,
- c,
- f,
- d,
- k,
- l,
- U5n;
- b8J = 2;
- while (b8J !== 11) {
- U5n = "S";
- U5n += "til";
- U5n += "l in buffe";
- U5n += "ring st";
- U5n += "ate while pipeline's are done";
- switch (b8J) {
- case 7:
- b8J = !l || !k ? 6 : 13;
- break;
- case 8:
- c.CH || this.za.pa.yja(a, c, a.R.ye.Ef && 0 === a.R.Ya);
- b8J = 7;
- break;
- case 2:
- c = a.da;
- f = a.Jc(1);
- d = a.Jc(0);
- k = !d || d.Lg;
- l = !f || f.Lg;
- b8J = 8;
- break;
- case 6:
- b8J = (this.za.Tk && this.oza(a, f, d), this.za.Ho && this.oza(a, d, f), k = !d || d.Lg, l = !f || f.Lg, !l || !k) ? 14 : 13;
- break;
- case 14:
- return;
- break;
- case 13:
- this.za.X.Dg() && (this.G.warn(U5n), this.za.ab.Dt());
- b || c.Qs || a.R.ye.Ef || !this.Xbb(a) || ((b = this.za.X.Dg()) && this.za.K.Jca && (this.za.G$(), b = !1), a.eY || this.za.pa.zpb(a, b), a.CF(), a.Ybb() && (b = Object.keys(a.children), this.za.K.xX && 1 === b.length && !a.children[b[0]].active && this.za.pa.aMa(a, b[0]), this.H4a(a, c)));
- b8J = 11;
- break;
- }
- }
- };
- E8J = 7;
- break;
- case 7:
- a.prototype.H4a = function (a, b) {
- var G8J,
- d,
- f,
- k,
- l,
- p,
- n,
- q,
- m,
- W5n;
- G8J = 2;
- while (G8J !== 22) {
- W5n = "No subbranch";
- W5n += " c";
- W5n += "andidat";
- W5n += "es to drive";
- switch (G8J) {
- case 4:
- l = a.AE.Bl;
- G8J = 3;
- break;
- case 3:
- Math.min(l[0] - a.e9[0], l[1] - a.e9[1]) >= k.ecb ? a.AE = void 0 : (d = a.AE, f = b.Aj[d.da.id].weight);
- G8J = 9;
- break;
- case 12:
- d = n.reduce(function (a, b) {
- var R8J;
- R8J = 2;
- while (R8J !== 4) {
- switch (R8J) {
- case 2:
- b.Bl = b.ad.Bl;
- b.QMa = Math.min(b.Bl[0], b.Bl[1]);
- return [a[0] + b.weight, a[1] + b.QMa];
- break;
- }
- }
- }, [0, 0]);
- q = d[0];
- m = d[1];
- G8J = 20;
- break;
- case 26:
- a.e9 = d.Bl;
- G8J = 25;
- break;
- case 9:
- G8J = !d ? 8 : 25;
- break;
- case 19:
- G8J = 0 === n.length ? 18 : 16;
- break;
- case 16:
- d = n[0].ad;
- f = n[0].weight;
- a.AE = d;
- G8J = 26;
- break;
- case 18:
- this.G.warn(W5n);
- return;
- break;
- case 13:
- G8J = 1 < n.length ? 12 : 19;
- break;
- case 23:
- this.nza(d, !0);
- G8J = 22;
- break;
- case 5:
- G8J = this.za.zb.Fga && a.AE && a.e9 ? 4 : 9;
- break;
- case 8:
- p = [];
- n = [];
- c.Yd(a.children, function (a, c) {
- var W8J;
- W8J = 2;
- while (W8J !== 5) {
- switch (W8J) {
- case 2:
- c = b.Aj[c].weight;
- 0 !== c && (c = {
- weight: c,
- ad: a
- }, a.Aba(!0, !0) || n.push(c), p.push(c));
- W8J = 5;
- break;
- }
- }
- });
- 0 === n.length ? n = p : 2 < n.length && (n.sort(function (a, b) {
- var i8J;
- i8J = 2;
- while (i8J !== 1) {
- switch (i8J) {
- case 2:
- return b.weight - a.weight;
- break;
- case 4:
- return b.weight / a.weight;
- break;
- i8J = 1;
- break;
- }
- }
- }), n.length = 2);
- G8J = 13;
- break;
- case 20:
- 0 !== q && 0 !== m ? (c.Yd(n, function (a) {
- var q8J;
- q8J = 2;
- while (q8J !== 4) {
- switch (q8J) {
- case 2:
- a.hJb = a.weight / q;
- a.$ab = a.QMa / m;
- a.OUa = a.$ab - a.hJb;
- q8J = 4;
- break;
- }
- }
- }), n.sort(function (a, b) {
- var m8J;
- m8J = 2;
- while (m8J !== 1) {
- switch (m8J) {
- case 2:
- return a.OUa - b.OUa;
- break;
- case 4:
- return a.OUa / b.OUa;
- break;
- m8J = 1;
- break;
- }
- }
- })) : n.sort(function (a, b) {
- var v8J;
- v8J = 2;
- while (v8J !== 4) {
- switch (v8J) {
- case 2:
- a = Math.min.apply(null, a.ad.Bl);
- b = Math.min.apply(null, b.ad.Bl);
- v3YY.K5n(0);
- return v3YY.A5n(b, a);
- break;
- }
- }
- });
- G8J = 19;
- break;
- case 2:
- k = this.za.K;
- G8J = 5;
- break;
- case 25:
- d.sd || (d.sd = {
- GZ: g.time.ea(),
- Ry: 0
- });
- d.sd.weight = f;
- G8J = 23;
- break;
- }
- }
- };
- a.prototype.oza = function (a, b, d) {
- var n8J,
- f,
- h,
- k,
- l,
- p,
- n,
- g5n,
- o5n;
- n8J = 2;
- while (n8J !== 13) {
- g5n = "Still in buffering";
- g5n += " state while pipeline does not have vac";
- g5n += "ancy";
- o5n = "drivePipeline, delaying audio until video";
- o5n += " actua";
- o5n += "lStartPts determined";
- switch (n8J) {
- case 2:
- f = this.za.K;
- h = b.M;
- n8J = 4;
- break;
- case 3:
- k = this.za.ab.Ne[h];
- l = this.za.ab.Wv[h];
- p = this.za.ab.us[h];
- n8J = 7;
- break;
- case 7:
- n8J = k.Fm && (void 0 === b.xC || (b.WC(b.xC), void 0 === b.xC)) ? 6 : 13;
- break;
- case 4:
- n8J = !b.Lg ? 3 : 13;
- break;
- case 6:
- n = this.za.Md;
- c.Y(n.qC) || (f.Js && 0 === h && c.Y(this.za.ab.Ne[1].Yl) ? b.bb(o5n) : (c.Y(b.Ck) && (b.Ck = b.gg ? b.gg.index : b.dea(b.Mb)), b.mg && b.Ck > b.mg.index ? a.R.ye.Ef && c.Y(n.na) && c.Y(a.Wb) || (b.Lg || this.za.dBa(b), a = this.za.Md.R.Ya, a < this.za.FG() - 1 && this.za.MV(a + 1)) : this.tU(b) && (f.xib && !this.za.X.Dg() && 0 >= b.gC ? b.DHb(f.wub) : this.h4a(b, d) ? (b.isb = g.time.ea(), d = this.za.ab.Rfa(b), d = d.Kg, c.Y(d) || (d = b.track.Nc[d], this.g4a(b, d) || ((f = d.FY()) ? (b.Zrb = d.O, b.Dtb(d, f, this.za.X.Dg(), k.Fm), this.SHb(d, p, l), a.sd && ++a.sd.Ry) : d.oD()))) : this.za.X.Dg() && (b.uj(g5n), this.za.ab.Dt()))));
- n8J = 13;
- break;
- }
- }
- };
- a.prototype.SHb = function (a, b, d) {
- var U8J;
- U8J = 2;
- while (U8J !== 4) {
- switch (U8J) {
- case 2:
- b.m_ = a.uc;
- c.la(d.Vo) || (d.PHb(a.xp, a.Zu || -1, a.O, a.mQ), c.Y(a.mQ) || this.za.zf.aSa(a.mQ, a.wk, a.xk));
- a.url && (b.Pha = a.url);
- U8J = 4;
- break;
- }
- }
- };
- a.prototype.g4a = function (a, b) {
- var B8J,
- c;
- B8J = 2;
- while (B8J !== 4) {
- switch (B8J) {
- case 2:
- c = this.za.ab.us[a.M];
- return this.za.DAa && b.uc && c.m_ && b.uc !== c.m_ && (0 < a.Ia.Gv || 0 < a.Ia.Xs) ? !0 : !1;
- break;
- }
- }
- };
- a.prototype.h4a = function (a, b) {
- var d8J,
- d,
- f,
- k,
- p,
- n,
- q,
- m,
- r,
- K,
- t,
- J5n,
- D5n;
- d8J = 2;
- while (d8J !== 42) {
- J5n = "floored ";
- J5n += "to";
- J5n += " 0";
- D5n = "negative s";
- D5n += "cheduled";
- D5n += "BufferLevel:";
- switch (d8J) {
- case 19:
- d = this.za.Md.R;
- t = this.za.X.cv(d);
- d8J = 17;
- break;
- case 23:
- r = void 0;
- b && (r = b.M, K = g.uk()[r], r = f.jIb ? this.za.pa.cMa(p, r).ci / K : t / K);
- d8J = 21;
- break;
- case 15:
- q = this.za.pa.$A(p, k);
- t = 0;
- d8J = 26;
- break;
- case 12:
- return !1;
- break;
- case 16:
- return !1;
- break;
- case 10:
- d8J = n >= f.xy ? 20 : 19;
- break;
- case 2:
- f = this.za.K;
- k = a.M;
- p = a.r_;
- n = this.za.X.$d();
- d8J = 9;
- break;
- case 6:
- 0 > r && (a.bb(D5n, r, J5n), r = 0);
- K = b ? b.Mb : 0;
- d8J = 13;
- break;
- case 29:
- d8J = (p = this.za.X.Dg()) ? 28 : 43;
- break;
- case 33:
- return !1;
- break;
- case 21:
- d8J = void 0 === r || r < f.Utb ? 35 : 34;
- break;
- case 13:
- d8J = (null === (d = a.Jg) || void 0 === d ? 0 : d.ipb()) ? 12 : 11;
- break;
- case 30:
- return !1;
- break;
- case 25:
- d8J = this.za.zb.tha ? 24 : 23;
- break;
- case 26:
- d8J = b && (t = this.za.pa.$A(p, b.M), K = a.Mb - K, this.jb(b.M) && !b.Lg && K >= f.Lia && r > f.hh) ? 25 : 34;
- break;
- case 35:
- return !1;
- break;
- case 32:
- r = this.za.pa.KGb();
- d8J = 31;
- break;
- case 34:
- d8J = this.i5a(k) >= f.fC ? 33 : 32;
- break;
- case 44:
- return !1;
- break;
- case 28:
- d8J = (n = 1, a.gba < f.uv && (n = f.uv), a.Ia.Gv >= n) ? 44 : 43;
- break;
- case 20:
- return !1;
- break;
- case 31:
- d8J = !c.Y(f.ns) && r >= f.ns || a.NF + n >= Math.max(f.tv, this.za.zb.Yy + f.Gja * p.R.Ytb[k]) ? 30 : 29;
- break;
- case 24:
- return !1;
- break;
- case 11:
- n = a.Ia.B0;
- d8J = 10;
- break;
- case 17:
- d8J = q === l.ma.Pc && m > f.Vtb && !d.ye.Ef && !t || m && n > Math.max(m * f.Iia / 100, f.dja) ? 16 : 15;
- break;
- case 9:
- q = this.za.X.bd();
- m = this.za.pa.Mr(p, k);
- r = a.Mb + p.ie - n;
- d8J = 6;
- break;
- case 43:
- return f.DX && a.Ia.Gv >= f.Hia || !p && 0 < f.qs && 1 === k && q > f.qs || 0 < f.vv && !p && q + (b ? t : 0) > f.vv || void 0 !== this.Rya && m > this.Rya || 1 === k && d.ye.Ef && m > f.Fia && (b = this.za.zb.ub.get(), b.Ld && b.Fa && b.Fa.Ca * a.NF > f.Eia) ? !1 : !0;
- break;
- }
- }
- };
- a.prototype.i5a = function (a) {
- var D5J;
- D5J = 2;
- while (D5J !== 1) {
- switch (D5J) {
- case 2:
- return this.za.pa.Sc.reduce(function (b, c) {
- var f5J;
- f5J = 2;
- while (f5J !== 1) {
- switch (f5J) {
- case 4:
- return b % c.Enb(a);
- break;
- f5J = 1;
- break;
- case 2:
- return b + c.Enb(a);
- break;
- }
- }
- }, 0);
- break;
- }
- }
- };
- a.prototype.Xbb = function (a) {
- var a5J,
- b,
- d,
- f;
- a5J = 2;
- while (a5J !== 8) {
- switch (a5J) {
- case 2:
- b = this;
- d = this.za.pa;
- a5J = 4;
- break;
- case 4:
- f = !0;
- c.Yd(a.da.Aj, function (c, h) {
- var V5J,
- k,
- N5n,
- y5n;
- V5J = 2;
- while (V5J !== 6) {
- N5n = "in ";
- N5n += "de";
- N5n += "s";
- N5n += "t";
- N5n += "s:";
- y5n = "i";
- y5n += "n";
- y5n += "valid ";
- y5n += "segment:";
- switch (V5J) {
- case 2:
- V5J = 1;
- break;
- case 1:
- V5J = (c = d.ah(h)) ? 5 : 7;
- break;
- case 5:
- h = c.R;
- c = h.jg[0];
- k = h.jg[1];
- c && k && c.stream.ae && k.stream.ae || (f = !1);
- b.za.X.cv(h) || (f = !1);
- V5J = 6;
- break;
- case 7:
- a.bb(y5n, h, N5n, a.da.Aj);
- V5J = 6;
- break;
- }
- }
- });
- return f;
- break;
- }
- }
- };
- E8J = 20;
- break;
- case 20:
- a.prototype.z8a = function () {
- var u5J,
- a,
- b,
- c;
- u5J = 2;
- while (u5J !== 9) {
- switch (u5J) {
- case 2:
- a = this.za.K;
- b = this.za.pa;
- c = b.Ub;
- this.za.X.Dg() || b.Mr(c, 1) < a.XO || c.R.sia();
- u5J = 9;
- break;
- }
- }
- };
- return a;
- break;
- case 2:
- a.prototype.qU = function () {
- var F8J;
- F8J = 2;
- while (F8J !== 1) {
- switch (F8J) {
- case 2:
- this.gA && (clearTimeout(this.gA), this.gA = void 0);
- F8J = 1;
- break;
- }
- }
- };
- a.prototype.pza = function () {
- var I8J,
- a,
- b,
- c,
- f,
- l5n;
- I8J = 2;
- while (I8J !== 11) {
- l5n = "fi";
- l5n += "rstDr";
- l5n += "iveStreamin";
- l5n += "g";
- switch (I8J) {
- case 1:
- I8J = !this.za.uq.N$ && !this.za.cf() ? 5 : 11;
- break;
- case 2:
- I8J = 1;
- break;
- case 9:
- c = a.Ub.Jc(1);
- f = !c || c.Lg;
- (!b || b.Lg) && f && this.za.UE && a.zcb(c ? c.Wb : b.Wb);
- I8J = 6;
- break;
- case 5:
- void 0 === this.za.E4a && (this.za.E4a = !0, this.za.Ua.gk(l5n));
- a = this.za.pa;
- b = a.Ub.Jc(0);
- I8J = 9;
- break;
- case 6:
- c = !c || c.mo;
- b && !b.mo || !c || this.za.UE || (this.za.zb.Ue && this.za.zb.Ue.VL(!0, this.za.al.sessionId), this.za.Ua.PNa());
- this.nza(a.Ub);
- this.z8a();
- I8J = 11;
- break;
- }
- }
- };
- a.prototype.kBa = function () {
- var C8J;
- C8J = 2;
- while (C8J !== 1) {
- switch (C8J) {
- case 2:
- return this.za.cf() || this.za.X.ZKa() || this.za.X.Eg() ? !0 : !1;
- break;
- }
- }
- };
- E8J = 4;
- break;
- }
- }
- }
- ();
- b.Eqa = d;
- }, function (d, b, a) {
- var c,
- l;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Dqa = void 0;
- c = a(7);
- l = a(156);
- d = function () {
- var S5n;
- S5n = 2;
- while (S5n !== 7) {
- switch (S5n) {
- case 3:
- a.prototype.bza = function (a, b, c, d, f) {
- var T5n,
- h,
- k,
- h5n,
- H5n,
- j5n,
- Z5n;
- T5n = 2;
- while (T5n !== 14) {
- h5n = "t";
- h5n += "ransportrep";
- h5n += "or";
- h5n += "t";
- H5n = "e";
- H5n += "r";
- H5n += "r";
- H5n += "o";
- H5n += "r";
- j5n = "ne";
- j5n += "tworkf";
- j5n += "ailin";
- j5n += "g";
- Z5n = "cre";
- Z5n += "ate";
- Z5n += "d";
- switch (T5n) {
- case 2:
- h = this;
- k = l.Ip.kg.gB(a, b, !0, c, d, f);
- T5n = 4;
- break;
- case 4:
- k.Ak.on(k, Z5n, function () {
- var R5n,
- Y5n;
- R5n = 2;
- while (R5n !== 5) {
- Y5n = "c";
- Y5n += "re";
- Y5n += "ateDl";
- Y5n += "Tra";
- Y5n += "cksEnd";
- switch (R5n) {
- case 2:
- --h.xA;
- 0 === h.xA && h.ql.Ua.gk(Y5n);
- R5n = 5;
- break;
- }
- }
- });
- k.Ak.on(k, j5n, function () {
- var t5n,
- a,
- I5n;
- t5n = 2;
- while (t5n !== 8) {
- I5n = "r";
- I5n += "e";
- I5n += "portNetworkFa";
- I5n += "ili";
- I5n += "ng: ";
- switch (t5n) {
- case 4:
- a = h.ql.Md.R;
- a.Rh && a.Rh.pp(k.Zda, void 0, k.zh, k.aj);
- a.Cp();
- t5n = 8;
- break;
- case 5:
- t5n = k.OX ? 4 : 8;
- break;
- case 2:
- f.Zg && h.Tg.Dk(I5n + k);
- t5n = 5;
- break;
- }
- }
- });
- k.Ak.on(k, H5n, function () {
- var L5n,
- z5n,
- k5n,
- X5n;
- L5n = 2;
- while (L5n !== 5) {
- z5n = "NFErr";
- z5n += "_MC_Stre";
- z5n += "amingFailure";
- k5n = "Downl";
- k5n += "oa";
- k5n += "dTrack fat";
- k5n += "al err";
- k5n += "or";
- X5n = "Downlo";
- X5n += "ad";
- X5n += "Track fatal ";
- X5n += "error";
- switch (L5n) {
- case 2:
- f.Zg && h.Tg.Dk(X5n);
- h.ql.fl(k5n, void 0, z5n, k.zh, 0, k.aj);
- L5n = 5;
- break;
- }
- }
- });
- k.on(h5n, function (a) {
- var M5n,
- n5n;
- M5n = 2;
- while (M5n !== 1) {
- n5n = "tr";
- n5n += "ans";
- n5n += "por";
- n5n += "tr";
- n5n += "eport";
- switch (M5n) {
- case 4:
- h.ql.emit("", a);
- M5n = 8;
- break;
- M5n = 1;
- break;
- case 2:
- h.ql.emit(n5n, a);
- M5n = 1;
- break;
- }
- }
- });
- T5n = 7;
- break;
- case 7:
- k.Db();
- return k;
- break;
- }
- }
- };
- a.prototype.C4a = function (a) {
- var f5n,
- b;
- f5n = 2;
- while (f5n !== 8) {
- switch (f5n) {
- case 3:
- l.Ip.kg.nX(b);
- a.Fm = void 0;
- f5n = 8;
- break;
- case 2:
- a = this.ql.ab.Ne[a];
- b = a.Fm;
- b.bq || --this.xA;
- f5n = 3;
- break;
- }
- }
- };
- return a;
- break;
- case 2:
- a.prototype.q4a = function (a, b) {
- var F5n,
- c,
- d,
- G5n;
- F5n = 2;
- while (F5n !== 6) {
- G5n = "cre";
- G5n += "at";
- G5n += "eDlTra";
- G5n += "ck";
- G5n += "sStart";
- switch (F5n) {
- case 2:
- c = this;
- d = this.ql.K;
- 0 === this.xA && this.ql.Ua.gk(G5n);
- this.xA += a.length;
- a = a.map(function (a) {
- var q5n;
- q5n = 2;
- while (q5n !== 1) {
- switch (q5n) {
- case 2:
- return c.bza(a, b.u, b.$u(), c.ql.al, d);
- break;
- }
- }
- });
- F5n = 8;
- break;
- case 8:
- l.Ip.kg.kf();
- return a;
- break;
- }
- }
- };
- a.prototype.D4a = function () {
- var w5n,
- a,
- b;
- w5n = 2;
- while (w5n !== 8) {
- switch (w5n) {
- case 3:
- this.ql.bL && (b.push(this.ql.bL), this.ql.bL = void 0);
- b.forEach(function (b) {
- var P5n;
- P5n = 2;
- while (P5n !== 5) {
- switch (P5n) {
- case 2:
- b.bq || --a.xA;
- l.Ip.kg.nX(b);
- P5n = 5;
- break;
- }
- }
- });
- w5n = 8;
- break;
- case 2:
- a = this;
- b = [];
- this.ql.ab.Ne.forEach(function (a) {
- var E5n;
- E5n = 2;
- while (E5n !== 5) {
- switch (E5n) {
- case 2:
- c.Y(a.Fm) || b.push(a.Fm);
- a.Fm = void 0;
- E5n = 5;
- break;
- }
- }
- });
- w5n = 3;
- break;
- }
- }
- };
- a.prototype.x5a = function () {
- var B5n;
- B5n = 2;
- while (B5n !== 1) {
- switch (B5n) {
- case 4:
- this.xA = 6;
- B5n = 3;
- break;
- B5n = 1;
- break;
- case 2:
- this.xA = 0;
- B5n = 1;
- break;
- }
- }
- };
- a.prototype.TAa = function (a, b) {
- var p5n,
- c,
- d;
- p5n = 2;
- while (p5n !== 3) {
- switch (p5n) {
- case 2:
- c = this.ql.ab.Ne[a];
- d = c.Fm;
- p5n = 4;
- break;
- case 4:
- d && (d = b.caa(a, d), this.C4a(a), c.Fm = this.bza(a, b.u, b.$u(), this.ql.al, this.ql.K), b.Ala(d));
- p5n = 3;
- break;
- }
- }
- };
- S5n = 3;
- break;
- }
- }
- function a(a, b, c) {
- var b5n,
- e5n;
- b5n = 2;
- while (b5n !== 3) {
- e5n = "1";
- e5n += "SIYb";
- e5n += "ZrNJC";
- e5n += "p9";
- switch (b5n) {
- case 2:
- this.ql = a;
- this.G = b;
- this.Tg = c;
- e5n;
- b5n = 3;
- break;
- }
- }
- }
- }
- ();
- b.Dqa = d;
- }, function (d, b, a) {
- var c;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Vpa = void 0;
- c = a(370);
- d = function () {
- var s9n;
- s9n = 2;
- while (s9n !== 3) {
- switch (s9n) {
- case 2:
- a.prototype.E3a = function (a, b) {
- var v9n,
- d,
- K9n,
- A9n,
- Q9n,
- O9n,
- m9n,
- C9n,
- x9n,
- c9n,
- V9n;
- v9n = 2;
- while (v9n !== 13) {
- K9n = "using";
- K9n += " sab cel";
- K9n += "l >= 100, p";
- K9n += "ipelineEnabled: ";
- A9n = "using sab c";
- A9n += "e";
- A9n += "ll >= 200, pipelineEnabled:";
- A9n += " ";
- Q9n = ", allo";
- Q9n += "wS";
- Q9n += "witc";
- Q9n += "h";
- Q9n += "back";
- O9n = ", probeDet";
- O9n += "a";
- O9n += "ilDen";
- O9n += "ominator: ";
- m9n = "using sab cell >= 300, pr";
- m9n += "obeServe";
- m9n += "rWhenError: ";
- C9n = ", ";
- C9n += "a";
- C9n += "llowSwitchb";
- C9n += "a";
- C9n += "ck";
- x9n = ", ";
- x9n += "p";
- x9n += "ro";
- x9n += "beDetailDenomina";
- x9n += "tor: ";
- c9n = "usin";
- c9n += "g sab cell >";
- c9n += "= 400, probeServer";
- c9n += "WhenErr";
- c9n += "or: ";
- V9n = "applying mani";
- V9n += "fest based streamin";
- V9n += "gClientCo";
- V9n += "nfig";
- switch (v9n) {
- case 4:
- v9n = d && d.streamingClientConfig && Object.keys(d.streamingClientConfig).length ? 3 : 9;
- break;
- case 2:
- b = c.fca(b, a);
- d = a.steeringAdditionalInfo;
- v9n = 4;
- break;
- case 9:
- a = a.cdnResponseData;
- v9n = 8;
- break;
- case 3:
- return a = d.streamingClientConfig,
- this.G.trace(V9n + JSON.stringify(a)),
- this.yAa(b, a);
- break;
- case 8:
- v9n = !a ? 7 : 6;
- break;
- case 6:
- (a = a.sessionABTestCell) && (a = a.split(".")) && 1 < a.length && (a = parseInt(a[1].replace(/cell/i, ""), 10), 400 <= a ? (b.set ? (b.set({
- probeServerWhenError: !0
- }), b.set({
- probeDetailDenominator: 1
- }), b.set({
- allowSwitchback: !0
- })) : (b.Fq = !0, b.FC = 1, b.du = !0), this.G.trace(c9n + b.Fq + x9n + b.FC + C9n + b.du)) : 300 <= a ? (b.set ? (b.set({
- probeServerWhenError: !0
- }), b.set({
- probeDetailDenominator: 1
- }), b.set({
- allowSwitchback: !1
- })) : (b.Fq = !0, b.FC = 1, b.du = !1), this.G.trace(m9n + b.Fq + O9n + b.FC + Q9n + b.du)) : 200 <= a ? (b.set ? b.set({
- pipelineEnabled: !1
- }) : b.lp = !1, this.G.trace(A9n + b.lp)) : 100 <= a && (b.set ? (b.set({
- pipelineEnabled: !0
- }), b.set({
- maxParallelConnections: 1
- }), b.set({
- maxActiveRequestsPerSession: b.B_
- }), b.set({
- maxPendingBufferLen: b.F_
- })) : (b.lp = !0, b.lH = 1, b.ns = b.B_, b.xy = b.F_), this.G.trace(K9n + b.lp)));
- return b;
- break;
- case 7:
- return b;
- break;
- }
- }
- };
- a.prototype.G3a = function (a, b) {
- var u9n;
- u9n = 2;
- while (u9n !== 9) {
- switch (u9n) {
- case 1:
- return b;
- break;
- case 2:
- u9n = !b.eca || a === this.G5a ? 1 : 5;
- break;
- case 5:
- this.G5a = a;
- for (var c in b.eca)
- new RegExp(c).test(a) && (b = this.yAa(b, b.eca[c]));
- return b;
- break;
- }
- }
- };
- a.prototype.yAa = function (a, b) {
- var a9n,
- c,
- d,
- h,
- i9n;
- a9n = 2;
- while (a9n !== 4) {
- switch (a9n) {
- case 2:
- for (d in b)
- if (b.hasOwnProperty(d)) {
- i9n = "Invali";
- i9n += "d";
- i9n += " key";
- h = b[d];
- a.set ? 0 === a.set((c = {}, c[d] = h, c)) && this.G.trace(i9n + d) : a[d] = h;
- }
- return a;
- break;
- }
- }
- };
- return a;
- break;
- }
- }
- function a(a) {
- var d9n,
- r9n;
- d9n = 2;
- while (d9n !== 5) {
- r9n = "1";
- r9n += "SIYbZ";
- r9n += "rNJ";
- r9n += "Cp";
- r9n += "9";
- switch (d9n) {
- case 2:
- this.G = a;
- r9n;
- d9n = 5;
- break;
- }
- }
- }
- }
- ();
- b.Vpa = d;
- }, function (d, b, a) {
- var c,
- l,
- g;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Rsa = void 0;
- c = a(0);
- d = a(386);
- l = a(63);
- g = a(365);
- a = function (a) {
- function b() {
- return null !== a && a.apply(this, arguments) || this;
- }
- c.__extends(b, a);
- b.prototype.phb = function (b) {
- a.prototype.g_.call(this, {
- value: b
- });
- };
- b.prototype.EKa = function () {
- return !0;
- };
- b.prototype.Mma = function () {};
- b.prototype.g_ = function (b) {
- a.prototype.g_.call(this, b);
- b.done && (b = this.dF.XW, l.Za && this.G.trace("Requests drained", {
- dRb: b && b.da.id
- }), (b = b && b.Le(this.Re)) && b instanceof g.SS && b.KF(this.nr.mfa() || 0));
- };
- return b;
- }
- (d.r3);
- b.Rsa = a;
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.oIa = void 0;
- b.oIa = function (a) {
- var b,
- d,
- g;
- b = Math.floor(1E6 * Math.random());
- d = a.xga;
- g = a.VN;
- a = 0 === b % a.yga && 0 < g.length;
- return {
- So: a,
- kG: a && 0 === b % d
- };
- };
- }, function (d, b, a) {
- var l;
- function c(a) {
- this.Vt = void 0;
- this.X5a = a;
- this.B$ = [];
- this.ue = [];
- }
- l = a(32).UB;
- c.prototype.reset = function (a) {
- this.Vt = void 0;
- this.B$ = [];
- a && (this.ue = []);
- };
- c.prototype.add = function (a, b) {
- var c,
- d;
- c = b.filter(function (b, c) {
- return l(b) || c === a.vd;
- });
- d = c.map(function (a) {
- return a.O;
- });
- b = c.indexOf(b[a.vd]);
- this.Vt && (this.Vt.length !== d.length || this.Vt.some(function (a, b) {
- return a !== d[b];
- })) && (c = this.PHa()) && (this.ue.push(c), this.reset(!1));
- void 0 === this.Vt && (this.Vt = d);
- this.B$.push([b, a.nUa, a.Mb, a.cbb, a.lDa, a.Uyb, a.rwb, a.Ky, a.Eo, a.Si, a.dGb - a.nUa]);
- };
- c.prototype.Hib = function () {
- for (var a = this.B$, b = [], c = [], d = 0; d < a.length; d++) {
- for (var h = a[d], f = [], l = 0; l < h.length; l++)
- f.push(h[l] - (c[l] || 0));
- b.push(f);
- c = h;
- }
- return b;
- };
- c.prototype.PHa = function () {
- var a;
- a = this.Hib();
- if (0 !== a.length)
- return {
- dltype: this.X5a,
- bitrates: this.Vt,
- seltrace: a
- };
- };
- c.prototype.get = function () {
- var a,
- b;
- a = this.PHa();
- b = this.ue;
- a && b.push(a);
- if (0 !== b.length)
- return b;
- };
- d.P = c;
- }, function (d, b, a) {
- var c,
- l;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.vwa = void 0;
- c = a(18);
- l = a(724);
- d = function () {
- function a() {
- this.HV = [];
- this.HV[c.La.VIDEO] = new l(c.La.VIDEO);
- this.HV[c.La.AUDIO] = new l(c.La.AUDIO);
- }
- a.prototype.K9a = function (a, b, c) {
- this.HV[a].add(b, c);
- };
- a.prototype.Znb = function () {
- var a;
- a = [];
- this.HV.forEach(function (b) {
- var c;
- if (b) {
- c = b.get();
- c && 0 < c.length && c.forEach(function (b) {
- a.push(b);
- });
- b.reset(!0);
- }
- });
- return a;
- };
- a.prototype.Bjb = function (a) {
- var b;
- b = this.Znb();
- a.strmsel = b;
- return 0 < b.length;
- };
- return a;
- }
- ();
- b.vwa = d;
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.kK = void 0;
- d = function () {
- function a(a) {
- this.pi = {};
- this.W9 = a;
- this.ff = [];
- this.Co = !1;
- this.CA = void 0;
- }
- a.prototype.XV = function (a) {
- this.ff.length === this.W9 && this.ff.shift();
- Array.isArray(a) ? this.ff = this.ff.concat(a) : this.ff.push(a);
- this.Co = !0;
- };
- a.prototype.IG = function () {
- return this.ff.length;
- };
- a.prototype.pba = function () {
- var a;
- a = this.ff;
- return 0 < a.length ? a.reduce(function (a, b) {
- return a + b;
- }, 0) / this.ff.length : void 0;
- };
- a.prototype.xW = function () {
- var a,
- b;
- a = this.ff;
- b = this.pba();
- if (0 < a.length && "undefined" !== typeof b)
- return a = a.reduce(function (a, b) {
- return a + b * b;
- }, 0) / a.length, Math.sqrt(a - b * b);
- };
- a.prototype.Xp = function (a) {
- var b,
- c,
- d;
- if (this.Co || void 0 === this.CA)
- this.CA = this.ff.slice(0).sort(function (a, b) {
- return a - b;
- }), this.Co = !1;
- if (void 0 === this.pi[a]) {
- b = this.CA;
- c = Math.floor(a / 100 * (b.length - 1) + 1) - 1;
- d = (a / 100 * (b.length - 1) + 1) % 1;
- this.pi[a] = c === b.length - 1 ? b[c] : b[c] + d * (b[c + 1] - b[c]);
- }
- return this.pi[a];
- };
- return a;
- }
- ();
- b.kK = d;
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.ota = void 0;
- d = function () {
- function a(a, b, d) {
- this.u8a = b;
- this.O3a = d;
- this.G = a;
- }
- a.prototype.xka = function (a) {
- a = this.sqb(a, this.u8a) + this.O3a;
- return this.r$ = isNaN(a) ? NaN : this.Bma(a);
- };
- a.prototype.ncb = function (a) {
- return isNaN(this.r$) ? 0 : this.r$ > a ? 1 : 0;
- };
- a.prototype.sqb = function (a, b) {
- var c;
- c = 0;
- if (a.length !== b.length)
- c = NaN;
- else
- for (var d = 0; d < a.length; d++)
- c += a[d] * b[d];
- return c;
- };
- a.prototype.Bma = function (a) {
- return 1 / (1 + Math.exp(-a));
- };
- return a;
- }
- ();
- b.ota = d;
- }, function (d, b, a) {
- var n,
- k;
- function c(a, b, c) {
- var f,
- d;
- a = Math.max(0, a);
- f = [];
- c.forEach(function (a) {
- f.push(a[b].ba);
- });
- c = f.filter(function (b) {
- return b <= a;
- });
- if (0 < c.length)
- c = c[c.length - 1], d = f.lastIndexOf(c);
- else
- throw Error("selectStream infeasible");
- return {
- wp: c,
- vd: d
- };
- }
- function l(a, b, c) {
- b = Math.min(a.length - 1, b);
- b = Math.max(0, b);
- return a[b] * c * 1 / 8;
- }
- function g(a, b, c, d, l) {
- var f,
- h,
- g,
- p,
- n,
- u;
- f = a.Eh;
- h = c + f.T;
- c = a.Sk[f.gO];
- a = a.cba;
- g = {
- qR: !0,
- waitUntil: void 0,
- lO: !1
- };
- p = c.filter(function (a) {
- return a && a.T <= h && a.T + a.duration > h;
- })[0];
- if (void 0 === p)
- return {
- lO: !0
- };
- n = l - 1 - (p.index - 1);
- d = f.sR + d;
- u = 0;
- u = p.index < f.Gh ? u + c.slice(f.Uv, p.index).reduce(function (a, b) {
- return a + b.ba;
- }, 0) : u + f.sR;
- u = u + b.slice(f.Gh, p.index).reduce(function (a, b) {
- return a + b.wp;
- }, 0);
- d -= u;
- if (n >= a.JO || d >= a.aJ)
- for (g.qR = !1, p = p.index; p < l && (n >= a.JO || d >= a.aJ); )
- k.update("checkBufferVacancy loop"), g.waitUntil = c[p].T + c[p].duration - f.T, d = p < f.Gh ? d - c[p].ba : d - b[p].wp, --n, p += 1;
- return g;
- }
- n = a(6).assert;
- k = a(104).hwa || a(104);
- d.P = {
- RN: function (a) {
- var b,
- t,
- R,
- P,
- ba,
- z,
- T,
- U,
- ea,
- ha,
- V,
- x,
- N,
- na;
- k.S1("htwbr-" + (a.lQ ? "segvmaf" : "dlvmaf") + ": ");
- for (var f = a.Eh, d = a.jm, p = d.rl, q = a.Sk, m = !0, r = [], D, K = p = Math.min(d.ps, p); K >= f.Gh; K--) {
- k.update("backward step");
- b = a.Sk[0][K].T - a.Eh.T;
- K < p && (b = Math.min(r[K + 1].startTime, b));
- d = q[0][K].ba;
- D = f.sx * q[0][K].duration * 1 / 8;
- a: {
- t = void 0;
- z = d + D;
- D = a.Qq;
- T = f.np;
- U = D.trace;
- ea = 1 * D.bm;
- R = b + T - D.timestamp;
- P = Math.floor(1 * R / ea);
- ba = 0 + (R - P * ea) / ea * l(U, P, ea);
- if (ba >= z)
- t = R - 1 * z / ba * (R - P * ea);
- else
- for (R = P; ba < z; ) {
- k.update("findDownloadStartTime loop");
- --R;
- if (0 > R) {
- t = -1;
- break a;
- }
- P = l(U, R, ea);
- if (ba + P >= z) {
- t = 1 * (z - ba) / P * ea;
- t = (R + 1) * ea - t;
- break;
- }
- ba += P;
- }
- t = t + D.timestamp - T;
- }
- if (0 > t) {
- m = !1;
- break;
- }
- r[K] = {
- startTime: t,
- endTime: b,
- $W: b,
- wp: d,
- vd: 0
- };
- }
- b = {
- yi: m,
- Os: r,
- ap: !1,
- Dy: 0 === r.length
- };
- if (!1 === b.yi || !0 === b.Dy)
- return b;
- a: {
- f = a.Eh;
- p = a.jm;
- q = p.rl;
- m = a.Sk;
- d = r = 0;
- b = b.Os;
- t = K = 0;
- q = Math.min(p.ps, q);
- for (T = f.Gh; T <= q; T++) {
- k.update("forwardStep loop");
- ba = b[T];
- z = ba.vd;
- D = m[z][T].duration;
- ea = T === f.Gh ? 0 : b[T - 1].endTime;
- z = g(a, b, ea, r, T);
- if (z.lO) {
- b = {
- yi: !1,
- ap: !0
- };
- break a;
- }
- z.qR || (ea = z.waitUntil);
- P = ba.$W;
- V = a.Qq;
- ha = f.np;
- ba = 0;
- z = V.trace;
- U = 1 * V.bm;
- R = ea + ha - V.timestamp;
- V = P + ha - V.timestamp;
- if (!(ea >= P)) {
- n(0 <= R);
- n(0 <= V);
- n(V >= R);
- x = Math.floor(1 * R / U);
- N = 1 * V / U;
- if (x === Math.floor(N))
- R = (V - R) / U * l(z, x, U), n(0 <= R), ba += R;
- else
- for (N = Math.ceil(N), ha = x, P = N, x * U < R && (ha++, R = (ha * U - R) / U * l(z, x, U), n(0 <= R), ba += R), N * U > V && (P--, R = (V - P * U) / U * l(z, P, U), n(0 <= R), ba += R), R = ha; R < P; R++)
- ba += l(z, R, U);
- }
- U = f.sx * D * 1 / 8;
- d += U;
- z = c(Math.max(0, ba - U), T, m);
- if (void 0 === z) {
- b = {
- yi: !1,
- ap: !0
- };
- break a;
- }
- ba = z.wp;
- z = z.vd;
- U = ba + U;
- ha = a.Qq;
- P = R = 0;
- V = ha.trace;
- x = Math.max(0, ea + f.np - ha.timestamp);
- ha = 1 * ha.bm;
- na = N = Math.max(0, Math.floor(1 * x / ha));
- for (na * ha < x && (N += 1, x = na * ha + ha - x, na = x / ha * l(V, na, ha), R = U - P < na ? R + (U - P) / na * 1 * x : R + x, P += na); P < U; )
- k.update("getDownloadTime"), x = l(V, N, ha), R = U - P < x ? R + (U - P) / x * 1 * ha : R + ha, P += x, N += 1;
- U = R;
- b[T].startTime = ea;
- b[T].endTime = ea + U;
- b[T].wp = ba;
- b[T].vd = z;
- T <= p.rl && (r += ba, t += D, K += D * a.Nc[z].O);
- }
- b = {
- yi: !0,
- ap: !1,
- Os: b,
- xhb: 0 < t ? 1 * K / t : 0,
- fda: t,
- eda: r,
- dda: d
- };
- }
- b.xq = k.tfa();
- console.log("Max heap used: " + Math.round(b.xq / 1024 / 1024) + " MB");
- return b;
- }
- };
- }, function (d, b, a) {
- var r,
- C,
- H,
- D;
- function c(a, b, c) {
- this.$Ca = this.k4a(a, b, c);
- }
- function l() {}
- function g() {}
- function n() {}
- function k(a) {
- this.hcb = a;
- }
- function p() {}
- function h() {}
- function f() {}
- function u() {
- this.ada = {};
- }
- function m(a) {
- return Array.apply(0, Array(a)).map(function (a, b) {
- return b + 1;
- });
- }
- r = a(6).assert;
- b = a(203).lpa;
- C = a(363).V2a;
- H = a(203).YWa;
- new(a(4)).Console("ASEJS_QOE_EVAL", "media|asejs");
- D = a(104).hwa || a(104);
- c.prototype.constructor = c;
- c.prototype.k4a = function (a, b, c) {
- r(a < b, "expect min_buffer_sec < max_buffer_sec but got " + a + " and " + b);
- r(0 < c, "expect buffer_step_sec > 0. but got " + c);
- for (var f = []; a < b; a += c)
- f.push(a);
- f[f.length - 1] < b && f.push(b);
- return f;
- };
- c.prototype.dy = function (a) {
- return this.k5a(a, this.$Ca);
- };
- c.prototype.k5a = function (a, b) {
- a = this.mhb(a, b);
- if (0 === a)
- throw new l();
- if (a === b.length)
- throw new g();
- return a;
- };
- c.prototype.mhb = function (a, b) {
- r(0 < b.length, "expect bins.length > 0 but got " + b.length);
- if (a < b[0])
- return 0;
- if (a >= b[b.length - 1])
- return b.length;
- for (var c = 1; c < b.length; c++)
- if (b[c - 1] <= a && a < b[c])
- return c;
- r(!1, "expect not coming here in digitize()");
- };
- c.prototype.ZY = function () {
- return m(this.$Ca.length - 1);
- };
- l.prototype = Error();
- g.prototype = Error();
- n.prototype = Error();
- k.prototype.constructor = k;
- k.prototype.VERSION = "0.5";
- k.prototype.UXa = -20;
- k.prototype.TXa = 20;
- k.prototype.SXa = void 0;
- k.prototype.NXa = new b(void 0);
- k.prototype.PXa = 0;
- k.prototype.OXa = 1;
- k.prototype.WXa = !1;
- k.prototype.RXa = !0;
- k.prototype.QXa = !0;
- k.prototype.VXa = void 0;
- k.prototype.LXa = !0;
- k.prototype.MXa = 0;
- k.prototype.kI = function (a) {
- r(void 0 !== a.ITa, "expect recipe.time_varying_bandwidth !== undefined");
- return this.S7a(this.hcb, a.ITa, void 0 !== a.VMa ? a.VMa : this.UXa, void 0 !== a.GMa ? a.GMa : this.TXa, void 0 !== a.FMa ? a.FMa : this.SXa, void 0 !== a.XCa ? a.XCa : this.NXa, void 0 !== a.nGa ? a.nGa : this.PXa, void 0 !== a.jDa ? a.jDa : this.OXa, void 0 !== a.NEb ? a.NEb : this.WXa, void 0 !== a.Job ? a.Job : this.RXa, void 0 !== a.uJa ? a.uJa : this.QXa, void 0 !== a.XPa ? a.XPa : this.VXa, void 0 !== a.gCa ? a.gCa : this.LXa, void 0 !== a.LCa ? a.LCa : this.MXa);
- };
- k.prototype.S7a = function (a, b, d, k, q, m, A, G, t, ha, V, x, N, na) {
- var z,
- J,
- R,
- T,
- P,
- ba,
- U,
- S,
- ca,
- da,
- aa,
- fa,
- ga,
- la,
- oa,
- ra,
- pa,
- qa,
- sa,
- va;
- function K(a) {
- return a[ba];
- }
- D.S1("dp: ");
- r(d <= m.rg, "expect min_buffer_sec <= bgn_buffer_queue.total_remain_sec");
- r(m.rg <= k, "expect bgn_buffer_queue.total_remain_sec <= max_buffer_sec");
- r(d <= A, "expect min_buffer_sec <= end_buffer_sec");
- r(A <= k, "expect end_buffer_sec <= max_buffer_sec");
- void 0 !== q && r(m.Vj <= q, "Need bgn_buffer_queue.total_remain_kb <= max_buffer_kb but has got " + m.Vj + " and " + q);
- z = new c(d, k, G);
- G = new u();
- J = 0;
- R = m;
- G.put([0, z.dy(m.rg)], [J, R, void 0, void 0, b, void 0, void 0, void 0]);
- T = R = 0;
- b = a.Eob();
- r(a.NG() == b.length, "expect chunk_map.get_n_epoch() == durations_sec.length");
- ba = -1;
- for (U in b) {
- for (var ba = ba + 1, ea = !0, ta = a.Qi.map(K), B = z.ZY(), L = 0; L < B.length; L++) {
- S = B[L];
- if (G.Aha([ba, S])) {
- P = G.get([ba, S]);
- for (var Wa = P[0], W = P[1], Y = P[4], Ba = 0; Ba < ta.length; Ba++) {
- b = ta[Ba];
- D.update("epoch-ibuf-chunk loop");
- m = void 0 !== x ? x(b.JP) : b.JP;
- ca = Y.No();
- try {
- P = this.Q4a(W, b, ca, na);
- da = P[0];
- aa = P[1];
- fa = P[2];
- ga = P[3];
- la = P[4];
- oa = P[5];
- } catch (cb) {
- if (cb instanceof C)
- continue;
- else if (cb instanceof l) {
- R += 1;
- continue;
- } else
- throw cb;
- }
- ra = J = !1;
- try {
- pa = z.dy(ga.rg);
- ha && z.dy(da);
- V && z.dy(aa);
- if (void 0 !== q)
- if (V) {
- if (fa.Vj > q)
- throw new n();
- } else if (ga.Vj > q)
- throw new n();
- } catch (cb) {
- if (cb instanceof l)
- pa = void 0, R += 1;
- else if (cb instanceof g)
- N ? J = !0 : T += 1, pa = void 0;
- else if (cb instanceof n)
- N ? ra = J = !0 : T += 1, pa = void 0;
- else
- throw cb;
- }
- try {
- if (J && ra) {
- r(void 0 !== q, "expect max_buffer_kb !== undefined");
- sa = V ? fa.Vj - q : ga.Vj - q;
- r(0 <= sa, "pause dlnd kb cannot be -ve but is " + sa);
- try {
- qa = ga.qyb(sa);
- } catch (cb) {
- if (cb instanceof H)
- throw new l();
- throw cb;
- }
- ca.UOa(qa);
- la += qa;
- r(ga.rg < k, "expect cur_buffer_queue.total_remain_sec < max_buffer_sec");
- pa = z.dy(ga.rg);
- } else if (J && !ra) {
- qa = V ? fa.rg - k + 1E-8 : ga.rg - k + 1E-8;
- r(0 <= qa, "pause dlnd kb cannot be -ve but is " + qa);
- try {
- ga.hPa(qa);
- } catch (cb) {
- if (cb instanceof H)
- throw new l();
- throw cb;
- }
- ca.UOa(qa);
- la += qa;
- r(d <= ga.rg, "expect min_buffer_sec <= cur_buffer_queue.total_remain_sec");
- r(ga.rg < k, "cur_buffer_queue.total_remain_sec < max_buffer_sec");
- pa = z.dy(ga.rg);
- } else
- qa = 0;
- } catch (cb) {
- if (cb instanceof l)
- pa = void 0, R += 1, qa = void 0;
- else if (cb instanceof C)
- continue;
- else
- throw cb;
- }
- J = G.Aha([ba + 1, pa]) ? G.get([ba + 1, pa])[0] : -Infinity;
- this.K8a(ga, pa, b, m, S, ba + 1, J, G, Wa, Ba, ca, la, oa, qa) && (ea = !1);
- }
- }
- }
- if (ea) {
- --ba;
- break;
- }
- }
- try {
- va = this.xza(ba + 1, z.dy(A), G, t, z);
- } catch (cb) {
- if (cb instanceof p)
- try {
- va = this.xza(ba + 1, z.dy(A), G, !t, z);
- } catch (He) {
- if (He instanceof p) {
- if (R > T)
- throw new h();
- throw new f();
- }
- throw He;
- }
- else
- throw cb;
- }
- S = va;
- for (d = []; -1 < ba; ba--)
- P = G.get([ba + 1, S]), J = P[0], R = P[1], k = P[3], q = P[5], A = P[6], t = P[7], P = P[2], b = a.Qi[P][ba], ha = b.Su(), m = b.JP, d.unshift({
- $Ja: ba,
- Gga: P,
- info: {
- iRb: ha,
- JP: m,
- qRb: R.rg,
- pRb: R.Vj,
- wSb: q,
- Fa: A,
- YUb: t
- }
- }), S = k;
- return d;
- };
- k.prototype.xza = function (a, b, c, f, d) {
- var h,
- k;
- h = !1;
- k = d.ZY()[0];
- for (d = d.ZY()[d.ZY().length - 1]; ; ) {
- if (b < k || b > d) {
- h = !0;
- break;
- }
- if (c.Aha([a, b]))
- break;
- else
- b = f ? b - 1 : b + 1;
- }
- if (h)
- throw new p();
- return b;
- };
- k.prototype.K8a = function (a, b, c, f, d, h, k, l, g, p, n, u, q, m) {
- c = g + f * c.vp;
- return void 0 !== b && c > k ? (l.put([h, b], [c, a, p, d, n, u, q, m]), !0) : !1;
- };
- k.prototype.Q4a = function (a, b, c, f) {
- var d,
- h,
- k;
- f = (b.Su() + f) * b.vp;
- c = c.Ihb(f);
- f /= c;
- d = a.rg - c;
- h = a.rg + b.vp;
- k = a.No();
- k.add(b, void 0);
- a = a.No();
- a.add(b, void 0);
- try {
- a.hPa(c);
- } catch (U) {
- if (U instanceof H)
- throw new l();
- throw U;
- }
- return [d, h, k, a, c, f];
- };
- p.prototype = Error();
- h.prototype = new p();
- f.prototype = new p();
- u.prototype = {
- Gna: function (a) {
- return a.join(",");
- },
- put: function (a, b) {
- this.ada[this.Gna(a)] = b;
- },
- get: function (a) {
- return this.ada[this.Gna(a)];
- },
- Aha: function (a) {
- return this.Gna(a)in this.ada;
- }
- };
- d.P = {
- OYa: k,
- HKb: c,
- gKb: l,
- hKb: g
- };
- }, function (d, b, a) {
- var t,
- D,
- K,
- J,
- R,
- P,
- ba,
- z,
- T,
- U;
- function c(a) {
- var b,
- c,
- f;
- c = a.Qq;
- b = a.Eh;
- f = a.jm.na - b.T;
- c.timestamp > b.np && T.error("expect playSegment.tput.timestamp <= playSegment.startState.playingStartTime but has " + c.timestamp + " and " + b.np);
- a = [];
- for (var d, h = c.timestamp, k = 0; k < c.trace.length; k++)
- h >= b.np && (a.push(c.trace[k]), d = c.trace[k]), h += c.bm, f -= c.bm;
- for (; 0 < f; )
- a.push(d), f -= c.bm;
- b = c.bm;
- c = a.length;
- if (0 === c)
- c = [];
- else {
- for (b = [b / 1E3]; 2 * b.length <= c; )
- b = b.concat(b);
- b.length < c && (b = b.concat(b.slice(0, c - b.length)));
- c = b;
- }
- return new R(a, c, !1);
- }
- function l(a, b) {
- return a.dC < b.dC ? 1 : a.dC > b.dC ? -1 : 0;
- }
- function g(a) {
- for (var b = a.Eh, c = a.jm, f = c.rl, d = a.Sk, h = !0, k, l = [], g, p = f = Math.min(c.ps, f); p >= b.Gh; p--) {
- U.update("backward step loop");
- k = a.Sk[0][p].T - a.Eh.T;
- p < f && (t(void 0 !== l[p + 1], "expect solution[(fragIndex + 1)] !== undefined"), k = Math.min(l[p + 1].startTime, k));
- c = d[0][p].ba;
- g = b.sx * d[0][p].duration * 1 / 8;
- g = r(c + g, k, a.Qq, b.np);
- if (0 > g) {
- h = !1;
- break;
- }
- l[p] = {
- startTime: g,
- endTime: k,
- $W: k,
- wp: c,
- vd: 0
- };
- }
- return {
- yi: h,
- Os: l,
- ap: !1,
- Dy: 0 === l.length ? !0 : !1
- };
- }
- function n(a, b) {
- var K,
- z,
- J,
- R,
- T,
- P;
- for (var c = a.Eh, f = a.jm, d = f.rl, h = a.Sk, k = 0, l = 0, g = b.Os, p, n, q, A = 0, r = 0, G, D, d = Math.min(f.ps, d), H = c.Gh; H <= d; H++) {
- U.update("forward step loop");
- q = g[H];
- b = q.vd;
- G = h[b][H].duration;
- D = H === c.Gh ? 0 : g[H - 1].endTime;
- p = 0;
- b = C(a, g, D, k, H);
- if (b.lO)
- return {
- yi: !1,
- ap: !0
- };
- b.qR || (p = b.waitUntil - D, D = b.waitUntil);
- t(0 <= p, "expect waittime >= 0 but got " + p);
- z = a.Qq;
- J = c.np;
- p = 0;
- b = z.trace;
- n = 1 * z.bm;
- K = D + J - z.timestamp;
- J = q.$W + J - z.timestamp;
- t(0 <= K, "invalid downloadStartTime");
- t(J >= K, "invalid downloadEndTime");
- R = Math.max(0, Math.floor(1 * K / n));
- T = 1 * J / n;
- if (R === Math.floor(T))
- K = (J - K) / n * m(b, R, n), t(0 <= K, "negative delta same bucket"), p += K;
- else
- for (T = Math.ceil(T), z = R, q = T, R * n < K && (z++, K = (z * n - K) / n * m(b, R, n), t(0 <= K, "negative delta (2)"), p += K), T * n > J && (q--, K = (J - q * n) / n * m(b, q, n), t(0 <= K, "negative delta (3)"), p += K), K = z; K < q; K++)
- p += m(b, K, n);
- n = c.sx * G * 1 / 8;
- l += n;
- b = u(p - n, H, h);
- if (void 0 === b)
- return {
- yi: !1,
- ap: !0
- };
- p = b.wp;
- b = b.vd;
- n = p + n;
- J = a.Qq;
- q = K = 0;
- z = J.trace;
- R = Math.max(0, D + c.np - J.timestamp);
- J = 1 * J.bm;
- P = T = Math.max(0, Math.floor(1 * R / J));
- for (P * J < R && (T += 1, R = P * J + J - R, P = R / J * m(z, P, J), K = n - q < P ? K + (n - q) / P * 1 * R : K + R, q += P); q < n; )
- U.update("getDownloadTime"), R = m(z, T, J), K = n - q < R ? K + (n - q) / R * 1 * J : K + J, q += R, T += 1;
- n = K;
- g[H].startTime = D;
- g[H].endTime = D + n;
- g[H].wp = p;
- g[H].vd = b;
- H <= f.rl && (k += p, r += G, A = void 0 != h[b][H].wc ? A + G * h[b][H].wc : A + G * a.Nc[b].wc);
- }
- return {
- yi: !0,
- ap: !1,
- Os: g,
- GFa: 0 < r ? 1 * A / r : 0,
- fda: r,
- eda: k,
- dda: l
- };
- }
- function k(a) {
- a = a.Eh.$;
- for (var b = [], c, f = 0; f < a.length; f++)
- U.update("get prebuffered chunks loop"), c = a[f], t(void 0 !== c.wc, "expect frag.vmaf !== undefined"), c = new D(c.ba, c.duration / 1E3, c.wc), b.push(c);
- return b;
- }
- function p(a) {
- for (var b = a.Sk, c = a.Eh, f = a.jm, d = f.rl, h = a.Nc, k = [], l, d = Math.min(f.ps, d), g = 0; g < b.length; g++) {
- for (var f = [], p = c.Gh; p <= d; p++)
- U.update("get chunk map from play segment"), l = b[g][p], l = new D(l.ba, l.duration / 1E3, a.lQ && void 0 !== l.wc ? l.wc : h[g].wc), f.push(l);
- k.push(f);
- }
- return new K(k, !1);
- }
- function h(a, b) {
- t(a.NG() >= b.length, "expect chunk_map.get_n_epoch() >= stream_choices.length");
- for (var c = 0, f = 0, d, h, k = 0; k < b.length; k++)
- U.update("calculate twvmaf"), t(b[k].$Ja === k, "expect stream_choices[idx].i_epoch === idx"), h = a.Qi[b[k].Gga][k], d = h.JP, h = h.vp, c += d * h, f += h;
- return {
- GFa: c / f,
- fda: 1E3 * f
- };
- }
- function f(a, b, c) {
- var f,
- d;
- t(a.NG() >= b.length, "expect chunk_map.get_n_epoch() >= stream_choices.length");
- f = 0;
- d = 0;
- c = c.Eh.sx;
- for (var h, k = 0; k < b.length; k++)
- U.update("calculate Bytes"), t(b[k].$Ja === k, "expect stream_choices[idx].i_epoch === idx"), h = a.Qi[b[k].Gga][k], f += h.ba, d += c * h.vp * 1E3 / 8;
- return {
- eda: f,
- dda: d
- };
- }
- function u(a, b, c) {
- var f,
- d;
- a = Math.max(0, a);
- f = [];
- c.forEach(function (a) {
- f.push(a[b].ba);
- });
- c = f.filter(function (b) {
- return b <= a;
- });
- if (0 < c.length)
- c = c[c.length - 1], d = f.lastIndexOf(c);
- else
- throw Error("selectStream infeasible");
- return {
- wp: c,
- vd: d
- };
- }
- function m(a, b, c) {
- b = Math.min(a.length - 1, b);
- b = Math.max(0, b);
- return a[b] * c * 1 / 8;
- }
- function r(a, b, c, f) {
- var d,
- h,
- k,
- l,
- g;
- d = c.trace;
- h = 1 * c.bm;
- g = b + f - c.timestamp;
- l = Math.floor(1 * g / h);
- b = 0 + (g - l * h) / h * m(d, l, h);
- if (b >= a)
- k = g - 1 * a / b * (g - l * h);
- else
- for (g = l; b < a; ) {
- U.update("find download start time");
- --g;
- if (0 > g)
- return -1;
- l = m(d, g, h);
- if (b + l >= a) {
- a = 1 * (a - b) / l * h;
- k = (g + 1) * h - a;
- break;
- }
- b += l;
- }
- return k + c.timestamp - f;
- }
- function C(a, b, c, f, d) {
- var h,
- k,
- l,
- g,
- p,
- n;
- h = a.Eh;
- k = c + h.T;
- c = a.Sk[h.gO];
- a = a.cba;
- l = {
- qR: !0,
- waitUntil: void 0,
- lO: !1
- };
- g = c.filter(function (a) {
- return a && a.T <= k && a.T + a.duration > k;
- })[0];
- if (void 0 === g)
- return {
- lO: !0
- };
- p = d - 1 - (g.index - 1);
- f = h.sR + f;
- n = 0;
- n = g.index < h.Gh ? n + c.slice(h.Uv, g.index).reduce(function (a, b) {
- return a + b.ba;
- }, 0) : n + h.sR;
- n = n + b.slice(h.Gh, g.index).reduce(function (a, b) {
- return a + b.wp;
- }, 0);
- f -= n;
- if (p >= a.JO || f >= a.aJ)
- for (l.qR = !1, g = g.index; g < d && (p >= a.JO || f >= a.aJ); )
- U.update("check buffer vacancy"), l.waitUntil = c[g].T + c[g].duration - h.T, f = g < h.Gh ? f - c[g].ba : f - b[g].wp, --p, g += 1;
- l.lDa = f;
- l.rRb = p;
- return l;
- }
- t = a(6).assert;
- D = a(364).AXa;
- K = a(364).BXa;
- J = a(729).OYa;
- R = a(363).U2a;
- P = a(203).lpa;
- ba = a(374).p6;
- z = a(58);
- T = new(a(4)).Console("ASEJS_QOE_EVAL", "media|asejs");
- U = a(104).hwa || a(104);
- d.P = {
- osb: function (a) {
- var b;
- b = g(a);
- return !1 === b.yi || !0 === b.Dy ? b : n(a, b);
- },
- RN: function (a) {
- var b,
- c,
- f,
- d,
- h,
- k,
- p,
- u,
- q,
- m,
- A,
- G,
- D,
- C,
- H,
- z;
- T.debug("greedy DEBUG false");
- U.S1("greedy-" + (a.lQ ? "segvmaf" : "dlvmaf") + ": ");
- c = a.Sk;
- b = a.Sk;
- f = a.Eh;
- d = a.jm;
- h = d.rl;
- k = a.Nc;
- h = Math.min(d.ps, h);
- for (G = f.Gh; G <= h; G++) {
- b[0][G].ZA = b[0][G].ba;
- for (A = 1; A < b.length; A++)
- b[A][G].ZA = b[A][G].ba, b[A - 1][G].ZA === b[A][G].ZA && (b[A][G].ZA = b[A - 1][G].ZA + 1);
- A = 0;
- f = b[A][G];
- f.dC = Infinity;
- f.Kg = A;
- for (A = 1; A < b.length; A++)
- f = b[A][G], d = b[A - 1][G], p = 8 * f.ZA / f.duration, u = 8 * d.ZA / d.duration, a.lQ && void 0 !== f.wc ? (q = f.wc, m = d.wc) : (q = k[A].wc, m = k[A - 1].wc), f.dC = (q - m) / (p - u), f.Kg = A, t(void 0 !== d.dC && !isNaN(d.dC), "expect fragPrev.margUtil !== undefined && !isNaN(fragPrev.margUtil)");
- }
- b = g(a);
- if (!1 === b.yi || !0 === b.Dy)
- return b;
- h = a.Sk;
- f = a.Eh;
- d = a.jm;
- k = d.rl;
- k = Math.min(d.ps, k);
- d = [];
- for (f = f.Gh; f <= k; f++)
- d.push(h[1][f]);
- for (h = new ba(d, l); 0 < h.length; ) {
- U.update("upgrade frags");
- k = h.pop();
- f = a;
- d = b;
- p = k;
- u = f.Sk;
- q = f.Eh;
- H = f.jm;
- m = H.rl;
- A = !0;
- G = JSON.parse(JSON.stringify(d.Os));
- void 0 !== p.Kg && t(G[p.index].vd + 1 === p.Kg, "expect solution[targetFrag.index].selectedStreamIndex + 1 === targetFrag.streamIndex");
- m = Math.min(H.ps, m);
- for (var K = p.index; K >= q.Gh; K--) {
- z = K === p.index ? G[K].vd + 1 : G[K].vd;
- H = f.Sk[z][K].T - f.Eh.T;
- if (K < m)
- if (t(void 0 !== G[K + 1], "expect solution[(fragIndex + 1)] !== undefined"), C = G[K + 1].startTime, C < H)
- H = C;
- else if (K !== p.index)
- break;
- C = u[z][K].ba;
- D = q.sx * u[z][K].duration * 1 / 8;
- D = r(C + D, H, f.Qq, q.np);
- if (0 > D) {
- A = !1;
- break;
- }
- G[K] = {
- startTime: D,
- endTime: H,
- $W: H,
- wp: C,
- vd: z
- };
- }
- f = {
- yi: A,
- Os: G,
- Dy: d.Dy
- };
- !0 === f.yi && (b = f, k.Kg + 1 < c.length && h.push(c[k.Kg + 1][k.index]));
- }
- b = n(a, b);
- b.xq = U.tfa();
- T.debug("Max heap used: " + Math.round(b.xq / 1024 / 1024) + " MB");
- return b;
- },
- dp: function (a) {
- var b,
- d,
- l,
- n,
- u,
- q;
- U.S1("dp-" + (a.lQ ? "segvmaf" : "dlvmaf") + ": ");
- b = g(a);
- if (!1 === b.yi || !0 === b.Dy)
- return b;
- d = p(a);
- l = new J(d);
- n = k(a);
- n = {
- ITa: c(a),
- LCa: a.Eh.sx,
- VMa: 0,
- GMa: 240,
- FMa: 8 * a.cba.aJ / 1E3,
- jDa: .5,
- XCa: new P(n),
- nGa: 0,
- jTb: void 0,
- uJa: void 0,
- XPa: void 0,
- gCa: !0
- };
- l = l.kI(n);
- n = h(d, l);
- d = f(d, l, a);
- u = [];
- q = a.Eh.Gh;
- l.forEach(function (a) {
- u[q] = {
- vd: a.Gga
- };
- q++;
- });
- z(n, b);
- z(d, b);
- b.Os = u;
- b.xq = U.tfa();
- T.debug("Max heap used: " + Math.round(b.xq / 1024 / 1024) + " MB");
- return b;
- }
- };
- }, function (d, b, a) {
- var g,
- n;
- function c() {}
- function l(a, b) {
- return function (c) {
- c.lQ = b;
- return a(c);
- };
- }
- g = a(730);
- n = a(728);
- c.prototype.constructor = c;
- c.prototype.create = function (a) {
- switch (a) {
- case "htwbr":
- a = n.RN;
- break;
- case "hvmaftb":
- a = g.osb;
- break;
- case "hvmafgr":
- a = g.RN;
- break;
- case "hvmafdp":
- a = g.dp;
- break;
- case "hvmafgr-dlvmaf":
- a = l(g.RN, !1);
- break;
- case "hvmafgr-segvmaf":
- a = l(g.RN, !0);
- break;
- case "hvmafdp-dlvmaf":
- a = l(g.dp, !1);
- break;
- case "hvmafdp-segvmaf":
- a = l(g.dp, !0);
- break;
- default:
- throw Error("Unrecognized hindsight algorithm");
- }
- return a;
- };
- d.P = c;
- }, function (d, b, a) {
- var l,
- g;
- function c(a, b, c, d) {
- this.$a = a;
- this.G = b;
- this.bf = this.G.error.bind(this.G);
- this.bb = this.G.warn.bind(this.G);
- this.uj = this.G.trace.bind(this.G);
- this.xb = this.G.log.bind(this.G);
- this.B3a = new g();
- this.K = d;
- this.gV = [];
- this.DV = void 0;
- a = d.sZ;
- l.call(this, a.numB * a.bSizeMs, a.bSizeMs);
- this.G9 = !0;
- }
- a(18);
- b = a(4);
- l = a(160);
- a(372);
- g = a(731);
- new b.Console("ASEJS_QOE_EVAL", "media|asejs");
- c.prototype = Object.create(l.prototype);
- c.prototype.add = function (a, b, c) {
- this.DV || (this.DV = b);
- l.prototype.add.call(this, a, b, c);
- };
- c.prototype.ulb = function () {
- var a;
- if (0 !== this.gV.length) {
- a = [];
- this.gV.forEach(function (b) {
- b && b.xF && a.push(b.Qu());
- });
- return a;
- }
- };
- c.prototype.yc = function () {
- this.gV = [];
- };
- c.prototype.iob = function () {
- var a,
- b,
- c;
- a = this.get(this.K.sZ.fillS);
- if (0 === a[0] || null === a[0]) {
- a.some(function (a, d) {
- if (a)
- return b = a, c = d, !0;
- });
- if (b)
- for (var d = 0; d < c; d++)
- a[d] = b;
- }
- a = {
- trace: a,
- timestamp: this.DV,
- bm: this.Qc
- };
- this.G9 = !1;
- l.prototype.reset.call(this);
- this.G9 = !0;
- this.DV = void 0;
- return a;
- };
- c.prototype.Oda = function (a) {
- var b,
- c,
- d,
- f,
- l,
- g;
- if (a && !a.xF) {
- c = a.jm.TKa;
- c && (a.Yka = this.Baa(a), a.f1 = !1);
- if ((b = this.iob()) && b.trace && b.trace.length) {
- d = a.Eh.np;
- f = b.timestamp;
- if (f > d) {
- l = b.bm;
- g = b.trace[0];
- d = Math.ceil(1 * (f - d) / l);
- b.timestamp = f - d * l;
- for (f = 0; f < d; f++)
- b.trace.splice(0, 0, g);
- }
- b.trace.length && b.trace.pop();
- }
- a.Qq = b;
- b.trace && 0 === b.trace.length || void 0 === b.timestamp || (b = this.pbb(a), a.oOa = b, c && b && (a.f1 = b.yi), a.xF = !0, this.gV.push(a));
- }
- };
- c.prototype.pbb = function (a) {
- var l,
- g,
- n,
- q;
- function b(a) {
- var f;
- for (var b, c = 0; c < a.length; c++) {
- f = a[c].reduce(function (a, b) {
- return b.wc ? a + 1 : a;
- }, 0);
- if (void 0 === b)
- b = f;
- else if (f !== b)
- throw Error("length of per-fragment vmafs mismatch across streams [ceil(log2(delta))=" + Math.ceil(Math.log(f > b ? f - b : b - f) * Math.LOG2E) + "]");
- }
- }
- for (var c = this.K.VN, d = {
- yi: !1,
- ap: !1,
- AX: 0
- }, f = 0; f < c.length; f++) {
- l = c[f];
- g = this.B3a.create(l);
- if (g) {
- n = Date.now();
- q = {};
- try {
- b(a.Sk);
- q = g(a);
- } catch (H) {
- q.LX = H;
- }
- q.Z9a = Date.now() - n;
- d[l] = q;
- d.yi = d.yi || q.yi;
- d.ap = d.ap || q.ap;
- d.LX = d.LX || q.LX;
- }
- }
- return d;
- };
- c.prototype.Baa = function (a) {
- var b;
- a = a.jm;
- b = "";
- 1E3 > a.tR && (b += a.kVa);
- 1E3 > a.daa && (b = b + ("" !== b ? "," : "") + a.vCa);
- 1E3 <= a.tR && 1E3 <= a.daa && (b = "media");
- return b;
- };
- d.P = c;
- }, function (d, b, a) {
- var c,
- l,
- g,
- n,
- k,
- p;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.uoa = void 0;
- c = a(207);
- l = a(732);
- g = a(362);
- n = a(7);
- k = a(18);
- p = a(4);
- d = function () {
- var U9n;
- function a(a, b, d, h, n, q, m, r, t) {
- var W9n,
- o9n,
- g9n,
- f,
- u,
- A,
- V2E,
- u2E,
- v2E,
- a2E;
- W9n = 2;
- while (W9n !== 32) {
- V2E = "1SIYbZ";
- V2E += "rNJCp";
- V2E += "9";
- u2E = "L";
- u2E += "R";
- v2E = "basel";
- v2E += "i";
- v2E += "ne";
- a2E = "d";
- a2E += "e";
- a2E += "f";
- a2E += "aul";
- a2E += "t";
- switch (W9n) {
- case 10:
- this.kV = c[a2E](n, q);
- b = this.Gza(d);
- void 0 !== b && void 0 !== b.Fk && void 0 !== b.cj && void 0 !== b.Gk && (f = (b.Gk - b.Fk) / b.cj);
- h = n.eP ? k.Qe.Fz : k.Qe.Gz;
- W9n = 17;
- break;
- case 14:
- this.K = n;
- this.Yza = 0 === Math.floor(1E6 * Math.random()) % n.fba;
- this.qq = this.tZ = this.VJa = this.KW = this.cp = void 0;
- this.ena = this.zSa = this.ASa = this.dna = this.DOa = this.EOa = 0;
- W9n = 10;
- break;
- case 26:
- W9n = m && 1 < m.length && n.Ada ? 25 : 33;
- break;
- case 34:
- this.ME = new g.NS(m, n, this.G);
- W9n = 23;
- break;
- case 35:
- W9n = 34;
- break;
- case 25:
- o9n = n.spb;
- W9n = o9n === v2E ? 24 : 22;
- break;
- case 22:
- W9n = o9n === u2E ? 21 : 35;
- break;
- case 3:
- this.ix = t;
- V2E;
- this.$a = a;
- this.bb = this.G.warn.bind(this.G);
- this.uj = this.G.trace.bind(this.G);
- W9n = 14;
- break;
- case 33:
- n.a3 && (this.wV = this.vV = !1);
- W9n = 32;
- break;
- case 24:
- this.ME = new g.NS(m, n, this.G);
- W9n = 23;
- break;
- case 27:
- this.I9 = !1;
- W9n = 26;
- break;
- case 23:
- this.I9 = this.ME.WZ();
- W9n = 33;
- break;
- case 15:
- try {
- g9n = 2;
- while (g9n !== 3) {
- switch (g9n) {
- case 2:
- u = p.uk();
- A = new l(a, this.G, {
- bufferSize: u
- }, n);
- this.bc.p9a(A);
- this.PAa = A;
- g9n = 3;
- break;
- }
- }
- } catch (z) {
- var A2E;
- A2E = "Hindsigh";
- A2E += "t";
- A2E += ": Error when cr";
- A2E += "eating QoEEva";
- A2E += "luator: ";
- v3YY.e2E(0);
- a.Ua.Am(v3YY.J2E(A2E, z));
- }
- W9n = 27;
- break;
- case 21:
- this.ME = new g.Tra(m, n, this.G);
- W9n = 23;
- break;
- case 16:
- W9n = this.ix.So ? 15 : 27;
- break;
- case 17:
- d && d.Ld >= h && d.Fa && f && this.y5a(d, b, f);
- W9n = 16;
- break;
- case 2:
- this.G = b;
- this.bc = h;
- this.jb = r;
- W9n = 3;
- break;
- }
- }
- }
- U9n = 2;
- while (U9n !== 27) {
- switch (U9n) {
- case 2:
- Object.defineProperties(a.prototype, {
- WZ: {
- get: function () {
- var D9n;
- D9n = 2;
- while (D9n !== 1) {
- switch (D9n) {
- case 4:
- return this.I9;
- break;
- D9n = 1;
- break;
- case 2:
- return this.I9;
- break;
- }
- }
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- Oka: {
- get: function () {
- var J9n;
- J9n = 2;
- while (J9n !== 1) {
- switch (J9n) {
- case 4:
- return this.PAa;
- break;
- J9n = 1;
- break;
- case 2:
- return this.PAa;
- break;
- }
- }
- },
- enumerable: !1,
- configurable: !0
- }
- });
- a.prototype.aSa = function (a, b, c) {
- var y9n;
- y9n = 2;
- while (y9n !== 4) {
- switch (y9n) {
- case 2:
- this.qq = a;
- n.Y(b) || (this.VJa = b);
- n.Y(c) || (this.tZ = c);
- y9n = 4;
- break;
- }
- }
- };
- a.prototype.Mna = function (a) {
- var N9n;
- N9n = 2;
- while (N9n !== 5) {
- switch (N9n) {
- case 2:
- this.K = a;
- this.kV.Mna(a);
- N9n = 5;
- break;
- }
- }
- };
- U9n = 3;
- break;
- case 3:
- a.prototype.J9 = function (a, b, c, d) {
- var l9n,
- f,
- k2E,
- T2E;
- l9n = 2;
- while (l9n !== 6) {
- k2E = "a";
- k2E += "v";
- k2E += "g";
- T2E = "i";
- T2E += "q";
- T2E += "r";
- switch (l9n) {
- case 5:
- l9n = a === T2E ? 4 : 8;
- break;
- case 2:
- f = this.K;
- l9n = 5;
- break;
- case 3:
- return b.Fa && c && n.la(d) && b.Fa.Ca < f.HM && d > f.r5;
- break;
- case 4:
- l9n = void 0 !== d ? 3 : 9;
- break;
- case 9:
- return !1;
- break;
- case 7:
- return b.Fa ? b.Fa.Ca < f.HM : !0;
- break;
- case 8:
- l9n = a === k2E ? 7 : 9;
- break;
- }
- }
- };
- a.prototype.snb = function (a) {
- var S9n;
- S9n = 2;
- while (S9n !== 1) {
- switch (S9n) {
- case 2:
- return 1 === a ? this.kV.Q0 : this.kV.Ny;
- break;
- }
- }
- };
- a.prototype.xI = function (a) {
- var b9n;
- b9n = 2;
- while (b9n !== 1) {
- switch (b9n) {
- case 2:
- this.kV.xI(a);
- b9n = 1;
- break;
- case 4:
- this.kV.xI(a);
- b9n = 0;
- break;
- b9n = 1;
- break;
- }
- }
- };
- U9n = 7;
- break;
- case 7:
- a.prototype.f9a = function (a, b, c, d, h, k) {
- var F9n,
- f;
- F9n = 2;
- while (F9n !== 4) {
- switch (F9n) {
- case 2:
- f = this.K;
- f.a3 && this.k7a(b) || !c || !d || !(c = k ? Math.min(c, d, k) : Math.min(c, d)) || (this.bc.get(), d = this.$a.pa, a = d.Mr(d.Ub, a), b.track.Vn() && a > f.eba && c === h ? (f.set ? (f.set({
- pipelineEnabled: !0
- }), f.set({
- maxParallelConnections: 1
- }), f.set({
- maxActiveRequestsPerSession: 2
- }), f.set({
- maxPendingBufferLen: 500
- })) : (f.lp = !0, f.lH = 1, f.ns = 2, f.xy = 500), b.track.g1({
- type: b.track.config.type,
- connections: 1,
- openRange: !1,
- pipeline: !0,
- socketBufferSize: f.cJ,
- minRequestSize: f.uH
- }), this.dna++, f.a3 && (this.vV = !0)) : f.lp && !b.Vn() && (a < f.dba || c !== h) && (f.set ? (f.set({
- pipelineEnabled: !0
- }), f.set({
- maxParallelConnections: 3
- }), f.set({
- maxActiveRequestsPerSession: 3
- }), f.set({
- maxPendingBufferLen: 12E3
- })) : (f.lp = !0, f.lH = 3, f.ns = 3, f.xy = 12E3), b.track.g1({
- type: b.config.type,
- connections: 3,
- openRange: !1,
- pipeline: !0,
- socketBufferSize: f.cJ,
- minRequestSize: f.uH
- }), this.ena++, f.a3 && (this.wV = !0)));
- F9n = 4;
- break;
- }
- }
- };
- a.prototype.j9a = function (a, b) {
- var q9n,
- c,
- f,
- d;
- q9n = 2;
- while (q9n !== 13) {
- switch (q9n) {
- case 2:
- c = this.K;
- q9n = 5;
- break;
- case 4:
- void 0 === this.Zk && (this.Zk = {
- startTime: p.time.ea(),
- hu: [],
- dw: [],
- Nha: void 0,
- Gha: void 0
- });
- c = Math.floor((p.time.ea() - this.Zk.startTime) / c.WA);
- f = this.Zk.Gha;
- d = this.Zk.Nha ? c - this.Zk.Nha - 1 : c;
- q9n = 7;
- break;
- case 5:
- q9n = this.Yza ? 4 : 13;
- break;
- case 7:
- q9n = void 0 === f || c > f ? 6 : 14;
- break;
- case 14:
- this.Zk.Gha = c;
- q9n = 13;
- break;
- case 6:
- this.Zk.hu[d] = a,
- this.Zk.dw[d] = b;
- q9n = 14;
- break;
- }
- }
- };
- a.prototype.Ewb = function () {
- var w9n,
- a,
- E9n;
- w9n = 2;
- while (w9n !== 3) {
- switch (w9n) {
- case 2:
- a = this.$a;
- w9n = 5;
- break;
- case 6:
- w9n = this.ix.So ? 3 : 1;
- break;
- w9n = this.ix.So ? 4 : 3;
- break;
- case 5:
- w9n = this.ix.So ? 4 : 3;
- break;
- case 4:
- try {
- E9n = 2;
- while (E9n !== 5) {
- switch (E9n) {
- case 2:
- this.bc.dBb();
- this.PAa.yc();
- E9n = 5;
- break;
- }
- }
- } catch (u) {
- var t2E;
- t2E = "H";
- t2E += "indsight";
- t2E += ": Error duri";
- t2E += "ng c";
- t2E += "lean up: ";
- v3YY.z2E(0);
- a.Ua.Am(v3YY.c1E(t2E, u));
- }
- w9n = 3;
- break;
- }
- }
- };
- a.prototype.Nwb = function (a) {
- var P9n;
- P9n = 2;
- while (P9n !== 1) {
- switch (P9n) {
- case 2:
- this.K.jG && a === k.La.VIDEO && (this.ena = this.dna = this.zSa = this.ASa = this.DOa = this.EOa = 0);
- P9n = 1;
- break;
- }
- }
- };
- a.prototype.Mwb = function (a, b) {
- var B9n;
- B9n = 2;
- while (B9n !== 1) {
- switch (B9n) {
- case 2:
- a === k.La.VIDEO && (this.RIb = b);
- B9n = 1;
- break;
- }
- }
- };
- U9n = 11;
- break;
- case 11:
- a.prototype.acb = function (a) {
- var p9n,
- b,
- c,
- f,
- d,
- h,
- O2E,
- q2E;
- p9n = 2;
- while (p9n !== 7) {
- O2E = "n";
- O2E += "o";
- O2E += "n";
- O2E += "e";
- q2E = "i";
- q2E += "q";
- q2E += "r";
- switch (p9n) {
- case 4:
- c = this.bc.get();
- q2E === b.ez && (f = this.Gza(c), void 0 !== f && void 0 !== f.Fk && void 0 !== f.cj && void 0 !== f.Gk && (d = (f.Gk - f.Fk) / f.cj));
- h = b.eP ? k.Qe.Fz : k.Qe.Gz;
- c && c.Ld >= h && this.J9(b.ez, c, f, d) && (this.cp = !0, this.KW = a.state);
- p9n = 7;
- break;
- case 2:
- b = this.K;
- p9n = 5;
- break;
- case 5:
- p9n = O2E !== b.ez && !0 !== this.cp && a.state <= b.Jia ? 4 : 7;
- break;
- }
- }
- };
- a.prototype.G9a = function (a) {
- var T9n;
- T9n = 2;
- while (T9n !== 1) {
- switch (T9n) {
- case 4:
- a.cp = this.cp;
- T9n = 3;
- break;
- T9n = 1;
- break;
- case 2:
- a.cp = this.cp;
- T9n = 1;
- break;
- }
- }
- };
- a.prototype.Cjb = function (a) {
- var R9n,
- b,
- c,
- f,
- d,
- h,
- l,
- g,
- q,
- I2E,
- x2E;
- R9n = 2;
- while (R9n !== 21) {
- I2E = "s";
- I2E += "tar";
- I2E += "tp";
- I2E += "lay";
- x2E = "logd";
- x2E += "at";
- x2E += "a";
- switch (R9n) {
- case 2:
- b = {};
- c = this.K;
- R9n = 4;
- break;
- case 18:
- g = function (a) {
- var L9n;
- L9n = 2;
- while (L9n !== 1) {
- switch (L9n) {
- case 2:
- return n.la(a) ? Number(a).toFixed(2) : -1;
- break;
- }
- }
- };
- h = [g(l.min || void 0), g(l.Tja || void 0), g(l.Fk || void 0), g(l.cj || void 0), g(l.Gk || void 0), g(l.Uja || void 0), g(l.max || void 0)];
- q = [];
- l = n.isArray(l.wh) && l.wh.reduce(function (a, b) {
- var M9n,
- c;
- M9n = 2;
- while (M9n !== 9) {
- switch (M9n) {
- case 4:
- -1 < c && -1 < b && a.push({
- mean: c,
- n: b
- });
- return a;
- break;
- case 2:
- c = g(b.nf || void 0);
- b = g(b.n || void 0);
- M9n = 4;
- break;
- }
- }
- }, q);
- b.histtdc = l;
- R9n = 26;
- break;
- case 4:
- f = this.$a;
- d = {
- type: x2E,
- target: I2E,
- fields: {}
- };
- d.fields = b;
- R9n = 8;
- break;
- case 8:
- Object.keys(a).forEach(function (c) {
- var t9n;
- t9n = 2;
- while (t9n !== 1) {
- switch (t9n) {
- case 4:
- b[c] = a[c];
- t9n = 2;
- break;
- t9n = 1;
- break;
- case 2:
- b[c] = a[c];
- t9n = 1;
- break;
- }
- }
- });
- h = this.bc.get();
- h && h.Fa && (h = h.Fa.Ca);
- b.actualbw = h;
- R9n = 13;
- break;
- case 20:
- l = this.tZ;
- R9n = 19;
- break;
- case 25:
- b.histage = this.VJa;
- c.Ada && this.ME && (b.ishighstable = this.I9, b.avg_avtp = this.ME.SCa, b.avg_ne = Number(this.ME.TCa).toFixed(4));
- f.zb && (c = p.uk(), b.maxAudioBufferAllowedBytes = c[k.La.AUDIO], b.maxVideoBufferAllowedBytes = c[k.La.VIDEO]);
- f.emit(d.type, d);
- R9n = 21;
- break;
- case 13:
- b.isConserv = this.cp;
- b.ccs = this.KW;
- b.isLowEnd = this.Zqb;
- b.histdiscbw = this.qq;
- R9n = 20;
- break;
- case 19:
- R9n = l ? 18 : 25;
- break;
- case 26:
- b.histtd = h;
- R9n = 25;
- break;
- }
- }
- };
- U9n = 19;
- break;
- case 16:
- a.prototype.y5a = function (a, b, c) {
- var H9n,
- f;
- H9n = 2;
- while (H9n !== 9) {
- switch (H9n) {
- case 2:
- f = this.K;
- this.J9(f.ez, a, b, c) ? this.cp = !0 : this.cp = !1;
- this.KW = 0;
- this.J9(f.jia, a, b, c) && (this.Zqb = !0);
- H9n = 9;
- break;
- }
- }
- };
- return a;
- break;
- case 19:
- a.prototype.Djb = function (a) {
- var f9n,
- b,
- c,
- f,
- d,
- h,
- l,
- g,
- Q2E;
- f9n = 2;
- while (f9n !== 20) {
- Q2E = "n";
- Q2E += "o";
- Q2E += "n";
- Q2E += "e";
- switch (f9n) {
- case 6:
- l = 0;
- g = 0;
- f.Ld && (h = f.Fa ? f.Fa.Ca : 0, l = f.Ch ? f.Ch.Ca : 0, g = f.rq ? f.rq.Ca : 0);
- a.location = {
- responseTime: l,
- httpResponseTime: g,
- bandwidth: h,
- confidence: f.Ld,
- name: this.RIb
- };
- this.Yza && (a.bt = {
- startTime: this.Zk.startTime,
- audioMs: this.Zk.hu,
- videoMs: this.Zk.dw
- }, this.Zk.hu = [], this.Zk.dw = [], this.Zk.Nha = this.Zk.Gha);
- f9n = 10;
- break;
- case 9:
- [k.La.VIDEO, k.La.AUDIO].forEach(function (a) {
- var Z9n,
- h;
- Z9n = 2;
- while (Z9n !== 3) {
- switch (Z9n) {
- case 7:
- Z9n = b.jb(a) ? 6 : 8;
- break;
- Z9n = b.jb(a) ? 5 : 3;
- break;
- case 8:
- Z9n = 9;
- break;
- Z9n = 1;
- break;
- case 2:
- Z9n = 1;
- break;
- case 1:
- Z9n = b.jb(a) ? 5 : 3;
- break;
- case 5:
- h = b.$a.bJa(a);
- void 0 !== h && (a === k.La.VIDEO && (c.jG && (h.parallelDownloadMs = b.EOa, h.parallelDownloadBytes = b.DOa, h.singleDownloadMs = b.ASa, h.singleDownloadBytes = b.zSa, h.switchFromParallelToSingle = b.dna, h.switchFromSingleToParallel = b.ena), f && f.Ld && f.Fa && (h.asetput = f.Fa, h.aseiqr = f.sq, h.tdigest = f.Di && f.Di.Qu() || void 0), f && f.avtp && (h.avtp = f.avtp.Ca)), d.push(h));
- Z9n = 3;
- break;
- }
- }
- });
- a.stat = d;
- h = 0;
- f9n = 6;
- break;
- case 3:
- d = [];
- f9n = 9;
- break;
- case 2:
- b = this;
- c = this.K;
- f = this.bc.get();
- f9n = 3;
- break;
- case 10:
- Q2E !== c.ez && (a.isConserv = this.cp, a.ccs = this.KW);
- f9n = 20;
- break;
- }
- }
- };
- a.prototype.k7a = function (a) {
- var Y9n,
- b;
- Y9n = 2;
- while (Y9n !== 14) {
- switch (Y9n) {
- case 2:
- b = this.K;
- Y9n = 5;
- break;
- case 5:
- Y9n = this.vV && a.Vn() ? 4 : 3;
- break;
- case 4:
- return !0;
- break;
- case 9:
- Y9n = this.wV && b.lp && !a.Vn() ? 8 : 7;
- break;
- case 8:
- return !0;
- break;
- case 3:
- this.vV && (this.vV = !1);
- Y9n = 9;
- break;
- case 7:
- this.wV && (this.wV = !1);
- return !1;
- break;
- }
- }
- };
- a.prototype.Gza = function (a) {
- var j9n,
- I9n,
- n2E;
- j9n = 2;
- while (j9n !== 4) {
- n2E = "tdi";
- n2E += "g";
- n2E += "e";
- n2E += "s";
- n2E += "t";
- switch (j9n) {
- case 3:
- j9n = 9;
- break;
- case 5:
- return a;
- break;
- case 1:
- a = a.Di;
- j9n = 5;
- break;
- case 2:
- I9n = this.K.zga;
- j9n = I9n === n2E ? 1 : 3;
- break;
- case 9:
- a = a.sq && a.sq.D0;
- j9n = 5;
- break;
- }
- }
- };
- U9n = 16;
- break;
- }
- }
- }
- ();
- b.uoa = d;
- }, function (d, b, a) {
- var c,
- l;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.W5 = void 0;
- c = a(11);
- l = a(230);
- d = function () {
- function a(a, b, c, d, f, l, g, q, m, r, D) {
- void 0 === c && (c = 0);
- this.Zc = a;
- this.xV = b;
- this.T = c;
- this.na = d;
- this.sY = f;
- this.Wf = l;
- this.FG = g;
- this.config = q;
- this.G = m;
- this.Ua = r;
- this.rjb = D;
- this.ms = 0;
- }
- a.create = function (b) {
- var h,
- f,
- n,
- q,
- m,
- r,
- t,
- D,
- K,
- J,
- R,
- P,
- ba,
- z,
- T,
- U;
- function d(a) {
- return K.ab.us[a];
- }
- function g(a) {
- c.Ja(K, a.type, a);
- }
- h = b.Ya;
- f = b.ya;
- n = b.GRa;
- q = b.T;
- m = b.na;
- r = b.ds;
- t = b.Gm;
- D = b.Ua;
- K = b.rb;
- J = b.config;
- R = b.G;
- P = b.hf;
- ba = b.Cl;
- z = b.Ue;
- T = b.iy;
- U = new l.MR({
- oa: Number(f.movieId),
- Ya: h,
- ya: f,
- Jk: b.Jk,
- jb: b.jb,
- Oia: {
- TZ: b.Ef,
- nha: !!b.KKa
- },
- Ri: b.Ri,
- Vp: b.Vp,
- config: J,
- AQ: J.sB ? {
- vC: K.al.vC,
- fa: K.al.fa,
- Mx: K.al.Mx,
- Am: D.Am.bind(D),
- lq: d
- }
- : void 0,
- oga: {
- Mc: P.si.bind(P),
- Ue: z,
- iy: T,
- wl: g,
- QZ: function (a) {
- return a === K.pa.Ub.R;
- },
- OY: function (a, b, c, f, d) {
- a = K.ab.Ne[a];
- return !b || c || f || d ? K.bL : a.Fm;
- },
- lq: d,
- Wf: K.Wf.bind(K)
- },
- EH: function (a) {
- K.emit("requestComplete", {
- timestamp: a.cd,
- mediaRequest: a
- });
- },
- AN: function () {
- return K.zf;
- },
- ub: K.zb.ub,
- Gf: K.zb.Gf,
- Mda: {
- ds: r,
- Ig: function (a, b, c, f, d) {
- K.fl(a, h, b, c, f, d);
- },
- bp: function () {
- return K.mF;
- },
- ZG: K.X.Dg.bind(K.X),
- Gm: t,
- wl: g
- },
- OC: void 0
- });
- U.hy.on("onHeaderFragments", function (a) {
- var b,
- c,
- f,
- d,
- k;
- b = a.M;
- c = a.sa;
- f = a.stream.$;
- d = K.Wf(h);
- if (d) {
- if (U.jg[b] && a !== U.jg[b])
- a.Vr && (d = U.jg[b], a = a.stream, k = d && d.stream, R.warn("first header received for non-current track (trackId " + a.eb + "streamId " + a.sa + "), expected track " + (k && k.eb) + ", stream " + (k && k.sa) + ", " + d));
- else {
- U.jg[b] = a;
- a = K.pa.Ub;
- if (0 === h) {
- k = U.jb(1) ? a.Le(1).Mb : a.Le(0).Mb;
- a.wW(k, U);
- }
- d.LP = !1;
- d.uW();
- K.NV();
- }
- ba.w9();
- D.B6a(h, b, c, U.u, f);
- P.si();
- } else
- R.warn("addFragments for stale manifestIndex:", h);
- });
- U.hy.on("onHeaderRequestComplete", function (a) {
- var b,
- c;
- a.Cj ? K.NV() : a.Ox && (R.warn("drm header header:", a.toString(), "but no headers seen, marking pipeline drmReady"), K.wX(a.u));
- b = a.M;
- c = Object.getOwnPropertyNames(T.vr[b]);
- K.Af[b].JNa(a.stream, 1 === c.length && c[0] === a.sa);
- P.pza();
- K.FBb();
- });
- U.hy.on("onHeaderFromCache", function (a) {
- var b;
- b = a.Wo;
- a = a.ekb;
- b.Cj && K.NV();
- a && D.s6a(b.u, b.sa);
- });
- return new a(U, n, q, m, function () {
- return K.pa;
- }, K.Wf.bind(K), K.FG.bind(K), J, R, D, !1);
- };
- Object.defineProperties(a.prototype, {
- R: {
- get: function () {
- return this.Zc;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- Ya: {
- get: function () {
- return this.R.Ya;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- a.prototype.om = function (a) {
- return this.Zc.oJa(a, this.yY(a));
- };
- a.prototype.yY = function (a) {
- return this.xV[a];
- };
- a.prototype.yc = function () {
- this.Zc.yc();
- delete this.Zc;
- };
- a.prototype.clone = function () {
- return new a(this.R, this.xV, this.T, this.na, this.sY, this.Wf, this.FG, this.config, this.G, this.Ua, !0);
- };
- a.prototype.Lna = function (a) {
- this.G.trace("updateAudioTrack:", this.xV[0], "->", a);
- this.xV[0] = a;
- };
- a.prototype.tIa = function () {
- return void 0 !== this.qC ? this.qC : this.na ? this.na : this.Zc.ya.duration;
- };
- a.prototype.Bbb = function (a, b) {
- var c,
- d,
- f,
- k;
- c = this.Zc.jg[1];
- if (c && c.stream.ae) {
- if (this.Mu && this.Mu[1] && this.Mu[1].T <= a && this.Mu[1].na > a)
- return this.Mu[1].ed;
- d = c.stream.$;
- f = d.km(a, void 0, !0);
- k = void 0;
- b && (a = c.stream.wi(f).VX(a)) && (k = a.Vc);
- void 0 === k && (k = d.$h(f));
- return k;
- }
- };
- a.prototype.uW = function () {
- var a,
- b;
- if (!this.LP && this.GJa()) {
- this.xja();
- b = [0, 0];
- 0 === this.Ya || this.Zc.ye.KO || this.Zc.ye.replace || (a = this.Wf(this.Ya - 1), a = this.Zc.u === a.Zc.u, b = this.sY().Ub, a = b.wW(this.T, this.R, b, a), b = a.$H);
- this.T = b[1];
- this.$H = b;
- this.Mu = a && a.Mu;
- this.wDa();
- a = this.Zc.jb(1) ? this.Zc.jg[1].stream.$.na : this.Zc.jg[0].stream.$.na;
- this.Ua.x6a(this.Ya, this.ms, this.T, this.qC, a);
- this.LP = !0;
- for (a = this.Ya + 1; a < this.FG(); ++a)
- b = this.Wf(a), b.LP = !1, b.uW();
- }
- };
- a.prototype.wDa = function () {
- var a;
- if (0 === this.Ya || this.Zc.ye.replace)
- this.ms = 0;
- else {
- a = this.Wf(this.Ya - 1);
- this.ms = a.ms + a.tIa() - this.T;
- }
- };
- a.prototype.xja = function () {
- var a,
- b,
- c,
- d;
- if (this.GJa()) {
- a = this.sY().Ub;
- b = this.na || Infinity;
- c = this.Zc.jb(1);
- d = a.tN(b, this.R);
- this.qC = c ? d[1].na : d[0].na;
- this.Ua.z6a(this.Ya, this.qC, c ? this.Zc.jg[1].stream.$.na : this.Zc.jg[0].stream.$.na);
- a = this.sY().cea(this.Ya);
- 0 < a.length && a.forEach(function (a) {
- a.BHb(d, b);
- });
- }
- };
- a.prototype.GJa = function () {
- var a,
- b,
- c,
- d;
- a = this.Zc.jb(0);
- b = this.Zc.jb(1);
- c = this.Zc.jg[0];
- d = this.Zc.jg[1];
- c = c && c.stream.ae;
- d = d && d.stream.ae;
- return (!a || c) && (!b || d);
- };
- return a;
- }
- ();
- b.W5 = d;
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Wwa = void 0;
- d = function () {
- function a(a, b, d, g, k, p, h, f, u, m) {
- var c;
- c = this;
- this.id = a;
- this.R = b;
- this.T = d;
- this.XM = k;
- this.Aj = p;
- this.Qs = h;
- this.C2 = f;
- this.Jk = u;
- this.pe = m;
- this.UY = function (a) {
- var b,
- f;
- return (null === (f = null === (b = c.Aj) || void 0 === b ? void 0 : b[a]) || void 0 === f ? void 0 : f.VGb) || c.pe;
- };
- this.na = g || Infinity;
- }
- Object.defineProperties(a.prototype, {
- oa: {
- get: function () {
- return this.R.oa;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- a.prototype.SHa = function () {
- var a,
- b,
- d;
- a = this;
- d = Object.keys(this.Aj || {}).filter(function (b) {
- var c,
- d;
- return !(null === (d = null === (c = a.Aj) || void 0 === c ? void 0 : c[b]) || void 0 === d || !d.weight);
- });
- return d.length ? null !== (b = d.map(this.UY).reduce(function (a, b) {
- return a === b ? b : void 0;
- })) && void 0 !== b ? b : this.pe : this.pe;
- };
- a.prototype.toString = function () {
- return "segmentId: " + this.id + " playlistSegmentId: " + this.Jk + " viewableId: " + this.R.oa + " pts: " + this.T + "-" + this.na + " defaultKey: " + this.XM + " dests: " + JSON.stringify(this.Aj) + " terminal: " + !!this.Qs;
- };
- a.prototype.toJSON = function () {
- return {
- id: this.id,
- viewable: this.R.oa,
- "startPts:": this.T,
- endPts: this.na,
- defaultKey: this.XM,
- "dests:": this.Aj,
- terminal: !!this.Qs,
- playlistSegmentId: this.Jk
- };
- };
- return a;
- }
- ();
- b.Wwa = d;
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Tsa = void 0;
- d = function () {
- function a(a, b, d, g, k, p, h, f) {
- this.ad = a;
- this.hDa = b;
- this.config = d;
- this.console = g;
- this.M = k;
- this.Ua = p;
- this.Ia = h;
- this.rb = f;
- this.mo = this.Lg = !1;
- }
- a.prototype.KF = function (a, b) {
- !this.ad.da.Qs || this.rb.UE || this.rb.jV && !this.config.zaa || (a -= this.ad.ie, this.Lg && !this.mo && a + this.config.nGb >= b && 0 === this.Ia.Gv && 0 === this.Ia.Xs && 0 === this.Ia.Vzb && (b = this.rb.Md.R.Ya, a = this.rb.FG(), b + 1 < a || (this.hDa[this.M].iTa || this.Ua.p6a(this.M), this.mo = !0, this.hDa[this.M].j0())));
- };
- return a;
- }
- ();
- b.Tsa = d;
- }, function (d, b, a) {
- var c,
- l,
- g,
- n,
- k,
- p,
- h,
- f,
- u,
- m,
- r,
- C,
- t,
- D,
- K,
- J,
- R,
- P,
- ba,
- z,
- T,
- U,
- x,
- ha,
- V,
- ta,
- N,
- na,
- ma,
- B,
- Q,
- L,
- ia,
- Ga,
- S;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.$wa = void 0;
- c = a(22);
- l = a(7);
- g = a(367);
- n = a(165);
- k = a(734);
- p = a(216);
- h = a(17);
- f = a(413);
- u = a(231);
- m = a(217);
- r = a(733);
- C = a(373);
- t = a(212);
- D = a(725);
- K = a(723);
- J = a(4);
- R = J.Promise;
- P = J.MediaSource;
- ba = a(11);
- z = a(6);
- T = a(366);
- U = a(722);
- x = a(161);
- ha = a(721);
- V = a(720);
- ta = a(719);
- N = a(718);
- na = a(73);
- ma = a(717);
- B = a(716);
- Q = a(387);
- L = a(715);
- d = a(38);
- ia = a(385);
- Ga = a(713);
- S = a(380);
- a = function () {
- var j2E;
- function a(a, b, f, d, h, l, p, n, q, u, A) {
- var R2E,
- G,
- t,
- H,
- z,
- T,
- n8p,
- F8p,
- f8p,
- e8p,
- M8p,
- y8p;
- R2E = 2;
- while (R2E !== 74) {
- n8p = "bra";
- n8p += "nchi";
- n8p += "ng";
- F8p = "media|";
- F8p += "ase";
- F8p += "js";
- f8p = "A";
- f8p += "S";
- f8p += "E";
- f8p += "J";
- f8p += "S";
- e8p = "1SIY";
- e8p += "b";
- e8p += "ZrN";
- e8p += "JCp9";
- M8p = "manager";
- M8p += "d";
- M8p += "ebug";
- M8p += "event";
- y8p = "me";
- y8p += "d";
- y8p += "iaca";
- y8p += "che";
- switch (R2E) {
- case 42:
- this.Cl = new L.Vwa(this, this.G, this.jb.bind(this), t);
- this.hf = new ta.Eqa(this, this.G, this.jb.bind(this));
- this.gN = new V.Dqa(this, this.G, t);
- R2E = 39;
- break;
- case 54:
- H && u.jG && !u.fib && (u.set ? u.set({
- enableAdaptiveParallelStreaming: !1
- }) : u.jG = !1);
- 0 === Math.floor(1E6 * Math.random()) % u.$L && (this.M7a = new D.vwa());
- this.zr = [];
- this.Af = [];
- this.TRa = new m.TS(b, this.zb.ub, this.zb.Gf, this.K, void 0);
- a = this.TRa.Xnb();
- R2E = 48;
- break;
- case 58:
- R = b.R;
- this.pa = new g.F3(this, this.Ua, this.G, this.G$.bind(this), R, this.AV, this.K, this.hf, this.X, this.CN.bind(this));
- R2E = 56;
- break;
- case 26:
- this.al = p;
- R2E = 25;
- break;
- case 59:
- this.zf.Mna(this.K);
- R2E = 58;
- break;
- case 29:
- this.bL = void 0;
- this.VU = -1;
- this.u$ = 0;
- this.Sf = new c.Ll();
- R2E = 42;
- break;
- case 2:
- G = this;
- this.Ow = new Q.K7();
- R2E = 4;
- break;
- case 77:
- R2E = this.So ? 76 : 74;
- break;
- case 62:
- R2E = u.Ada && this.zf.WZ ? 61 : 58;
- break;
- case 32:
- this.VE = 0;
- this.P8 = n;
- this.mF = !1;
- R2E = 29;
- break;
- case 36:
- this.Sf.on(this.zb.Ue, y8p, function (a) {
- var s2E,
- b8p;
- s2E = 2;
- while (s2E !== 1) {
- b8p = "me";
- b8p += "dia";
- b8p += "ca";
- b8p += "ch";
- b8p += "e";
- switch (s2E) {
- case 4:
- ba.Ja(G, "", a);
- s2E = 7;
- break;
- s2E = 1;
- break;
- case 2:
- ba.Ja(G, b8p, a);
- s2E = 1;
- break;
- }
- }
- });
- R2E = 54;
- break;
- case 39:
- R2E = u.Zg && this.zb.Ue ? 38 : 37;
- break;
- case 56:
- R = {
- CO: this.CO,
- Hs: this.Hs,
- Tk: this.Tk,
- CC: this.CC
- };
- this.ab = new C.mxa(this.G, this.zf, this.K, this.jb.bind(this), this.X, R, this.zb.ub, this.Ua, this.hf, this.pa, z);
- R2E = 77;
- break;
- case 61:
- u = u.tpb;
- for (var R in u) {
- f = u[R];
- u.hasOwnProperty(R) && f && (this.K[R] = f);
- }
- R2E = 59;
- break;
- case 48:
- h = null;
- u.lN && (h = this.zb.zp.Tt);
- x.ct.kg().reset();
- b = k.W5.create({
- Ya: 0,
- ya: b,
- Jk: f,
- GRa: d,
- Ef: !!l.Ef,
- KKa: !1,
- Ri: !!l.Ri,
- Vp: A || this.LK,
- T: 0,
- na: l.na,
- Ua: this.Ua,
- ds: this.Iza.bind(this),
- Gm: this.hSa.bind(this, !1),
- jb: this.jb.bind(this),
- rb: this,
- config: this.K,
- G: this.G,
- hf: this.hf,
- Cl: this.Cl,
- Ue: this.zBa ? this.zb.Ue : void 0,
- iy: this.iy
- });
- b.XL = !0;
- this.pc = [b];
- R2E = 63;
- break;
- case 34:
- this.X = new B.Foa(q);
- this.AV = h || 0;
- R2E = 32;
- break;
- case 76:
- T = this;
- this.X.addListener(function (a) {
- var S2E,
- i2E;
- S2E = 2;
- while (S2E !== 1) {
- switch (S2E) {
- case 2:
- try {
- i2E = 2;
- while (i2E !== 1) {
- switch (i2E) {
- case 2:
- T.ab.HHb.bind(T.ab)(a);
- i2E = 1;
- break;
- }
- }
- } catch (jb) {
- var L8p;
- L8p = "Hind";
- L8p += "sight: Error when adding updatePla";
- L8p += "ySegment Listener: ";
- v3YY.Q8p(0);
- T.Ua.Am(v3YY.Y8p(jb, L8p));
- }
- S2E = 1;
- break;
- }
- }
- });
- R2E = 74;
- break;
- case 38:
- this.Sf.on(this.zb.Ue, M8p, function (a) {
- var f2E;
- f2E = 2;
- while (f2E !== 1) {
- switch (f2E) {
- case 4:
- ba.Ja(G, a.type, a);
- f2E = 2;
- break;
- f2E = 1;
- break;
- case 2:
- ba.Ja(G, a.type, a);
- f2E = 1;
- break;
- }
- }
- });
- R2E = 37;
- break;
- case 4:
- this.LK = [];
- this.iy = {
- vr: [Object.create(null), Object.create(null)]
- };
- e8p;
- this.G = new J.Console(f8p, F8p, "(" + p.sessionId + ")");
- this.bf = this.G.error.bind(this.G);
- this.bb = this.G.warn.bind(this.G);
- this.uj = this.G.trace.bind(this.G);
- R2E = 13;
- break;
- case 20:
- z = H ? {
- kG: !1,
- So: !1
- }
- : K.oIa(u);
- this.kG = z.kG;
- this.So = z.So;
- this.uq = new N.Zsa(this, this.G, this.jb.bind(this), z);
- this.p8a = [!l.SIb, !l.ZQb];
- this.jb(0) && this.jb(1);
- this.zb = a;
- R2E = 26;
- break;
- case 63:
- this.zf = new r.uoa(this, this.G, a, this.zb.ub, u, this.kH(), h, this.jb.bind(this), z);
- R2E = 62;
- break;
- case 37:
- R2E = (u.Una || u.jz) && this.zb.Ue ? 36 : 54;
- break;
- case 25:
- this.K = u = this.yEa.E3a(b, u);
- this.jV = l.CC;
- this.zBa = !!l.XI;
- this.L8a = !!l.O2;
- this.UE = l.CO;
- this.tV = void 0;
- R2E = 34;
- break;
- case 13:
- t = new ma.tua(this, this.G);
- this.Ua = t;
- this.yEa = new ha.Vpa(this.G);
- H = !(!b || !b.choiceMap || n8p !== b.choiceMap.type);
- R2E = 20;
- break;
- }
- }
- }
- j2E = 2;
- while (j2E !== 116) {
- switch (j2E) {
- case 2:
- Object.defineProperties(a.prototype, {
- addEventListener: {
- get: function () {
- var b2E;
- b2E = 2;
- while (b2E !== 1) {
- switch (b2E) {
- case 4:
- return this.addListener.bind(this);
- break;
- b2E = 1;
- break;
- case 2:
- return this.addListener.bind(this);
- break;
- }
- }
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- removeEventListener: {
- get: function () {
- var C2E;
- C2E = 2;
- while (C2E !== 1) {
- switch (C2E) {
- case 4:
- return this.removeListener.bind(this);
- break;
- C2E = 1;
- break;
- case 2:
- return this.removeListener.bind(this);
- break;
- }
- }
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- xub: {
- get: function () {
- var w2E;
- w2E = 2;
- while (w2E !== 1) {
- switch (w2E) {
- case 2:
- return this.ef.xc;
- break;
- case 4:
- return this.ef.xc;
- break;
- w2E = 1;
- break;
- }
- }
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- Ho: {
- get: function () {
- var Z2E;
- Z2E = 2;
- while (Z2E !== 1) {
- switch (Z2E) {
- case 2:
- return this.jb(0);
- break;
- case 4:
- return this.jb(6);
- break;
- Z2E = 1;
- break;
- }
- }
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- Tk: {
- get: function () {
- var B2E;
- B2E = 2;
- while (B2E !== 1) {
- switch (B2E) {
- case 4:
- return this.jb(5);
- break;
- B2E = 1;
- break;
- case 2:
- return this.jb(1);
- break;
- }
- }
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- attributes: {
- get: function () {
- var X2E;
- X2E = 2;
- while (X2E !== 1) {
- switch (X2E) {
- case 4:
- return this.P8;
- break;
- X2E = 1;
- break;
- case 2:
- return this.P8;
- break;
- }
- }
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- Ak: {
- get: function () {
- var o2E;
- o2E = 2;
- while (o2E !== 1) {
- switch (o2E) {
- case 2:
- return this.Sf;
- break;
- case 4:
- return this.Sf;
- break;
- o2E = 1;
- break;
- }
- }
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- EP: {
- get: function () {
- var E2E;
- E2E = 2;
- while (E2E !== 1) {
- switch (E2E) {
- case 4:
- return 1 >= this.VU ? this.VU : 8;
- break;
- E2E = 1;
- break;
- case 2:
- return 0 <= this.VU ? this.VU : 0;
- break;
- }
- }
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- Md: {
- get: function () {
- var F2E;
- F2E = 2;
- while (F2E !== 1) {
- switch (F2E) {
- case 2:
- return this.pc[this.VE];
- break;
- case 4:
- return this.pc[this.VE];
- break;
- F2E = 1;
- break;
- }
- }
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- zp: {
- get: function () {
- var G2E;
- G2E = 2;
- while (G2E !== 1) {
- switch (G2E) {
- case 4:
- return this.zb.zp;
- break;
- G2E = 1;
- break;
- case 2:
- return this.zb.zp;
- break;
- }
- }
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- Hs: {
- get: function () {
- var l2E;
- l2E = 2;
- while (l2E !== 1) {
- switch (l2E) {
- case 4:
- return this.M7a;
- break;
- l2E = 1;
- break;
- case 2:
- return this.M7a;
- break;
- }
- }
- },
- enumerable: !1,
- configurable: !0
- }
- });
- j2E = 12;
- break;
- case 12:
- Object.defineProperties(a.prototype, {
- CO: {
- get: function () {
- var r2E;
- r2E = 2;
- while (r2E !== 1) {
- switch (r2E) {
- case 2:
- return this.UE;
- break;
- case 4:
- return this.UE;
- break;
- r2E = 1;
- break;
- }
- }
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- CC: {
- get: function () {
- var H2E;
- H2E = 2;
- while (H2E !== 1) {
- switch (H2E) {
- case 4:
- return this.jV;
- break;
- H2E = 1;
- break;
- case 2:
- return this.jV;
- break;
- }
- }
- },
- enumerable: !1,
- configurable: !0
- }
- });
- a.prototype.jb = function (a) {
- var N2E;
- N2E = 2;
- while (N2E !== 1) {
- switch (N2E) {
- case 4:
- return this.p8a[a];
- break;
- N2E = 1;
- break;
- case 2:
- return this.p8a[a];
- break;
- }
- }
- };
- a.prototype.CN = function () {
- var M2E;
- M2E = 2;
- while (M2E !== 1) {
- switch (M2E) {
- case 2:
- return J.time.ea() - this.X8;
- break;
- case 4:
- return J.time.ea() * this.X8;
- break;
- M2E = 1;
- break;
- }
- }
- };
- a.prototype.hSa = function (a) {
- var L2E;
- L2E = 2;
- while (L2E !== 1) {
- switch (L2E) {
- case 2:
- this.mF = a;
- L2E = 1;
- break;
- case 4:
- this.mF = a;
- L2E = 2;
- break;
- L2E = 1;
- break;
- }
- }
- };
- a.prototype.DIa = function () {
- var d2E;
- d2E = 2;
- while (d2E !== 1) {
- switch (d2E) {
- case 2:
- return (this.pc || []).reduce(function (a, b) {
- var g2E,
- c;
- g2E = 2;
- while (g2E !== 3) {
- switch (g2E) {
- case 4:
- return a;
- break;
- case 2:
- c = b.R;
- u.Pe.forEach(function (b) {
- var P2E;
- P2E = 2;
- while (P2E !== 1) {
- switch (P2E) {
- case 2:
- c.wq[b] > a[b] && (a[b] = c.wq[b]);
- P2E = 1;
- break;
- }
- }
- });
- g2E = 4;
- break;
- }
- }
- }, [0, 0]);
- break;
- }
- }
- };
- a.prototype.kH = function () {
- var U2E,
- a;
- U2E = 2;
- while (U2E !== 3) {
- switch (U2E) {
- case 14:
- return a;
- break;
- U2E = 3;
- break;
- case 4:
- return a;
- break;
- case 2:
- a = 0;
- l.forEach(this.Md.R.ya.audio_tracks, function (b) {
- var p2E;
- p2E = 2;
- while (p2E !== 1) {
- switch (p2E) {
- case 2:
- l.forEach(b.streams, function (b) {
- var y2E;
- y2E = 2;
- while (y2E !== 1) {
- switch (y2E) {
- case 2:
- a = Math.max(a, b.bitrate);
- y2E = 1;
- break;
- }
- }
- });
- p2E = 1;
- break;
- }
- }
- });
- U2E = 4;
- break;
- }
- }
- };
- a.prototype.Wf = function (a) {
- var W2E;
- W2E = 2;
- while (W2E !== 1) {
- switch (W2E) {
- case 4:
- return this.pc[a];
- break;
- W2E = 1;
- break;
- case 2:
- return this.pc[a];
- break;
- }
- }
- };
- a.prototype.wmb = function () {
- var K2E,
- a;
- K2E = 2;
- while (K2E !== 4) {
- switch (K2E) {
- case 2:
- a = this.pc[0];
- return a.R.ye.Ef ? this.pc[1] : a;
- break;
- }
- }
- };
- a.prototype.FG = function () {
- var D2E;
- D2E = 2;
- while (D2E !== 1) {
- switch (D2E) {
- case 4:
- return this.pc.length;
- break;
- D2E = 1;
- break;
- case 2:
- return this.pc.length;
- break;
- }
- }
- };
- a.prototype.eha = function (a, b) {
- var m2E;
- m2E = 2;
- while (m2E !== 9) {
- switch (m2E) {
- case 1:
- return !0;
- break;
- case 2:
- m2E = a === b ? 1 : 5;
- break;
- case 5:
- a = this.pc[a];
- b = this.pc[b];
- return a.R.ye.Ef && b.R.ye.KO || b.R.ye.Ef && a.R.ye.KO;
- break;
- }
- }
- };
- j2E = 25;
- break;
- case 29:
- a.prototype.close = function () {
- var Q4E;
- Q4E = 2;
- while (Q4E !== 4) {
- switch (Q4E) {
- case 2:
- this.TRa.close();
- this.pc.forEach(function (a) {
- var n4E;
- n4E = 2;
- while (n4E !== 1) {
- switch (n4E) {
- case 4:
- a.R.close();
- n4E = 5;
- break;
- n4E = 1;
- break;
- case 2:
- a.R.close();
- n4E = 1;
- break;
- }
- }
- });
- this.uq.close();
- Q4E = 4;
- break;
- }
- }
- };
- a.prototype.JQa = function () {
- var j4E;
- j4E = 2;
- while (j4E !== 1) {
- switch (j4E) {
- case 4:
- this.zb.D7a(this);
- j4E = 3;
- break;
- j4E = 1;
- break;
- case 2:
- this.zb.D7a(this);
- j4E = 1;
- break;
- }
- }
- };
- a.prototype.yc = function () {
- var R4E,
- a,
- l8p;
- R4E = 2;
- while (R4E !== 10) {
- l8p = "Error on Me";
- l8p += "diaSource des";
- l8p += "t";
- l8p += "roy: ";
- switch (R4E) {
- case 2:
- this.zf.Ewb();
- this.qU();
- this.pa.Jn();
- this.gN.D4a();
- null === (a = this.Bt) || void 0 === a ? void 0 : a.reset();
- R4E = 8;
- break;
- case 8:
- this.zr.forEach(function (a) {
- var f4E;
- f4E = 2;
- while (f4E !== 1) {
- switch (f4E) {
- case 4:
- a.reset();
- f4E = 3;
- break;
- f4E = 1;
- break;
- case 2:
- a.reset();
- f4E = 1;
- break;
- }
- }
- });
- this.X.de(h.ma.$m);
- R4E = 6;
- break;
- case 6:
- this.i4a();
- this.Sf.clear();
- a = this.ef;
- this.ef = void 0;
- R4E = 11;
- break;
- case 11:
- l.Y(a) || a.In() || this.bb(l8p, a.error);
- R4E = 10;
- break;
- }
- }
- };
- a.prototype.suspend = function () {
- var s4E;
- s4E = 2;
- while (s4E !== 1) {
- switch (s4E) {
- case 4:
- this.uq.suspend();
- s4E = 4;
- break;
- s4E = 1;
- break;
- case 2:
- this.uq.suspend();
- s4E = 1;
- break;
- }
- }
- };
- a.prototype.resume = function () {
- var S4E;
- S4E = 2;
- while (S4E !== 1) {
- switch (S4E) {
- case 2:
- this.uq.resume();
- S4E = 1;
- break;
- case 4:
- this.uq.resume();
- S4E = 8;
- break;
- S4E = 1;
- break;
- }
- }
- };
- a.prototype.cf = function () {
- var i4E;
- i4E = 2;
- while (i4E !== 1) {
- switch (i4E) {
- case 2:
- return this.uq.cf();
- break;
- case 4:
- return this.uq.cf();
- break;
- i4E = 1;
- break;
- }
- }
- };
- a.prototype.e8a = function () {
- var b4E,
- a;
- b4E = 2;
- while (b4E !== 7) {
- switch (b4E) {
- case 2:
- a = this.K;
- this.nx && clearTimeout(this.nx);
- this.nx = setTimeout(this.KL.bind(this), a.L2);
- this.Rw || (this.Rw = setInterval(this.Ua.qAa.bind(this.Ua), a.WA));
- this.GV || (this.GV = setInterval(this.Ua.L6a.bind(this.Ua), a.Vma));
- this.Hs && !this.hU && (this.hU = setInterval(this.Ua.pAa.bind(this.Ua), a.Kaa));
- b4E = 7;
- break;
- }
- }
- };
- a.prototype.qU = function () {
- var C4E;
- C4E = 2;
- while (C4E !== 7) {
- switch (C4E) {
- case 2:
- this.nx && (clearTimeout(this.nx), this.nx = void 0);
- this.Rw && (clearInterval(this.Rw), this.Rw = void 0);
- C4E = 5;
- break;
- case 5:
- this.GV && (clearInterval(this.GV), this.GV = void 0);
- this.hU && (clearInterval(this.hU), this.hU = void 0);
- this.yE && (clearTimeout(this.yE), this.yE = void 0);
- this.q9 && (clearTimeout(this.q9), this.q9 = void 0);
- this.hf.qU();
- C4E = 7;
- break;
- }
- }
- };
- a.prototype.play = function () {
- var w4E;
- w4E = 2;
- while (w4E !== 1) {
- switch (w4E) {
- case 4:
- this.uq.play();
- w4E = 0;
- break;
- w4E = 1;
- break;
- case 2:
- this.uq.play();
- w4E = 1;
- break;
- }
- }
- };
- a.prototype.stop = function () {
- var Z4E;
- Z4E = 2;
- while (Z4E !== 1) {
- switch (Z4E) {
- case 2:
- this.uq.stop();
- Z4E = 1;
- break;
- case 4:
- this.uq.stop();
- Z4E = 9;
- break;
- Z4E = 1;
- break;
- }
- }
- };
- a.prototype.Vy = function (a, b, c) {
- var B4E;
- B4E = 2;
- while (B4E !== 5) {
- switch (B4E) {
- case 2:
- c && (z.assert(void 0 === b), b = this.IY(c));
- return this.Cl.Vy(a, b);
- break;
- }
- }
- };
- j2E = 54;
- break;
- case 25:
- a.prototype.LY = function () {
- var h2E;
- h2E = 2;
- while (h2E !== 1) {
- switch (h2E) {
- case 4:
- return this.pa.Kk.da.id;
- break;
- h2E = 1;
- break;
- case 2:
- return this.pa.Kk.da.id;
- break;
- }
- }
- };
- a.prototype.uY = function (a) {
- var Y2E;
- Y2E = 2;
- while (Y2E !== 5) {
- switch (Y2E) {
- case 1:
- return {
- ie: a.ie,
- ed: a.nka,
- ze: a.ze,
- zc: a.I1,
- Wb: a.Wb
- };
- break;
- case 2:
- Y2E = (a = this.pa.Kk.children[a]) ? 1 : 5;
- break;
- }
- }
- };
- a.prototype.KY = function () {
- var c2E,
- a;
- c2E = 2;
- while (c2E !== 4) {
- switch (c2E) {
- case 2:
- a = this.pa.Kk;
- return {
- id: a.da.id,
- ie: a.ie,
- ed: a.nka,
- ze: a.ze,
- zc: a.I1,
- Wb: a.Wb
- };
- break;
- }
- }
- };
- a.prototype.H2 = function (a, b) {
- var J4E;
- J4E = 2;
- while (J4E !== 1) {
- switch (J4E) {
- case 4:
- return this.pa.H2(a, b);
- break;
- J4E = 1;
- break;
- case 2:
- return this.pa.H2(a, b);
- break;
- }
- }
- };
- a.prototype.i4a = function () {
- var e4E,
- a,
- b;
- e4E = 2;
- while (e4E !== 9) {
- switch (e4E) {
- case 5:
- a = this.pc[b],
- a.yc();
- e4E = 4;
- break;
- case 1:
- e4E = b < this.pc.length ? 5 : 3;
- break;
- case 4:
- ++b;
- e4E = 1;
- break;
- case 2:
- b = 0;
- e4E = 1;
- break;
- case 3:
- this.pc.length = 0;
- e4E = 9;
- break;
- }
- }
- };
- a.prototype.open = function () {
- var z4E,
- a,
- b,
- c,
- f,
- d,
- h,
- k,
- g,
- p,
- n,
- N1p,
- r1p,
- O1p,
- u1p,
- a1p,
- z1p,
- v1p,
- D1p,
- c1p,
- S1p,
- V8p;
- z4E = 2;
- while (z4E !== 28) {
- N1p = "c";
- N1p += "r";
- N1p += "eateMediaSourceSt";
- N1p += "art";
- r1p = "Er";
- r1p += "r";
- r1p += "or:";
- O1p = "s";
- O1p += "tartp";
- O1p += "lay";
- u1p = "l";
- u1p += "og";
- u1p += "da";
- u1p += "t";
- u1p += "a";
- a1p = "N";
- a1p += "FErr_M";
- a1p += "C_StreamingIn";
- a1p += "itFailure";
- z1p = "startPts m";
- z1p += "ust be a positive n";
- z1p += "umber, not ";
- v1p = "create";
- v1p += "Media";
- v1p += "SourceEn";
- v1p += "d";
- D1p = "NFErr_MC_StreamingIni";
- D1p += "tF";
- D1p += "ailure";
- c1p = "excepti";
- c1p += "on i";
- c1p += "n init";
- S1p = "E";
- S1p += "r";
- S1p += "r";
- S1p += "o";
- S1p += "r:";
- V8p = "h";
- V8p += "e";
- V8p += "aders";
- switch (z4E) {
- case 5:
- z4E = !l.la(this.AV) || 0 > this.AV ? 4 : 3;
- break;
- case 16:
- z4E = 1 === p.readyState ? 15 : 29;
- break;
- case 23:
- p.sourceBuffers.forEach(function (c) {
- var v4E,
- f,
- d,
- m8p,
- k8p,
- s8p,
- j8p,
- i8p;
- v4E = 2;
- while (v4E !== 11) {
- m8p = "headerApp";
- m8p += "en";
- m8p += "ded";
- k8p = "managerdebu";
- k8p += "gev";
- k8p += "ent";
- s8p = "l";
- s8p += "o";
- s8p += "gda";
- s8p += "ta";
- j8p = "err";
- j8p += "o";
- j8p += "r";
- i8p = "req";
- i8p += "uestApp";
- i8p += "ended";
- switch (v4E) {
- case 8:
- c.addListener(i8p, a.p5a.bind(a));
- c.addListener(j8p, function (b) {
- var u4E,
- x8p;
- u4E = 2;
- while (u4E !== 1) {
- x8p = "NFErr_";
- x8p += "MC_StreamingFail";
- x8p += "ure";
- switch (u4E) {
- case 2:
- a.fl(b.errorstr, void 0, x8p);
- u4E = 1;
- break;
- }
- }
- });
- c.addListener(s8p, function (b) {
- var V4E;
- V4E = 2;
- while (V4E !== 1) {
- switch (V4E) {
- case 4:
- ba.Ja(a, b.type, b);
- V4E = 7;
- break;
- V4E = 1;
- break;
- case 2:
- ba.Ja(a, b.type, b);
- V4E = 1;
- break;
- }
- }
- });
- b.Zg && c.addListener(k8p, function (b) {
- var A4E;
- A4E = 2;
- while (A4E !== 1) {
- switch (A4E) {
- case 2:
- ba.Ja(a, b.type, b);
- A4E = 1;
- break;
- case 4:
- ba.Ja(a, b.type, b);
- A4E = 7;
- break;
- A4E = 1;
- break;
- }
- }
- });
- a.Af[f] = c;
- a.zr[f] = d;
- v4E = 11;
- break;
- case 2:
- f = c.M;
- v4E = 5;
- break;
- case 5:
- d = a.ab.Ne[f];
- c = new t.H3(d.G, f, p, c, b, a.X, a.Wf.bind(a));
- d = new U.Rsa(c, f, a.pa, a.K, d.G);
- c.addListener(m8p, a.m5a.bind(a));
- v4E = 8;
- break;
- }
- }
- });
- this.Bt = new ia.zT(this.zr, this.gF.bind(this), this.X.$d.bind(this.X));
- this.Hs && this.Ua.j6a();
- c = this.DIa();
- this.Ua.rAa(c);
- n = function () {
- var T4E,
- P8p;
- T4E = 2;
- while (T4E !== 5) {
- P8p = "shutdown detected before s";
- P8p += "t";
- P8p += "a";
- P8p += "rtRequests";
- switch (T4E) {
- case 2:
- a.Ua.A6a();
- a.cf() ? a.bb(P8p) : a.j8a();
- T4E = 5;
- break;
- }
- }
- };
- z4E = 32;
- break;
- case 3:
- b = this.K;
- c = this.Md.R;
- f = c.u;
- d = [];
- h = [V8p];
- this.Tk && (d.push(1), h.push(1));
- this.Ho && (d.push(0), h.push(0));
- z4E = 12;
- break;
- case 25:
- z4E = !p.YV(d) ? 24 : 23;
- break;
- case 12:
- this.gN.x5a();
- k = b.UL;
- this.zb.Ue && this.zb.Ue.VL(k, this.al.sessionId);
- z4E = 20;
- break;
- case 29:
- this.uj(S1p, p.error),
- this.fl(c1p, void 0, D1p);
- z4E = 28;
- break;
- case 1:
- a = this;
- z4E = 5;
- break;
- case 15:
- this.Ua.gk(v1p);
- p.xc || (p.xc = P.xc);
- z4E = 26;
- break;
- case 4:
- this.fl(z1p + this.AV, void 0, a1p);
- z4E = 28;
- break;
- case 26:
- this.ef = p;
- z4E = 25;
- break;
- case 32:
- b.Lgb ? setTimeout(function () {
- var k4E;
- k4E = 2;
- while (k4E !== 1) {
- switch (k4E) {
- case 4:
- a.Xya(f).then(n);
- k4E = 7;
- break;
- k4E = 1;
- break;
- case 2:
- a.Xya(f).then(n);
- k4E = 1;
- break;
- }
- }
- }, 0) : this.Xya(f).then(function () {
- var t4E;
- t4E = 2;
- while (t4E !== 1) {
- switch (t4E) {
- case 4:
- setTimeout(n, 1);
- t4E = 7;
- break;
- t4E = 1;
- break;
- case 2:
- setTimeout(n, 0);
- t4E = 1;
- break;
- }
- }
- });
- c = {
- type: u1p,
- target: O1p,
- fields: {
- audiogapconfig: b.sH,
- audiogapdpi: this.ef.xc && this.ef.xc.sH,
- aseApiVersion: this.aW
- }
- };
- this.emit(c.type, c);
- z4E = 28;
- break;
- case 24:
- throw this.uj(r1p, p.error),
- p.error;
- z4E = 23;
- break;
- case 2:
- z4E = 1;
- break;
- case 20:
- g = this.gN.q4a(h, c);
- h.forEach(function (b, c) {
- var a4E,
- K1p;
- a4E = 2;
- while (a4E !== 1) {
- K1p = "h";
- K1p += "ead";
- K1p += "ers";
- switch (a4E) {
- case 2:
- K1p === b ? a.bL = g[c] : a.ab.Ne[b].Fm = g[c];
- a4E = 1;
- break;
- }
- }
- });
- this.Ua.gk(N1p);
- p = new P(this.X.AM);
- z4E = 16;
- break;
- }
- }
- };
- Object.defineProperties(a.prototype, {
- aW: {
- get: function () {
- var q4E,
- X1p;
- q4E = 2;
- while (q4E !== 1) {
- X1p = "1";
- X1p += ".";
- X1p += "0";
- switch (q4E) {
- case 2:
- return X1p;
- break;
- case 4:
- return "";
- break;
- q4E = 1;
- break;
- }
- }
- },
- enumerable: !1,
- configurable: !0
- }
- });
- a.prototype.Hfa = function () {};
- a.prototype.flush = function () {
- var O4E;
- O4E = 2;
- while (O4E !== 1) {
- switch (O4E) {
- case 4:
- this.uq.flush();
- O4E = 6;
- break;
- O4E = 1;
- break;
- case 2:
- this.uq.flush();
- O4E = 1;
- break;
- }
- }
- };
- a.prototype.paused = function () {
- var x4E;
- x4E = 2;
- while (x4E !== 1) {
- switch (x4E) {
- case 4:
- this.X.paused();
- x4E = 2;
- break;
- x4E = 1;
- break;
- case 2:
- this.X.paused();
- x4E = 1;
- break;
- }
- }
- };
- a.prototype.kR = function () {
- var I4E;
- I4E = 2;
- while (I4E !== 1) {
- switch (I4E) {
- case 2:
- this.X.kR();
- I4E = 1;
- break;
- case 4:
- this.X.kR();
- I4E = 2;
- break;
- I4E = 1;
- break;
- }
- }
- };
- j2E = 29;
- break;
- case 54:
- a.prototype.seek = function (a, b) {
- var X4E;
- X4E = 2;
- while (X4E !== 1) {
- switch (X4E) {
- case 2:
- return this.Cl.seek(a, b);
- break;
- case 4:
- return this.Cl.seek(a, b);
- break;
- X4E = 1;
- break;
- }
- }
- };
- a.prototype.sUa = function (a) {
- var o4E,
- b,
- c,
- f,
- d,
- k,
- G4E,
- o1p,
- q1p,
- p1p,
- A1p,
- t1p;
- o4E = 2;
- while (o4E !== 26) {
- o1p = "unde";
- o1p += "rflo";
- o1p += "w";
- q1p = "b";
- q1p += "ranchO";
- q1p += "ff";
- q1p += "s";
- q1p += "et:";
- p1p = "entr";
- p1p += "y.ma";
- p1p += "ni";
- p1p += "festOff";
- p1p += "set:";
- A1p = "co";
- A1p += "nte";
- A1p += "nt";
- A1p += "Pt";
- A1p += "s:";
- t1p = "underflo";
- t1p += "w: going to BUFFERING at player ";
- t1p += "pts:";
- switch (o4E) {
- case 8:
- d = c.tv;
- this.Af.forEach(function (b) {
- var E4E;
- E4E = 2;
- while (E4E !== 1) {
- switch (E4E) {
- case 2:
- d = Math.max(0, Math.min(d, b.mfa - a));
- E4E = 1;
- break;
- }
- }
- });
- this.u$ += 1;
- this.pa.Ub.Ona(f, this.K.gna);
- k = this.pa.Ub;
- o4E = 12;
- break;
- case 2:
- b = this;
- c = this.K;
- f = this.Rr(this.EP, a);
- this.bb(t1p, a, A1p, f, p1p, this.Md.ms, q1p, this.pa.ie);
- S.c8.ABb();
- o4E = 8;
- break;
- case 12:
- u.Pe.forEach(function (f) {
- var F4E,
- d,
- h,
- l,
- T1p,
- Z1p,
- I1p,
- w1p,
- J1p,
- d1p,
- H1p,
- U1p,
- h1p;
- F4E = 2;
- while (F4E !== 14) {
- T1p = ",";
- T1p += " toAppe";
- T1p += "nd: ";
- Z1p = ", ";
- Z1p += "fragm";
- Z1p += "e";
- Z1p += "nts: ";
- I1p = ",";
- I1p += " comple";
- I1p += "teStrea";
- I1p += "mingPts: ";
- w1p = ", ";
- w1p += "streamingPts:";
- w1p += " ";
- J1p = ",";
- J1p += " p";
- J1p += "art";
- J1p += "ials:";
- J1p += " ";
- d1p = ", comple";
- d1p += "t";
- d1p += "edBytes";
- d1p += ":";
- d1p += " ";
- H1p = ", complet";
- H1p += "ed";
- H1p += "Ms: ";
- U1p = ",";
- U1p += " med";
- U1p += "i";
- U1p += "aTyp";
- U1p += "e: ";
- h1p = "un";
- h1p += "derflo";
- h1p += "w";
- h1p += ":";
- h1p += " ";
- switch (F4E) {
- case 5:
- F4E = d ? 4 : 14;
- break;
- case 2:
- d = k.Jc(f);
- F4E = 5;
- break;
- case 4:
- F4E = c.Zg ? 3 : 7;
- break;
- case 3:
- h = b.Af[f];
- l = b.pa.$A(k, f);
- F4E = 8;
- break;
- case 7:
- c.Zg && b.Ua.Dk(h);
- d.FW();
- F4E = 14;
- break;
- case 8:
- h = h1p + a + U1p + f + H1p + d.NF + d1p + l + J1p + d.Ia.Gv + w1p + d.Mb + I1p + d.Or + Z1p + JSON.stringify(d.Ia.$) + T1p + (h && h.O1());
- F4E = 7;
- break;
- }
- }
- });
- this.Md.R.Ek();
- this.emit(o1p);
- this.zV(2);
- o4E = 19;
- break;
- case 18:
- o4E = this.So ? 17 : 16;
- break;
- case 19:
- this.hf.si();
- o4E = 18;
- break;
- case 17:
- try {
- G4E = 2;
- while (G4E !== 1) {
- switch (G4E) {
- case 2:
- this.KX(h.ma.Ce);
- G4E = 1;
- break;
- case 4:
- this.KX(h.ma.Ce);
- G4E = 7;
- break;
- G4E = 1;
- break;
- }
- }
- } catch (bb) {
- var g1p;
- g1p = "Hin";
- g1p += "ds";
- g1p += "ight: ";
- g1p += "Error when evaluating QoE at Bufferi";
- g1p += "ng: ";
- v3YY.Q8p(0);
- this.Ua.Am(v3YY.B8p(bb, g1p));
- }
- o4E = 16;
- break;
- case 16:
- f = this.zb.ub.get();
- f = f.Ld ? f.Fa.Ca : 0;
- d > c.ujb && f > c.tjb && this.G$();
- o4E = 26;
- break;
- }
- }
- };
- a.prototype.Zh = function (a) {
- var l4E;
- l4E = 2;
- while (l4E !== 1) {
- switch (l4E) {
- case 2:
- return this.Cl.Zh(a);
- break;
- case 4:
- return this.Cl.Zh(a);
- break;
- l4E = 1;
- break;
- }
- }
- };
- a.prototype.vu = function (a, b, c) {
- var r4E;
- r4E = 2;
- while (r4E !== 1) {
- switch (r4E) {
- case 4:
- return this.Cl.vu(a, b, c);
- break;
- r4E = 1;
- break;
- case 2:
- return this.Cl.vu(a, b, c);
- break;
- }
- }
- };
- a.prototype.$za = function (a) {
- var H4E,
- b;
- H4E = 2;
- while (H4E !== 9) {
- switch (H4E) {
- case 2:
- this.VE = a;
- b = this.pc[a];
- this.Ua.y6a(a, b);
- H4E = 3;
- break;
- case 3:
- this.Ua.rAa(b.R.wq);
- H4E = 9;
- break;
- }
- }
- };
- a.prototype.NBa = function (a, b, c) {
- var N4E,
- f,
- d,
- h,
- g,
- p,
- n,
- u,
- M1p,
- L1p,
- b1p,
- y1p,
- Q1p,
- C1p,
- Y1p,
- B1p,
- E1p,
- R1p,
- W1p,
- G1p;
- N4E = 2;
- while (N4E !== 28) {
- M1p = "b";
- M1p += "oole";
- M1p += "a";
- M1p += "n";
- L1p = "addMani";
- L1p += "fe";
- L1p += "st in fa";
- L1p += "stplay but not drm manifest, leaving spac";
- L1p += "e for it";
- b1p = "vi";
- b1p += "de";
- b1p += "o";
- b1p += "_";
- b1p += "tracks";
- y1p = "audi";
- y1p += "o_trac";
- y1p += "ks";
- Q1p = ",";
- Q1p += " ";
- C1p = ") lastStreamAppe";
- C1p += "n";
- C1p += "ded: (";
- Y1p = ",";
- Y1p += " ";
- B1p = " st";
- B1p += "rea";
- B1p += "mCount:";
- B1p += " (";
- E1p = " ";
- E1p += "p";
- E1p += "la";
- E1p += "y";
- E1p += "erState: ";
- R1p = "addManif";
- R1p += "est, cu";
- R1p += "rrent";
- R1p += "Pts";
- R1p += ": ";
- W1p = "ad";
- W1p += "dManifest: pip";
- W1p += "elines alr";
- W1p += "eady shutdown";
- G1p = "addM";
- G1p += "a";
- G1p += "ni";
- G1p += "fest ignored, pipelines already set";
- G1p += " EOS:";
- switch (N4E) {
- case 2:
- f = this;
- N4E = 5;
- break;
- case 32:
- return !0;
- break;
- case 14:
- this.bb(G1p, h.mo, g.mo);
- N4E = 28;
- break;
- case 23:
- a.wDa();
- b.replace || this.pa.I9a(n, g, p);
- b = this.ab.us[0].YB;
- c = this.ab.us[1].YB;
- N4E = 34;
- break;
- case 3:
- this.bb(W1p);
- N4E = 28;
- break;
- case 34:
- d.Zg && this.Ua.Dk(R1p + this.X.$d() + E1p + this.X.bd() + B1p + a.om(0).Nc.length + Y1p + a.om(1).Nc.length + C1p + b + Q1p + c + ")");
- N4E = 33;
- break;
- case 20:
- p = b.na;
- a = k.W5.create({
- Ya: h,
- ya: a,
- Jk: c,
- GRa: b.NGb || [this.Md.yY(0), this.Md.yY(1)],
- Ef: !1,
- KKa: !!b.replace,
- Ri: !!b.Ri,
- Vp: b.Vp || this.LK,
- T: g,
- na: p,
- Ua: this.Ua,
- ds: this.Iza.bind(this),
- Gm: this.hSa.bind(this, !1),
- jb: this.jb.bind(this),
- rb: this,
- config: this.K,
- G: this.G,
- hf: this.hf,
- Cl: this.Cl,
- Ue: this.zBa ? this.zb.Ue : void 0,
- iy: this.iy
- });
- n = a.R;
- c = [y1p, b1p];
- N4E = 16;
- break;
- case 13:
- b.CC && (this.jV = !0);
- h = this.pc.length;
- b.replace && 1 !== h ? h = 1 : this.Md.R.ye.Ef && !b.replace && 1 === h && (this.bb(L1p), h = this.pc[0].clone(), this.pc.push(h), h = this.pc.length);
- g = b.T || 0;
- N4E = 20;
- break;
- case 5:
- d = this.K;
- N4E = 4;
- break;
- case 26:
- a.XL = M1p === typeof b.RCa ? b.RCa : !0;
- this.pc[h] && this.pc[h].yc();
- this.pc[h] = a;
- N4E = 23;
- break;
- case 16:
- u = this.DIa();
- b.replace && c.forEach(function (a, b) {
- var M4E,
- c,
- d;
- M4E = 2;
- while (M4E !== 9) {
- switch (M4E) {
- case 2:
- c = n.KG(b);
- M4E = 5;
- break;
- case 5:
- M4E = c ? 4 : 9;
- break;
- case 4:
- d = f.pc[0].R;
- Object.keys(c).forEach(function (a) {
- var L4E,
- f;
- L4E = 2;
- while (L4E !== 4) {
- switch (L4E) {
- case 2:
- f = d.cs(b, a);
- f && f.ae && (c[a].PW(f), a = n.wq, a[b] > u[b] && (u[b] = a[b]));
- L4E = 4;
- break;
- }
- }
- });
- M4E = 9;
- break;
- }
- }
- });
- c.forEach(function (a, b) {
- var d4E,
- c;
- d4E = 2;
- while (d4E !== 4) {
- switch (d4E) {
- case 2:
- c = n.KG(b);
- c && Object.keys(c).forEach(function (a) {
- var g4E,
- f;
- g4E = 2;
- while (g4E !== 3) {
- switch (g4E) {
- case 2:
- f = J.uk()[b];
- 1 === b && 0 < d.qs && (f = Math.min(f, d.qs));
- g4E = 4;
- break;
- case 4:
- c[a].zUa(f, n.$u() ? d.uMa : 0);
- g4E = 3;
- break;
- }
- }
- });
- d4E = 4;
- break;
- }
- }
- });
- N4E = 26;
- break;
- case 6:
- N4E = !b.Qpb && (this.Ho && h.mo || this.Tk && g.mo) ? 14 : 13;
- break;
- case 33:
- N4E = this.Ho && l.Y(b) || this.Tk && l.Y(c) ? 32 : 31;
- break;
- case 9:
- b || (b = {});
- h = this.pa.Ub.Jc(0);
- g = this.pa.Ub.Jc(1);
- N4E = 6;
- break;
- case 4:
- N4E = this.cf() ? 3 : 9;
- break;
- case 31:
- a.R.gI([a.om(0), a.om(1)]);
- this.NV();
- return !0;
- break;
- }
- }
- };
- a.prototype.PL = function (a) {
- var P4E;
- P4E = 2;
- while (P4E !== 1) {
- switch (P4E) {
- case 2:
- return this.Cl.PL(a);
- break;
- case 4:
- return this.Cl.PL(a);
- break;
- P4E = 1;
- break;
- }
- }
- };
- a.prototype.wX = function (a, b) {
- var U4E,
- c,
- f,
- d,
- n1p,
- F1p,
- f1p,
- e1p;
- U4E = 2;
- while (U4E !== 14) {
- n1p = " readyS";
- n1p += "tat";
- n1p += "e: ";
- F1p = " for m";
- F1p += "ovieId:";
- F1p += " ";
- f1p = ",";
- f1p += " ";
- e1p = "drm";
- e1p += "R";
- e1p += "eady at str";
- e1p += "e";
- e1p += "aming pts: ";
- switch (U4E) {
- case 2:
- c = this.K;
- U4E = 5;
- break;
- case 6:
- b && (this.Af.forEach(function (a) {
- var p4E;
- p4E = 2;
- while (p4E !== 5) {
- switch (p4E) {
- case 2:
- c.bY && a.cHa();
- c.dJ && a.resume();
- p4E = 5;
- break;
- }
- }
- }), c.dJ && this.DL(), this.Md.R.ye.Ef && this.MV(this.Cl.fx ? this.Cl.fx.Ya : this.VE + 1), this.Cl.w9());
- U4E = 14;
- break;
- case 4:
- l.Y(b) && (b = !0);
- f = this.pa.Ub.Jc(0);
- d = this.pa.Ub.Jc(1);
- c.Zg && this.Ua.Dk(e1p + (f ? f.Mb : null) + f1p + (d ? d.Mb : null) + F1p + a + n1p + b);
- v3YY.C8p(0);
- this.X.tQ(v3YY.Y8p("", a), b);
- U4E = 6;
- break;
- case 5:
- U4E = !this.cf() ? 4 : 14;
- break;
- }
- }
- };
- a.prototype.jga = function () {
- var y4E;
- y4E = 2;
- while (y4E !== 1) {
- switch (y4E) {
- case 2:
- return this.X.cv(this.Md.R);
- break;
- case 4:
- return this.X.cv(this.Md.R);
- break;
- y4E = 1;
- break;
- }
- }
- };
- a.prototype.Yya = function (a) {
- var W4E,
- b,
- c,
- f;
- W4E = 2;
- while (W4E !== 20) {
- switch (W4E) {
- case 7:
- c = this.pc[a].R;
- W4E = 6;
- break;
- case 2:
- W4E = 1;
- break;
- case 1:
- W4E = a >= this.pc.length ? 5 : 4;
- break;
- case 4:
- b = this.pa.Ub.Jc(0);
- c = this.pa.Ub.Jc(1);
- b = !b || b.Lg;
- f = !c || c.Lg;
- W4E = 7;
- break;
- case 5:
- return !1;
- break;
- case 6:
- W4E = !(a === this.VE + 1 && c.ye.replace || b && f) || !this.X.cv(c) ? 14 : 13;
- break;
- case 14:
- return !1;
- break;
- case 13:
- a = c.jg[0];
- b = c.jg[1];
- b = !this.Tk || b && b.stream.ae;
- return (!this.Ho || a && a.stream.ae) && b ? !0 : !1;
- break;
- }
- }
- };
- a.prototype.NV = function () {
- var K4E;
- K4E = 2;
- while (K4E !== 1) {
- switch (K4E) {
- case 2:
- this.MV(this.VE + 1);
- K4E = 1;
- break;
- case 4:
- this.MV(this.VE / 0);
- K4E = 8;
- break;
- K4E = 1;
- break;
- }
- }
- };
- j2E = 64;
- break;
- case 76:
- a.prototype.gF = function () {
- var k6E,
- a;
- k6E = 2;
- while (k6E !== 3) {
- switch (k6E) {
- case 4:
- a && this.Ua.c$(),
- this.KL(),
- this.X.de(h.ma.Pc),
- this.hf.si();
- k6E = 3;
- break;
- case 5:
- k6E = a || this.ab.iu ? 4 : 3;
- break;
- case 2:
- a = this.X.Dg();
- k6E = 5;
- break;
- }
- }
- };
- a.prototype.G$ = function () {
- var t6E,
- a,
- b;
- t6E = 2;
- while (t6E !== 8) {
- switch (t6E) {
- case 5:
- b = this.X.Dg();
- this.pa.Ub.UC(b, function (b) {
- var q6E;
- q6E = 2;
- while (q6E !== 1) {
- switch (q6E) {
- case 2:
- return a.Af[b] ? a.Af[b].O1() : "";
- break;
- }
- }
- });
- this.yE && (clearTimeout(this.yE), this.yE = void 0);
- this.Bt.rv();
- t6E = 8;
- break;
- case 2:
- a = this;
- t6E = 5;
- break;
- }
- }
- };
- a.prototype.dBa = function (a) {
- var O6E,
- x6E,
- b;
- O6E = 2;
- while (O6E !== 6) {
- switch (O6E) {
- case 7:
- try {
- x6E = 2;
- while (x6E !== 1) {
- switch (x6E) {
- case 2:
- this.KX(h.ma.pE, {
- na: a.Wb
- });
- x6E = 1;
- break;
- }
- }
- } catch (Pa) {
- var l1p;
- l1p = "Hinds";
- l1p += "ight:";
- l1p += " Error eva";
- l1p += "luating QoE at endO";
- l1p += "fStream: ";
- v3YY.Q8p(0);
- this.Ua.Am(v3YY.Y8p(Pa, l1p));
- }
- O6E = 6;
- break;
- case 2:
- a.Lg = !0;
- a.mo = !1;
- b = this.X.$d() || 0;
- a.KF(b);
- this.ab.Dt();
- O6E = 8;
- break;
- case 8:
- O6E = this.So && 1 === a.M ? 7 : 6;
- break;
- }
- }
- };
- a.prototype.H7a = function () {
- var I6E,
- a;
- I6E = 2;
- while (I6E !== 4) {
- switch (I6E) {
- case 2:
- a = this.zb.ub;
- a && (a = a.get()) && a.avtp && this.zp.l9a({
- avtp: a.avtp.Ca
- });
- I6E = 4;
- break;
- }
- }
- };
- a.prototype.j8a = function () {
- var Q6E,
- a,
- b,
- c,
- x1p,
- j1p,
- i1p;
- Q6E = 2;
- while (Q6E !== 8) {
- x1p = "startup, ";
- x1p += "p";
- x1p += "layerState no longer STARTING:";
- j1p = "failed to start audi";
- j1p += "o ";
- j1p += "pipeline";
- i1p = "fai";
- i1p += "led to s";
- i1p += "tart video p";
- i1p += "ipel";
- i1p += "ine";
- switch (Q6E) {
- case 2:
- this.X.de(h.ma.Pg);
- a = this.pa.Ub;
- b = a.Jc(0);
- c = a.Jc(1);
- this.Tk && !this.iBa(c) ? this.bb(i1p) : this.Ho && !this.iBa(b) ? this.bb(j1p) : (this.DAa = !0, this.pc[0].R.qZ = !0, b = this.ab.Ne[1], c = this.ab.Ne[0], (b && 0 < b.Eq || c && 0 < c.Eq) && this.Ua.r6a(String(a.R.u), c ? c.Eq : 0, b ? b.Eq : 0, c ? c.CP : 0, b ? b.CP : 0), this.X.YKa() ? (this.zV(0), this.Ho && (a = this.Md.yY(0), b = this.Md.om(0).eb, this.Ua.u6a(a, b))) : this.bb(x1p, this.X.bd()));
- Q6E = 8;
- break;
- }
- }
- };
- a.prototype.iBa = function (a) {
- var n6E,
- b,
- c,
- k1p,
- s1p;
- n6E = 2;
- while (n6E !== 12) {
- k1p = "NFErr_MC_Str";
- k1p += "eam";
- k1p += "in";
- k1p += "gInitFailure";
- s1p = "startPi";
- s1p += "peline faile";
- s1p += "d";
- switch (n6E) {
- case 3:
- return this.cf() || this.fl(s1p, a.ad.R.Ya, k1p),
- !1;
- break;
- case 9:
- a = a.track.Nc[c];
- n6E = 8;
- break;
- case 2:
- b = a.M;
- c = this.ab.Qnb(a);
- n6E = 4;
- break;
- case 4:
- n6E = l.Y(c) ? 3 : 9;
- break;
- case 7:
- return !0;
- break;
- case 8:
- n6E = a.Yi() ? 7 : 6;
- break;
- case 6:
- c = this.Md.R;
- a.R.IEa(a, {
- offset: 0,
- Ox: !c.ye.Ef && !c.Ri && 1 === b,
- Vr: !this.ab.Ne[b].dkb
- });
- return !0;
- break;
- }
- }
- };
- a.prototype.zV = function (a, b) {
- var j6E,
- c,
- f,
- d,
- k,
- l,
- m1p;
- j6E = 2;
- while (j6E !== 27) {
- m1p = "st";
- m1p += "a";
- m1p += "rtBu";
- m1p += "f";
- m1p += "fering";
- switch (j6E) {
- case 9:
- l = this.ab.Wv[1] || {};
- (this.ab.Wv[0] || {}).rM = void 0;
- l.rM = void 0;
- this.X.de(2 === a ? h.ma.Ng : h.ma.Ce);
- this.Ua.o6a(b);
- j6E = 13;
- break;
- case 2:
- c = this;
- f = this.K;
- j6E = 4;
- break;
- case 4:
- d = this.ab.Ne[0] || {};
- k = this.ab.Ne[1] || {};
- j6E = 9;
- break;
- case 13:
- this.Bt.reset();
- this.Md.R.kP();
- this.emit(m1p);
- u.Pe.forEach(function (b) {
- var R6E;
- R6E = 2;
- while (R6E !== 5) {
- switch (R6E) {
- case 2:
- R6E = (b = c.pa.Ub.Jc(b)) ? 1 : 5;
- break;
- case 1:
- b.gba = 0,
- b.seeking = 0 === a || 1 === a,
- b.FW();
- R6E = 5;
- break;
- }
- }
- });
- this.X8 = J.time.ea();
- j6E = 19;
- break;
- case 15:
- this.hf.si();
- j6E = 27;
- break;
- case 19:
- d.En = k.En = this.X8;
- 0 === a && (!this.Tk || 0 < k.Eq) && (!this.Ho || 0 < d.Eq) && this.ab.Dt();
- f.lN && (this.q9 = setTimeout(function () {
- var f6E;
- f6E = 2;
- while (f6E !== 1) {
- switch (f6E) {
- case 4:
- c.H7a();
- f6E = 4;
- break;
- f6E = 1;
- break;
- case 2:
- c.H7a();
- f6E = 1;
- break;
- }
- }
- }, f.tda));
- this.X.Dg() && (this.yE = setTimeout(function () {
- var s6E;
- s6E = 2;
- while (s6E !== 1) {
- switch (s6E) {
- case 2:
- c.ab.Dt();
- s6E = 1;
- break;
- case 4:
- c.ab.Dt();
- s6E = 8;
- break;
- s6E = 1;
- break;
- }
- }
- }, f.Lv));
- j6E = 15;
- break;
- }
- }
- };
- a.prototype.OV = function (a) {
- var S6E,
- b,
- V1p,
- P1p;
- S6E = 2;
- while (S6E !== 9) {
- V1p = "Ad";
- V1p += "optingDat";
- V1p += "a st";
- V1p += "ill has";
- V1p += " lock:";
- P1p = "w";
- P1p += "ipeHead";
- P1p += "er";
- P1p += "Cache:";
- switch (S6E) {
- case 2:
- v3YY.Q8p(0);
- a = v3YY.Y8p(a, P1p);
- this.Ow.qx && this.bf(V1p + a);
- b = this.K;
- S6E = 3;
- break;
- case 3:
- b.rja || (b.Zg && this.Ua.Dk(a), this.zb.sW(), this.Rg && (this.Rg = void 0));
- S6E = 9;
- break;
- }
- }
- };
- a.prototype.Xya = function (a) {
- var i6E,
- c,
- f,
- d,
- h,
- r2p,
- D2p,
- c2p;
- function b(a, b) {
- var b6E,
- f,
- d,
- h,
- k,
- g,
- p,
- n,
- S2p;
- b6E = 2;
- while (b6E !== 15) {
- S2p = "adoptP";
- S2p += "ip";
- S2p += "eline no header for ";
- S2p += "streamId:";
- switch (b6E) {
- case 13:
- n.Zo = b.Zo;
- n.Vo = b.Vo;
- b6E = 11;
- break;
- case 10:
- return h;
- break;
- case 17:
- b.WV(d.Wo, !b.ye.Ef && !b.Ri && 1 === f, !0) && (void 0 !== a.xC && a.WC(a.xC), h = b.Yi(f, k).stream.$.km(a.Mb, void 0, !0), b = g.wi(h), g = b.T, a.vma() && (b = b.VX(a.Mb)) && 0 < b.Vc && (g = b.Vc), a.Mb !== g && (a.pma(g, h), c.D$(f, g)), h = c.z3a(a, d.data).then(function () {
- var C6E;
- C6E = 2;
- while (C6E !== 1) {
- switch (C6E) {
- case 4:
- return k;
- break;
- C6E = 1;
- break;
- case 2:
- return k;
- break;
- }
- }
- }), p.dkb = !0, 0 === f && c.zf.xI(d.Wo.O));
- b6E = 16;
- break;
- case 18:
- b = c.Md.R;
- b6E = 17;
- break;
- case 3:
- b6E = d ? 9 : 16;
- break;
- case 20:
- b6E = !d.Wo ? 19 : 18;
- break;
- case 2:
- f = a.M;
- d = b[f];
- h = R.resolve(void 0);
- b6E = 3;
- break;
- case 11:
- b6E = !a.LIb(k) ? 10 : 20;
- break;
- case 19:
- return a.bf(S2p, k),
- h;
- break;
- case 9:
- k = d.sa;
- g = d.Wo.stream;
- p = c.ab.Ne[f];
- n = c.ab.Wv[f];
- l.Y(b.qq) || c.zf.aSa(b.qq, b.wk, b.xk);
- b6E = 13;
- break;
- case 16:
- return h;
- break;
- }
- }
- }
- i6E = 2;
- while (i6E !== 13) {
- r2p = "ca";
- r2p += "tc";
- r2p += "h";
- D2p = "ch";
- D2p += "eck";
- D2p += "F";
- D2p += "or";
- D2p += "HcdStart";
- c2p = "Pr";
- c2p += "eviously adopted";
- c2p += " request li";
- c2p += "st still retained was une";
- c2p += "xpected";
- switch (i6E) {
- case 2:
- c = this;
- (null === (f = this.Rg) || void 0 === f ? 0 : f.MB()) && this.bf(c2p);
- this.Rg = void 0;
- d = this.K;
- i6E = 9;
- break;
- case 7:
- this.Ua.gk(D2p);
- this.pc.forEach(function (b) {
- var w6E;
- w6E = 2;
- while (w6E !== 1) {
- switch (w6E) {
- case 2:
- b.R.u === a && (h = b);
- w6E = 1;
- break;
- }
- }
- });
- return this.zb.Ue.stb(a, h ? h.R : void 0).then(function (a) {
- var Z6E,
- f,
- h,
- a2p,
- z2p,
- v2p;
- Z6E = 2;
- while (Z6E !== 6) {
- a2p = "adop";
- a2p += "tHcdStar";
- a2p += "t";
- z2p = "headerCacheDataN";
- z2p += "o";
- z2p += "tFound";
- v2p = "chec";
- v2p += "kForHcdEn";
- v2p += "d";
- switch (Z6E) {
- case 2:
- c.Ua.gk(v2p);
- Z6E = 5;
- break;
- case 4:
- return d.UL || c.Ow.qx || c.OV(z2p),
- R.resolve();
- break;
- case 5:
- Z6E = l.Y(a) ? 4 : 3;
- break;
- case 3:
- f = c.pa.Ub.Jc(0);
- h = c.pa.Ub.Jc(1);
- c.Ua.gk(a2p);
- Z6E = 7;
- break;
- case 7:
- return c.Ow.rVa(function () {
- var B6E,
- k,
- l,
- u2p;
- B6E = 2;
- while (B6E !== 6) {
- u2p = "adoptHc";
- u2p += "dE";
- u2p += "nd";
- switch (B6E) {
- case 7:
- return R.all([k, l]);
- break;
- case 2:
- k = R.resolve();
- c.Tk && (k = b(h, a));
- B6E = 4;
- break;
- case 4:
- l = R.resolve();
- !c.Ho || d.OJa && !k || (l = d.OJa ? k.then(function (c) {
- var X6E;
- X6E = 2;
- while (X6E !== 1) {
- switch (X6E) {
- case 4:
- return c ? b(f, a) : R.resolve();
- break;
- X6E = 1;
- break;
- case 2:
- return c ? b(f, a) : R.resolve();
- break;
- }
- }
- }) : b(f, a));
- c.Mza = a;
- c.Ua.gk(u2p);
- B6E = 7;
- break;
- }
- }
- });
- break;
- }
- }
- }).then(function () {
- var o6E,
- a,
- O2p;
- o6E = 2;
- while (o6E !== 5) {
- O2p = "adoptedComplet";
- O2p += "edRequ";
- O2p += "ests";
- switch (o6E) {
- case 2:
- d.UL || (null === (a = c.Rg) || void 0 === a ? 0 : a.MB()) || c.Ow.qx || c.OV(O2p);
- o6E = 5;
- break;
- }
- }
- })[r2p](function (a) {
- var E6E,
- K2p;
- E6E = 2;
- while (E6E !== 1) {
- K2p = "headerCach";
- K2p += "e:lookupDataPromise";
- K2p += " caught ";
- K2p += "error:";
- switch (E6E) {
- case 4:
- c.bb("", a);
- E6E = 3;
- break;
- E6E = 1;
- break;
- case 2:
- c.bb(K2p, a);
- E6E = 1;
- break;
- }
- }
- });
- break;
- case 9:
- i6E = !this.L8a || !this.zb.Ue ? 8 : 7;
- break;
- case 8:
- return this.zb.mba(),
- R.resolve();
- break;
- }
- }
- };
- a.prototype.z3a = function (a, b) {
- var F6E,
- c,
- f,
- d,
- h,
- k,
- g,
- p;
- F6E = 2;
- while (F6E !== 13) {
- switch (F6E) {
- case 2:
- c = this;
- F6E = 5;
- break;
- case 5:
- F6E = 0 === b.length ? 4 : 3;
- break;
- case 14:
- return this.Ow.rVa(function () {
- var G6E,
- n;
- G6E = 2;
- while (G6E !== 3) {
- switch (G6E) {
- case 1:
- G6E = 0 < b.length ? 5 : 4;
- break;
- case 2:
- n = [];
- G6E = 1;
- break;
- case 7:
- G6E = 2 > b.length ? 1 : 5;
- break;
- G6E = 0 < b.length ? 5 : 4;
- break;
- case 5:
- f();
- G6E = 1;
- break;
- case 4:
- return R.all(n);
- break;
- case 14:
- return R.all(n);
- break;
- G6E = 3;
- break;
- }
- }
- function f() {
- var l6E,
- f,
- X2p,
- N2p;
- l6E = 2;
- while (l6E !== 4) {
- X2p = "adoptData, not ado";
- X2p += "pt";
- X2p += "ing failed mediaRequest:";
- N2p = "adoptData, not adopting a";
- N2p += "borted media";
- N2p += "R";
- N2p += "equest:";
- switch (l6E) {
- case 2:
- f = b.shift();
- 7 === f.readyState ? a.bb(N2p, f.toString()) : 6 === f.readyState ? (a.bb(X2p, f.toString()), c.JA(f, !1)) : a.Mb >= f.zc && a.Mb < f.Wb && (a.Mb < h || !l.la(h)) ? (n.push(c.A3a(a, f).then(function () {
- var r6E;
- r6E = 2;
- while (r6E !== 1) {
- switch (r6E) {
- case 4:
- f.complete || c.vJa(f);
- r6E = 8;
- break;
- r6E = 1;
- break;
- case 2:
- f.complete && c.vJa(f);
- r6E = 1;
- break;
- }
- }
- })), a.RDb(f.Wb), l.la(h) && a.Mb >= h && c.Ua.d$(d, f.Wb), 0 === k && c.zf.xI(f.O), f.complete ? (g.Eq += f.duration, f.Ysb && (g.CP += f.duration), p = f) : (c.Rg || (c.Rg = new Ga.soa(c.G)), c.Rg.push(f))) : c.JA(f, !1);
- l6E = 4;
- break;
- }
- }
- }
- }).then(function () {
- var H6E,
- b,
- d;
- H6E = 2;
- while (H6E !== 8) {
- switch (H6E) {
- case 2:
- p && a.wJa(p);
- H6E = 5;
- break;
- case 4:
- b = c.pc[f.R.Ya];
- d = a.dea(a.Mb);
- void 0 !== d ? (a.Ck = d, a.gg = b.R.jg[k].stream.wi(a.Ck)) : a.Ck = a.mg ? a.mg.index + 1 : a.Ck + 1;
- H6E = 8;
- break;
- case 5:
- H6E = p || (null === (b = c.Rg) || void 0 === b ? 0 : b.MB()) ? 4 : 8;
- break;
- }
- }
- });
- break;
- case 3:
- f = a.r_;
- d = f.da;
- h = Math.min(this.pc[0].na || Infinity, f.Wb || Infinity);
- k = a.M;
- g = this.ab.Ne[k];
- F6E = 14;
- break;
- case 4:
- return R.resolve();
- break;
- }
- }
- };
- a.prototype.A3a = function (a, b) {
- var N6E,
- c,
- f,
- q2p,
- p2p,
- A2p,
- t2p;
- N6E = 2;
- while (N6E !== 8) {
- q2p = "c";
- q2p += "a";
- q2p += "t";
- q2p += "c";
- q2p += "h";
- p2p = ",";
- p2p += " pts";
- p2p += ": ";
- A2p = ", st";
- A2p += "at";
- A2p += "e";
- A2p += ":";
- A2p += " ";
- t2p = "ad";
- t2p += "o";
- t2p += "ptMediaR";
- t2p += "equest:";
- t2p += " type: ";
- switch (N6E) {
- case 2:
- c = this;
- f = a.M;
- this.K.Zg && this.Ua.Dk(t2p + f + A2p + b.readyState + p2p + b.zc);
- this.D$(f, b.zc);
- return a.Ia.Y9a(b)[q2p](function (a) {
- var M6E,
- h2p;
- M6E = 2;
- while (M6E !== 1) {
- h2p = "Error";
- h2p += " a";
- h2p += "d";
- h2p += "opt";
- h2p += "ing requests";
- switch (M6E) {
- case 2:
- c.bf(h2p, a);
- M6E = 1;
- break;
- case 4:
- c.bf("", a);
- M6E = 0;
- break;
- M6E = 1;
- break;
- }
- }
- });
- break;
- }
- }
- };
- j2E = 90;
- break;
- case 64:
- a.prototype.MV = function (a) {
- var D4E,
- b;
- D4E = 2;
- while (D4E !== 14) {
- switch (D4E) {
- case 1:
- D4E = !this.Yya(a) ? 5 : 4;
- break;
- case 5:
- return !1;
- break;
- case 4:
- b = this.pc[a];
- D4E = 3;
- break;
- case 2:
- D4E = 1;
- break;
- case 3:
- D4E = b.rjb || !b.R.ye.replace ? 9 : 8;
- break;
- case 9:
- return !1;
- break;
- case 8:
- this.q8a(a);
- this.hf.si();
- return !0;
- break;
- }
- }
- };
- a.prototype.q8a = function (a) {
- var m4E,
- b,
- c,
- f,
- d,
- h,
- d2p,
- H2p,
- U2p;
- m4E = 2;
- while (m4E !== 17) {
- d2p = ",";
- d2p += " ";
- H2p = ", streami";
- H2p += "ng";
- H2p += "P";
- H2p += "ts:";
- H2p += " ";
- U2p = "switchManife";
- U2p += "st mani";
- U2p += "fe";
- U2p += "stIndex: ";
- switch (m4E) {
- case 2:
- b = this.pc[a];
- c = this.pa.Ub;
- f = c.Le(0);
- f = f ? f.Mb : void 0;
- d = c.Le(1);
- d = d ? d.Mb : void 0;
- m4E = 7;
- break;
- case 18:
- this.hf.si();
- m4E = 17;
- break;
- case 7:
- this.K.Zg && this.Ua.Dk(U2p + a + H2p + f + d2p + d);
- f = this.Md;
- d = f.R.ye.Ef;
- h = [];
- [1, 0].forEach(function (a) {
- var h4E;
- h4E = 2;
- while (h4E !== 1) {
- switch (h4E) {
- case 2:
- b.R.jb(a) && (h[a] = b.om(a));
- h4E = 1;
- break;
- }
- }
- });
- m4E = 11;
- break;
- case 11:
- d ? this.pa.uBb(f.R, b.R, h) : c.oSa(b.R, h);
- this.$za(a);
- b.xja();
- this.Cl.w9();
- m4E = 18;
- break;
- }
- }
- };
- a.prototype.aOa = function () {
- var Y4E,
- a,
- b,
- c,
- f,
- w2p,
- J2p;
- Y4E = 2;
- while (Y4E !== 12) {
- w2p = "onAudio";
- w2p += "TrackSwitchStarted but current pla";
- w2p += "ying request not found";
- J2p = "onAudioTrackSwitch";
- J2p += "Started ignored,";
- J2p += " no audio pi";
- J2p += "peline";
- switch (Y4E) {
- case 4:
- Y4E = b ? 3 : 13;
- break;
- case 7:
- this.q7a(b);
- f.eJ = !1;
- this.hf.si();
- Y4E = 12;
- break;
- case 13:
- this.bb(J2p);
- Y4E = 12;
- break;
- case 3:
- c = this.X.$d();
- f = this.ab.Ne[b.M];
- (a = this.pa.Ur(c, a, 0)) ? b = a.Ia : (this.bb(w2p), b = b.Ia);
- Y4E = 7;
- break;
- case 2:
- a = this.pa.Ub;
- b = a.Le(0);
- Y4E = 4;
- break;
- }
- }
- };
- a.prototype.pTa = function (a) {
- var c4E,
- b,
- c,
- f,
- d,
- h,
- R2p,
- W2p,
- G2p,
- g2p,
- o2p,
- T2p,
- Z2p,
- I2p;
- c4E = 2;
- while (c4E !== 21) {
- R2p = " ";
- R2p += "t";
- R2p += "o: ";
- W2p = "switchTra";
- W2p += "c";
- W2p += "ks current: ";
- G2p = "switchTra";
- G2p += "cks r";
- G2p += "ejec";
- G2p += "ted, previous switch sti";
- G2p += "ll in progress: ";
- g2p = "swi";
- g2p += "tc";
- g2p += "hTra";
- g2p += "cks rejected, bu";
- g2p += "ffering";
- o2p = "sw";
- o2p += "it";
- o2p += "chTr";
- o2p += "acks can't find trackId:";
- T2p = "swi";
- T2p += "t";
- T2p += "chT";
- T2p += "racks rejected, bufferLevelMs";
- Z2p = "sw";
- Z2p += "it";
- Z2p += "chTracks rejected, previous switch stil";
- Z2p += "l waiting ";
- Z2p += "to start";
- I2p = "sw";
- I2p += "itchTracks ";
- I2p += "rejected";
- I2p += ", audio disabled";
- switch (c4E) {
- case 26:
- return !1;
- break;
- case 4:
- return this.bb(I2p),
- !1;
- break;
- case 2:
- b = this.K;
- c4E = 5;
- break;
- case 15:
- h = this.Md.om(0).eb;
- c4E = 27;
- break;
- case 6:
- c = this.ab.Ne[0];
- c4E = 14;
- break;
- case 3:
- c4E = this.ab.iu ? 9 : 8;
- break;
- case 17:
- c4E = !d ? 16 : 15;
- break;
- case 19:
- a = a.RA;
- d = this.Md.R.getTrackById(a);
- c4E = 17;
- break;
- case 10:
- c4E = d < b.R_ ? 20 : 19;
- break;
- case 5:
- c4E = !this.Ho ? 4 : 3;
- break;
- case 12:
- f = this.pa.Ub;
- d = this.pa.Mr(f, 1);
- c4E = 10;
- break;
- case 13:
- return this.bb(Z2p),
- !1;
- break;
- case 20:
- return this.bb(T2p, d, "<", b.R_),
- !1;
- break;
- case 16:
- return this.bb(o2p, a),
- !1;
- break;
- case 7:
- return this.bb(g2p),
- !1;
- break;
- case 27:
- c4E = h === d.eb ? 26 : 25;
- break;
- case 8:
- c4E = this.X.Dg() ? 7 : 6;
- break;
- case 9:
- return this.bb(G2p + JSON.stringify(this.ab.iu)),
- !1;
- break;
- case 14:
- c4E = c.eJ ? 13 : 12;
- break;
- case 23:
- this.i8a(f.Le(0));
- return !0;
- break;
- case 25:
- b.Zg && this.Ua.Dk(W2p + h + R2p + d.eb);
- c.d0 = {
- eb: a
- };
- c4E = 23;
- break;
- }
- }
- };
- a.prototype.XC = function (a, b) {
- var J6E,
- c,
- d;
- J6E = 2;
- while (J6E !== 9) {
- switch (J6E) {
- case 2:
- c = this;
- this.LK = a;
- void 0 !== b && (d = this.Jmb(b));
- void 0 !== d ? this.Wf(d).om(1).Nc.forEach(function (a) {
- var e6E,
- b;
- e6E = 2;
- while (e6E !== 4) {
- switch (e6E) {
- case 2:
- b = f.YL(a.Vf, a.O, c.LK, c.G);
- na(b, a);
- e6E = 4;
- break;
- }
- }
- }) : this.pa.XC(this.LK);
- J6E = 9;
- break;
- }
- }
- };
- a.prototype.Ur = function (a, b, c) {
- var z6E;
- z6E = 2;
- while (z6E !== 1) {
- switch (z6E) {
- case 2:
- return this.pa.Ur(a, this.pa.Kk, b, c);
- break;
- }
- }
- };
- a.prototype.ru = function (a) {
- var a6E;
- a6E = 2;
- while (a6E !== 1) {
- switch (a6E) {
- case 4:
- return this.Cl.ru(a);
- break;
- a6E = 1;
- break;
- case 2:
- return this.Cl.ru(a);
- break;
- }
- }
- };
- a.prototype.KX = function (a, b) {
- var v6E,
- u6E,
- c,
- f;
- v6E = 2;
- while (v6E !== 14) {
- switch (v6E) {
- case 3:
- a && !a.xF && f.Oda(a);
- v6E = 9;
- break;
- case 8:
- c.vla();
- v6E = 14;
- break;
- case 9:
- v6E = b ? 8 : 7;
- break;
- case 7:
- b = f.ulb();
- try {
- u6E = 2;
- while (u6E !== 1) {
- switch (u6E) {
- case 4:
- this.Ua.t6a(b);
- u6E = 7;
- break;
- u6E = 1;
- break;
- case 2:
- this.Ua.t6a(b);
- u6E = 1;
- break;
- }
- }
- } catch (Ha) {
- var B2p,
- E2p;
- B2p = "]";
- B2p += " ";
- B2p += "[";
- E2p = "e";
- E2p += "xcep";
- E2p += "tion: [";
- this.G.error(E2p + Ha.message + B2p + Ha.ZVb + "]");
- }
- v6E = 14;
- break;
- case 2:
- c = this.ab;
- a = c.bea(a, b);
- f = this.zf.Oka;
- v6E = 3;
- break;
- }
- }
- };
- a.prototype.xDa = function (a, b, c, f) {
- var V6E;
- V6E = 2;
- while (V6E !== 4) {
- switch (V6E) {
- case 2:
- f && (z.assert(void 0 === b), b = this.IY(f));
- v3YY.C8p(1);
- z.assert(v3YY.Y8p(b, 0));
- return this.pc[b].Bbb(a, c || !1);
- break;
- }
- }
- };
- a.prototype.Rr = function (a, b, c) {
- var A6E,
- f;
- A6E = 2;
- while (A6E !== 8) {
- switch (A6E) {
- case 5:
- void 0 === a && (a = this.EP);
- (c = this.pa.Kjb(b, a)) ? f = c.ie : (c = this.pa.cea(a), 0 < c.length && (c = c[0], f = c.ie));
- l.la(f) || (f = this.pc[a].ms);
- v3YY.Q8p(2);
- return v3YY.B8p(f, b);
- break;
- case 2:
- c && (z.assert(void 0 === a), a = this.IY(c), z.assert(void 0 !== a));
- A6E = 5;
- break;
- }
- }
- };
- a.prototype.KM = function (a, b, c) {
- var T6E,
- f;
- T6E = 2;
- while (T6E !== 8) {
- switch (T6E) {
- case 4:
- (c = this.pa.Jjb(b, a)) ? f = c.ie : (c = this.pa.cea(a), 0 < c.length && (c = c[0], f = c.ie));
- l.la(f) || (f = this.pc[a].ms);
- v3YY.Q8p(0);
- return v3YY.Y8p(f, b);
- break;
- case 2:
- c && (z.assert(void 0 === a), a = this.IY(c), z.assert(void 0 !== a));
- void 0 === a && (a = this.EP);
- T6E = 4;
- break;
- }
- }
- };
- j2E = 76;
- break;
- case 95:
- a.prototype.FBb = function () {
- var j3Z,
- a,
- Y2p;
- j3Z = 2;
- while (j3Z !== 4) {
- Y2p = "re";
- Y2p += "ques";
- Y2p += "tGarb";
- Y2p += "ageCollection";
- switch (j3Z) {
- case 2:
- a = {
- type: Y2p,
- time: J.time.ea()
- };
- ba.Ja(this, a.type, a);
- j3Z = 4;
- break;
- }
- }
- };
- a.prototype.fl = function (a, b, c, f, d, h) {
- var R3Z,
- C2p;
- R3Z = 2;
- while (R3Z !== 1) {
- C2p = "NFErr_MC_S";
- C2p += "treamingFailu";
- C2p += "re";
- switch (R3Z) {
- case 2:
- this.mF || (l.Y(c) && (c = C2p), this.mF = !0, this.Ua.J6a(c, a, f, d, h, void 0 !== b ? b : this.EP));
- R3Z = 1;
- break;
- }
- }
- };
- a.prototype.Iza = function () {
- var f3Z,
- Q2p;
- f3Z = 2;
- while (f3Z !== 5) {
- Q2p = "Netwo";
- Q2p += "r";
- Q2p += "k";
- Q2p += " failures res";
- Q2p += "et!";
- switch (f3Z) {
- case 2:
- this.bb(Q2p);
- this.hf.si();
- f3Z = 5;
- break;
- }
- }
- };
- a.prototype.q5a = function (a, b) {
- var s3Z;
- s3Z = 2;
- while (s3Z !== 5) {
- switch (s3Z) {
- case 2:
- b = p.FIa(b);
- this.P8[a.M] = b;
- s3Z = 5;
- break;
- }
- }
- };
- Object.defineProperties(a.prototype, {
- iu: {
- set: function (a) {
- var S3Z;
- S3Z = 2;
- while (S3Z !== 1) {
- switch (S3Z) {
- case 4:
- this.ab.iu = a;
- S3Z = 9;
- break;
- S3Z = 1;
- break;
- case 2:
- this.ab.iu = a;
- S3Z = 1;
- break;
- }
- }
- },
- enumerable: !1,
- configurable: !0
- }
- });
- a.prototype.IY = function (a) {
- var i3Z,
- b;
- i3Z = 2;
- while (i3Z !== 4) {
- switch (i3Z) {
- case 2:
- this.pc.some(function (c) {
- var b3Z;
- b3Z = 2;
- while (b3Z !== 1) {
- switch (b3Z) {
- case 2:
- return c.R.Jk === a ? (b = c.R.Ya, !0) : !1;
- break;
- }
- }
- });
- return b;
- break;
- }
- }
- };
- a.prototype.Jmb = function (a) {
- var C3Z,
- b;
- C3Z = 2;
- while (C3Z !== 4) {
- switch (C3Z) {
- case 2:
- this.pc.some(function (c) {
- var w3Z;
- w3Z = 2;
- while (w3Z !== 1) {
- switch (w3Z) {
- case 2:
- return c.R.oa === a ? (b = c.R.Ya, !0) : !1;
- break;
- }
- }
- });
- return b;
- break;
- }
- }
- };
- return a;
- break;
- case 79:
- a.prototype.si = function () {
- var z3Z;
- z3Z = 2;
- while (z3Z !== 1) {
- switch (z3Z) {
- case 2:
- return this.hf.si();
- break;
- case 4:
- return this.hf.si();
- break;
- z3Z = 1;
- break;
- }
- }
- };
- a.prototype.JA = function (a, b) {
- var a3Z,
- c,
- f,
- d,
- y2p;
- a3Z = 2;
- while (a3Z !== 11) {
- y2p = "abortRequest with";
- y2p += " no requ";
- y2p += "estManagaer:";
- switch (a3Z) {
- case 5:
- a3Z = !c ? 4 : 3;
- break;
- case 2:
- c = a.Ia;
- a3Z = 5;
- break;
- case 3:
- f = a.M;
- d = a.abort();
- a.yc();
- a3Z = 7;
- break;
- case 12:
- return d;
- break;
- case 4:
- return this.bb(y2p, a),
- !1;
- break;
- case 7:
- a.Sf && a.Sf.clear();
- c.o1(a);
- this.Af[f].o1(a);
- !0 === b && this.hf.si();
- a3Z = 12;
- break;
- }
- }
- };
- a.prototype.i8a = function (a) {
- var v3Z,
- b,
- c,
- b2p;
- v3Z = 2;
- while (v3Z !== 3) {
- b2p = "n";
- b2p += "o ne";
- b2p += "wAudio";
- b2p += "Track se";
- b2p += "t";
- switch (v3Z) {
- case 2:
- b = a.M;
- c = this.ab.Ne[b];
- l.Y(c.d0) ? a.bb(b2p) : (this.Af[b].pause(), c.eJ = !0, a = this.Md.om(0), c = this.Md.R.getTrackById(c.d0.eb), this.Ua.l6a(a, c));
- v3Z = 3;
- break;
- }
- }
- };
- a.prototype.q7a = function (a) {
- var u3Z,
- b,
- c,
- f,
- d,
- h,
- k,
- l,
- g,
- L2p;
- u3Z = 2;
- while (u3Z !== 22) {
- L2p = "aud";
- L2p += "i";
- L2p += "oSwi";
- L2p += "tch";
- switch (u3Z) {
- case 11:
- c = this.zb.rY(h.R.ya, [l], 0);
- this.P8[0] = c[0];
- this.gN.TAa(0, a.R);
- d.d0 = void 0;
- u3Z = 18;
- break;
- case 18:
- this.zf.xI(null);
- this.y$(0, T.oK.jHa, a);
- u3Z = 16;
- break;
- case 8:
- h = this.Md;
- k = h.R.getTrackById(this.ab.iu.eb);
- l = k.A2;
- g = this.X.$d() - a.ie;
- u3Z = 13;
- break;
- case 15:
- c = this.VE;
- u3Z = 27;
- break;
- case 3:
- d = this.ab.Ne[0];
- this.ab.iu = d.d0;
- u3Z = 8;
- break;
- case 12:
- this.Rg.pBb(function (a) {
- var V3Z;
- V3Z = 2;
- while (V3Z !== 5) {
- switch (V3Z) {
- case 9:
- return b.JA(a, ~2),
- ~5;
- break;
- V3Z = 5;
- break;
- case 1:
- return b.JA(a, !1),
- !0;
- break;
- case 2:
- V3Z = 0 === a.M ? 1 : 5;
- break;
- }
- }
- }),
- this.Rg.MB() || (this.Rg = void 0, f.UL || this.Ow.qx || this.OV(L2p));
- u3Z = 11;
- break;
- case 16:
- this.pa.XRa(a, !0);
- u3Z = 15;
- break;
- case 24:
- a.yQa(k, g);
- this.EI(0);
- u3Z = 22;
- break;
- case 27:
- u3Z = c < this.pc.length ? 26 : 24;
- break;
- case 13:
- u3Z = (null === (c = this.Rg) || void 0 === c ? 0 : c.MB()) ? 12 : 11;
- break;
- case 26:
- this.xzb(c, l, g);
- u3Z = 25;
- break;
- case 2:
- b = this;
- f = this.K;
- a = a.ad;
- u3Z = 3;
- break;
- case 25:
- ++c;
- u3Z = 27;
- break;
- }
- }
- };
- a.prototype.xzb = function (a, b, c) {
- var A3Z,
- f;
- A3Z = 2;
- while (A3Z !== 6) {
- switch (A3Z) {
- case 3:
- A3Z = a.R.qZ ? 9 : 7;
- break;
- case 9:
- a.om(0).Nc.some(function (a) {
- var T3Z;
- T3Z = 2;
- while (T3Z !== 4) {
- switch (T3Z) {
- case 5:
- return !!f;
- break;
- case 1:
- T3Z = !(f && f.stream && f.stream.$ && c < f.stream.$.$h(0)) ? 5 : 4;
- break;
- case 2:
- f = a.Yi();
- T3Z = 1;
- break;
- }
- }
- });
- A3Z = 8;
- break;
- case 2:
- n.Hl.Qn(0);
- a = this.pc[a];
- a.Lna(b);
- A3Z = 3;
- break;
- case 7:
- this.DL(0);
- A3Z = 6;
- break;
- case 8:
- f ? (a.R.jg[0] = f, a.LP = !1, f.stream.ae && a.uW()) : (a.R.jg[0] = void 0, a.LP = !1, a.R.gI([a.om(0)], !0, 0));
- A3Z = 7;
- break;
- }
- }
- };
- a.prototype.u7a = function (a, b) {
- var k3Z,
- c;
- k3Z = 2;
- while (k3Z !== 3) {
- switch (k3Z) {
- case 2:
- c = this.Af[a.M];
- a = this.pa.HP(a.ad, a.M, b, this.zb.Yy || 0, function (a) {
- var t3Z;
- t3Z = 2;
- while (t3Z !== 1) {
- switch (t3Z) {
- case 4:
- c.o1(a);
- t3Z = 2;
- break;
- t3Z = 1;
- break;
- case 2:
- c.o1(a);
- t3Z = 1;
- break;
- }
- }
- });
- l.Y(a) || this.hf.si();
- k3Z = 3;
- break;
- }
- }
- };
- a.prototype.m5a = function (a) {
- var q3Z,
- b;
- q3Z = 2;
- while (q3Z !== 8) {
- switch (q3Z) {
- case 9:
- this.pc.forEach(function (a, b) {
- var O3Z,
- c;
- O3Z = 2;
- while (O3Z !== 4) {
- switch (O3Z) {
- case 2:
- O3Z = 1;
- break;
- case 1:
- c = a.R;
- c.qZ || 0 === b || c.gI([a.om(0), a.om(1)]);
- O3Z = 4;
- break;
- }
- }
- });
- q3Z = 8;
- break;
- case 2:
- b = a.mediaType;
- a = this.pc[a.manifestIndex].R.cs(b, a.streamId);
- this.b8a(this.pa.Ub.Le(b), a);
- this.K = this.yEa.G3a(a.Vf, this.K);
- q3Z = 9;
- break;
- }
- }
- };
- a.prototype.p5a = function (a) {
- var x3Z,
- b,
- c;
- x3Z = 2;
- while (x3Z !== 7) {
- switch (x3Z) {
- case 3:
- c.Ntb(a);
- b.qea && this.Ua.q6a(b);
- b.hv && this.Ua.F6a(a, b.R.Ya, c.da);
- x3Z = 7;
- break;
- case 2:
- b = a.request;
- a = a.mediaType;
- c = b.Ia.ad;
- x3Z = 3;
- break;
- }
- }
- };
- a.prototype.b8a = function (a, b) {
- var I3Z;
- I3Z = 2;
- while (I3Z !== 1) {
- switch (I3Z) {
- case 2:
- this.ab.us[a.M].YB = {
- id: b.sa,
- index: b.Kg,
- O: b.O,
- Fa: b.mb && b.mb.Ld && b.mb.Fa ? b.mb.Fa.Ca : 0,
- location: b.location
- };
- I3Z = 1;
- break;
- }
- }
- };
- a.prototype.NZ = function (a) {
- var Q3Z,
- b,
- c,
- f,
- d,
- h,
- k,
- l,
- g,
- p,
- n;
- Q3Z = 2;
- while (Q3Z !== 17) {
- switch (Q3Z) {
- case 9:
- g = l.Ub;
- p = g.Jc(0);
- n = g.Jc(1);
- h.vspts = null !== (b = null === n || void 0 === n ? void 0 : n.Mb) && void 0 !== b ? b : 0;
- Q3Z = 14;
- break;
- case 2:
- h = {};
- k = this.Af;
- l = this.pa;
- Q3Z = 3;
- break;
- case 3:
- Q3Z = !l.Ub.Yp ? 9 : 18;
- break;
- case 11:
- h.vbuflmsec = l.Mr(g, 1);
- h.abuflmsec = l.Mr(g, 0);
- a && (h.a = null === p || void 0 === p ? void 0 : p.Ia.$.toJSON(), h.v = null === n || void 0 === n ? void 0 : n.Ia.$.toJSON());
- Q3Z = 19;
- break;
- case 14:
- h.aspts = null !== (c = null === p || void 0 === p ? void 0 : p.Mb) && void 0 !== c ? c : 0;
- h.vbuflbytes = null !== (f = null === n || void 0 === n ? void 0 : n.Mo.ba) && void 0 !== f ? f : 0;
- h.abuflbytes = null !== (d = null === p || void 0 === p ? void 0 : p.Mo.ba) && void 0 !== d ? d : 0;
- Q3Z = 11;
- break;
- case 19:
- a && k && (a = k[1], k = k[0], h.atoappend = null === a || void 0 === a ? void 0 : a.O1(), h.vtoappend = null === k || void 0 === k ? void 0 : k.O1());
- Q3Z = 18;
- break;
- case 18:
- return h;
- break;
- }
- }
- };
- a.prototype.bJa = function (a) {
- var n3Z,
- b,
- c,
- f,
- d,
- h,
- k,
- l;
- n3Z = 2;
- while (n3Z !== 12) {
- switch (n3Z) {
- case 4:
- n3Z = c ? 3 : 12;
- break;
- case 3:
- f = this.ab.us[a];
- d = this.pa.$A(b, a);
- f = f.YB ? f.YB.O : 0;
- h = c.Ia.B0;
- n3Z = 6;
- break;
- case 6:
- k = this.pa.ie;
- l = J.uk()[a];
- return {
- type: a,
- availableMediaBuffer: l - d,
- completeBuffer: b.Xi(a),
- incompleteBuffer: h,
- playbackBitrate: c.jPa,
- streamingBitrate: f,
- streamingTime: c.Mb + k,
- usedMediaBuffer: d,
- toappend: c.cJb
- };
- break;
- case 2:
- b = this.pa.Ub;
- c = b.Le(a);
- n3Z = 4;
- break;
- }
- }
- };
- j2E = 95;
- break;
- case 90:
- a.prototype.y$ = function (a, b, c) {
- var L6E,
- f;
- L6E = 2;
- while (L6E !== 8) {
- switch (L6E) {
- case 2:
- f = this;
- void 0 === b && (b = T.oK.Vaa);
- (c || this.pa.Ub).xla(a, b);
- this.Bt.reset();
- (void 0 === a ? u.Pe : [a]).forEach(function (a) {
- var d6E;
- d6E = 2;
- while (d6E !== 1) {
- switch (d6E) {
- case 2:
- f.jb(a) && (f.zr[a].reset(), f.R7a(a), f.zf.Nwb(a));
- d6E = 1;
- break;
- }
- }
- });
- L6E = 8;
- break;
- }
- }
- };
- a.prototype.Rma = function (a) {
- var g6E,
- b;
- g6E = 2;
- while (g6E !== 4) {
- switch (g6E) {
- case 2:
- b = this;
- (void 0 === a ? u.Pe : [a]).forEach(function (a) {
- var P6E,
- c;
- P6E = 2;
- while (P6E !== 5) {
- switch (P6E) {
- case 2:
- null === (c = b.zr[a]) || void 0 === c ? void 0 : c.stop();
- P6E = 5;
- break;
- }
- }
- });
- g6E = 4;
- break;
- }
- }
- };
- a.prototype.EI = function (a) {
- var U6E,
- b;
- U6E = 2;
- while (U6E !== 3) {
- switch (U6E) {
- case 2:
- b = this;
- (void 0 === a ? u.Pe : [a]).forEach(function (a) {
- var p6E,
- c;
- p6E = 2;
- while (p6E !== 5) {
- switch (p6E) {
- case 2:
- null === (c = b.zr[a]) || void 0 === c ? void 0 : c.resume();
- p6E = 5;
- break;
- }
- }
- });
- return R.resolve();
- break;
- }
- }
- };
- a.prototype.DL = function (a) {
- var y6E,
- b,
- c;
- y6E = 2;
- while (y6E !== 9) {
- switch (y6E) {
- case 2:
- b = this;
- a = void 0 === a ? u.Pe : [a];
- y6E = 4;
- break;
- case 4:
- null === (c = this.Bt) || void 0 === c ? void 0 : c.reset();
- a.forEach(function (a) {
- var W6E,
- c;
- W6E = 2;
- while (W6E !== 5) {
- switch (W6E) {
- case 2:
- null === (c = b.zr[a]) || void 0 === c ? void 0 : c.resume();
- W6E = 5;
- break;
- }
- }
- });
- y6E = 9;
- break;
- }
- }
- };
- a.prototype.R7a = function (a) {
- var K6E,
- b;
- K6E = 2;
- while (K6E !== 9) {
- switch (K6E) {
- case 2:
- b = this.ab.Ne[a];
- this.ab.us[a].Mha = void 0;
- b.Eq = 0;
- b.CP = 0;
- K6E = 9;
- break;
- }
- }
- };
- a.prototype.D$ = function (a, b) {
- var D6E,
- c,
- f,
- d,
- M2p;
- D6E = 2;
- while (D6E !== 7) {
- M2p = "pt";
- M2p += "schang";
- M2p += "ed";
- switch (D6E) {
- case 4:
- f = this.ab.Ne[a];
- d = this.ab.Wv[a];
- l.Y(f.Yl) && (f.Yl = b, 1 === a && this.Ho && (a = this.ab.Ne[0], l.Y(a.Yl) && (c = c.Le(0), c.WC(b)), this.emit(M2p, b)));
- D6E = 8;
- break;
- case 2:
- c = this.pa.Ub;
- D6E = 5;
- break;
- case 5:
- D6E = c.Le(a) ? 4 : 7;
- break;
- case 8:
- l.Y(d.rM) && (d.rM = b);
- D6E = 7;
- break;
- }
- }
- };
- a.prototype.vJa = function (a) {
- var m6E;
- m6E = 2;
- while (m6E !== 1) {
- switch (m6E) {
- case 2:
- this.Rg && (this.Rg.Qtb(a), this.KDa());
- m6E = 1;
- break;
- }
- }
- };
- a.prototype.dZ = function (a) {
- var h6E;
- h6E = 2;
- while (h6E !== 1) {
- switch (h6E) {
- case 2:
- this.Rg && (this.Rg.Ptb(a), this.KDa());
- h6E = 1;
- break;
- }
- }
- };
- a.prototype.KDa = function () {
- var Y6E,
- a,
- e2p;
- Y6E = 2;
- while (Y6E !== 3) {
- e2p = "al";
- e2p += "lC";
- e2p += "ompleted";
- switch (Y6E) {
- case 2:
- Y6E = 1;
- break;
- case 1:
- Y6E = this.Rg ? 5 : 3;
- break;
- case 8:
- Y6E = 3;
- break;
- Y6E = 1;
- break;
- case 5:
- a = this.K;
- this.Rg.MB() || (this.Rg = void 0, a.UL || this.Ow.qx || this.OV(e2p));
- Y6E = 3;
- break;
- }
- }
- };
- a.prototype.KL = function () {
- var c6E,
- a,
- b,
- c,
- f,
- d,
- k,
- g,
- p;
- c6E = 2;
- while (c6E !== 19) {
- switch (c6E) {
- case 7:
- g = this.Rr(c, k);
- p = b.L2;
- this.zb.Ue && void 0 !== f.qC && f.qC - k <= b.RMa && this.zb.Ue.VL(!0, this.al.sessionId);
- this.X.bd() === h.ma.Pc && ([1, 0].forEach(function (b) {
- var J3Z,
- c,
- f,
- h,
- n,
- u,
- q,
- m,
- f2p;
- J3Z = 2;
- while (J3Z !== 33) {
- f2p = "Unabl";
- f2p += "e to find request presenting a";
- f2p += "t playerPts:";
- switch (J3Z) {
- case 35:
- a.pa.Mzb();
- J3Z = 33;
- break;
- case 2:
- J3Z = 1;
- break;
- case 22:
- l.Y(q) || q == c.jPa || (c.jPa = q);
- J3Z = 21;
- break;
- case 26:
- n.hsb = q.Em;
- f = q.sa;
- f != n.Mha && (n.Mha = f, b = a.pc[h].R.cs(b, f), h = a.Rr(h, q.ed), a.Ua.H6a(b, q.ed, h, b.R.Ya));
- q = q.O;
- J3Z = 22;
- break;
- case 6:
- u = q.ze - k;
- u < p && (p = u);
- J3Z = 13;
- break;
- case 18:
- a.VU = h;
- J3Z = 17;
- break;
- case 17:
- m = 0 < h ? h - 1 : null;
- a.Ua.w6a(f, k, q.Em, null !== m ? a.pc[m].R.u : null, m);
- J3Z = 15;
- break;
- case 1:
- J3Z = a.jb(b) ? 5 : 33;
- break;
- case 19:
- J3Z = (a.pa.dwb(q, q.Em), h > a.VU) ? 18 : 27;
- break;
- case 13:
- n = a.ab.us[b];
- f = q.R;
- h = f.Ya;
- u = q.Ia;
- J3Z = 20;
- break;
- case 7:
- J3Z = q ? 6 : 34;
- break;
- case 20:
- J3Z = !a.Tk || 1 === b ? 19 : 26;
- break;
- case 3:
- u = c.Ia;
- c.KF(k);
- (q = a.pa.Ur(k, d, b)) && !q.Oi && (q = a.Af[b].Wrb);
- J3Z = 7;
- break;
- case 15:
- g = a.Rr(h, k);
- J3Z = 26;
- break;
- case 21:
- a.u7a(u, k);
- J3Z = 35;
- break;
- case 5:
- c = d.Le(b);
- J3Z = 4;
- break;
- case 27:
- a.UE && q.Em != n.hsb && a.Ua.M6a(q.Em);
- J3Z = 26;
- break;
- case 4:
- J3Z = c ? 3 : 33;
- break;
- case 34:
- c.bb(f2p, k);
- J3Z = 21;
- break;
- }
- }
- }), this.pa.Sq(k, g));
- this.hf.si();
- p = Math.max(p, 1);
- this.nx && clearTimeout(this.nx);
- c6E = 20;
- break;
- case 9:
- d = this.pa.Ub;
- k = this.X.$d() || 0;
- c6E = 7;
- break;
- case 2:
- a = this;
- b = this.K;
- c = this.EP;
- f = this.pc[c];
- c6E = 9;
- break;
- case 20:
- this.nx = setTimeout(this.KL.bind(this), p);
- c6E = 19;
- break;
- }
- }
- };
- a.prototype.tU = function (a) {
- var e3Z;
- e3Z = 2;
- while (e3Z !== 1) {
- switch (e3Z) {
- case 4:
- return this.hf.tU(a);
- break;
- e3Z = 1;
- break;
- case 2:
- return this.hf.tU(a);
- break;
- }
- }
- };
- j2E = 79;
- break;
- }
- }
- }
- ();
- b.$wa = a;
- d.uf(c.EventEmitter, a);
- }, function (d, b, a) {
- var c,
- l,
- g;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Coa = void 0;
- c = a(0);
- l = a(11);
- d = a(38);
- g = a(74);
- a = function (a) {
- function b(b, c, f, d, k, l) {
- d = a.call(this, b, c, d, k, l) || this;
- c.ba = f.byteLength;
- g.Jh.call(d, b, c);
- d.fF = f;
- d.U3a = c.ba;
- return d;
- }
- c.__extends(b, a);
- Object.defineProperties(b.prototype, {
- ec: {
- get: function () {
- return !1;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- Vn: {
- get: function () {
- return !1;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- cd: {
- get: function () {
- return 0;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- status: {
- get: function () {
- return 0;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- aj: {
- get: function () {
- return 0;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- zh: {
- get: function () {},
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- complete: {
- get: function () {
- return !0;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- response: {
- get: function () {
- return this.fF;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- Ysb: {
- get: function () {
- return !0;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- readyState: {
- get: function () {},
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- Ie: {
- get: function () {
- return this.U3a;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- b.prototype.RB = function () {
- return !0;
- };
- b.prototype.yF = function (a) {
- this.Oi = a.appendBuffer(this.response, l.vm(this));
- return {
- V: this.Oi
- };
- };
- b.prototype.Fj = function () {
- return -1;
- };
- b.prototype.abort = function () {
- return !0;
- };
- b.prototype.yc = function () {};
- b.prototype.SQ = function () {
- return !1;
- };
- return b;
- }
- (a(159).tz);
- b.Coa = a;
- d.uf(g.Jh, a);
- }, function (d, b, a) {
- var l,
- g,
- n,
- k,
- p;
- function c(a) {
- return {
- mediaType: a.M,
- streamId: a.sa,
- movieId: a.u,
- bitrate: a.O,
- location: a.location,
- serverId: a.Lb,
- saveToDisk: !0,
- offset: a.offset,
- bytes: a.ba,
- timescale: a.S,
- frameDuration: a.stream.Ta && a.stream.Ta.Ab,
- encrypted: a.Cj,
- initSegments: 1 < a.xi.length ? a.xi.map(function (a) {
- return {
- fi: a.EB,
- s: a.data.byteLength,
- e: !!a.Cj
- };
- }) : void 0
- };
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.gha = b.hha = b.HKa = b.yfa = b.kIa = b.mIa = b.vfa = b.zfa = b.xfa = b.Mea = b.Nea = b.tta = void 0;
- l = a(7);
- g = a(738);
- n = a(390);
- k = a(11);
- p = a(34);
- b.tta = {
- WS: "movieEntry",
- CZa: "header",
- U5: "metadata",
- c_a: "headerData",
- BMb: "headerMetadata",
- pZa: "sizes",
- oZa: "durations",
- sra: "fragments",
- l0a: "response",
- Zj: "billboard",
- ww: {
- lifespan: 259200
- }
- };
- b.Nea = function (a, b, c) {
- var f,
- d;
- f = b.headerData;
- c && b.sizes instanceof ArrayBuffer && b.durations instanceof ArrayBuffer && (d = {
- Sj: c.startTicks,
- offset: c.offset,
- S: c.timescale,
- sizes: new Uint32Array(b.sizes),
- Nd: new Uint32Array(b.durations)
- });
- return {
- ec: !0,
- M: a.mediaType,
- u: a.movieId,
- sa: a.streamId,
- O: a.bitrate,
- location: a.location,
- Lb: a.serverId,
- ba: a.bytes,
- offset: a.offset,
- nga: f,
- DZ: a.initSegments,
- Cj: a.encrypted,
- S: a.timescale,
- Ta: a.frameDuration,
- Be: a.saveToDisk,
- $: d
- };
- };
- b.Mea = function (a, b) {
- var c,
- f,
- d;
- b = b.response;
- c = a.startTicks;
- f = a.durationTicks;
- void 0 !== c && void 0 !== f && (d = c + f);
- return {
- ec: !1,
- M: a.mediaType,
- u: a.movieId,
- sa: a.streamId,
- O: a.bitrate,
- location: a.location,
- Lb: a.serverId,
- ba: a.bytes,
- offset: a.offset,
- response: b,
- S: a.timescale,
- Ra: a.startTicks,
- Ro: f,
- Be: a.saveToDisk,
- hb: d
- };
- };
- b.xfa = function (a) {
- return {
- ne: a.priority,
- u: a.movieId,
- headers: {},
- pq: 0,
- XF: 0,
- oZ: 0,
- Be: a.saveToDisk,
- Zb: a.stats,
- Vo: a.firstSelectedStreamBitrate,
- Zo: a.initSelectionReason,
- qq: a.histDiscountedThroughputValue,
- xk: a.histTdigest,
- wk: a.histAge,
- Yl: void 0
- };
- };
- b.zfa = function (a, b, c, d, k) {
- var f,
- h;
- f = {
- headers: {},
- data: {}
- };
- d.forEach(function (d) {
- var h,
- l,
- m;
- h = d.M;
- h = k && k.cs(h, d.sa);
- l = [];
- if (d.ec)
- if (!Array.isArray(d.DZ) || 2 > d.DZ.length)
- l.push({
- EB: 0,
- data: d.nga
- });
- else
- for (var q = 0, u = 0; u < d.DZ.length; ++u) {
- m = d.DZ[u];
- l.push({
- EB: m.fi,
- data: d.nga.slice(q, q + m.s),
- Cj: m.e
- });
- q += m.s;
- }
- h ? (d.$ && h.o0(l, d.S, d.Ta ? new p.ka(d.Ta, d.S) : void 0, d.$), d.ec && h && h.ae ? (void 0 === f.headers && (f.headers = {}), f.headers[d.sa] = new n.LR(h, {
- ba: d.ba,
- offset: d.offset,
- xi: l,
- Cj: d.Cj
- }, b)) : d.response instanceof ArrayBuffer && void 0 !== h.$ && void 0 !== d.Ra && void 0 !== d.S && void 0 !== d.hb && (l = h.$.UX(new p.ka(d.Ra, d.S).va), void 0 !== l && (h = new g.Coa(h, {
- S: d.S,
- Ra: d.Ra,
- hb: d.hb,
- index: l.index,
- offset: d.offset,
- ba: d.ba
- }, d.response, c, a, b), void 0 === f.data && (f.data = {}), f.data[d.sa] || (f.data[d.sa] = []), f.data[d.sa].push(h)))) : b.warn("Failed to load data from disk because the AseStream was missing from the stream map streamId: " + d.sa + " movieId: " + d.u);
- });
- if (!l.Y(f.data)) {
- h = f.data;
- Object.keys(h).forEach(function (a) {
- h[a].sort(function (a, b) {
- return a.Ra - b.Ra;
- });
- });
- }
- return f;
- };
- b.vfa = function (a) {
- return {
- mediaType: a.M,
- streamId: a.sa,
- movieId: a.u,
- bitrate: a.O,
- location: a.location,
- serverId: a.Lb,
- saveToDisk: !0,
- offset: a.offset,
- bytes: a.ba,
- timescale: a.S,
- startTicks: a.Ra,
- durationTicks: a.Ro
- };
- };
- b.mIa = c;
- b.kIa = function (a) {
- var b,
- d,
- h,
- l;
- b = c(a);
- a.stream.ae && a.stream && a.stream.$ && (d = {
- timescale: a.stream.$.S,
- startTicks: a.stream.$.Sj,
- offset: a.stream.$.ih(0)
- }, l = a.stream.$.zI, h = l.sizes.buffer, l = l.Nd.buffer);
- return {
- mediaType: b.mediaType,
- streamId: b.streamId,
- movieId: b.movieId,
- bitrate: b.bitrate,
- location: b.location,
- serverId: b.serverId,
- saveToDisk: !0,
- offset: b.offset,
- bytes: b.bytes,
- timescale: b.timescale,
- frameDuration: b.frameDuration,
- headerData: k.Pr(a.xi.map(function (a) {
- return a.data;
- })),
- initSegments: b.initSegments,
- encrypted: a.Cj,
- fragments: d,
- sizes: h,
- durations: l
- };
- };
- b.yfa = function (a) {
- return {
- priority: a.ne,
- movieId: a.u,
- saveToDisk: a.Be,
- firstSelectedStreamBitrate: a.Vo,
- initSelectionReason: a.Zo,
- histDiscountedThroughputValue: a.qq,
- histTdigest: a.xk,
- histAge: a.wk
- };
- };
- b.HKa = function (a) {
- return !l.has(a, "startTicks");
- };
- b.hha = function (a) {
- return !a.nga || !a.S || !a.$ || void 0 === a.$.Sj || void 0 === a.$.offset || void 0 === a.$.Nd || !a.$.Nd.length || void 0 === a.$.sizes || !a.$.sizes.length;
- };
- b.gha = function (a) {
- return void 0 === a.ba || void 0 === a.offset || void 0 === a.S || void 0 === a.Ra || void 0 === a.Ro;
- };
- }, function (d, b, a) {
- var n,
- k;
- function c(a, b, f) {
- Object.keys(a).forEach(function (d) {
- var h,
- k;
- if (n.Xe(a[d]))
- if (a[d].PZ) {
- h = a[d];
- k = f + h.offset;
- a[d] = b.slice(k, k + h.byteLength);
- } else
- a[d] = c(a[d], b, f);
- });
- return a;
- }
- function l(a, b, c) {
- Object.keys(a).forEach(function (f) {
- var d;
- if (n.PZ(a[f])) {
- d = a[f];
- b.push(d);
- a[f] = {
- PZ: !0,
- offset: c.yca,
- byteLength: d.byteLength
- };
- c.yca += d.byteLength;
- } else
- n.Xe(a[f]) && l(a[f], b, c);
- });
- return a;
- }
- function g() {
- var a,
- b,
- c;
- a = Array.prototype.concat.apply([], arguments);
- b = a.reduce(function (a, b) {
- return a + b.byteLength;
- }, 0);
- c = new Uint8Array(b);
- a.reduce(function (a, b) {
- c.set(new Uint8Array(b), a);
- return a + b.byteLength;
- }, 0);
- return c.buffer;
- }
- n = a(106);
- k = a(58);
- d.P = {
- ndb: function (a) {
- var b,
- c,
- d;
- b = k(a, {});
- a = [];
- b = l(b, a, {
- yca: 0
- });
- b = JSON.stringify(b);
- c = new ArrayBuffer(b.length + 4);
- d = new DataView(c);
- d.setUint32(0, b.length);
- for (var p = 4, n = 0, q = b.length; n < q; n++)
- d.setUint8(p, b.charCodeAt(n)), p++;
- a = [c].concat(a);
- return g.apply(null, a);
- },
- mdb: function (a) {
- var b;
- b = new DataView(a, 0, 4).getInt32(0);
- for (var f = new Uint8Array(a, 4, b), d = "", k = 0; k < f.byteLength; k++)
- d += String.fromCharCode(f[k]);
- b = 4 + b;
- d = JSON.parse(d);
- return c(d, a, b);
- }
- };
- }, function (d, b, a) {
- var g;
- function c(a, b) {
- return a.length > b.length ? 1 : b.length > a.length ? -1 : 0;
- }
- function l(a, b) {
- var c,
- d,
- f;
- c = [];
- if (g.Xe(b)) {
- d = {};
- f = {};
- f[a] = d;
- c.push(f);
- c = Object.keys(b).reduce(function (c, f) {
- var h,
- k,
- p;
- h = b[f];
- p = {};
- g.PZ(h) ? (k = a + ".__embed__." + f, p[k] = h, c.push(p)) : g.Xe(h) ? (k = a + ".__sub__." + f, h = l(k, h), d[f] = h[0][k], c = c.concat(h.slice(1))) : d[f] = h;
- return c;
- }, c);
- } else
- f = {},
- f[a] = b,
- c.push(f);
- return c;
- }
- g = a(106);
- d.P = {
- thb: l,
- uqb: function (a) {
- var b,
- m;
- b = Object.keys(a).map(function (a) {
- return a.split(".");
- });
- b.sort(c);
- for (var d = b[0], h = d.length, d = a[d.join(".")], f = 1; f < b.length; f++)
- for (var l = !1, g = !1, n = d, q = h; q < b[f].length; q++) {
- m = b[f][q];
- switch (m) {
- case "__metadata__":
- break;
- case "__sub__":
- g = !0;
- break;
- case "__embed__":
- l = !0;
- break;
- default:
- g ? (n = n[m], g = !1) : l && (n[m] = a[b[f].join(".")], l = !1);
- }
- }
- return d;
- },
- Xqb: function (a) {
- return a && (0 <= a.indexOf("__sub__") || 0 <= a.indexOf("__embed__"));
- }
- };
- }, function (d, b, a) {
- function c(a) {
- return a;
- }
- function l() {
- return c;
- }
- a(7);
- d.P = {
- HN: l,
- Nfa: l
- };
- }, function (d, b, a) {
- var c,
- l,
- g,
- n;
- c = a(7);
- l = a(106);
- g = {};
- g[l.oo.Bz] = function (a) {
- return a;
- };
- g[l.oo.OT] = function (a) {
- a = a || new ArrayBuffer(0);
- return String.fromCharCode.apply(null, new Uint8Array(a));
- };
- g[l.oo.OBJECT] = function (a) {
- var b;
- b = a || new ArrayBuffer(0);
- a = "";
- for (var b = new Uint8Array(b), c = 0; c < b.byteLength; c++)
- a += String.fromCharCode(b[c]);
- return JSON.parse(a);
- };
- n = {};
- n[l.oo.Bz] = function (a) {
- return a;
- };
- n[l.oo.OT] = function (a) {
- for (var b = new ArrayBuffer(a.length), c = new Uint8Array(b), f = 0, d = a.length; f < d; f++)
- c[f] = a.charCodeAt(f);
- return b;
- };
- n[l.oo.OBJECT] = function (a) {
- return c.Y(a) || c.Ma(a) ? a : n[l.oo.OT](JSON.stringify(a));
- };
- d.P = {
- HN: function (a) {
- return g[a] || g[l.oo.Bz];
- },
- Nfa: function (a) {
- return n[a] || n[l.oo.Bz];
- }
- };
- }, function (d) {
- function b(a, b, d, g) {
- a.trace(":", d, ":", g);
- b(g);
- }
- function a(a) {
- this.listeners = [];
- this.console = a;
- }
- a.prototype.constructor = a;
- a.prototype.addEventListener = function (a, d, g, n) {
- g = n ? g.bind(n) : g;
- n = !1;
- if (a) {
- this.console && (g = b.bind(null, this.console, g, d));
- if ("function" === typeof a.addEventListener)
- n = a.addEventListener(d, g);
- else if ("function" === typeof a.addListener)
- n = a.addListener(d, g);
- else
- throw Error("Emitter does not have a function to add listeners for '" + d + "'");
- this.listeners.push([a, d, g]);
- }
- return n;
- };
- a.prototype.on = a.prototype.addEventListener;
- a.prototype.clear = function () {
- var a;
- a = this.listeners.length;
- this.listeners.forEach(function (a) {
- var b,
- c;
- b = a[0];
- c = a[1];
- a = a[2];
- "function" === typeof b.removeEventListener ? b.removeEventListener(c, a) : "function" === typeof b.removeListener && b.removeListener(c, a);
- });
- this.listeners = [];
- this.console && this.console.trace("removed", a, "listener(s)");
- };
- d.P = a;
- }, function (d) {
- function b(a, b) {
- var c;
- if (void 0 === b || "function" !== typeof b || "string" !== typeof a)
- throw new TypeError("EventEmitter: addEventListener requires a string and a function as arguments");
- if (void 0 === this.sn)
- return this.sn = {},
- this.sn[a] = [b],
- !0;
- c = this.sn[a];
- return void 0 === c ? (this.sn[a] = [b], !0) : 0 > c.indexOf(b) ? (c.push(b), !0) : !1;
- }
- function a(a, b) {
- a = this.sn ? this.sn[a] : void 0;
- if (!a)
- return !1;
- a.forEach(function (a) {
- a(b);
- });
- return !0;
- }
- d.P = {
- addEventListener: b,
- on: b,
- removeEventListener: function (a, b) {
- var c;
- if (void 0 === b || "function" !== typeof b || "string" !== typeof a)
- throw new TypeError("EventEmitter: removeEventListener requires a string and a function as arguments");
- if (void 0 === this.sn)
- return !1;
- c = this.sn[a];
- if (void 0 === c)
- return !1;
- b = c.indexOf(b);
- if (0 > b)
- return !1;
- if (1 === c.length)
- return delete this.sn[a], !0;
- c.splice(b, 1);
- return !0;
- },
- Ja: a,
- emit: a,
- removeAllListeners: function (a) {
- this.sn && (void 0 === a ? delete this.sn : delete this.sn[a]);
- return this;
- }
- };
- }, function (d) {
- function b(a) {
- if (!(this instanceof b))
- return new b(a);
- if ("undefined" === typeof a)
- this.$k = function (a, b) {
- return a <= b;
- };
- else {
- if ("function" !== typeof a)
- throw Error("heap comparator must be a function");
- this.$k = a;
- }
- this.vo = [];
- }
- function a(b, d) {
- var g,
- k,
- l,
- h,
- f,
- q,
- m;
- g = b.vo;
- k = b.$k;
- l = 2 * d + 1;
- h = 2 * d + 2;
- f = g[d];
- q = g[l];
- m = g[h];
- q && k(q.ne, f.ne) && (!m || k(q.ne, m.ne)) ? (c(g, d, l), a(b, l)) : m && k(m.ne, f.ne) && (c(g, d, h), a(b, h));
- }
- function c(a, b, c) {
- var d;
- d = a[b];
- a[b] = a[c];
- a[c] = d;
- }
- b.prototype.clear = function () {
- this.vo = [];
- };
- b.prototype.Sn = function (a, b) {
- this.vo.push({
- ne: a,
- value: b
- });
- a = this.vo;
- b = this.$k;
- for (var d = a.length - 1, k = 0 === d ? null : Math.floor((d - 1) / 2); null !== k && b(a[d].ne, a[k].ne); )
- c(a, d, k), d = k, k = 0 === d ? null : Math.floor((d - 1) / 2);
- };
- b.prototype.remove = function () {
- var b;
- if (0 !== this.vo.length) {
- b = this.vo[0];
- c(this.vo, 0, this.vo.length - 1);
- this.vo.pop();
- a(this, 0);
- return b.value;
- }
- };
- b.prototype.NH = function () {
- if (0 !== this.vo.length)
- return this.vo[0].value;
- };
- b.prototype.enqueue = b.prototype.Sn;
- b.prototype.Uca = b.prototype.remove;
- b.prototype.Ts = function () {
- return this.vo.map(function (a) {
- return a.value;
- });
- };
- d.P = b;
- }, function (d, b, a) {
- var g,
- q,
- n,
- k,
- p,
- h,
- f,
- u;
- function c(a, b, d) {
- var C,
- z;
- function l(a, b, c, f) {
- a.info.call(a, function (a, d) {
- var h;
- if (a)
- f(a);
- else {
- try {
- h = d.values[this.context].entries[b][c].size;
- } catch (na) {
- h = -1;
- }
- -1 < h ? f(null, h) : this.Uq(function (a, b) {
- a ? f(a) : (b[c] && (h = b[c].size), f(null, h));
- });
- }
- }
- .bind(a));
- }
- function m(a, b, d, h, k, g, n) {
- var u;
- g ? g.xn || (g.xn = {}) : g = {
- xn: {}
- };
- C(h);
- u = q.time.now();
- h = new f(function (c, f) {
- a.create(q.storage.eE, b, d, function (a, b) {
- a ? f(a) : c(b);
- });
- }).then(function (f) {
- f.V ? l(a, q.storage.eE, b, function (a, d) {
- a ? n(a) : (z(d), C(d), g.xn[c.GR.y5] = {
- V: !0,
- time: k,
- Pi: d,
- ny: b,
- cQa: f,
- duration: q.time.now() - u
- }, g.Ej = f.Ej, n(null, g));
- }) : (g.xn[c.GR.y5] = {
- V: !1,
- ny: b,
- error: f.error
- }, n(null, g));
- }, function (a) {
- n(a);
- });
- p.Ds(h);
- }
- function A(a, b, c, f, d, h) {
- f.Sn(c.time, c);
- for (var k = c.time - 864E5, g = f.NH(); g && !isNaN(g.time) && g.time < k; )
- g = f.Uca(), C(0 - (g.ba || 0)), g = f.NH();
- f = f.Ts().map(function (a) {
- return a.time + ";" + a.ba;
- });
- m(a, b, Array.prototype.join.call(f, "|"), c.ba, c.time, d, h);
- }
- function r(a, b, f, d, k, g, p, u, m) {
- var r;
- r = q.time.now();
- a.create(f, d, k, function (k, G) {
- var D;
- if (k)
- h.error("Failed to replace item", d, k);
- else if (G.V) {
- D = G.Ej;
- l(a, f, d, function (f, h) {
- var k,
- l;
- if (f)
- m(f);
- else {
- f = {
- time: u,
- ba: h || 0
- };
- k = {
- Ej: D,
- xn: {}
- };
- l = q.time.now() - r;
- k.xn[c.GR.REPLACE] = {
- V: !0,
- time: u,
- Pi: h,
- ny: d,
- cQa: G,
- duration: l
- };
- g ? A(a, b, f, p, k, m) : (C(h), m(null, k));
- }
- });
- } else
- m(n.cU.jo(G.error || "Failed to create item"));
- });
- }
- function G(a, b, f, d, k, g, p, u, m) {
- var r;
- r = q.time.now();
- a.append(f, d, k, function (k, G) {
- var D;
- if (k)
- h.error("Failed to save item " + d, k), m(k);
- else if (G.V) {
- D = G.Ej;
- l(a, f, d, function (f, h) {
- var k,
- l;
- if (f)
- m(f);
- else {
- f = {
- time: u,
- ba: h || 0
- };
- k = {
- Ej: D,
- xn: {}
- };
- l = q.time.now() - r;
- k.xn[c.GR.j2a] = {
- V: !0,
- time: u,
- Pi: h,
- ny: d,
- cQa: G,
- duration: l
- };
- g ? A(a, b, f, p, k, m) : (C(h), m(null, k));
- }
- });
- } else
- m(n.cU.jo(G.error || "Failed to save item"));
- });
- }
- function t(a, b) {
- a && g.Vb(a.remove) && a.pj.valid && a.remove(q.storage.eE, b.QE, function (c, f) {
- if (c)
- h.error("Failed to delete old journal key", c);
- else
- try {
- f && (g.Y(f.error) || f.error.some(function (a) {
- return "NFErr_FileNotFound" === a.BSb;
- })) && A(a, b.QE, {
- time: 0,
- ba: 0
- }, b.AL, 0, function () {});
- } catch (V) {}
- });
- }
- if (!a.pj.valid)
- return u;
- this.hza = g.Y(b) || g.Ma(b) ? 0 : b;
- this.o9 = a;
- this.L9 = this.MK = 0;
- this.AL = new k();
- this.i7a = d || "default";
- this.QE = this.i7a + ".NRDCACHEJOURNALKEY";
- C = function (a) {
- isNaN(a) || (this.MK += a);
- return this.MK;
- }
- .bind(this);
- z = function (a) {
- isNaN(a) || (this.L9 += a);
- return this.L9;
- }
- .bind(this);
- this.lfa = function () {
- return this.QE;
- };
- this.save = function (a, b, c, f) {
- var d;
- d = q.time.now();
- G(this.o9, this.QE, a, b, c, 0 <= this.hza, this.AL, d, f);
- };
- this.replace = function (a, b, c, f) {
- var d;
- d = q.time.now();
- r(this.o9, this.QE, a, b, c, 0 <= this.hza, this.AL, d, f);
- };
- this.EHa = function (a) {
- var b,
- d;
- b = this.MK;
- a -= 864E5;
- for (var c = this.AL.Ts(), f = 0; f < c.length; f++) {
- d = c[f];
- d.time < a && !isNaN(d.ba) && (b -= d.ba);
- }
- return b;
- };
- (function (a) {
- var b;
- b = a.o9;
- a.MK = 0;
- b.read(q.storage.eE, a.QE, 0, -1, function (c, f) {
- var d,
- k,
- g,
- p;
- d = [];
- k = 0;
- g = !0;
- if (c)
- h.error("Failed to compile records", c);
- else if (f.V) {
- c = String.fromCharCode.apply(null, new Uint8Array(f.value));
- c = String.prototype.split.call(c, "|");
- f = c.reduce(function (a, b) {
- return a + (b.length + 40);
- }, 0);
- C(f);
- d = c.map(function (a) {
- a = a.split(";");
- return {
- time: Number(a[0]),
- ba: Number(a[1])
- };
- });
- try {
- if (!isNaN(d.reduce(function (a, b) {
- return a + b.ba;
- }, 0)))
- for (var g = !1, l = q.time.now() - 864E5; k < d.length; k++) {
- p = d[k];
- p.time < l || (a.AL.Sn(p.time, p), C(p.ba));
- }
- } catch (ja) {}
- }
- g && t(b, a);
- });
- }
- (this));
- }
- g = a(7);
- q = a(107);
- n = a(205);
- k = a(746);
- b = a(58);
- p = a(204);
- h = new q.Console("DISKWRITEMANAGER", "media|asejs");
- f = q.Promise;
- b({
- GR: {
- j2a: "saveitem",
- REPLACE: "replaceitem",
- y5: "journalupdate"
- }
- }, c);
- u = {
- save: function (a, b, c, f) {
- f(n.uta);
- },
- replace: function (a, b, c, f) {
- f(n.uta);
- },
- lfa: function () {
- return "";
- },
- EHa: function () {
- return 0;
- }
- };
- c.prototype.constructor = c;
- d.P = {
- create: function (a, b, f) {
- return new c(a, b, f);
- },
- PNb: u
- };
- }, function (d, b, a) {
- var p,
- h,
- f,
- u,
- m,
- r,
- t,
- H,
- D;
- function c() {}
- function g(b, f, d, k, l) {
- var u;
- u = p.Vb(k) ? k : c;
- this.dx = b;
- this.Ct = d.Zp;
- this.Zt = 0;
- this.P4a = d.ajb || "NONE";
- this.Ft = p.Y(l) || p.Ma(l) ? 0 : l;
- this.Hd = {};
- this.Op = d.mUb || h.storage.eE;
- this.qr = f;
- this.tF = m.create(this.qr, d.$fb * this.Ft, this.dx);
- this.on = this.addEventListener = D.addEventListener;
- this.removeEventListener = D.removeEventListener;
- this.emit = this.Ja = D.Ja;
- this.Jza = n(this, g.Sd.REPLACE);
- this.r5a = n(this, g.Sd.xya);
- this.zA;
- this.zA = d.SUa ? a(743) : a(742);
- this.qr.query(this.Op, this.$n(""), function (a, b) {
- var c;
- if (a)
- u(a);
- else {
- c = this.tF.lfa();
- a = Object.keys(b).filter(function (a) {
- return a !== c && r.XG(a);
- }).map(this.Fna.bind(this));
- this.d1(a, function (a, c) {
- Object.keys(c).map(function (a) {
- var f,
- d;
- f = c[a];
- this.Hd[r.NX(a)] = f;
- if (f.yla && 1 < Object.keys(f.yla).length) {
- d = 0;
- Object.keys(f.yla).forEach(function (a) {
- b[this.$n(a)] && p.la(b[this.$n(a)].size) && (d += b[this.$n(a)].size);
- }
- .bind(this));
- a = r.NX(a);
- this.Hd[a].size = d;
- } else
- a = r.NX(a), b[this.$n(a)] && (this.Hd[a].size = b[this.$n(a)].size);
- }
- .bind(this));
- q(this.qr, this.Op, this.dx, function (a, b) {
- this.Zt = b;
- a ? u(a) : u(null, this);
- }
- .bind(this));
- }
- .bind(this));
- }
- }
- .bind(this));
- }
- function q(a, b, f, d) {
- var h;
- h = p.Vb(d) ? d : c;
- a.query(b, f, function (a, b) {
- a ? h(a) : (a = Object.keys(b).reduce(function (a, c) {
- return a + (b[c].size || 0);
- }, 0), h(null, a));
- });
- }
- function n(a, b) {
- return function (c, f, d, k, l) {
- return function (n, u) {
- var m;
- if (n)
- f || a.Ja(g.Sd.ERROR, {
- itemKey: c,
- error: n
- }), d(n);
- else {
- m = {
- Pi: 0,
- duration: 0,
- items: [],
- time: h.time.now()
- };
- Object.keys(u.xn).map(function (b) {
- var c;
- c = u.xn[b];
- b = {
- key: a.Fna(c.ny),
- If: b
- };
- c.V ? (m.Pi += c.Pi, b.f_ = c.Pi, p.la(c.duration) && (m.duration += c.duration)) : b.error = c.error;
- m.items.push(b);
- });
- n = p.Vb(k) ? k() : 0;
- 0 < l && (m.WF = l - n);
- q(a.qr, a.Op, a.dx, function (c, h) {
- c ? d(c) : (a.Zt = h, m.Ej = a.Ct - h, f || a.Ja(b, H.LHa(m)), d(null, m));
- });
- }
- };
- };
- }
- function k(a, b) {
- return 0 < b && a >= b ? !0 : !1;
- }
- p = a(7);
- h = a(107);
- f = a(205);
- b = a(58);
- u = new h.Console("MEDIACACHE", "media|asejs");
- m = a(747);
- r = a(368);
- t = a(106);
- H = a(204);
- D = a(105).EventEmitter;
- b({
- Sd: {
- xya: "writeitem",
- REPLACE: "replaceitem",
- y5: "journalupdate",
- ERROR: "mediacache-error"
- }
- }, g);
- g.prototype.getName = function () {
- return this.dx;
- };
- g.prototype.Fna = function (a) {
- return a.slice(this.dx.length + 1);
- };
- g.prototype.dfa = function () {
- return Object.keys(this.Hd).filter(function (a) {
- a = r.Eea(this.Hd[a]);
- return void 0 === a || 0 >= a.pEa();
- }
- .bind(this));
- };
- g.prototype.fnb = function () {
- return Object.keys(this.Hd).reduce(function (a, b) {
- var c;
- c = this.Hd[b];
- return c && c.creationTime < a.creationTime ? {
- resourceKey: b,
- creationTime: c.creationTime
- }
- : a;
- }
- .bind(this), {
- resourceKey: null,
- creationTime: h.time.now()
- }).tVb;
- };
- g.prototype.fmb = function () {
- var a;
- switch (this.P4a) {
- case "FIFO":
- a = this.fnb();
- }
- return a;
- };
- g.prototype.Pgb = function (a) {
- var b;
- b = p.Vb(a) ? a : c;
- this.sIa(function (c) {
- var f,
- d,
- k;
- f = this.Hd;
- d = Object.keys(f).reduce(function (a, b) {
- b = f[b];
- b.resourceIndex && Object.keys(b.resourceIndex).forEach(function (b) {
- a.push(b);
- });
- return a;
- }, []);
- if ((c = c.filter(function (a) {
- return !r.XG(a) && 0 > d.indexOf(a);
- })) && 0 < c.length) {
- k = this;
- c = h.Promise.all(c.map(function (a) {
- return new h.Promise(function (b, c) {
- k["delete"](a, function (a) {
- a ? c(a) : b();
- });
- });
- })).then(function () {
- b(void 0, {
- cla: !0
- });
- }, function (a) {
- b(a, {
- cla: !1
- });
- });
- H.Ds(c);
- } else
- a(void 0, {
- cla: !1
- });
- }
- .bind(this));
- };
- g.prototype.kAb = function (a, b, d) {
- var k,
- g;
- k = p.Vb(b) ? b : c;
- b = this.$n(a);
- g = h.time.now();
- this.qr.read(this.Op, b, 0, -1, function (b, c) {
- var l;
- if (b)
- k(b);
- else if (c && c.V && c.value) {
- p.Vb(d) || (d = this.zA.HN(t.oo.Bz), r.XG(a) ? d = this.zA.HN(t.oo.OBJECT) : (b = this.Hd[a], !p.Y(b) && p.la(b.resourceIndex[a]) ? (b = b.resourceIndex[a], p.Y(b) && (b = t.oo.Bz), d = this.zA.HN(b)) : u.warn("Metadata is undefined or does not contain a resource format for key", a, ":", b)));
- try {
- l = d(c.value);
- } catch (ea) {
- return k(f.oE.jo(ea.message));
- }
- c = {
- duration: h.time.now() - g
- };
- this.Hd[a] && p.la(this.Hd[a].size) && (c.ou = p.la(this.Hd[a].size) ? this.Hd[a].size : 0);
- k(null, l, c);
- } else
- k(f.oE.jo(c.error));
- }
- .bind(this));
- };
- g.prototype.read = function (a, b, c) {
- this.kAb(a, b, c);
- };
- g.prototype.d1 = function (a, b, d) {
- var k,
- g,
- l;
- k = p.Vb(b) ? b : c;
- if ("[object Array]" !== Object.prototype.toString.call(a))
- k(f.oE.jo("item keys must be an array"));
- else {
- g = {};
- l = [];
- a = h.Promise.all(a.map(function (a) {
- return new h.Promise(function (b, c) {
- var f;
- d && !p.Y(d[a]) && (f = this.zA.HN(d[a]));
- this.read(a, function (f, d, h) {
- f ? (d = {}, d[a] = f, c(d)) : (g[a] = d, l.push({
- duration: h.duration,
- ou: h.ou
- }), b());
- }, f);
- }
- .bind(this));
- }
- .bind(this))).then(function () {
- var a;
- a = {};
- 0 < l.length && (a = l.reduce(function (a, b) {
- p.la(b.duration) && (a.duration += b.duration);
- p.la(b.ou) && (a.ou += b.ou);
- return a;
- }, {
- duration: 0,
- ou: 0
- }));
- k(null, g, a);
- }, function (a) {
- k(a);
- });
- H.Ds(a);
- }
- };
- g.prototype.write = function (a, b, d, h, g) {
- var l,
- n,
- u;
- d = p.Vb(d) ? d : c;
- l = this.$n(a);
- n = "function" === typeof g ? g() : 0;
- u = t.$fa(b);
- u = this.zA.Nfa(u)(b);
- u.byteLength + this.Zt >= this.Ct ? d(f.zD) : k(u.byteLength + n, this.Ft) ? d(f.dU) : this.tF.save(this.Op, l, b, this.r5a(a, h, d, g, this.Ft), u.byteLength);
- };
- g.prototype.replace = function (a, b, d, h, g) {
- var l,
- n,
- q,
- m;
- l = p.Vb(d) ? d : c;
- n = this.$n(a);
- q = 0;
- "function" === typeof g && (q = g());
- d = t.$fa(b);
- m = this.zA.Nfa(d)(b);
- d = (this.Hd[a] || {}).size || 0;
- 0 >= d && this.Hd[a] ? this.MIa([a], function (c) {
- u.trace("Replacing key", a, "which exists:", !!this.Hd[a], this.Hd[a] ? this.Hd[a] : void 0, "and has size", c, "with", b, "with size", m.byteLength, "plus _used", this.Zt, "vs capacity", this.Ct);
- m.byteLength - c + this.Zt >= this.Ct ? l(f.zD) : k(m.byteLength - c + q, this.Ft) ? l(f.dU) : this.tF.replace(this.Op, n, b, this.Jza(a, h, l, g, this.Ft), m.byteLength);
- }
- .bind(this)) : (u.trace("Replacing key", a, "which exists:", !!this.Hd[a], this.Hd[a] ? this.Hd[a] : void 0, "and has size", d, "with", b, "with size", m.byteLength, "plus _used", this.Zt, "vs capacity", this.Ct), m.byteLength - d + this.Zt >= this.Ct ? l(f.zD) : k(m.byteLength - d + q, this.Ft) ? l(f.dU) : this.tF.replace(this.Op, n, b, this.Jza(a, h, l, g, this.Ft), m.byteLength));
- };
- g.prototype.vBb = function (a, b, d, k) {
- var l;
- l = p.Vb(b) ? b : c;
- "[object Object]" !== Object.prototype.toString.call(a) ? l(f.cU.jo("items must be a map of keys to objects")) : (b = h.Promise.all(Object.keys(a).map(function (b) {
- return new h.Promise(function (c) {
- this.replace(b, a[b], function (a, f) {
- a ? c({
- error: a,
- co: b
- }) : c(f);
- }, !0, k);
- }
- .bind(this));
- }
- .bind(this))).then(function (a) {
- var b,
- c,
- f,
- n;
- try {
- b = Number.MAX_VALUE;
- c = a.reduce(function (a, c) {
- c.error || (a.Pi += c.Pi, p.la(c.duration) && (a.duration += c.duration), !p.Y(c.Ej) && c.Ej < b && (b = c.Ej), c.items.map(function (b) {
- a.items.push({
- key: b.key,
- If: b.If,
- f_: b.f_,
- mtb: b.mtb,
- duration: b.duration
- });
- }), b < Number.MAX_VALUE && (a.Ej = b));
- return a;
- }, {
- Pi: 0,
- items: [],
- time: h.time.now(),
- duration: 0
- });
- 0 < this.Ft && (c.WF = this.Ft - k());
- f = a.filter(function (a) {
- return !p.Y(a.error);
- });
- n = H.tJa(f);
- d || (n ? n.forEach(function (a) {
- this.Ja(g.Sd.ERROR, a);
- }
- .bind(this)) : this.Ja(g.Sd.REPLACE, H.LHa(c)));
- l(n, c);
- } catch (V) {
- l(V);
- }
- }
- .bind(this), function (a) {
- d || this.Ja(g.Sd.ERROR, a);
- l(a);
- }
- .bind(this)), H.Ds(b));
- };
- g.prototype["delete"] = function (a, b) {
- var d;
- d = p.Vb(b) ? b : c;
- this.qr.remove(this.Op, this.$n(a), function (a, b) {
- a ? d(a) : b && b.V ? q(this.qr, this.Op, this.$n(""), function (a, b) {
- a ? d(a) : (this.Zt = b, d());
- }
- .bind(this)) : d(f.XXa.jo(b.error));
- }
- .bind(this));
- };
- g.prototype.sIa = function (a) {
- this.query("", function (b, c) {
- b ? (u.error("Failed to get keys", b), a([])) : a(c);
- });
- };
- g.prototype.query = function (a, b) {
- var f,
- d;
- f = p.Vb(b) ? b : c;
- d = this.tF.lfa();
- this.qr.query(this.Op, this.$n(a), function (a, b) {
- a ? f(a) : f(null, Object.keys(b).filter(function (a) {
- return a !== d;
- }).map(this.Fna.bind(this)));
- }
- .bind(this));
- };
- g.prototype.$n = function (a) {
- return this.dx + "." + a;
- };
- g.prototype.clear = function (a) {
- var b;
- b = p.Vb(a) ? a : c;
- this.sIa(function (a) {
- var c;
- c = h.Promise.all(a.map(function (a) {
- return new h.Promise(function (b) {
- a && this["delete"](a, function () {
- b();
- });
- }
- .bind(this));
- }
- .bind(this))).then(function () {
- b(a);
- }, function (a) {
- this.Ja(g.Sd.ERROR, a);
- b([], a);
- }
- .bind(this));
- H.Ds(c);
- }
- .bind(this));
- };
- g.prototype.MIa = function (a, b) {
- var f,
- d;
- f = p.Vb(b) ? b : c;
- d = (a || []).map(function (a) {
- return this.$n(a);
- }
- .bind(this));
- this.qr.query(this.Op, this.dx, function (b, c) {
- b ? (u.error("failed to get persisted size for keyset ", a, b), f(0)) : (b = Object.keys(c).filter(function (a) {
- return 0 <= d.indexOf(a);
- }).reduce(function (a, b) {
- return a + (c[b].size || 0);
- }, 0), f(b));
- }
- .bind(this));
- };
- g.prototype.slb = function (a) {
- return this.tF.EHa(a);
- };
- g.prototype.constructor = g;
- d.P = g;
- }, function (d, b, a) {
- var g,
- q,
- n,
- k,
- p;
- function c(a) {
- this.pj = a;
- this.context = a.context;
- this.HNa = "NULLCONTEXT" === a.context ? !0 : !1;
- }
- g = a(7);
- q = a(107);
- n = new q.Console("DISKCACHE", "media|asejs");
- k = {
- context: "NULLCONTEXT",
- read: function (a, b, c, d, k) {
- k("MediaCache is not supported");
- },
- remove: function (a, b, c) {
- c("MediaCache is not supported");
- },
- create: function (a, b, c, d) {
- d("MediaCache is not supported");
- },
- append: function (a, b, c, d) {
- d("MediaCache is not supported");
- },
- query: function (a, b, c) {
- c([]);
- }
- };
- c.prototype.HA = function () {
- var a,
- b,
- c;
- a = Array.prototype.slice.call(arguments);
- b = a[0];
- c = a[a.length - 1];
- a = a.slice(1, a.length - 1);
- a.push(function (a) {
- c(null, a);
- });
- try {
- if (this.HNa)
- throw Error("Media Cache not supported");
- b.apply(this.pj, a);
- } catch (A) {
- c(A);
- }
- };
- c.prototype.query = function (a, b, c, d) {
- try {
- if (this.HNa)
- throw Error("Media Cache not supported");
- this.pj.query(a, b, function (a) {
- c(null, a);
- }, d);
- } catch (G) {
- c(G);
- }
- };
- c.prototype.read = function (a, b, c, d, k) {
- this.HA(this.pj.read, a, b, c, d, k);
- };
- c.prototype.remove = function (a, b, c) {
- this.HA(this.pj.remove, a, b, c);
- };
- c.prototype.create = function (a, b, c, d) {
- this.HA(this.pj.create, a, b, c, d);
- };
- c.prototype.append = function (a, b, c, d) {
- this.HA(this.pj.append, a, b, c, d);
- };
- c.prototype.info = function (a) {
- this.HA(this.pj.info, a);
- };
- c.prototype.Uq = function (a) {
- this.HA(this.pj.Uq, a);
- };
- c.prototype.flush = function (a) {
- this.HA(this.pj.flush, a);
- };
- c.prototype.clear = function () {
- this.pj.clear();
- };
- d.P = {
- hfb: function (a) {
- var b,
- d,
- h,
- l,
- m;
- b = a.nSb || "NRDMEDIADISKCACHE";
- p = a.Lx || 0;
- 0 !== p || g.Y(q.options) || g.Y(q.options.oH) || (p = q.options.oH);
- a = p;
- try {
- l = q.storage.fG;
- if (!l || !g.Xe(l))
- throw n.warn("Failed to get disk store contexts from platform"), "Platform does not support disk store";
- if (h = l[b])
- n.warn("Disk store exists, returning"), d = new c(h);
- else {
- if (g.Y(q.storage) || !g.Vb(q.storage.RW) || q.options && 0 === q.options.oH)
- throw n.warn("Platform doesn't support creating disk store contexts"), "Platform doesn't support creating disk store contexts";
- n.warn("Disk store context doesn't exist, creating with size " + a);
- m = q.storage.RW({
- context: b,
- size: a,
- encrypted: !0,
- signed: !0
- });
- if (!m || !m.valid)
- throw "Failed to create disk store context";
- d = new c(m);
- }
- } catch (H) {
- n.warn("Exception creating disk store context - returning NullContext (noops)", H);
- d = new c(k);
- }
- return d;
- },
- Tlb: function () {
- return p;
- },
- tLb: c
- };
- }, function (d, b, a) {
- var c,
- g,
- q,
- n,
- k;
- c = a(7);
- q = [];
- k = !1;
- d.P = {
- LZ: function (b, d, f) {
- var h;
- if (k)
- c.Vb(f) && (g.$o || g.PB ? setTimeout(function () {
- f(g);
- }, 0) : q.push(f));
- else {
- k = !0;
- h = a(107);
- h.eO(b);
- n = new h.Console("MEDIACACHE", "media|asejs");
- g = new(a(369))(d, function (a) {
- a && n.warn("Failed to initialize MediaCache", a);
- c.Vb(f) && setTimeout(function () {
- f(g);
- }, 0);
- q.map(function (a) {
- setTimeout(function () {
- a(g);
- }, 0);
- });
- });
- }
- return g;
- },
- NSb: function (b, d) {
- g = new(a(369))(b, function (a, b) {
- a && n.warn("Failed to initialize MediaCache", a);
- c.Vb(d) && setTimeout(function () {
- d(b);
- }, 0);
- });
- }
- };
- }, function (d, b, a) {
- var c,
- g,
- q,
- n,
- k,
- p,
- h,
- f;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Qta = void 0;
- c = a(0);
- g = a(22);
- a(6);
- q = a(750);
- n = a(7);
- k = a(210);
- p = a(11);
- d = a(38);
- h = a(739);
- f = h.tta;
- a = function () {
- var F2p;
- F2p = 2;
- while (F2p !== 27) {
- switch (F2p) {
- case 11:
- a.prototype.tI = function (a, b) {
- var S3p,
- c,
- f3p,
- e3p,
- M3p,
- L3p;
- S3p = 2;
- while (S3p !== 8) {
- f3p = "save";
- f3p += "todis";
- f3p += "k";
- e3p = "mediac";
- e3p += "ac";
- e3p += "hes";
- e3p += "ta";
- e3p += "ts";
- M3p = "me";
- M3p += "diac";
- M3p += "ache";
- L3p = "me";
- L3p += "diac";
- L3p += "ach";
- L3p += "elook";
- L3p += "up";
- switch (S3p) {
- case 4:
- L3p === a && (c.lookupTime = b.z_, c.dataFound = b.ZW);
- c.oneObject = this.wo;
- this.M4a && this.emit(M3p, c);
- S3p = 8;
- break;
- case 2:
- c = {
- type: e3p,
- operation: a
- };
- f3p === a && (c.saveTime = b.uRa);
- S3p = 4;
- break;
- }
- }
- };
- a.prototype.Rzb = function (a, b) {
- var c3p,
- c,
- f;
- c3p = 2;
- while (c3p !== 3) {
- switch (c3p) {
- case 2:
- c = this;
- f = Object.keys(a).map(function (b) {
- var D3p;
- D3p = 2;
- while (D3p !== 1) {
- switch (D3p) {
- case 4:
- return c.ffb(a[b]);
- break;
- D3p = 1;
- break;
- case 2:
- return c.ffb(a[b]);
- break;
- }
- }
- });
- c3p = 4;
- break;
- case 4:
- return Promise.all(f).then(function (a) {
- var v3p;
- v3p = 2;
- while (v3p !== 5) {
- switch (v3p) {
- case 2:
- a.sort(function (a, b) {
- var z3p;
- z3p = 2;
- while (z3p !== 1) {
- switch (z3p) {
- case 2:
- return a.ec === b.ec ? 0 : a.ec ? -1 : 1;
- break;
- }
- }
- });
- return h.zfa(c.K, c.G, c.He, a, b);
- break;
- }
- }
- });
- break;
- }
- }
- };
- a.prototype.ffb = function (a) {
- var a3p,
- b,
- c,
- d,
- k;
- a3p = 2;
- while (a3p !== 3) {
- switch (a3p) {
- case 2:
- b = this;
- a3p = 5;
- break;
- case 5:
- k = {};
- return new Promise(function (g, l) {
- var u3p,
- p;
- u3p = 2;
- while (u3p !== 5) {
- switch (u3p) {
- case 2:
- u3p = 1;
- break;
- case 1:
- b.mi.d1(f.Zj, a, function (a, b) {
- var O3p,
- n,
- r3p,
- l3p,
- n3p,
- F3p;
- O3p = 2;
- while (O3p !== 5) {
- switch (O3p) {
- case 2:
- try {
- r3p = 2;
- while (r3p !== 19) {
- l3p = "Header";
- l3p += " fragments was an array buffer, is inv";
- l3p += "alid type ";
- n3p = "Missing or invalid he";
- n3p += "ader d";
- n3p += "at";
- n3p += "a parts for stream ";
- F3p = "Missing ";
- F3p += "or invalid media data parts for s";
- F3p += "tream ";
- switch (r3p) {
- case 11:
- r3p = h.gha(p) ? 10 : 12;
- break;
- case 10:
- return n = F3p + p.sa,
- l(n);
- break;
- case 6:
- r3p = p.ec ? 14 : 11;
- break;
- case 3:
- r3p = c instanceof ArrayBuffer ? 9 : 7;
- break;
- case 12:
- g(p);
- r3p = 19;
- break;
- case 14:
- r3p = h.hha(p) ? 13 : 12;
- break;
- case 13:
- return n = n3p + p.sa,
- l(n);
- break;
- case 9:
- n = l3p + p.sa;
- return l(n);
- break;
- case 1:
- return l(a);
- break;
- case 2:
- r3p = a || void 0 === b ? 1 : 5;
- break;
- case 7:
- p = h.Nea(d, k, c);
- r3p = 6;
- break;
- case 5:
- Object.keys(b).map(function (a) {
- var K3p,
- N3p,
- h,
- g;
- K3p = 2;
- while (K3p !== 9) {
- switch (K3p) {
- case 3:
- h === f.sra ? c = b[a] : k[h] = b[a];
- K3p = 9;
- break;
- case 4:
- try {
- N3p = 2;
- while (N3p !== 5) {
- switch (N3p) {
- case 2:
- g = new Uint8Array(b[a]);
- d = JSON.parse(String.fromCharCode.apply(null, g));
- N3p = 5;
- break;
- }
- }
- } catch (ha) {
- d = b[a];
- }
- K3p = 9;
- break;
- case 5:
- K3p = h === f.U5 ? 4 : 3;
- break;
- case 2:
- h = a.substr(a.lastIndexOf(".") + 1);
- K3p = 5;
- break;
- }
- }
- });
- r3p = 4;
- break;
- case 20:
- p = h.Mea(d, {
- response: k.response
- });
- r3p = 6;
- break;
- case 4:
- r3p = h.HKa(d) ? 3 : 20;
- break;
- }
- }
- } catch (T) {
- l(T);
- }
- O3p = 5;
- break;
- }
- }
- });
- u3p = 5;
- break;
- case 3:
- u3p = 9;
- break;
- u3p = 1;
- break;
- }
- }
- });
- break;
- }
- }
- };
- a.prototype.x7a = function (a, b, d) {
- var X3p,
- k;
- X3p = 2;
- while (X3p !== 4) {
- switch (X3p) {
- case 2:
- k = this;
- return new Promise(function (g, l) {
- var t3p,
- p;
- t3p = 2;
- while (t3p !== 5) {
- switch (t3p) {
- case 2:
- k.mi.read(f.Zj, a, function (f, q) {
- var A3p,
- u,
- m,
- r,
- A,
- G,
- t,
- D,
- C,
- J,
- R,
- P,
- x,
- L,
- W,
- Y,
- H3p,
- ia,
- B,
- d3p,
- ka,
- S,
- J3p,
- w3p,
- I3p,
- Z3p,
- T3p,
- o3p,
- p3p,
- H,
- K,
- q3p,
- h3p,
- U3p,
- P3p,
- i3p,
- j3p,
- x3p,
- k3p,
- s3p,
- m3p;
- A3p = 2;
- while (A3p !== 4) {
- P3p = "media";
- P3p += "cac";
- P3p += "heloo";
- P3p += "k";
- P3p += "up";
- switch (A3p) {
- case 13:
- A3p = D.headers ? 12 : 10;
- break;
- case 5:
- l(f);
- A3p = 4;
- break;
- case 3:
- A3p = n.Y(q) ? 9 : 8;
- break;
- case 10:
- A3p = D.data ? 20 : 17;
- break;
- case 9:
- g();
- A3p = 4;
- break;
- case 8:
- D = q[a];
- A3p = 7;
- break;
- case 1:
- A3p = f ? 5 : 3;
- break;
- case 16:
- void 0 !== p && (p.Kj = f);
- A3p = 15;
- break;
- case 2:
- A3p = 1;
- break;
- case 18:
- try {
- H3p = 2;
- while (H3p !== 8) {
- switch (H3p) {
- case 2:
- ia = c.__values(m),
- B = ia.next();
- H3p = 1;
- break;
- case 1:
- H3p = !B.done ? 5 : 8;
- break;
- case 9:
- B = ia.next();
- H3p = 1;
- break;
- case 5:
- J = B.value;
- L = Object.keys(u[J]);
- try {
- d3p = 2;
- while (d3p !== 6) {
- i3p = "Missing or i";
- i3p += "nvalid media d";
- i3p += "ata pa";
- i3p += "rts for strea";
- i3p += "m ";
- switch (d3p) {
- case 3:
- d3p = h.gha(Y) ? 9 : 8;
- break;
- case 2:
- ka = (G = void 0, c.__values(L)),
- S = ka.next();
- d3p = 1;
- break;
- case 1:
- d3p = !S.done ? 5 : 6;
- break;
- case 8:
- q.push(Y);
- d3p = 7;
- break;
- case 5:
- W = u[J][S.value];
- Y = h.Mea(W, W);
- d3p = 3;
- break;
- case 7:
- S = ka.next();
- d3p = 1;
- break;
- case 9:
- return P = i3p + Y.sa,
- l(P);
- break;
- }
- }
- } catch (wb) {
- G = {
- error: wb
- };
- }
- finally {
- J3p = 2;
- while (J3p !== 1) {
- switch (J3p) {
- case 2:
- try {
- w3p = 2;
- while (w3p !== 1) {
- j3p = "r";
- j3p += "et";
- j3p += "u";
- j3p += "r";
- j3p += "n";
- switch (w3p) {
- case 2:
- S && !S.done && (t = ka[j3p]) && t.call(ka);
- w3p = 1;
- break;
- }
- }
- }
- finally {
- I3p = 2;
- while (I3p !== 5) {
- switch (I3p) {
- case 1:
- throw G.error;
- I3p = 5;
- break;
- case 2:
- I3p = G ? 1 : 5;
- break;
- case 9:
- throw G.error;
- I3p = 4;
- break;
- I3p = 5;
- break;
- }
- }
- }
- J3p = 1;
- break;
- }
- }
- }
- H3p = 9;
- break;
- }
- }
- } catch (wb) {
- r = {
- error: wb
- };
- }
- finally {
- Z3p = 2;
- while (Z3p !== 1) {
- switch (Z3p) {
- case 2:
- try {
- T3p = 2;
- while (T3p !== 1) {
- x3p = "re";
- x3p += "t";
- x3p += "u";
- x3p += "rn";
- switch (T3p) {
- case 2:
- B && !B.done && (A = ia[x3p]) && A.call(ia);
- T3p = 1;
- break;
- }
- }
- }
- finally {
- o3p = 2;
- while (o3p !== 5) {
- switch (o3p) {
- case 2:
- o3p = r ? 1 : 5;
- break;
- case 1:
- throw r.error;
- o3p = 5;
- break;
- }
- }
- }
- Z3p = 1;
- break;
- }
- }
- }
- A3p = 17;
- break;
- case 6:
- f = h.xfa(D.movieEntry);
- q = [];
- A3p = 13;
- break;
- case 12:
- C = Object.keys(D.headers);
- A3p = 11;
- break;
- case 17:
- p = h.zfa(k.K, k.G, k.He, q, b);
- A3p = 16;
- break;
- case 20:
- u = D.data;
- m = Object.keys(u);
- A3p = 18;
- break;
- case 7:
- A3p = D.movieEntry ? 6 : 15;
- break;
- case 11:
- try {
- p3p = 2;
- while (p3p !== 11) {
- k3p = "Header fragment";
- k3p += "s was an array";
- k3p += " buffer, ";
- k3p += "is invalid t";
- k3p += "ype ";
- s3p = "Missing or invali";
- s3p += "d header data par";
- s3p += "ts for stream ";
- switch (p3p) {
- case 5:
- J = K.value;
- R = D.headers[J];
- p3p = 3;
- break;
- case 3:
- p3p = R.fragments instanceof ArrayBuffer ? 9 : 7;
- break;
- case 12:
- K = H.next();
- p3p = 1;
- break;
- case 6:
- p3p = h.hha(x) ? 14 : 13;
- break;
- case 13:
- q.push(x);
- p3p = 12;
- break;
- case 7:
- x = h.Nea(R, R, R.fragments);
- p3p = 6;
- break;
- case 2:
- H = c.__values(C),
- K = H.next();
- p3p = 1;
- break;
- case 1:
- p3p = !K.done ? 5 : 11;
- break;
- case 8:
- return l(P);
- break;
- case 14:
- return P = s3p + x.sa,
- l(P);
- break;
- case 9:
- P = k3p + R.streamId;
- p3p = 8;
- break;
- }
- }
- } catch (wb) {
- u = {
- error: wb
- };
- }
- finally {
- q3p = 2;
- while (q3p !== 1) {
- switch (q3p) {
- case 2:
- try {
- h3p = 2;
- while (h3p !== 1) {
- m3p = "r";
- m3p += "e";
- m3p += "t";
- m3p += "ur";
- m3p += "n";
- switch (h3p) {
- case 2:
- K && !K.done && (m = H[m3p]) && m.call(H);
- h3p = 1;
- break;
- }
- }
- }
- finally {
- U3p = 2;
- while (U3p !== 5) {
- switch (U3p) {
- case 3:
- U3p = u ? 3 : 0;
- break;
- U3p = u ? 1 : 5;
- break;
- case 2:
- U3p = u ? 1 : 5;
- break;
- case 1:
- throw u.error;
- U3p = 5;
- break;
- }
- }
- }
- q3p = 1;
- break;
- }
- }
- }
- A3p = 10;
- break;
- case 15:
- k.tI(P3p, {
- z_: k.Ul.time.ea() - d,
- ZW: !0
- });
- g(p);
- A3p = 4;
- break;
- }
- }
- });
- t3p = 5;
- break;
- }
- }
- });
- break;
- }
- }
- };
- F2p = 18;
- break;
- case 2:
- a.prototype.Db = function (a, b) {
- var l2p,
- c,
- S5p;
- l2p = 2;
- while (l2p !== 4) {
- S5p = "Me";
- S5p += "dia cache is di";
- S5p += "sa";
- S5p += "bled";
- switch (l2p) {
- case 2:
- c = this;
- return this.wr = this.W$ ? new Promise(function (f, d) {
- var i2p;
- i2p = 2;
- while (i2p !== 1) {
- switch (i2p) {
- case 2:
- (void 0 !== b && null !== b ? b.LZ : function (a) {
- var j2p;
- j2p = 2;
- while (j2p !== 1) {
- switch (j2p) {
- case 4:
- return q.LZ(c.Ul, c.K, a);
- break;
- j2p = 1;
- break;
- case 2:
- return q.LZ(c.Ul, c.K, a);
- break;
- }
- }
- })(function (b) {
- var x2p,
- h,
- V3p;
- x2p = 2;
- while (x2p !== 3) {
- V3p = "Media cac";
- V3p += "he did not ini";
- V3p += "tialize";
- switch (x2p) {
- case 2:
- c.mi = b;
- h = b.$o;
- (b = b.PB) ? d(b) : h ? (c.nEb(a), f()) : d(Error(V3p));
- x2p = 3;
- break;
- }
- }
- });
- i2p = 1;
- break;
- }
- }
- }) : Promise.reject(S5p);
- break;
- }
- }
- };
- a.prototype.Usb = function (a) {
- var s2p,
- b,
- c,
- d;
- s2p = 2;
- while (s2p !== 9) {
- switch (s2p) {
- case 2:
- b = this;
- c = [f.WS, a].join(".");
- d = this.Ul.time.ea();
- return this.wr.then(function () {
- var k2p;
- k2p = 2;
- while (k2p !== 1) {
- switch (k2p) {
- case 2:
- return new Promise(function (k) {
- var m2p;
- m2p = 2;
- while (m2p !== 1) {
- switch (m2p) {
- case 2:
- b.mi.HC(f.Zj, c, function (c) {
- var P2p,
- g,
- c5p;
- P2p = 2;
- while (P2p !== 9) {
- c5p = "medi";
- c5p += "acachelooku";
- c5p += "p";
- switch (P2p) {
- case 2:
- P2p = 1;
- break;
- case 1:
- P2p = !c || 0 >= c.length ? 5 : 4;
- break;
- case 5:
- k(),
- b.tI(c5p, {
- z_: b.Ul.time.ea() - d,
- ZW: !1
- });
- P2p = 9;
- break;
- case 4:
- g = c[0];
- b.mi.read(f.Zj, g, function (c, f) {
- var V2p,
- d,
- l,
- S4p,
- v5p,
- D5p;
- V2p = 2;
- while (V2p !== 14) {
- v5p = " ";
- v5p += "fail";
- v5p += "ed";
- D5p = "R";
- D5p += "eading ";
- D5p += "movie entry ";
- switch (V2p) {
- case 5:
- V2p = !n.Y(f) ? 4 : 8;
- break;
- case 2:
- c && b.G.warn(D5p + g + v5p, c);
- V2p = 5;
- break;
- case 4:
- V2p = f instanceof ArrayBuffer ? 3 : 9;
- break;
- case 3:
- try {
- S4p = 2;
- while (S4p !== 1) {
- switch (S4p) {
- case 2:
- d = JSON.parse(String.fromCharCode.apply(null, new Uint8Array(f)));
- S4p = 1;
- break;
- }
- }
- } catch (T) {}
- V2p = 8;
- break;
- case 9:
- d = {
- priority: f.priority,
- movieId: f.movieId,
- saveToDisk: f.saveToDisk,
- firstSelectedStreamBitrate: f.firstSelectedStreamBitrate,
- initSelectionReason: f.initSelectionReason,
- histDiscountedThroughputValue: f.histDiscountedThroughput,
- histTdigest: f.histTdigest,
- histAge: f.histAge,
- headerCount: f.headerCount,
- dataRequestCount: f.dataRequestCount,
- headerRequestCount: f.headerRequestCount,
- stats: f.stats
- };
- V2p = 8;
- break;
- case 8:
- n.Y(d) || (l = h.xfa(d));
- n.Y(l) || n.Ma(l) || (l.Zb = l.Zb || {}, l.headers = l.headers || {});
- b.LKa(l) ? k(l) : (b.T7a(a), k());
- V2p = 14;
- break;
- }
- }
- });
- P2p = 9;
- break;
- }
- }
- });
- m2p = 1;
- break;
- }
- }
- });
- break;
- }
- }
- });
- break;
- }
- }
- };
- F2p = 5;
- break;
- case 18:
- a.prototype.Rza = function (a) {
- var g3p,
- b,
- z5p;
- g3p = 2;
- while (g3p !== 4) {
- z5p = "Media cache is n";
- z5p += "ot ";
- z5p += "ena";
- z5p += "bl";
- z5p += "ed";
- switch (g3p) {
- case 2:
- b = this;
- return this.wr ? this.wr.then(function () {
- var G3p;
- G3p = 2;
- while (G3p !== 1) {
- switch (G3p) {
- case 2:
- return new Promise(function (c) {
- var W3p;
- W3p = 2;
- while (W3p !== 1) {
- switch (W3p) {
- case 2:
- b.mi.HC(f.Zj, a.toString(), function (b) {
- var R3p;
- R3p = 2;
- while (R3p !== 1) {
- switch (R3p) {
- case 2:
- b && 0 !== b.length ? 1 === b.length && b[0] === a.toString() ? c(!0) : c(!1) : c(!1);
- R3p = 1;
- break;
- }
- }
- });
- W3p = 1;
- break;
- }
- }
- });
- break;
- }
- }
- }) : Promise.reject(z5p);
- break;
- }
- }
- };
- a.prototype.T7a = function (a) {
- var E3p,
- d,
- h;
- function b(a) {
- var B3p,
- a5p;
- B3p = 2;
- while (B3p !== 1) {
- a5p = "d";
- a5p += "e";
- a5p += "l";
- a5p += "et";
- a5p += "e";
- switch (B3p) {
- case 2:
- d.mi[a5p](f.Zj, a);
- B3p = 1;
- break;
- }
- }
- }
- function c(a) {
- var Y3p;
- Y3p = 2;
- while (Y3p !== 1) {
- switch (Y3p) {
- case 4:
- a.map(b);
- Y3p = 7;
- break;
- Y3p = 1;
- break;
- case 2:
- a.map(b);
- Y3p = 1;
- break;
- }
- }
- }
- E3p = 2;
- while (E3p !== 9) {
- switch (E3p) {
- case 4:
- this.mi.HC(f.Zj, [f.WS, a].join("."), c);
- this.mi.HC(f.Zj, h, c);
- E3p = 9;
- break;
- case 2:
- d = this;
- h = a.toString();
- E3p = 4;
- break;
- }
- }
- };
- a.prototype.nEb = function (a) {
- var C3p,
- b,
- r5p,
- u5p;
- C3p = 2;
- while (C3p !== 3) {
- r5p = "mediacac";
- r5p += "h";
- r5p += "e-er";
- r5p += "ror";
- u5p = "mediaca";
- u5p += "c";
- u5p += "he";
- switch (C3p) {
- case 2:
- b = new g.Ll();
- b.on(this.mi, u5p, function (b) {
- var Q3p,
- O5p;
- Q3p = 2;
- while (Q3p !== 4) {
- O5p = "medi";
- O5p += "aca";
- O5p += "ch";
- O5p += "e";
- switch (Q3p) {
- case 2:
- Q3p = b.keys || b.items ? 1 : 5;
- break;
- case 1:
- b.keys || b.items.map(function (a) {
- var y3p;
- y3p = 2;
- while (y3p !== 1) {
- switch (y3p) {
- case 4:
- return a.key;
- break;
- y3p = 1;
- break;
- case 2:
- return a.key;
- break;
- }
- }
- });
- Q3p = 5;
- break;
- case 5:
- a.emit(O5p, b);
- Q3p = 4;
- break;
- }
- }
- });
- b.on(this.mi, r5p, function (b) {
- var b3p,
- N5p,
- K5p;
- b3p = 2;
- while (b3p !== 5) {
- N5p = "m";
- N5p += "ed";
- N5p += "iac";
- N5p += "a";
- N5p += "che";
- K5p = "e";
- K5p += "rro";
- K5p += "r";
- switch (b3p) {
- case 2:
- b.type = K5p;
- a.emit(N5p, b);
- b3p = 5;
- break;
- }
- }
- });
- C3p = 3;
- break;
- }
- }
- };
- return a;
- break;
- case 5:
- a.prototype.Psb = function (a, b, c) {
- var c4p,
- d,
- h,
- p5p;
- c4p = 2;
- while (c4p !== 8) {
- p5p = "Medi";
- p5p += "a c";
- p5p += "ache is not enabl";
- p5p += "ed";
- switch (c4p) {
- case 5:
- c4p = !this.wr ? 4 : 3;
- break;
- case 2:
- d = this;
- c4p = 5;
- break;
- case 3:
- h = this.Ul.time.ea();
- return this.wr.then(function () {
- var D4p;
- D4p = 2;
- while (D4p !== 1) {
- switch (D4p) {
- case 2:
- return new Promise(function (k) {
- var v4p;
- v4p = 2;
- while (v4p !== 1) {
- switch (v4p) {
- case 2:
- d.mi.HC(f.Zj, a, function (f) {
- var z4p;
- z4p = 2;
- while (z4p !== 5) {
- switch (z4p) {
- case 2:
- f = f.reduce(function (a, b) {
- var a4p,
- c,
- X5p;
- a4p = 2;
- while (a4p !== 8) {
- X5p = "drmHea";
- X5p += "der";
- X5p += ".__embed__";
- switch (a4p) {
- case 4:
- return a;
- break;
- case 2:
- c = b.substr(0, b.lastIndexOf("."));
- a4p = 5;
- break;
- case 5:
- a4p = -1 !== c.indexOf(X5p) ? 4 : 3;
- break;
- case 3:
- a[c] ? a[c].push(b) : a[c] = [b];
- return a;
- break;
- }
- }
- }, {});
- d.Rzb(f, b).then(function (b) {
- var u4p,
- f,
- g,
- A5p,
- t5p;
- u4p = 2;
- while (u4p !== 6) {
- A5p = "mediacache";
- A5p += "loo";
- A5p += "kup";
- t5p = "No conten";
- t5p += "t";
- t5p += " da";
- t5p += "ta found fo";
- t5p += "r ";
- switch (u4p) {
- case 4:
- f = d.Ul.time.ea() - h;
- g = !1;
- n.Y(b) || n.Y(b.data) || !n.Xe(b.data) ? d.G.trace(t5p + a, c) : g = !0;
- d.tI(A5p, {
- z_: f,
- ZW: g
- });
- u4p = 7;
- break;
- case 1:
- u4p = void 0 === c || void 0 === b ? 5 : 4;
- break;
- case 2:
- u4p = 1;
- break;
- case 5:
- return k();
- break;
- case 7:
- k(b);
- u4p = 6;
- break;
- }
- }
- }, function () {
- var O4p;
- O4p = 2;
- while (O4p !== 1) {
- switch (O4p) {
- case 2:
- k();
- O4p = 1;
- break;
- case 4:
- k();
- O4p = 8;
- break;
- O4p = 1;
- break;
- }
- }
- });
- z4p = 5;
- break;
- }
- }
- });
- v4p = 1;
- break;
- }
- }
- });
- break;
- }
- }
- });
- break;
- case 4:
- return Promise.reject(p5p);
- break;
- }
- }
- };
- a.prototype.Qsb = function (a, b) {
- var r4p,
- c,
- f;
- r4p = 2;
- while (r4p !== 3) {
- switch (r4p) {
- case 4:
- return this.wr.then(function () {
- var K4p;
- K4p = 2;
- while (K4p !== 1) {
- switch (K4p) {
- case 4:
- return c.Rza(a);
- break;
- K4p = 1;
- break;
- case 2:
- return c.Rza(a);
- break;
- }
- }
- }).then(function (d) {
- var N4p,
- q5p;
- N4p = 2;
- while (N4p !== 5) {
- q5p = "mediacach";
- q5p += "elo";
- q5p += "okup";
- switch (N4p) {
- case 1:
- return c.x7a(a.toString(), b, f);
- break;
- case 2:
- N4p = d ? 1 : 4;
- break;
- case 4:
- c.tI(q5p, {
- z_: c.Ul.time.ea() - f,
- ZW: !1
- });
- N4p = 5;
- break;
- }
- }
- });
- break;
- case 2:
- c = this;
- f = this.Ul.time.ea();
- r4p = 4;
- break;
- }
- }
- };
- a.prototype.rCb = function (a, b) {
- var X4p,
- c;
- X4p = 2;
- while (X4p !== 4) {
- switch (X4p) {
- case 2:
- c = h.yfa(a);
- this.mi.save(f.Zj, [f.WS, a.u].join("."), c, f.ww, function () {
- var t4p;
- t4p = 2;
- while (t4p !== 1) {
- switch (t4p) {
- case 4:
- b();
- t4p = 7;
- break;
- t4p = 1;
- break;
- case 2:
- b();
- t4p = 1;
- break;
- }
- }
- });
- X4p = 4;
- break;
- }
- }
- };
- a.prototype.qCb = function (a, b) {
- var A4p,
- c,
- d,
- k,
- g,
- l,
- q;
- A4p = 2;
- while (A4p !== 19) {
- switch (A4p) {
- case 3:
- g = h.mIa(a);
- l = {};
- l[d + "." + f.U5] = {
- co: g,
- Dd: f.ww
- };
- A4p = 7;
- break;
- case 2:
- c = this;
- d = [a.u, a.sa, f.CZa].join(".");
- k = this.Ul.time.ea();
- A4p = 3;
- break;
- case 14:
- g = {
- timescale: a.stream.$.S,
- startTicks: a.stream.$.Sj,
- offset: a.stream.$.ih(0)
- };
- q = a.stream.$.zI;
- l[d + "." + f.sra] = {
- co: g,
- Dd: f.ww
- };
- A4p = 11;
- break;
- case 7:
- l[d + "." + f.c_a] = {
- co: p.Pr(a.xi.map(function (a) {
- var p4p;
- p4p = 2;
- while (p4p !== 1) {
- switch (p4p) {
- case 2:
- return a.data;
- break;
- case 4:
- return a.data;
- break;
- p4p = 1;
- break;
- }
- }
- })),
- Dd: f.ww
- };
- A4p = 6;
- break;
- case 6:
- A4p = a.stream.ae && !n.Y(a.stream.$) ? 14 : 20;
- break;
- case 11:
- l[d + "." + f.pZa] = {
- co: q.sizes.buffer,
- Dd: f.ww
- };
- A4p = 10;
- break;
- case 10:
- l[d + "." + f.oZa] = {
- co: q.Nd.buffer,
- Dd: f.ww
- };
- A4p = 20;
- break;
- case 20:
- this.mi.tRa(f.Zj, l, function (f) {
- var q4p;
- q4p = 2;
- while (q4p !== 5) {
- switch (q4p) {
- case 2:
- f || (f = c.Ul.time.ea() - k, a.Kj && (n.Y(a.Kj.Zb.io) && (a.Kj.Zb.io = 0), a.Kj.Zb.io += f));
- b();
- q4p = 5;
- break;
- }
- }
- });
- A4p = 19;
- break;
- }
- }
- };
- F2p = 8;
- break;
- case 8:
- a.prototype.pCb = function (a, b, c) {
- var h4p,
- d,
- k,
- g,
- l,
- p,
- U5p;
- h4p = 2;
- while (h4p !== 11) {
- U5p = "Unable to save fragment because response is not a";
- U5p += "n A";
- U5p += "rrayBuffer";
- switch (h4p) {
- case 2:
- d = this;
- k = a.response;
- h4p = 4;
- break;
- case 4:
- h4p = k instanceof ArrayBuffer ? 3 : 12;
- break;
- case 7:
- p = {};
- p[l + "." + f.U5] = {
- co: a,
- Dd: f.ww
- };
- n.Y(k) || (p[l + "." + f.l0a] = {
- co: k,
- Dd: f.ww
- });
- this.mi.tRa(f.Zj, p, function (a) {
- var U4p,
- h5p;
- U4p = 2;
- while (U4p !== 5) {
- h5p = "Failed to save ";
- h5p += "fragme";
- h5p += "nt";
- switch (U4p) {
- case 2:
- a ? d.G.warn(h5p, a) : (a = d.Ul.time.ea() - g, n.Y(b.Zb.io) && (b.Zb.io = 0), b.Zb.io += a);
- c();
- U4p = 5;
- break;
- }
- }
- });
- h4p = 11;
- break;
- case 12:
- c(Error(U5p));
- h4p = 11;
- break;
- case 3:
- g = this.Ul.time.ea();
- l = [a.u, a.sa, a.zc].join(".");
- a = h.vfa(a);
- h4p = 7;
- break;
- }
- }
- };
- a.prototype.sCb = function (a) {
- var H4p,
- b,
- d,
- g,
- l,
- p,
- q,
- u,
- m,
- r,
- A,
- t,
- ha,
- V,
- na,
- ma,
- J4p,
- U,
- x,
- w4p,
- B,
- N,
- I4p,
- Z4p,
- T4p,
- o4p,
- g4p,
- G4p,
- d5p,
- J5p;
- H4p = 2;
- while (H4p !== 15) {
- switch (H4p) {
- case 2:
- p = this;
- q = this.Ul.time.ea();
- H4p = 4;
- break;
- case 4:
- u = {};
- m = h.yfa(a);
- H4p = 9;
- break;
- case 9:
- u.movieEntry = m;
- H4p = 8;
- break;
- case 8:
- H4p = a.headers ? 7 : 13;
- break;
- case 7:
- r = {};
- Object.keys(a.headers).forEach(function (b) {
- var d4p,
- c;
- d4p = 2;
- while (d4p !== 4) {
- switch (d4p) {
- case 2:
- c = h.kIa(a.headers[b]);
- r[b] = c;
- d4p = 4;
- break;
- }
- }
- });
- H4p = 14;
- break;
- case 14:
- u.headers = r;
- H4p = 13;
- break;
- case 13:
- H4p = a && a.data ? 12 : 18;
- break;
- case 18:
- b = {
- lifespan: 259200
- };
- this.U5a && (b.convertToBinaryData = !0);
- this.mi.save(f.Zj, a.u, u, b, function (a) {
- var W4p,
- H5p;
- W4p = 2;
- while (W4p !== 1) {
- H5p = "sav";
- H5p += "etodis";
- H5p += "k";
- switch (W4p) {
- case 2:
- a || p.tI(H5p, {
- uRa: p.Ul.time.ea() - q
- });
- W4p = 1;
- break;
- }
- }
- });
- H4p = 15;
- break;
- case 12:
- m = {};
- A = a.data;
- t = Object.keys(a.data);
- try {
- J4p = 2;
- while (J4p !== 14) {
- switch (J4p) {
- case 2:
- U = c.__values(t),
- x = U.next();
- J4p = 1;
- break;
- case 1:
- J4p = !x.done ? 5 : 14;
- break;
- case 5:
- ha = x.value;
- V = A[ha];
- t = {};
- J4p = 9;
- break;
- case 9:
- J4p = V ? 8 : 6;
- break;
- case 8:
- try {
- w4p = 2;
- while (w4p !== 7) {
- switch (w4p) {
- case 1:
- w4p = !N.done ? 5 : 7;
- break;
- case 5:
- na = N.value;
- w4p = 4;
- break;
- case 9:
- t[na.zc] = {
- mediaType: ma.mediaType,
- streamId: ma.streamId,
- movieId: ma.movieId,
- bitrate: ma.bitrate,
- location: ma.location,
- serverId: ma.serverId,
- saveToDisk: ma.saveToDisk,
- offset: ma.offset,
- bytes: ma.bytes,
- timescale: ma.timescale,
- startTicks: ma.startTicks,
- durationTicks: ma.durationTicks,
- response: na.response
- };
- w4p = 8;
- break;
- case 8:
- N = B.next();
- w4p = 1;
- break;
- case 4:
- w4p = na instanceof k.KR && na.response instanceof ArrayBuffer && !n.Y(na.zc) ? 3 : 8;
- break;
- case 3:
- ma = h.vfa(na);
- w4p = 9;
- break;
- case 2:
- B = (g = void 0, c.__values(V)),
- N = B.next();
- w4p = 1;
- break;
- }
- }
- } catch (ja) {
- g = {
- error: ja
- };
- }
- finally {
- I4p = 2;
- while (I4p !== 1) {
- switch (I4p) {
- case 2:
- try {
- Z4p = 2;
- while (Z4p !== 1) {
- d5p = "r";
- d5p += "et";
- d5p += "u";
- d5p += "r";
- d5p += "n";
- switch (Z4p) {
- case 2:
- N && !N.done && (l = B[d5p]) && l.call(B);
- Z4p = 1;
- break;
- }
- }
- }
- finally {
- T4p = 2;
- while (T4p !== 5) {
- switch (T4p) {
- case 1:
- throw g.error;
- T4p = 5;
- break;
- case 2:
- T4p = g ? 1 : 5;
- break;
- }
- }
- }
- I4p = 1;
- break;
- }
- }
- }
- J4p = 7;
- break;
- case 7:
- m[ha] = t;
- J4p = 6;
- break;
- case 6:
- x = U.next();
- J4p = 1;
- break;
- }
- }
- } catch (ja) {
- b = {
- error: ja
- };
- }
- finally {
- o4p = 2;
- while (o4p !== 1) {
- switch (o4p) {
- case 2:
- try {
- g4p = 2;
- while (g4p !== 1) {
- J5p = "r";
- J5p += "et";
- J5p += "u";
- J5p += "r";
- J5p += "n";
- switch (g4p) {
- case 2:
- x && !x.done && (d = U[J5p]) && d.call(U);
- g4p = 1;
- break;
- }
- }
- }
- finally {
- G4p = 2;
- while (G4p !== 5) {
- switch (G4p) {
- case 2:
- G4p = b ? 1 : 5;
- break;
- case 1:
- throw b.error;
- G4p = 5;
- break;
- }
- }
- }
- o4p = 1;
- break;
- }
- }
- }
- H4p = 19;
- break;
- case 19:
- u.data = m;
- H4p = 18;
- break;
- }
- }
- };
- a.prototype.LKa = function (a) {
- var R4p;
- R4p = 2;
- while (R4p !== 1) {
- switch (R4p) {
- case 2:
- return !(n.Y(a) || n.Ma(a) || n.Y(a.Zb) || n.Ma(a.Zb) || n.Y(a.u) || n.Ma(a.u) || n.Y(a.ne) || n.Ma(a.ne));
- break;
- }
- }
- };
- a.prototype.ttb = function (a) {
- var E4p,
- b,
- c;
- E4p = 2;
- while (E4p !== 3) {
- switch (E4p) {
- case 2:
- b = this;
- c = n.Y(a) ? "" : a.toString();
- return new Promise(function (a) {
- var B4p,
- Y4p;
- B4p = 2;
- while (B4p !== 4) {
- switch (B4p) {
- case 8:
- a();
- B4p = 2;
- break;
- B4p = 4;
- break;
- case 9:
- B4p = n.Y(b.mi) ? 2 : 2;
- break;
- B4p = n.Y(b.mi) ? 1 : 5;
- break;
- case 2:
- B4p = n.Y(b.mi) ? 1 : 5;
- break;
- case 5:
- try {
- Y4p = 2;
- while (Y4p !== 1) {
- switch (Y4p) {
- case 2:
- b.mi.HC(f.Zj, "", function (b) {
- var C4p;
- C4p = 2;
- while (C4p !== 5) {
- switch (C4p) {
- case 2:
- b = b.filter(function (a) {
- var Q4p,
- w5p;
- Q4p = 2;
- while (Q4p !== 5) {
- w5p = "mo";
- w5p += "vieE";
- w5p += "n";
- w5p += "t";
- w5p += "ry";
- switch (Q4p) {
- case 2:
- a = a.split(".");
- return c && (c === a[0] || w5p === a[0] && c === a[1]);
- break;
- }
- }
- }).reduce(function (a, b) {
- var y4p,
- c,
- I5p;
- y4p = 2;
- while (y4p !== 3) {
- I5p = "m";
- I5p += "ovi";
- I5p += "eE";
- I5p += "n";
- I5p += "try";
- switch (y4p) {
- case 2:
- c = b.split(".");
- y4p = 5;
- break;
- case 5:
- I5p !== c[0] && (b = c[1], c = c[2], n.Y(a[b]) && (a[b] = {}), n.Y(a[b][c]) && (a[b][c] = !0));
- return a;
- break;
- }
- }
- }, {});
- a(b);
- C4p = 5;
- break;
- }
- }
- });
- Y4p = 1;
- break;
- }
- }
- } catch (D) {
- a();
- }
- B4p = 4;
- break;
- case 1:
- a();
- B4p = 4;
- break;
- }
- }
- });
- break;
- }
- }
- };
- a.prototype.Tsb = function (a, b) {
- var b4p,
- c;
- b4p = 2;
- while (b4p !== 4) {
- switch (b4p) {
- case 2:
- c = this;
- return b && b.headers && b.headers && 0 < Object.keys(b.headers).length && b.data ? new Promise(function (a) {
- var L4p,
- c,
- f;
- L4p = 2;
- while (L4p !== 7) {
- switch (L4p) {
- case 8:
- return a(c);
- break;
- case 9:
- Object.keys(f).forEach(function (a) {
- var e4p;
- e4p = 2;
- while (e4p !== 5) {
- switch (e4p) {
- case 2:
- c[a] || (c[a] = {});
- f[a].forEach(function (b) {
- var f4p;
- f4p = 2;
- while (f4p !== 1) {
- switch (f4p) {
- case 2:
- n.Y(b.zc) || (c[a][b.zc] = !0);
- f4p = 1;
- break;
- }
- }
- });
- e4p = 5;
- break;
- }
- }
- });
- L4p = 8;
- break;
- case 2:
- c = {};
- b.headers && Object.keys(b.headers).forEach(function (a) {
- var M4p;
- M4p = 2;
- while (M4p !== 5) {
- switch (M4p) {
- case 2:
- c[a] || (c[a] = {});
- c[a].header = !0;
- M4p = 5;
- break;
- }
- }
- });
- L4p = 4;
- break;
- case 3:
- f = b.data;
- L4p = 9;
- break;
- case 4:
- L4p = b.data ? 3 : 8;
- break;
- }
- }
- }) : this.Rza(a).then(function (b) {
- var F4p;
- F4p = 2;
- while (F4p !== 5) {
- switch (F4p) {
- case 3:
- F4p = b ? 3 : 8;
- break;
- F4p = b ? 1 : 5;
- break;
- case 2:
- F4p = b ? 1 : 5;
- break;
- case 1:
- return new Promise(function (b) {
- var n4p;
- n4p = 2;
- while (n4p !== 1) {
- switch (n4p) {
- case 2:
- c.mi.read(f.Zj, a, function (c, f) {
- var l4p,
- d,
- h;
- l4p = 2;
- while (l4p !== 4) {
- switch (l4p) {
- case 3:
- l4p = n.Y(f) ? 9 : 8;
- break;
- case 2:
- l4p = 1;
- break;
- case 9:
- b(void 0);
- l4p = 4;
- break;
- case 6:
- d.headers && Object.keys(d.headers).forEach(function (a) {
- var i4p;
- i4p = 2;
- while (i4p !== 5) {
- switch (i4p) {
- case 2:
- h[a] || (h[a] = {});
- h[a].header = !0;
- i4p = 5;
- break;
- }
- }
- });
- l4p = 14;
- break;
- case 5:
- b();
- l4p = 4;
- break;
- case 14:
- d.data && Object.keys(d.data).forEach(function (a) {
- var j4p;
- j4p = 2;
- while (j4p !== 5) {
- switch (j4p) {
- case 2:
- h[a] || (h[a] = {});
- Object.keys(d.data[a]).forEach(function (b) {
- var x4p;
- x4p = 2;
- while (x4p !== 1) {
- switch (x4p) {
- case 4:
- h[a][b] = -1;
- x4p = 4;
- break;
- x4p = 1;
- break;
- case 2:
- h[a][b] = !0;
- x4p = 1;
- break;
- }
- }
- });
- j4p = 5;
- break;
- }
- }
- });
- b(h);
- l4p = 4;
- break;
- case 1:
- l4p = c ? 5 : 3;
- break;
- case 8:
- d = f[a];
- h = {};
- l4p = 6;
- break;
- }
- }
- });
- n4p = 1;
- break;
- }
- }
- });
- break;
- }
- }
- });
- break;
- }
- }
- };
- a.prototype.Vmb = function () {
- var s4p,
- a,
- Z5p;
- s4p = 2;
- while (s4p !== 4) {
- Z5p = "M";
- Z5p += "edia c";
- Z5p += "ac";
- Z5p += "he i";
- Z5p += "s not enabled";
- switch (s4p) {
- case 2:
- a = this;
- return this.wr ? this.wr.then(function () {
- var k4p;
- k4p = 2;
- while (k4p !== 1) {
- switch (k4p) {
- case 2:
- return new Promise(function (b) {
- var m4p;
- m4p = 2;
- while (m4p !== 1) {
- switch (m4p) {
- case 2:
- a.mi.HC(f.Zj, f.WS, function (a) {
- var P4p,
- c;
- P4p = 2;
- while (P4p !== 8) {
- switch (P4p) {
- case 5:
- b([]);
- P4p = 8;
- break;
- case 4:
- c = [];
- a.forEach(function (a) {
- var V4p;
- V4p = 2;
- while (V4p !== 1) {
- switch (V4p) {
- case 2:
- a && a.length && (a = a.split(".")) && 1 < a.length && c.push(a[1]);
- V4p = 1;
- break;
- }
- }
- });
- b(c);
- P4p = 8;
- break;
- case 1:
- P4p = !a || 0 >= a.length ? 5 : 4;
- break;
- case 2:
- P4p = 1;
- break;
- }
- }
- });
- m4p = 1;
- break;
- }
- }
- });
- break;
- }
- }
- }) : Promise.reject(Z5p);
- break;
- }
- }
- };
- F2p = 11;
- break;
- }
- }
- function a(a, b, c) {
- var n2p,
- G5p,
- g5p,
- o5p,
- T5p;
- n2p = 2;
- while (n2p !== 13) {
- G5p = "1SIYb";
- G5p += "ZrNJCp";
- G5p += "9";
- g5p = "Med";
- g5p += "ia cac";
- g5p += "he has not been init";
- g5p += "iaize";
- g5p += "d";
- o5p = "med";
- o5p += "ia|";
- o5p += "as";
- o5p += "ejs";
- T5p = "M";
- T5p += "EDIAC";
- T5p += "ACHE";
- switch (n2p) {
- case 5:
- this.M4a = a.rib ? a.rib : !1;
- this.wo = a.Ria ? a.Ria : !1;
- this.U5a = a.HMa ? a.HMa : !1;
- this.K = a;
- this.Ul = b;
- this.He = c;
- n2p = 6;
- break;
- case 2:
- this.G = new b.Console(T5p, o5p);
- this.W$ = (a.jz || a.Una) && 0 < (a.Lx || (b.options || {}).oH || 0);
- n2p = 5;
- break;
- case 6:
- this.wr = Promise.reject(g5p);
- G5p;
- n2p = 13;
- break;
- }
- }
- }
- }
- ();
- b.Qta = a;
- d.uf(g.EventEmitter, a);
- }, function (d, b, a) {
- var c,
- g,
- q,
- n,
- k,
- p,
- h,
- f,
- u,
- m,
- r,
- t,
- H,
- D,
- K,
- J,
- R,
- P,
- ba,
- z,
- T,
- U,
- x,
- ha;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Rra = void 0;
- c = a(0);
- d = a(22);
- g = a(6);
- q = a(7);
- n = a(230);
- k = a(210);
- p = a(398);
- h = a(83);
- a(409);
- f = a(370);
- u = a(156);
- m = a(18);
- r = a(217);
- t = a(751);
- H = a(73);
- D = a(17);
- K = a(4);
- J = a(207);
- R = a(379);
- P = K.Promise;
- ba = new K.Console("HEADERCACHE", "media|asejs");
- a = new K.Console("MEDIACACHE", "media|asejs");
- z = K.GD;
- T = ba.trace.bind(ba);
- a.trace.bind(a);
- U = ba.warn.bind(ba);
- x = ba.error.bind(ba);
- ha = ba.info.bind(ba);
- a = function (a) {
- var W5p;
- W5p = 2;
- while (W5p !== 49) {
- switch (W5p) {
- case 41:
- b.prototype.M5a = function (a, b) {
- var L6p,
- c,
- l2C;
- L6p = 2;
- while (L6p !== 4) {
- l2C = "Media cache ";
- l2C += "i";
- l2C += "s";
- l2C += " ";
- l2C += "not enabled";
- switch (L6p) {
- case 2:
- c = this;
- return this.df ? this.df.Qsb(a, b).then(function (b) {
- var M6p;
- M6p = 2;
- while (M6p !== 5) {
- switch (M6p) {
- case 1:
- return c.ue[a] = b.Kj,
- ++c.Sw,
- c.oU(),
- c.Ni.push(b.Kj),
- c.Ni.sort(c.U0),
- c.Iya(a, b),
- c.cache[a];
- break;
- case 2:
- M6p = b && b.Kj ? 1 : 5;
- break;
- }
- }
- }) : P.reject(l2C);
- break;
- }
- }
- };
- b.prototype.L5a = function (a, b) {
- var e6p,
- c,
- f,
- d,
- X2C;
- e6p = 2;
- while (e6p !== 6) {
- X2C = "Media c";
- X2C += "ac";
- X2C += "he is ";
- X2C += "not enabled";
- switch (e6p) {
- case 5:
- e6p = this.df ? 4 : 7;
- break;
- case 8:
- return f.then(function (f) {
- var f6p;
- f6p = 2;
- while (f6p !== 1) {
- switch (f6p) {
- case 2:
- return !q.Y(f) && c.df ? c.df.Psb(a, b, f).then(function (b) {
- var F6p;
- F6p = 2;
- while (F6p !== 5) {
- switch (F6p) {
- case 2:
- b && (d || (c.ue[a] = f, ++c.Sw, c.oU(), c.Ni.push(f), c.Ni.sort(c.U0)), c.Iya(a, b));
- return c.ue[a];
- break;
- }
- }
- }) : P.resolve(void 0);
- break;
- }
- }
- });
- break;
- case 2:
- c = this;
- e6p = 5;
- break;
- case 7:
- return P.reject(X2C);
- break;
- case 4:
- f = void 0;
- d = !1;
- this.df.LKa(this.ue[a]) ? (f = P.resolve(this.ue[a]), d = !0) : f = this.df.Usb(a);
- e6p = 8;
- break;
- }
- }
- };
- b.prototype.Iya = function (a, b) {
- var n6p,
- c,
- f,
- d,
- h;
- n6p = 2;
- while (n6p !== 14) {
- switch (n6p) {
- case 5:
- n6p = b ? 4 : 14;
- break;
- case 4:
- f = this.ue[a];
- d = b.headers;
- f && d && Object.keys(d).forEach(function (a) {
- var l6p;
- l6p = 2;
- while (l6p !== 1) {
- switch (l6p) {
- case 2:
- c.v3a(d[a], f);
- l6p = 1;
- break;
- case 4:
- c.v3a(d[a], f);
- l6p = 6;
- break;
- l6p = 1;
- break;
- }
- }
- });
- n6p = 8;
- break;
- case 2:
- c = this;
- n6p = 5;
- break;
- case 8:
- n6p = b.data ? 7 : 14;
- break;
- case 7:
- h = b.data;
- Object.keys(h).forEach(function (a) {
- var i6p,
- b,
- c;
- i6p = 2;
- while (i6p !== 8) {
- switch (i6p) {
- case 2:
- b = h[a];
- q.Y(f.data) && (f.data = {});
- q.Y(f.data[a]) && (f.data[a] = []);
- c = f.data;
- b.forEach(function (b) {
- var j6p;
- j6p = 2;
- while (j6p !== 1) {
- switch (j6p) {
- case 2:
- c[a].push(b);
- j6p = 1;
- break;
- case 4:
- c[a].push(b);
- j6p = 0;
- break;
- j6p = 1;
- break;
- }
- }
- });
- i6p = 8;
- break;
- }
- }
- });
- n6p = 14;
- break;
- }
- }
- };
- b.prototype.U0 = function (a, b) {
- var x6p;
- x6p = 2;
- while (x6p !== 1) {
- switch (x6p) {
- case 4:
- return b.ne + a.ne;
- break;
- x6p = 1;
- break;
- case 2:
- return b.ne - a.ne;
- break;
- }
- }
- };
- b.prototype.LPa = function (a) {
- var s6p,
- b,
- c,
- f;
- s6p = 2;
- while (s6p !== 10) {
- switch (s6p) {
- case 2:
- b = {};
- s6p = 5;
- break;
- case 8:
- b.Zb = a.Zb;
- b.Vo = a.Vo;
- b.Zo = a.Zo;
- b.qq = a.qq;
- s6p = 13;
- break;
- case 4:
- for (c in a.data) {
- f = a.data[c];
- 0 < f.length && (b[f[0].M] = {
- sa: c,
- Wo: a.headers[c],
- data: f
- });
- }
- b.Yl = a.Yl;
- b.pq = a.pq;
- s6p = 8;
- break;
- case 5:
- s6p = a && a.data ? 4 : 10;
- break;
- case 13:
- b.wk = a.wk;
- b.xk = a.xk;
- return b;
- break;
- }
- }
- };
- W5p = 36;
- break;
- case 7:
- b.prototype.list = function () {
- var e5p;
- e5p = 2;
- while (e5p !== 1) {
- switch (e5p) {
- case 4:
- return this.Ni;
- break;
- e5p = 1;
- break;
- case 2:
- return this.Ni;
- break;
- }
- }
- };
- b.prototype.oma = function (a) {
- var f5p;
- f5p = 2;
- while (f5p !== 1) {
- switch (f5p) {
- case 2:
- this.nL !== a && (this.nL = a, this.oU());
- f5p = 1;
- break;
- }
- }
- };
- b.prototype.BO = function (a, b) {
- var F5p;
- F5p = 2;
- while (F5p !== 4) {
- switch (F5p) {
- case 2:
- F5p = (a = this.ue[a]) ? 1 : 4;
- break;
- case 9:
- F5p = (a = this.ue[a]) ? 2 : 8;
- break;
- F5p = (a = this.ue[a]) ? 1 : 4;
- break;
- case 1:
- F5p = (b = a.headers[b]) ? 5 : 4;
- break;
- case 5:
- return b;
- break;
- }
- }
- };
- b.prototype.stb = function (a, b) {
- var n5p,
- c,
- f;
- n5p = 2;
- while (n5p !== 3) {
- switch (n5p) {
- case 2:
- c = this;
- f = this.QLa(a);
- return f || !this.df ? P.resolve(f) : (this.wo ? this.M5a(a, b) : this.L5a(a, b)).then(function (a) {
- var l5p;
- l5p = 2;
- while (l5p !== 1) {
- switch (l5p) {
- case 2:
- return c.LPa(a);
- break;
- case 4:
- return c.LPa(a);
- break;
- l5p = 1;
- break;
- }
- }
- });
- break;
- }
- }
- };
- W5p = 12;
- break;
- case 12:
- b.prototype.QLa = function (a) {
- var i5p;
- i5p = 2;
- while (i5p !== 1) {
- switch (i5p) {
- case 2:
- return this.LPa(this.ue[a]);
- break;
- case 4:
- return this.LPa(this.ue[a]);
- break;
- i5p = 1;
- break;
- }
- }
- };
- b.prototype.nv = function () {
- var j5p,
- m2C;
- j5p = 2;
- while (j5p !== 1) {
- m2C = "Me";
- m2C += "dia cac";
- m2C += "he is";
- m2C += " not enabled";
- switch (j5p) {
- case 2:
- return this.df ? this.df.Vmb() : P.reject(m2C);
- break;
- }
- }
- };
- b.prototype.$Ga = function () {
- var x5p,
- c,
- f,
- d,
- y2C,
- n2C;
- x5p = 2;
- function b(a, b) {
- var k5p;
- k5p = 2;
- while (k5p !== 1) {
- switch (k5p) {
- case 2:
- a && a.data && a.data[b].forEach(function (a) {
- var m5p;
- m5p = 2;
- while (m5p !== 5) {
- switch (m5p) {
- case 2:
- a.abort();
- c += a.Ie;
- m5p = 5;
- break;
- }
- }
- });
- k5p = 1;
- break;
- }
- }
- }
- while (x5p !== 3) {
- switch (x5p) {
- case 2:
- c = 0;
- for (f in this.ue) {
- d = this.ue[f];
- if (d.data) {
- for (var h in d.data) {
- y2C = "i";
- y2C += "n en";
- y2C += "try:";
- n2C = "missin";
- n2C += "g headerEntry for strea";
- n2C += "mId:";
- d.headers[h] || x(n2C, h, y2C, d);
- b(d, h);
- d.data[h].forEach(a);
- delete d.data[h];
- }
- delete d.data;
- }
- }
- x5p = 4;
- break;
- case 4:
- this.I7a(c);
- x5p = 3;
- break;
- case 14:
- this.I7a(c);
- x5p = 2;
- break;
- x5p = 3;
- break;
- }
- }
- function a(a) {
- var s5p;
- s5p = 2;
- while (s5p !== 1) {
- switch (s5p) {
- case 4:
- a.WDa();
- s5p = 0;
- break;
- s5p = 1;
- break;
- case 2:
- a.WDa();
- s5p = 1;
- break;
- }
- }
- }
- };
- b.prototype.Ev = function (a) {
- var P5p,
- b;
- P5p = 2;
- while (P5p !== 4) {
- switch (P5p) {
- case 2:
- b = this.ue[a.u];
- b && (this.ec(a) ? q.Y(b.Zb.QJa) && !q.Y(a.mf) && (b.Zb.QJa = a.mf) : q.Y(b.Zb.UH) && !q.Y(a.mf) && (b.Zb.UH = a.mf));
- P5p = 4;
- break;
- }
- }
- };
- b.prototype.bj = function (a) {
- var V5p;
- V5p = 2;
- while (V5p !== 1) {
- switch (V5p) {
- case 2:
- this.ec(a) ? this.axb(a) : this.bxb(a);
- V5p = 1;
- break;
- }
- }
- };
- b.prototype.rP = function (a) {
- var S6p,
- e2C;
- S6p = 2;
- while (S6p !== 5) {
- e2C = "_o";
- e2C += "n";
- e2C += "Er";
- e2C += "r";
- e2C += "or: ";
- switch (S6p) {
- case 2:
- U(e2C, a.toString());
- this.rU(a);
- S6p = 5;
- break;
- }
- }
- };
- b.prototype.axb = function (a) {
- var c6p,
- b;
- c6p = 2;
- while (c6p !== 8) {
- switch (c6p) {
- case 4:
- this.w3a(a);
- q.Y(a.UN) || a.UN(a.pGb);
- c6p = 9;
- break;
- case 2:
- b = this;
- a.pGb = a.cd;
- c6p = 4;
- break;
- case 9:
- this.P7a(a, function () {
- var D6p;
- D6p = 2;
- while (D6p !== 1) {
- switch (D6p) {
- case 2:
- q.Y(a) || (q.Y(a.Kj) || a.Kj.oZ--, b.rU(a));
- D6p = 1;
- break;
- }
- }
- });
- c6p = 8;
- break;
- }
- }
- };
- W5p = 16;
- break;
- case 27:
- b.prototype.jza = function () {
- var O6p,
- a;
- O6p = 2;
- while (O6p !== 3) {
- switch (O6p) {
- case 2:
- a = this.Ar;
- this.Ar = [];
- a.forEach(function (a) {
- var r6p;
- r6p = 2;
- while (r6p !== 1) {
- switch (r6p) {
- case 2:
- u.Ip.kg.nX(a);
- r6p = 1;
- break;
- case 4:
- u.Ip.kg.nX(a);
- r6p = 0;
- break;
- r6p = 1;
- break;
- }
- }
- });
- O6p = 3;
- break;
- }
- }
- };
- b.prototype.Q5a = function () {
- var K6p,
- a;
- K6p = 2;
- while (K6p !== 4) {
- switch (K6p) {
- case 2:
- a = this;
- !this.BU && 0 < this.GE.length && (this.GE.forEach(function (b) {
- var N6p;
- N6p = 2;
- while (N6p !== 1) {
- switch (N6p) {
- case 2:
- a.qV(b.rpb, b.Vc);
- N6p = 1;
- break;
- }
- }
- }), this.GE = []);
- K6p = 4;
- break;
- }
- }
- };
- b.prototype.N7a = function (a, b) {
- var X6p,
- c,
- d,
- h,
- k,
- l,
- p,
- n,
- u,
- A,
- G,
- t,
- C,
- H,
- z,
- S2C;
- X6p = 2;
- while (X6p !== 25) {
- S2C = "A c";
- S2C += "onf";
- S2C += "ig must be passed to _requestHeader";
- switch (X6p) {
- case 2:
- c = this;
- d = b.u;
- h = b.ne;
- k = b.Vc;
- l = b.Be;
- p = b.Kmb();
- X6p = 7;
- break;
- case 7:
- n = p.ya;
- u = p.Ef;
- p = p.RA;
- X6p = 13;
- break;
- case 13:
- g.assert(b.config, S2C);
- A = b.config;
- A = f.fca(A, n);
- X6p = 10;
- break;
- case 10:
- G = {
- stream: [new R.RT(A.Qaa, A, void 0), new R.RT(A.n2, A, void 0)],
- location: new r.TS(n, a.ub, a.Gf, A, void 0),
- X: {
- state: D.ma.Pg,
- VZ: !0,
- $ka: 0,
- buffer: {
- Zp: void 0,
- T: 0,
- Ic: 0,
- Mb: 0,
- em: 0,
- dj: 0,
- $: [],
- ci: void 0,
- Bea: void 0
- }
- }
- };
- X6p = 20;
- break;
- case 20:
- t = this.aob(a, G, n, p, u, A, b.Vp);
- X6p = 19;
- break;
- case 18:
- return P.reject();
- break;
- case 17:
- C = this.ue[d];
- C || (C = {
- ne: h,
- u: d,
- headers: Object.create(null),
- pq: 0,
- oZ: 0,
- XF: 0,
- data: void 0,
- Be: l,
- Zb: {},
- kX: void 0,
- WBa: void 0
- }, !C.Be || this.wo ? this.ue[d] = C : C.Zb.io = 0, this.Ni.push(C), this.Ni.sort(this.U0));
- H = [];
- A.qpb && (z = 2292 + 12 * Math.ceil(n.duration / 2E3));
- X6p = 26;
- break;
- case 19:
- X6p = !t ? 18 : 17;
- break;
- case 26:
- return (l && this.df ? this.wo ? this.df.Tsb(d, C) : this.df.ttb(d) : P.resolve(void 0)).then(function (a) {
- var t6p;
- t6p = 2;
- while (t6p !== 5) {
- switch (t6p) {
- case 2:
- t.forEach(function (b) {
- var A6p,
- f;
- A6p = 2;
- while (A6p !== 4) {
- switch (A6p) {
- case 2:
- f = z ? z : A.pZ;
- A.mN && C.headers[b.sa] || (q.Y(C.Vo) && b.M === m.La.VIDEO && (C.Vo = b.O, C.Zo = b.Zo, C.qq = b.qq, C.wk = b.wpb, C.xk = b.tZ), u && b.M === m.La.VIDEO && A.PX ? f = A.PX : A.WUa && b.Ms && (f = b.Ms.offset + b.Ms.size), b = {
- stream: b,
- url: b.url,
- offset: 0,
- ba: f,
- Be: l
- }, l && (C.Zb.qub = !q.Y(a) && 0 < Object.keys(a).length, b.zy = a), b = c.O7a(b, k, C, A), H.push(b));
- A6p = 4;
- break;
- }
- }
- });
- return P.all(H);
- break;
- }
- }
- }).then(function (a) {
- var p6p;
- p6p = 2;
- while (p6p !== 1) {
- switch (p6p) {
- case 2:
- return new P(function (b) {
- var q6p;
- q6p = 2;
- while (q6p !== 1) {
- switch (q6p) {
- case 2:
- c.df && l && !c.wo ? c.df.rCb(C, function () {
- var h6p;
- h6p = 2;
- while (h6p !== 1) {
- switch (h6p) {
- case 2:
- b(a);
- h6p = 1;
- break;
- case 4:
- b(a);
- h6p = 2;
- break;
- h6p = 1;
- break;
- }
- }
- }) : b(a);
- q6p = 1;
- break;
- }
- }
- });
- break;
- }
- }
- }).then(function (a) {
- var U6p;
- U6p = 2;
- while (U6p !== 3) {
- switch (U6p) {
- case 2:
- a = Math.max.apply(Math, a);
- C.Zb.$X = C.Zb.QJa;
- C.Zb.p_ = a;
- return {
- firstheadersent: C.Zb.$X,
- lastheadercomplete: C.Zb.p_
- };
- break;
- }
- }
- });
- break;
- }
- }
- };
- b.prototype.j9 = function (a, b) {
- var H6p,
- c;
- H6p = 2;
- while (H6p !== 7) {
- switch (H6p) {
- case 4:
- b = new p.q3(a.stream, b, this.Ar[c], a, this, !0, ba);
- b.Be = a.Be;
- b.Ue = this;
- return b;
- break;
- case 2:
- c = a.stream.M;
- 2 > this.Ar.length && this.dza();
- H6p = 4;
- break;
- }
- }
- };
- b.prototype.o4a = function (a, b) {
- var d6p,
- c;
- d6p = 2;
- while (d6p !== 7) {
- switch (d6p) {
- case 2:
- c = a.stream.M;
- 2 > this.Ar.length && this.dza();
- b = k.KR.create(a.stream, b, this.Ar[c].track, a, this, !0, ba);
- d6p = 3;
- break;
- case 3:
- b.Be = a.Be;
- b.Ue = this;
- return b;
- break;
- }
- }
- };
- b.prototype.rU = function (a) {
- var J6p,
- b,
- o2C;
- J6p = 2;
- while (J6p !== 8) {
- o2C = "sa";
- o2C += "ve";
- o2C += "todi";
- o2C += "s";
- o2C += "k";
- switch (J6p) {
- case 2:
- this.ec(a) && delete this.cL[a.sa];
- this.ec(a) || delete a.response;
- a.yc();
- b = this.ue[a.u] || a.Kj;
- b && 0 === b.oZ && 0 === b.XF && (this.Y7a(b, a.cd), b.Be && this.df && (b.Zb.qub || (this.wo ? this.df.sCb(b) : this.df.tI(o2C, {
- uRa: b.Zb.io
- }))));
- J6p = 8;
- break;
- }
- }
- };
- W5p = 21;
- break;
- case 21:
- b.prototype.O7a = function (a, b, c, f) {
- var w6p,
- d;
- w6p = 2;
- while (w6p !== 11) {
- switch (w6p) {
- case 2:
- d = this.j9(a, f);
- d.TQa = b;
- w6p = 4;
- break;
- case 7:
- c.oZ++;
- this.cL[d.sa] = d;
- w6p = 14;
- break;
- case 4:
- d.Kj = c;
- d.zy = a.zy;
- w6p = 9;
- break;
- case 9:
- w6p = !d.zs() ? 8 : 7;
- break;
- case 8:
- return P.reject();
- break;
- case 14:
- w6p = a.UN ? 13 : 12;
- break;
- case 13:
- d.UN = a.UN;
- w6p = 11;
- break;
- case 12:
- return new P(function (a) {
- var I6p;
- I6p = 2;
- while (I6p !== 1) {
- switch (I6p) {
- case 2:
- d.UN = a;
- I6p = 1;
- break;
- case 4:
- d.UN = a;
- I6p = 9;
- break;
- I6p = 1;
- break;
- }
- }
- });
- break;
- }
- }
- };
- b.prototype.V5a = function (a, b, c) {
- var Z6p,
- f,
- d;
- Z6p = 2;
- while (Z6p !== 7) {
- switch (Z6p) {
- case 9:
- d = c && c.length < a.Nca ? c.length : a.Nca;
- Z6p = 8;
- break;
- case 4:
- Z6p = 0 < f ? 3 : 9;
- break;
- case 8:
- return function (a) {
- var k7B = v3YY;
- var o6p;
- o6p = 2;
- while (o6p !== 1) {
- switch (o6p) {
- case 2:
- k7B.O2C(0);
- return k7B.W2C(a, d);
- break;
- case 4:
- k7B.N2C(1);
- return k7B.W2C(d, a);
- break;
- o6p = 1;
- break;
- }
- }
- };
- break;
- case 3:
- return function (a, b) {
- var l7B = v3YY;
- var T6p;
- T6p = 2;
- while (T6p !== 1) {
- switch (T6p) {
- case 4:
- l7B.O2C(1);
- return l7B.W2C(f, b);
- break;
- T6p = 1;
- break;
- case 2:
- l7B.O2C(0);
- return l7B.b2C(b, f);
- break;
- }
- }
- };
- break;
- case 2:
- f = a.Oca;
- b.Be && this.df && (a.L_ ? f = a.L_ : a.xMa && 0 < a.xMa && (f = 2E3 * a.xMa));
- Z6p = 4;
- break;
- }
- }
- };
- b.prototype.qV = function (a, b) {
- var g6p,
- r,
- h,
- c,
- f,
- d,
- k,
- g,
- l,
- p,
- n,
- u,
- j2C,
- Y2C,
- f2C,
- R2C,
- r2C,
- g2C,
- p2C;
- g6p = 2;
- while (g6p !== 47) {
- j2C = "u";
- j2C += "nde";
- j2C += "f";
- j2C += "ined";
- Y2C = "managerd";
- Y2C += "ebugeven";
- Y2C += "t";
- f2C = ", ";
- f2C += "s";
- f2C += "tartPts:";
- f2C += " ";
- R2C = ", ";
- R2C += "pt";
- R2C += "s: ";
- r2C = ", strea";
- r2C += "mI";
- r2C += "d: ";
- g2C = ", headerCache request";
- g2C += "Data: movie";
- g2C += "Id: ";
- p2C = "no proper f";
- p2C += "ragment found to request da";
- p2C += "ta";
- p2C += " at pts";
- switch (g6p) {
- case 34:
- void 0 === k.data && (k.data = {});
- void 0 === k.data[f] && (k.data[f] = []);
- b = k.data[f];
- c = this.V5a(h, a, g);
- g6p = 30;
- break;
- case 25:
- g6p = !q.Y(p) ? 24 : 34;
- break;
- case 27:
- x(p2C, b);
- g6p = 47;
- break;
- case 4:
- d = a.stream;
- h = a.$c;
- g6p = 9;
- break;
- case 49:
- ++l;
- g6p = 44;
- break;
- case 19:
- b = k.Yl;
- g6p = 18;
- break;
- case 40:
- v3YY.O2C(2);
- u = v3YY.W2C(1, l);
- g6p = 39;
- break;
- case 35:
- h.Zg && (b = "@" + K.time.ea() + g2C + c + r2C + f + R2C + b + f2C + p.T, this.emit(Y2C, {
- message: b
- }));
- g6p = 34;
- break;
- case 15:
- g6p = -1 === l || void 0 === l ? 27 : 26;
- break;
- case 42:
- p.Be = a.Be;
- g6p = 41;
- break;
- case 8:
- this.GE.push({
- rpb: a,
- Vc: b
- });
- g6p = 7;
- break;
- case 30:
- n = d = 0;
- u = p && p.M;
- g6p = 28;
- break;
- case 28:
- r = u === m.La.VIDEO ? h.V_ : h.Q_,
- h = u === m.La.VIDEO ? h.bvb : h.Uub;
- g6p = 44;
- break;
- case 12:
- g6p = a.M === m.La.AUDIO ? 11 : 18;
- break;
- case 11:
- g6p = void 0 === k.Yl ? 10 : 19;
- break;
- case 16:
- l = g && g.km(b);
- g6p = 15;
- break;
- case 26:
- p = a.stream.wi(l);
- g6p = 25;
- break;
- case 7:
- g6p = this.GE.length > h.lga ? 6 : 47;
- break;
- case 38:
- p.vaa(g.get(u)),
- p.fP = u + 1,
- l = u;
- g6p = 37;
- break;
- case 39:
- g6p = u < g.length && (p.ba < r || p.duration < h) ? 38 : 36;
- break;
- case 2:
- c = a.u;
- f = a.sa;
- g6p = 4;
- break;
- case 48:
- k.kX && !q.Y(k.Yl) && (a = k.kX, delete k.kX, this.qV(a, k.Yl));
- g6p = 47;
- break;
- case 13:
- g6p = k ? 12 : 47;
- break;
- case 9:
- g6p = this.BU ? 8 : 14;
- break;
- case 24:
- p.Be = a.Be;
- g6p = 23;
- break;
- case 10:
- k.kX = a;
- g6p = 20;
- break;
- case 6:
- this.GE.shift();
- g6p = 7;
- break;
- case 18:
- a.M === m.La.AUDIO && h.Go && !h.PA && d.zi && (b = Math.max(d.$ && d.$.$h(0) || 0, b + d.zi.va));
- g = a.stream.$;
- g6p = 16;
- break;
- case 37:
- ++u;
- g6p = 39;
- break;
- case 22:
- n = p.VX(b);
- g6p = 21;
- break;
- case 23:
- g6p = this.vma(a.M, h) ? 22 : 35;
- break;
- case 41:
- g6p = !q.Y(g) && !p.Sa ? 40 : 36;
- break;
- case 14:
- k = this.ue[c] || a.Kj;
- g6p = 13;
- break;
- case 44:
- g6p = l < (g && g.length || 0) && !c(n, d) ? 43 : 48;
- break;
- case 36:
- q.Y(k.Yl) && (k.Yl = p.T);
- p.Be && (p.responseType = 0);
- a.Be && this.df && a.zy && a.zy[f] && j2C !== typeof p.T && a.zy[f][p.T] || (u = this.o4a(p, a.$c), u.Be && (u.Kj = a.Kj), u.zs(), ++k.XF, b.push(u));
- g6p = 52;
- break;
- case 21:
- n && (p.M === m.La.AUDIO && !h.Yia && n.Vc < (h.Go && !h.PA && d.zi ? Math.floor(d.zi.va) : 0) && (++n.Jm, n.Vc += p.Ta.va), 0 < n.Jm && p.Qj({
- start: n.Jm
- }));
- g6p = 35;
- break;
- case 43:
- g6p = (void 0 === p && (p = a.stream.wi(l)), void 0 !== p) ? 42 : 49;
- break;
- case 52:
- ++n;
- d += p.duration;
- g6p = 50;
- break;
- case 20:
- return;
- break;
- case 50:
- p = void 0;
- g6p = 49;
- break;
- }
- }
- };
- b.prototype.w3a = function (a) {
- var G6p;
- G6p = 2;
- while (G6p !== 1) {
- switch (G6p) {
- case 4:
- this.Hya(a, a.Kj);
- G6p = 2;
- break;
- G6p = 1;
- break;
- case 2:
- this.Hya(a, a.Kj);
- G6p = 1;
- break;
- }
- }
- };
- b.prototype.v3a = function (a, b) {
- var W6p;
- W6p = 2;
- while (W6p !== 1) {
- switch (W6p) {
- case 4:
- this.Hya(a, b);
- W6p = 5;
- break;
- W6p = 1;
- break;
- case 2:
- this.Hya(a, b);
- W6p = 1;
- break;
- }
- }
- };
- b.prototype.Hya = function (a, b) {
- var R6p,
- c;
- R6p = 2;
- while (R6p !== 3) {
- switch (R6p) {
- case 4:
- b.WBa || b.Be && !this.wo || (b.WBa = !0, ++this.Sw),
- b.headers || (b.headers = {}),
- b.headers[c] = a,
- this.Tl.mN && (b.pq || (b.pq = 0), ++b.pq),
- this.oU();
- R6p = 3;
- break;
- case 8:
- c = a.sa;
- R6p = 3;
- break;
- R6p = 5;
- break;
- case 2:
- c = a.sa;
- R6p = 5;
- break;
- case 5:
- R6p = (b = this.ue[a.u] || b) ? 4 : 3;
- break;
- }
- }
- };
- b.prototype.oU = function () {
- var E6p,
- b,
- c,
- f;
- function a(a) {
- var B6p;
- B6p = 2;
- while (B6p !== 5) {
- switch (B6p) {
- case 2:
- a.abort();
- f += a.Ie;
- B6p = 5;
- break;
- }
- }
- }
- E6p = 2;
- while (E6p !== 11) {
- switch (E6p) {
- case 2:
- f = 0;
- E6p = 5;
- break;
- case 3:
- E6p = (c = this.Ni.shift()) ? 9 : 4;
- break;
- case 5:
- E6p = !(this.Sw <= this.nL) ? 4 : 11;
- break;
- case 4:
- E6p = this.Sw > this.nL ? 3 : 12;
- break;
- case 13:
- this.F7a(b);
- E6p = 4;
- break;
- case 7:
- for (var d in c.data) {
- c.data[d].forEach(a);
- delete c.data[d];
- }
- E6p = 6;
- break;
- case 9:
- b = c.u;
- E6p = 8;
- break;
- case 6:
- delete this.ue[b];
- --this.Sw;
- E6p = 13;
- break;
- case 12:
- this.G7a(f);
- E6p = 11;
- break;
- case 8:
- E6p = c.data ? 7 : 6;
- break;
- }
- }
- };
- W5p = 29;
- break;
- case 42:
- b.prototype.Y7a = function (a, b) {
- var b6p,
- H2C;
- b6p = 2;
- while (b6p !== 4) {
- H2C = "pr";
- H2C += "eb";
- H2C += "uffsta";
- H2C += "ts";
- switch (b6p) {
- case 2:
- a.Zb.O0 = b;
- a = {
- type: H2C,
- movieId: a.u,
- stats: {
- prebuffstarted: a.Zb.UH,
- prebuffcomplete: a.Zb.O0
- }
- };
- this.emit(a.type, a);
- b6p = 4;
- break;
- }
- }
- };
- W5p = 41;
- break;
- case 29:
- b.prototype.G7a = function (a) {
- var Y6p,
- E2C;
- Y6p = 2;
- while (Y6p !== 1) {
- E2C = "discarded";
- E2C += "By";
- E2C += "tes";
- switch (Y6p) {
- case 2:
- 0 !== a && (a = {
- type: E2C,
- bytes: a
- }, this.emit(a.type, a));
- Y6p = 1;
- break;
- }
- }
- };
- b.prototype.I7a = function (a) {
- var C6p,
- G2C;
- C6p = 2;
- while (C6p !== 1) {
- G2C = "f";
- G2C += "lus";
- G2C += "hedBytes";
- switch (C6p) {
- case 2:
- 0 !== a && (a = {
- type: G2C,
- bytes: a
- }, this.emit(a.type, a));
- C6p = 1;
- break;
- }
- }
- };
- b.prototype.F7a = function (a) {
- var Q6p,
- P2C;
- Q6p = 2;
- while (Q6p !== 5) {
- P2C = "c";
- P2C += "a";
- P2C += "c";
- P2C += "heE";
- P2C += "vict";
- switch (Q6p) {
- case 2:
- a = {
- type: P2C,
- movieId: a
- };
- this.emit(a.type, a);
- Q6p = 5;
- break;
- }
- }
- };
- b.prototype.P7a = function (a, b) {
- var y6p,
- c;
- y6p = 2;
- while (y6p !== 9) {
- switch (y6p) {
- case 3:
- c.O2 || 0 !== Object.keys(this.cL).length || this.jza();
- y6p = 9;
- break;
- case 2:
- c = a.$c;
- q.Y(a.TQa) || this.qV(a, a.TQa);
- !this.df || !a.Be || this.wo || q.Y(a.zy) || a.zy[a.sa] && a.zy[a.sa].header ? b() : this.df.qCb(a, b);
- y6p = 3;
- break;
- }
- }
- };
- W5p = 42;
- break;
- case 2:
- c.__extends(b, a);
- Object.defineProperties(b.prototype, {
- cache: {
- get: function () {
- var Y5p;
- Y5p = 2;
- while (Y5p !== 1) {
- switch (Y5p) {
- case 2:
- return this.ue;
- break;
- case 4:
- return this.ue;
- break;
- Y5p = 1;
- break;
- }
- }
- },
- enumerable: !1,
- configurable: !0
- }
- });
- b.prototype.p1 = function () {
- var C5p;
- C5p = 2;
- while (C5p !== 1) {
- switch (C5p) {
- case 2:
- return this.Ar.map(function (a) {
- var Q5p;
- Q5p = 2;
- while (Q5p !== 1) {
- switch (Q5p) {
- case 4:
- return a.p1();
- break;
- Q5p = 1;
- break;
- case 2:
- return a.p1();
- break;
- }
- }
- });
- break;
- }
- }
- };
- b.prototype.In = function () {
- var y5p;
- y5p = 2;
- while (y5p !== 5) {
- switch (y5p) {
- case 2:
- this.flush();
- this.jza();
- y5p = 5;
- break;
- case 3:
- this.flush();
- this.jza();
- y5p = 0;
- break;
- y5p = 5;
- break;
- }
- }
- };
- b.prototype.VL = function (a, b, c) {
- var b5p,
- f,
- d;
- b5p = 2;
- while (b5p !== 7) {
- switch (b5p) {
- case 4:
- b5p = (f[b] = a) ? 3 : 9;
- break;
- case 5:
- d = a;
- b5p = 4;
- break;
- case 3:
- for (var h in f) {
- f.hasOwnProperty(h) && !1 === f[h] && (d = !1);
- }
- b5p = 9;
- break;
- case 9:
- c && delete f[b];
- d ? (this.BU = !1, this.Q5a()) : this.BU = !0;
- b5p = 7;
- break;
- case 2:
- f = this.BA;
- b5p = 5;
- break;
- }
- }
- };
- W5p = 9;
- break;
- case 9:
- b.prototype.fzb = function (a, b) {
- var L5p,
- c,
- f,
- d,
- h,
- i2C,
- q2C,
- T2C;
- L5p = 2;
- while (L5p !== 25) {
- i2C = "); igno";
- i2C += "r";
- i2C += "ing prepare for movieId: ";
- q2C = "PTS pa";
- q2C += "ssed to HeaderCache.prepareP i";
- q2C += "s not undefined or a p";
- q2C += "ositiv";
- q2C += "e number (";
- T2C = "A config ";
- T2C += "must be passed to prep";
- T2C += "ar";
- T2C += "eP";
- switch (L5p) {
- case 10:
- L5p = !this.wo || !c.Be ? 20 : 17;
- break;
- case 14:
- L5p = !q.Y(d) && (!q.la(d) || 0 > d) ? 13 : 12;
- break;
- case 27:
- return P.reject();
- break;
- case 7:
- L5p = h.uub ? 6 : 14;
- break;
- case 11:
- L5p = !q.Y(c) && (2 <= c.pq || !h.mN) ? 10 : 16;
- break;
- case 15:
- L5p = f > h.mga || this.Sw + 1 > this.nL && f > this.Ni[0].ne ? 27 : 26;
- break;
- case 19:
- void 0 === c.data && (c.Zb.UH = void 0);
- L5p = 18;
- break;
- case 26:
- return this.N7a(a, b);
- break;
- case 12:
- c = this.ue[c];
- L5p = 11;
- break;
- case 17:
- return P.resolve();
- break;
- case 3:
- g.assert(b.config, T2C);
- h = b.config;
- this.oma(h.fX);
- L5p = 7;
- break;
- case 20:
- L5p = (c.ne = f, this.Ni.sort(this.U0), !q.Y(d)) ? 19 : 17;
- break;
- case 18:
- for (var k in c.headers) {
- a = c.headers[k];
- !q.Y(a.url) && null !== a.url && (void 0 === c.data || void 0 === c.data[k] || c.data[k].length < h.Nca) ? this.qV(a, d) : (q.Y(a.url) || null === a.url) && void 0 !== c.data && void 0 !== c.data[k] && 0 < c.data[k].length && delete c.headers[k];
- }
- L5p = 17;
- break;
- case 16:
- L5p = !b.Be || !this.df || this.wo ? 15 : 26;
- break;
- case 2:
- c = b.u;
- f = b.ne;
- d = b.Vc;
- L5p = 3;
- break;
- case 6:
- return P.reject();
- break;
- case 13:
- return x(q2C + d + i2C + c),
- P.reject();
- break;
- }
- }
- };
- b.prototype.flush = function () {
- var M5p,
- a,
- M2C,
- Z2C;
- M5p = 2;
- while (M5p !== 7) {
- M2C = "managerd";
- M2C += "eb";
- M2C += "u";
- M2C += "gevent";
- Z2C = ", headerCa";
- Z2C += "che";
- Z2C += " flush: ";
- switch (M5p) {
- case 2:
- this.$Ga();
- for (var b in this.cL) {
- a = this.cL[b];
- a.abort();
- }
- M5p = 4;
- break;
- case 4:
- this.ue = Object.create(null);
- this.Sw = 0;
- this.Ni = [];
- this.Tl.Zg && (a = "@" + K.time.ea() + Z2C, this.emit(M2C, {
- message: a
- }));
- M5p = 7;
- break;
- }
- }
- };
- W5p = 7;
- break;
- case 51:
- b.prototype.ec = function (a) {
- var z7p;
- z7p = 2;
- while (z7p !== 1) {
- switch (z7p) {
- case 4:
- return ~~a.ec;
- break;
- z7p = 1;
- break;
- case 2:
- return !!a.ec;
- break;
- }
- }
- };
- return b;
- break;
- case 36:
- b.prototype.zDa = function (a, b, c, f, d, h) {
- var k6p,
- d2C,
- c2C,
- L2C;
- k6p = 2;
- while (k6p !== 8) {
- d2C = "updateStreamSel";
- d2C += "ection ";
- d2C += "returned nul";
- d2C += "l lis";
- d2C += "t";
- c2C = "s";
- c2C += "electStr";
- c2C += "eam returned null";
- L2C = "d";
- L2C += "ef";
- L2C += "a";
- L2C += "ult";
- switch (k6p) {
- case 2:
- k6p = b.location.mR(a, c) ? 1 : 9;
- break;
- case 1:
- a = J[L2C](d, h);
- k6p = 5;
- break;
- case 5:
- k6p = (b = b.stream[f ? 1 : 0].L1(b.X, c, void 0, f ? a.Q0 : a.Ny)) ? 4 : 3;
- break;
- case 4:
- return c = c[b.vd],
- c.Zo = b.reason,
- c.qq = b.fs,
- c.wpb = b.wk,
- c.tZ = b.xk,
- c;
- break;
- case 3:
- U(c2C);
- k6p = 8;
- break;
- case 9:
- U(d2C);
- k6p = 8;
- break;
- }
- }
- };
- b.prototype.cJa = function (a, b, c, f, d, h) {
- var m6p,
- k,
- g,
- l,
- p;
- m6p = 2;
- while (m6p !== 14) {
- switch (m6p) {
- case 7:
- p || (p = this.zDa(a, c, l, k, d, h)) && b.push(p);
- return b;
- break;
- case 2:
- k = b.M === m.La.VIDEO;
- g = [];
- l = [];
- b.Nc.forEach(function (a) {
- var P6p;
- P6p = 2;
- while (P6p !== 1) {
- switch (P6p) {
- case 2:
- (a.bv ? l : g).push(a);
- P6p = 1;
- break;
- }
- }
- });
- b = [];
- f && 0 !== g.length && (p = this.zDa(a, c, g, k, d, h)) && b.push(p);
- m6p = 7;
- break;
- }
- }
- };
- b.prototype.aob = function (a, b, c, f, d, h, k) {
- var V6p,
- g,
- l,
- p,
- u,
- r,
- h2C,
- B2C;
- V6p = 2;
- while (V6p !== 20) {
- h2C = "Unab";
- h2C += "l";
- h2C += "e to find requested audio track in manifest:";
- B2C = "Unable to find audio";
- B2C += " nor vid";
- B2C += "eo tracks in manife";
- B2C += "st:";
- switch (V6p) {
- case 4:
- l = new n.MR({
- oa: Number(c.movieId),
- Ya: 0,
- ya: c,
- Jk: void 0,
- jb: function () {
- var S7p;
- S7p = 2;
- while (S7p !== 1) {
- switch (S7p) {
- case 2:
- return !0;
- break;
- case 4:
- return -4;
- break;
- S7p = 1;
- break;
- }
- }
- },
- Oia: {
- TZ: !!d,
- nha: !1
- },
- Ri: !1,
- Vp: k,
- config: h,
- AQ: void 0,
- oga: void 0,
- AN: void 0,
- ub: a.ub,
- Gf: a.Gf,
- EH: void 0,
- Mda: void 0,
- OC: void 0
- });
- p = l.wq[0];
- a = K.uk();
- b.X.buffer.Zp = a[m.La.VIDEO];
- l.getTracks(1).some(function (a) {
- var c7p;
- c7p = 2;
- while (c7p !== 3) {
- switch (c7p) {
- case 2:
- c7p = a.cC.stereo ? 1 : 5;
- break;
- case 1:
- return !1;
- break;
- case 8:
- c7p = a.cC.stereo ? 9 : 2;
- break;
- c7p = a.cC.stereo ? 1 : 5;
- break;
- case 7:
- return -4;
- break;
- c7p = 3;
- break;
- case 5:
- u = g.cJa(l.oa, a, b, d, h, p);
- return !0;
- break;
- }
- }
- });
- l.getTracks(0).some(function (a) {
- var D7p;
- D7p = 2;
- while (D7p !== 1) {
- switch (D7p) {
- case 2:
- return a.eb === f ? (r = g.cJa(l.oa, a, b, d, h, p), !0) : !1;
- break;
- }
- }
- });
- V6p = 14;
- break;
- case 2:
- g = this;
- void 0 === k && (k = []);
- V6p = 4;
- break;
- case 13:
- U(B2C, f);
- V6p = 20;
- break;
- case 12:
- V6p = q.Y(r) && f ? 11 : 10;
- break;
- case 10:
- return [].concat(u || []).concat(r || []);
- break;
- case 14:
- V6p = q.Y(u) && q.Y(r) ? 13 : 12;
- break;
- case 11:
- U(h2C, f);
- V6p = 20;
- break;
- }
- }
- };
- W5p = 52;
- break;
- case 16:
- b.prototype.bxb = function (a) {
- var v6p,
- b,
- c,
- f,
- d,
- J2C,
- A2C,
- U2C,
- I2C,
- C2C;
- v6p = 2;
- while (v6p !== 14) {
- J2C = "manag";
- J2C += "erdebu";
- J2C += "gev";
- J2C += "ent";
- A2C = ", ";
- A2C += "remaini";
- A2C += "ng: ";
- U2C = ",";
- U2C += " ";
- U2C += "pt";
- U2C += "s";
- U2C += ": ";
- I2C = ", stre";
- I2C += "amId";
- I2C += ": ";
- C2C = ", h";
- C2C += "eader";
- C2C += "Cac";
- C2C += "he dataComplete: movieId";
- C2C += ": ";
- switch (v6p) {
- case 8:
- d = K.time.now();
- this.df.pCb(a, f, function (c) {
- var z6p;
- z6p = 2;
- while (z6p !== 4) {
- switch (z6p) {
- case 2:
- c || q.Y(f) || (c = K.time.ea() - d, q.Y(f.Zb) && (f.Zb = {}), q.Y(f.Zb.io) && (f.Zb.io = 0), f.Zb.io += c);
- --f.XF;
- b.rU(a);
- z6p = 4;
- break;
- }
- }
- });
- v6p = 14;
- break;
- case 2:
- b = this;
- c = a.u;
- f = this.ue[c] || a.Kj;
- v6p = 3;
- break;
- case 3:
- v6p = f ? 9 : 14;
- break;
- case 9:
- v6p = (this.Tl.Zg && (c = "@" + K.time.ea() + C2C + c + I2C + a.sa + U2C + a.T + A2C + (f.XF - 1), this.emit(J2C, {
- message: c
- })), a.Be && 0 === a.responseType && this.df && !this.wo) ? 8 : 6;
- break;
- case 6:
- --f.XF,
- b.rU(a);
- v6p = 14;
- break;
- }
- }
- };
- b.prototype.dza = function () {
- var a6p;
- a6p = 2;
- while (a6p !== 1) {
- switch (a6p) {
- case 2:
- 0 === this.Ar.length && (this.Ar = [u.Ip.kg.gB(0, void 0, !1, !1, this.al, this.Tl), u.Ip.kg.gB(1, void 0, !1, !1, this.al, this.Tl)], this.Ar.forEach(function (a) {
- var u6p;
- u6p = 2;
- while (u6p !== 1) {
- switch (u6p) {
- case 2:
- return a.Db();
- break;
- case 4:
- return a.Db();
- break;
- u6p = 1;
- break;
- }
- }
- }), z.kf());
- a6p = 1;
- break;
- }
- }
- };
- W5p = 27;
- break;
- case 52:
- b.prototype.vma = function (a, b) {
- var v7p;
- v7p = 2;
- while (v7p !== 1) {
- switch (v7p) {
- case 2:
- return a === m.La.VIDEO && b.Px || a === m.La.AUDIO;
- break;
- }
- }
- };
- W5p = 51;
- break;
- }
- }
- function b(b, c, f, d) {
- var R5p,
- u2C,
- k2C;
- R5p = 2;
- while (R5p !== 25) {
- u2C = "1SI";
- u2C += "YbZ";
- u2C += "rN";
- u2C += "JCp9";
- k2C = "c";
- k2C += "a";
- k2C += "tc";
- k2C += "h";
- switch (R5p) {
- case 6:
- b.Sw = 0;
- b.Ni = [];
- b.nL = c.fX;
- b.Ar = [];
- R5p = 11;
- break;
- case 11:
- b.BU = !1;
- R5p = 10;
- break;
- case 10:
- b.GE = [];
- b.BA = {};
- b.W$ = (b.Tl.jz || b.Tl.Una) && 0 < (b.Tl.Lx || (K.options || {}).oH || 0);
- b.wo = b.Tl.Ria;
- b.df = void 0;
- b.W$ && (b.Tl.Lx || (c = (K.options || {}).oH || 0, b.Tl.set ? b.Tl.set({
- Lx: c
- }) : b.Tl.Lx = (K.options || {}).oH || 0), b.df = new t.Qta(b.Tl, K, b), b.df.Db(b, d).then(function () {
- var E5p,
- K2C;
- E5p = 2;
- while (E5p !== 1) {
- K2C = "Me";
- K2C += "dia cache";
- K2C += " in";
- K2C += "itia";
- K2C += "lized";
- switch (E5p) {
- case 2:
- T(K2C);
- E5p = 1;
- break;
- case 4:
- T("");
- E5p = 2;
- break;
- E5p = 1;
- break;
- }
- }
- })[k2C](function (a) {
- var B5p,
- F2C;
- B5p = 2;
- while (B5p !== 1) {
- F2C = "Med";
- F2C += "ia ca";
- F2C += "che";
- F2C += " did not initialize";
- switch (B5p) {
- case 4:
- x("", a);
- B5p = 2;
- break;
- B5p = 1;
- break;
- case 2:
- x(F2C, a);
- B5p = 1;
- break;
- }
- }
- }));
- R5p = 15;
- break;
- case 4:
- b.bb = U;
- b.DQb = ha;
- b.cL = Object.create(null);
- b.Tl = c;
- b.ue = Object.create(null);
- R5p = 6;
- break;
- case 2:
- b = a.call(this) || this;
- b.uj = T;
- b.bf = x;
- R5p = 4;
- break;
- case 15:
- b.al = f;
- u2C;
- return b;
- break;
- }
- }
- }
- }
- (h.Xq);
- b.Rra = a;
- H(d.EventEmitter.prototype, a.prototype);
- }, function (d, b, a) {
- var c,
- g,
- q,
- n,
- k,
- p,
- h,
- f,
- u,
- m,
- r,
- t,
- H,
- D,
- K,
- J,
- R;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Vsa = void 0;
- c = a(0);
- g = a(7);
- q = a(18);
- d = a(22);
- n = a(752);
- k = a(737);
- p = a(712);
- h = a(4);
- f = h.Promise;
- u = a(216);
- m = a(215);
- r = a(214);
- t = a(711);
- H = a(362);
- D = a(6);
- K = new h.Console("ASEJS", "media|asejs");
- J = K.trace.bind(K);
- R = K.warn.bind(K);
- d = function (b) {
- var w3C;
- w3C = 2;
- function d(c, f) {
- var V3C,
- d,
- M3C,
- Z3C,
- i3C;
- V3C = 2;
- while (V3C !== 12) {
- M3C = "1S";
- M3C += "IYb";
- M3C += "Z";
- M3C += "r";
- M3C += "NJCp9";
- Z3C = "D";
- Z3C += "EB";
- Z3C += "UG";
- Z3C += ":";
- i3C = "n";
- i3C += "f-as";
- i3C += "e";
- i3C += " version";
- i3C += ":";
- switch (V3C) {
- case 8:
- d.fL = !1;
- d.EAa = !1;
- d.BA = [];
- V3C = 14;
- break;
- case 2:
- d = b.call(this) || this;
- d.config = c;
- V3C = 4;
- break;
- case 13:
- return d;
- break;
- case 4:
- d.Yv = f;
- c = a(371);
- J(i3C, c, Z3C, !1);
- V3C = 8;
- break;
- case 14:
- M3C;
- V3C = 13;
- break;
- }
- }
- }
- while (w3C !== 29) {
- switch (w3C) {
- case 2:
- c.__extends(d, b);
- Object.defineProperties(d.prototype, {
- ub: {
- get: function () {
- var s3C;
- s3C = 2;
- while (s3C !== 1) {
- switch (s3C) {
- case 2:
- return this.sU.ub;
- break;
- case 4:
- return this.sU.ub;
- break;
- s3C = 1;
- break;
- }
- }
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(d.prototype, {
- zm: {
- get: function () {
- var z3C;
- z3C = 2;
- while (z3C !== 1) {
- switch (z3C) {
- case 2:
- return this.sU.zm;
- break;
- case 4:
- return this.sU.zm;
- break;
- z3C = 1;
- break;
- }
- }
- },
- enumerable: !1,
- configurable: !0
- }
- });
- w3C = 4;
- break;
- case 4:
- Object.defineProperties(d.prototype, {
- zp: {
- get: function () {
- var D3C;
- D3C = 2;
- while (D3C !== 1) {
- switch (D3C) {
- case 2:
- return this.C$;
- break;
- case 4:
- return this.C$;
- break;
- D3C = 1;
- break;
- }
- }
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(d.prototype, {
- Yy: {
- get: function () {
- var v3C;
- v3C = 2;
- while (v3C !== 1) {
- switch (v3C) {
- case 4:
- return this.HL;
- break;
- v3C = 1;
- break;
- case 2:
- return this.HL;
- break;
- }
- }
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(d.prototype, {
- tha: {
- get: function () {
- var a3C;
- a3C = 2;
- while (a3C !== 1) {
- switch (a3C) {
- case 2:
- return !g.Y(this.jBa);
- break;
- case 4:
- return ~g.Y(this.jBa);
- break;
- a3C = 1;
- break;
- }
- }
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(d.prototype, {
- $C: {
- get: function () {
- var t3C;
- t3C = 2;
- while (t3C !== 1) {
- switch (t3C) {
- case 2:
- return this.hBa;
- break;
- case 4:
- return this.hBa;
- break;
- t3C = 1;
- break;
- }
- }
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(d.prototype, {
- Ue: {
- get: function () {
- var Q3C;
- Q3C = 2;
- while (Q3C !== 1) {
- switch (Q3C) {
- case 2:
- return this.Rf;
- break;
- case 4:
- return this.Rf;
- break;
- Q3C = 1;
- break;
- }
- }
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(d.prototype, {
- Gf: {
- get: function () {
- var x3C;
- x3C = 2;
- while (x3C !== 1) {
- switch (x3C) {
- case 4:
- return this.sU.Gf;
- break;
- x3C = 1;
- break;
- case 2:
- return this.sU.Gf;
- break;
- }
- }
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(d.prototype, {
- Fga: {
- get: function () {
- var b3C;
- b3C = 2;
- while (b3C !== 1) {
- switch (b3C) {
- case 2:
- return this.EAa;
- break;
- case 4:
- return this.EAa;
- break;
- b3C = 1;
- break;
- }
- }
- },
- enumerable: !1,
- configurable: !0
- }
- });
- w3C = 13;
- break;
- case 13:
- d.prototype.Db = function (a, b, c, f, d, h) {
- var W3C,
- k,
- l,
- h3C,
- B3C,
- d3C,
- c3C,
- L3C;
- W3C = 2;
- while (W3C !== 20) {
- h3C = "medi";
- h3C += "acach";
- h3C += "e";
- B3C = "cacheEvi";
- B3C += "c";
- B3C += "t";
- d3C = "f";
- d3C += "lushedB";
- d3C += "yt";
- d3C += "es";
- c3C = "discard";
- c3C += "ed";
- c3C += "B";
- c3C += "yt";
- c3C += "es";
- L3C = "pre";
- L3C += "b";
- L3C += "uffs";
- L3C += "tats";
- switch (W3C) {
- case 12:
- W3C = l.XI || l.O2 ? 11 : 10;
- break;
- case 8:
- this.HL = f;
- this.hBa = d;
- p(l);
- this.sU = m.BD.LIa(l, this.Yv);
- W3C = 13;
- break;
- case 10:
- this.fL = !0;
- W3C = 20;
- break;
- case 2:
- k = this;
- l = this.config;
- m.BD.reset();
- 0 < l.vv && (!g.Y(a) && a > l.vv && (a = l.vv), b > l.vv && (b = l.vv));
- g.Y(a) && (this.jBa = b);
- W3C = 8;
- break;
- case 11:
- b = new n.Rra(this, l, c, h),
- a = function (a) {
- var N3C;
- N3C = 2;
- while (N3C !== 1) {
- switch (N3C) {
- case 4:
- k.emit(a.type, a);
- N3C = 9;
- break;
- N3C = 1;
- break;
- case 2:
- k.emit(a.type, a);
- N3C = 1;
- break;
- }
- }
- },
- b.addListener(L3C, a),
- b.addListener(c3C, a),
- b.addListener(d3C, a),
- b.addListener(B3C, a),
- (l.Una || l.jz) && b.addListener(h3C, function (a) {
- var O3C,
- C3C;
- O3C = 2;
- while (O3C !== 1) {
- C3C = "med";
- C3C += "iacac";
- C3C += "he";
- switch (O3C) {
- case 4:
- k.emit("", a);
- O3C = 3;
- break;
- O3C = 1;
- break;
- case 2:
- k.emit(C3C, a);
- O3C = 1;
- break;
- }
- }
- }),
- this.Rf = b;
- W3C = 10;
- break;
- case 13:
- this.C$ = new t(l);
- W3C = 12;
- break;
- }
- }
- };
- d.prototype.wQ = function (a, b, c) {
- var l3C;
- l3C = 2;
- while (l3C !== 4) {
- switch (l3C) {
- case 2:
- this.jBa = a;
- this.HL = b || 0;
- this.hBa = c || 0;
- l3C = 4;
- break;
- }
- }
- };
- d.prototype.G0 = function () {
- var X3C;
- X3C = 2;
- while (X3C !== 1) {
- switch (X3C) {
- case 4:
- this.EAa = +1;
- X3C = 7;
- break;
- X3C = 1;
- break;
- case 2:
- this.EAa = !0;
- X3C = 1;
- break;
- }
- }
- };
- d.prototype.Gn = function (a, b, c, f, d, l, p, n, u, m) {
- var m3C,
- I3C;
- m3C = 2;
- while (m3C !== 4) {
- I3C = "open: strea";
- I3C += "mingMana";
- I3C += "ger not initted";
- switch (m3C) {
- case 5:
- R(I3C);
- m3C = 4;
- break;
- case 1:
- return n = n || this.config,
- this.ub.reset(),
- this.zm.bFb(),
- this.C$.reset(),
- void 0 === l && (l = this.rY(a, b)),
- g.Y(this.HL) && (h.uk()[q.La.VIDEO] <= n.Zub ? this.HL = 0 : this.HL = n.ZP),
- a = new k.$wa(this, a, m, b, c, f, d, l, p, n, u),
- this.BA.push(a),
- a;
- break;
- case 9:
- m3C = this.fL ? 8 : 2;
- break;
- m3C = this.fL ? 1 : 5;
- break;
- case 7:
- R("");
- m3C = 8;
- break;
- m3C = 4;
- break;
- case 2:
- m3C = this.fL ? 1 : 5;
- break;
- }
- }
- };
- d.prototype.BO = function (a, b) {
- var n3C;
- n3C = 2;
- while (n3C !== 1) {
- switch (n3C) {
- case 2:
- return this.Rf && (a = this.Rf.BO(a, b)) ? a : !1;
- break;
- }
- }
- };
- w3C = 19;
- break;
- case 19:
- d.prototype.iia = function (a) {
- var y3C;
- y3C = 2;
- while (y3C !== 1) {
- switch (y3C) {
- case 2:
- return this.Rf && (a = this.Rf.QLa(a)) ? a : !1;
- break;
- }
- }
- };
- w3C = 18;
- break;
- case 18:
- d.prototype.nv = function () {
- var e3C;
- e3C = 2;
- while (e3C !== 1) {
- switch (e3C) {
- case 2:
- return this.Rf ? this.Rf.nv() : f.resolve([]);
- break;
- }
- }
- };
- d.prototype.D7a = function (a) {
- var S3C,
- b,
- U3C;
- S3C = 2;
- while (S3C !== 3) {
- U3C = "can't find ";
- U3C += "session";
- U3C += " in array, movieId:";
- switch (S3C) {
- case 4:
- g.Y(b) ? R(U3C, a.Md.R.u) : (this.BA.splice(b, 1), 0 === this.BA.length && this.zm.mFb(), this.zm.save(), this.Gf.save());
- S3C = 3;
- break;
- case 2:
- this.ub.uQ(null);
- b = this.BA.indexOf(a);
- S3C = 4;
- break;
- }
- }
- };
- d.prototype.gSa = function () {};
- d.prototype.rY = function (a, b, c) {
- var o3C;
- o3C = 2;
- while (o3C !== 1) {
- switch (o3C) {
- case 4:
- return u.EIa(a, b, c);
- break;
- o3C = 1;
- break;
- case 2:
- return u.EIa(a, b, c);
- break;
- }
- }
- };
- w3C = 27;
- break;
- case 27:
- d.prototype.YIa = function () {
- var p3C,
- A3C;
- p3C = 2;
- while (p3C !== 4) {
- A3C = "getSes";
- A3C += "sionStat";
- A3C += "istics: StreamingManage";
- A3C += "r";
- A3C += " not initted";
- switch (p3C) {
- case 9:
- p3C = this.fL ? 9 : 7;
- break;
- p3C = this.fL ? 1 : 5;
- break;
- case 1:
- return this.ub.Ukb();
- break;
- case 2:
- p3C = this.fL ? 1 : 5;
- break;
- case 8:
- return this.ub.Ukb();
- break;
- p3C = 4;
- break;
- case 5:
- R(A3C);
- p3C = 4;
- break;
- }
- }
- };
- d.prototype.VDa = function (a) {
- var g3C,
- b;
- g3C = 2;
- while (g3C !== 9) {
- switch (g3C) {
- case 3:
- this.ub && this.ub.reset();
- g3C = 9;
- break;
- case 2:
- b = this.Gf || new r(this.config, this.Yv);
- b.uGa(a);
- b.save();
- g3C = 3;
- break;
- }
- }
- };
- d.prototype.K2 = function (a) {
- var r3C;
- r3C = 2;
- while (r3C !== 1) {
- switch (r3C) {
- case 2:
- h.eO(a);
- r3C = 1;
- break;
- case 4:
- h.eO(a);
- r3C = 2;
- break;
- r3C = 1;
- break;
- }
- }
- };
- w3C = 24;
- break;
- case 34:
- d.prototype.sW = function () {
- var G3C;
- G3C = 2;
- while (G3C !== 1) {
- switch (G3C) {
- case 2:
- this.Rf && this.Rf.In();
- G3C = 1;
- break;
- }
- }
- };
- d.prototype.rDa = function () {
- var P3C;
- P3C = 2;
- while (P3C !== 1) {
- switch (P3C) {
- case 2:
- return this.Rf ? this.Rf.p1() : null;
- break;
- case 4:
- return this.Rf ? this.Rf.p1() : 1;
- break;
- P3C = 1;
- break;
- }
- }
- };
- d.prototype.SRa = function () {
- var T3C,
- a,
- J3C;
- T3C = 2;
- while (T3C !== 9) {
- J3C = "sessio";
- J3C += "nHistoryReport: ase-manager not";
- J3C += " initted";
- switch (T3C) {
- case 1:
- T3C = this.fL ? 5 : 3;
- break;
- case 5:
- a = new H.NS(this.zp.Tt, this.config, K);
- return {
- DF: a.SCa,
- BUb: a.TCa,
- SVb: a.tDb
- };
- break;
- case 3:
- R(J3C);
- T3C = 9;
- break;
- case 2:
- T3C = 1;
- break;
- }
- }
- };
- d.prototype.Jn = function () {
- var q3C,
- K3C;
- q3C = 2;
- while (q3C !== 7) {
- K3C = "Attempted to destruct Manager before all";
- K3C += " Session";
- K3C += "s removed";
- switch (q3C) {
- case 4:
- delete this.C$;
- delete this.Yv;
- delete this.Rf;
- m.BD.reset();
- q3C = 7;
- break;
- case 2:
- D.assert(0 === this.BA.length, K3C);
- this.fL = !1;
- delete this.sU;
- q3C = 4;
- break;
- }
- }
- };
- return d;
- break;
- case 24:
- d.prototype.tW = function (a, b) {
- var R3C,
- k3C;
- R3C = 2;
- while (R3C !== 1) {
- k3C = "c";
- k3C += "at";
- k3C += "c";
- k3C += "h";
- switch (R3C) {
- case 2:
- this.Rf && (a = this.Rf.fzb(this, a), g.Y(b) || a.then(b), a[k3C](function (a) {
- var f3C,
- F3C;
- f3C = 2;
- while (f3C !== 1) {
- F3C = "cac";
- F3C += "hePrepare ";
- F3C += "caught ";
- F3C += "error:";
- switch (f3C) {
- case 4:
- J("", a);
- f3C = 7;
- break;
- f3C = 1;
- break;
- case 2:
- J(F3C, a);
- f3C = 1;
- break;
- }
- }
- }));
- R3C = 1;
- break;
- }
- }
- };
- d.prototype.vM = function () {
- var Y3C;
- Y3C = 2;
- while (Y3C !== 1) {
- switch (Y3C) {
- case 2:
- this.Rf && this.Rf.flush();
- Y3C = 1;
- break;
- }
- }
- };
- d.prototype.mba = function () {
- var j3C;
- j3C = 2;
- while (j3C !== 1) {
- switch (j3C) {
- case 2:
- this.Rf && this.Rf.$Ga();
- j3C = 1;
- break;
- }
- }
- };
- d.prototype.wM = function () {
- var H3C;
- H3C = 2;
- while (H3C !== 1) {
- switch (H3C) {
- case 2:
- return this.Rf ? this.Rf.list() : [];
- break;
- case 4:
- return this.Rf ? this.Rf.list() : [];
- break;
- H3C = 1;
- break;
- }
- }
- };
- d.prototype.sDa = function (a) {
- var E3C;
- E3C = 2;
- while (E3C !== 1) {
- switch (E3C) {
- case 2:
- this.Rf && this.Rf.oma(a);
- E3C = 1;
- break;
- }
- }
- };
- w3C = 34;
- break;
- }
- }
- }
- (d.EventEmitter);
- b.Vsa = d;
- }, function (d, b) {
- function a(a, b) {
- var d;
- d = {};
- Object.keys(b).forEach(function (k) {
- d[k] = c(a, b[k]);
- });
- return d;
- }
- function c(a, b) {
- return {
- oa: a.viewableId,
- sf: b.startTimeMs,
- Bg: b.endTimeMs || Infinity,
- ol: b.defaultNext || null,
- pe: b.transitionHint,
- C2: b.transitionDelayZones,
- next: b.next
- };
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.qjb = b.BSa = b.fcb = b.gcb = b.QDa = void 0;
- b.QDa = function (b) {
- return {
- Th: b.initialSegment,
- pe: b.transitionType,
- Va: a(b, b.segments)
- };
- };
- b.gcb = a;
- b.fcb = c;
- b.BSa = function (a, b) {
- var c;
- return {
- Th: b,
- pe: "lazy",
- Va: (c = {}, c[b] = {
- oa: a,
- sf: 0,
- Bg: Infinity,
- ol: null,
- next: {}
- }, c)
- };
- };
- b.qjb = function (a, b) {
- var c,
- l,
- q;
- a = Math.max(a.duration - 3E4, 3E4);
- for (var d = {}, g, h = 0, f = 0; f < a; f += 3E4) {
- l = "s" + h++;
- q = {
- oa: b,
- sf: f,
- Bg: f + 3E4 < a ? f + 3E4 : null
- };
- void 0 !== g && (g.next = (c = {}, c[l] = {
- weight: 1
- }, c), g.ol = l);
- g = d[l] = q;
- }
- return {
- Th: "s0",
- Va: d,
- pe: "lazy"
- };
- };
- }, function (d, b, a) {
- var c,
- g,
- q;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.NCa = void 0;
- c = a(22);
- g = a(73);
- q = a(11);
- b.NCa = function (a) {
- if (a.q3a)
- return a;
- g(c.EventEmitter.prototype, a);
- Object.defineProperties(a, {
- q3a: {
- value: !0
- },
- Eya: {
- set: function (a) {
- this.isReady = a;
- }
- },
- Ic: {
- get: function () {
- return this.isReady ? new q.ka(this.$d(), 1E3) : void 0;
- }
- }
- });
- return a;
- };
- }, function (d, b, a) {
- var c,
- g,
- q;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.uya = void 0;
- c = a(17);
- g = a(4);
- q = a(6);
- d = function () {
- function a(a, b) {
- this.console = a;
- this.aga = b;
- this.kFa = [];
- this.aDa = {};
- }
- a.prototype.XC = function (a, b) {
- void 0 === b ? this.kFa = a : this.aDa[b] = a;
- };
- a.prototype.Ijb = function (a, b) {
- var d,
- f,
- k,
- l;
- d = this;
- a = this.aga(a);
- q.assert(void 0 !== a);
- null === (f = g.Gx) || void 0 === f ? void 0 : f.call(g, a);
- l = null !== (k = this.aDa[a]) && void 0 !== k ? k : this.kFa;
- return b.map(function (a) {
- return c.YL(a.PF, a.O, l, d.console).inRange;
- });
- };
- return a;
- }
- ();
- b.uya = d;
- }, function (d, b, a) {
- var g,
- q;
- function c(a, b, c) {
- var d,
- f;
- d = Array.isArray(c) ? c[0] : c;
- f = Array.isArray(c) ? c[1] : c;
- b.on(d, function (b) {
- a.emit(f, g.__assign(g.__assign({}, b), {
- type: f
- }));
- });
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.kMa = b.lMa = void 0;
- g = a(0);
- q = a(155);
- b.lMa = function (a, b, d, h) {
- [["debug", "managerdebugevent"], "endOfStream", "initialAudioTrack", "locationSelected", "logdata", "openComplete", "startEvent", ["streamerEnd", "streamerend"]].forEach(function (a) {
- c(d, h.events, a);
- });
- h.events.on("error", function (a) {
- a = g.__assign(g.__assign({}, a), {
- manifestIndex: 0
- });
- d.emit("error", a);
- });
- h.events.on("segmentComplete", function (a) {
- var b;
- b = d.EG(a.segmentId);
- d.emit("segmentComplete", {
- type: "segmentComplete",
- mediaType: a.mediaType,
- manifestIndex: b,
- segmentId: a.segmentId
- });
- });
- h.events.on("segmentNormalized", function (a) {
- var b,
- c,
- f;
- b = d.EG(a.segmentId);
- c = Math.floor(a.normalizedEnd.va);
- f = Math.floor(a.contentEnd.va);
- d.emit("maxPosition", {
- type: "maxPosition",
- index: b,
- endPts: c,
- maxPts: f
- });
- if (0 < b)
- return d.fail("ManifestRangeEvent not implemented for non-zero manifestIndex");
- a = Math.floor(a.normalizedStart.va);
- d.emit("manifestRange", {
- type: "manifestRange",
- index: b,
- manifestOffset: 0,
- startPts: 0 === b ? 0 : a,
- endPts: c,
- maxPts: f
- });
- });
- h.events.on("segmentStarting", function (a) {
- d.emit("maxBitrates", {
- type: "maxBitrates",
- audio: a.maxBitrates.audio,
- video: a.maxBitrates.video
- });
- d.emit("segmentStarting", a);
- });
- h.events.on("serverSwitch", function (a) {
- var b;
- b = d.EG(a.segmentId);
- d.emit("serverSwitch", {
- type: "serverSwitch",
- manifestIndex: b,
- segmentId: a.segmentId,
- mediatype: a.mediatype,
- server: a.server,
- reason: a.reason,
- location: a.location,
- bitrate: a.bitrate,
- confidence: a.confidence,
- throughput: a.throughput,
- oldserver: a.oldserver
- });
- });
- h.events.on("streamSelected", function (a) {
- var b,
- c;
- b = d.EG(a.position.Na);
- c = h.dga(a.position);
- d.emit("streamSelected", {
- type: "streamSelected",
- nativetime: a.nativetime,
- mediaType: a.mediaType,
- streamId: a.streamId,
- manifestIndex: b,
- trackIndex: a.trackIndex,
- streamIndex: a.streamIndex,
- movieTime: c.gca.va,
- bandwidth: a.bandwidth,
- longtermBw: a.longtermBw,
- rebuffer: a.rebuffer
- });
- });
- h.events.on("updateStreamingPts", function (a) {
- var c,
- f;
- c = d.u;
- f = d.EG(a.position.Na);
- b.fg.nq(c) && (c = h.dga(a.position), d.emit("updateStreamingPts", {
- type: "updateStreamingPts",
- mediaType: a.mediaType,
- manifestIndex: f,
- trackIndex: a.trackIndex,
- movieTime: c.gca.va
- }));
- });
- };
- b.kMa = function (a, b, d, h) {
- [["debug", "managerdebugevent"], "buffering", "bufferingStarted", "segmentAppended", "segmentPresenting", "startEvent", "logdata"].forEach(function (a) {
- return c(b, d.events, a);
- });
- d.events.on("bufferingComplete", function (c) {
- var f,
- h,
- k,
- g,
- l;
- g = d.cZ(c.actualStartPosition).va;
- l = null === (h = null === (f = a.fg.ub.get()) || void 0 === f ? void 0 : f.Fa) || void 0 === h ? void 0 : h.Ca;
- b.jUa("startplay", q.lE.Qma);
- b.emit("logdata", {
- type: "logdata",
- target: "startplay",
- fields: {
- hasasereport: !1,
- hashindsight: !1,
- buffCompleteReason: c.reason,
- actualbw: l,
- initSelReason: null !== (k = c.initSelReason) && void 0 !== k ? k : "unknown"
- }
- });
- b.emit("ptschanged", g);
- b.emit("bufferingComplete", {
- type: "bufferingComplete",
- time: c.time,
- actualStartPts: g,
- aBufferLevelMs: c.aBufferLevelMs,
- vBufferLevelMs: c.vBufferLevelMs,
- selector: c.selector,
- initBitrate: c.initBitrate,
- skipbackBufferSizeBytes: c.skipbackBufferSizeBytes
- });
- });
- d.events.on("streamPresenting", function (a) {
- var c,
- f,
- d;
- c = a.position.Na;
- f = a.playerTimestamp.va;
- d = b.sb.dga(a.position);
- void 0 === d ? h.warn("ShimSession cannot map streamPresenting: " + JSON.stringify(a)) : (c = b.EG(c), b.emit("streamPresenting", {
- type: "streamPresenting",
- startPts: Math.floor(f),
- contentStartPts: Math.floor(d.gca.va),
- mediaType: a.mediaType,
- manifestIndex: c,
- trackIndex: a.trackIndex,
- streamIndex: a.streamIndex
- }));
- });
- d.events.on("ptsChanged", function (a) {
- b.emit("ptschanged", a.va);
- });
- };
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.lxa = void 0;
- d = function () {
- function a() {}
- Object.defineProperties(a.prototype, {
- GM: {
- get: function () {
- return "StartplayFieldsReporter";
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- enabled: {
- get: function () {
- return !0;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- a.prototype.zN = function () {};
- return a;
- }
- ();
- b.lxa = d;
- }, function (d, b, a) {
- var c,
- g,
- q;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.ywa = void 0;
- c = a(0);
- g = a(63);
- q = a(155);
- d = function () {
- function a(a) {
- this.$l = a;
- }
- Object.defineProperties(a.prototype, {
- GM: {
- get: function () {
- return "queue-audit";
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- nNa: {
- get: function () {
- return "qaudit";
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- enabled: {
- get: function () {
- return g.Za;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- a.prototype.zN = function (a) {
- var b,
- d,
- f,
- l;
- if (a.uq === q.lE.Cda && (a = this.$l.Pea())) {
- f = {};
- try {
- for (var k = c.__values(a.yyb), g = k.next(); !g.done; g = k.next()) {
- l = g.value;
- f[l.M] = this.Ltb(l);
- }
- } catch (C) {
- b = {
- error: C
- };
- }
- finally {
- try {
- g && !g.done && (d = k["return"]) && d.call(k);
- }
- finally {
- if (b)
- throw b.error;
- }
- }
- return {
- branchQueue: this.Jtb(a.$zb),
- playerIterator: f
- };
- }
- };
- a.prototype.Ltb = function (a) {
- return null === a || void 0 === a ? void 0 : a.rIa();
- };
- a.prototype.Itb = function (a) {
- var b,
- c,
- f;
- b = this;
- if (a) {
- c = a.da;
- f = {};
- a.JY().forEach(function (a) {
- f[a.M] = b.Ktb(a);
- });
- return {
- sId: null === c || void 0 === c ? void 0 : c.id,
- cancelled: a.Yp,
- RM: f
- };
- }
- return a;
- };
- a.prototype.Ktb = function (a) {
- if (a && a.Ia)
- return a.Ia.Hfa();
- };
- a.prototype.Jtb = function (a) {
- var b;
- b = this;
- return a.map(function (a) {
- return b.Itb(a);
- });
- };
- return a;
- }
- ();
- b.ywa = d;
- }, function (d, b, a) {
- var c;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.era = void 0;
- c = a(155);
- d = function () {
- function a(a) {
- this.ub = a;
- }
- Object.defineProperties(a.prototype, {
- GM: {
- get: function () {
- return "EndplayFieldsReporter";
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- enabled: {
- get: function () {
- return !0;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- a.prototype.zN = function (a) {
- var b,
- d;
- if (a.uq === c.lE.Cda && this.ub) {
- a = {};
- b = this.ub.get();
- b && b.avtp && b.avtp.Ca && (a.avtp = b.avtp.Ca, a.dltm = b.avtp.rX);
- b && b.cdnavtp && (a.cdnavtp = b.cdnavtp, a.activecdnavtp = b.activecdnavtp);
- this.ub.flush();
- b = this.ub.eIa();
- d = this.ub.GBa;
- if (b)
- for (var g in b)
- b.hasOwnProperty(g) && (a["ne" + g] = Number(b[g]).toFixed(6));
- d && d.length && (a.activeRequests = JSON.stringify(d));
- return a;
- }
- };
- return a;
- }
- ();
- b.era = d;
- }, function (d, b, a) {
- var c;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.toa = void 0;
- c = a(0);
- d = function (a) {
- function b(c, d) {
- c = a.call(this, b.Jkb(c, d)) || this;
- c.N4a = d;
- c.name = "AggregateError";
- return c;
- }
- c.__extends(b, a);
- b.Jkb = function (a, b) {
- return b.reduce(function (a, b) {
- return a + "\n" + b;
- }, a);
- };
- Object.defineProperties(b.prototype, {
- rG: {
- get: function () {
- return this.N4a;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- return b;
- }
- (Error);
- b.toa = d;
- }, function (d, b, a) {
- var c,
- g,
- q,
- n,
- k,
- p,
- h,
- f,
- u,
- m,
- r,
- t,
- H,
- D,
- K;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.axa = void 0;
- c = a(0);
- g = a(22);
- q = a(211);
- n = a(17);
- k = a(11);
- p = a(6);
- h = a(34);
- f = a(7);
- u = a(155);
- m = a(760);
- r = a(759);
- t = a(758);
- H = a(757);
- D = a(756);
- K = a(755);
- d = function (a) {
- function b(b, c, f, d, h, l, p, q, m, r, A, G, t) {
- var C;
- C = a.call(this) || this;
- C.console = b;
- C.bC = c;
- C.Zza = f;
- C.sb = d;
- C.oF = h;
- C.bD = l;
- C.X = r;
- C.JZ = A;
- C.config = G;
- C.WIb = t;
- C.hL = !1;
- C.Sf = new g.Ll();
- C.g6a = d.Gg.Va[C.JZ].oa;
- C.aF = new k.cK(n.ma.Pg);
- C.X2 = new D.uya(C.console, function (a) {
- return C.sb.Gg.Va[a].oa;
- });
- C.sb.$Db(C.X2);
- d.kSa({
- M1: function () {
- return C.oF[0];
- }
- }, {
- M1: function () {
- return C.oF[1];
- }
- });
- C.kSb = !1;
- C.jSb = !1;
- C.m1 = new u.wwa(G);
- H.lMa(C.console, c, C, C.sb);
- return C;
- }
- c.__extends(b, a);
- Object.defineProperties(b.prototype, {
- u: {
- get: function () {
- return this.g6a;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- Ak: {
- get: function () {
- return this.Sf;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- Md: {
- get: function () {
- return {
- oqb: {
- 1: {
- $: {
- na: Infinity
- }
- }
- }
- };
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- addEventListener: {
- get: function () {
- return this.addListener.bind(this);
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- removeEventListener: {
- get: function () {
- return this.removeListener.bind(this);
- },
- enumerable: !1,
- configurable: !0
- }
- });
- b.prototype.H2 = function () {
- p.assert(!1);
- };
- b.prototype.open = function () {
- var a;
- if (!this.hL) {
- this.hL = !0;
- this.m1.qaa(new m.era(this.bC.ub));
- this.m1.qaa(new t.lxa());
- this.sb.open();
- this.emit("openComplete", {
- type: "openComplete"
- });
- this.sb.CRa(this.bD);
- a = this.Teb(this.X);
- this.m1.qaa(new r.ywa(a));
- this.kp = this.X;
- this.$l = a;
- H.kMa(this.bC, this, this.$l, this.console);
- this.sb.P$a(a);
- }
- };
- b.prototype.Teb = function (a) {
- a = K.NCa(a);
- return this.bC.fg.F9a(a);
- };
- b.prototype.close = function () {
- this.hL && (this.hL = !1);
- };
- Object.defineProperties(b.prototype, {
- aW: {
- get: function () {
- return "1.5";
- },
- enumerable: !1,
- configurable: !0
- }
- });
- b.prototype.jUa = function (a, b) {
- b = this.m1.zN(b);
- this.emit("logdata", {
- type: "logdata",
- target: a,
- fields: c.__assign(c.__assign({}, b), {
- aseApiVersion: this.aW
- })
- });
- };
- b.prototype.flush = function () {
- this.jUa("endplay", u.lE.Cda);
- this.sb.Xg();
- this.bC.Gf.save();
- this.bC.zm.save();
- };
- b.prototype.paused = function () {
- this.aF.value === n.ma.Pc && (this.aF.set(n.ma.Lh), this.kp.emit("paused", {
- type: "paused",
- Vc: this.kp.Ic
- }));
- };
- b.prototype.kR = function () {
- this.aF.value === n.ma.Lh && (this.aF.set(n.ma.Pc), this.kp.emit("playing", {
- type: "playing",
- Vc: this.kp.Ic
- }));
- };
- b.prototype.yc = function () {
- var a;
- this.WIb.release();
- this.bC.nBb(this);
- this.hL && this.close();
- clearInterval(this.Rw);
- this.Rw = void 0;
- null === (a = this.$l) || void 0 === a ? void 0 : a.Jn();
- this.hA && (this.hA.clear(), this.hA = void 0);
- };
- b.prototype.suspend = function () {
- p.assert(!1, "Not supported");
- };
- b.prototype.resume = function () {
- p.assert(!1, "Not supported");
- };
- b.prototype.play = function () {
- var a;
- a = this;
- this.sb.state !== q.fw.CLOSED && (this.kp.Eya = !0, this.kp.emit("playing", {
- type: "playing",
- Vc: this.kp.Ic
- }), this.aF.set(n.ma.Pc), this.emit("play"), this.Rw || (this.Rw = setInterval(function () {
- var b;
- return null === (b = a.$l) || void 0 === b ? void 0 : b.Tvb();
- }, this.config.WA)));
- };
- b.prototype.stop = function () {
- this.aF.set(n.ma.pE);
- this.sb.Xg();
- this.kp.emit("paused", {
- type: "paused",
- Vc: this.kp.Ic
- });
- this.kp.Eya = !1;
- this.emit("stop");
- };
- b.prototype.wX = function (a, b) {
- void 0 === b && (b = !0);
- if (!this.$l)
- return this.fail("Must call open prior to drmReady");
- a = parseInt(a);
- f.isFinite(a) && (b ? this.$l.tQ(a) : this.$l.EDb(a));
- };
- b.prototype.jga = function () {
- var a;
- if (!this.$l)
- return !1;
- a = this.bC.fg.nq(this.sb.Gg.Va[this.LY()].oa);
- return this.$l.cv(a);
- };
- b.prototype.sUa = function () {
- this.kp.emit("underflow", {
- type: "underflow",
- Vc: this.kp.Ic
- });
- };
- b.prototype.Zh = function () {
- return this.yq("skipped");
- };
- b.prototype.xDa = function (a, b) {
- var c;
- c = this.PY(b || 0);
- b = this.sb.Gg.Va[c].sf;
- return (a = this.sb.DNa({
- Na: c,
- offset: h.ka.Ff(a - b)
- })) && b + a.offset.va;
- };
- b.prototype.Rr = function (a, b) {
- var c;
- c = new h.ka(b, 1E3);
- return (c = this.sb.Kv(c)) && c.Na === this.PY(a || 0) ? this.sb.Gg.Va[c.Na].sf + c.offset.va : this.fail("convertPlayerPtsToContentPts failed to convert manifestIndex " + a + ", playerPts: " + b);
- };
- b.prototype.KM = function (a, b) {
- var c;
- c = this.PY(a || 0);
- c = {
- Na: c,
- offset: new h.ka(b - this.sb.Gg.Va[c].sf, 1E3)
- };
- return (c = this.sb.cZ(c)) ? c.va : this.fail("convertPtsToPlayerPts failed to convert manifestIndex " + a + ", playerPts: " + b);
- };
- b.prototype.NZ = function () {
- return {};
- };
- b.prototype.G0 = function () {
- return this.yq("pipeliningDisabled");
- };
- b.prototype.LY = function () {
- return this.sb.mzb.Na;
- };
- b.prototype.uY = function () {
- return this.yq("getChildBranchInfo");
- };
- b.prototype.KY = function () {
- return {
- id: this.LY(),
- ie: 0,
- ed: 0,
- ze: 0,
- zc: 0,
- Wb: 0
- };
- };
- b.prototype.JQa = function () {
- return this.yq("removeSession");
- };
- b.prototype.Vy = function (a, b, c) {
- void 0 === b && (b = 0);
- b = null !== c && void 0 !== c ? c : this.PY(b);
- a = this.sb.CRa({
- Na: b,
- offset: h.ka.Ff(a - this.sb.Gg.Va[b].sf)
- });
- p.assert(a, "Valid position must be provided for seek");
- return a.offset.va;
- };
- b.prototype.seek = function (a, b) {
- a = this.Rr(b, a);
- return this.Vy(a, b);
- };
- b.prototype.vu = function () {
- return this.yq("chooseNextSegment");
- };
- b.prototype.NBa = function () {
- return this.yq("addManifest");
- };
- b.prototype.PL = function () {
- return this.yq("activateManifest");
- };
- b.prototype.aOa = function () {
- var a;
- a = this;
- p.assert(void 0 !== this.yA);
- this.oF[0] = this.yA;
- this.sb.kSa({
- M1: function () {
- return a.oF[0];
- }
- }, {
- M1: function () {
- return a.oF[1];
- }
- });
- p.assert(void 0 === this.hA);
- this.hA = new g.Ll();
- this.hA.on(this.$l.events, "bufferingComplete", function () {
- p.assert(void 0 !== a.yA);
- a.emit("audioTrackSwitchComplete", {
- type: "audioTrackSwitchComplete",
- trackId: a.Zza.audio_tracks[a.yA].track_id,
- trackIndex: a.yA
- });
- a.yA = void 0;
- a.hA.clear();
- a.hA = void 0;
- });
- };
- b.prototype.pTa = function (a) {
- var b,
- c,
- f,
- d;
- b = a.RA;
- if (void 0 !== this.yA)
- return !1;
- a = this.Zza.audio_tracks;
- if (!a.some(function (a, d) {
- if (a.track_id === b)
- return c = a, f = d, !0;
- }))
- return !1;
- d = this.oF[0];
- this.yA = f;
- a = a[d];
- this.emit("audioTrackSwitchStarted", {
- type: "audioTrackSwitchStarted",
- oldLangCode: a.language,
- oldNumChannels: a.channels,
- newLangCode: c.language,
- newNumChannels: c.channels
- });
- return !0;
- };
- b.prototype.XC = function (a, b) {
- this.X2.XC(a, b);
- };
- b.prototype.ru = function () {
- return !1;
- };
- b.prototype.KX = function () {
- return this.yq("evaluateQoE");
- };
- b.prototype.Rma = function () {
- return this.yq("stopBuffering");
- };
- b.prototype.EI = function () {
- return this.yq("startBuffering");
- };
- b.prototype.bJa = function () {
- return this.yq("getStreamingStatistics");
- };
- b.prototype.fail = function (a) {
- this.emit("error", {
- type: "error",
- error: "NFErr_MC_StreamingFailure",
- errormsg: a,
- manifestIndex: 0
- });
- };
- b.prototype.EG = function (a) {
- return a !== this.JZ ? this.fail("Unexpected segmentId: " + a + ", " + ("single viewable playback initialSegmentId: " + this.JZ)) : 0;
- };
- b.prototype.PY = function (a) {
- return 0 !== a ? this.fail("Unexpected manifestIndex: " + a + ", single viewable playback only supports manifestIndex: 0") : this.JZ;
- };
- b.prototype.yq = function (a) {
- return this.fail("Method not implemented " + a);
- };
- return b;
- }
- (g.EventEmitter);
- b.axa = d;
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- }, function (d, b, a) {
- var c,
- g;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Awa = void 0;
- c = a(4);
- g = a(6);
- d = function () {
- var u3C;
- u3C = 2;
- function a(a, b) {
- var w1C,
- a1C,
- v1C,
- D1C;
- w1C = 2;
- while (w1C !== 9) {
- a1C = "1SIYb";
- a1C += "ZrN";
- a1C += "JCp9";
- v1C = "me";
- v1C += "dia|";
- v1C += "a";
- v1C += "sejs";
- D1C = "ASEJS_";
- D1C += "REQUEST_PAC";
- D1C += "E";
- D1C += "R";
- switch (w1C) {
- case 1:
- this.config = b;
- this.m0 = 0;
- this.console = new c.Console(D1C, v1C);
- a1C;
- w1C = 9;
- break;
- case 2:
- this.yha = a;
- w1C = 1;
- break;
- }
- }
- }
- while (u3C !== 3) {
- switch (u3C) {
- case 2:
- a.prototype.wF = function () {
- var V1C;
- V1C = 2;
- while (V1C !== 1) {
- switch (V1C) {
- case 2:
- this.m0++;
- V1C = 1;
- break;
- case 4:
- this.m0--;
- V1C = 9;
- break;
- V1C = 1;
- break;
- }
- }
- };
- a.prototype.i1 = function () {
- var s1C,
- t1C;
- s1C = 2;
- while (s1C !== 4) {
- t1C = "Received remo";
- t1C += "ve request";
- t1C += " when there are no";
- t1C += " requests outstand";
- t1C += "ing";
- switch (s1C) {
- case 2:
- this.m0--;
- g.assert(0 <= this.m0, t1C);
- this.yM();
- s1C = 4;
- break;
- }
- }
- };
- a.prototype.yM = function () {
- var z1C,
- a;
- z1C = 2;
- while (z1C !== 5) {
- switch (z1C) {
- case 3:
- a = this.config.Cia;
- z1C = 8;
- break;
- z1C = 1;
- break;
- case 2:
- a = this.config.Cia;
- z1C = 1;
- break;
- case 1:
- z1C = this.m0 < a && this.yha() ? 1 : 5;
- break;
- }
- }
- };
- return a;
- break;
- }
- }
- }
- ();
- b.Awa = d;
- }, function (d, b, a) {
- var c,
- g,
- q,
- n;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.mpa = void 0;
- c = a(4);
- g = a(17);
- q = a(11);
- n = a(6);
- d = function () {
- function a(a) {
- void 0 === a && (a = 500);
- this.abb = a;
- this.state = new q.cK(g.Ye.$m);
- this.Ky = new q.cK(g.ma.Pg);
- }
- Object.defineProperties(a.prototype, {
- Dg: {
- get: function () {
- return this.state.value === g.Ye.Ce || this.state.value === g.Ye.Ng;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- a.prototype.FCa = function (a) {
- n.assert(!this.events, "Cannot reassign BufferingStateTracker emitter!");
- this.events = a;
- this.Dg && (this.dGa(), this.mSa());
- };
- a.prototype.AFa = function () {
- this.events = void 0;
- this.Iba();
- };
- a.prototype.Twb = function () {
- this.EI(void 0, !1);
- };
- a.prototype.ADb = function (a) {
- n.assert(this.state.value === g.Ye.Ce && void 0 === this.bD);
- this.bD = a;
- };
- a.prototype.LDb = function (a, b, c) {
- n.assert(this.Dg);
- void 0 === this.Yga && void 0 === this.Vga && (this.Yga = a, this.Vga = b, this.qKa = c);
- };
- a.prototype.yDb = function (a, b, c) {
- n.assert(this.Dg && void 0 === this.mu && void 0 === this.T2 && void 0 === this.RV);
- this.mu = a;
- this.T2 = b;
- this.RV = c;
- };
- a.prototype.Ek = function (a) {
- this.EI(a, !0);
- };
- a.prototype.zDb = function (a) {
- n.assert(this.Dg);
- this.Kr = a;
- };
- a.prototype.xj = function () {
- n.assert(this.Dg);
- this.Kr = 100;
- this.Iba();
- this.events && this.cib();
- this.set(g.Ye.NT);
- this.RV = this.T2 = this.mu = this.qKa = this.Vga = this.Yga = this.bD = void 0;
- };
- a.prototype.stop = function () {
- this.set(g.Ye.$m);
- this.Iba();
- };
- a.prototype.EI = function (a, b) {
- n.assert(void 0 !== a && !0 === b || void 0 === a && !1 === b);
- this.bD = a;
- this.Kr = 0;
- this.h0 = void 0;
- a = this.Dg;
- this.set(b ? g.Ye.Ng : g.Ye.Ce);
- !a && this.events && (this.dGa(), this.mSa());
- };
- a.prototype.set = function (a) {
- this.state.set(a);
- switch (a) {
- case g.Ye.$m:
- this.Ky.set(g.ma.$m);
- break;
- case g.Ye.Ce:
- this.Ky.set(g.ma.Ce);
- break;
- case g.Ye.Ng:
- this.Ky.set(g.ma.Ng);
- break;
- case g.Ye.NT:
- this.Ky.set(g.ma.Pc);
- }
- };
- a.prototype.dGa = function () {
- n.assert(this.events && void 0 !== this.Kr);
- this.h0 = this.Kr;
- this.events.emit("bufferingStarted", {
- type: "bufferingStarted",
- time: c.time.ea(),
- percentage: this.Kr
- });
- };
- a.prototype.mSa = function () {
- var a;
- a = this;
- this.Bja = setInterval(function () {
- return a.dib();
- }, this.abb);
- };
- a.prototype.Iba = function () {
- this.Bja && (clearInterval(this.Bja), this.Bja = void 0);
- };
- a.prototype.dib = function () {
- this.Dg && this.events && void 0 !== this.Kr && this.Kr !== this.h0 && this.events.emit("buffering", {
- type: "buffering",
- time: c.time.ea(),
- percentage: this.Kr
- }) && (this.h0 = this.Kr);
- };
- a.prototype.cib = function () {
- var a;
- n.assert(this.events && this.bD && void 0 !== this.mu && void 0 !== this.RV && void 0 !== this.T2);
- this.h0 = this.Kr;
- this.events.emit("bufferingComplete", {
- type: "bufferingComplete",
- time: c.time.ea(),
- actualStartPosition: this.bD,
- reason: this.mu,
- aBufferLevelMs: this.RV,
- vBufferLevelMs: this.T2,
- selector: this.Yga,
- initBitrate: this.Vga,
- initSelReason: null === (a = this.qKa) || void 0 === a ? void 0 : a.reason,
- skipbackBufferSizeBytes: this.WVb
- });
- };
- return a;
- }
- ();
- b.mpa = d;
- }, function (d, b, a) {
- var c,
- g,
- q;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Mva = void 0;
- c = a(0);
- g = a(11);
- q = a(50);
- d = function () {
- function a() {
- this.Sc = new g.kua();
- }
- Object.defineProperties(a.prototype, {
- size: {
- get: function () {
- return this.Sc.size;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- a.prototype.reset = function () {
- var a;
- a = this.Sc.values();
- this.Sc.clear();
- a.forEach(function (a) {
- return a.Xg();
- });
- };
- a.prototype.Sea = function (a) {
- return this.Sc.get(a);
- };
- a.prototype.ila = function (a) {
- return this.Sc["delete"](a.da.id, a);
- };
- a.prototype.forEach = function (a) {
- var b;
- b = this;
- this.Sc.forEach(function (c, f) {
- return a(c, f, b);
- });
- };
- a.prototype.reduce = function (a, b) {
- var c;
- c = this;
- return this.Sc.reduce(function (b, d, h) {
- return a(b, d, h, c);
- }, b);
- };
- a.prototype.map = function (a) {
- var b;
- b = this;
- return this.Sc.map(function (c, f) {
- return a(c, f, b);
- });
- };
- a.prototype.filter = function (a) {
- var b;
- b = this;
- return this.Sc.filter(function (c, f) {
- return a(c, f, b);
- });
- };
- a.prototype.wHb = function (a, b) {
- var d,
- f;
- d = this;
- f = q.CEa(a);
- a = Object.keys(f).map(function (a) {
- return [a, f[a], d.Sc.count(a)];
- });
- this.Sc.keys().filter(function (a) {
- return void 0 === f[a];
- }).forEach(function (a) {
- d.Sc.get(a).forEach(function (a) {
- return a.Xg();
- });
- d.Sc["delete"](a);
- });
- a.filter(function (a) {
- a = c.__read(a, 3);
- return a[1] < a[2];
- }).forEach(function (a) {
- var b;
- a = c.__read(a, 3);
- b = a[0];
- a = a[1];
- return d.Sc.get(b).slice(a).forEach(function (a) {
- a.Xg();
- d.Sc["delete"](b, a);
- });
- });
- a.filter(function (a) {
- a = c.__read(a, 3);
- return a[1] > a[2];
- }).forEach(function (a) {
- var f;
- f = c.__read(a, 3);
- a = f[0];
- for (var h = f[1], f = f[2], k = 0; k < h - f; ++k)
- d.Sc.set(a, b(a));
- });
- };
- return a;
- }
- ();
- b.Mva = d;
- }, function (d, b, a) {
- var c,
- g;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.yqa = void 0;
- c = a(6);
- g = a(374);
- d = function () {
- function a(a, b) {
- this.$hb = a;
- this.f$a = b;
- this.Yna = !1;
- this.FF = this.wx = 0;
- }
- a.prototype.YIb = function (a, b) {
- var h,
- f,
- k,
- l;
- function d() {
- var a,
- c,
- d;
- a = l.pop();
- c = f(a);
- if (c.wx !== n.wx) {
- c.wx = n.wx;
- d = b(a, c.Du, c.wka).Y2;
- k(a).forEach(function (b) {
- var k,
- g;
- k = b.NIb;
- g = f(k);
- g.wx !== h.wx && (b = c.Du + b.weight, g.FF !== h.FF ? d && (g.FF = h.FF, g.Du = b, g.wka = a, l.push(k)) : b < g.Du && (g.Du = b, g.wka = a, l.pzb(k)));
- });
- }
- }
- h = this;
- f = this.f$a;
- k = this.$hb;
- c.assert(!this.Yna);
- this.Yna = !0;
- this.wx = this.wx + 1 | 0;
- this.FF = this.FF + 1 | 0;
- l = new g.p6([a], function (a, b) {
- return f(a).Du - f(b).Du;
- });
- a = f(a);
- a.Du = 0;
- a.wka = void 0;
- for (var n = this; !l.empty; )
- d();
- this.Yna = !1;
- };
- return a;
- }
- ();
- b.yqa = d;
- }, function (d, b, a) {
- var c;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.xbb = b.vEa = void 0;
- c = a(772);
- b.vEa = function (a, b) {
- return new c.yqa(function (c) {
- return Object.keys(c.da.next || {}).map(function (d) {
- return {
- NIb: a.ah(d),
- weight: a.CJa(c, d) ? b : c.tB ? c.tB.Nb(c.Mm).va : Infinity
- };
- });
- }, function (a) {
- return a.g$a;
- });
- };
- b.xbb = function (a, b) {
- var c,
- d,
- g,
- h,
- f;
- c = Object.keys(a.Va);
- d = Object.keys(b.Va);
- g = d.filter(function (a) {
- return -1 === c.indexOf(a);
- });
- h = c.filter(function (a) {
- return -1 === d.indexOf(a);
- });
- f = c.filter(function (c) {
- return -1 === d.indexOf(c) ? !1 : a.Va[c].Bg !== b.Va[c].Bg;
- });
- return {
- RQb: g,
- qBb: h,
- CRb: f
- };
- };
- }, function (d, b, a) {
- var c;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Vva = void 0;
- c = a(11);
- d = function () {
- function a(a, b, d) {
- var k;
- k = this;
- this.id = a;
- this.da = b;
- this.pe = d;
- this.g$a = {};
- this.oAa = !1;
- this.UY = function (a) {
- var b,
- c,
- d;
- return null !== (d = null === (c = null === (b = k.da.next) || void 0 === b ? void 0 : b[a]) || void 0 === c ? void 0 : c.pe) && void 0 !== d ? d : k.pe;
- };
- this.J$ = new c.ka(b.sf, 1E3);
- this.t9 = void 0 !== b.Bg && null !== b.Bg ? new c.ka(b.Bg, 1E3) : c.ka.Tga;
- }
- Object.defineProperties(a.prototype, {
- oa: {
- get: function () {
- return this.da.oa;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- CH: {
- get: function () {
- return this.oAa;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- Mm: {
- get: function () {
- return this.J$;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- tB: {
- get: function () {
- return this.t9;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- T: {
- get: function () {
- return this.J$.va;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- na: {
- get: function () {
- return this.t9.va;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- Ly: {
- get: function () {
- return !1;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- Qs: {
- get: function () {
- return this.f0.length ? !this.da.ol && 0 === this.uja.length : !0;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- f0: {
- get: function () {
- var a,
- b;
- return Object.keys(null !== (b = null === (a = this.da) || void 0 === a ? void 0 : a.next) && void 0 !== b ? b : {});
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- uja: {
- get: function () {
- var a;
- a = this;
- return this.f0.filter(function (b) {
- var c,
- d;
- return !(null === (d = null === (c = a.da.next) || void 0 === c ? void 0 : c[b]) || void 0 === d || !d.weight);
- });
- },
- enumerable: !1,
- configurable: !0
- }
- });
- a.prototype.normalize = function (a, b) {
- this.J$ = a;
- this.t9 = b;
- this.oAa = !0;
- };
- a.prototype.SHa = function () {
- var a;
- return this.uja.length ? null !== (a = this.uja.map(this.UY).reduce(function (a, b) {
- return a === b ? b : void 0;
- })) && void 0 !== a ? a : this.pe : this.pe;
- };
- return a;
- }
- ();
- b.Vva = d;
- }, function (d, b, a) {
- var c,
- g;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Sva = void 0;
- c = a(0);
- g = a(774);
- d = function () {
- function a(a) {
- this.Gg = a;
- this.Va = {};
- }
- a.Wqb = function (a) {
- return "immediate" === a || "delayedSeamless" === a;
- };
- a.prototype.ah = function (a) {
- var b,
- c,
- d;
- c = this.Va[a];
- if (void 0 === c) {
- c = this.Gg.Va[a];
- if (void 0 === c)
- throw Error("Segment not found (" + a + ")");
- d = null !== (b = c.pe) && void 0 !== b ? b : this.Gg.pe;
- c = new g.Vva(a, c, d);
- this.Va[a] = c;
- }
- return c;
- };
- a.prototype.Hrb = function (a) {
- var b;
- return c.__generator(this, function (c) {
- switch (c.label) {
- case 0:
- return [4, a];
- case 1:
- c.uI(),
- b = a,
- c.label = 2;
- case 2:
- if (!b.da.ol)
- return [3, 4];
- b = this.ah(b.da.ol);
- return [4, b];
- case 3:
- return c.uI(),
- [3, 2];
- case 4:
- return [2];
- }
- });
- };
- a.prototype.Slb = function (a) {
- var b;
- b = this;
- return Object.keys(this.Gg.Va).filter(function (c) {
- var d;
- return void 0 !== (null === (d = b.Gg.Va[c].next) || void 0 === d ? void 0 : d[a.id]);
- }).map(function (a) {
- return b.ah(a);
- });
- };
- a.prototype.nob = function (a, b) {
- var c,
- d;
- return null === (d = null === (c = a.da.next) || void 0 === c ? void 0 : c[b]) || void 0 === d ? void 0 : d.weight;
- };
- a.prototype.CJa = function (b, c) {
- return a.Wqb(b.UY(c));
- };
- return a;
- }
- ();
- b.Sva = d;
- }, function (d, b) {
- function a(a, b, d, g, k, p, h) {
- if (h && -1 === b.indexOf(h.id) && !a.CJa(h, k.id))
- return {
- Y2: !1
- };
- a = h && a.nob(h, k.id);
- if (void 0 === a || 0 < a)
- if (-1 !== b.indexOf(k.id) || p < d)
- return g.push(k.id), {
- Y2: !0
- };
- return {
- Y2: !1
- };
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.ZIb = b.TP = void 0;
- b.TP = function (b, d, g, n, k) {
- var c,
- h,
- f;
- h = [];
- f = (null === (c = g.tB) || void 0 === c ? void 0 : c.Nb(g.Mm).va) || 0;
- d.YIb(g, function (c, d, g) {
- return a(b, n, k.va + f, h, c, d, g);
- });
- return h;
- };
- b.ZIb = a;
- }, function (d, b, a) {
- var c,
- g;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.fxa = void 0;
- c = a(0);
- d = a(375);
- g = a(206);
- new(a(4)).Console("ASEJS_PREDICTOR", "media|asejs");
- a = function (a) {
- var Q1C;
- Q1C = 2;
- while (Q1C !== 3) {
- switch (Q1C) {
- case 4:
- return b;
- break;
- case 14:
- return b;
- break;
- Q1C = 3;
- break;
- case 2:
- c.__extends(b, a);
- b.CEb = function (a, b) {
- var N1C,
- c,
- f;
- N1C = 2;
- while (N1C !== 3) {
- switch (N1C) {
- case 2:
- f = !!a.cp;
- b.cna && (null === (c = a.Fa) || void 0 === c ? void 0 : c.Ca) < b.HM && (f = !0);
- return f;
- break;
- }
- }
- };
- b.prototype.hlb = function (a, b) {
- var O1C,
- c,
- f;
- O1C = 2;
- while (O1C !== 8) {
- switch (O1C) {
- case 2:
- c = this.config;
- f = b ? c.aca : c.Waa;
- b = b ? c.bca : c.Yaa;
- Array.isArray(b) && (f = g.wGa(b, a.em - a.Ic, c.Xaa));
- return f;
- break;
- }
- }
- };
- Q1C = 4;
- break;
- }
- }
- function b(c, d) {
- var x1C,
- h,
- l1C;
- x1C = 2;
- while (x1C !== 8) {
- l1C = "1";
- l1C += "SI";
- l1C += "YbZ";
- l1C += "r";
- l1C += "NJCp9";
- switch (x1C) {
- case 4:
- h.Q0 = function (a, c, d) {
- var W1C,
- f;
- W1C = 2;
- while (W1C !== 9) {
- switch (W1C) {
- case 3:
- return h.EFa(a, d);
- break;
- case 2:
- d = null !== d && void 0 !== d ? d : h.kH;
- f = b.CEb(a, h.config);
- a = a.Fa ? a.Fa.Ca * (100 - h.hlb(c, f)) / 100 | 0 : 0;
- W1C = 3;
- break;
- }
- }
- };
- l1C;
- return h;
- break;
- case 2:
- h = a.call(this, c, d) || this;
- h.Ny = function (a, b) {
- var b1C;
- b1C = 2;
- while (b1C !== 1) {
- switch (b1C) {
- case 2:
- return g.Ny(h.config, a, b);
- break;
- case 4:
- return g.Ny(h.config, a, b);
- break;
- b1C = 1;
- break;
- }
- }
- };
- x1C = 4;
- break;
- }
- }
- }
- }
- (d.y3);
- b.fxa = a;
- }, function (d, b, a) {
- var c,
- g,
- q,
- n,
- k,
- p,
- h,
- f;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Lta = void 0;
- c = a(0);
- d = a(110);
- g = a(375);
- q = a(206);
- a = a(4);
- n = d.EW;
- k = d.lcb;
- p = d.xGa;
- h = d.Yib;
- f = d.tCb;
- new a.Console("ASEJS_PREDICTOR", "media|asejs");
- a = function (a) {
- var X1C;
- X1C = 2;
- while (X1C !== 5) {
- switch (X1C) {
- case 2:
- c.__extends(b, a);
- return b;
- break;
- case 3:
- c.__extends(b, a);
- return b;
- break;
- X1C = 5;
- break;
- }
- }
- function b(b, c) {
- var m1C,
- d,
- U6j;
- m1C = 2;
- while (m1C !== 11) {
- U6j = "1";
- U6j += "S";
- U6j += "IYbZr";
- U6j += "N";
- U6j += "JCp9";
- switch (m1C) {
- case 2:
- d = a.call(this, b, c) || this;
- d.Ny = function (a, b) {
- var n1C;
- n1C = 2;
- while (n1C !== 1) {
- switch (n1C) {
- case 4:
- return q.Ny(d.config, a, b);
- break;
- n1C = 1;
- break;
- case 2:
- return q.Ny(d.config, a, b);
- break;
- }
- }
- };
- d.Q0 = function (a, b, c) {
- var y1C,
- k,
- g,
- l,
- n,
- q,
- u;
- y1C = 2;
- while (y1C !== 13) {
- switch (y1C) {
- case 3:
- l = Math.pow(Math.max(1 - k / d.zab, 0), d.sab);
- n = b.em - b.Ic;
- d.JEb ? (b = p(d.VEa, n, 1), n = p(d.UEa, n, 1), b = b * l + n * (1 - l)) : b = p(f(d.VEa, d.UEa, l), n, 1);
- a = d.wNa && (null === (q = a[d.wNa]) || void 0 === q ? void 0 : q.hP);
- y1C = 6;
- break;
- case 2:
- c = null !== c && void 0 !== c ? c : d.kH;
- u = null !== (g = null === (k = a.Fa) || void 0 === k ? void 0 : k.Ca) && void 0 !== g ? g : 0;
- k = null !== (n = null === (l = a[d.filter]) || void 0 === l ? void 0 : l.Ca) && void 0 !== n ? n : u;
- y1C = 3;
- break;
- case 6:
- void 0 !== a && (q = h(d.Lvb, a), b = Math.min(b * q, 1));
- v3YY.d6j(0);
- return d.EFa(v3YY.Q6j(u, b, 1), c);
- break;
- }
- }
- };
- Array.isArray(b.Tp.curves) && (d.VEa = k(b.Tp.curves[0], 0, 0, 1), d.UEa = k(b.Tp.curves[1], 0, 0, 1));
- d.zab = n(b.Tp.threshold || 6E3, 1, 1E5);
- d.sab = n(b.Tp.gamma || 1, .1, 10);
- m1C = 7;
- break;
- case 13:
- U6j;
- return d;
- break;
- case 7:
- d.filter = b.Tp.filter;
- d.JEb = !!b.Tp.simpleScaling;
- b.Tp.niqrfilter && b.Tp.niqrcurve && (d.wNa = b.Tp.niqrfilter, d.Lvb = k(b.Tp.niqrcurve, 1, 0, 4));
- m1C = 13;
- break;
- }
- }
- }
- }
- (g.y3);
- b.Lta = a;
- }, function (d, b, a) {
- var c,
- g,
- q,
- n,
- k;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Era = void 0;
- c = a(17);
- g = a(108);
- q = a(4);
- n = a(207);
- k = a(50);
- d = function () {
- function a(a, b, c) {
- this.config = a;
- this.LEb = b;
- this.navigator = c;
- a = n["default"](this.config);
- this.Vyb = [a.Ny, a.Q0];
- }
- a.prototype.VCb = function (a, b, d, g) {
- var f,
- h,
- l,
- p,
- n;
- l = [];
- if (!this.Rxb(d.track))
- return {
- stream: h,
- EQ: l
- };
- h = d.Oq.jv;
- p = g ? this.q$a(d.Na, g, d.track.Nc) : d.track.Nc;
- h && !h.track.equals(d.track) && (h = this.Sjb(h, p));
- if (0 === d.M && h && !this.vEb(d, h))
- return {
- stream: h,
- EQ: l
- };
- a = this.Dfb(a === c.Ye.Ce ? c.ma.Ce : a === c.Ye.Ng ? c.ma.Ng : a === c.Ye.NT ? c.ma.Pc : c.ma.Pg, b, d);
- a = d.JI.L1(a, p, void 0, this.Vyb[d.M], !0, d.track.R.Rh);
- if (!a)
- return {
- stream: h,
- EQ: l
- };
- a.reason && (n = {
- reason: a.reason,
- mQ: a.fs,
- Zu: a.Zu,
- wk: a.wk,
- xk: a.xk
- });
- h = p[a.vd];
- d.Oq.m2(h);
- if (null === (f = a.Cu) || void 0 === f ? 0 : f.length)
- l = a.Cu.map(function (a) {
- return k.An(p, function (b) {
- return b.id === a;
- });
- }).filter(k.zja);
- return void 0 !== n ? {
- stream: h,
- EQ: l,
- XCb: n
- }
- : {
- stream: h,
- EQ: l
- };
- };
- a.prototype.q$a = function (a, b, c) {
- var f;
- f = b.Ijb(a, c.map(function (a) {
- return a.vy;
- }));
- return c.filter(function (a, b) {
- return f[b];
- });
- };
- a.prototype.Sjb = function (a, b) {
- var c;
- c = b[0];
- b.filter(function (a) {
- return a.Hj;
- }).every(function (b) {
- return b.O <= a.O ? c = b : !1;
- });
- return c;
- };
- a.prototype.vEb = function (a, b) {
- return 0 < this.config.MI.length ? !0 : (a = a.Oq.cH) && a === b.location ? !1 : !0;
- };
- a.prototype.Rxb = function (a) {
- return a.R.sm.mR(a.R.oa, a.Nc);
- };
- a.prototype.plb = function (a, b) {
- var m;
- for (var c, f = b.Nb(this.LEb), d = [], h = a, k = b, g, l, p = 0, n = !0; h; ) {
- m = h.mmb(f);
- if (0 === m.$.length)
- break;
- if (!n && !h.NA)
- break;
- k = m.$[0].Jy;
- void 0 === g && (g = m.$[m.$.length - 1].N0, l = m.$ja >= m.$.length ? g : m.$[m.$ja].Jy);
- d = m.$.concat(d);
- p += m.dj;
- h = this.navigator.parent(h);
- n = !1;
- }
- return {
- Zp: q.uk()[a.M],
- T: k.va,
- Ic: b.va,
- Mb: null !== (c = null === g || void 0 === g ? void 0 : g.va) && void 0 !== c ? c : b.va,
- em: l ? l.va : b.va,
- ci: d.reduce(function (a, b) {
- return a + b.ba;
- }, 0),
- dj: p,
- Bea: d.length,
- $: d
- };
- };
- a.prototype.Dfb = function (a, b, d) {
- var f,
- h,
- k;
- f = this.plb(d, b);
- h = 1 === d.M ? this.config.vR : this.config.cM;
- k = g.kg();
- return {
- state: a,
- my: a === c.ma.Pc,
- az: d.Ck,
- buffer: f,
- kda: h,
- RLa: !1,
- iN: !1,
- Eo: null === k || void 0 === k ? void 0 : k.Eo,
- M: d.M,
- Ic: b.va,
- cp: !1,
- VZ: !1,
- $ka: 0
- };
- };
- return a;
- }
- ();
- b.Era = d;
- }, function (d, b, a) {
- var c,
- g,
- q;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.uva = void 0;
- c = a(0);
- g = a(6);
- q = a(63);
- d = function (a) {
- function b(b) {
- var c;
- c = a.call(this) || this;
- c.sb = b;
- c.Sc = [];
- return c;
- }
- c.__extends(b, a);
- b.prototype.jW = function (a, b) {
- var c;
- c = !this.sb;
- c && (this.sb = a, this.m9 = null === b || void 0 === b ? void 0 : b.Oo);
- return c;
- };
- b.prototype.LF = function () {
- this.Sc = [];
- this.m9 = void 0;
- };
- b.prototype.Wca = function (a) {
- q.Za && g.assert(this.sb === a);
- this.sb = void 0;
- this.c_ = !1;
- this.LF();
- };
- b.prototype.Jda = function () {
- for (var a, b = [], f = 0; f < arguments.length; f++)
- b[f] = arguments[f];
- (a = this.Sc).push.apply(a, c.__spread(b));
- };
- b.prototype.FN = function () {
- return this.m9 ? this.m9 : a.prototype.FN.call(this);
- };
- b.prototype.HI = function () {};
- return b;
- }
- (a(384).x7);
- b.uva = d;
- }, function (d, b, a) {
- var c,
- g;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Bwa = void 0;
- c = a(0);
- g = a(22);
- d = function (a) {
- function b(b, c, d, f) {
- var h;
- h = a.call(this) || this;
- h.G = b;
- h.track = c;
- h.bq = !1;
- h.H9 = !1;
- h.Ak = new g.Ll();
- h.Ak.on(c, "networkfailing", function () {
- h.emit("networkfailing");
- });
- h.Ak.on(c, "error", function () {
- h.G.warn("requestQueue got error");
- h.emit("error");
- });
- if (d)
- h.bq = !0, setTimeout(function () {
- return h.emit("created");
- }, 0);
- else
- h.Ak.on(c, "created", function () {
- h.bq = !0;
- h.emit("created");
- });
- h.H9 = f;
- return h;
- }
- c.__extends(b, a);
- Object.defineProperties(b.prototype, {
- OX: {
- get: function () {
- return this.track.OX;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- zh: {
- get: function () {
- return this.track.zh;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- aj: {
- get: function () {
- return this.track.aj;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- Zda: {
- get: function () {
- return this.track.Zda;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- config: {
- get: function () {
- return this.track.config;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- b.prototype.Db = function () {
- var a,
- b;
- this.H9 || (null === (b = (a = this.track).Db) || void 0 === b ? void 0 : b.call(a), this.H9 = !0);
- };
- b.prototype.Vn = function () {
- return this.track.Vn();
- };
- b.prototype.p1 = function () {
- return this.track.p1();
- };
- b.prototype.toString = function () {
- return this.track.toString();
- };
- b.prototype.toJSON = function () {
- return this.track;
- };
- b.prototype.In = function () {
- this.Ak.clear();
- };
- return b;
- }
- (g.EventEmitter);
- b.Bwa = d;
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.qxa = void 0;
- d = function () {
- function a(a, b) {
- this.G = a;
- this.cg = b;
- this.o2 = !1;
- }
- a.prototype.Ig = function (a, b, d, g, k, p) {
- this.o2 || (this.o2 = !0, a = {
- type: "error",
- error: null !== d && void 0 !== d ? d : "NFErr_MC_StreamingFailure",
- errormsg: a,
- networkErrorCode: g,
- httpCode: k,
- nativeCode: p,
- viewableId: b
- }, this.G.error("notifyStreamingError: " + JSON.stringify(a)), this.cg.emit("error", a));
- };
- a.prototype.bp = function () {
- return this.o2;
- };
- a.prototype.Gm = function () {
- this.o2 = !1;
- };
- return a;
- }
- ();
- b.qxa = d;
- }, function (d, b, a) {
- var g,
- q;
- function c(a, b, c, d, f) {
- var h,
- k;
- c = null !== (h = b.gg) && void 0 !== h ? h : b.track.Lu(a, c.va, void 0, f);
- a = null !== (k = b.mg) && void 0 !== k ? k : b.track.BB(a, null === d || void 0 === d ? void 0 : d.va, b.Jg);
- return [c, a];
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.ENa = b.BNa = void 0;
- g = a(0);
- q = a(11);
- b.BNa = function (a, b, d, h, f) {
- var k,
- l,
- p;
- k = b[0];
- b = b[1];
- l = g.__read(b ? c(a, b, d, h, f) : [], 2);
- p = l[0];
- l = l[1];
- d = g.__read(k ? c(a, k, void 0 !== (null === p || void 0 === p ? void 0 : p.T) ? q.ka.Ff(p.T) : d, void 0 !== (null === l || void 0 === l ? void 0 : l.na) ? q.ka.Ff(null === l || void 0 === l ? void 0 : l.na) : h, f) : [], 2);
- a = d[0];
- d = d[1];
- null === k || void 0 === k ? void 0 : k.tKa(a, d);
- null === b || void 0 === b ? void 0 : b.tKa(p, l);
- };
- b.ENa = function (a, b, c) {
- return b.track.Lu(a, c.va, void 0, !0).fm;
- };
- }, function (d, b, a) {
- var c,
- g,
- q;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.sva = void 0;
- c = a(11);
- g = a(783);
- q = a(6);
- d = function () {
- function a(a) {
- var b,
- c,
- f,
- d,
- k,
- g,
- l;
- b = this;
- c = a.config;
- f = a.R;
- d = a.dd;
- k = a.da;
- g = a.fm;
- l = a.$p;
- a = a.splice;
- this.nKa = this.zM = !1;
- this.LDa = function () {
- b.zM || b.cCa() && b.ANa();
- };
- this.config = c;
- this.dd = d;
- this.R = f;
- this.da = k;
- this.fm = g;
- this.$p = l;
- this.splice = a;
- }
- a.prototype.Db = function (a) {
- if (this.zM)
- throw Error("Cannot call init() after cleanup");
- if (this.nKa)
- throw Error("Cannot call init() twice");
- this.nKa = !0;
- this.jOa = a;
- this.R.hy.addListener("onHeaderFragments", this.LDa);
- this.cCa() && this.ANa();
- };
- a.prototype.yc = function () {
- this.zM || (this.zM = !0, this.jOa = void 0, this.R.hy.removeListener("onHeaderFragments", this.LDa));
- };
- a.prototype.ANa = function () {
- var a,
- b;
- if (!this.zM) {
- this.Qvb();
- b = !1;
- this.da && !this.da.CH && (b = this.yja());
- null === (a = this.jOa) || void 0 === a ? void 0 : a.call(this, b);
- this.yc();
- }
- };
- a.prototype.cCa = function () {
- return this.dd.every(function (a) {
- return a.track.ae;
- });
- };
- a.prototype.Qvb = function () {
- g.BNa(this.config, this.dd, this.fm, this.$p, this.splice);
- };
- a.prototype.yja = function () {
- var a,
- b;
- q.assert(this.da);
- q.assert(!this.da.CH);
- b = null !== (a = this.dd[1]) && void 0 !== a ? a : this.dd[0];
- a = g.ENa(this.config, b, this.da.Mm);
- if (void 0 === a || void 0 === b.$p)
- return !1;
- b = this.$p && !this.$p.equal(c.ka.Tga) ? b.$p : c.ka.Tga;
- this.da.normalize(a, b);
- return !0;
- };
- return a;
- }
- ();
- b.sva = d;
- }, function (d, b, a) {
- var c,
- g;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.sua = b.Yra = void 0;
- c = a(63);
- g = a(4);
- d = function () {
- function a(a) {
- this.GH = a;
- }
- a.prototype.hIa = function (a, b, d) {
- var h;
- h = a.$;
- a = a.wi(b);
- a.fP = b + 1;
- if (!a.Sa)
- for (++b; b < h.length && b < d.mg.index && (a.duration < d.tH || 0 !== b % this.GH); ++b)
- a.vaa(h.get(b)), a.fP = b + 1, c.Za && d.uj("getFragmentForHudsonRequest: extended fragment startPts:", a.T, "to duration:", a.duration, "size:", a.ba, "index: ", b, "min request size in ms:", d.tH);
- a.lsb = d.ad.iqb + (g.time.ea() - d.ad.nqb);
- c.Za && d.uj("getFragmentForHudsonRequest( " + b + ") returning: " + JSON.stringify(a));
- return a;
- };
- return a;
- }
- ();
- b.Yra = d;
- d = function () {
- function a() {}
- a.prototype.hIa = function (a, b, d, h) {
- var f,
- k;
- f = a.$;
- k = b === d.gg.index;
- b === d.mg.index ? (a = a.fIa(d.mg), a.xQ(d.mg.Xv), a.mMa(), a.WDb(d.ad.da)) : k ? (a = a.fIa(d.gg), a.xQ(d.gg.Xv)) : a = a.wi(b);
- a.fP = b + 1;
- if (!a.Sa && !h)
- for (++b; b < f.length && b < d.mg.index && (a.ba < d.UMa || a.duration < d.tH); ++b)
- a.vaa(f.get(b)), a.fP = b + 1, c.Za && d.uj("getFragmentForRequest: extended fragment startPts:", a.T, "to duration:", a.duration, "size:", a.ba, "min request size:", d.UMa, "min request duration:", d.tH);
- c.Za && d.uj("getFragmentForRequest( " + b + ") returning: " + JSON.stringify(a) + ", stream: " + JSON.stringify(a.stream));
- return a;
- };
- return a;
- }
- ();
- b.sua = d;
- }, function (d, b, a) {
- var g,
- q,
- n,
- k,
- p,
- h;
- function c(a, b, c) {
- p = c;
- h = c.map(function (a, b) {
- return a.Hj ? b : null;
- }).filter(function (a) {
- return null !== a;
- });
- if (null === k)
- return a = q(c), k = c[a].O, new n(a);
- if (!h.length)
- return null;
- a = h.filter(function (a) {
- return c[a].O == k;
- })[0];
- return void 0 === a ? (g.log("Defaulting to first stream due to unvalid bitrate requested: " + k), new n(h[0])) : new n(a);
- }
- b = a(32);
- a = a(4);
- g = b.console;
- q = b.hea;
- n = b.bn;
- k = null;
- p = null;
- h = null;
- a.Sbb && (a.Sbb.JI = {
- Db: function () {
- h = p = k = null;
- },
- L1: function (a) {
- k = a;
- },
- eTb: function () {
- return {
- all: p,
- Sna: h
- };
- }
- });
- d.P = {
- STARTING: c,
- BUFFERING: c,
- REBUFFERING: c,
- PLAYING: c,
- PAUSED: c
- };
- }, function (d, b, a) {
- (function () {
- var y6j,
- b,
- x94;
- y6j = 2;
- while (y6j !== 7) {
- x94 = "1";
- x94 += "SIYb";
- x94 += "Z";
- x94 += "rNJC";
- x94 += "p9";
- switch (y6j) {
- case 2:
- a(7);
- a(18);
- a(32);
- b = a(17).Ye;
- y6j = 9;
- break;
- case 9:
- d.P = {
- checkBuffering: function (a, c, d, k, g) {
- var E6j,
- f,
- l,
- p,
- n,
- q,
- m,
- r,
- A94,
- w94,
- t94,
- h94,
- I6j;
- E6j = 2;
- function h(b) {
- var Y6j;
- Y6j = 2;
- while (Y6j !== 5) {
- switch (Y6j) {
- case 2:
- b = d.$.UX(a.Ic + b, void 0, !0);
- return (q - a.dj) / (q + (b.offset + b.ba) - m);
- break;
- }
- }
- }
- while (E6j !== 36) {
- A94 = "ma";
- A94 += "x";
- A94 += "s";
- A94 += "ize";
- w94 = "ou";
- w94 += "to";
- w94 += "frange";
- t94 = "h";
- t94 += "i";
- t94 += "ghtp";
- h94 = "no";
- h94 += "r";
- h94 += "e";
- h94 += "bu";
- h94 += "ff";
- switch (E6j) {
- case 23:
- m = d.$.ih(k);
- E6j = 22;
- break;
- case 39:
- return {
- complete: !0,
- reason: h94
- };
- break;
- case 43:
- E6j = 0 < r ? 42 : 41;
- break;
- case 26:
- k = d.$.km(a.Mb);
- E6j = 25;
- break;
- case 20:
- p = n ? Math.min(n, p) : p;
- E6j = 19;
- break;
- case 28:
- l = d.$.get(g);
- r = 8 * r / c - l.T - p;
- E6j = 43;
- break;
- case 35:
- return {
- complete: !0,
- reason: t94
- };
- break;
- case 8:
- n = Math.min(g.tv, n);
- E6j = 7;
- break;
- case 18:
- return {
- complete: !1,
- PC: p
- };
- break;
- case 16:
- a.$.forEach(function (b) {
- var F6j;
- F6j = 2;
- while (F6j !== 1) {
- switch (F6j) {
- case 2:
- q += b.T + b.duration > a.Ic ? b.ba : 0;
- F6j = 1;
- break;
- }
- }
- });
- E6j = 15;
- break;
- case 12:
- p = g.hh * (l ? g.Zka : 1);
- g.vib && d.mb && d.mb.Ch && d.mb.Ch.Ca > g.hia && (p += g.raa + d.mb.Ch.Ca * g.aka);
- k && (p += k.TW * g.saa);
- E6j = 20;
- break;
- case 17:
- q = 0;
- E6j = 16;
- break;
- case 13:
- return {
- complete: !1,
- ty: !0
- };
- break;
- case 4:
- c = d.Fa || 0;
- p = 0;
- n = g.Tna && !l ? g.yy : g.Kia;
- E6j = 8;
- break;
- case 30:
- --g;
- E6j = 29;
- break;
- case 31:
- v3YY.l94(0);
- I6j = v3YY.k94(5, 4, 10);
- p = I6j * m / c - a.Ic;
- E6j = 30;
- break;
- case 24:
- return {
- complete: !0,
- reason: w94
- };
- break;
- case 2:
- f = a.em - a.Ic;
- l = c === b.Ng;
- E6j = 4;
- break;
- case 25:
- E6j = -1 === k ? 24 : 23;
- break;
- case 15:
- E6j = !d.$ || !d.$.length ? 27 : 26;
- break;
- case 19:
- E6j = !c ? 18 : 17;
- break;
- case 38:
- 0 < c && c < d.O && (p = Math.min(n, Math.max(g.SP * (d.O / c - 1), p)));
- return {
- complete: !1,
- PC: p,
- Xh: h(p)
- };
- break;
- case 14:
- E6j = c <= g.nia && (0 < c || !g.Rda) ? 13 : 12;
- break;
- case 21:
- E6j = c > d.O * g.QX ? 35 : 34;
- break;
- case 34:
- p = d.$.Nd(k);
- g = Math.min(k + Math.floor(g.SP / p), d.$.length - 1);
- r = d.$.ih(g);
- E6j = 31;
- break;
- case 27:
- return c < d.O && (p = Math.min(n, Math.max(g.SP * (d.O / c - 1), p))), {
- complete: !1,
- PC: p,
- Xh: (q - a.dj) / (q + (p - (a.Mb - a.Ic)) * d.O / 8)
- };
- break;
- case 6:
- return {
- complete: !0,
- reason: A94
- };
- break;
- case 29:
- E6j = g > k ? 28 : 39;
- break;
- case 41:
- r = l.offset;
- E6j = 40;
- break;
- case 22:
- E6j = f >= p ? 21 : 38;
- break;
- case 40:
- --g;
- E6j = 29;
- break;
- case 42:
- return p = Math.min(n, f + r), {
- complete: !1,
- PC: p,
- Xh: h(p)
- };
- break;
- case 7:
- E6j = f >= n ? 6 : 14;
- break;
- }
- }
- }
- };
- x94;
- y6j = 7;
- break;
- }
- }
- }
- ());
- }, function (d, b, a) {
- (function () {
- var G94,
- g,
- q,
- n,
- k,
- g8U;
- function b(a, b, c, d) {
- var v94,
- f,
- n8U,
- f8U,
- R3F;
- v94 = 2;
- while (v94 !== 11) {
- n8U = "Must have at lea";
- n8U += "st";
- n8U += " one se";
- n8U += "lected stream";
- f8U = "p";
- f8U += "l";
- f8U += "a";
- f8U += "yer missing streamin";
- f8U += "gIndex";
- switch (v94) {
- case 5:
- n(g.la(b.az), f8U);
- v94 = 4;
- break;
- case 2:
- n(!g.Y(d), n8U);
- v94 = 5;
- break;
- case 4:
- b = k(d);
- v94 = 3;
- break;
- case 3:
- v3YY.t8U(0);
- R3F = v3YY.D8U(18, 12, 20, 64800, 15);
- d = c.length - R3F;
- v94 = 9;
- break;
- case 7:
- v94 = f.mb && f.mb.Fa && f.O < f.mb.Fa.Ca - a.kGb ? 6 : 14;
- break;
- case 9:
- v94 = -1 < d ? 8 : 13;
- break;
- case 8:
- f = c[d];
- v94 = 7;
- break;
- case 6:
- return b.vd = d,
- b;
- break;
- case 14:
- --d;
- v94 = 9;
- break;
- case 13:
- b.vd = 0;
- return b;
- break;
- }
- }
- }
- G94 = 2;
- while (G94 !== 13) {
- g8U = "1";
- g8U += "SIY";
- g8U += "bZrN";
- g8U += "J";
- g8U += "Cp9";
- switch (G94) {
- case 3:
- a(4);
- n = q.assert;
- k = q.bn;
- q = a(208);
- G94 = 6;
- break;
- case 2:
- g = a(7);
- a(18);
- q = a(32);
- G94 = 3;
- break;
- case 6:
- d.P = {
- STARTING: q.STARTING,
- BUFFERING: q.BUFFERING,
- REBUFFERING: q.REBUFFERING,
- PLAYING: b,
- PAUSED: b
- };
- g8U;
- G94 = 13;
- break;
- }
- }
- }
- ());
- }, function (d, b, a) {
- var g;
- function c(a, b, c) {
- return new g(c.length - 1);
- }
- a(7);
- g = a(32).bn;
- d.P = {
- STARTING: c,
- BUFFERING: c,
- REBUFFERING: c,
- PLAYING: c,
- PAUSED: c
- };
- }, function (d, b, a) {
- var g;
- function c() {
- return new g(0);
- }
- a(7);
- g = a(32).bn;
- d.P = {
- STARTING: c,
- BUFFERING: c,
- REBUFFERING: c,
- PLAYING: c,
- PAUSED: c
- };
- }, function (d, b, a) {
- (function () {
- var b8U,
- q,
- n,
- k,
- p,
- h,
- f,
- u,
- m,
- r,
- t,
- X8U;
- b8U = 2;
- while (b8U !== 10) {
- X8U = "1";
- X8U += "SIYb";
- X8U += "ZrNJ";
- X8U += "Cp9";
- switch (b8U) {
- case 2:
- q = a(7);
- n = a(32);
- k = n.console;
- p = n.debug;
- h = n.assert;
- f = a(58);
- b8U = 7;
- break;
- case 7:
- u = n.UB;
- m = n.bn;
- r = a(376);
- b8U = 13;
- break;
- case 13:
- t = a(17).ma;
- d.P = {
- STARTING: function (a, c, d, h) {
- var R8U,
- g,
- l,
- e8U,
- T8U,
- y8U;
- R8U = 2;
- while (R8U !== 14) {
- e8U = " ";
- e8U += "kbps, ";
- e8U += "profile";
- e8U += " :";
- T8U = "selectAudioStreamSta";
- T8U += "rting: selec";
- T8U += "ted s";
- T8U += "tream :";
- y8U = "selectAudioStreamStar";
- y8U += "ting: overriding c";
- y8U += "onfig with ";
- switch (R8U) {
- case 4:
- R8U = (l = a && a.MI && 0 <= a.MI.indexOf(l)) ? 3 : 9;
- break;
- case 2:
- g = a;
- l = d[h || 0].Vf;
- R8U = 4;
- break;
- case 3:
- g = {
- minInitAudioBitrate: a.ZO,
- minHCInitAudioBitrate: a.YO,
- maxInitAudioBitrate: a.HO,
- minRequiredAudioBuffer: a.T_
- },
- p && k.log(y8U + JSON.stringify(l)),
- f(l, g);
- R8U = 9;
- break;
- case 9:
- a = r[t[t.Pg]](g, c, d, h);
- d = d[a.vd];
- p && k.log(T8U + d.O + e8U + d.Vf);
- return a;
- break;
- }
- }
- },
- BUFFERING: g,
- REBUFFERING: g,
- PLAYING: g,
- PAUSED: g
- };
- X8U;
- b8U = 10;
- break;
- }
- }
- function g(a, b, c, f) {
- var x8U,
- d,
- g,
- l,
- n,
- r,
- A,
- G,
- t,
- D,
- C,
- H,
- o8U,
- N8U,
- m8U,
- C8U,
- Q8U,
- K8U,
- P8U,
- V8U,
- a8U,
- M8U,
- L8U,
- d8U,
- l8U,
- j8U,
- q8U,
- G8U,
- F8U,
- E8U,
- I8U,
- h8U,
- B8U,
- c8U,
- i8U;
- x8U = 2;
- while (x8U !== 43) {
- o8U = "m";
- o8U += "s";
- N8U = ", bu";
- N8U += "ff";
- N8U += "er level ";
- N8U += "= ";
- m8U = ", ";
- m8U += "lastUpswi";
- m8U += "tchPts = ";
- C8U = " U";
- C8U += "pswitch not ";
- C8U += "allowed. l";
- C8U += "astDownswitchPts =";
- C8U += " ";
- Q8U = " ";
- Q8U += "kb";
- Q8U += "ps, try ";
- Q8U += "to downswitch";
- K8U = " ";
- K8U += "kbps <";
- K8U += " ";
- P8U = "throughput";
- P8U += " for audi";
- P8U += "o ";
- V8U = ",";
- V8U += " stream";
- V8U += "i";
- V8U += "n";
- V8U += "gPts = ";
- a8U = ", la";
- a8U += "st";
- a8U += "U";
- a8U += "pswitchPt";
- a8U += "s = ";
- M8U = " Upswitch allowed. la";
- M8U += "stD";
- M8U += "ownswitc";
- M8U += "hPt";
- M8U += "s = ";
- L8U = "kbps, s";
- L8U += "trea";
- L8U += "mingPts :";
- d8U = ", a";
- d8U += "udi";
- d8U += "o t";
- d8U += "hro";
- d8U += "ughput:";
- l8U = " kbp";
- l8U += "s";
- l8U += ", profi";
- l8U += "le :";
- j8U = "selectAud";
- j8U += "ioStr";
- j8U += "eam: sele";
- j8U += "cted s";
- j8U += "tream :";
- q8U = " k";
- q8U += "b";
- q8U += "ps";
- G8U = " k";
- G8U += "b";
- G8U += "ps,";
- G8U += " to";
- G8U += " ";
- F8U = "switchin";
- F8U += "g a";
- F8U += "udi";
- F8U += "o";
- F8U += " from ";
- E8U = "d";
- E8U += "o";
- E8U += "w";
- E8U += "n";
- I8U = "u";
- I8U += "p";
- h8U = " ";
- h8U += "k";
- h8U += "b";
- h8U += "p";
- h8U += "s";
- B8U = " k";
- B8U += "bps";
- B8U += " ";
- B8U += ">";
- B8U += " ";
- c8U = "throug";
- c8U += "hput for a";
- c8U += "udio ";
- i8U = "Mus";
- i8U += "t have";
- i8U += " at least one selected stream";
- switch (x8U) {
- case 4:
- x8U = !(a && a.MI && 0 <= a.MI.indexOf(d)) ? 3 : 9;
- break;
- case 33:
- x8U = (r = l[A], D = c[r], u(D) && G > t.wUa * D.O) ? 32 : 34;
- break;
- case 9:
- g = f;
- a.qTa.some(function (f) {
- var k8U,
- h,
- k,
- g,
- p,
- n,
- q;
- k8U = 2;
- while (k8U !== 13) {
- switch (k8U) {
- case 2:
- h = f.profiles;
- k = h && 0 <= h.indexOf(d);
- k8U = 4;
- break;
- case 4:
- k8U = k ? 3 : 14;
- break;
- case 6:
- l = c.filter(function (a) {
- var p8U,
- b;
- p8U = 2;
- while (p8U !== 4) {
- switch (p8U) {
- case 1:
- b = a.O;
- return b >= p && b <= n && 0 <= h.indexOf(a.Vf) && b * g / 8 < q;
- break;
- case 2:
- p8U = 1;
- break;
- }
- }
- }).map(function (a) {
- var u8U;
- u8U = 2;
- while (u8U !== 1) {
- switch (u8U) {
- case 2:
- return a.Kg;
- break;
- case 4:
- return a.Kg;
- break;
- u8U = 1;
- break;
- }
- }
- });
- k8U = 14;
- break;
- case 3:
- g = (f = f.KH) && f.T_ || a.T_;
- p = f && f.qUb || -Infinity;
- n = f && f.kH || Infinity;
- q = b.buffer.Zp;
- k8U = 6;
- break;
- case 14:
- return k;
- break;
- }
- }
- });
- x8U = 7;
- break;
- case 3:
- return new m(f);
- break;
- case 2:
- h(!q.Y(f), i8U);
- d = c[f].Vf;
- x8U = 4;
- break;
- case 20:
- g = 0;
- x8U = 30;
- break;
- case 7:
- x8U = l && 1 < l.length ? 6 : 30;
- break;
- case 26:
- g = r;
- x8U = 30;
- break;
- case 19:
- x8U = A && G < t.NFa * r ? 18 : 24;
- break;
- case 24:
- x8U = A < l.length - 1 && G > t.wUa * r && (p && k.log(c8U + G + B8U + t.wUa + "*" + r + h8U), r = b.buffer, D = r.em - r.Ic, n.$ && n.$.length) ? 23 : 30;
- break;
- case 10:
- x8U = 0 > A ? 20 : 19;
- break;
- case 27:
- x8U = u(D) && (0 == A || D.O * t.NFa < G) ? 26 : 25;
- break;
- case 30:
- G = c[g];
- g !== f && p && k.log((g > f ? I8U : E8U) + F8U + n.O + G8U + G.O + q8U);
- p && k.log(j8U + G.O + l8U + d + d8U + G.Fa + L8U + b.buffer.Mb);
- return new m(g);
- break;
- case 17:
- x8U = 0 <= A ? 16 : 30;
- break;
- case 32:
- g = r;
- x8U = 30;
- break;
- case 23:
- C = this.Oha;
- H = this.j_;
- x8U = 21;
- break;
- case 35:
- p && k.log(M8U + H + a8U + C + V8U + r.Mb);
- x8U = 34;
- break;
- case 18:
- p && k.log(P8U + G + K8U + t.NFa + "*" + r + Q8U),
- --A;
- x8U = 17;
- break;
- case 6:
- n = c[f];
- r = n.O;
- A = l.indexOf(f);
- G = n.Fa;
- t = a.Z$a;
- x8U = 10;
- break;
- case 34:
- x8U = ++A < l.length ? 33 : 30;
- break;
- case 21:
- x8U = b.my && D > t.ov && (void 0 === H || Number(C) > H || r.Mb - H > t.v_) ? 35 : 31;
- break;
- case 25:
- A--;
- x8U = 17;
- break;
- case 31:
- p && k.log(C8U + H + m8U + C + N8U + D + o8U);
- x8U = 30;
- break;
- case 16:
- r = l[A];
- D = c[r];
- x8U = 27;
- break;
- }
- }
- }
- function b(a, b) {
- var r8U,
- c;
- r8U = 2;
- while (r8U !== 3) {
- switch (r8U) {
- case 1:
- c = void 0;
- b.some(function (b) {
- var U8U,
- f;
- U8U = 2;
- while (U8U !== 3) {
- switch (U8U) {
- case 2:
- f = b.profiles;
- (f = f && 0 <= f.indexOf(a)) && (c = b.override);
- return f;
- break;
- }
- }
- });
- return c;
- break;
- case 2:
- r8U = 1;
- break;
- case 8:
- r8U = 8;
- break;
- r8U = 1;
- break;
- }
- }
- }
- }
- ());
- }, function (d, b, a) {
- var g,
- q,
- n,
- k;
- function c(a, b, c) {
- var f,
- d;
- f = this.O9;
- b = b.buffer.Mb;
- d = "forward" === a.gCb;
- if (g.Y(f))
- return f = d ? q(c) : q(c, c.length), this.P9 = b, this.O9 = f, new k(f);
- n(c[f]) || (f = q(c, f), this.P9 = b, this.O9 = f);
- if (0 > f)
- return null;
- if (b > this.P9 + a.mGb) {
- a = c.map(function (a, b) {
- return a.Hj ? b : null;
- }).filter(function (a) {
- return null !== a;
- });
- if (!a.length)
- return null;
- d ? f = (a.indexOf(f) + 1) % a.length : (f = a.indexOf(f) - 1, 0 > f && (f = a.length - 1));
- this.O9 = a[f];
- this.P9 = b;
- return new k(a[f]);
- }
- return new k(f);
- }
- g = a(7);
- b = a(32);
- q = b.hea;
- n = b.UB;
- k = b.bn;
- d.P = {
- STARTING: c,
- BUFFERING: c,
- REBUFFERING: c,
- PLAYING: c,
- PAUSED: c
- };
- }, function (d, b, a) {
- var c,
- g,
- q,
- n,
- k,
- p,
- h,
- f,
- u,
- m;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Sqb = b.ERa = void 0;
- c = a(50);
- g = a(58);
- q = a(7);
- n = a(392);
- k = a(4);
- d = a(110);
- a = a(32);
- p = a.ovb;
- h = a.hbb;
- f = a.EW;
- u = a.bn;
- m = d.Bma;
- a = function () {
- var O8U,
- v9m;
- function d(a, b) {
- var z8U,
- f,
- d;
- z8U = 2;
- while (z8U !== 11) {
- switch (z8U) {
- case 9:
- return f[0].d;
- break;
- case 2:
- z8U = 1;
- break;
- case 1:
- z8U = a.EZ ? 5 : 12;
- break;
- case 5:
- f = a.EZ;
- d = c.rx(f, function (a) {
- var H6U;
- H6U = 2;
- while (H6U !== 1) {
- switch (H6U) {
- case 4:
- return b > a.r;
- break;
- H6U = 1;
- break;
- case 2:
- return b <= a.r;
- break;
- }
- }
- });
- z8U = 3;
- break;
- case 8:
- z8U = -1 === d ? 7 : 6;
- break;
- case 6:
- v3YY.H9m(0);
- a = f[v3YY.l9m(1, d)];
- f = f[d];
- return Math.floor(a.d + (f.d - a.d) * (b - a.r) / (f.r - a.r));
- break;
- case 3:
- z8U = 0 === d ? 9 : 8;
- break;
- case 7:
- return f[f.length - 1].d;
- break;
- case 12:
- return a.ip;
- break;
- }
- }
- }
- function a(a, b) {
- var A8U,
- c,
- f,
- c9m,
- r9m;
- A8U = 2;
- while (A8U !== 12) {
- c9m = "his";
- c9m += "t";
- c9m += "_throughput";
- r9m = "hi";
- r9m += "s";
- r9m += "t_";
- r9m += "tdigest";
- switch (A8U) {
- case 2:
- c = new u();
- c.Dl = a;
- a = c.Dl.mb || {};
- A8U = 3;
- break;
- case 3:
- c.xk = a.Zl && a.Di;
- c.wk = a.Zl ? a.Zl : 0;
- a = g(c.xk, {});
- A8U = 7;
- break;
- case 7:
- A8U = (f = q.la(b.K1) && 0 <= b.K1 && 100 >= b.K1 && !q.Y(a) && !q.Ma(a)) ? 6 : 14;
- break;
- case 6:
- f = n.Hxa.jnb(a),
- q.Vb(f) ? (a.Wh = f, f = !0) : f = !1;
- A8U = 14;
- break;
- case 14:
- f ? (b = a.Wh(b.K1 / 100) || c.Dl.Fa, c.fs = b, c.reason = r9m) : c.Dl.Fa && (b = c.Dl.Fa, c.fs = b, c.reason = c9m);
- return c;
- break;
- }
- }
- }
- function r(c, f) {
- var w6U,
- p,
- h,
- k,
- n,
- d,
- g,
- V9m,
- I9m,
- W9m;
- w6U = 2;
- while (w6U !== 24) {
- V9m = "fa";
- V9m += "llback_no";
- V9m += "_accepta";
- V9m += "b";
- V9m += "le_stream";
- I9m = "fallba";
- I9m += "ck_mi";
- I9m += "nAcceptableVid";
- I9m += "eoBitrate";
- W9m = "fallback_minAcceptableStartingV";
- W9m += "MA";
- W9m += "F";
- switch (w6U) {
- case 2:
- w6U = 1;
- break;
- case 5:
- w6U = 0 <= g && (d ? f[g].wc >= c.vH : f[g].O >= c.vs) ? 4 : 20;
- break;
- case 16:
- h = a(p, c);
- w6U = 15;
- break;
- case 27:
- n++;
- w6U = 18;
- break;
- case 19:
- n = 0;
- w6U = 18;
- break;
- case 13:
- h.Zu = k;
- w6U = 12;
- break;
- case 11:
- h.reason = n;
- w6U = 10;
- break;
- case 10:
- g--;
- w6U = 5;
- break;
- case 1:
- d = !!c.vH && !!c.DMa && f.every(function (a) {
- var J6U;
- J6U = 2;
- while (J6U !== 1) {
- switch (J6U) {
- case 2:
- return a.wc && 110 >= a.wc;
- break;
- case 4:
- return a.wc || 143 < a.wc;
- break;
- J6U = 1;
- break;
- }
- }
- }),
- h = null,
- k = !1,
- g = f.length - 1;
- w6U = 5;
- break;
- case 20:
- w6U = q.Ma(h) ? 19 : 26;
- break;
- case 18:
- w6U = n <= g ? 17 : 26;
- break;
- case 17:
- w6U = (p = f[n], k = d ? p.wc >= c.UO : p.O >= c.VO) ? 16 : 27;
- break;
- case 8:
- n = l(h.fs, c);
- n = A(p, 0, d, k, n, c);
- p = n.RX;
- n = n.reason;
- w6U = 13;
- break;
- case 15:
- h.reason = d ? W9m : I9m;
- w6U = 26;
- break;
- case 4:
- p = f[g];
- h = a(p, c);
- k = b(p.O, h.fs, c);
- w6U = 8;
- break;
- case 26:
- q.Ma(h) && (h = a(f[0], c), h.reason = V9m);
- return h;
- break;
- case 12:
- w6U = p ? 20 : 11;
- break;
- }
- }
- }
- O8U = 2;
- function A(a, b, c, f, d, h) {
- var S6U,
- p9m,
- m9m,
- G9m;
- S6U = 2;
- while (S6U !== 5) {
- p9m = "no_";
- p9m += "valid_Bi";
- p9m += "t";
- p9m += "ra";
- p9m += "te";
- m9m = "no_val";
- m9m += "id_V";
- m9m += "MAF";
- G9m = "no_valid_De";
- G9m += "l";
- G9m += "ay";
- G9m += "Target";
- switch (S6U) {
- case 2:
- a = c ? a.wc >= h.vH && a.wc <= h.DMa : a.O >= h.vs && a.O <= h.sv;
- return (f = f < d && a) ? {
- RX: f
- }
- : {
- RX: f,
- reason: a ? G9m : c ? m9m : p9m
- };
- break;
- }
- }
- }
- function l(a, b) {
- var v6U,
- c,
- B9m,
- E9m,
- n6U;
- v6U = 2;
- while (v6U !== 8) {
- B9m = "s";
- B9m += "ig";
- B9m += "mo";
- B9m += "i";
- B9m += "d";
- E9m = "l";
- E9m += "o";
- E9m += "g";
- switch (v6U) {
- case 5:
- v6U = 0 === b.pI.lastIndexOf(E9m, 0) ? 4 : 9;
- break;
- case 2:
- v3YY.i9m(0);
- n6U = v3YY.a9m(20, 100020);
- a = f(a, 0, n6U) / 1E3;
- v6U = 5;
- break;
- case 9:
- return 0 === b.pI.lastIndexOf(B9m, 0) ? (c = b.pI, (c = b.FRa[c]) && 2 === c.length ? 1E3 * (c[0] + c[1] * m(a)) : b.ip) : b.ip;
- break;
- case 4:
- c = b.pI;
- return (c = b.FRa[c]) && 2 === c.length ? 1E3 * (c[0] + c[1] * Math.log(1 + a)) : b.ip;
- break;
- }
- }
- }
- function P(a, b, f) {
- var W6U,
- d,
- U9m,
- X9m,
- Y9m;
- W6U = 2;
- while (W6U !== 6) {
- U9m = "n";
- U9m += "u";
- U9m += "m";
- U9m += "be";
- U9m += "r";
- X9m = "v";
- X9m += "b";
- Y9m = "his";
- Y9m += "t_b";
- Y9m += "it";
- Y9m += "rat";
- Y9m += "e";
- switch (W6U) {
- case 4:
- return a.QL ? r(a, f) : t(a, b, f);
- break;
- case 8:
- a.reason = Y9m;
- return a;
- break;
- case 2:
- d = k.storage.get(X9m);
- W6U = 5;
- break;
- case 5:
- W6U = U9m !== typeof d ? 4 : 3;
- break;
- case 3:
- a = new u();
- a.Dl = c.An(f.reverse(), function (a) {
- var t6U;
- t6U = 2;
- while (t6U !== 1) {
- switch (t6U) {
- case 4:
- return a.O < d;
- break;
- t6U = 1;
- break;
- case 2:
- return a.O <= d;
- break;
- }
- }
- }) || f[0];
- W6U = 8;
- break;
- }
- }
- }
- function t(a, f, h) {
- var s6U,
- k,
- g;
- s6U = 2;
- while (s6U !== 9) {
- switch (s6U) {
- case 2:
- k = new u();
- g = Math.max(a.vs, a.VO, f.VZ ? a.cja : -Infinity);
- k.Dl = c.An(h.filter(function (b) {
- var D6U;
- D6U = 2;
- while (D6U !== 1) {
- switch (D6U) {
- case 4:
- return b.O > a.sv;
- break;
- D6U = 1;
- break;
- case 2:
- return b.O <= a.sv;
- break;
- }
- }
- }).reverse(), function (c) {
- var Z6U,
- f,
- h,
- l,
- L9m,
- M9m,
- e9m,
- C9m;
- Z6U = 2;
- while (Z6U !== 12) {
- L9m = "no_hist";
- L9m += "orical_lt";
- L9m += "e";
- L9m += "_mi";
- L9m += "nbitrate";
- M9m = "hist_tput_lt";
- M9m += "_min";
- M9m += "bi";
- M9m += "tr";
- M9m += "ate";
- e9m = "lt_hist_lte_min";
- e9m += "bi";
- e9m += "trate";
- C9m = "h";
- C9m += "is";
- C9m += "t_b";
- C9m += "uff";
- C9m += "time";
- switch (Z6U) {
- case 2:
- f = {
- Fa: c.Fa,
- Zl: c.mb && c.mb.Zl,
- Di: c.mb && c.mb.Di
- };
- Z6U = 5;
- break;
- case 4:
- c = c.O;
- h = f.Fa;
- Z6U = 9;
- break;
- case 5:
- Z6U = c.O > g ? 4 : 13;
- break;
- case 9:
- Z6U = h ? 8 : 14;
- break;
- case 8:
- l = d(a, c);
- Z6U = 7;
- break;
- case 7:
- b(c, h, a) <= l ? (k.fs = h, f && (k.wk = f.Zl ? f.Zl : 0, k.xk = f.Zl && f.Di), k.reason = C9m, f = !0) : f = !1;
- Z6U = 6;
- break;
- case 6:
- return f;
- break;
- case 13:
- h = f.Fa,
- c.O <= h ? (k.fs = h, f && (k.wk = f.Zl ? f.Zl : 0, k.xk = f.Zl ? f.Di : void 0), k.reason = e9m, f = !0) : h ? (k.fs = h, f && (k.wk = f.Zl ? f.Zl : 0, k.xk = f.Zl ? f.Di : void 0), k.reason = M9m, f = !1) : (k.reason = L9m, f = !0);
- Z6U = 6;
- break;
- case 14:
- f = !1;
- Z6U = 6;
- break;
- }
- }
- }) || h[0];
- s6U = 3;
- break;
- case 3:
- return k;
- break;
- }
- }
- }
- function b(a, b, c) {
- var Y8U;
- Y8U = 2;
- while (Y8U !== 5) {
- switch (Y8U) {
- case 2:
- a = h(c.hh, a * c.Wia);
- return p(a, b);
- break;
- }
- }
- }
- while (O8U !== 5) {
- v9m = "1SIYbZ";
- v9m += "r";
- v9m += "NJCp9";
- switch (O8U) {
- case 2:
- v9m;
- return {
- X7a: function (a, b, c) {
- var f6U,
- u9m;
- f6U = 2;
- while (f6U !== 1) {
- u9m = "hi";
- u9m += "stori";
- u9m += "cal";
- switch (f6U) {
- case 2:
- return u9m === a.Uga ? P(a, b, c) : a.QL ? r(a, c) : t(a, b, c);
- break;
- }
- }
- },
- D5a: A
- };
- break;
- }
- }
- }
- ();
- d = a.D5a;
- b.ERa = a.X7a;
- b.Sqb = d;
- }, function (d, b, a) {
- var c;
- a(7);
- c = a(32).console;
- d.P = function (a, b, d, k, g, h, f, u, m, r, t, H, D, K, J) {
- var W9B = v3YY;
- var F9m,
- l,
- p,
- n,
- q,
- A,
- G,
- C,
- x,
- D2k,
- i2k,
- s1k;
- F9m = 2;
- while (F9m !== 53) {
- D2k = "1SIY";
- D2k += "bZrNJC";
- D2k += "p9";
- i2k = " >";
- i2k += "= fr";
- i2k += "agm";
- i2k += "entsLen";
- i2k += "gth: ";
- s1k = "Strea";
- s1k += "ming";
- s1k += "Ind";
- s1k += "e";
- s1k += "x: ";
- switch (F9m) {
- case 44:
- t -= q;
- F9m = 43;
- break;
- case 12:
- W9B.t1k(0);
- g = W9B.H1k(g, a, 1E3, l);
- W9B.F1k(1);
- a = W9B.H1k(H, 8, 0, h);
- W9B.F1k(2);
- H = W9B.N1k(8, 0, H);
- W9B.t1k(3);
- h = W9B.H1k(l, 1E3);
- u >= b && c.error(s1k + u + i2k + b);
- d += a;
- F9m = 17;
- break;
- case 43:
- F9m = g < d && x < u ? 42 : 41;
- break;
- case 5:
- l = a.S;
- b = Math.min(a.length, b);
- p = a.Nd;
- n = a.sizes;
- W9B.F1k(4);
- G = W9B.N1k(d, k);
- F9m = 7;
- break;
- case 25:
- W9B.t1k(3);
- G *= W9B.H1k(l, 1E3);
- F9m = 24;
- break;
- case 34:
- F9m = t < C ? 33 : 32;
- break;
- case 2:
- D2k;
- F9m = 5;
- break;
- case 7:
- k = Infinity;
- C = 0;
- x = 0;
- a = a.Nd[0];
- F9m = 12;
- break;
- case 39:
- C = a;
- F9m = 38;
- break;
- case 41:
- ++u;
- F9m = 40;
- break;
- case 27:
- W9B.t1k(3);
- K *= W9B.H1k(l, 1E3);
- W9B.F1k(3);
- D *= W9B.N1k(l, 1E3);
- F9m = 25;
- break;
- case 37:
- F9m = (a = Math.max(f - d, 0), a < D && a < C) ? 36 : 29;
- break;
- case 38:
- k = Math.min(a, k);
- F9m = 24;
- break;
- case 36:
- return {
- result: !1,
- DO: Math.min(a, k) / (l / 1E3),
- Ux: !0
- };
- break;
- case 54:
- return {
- result: !0,
- DO: k / (l / 1E3),
- Ux: !0
- };
- break;
- case 17:
- 0 === f && (d = 0);
- W9B.t1k(3);
- d *= W9B.H1k(l, 1E3);
- W9B.F1k(3);
- f *= W9B.N1k(l, 1E3);
- F9m = 27;
- break;
- case 32:
- F9m = !J && (a = f - d, a < K) ? 31 : 30;
- break;
- case 24:
- F9m = u < b ? 23 : 54;
- break;
- case 42:
- t += n[x],
- ++x,
- g += p[x];
- F9m = 43;
- break;
- case 35:
- C = Math.max(q, r);
- F9m = 34;
- break;
- case 40:
- F9m = u >= m && a > G ? 54 : 39;
- break;
- case 29:
- W9B.F1k(5);
- d += W9B.H1k(0, h, q, H);
- f += A;
- F9m = 44;
- break;
- case 23:
- q = n[u];
- A = p[u];
- F9m = 21;
- break;
- case 21:
- F9m = t < q ? 35 : 37;
- break;
- case 31:
- return {
- result: !1,
- DO: a / (l / 1E3),
- Ux: !1
- };
- break;
- case 33:
- d = g,
- t += n[x],
- ++x,
- a = p[x],
- g += a;
- F9m = 34;
- break;
- case 30:
- W9B.F1k(4);
- a = W9B.N1k(d, f);
- F9m = 29;
- break;
- }
- }
- };
- }, function (d, b, a) {
- var c,
- g,
- q,
- n,
- k,
- p;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.J1 = void 0;
- c = a(50);
- g = a(7);
- d = a(32);
- q = a(377);
- n = d.assert;
- k = d.bn;
- b.J1 = p;
- (function () {
- var R2k,
- f2k;
- R2k = 2;
- while (R2k !== 5) {
- f2k = "1SI";
- f2k += "YbZ";
- f2k += "r";
- f2k += "NJ";
- f2k += "Cp9";
- switch (R2k) {
- case 2:
- b.J1 = p = function (b, c, d, h, k, g) {
- var S2k,
- J2k;
- S2k = 2;
- while (S2k !== 1) {
- J2k = "p";
- J2k += "l";
- J2k += "a";
- J2k += "y";
- J2k += "ing";
- switch (S2k) {
- case 2:
- return J2k === b.hba ? q.nQ.call(this, b, c, d, h, k, g) : a.call(this, b, c, d, h);
- break;
- }
- }
- };
- f2k;
- R2k = 5;
- break;
- }
- }
- function a(a, b, d, h) {
- var w2k,
- l,
- p,
- q,
- u,
- m,
- m2k,
- e2k,
- b2k;
- w2k = 2;
- function f(b) {
- var o2k,
- c,
- U2k;
- o2k = 2;
- while (o2k !== 7) {
- U2k = "buff_lt_";
- U2k += "hi";
- U2k += "st";
- switch (o2k) {
- case 2:
- c = b.Fa;
- o2k = 5;
- break;
- case 3:
- m = U2k;
- u = c;
- return !0;
- break;
- case 5:
- o2k = !c || (b.O > p ? a.gIb : 1) * b.O > c ? 4 : 3;
- break;
- case 4:
- return !1;
- break;
- }
- }
- }
- while (w2k !== 13) {
- m2k = "s";
- m2k += "elec";
- m2k += "t_feasibl";
- m2k += "e_buffering";
- e2k = "fallback_lowe";
- e2k += "st_ac";
- e2k += "ceptable_str";
- e2k += "eam";
- b2k = "Must have at";
- b2k += " least one sel";
- b2k += "ec";
- b2k += "te";
- b2k += "d stream";
- switch (w2k) {
- case 1:
- n(!g.Y(h), b2k);
- l = d[h];
- p = l.O;
- q = l;
- w2k = 9;
- break;
- case 9:
- l.Fa && (b = this.qfa(b, d, a), l = c.An(d.slice(b.vd, Math.min(h + (a.d$a ? 2 : 1), d.length)).reverse(), f), void 0 === l ? (l = b.Dl, m = e2k) : m = m2k, u = null === l || void 0 === l ? void 0 : l.Fa);
- d = new k();
- d.Dl = l;
- q !== l && (d.reason = m, d.fs = u);
- w2k = 14;
- break;
- case 14:
- return d;
- break;
- case 2:
- w2k = 1;
- break;
- }
- }
- }
- }
- ());
- }, function (d, b, a) {
- var g;
- function c(a, b, c) {
- a = c.map(function (a, b) {
- return a.Hj ? b : null;
- }).filter(function (a) {
- return null !== a;
- });
- return a.length ? new g(a[Math.floor(Math.random() * a.length)]) : null;
- }
- g = a(32).bn;
- d.P = {
- STARTING: c,
- BUFFERING: c,
- REBUFFERING: c,
- PLAYING: c,
- PAUSED: c
- };
- }, function (d, b, a) {
- var g,
- q,
- n,
- k;
- function c(a, b, c, d) {
- if (g.Y(d))
- a = q(c);
- else if (n(c[d]))
- a = d;
- else if (a = q(c, d), 0 > a)
- return null;
- return new k(a);
- }
- g = a(7);
- b = a(32);
- q = b.hea;
- n = b.UB;
- k = b.bn;
- d.P = {
- STARTING: c,
- BUFFERING: c,
- REBUFFERING: c,
- PLAYING: c,
- PAUSED: c
- };
- }, function (d, b, a) {
- var c,
- g,
- q,
- n,
- k,
- p,
- h,
- f,
- u,
- m,
- r;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.RT = void 0;
- c = a(7);
- g = a(18);
- q = a(4);
- n = a(50);
- k = a(17);
- p = a(378);
- d = a(32);
- h = new q.Console("ASEJS_STREAM_SELECTOR", "media|asejs");
- f = d.bn;
- u = [k.ma[k.ma.Pg], k.ma[k.ma.Ce], k.ma[k.ma.Ng], k.ma[k.ma.Pc], k.ma[k.ma.Lh], "checkBuffering"];
- m = {
- first: a(797),
- random: a(796),
- optimized: a(208),
- roundrobin: a(792),
- selectaudio: a(376),
- selectaudioadaptive: a(791),
- "default": a(208),
- lowest: a(790),
- highest: a(789),
- throughputthreshold: a(788),
- checkdefault: a(787),
- testscript: a(786)
- };
- r = {
- STARTING: "default",
- BUFFERING: "default",
- REBUFFERING: "default",
- PLAYING: "default",
- PAUSED: "default",
- checkBuffering: "checkdefault"
- };
- a = function () {
- var d2k;
- function a(a, b, c) {
- var g2k,
- f,
- N7l;
- g2k = 2;
- while (g2k !== 6) {
- N7l = "1SI";
- N7l += "YbZ";
- N7l += "r";
- N7l += "NJC";
- N7l += "p9";
- switch (g2k) {
- case 2:
- f = this;
- this.sI = a;
- this.K = b;
- N7l;
- c && (this.TE = c.TE, this.PU = c.PU);
- g2k = 8;
- break;
- case 8:
- a = a || this.K.n2;
- this.zf = u.reduce(function (b, c) {
- var q2k;
- q2k = 2;
- while (q2k !== 5) {
- switch (q2k) {
- case 2:
- b[c] = ((m[a] || m[r[c]])[c] || m[r[c]][c]).bind(f);
- return b;
- break;
- }
- }
- }, {});
- g2k = 6;
- break;
- }
- }
- }
- d2k = 2;
- while (d2k !== 6) {
- switch (d2k) {
- case 3:
- Object.defineProperties(a.prototype, {
- j_: {
- get: function () {
- var P2k;
- P2k = 2;
- while (P2k !== 1) {
- switch (P2k) {
- case 4:
- return this.N9;
- break;
- P2k = 1;
- break;
- case 2:
- return this.N9;
- break;
- }
- }
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- Oha: {
- get: function () {
- var W2k;
- W2k = 2;
- while (W2k !== 1) {
- switch (W2k) {
- case 4:
- return this.Q9;
- break;
- W2k = 1;
- break;
- case 2:
- return this.Q9;
- break;
- }
- }
- },
- enumerable: !1,
- configurable: !0
- }
- });
- a.prototype.qfa = function (a, b, c) {
- var n2k,
- d,
- h,
- k,
- g;
- n2k = 2;
- while (n2k !== 8) {
- switch (n2k) {
- case 2:
- a = a.$ka;
- k = new f();
- g = Math.max(c.UO - Math.floor(a * c.Rub), c.WO, 0);
- k.Dl = null !== (h = null !== (d = n.An(b, function (a) {
- var T2k,
- b;
- T2k = 2;
- while (T2k !== 5) {
- switch (T2k) {
- case 2:
- return (null !== (b = a.wc) && void 0 !== b ? b : -Infinity) >= g;
- break;
- }
- }
- })) && void 0 !== d ? d : n.An(b, function (a) {
- var c2k;
- c2k = 2;
- while (c2k !== 1) {
- switch (c2k) {
- case 4:
- return a.O <= c.VO;
- break;
- c2k = 1;
- break;
- case 2:
- return a.O >= c.VO;
- break;
- }
- }
- })) && void 0 !== h ? h : b[b.length - 1];
- return k;
- break;
- }
- }
- };
- return a;
- break;
- case 2:
- a.prototype.L1 = function (a, b, f, d, l, u) {
- var h2k,
- O2k,
- m,
- r,
- A,
- t,
- G,
- D,
- C,
- H,
- K,
- J,
- R,
- P,
- J7l,
- B7l;
- h2k = 2;
- while (h2k !== 56) {
- J7l = "pl";
- J7l += "a";
- J7l += "y";
- J7l += "in";
- J7l += "g";
- B7l = "Stream s";
- B7l += "elector called w";
- B7l += "ith invalid player";
- B7l += " state ";
- switch (h2k) {
- case 34:
- h2k = P.Dl ? 33 : 64;
- break;
- case 43:
- h2k = (l = b[t], l.Hj) ? 42 : 41;
- break;
- case 11:
- h2k = !(0 <= G) ? 10 : 20;
- break;
- case 62:
- this.PU = g.BS.Pg;
- h2k = 35;
- break;
- case 14:
- h2k = 0 < H ? 13 : 20;
- break;
- case 23:
- O2k = a.state;
- h2k = O2k === k.ma.Pg ? 22 : 63;
- break;
- case 60:
- h2k = O2k === k.ma.Pc ? 35 : 59;
- break;
- case 29:
- h2k = t.DSa && C > t.XO ? 28 : 53;
- break;
- case 6:
- H = C.length;
- h2k = 14;
- break;
- case 42:
- l.$ && l.$.length || (D = !0, P.Cu.push(l.sa));
- h2k = 40;
- break;
- case 59:
- h2k = O2k === k.ma.Lh ? 35 : 58;
- break;
- case 27:
- t.q2 ? C = R.filter(function (a) {
- var V2k;
- V2k = 2;
- while (V2k !== 1) {
- switch (V2k) {
- case 4:
- return a.Ux;
- break;
- V2k = 1;
- break;
- case 2:
- return a.Ux;
- break;
- }
- }
- }) : a.state !== k.ma.Pc && a.state !== k.ma.Lh && (C = R.filter(function (a) {
- var j2k;
- j2k = 2;
- while (j2k !== 1) {
- switch (j2k) {
- case 2:
- return !a.xSa;
- break;
- case 4:
- return -a.xSa;
- break;
- j2k = 1;
- break;
- }
- }
- }));
- R = 0 < C.length ? C : R.slice(0, 1);
- void 0 !== G && (C = n.rx(R, function (a) {
- var p2k;
- p2k = 2;
- while (p2k !== 1) {
- switch (p2k) {
- case 2:
- return a.O > b[G].O;
- break;
- case 4:
- return a.O <= b[G].O;
- break;
- p2k = 1;
- break;
- }
- }
- }), D = 0 < C ? C - 1 : 0 === C ? 0 : R.length - 1);
- h2k = 24;
- break;
- case 40:
- h2k = !D ? 39 : 53;
- break;
- case 52:
- h2k = !P || null === P.vd ? 51 : 50;
- break;
- case 38:
- h2k = 0 <= t ? 37 : 53;
- break;
- case 41:
- ++t;
- h2k = 44;
- break;
- case 64:
- P.vd = function (a) {
- var Y2k;
- Y2k = 2;
- while (Y2k !== 1) {
- switch (Y2k) {
- case 2:
- return n.rx(b, function (b) {
- var k2k;
- k2k = 2;
- while (k2k !== 1) {
- switch (k2k) {
- case 4:
- return b == R[a];
- break;
- k2k = 1;
- break;
- case 2:
- return b === R[a];
- break;
- }
- }
- });
- break;
- }
- }
- }
- (P.vd);
- h2k = 52;
- break;
- case 2:
- f = null === a || void 0 === a ? void 0 : a.buffer;
- r = q.time.ea();
- h2k = 4;
- break;
- case 20:
- c.Y(G) && (G = this.TE);
- this.aY(b, function (b) {
- var v2k;
- v2k = 2;
- while (v2k !== 1) {
- switch (v2k) {
- case 2:
- b.Hj && b.mb && b.mb.Ld ? (m !== b.mb && (m = b.mb, a && a.cp && b.mb && (b.mb.cp = !0), A = Math.floor(d(b.mb, a.buffer, b.track.R.wq[0])), A = 0 === A ? 1 : A), b.Fa = A) : b.Fa = void 0;
- v2k = 1;
- break;
- }
- }
- });
- a.state === k.ma.Pg && c.la(G) && (a.state = k.ma.Ce);
- R = b.filter(function (a) {
- var y2k;
- y2k = 2;
- while (y2k !== 1) {
- switch (y2k) {
- case 4:
- return a || a.Hj;
- break;
- y2k = 1;
- break;
- case 2:
- return a && a.Hj;
- break;
- }
- }
- });
- R.length || (R = b.filter(function (a) {
- var I2k;
- I2k = 2;
- while (I2k !== 1) {
- switch (I2k) {
- case 2:
- return a && a.Tn && !a.Uu;
- break;
- case 4:
- return a || a.Tn || ~a.Uu;
- break;
- I2k = 1;
- break;
- }
- }
- }), R.forEach(function (a) {
- var Q2k;
- Q2k = 2;
- while (Q2k !== 1) {
- switch (Q2k) {
- case 4:
- a.inRange = ~9;
- Q2k = 7;
- break;
- Q2k = 1;
- break;
- case 2:
- a.inRange = !0;
- Q2k = 1;
- break;
- }
- }
- }));
- C = R;
- h2k = 27;
- break;
- case 58:
- return h.error(B7l + k.ma[a.state]),
- null;
- break;
- case 54:
- --t;
- h2k = 38;
- break;
- case 32:
- C = f.em - f.Ic;
- l = void 0;
- D = !1;
- h2k = 29;
- break;
- case 21:
- this.PU = g.BS.Pg;
- h2k = 35;
- break;
- case 35:
- P = this.zf[k.ma[a.state]].call(this, t, a, R, D, d, !!l);
- h2k = 34;
- break;
- case 39:
- t = P.vd - 1;
- h2k = 38;
- break;
- case 53:
- D || (P.Cu = void 0);
- h2k = 52;
- break;
- case 28:
- t = P.vd + 1;
- h2k = 44;
- break;
- case 44:
- h2k = t < b.length ? 43 : 40;
- break;
- case 4:
- t = this.K;
- G = this.TE;
- c.la(G) && a.state === k.ma.Pg && (G = this.TE = void 0);
- c.la(G) && G >= b.length && (G = this.TE = void 0);
- C = f.$;
- h2k = 6;
- break;
- case 24:
- a.state !== k.ma.Pg && void 0 === D && (a.state = k.ma.Pg);
- h2k = 23;
- break;
- case 10:
- J = C[H - 1].O,
- C = n.rx(b, function (a) {
- var C2k;
- C2k = 2;
- while (C2k !== 1) {
- switch (C2k) {
- case 2:
- return a.O > J;
- break;
- case 4:
- return a.O <= J;
- break;
- C2k = 1;
- break;
- }
- }
- }),
- G = 0 < C ? C - 1 : 0 === C ? 0 : b.length - 1;
- h2k = 20;
- break;
- case 36:
- l.$ && l.$.length || (D = !0, P.Cu.push(l.sa));
- h2k = 53;
- break;
- case 13:
- K = C[H - 1].sa;
- G = n.rx(b, function (a) {
- var x2k;
- x2k = 2;
- while (x2k !== 1) {
- switch (x2k) {
- case 4:
- return a.sa != K;
- break;
- x2k = 1;
- break;
- case 2:
- return a.sa === K;
- break;
- }
- }
- });
- h2k = 11;
- break;
- case 37:
- h2k = (l = b[t], l.Hj) ? 36 : 54;
- break;
- case 50:
- this.TE = P.vd;
- t = b[P.vd];
- P.reason && (t.xp = P.reason, t.mQ = P.fs, t.Zu = P.Zu, t.wk = P.wk, t.xk = P.xk);
- c.la(G) && t.O < b[G].O && (this.N9 = f.Mb);
- a.state !== k.ma.Pc && a.state !== k.ma.Lh ? (l = p.pka(a.state), u = this.dm(a.buffer, l, t, u), (P.xj = u.complete) ? P.oW = u.reason : (P.xj = !1, P.PC = u.PC, P.ty = u.ty, P.Xh = u.Xh)) : (P.xj = !0, P.oW = J7l);
- h2k = 45;
- break;
- case 51:
- return null;
- break;
- case 63:
- h2k = O2k === k.ma.Ce ? 62 : 61;
- break;
- case 22:
- this.Q9 = this.N9 = void 0;
- h2k = 21;
- break;
- case 61:
- h2k = O2k === k.ma.Ng ? 62 : 60;
- break;
- case 45:
- a.iN && (P.Mb = f.Mb, u = a && a.az, l = t.$, P.Si = l && void 0 !== u && !isNaN(u) && 0 <= u && u < l.length ? l.$h(u) : f.Mb, P.Uyb = t.Fa || 0, P.rwb = t.mb && t.mb.Fa && t.mb.Fa.Ca || 0, P.cbb = f.em - f.Ic, P.lDa = f.ci, P.Ky = a.state, P.Eo = a && a.Eo, P.nUa = r, P.dGb = q.time.ea());
- return P;
- break;
- case 33:
- h2k = (P.Cu = [], b.forEach(function (a, b) {
- var u2k;
- u2k = 2;
- while (u2k !== 4) {
- switch (u2k) {
- case 2:
- a === P.Dl && (P.vd = b);
- a.Tma && P.Cu.push(a.sa);
- a.Tma = !1;
- u2k = 4;
- break;
- }
- }
- }), !P.Cu.length) ? 32 : 52;
- break;
- }
- }
- };
- a.prototype.dm = function (a, b, c, f) {
- var l2k;
- l2k = 2;
- while (l2k !== 1) {
- switch (l2k) {
- case 2:
- return this.zf.checkBuffering.call(this, a, b, c, f, this.K);
- break;
- }
- }
- };
- a.prototype.m2 = function (a, b, f) {
- var E2k;
- E2k = 2;
- while (E2k !== 1) {
- switch (E2k) {
- case 2:
- c.Y(b) ? this.N9 = this.Q9 = void 0 : b.O < f.O && (this.Q9 = a);
- E2k = 1;
- break;
- }
- }
- };
- a.prototype.aY = function (a, b) {
- var G2k,
- c,
- M2k;
- G2k = 2;
- while (G2k !== 3) {
- switch (G2k) {
- case 1:
- G2k = 0 <= c ? 5 : 3;
- break;
- case 2:
- v3YY.b7l(0);
- M2k = v3YY.x7l(7, 22, 14, 14, 13);
- c = a.length - M2k;
- G2k = 1;
- break;
- case 8:
- c = a.length / 4;
- G2k = 5;
- break;
- G2k = 1;
- break;
- case 5:
- b(a[c], c, a);
- G2k = 4;
- break;
- case 4:
- --c;
- G2k = 1;
- break;
- }
- }
- };
- d2k = 3;
- break;
- }
- }
- }
- ();
- b.RT = a;
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.pxa = void 0;
- d = function () {
- function a(a, b) {
- this.track = a;
- b ? (this.jv = b.jv, this.ZB = b.ZB, this.Lha = b.Lha, this.rO = b.rO) : this.ZB = this.jv = void 0;
- }
- a.prototype.m2 = function (a) {
- this.jv = a;
- };
- a.prototype.QDb = function (a) {
- this.track = a;
- };
- return a;
- }
- ();
- b.pxa = d;
- }, function (d, b, a) {
- var c,
- g,
- q,
- n,
- k;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Ooa = void 0;
- c = a(0);
- a(6);
- d = a(38);
- g = a(4);
- q = a(108);
- n = a(74);
- a = a(162);
- k = g.ak;
- a = function (a) {
- function b(b, c, d, h, k, g, l) {
- h.responseType = 0;
- d = a.call(this, b, d, "", h, k, c, l) || this;
- n.Jh.call(d, b, h);
- d.Mia = c.Mia;
- d.Nia = c.Nia;
- d.kea = 0;
- return d;
- }
- c.__extends(b, a);
- b.prototype.Db = function () {
- this.bc || (this.bc = q.kg());
- };
- b.prototype.zs = function () {
- return k.prototype.open.call(this, this.DK, {
- start: this.offset,
- end: this.offset + Math.max(this.Nia, Math.floor(this.Mia * this.ba)) - 1
- }, this.CK, {}, void 0, void 0, void 0);
- };
- b.prototype.abort = function () {
- return !0;
- };
- b.prototype.rL = function () {
- var a;
- a = this.cd || this.mf;
- this.Xc || (this.Xc = !0, this.kea = a);
- };
- b.prototype.g$ = function () {
- this.kea = this.cd;
- };
- b.prototype.h$ = function () {};
- b.prototype.qL = function () {
- var a;
- a = this.cd;
- this.bc && this.bc.px(this.Ie, this.kea, a, {
- requestId: this.rn(),
- je: this.Lb,
- type: this.M,
- vD: !0
- });
- this.yg = this.Xc = !1;
- this.yc();
- };
- b.prototype.$E = function () {
- this.Sf && this.Sf.clear();
- };
- return b;
- }
- (a.rz);
- b.Ooa = a;
- d.uf(n.Jh, a, !1);
- }, function (d, b, a) {
- var c,
- g,
- q,
- n,
- k,
- p,
- h;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Ioa = void 0;
- c = a(0);
- g = a(95);
- q = a(6);
- a(4);
- n = a(11);
- k = a(209);
- p = a(74);
- h = a(220);
- d = function (a) {
- function b(c, f, d, h, k, g) {
- f = a.call(this, c, h, k, f, g) || this;
- f.G4a = d;
- f.qn = void 0;
- f.x9 = b.LD.INIT;
- f.IQb = h.offset;
- f.M9 = p.Jh.prototype.toString.call(f) + " multiple";
- f.jF(c.url, h.offset, 8, 0);
- return f;
- }
- c.__extends(b, a);
- Object.defineProperties(b.prototype, {
- data: {
- get: function () {
- return this.qn;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- b.prototype.bj = function (a) {
- var c,
- f;
- this.qn = this.qn ? n.Pr(this.qn, a.response) : a.response;
- a.UP();
- switch (this.x9) {
- case b.LD.INIT:
- c = new DataView(this.qn);
- f = c.getUint32(0);
- c = c.getUint32(4);
- g.kA(c);
- this.jF(a.url, a.offset + a.ba, f, 0);
- k.pz.prototype.bj.call(this, a);
- this.x9 = b.LD.xta;
- break;
- case b.LD.xta:
- c = new DataView(this.qn);
- f = c.getUint32(this.Vya - 8);
- c = c.getUint32(this.Vya - 4);
- g.kA(c);
- this.jF(a.url, a.offset + a.ba, f - 8, 0);
- this.x9 = b.LD.sta;
- k.pz.prototype.bj.call(this, a);
- break;
- case b.LD.sta:
- k.pz.prototype.bj.call(this, a);
- break;
- default:
- q.assert(!1);
- }
- };
- b.prototype.jF = function (a, b, c, f) {
- a = new h.kJ(this.stream, this.G4a, this.M9 + " (" + this.wa.length + ")", {
- u: this.u,
- M: this.M,
- sa: this.sa,
- O: this.O,
- offset: b,
- ba: c,
- url: a,
- location: this.location,
- Lb: this.Lb,
- responseType: f
- }, this, this.$c, this.G);
- this.push(a);
- this.Vya = this.wa.reduce(function (a, b) {
- return a + b.ba;
- }, 0);
- };
- b.LD = {
- INIT: 0,
- xta: 1,
- sta: 2,
- name: ["INIT", "MOOF", "MDAT"]
- };
- return b;
- }
- (k.pz);
- b.Ioa = d;
- }, function (d, b, a) {
- var c,
- g,
- q,
- n,
- k,
- p,
- h,
- f;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Eoa = void 0;
- c = a(0);
- a(6);
- g = a(7);
- d = a(38);
- q = a(4);
- n = a(108);
- k = a(74);
- p = a(162);
- h = a(159);
- f = q.ak;
- a = function (a) {
- function b(b, c, d, h, g, l, p) {
- var n;
- n = this;
- n = ["cache", "edit"].filter(function (a, b) {
- return [l, h.Sa][b];
- });
- n = n.length ? "(" + n.join(",") + ")" : "";
- void 0 === h.responseType && (h.responseType = f.xc && !f.xc.iI.$z ? 0 : 1);
- n = a.call(this, b, d, n, h, g, c, p) || this;
- k.Jh.call(n, b, h);
- n.K5a = h.lsb;
- n.Sf.on(n, f.Sd.cOb, n.Q6a);
- n.Sf.on(n, f.Sd.bOb, n.P6a);
- return n;
- }
- c.__extends(b, a);
- b.prototype.Db = function (a) {
- h.tz.prototype.Db.call(this, a);
- this.bc || !this.$c.VV && this.ec || (this.bc = n.kg());
- };
- b.prototype.zs = function () {
- var a;
- a = {
- start: this.offset,
- end: this.offset + this.ba - 1
- };
- void 0 !== this.zc && 0 <= this.zc && void 0 !== this.Wb && (this.DK = this.kAa(this.DK, !0), a = {
- start: 0,
- end: -1
- });
- return f.prototype.open.call(this, this.DK, a, this.CK, {}, void 0, void 0, this.Cya);
- };
- b.prototype.N2 = function () {
- var a,
- b,
- c;
- if (this.complete)
- return 0;
- a = this.UQa;
- b = a.R;
- if (!a.url)
- return this.G.warn("updateurl, missing url for streamId:", a.sa, "mediaRequest:", this, "stream:", a), 1;
- c = this.kAa(a.url, !1);
- return this.url === c || (b.V1(this, a.location, a.uc), this.SQ(c)) ? 0 : (this.G.warn("swapUrl failed: ", this.uG), 2);
- };
- b.prototype.rL = function () {
- this.Xc || (this.Xc = !0, this.Vn = this.track.Vn(), this.DB(this), this.yl = 0, this.zl = this.cd);
- };
- b.prototype.g$ = function () {
- var a;
- a = this.cd;
- this.CB(this);
- this.zl = a;
- };
- b.prototype.h$ = function () {
- var a;
- a = this.cd;
- this.AG(this);
- this.zl = a;
- this.yl = this.Ie;
- };
- b.prototype.Q6a = function () {
- var a;
- a = this.bsb;
- this.yg = !0;
- this.bc && (this.bc.LC(a, {
- requestId: this.rn(),
- je: this.Lb,
- type: this.M
- }), this.bc.sla());
- };
- b.prototype.qL = function () {
- var a;
- a = this.cd;
- this.bc && this.yg && this.bc.NC(q.time.ea(), this.yg, {
- requestId: this.rn(),
- je: this.Lb,
- type: this.M
- });
- this.yg = this.Xc = !1;
- this.hq(this);
- this.zl = a;
- this.yl = this.Ie;
- this.yc();
- };
- b.prototype.P6a = function () {
- this.bc && (this.bc.px(this.MTb, this.bsb, this.$rb, {
- requestId: this.rn(),
- je: this.Lb,
- type: this.M
- }), this.bc.NC(this.$rb, this.yg, {
- requestId: this.rn(),
- je: this.Lb,
- type: this.M
- }));
- this.yg = !1;
- };
- b.prototype.$3a = function (a, b, c, f) {
- return void 0 === a || void 0 === b || void 0 === c ? 0 : b < c ? 0 : a < c ? f : a - c;
- };
- b.prototype.kAa = function (a, b) {
- var c,
- f;
- if (g.Y(this.zc) || 0 > this.zc || g.Y(this.Wb))
- return a;
- c = [];
- f = this.$3a(this.zc, this.Wb - 1, this.K5a, this.$c.fja);
- c.push("ptsRange/" + this.zc + "-" + (this.Wb - 1));
- 0 < f && b && c.push("timeDelay/" + f);
- a = a.split("?");
- b = a[0];
- for (var f = "", d = 0; d < c.length; d++)
- f += "/" + c[d];
- return a[1] ? b + (f + "?" + a[1]) : b + f;
- };
- return b;
- }
- (p.rz);
- b.Eoa = a;
- d.uf(k.Jh, a, !1);
- }, function (d, b, a) {
- var c,
- g,
- q,
- n;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.JR = void 0;
- c = a(0);
- g = a(6);
- d = a(38);
- q = a(221);
- a = a(109);
- n = function () {
- function a(b, c) {
- this.Ea = [];
- this.Sg = void 0;
- this.dc = 0;
- this.G = b;
- c && c.length && (Array.isArray(c) ? (this.Ea = c.slice(), this.HK(0, this.Ea.length)) : c instanceof a && (this.Ea = c.Ea.slice(), this.HK(0, this.Ea.length)));
- }
- Object.defineProperties(a.prototype, {
- length: {
- get: function () {
- return this.Ea.length;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- empty: {
- get: function () {
- return 0 === this.Ea.length;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- first: {
- get: function () {
- return this.Ea[0];
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- dh: {
- get: function () {
- return this.Ea[this.Ea.length - 1];
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- Ra: {
- get: function () {
- return this.first && this.first.Ra;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- hb: {
- get: function () {
- return this.dh && this.dh.hb;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- ba: {
- get: function () {
- return this.dc;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- S: {
- get: function () {
- return this.first && this.first.S;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- Pj: {
- get: function () {
- return this.first && this.first.Pj;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- $: {
- get: function () {
- return this.Ea;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- a.prototype.get = function (a) {
- 0 > a && (a += this.Ea.length);
- return this.Ea[a];
- };
- a.prototype.push = function (a) {
- this.Ea.push(a);
- this.HK(this.Ea.length - 1);
- return this.length;
- };
- a.prototype.unshift = function (a) {
- this.Ea.unshift(a);
- this.HK(0, 1);
- return this.length;
- };
- a.prototype.pop = function () {
- if (0 !== this.Ea.length)
- return this.v$(this.Ea.length - 1), this.Ea.pop();
- };
- a.prototype.shift = function () {
- if (0 !== this.Ea.length)
- return this.v$(0), this.Ea.shift();
- };
- a.prototype.splice = function (a, b) {
- for (var f, d = [], h = 2; h < arguments.length; h++)
- d[h - 2] = arguments[h];
- 0 > a && (a += this.Ea.length);
- 0 > a && (a = 0);
- a > this.Ea.length && (a = this.Ea.length);
- if (void 0 === b || 0 > b)
- b = 0;
- b = Math.min(b, this.Ea.length - a);
- 0 < b && this.v$(a, a + b);
- h = (f = this.Ea).splice.apply(f, c.__spread([a, b], d));
- 0 < d.length && this.HK(a, a + arguments.length - 2);
- return h;
- };
- a.prototype.slice = function (b, c) {
- void 0 === b && (b = 0);
- void 0 === c && (c = this.Ea.length);
- 0 > b && (b += this.Ea.length);
- if (b >= this.Ea.length)
- return new a(this.G);
- c > this.Ea.length && (c = this.Ea.length);
- 0 > c && (c += this.Ea.length);
- return new a(this.G, this.Ea.slice(b, c));
- };
- a.prototype.Sn = function (a) {
- if (0 === this.Ea.length || a.Ra >= this.hb)
- this.push(a);
- else if (a.hb <= this.Ra)
- this.unshift(a);
- else {
- for (var b = 0, c = this.Ea.length - 1, d; b < c - 1; )
- d = Math.floor((c + b) / 2), g.assert(d !== c && d !== b), a.Ra >= this.Ea[d].hb ? b = d : c = d;
- g.assert(b !== c);
- g.assert(this.Ea[b].hb <= a.Ra && this.Ea[c].Ra >= a.hb);
- this.splice(c, 0, a);
- }
- };
- a.prototype.remove = function (a) {
- a = this.Ea.indexOf(a);
- if (0 > a)
- return !1;
- this.splice(a, 1);
- return !0;
- };
- a.prototype.concat = function () {
- for (var b = [], c = 0; c < arguments.length; c++)
- b[c] = arguments[c];
- b = b.map(function (a) {
- return a.Ea;
- });
- return new a(this.G, Array.prototype.concat.apply(this.Ea, b));
- };
- a.prototype.forEach = function (a) {
- var b;
- b = this;
- this.Ea.forEach(function (c, d) {
- return a(c, d, b);
- });
- };
- a.prototype.some = function (a) {
- var b;
- b = this;
- return this.Ea.some(function (c, d) {
- return a(c, d, b);
- });
- };
- a.prototype.every = function (a) {
- var b;
- b = this;
- return this.Ea.every(function (c, d) {
- return a(c, d, b);
- });
- };
- a.prototype.map = function (a) {
- var b;
- b = this;
- return this.Ea.map(function (c, d) {
- return a(c, d, b);
- });
- };
- a.prototype.reduce = function (a, b) {
- var c;
- c = this;
- return this.Ea.reduce(function (b, f, d) {
- return a(b, f, d, c);
- }, b);
- };
- a.prototype.indexOf = function (a) {
- return this.Ea.indexOf(a);
- };
- a.prototype.find = function (a) {
- var b,
- c;
- b = this;
- return this.Ea.some(function (f, d) {
- c = d;
- return a(f, d, b);
- }) ? this.Ea[c] : void 0;
- };
- a.prototype.findIndex = function (a) {
- var b,
- c;
- b = this;
- return this.Ea.some(function (f, d) {
- c = d;
- return a(f, d, b);
- }) ? c : -1;
- };
- a.prototype.filter = function (b) {
- var c;
- c = this;
- return new a(this.G, this.Ea.filter(function (a, d) {
- return b(a, d, c);
- }));
- };
- a.prototype.aY = function (a) {
- for (var b = this.Ea.length - 1; 0 <= b; --b)
- a(this.Ea[b], b, this);
- };
- a.prototype.xG = function (a) {
- if (this.empty || a < this.ed || a >= this.ze)
- return -1;
- for (var b = 0, c = this.Ea.length - 1, d; c > b; ) {
- d = Math.floor((c + b) / 2);
- if (a >= this.Ea[d].ed && a < this.Ea[d].ze) {
- c = d;
- break;
- }
- a < this.Ea[d].ze ? c = d - 1 : b = d + 1;
- }
- return c;
- };
- a.prototype.QGa = function (a) {
- a = this.xG(a);
- return 0 <= a ? this.Ea[a] : void 0;
- };
- a.prototype.PV = function (a) {
- var b;
- b = this.Ea[a].hb;
- for (a += 1; a < this.Ea.length && b === this.Ea[a].Ra; ++a)
- b = this.Ea[a].hb;
- a < this.Ea.length ? void 0 === this.Sg ? this.Sg = new q.xD(this, {
- hb: b
- }) : this.Sg.sQ(b) : void 0 === this.Sg ? this.Sg = new q.xD(this, {}) : this.Sg.Fba();
- };
- a.prototype.sE = function (a, b) {
- for (var c = a; c < b; ++c)
- this.dc += this.Ea[c].ba;
- void 0 === this.Sg || 0 === a ? this.PV(0) : this.Sg.hb === this.hb ? this.PV(a - 1) : this.Ea[a].Ra === this.Sg.hb && this.PV(a);
- };
- a.prototype.Rt = function (a, b) {
- var c;
- if (0 === a)
- this.Sg = void 0, b < this.length && this.PV(b);
- else {
- c = this.Sg;
- c.hb > this.Ea[a - 1].hb && (b < this.length ? c.sQ(this.Ea[a - 1].hb) : c.Fba());
- }
- for (; a < b; ++a)
- this.dc -= this.Ea[a].ba;
- };
- a.prototype.HK = function (a, b) {
- void 0 === b && (b = a + 1);
- this.sE(a, b);
- };
- a.prototype.v$ = function (a, b) {
- void 0 === b && (b = a + 1);
- this.Rt(a, b);
- };
- return a;
- }
- ();
- b.JR = n;
- d.uf(a.uz, n);
- d.uf(a.qz, n);
- }, function (d, b, a) {
- var c;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Opa = void 0;
- c = a(0);
- a(6);
- d = function () {
- function a(a, b) {
- this.Hc = a;
- this.BE = b;
- this.Mt();
- }
- Object.defineProperties(a.prototype, {
- length: {
- get: function () {
- return this.cx;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- empty: {
- get: function () {
- return 0 === this.cx;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- a.prototype.Ekb = function () {
- return this.LE && this.LE.get(0);
- };
- a.prototype.pab = function () {
- return this.wE && this.wE.get(this.wE.length - 1);
- };
- a.prototype.get = function (a) {
- 0 > a && (a += this.length);
- for (var b = 0; b < this.Hc.length; ++b)
- if (this.Ug[b + 1] > a)
- return this.Hc[b].get(a - this.Ug[b]);
- };
- a.prototype.push = function (a) {
- this.Hc[this.BE(a)].push(a);
- this.Mt();
- return this.cx;
- };
- a.prototype.shift = function () {
- var a;
- if (this.LE) {
- a = this.LE.shift();
- this.Mt();
- return a;
- }
- };
- a.prototype.pop = function () {
- var a;
- if (this.wE) {
- a = this.wE.pop();
- this.Mt();
- return a;
- }
- };
- a.prototype.unshift = function (a) {
- this.Hc[this.BE(a)].unshift(a);
- this.Mt();
- return this.cx;
- };
- a.prototype.Sn = function (a) {
- var b;
- b = this.BE(a);
- this.Hc[b].Sn(a);
- this.Mt();
- };
- a.prototype.remove = function (a) {
- var b;
- b = this.Hc.some(function (b) {
- return b.remove(a);
- });
- b && this.Mt();
- return b;
- };
- a.prototype.splice = function (a, b) {
- var q,
- m,
- r,
- t;
- for (var d, g = [], h = 2; h < arguments.length; h++)
- g[h - 2] = arguments[h];
- for (var h = [], f, l = a + Math.max(0, b), n = 0; n < this.Hc.length; ++n) {
- q = this.Hc[n];
- m = this.Ug[n];
- r = this.Ug[n + 1];
- if (a < r) {
- t = a - m;
- m = Math.min(l - m, q.length);
- void 0 === f && 0 < t && m < q.length ? Array.prototype.push.apply(h, q.splice.apply(q, c.__spread([t, m - t], g))) : (Array.prototype.push.apply(h, q.splice(t, m - t)), void 0 === f && (f = 0 < n && 0 === t ? n - 1 : n));
- a = r;
- if (a >= l)
- break;
- }
- }
- if (g.length && void 0 !== f) {
- for (l = this.BE(g[0]); 0 < f && l < f && this.Hc[f].empty; )
- --f;
- for (; g.length && l === f; ) {
- this.Hc[f].push(g.shift());
- if (!g.length)
- break;
- l = this.BE(g[0]);
- }
- for (; g.length && ++f < this.Hc.length && this.Hc[f].empty; )
- for (; g.length && l === f; ) {
- this.Hc[f].push(g.shift());
- if (!g.length)
- break;
- l = this.BE(g[0]);
- }
- g.length && (d = this.Hc[f]).splice.apply(d, c.__spread([0, 0], g));
- }
- this.Mt();
- return h;
- };
- a.prototype.find = function (a) {
- var b,
- c;
- b = this;
- return this.Hc.some(function (d, h) {
- c = d.find(b.IA(a, h));
- return void 0 !== c;
- }) ? c : void 0;
- };
- a.prototype.findIndex = function (a) {
- var c;
- for (var b = 0; b < this.Hc.length; ++b) {
- c = this.Hc[b].findIndex(this.IA(a, b));
- if (-1 !== c)
- return c + this.Ug[b];
- }
- return -1;
- };
- a.prototype.indexOf = function (a) {
- var c;
- for (var b = 0; b < this.Hc.length; ++b) {
- c = this.Hc[b].indexOf(a);
- if (-1 !== c)
- return c + this.Ug[b];
- }
- return -1;
- };
- a.prototype.map = function (a) {
- var b,
- c;
- b = this;
- c = this.Hc.map(function (c, d) {
- return c.map(b.IA(a, d));
- });
- return Array.prototype.concat.apply([], c);
- };
- a.prototype.reduce = function (a, b) {
- var c;
- c = this;
- return this.Hc.reduce(function (b, d, f) {
- return d.reduce(c.S8a(a, f), b);
- }, b);
- };
- a.prototype.forEach = function (a) {
- var b;
- b = this;
- this.Hc.forEach(function (c, d) {
- c.forEach(b.IA(a, d));
- });
- };
- a.prototype.aY = function (a) {
- for (var b = this.Hc.length - 1; 0 <= b; --b)
- this.Hc[b].aY(this.IA(a, b));
- };
- a.prototype.some = function (a) {
- var b;
- b = this;
- return this.Hc.some(function (c, d) {
- return c.some(b.IA(a, d));
- });
- };
- a.prototype.every = function (a) {
- var b;
- b = this;
- return this.Hc.every(function (c, d) {
- return c.every(b.IA(a, d));
- });
- };
- a.prototype.lkb = function (a, b) {
- var g,
- l;
- function c(b) {
- return b.reduce(function (b, c, f, d) {
- return void 0 === c ? b : void 0 === b ? f : 0 > a(c, d[b]) ? f : b;
- }, void 0);
- }
- for (var d = this, h = this.Hc.map(function () {
- return 0;
- }), f = this.Hc.filter(function (a) {
- return a.empty;
- }).length; f < this.Hc.length; ) {
- g = h.map(function (a, b) {
- return a < d.Hc[b].length ? d.Hc[b].get(a) : void 0;
- });
- l = c(g);
- b(g[l], this.Ug[l] + h[l], this);
- ++h[l];
- h[l] === this.Hc[l].length && ++f;
- }
- };
- a.prototype.move = function (a) {
- return this.remove(a) ? (this.Sn(a), !0) : !1;
- };
- a.prototype.pEb = function () {
- var a;
- if (this.Hc[1].length) {
- a = this.Hc[1].shift();
- this.Hc[0].push(a);
- this.Mt();
- }
- };
- a.prototype.Ojb = function (a) {
- for (var b = -1, c = 0; c < this.Hc.length; ++c)
- if (b = a(this.Hc[c]), -1 !== b) {
- b += this.Ug[c];
- break;
- }
- return b;
- };
- a.prototype.toJSON = function () {
- return this.map(function (a) {
- return a.toJSON();
- });
- };
- a.prototype.Mt = function () {
- var b;
- this.cx = 0;
- this.Ug = [0];
- this.wE = this.LE = void 0;
- for (var a = 0; a < this.Hc.length; ++a) {
- b = this.Hc[a];
- this.cx += b.length;
- this.Ug.push(this.Ug[this.Ug.length - 1] + b.length);
- !this.LE && b.length && (this.LE = b);
- b.length && (this.wE = b);
- }
- };
- a.prototype.IA = function (a, b) {
- var c,
- d;
- c = this;
- d = this.Ug[b];
- return function (b, f) {
- return a(b, d + f, c);
- };
- };
- a.prototype.S8a = function (a, b) {
- var c,
- d;
- c = this;
- d = this.Ug[b];
- return function (b, f, k) {
- return a(b, f, d + k, c);
- };
- };
- return a;
- }
- ();
- b.Opa = d;
- }, function (d, b, a) {
- var c,
- g,
- q,
- n,
- k,
- p;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Doa = void 0;
- c = a(0);
- a(6);
- g = a(804);
- d = a(38);
- q = a(803);
- n = a(109);
- k = a(83);
- p = a(221);
- a = function (a) {
- function b(b, f) {
- var d,
- h;
- h = this;
- d = [new q.JR(b), new q.JR(b), new q.JR(b)];
- h = a.call(this, d, function (a) {
- return a.complete ? h.empty || a.Ra <= h.Kcb ? 0 : 1 : a.active ? 1 : 2;
- }) || this;
- d = c.__read(d, 3);
- h.Td = d[0];
- h.Xc = d[1];
- h.Yt = d[2];
- h.yo = 0;
- h.M8 = 0;
- h.G = b;
- k.Xq.call(h, f);
- return h;
- }
- c.__extends(b, a);
- Object.defineProperties(b.prototype, {
- ba: {
- get: function () {
- return this.Td.ba + this.Xc.ba + this.Yt.ba;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- active: {
- get: function () {
- return this.Xc;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- complete: {
- get: function () {
- return this.Td;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- qAb: {
- get: function () {
- return this.yo;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- bB: {
- get: function () {
- return this.Td.ba;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- dj: {
- get: function () {
- return this.Td.ba + this.Xc.ba - this.yo;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- first: {
- get: function () {
- return this.Ekb();
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- dh: {
- get: function () {
- return this.pab();
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- rda: {
- get: function () {
- return !this.Td.empty || this.Yt.empty || this.Xc.empty ? this.first : this.Xc.Ra < this.Yt.Ra ? this.Xc.first : this.Yt.first;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- tLa: {
- get: function () {
- return this.Yt.empty || this.Xc.empty ? this.dh : this.Xc.hb < this.Yt.hb ? this.Yt.dh : this.Xc.dh;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- YGa: {
- get: function () {
- return this.Yt.first;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- S: {
- get: function () {
- return this.first && this.first.S;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- Ra: {
- get: function () {
- return this.rda && this.rda.Ra;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- hb: {
- get: function () {
- return this.tLa && this.tLa.hb;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- Pj: {
- get: function () {
- return this.first && this.first.Pj;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- Jcb: {
- get: function () {
- return this.Td.duration;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- cqb: {
- get: function () {
- return this.Wb - this.lEa || 0;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- Kcb: {
- get: function () {
- return this.Td.empty ? this.Ra : this.Td.hb;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- lEa: {
- get: function () {
- return this.Td.empty ? this.zc : this.Td.Wb;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- mEa: {
- get: function () {
- return this.Td.empty ? this.ed : this.Td.ze;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- Dxb: {
- get: function () {
- return this.Xc.dh || this.Td.dh;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- Xs: {
- get: function () {
- return this.Yt.length;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- Eo: {
- get: function () {
- return this.Xc.length;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- Pcb: {
- get: function () {
- return this.Td.length;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- uI: {
- get: function () {
- return this.Td.concat(this.Xc);
- },
- enumerable: !1,
- configurable: !0
- }
- });
- b.prototype.sE = function (a) {
- var b;
- a.Cr ? ++this.M8 : this.yo += a.Ie || 0;
- if (this.empty)
- this.Sg = new p.xD(this, {});
- else if (a.Ra !== this.hb)
- if (a.Ra > this.Sg.hb)
- this.Sg.sQ(this.Sg.hb);
- else if (a.Ra < this.Ra || a.Ra === this.Sg.hb) {
- b = a.hb;
- this.lkb(function (a, b) {
- return a.Ra - b.Ra;
- }, function (a) {
- b = a.Ra === b ? a.hb : b;
- });
- b === Math.max(this.hb, a.hb) ? this.Sg.Fba() : this.Sg.sQ(b);
- }
- a.eSa(this);
- };
- b.prototype.Rt = function (a) {
- a.Cr ? --this.M8 : this.yo -= a.Ie;
- this.empty ? this.Sg = void 0 : a.Ra !== this.hb && a.hb <= this.Sg.hb && a.Ra > this.Sg.Ra && this.Sg.sQ(a.Ra);
- a.WDa();
- };
- b.prototype.push = function (b) {
- this.sE(b);
- return a.prototype.push.call(this, b);
- };
- b.prototype.shift = function () {
- var b;
- b = a.prototype.shift.call(this);
- b && this.Rt(b);
- return b;
- };
- b.prototype.pop = function () {
- var b;
- b = a.prototype.pop.call(this);
- b && this.Rt(b);
- return b;
- };
- b.prototype.unshift = function (b) {
- this.sE(b);
- return a.prototype.unshift.call(this, b);
- };
- b.prototype.Sn = function (b) {
- this.sE(b);
- a.prototype.Sn.call(this, b);
- };
- b.prototype.remove = function (b) {
- if (!a.prototype.remove.call(this, b))
- return !1;
- this.Rt(b);
- return !0;
- };
- b.prototype.splice = function (b, f) {
- for (var d = [], h = 2; h < arguments.length; h++)
- d[h - 2] = arguments[h];
- h = a.prototype.splice.apply(this, c.__spread([b, f], d));
- d.forEach(this.sE.bind(this));
- h.forEach(this.Rt.bind(this));
- return h;
- };
- b.prototype.Lzb = function (a) {
- var b;
- b = this;
- this.reduce(function (c, f, d) {
- f.Cr && (a && a(f, d, b), 0 === c.length || c[0].end !== d ? c.unshift({
- start: d,
- end: d + 1
- }) : c[0].end += 1);
- return c;
- }, []).forEach(function (a) {
- return b.splice(a.start, a.end - a.start);
- });
- };
- b.prototype.xG = function (a) {
- return this.Ojb(function (b) {
- return b.xG(a);
- });
- };
- b.prototype.QGa = function (a) {
- a = this.xG(a);
- return -1 !== a ? this.get(a) : void 0;
- };
- b.prototype.TCb = function (a) {
- var c;
- for (var b = []; a < this.length; ) {
- c = this.get(a);
- c && b.push(c);
- a++;
- }
- return b;
- };
- b.prototype.Ev = function (a) {
- this.move(a);
- this.DB(a);
- };
- b.prototype.tP = function (a) {
- this.yo += a.Ie - a.yl;
- this.AG(a);
- };
- b.prototype.bj = function (a) {
- for (this.yo += a.Ie - a.yl; this.Xc.first && this.Xc.first.complete && (this.Td.empty ? this.Xc.first === this.rda : this.Xc.first.Ra === this.Td.hb); )
- this.pEb();
- this.hq(a);
- };
- b.prototype.qP = function (a, b, c) {
- this.yo -= a.Ie;
- ++this.M8;
- this.fY(a, b, c);
- };
- return b;
- }
- (g.Opa);
- b.Doa = a;
- d.uf(k.Xq, a, !1);
- d.uf(n.uz, a);
- d.uf(n.qz, a);
- }, function (d, b, a) {
- var c,
- g,
- q,
- n,
- k,
- p;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.qWa = void 0;
- c = a(95);
- g = a(157);
- q = a(18);
- n = a(11);
- a(6);
- k = a(34);
- p = a(4);
- d = function () {
- var I8l;
- function a() {
- var s8l,
- n4s;
- s8l = 2;
- while (s8l !== 1) {
- n4s = "1";
- n4s += "SIYbZrNJ";
- n4s += "Cp9";
- switch (s8l) {
- case 4:
- "";
- s8l = 2;
- break;
- s8l = 1;
- break;
- case 2:
- n4s;
- s8l = 1;
- break;
- }
- }
- }
- I8l = 2;
- while (I8l !== 13) {
- switch (I8l) {
- case 7:
- a.prototype.I4a = function (a, b, d, h, k) {
- var k8l,
- f,
- g,
- l,
- u,
- x4s,
- F4s,
- v4s,
- C4s;
- k8l = 2;
- while (k8l !== 6) {
- x4s = " from";
- x4s += " [";
- x4s += " ";
- F4s = "AseFragmen";
- F4s += "tMediaRequest: Fr";
- F4s += "agment edit failed for ";
- v4s = "m";
- v4s += "edi";
- v4s += "a|a";
- v4s += "s";
- v4s += "ejs";
- C4s = "M";
- C4s += "P";
- C4s += "4";
- switch (k8l) {
- case 3:
- this.M === q.La.AUDIO && d && (h ? k && this.oda() : this.$ya(d) ? d.Sa && this.Sa && this.Sa.start !== d.Sa.end && this.Qj({
- start: d.Sa.end
- }) : (g = this.b4a(b), d.ze === this.ed && (g.Ns = 0)));
- 0 >= this.duration && (u = !1, f = !0);
- u && (this.Sa && (0 < this.Sa.start || g.Ns) ? (f = new c.zw(new p.Console(C4s, v4s), this.stream, this.response), (b = f.FQa(this.Sa.start, this.yH, g.Ns, g.wla)) ? (f = a.appendBuffer(n.Pr(b.Cg), n.vm(this)), l = this.pV(g), this.fV(b.Cg)) : (this.G.error(F4s + this.toString() + x4s + this.Wx + "-" + this.hY + "]"), f = !0)) : f = a.appendBuffer(this.response, n.vm(this)));
- return {
- V: f,
- Xn: l
- };
- break;
- case 2:
- g = {
- Ns: 0
- };
- f = !1;
- u = !0;
- k8l = 3;
- break;
- }
- }
- };
- a.prototype.J4a = function (a, b, d, h, k) {
- var e8l,
- f,
- g,
- l,
- p,
- E4s,
- T4s;
- e8l = 2;
- while (e8l !== 6) {
- E4s = " ";
- E4s += "fro";
- E4s += "m [";
- E4s += " ";
- T4s = "AseFragmentMediaReque";
- T4s += "st: Fragment edit ";
- T4s += "failed f";
- T4s += "or ";
- switch (e8l) {
- case 2:
- f = this.$c;
- l = {
- Ns: 0
- };
- g = !0;
- this.M === q.La.AUDIO && (h ? k && (this.Qhb(), g = 0 < this.Sa.end) : this.$ya(d) ? d.Sa && 0 !== d.Sa.start ? this.Qj({
- start: 0,
- end: d.Sa.start
- }) : g = !1 : (l = this.c4a(b), f.Js || (b = this.F3a(b, d, l.dHa), (g = b.rEb) && b.utb && !l.wla && (l.Ns = 0))));
- g && 0 === this.duration && (g = !1);
- g ? this.Sa && this.Sa.end < this.xN || l.Ns ? (g = new c.zw(this.G, this.stream, this.response), (g = g.KQa(this.Sa && this.Sa.end, this.S, l.Ns, l.wla)) ? (a = a.appendBuffer(n.Pr(g.Cg), n.vm(this)), p = this.pV(l), this.fV(g.Cg)) : (this.G.error(T4s + this.toString() + E4s + this.Wx + "-" + this.hY + "]"), a = !0)) : a = a.appendBuffer(this.response, n.vm(this)) : a = !0;
- e8l = 7;
- break;
- case 7:
- return {
- V: a,
- Xn: p
- };
- break;
- }
- }
- };
- return a;
- break;
- case 3:
- a.prototype.c4a = function (a) {
- var d8l,
- P4s;
- d8l = 2;
- while (d8l !== 1) {
- P4s = "onE";
- P4s += "x";
- P4s += "it";
- switch (d8l) {
- case 4:
- return this.Wya(a, this.$c.xKa, "");
- break;
- d8l = 1;
- break;
- case 2:
- return this.Wya(a, this.$c.xKa, P4s);
- break;
- }
- }
- };
- a.prototype.F3a = function (a, b, c) {
- var n8l,
- d,
- h,
- l,
- p,
- n,
- q,
- u,
- m,
- r;
- function f(a) {
- var Z8l,
- b,
- c;
- Z8l = 2;
- while (Z8l !== 9) {
- switch (Z8l) {
- case 2:
- a = Math.floor(Math.min(q, a) / p.Ab);
- b = p.Ab * a;
- v3YY.a4s(0);
- c = v3YY.l4s(b, m);
- return {
- up: a,
- Ro: b,
- PSb: c,
- yNa: 0 < a && c < n / 1E3
- };
- break;
- }
- }
- }
- n8l = 2;
- while (n8l !== 18) {
- switch (n8l) {
- case 2:
- h = this.$c;
- l = !0;
- d = !1;
- a = g.wfa(h, a);
- p = this.Ta;
- n = p.S;
- n8l = 7;
- break;
- case 7:
- q = this.Ro;
- u = b ? b.oka : this.pPa - 2 * p.Ab;
- m = u - this.nHa;
- c = h.nkb || c;
- b && !c && (d = f(m), r = d.up, d = d.yNa);
- n8l = 11;
- break;
- case 11:
- d || (r = u - k.ka.lja(a, n), r = new k.ka(r - this.nHa, n), b = f(h.Jg ? Infinity : Math.max(0, r.Ab)), r = b.up, (b = b.yNa) && 0 < r && !h.Jg && --r);
- this.Qj({
- start: 0,
- end: r
- });
- r < (h.evb || 1) && (l = !1);
- return {
- rEb: l,
- utb: d
- };
- break;
- }
- }
- };
- a.prototype.yF = function (a, b, c, d, h, k) {
- var c8l,
- f,
- g;
- c8l = 2;
- while (c8l !== 6) {
- switch (c8l) {
- case 5:
- c8l = this.Oi ? 4 : 3;
- break;
- case 2:
- g = this.$c;
- c8l = 5;
- break;
- case 4:
- return {
- V: !1
- };
- break;
- case 3:
- this.oHa ? a = a.appendBuffer(n.Pr(this.ZFa), n.vm(this)) : this.Sa && !this.hv ? (f = this.I4a(a, b, c, h, k), a = f.V, f = f.Xn) : this.Sa && this.hv ? (f = this.J4a(a, b, d, h, k), a = f.V, f = f.Xn) : a = this.M === q.La.AUDIO && g.Js && c && this.Xv && c.ze >= this.ze && this.Wb - this.Xv < this.Xv - this.zc ? !0 : a.appendBuffer(this.response, n.vm(this));
- this.Oi = !0;
- this.UP();
- return {
- V: a,
- Xn: f
- };
- break;
- }
- }
- };
- I8l = 7;
- break;
- case 2:
- a.prototype.$ya = function (a) {
- var H8l;
- H8l = 2;
- while (H8l !== 1) {
- switch (H8l) {
- case 2:
- return a && a.u === this.u && a.zea === this.zea ? !0 : !1;
- break;
- }
- }
- };
- a.prototype.a4a = function (a) {
- var o8l,
- b,
- c,
- f;
- o8l = 2;
- while (o8l !== 7) {
- switch (o8l) {
- case 2:
- b = this.$c;
- c = void 0 !== b.dz ? b.dz : a && a.dz;
- f = void 0 !== b.cz ? b.cz : a && a.cz;
- o8l = 3;
- break;
- case 3:
- a = a && a.Gr;
- Array.isArray(a) && Array.isArray(b.Gr) ? a = a.filter(function (a) {
- var R8l,
- X8l;
- R8l = 2;
- while (R8l !== 1) {
- switch (R8l) {
- case 4:
- return !2 != b.Gr.indexOf(a);
- break;
- R8l = 1;
- break;
- case 2:
- v3YY.X4s(1);
- X8l = v3YY.I4s(8, 14, 3, 88);
- return X8l !== b.Gr.indexOf(a);
- break;
- }
- }
- }) : Array.isArray(b.Gr) ? a = b.Gr : Array.isArray(a) || (a = []);
- return -1 !== a.indexOf(this.profile) ? {
- dHa: !!c,
- aRa: !c,
- Cma: !c || !f
- }
- : {
- dHa: !1,
- aRa: !1,
- Cma: !f
- };
- break;
- }
- }
- };
- a.prototype.Wya = function (a, b, c) {
- var w8l,
- f,
- d,
- h,
- U4s,
- B4s;
- w8l = 2;
- while (w8l !== 13) {
- U4s = "d";
- U4s += "e";
- U4s += "fau";
- U4s += "lt";
- B4s = "de";
- B4s += "fau";
- B4s += "l";
- B4s += "t";
- switch (w8l) {
- case 9:
- d = b.name,
- f = void 0 !== b[c] ? b[c] : void 0 !== b[B4s] ? b[U4s] : f;
- w8l = 8;
- break;
- case 2:
- h = this.$c;
- a = this.a4a(a);
- w8l = 4;
- break;
- case 4:
- w8l = void 0 !== h.iO && null !== h.iO ? 3 : 14;
- break;
- case 3:
- w8l = (f = (void 0 !== b ? b : h.iO) || 0, b = h.vKa && h.vKa[this.stream.profile]) ? 9 : 8;
- break;
- case 14:
- a.Cma = !1;
- w8l = 8;
- break;
- case 8:
- a.Ns = a.Cma ? void 0 !== f ? f : 1 : 0;
- a.wla = void 0 !== d ? d : a.aRa;
- return a;
- break;
- }
- }
- };
- a.prototype.b4a = function (a) {
- var S8l,
- m4s;
- S8l = 2;
- while (S8l !== 1) {
- m4s = "on";
- m4s += "En";
- m4s += "try";
- switch (S8l) {
- case 4:
- return this.Wya(a, this.$c.wKa, "");
- break;
- S8l = 1;
- break;
- case 2:
- return this.Wya(a, this.$c.wKa, m4s);
- break;
- }
- }
- };
- I8l = 3;
- break;
- }
- }
- }
- ();
- b.qWa = d;
- b["default"] = new d();
- }, function (d, b, a) {
- var c,
- g,
- q,
- n,
- k,
- p,
- h,
- f;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Boa = void 0;
- c = a(0);
- g = a(18);
- q = a(95);
- d = a(4);
- n = a(11);
- a(6);
- k = a(209);
- p = a(74);
- h = a(220);
- f = d.ak;
- a = function (a) {
- function b(b, c, d, k, l, n, q) {
- var u,
- m;
- k = a.call(this, b, d, k, n, q) || this;
- l = p.Jh.prototype.toString.call(k) + (l ? "(cache)" : "");
- u = {
- offset: d.offset,
- ba: d.ija,
- responseType: 0
- };
- k.push(new h.kJ(b, c, l + "(moof)", u, k, n, q));
- u = {
- offset: d.offset + u.ba + 8,
- ba: d.ba - (u.ba + 8),
- responseType: f.xc && !f.xc.iI.$z ? 0 : 1
- };
- if (k.M === g.La.VIDEO && k.Sa) {
- if (0 < k.Sa.start) {
- if (m = k.SGa(k.Sa.start))
- u.offset = d.offset + m, u.ba = d.ba - m;
- } else
- k.Sa.end < k.xN && (m = k.SGa(k.Sa.end)) && (u.ba -= d.ba - m);
- }
- k.push(new h.kJ(b, c, l + "(mdat)", u, k, n, q));
- return k;
- }
- c.__extends(b, a);
- b.prototype.yF = function (a) {
- var b,
- c;
- if (this.Oi)
- return {
- V: !0
- };
- if (!this.RB())
- return {
- V: !1
- };
- c = !1;
- if (this.oHa)
- c = a.appendBuffer(n.Pr(this.ZFa), n.vm(this));
- else if (this.Sa && 0 < this.Sa.start) {
- b = new q.zw(this.G, this.stream, this.wa[0].response);
- if (b = b.FQa(this.Sa.start, this.S))
- c = a.appendBuffer(n.Pr(b.Cg), n.vm(this)), this.fV(b.Cg);
- b = this.pV();
- } else if (this.Sa && this.Sa.end < this.xN) {
- b = new q.zw(this.G, this.stream, this.wa[0].response);
- if (b = b.KQa(this.Sa.end, this.S))
- c = a.appendBuffer(n.Pr(b.Cg), n.vm(this)), this.fV(b.Cg);
- b = this.pV();
- } else
- c = a.appendBuffer(this.wa[0].response, n.vm(this));
- c && (c = a.appendBuffer(q.GO(this.wa[1].ba), n.vm(this))) && (c = a.appendBuffer(this.wa[1].response, n.vm(this)));
- this.Oi = c;
- this.YAb();
- return {
- V: c,
- Xn: b
- };
- };
- return b;
- }
- (k.pz);
- b.Boa = a;
- }, function (d, b, a) {
- var c,
- g,
- q,
- n,
- k,
- p,
- h,
- f,
- u,
- m,
- r;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.zwa = void 0;
- c = a(0);
- g = a(210);
- q = a(805);
- n = a(802);
- k = a(801);
- d = a(83);
- p = a(800);
- h = a(6);
- f = a(7);
- u = a(4);
- m = a(213);
- r = u.Promise;
- a = function (a) {
- function b(b, c, f, d, h, k) {
- b = a.call(this, b) || this;
- b.K = c;
- b.G = f;
- b.Pt = d;
- b.Fc = h;
- b.Re = k;
- b.PUa = !0;
- b.Mh = new m.NR(b.G);
- b.bf = b.G.error.bind(b.G);
- b.bb = b.G.warn.bind(b.G);
- b.uj = b.G.trace.bind(b.G);
- b.YAa();
- return b;
- }
- c.__extends(b, a);
- Object.defineProperties(b.prototype, {
- console: {
- get: function () {
- return this.G;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- M: {
- get: function () {
- return this.Re;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- ad: {
- get: function () {
- return this.Fc;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- cD: {
- get: function () {
- return 0 < this.Ry;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- Pma: {
- get: function () {
- return !this.WK;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- Ry: {
- get: function () {
- return this.wa.length;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- Xs: {
- get: function () {
- return this.wa.Xs;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- Vzb: {
- get: function () {
- return this.Mh.count;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- Or: {
- get: function () {
- return this.wa.mEa;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- Uba: {
- get: function () {
- return this.wa.lEa;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- Bl: {
- get: function () {
- return void 0 === this.wa.ed ? 0 : this.wa.ze - this.wa.ed;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- Mo: {
- get: function () {
- return {
- ba: this.wa.bB,
- va: Math.max(this.wa.mEa - this.wa.ed, 0) || 0
- };
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- NF: {
- get: function () {
- return this.wa.Jcb;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- bB: {
- get: function () {
- return this.wa.bB;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- xaa: {
- get: function () {
- return this.wa.ba;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- Gv: {
- get: function () {
- return this.f5a();
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- B0: {
- get: function () {
- return this.wa.cqb;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- nZ: {
- get: function () {
- return this.wa.length > this.wa.Xs;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- Eo: {
- get: function () {
- return this.wa.Eo;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- gsb: {
- get: function () {
- return this.wa.Dxb;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- ZOa: {
- get: function () {
- return this.wa.length - this.el;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- $: {
- get: function () {
- return this.wa;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- b.prototype.Xg = function () {
- this.wa.forEach(function (a) {
- a.abort();
- a.yc();
- });
- this.YAa();
- this.Mh.IX();
- };
- b.prototype.reset = function () {
- this.Xg();
- this.Mh.s1();
- };
- b.prototype.close = function () {
- this.Mh.IX();
- };
- b.prototype.pcb = function () {
- this.I8 && (this.I8 = !1, this.Mh.s1());
- };
- b.prototype.FDb = function () {
- this.I8 = !0;
- };
- b.prototype.Hfa = function () {
- return {
- hasSentinel: void 0 !== this.Mh.count,
- queueCount: this.Mh.count,
- isComplete: this.Mh.av,
- itemCount: this.Mh.Ocb,
- continuousEndPts: this.Mh.Ts().reduce(function (a, b) {
- return b && !b.done && (b = b.value, 100 > Math.abs(b.zea - a) || -1 === a) ? b.rkb : a;
- }, -1),
- sentinelItemCount: this.Mh.Ts().filter(function (a) {
- return a && a.done;
- }).length,
- processedCount: this.Mh.Sgb,
- rc: this.Ry
- };
- };
- b.prototype.Ifb = function (a, b, c, d) {
- var l,
- q;
- l = this.K;
- f.Y(d) || (b.location = d.location, b.Lb = d.uc, b.jma = d.xp);
- q = a.R.zQ;
- q && (b.Y1 = q.Fn({
- pM: a.Xi(this.Re),
- g0: l.tib ? l.g0 : void 0,
- OTa: String(u.time.ea()),
- QW: l.iib ? a.R.wq[this.Re] : void 0
- }));
- h.assert(!b.Wo);
- l.sib ? a = new k.Ioa(d, l, c.track, b, this.wa, this.G) : d.R.CX(this.Re) ? (a = new n.Eoa(d, l, c.track, b, this.wa, !1, this.G), l.FX && (b = new p.Ooa(d, l, c.track, b, this.wa, !1, this.G), b.Db(this), b.zs())) : a = g.KR.create(d, l, c.track, b, this.wa, !1, this.G);
- a.Db(this);
- this.wF(a);
- return a;
- };
- b.prototype.Y9a = function (a) {
- var b;
- a.Db(this);
- a.uaa = !0;
- this.wF(a);
- b = r.resolve();
- a.complete ? (this.d9(a), this.Pt.ONa(a.stream, a.ed, a.zc), b = this.gR(), this.hq(a)) : (a.active && this.DB(a), a.vQa && this.CB(a));
- return b;
- };
- b.prototype.wF = function (a) {
- this.wa.Sn(a);
- this.d9(a);
- a.hv && (this.WK = !1);
- };
- b.prototype.PN = function () {
- return this.Mh.clb();
- };
- b.prototype.NDa = function () {
- var a,
- b;
- this.el === this.wa.length && (this.I8 || (null === (b = null === (a = this.gsb) || void 0 === a ? void 0 : a.oI) || void 0 === b ? 0 : b.qha)) && this.Mh.IX();
- };
- b.prototype.gR = function () {
- var a,
- b,
- c,
- d,
- l;
- a = this;
- c = r.resolve();
- d = this.Fc;
- if (!d.zKa(this.Re) || this.el === this.wa.length)
- return c;
- for (var h = this.K.cub, k = 0, g = []; this.el < this.wa.length; ) {
- if (b = this.wa.get(this.el)) {
- if (this.wa.YGa && this.wa.YGa.Ra < b.Ra)
- break;
- if (!b.RB())
- break;
- g.push(b);
- ++k;
- f.la(this.ed) || (this.ed = b.ed);
- }
- ++this.el;
- if (!f.Y(h) && k >= h)
- break;
- }
- if (g.length) {
- void 0 !== this.Mh.count && (this.bf("Request Manager count"), this.Mh.s1());
- if (this.PUa)
- c = r.all(g.map(function (b) {
- return a.Mh.enqueue(b).then(function () {
- return a.dZ(b);
- });
- }));
- else
- for (b = 0; b < g.length; b++)
- try {
- l = g[b];
- d.pnb(this.M).phb(l);
- this.dZ(l);
- } catch (U) {
- return this.el -= g.length - b,
- r.reject(U);
- }
- this.NDa();
- }
- return c;
- };
- b.prototype.dZ = function (a) {
- this.iHa(a);
- };
- b.prototype.oAb = function (a) {
- var d;
- for (var b, c = 0; c < this.wa.length; ++c) {
- d = this.wa.get(c);
- d && a < d.ze && (f.Y(b) && (b = c), d.Oi = !1);
- }
- f.Y(b) || (this.el = b, this.Mh.s1());
- return this.gR();
- };
- b.prototype.o1 = function () {
- this.t7a();
- };
- b.prototype.HP = function (a, b) {
- var c,
- f,
- d,
- h,
- k;
- c = this;
- f = this.K;
- d = !1;
- h = 0;
- k = this.wa.some(function (k) {
- if (a < k.ze)
- return d && c.d9(k), !0;
- ++h;
- k.Oi || (c.bb("pruning unappended request:", k && k.toString()), f.Zg && c.Pt.Dk("prune pts:" + a + " unappended request:" + (k && k.toString())), k.qea && (c.WK = !1, d = !0), c.s3a(k, b) || c.bf("MediaRequest.abort error:", k.zh));
- });
- 0 < h && (this.wa.splice(0, h), this.el -= Math.min(h, this.el));
- return k;
- };
- b.prototype.NY = function (a) {
- var b,
- c,
- d;
- void 0 === a && (a = {
- EM: null,
- SH: null,
- ed: null,
- dj: 0,
- ci: 0,
- $: []
- });
- b = this.K;
- c = this.wa;
- f.la(c.ed) && (null === a.ed || c.ed < a.ed) && (a.ed = c.ed);
- d = this.Or;
- void 0 !== d && null === a.EM && (a.EM = d);
- d = c.ze;
- void 0 !== d && (null === a.SH || d > a.SH) && (a.SH = d);
- a.dj += c.dj;
- a.ci = b.Ema ? a.ci + c.qAb : a.ci + c.bB;
- Array.prototype.unshift.apply(a.$, c.uI.$);
- return a;
- };
- b.prototype.Ur = function (a) {
- if (this.wa.length && (a = this.wa.QGa(a)))
- return a;
- };
- b.prototype.Cp = function () {
- var a,
- b;
- a = this;
- b = [];
- this.wa.forEach(function (c) {
- var f;
- f = c.N2();
- 1 === f ? b.push(c) : 2 === f && a.ad.R.Ig("swapUrl failure");
- });
- return b;
- };
- b.prototype.Zh = function (a) {
- return this.K.RP ? (this.Mh.clear(), this.oAb(a)) : r.resolve();
- };
- b.prototype.sP = function (a) {
- a.TB && a.RB() && this.gR();
- this.CB(a);
- };
- b.prototype.bj = function (a) {
- a.TB && !a.Oi && this.gR();
- this.hq(a);
- };
- b.prototype.Baa = function (a) {
- var b,
- c,
- f;
- b = 1 === this.Re ? "v_" : "a_";
- c = this.wa;
- f = c.xG(a);
- a = 0 <= f ? c.get(f) : void 0;
- return (c = 0 <= f && f + 1 < c.length ? c.get(f + 1) : void 0) && a ? a.ze !== c.ed ? b + "rg" : a.complete && c.complete ? b + "uk" : b + "fd" : b + "rm";
- };
- b.prototype.f5a = function () {
- return this.wa.Eo + this.wa.Xs;
- };
- b.prototype.YAa = function () {
- this.wa = new q.Doa(this.G, this);
- this.el = 0;
- this.Mh.clear();
- this.ed = null;
- this.WK = !1;
- };
- b.prototype.d9 = function (a) {
- this.WK ? a.qea = !1 : this.WK = a.qea = !0;
- };
- b.prototype.s3a = function (a, b) {
- if (!a.abort())
- return !1;
- "function" === typeof b && b(a);
- return !0;
- };
- b.prototype.t7a = function () {
- var a,
- b;
- a = this;
- b = 0;
- this.wa.Lzb(function (c, f) {
- f < a.el && ++b;
- });
- this.el -= b;
- };
- return b;
- }
- (d.Xq);
- b.zwa = a;
- }, function (d, b, a) {
- var c,
- g,
- q,
- n,
- k;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.tva = void 0;
- c = a(18);
- g = a(11);
- q = a(34);
- n = a(108);
- k = a(4);
- d = function () {
- function a(a, b, c, d, k) {
- this.Hv = a;
- this.Hu = b;
- this.K = c;
- this.G = d;
- this.Re = k;
- }
- a.prototype.cwb = function (a) {
- a = {
- type: "requestCreated",
- request: a
- };
- g.Ja(this.Hu, a.type, a);
- };
- a.prototype.bwb = function (a) {
- var b;
- b = a.Ia.ad.da;
- a = {
- type: "updateStreamingPts",
- mediaType: a.M,
- position: {
- Na: b.id,
- offset: q.ka.Ff(this.Hv.Uba - b.T)
- },
- trackIndex: a.stream.track.KA
- };
- g.Ja(this.Hu, a.type, a);
- };
- a.prototype.ONa = function (a, b, c) {
- var f,
- d;
- f = this.Re;
- d = this.Hv.Oq;
- d.m2(a);
- 1 === f && this.K.B1 && (void 0 === d.rO ? d.rO = k.time.ea() : k.time.ea() - d.rO > this.K.B1 && (a.O !== d.Lha && (k.storage.set("vb", a.O), d.Lha = a.O), d.rO = k.time.ea()));
- d.ZB && d.ZB === a || (this.Hv.JI.m2(b, d.ZB, a), d.ZB = a, b = 0, a.mb && a.mb.Ld && a.mb.Fa && (b = a.mb.Fa.Ca), d = {
- Na: this.Hv.ad.da.id,
- offset: q.ka.Ff(c - this.Hv.ad.da.T)
- }, a = {
- type: "streamSelected",
- nativetime: k.time.ea(),
- mediaType: f,
- streamId: a.id,
- manifestIndex: a.R.Ya,
- trackIndex: a.track.KA,
- streamIndex: a.Kg,
- movieTime: c,
- bandwidth: b,
- longtermBw: b,
- rebuffer: 0,
- position: d
- }, g.Ja(this.Hu, a.type, a));
- };
- a.prototype.Yvb = function (a, b, d) {
- var f,
- h,
- k,
- l,
- p;
- f = b.R;
- h = f.sm;
- k = this.Hv.Oq;
- l = f.zrb(b);
- p = l.vha;
- l = l.Arb;
- d && b.uc && !k.qO ? (l = c.Og.yt, b.xp = c.Og.name[l], this.NNa(f.Ya, a, b.uc, b.xp, b.location, b.O), k.qO = b.uc) : !d && b.uc && b.uc !== k.qO && (l = l ? void 0 === k.qO ? c.Og.yt : h.rI === c.Og.P6 ? c.Og.p2a : c.Og.t3 : c.Og.o2a, b.xp = c.Og.name[l], this.NNa(f.Ya, a, b.uc, b.xp, b.location, b.O), k.qO = b.uc);
- k.cH || (l = {
- type: "logdata",
- target: "startplay",
- fields: {}
- }, this.Re === c.La.AUDIO ? l.fields.alocid = b.location : this.Re === c.La.VIDEO && (l.fields.locid = b.location), g.Ja(this.Hu, l.type, l));
- d && b.location && !k.cH ? (l = c.Og.yt, b.xp = c.Og.name[l], this.LNa(f.Ya, a, b.location, b.$ha, b.uc, b.SC, b.xp, b.Bs), k.cH = b.location) : !d && b.location && b.location !== k.cH && (l = p ? void 0 === k.cH ? c.Og.yt : h.rI === c.Og.P6 ? c.Og.U_a : c.Og.t3 : c.Og.T_a, b.xp = c.Og.name[l], this.LNa(f.Ya, a, b.location, b.$ha, b.uc, b.SC, b.xp, b.Bs), b.Bs = void 0, k.cH = b.location);
- this.K.Fq || (b.pLa = b.location, b.qLa = b.uc);
- };
- a.prototype.NNa = function (a, b, d, k, l, p) {
- var f,
- h;
- f = this.Re === c.La.VIDEO ? "video" : "audio";
- h = n.kg().get();
- a = {
- type: "serverSwitch",
- manifestIndex: a,
- segmentId: b,
- mediatype: f,
- server: d,
- reason: k,
- location: l,
- bitrate: p,
- confidence: h.Ld
- };
- h.Ld && (a.throughput = h.Fa.Ca);
- this.Hv.Oq.qO && (a.oldserver = d);
- g.Ja(this.Hu, a.type, a);
- };
- a.prototype.LNa = function (a, b, d, k, l, p, n, q) {
- g.Ja(this.Hu, "locationSelected", {
- type: "locationSelected",
- manifestIndex: a,
- segmentId: b,
- mediatype: this.Re === c.La.VIDEO ? "video" : "audio",
- location: d,
- locationlv: k,
- serverid: l,
- servername: p,
- selreason: n,
- seldetail: q
- });
- };
- a.prototype.d$ = function (a, b) {
- b = {
- type: "lastSegmentPts",
- segmentId: a.id,
- pts: Math.floor(b)
- };
- a.Ly || g.Ja(this.Hu, b.type, b);
- };
- a.prototype.Dk = function (a) {
- a = {
- type: "managerdebugevent",
- message: "@" + k.time.ea() + ", " + a
- };
- g.Ja(this.Hu, a.type, a);
- };
- return a;
- }
- ();
- b.tva = d;
- }, function (d, b, a) {
- var c,
- g,
- q,
- n,
- k,
- p,
- h,
- f,
- u,
- m,
- r,
- t,
- H,
- D,
- K,
- J,
- R,
- P,
- x;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Koa = void 0;
- c = a(0);
- g = a(22);
- q = a(211);
- n = a(17);
- k = a(11);
- p = a(382);
- h = a(782);
- f = a(4);
- u = a(6);
- m = a(156);
- r = a(780);
- t = a(50);
- H = a(383);
- D = a(779);
- K = a(776);
- J = a(775);
- R = a(773);
- P = a(771);
- x = a(770);
- d = function () {
- function a(a, b, c, d, l, p) {
- this.G = a;
- this.Gg = b;
- this.weight = c;
- this.config = d;
- this.nq = l;
- this.yM = p;
- this.zo = q.fw.CLOSED;
- this.B9 = !0;
- this.navigator = new J.Sva(b);
- this.Hob = R.vEa(this.navigator, d.Dyb);
- this.Sc = new P.Mva();
- this.Iob = new D.Era(this.config, k.ka.Ff(this.config.I_), {
- parent: this.$nb.bind(this)
- });
- this.events = new g.EventEmitter();
- this.Uma = new h.qxa(a, this.events);
- this.ml = new x.mpa();
- this.YP = [];
- this.console = new f.Console("ASEJS_PLAYGRAPH", "asejs");
- this.X = new r.uva(this);
- }
- Object.defineProperties(a.prototype, {
- state: {
- get: function () {
- return this.zo;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- mzb: {
- get: function () {
- return this.X.position;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- xx: {
- get: function () {
- return this.ml.state;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- Ky: {
- get: function () {
- return this.ml.Ky;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- a.prototype.open = function () {
- this.B9 = !0;
- if (this.zo !== q.fw.CLOSED)
- return !1;
- this.zo = q.fw.OPEN;
- return !0;
- };
- a.prototype.close = function () {
- this.zo !== q.fw.CLOSED && (this.Xg(), this.zo = q.fw.CLOSED);
- };
- a.prototype.kSa = function (a, b) {
- this.JCa = a;
- this.gVa = b;
- };
- a.prototype.$Db = function (a) {
- this.X$a = void 0;
- this.X2 = a;
- };
- a.prototype.CRa = function (a) {
- var b;
- if (H.bLa(this.Gg, a))
- if (a = this.DNa(a), void 0 === a)
- this.Ig("Invalid seekPosition");
- else if (void 0 === this.JCa || void 0 === this.gVa)
- this.Ig("No track selectors available");
- else {
- b = this.navigator.ah(a.Na);
- b = this.nq(b.oa);
- if (void 0 === b)
- this.Ig("Missing viewable corresponding to seek graph position");
- else
- return this.ml.AFa(), this.Xg(), this.ocb(), b.kP(), this.ml.Twb(), this.wAb(a), this.TP(a), this.X.resume(), this.ml.FCa(this.X.events), this.yM(), a;
- }
- else
- this.Ig("Invalid seekPosition");
- };
- a.prototype.Xg = function () {
- this.Sc.reset();
- this.YP.forEach(function (a) {
- return m.Ip.kg.nX(a);
- });
- this.YP = [];
- this.X.reset();
- };
- a.prototype.Ek = function (a) {
- var b;
- b = this.navigator.ah(a.Na);
- b = this.nq(b.oa);
- u.assert(void 0 !== b, "Missing viewable corresponding to rebuffer graph position");
- b.Ek();
- b.kP();
- this.ml.Ek(a);
- this.yM();
- };
- a.prototype.P$a = function (a) {
- this.X.zna(a) ? this.X = a : this.Ig("player in use");
- };
- a.prototype.dga = function (a) {
- var b;
- b = this.navigator.ah(a.Na);
- a = b.Mm.add(a.offset);
- return {
- oa: b.oa,
- gca: a
- };
- };
- a.prototype.Kv = function (a) {
- return this.X.Kv(a);
- };
- a.prototype.cZ = function (a) {
- return this.X.cZ(a);
- };
- a.prototype.DNa = function (a) {
- var b;
- b = this.Gg.Va[a.Na];
- if (void 0 !== b)
- return null === b.Bg || void 0 === b.Bg ? {
- Na: a.Na,
- offset: k.ka.max(k.ka.wd, a.offset)
- }
- : {
- Na: a.Na,
- offset: k.ka.max(k.ka.wd, k.ka.min(a.offset, k.ka.Ff(b.Bg - b.sf)))
- };
- };
- a.prototype.Xi = function (a) {
- var b,
- c;
- this.Sc.forEach(function (a) {
- var f;
- if (!a.NA || a.da.Qs) {
- f = a.aJa(0);
- a = a.aJa(1);
- if (!b || f < b)
- b = f;
- if (!c || a < c)
- c = a;
- }
- });
- return {
- LGb: b ? b - a.va : 0,
- MGb: c ? c - a.va : 0
- };
- };
- a.prototype.Sfa = function () {
- var a,
- b;
- a = this;
- if (this.bp())
- return [];
- b = this.Oo;
- return this.Sc.reduce(function (f, d) {
- var h,
- k;
- try {
- for (var g = c.__values(d.Pmb()), l = g.next(); !l.done; l = g.next())
- f.push(a.Kfb(l.value, b));
- } catch (ma) {
- h = {
- error: ma
- };
- }
- finally {
- try {
- l && !l.done && (k = g["return"]) && k.call(g);
- }
- finally {
- if (h)
- throw h.error;
- }
- }
- return f;
- }, []);
- };
- a.prototype.$nb = function (a) {
- var b,
- c;
- c = a.M;
- return null === (b = a.ad.parent) || void 0 === b ? void 0 : b.Omb(c);
- };
- a.prototype.Ig = function (a, b, c, f, d, h) {
- this.Uma.Ig(a, b, c, f, d, h);
- };
- a.prototype.bp = function () {
- return this.Uma.bp();
- };
- a.prototype.Gm = function () {
- this.Uma.Gm();
- };
- a.prototype.i9a = function (a) {
- this.X.Jda(a);
- };
- a.prototype.ocb = function () {
- this.X.LF();
- };
- a.prototype.eib = function (a, b) {
- this.events.emit("streamSelection", {
- type: "streamSelection",
- mediaType: a.M,
- selDiscBw: null === b || void 0 === b ? void 0 : b.mQ,
- histAge: null === b || void 0 === b ? void 0 : b.wk
- });
- };
- a.prototype.Kfb = function (a, b) {
- var c;
- c = this;
- return {
- p2: a.p2,
- Oo: b,
- Erb: function () {
- var f,
- d,
- h,
- k;
- f = a.M;
- d = c.Iob.VCb(c.xx.value, b, a, 0 === f ? c.X$a : c.X2);
- h = d.stream;
- k = d.EQ;
- d = d.XCb;
- if (!h)
- return !1;
- c.eib(h, d);
- c.ml.Dg && 1 === f && c.ml.LDb(a.JI.sI, h.O, d);
- 0 < k.length && !c.ml.Dg && a.p2.Nb(b).va > c.config.XO && k[0].oD();
- (f = a.hHb(h, c.YP[f])) && c.B9 && (c.gk("firstDriveStreaming"), c.B9 = !1);
- return f;
- }
- };
- };
- Object.defineProperties(a.prototype, {
- Oo: {
- get: function () {
- return this.X.Oo;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- a.prototype.TP = function (a) {
- var b,
- c,
- f;
- b = this;
- c = this.navigator.ah(a.Na);
- f = this.Clb();
- c = K.TP(this.navigator, this.Hob, c, f, k.ka.Ff(this.config.Uab));
- this.Sc.wHb(c, function (c) {
- var f;
- f = b.navigator.ah(c);
- c = c === a.Na ? f.Mm.add(a.offset) : f.Mm;
- f = b.Veb(f, c);
- b.i9a(f);
- return f;
- });
- };
- a.prototype.Clb = function () {
- return this.Sc.filter(function (a) {
- return a.NA;
- }).map(function (a) {
- return a.da.id;
- });
- };
- a.prototype.Pkb = function () {
- return this.Sc.filter(function (a) {
- return !a.NA;
- }).length;
- };
- a.prototype.Bwb = function (a, b) {
- b.didNormalizeSegment && this.events.emit("segmentNormalized", {
- type: "segmentNormalized",
- segmentId: a.da.id,
- normalizedStart: b.segmentContentStart,
- normalizedEnd: b.branchContentEnd,
- contentEnd: b.contentEnd
- });
- };
- a.prototype.eV = function (a) {
- this.ml.yDb(a.reason, a.videoBufferLevel, a.audioBufferLevel);
- this.X.rv();
- };
- a.prototype.f$ = function (a) {
- this.ml.zDb(a.percentage);
- };
- a.prototype.O6a = function () {
- this.TP(this.X.position);
- 0 === this.Pkb() && this.I6a();
- };
- a.prototype.Veb = function (a, b) {
- var c,
- f,
- d,
- h;
- c = this;
- f = this.navigator.Slb(a);
- u.assert(2 > f.length, "Playgraph loops are not yet supported");
- d = (f = 0 < f.length ? this.Sc.Sea(f[0].id) : void 0) && f[0];
- f = k.ka.wd;
- d && d.N0 && (f = d.N0.Nb(a.Mm));
- h = this.nq(a.oa);
- u.assert(void 0 !== h);
- b = new p.E3(this.config, this.console, h, this.events, a, this.WCb(h), b, f.va, function () {
- return c.Oo.va;
- }, d, [], this.xx);
- b.events.once("branchNormalized", this.Bwb.bind(this, b));
- b.events.on("branchBufferingComplete", this.eV.bind(this));
- b.events.on("branchBufferingProgress", this.f$.bind(this));
- b.events.on("branchStreamingComplete", this.O6a.bind(this, b));
- b.Db();
- this.dV(a.id, h, f);
- return b;
- };
- a.prototype.wAb = function (a) {
- var b,
- c,
- f,
- d,
- h;
- b = this;
- a = this.navigator.ah(a.Na);
- c = this.nq(a.oa);
- u.assert(c);
- f = c.u;
- u.assert(0 === this.YP.length);
- d = 0;
- h = new g.Ll();
- this.gk("createDlTracksStart");
- this.YP = n.Pe.map(function (a) {
- a = b.gB(a, f, c);
- ++d;
- h.on(a, "created", function () {
- --d;
- 0 === d && (b.gk("createDlTracksEnd"), h.clear());
- });
- return a;
- });
- };
- a.prototype.gB = function (a, b, c) {
- var f,
- d;
- f = this;
- d = m.Ip.kg.gB(a, b, !0, !1, {}, this.config);
- d.Ak.on(d, "networkfailing", function () {
- var a;
- d.OX && (null === (a = c.Rh) || void 0 === a ? void 0 : a.pp(d.Zda, void 0, d.zh, d.aj));
- c.Cp();
- });
- d.Ak.on(d, "error", function () {
- f.Ig("DownloadTrack fatal error", void 0, "NFErr_MC_StreamingFailure", d.zh, 0, d.aj);
- });
- d.Db();
- return d;
- };
- a.prototype.WCb = function (a) {
- return [[0, this.JCa, "audio_tracks"], [1, this.gVa, "video_tracks"]].map(function (b) {
- var f,
- d;
- f = c.__read(b, 3);
- b = f[0];
- d = f[1];
- f = f[2];
- u.assert(d, "Expected mediaType " + b + " track selector to be defined");
- d = d.M1(a.ya, a.ya[f]);
- return void 0 !== d ? a.oJa(b, d) : void 0;
- }).filter(t.zja);
- };
- a.prototype.dV = function (a, b, c) {
- a = {
- type: "segmentStarting",
- segmentId: a,
- contentOffset: c.va,
- maxBitrates: {
- audio: b.wq[0],
- video: b.wq[1]
- }
- };
- this.events.emit(a.type, a);
- };
- a.prototype.I6a = function () {
- var a;
- a = {
- type: "streamerEnd",
- time: f.time.ea()
- };
- this.events.emit(a.type, a);
- };
- a.prototype.gk = function (a) {
- a = {
- type: "startEvent",
- event: a,
- time: f.time.ea()
- };
- this.events.emit(a.type, a);
- };
- return a;
- }
- ();
- b.Koa = d;
- }, function (d, b, a) {
- var c,
- g,
- q,
- n,
- k;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Twa = void 0;
- c = a(212);
- g = a(157);
- q = a(18);
- n = a(34);
- d = function () {
- function a(a, b) {
- this.K = a;
- this.G = b;
- this.a$ = this.U9 = this.At = n.ka.wd;
- this.aV = this.$U = void 0;
- this.uj = this.G.trace.bind(this.G);
- this.RNa = new k(a, b);
- }
- a.prototype.Nla = function (a, b, c, d, k, g, l, p, m, r) {
- var f,
- h,
- u,
- A,
- t,
- G,
- C,
- D;
- f = !1;
- a = a === q.La.AUDIO && !!b.Sa && this.U7a(b.stream);
- h = n.ka.wd;
- u = b.console;
- if (a) {
- A = b.stream.Ta;
- t = this.c5a(b.profile, A);
- G = this.d5a(b.profile, A);
- C = b.Xv + b.Em;
- if (b.hv)
- f = new n.ka(b.na - C, 1E3), (f = this.At.add(f).PG(t)) || !l || this.H3a(b, l) || (m = l.Xv + l.Em, b = new n.ka(C - (b.na - A.va), 1E3), m = new n.ka(m - l.T, 1E3), this.At.Nb(b).add(m).Fab(G, t) && (f = !0));
- else if (void 0 !== c) {
- D = b.Jy;
- new n.ka(C - b.T, 1E3);
- l = this.At.add(c.Nb(D));
- if (D.add(A).py(c) || l.PG(t))
- f = !0, D.add(A), l = l.Nb(A);
- t = G.Nb(n.ka.Cv);
- l.DH(this.At) && l.lessThan(t) ? (f = a = !1, this.RNa.reset(), this.At = n.ka.wd, t = d.add(k), m(t), u.error("Unexpected seamless audio sync " + l.toString() + " at content pts " + b.zc + " in stream " + b.stream.sa + " following " + g.Wb)) : (t = d.add(l).add(k), t = this.RNa.round(b, p, t, f), m(t), l.DH(this.At) && (this.U9 = n.ka.max(this.U9, l), this.a$ = n.ka.min(this.a$, l), r(this.U9, this.a$), h = l.Nb(this.At), this.At = l));
- }
- }
- return {
- Nla: a,
- Phb: f,
- $$a: h
- };
- };
- a.prototype.U7a = function (a) {
- void 0 === this.EL && (this.EL = g.yaa(this.K, a));
- return this.EL;
- };
- a.prototype.c5a = function (a, b) {
- void 0 === this.$U && ("object" === typeof this.K.Ola && this.K.Ola[a] ? (a = new n.ka(this.K.Ola[a], 1E3).Nf(b.S).add(new n.ka(1, b.S)), this.$U = n.ka.min(b, a)) : this.$U = b);
- return this.$U;
- };
- a.prototype.d5a = function (a, b) {
- var c;
- if (void 0 === this.aV)
- if ("object" === typeof this.K.Pla && this.K.Pla[a]) {
- c = new n.ka(-Math.floor(b.va / 2), b.S);
- a = new n.ka(this.K.Pla[a], 1E3).Nf(b.S).Nb(new n.ka(1, b.S));
- this.aV = n.ka.max(c, a);
- } else
- this.aV = new n.ka(-12, 1E3);
- return this.aV;
- };
- a.prototype.H3a = function (a, b) {
- return a.zc <= b.zc && a.Wb >= b.zc && a.stream.track.equals(b.stream.track);
- };
- return a;
- }
- ();
- b.Twa = d;
- k = function () {
- function a(a, b) {
- this.K = a;
- this.G = b;
- this.FA = 0;
- }
- a.prototype.round = function (a, b, c, d) {
- this.K.Js || (a = this.X3a(a, c, d), b = b.Nb(a), b.PG(n.ka.Cv.Z_(2)) ? (c = c.Nb(n.ka.Cv), ++this.FA) : b.lessThan(n.ka.wd) ? (c = c.add(n.ka.Cv), --this.FA) : 0 < this.FA && b.lessThan(n.ka.Cv) ? (c = c.add(n.ka.Cv), --this.FA) : 0 > this.FA && b.greaterThan(n.ka.Cv) && (c = c.Nb(n.ka.Cv), ++this.FA));
- return c;
- };
- a.prototype.reset = function () {
- this.FA = 0;
- };
- a.prototype.X3a = function (a, b, d) {
- var f;
- f = a.fm;
- this.K.Go && a.stream.zi && (f = f.Nb(a.stream.zi));
- d && (f = f.add(a.stream.Ta));
- return c.kja(f).add(c.kja(b));
- };
- return a;
- }
- ();
- }, function (d, b, a) {
- var c,
- g,
- q,
- n,
- k;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.dwa = void 0;
- c = a(22);
- d = a(11);
- g = a(6);
- q = a(50);
- n = a(63);
- k = d.ka.Ff(1E3);
- a = function () {
- function a(a, b, d, g, l, p, n) {
- var f;
- f = this;
- this.M = a;
- this.console = b;
- this.$l = d;
- this.X = g;
- this.events = p;
- this.ng = [];
- this.TOa = n.add(k);
- this.listeners = new c.Ll();
- this.listeners.on(g, "playing", function () {
- return void 0 === f.ej ? f.play() : f.rHb();
- });
- this.listeners.on(g, "underflow", function () {
- return f.pause();
- });
- this.listeners.on(g, "paused", function () {
- return f.pause();
- });
- this.listeners.on(g, "skipped", function () {
- return f.Zh();
- });
- this.listeners.on(l, "requestAppended", function (a) {
- return f.oub(a.request.stream, a.request.Jy);
- });
- }
- a.prototype.oub = function (a, b) {
- var c;
- c = this.ng.length ? this.ng[this.ng.length - 1] : void 0;
- if (void 0 === c || c.stream !== a)
- n.Za && this.trace("stream " + a.id + ", " + a.O + "kbit/s @ " + b.va + "ms"), this.ng.push({
- stream: a,
- timestamp: b
- }), void 0 !== this.ej && void 0 === this.Vv && (a = this.X.Ic, void 0 !== a && this.eQ(a));
- };
- a.prototype.reset = function () {
- n.Za && this.trace("reset");
- this.Vv && clearTimeout(this.Vv);
- this.ej = this.Vv = void 0;
- this.ng = [];
- };
- a.prototype.close = function () {
- this.reset();
- this.listeners.clear();
- };
- a.prototype.play = function () {
- var a;
- a = this.X.Ic;
- g.assert(void 0 !== a);
- n.Za && this.trace("play @ " + a.va + "ms");
- g.assert(this.ng.length);
- g.assert(this.ng[0].timestamp.py(a));
- g.assert(1 === this.ng.length || this.ng[1].timestamp.greaterThan(a));
- this.ej = 0;
- this.uda(a);
- this.eQ(a);
- };
- a.prototype.pause = function () {
- n.Za && this.trace("pause");
- this.Vv && clearTimeout(this.Vv);
- this.Vv = void 0;
- };
- a.prototype.rHb = function () {
- var a;
- a = this.X.Ic;
- g.assert(void 0 !== a);
- n.Za && this.trace("unpause @ " + a.va + "ms");
- this.eQ(a);
- };
- a.prototype.Zh = function () {
- var a,
- b;
- a = this.X.Ic;
- g.assert(void 0 !== a);
- n.Za && this.trace("skipped @ " + a.va + "ms");
- g.assert(void 0 !== this.ej);
- g.assert(0 < this.ng.length);
- g.assert(this.ng[0].timestamp.py(a));
- this.pause();
- b = q.rx(this.ng, function (b) {
- return b.timestamp.greaterThan(a);
- });
- this.ej = -1 === b ? this.ng.length - 1 : b - 1;
- this.shift(a.Nb(this.TOa));
- this.uda(a);
- this.eQ(a);
- };
- a.prototype.Xwb = function () {
- var a;
- a = this.X.Ic;
- g.assert(void 0 !== a);
- n.Za && this.trace("onStreamPresentingTimer @ " + a.va + "ms");
- g.assert(void 0 !== this.ej);
- g.assert(1 < this.ng.length);
- g.assert(this.ej < this.ng.length - 1);
- this.Vv = void 0;
- this.shift(a.Nb(this.TOa));
- this.ng[this.ej + 1].timestamp.py(a) && (++this.ej, this.uda());
- this.eQ(a);
- };
- a.prototype.eQ = function (a) {
- var b,
- c,
- d;
- b = this;
- g.assert(void 0 === this.Vv);
- g.assert(void 0 !== this.ej);
- g.assert(this.ej < this.ng.length);
- if (this.ej < this.ng.length - 1) {
- c = this.ng[this.ej + 1];
- d = Math.max(c.timestamp.Nb(a).va, 10);
- n.Za && this.trace("scheduleNextStreamPresentingTimer @ " + a.va + "ms for " + c.timestamp + "ms");
- this.Vv = setTimeout(function () {
- return b.Xwb();
- }, d);
- }
- };
- a.prototype.uda = function (a) {
- var b,
- c,
- d;
- g.assert(void 0 !== this.ej);
- g.assert(this.ej < this.ng.length);
- b = this.ng[this.ej];
- c = b.stream;
- b = b.timestamp;
- a = null !== a && void 0 !== a ? a : b;
- d = this.$l.Kv(a);
- g.assert(void 0 !== d);
- n.Za && this.trace("emitStreamPresentingEvent @ " + b.va + "ms for " + c.id + ", " + c.O + "kbit/s");
- this.events.emit("streamPresenting", {
- type: "streamPresenting",
- mediaType: this.M,
- playerTimestamp: a,
- position: d,
- trackIndex: c.track.KA,
- streamIndex: c.Kg
- });
- };
- a.prototype.shift = function (a) {
- for (; 1 < this.ng.length && 0 < this.ej && this.ng[1].timestamp.py(a); )
- this.ng.shift(), --this.ej;
- };
- a.prototype.trace = function (a) {
- this.console.trace("PresentationTracker [" + this.M + "]: " + a);
- };
- return a;
- }
- ();
- b.dwa = a;
- }, function (d, b, a) {
- var c,
- g;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.hpa = void 0;
- c = a(158);
- g = a(63);
- d = function () {
- function a(a, b, c) {
- this.G = a;
- this.Q3a = b;
- this.Re = c;
- this.zU = 0;
- this.UU = !1;
- g.Za && a.trace("creating new iterator for " + this.Re);
- }
- Object.defineProperties(a.prototype, {
- Xfb: {
- get: function () {
- return this.zU;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- XW: {
- get: function () {
- return this.fza;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- qrb: {
- get: function () {
- return this.UU;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- Zfb: {
- get: function () {
- return this.sj ? this.sj.av ? "Complete" : this.sj.Hka ? "WaitingForBranch" : "WaitingForRequest" : "Uninitialized";
- },
- enumerable: !1,
- configurable: !0
- }
- });
- a.prototype.next = function () {
- var a,
- b;
- a = this;
- b = this.sj;
- return b ? b.next().then(function (c) {
- if (a.sj !== b)
- return {
- done: !0
- };
- c.done || a.zU++;
- return c;
- }) : c.vz.Wfa();
- };
- a.prototype.$Bb = function () {
- this.USa();
- this.vAb();
- };
- a.prototype.USa = function () {
- var a;
- if (this.sj) {
- a = this.sj;
- a && a.Ag();
- a && g.Za && this.G.trace("Disposing iterator that was on branch", this.XW && this.XW.da);
- this.UU = !1;
- this.sj = void 0;
- }
- };
- a.prototype.vAb = function () {
- var a,
- b,
- d,
- h;
- a = this;
- if (!this.UU) {
- b = this.G;
- d = this.Q3a;
- h = this.Re;
- this.zU = 0;
- this.fza = void 0;
- this.sj = c.Xr(c.map(d.WIa(), function (c) {
- var f;
- a.fza = c;
- a.zU = 0;
- g.Za && b.trace("Received branch", c.da);
- f = c.PN(h);
- if (f)
- return {
- value: f
- };
- g.Za && b.error("Skipping Branch", c.da);
- return {
- value: []
- };
- }, b), b);
- this.UU = !0;
- }
- };
- return a;
- }
- ();
- b.hpa = d;
- }, function (d, b, a) {
- var c,
- g,
- q,
- n,
- k,
- p,
- h,
- f,
- u,
- m;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Toa = void 0;
- c = a(22);
- g = a(386);
- q = a(4);
- n = a(213);
- k = a(17);
- p = a(212);
- h = a(11);
- f = a(50);
- u = a(6);
- m = a(385);
- d = function () {
- function a(a, b, f, d, k, g) {
- var l;
- l = this;
- this.sb = a;
- this.X = b;
- this.G = f;
- this.K = d;
- this.cg = k;
- this.hC = g;
- this.V8 = !1;
- this.yza = new h.exa();
- this.Qya = new c.Ll();
- this.ek = new n.NR(this.G);
- this.Cfb();
- this.hV = new m.zT(this.ln, function () {
- return l.gOa();
- }, function () {
- return l.X.Oo.va;
- });
- }
- a.prototype.rv = function () {
- this.hV.rv();
- };
- a.prototype.Mib = function (a) {
- this.ek.enqueue(a);
- a.da.Qs && this.ek.IX();
- this.V8 || this.bkb(a);
- };
- a.prototype.Lja = function (a) {
- this.ln.forEach(function (b) {
- b.Lja(a);
- });
- };
- a.prototype.gOa = function () {
- this.sb.ml.xj();
- };
- a.prototype.reset = function () {
- this.ln.forEach(function (a) {
- a.reset();
- });
- this.hV.reset();
- this.V8 = !1;
- this.yza.removeAllListeners();
- };
- a.prototype.LF = function () {
- this.ek.clear();
- this.Qya.clear();
- };
- a.prototype.resume = function (a) {
- this.ln.forEach(function (b) {
- void 0 !== a && -1 === a.indexOf(b.M) || b.resume();
- });
- };
- a.prototype.HI = function (a) {
- this.ln.forEach(function (b) {
- return (void 0 === a || -1 !== a.indexOf(b.M)) && b.stop();
- });
- };
- a.prototype.Ek = function () {
- this.G.trace("onUnderflow");
- this.hV.reset();
- };
- a.prototype.WIa = function () {
- return this.ek.qIa();
- };
- a.prototype.Sea = function () {
- return this.ek.TTa();
- };
- a.prototype.Cfb = function () {
- var a,
- b;
- a = this;
- this.gk("createMediaSourceStart");
- b = new q.MediaSource(this.X.X);
- if (1 !== b.readyState)
- this.fl("exception in init", "NFErr_MC_StreamingInitFailure");
- else {
- this.gk("createMediaSourceEnd");
- this.ef = b;
- if (!b.YV(this.hC))
- throw this.G.trace("Error:", b.error), this.fl("error creating source buffers", "NFErr_MC_StreamingInitFailure"), b.error;
- this.ln = b.sourceBuffers.map(function (c) {
- var f;
- f = new p.H3(a.G, c.M, b, c, a.K, {
- $d: function () {
- return a.X.Oo.va;
- },
- cv: function (b) {
- return a.X.cv(b);
- }
- });
- f.addListener("error", function (b) {
- return a.fl(b.errorstr);
- });
- f.addListener("logdata", function (b) {
- return a.cg.emit("logdata", b);
- });
- return new g.r3(f, c.M, a, a.K, a.G, a.X);
- });
- this.hV = new m.zT(this.ln, function () {
- return a.gOa();
- }, function () {
- return a.X.position.offset.va;
- });
- }
- };
- a.prototype.Jn = function () {
- this.ln.forEach(function (a) {
- return a.stop();
- });
- this.ln.forEach(function (a) {
- return a.close();
- });
- this.ef.In();
- this.LF();
- };
- a.prototype.Pea = function () {
- return {
- $zb: this.ek.TTa(),
- yyb: this.ln
- };
- };
- a.prototype.bkb = function (a) {
- var b;
- b = this;
- this.V8 = !0;
- a.Fl.forEach(function (a) {
- var c;
- c = b.Wkb(a.M);
- if (void 0 !== c)
- b.yza.once(a.nea, function (a) {
- return c.ckb(a);
- });
- });
- if (this.sb.xx.value === k.Ye.Ce)
- if (void 0 !== a.fm)
- this.eOa(a);
- else
- this.Qya.on(a.events, "branchNormalized", this.eOa.bind(this, a));
- };
- a.prototype.eOa = function (a) {
- u.assert(a.fm);
- this.sb.ml.ADb({
- Na: a.da.id,
- offset: a.fm.Nb(a.da.Mm)
- });
- };
- a.prototype.Wkb = function (a) {
- return f.An(this.ln, function (b) {
- return b.M === a;
- });
- };
- a.prototype.gk = function (a) {
- a = {
- type: "startEvent",
- event: a,
- time: q.time.ea()
- };
- this.cg.emit(a.type, a);
- };
- a.prototype.fl = function (a, b) {
- this.sb.Ig(a, void 0, b);
- };
- return a;
- }
- ();
- b.Toa = d;
- }, function (d, b, a) {
- var c,
- g,
- q,
- n,
- k;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Joa = void 0;
- c = a(0);
- g = a(22);
- q = a(6);
- n = a(4);
- k = a(814);
- d = function (a) {
- function b(b, c) {
- var f;
- f = a.call(this) || this;
- f.X = b;
- f.hC = c;
- f.sza = new g.Ll();
- f.sza.addListener(f.X, "underflow", function () {
- return f.Ek();
- });
- return f;
- }
- c.__extends(b, a);
- Object.defineProperties(b.prototype, {
- Sc: {
- get: function () {
- var a,
- b;
- return null !== (b = null === (a = this.wj) || void 0 === a ? void 0 : a.Sea()) && void 0 !== b ? b : [];
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- sb: {
- get: function () {
- var a;
- return null === (a = this.wj) || void 0 === a ? void 0 : a.sb;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- b.prototype.tQ = function (b) {
- a.prototype.tQ.call(this, b);
- this.wj && this.wj.Lja(b);
- };
- b.prototype.reset = function () {
- var b;
- a.prototype.reset.call(this);
- null === (b = this.wj) || void 0 === b ? void 0 : b.reset();
- };
- b.prototype.LF = function () {
- var a;
- null === (a = this.wj) || void 0 === a ? void 0 : a.LF();
- };
- b.prototype.pause = function (b) {
- this.HI(b);
- a.prototype.pause.call(this, null !== b && void 0 !== b ? b : this.hC);
- };
- b.prototype.resume = function (b) {
- var c;
- null === (c = this.wj) || void 0 === c ? void 0 : c.resume(b);
- a.prototype.resume.call(this, null !== b && void 0 !== b ? b : this.hC);
- };
- b.prototype.rv = function () {
- var b;
- a.prototype.rv.call(this);
- null === (b = this.wj) || void 0 === b ? void 0 : b.rv();
- };
- b.prototype.Jn = function () {
- this.wj && this.Wca(this.wj.sb);
- this.sza.clear();
- a.prototype.Jn.call(this);
- };
- b.prototype.FN = function () {
- var b;
- b = this.X.Ic;
- void 0 === b && (b = a.prototype.FN.call(this));
- return b;
- };
- b.prototype.Wca = function (a) {
- var b;
- q.assert(a === this.sb);
- null === (b = this.wj) || void 0 === b ? void 0 : b.Jn();
- this.wj = void 0;
- };
- b.prototype.jW = function (b, c) {
- if (c = a.prototype.jW.call(this, b, c))
- this.wj = new k.Toa(b, this, new n.Console(), b.config, this.events, this.hC), this.HI(this.MH);
- return c;
- };
- b.prototype.Jda = function () {
- var c;
- for (var a = [], b = 0; b < arguments.length; b++)
- a[b] = arguments[b];
- c = this.wj;
- q.assert(c);
- a.forEach(function (a) {
- return c.Mib(a);
- });
- };
- b.prototype.Ek = function () {
- var a,
- b;
- q.assert(this.sb);
- b = this.Kv(this.Oo);
- q.assert(b);
- null === (a = this.wj) || void 0 === a ? void 0 : a.Ek();
- this.sb.Ek(b);
- };
- b.prototype.Pea = function () {
- var a;
- return null === (a = this.wj) || void 0 === a ? void 0 : a.Pea();
- };
- b.prototype.HI = function (a) {
- var b;
- null === (b = this.wj) || void 0 === b ? void 0 : b.HI(a);
- };
- b.prototype.zna = function (b) {
- q.assert(this.sb && this.wj);
- return a.prototype.zna.call(this, b);
- };
- return b;
- }
- (a(384).x7);
- b.Joa = d;
- }, function (d, b, a) {
- var g,
- q;
- function c(a) {
- this.K = a;
- this.kL();
- }
- g = a(7);
- q = a(4);
- new q.Console("ASEJS_NETWORK_HISTORY", "media|asejs");
- c.prototype.save = function () {
- var a;
- a = this.bd();
- q.storage.set("nh", a);
- };
- c.prototype.bFb = function () {
- this.EA || (this.EA = !0, this.Qt = q.time.ea());
- };
- c.prototype.mFb = function () {
- var a;
- if (this.EA) {
- a = q.time.ea();
- this.Wt += a - this.Qt;
- this.Qt = a;
- this.EA = !1;
- this.jL = null;
- }
- };
- c.prototype.yKa = function (a, b) {
- this.EA && (b > this.Qt && (this.Wt += b - this.Qt, this.Qt = b), null === this.jL || a > this.jL) && (a = b - a, this.OE.push([this.Wt - a, a]), this.y8a(), this.jL = b);
- };
- c.prototype.y8a = function () {
- var a;
- a = this.Wt - this.K.Dvb;
- this.OE = this.OE.filter(function (b) {
- return b[0] > a;
- });
- };
- c.prototype.kL = function () {
- var a;
- a = q.storage.get("nh");
- this.F$(a) || (this.Qt = q.time.ea(), this.Wt = 0, this.EA = !1, this.jL = null, this.OE = []);
- };
- c.prototype.F$ = function (a) {
- if (!(a && g.has(a, "t") && g.has(a, "s") && g.has(a, "i") && g.la(a.t) && g.la(a.s) && g.isArray(a.i)))
- return !1;
- this.Qt = q.time.Eja(1E3 * a.t);
- this.Wt = 1E3 * a.s;
- this.EA = !1;
- this.OE = a.i.map(function (a) {
- return [1E3 * a[0], a[1]];
- });
- this.jL = null;
- return !0;
- };
- c.prototype.bd = function () {
- return this.EA ? {
- t: q.time.now() / 1E3 | 0,
- s: (this.Wt + (q.time.ea() - this.Qt)) / 1E3 | 0,
- i: this.OE.map(function (a) {
- return [a[0] / 1E3 | 0, a[1]];
- })
- }
- : {
- t: q.time.hja(this.Qt) / 1E3 | 0,
- s: this.Wt / 1E3 | 0,
- i: this.OE.map(function (a) {
- return [a[0] / 1E3 | 0, a[1]];
- })
- };
- };
- d.P = c;
- }, function (d, b, a) {
- var c,
- g;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Fra = void 0;
- c = a(0);
- g = a(50);
- d = function () {
- function a(a) {
- this.G = a;
- }
- a.prototype.Swb = function (a) {
- var b;
- b = this;
- return 0 < a.length ? c.__spread(a).sort(g.jEa(function (a) {
- return b.Z3a(a);
- })).some(function (a) {
- return a.Erb();
- }) : !1;
- };
- a.prototype.Z3a = function (a) {
- return a.p2.Nb(a.Oo).va;
- };
- return a;
- }
- ();
- b.Fra = d;
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- }, function (d, b, a) {
- var h,
- f,
- u,
- m,
- r,
- t,
- H;
- function c(a) {
- var b,
- f,
- d;
- a = a.parent;
- b = !1;
- if (a && a.children) {
- f = {};
- f[t.bk] = [];
- f[t.nj] = [];
- f[t.TEMPORARY] = [];
- d = a.children;
- d.forEach(function (a) {
- a && f[a.ke].push(a);
- });
- 0 < f[t.bk].length || (f[t.nj].length === d.length ? a.ke !== t.nj && (a.ke = t.nj, r.error("PERM failing :", u.vg.name[a.vB] + " " + a.id), b = !0) : (a.ke === t.bk && (a.ke = t.TEMPORARY, r.error("TEMP failing :", u.vg.name[a.vB] + " " + a.id), b = !0), f[t.TEMPORARY].forEach(function (a) {
- a.ke = t.bk;
- })), b && c(a));
- }
- }
- function g(a) {
- var c;
- for (var b = []; a; a = a.parent)
- switch (a.vB) {
- case u.vg.Zz:
- c = a;
- b.unshift(c.id + "(" + c.name + ")");
- break;
- case u.vg.Psa:
- b.unshift(a.id);
- break;
- case u.vg.URL:
- b.unshift("");
- }
- return b.length ? "/" + b.join("/") : "";
- }
- function q(a) {
- var b;
- if ((a = a.parent) && 0 < a.children.length && a.ke !== t.bk) {
- b = {};
- b[t.bk] = [];
- b[t.nj] = [];
- b[t.TEMPORARY] = [];
- a.children.forEach(function (a) {
- a && b[a.ke].push(a);
- });
- 0 < b[t.bk].length && (a.ke = t.bk, q(a));
- }
- }
- function n(a) {
- return a.ke !== t.bk;
- }
- function k(a) {
- switch (a.ke) {
- case t.bk:
- return "OK";
- case t.nj:
- return "FAILED PERMANENTLY";
- case t.TEMPORARY:
- return "FAILED TEMPORARILY";
- default:
- return "INVALID";
- }
- }
- function p(a, b) {
- if (a.ke === t.TEMPORARY || a.ke === t.nj && b)
- a.ke = t.bk;
- a.children && a.children.forEach(function (a) {
- a && p(a, b);
- });
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.TS = void 0;
- h = a(0);
- f = a(7);
- d = a(22);
- u = a(18);
- m = a(4);
- r = new m.Console("ASEJS_LOCATION_SELECTOR", "media|asejs");
- (function (a) {
- a[a.bk = 0] = "OK";
- a[a.TEMPORARY = 1] = "TEMPORARY";
- a[a.nj = 2] = "PERMANENT";
- }
- (t || (t = {})));
- (function (a) {
- a[a.yt = 0] = "STARTUP";
- a[a.b2a = 1] = "REBUFFER";
- }
- (H || (H = {})));
- a = function (a) {
- var Q4s;
- function b(b, c, f, d, h) {
- var u4s,
- g,
- N89,
- P89;
- u4s = 2;
- while (u4s !== 26) {
- N89 = "1";
- N89 += "SIY";
- N89 += "b";
- N89 += "ZrNJ";
- N89 += "Cp9";
- P89 = "n";
- P89 += "e";
- P89 += "t";
- P89 += "wo";
- P89 += "rk";
- switch (u4s) {
- case 2:
- u4s = 1;
- break;
- case 1:
- g = a.call(this) || this;
- g.ub = c;
- g.Gf = f;
- g.config = d;
- u4s = 9;
- break;
- case 9:
- g.v6a = h;
- g.wzb = H.yt;
- g.ks = void 0;
- g.um = {};
- g.Nq = {};
- g.se = {};
- g.ic = {};
- u4s = 11;
- break;
- case 11:
- g.xv = [];
- g.b0 = !1;
- g.ym = {
- id: P89,
- vB: u.vg.tt,
- ke: t.bk,
- Bs: void 0,
- parent: void 0,
- children: g.xv
- };
- u4s = 19;
- break;
- case 19:
- g.ZU = null;
- g.qI = null;
- g.rI = u.Og.yt;
- g.Xja(b);
- u4s = 15;
- break;
- case 15:
- N89;
- return g;
- break;
- }
- }
- }
- Q4s = 2;
- while (Q4s !== 25) {
- switch (Q4s) {
- case 7:
- b.prototype.Xja = function (a) {
- var j4s,
- b;
- j4s = 2;
- while (j4s !== 10) {
- switch (j4s) {
- case 11:
- this.dump();
- j4s = 10;
- break;
- case 3:
- this.xv.sort(function (a, b) {
- var A4s;
- A4s = 2;
- while (A4s !== 1) {
- switch (A4s) {
- case 2:
- return a.level - b.level || a.Xf - b.Xf;
- break;
- }
- }
- });
- a.servers.forEach(function (a) {
- var f4s,
- c,
- f,
- d;
- f4s = 2;
- while (f4s !== 14) {
- switch (f4s) {
- case 1:
- c = a.id;
- f4s = 5;
- break;
- case 2:
- f4s = 1;
- break;
- case 5:
- f4s = !b.Nq[c] ? 4 : 14;
- break;
- case 9:
- d = [];
- a = {
- id: c,
- vB: u.vg.Zz,
- ke: t.bk,
- Bs: void 0,
- parent: f,
- children: d,
- se: d,
- name: a.name,
- type: a.type,
- Xf: a.rank,
- location: f
- };
- b.Nq[a.id] = a;
- f.children.push(a);
- f4s = 14;
- break;
- case 4:
- f = b.um[a.key];
- f4s = 3;
- break;
- case 3:
- f4s = f ? 9 : 14;
- break;
- }
- }
- });
- a.audio_tracks.forEach(function (a) {
- var i4s;
- i4s = 2;
- while (i4s !== 1) {
- switch (i4s) {
- case 2:
- b.KPa(a);
- i4s = 1;
- break;
- case 4:
- b.KPa(a);
- i4s = 6;
- break;
- i4s = 1;
- break;
- }
- }
- });
- j4s = 7;
- break;
- case 2:
- b = this;
- a.locations.forEach(function (a) {
- var q4s,
- c,
- f,
- d,
- h;
- q4s = 2;
- while (q4s !== 14) {
- switch (q4s) {
- case 2:
- c = a.key;
- q4s = 5;
- break;
- case 5:
- q4s = !b.um[c] ? 4 : 14;
- break;
- case 4:
- f = [];
- d = b.Gf.get(c);
- h = b.ym;
- q4s = 8;
- break;
- case 8:
- a = {
- id: c,
- vB: u.vg.Psa,
- ke: t.bk,
- Xf: a.rank,
- level: a.level,
- weight: a.weight,
- Bs: void 0,
- parent: h,
- children: f,
- Nq: f,
- ic: {},
- mb: d
- };
- b.um[a.id] = a;
- h.children.push(a);
- q4s = 14;
- break;
- }
- }
- });
- this.ZU = m.time.ea();
- j4s = 3;
- break;
- case 7:
- a.video_tracks.forEach(function (a) {
- var Z4s;
- Z4s = 2;
- while (Z4s !== 1) {
- switch (Z4s) {
- case 2:
- b.KPa(a);
- Z4s = 1;
- break;
- case 4:
- b.KPa(a);
- Z4s = 9;
- break;
- Z4s = 1;
- break;
- }
- }
- });
- a = this.xv.filter(function (a) {
- var b4s,
- c;
- b4s = 2;
- while (b4s !== 3) {
- switch (b4s) {
- case 2:
- c = a.Nq.every(function (a) {
- var G4s;
- G4s = 2;
- while (G4s !== 1) {
- switch (G4s) {
- case 2:
- return 0 === a.se.length;
- break;
- case 4:
- return 1 !== a.se.length;
- break;
- G4s = 1;
- break;
- }
- }
- });
- c && (a.Nq.forEach(function (a) {
- var S4s;
- S4s = 2;
- while (S4s !== 1) {
- switch (S4s) {
- case 2:
- b.Nq[a.id] = void 0;
- S4s = 1;
- break;
- }
- }
- }), b.um[a.id] = void 0, a.parent = void 0, a.children.length = 0, a.ic = {});
- return !c;
- break;
- }
- }
- });
- a.forEach(function (a) {
- var p3s;
- p3s = 2;
- while (p3s !== 1) {
- switch (p3s) {
- case 2:
- a.Nq.sort(function (a, b) {
- var J3s;
- J3s = 2;
- while (J3s !== 1) {
- switch (J3s) {
- case 2:
- return a.Xf - b.Xf;
- break;
- case 4:
- return a.Xf + b.Xf;
- break;
- J3s = 1;
- break;
- }
- }
- });
- p3s = 1;
- break;
- }
- }
- });
- this.xv = a;
- this.ym.children = a;
- j4s = 11;
- break;
- }
- }
- };
- b.prototype.mR = function (a, b) {
- var y3s,
- c,
- d,
- h,
- g,
- k,
- l,
- i59,
- S59,
- l59,
- w89;
- y3s = 2;
- while (y3s !== 15) {
- i59 = "(empty";
- i59 += " stre";
- i59 += "am";
- i59 += " li";
- i59 += "st)";
- S59 = "Did not";
- S59 += " find a URL for A";
- S59 += "NY";
- S59 += " stream...";
- l59 = "network";
- l59 += "Fai";
- l59 += "l";
- l59 += "e";
- l59 += "d";
- w89 = "Network ha";
- w89 += "s fa";
- w89 += "iled, not updating stream s";
- w89 += "election";
- switch (y3s) {
- case 8:
- y3s = n(this.ym) ? 7 : 6;
- break;
- case 17:
- b.forEach(function (a, b) {
- var R3s,
- p,
- Y89,
- Z89,
- g89,
- I89;
- R3s = 2;
- while (R3s !== 4) {
- Y89 = " ";
- Y89 += "Kbps";
- Y89 += ")";
- Z89 = " ";
- Z89 += "(";
- g89 = "]";
- g89 += " ";
- I89 = "Fai";
- I89 += "li";
- I89 += "ng";
- I89 += " strea";
- I89 += "m [";
- switch (R3s) {
- case 2:
- p = a.id;
- R3s = 5;
- break;
- case 5:
- l.some(function (b) {
- var H3s,
- c,
- g;
- H3s = 2;
- while (H3s !== 7) {
- switch (H3s) {
- case 2:
- c = b.ic[p];
- H3s = 5;
- break;
- case 5:
- H3s = !c ? 4 : 3;
- break;
- case 3:
- g = c.um[0];
- void 0 === a.T0 && (a.T0 = g.id, a.Dka = c.oR[g.id][0].uc.id);
- return c.oR[b.id].some(function (c) {
- var o3s,
- p,
- d89,
- O89,
- X89,
- U89;
- o3s = 2;
- while (o3s !== 11) {
- d89 = "loca";
- d89 += "tionfail";
- d89 += "over";
- O89 = "se";
- O89 += "r";
- O89 += "ver";
- O89 += "fa";
- O89 += "ilover";
- X89 = "per";
- X89 += "for";
- X89 += "m";
- X89 += "an";
- X89 += "ce";
- U89 = "u";
- U89 += "nkn";
- U89 += "o";
- U89 += "wn";
- switch (o3s) {
- case 2:
- o3s = 1;
- break;
- case 1:
- o3s = n(c.uc) ? 5 : 4;
- break;
- case 4:
- o3s = n(c) ? 3 : 9;
- break;
- case 3:
- return !1;
- break;
- case 9:
- p = U89;
- a.location !== b.id && (d.Fq ? a.vha = b.id === g.id : p = b !== l[0] ? "" + u.Og.t3 : void 0 === a.location ? "" + u.Og.yt : f.Y(a.pLa) || a.pLa === b.id ? f.Y(a.qLa) || a.qLa === c.uc.id ? X89 : O89 : d89, a.location = b.id, a.$ha = b.level, a.xp = p);
- a.url = c.url;
- o3s = 6;
- break;
- case 5:
- return c.uc.ke === t.TEMPORARY && (a.ke = t.TEMPORARY),
- d.Fq && a.uc === c.uc.id && c.uc.Bs && (a.Bs = c.uc.Bs),
- !1;
- break;
- case 6:
- a.uc = c.uc.id;
- a.SC = c.uc.name;
- a.mb = d.bba ? b.mb.Ld >= u.Qe.Fz || h.Ld < k ? b.mb : h : h.Ld === u.Qe.HAVE_NOTHING || b.mb.Ld >= u.Qe.Fz ? b.mb : h;
- return !0;
- break;
- }
- }
- });
- break;
- case 4:
- return !1;
- break;
- }
- }
- }) ? (a.Uu = !1, a.ke = void 0, a.Tn && ++g) : a.ke && a.ke === t.TEMPORARY ? c.ym.ke = t.TEMPORARY : a.Uu || (r.warn(I89 + b + g89 + p + Z89 + a.O + Y89), a.tcb(), a.Uu = !0);
- R3s = 4;
- break;
- }
- }
- });
- return n(this.ym) ? (r.warn(w89), this.b0 = !0, this.emit(l59, this.ym.ke === t.nj), !1) : g ? !0 : (r.warn(S59 + (b.length ? "" : i59)), this.pp(u.vg.tt, !0), !1);
- break;
- case 7:
- return !1;
- break;
- case 3:
- g = 0;
- m.Gx && m.Gx(a);
- y3s = 8;
- break;
- case 20:
- l = this.qI;
- y3s = 19;
- break;
- case 11:
- y3s = !this.qI ? 10 : 20;
- break;
- case 5:
- d = this.config;
- h = this.ub.get();
- y3s = 3;
- break;
- case 10:
- return this.pp(u.vg.tt, !1),
- !1;
- break;
- case 6:
- k = u.Qe.Gz;
- d.eP && (k = u.Qe.Fz);
- this.ub.location && h.Ld >= k && (a = this.um[this.ub.location]) && (a.mb = h);
- f.Ma(this.qI) && (this.qI = this.CHb());
- y3s = 11;
- break;
- case 19:
- y3s = !l.length ? 18 : 17;
- break;
- case 18:
- return this.pp(u.vg.tt, !1),
- !1;
- break;
- case 2:
- c = this;
- y3s = 5;
- break;
- }
- }
- };
- b.prototype.rDb = function (a, b) {
- var w3s,
- c,
- d;
- w3s = 2;
- while (w3s !== 9) {
- switch (w3s) {
- case 2:
- c = {};
- d = /^http(s?):\/\/([^\/:]+):?([0-9]*)/;
- f.forEach(this.se, function (h, g) {
- var e3s,
- k,
- l,
- p,
- n,
- y59,
- H59,
- P3s;
- e3s = 2;
- while (e3s !== 13) {
- y59 = "8";
- y59 += "0";
- H59 = "4";
- H59 += "4";
- H59 += "3";
- switch (e3s) {
- case 14:
- f.Od(n) && f.Od(l) && n === a && l == b && (k ? k.push(g) : c[h] = [g]);
- e3s = 13;
- break;
- case 3:
- e3s = l && 4 === l.length ? 9 : 13;
- break;
- case 2:
- h = h.parent ? h.parent.id : "";
- k = c[h];
- l = g.match(d);
- e3s = 3;
- break;
- case 9:
- v3YY.J89(0);
- P3s = v3YY.L89(9, 0.22222222222222232, 11);
- p = "s" === l[P3s];
- n = l[2];
- l = l[3];
- l.length || (l = p ? H59 : y59);
- e3s = 14;
- break;
- }
- }
- });
- return c;
- break;
- }
- }
- };
- b.prototype.pp = function (a, b, f, d) {
- var h3s,
- h,
- l,
- p,
- g3s,
- e59,
- V59,
- x59,
- u59,
- f59,
- m59,
- c59,
- o59,
- R59;
- h3s = 2;
- while (h3s !== 25) {
- e59 = "Inv";
- e59 += "alid fa";
- e59 += "ilur";
- e59 += "e st";
- e59 += "ate";
- V59 = "Unabl";
- V59 += "e to fin";
- V59 += "d failure entity f";
- V59 += "or U";
- V59 += "RL ";
- x59 = " ";
- x59 += ":";
- x59 += " ";
- x59 += "wa";
- x59 += "s ";
- u59 = " ";
- u59 += "at";
- u59 += " ";
- f59 = " failure ";
- f59 += "reported";
- f59 += " fo";
- f59 += "r ";
- m59 = "T";
- m59 += "E";
- m59 += "M";
- m59 += "P";
- c59 = "P";
- c59 += "E";
- c59 += "R";
- c59 += "M";
- o59 = "n";
- o59 += "e";
- o59 += "t";
- o59 += "workF";
- o59 += "ailed";
- R59 = "Emit";
- R59 += "ting networ";
- R59 += "kFailed, per";
- R59 += "manent";
- R59 += " =";
- switch (h3s) {
- case 3:
- h3s = p !== h.ke ? 9 : 25;
- break;
- case 1:
- h3s = h && h.parent && h.vB !== a ? 5 : 4;
- break;
- case 5:
- h = h.parent;
- h3s = 1;
- break;
- case 2:
- h = a !== u.vg.tt && f ? this.se[f] : this.ym,
- l = this.ym.ke,
- p = b ? t.nj : t.TEMPORARY;
- h3s = 1;
- break;
- case 10:
- a > l && (r.warn(R59, a === t.nj), this.emit(o59, a === t.nj));
- h3s = 20;
- break;
- case 14:
- h.ke = p;
- c(h);
- this.b0 = this.b0 || n(this.ym);
- a = this.ym.ke;
- h3s = 10;
- break;
- case 6:
- h3s = g3s === t.TEMPORARY ? 14 : 16;
- break;
- case 4:
- h3s = h ? 3 : 26;
- break;
- case 8:
- g3s = h.ke;
- h3s = g3s === t.nj ? 7 : 6;
- break;
- case 7:
- return;
- break;
- case 17:
- this.dump();
- h3s = 25;
- break;
- case 9:
- r.warn((b ? c59 : m59) + f59 + u.vg.name[a] + u59 + g(h) + x59 + k(h));
- h3s = 8;
- break;
- case 20:
- this.qI = null;
- this.rI = u.Og.ERROR;
- d && (this.rI = u.Og.O1a, h.Bs = d);
- h3s = 17;
- break;
- case 16:
- h3s = g3s === t.bk ? 14 : 15;
- break;
- case 26:
- v3YY.J89(1);
- r.warn(v3YY.L89(V59, f));
- h3s = 25;
- break;
- case 15:
- h3s = 27;
- break;
- case 27:
- throw Error(e59);
- h3s = 14;
- break;
- }
- }
- };
- b.prototype.$Qa = function (a, b) {
- var V3s;
- V3s = 2;
- while (V3s !== 3) {
- switch (V3s) {
- case 2:
- V3s = (a = this.Nq[a]) ? 1 : 5;
- break;
- case 7:
- p(a, b),
- q(a);
- V3s = 8;
- break;
- V3s = 5;
- break;
- case 1:
- p(a, b),
- q(a);
- V3s = 5;
- break;
- case 5:
- this.qI = null;
- this.rI = u.Og.P6;
- V3s = 3;
- break;
- }
- }
- };
- b.prototype.$P = function (a) {
- var K3s;
- K3s = 2;
- while (K3s !== 1) {
- switch (K3s) {
- case 2:
- p(this.ym, a);
- K3s = 1;
- break;
- case 4:
- p(this.ym, a);
- K3s = 5;
- break;
- K3s = 1;
- break;
- }
- }
- };
- Q4s = 10;
- break;
- case 26:
- return b;
- break;
- case 10:
- b.prototype.wl = function (a) {
- var c3s,
- b;
- c3s = 2;
- while (c3s !== 5) {
- switch (c3s) {
- case 2:
- null === (b = this.v6a) || void 0 === b ? void 0 : b.call(this, a);
- c3s = 5;
- break;
- }
- }
- };
- b.prototype.Ek = function () {
- var d3s;
- d3s = 2;
- while (d3s !== 1) {
- switch (d3s) {
- case 2:
- this.CBb(H.b2a);
- d3s = 1;
- break;
- case 4:
- this.CBb(H.b2a);
- d3s = 5;
- break;
- d3s = 1;
- break;
- }
- }
- };
- b.prototype.close = function () {
- var W3s;
- W3s = 2;
- while (W3s !== 1) {
- switch (W3s) {
- case 2:
- this.config.ctb && this.Xxb();
- W3s = 1;
- break;
- }
- }
- };
- Q4s = 18;
- break;
- case 2:
- h.__extends(b, a);
- b.prototype.Xnb = function () {
- var L4s;
- L4s = 2;
- while (L4s !== 1) {
- switch (L4s) {
- case 2:
- return this.xv[0].mb;
- break;
- case 4:
- return this.xv[4].mb;
- break;
- L4s = 1;
- break;
- }
- }
- };
- b.prototype.pfa = function () {
- var M4s;
- M4s = 2;
- while (M4s !== 1) {
- switch (M4s) {
- case 4:
- return this.xv;
- break;
- M4s = 1;
- break;
- case 2:
- return this.xv;
- break;
- }
- }
- };
- b.prototype.Tx = function () {
- var s4s;
- s4s = 2;
- while (s4s !== 1) {
- switch (s4s) {
- case 4:
- return n(this.ym);
- break;
- s4s = 1;
- break;
- case 2:
- return n(this.ym);
- break;
- }
- }
- };
- b.prototype.ORa = function (a) {
- var z4s;
- z4s = 2;
- while (z4s !== 5) {
- switch (z4s) {
- case 2:
- z4s = (a = this.se[a]) && a.parent ? 1 : 5;
- break;
- case 9:
- return a.parent.id;
- break;
- z4s = 5;
- break;
- case 1:
- return a.parent.id;
- break;
- }
- }
- };
- b.prototype.u_ = function (a) {
- var Y4s;
- Y4s = 2;
- while (Y4s !== 5) {
- switch (Y4s) {
- case 2:
- Y4s = (a = this.se[a]) && a.uc ? 1 : 5;
- break;
- case 1:
- return a.uc.location;
- break;
- case 9:
- return a.uc.location;
- break;
- Y4s = 5;
- break;
- }
- }
- };
- b.prototype.bTa = function (a) {
- var t4s;
- t4s = 2;
- while (t4s !== 5) {
- switch (t4s) {
- case 3:
- t4s = (a = this.se[a]) ? 9 : 0;
- break;
- t4s = (a = this.se[a]) ? 1 : 5;
- break;
- case 2:
- t4s = (a = this.se[a]) ? 1 : 5;
- break;
- case 1:
- return a.stream;
- break;
- }
- }
- };
- Q4s = 7;
- break;
- case 18:
- b.prototype.KPa = function (a) {
- var k3s,
- b;
- k3s = 2;
- while (k3s !== 4) {
- switch (k3s) {
- case 1:
- b = this;
- a.streams.forEach(function (a) {
- var N3s,
- c,
- d,
- h,
- j59;
- N3s = 2;
- while (N3s !== 13) {
- j59 = "n";
- j59 += "o";
- j59 += "n";
- j59 += "e";
- j59 += "-";
- switch (N3s) {
- case 4:
- N3s = f.Y(d) ? 3 : 7;
- break;
- case 1:
- c = a.downloadable_id;
- d = b.ic[c];
- N3s = 4;
- break;
- case 8:
- b.ic[d.id] = d;
- N3s = 7;
- break;
- case 3:
- h = a.content_profile;
- d = {
- id: c,
- O: a.bitrate,
- wc: a.vmaf,
- type: a.type,
- profile: h,
- clear: 0 === h.indexOf(j59),
- Tn: !0,
- se: [],
- oR: {},
- um: []
- };
- N3s = 8;
- break;
- case 7:
- a.urls.forEach(function (a) {
- var O3s,
- c,
- h,
- g;
- O3s = 2;
- while (O3s !== 11) {
- switch (O3s) {
- case 4:
- O3s = f.Y(h) && (a = b.Nq[a.cdn_id]) ? 3 : 11;
- break;
- case 2:
- c = a.url;
- h = b.se[c];
- O3s = 4;
- break;
- case 3:
- g = a.location;
- h = {
- id: c,
- vB: u.vg.URL,
- ke: t.bk,
- Bs: void 0,
- parent: a,
- children: [],
- url: c,
- uc: a,
- stream: d
- };
- b.se[c] = h;
- a.children.push(h);
- d.se.push(h);
- O3s = 14;
- break;
- case 14:
- 0 === d.um.filter(function (a) {
- var r3s;
- r3s = 2;
- while (r3s !== 1) {
- switch (r3s) {
- case 2:
- return a.id === g.id;
- break;
- case 4:
- return a.id !== g.id;
- break;
- r3s = 1;
- break;
- }
- }
- }).length && d.um.push(g);
- g.ic[d.id] = d;
- (c = d.oR[g.id]) ? c.push(h) : d.oR[g.id] = [h];
- O3s = 11;
- break;
- }
- }
- });
- f.Yd(d.oR, function (a) {
- var D3s;
- D3s = 2;
- while (D3s !== 1) {
- switch (D3s) {
- case 2:
- a.sort(function (a, b) {
- var I3s;
- I3s = 2;
- while (I3s !== 1) {
- switch (I3s) {
- case 2:
- return a.uc.Xf - b.uc.Xf;
- break;
- case 4:
- return a.uc.Xf * b.uc.Xf;
- break;
- I3s = 1;
- break;
- }
- }
- });
- D3s = 1;
- break;
- }
- }
- });
- d.um = d.um.sort(function (a, b) {
- var l3s;
- l3s = 2;
- while (l3s !== 1) {
- switch (l3s) {
- case 2:
- return a.level - b.level || a.Xf - b.Xf;
- break;
- }
- }
- });
- N3s = 13;
- break;
- case 2:
- N3s = 1;
- break;
- }
- }
- });
- k3s = 4;
- break;
- case 2:
- k3s = 1;
- break;
- }
- }
- };
- b.prototype.CHb = function () {
- var X3s,
- a,
- b,
- c,
- d;
- X3s = 2;
- while (X3s !== 10) {
- switch (X3s) {
- case 3:
- X3s = 0 === c.length ? 9 : 8;
- break;
- case 4:
- c = this.xv.filter(function (a) {
- var a3s;
- a3s = 2;
- while (a3s !== 1) {
- switch (a3s) {
- case 4:
- return +n(a) || 5 == a.level;
- break;
- a3s = 1;
- break;
- case 2:
- return !n(a) && 0 !== a.level;
- break;
- }
- }
- });
- X3s = 3;
- break;
- case 9:
- return null;
- break;
- case 2:
- a = this;
- b = this.config;
- X3s = 4;
- break;
- case 8:
- d = m.time.ea();
- X3s = 7;
- break;
- case 7:
- X3s = null === this.ZU || this.ZU + b.Zha < d ? 6 : 14;
- break;
- case 14:
- b = this.rI;
- c.sort(function (a, b) {
- var C3s;
- C3s = 2;
- while (C3s !== 1) {
- switch (C3s) {
- case 2:
- return a.level - b.level || a.Xf - b.Xf;
- break;
- }
- }
- });
- this.ks || f.Ma(b) || (this.ks = !0);
- return c;
- break;
- case 6:
- c.forEach(function (b) {
- var n3s;
- n3s = 2;
- while (n3s !== 1) {
- switch (n3s) {
- case 2:
- b.id !== a.ub.location && (b.mb = a.Gf.get(b.id));
- n3s = 1;
- break;
- }
- }
- }),
- this.ZU = d;
- X3s = 14;
- break;
- }
- }
- };
- b.prototype.CBb = function (a) {
- var v3s,
- b;
- v3s = 2;
- while (v3s !== 9) {
- switch (v3s) {
- case 2:
- b = this.ub.location;
- this.ks = !1;
- this.wzb = a;
- v3s = 3;
- break;
- case 3:
- this.xv.forEach(function (a) {
- var F3s;
- F3s = 2;
- while (F3s !== 1) {
- switch (F3s) {
- case 2:
- a.id !== b && a.mb && a.mb.Ld > u.Qe.Gz && (a.mb.Ld = u.Qe.Gz);
- F3s = 1;
- break;
- }
- }
- });
- v3s = 9;
- break;
- }
- }
- };
- b.prototype.Xxb = function () {
- var x3s,
- a;
- x3s = 2;
- while (x3s !== 4) {
- switch (x3s) {
- case 2:
- a = this;
- x3s = 5;
- break;
- case 5:
- this.b0 || this.xv.forEach(function (b) {
- var T3s;
- T3s = 2;
- while (T3s !== 1) {
- switch (T3s) {
- case 2:
- b.ke === t.TEMPORARY && a.Gf.fail(b.id, m.time.ea());
- T3s = 1;
- break;
- }
- }
- });
- x3s = 4;
- break;
- }
- }
- };
- b.prototype.dump = function () {};
- Q4s = 26;
- break;
- }
- }
- }
- (d.EventEmitter);
- b.TS = a;
- }, function (d) {
- var b,
- a,
- c;
- b = Object.getOwnPropertySymbols;
- a = Object.prototype.hasOwnProperty;
- c = Object.prototype.propertyIsEnumerable;
- d.P = function () {
- var a,
- c;
- try {
- if (!Object.assign)
- return !1;
- a = new String("abc");
- a[5] = "de";
- if ("5" === Object.getOwnPropertyNames(a)[0])
- return !1;
- for (var b = {}, a = 0; 10 > a; a++)
- b["_" + String.fromCharCode(a)] = a;
- if ("0123456789" !== Object.getOwnPropertyNames(b).map(function (a) {
- return b[a];
- }).join(""))
- return !1;
- c = {};
- "abcdefghijklmnopqrst".split("").forEach(function (a) {
- c[a] = a;
- });
- return "abcdefghijklmnopqrst" !== Object.keys(Object.assign({}, c)).join("") ? !1 : !0;
- } catch (k) {
- return !1;
- }
- }
- () ? Object.assign : function (d, g) {
- var l,
- k;
- if (null === d || void 0 === d)
- throw new TypeError("Object.assign cannot be called with null or undefined");
- k = Object(d);
- for (var p, h = 1; h < arguments.length; h++) {
- l = Object(arguments[h]);
- for (var f in l)
- a.call(l, f) && (k[f] = l[f]);
- if (b) {
- p = b(l);
- for (var q = 0; q < p.length; q++)
- c.call(l, p[q]) && (k[p[q]] = l[p[q]]);
- }
- }
- return k;
- };
- }, function (d, b, a) {
- (function (b) {
- var J,
- R,
- x,
- ba,
- z,
- T,
- U,
- B;
- function c(a, b) {
- if (a === b)
- return 0;
- for (var c = a.length, f = b.length, d = 0, h = Math.min(c, f); d < h; ++d)
- if (a[d] !== b[d]) {
- c = a[d];
- f = b[d];
- break;
- }
- return c < f ? -1 : f < c ? 1 : 0;
- }
- function g(a) {
- return b.kpa && "function" === typeof b.kpa.isBuffer ? b.kpa.isBuffer(a) : !(null == a || !a.EQb);
- }
- function n(a) {
- return g(a) || "function" !== typeof b.ArrayBuffer ? !1 : "function" === typeof ArrayBuffer.isView ? ArrayBuffer.isView(a) : a ? a instanceof DataView || a.buffer && a.buffer instanceof ArrayBuffer ? !0 : !1 : !1;
- }
- function k(a) {
- if (R.Vb(a))
- return z ? a.name : (a = a.toString().match(U)) && a[1];
- }
- function p(a) {
- return "string" === typeof a ? 128 > a.length ? a : a.slice(0, 128) : a;
- }
- function h(a) {
- if (z || !R.Vb(a))
- return R.kO(a);
- a = k(a);
- return "[Function" + (a ? ": " + a : "") + "]";
- }
- function f(a, b, c, f, d) {
- throw new T.AssertionError({
- message: c,
- vF: a,
- gq: b,
- JH: f,
- SEb: d
- });
- }
- function u(a, b) {
- a || f(a, !0, b, "==", T.ok);
- }
- function m(a, b, f, d) {
- var h;
- if (a === b)
- return !0;
- if (g(a) && g(b))
- return 0 === c(a, b);
- if (R.RZ(a) && R.RZ(b))
- return a.getTime() === b.getTime();
- if (R.UKa(a) && R.UKa(b))
- return a.source === b.source && a.global === b.global && a.multiline === b.multiline && a.lastIndex === b.lastIndex && a.ignoreCase === b.ignoreCase;
- if (null !== a && "object" === typeof a || null !== b && "object" === typeof b) {
- if (!n(a) || !n(b) || Object.prototype.toString.call(a) !== Object.prototype.toString.call(b) || a instanceof Float32Array || a instanceof Float64Array) {
- if (g(a) !== g(b))
- return !1;
- d = d || {
- vF: [],
- gq: []
- };
- h = d.vF.indexOf(a);
- if (-1 !== h && h === d.gq.indexOf(b))
- return !0;
- d.vF.push(a);
- d.gq.push(b);
- return r(a, b, f, d);
- }
- return 0 === c(new Uint8Array(a.buffer), new Uint8Array(b.buffer));
- }
- return f ? a === b : a == b;
- }
- function r(a, b, c, f) {
- var d,
- h,
- g;
- if (null === a || void 0 === a || null === b || void 0 === b)
- return !1;
- if (R.QKa(a) || R.QKa(b))
- return a === b;
- if (c && Object.getPrototypeOf(a) !== Object.getPrototypeOf(b))
- return !1;
- d = "[object Arguments]" == Object.prototype.toString.call(a);
- h = "[object Arguments]" == Object.prototype.toString.call(b);
- if (d && !h || !d && h)
- return !1;
- if (d)
- return a = ba.call(a), b = ba.call(b), m(a, b, c);
- d = B(a);
- g = B(b);
- if (d.length !== g.length)
- return !1;
- d.sort();
- g.sort();
- for (h = d.length - 1; 0 <= h; h--)
- if (d[h] !== g[h])
- return !1;
- for (h = d.length - 1; 0 <= h; h--)
- if (g = d[h], !m(a[g], b[g], c, f))
- return !1;
- return !0;
- }
- function t(a, b, c) {
- m(a, b, !0) && f(a, b, c, "notDeepStrictEqual", t);
- }
- function H(a, b) {
- if (!a || !b)
- return !1;
- if ("[object RegExp]" == Object.prototype.toString.call(b))
- return b.test(a);
- try {
- if (a instanceof b)
- return !0;
- } catch (ta) {}
- return Error.isPrototypeOf(b) ? !1 : !0 === b.call({}, a);
- }
- function D(a, b, c, d) {
- var h,
- g,
- k;
- if ("function" !== typeof b)
- throw new TypeError('"block" argument must be a function');
- "string" === typeof c && (d = c, c = null);
- try {
- b();
- } catch (Q) {
- h = Q;
- }
- b = h;
- d = (c && c.name ? " (" + c.name + ")." : ".") + (d ? " " + d : ".");
- a && !b && f(b, c, "Missing expected exception" + d);
- h = "string" === typeof d;
- g = !a && R.mO(b);
- k = !a && b && !c;
- (g && h && H(b, c) || k) && f(b, c, "Got unwanted exception" + d);
- if (a && b && c && !H(b, c) || !a && b)
- throw b;
- }
- function K(a, b) {
- a || f(a, !0, b, "==", K);
- }
- J = a(820);
- R = a(470);
- x = Object.prototype.hasOwnProperty;
- ba = Array.prototype.slice;
- z = function () {
- return "foo" === function () {}
- .name;
- }
- ();
- T = d.P = u;
- U = /\s*function\s+([^\(\s]*)\s*/;
- T.AssertionError = function (a) {
- var b;
- this.name = "AssertionError";
- this.vF = a.vF;
- this.gq = a.gq;
- this.JH = a.JH;
- this.message = a.message ? a.message : p(h(this.vF)) + " " + this.JH + " " + p(h(this.gq));
- b = a.SEb || f;
- Error.captureStackTrace ? Error.captureStackTrace(this, b) : (a = Error(), a.stack && (a = a.stack, b = k(b), b = a.indexOf("\n" + b), 0 <= b && (a = a.substring(a.indexOf("\n", b + 1) + 1)), this.stack = a));
- };
- R.hqb(T.AssertionError, Error);
- T.fail = f;
- T.ok = u;
- T.equal = function (a, b, c) {
- a != b && f(a, b, c, "==", T.equal);
- };
- T.DH = function (a, b, c) {
- a == b && f(a, b, c, "!=", T.DH);
- };
- T.hFa = function (a, b, c) {
- m(a, b, !1) || f(a, b, c, "deepEqual", T.hFa);
- };
- T.iFa = function (a, b, c) {
- m(a, b, !0) || f(a, b, c, "deepStrictEqual", T.iFa);
- };
- T.FNa = function (a, b, c) {
- m(a, b, !1) && f(a, b, c, "notDeepEqual", T.FNa);
- };
- T.Rvb = t;
- T.cTa = function (a, b, c) {
- a !== b && f(a, b, c, "===", T.cTa);
- };
- T.GNa = function (a, b, c) {
- a === b && f(a, b, c, "!==", T.GNa);
- };
- T["throws"] = function (a, b, c) {
- D(!0, a, b, c);
- };
- T.oSb = function (a, b, c) {
- D(!1, a, b, c);
- };
- T.vTb = function (a) {
- if (a)
- throw a;
- };
- T.Wma = J(K, T, {
- equal: T.cTa,
- hFa: T.iFa,
- DH: T.GNa,
- FNa: T.Rvb
- });
- T.Wma.Wma = T.Wma;
- B = Object.keys || function (a) {
- var b,
- c;
- b = [];
- for (c in a)
- x.call(a, c) && b.push(c);
- return b;
- };
- }
- .call(this, a(143)));
- }, function (d, b, a) {
- var c;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Epa = void 0;
- c = a(391);
- d = function () {
- var K59;
- K59 = 2;
- function a() {
- var b59,
- C59;
- b59 = 2;
- while (b59 !== 5) {
- C59 = "1SIYbZ";
- C59 += "rN";
- C59 += "J";
- C59 += "Cp";
- C59 += "9";
- switch (b59) {
- case 2:
- this.nV = {};
- C59;
- b59 = 5;
- break;
- case 3:
- this.nV = {};
- "";
- b59 = 9;
- break;
- b59 = 5;
- break;
- }
- }
- }
- while (K59 !== 9) {
- switch (K59) {
- case 4:
- a.prototype.get = function () {
- var p59,
- h,
- f,
- a,
- b,
- c,
- d;
- p59 = 2;
- while (p59 !== 6) {
- switch (p59) {
- case 2:
- p59 = 1;
- break;
- case 4:
- h = b[d];
- f = a[h].get();
- f && c.push({
- cdnid: h,
- avtp: f.Ca,
- tm: f.rX
- });
- p59 = 8;
- break;
- case 5:
- p59 = d < b.length ? 4 : 7;
- break;
- case 1:
- a = this.nV,
- b = Object.keys(a),
- c = [],
- d = 0;
- p59 = 5;
- break;
- case 8:
- d++;
- p59 = 5;
- break;
- case 7:
- return c;
- break;
- }
- }
- };
- return a;
- break;
- case 1:
- a.prototype.start = function (a, b) {
- var Q59,
- d;
- Q59 = 2;
- while (Q59 !== 3) {
- switch (Q59) {
- case 2:
- d = this.nV;
- void 0 === d[b] && (d[b] = new c());
- d[b].start(a);
- Q59 = 3;
- break;
- }
- }
- };
- a.prototype.stop = function (a, b) {
- var s59,
- c;
- s59 = 2;
- while (s59 !== 4) {
- switch (s59) {
- case 2:
- c = this.nV;
- void 0 !== c[b] && c[b].stop(a);
- s59 = 4;
- break;
- }
- }
- };
- K59 = 4;
- break;
- case 2:
- a.prototype.add = function (a, b, d, g) {
- var t59,
- h;
- t59 = 2;
- while (t59 !== 3) {
- switch (t59) {
- case 2:
- h = this.nV;
- t59 = 5;
- break;
- case 8:
- h = this.nV;
- t59 = 4;
- break;
- t59 = 5;
- break;
- case 5:
- void 0 === h[g] && (h[g] = new c());
- h[g].add(a, b, d);
- t59 = 3;
- break;
- }
- }
- };
- K59 = 1;
- break;
- }
- }
- }
- ();
- b.Epa = d;
- }, function (d, b, a) {
- var c;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.fra = void 0;
- c = a(822);
- new(a(4)).Console("ASEJS_ENDPOINT_ACTIVITY", "media|asejs");
- d = function () {
- var W59;
- W59 = 2;
- while (W59 !== 7) {
- switch (W59) {
- case 3:
- a.prototype.qm = function () {
- var A59;
- A59 = 2;
- while (A59 !== 1) {
- switch (A59) {
- case 2:
- return this.gz.get();
- break;
- case 4:
- return this.gz.get();
- break;
- A59 = 1;
- break;
- }
- }
- };
- a.prototype.yUa = function (a) {
- var r59,
- b,
- c;
- r59 = 2;
- while (r59 !== 3) {
- switch (r59) {
- case 2:
- b = Object.keys(this.Iu);
- c = this.Iu[b[0]];
- 1 === b.length && !1 === c.TX ? (this.gz.start(a, c.je), this.RL = c.je) : 1 < b.length && this.RL && (b = this.Iu[this.RL], this.gz.stop(a, this.RL), b.TX = !1, this.RL = void 0);
- r59 = 3;
- break;
- }
- }
- };
- return a;
- break;
- case 2:
- a.prototype.reset = function () {
- var h59;
- h59 = 2;
- while (h59 !== 1) {
- switch (h59) {
- case 4:
- this.gz = new c.Epa();
- h59 = 4;
- break;
- h59 = 1;
- break;
- case 2:
- this.gz = new c.Epa();
- h59 = 1;
- break;
- }
- }
- };
- a.prototype.LC = function (a, b) {
- var T59;
- T59 = 2;
- while (T59 !== 1) {
- switch (T59) {
- case 2:
- b.je && (this.Nga ? this.gz.start(a, b.je) : 1 === b.type && (this.Iu[b.je] ? this.Iu[b.je].yR += 1 : this.Iu[b.je] = {
- je: b.je,
- yR: 1,
- TX: !1
- }, this.yUa(a)));
- T59 = 1;
- break;
- }
- }
- };
- a.prototype.NC = function (a, b) {
- var z59,
- c;
- z59 = 2;
- while (z59 !== 8) {
- switch (z59) {
- case 4:
- this.gz.stop(a, b.je);
- z59 = 8;
- break;
- case 1:
- z59 = b.je ? 5 : 8;
- break;
- case 5:
- z59 = this.Nga ? 4 : 3;
- break;
- case 2:
- z59 = 1;
- break;
- case 3:
- c = this.Iu[b.je];
- 1 === b.type && c && (--c.yR, 0 === c.yR && (c.TX && this.gz.stop(a, b.je), c.TX = !1, delete this.Iu[b.je]), this.yUa(a));
- z59 = 8;
- break;
- }
- }
- };
- a.prototype.px = function (a, b, c, d) {
- var B59;
- B59 = 2;
- while (B59 !== 1) {
- switch (B59) {
- case 2:
- d.je && (this.Nga ? this.gz.add(a, b, c, d.je) : this.RL === d.je && this.gz.add(a, b, c, d.je));
- B59 = 1;
- break;
- }
- }
- };
- W59 = 3;
- break;
- }
- }
- function a(a) {
- var v59,
- E59;
- v59 = 2;
- while (v59 !== 4) {
- E59 = "1SIY";
- E59 += "bZrNJC";
- E59 += "p9";
- switch (v59) {
- case 2:
- this.Nga = a;
- this.Iu = {};
- E59;
- v59 = 4;
- break;
- }
- }
- }
- }
- ();
- b.fra = d;
- }, function (d, b, a) {
- var g;
- function c(a) {
- var b,
- c;
- b = a.sw;
- c = a.mw;
- this.rF = b;
- this.T8 = {
- uhd: a.uhdl,
- hd: a.hdl
- };
- this.ti = Math.max(Math.ceil(1 * b / c), 1);
- this.d6a = a.mins || 1;
- g.call(this, b, c);
- this.reset();
- }
- g = a(160);
- new(a(4)).Console("ASEJS_NETWORK_ENTROPY", "media|asejs");
- c.prototype = Object.create(g.prototype);
- c.prototype.flush = function () {
- this.Yc.map(function (a, b) {
- this.UBa(a, this.Kea(b));
- }, this);
- };
- c.prototype.obb = function () {
- var a,
- b,
- c,
- d,
- h,
- f,
- g,
- t;
- a = this.T8;
- for (b in a)
- if (a.hasOwnProperty(b)) {
- c = a[b];
- d = this.P$[b];
- h = this.O$[b];
- if (d.first) {
- f = d.first;
- g = d.EC;
- void 0 !== g && (h[f][g] += 1);
- d.first = void 0;
- }
- for (var d = [], f = 0, c = g = c.length + 1, l = 0; l < g; l++) {
- for (var m = 0, r = 0; r < c; r++)
- m += h[r][l];
- f += m;
- d.push(m);
- }
- m = -1;
- if (f > this.d6a) {
- for (l = m = 0; l < g; l++)
- if (0 < d[l])
- for (r = 0; r < c; r++) {
- t = h[r][l];
- 0 < t && (m -= t * Math.log(1 * t / d[l]));
- }
- m /= f * Math.log(2);
- }
- this.u9[b] = m;
- }
- return this.u9;
- };
- c.prototype.UBa = function (a, b) {
- var c,
- f,
- g;
- for (var c = this.ti, d = this.T8; this.DU.length >= c; )
- this.DU.shift();
- for (; this.EU.length >= c; )
- this.EU.shift();
- this.DU.push(a);
- this.EU.push(b);
- a = this.DU.reduce(function (a, b) {
- return a + b;
- }, 0);
- b = this.EU.reduce(function (a, b) {
- return a + b;
- }, 0);
- if (0 < b) {
- a = 8 * a / b;
- for (var h in d)
- if (d.hasOwnProperty(h)) {
- b = this.P$[h];
- c = this.O$[h];
- f = this.Tzb(a, d[h]);
- g = b.EC;
- void 0 !== g ? c[f][g] += 1 : b.first = f;
- b.EC = f;
- }
- }
- };
- c.prototype.Tzb = function (a, b) {
- for (var c = 0; c < b.length && a > b[c]; )
- c += 1;
- return c;
- };
- c.prototype.shift = function () {
- this.UBa(this.Yc[0], this.Kea(0));
- g.prototype.shift.call(this);
- };
- c.prototype.reset = function () {
- var a,
- b;
- this.P$ = {};
- this.DU = [];
- this.EU = [];
- this.O$ = {};
- this.u9 = {};
- a = this.T8;
- for (b in a)
- if (a.hasOwnProperty(b)) {
- for (var c = this.O$, d = b, h, f = void 0, l = Array(f), f = h = a[b].length + 1, m = 0; m < f; m++) {
- l[m] = Array(h);
- for (var r = 0; r < h; r++)
- l[m][r] = 0;
- }
- c[d] = l;
- this.P$[b] = {
- first: void 0,
- EC: void 0
- };
- this.u9[b] = 0;
- }
- g.prototype.reset.call(this);
- };
- d.P = c;
- }, function (d, b, a) {
- var g;
- function c() {
- this.pi = void 0;
- this.jx = 0;
- }
- g = a(7);
- c.prototype.bd = function () {
- return 0 !== this.jx && this.pi ? {
- p25: this.pi.Fk,
- p50: this.pi.cj,
- p75: this.pi.Gk,
- c: this.jx
- }
- : null;
- };
- c.prototype.de = function (a) {
- if (!(!g.Ma(a) && g.has(a, "p25") && g.has(a, "p50") && g.has(a, "p75") && g.has(a, "c") && g.isFinite(a.p25) && g.isFinite(a.p50) && g.isFinite(a.p75) && g.isFinite(a.c)))
- return this.pi = void 0, this.jx = 0, !1;
- this.pi = {
- Fk: a.p25,
- cj: a.p50,
- Gk: a.p75
- };
- this.jx = a.c;
- };
- c.prototype.get = function () {
- return {
- D0: this.pi,
- up: this.jx
- };
- };
- c.prototype.set = function (a, b) {
- this.pi = a;
- this.jx = b;
- };
- c.prototype.reset = function () {
- this.pi = void 0;
- this.jx = 0;
- };
- c.prototype.toString = function () {
- return "IQRHist(" + this.pi + "," + this.jx + ")";
- };
- d.P = c;
- }, function (d, b, a) {
- var g,
- q,
- n,
- k,
- p,
- h,
- f,
- u,
- m,
- r;
- function c(a) {
- this.A4a = a;
- }
- b = a(395);
- g = b.IYa;
- q = b.GYa;
- n = a(218).HYa;
- k = a(218).m3a;
- p = a(394);
- h = a(393);
- f = a(392).Hxa;
- u = a(825);
- m = a(824);
- r = a(391);
- c.prototype.constructor = c;
- c.prototype.create = function (a, b) {
- var c,
- d,
- l,
- A;
- d = this.A4a[a];
- l = b[a];
- A = {};
- d && Object.keys(d).forEach(function (a) {
- A[a] = d[a];
- });
- l && Object.keys(l).forEach(function (a) {
- A[a] = l[a];
- });
- switch (A.type) {
- case "slidingwindow":
- c = new n(A.mw);
- break;
- case "discontiguous-ewma":
- c = new q(A.mw);
- break;
- case "wssl":
- c = new k(A.mw, A.max_n);
- break;
- case "iqr":
- c = new p(A.mx, A.mn, A.bw, A.iv);
- break;
- case "tdigest":
- c = new h(A);
- break;
- case "discrete-ewma":
- c = new g(A.hl);
- break;
- case "tdigest-history":
- c = new f(A);
- break;
- case "iqr-history":
- c = new u(A);
- break;
- case "avtp":
- c = new r();
- break;
- case "entropy":
- c = new m(A);
- }
- c && (c.type = A.type);
- return c;
- };
- d.P = c;
- }, function (d) {
- function b(a) {
- this.EE = a;
- this.Ud = 0;
- this.kF = null;
- }
- b.prototype.add = function (a, b, d) {
- null !== this.kF && b > this.kF && (this.Ud += b - this.kF, this.kF = null);
- this.EE.add(a, b - this.Ud, d - this.Ud, this.Ud);
- };
- b.prototype.stop = function (a) {
- null === this.kF && (this.kF = a);
- };
- b.prototype.xka = function (a, b) {
- return this.EE.xka(a, b);
- };
- b.prototype.get = function () {
- return this.EE.get();
- };
- b.prototype.reset = function () {
- this.EE.reset();
- };
- b.prototype.toString = function () {
- return this.EE.toString();
- };
- d.P = b;
- }, function (d) {
- function b(a, b, d) {
- this.sF = a;
- this.ti = Math.floor((a + b - 1) / b);
- this.Qc = b;
- this.y7a = d;
- this.reset();
- }
- b.prototype.shift = function () {
- this.Yc.shift();
- this.Ug.shift();
- };
- b.prototype.update = function (a, b) {
- this.Yc[a] += b;
- };
- b.prototype.push = function (a) {
- this.Yc.push(0);
- this.Ug.push(a ? a : 0);
- this.Qa += this.Qc;
- };
- b.prototype.add = function (a, b, d, g) {
- var c,
- k;
- if (null === this.Qa) {
- c = Math.max(Math.floor((d - b + this.Qc - 1) / this.Qc), 1);
- for (this.Qa = b; this.Yc.length < c; )
- this.push(g);
- }
- for (; this.Qa < d; )
- if (this.push(g), this.y7a)
- for (; 1 < this.Yc.length && d + g - (this.Qa - this.Qc * this.Yc.length + this.Ug[0]) > this.sF; )
- this.shift();
- else
- this.Yc.length > this.ti && this.shift();
- if (b > this.Qa - this.Qc)
- this.update(this.Yc.length - 1, a);
- else if (b == d)
- g = this.Yc.length - Math.max(Math.ceil((this.Qa - d) / this.Qc), 1), 0 <= g && this.update(g, a);
- else
- for (g = 1; g <= this.Yc.length; ++g) {
- c = this.Qa - g * this.Qc;
- k = c + this.Qc;
- if (!(c > d)) {
- if (k < b)
- break;
- this.update(this.Yc.length - g, Math.round(a * (Math.min(k, d) - Math.max(c, b)) / (d - b)));
- }
- }
- for (; this.Yc.length > this.ti; )
- this.shift();
- };
- b.prototype.reset = function () {
- this.Yc = [];
- this.Ug = [];
- this.Qa = null;
- };
- b.prototype.setInterval = function (a) {
- this.ti = Math.floor((a + this.Qc - 1) / this.Qc);
- };
- d.P = b;
- }, function (d, b, a) {
- var q,
- n,
- k,
- p;
- function c(a, b, c) {
- q.call(this, a, b, c);
- }
- function g(a, b) {
- n.call(this, new c(a, b, !1));
- }
- q = a(828);
- n = a(827);
- k = a(110).dlb;
- p = a(110).xob;
- c.prototype = Object.create(q.prototype);
- c.prototype.Ca = function () {
- return Math.floor(8 * k(this.Yc) / this.Qc);
- };
- c.prototype.Ih = function () {
- return Math.floor(64 * p(this.Yc) / (this.Qc * this.Qc));
- };
- c.prototype.get = function () {
- return {
- Ca: this.Ca(),
- Ih: this.Ih(),
- nRb: this.Yc.length
- };
- };
- c.prototype.toString = function () {
- return "bsw(" + this.sF + "," + this.Qc + "," + this.ti + ")";
- };
- g.prototype = Object.create(n.prototype);
- g.prototype.setInterval = function (a) {
- this.EE.setInterval(a);
- };
- d.P = g;
- }, function (d, b, a) {
- function c(a) {
- this.data = a;
- this.right = this.left = null;
- }
- function g(a) {
- this.Vd = null;
- this.$k = a;
- this.size = 0;
- }
- b = a(397);
- c.prototype.hg = function (a) {
- return a ? this.right : this.left;
- };
- c.prototype.fo = function (a, b) {
- a ? this.right = b : this.left = b;
- };
- g.prototype = new b();
- g.prototype.Sn = function (a) {
- if (null === this.Vd)
- return this.Vd = new c(a), this.size++, !0;
- for (var b = 0, d = null, g = this.Vd; ; ) {
- if (null === g)
- return g = new c(a), d.fo(b, g), ret = !0, this.size++, !0;
- if (0 === this.$k(g.data, a))
- return !1;
- b = 0 > this.$k(g.data, a);
- d = g;
- g = g.hg(b);
- }
- };
- g.prototype.remove = function (a) {
- var b,
- d,
- g,
- l,
- f;
- if (null === this.Vd)
- return !1;
- b = new c(void 0);
- d = b;
- d.right = this.Vd;
- for (var g = null, h = null, f = 1; null !== d.hg(f); ) {
- g = d;
- d = d.hg(f);
- l = this.$k(a, d.data);
- f = 0 < l;
- 0 === l && (h = d);
- }
- return null !== h ? (h.data = d.data, g.fo(g.right === d, d.hg(null === d.left)), this.Vd = b.right, this.size--, !0) : !1;
- };
- d.P = g;
- }, function (d, b, a) {
- function c(a) {
- this.data = a;
- this.right = this.left = null;
- this.red = !0;
- }
- function g(a) {
- this.Vd = null;
- this.$k = a;
- this.size = 0;
- }
- function q(a) {
- return null !== a && a.red;
- }
- function n(a, b) {
- var c;
- c = a.hg(!b);
- a.fo(!b, c.hg(b));
- c.fo(b, a);
- a.red = !0;
- c.red = !1;
- return c;
- }
- function k(a, b) {
- a.fo(!b, n(a.hg(!b), !b));
- return n(a, b);
- }
- b = a(397);
- c.prototype.hg = function (a) {
- return a ? this.right : this.left;
- };
- c.prototype.fo = function (a, b) {
- a ? this.right = b : this.left = b;
- };
- g.prototype = new b();
- g.prototype.Sn = function (a) {
- var b,
- f,
- d,
- g,
- l,
- p,
- m,
- r,
- t;
- b = !1;
- if (null === this.Vd)
- this.Vd = new c(a), b = !0, this.size++;
- else {
- f = new c(void 0);
- d = 0;
- g = 0;
- l = null;
- p = f;
- m = null;
- r = this.Vd;
- for (p.right = this.Vd; ; ) {
- null === r ? (r = new c(a), m.fo(d, r), b = !0, this.size++) : q(r.left) && q(r.right) && (r.red = !0, r.left.red = !1, r.right.red = !1);
- if (q(r) && q(m)) {
- t = p.right === l;
- r === m.hg(g) ? p.fo(t, n(l, !g)) : p.fo(t, k(l, !g));
- }
- t = this.$k(r.data, a);
- if (0 === t)
- break;
- g = d;
- d = 0 > t;
- null !== l && (p = l);
- l = m;
- m = r;
- r = r.hg(d);
- }
- this.Vd = f.right;
- }
- this.Vd.red = !1;
- return b;
- };
- g.prototype.remove = function (a) {
- var b,
- f,
- m,
- d,
- r,
- p,
- t;
- if (null === this.Vd)
- return !1;
- b = new c(void 0);
- f = b;
- f.right = this.Vd;
- for (var d = null, g, l = null, p = 1; null !== f.hg(p); ) {
- m = p;
- g = d;
- d = f;
- f = f.hg(p);
- r = this.$k(a, f.data);
- p = 0 < r;
- 0 === r && (l = f);
- if (!q(f) && !q(f.hg(p)))
- if (q(f.hg(!p)))
- g = n(f, p), d.fo(m, g), d = g;
- else if (!q(f.hg(!p)) && (r = d.hg(!m), null !== r))
- if (q(r.hg(!m)) || q(r.hg(m))) {
- t = g.right === d;
- q(r.hg(m)) ? g.fo(t, k(d, m)) : q(r.hg(!m)) && g.fo(t, n(d, m));
- m = g.hg(t);
- m.red = !0;
- f.red = !0;
- m.left.red = !1;
- m.right.red = !1;
- } else
- d.red = !1, r.red = !0, f.red = !0;
- }
- null !== l && (l.data = f.data, d.fo(d.right === f, f.hg(null === f.left)), this.size--);
- this.Vd = b.right;
- null !== this.Vd && (this.Vd.red = !1);
- return null !== l;
- };
- d.P = g;
- }, function (d, b, a) {
- d.P = {
- a2a: a(831),
- BKb: a(830)
- };
- }, function (d, b, a) {
- var c,
- g,
- q,
- n,
- k,
- p,
- h;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Sra = void 0;
- c = a(0);
- g = a(165);
- q = a(398);
- n = a(17);
- k = a(4);
- d = a(83);
- p = a(388);
- h = a(6);
- a = function (a) {
- function b(b, c, f, d, h, g, k, l, p, n, q) {
- var u;
- u = a.call(this, b) || this;
- u.Zc = b;
- u.G = c;
- u.K = f;
- u.wl = d;
- u.OY = h;
- u.lq = g;
- u.QZ = k;
- u.Rf = l;
- u.aBa = p;
- u.Wf = n;
- u.Tza = [void 0, void 0];
- u.Z$ = [];
- u.aL = null !== q && void 0 !== q ? q : {
- vr: [Object.create(null), Object.create(null)]
- };
- return u;
- }
- c.__extends(b, a);
- Object.defineProperties(b.prototype, {
- vr: {
- get: function () {
- return this.aL.vr;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- Vw: {
- get: function () {
- return this.aL.Vw;
- },
- set: function (a) {
- this.aL.Vw = a;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- FE: {
- get: function () {
- return this.aL.FE;
- },
- set: function (a) {
- this.aL.FE = a;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- b.prototype.yc = function () {
- var a;
- a = this;
- this.vr.forEach(function (b, c) {
- for (var f in b)
- b[f].yc(), a.Tca(c, f);
- });
- };
- b.prototype.Yi = function (a, b) {
- return this.vr[a][b];
- };
- b.prototype.kZ = function () {
- return !(!this.Vw || !this.Vw.length);
- };
- b.prototype.Gba = function () {
- this.Vw = void 0;
- };
- b.prototype.T1 = function (a) {
- this.Vw = a;
- };
- b.prototype.sia = function () {
- var a,
- b;
- if (this.kZ() && !this.FE)
- for (g.Hl.Qn(1); 0 < this.Vw.length; ) {
- a = this.Vw.shift();
- b = this.Zc.cs(1, a);
- if (b && !this.jpb(a) && b.Hj) {
- this.FE = a;
- this.E2(b, {
- offset: 0,
- CI: !0
- });
- break;
- }
- }
- };
- b.prototype.Qna = function (a, b) {
- var c;
- c = this;
- b.forEach(function (b) {
- var f;
- f = c.Yi(a, b.sa);
- f && !b.ae && (f.stream.ae ? b.PW(f.stream) : (f.uP || (f.uP = []), f.uP.push(c.Zc)));
- });
- };
- b.prototype.gI = function (a, b, c) {
- var f,
- d,
- g;
- f = this;
- g = this.Zc;
- n.Pe.forEach(function (d) {
- var k,
- l,
- n,
- q,
- u;
- if (g.jb(d) && (void 0 === c || d === c)) {
- q = a[d];
- h.assert(q && g.getTrackById(q.eb) === q);
- q = q.Nc;
- if (g.tq)
- f.G.warn("requestHeadersFromManifest, shutdown detected");
- else if (g.sm.mR(g.oa, q)) {
- u = null !== (n = null === (l = null === (k = f.lq(d)) || void 0 === k ? void 0 : k.YB) || void 0 === l ? void 0 : l.O) && void 0 !== n ? n : 0;
- k = p.eea(q, u);
- void 0 === k && f.G.warn("Unable to find stream for bitrate " + u);
- k = q[k];
- (l = g.Yi(d, k.sa)) && l.stream.$ ? g.zHb(d, l) : (d = {
- offset: 0,
- CI: !1,
- Ox: 1 === d,
- Vr: !0,
- AH: !f.QZ(g)
- }, g.IEa(k, d, b));
- } else
- f.G.warn("requestHeadersFromManifest, unable to update urls");
- }
- });
- g.qZ = !0;
- null === (d = this.Wf) || void 0 === d ? void 0 : d.call(this, g.Ya).uW();
- };
- b.prototype.oD = function (a) {
- var b,
- c,
- f,
- d;
- b = this.K;
- c = this.Yi(a.M, a.sa);
- if (c)
- return c.stream.$ || c.CI && this.XDa(c), !1;
- c = this.H5a;
- f = this.I5a;
- if (void 0 !== b.eja && void 0 !== c && void 0 !== f) {
- d = k.time.ea();
- if (d - c < b.eja || d - f < b.eja)
- return !1;
- }
- a = this.E2(a, {
- url: a.url,
- offset: 0
- });
- this.I5a = k.time.ea();
- return a;
- };
- b.prototype.E2 = function (a, b, f, d) {
- var h,
- k,
- l,
- p;
- l = a.M;
- g.Hl.Qn(l);
- p = a.sa;
- if (this.f4a(p, !!b.Vr))
- return null === (h = this.aBa) || void 0 === h ? void 0 : h.call(this), !1;
- if (h = this.Yi(l, p))
- a = !1;
- else {
- h = c.__assign(c.__assign({}, b), {
- ba: this.O4a(a)
- });
- f = this.OY(l, !!h.Vr, !!h.Ox, !!h.AH, !!f);
- a.url && (this.lq(l).Pha = a.url);
- h = a = this.j9(a, f, h);
- if (!a.zs())
- return this.Zc.Ig("MediaRequest open failed (2)", "NFErr_MC_StreamingFailure"), !1;
- a = !0;
- }
- b.Vr && d && (this.Zc.jg[l] = h);
- null === (k = this.aBa) || void 0 === k ? void 0 : k.call(this);
- return a;
- };
- b.prototype.Cp = function () {
- var a,
- b;
- a = this;
- b = [];
- this.vr.forEach(function (c, f) {
- var h;
- g.Hl.Qn(f);
- for (var d in c) {
- f = c[d];
- h = f.N2();
- 1 === h ? b.push(f) : 2 === h && a.Zc.Ig("swapUrl failure");
- }
- });
- return b;
- };
- b.prototype.bj = function (a) {
- var b,
- c;
- b = a.M;
- c = g.Hl.Qn(b);
- this.Zc.tq ? c.warn("header onrequestcomplete ignored, session shutdown:", a.toString()) : (this.wl({
- type: "logdata",
- target: "startplay",
- Cd: {
- usedNativeDataView: a.wIb
- }
- }), a.A0 > a.dxb && (this.Tza[b] = a.A0), a.CI && this.XDa(a), this.o5a(a), this.H5a = k.time.ea(), this.Zc.hy.emit("onHeaderRequestComplete", a));
- this.hq(a);
- };
- b.prototype.WV = function (a, b, c) {
- var f;
- f = a.M;
- g.Hl.Qn(f);
- f = this.Zc.cs(f, a.sa);
- if (b !== !!a.Cj)
- return !1;
- this.KBa(a);
- a.X9a(f);
- this.Gya(a);
- this.Zc.hy.emit("onHeaderFromCache", {
- Wo: a,
- ekb: c
- });
- return !0;
- };
- b.prototype.caa = function (a, b) {
- var c,
- f,
- d,
- h;
- c = [];
- f = this.vr[a];
- for (d in f) {
- h = f[d];
- h && !h.stream.$ && h.Mk === b && (this.Tca(a, d), c.push({
- stream: h.stream,
- offset: h.offset,
- ba: h.ba,
- Ox: h.Ox,
- Vr: h.Vr,
- AH: h.AH,
- Zja: h.Zja
- }));
- }
- return c;
- };
- b.prototype.Ala = function (a) {
- var b;
- b = this;
- a.forEach(function (a) {
- b.E2(a.stream, a);
- });
- };
- b.prototype.KBa = function (a) {
- this.vr[a.M][a.sa] = a;
- };
- b.prototype.jpb = function (a) {
- return !!this.Yi(1, a);
- };
- b.prototype.o5a = function (a) {
- var b,
- c,
- f,
- d,
- k;
- b = this.K;
- c = g.Hl.Qn(a.M);
- f = a.stream.$;
- if (b.Fca) {
- d = f.length;
- c.trace("fragment count:", d);
- for (var h = 0; h < d; ++h) {
- k = f.get(h);
- c.trace("fragment: " + h + ", startPts: " + k.T + ", duration: " + k.duration + ", offset: " + k.offset);
- }
- }
- this.Gya(a);
- if (b.OH && b.OH.enabled && void 0 === f.mz && b.OH.simulatedFallback) {
- d = f.length;
- b = [];
- for (h = 0; h < d; ++h)
- b[h] = Math.max(0, a.stream.wc + this.w7a(h));
- f.fEb(b);
- }
- };
- b.prototype.Gya = function (a) {
- var b,
- c;
- b = a.M;
- c = a.sa;
- g.Hl.Qn(b);
- a.uP && (a.uP.forEach(function (f) {
- (f = f.cs(b, c)) && f !== a.stream && !f.ae && f.PW(a.stream);
- }), a.uP = void 0);
- this.Zc.Qob(a);
- };
- b.prototype.j9 = function (a, b, c) {
- var f,
- d;
- f = this;
- d = g.Hl.Qn(a.M);
- a = new q.q3(a, this.K, b, c, this, !1, d);
- a.addListener("headerRequestCancelled", function (a) {
- f.n5a(a.request);
- });
- a.Db(void 0);
- this.KBa(a);
- return a;
- };
- b.prototype.f4a = function (a, b) {
- return this.Rf && (a = this.Rf.BO(this.Zc.u, a)) && this.WV(a, !1, b) ? !0 : !1;
- };
- b.prototype.O4a = function (a) {
- var b,
- c,
- f;
- b = a.Ms;
- c = a.R;
- f = this.K;
- return c.ye.Ef ? f.PX ? f.PX : f.pZ : f.WUa && b ? b.offset + b.size : (a = this.Tza[a.M]) ? a + 128 : 2292 + 12 * Math.ceil(c.duration / 2E3);
- };
- b.prototype.n5a = function (a) {
- this.Tca(a.M, a.sa);
- };
- b.prototype.Tca = function (a, b) {
- delete this.vr[a][b];
- };
- b.prototype.XDa = function (a) {
- this.FE === a.sa && (this.FE = void 0);
- };
- b.prototype.w7a = function (a) {
- var b;
- b = this.K.OH.fallbackBound;
- void 0 === this.Z$[a] && (this.Z$[a] = Math.floor(2 * Math.random() * b) - b);
- return this.Z$[a];
- };
- return b;
- }
- (d.Xq);
- b.Sra = a;
- }, function (d, b, a) {
- var c,
- g,
- q;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Loa = void 0;
- c = a(0);
- g = a(22);
- q = a(4).kr;
- d = function (a) {
- function b(b) {
- var c;
- c = a.call(this) || this;
- c.KAa = b;
- c.OU = b.groupId;
- c.Sf = new g.Ll();
- c.Sf.on(c, q.Sd.bK, c.qL);
- c.Sf.on(c, q.Sd.Sz, c.$E);
- return c;
- }
- c.__extends(b, a);
- b.prototype.cxb = function (a, b, c) {
- q.prototype.open.call(this, a, b, c);
- };
- b.prototype.KDb = function (a) {
- this.OU = a;
- };
- Object.defineProperties(b.prototype, {
- groupId: {
- get: function () {
- return this.OU;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- b.prototype.yc = function () {
- this.Sf && this.Sf.clear();
- q.prototype.yc.call(this);
- };
- b.prototype.qL = function (a) {
- this.KAa.tzb(a.probed, a.affected);
- this.yc();
- };
- b.prototype.$E = function (a) {
- this.KAa.qzb(a.probed, a.affected);
- this.yc();
- };
- return b;
- }
- (q);
- b.Loa = d;
- }, function (d, b, a) {
- var g,
- q,
- n;
- function c(a, b) {
- this.lL = a;
- this.sA = 0 === Math.floor(1E6 * Math.random()) % b.FC;
- this.groupId = 1;
- this.config = b;
- this.Ku = {};
- this.Oy = {};
- }
- g = a(7);
- q = a(4);
- new q.Console("ASEJS_PROBE_MANAGER", "asejs");
- n = a(834).Loa;
- c.prototype.constructor = c;
- c.prototype.szb = function (a, b) {
- var c,
- f,
- d,
- k,
- l,
- p,
- n,
- m,
- r,
- t,
- R;
- c = this.lL;
- f = a.Lb;
- d = c.bTa(a.url);
- k = c.u_(a.url);
- l = this.config;
- p = q.time.ea();
- m = b;
- r = [];
- t = d.um[0];
- R = !1;
- n = this.Ku[f];
- if (!n)
- n = this.Ku[f] = {
- count: 0,
- dh: p,
- Qv: !1,
- error: b,
- kma: [],
- Gka: {}
- };
- else if (n.dh >= p - l.u2)
- return;
- n.Qv || (t && k.id === t.id && (a.isPrimary = !0), n.dh = p, n.Qv = !1, n.error = b, ++n.count, d && d.se && 0 !== d.se.length && (g.forEach(d.se, function (b) {
- var c,
- d,
- h;
- c = b.uc.id;
- d = c + "-" + f;
- h = this.Oy[d];
- if (void 0 === h || void 0 === h.V0)
- h && h.Qm && clearTimeout(h.Qm), b = this.KEa(b.url, a, c), this.Oy[d] = {
- V: !1,
- count: 0,
- V0: b.Fj()
- },
- r.push(b.Fj()),
- R = !0;
- -1 === n.kma.indexOf(c) && n.kma.push(c);
- }, this), this.sA && 0 < r.length && (d = {
- type: "logdata",
- target: "endplay",
- fields: {}
- }, b = m, m = {
- ts: q.time.ea(),
- es: b.aCa,
- fc: b.zh,
- fn: b.GGa,
- nc: b.aj,
- pb: r,
- gid: this.groupId
- }, b.ZN && (m.hc = b.ZN), d.fields.errpb = {
- type: "array",
- value: m,
- adjust: ["ts"]
- }, c.wl(d)), R && this.groupId++));
- };
- c.prototype.KEa = function (a, b, c) {
- var f,
- d,
- h;
- f = this.lL.u_(b.url);
- f && f.mb && f.mb.rq && f.mb.rq.Ca || Math.random(0, 1);
- f = new n(this);
- d = a.split("?");
- h = "random=" + parseInt(1E7 * Math.random(), 10);
- f.cxb(1 < d.length ? a + "&" + h : a + "?" + h, b, c);
- return f;
- };
- c.prototype.tzb = function (a, b) {
- var c,
- f,
- d,
- g,
- k,
- l,
- p,
- n;
- c = this.lL;
- f = this.config;
- d = b.Lb;
- g = this.Ku[d];
- l = a.url;
- p = this.Oy[a.Lb + "-" + d];
- if (g && (k = g.error, p)) {
- p && p.Qm && clearTimeout(p.Qm);
- p.V = !0;
- p.count = 0;
- p.V0 = void 0;
- g.Gka[a.Lb] = !0;
- (p = this.Ku[a.Lb]) && !0 === p.Qv && f.du && (c.$Qa(a.Lb, p.error.hR[1]), this.sA && (p = {
- type: "logdata",
- target: "endplay",
- fields: {}
- }, p.fields.errst = {
- type: "array",
- value: {
- ts: q.time.ea(),
- id: a.requestId,
- servid: b.Lb,
- gid: a.groupId ? a.groupId : -1
- },
- adjust: ["ts"]
- }, c.wl(p)), this.Ku[a.Lb] = void 0);
- if (l !== b.url) {
- n = this.Oy[d + "-" + d];
- n && n.V || (d = (d = c.u_(l)) && d.mb && d.mb.rq && d.mb.rq.Ca || Math.random(0, 1) * f.D_, d = Math.min(d, f.D_), setTimeout(function () {
- var f;
- if (!(!1 !== g.Qv || n && n.V) && (g.Qv = !0, c.pp(k.hR[0], k.hR[1], b.url, k), this.sA)) {
- f = {
- type: "logdata",
- target: "endplay",
- fields: {}
- };
- f.fields.erep = {
- type: "array",
- value: {
- ts: q.time.ea(),
- id: a.requestId,
- servid: b.Lb,
- gid: a.groupId ? a.groupId : -1
- },
- adjust: ["ts"]
- };
- c.wl(f);
- }
- }
- .bind(this), d));
- }
- this.sA && (p = {
- type: "logdata",
- target: "endplay",
- fields: {}
- }, p.fields.pbres = {
- type: "array",
- value: {
- ts: q.time.ea(),
- id: a.requestId,
- result: 1,
- servid: a.Lb,
- gid: a.groupId ? a.groupId : -1
- },
- adjust: ["ts"]
- }, c.wl(p));
- }
- };
- c.prototype.qzb = function (a, b) {
- var c,
- f,
- d,
- k,
- l,
- p,
- n,
- m,
- r,
- t;
- c = this.lL;
- f = parseInt(b.Lb, 10);
- d = this.Ku[f];
- k = parseInt(a.Lb, 10);
- l = this.Oy[k + "-" + f];
- p = 0;
- r = this.config;
- if (l && d) {
- l.V = !1;
- l.V0 = void 0;
- d.Gka[k] = !1;
- m = d.kma;
- if (r.du && k === f && b.isPrimary) {
- t = c.u_(b.url);
- t = t && t.mb && t.mb.rq && t.mb.rq.Ca || 300 * Math.random(0, 1);
- t = t * Math.pow(2, l.count);
- t = Math.min(t, 12E4);
- t = t + Math.random(0, 1) * (1E4 > t ? 100 : 1E4);
- l.Qm = setTimeout(function () {
- var c;
- l.Qm = void 0;
- c = this.KEa(a.url, b, k);
- c.KDb(a.groupId);
- l.V0 = c.Fj();
- }
- .bind(this), t);
- }
- ++l.count;
- k === f && (p = 0, m.forEach(function (a) {
- !1 === d.Gka[a] && p++;
- }), m.length === p && d.count >= r.H_ && (n = d.error, d.Qv = !0, g.forEach(c.bTa(b.url).se, function (a) {
- var b;
- c.pp(n.hR[0], n.hR[1], a.url, n);
- if (this.sA) {
- b = {
- type: "logdata",
- target: "endplay",
- fields: {}
- };
- b.fields.erep = {
- type: "array",
- value: {
- ts: q.time.ea(),
- id: -1,
- servid: a.uc.id
- },
- adjust: ["ts"]
- };
- c.wl(b);
- }
- }, this)));
- this.sA && (f = {
- type: "logdata",
- target: "endplay",
- fields: {}
- }, f.fields.pbres = {
- type: "array",
- value: {
- ts: q.time.ea(),
- id: a.requestId,
- result: 0,
- servid: a.Lb,
- gid: a.groupId ? a.groupId : -1
- },
- adjust: ["ts"]
- }, c.wl(f));
- }
- };
- c.prototype.I2 = function (a) {
- var b,
- c,
- f;
- b = a.url || a.mediaRequest.url;
- if (b) {
- a = this.lL;
- b = a.ORa(b);
- c = this.Ku[b];
- f = this.Oy[b + "-" + b];
- c && c.Qv && this.config.du && (a.$Qa(c.error.aCa, !1), this.sA && (c = {
- type: "logdata",
- target: "endplay",
- fields: {}
- }, c.fields.errst = {
- type: "array",
- value: {
- ts: q.time.ea(),
- id: -1,
- servid: b
- },
- adjust: ["ts"]
- }, a.wl(c)), this.Ku[b] = void 0, f && f.Qm && clearTimeout(f.Qm));
- }
- };
- c.prototype.reset = function () {
- var a,
- b,
- c;
- a = this.Oy;
- for (c in a)
- a.hasOwnProperty(c) && (b = a[c + "-" + c]) && b.Qm && clearTimeout(b.Qm);
- this.Oy = {};
- this.Ku = {};
- };
- d.P = c;
- }, function (d, b, a) {
- var c,
- g,
- q,
- n,
- k,
- p,
- h,
- f,
- u,
- m,
- r,
- t,
- H,
- D;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.jra = void 0;
- c = a(7);
- g = a(18);
- q = a(4);
- n = new q.Console("ASEJS_ERROR_DIRECTOR", "asejs");
- k = a(835);
- p = q.ak;
- h = p.JD;
- f = {};
- u = {};
- d = [g.vg.tt, !1];
- a = [g.vg.tt, !0];
- m = [g.vg.Zz, !1];
- r = [g.vg.Zz, !0];
- t = [g.vg.URL, !0];
- H = [-1, !1];
- D = [g.vg.Zz, !1];
- f[h.VJb] = m;
- f[h.UNKNOWN_ERROR] = m;
- f[h.FNb] = m;
- f[h.jYa] = m;
- f[h.fqa] = m;
- f[h.vYa] = m;
- f[h.nYa] = r;
- f[h.oXa] = r;
- f[h.rpa] = D;
- f[h.J3] = D;
- f[h.pXa] = H;
- f[h.qXa] = D;
- f[h.rXa] = D;
- f[h.lXa] = m;
- f[h.nXa] = m;
- f[h.qpa] = d;
- f[h.mXa] = m;
- f[h.kXa] = D;
- f[h.QKb] = r;
- f[h.FZa] = D;
- f[h.Ora] = D;
- f[h.Nra] = D;
- f[h.g5] = D;
- f[h.Lra] = D;
- f[h.EZa] = t;
- f[h.i5] = r;
- f[h.k5] = t;
- f[h.j5] = a;
- f[h.Qra] = r;
- f[h.HZa] = t;
- f[h.MS] = D;
- f[h.Pra] = r;
- f[h.GZa] = r;
- f[h.qYa] = r;
- f[h.kYa] = m;
- f[h.w2a] = m;
- f[h.aYa] = m;
- f[h.bYa] = m;
- f[h.cYa] = m;
- f[h.dYa] = m;
- f[h.eYa] = m;
- f[h.fYa] = m;
- f[h.gYa] = m;
- f[h.hYa] = m;
- f[h.iYa] = m;
- f[h.lYa] = m;
- f[h.mYa] = m;
- f[h.oYa] = m;
- f[h.pYa] = m;
- f[h.rYa] = m;
- f[h.sYa] = m;
- f[h.tYa] = m;
- f[h.uYa] = m;
- f[h.wYa] = m;
- f[h.xYa] = m;
- f[h.v2a] = D;
- f[h.TIMEOUT] = d;
- u[h.rpa] = !0;
- u[h.Ora] = !0;
- u[h.Nra] = !0;
- u[h.Lra] = !0;
- u[h.fqa] = !0;
- d = function () {
- var F59;
- F59 = 2;
- function a(a, b, c, d) {
- var G59,
- R9B,
- H9B;
- G59 = 2;
- while (G59 !== 12) {
- R9B = "netw";
- R9B += "ork";
- R9B += "Fa";
- R9B += "iled";
- H9B = "1SIYb";
- H9B += "Zr";
- H9B += "NJCp";
- H9B += "9";
- switch (G59) {
- case 7:
- this.dH = q.time.ea();
- this.TW = 0;
- this.lna = {};
- this.Eka = new k(a, b);
- G59 = 12;
- break;
- case 5:
- this.apb = c;
- this.ds = d;
- H9B;
- f[h.g5] = b.Jpb ? r : D;
- this.sm.on(R9B, this.Uob.bind(this));
- G59 = 7;
- break;
- case 2:
- this.sm = a;
- this.config = b;
- G59 = 5;
- break;
- }
- }
- }
- while (F59 !== 13) {
- switch (F59) {
- case 4:
- a.prototype.Uob = function (a) {
- var D59,
- b,
- c,
- f,
- d,
- h,
- g,
- k,
- A9B,
- a9B,
- d9B,
- k9B,
- V9B;
- D59 = 2;
- while (D59 !== 6) {
- A9B = "temp";
- A9B += "ora";
- A9B += "r";
- A9B += "il";
- A9B += "y";
- a9B = "pe";
- a9B += "rman";
- a9B += "ently";
- d9B = "Network h";
- d9B += "as";
- d9B += " ";
- d9B += "failed";
- d9B += " ";
- k9B = " last ";
- k9B += "success ";
- k9B += "was ";
- V9B = " ms";
- V9B += " ";
- V9B += "ag";
- V9B += "o";
- switch (D59) {
- case 2:
- b = this;
- c = q.time.ea() - this.dH;
- f = a;
- k = this.config;
- v3YY.i9B(0);
- n.warn(v3YY.w9B(V9B, k9B, c, d9B, a ? a9B : A9B));
- D59 = 8;
- break;
- case 8:
- !a && c > k.oja && (f = !0);
- f ? (this.hI && (clearTimeout(this.hI), this.hI = void 0), this.YDa(), this.Eka.reset(), this.k_ && (d = this.k_.zh, h = this.k_.ZN, g = this.k_.aj), this.apb({
- grb: a,
- exb: d,
- fxb: h,
- gxb: g
- })) : this.hI || (this.hI = setTimeout(function () {
- var P59;
- P59 = 2;
- while (P59 !== 5) {
- switch (P59) {
- case 2:
- b.hI = void 0;
- b.$P();
- P59 = 5;
- break;
- }
- }
- }, k.pja));
- D59 = 6;
- break;
- }
- }
- };
- a.prototype.$P = function (a) {
- var N59;
- N59 = 2;
- while (N59 !== 1) {
- switch (N59) {
- case 2:
- this.hI || (this.sm.$P(!!a), this.lna = {}, this.ds());
- N59 = 1;
- break;
- }
- }
- };
- a.prototype.I2 = function (a) {
- var U59,
- b;
- U59 = 2;
- while (U59 !== 9) {
- switch (U59) {
- case 2:
- b = this.config;
- this.dH = Math.max(a.timestamp || q.time.ea(), this.dH);
- this.YDa();
- b.Fq && this.Eka.I2(a);
- U59 = 9;
- break;
- }
- }
- };
- a.prototype.kP = function () {
- var X59;
- X59 = 2;
- while (X59 !== 1) {
- switch (X59) {
- case 2:
- this.TW = 0;
- X59 = 1;
- break;
- case 4:
- this.TW = 4;
- X59 = 8;
- break;
- X59 = 1;
- break;
- }
- }
- };
- a.prototype.Ek = function () {
- var O59,
- a,
- b,
- c,
- c9B,
- u9B;
- O59 = 2;
- while (O59 !== 8) {
- c9B = "m";
- c9B += "s";
- u9B = "Setti";
- u9B += "ng underflo";
- u9B += "w time";
- u9B += "o";
- u9B += "ut in ";
- switch (O59) {
- case 4:
- c = b.Dia;
- this.dH = Math.max(q.time.ea(), this.dH);
- b.iIb && !this.jR && (n.info(u9B + c + c9B), this.jR = setTimeout(function () {
- var d59,
- x9B,
- U9B;
- d59 = 2;
- while (d59 !== 4) {
- x9B = "ms, since underflo";
- x9B += "w wit";
- x9B += "h no s";
- x9B += "uccess";
- U9B = "Forcing p";
- U9B += "ermanent network failure afte";
- U9B += "r ";
- switch (d59) {
- case 2:
- v3YY.y9B(1);
- n.info(v3YY.I9B(U9B, x9B, c));
- a.jR = void 0;
- a.sm.pp(g.vg.tt, !0);
- d59 = 4;
- break;
- }
- }
- }, c));
- O59 = 8;
- break;
- case 2:
- a = this;
- b = this.config;
- O59 = 4;
- break;
- }
- }
- };
- a.prototype.YDa = function () {
- var I59,
- Z9B;
- I59 = 2;
- while (I59 !== 1) {
- Z9B = "Cleared u";
- Z9B += "nd";
- Z9B += "e";
- Z9B += "rflow timeout";
- switch (I59) {
- case 2:
- this.jR && (clearTimeout(this.jR), this.jR = void 0, n.info(Z9B));
- I59 = 1;
- break;
- }
- }
- };
- F59 = 14;
- break;
- case 14:
- return a;
- break;
- case 2:
- a.prototype.ZDb = function (a) {
- var n59;
- n59 = 2;
- while (n59 !== 1) {
- switch (n59) {
- case 2:
- this.Z1 = a;
- n59 = 1;
- break;
- case 4:
- this.Z1 = a;
- n59 = 9;
- break;
- n59 = 1;
- break;
- }
- }
- };
- a.prototype.pp = function (a, b, d, h) {
- var k59,
- k,
- l,
- q,
- r,
- t,
- A,
- G,
- C,
- K,
- T9B,
- l9B,
- J9B,
- q9B,
- N9B;
- k59 = 2;
- while (k59 !== 23) {
- T9B = "Unmapp";
- T9B += "ed fai";
- T9B += "lure code";
- T9B += " in JSASE";
- T9B += " error director : ";
- l9B = " : critica";
- l9B += "l";
- l9B += " err";
- l9B += "or count = ";
- J9B = " ";
- J9B += "o";
- J9B += "n";
- J9B += " ";
- q9B = "F";
- q9B += "ail";
- q9B += "ure ";
- N9B = "Invalid affected for ne";
- N9B += "twork fail";
- N9B += "ure";
- switch (k59) {
- case 27:
- l = t.rDb(a.host, a.port);
- k59 = 18;
- break;
- case 2:
- k = this;
- l = p.JD.name;
- k59 = 4;
- break;
- case 6:
- k59 = d && c.isArray(f[d]) ? 14 : 24;
- break;
- case 19:
- G && (l[G] = [a.url]);
- k59 = 18;
- break;
- case 26:
- n.error(N9B);
- return;
- break;
- case 11:
- k59 = A !== H ? 10 : 23;
- break;
- case 4:
- q = d ? l[d] : void 0;
- l = {};
- r = this.config;
- t = this.sm;
- n.warn(q9B + q + J9B + JSON.stringify(a) + l9B + this.TW);
- k59 = 6;
- break;
- case 24:
- v3YY.y9B(2);
- n.error(v3YY.w9B(T9B, d));
- k59 = 23;
- break;
- case 15:
- k59 = void 0 !== a.host && void 0 !== a.port ? 27 : 26;
- break;
- case 18:
- C = A[0];
- K = A[1];
- r.Fq ? c.forEach(l, function (c, f) {
- var q59,
- j9B;
- q59 = 2;
- while (q59 !== 5) {
- j9B = "e";
- j9B += "r";
- j9B += "r";
- j9B += "or";
- switch (q59) {
- case 1:
- !k.Z1 || 0 !== b && void 0 !== b || (c = void 0 !== a.url ? a.url : c[0]) && k.Z1.ama(j9B, c);
- q59 = 5;
- break;
- case 2:
- A === D || A === m ? k.Eka.szb({
- url: void 0 !== a.url ? a.url : c[0],
- Lb: f
- }, {
- aCa: f,
- hR: A,
- ZN: b,
- zh: d,
- GGa: q,
- aj: h
- }) : c.some(function (a) {
- var a59;
- a59 = 2;
- while (a59 !== 5) {
- switch (a59) {
- case 2:
- t.pp(C, K, a);
- return C === g.vg.Zz;
- break;
- }
- }
- });
- q59 = 1;
- break;
- }
- }
- }) : c.forEach(l, function (c, f) {
- var M59,
- z9B;
- M59 = 2;
- while (M59 !== 5) {
- z9B = "e";
- z9B += "rr";
- z9B += "o";
- z9B += "r";
- switch (M59) {
- case 1:
- c.some(function (a) {
- var L59;
- L59 = 2;
- while (L59 !== 5) {
- switch (L59) {
- case 2:
- t.pp(C, K, a);
- return C === g.vg.Zz;
- break;
- }
- }
- }),
- !k.Z1 || 0 !== b && void 0 !== b || (c = void 0 !== a.url ? a.url : c[0]) && k.Z1.ama(z9B, c);
- M59 = 5;
- break;
- case 2:
- M59 = A !== D || k.yBb(f) ? 1 : 5;
- break;
- }
- }
- });
- k59 = 23;
- break;
- case 10:
- k59 = void 0 !== a.url ? 20 : 15;
- break;
- case 14:
- A = f[d];
- this.k_ = {
- ZN: b,
- zh: d,
- GGa: q,
- aj: h
- };
- u[d] && ++this.TW;
- k59 = 11;
- break;
- case 20:
- G = t.ORa(a.url);
- k59 = 19;
- break;
- }
- }
- };
- a.prototype.yBb = function (a) {
- var J59,
- b,
- c,
- f;
- J59 = 2;
- while (J59 !== 13) {
- switch (J59) {
- case 6:
- return f.Qv = !0;
- break;
- case 2:
- b = q.time.ea();
- c = this.config;
- f = this.lna[a];
- J59 = 3;
- break;
- case 3:
- J59 = f ? 9 : 14;
- break;
- case 9:
- J59 = f.dh < this.dH ? 8 : 7;
- break;
- case 7:
- J59 = !(f.dh >= b - c.u2 || f.Qv || (f.dh = b, ++f.count, f.count < c.H_)) ? 6 : 13;
- break;
- case 14:
- this.lna[a] = {
- dh: b,
- count: 1
- };
- J59 = 13;
- break;
- case 8:
- f.dh = b,
- f.count = 1;
- J59 = 13;
- break;
- }
- }
- };
- F59 = 4;
- break;
- }
- }
- }
- ();
- b.jra = d;
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- d = b.hr || (b.hr = {});
- d[d.AUDIO = 0] = "AUDIO";
- d[d.VIDEO = 1] = "VIDEO";
- }, function (d, b, a) {
- var q,
- n,
- k,
- p;
- function c(a, b, c, d) {
- n.call(this, a, b, c, d);
- }
- function g(a, b, c) {
- n.call(this, a, b, c, void 0);
- }
- q = a(82);
- n = a(400).XJ;
- k = a(404);
- p = a(75).aza;
- c.prototype = Object.create(n.prototype);
- g.prototype = Object.create(c.prototype);
- g.prototype.g5a = function (a, b) {
- return "string" === typeof b ? k[b] : b ? k.reset[a] || k.TEb[a] : k.TEb[a];
- };
- g.prototype.FQa = function (a, b, c, d) {
- return this.Sa(a, b, !1, c, d);
- };
- g.prototype.KQa = function (a, b, c, d) {
- return this.Sa(a, b, !0, c, d);
- };
- g.prototype.Sa = function (a, b, c, d, g) {
- var h,
- k,
- l,
- p,
- n,
- u,
- m,
- r,
- t,
- A,
- G,
- x,
- B,
- L;
- function f(a) {
- k = h[a];
- l = k.Rq("traf");
- if (void 0 === l || void 0 === l.ku)
- return !1;
- p = l.Rq("tfdt");
- if (void 0 === p)
- return !1;
- n = l.Rq("trun");
- return void 0 === n ? !1 : !0;
- }
- if (!this.parse())
- return !1;
- h = this.Rc.moof;
- if (!h || 0 === h.length)
- return !1;
- if (void 0 !== a)
- for (u = a, a = 0; a < h.length; ++a) {
- if (!f(a))
- return !1;
- if (n.oe > u || c && n.oe === u)
- break;
- u -= n.oe;
- }
- else if (a = c ? h.length - 1 : 0, !f(a))
- return !1;
- if (c && a < h.length - 1) {
- m = h[a + 1];
- this.og.Nk(this.WRb - m.startOffset, m.startOffset);
- } else !c && 0 < a && this.og.Nk(k.startOffset, 0);
- m = l.Rq("tfhd");
- if (void 0 === m)
- return !1;
- p = l.Rq("tfdt");
- r = n.oe;
- t = l.Rq("saiz");
- A = l.Rq("saio");
- G = l.Rq(q.Jua);
- x = l.Rq("sbgp");
- if (!(!t && !A || t && A))
- return !1;
- B = l.Rq("sdtp");
- if (this.Rc.mdat && a < this.Rc.mdat.length)
- L = this.Rc.mdat[a];
- else if (a !== h.length - 1)
- return !1;
- void 0 === u && (u = c ? n.oe : 0);
- if (n.Sa(l, m, L || this.og, b, u, l.ku, c))
- n.zX && (!c && p && p.Sa(n.MEb), t && A && (t.Sa(n.AI, c), A.Sa(G ? 0 : t.Gla, l.ku, c)), G && G.Sa(n.AI, c), B && B.Sa(n.AI, r, c), x && x.Sa(n.AI, c));
- else if (!c) {
- if (a === h.length - 1)
- return !1;
- this.og.Nk(h[a + 1].startOffset - k.startOffset, k.startOffset);
- } else if (0 === n.AI)
- return !1;
- d && (b = this.g5a(this.stream.profile, g)) && n.wBb(l, m, L, c, d, b);
- c = this.og.Sa();
- d = c.reduce(function (a, b) {
- return a + b.byteLength;
- }, 0);
- c = {
- Cg: c,
- length: d,
- uC: this.og.view.byteLength
- };
- n.zX && !L && (c.dI = l.ku + n.dI, c.Pv = n.Pv);
- return c;
- };
- d.P = {
- zw: g,
- GO: function (a) {
- var b,
- c;
- b = new ArrayBuffer(8);
- c = new DataView(b);
- c.setUint32(0, a + 8);
- c.setUint32(4, p("mdat"));
- return b;
- }
- };
- }, function (d, b, a) {
- var c,
- g;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- c = a(127);
- a(127);
- g = a(75);
- d = function () {
- function a(a, b, c) {
- this.view = a;
- this.console = b;
- this.config = c;
- this.view = a;
- this.console = b;
- this.oC = this.lM = this.offset = 0;
- }
- a.prototype.Mlb = function (a) {
- return new DataView(this.view.buffer, this.view.byteOffset + this.offset, a);
- };
- a.prototype.Yf = function (a) {
- for (; this.oC < a; )
- this.lM = (this.lM << 8) + this.ud(), this.oC += 8;
- this.oC -= a;
- return this.lM >>> this.oC & (1 << a) - 1;
- };
- a.prototype.ud = function () {
- var a;
- a = this.view.getUint8(this.offset);
- this.offset += 1;
- return a;
- };
- a.prototype.kh = function (a) {
- a = this.view.getUint16(this.offset, a);
- this.offset += 2;
- return a;
- };
- a.prototype.Fb = function (a) {
- a = this.view.getUint32(this.offset, a);
- this.offset += 4;
- return a;
- };
- a.prototype.Wka = function () {
- var a;
- a = this.view.getInt32(this.offset, void 0);
- this.offset += 4;
- return a;
- };
- a.prototype.Pxb = function (a, b) {
- var c;
- c = this.view.getUint32(this.offset + (a ? 4 : 0), a);
- a = this.view.getUint32(this.offset + (a ? 0 : 4), a);
- b || 0 === (c & 4278190080) || this.console.warn("Warning: read unsigned value > 56 bits");
- return 4294967296 * c + a;
- };
- a.prototype.fj = function (a, b) {
- a = this.Pxb(a, b);
- this.offset += 8;
- return a;
- };
- a.prototype.Qxb = function () {
- var a,
- b;
- a = this.view.getInt32(this.offset + 0, void 0);
- b = this.view.getUint32(this.offset + 4, void 0);
- 0 === ((0 < a ? a : -a) & 4278190080) || this.console.warn("Warning: read signed value > 56 bits");
- return 4294967296 * a + b;
- };
- a.prototype.lAb = function () {
- var a;
- a = this.Qxb();
- this.offset += 8;
- return a;
- };
- a.prototype.Py = function () {
- return g.kA(this.Fb());
- };
- a.prototype.e1 = function () {
- var b,
- c,
- d,
- f,
- g,
- l;
- function a(a, b) {
- return ("000000" + a.toString(16)).slice(2 * -b);
- }
- b = this.Fb(!0);
- c = this.kh(!0);
- d = this.kh(!0);
- f = this.kh();
- g = this.kh();
- l = this.Fb();
- return [a(b, 4), a(c, 2), a(d, 2), a(f, 2), a(g, 2) + a(l, 4)].join("-");
- };
- a.prototype.fAb = function () {
- var a;
- a = this.view.byteOffset + this.offset;
- return this.view.buffer.slice(a, a + 16);
- };
- a.prototype.eAb = function (a) {
- var b;
- b = [];
- if (0 === a)
- return "";
- a = a || Number.MAX_SAFE_INTEGER;
- for (var c = this.ud(); 0 !== c && 0 <= --a; )
- b.push(c), c = this.ud();
- return String.fromCharCode.apply(null, b);
- };
- a.prototype.b1 = function (a) {
- var b,
- d;
- void 0 === b && (b = 1);
- void 0 === d && (d = !0);
- return this.Qd(this.config.YI && c.tob || c.MG, 1, a, b, d);
- };
- a.prototype.dAb = function (a) {
- var b,
- d,
- h;
- d = 10;
- h = !1;
- void 0 === d && (d = 2);
- void 0 === h && (h = !0);
- void 0 === b && (b = !1);
- return this.Qd(this.config.YI && c.rob || c.VY, 2, a, d, h, b);
- };
- a.prototype.a1 = function (a, b, d) {
- var h;
- void 0 === b && (b = 4);
- void 0 === d && (d = !0);
- void 0 === h && (h = !1);
- return this.Qd(this.config.YI && c.sob || c.LG, 4, a, b, d, h);
- };
- a.prototype.hAb = function () {
- for (var a = this.ud(), b = a & 127; a & 128; )
- a = this.ud(), b = b << 7 | a & 127;
- return b;
- };
- a.prototype.Qd = function (a, b, c, d, f, g) {
- void 0 === f && (f = !0);
- void 0 === g && (g = !1);
- a = a(this.view, this.offset, c, d, g);
- this.offset = f || !d || d === b ? this.offset + c * (d || b) : this.offset + b;
- return a;
- };
- return a;
- }
- ();
- b.j3a = d;
- }, function (d, b, a) {
- var c,
- g,
- q,
- n,
- k;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- c = a(0);
- g = a(128);
- q = a(403);
- n = a(75);
- d = a(839);
- k = function () {
- function a(a) {
- a ? (this.Lm = a.Lm.slice(), this.Fp = a.Fp.slice(), this.ih = a.ih.slice(), this.trim = a.trim) : (this.Lm = [], this.Fp = [], this.ih = []);
- }
- Object.defineProperties(a.prototype, {
- empty: {
- get: function () {
- return 0 === this.Lm.length && 0 === this.Fp.length && 0 === this.ih.length;
- },
- enumerable: !0,
- configurable: !0
- }
- });
- return a;
- }
- ();
- d = function (a) {
- function b(b, c, d) {
- b = a.call(this, b, c, d) || this;
- b.XFa = [];
- b.od = new k();
- return b;
- }
- c.__extends(b, a);
- b.r$a = function (a, b) {
- if (b.offset + b.size <= a.byteLength)
- switch (b.size) {
- case 1:
- a.setUint8(b.offset, b.value);
- break;
- case 2:
- b.BQ ? a.setInt16(b.offset, b.value) : a.setUint16(b.offset, b.value);
- break;
- case 4:
- b.BQ ? a.setInt32(b.offset, b.value) : a.setUint32(b.offset, b.value);
- break;
- case 8:
- g.assert(!b.BQ);
- a.setUint32(b.offset, Math.floor(b.value / 4294967296));
- a.setUint32(b.offset + 4, b.value & 4294967295);
- break;
- default:
- g.assert(!1);
- }
- };
- Object.defineProperties(b.prototype, {
- zX: {
- get: function () {
- return !this.od.empty;
- },
- enumerable: !0,
- configurable: !0
- }
- });
- b.prototype.c3 = function (a, b) {
- this.od.Fp.push({
- offset: void 0 !== b ? b : this.offset,
- value: a,
- size: 1
- });
- void 0 === b && (this.offset += 1);
- };
- b.prototype.pJb = function (a) {
- this.od.Fp.push({
- offset: !1,
- value: a,
- size: 2,
- BQ: !1
- });
- };
- b.prototype.Ep = function (a, b) {
- this.od.Fp.push({
- offset: void 0 !== b ? b : this.offset,
- value: a,
- size: 4,
- BQ: !1
- });
- void 0 === b && (this.offset += 4);
- };
- b.prototype.qJb = function (a, b) {
- this.od.Fp.push({
- offset: void 0 !== b ? b : this.offset,
- value: a,
- size: 8,
- BQ: !1
- });
- void 0 === b && (this.offset += 8);
- };
- b.prototype.uVa = function (a) {
- this.Ep(n.aza(a));
- };
- b.prototype.boa = function (a, b) {
- this.od.ih.push({
- offset: this.offset,
- Cn: a,
- value: b
- });
- this.offset += 4;
- };
- b.prototype.Nk = function (a, b, c) {
- this.od.Lm.push({
- offset: b,
- remove: a,
- lb: c
- });
- };
- b.prototype.k1 = function (a, b, c, d) {
- this.od.Lm.push({
- offset: c,
- remove: a,
- replace: b,
- lb: d
- });
- };
- b.prototype.trim = function (a) {
- this.od.trim = a;
- };
- b.prototype.Szb = function () {
- this.XFa.push(new k(this.od));
- };
- b.prototype.Kyb = function () {
- this.od = this.XFa.pop() || new k();
- };
- b.prototype.Sa = function () {
- var a,
- c,
- d,
- h,
- g,
- k,
- l;
- a = this;
- if (0 === this.od.Lm.length && 0 === this.od.Fp.length && 0 === this.od.ih.length)
- return [void 0 === this.od.trim ? this.view.buffer : this.view.buffer.slice(0, this.od.trim)];
- this.od.Lm.sort(function (a, b) {
- return a.offset - b.offset;
- });
- this.od.Fp.sort(function (a, b) {
- return a.offset - b.offset;
- });
- this.UBb();
- c = this.Ljb();
- d = this.view.buffer.slice(0, c);
- h = new DataView(d);
- this.od.Fp.forEach(b.r$a.bind(void 0, h));
- this.yHb(h);
- this.xHb(h);
- g = [];
- k = void 0 !== this.od.trim ? Math.min(this.od.trim, this.view.byteLength) : this.view.byteLength;
- l = 0;
- this.od.Lm.filter(function (a) {
- return a.offset <= k;
- }).forEach(function (b) {
- b.offset > l && (g.push(h.buffer.slice(l, b.offset)), b.offset > h.byteLength && h !== a.view && (h = a.view, g.push(h.buffer.slice(c, b.offset))));
- b.replace && g.push(b.replace);
- l = b.offset + b.remove;
- });
- l < c && g.push(d.slice(l));
- l < k && g.push(this.view.buffer.slice(Math.max(d.byteLength, l), k));
- return g;
- };
- b.prototype.Ljb = function () {
- var a,
- b,
- c;
- a = [];
- b = this.od.Fp[this.od.Fp.length - 1];
- c = this.od.ih[this.od.ih.length - 1];
- b && a.push(b.offset + b.size);
- c && a.push(c.offset + 4);
- this.od.Lm.filter(function (a) {
- return a.lb;
- }).forEach(function (b) {
- return a.push(b.lb.byteOffset + 4);
- });
- b = Math.max.apply(void 0, a);
- return void 0 !== this.od.trim ? Math.min(b, this.od.trim) : b;
- };
- b.prototype.UBb = function () {
- this.od.Lm = this.od.Lm.reduce(function (a, b) {
- var c,
- f;
- if (0 === a.length)
- return a.push(b), a;
- c = a[a.length - 1];
- f = c.offset + c.remove;
- b.offset >= f ? a.push(b) : b.offset + b.remove > f && (g.assert(c.lb === b.lb), c.remove += b.offset + b.remove - f, b.replace && (c.replace = c.replace ? q.concat(c.replace, b.replace) : b.replace));
- return a;
- }, []);
- };
- b.prototype.yHb = function (a) {
- var b;
- b = this;
- this.od.ih.forEach(function (c) {
- var f,
- d,
- h,
- g;
- f = a;
- d = c.offset;
- b.od.Lm.some(function (a) {
- return a.offset <= c.offset && a.replace && a.offset + a.replace.byteLength >= c.offset + 4 ? (f = new DataView(a.replace), d = c.offset - a.offset, !0) : !1;
- });
- h = c.Cn + (void 0 !== c.value ? c.value : f.getInt32(d));
- g = b.od.Lm.reduce(function (a, b) {
- return b.offset > c.Cn && b.offset < h ? a + (b.remove - (b.replace ? b.replace.byteLength : 0)) : a;
- }, 0);
- f.setInt32(d, h - c.Cn - g);
- });
- };
- b.prototype.xHb = function (a) {
- this.od.Lm.forEach(function (b) {
- var c;
- c = (b.remove || 0) - (b.replace ? b.replace.byteLength : 0);
- if (0 !== c)
- for (b = b.lb; b; )
- a.setUint32(b.byteOffset, a.getUint32(b.byteOffset) - c), b = b.parent;
- });
- };
- return b;
- }
- (d.j3a);
- b.i3a = d;
- }, function (d) {
- d.P = function a(c, d) {
- var g;
- c.__proto__ && c.__proto__ !== Object.prototype && a(c.__proto__, d);
- Object.getOwnPropertyNames(c).forEach(function (a) {
- g = Object.getOwnPropertyDescriptor(c, a);
- void 0 !== g && Object.defineProperty(d, a, g);
- });
- };
- }, function (d, b, a) {
- var c,
- g,
- q,
- n,
- k,
- p,
- h,
- f,
- u,
- m,
- r,
- t;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- c = a(0);
- g = a(841);
- q = a(403);
- n = a(128);
- k = a(227);
- p = a(27);
- d = a(406);
- h = a(405);
- f = a(402);
- u = a(127);
- m = a(228);
- r = a(82);
- t = a(401);
- a = function () {
- function a(a, b, c, f, d, h) {
- this.console = a;
- this.stream = b;
- this.Kq = f;
- this.P9a = d;
- this.view = c instanceof ArrayBuffer ? new DataView(c) : new DataView(c.data, c.offset, c.length);
- this.config = h || {};
- this.lpb = u.Rlb();
- }
- a.path = function (a, b) {
- return b.reduce(function (a, b) {
- return a && a.Rc[b] && a.Rc[b][0];
- }, a);
- };
- a.Nmb = function (a) {
- return a && a.Sba && -1 !== a.Sba.indexOf("mcl0") ? "mcl0" : void 0;
- };
- a.Rjb = function (a, b) {
- var c;
- n.assert("mcl0" === a, "Unsupported McClearen brand");
- c = b.$;
- a = c.Nd;
- b = new k.ka(120, 1).Nf(c.S).Ab;
- for (var f = 0, c = c.Sj; f < a.length && c < b; )
- c += a[f++];
- return f;
- };
- a.prototype.parse = function (a) {
- var b;
- b = this.uCb();
- if (!b.done) {
- if (b.oNa)
- return {
- Gy: !1,
- Q9a: b.oNa
- };
- this.console.error("Scan error: " + b.error);
- return {
- Gy: !1,
- parseError: b.error || "unknown mp4 scan error"
- };
- }
- b = this.view.buffer.slice(this.view.byteOffset, this.view.byteOffset + b.offset);
- this.view = new DataView(b);
- a = this.pxb(a);
- return a.done ? this.ddb() : (this.console.error("Parse error: " + a.error), {
- Gy: !1,
- parseError: a.error || "unknown mp4 parse error"
- });
- };
- a.prototype.zB = function (a) {
- return p.ag.zB(this, a);
- };
- a.prototype.AB = function (a) {
- return p.ag.AB(this, a);
- };
- a.prototype.uCb = function () {
- var b,
- d;
- b = new t.JZa(this.Kq, this.P9a ? [r.cT, r.bT] : [], this.config && this.config.gWb || ["moof", r.lua], this.config && this.config.SOa);
- d = c.__assign(c.__assign({}, this.config), {
- Yja: !1
- });
- return new f.D3(a.Jla, b, this.view, this.console, d).parse();
- };
- a.prototype.pxb = function (a) {
- var b,
- d,
- h;
- b = new t.sqa(this.view.byteLength);
- d = Object.create(m.zH.Rc);
- this.config && ((this.config.QOa || this.config.eUa || this.config.d2) && g(m.zH.Hla, d), this.config.Bna && g(m.zH.WGb, d), this.config.eUa && g(m.zH.fUa, d));
- h = c.__assign(c.__assign({}, this.config), {
- Yja: !0
- });
- this.og = new f.D3(d, b, this.view, this.console, h);
- a = this.og.parse(a);
- a.done && (this.Rc = this.og.Rc);
- return a;
- };
- a.prototype.ddb = function () {
- var b,
- c,
- f,
- d,
- h,
- g;
- b = {
- Gy: !0
- };
- c = a.path(this, ["moov"]);
- f = a.path(c, ["trak", "mdia", "minf", "stbl", "stsd"]);
- if (this.config.QOa)
- if (f)
- b.Ta = f.Ta, b.CVb = f.Rc;
- else
- return {
- Gy: !1,
- parseError: "Missing sample descriptions"
- };
- d = a.path(f, ["encv", "sinf", "schi"]);
- d && (d = a.path(d, ["tenc"]) || a.path(d, [r.Kua])) && (b.GX = {
- NRb: d.js,
- kLa: d.kLa,
- KTb: !1
- });
- if (d = a.path(c, ["trak", "mdia", "mdhd"]))
- b.S = d.S;
- if (d = a.path(c, ["mvex", "trex"]))
- b.aG = d && d.Cd.aG;
- b.aG && b.S && (b.Ta = new k.ka(b.aG, b.S));
- if (d = a.path(this, ["sidx"])) {
- h = a.path(this, [r.cT]);
- h = h && h.hub;
- g = a.path(this, [r.bT]);
- g = g && g.vi;
- b.$ = d.$;
- b.xH = h;
- b.vi = g;
- }
- if (h = this.Rc.vmaf && this.Rc.vmaf[0])
- b.mz = h.mz;
- if (this.config.eCb)
- if (c)
- this.trim(c.byteOffset + c.byteLength), this.config.d2 && f && 1 < f.Ln && d && (b.xi = this.d2(f, d)), void 0 === b.xi && (c = this.og.zX ? q.concat(this.og.Sa()) : this.view.buffer, b.xi = [{
- EB: 0,
- data: c
- }
- ]);
- else
- return {
- Gy: !1,
- parseError: "Missing movie box"
- };
- b.Gy = !0;
- b.A0 = this.og.offset;
- return b;
- };
- a.prototype.trim = function (a) {
- var b;
- b = this.view.buffer.slice(this.view.byteOffset, this.view.byteOffset + Math.min(a, this.view.byteLength));
- this.og.trim(a);
- this.view = new DataView(b);
- };
- a.prototype.d2 = function (b, c) {
- var f,
- d,
- h;
- f = Object.keys(b.Rc);
- d = f.filter(function (a) {
- return "encv" !== a;
- });
- if (!(2 > f.length || d.length === f.length || 0 === d.length)) {
- f = a.path(this, ["ftyp"]);
- h = a.Nmb(f);
- if (h)
- return f = [], this.og.Szb(), b.IQa("encv"), f.push({
- EB: 0,
- Cj: !1,
- data: q.concat(this.og.Sa())
- }), this.og.Kyb(), b.IQa(d[0]), b = a.Rjb(h, c), f.push({
- EB: b,
- Cj: !0,
- data: q.concat(this.og.Sa())
- }), f;
- }
- };
- a.Jla = {};
- return a;
- }
- ();
- b.Aw = a;
- a.Jla[r.u6] = d["default"];
- a.Jla[r.v6] = h["default"];
- }, function (d, b, a) {
- var c;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- c = a(0);
- d = function (a) {
- function b() {
- return null !== a && a.apply(this, arguments) || this;
- }
- c.__extends(b, a);
- b.prototype.parse = function () {
- var a,
- b,
- c,
- d,
- f;
- this.Zf();
- a = this.Gs([{
- wna: "int32"
- }, {
- qFa: "int32"
- }, {
- gX: "int32"
- }, {
- iX: "int32"
- }, {
- hX: "int32"
- }
- ]);
- b = a.wna;
- c = a.qFa;
- d = a.gX;
- f = a.hX;
- a = a.iX;
- this.Cd = {
- eb: b,
- Dgb: c,
- aG: d,
- mFa: f,
- nFa: a
- };
- this.wna = b;
- this.qFa = c;
- this.gX = d;
- this.iX = a;
- this.hX = f;
- return !0;
- };
- b.Se = "trex";
- b.mc = !1;
- return b;
- }
- (a(27).ag);
- b["default"] = d;
- }, function (d, b, a) {
- var c,
- g;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- c = a(0);
- d = a(82);
- a = a(27);
- g = d.t6;
- a = function (a) {
- function b() {
- return null !== a && a.apply(this, arguments) || this;
- }
- c.__extends(b, a);
- b.prototype.parse = function () {
- this.Zf();
- this.Cd = this.Gs([{
- n0: "int32"
- }, {
- aN: "int16"
- }
- ]);
- return !0;
- };
- b.Se = g;
- b.mc = !1;
- return b;
- }
- (a.ag);
- b["default"] = a;
- }, function (d, b, a) {
- var c,
- g;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- c = a(0);
- g = a(225);
- d = function (a) {
- function b() {
- return null !== a && a.apply(this, arguments) || this;
- }
- c.__extends(b, a);
- b.prototype.parse = function () {
- this.Zf();
- this.$Ya = g.Uqa.gQa(this.L);
- return !0;
- };
- b.Se = "esds";
- b.mc = !1;
- return b;
- }
- (a(27).ag);
- b["default"] = d;
- }, function (d, b, a) {
- var c;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- c = a(0);
- d = function (a) {
- function b() {
- return null !== a && a.apply(this, arguments) || this;
- }
- c.__extends(b, a);
- b.prototype.wG = function () {
- var a;
- a = this.AB("esds");
- if (a = a && a.$Ya.AB(5))
- this.iY = a.iY;
- return !0;
- };
- b.Se = "mp4a";
- b.mc = !0;
- return b;
- }
- (a(164)["default"]);
- b["default"] = d;
- }, function (d, b, a) {
- var c;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- c = a(0);
- d = function (a) {
- function b() {
- return null !== a && a.apply(this, arguments) || this;
- }
- c.__extends(b, a);
- b.prototype.parse = function () {
- var a;
- this.L.ud();
- this.gWa = this.L.ud();
- this.L.ud();
- this.L.ud();
- this.L.ud();
- this.JSa = this.t$(this.L.ud() & 31);
- this.t$(this.L.ud());
- this.W0 = this.JSa.length ? this.JSa[0][0] : this.gWa;
- this.MAa = this.L.offset;
- this.startOffset + this.length < this.L.offset && (100 === this.W0 || 110 === this.W0 || 122 === this.W0 || 144 === this.W0) && (this.L.ud(), this.L.ud(), this.t$(this.L.ud()));
- a = this.startOffset + this.length - this.MAa;
- 0 < a && this.Nk(a, this.MAa);
- return !0;
- };
- b.prototype.t$ = function (a) {
- var d;
- for (var b = [], c = 0; c < a; ++c) {
- d = this.L.kh();
- b.push(this.L.b1(d));
- }
- return b;
- };
- b.Se = "avcC";
- b.mc = !1;
- return b;
- }
- (a(27).ag);
- b["default"] = d;
- }, function (d, b, a) {
- var c,
- g;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- c = a(0);
- g = a(27);
- d = function (a) {
- function b() {
- return null !== a && a.apply(this, arguments) || this;
- }
- c.__extends(b, a);
- b.prototype.parse = function () {
- this.Zf();
- this.wRa = this.L.Py();
- g.Za && this.L.console.trace("SchemeTypeBoxTranslator: " + this.wRa);
- "cenc" === this.wRa && (this.L.offset -= 4, g.Za && this.L.console.trace("SchemeTypeBoxTranslator: writing type piff at offset " + this.L.offset), this.cb.uVa("piff"));
- this.L.Fb();
- return !0;
- };
- b.Se = "schm";
- b.mc = !1;
- return b;
- }
- (g.ag);
- b["default"] = d;
- }, function (d, b, a) {
- var c;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- c = a(0);
- d = function (a) {
- function b() {
- return null !== a && a.apply(this, arguments) || this;
- }
- c.__extends(b, a);
- b.prototype.parse = function () {
- var b;
- this.kwb = this.L.kh() & 7;
- this.HFb = [];
- for (var a = 0; a < this.kwb; a++) {
- b = {
- Fkb: this.L.Yf(2),
- Xab: this.L.Yf(5),
- Yab: this.L.Yf(5),
- a9a: this.L.Yf(3),
- OTb: this.L.Yf(1),
- jwb: this.L.Yf(4)
- };
- 0 < b.jwb ? b.BRb = this.L.Yf(9) : this.L.Yf(1);
- this.HFb.push(b);
- }
- return !0;
- };
- b.Se = "dec3";
- return b;
- }
- (a(27).ag);
- b["default"] = d;
- }, function (d, b, a) {
- var c;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- c = a(0);
- d = function (a) {
- function b() {
- return null !== a && a.apply(this, arguments) || this;
- }
- c.__extends(b, a);
- b.prototype.parse = function () {
- this.Fkb = this.L.Yf(2);
- this.Xab = this.L.Yf(5);
- this.Yab = this.L.Yf(3);
- this.a9a = this.L.Yf(3);
- this.L.Yf(1);
- this.L.Yf(5);
- this.L.Yf(5);
- return !0;
- };
- b.Se = "dac3";
- return b;
- }
- (a(27).ag);
- b["default"] = d;
- }, function (d, b, a) {
- var c,
- g,
- q,
- n,
- k;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- c = a(0);
- g = a(82);
- q = a(227);
- n = a(164);
- d = a(27);
- k = a(81);
- a = function (a) {
- function b() {
- return null !== a && a.apply(this, arguments) || this;
- }
- c.__extends(b, a);
- b.prototype.parse = function () {
- this.Zf();
- this.Ln = this.L.Fb();
- return !0;
- };
- b.prototype.wG = function (a) {
- var b;
- b = Object.keys(this.Rc);
- b.length && (b = b[0], this.Rc[b].length && (b = this.Rc[b][0], b instanceof n["default"] ? this.Ta = new q.ka(b.iY, b.sRa) : b instanceof k["default"] && (b = b.Rc[g.t6]) && b.length && (b = b[0].Cd, 1E3 !== b.aN && 1001 !== b.aN || 0 !== b.n0 % 1E3 ? this.L.console.warn("Unexpected frame rate in NetflixFrameRateBox: " + b.n0 + "/" + b.aN) : this.Ta = new q.ka(b.aN, b.n0)), this.Ta && (a.Ta = this.Ta)));
- return !0;
- };
- b.prototype.IQa = function (a) {
- void 0 !== this.Rc[a] && 0 !== this.Rc[a].length && (this.cb.Ep(this.Ln - 1, this.byteOffset + 12), a = this.Rc[a][0], this.Nk(a.byteLength, a.byteOffset));
- };
- b.Se = "stsd";
- b.mc = !0;
- return b;
- }
- (d.ag);
- b["default"] = a;
- }, function (d, b, a) {
- var c,
- g;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- c = a(0);
- g = a(75);
- d = function (a) {
- function b() {
- return null !== a && a.apply(this, arguments) || this;
- }
- c.__extends(b, a);
- b.prototype.parse = function () {
- this.Zf();
- this.Cd = this.Gs([{
- eVb: "int32"
- }, {
- yJa: "int32"
- }, {
- offset: 96,
- type: "offset"
- }, {
- name: "string"
- }
- ]);
- this.Cd.yJa = g.kA(this.Cd.yJa);
- return !0;
- };
- b.Se = "hdlr";
- b.mc = !1;
- return b;
- }
- (a(27).ag);
- b["default"] = d;
- }, function (d, b, a) {
- var c;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- c = a(0);
- d = function (a) {
- function b() {
- return null !== a && a.apply(this, arguments) || this;
- }
- c.__extends(b, a);
- b.prototype.parse = function () {
- this.L.Py();
- this.L.Py();
- for (this.Sba = []; this.L.offset <= this.byteOffset + this.byteLength - 4; )
- this.Sba.push(this.L.Py());
- return !0;
- };
- b.Se = "ftyp";
- b.mc = !1;
- return b;
- }
- (a(27).ag);
- b["default"] = d;
- }, function (d, b, a) {
- var c;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- c = a(0);
- d = function (a) {
- function b() {
- return null !== a && a.apply(this, arguments) || this;
- }
- c.__extends(b, a);
- b.prototype.parse = function () {
- this.Cd = this.Gs([{
- oRb: "int32"
- }, {
- hp: "int32"
- }, {
- nab: "int32"
- }
- ]);
- return !0;
- };
- b.Se = "btrt";
- b.mc = !1;
- return b;
- }
- (a(27).ag);
- b["default"] = d;
- }, function (d, b, a) {
- var c;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- c = a(0);
- d = function (a) {
- function b() {
- return null !== a && a.apply(this, arguments) || this;
- }
- c.__extends(b, a);
- b.prototype.parse = function () {
- this.Cd = this.Gs([{
- sTb: "int32"
- }, {
- GWb: "int32"
- }
- ]);
- return !0;
- };
- b.Se = "pasp";
- b.mc = !1;
- return b;
- }
- (a(27).ag);
- b["default"] = d;
- }, function (d, b, a) {
- var c;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- c = a(0);
- d = function (a) {
- function b() {
- return null !== a && a.apply(this, arguments) || this;
- }
- c.__extends(b, a);
- b.prototype.parse = function () {
- this.Zf();
- this.Cd = this.Gs(1 === this.version ? [{
- mHa: "int64"
- }
- ] : [{
- mHa: "int32"
- }
- ]);
- return !0;
- };
- b.Se = "mehd";
- b.mc = !1;
- return b;
- }
- (a(27).ag);
- b["default"] = d;
- }, function (d, b, a) {
- var c;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- c = a(0);
- d = function (a) {
- function b() {
- return null !== a && a.apply(this, arguments) || this;
- }
- c.__extends(b, a);
- b.prototype.parse = function () {
- var a;
- this.Zf();
- a = 1 === this.version ? [{
- Qh: "int64"
- }, {
- modificationTime: "int64"
- }, {
- eb: "int32"
- }, {
- offset: 32,
- type: "offset"
- }, {
- duration: "int64"
- }
- ] : [{
- Qh: "int32"
- }, {
- modificationTime: "int32"
- }, {
- eb: "int32"
- }, {
- offset: 32,
- type: "offset"
- }, {
- duration: "int32"
- }
- ];
- a = a.concat({
- offset: 64,
- type: "offset"
- }, {
- msb: "int16"
- }, {
- e$a: "int16"
- }, {
- volume: "int16"
- }, {
- offset: 16,
- type: "offset"
- }, {
- offset: 288,
- type: "offset"
- }, {
- width: "int32"
- }, {
- height: "int32"
- });
- this.Cd = this.Gs(a);
- this.Cd.nWb = !!(this.lf & 1);
- this.Cd.oWb = !!(this.lf & 2);
- this.Cd.pWb = !!(this.lf & 4);
- this.Cd.qWb = !!(this.lf & 8);
- this.L.console.trace("Finished parsing track box");
- return !0;
- };
- b.Se = "tkhd";
- b.mc = !1;
- return b;
- }
- (a(27).ag);
- b["default"] = d;
- }, function (d, b, a) {
- var c;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- c = a(0);
- d = function (a) {
- function b() {
- return null !== a && a.apply(this, arguments) || this;
- }
- c.__extends(b, a);
- b.Se = "trak";
- b.mc = !0;
- return b;
- }
- (a(27).ag);
- b["default"] = d;
- }, function (d, b, a) {
- var c;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- c = a(0);
- d = function (a) {
- function b() {
- return null !== a && a.apply(this, arguments) || this;
- }
- c.__extends(b, a);
- b.prototype.parse = function () {
- this.Zf();
- this.Cd = 1 === this.version ? this.Gs([{
- Qh: "int64"
- }, {
- modificationTime: "int64"
- }, {
- S: "int32"
- }, {
- duration: "int64"
- }
- ]) : this.Gs([{
- Qh: "int32"
- }, {
- modificationTime: "int32"
- }, {
- S: "int32"
- }, {
- duration: "int32"
- }
- ]);
- return !0;
- };
- b.Se = "mvhd";
- b.mc = !1;
- return b;
- }
- (a(27).ag);
- b["default"] = d;
- }, function (d, b, a) {
- var c,
- g,
- q,
- n,
- k,
- p,
- h;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.oxa = b.K2a = void 0;
- c = a(0);
- g = a(95);
- q = a(6);
- d = a(4);
- n = a(399);
- a = a(410);
- k = new d.Console("FRAGMENTS", "media|asejs");
- try {
- p = !0;
- } catch (f) {
- p = !1;
- }
- h = function (a) {
- function b(b, c) {
- c = a.call(this, b.Sm, c) || this;
- c.DA = b;
- return c;
- }
- c.__extends(b, a);
- Object.defineProperties(b.prototype, {
- ba: {
- get: function () {
- return this.DA.KEb(this.rj);
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- offset: {
- get: function () {
- return this.DA.ih(this.rj);
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- ija: {
- get: function () {
- return this.DA.xH && this.DA.xH[this.rj];
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- vi: {
- get: function () {
- return this.DA.Tkb(this.rj);
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- wc: {
- get: function () {
- return this.DA.mz && this.DA.mz[this.rj];
- },
- enumerable: !1,
- configurable: !0
- }
- });
- b.prototype.toJSON = function () {
- return {
- index: this.index,
- contentStartTicks: this.Ra,
- contentEndTicks: this.hb,
- durationTicks: this.Ro,
- timescale: this.S,
- startPts: this.T,
- endPts: this.na,
- duration: this.duration,
- additionalSAPs: this.vi
- };
- };
- return b;
- }
- (a.Txa);
- b.K2a = h;
- d = function () {
- function a(a, b, c, d, f, g) {
- this.ZE = 128;
- this.jc = a;
- this.Ud = b.offset;
- this.vn = b.sizes;
- this.zE = this.NK = this.Ug = this.pBa = this.I$ = void 0;
- this.f6a = c;
- this.N8 = d && d.ih;
- this.CBa = f;
- this.cx = Math.min(this.jc.length, this.vn.length);
- this.T5a = this.vbb();
- this.Sm.uo.length !== this.vn.length && k.error("Mis-matched stream duration (" + this.Sm.uo.length + "," + this.vn.length + ") for movie id " + g);
- this.Sm.ZV && !this.N8 && k.error("Mis-matched additional SAPs information for movie id " + g);
- }
- a.ORb = function (a, b) {
- var c,
- d;
- b = b.S;
- c = b / 1E3;
- d = new DataView(a);
- a = Math.floor(a.byteLength / 16);
- return {
- S: b,
- Sj: d.getUint32(4) * c,
- offset: 65536 * d.getUint32(8) + d.getUint16(12),
- sizes: g.DYa.LG(d, 0, a, 16),
- Nd: g.t8.from(Uint32Array, {
- length: a
- }, function (a, b) {
- return d.getUint16(16 * b + 14) * c;
- })
- };
- };
- Object.defineProperties(a.prototype, {
- M: {
- get: function () {
- return this.jc.M;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- length: {
- get: function () {
- return this.cx;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- Sj: {
- get: function () {
- return this.jc.Sj;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- Fda: {
- get: function () {
- return this.jc.Fda;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- T: {
- get: function () {
- return this.jc.T;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- na: {
- get: function () {
- return this.jc.na;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- Gia: {
- get: function () {
- return this.jc.Gia;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- G_: {
- get: function () {
- return this.T5a;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- Ta: {
- get: function () {
- return this.jc.Ta;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- S: {
- get: function () {
- return this.jc.S;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- ci: {
- get: function () {
- return this.pBa || this.Z8();
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- xH: {
- get: function () {
- return this.f6a;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- XBa: {
- get: function () {
- return this.N8;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- mz: {
- get: function () {
- return this.CBa;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- Sm: {
- get: function () {
- return this.jc;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- zI: {
- get: function () {
- return this.I$ || this.r4a();
- },
- enumerable: !1,
- configurable: !0
- }
- });
- a.prototype.KEb = function (a) {
- if (this.vn)
- return this.vn[a];
- k.error("sizesByIndex _sizes is undefined");
- return -1;
- };
- a.prototype.$h = function (a) {
- return this.jc.$h(a);
- };
- a.prototype.Gda = function (a) {
- return this.jc.$h(a) + this.jc.Nd(a);
- };
- a.prototype.ih = function (a) {
- if (this.NK !== a || void 0 === this.zE) {
- if (0 === a)
- return this.Ud;
- if (this.NK === a - 1 && void 0 !== this.zE)
- this.zE += this.vn[this.NK], ++this.NK;
- else {
- for (var b = this.Ug || this.Y3a(), c = Math.floor(a / this.ZE), d = c * this.ZE, b = b[c]; d < a; ++d)
- b += this.vn[d];
- this.NK = a;
- this.zE = b;
- }
- }
- return this.zE;
- };
- a.prototype.Nd = function (a) {
- return this.jc.Nd(a);
- };
- a.prototype.get = function (a) {
- return new h(this, a);
- };
- a.prototype.Tkb = function (a) {
- var b,
- c,
- d;
- q.assert(0 <= a);
- b = this.Sm.ZV;
- c = this.Sm.YBa;
- d = this.N8;
- if (!d || !b || !c || a >= b.length)
- return [];
- for (var f = [], g = a === b.length - 1 ? c.length : b[a + 1], b = b[a]; b < g; ++b)
- f.push({
- Jm: c[b],
- Vc: this.$h(a) + this.Ta.Z_(c[b]).va,
- offset: d[b]
- });
- return f;
- };
- a.prototype.fEb = function (a) {
- this.CBa = a;
- };
- a.prototype.km = function (a, b, c) {
- return this.jc.km(a, b, c);
- };
- a.prototype.UX = function (a, b, c) {
- return this.jc.UX(a, b, c);
- };
- a.prototype.jca = function (a, b) {
- return this.jc.jca(a, b);
- };
- a.prototype.b_ = function (a, b, c) {
- var d,
- f,
- g,
- h,
- k,
- l,
- p,
- n,
- q;
- d = !0;
- f = 0;
- h = this.jc.uo;
- k = this.vn;
- l = Math.floor(a * this.S / 1E3);
- p = 0;
- n = 0;
- q = 0;
- if (this.jc.Kna && this.jc.Jna)
- for (f = this.jc.Kna; f <= this.jc.Jna; ++f)
- p += h[f], n += k[f];
- if (n > b)
- d = !1;
- else
- for (; f < this.length && (!c || f < c); ) {
- g = k[f];
- a = h[f];
- if (n + g > b && p < l) {
- d = !1;
- this.jc.Kna = q;
- this.jc.Jna = f;
- break;
- }
- for (; 0 < f - q && n + g > b; )
- p -= h[q], n -= k[q], ++q;
- p += a;
- n += g;
- ++f;
- }
- return d;
- };
- a.prototype.subarray = function (b, c) {
- q.assert(void 0 === b || 0 <= b && b < this.length);
- q.assert(void 0 === c || c > b && c <= this.length);
- return new a(this.jc.subarray(b, c), {
- offset: this.ih(b),
- sizes: this.vn.subarray(b, c)
- }, this.xH && this.xH.subarray(b, c), this.XBa && {
- ih: this.XBa
- });
- };
- a.prototype.forEach = function (a) {
- for (var b = 0; b < this.length; ++b)
- a(this.get(b), b, this);
- };
- a.prototype.map = function (a) {
- for (var b = [], c = 0; c < this.length; ++c)
- b.push(a(this.get(c), c, this));
- return b;
- };
- a.prototype.reduce = function (a, b) {
- for (var c = 0; c < this.length; ++c)
- b = a(b, this.get(c), c, this);
- return b;
- };
- a.prototype.toJSON = function () {
- return {
- length: this.length
- };
- };
- a.prototype.dump = function () {
- var b;
- k.trace("StreamFragments: " + this.length);
- for (var a = 0; a < this.length; ++a) {
- b = this.get(a);
- k.trace("StreamFragments: " + a + ": [" + b.T + "-" + b.na + "] @ " + b.offset + ", " + b.ba + " bytes");
- }
- };
- a.prototype.vbb = function () {
- var a,
- b,
- c,
- d,
- f;
- b = 0;
- c = this.jc.tMa;
- d = this.jc.uo;
- f = this.vn;
- if (void 0 === c || c >= this.length) {
- for (var g = 0; g < this.length; ++g)
- a = f[g] / d[g], a > b && (b = a, c = g);
- void 0 === this.jc.tMa && (this.jc.tMa = c);
- } else
- b = f[c] / d[c];
- return Math.floor(b * this.S / 125);
- };
- a.prototype.Z8 = function () {
- for (var a = 0, b = 0; b < this.length; ++b)
- a += this.vn[b];
- return this.pBa = a;
- };
- a.prototype.r4a = function () {
- return this.I$ = new n.Y7(this.jc.uo, this.vn, this.jc.S);
- };
- a.prototype.Y3a = function () {
- var a;
- if (!this.Ug) {
- a = p ? new Float64Array(Math.ceil(this.length / this.ZE)) : Array(Math.ceil(this.length / this.ZE));
- for (var b = this.Ud, c = 0; c < a.length; ++c) {
- a[c] = b;
- for (var d = 0; d < this.ZE; ++d)
- b += this.vn[c * this.ZE + d];
- }
- this.Ug = a;
- }
- return this.Ug;
- };
- return a;
- }
- ();
- b.oxa = d;
- d.prototype.PSa = a.EO(d.prototype.$h);
- }, function (d, b, a) {
- var g,
- q,
- n,
- k,
- p,
- h,
- f,
- u,
- m,
- r;
- function c(a, b) {
- var c,
- d;
- c = Math.floor(1E3 * a / b);
- d = 1E3 * Math.round(c / 1E3);
- return new p.ka(d, Math.abs(Math.floor(1001 * a / b) - d) > Math.abs(c - d) ? 1E3 : 1001);
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Noa = void 0;
- g = a(0);
- q = a(58);
- n = a(7);
- k = a(410);
- p = a(34);
- h = a(6);
- f = a(17);
- u = a(11);
- m = a(229);
- r = a(409);
- d = function () {
- function a(b, d, f) {
- this.K = d;
- this.G = f;
- this.Xw = new u.dxa();
- this.Lza = !1;
- this.T9 = b.cC;
- this.Zc = b.R;
- this.Re = b.M;
- this.x8a = b.A2;
- this.t3a = b.KA;
- 1 === this.Re && (d = this.T9.streams[0], void 0 !== d.framerate_value && void 0 !== d.framerate_scale && (this.S9 = c(d.framerate_value, d.framerate_scale).wQa()));
- this.Wl = (this.KE = this.S9) && this.KE.S;
- this.E9 = this.qza = !1;
- this.vga = -Infinity;
- this.VLa = Infinity;
- b = a.t4a(this, b.Ef, b.Vp);
- d = b.hp;
- f = b.Nc;
- this.s5a = b.lZ;
- this.S5a = d;
- this.Vt = f;
- this.m8a = f.reduce(function (a, b) {
- a[b.sa] = b;
- return a;
- }, {});
- !1;
- }
- a.t4a = function (a, b, c) {
- var d,
- h,
- k,
- l,
- p,
- u;
- d = a.K;
- h = 1 === a.M;
- k = {};
- d.IQ && d.IQ.enabled && d.IQ.profiles && d.IQ.profiles.forEach(function (a) {
- k[a] = {
- action: d.IQ.action,
- applied: !1
- };
- });
- l = !1;
- p = 0;
- u = [];
- a.cC.streams.forEach(function (m, t) {
- var A,
- G,
- C,
- z,
- D;
- G = m.bitrate;
- C = m.vmaf;
- z = m.content_profile;
- D = {
- inRange: !0,
- Tn: !0
- };
- if (h) {
- A = -1 === m.content_profile.indexOf("none");
- D.Tn = b && !A || !b && A;
- D.Tn && c && q(f.YL(m.content_profile, m.bitrate, c, a.G), D);
- if (G < d.Sub || G > d.Stb)
- D.inRange = !1;
- !n.Ma(C) && (C < d.WO || C > d.Ttb) && (D.inRange = !1);
- k.hasOwnProperty(z) && "keepLowest" === k[z].action && (k[z].applied ? D.inRange = !1 : k[z].applied = !0);
- l = l || A;
- }
- D.inRange && D.Tn && G > p && (p = G);
- m = new r.Moa(g.__assign({
- vy: m,
- Kg: t,
- track: a
- }, D), d, a.G);
- u.push(m);
- });
- return {
- lZ: l,
- hp: p,
- Nc: u
- };
- };
- Object.defineProperties(a.prototype, {
- xvb: {
- get: function () {
- return !this.ae && !this.Lza;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- ae: {
- get: function () {
- return !!this.Sm && !!this.Xw.value;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- nda: {
- get: function () {
- return this.qza;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- R: {
- get: function () {
- return this.Zc;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- u: {
- get: function () {
- return String(this.Zc.u);
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- eb: {
- get: function () {
- return this.T9.track_id;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- M: {
- get: function () {
- return this.Re;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- Ta: {
- get: function () {
- return this.KE;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- S: {
- get: function () {
- return this.Wl;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- yH: {
- get: function () {
- return this.h6a;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- Sm: {
- get: function () {
- return this.jc;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- HZ: {
- get: function () {
- return this.Xw.value;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- cC: {
- get: function () {
- return this.T9;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- A2: {
- get: function () {
- return this.x8a;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- KA: {
- get: function () {
- return this.t3a;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- lZ: {
- get: function () {
- return this.s5a;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- hp: {
- get: function () {
- return this.S5a;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- Nc: {
- get: function () {
- return this.Vt;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- Dea: {
- get: function () {
- return this.Ta.S;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- Cea: {
- get: function () {
- return this.Ta.Ab;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- T: {
- get: function () {
- return 0;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- nea: {
- get: function () {
- return this.Xw;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- a.prototype.cs = function (a) {
- return this.KG()[a];
- };
- a.prototype.KG = function () {
- return this.m8a;
- };
- a.prototype.equals = function (a) {
- return this.u === a.u && this.M === a.M && this.eb === a.eb;
- };
- a.prototype.Mja = function () {
- this.Lza = !0;
- };
- a.prototype.o0 = function (a, b, c, d, f) {
- if (d && void 0 !== d.Sj && (this.ae || void 0 !== d.Nd && d.Nd.length))
- if (a.bv && (this.qza = !0), this.ae)
- !this.E9 && d.Nd && d.Nd.length > this.Sm.length && (this.jc = new k.m8(this.M, this.Ta, d, f), this.Xw.bRa(), this.vga = -Infinity, this.E9 = !0);
- else {
- this.fBa(b);
- if (c = c || this.S9)
- this.eBa(c || this.S9), void 0 === this.S && this.gBa(c.S);
- this.jc = new k.m8(this.M, this.Ta, d, f);
- a.bv && (this.E9 = !0);
- }
- else
- this.G && this.G.error("AseTrack.onHeaderReceived with missing fragments data");
- };
- a.prototype.Jwb = function (a) {
- void 0 === this.Xw.value && this.Xw.set(a);
- };
- a.prototype.pdb = function (a) {
- this.ae || (this.gBa(a.S), this.fBa(a.yH), this.eBa(a.Ta), this.jc = a.Sm, a.nea.value ? this.Xw.set(a.nea.value) : this.Xw.bRa());
- };
- a.prototype.Lu = function (a, b, c, d) {
- h.assert(this.HZ);
- return m.Lu(this.M, a, this.HZ, b, c, d);
- };
- a.prototype.BB = function (a, b, c) {
- h.assert(this.HZ);
- return m.BB(this.M, a, this.HZ, b, c);
- };
- a.prototype.toJSON = function () {
- return {
- movieId: this.u,
- mediaType: this.M,
- trackId: this.eb
- };
- };
- a.prototype.toString = function () {
- return (0 === this.M ? "a" : "v") + ":" + this.eb;
- };
- a.prototype.gBa = function (a) {
- this.Wl = a;
- };
- a.prototype.fBa = function (a) {
- this.h6a = a;
- };
- a.prototype.eBa = function (a) {
- this.KE = a;
- };
- return a;
- }
- ();
- b.Noa = d;
- }, function (d) {
- function b(a, b) {
- this.Ca = a;
- this.Ih = b;
- }
- b.prototype.uka = function (a) {
- a *= 2;
- if (2 <= a)
- a = -100;
- else if (0 >= a)
- a = 100;
- else {
- for (var b = 1 > a ? a : 2 - a, d = Math.sqrt(-2 * Math.log(b / 2)), d = - .70711 * ((2.30753 + .27061 * d) / (1 + d * (.99229 + .04481 * d)) - d), g = 0; 2 > g; g++)
- var n = Math.abs(d), k = 1 / (1 + n / 2), n = k * Math.exp(-n * n - 1.26551223 + k * (1.00002368 + k * (.37409196 + k * (.09678418 + k * ( - .18628806 + k * (.27886807 + k * (-1.13520398 + k * (1.48851587 + k * ( - .82215223 + .17087277 * k))))))))), n = (0 <= d ? n : 2 - n) - b, d = d + n / (1.1283791670955126 * Math.exp( - (d * d)) - d * n);
- a = 1 > a ? d : -d;
- }
- return this.Ca - Math.sqrt(2 * this.Ih) * a;
- };
- d.P = b;
- }, function (d, b, a) {
- var g;
- function c(a) {
- this.mI = new Uint16Array(a.length);
- for (var b = 0; b < a.length; ++b)
- this.mI[b] = a.charCodeAt(b);
- }
- g = new(a(4)).Console("ASEJS_XORCiper", "media|asejs");
- c.prototype.constructor = c;
- c.prototype.encrypt = function (a) {
- var b,
- c;
- b = this.mI.length;
- if (void 0 === this.mI)
- g.warn("XORCiper.encrypt is called with undefined secret!");
- else {
- c = "";
- for (var d = 0; d < a.length; ++d)
- c += String.fromCharCode(this.mI[d % b] ^ a.charCodeAt(d));
- return encodeURIComponent(c);
- }
- };
- c.prototype.decrypt = function (a) {
- var b,
- c;
- b = "";
- c = this.mI.length;
- a = decodeURIComponent(a);
- for (var d = 0; d < a.length; d++)
- b += String.fromCharCode(this.mI[d % c] ^ a.charCodeAt(d));
- return b;
- };
- d.P = c;
- }, function (d, b, a) {
- var c;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.exa = b.dxa = void 0;
- c = a(50);
- d = function () {
- function a(a) {
- this.o = a;
- this.listeners = [];
- this.pP = [];
- }
- Object.defineProperties(a.prototype, {
- value: {
- get: function () {
- return this.o;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- a.prototype.set = function (a) {
- var b;
- this.o = a;
- b = this.pP;
- this.pP = [];
- this.listeners.forEach(function (b) {
- return b(a);
- });
- b.forEach(function (b) {
- return b(a);
- });
- };
- a.prototype.bRa = function () {
- this.o = void 0;
- };
- a.prototype.on = function (a) {
- this.listeners = this.listeners.concat([a]);
- void 0 !== this.o && a(this.o);
- };
- a.prototype.once = function (a) {
- void 0 !== this.o ? a(this.o) : this.pP.push(a);
- };
- a.prototype.IH = function (a) {
- this.listeners = this.listeners.filter(function (b) {
- return b !== a;
- });
- this.pP = this.pP.filter(function (b) {
- return b !== a;
- });
- };
- return a;
- }
- ();
- b.dxa = d;
- d = function () {
- function a() {
- this.listeners = [];
- }
- a.prototype.on = function (a, b) {
- this.listeners.push({
- a2: a,
- listener: b
- });
- a.on(b);
- };
- a.prototype.once = function (a, b) {
- var c,
- d;
- c = this;
- if (void 0 === a.value) {
- d = function (d) {
- c.remove(a, b);
- b(d);
- };
- this.listeners.push({
- a2: a,
- listener: b,
- tVa: d
- });
- a.once(d);
- } else
- a.once(b);
- };
- a.prototype.IH = function (a, b) {
- var d,
- g;
- g = c.An(this.listeners, function (c) {
- return c.a2 === a && c.listener === b;
- });
- void 0 !== g && a.IH(null !== (d = g.tVa) && void 0 !== d ? d : g.listener);
- this.remove(a, b);
- };
- a.prototype.removeAllListeners = function () {
- this.listeners.forEach(function (a) {
- var b,
- c;
- b = a.listener;
- c = a.tVa;
- return a.a2.IH(null !== c && void 0 !== c ? c : b);
- });
- this.listeners = [];
- };
- a.prototype.remove = function (a, b) {
- this.listeners = this.listeners.filter(function (c) {
- return c.a2 !== a || c.listener !== b;
- });
- };
- return a;
- }
- ();
- b.exa = d;
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.TGa = void 0;
- b.TGa = function (a, b) {
- return a.filter(function (a) {
- var c,
- d;
- a = null !== (d = null !== (c = a.Jy) && void 0 !== c ? c : a.Xga) && void 0 !== d ? d : a.Mm;
- return !!a && a.py(b);
- }).pop();
- };
- }, function (d, b, a) {
- var c,
- g;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.kua = void 0;
- c = a(50);
- g = a(6);
- d = function () {
- function a() {
- this.data = {};
- }
- Object.defineProperties(a.prototype, {
- empty: {
- get: function () {
- return 0 === Object.keys(this.data).length;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- size: {
- get: function () {
- var a;
- a = this;
- return Object.keys(this.data).reduce(function (b, c) {
- return b + a.data[c].length;
- }, 0);
- },
- enumerable: !1,
- configurable: !0
- }
- });
- a.prototype.get = function (a) {
- var b;
- return null !== (b = this.data[a]) && void 0 !== b ? b : [];
- };
- a.prototype.has = function (a, b) {
- return (a = this.data[a]) ? void 0 === b ? !0 : -1 !== a.indexOf(b) : !1;
- };
- a.prototype.count = function (a) {
- return (a = this.data[a]) ? a.length : 0;
- };
- a.prototype.keys = function () {
- return Object.keys(this.data);
- };
- a.prototype.values = function () {
- var a;
- a = this;
- return c.Xr(this.keys().map(function (b) {
- return a.data[b];
- }));
- };
- a.prototype.set = function (a, b) {
- (this.data[a] || (this.data[a] = [])).push(b);
- return this;
- };
- a.prototype.clear = function () {
- this.data = {};
- };
- a.prototype["delete"] = function (a, b) {
- var c,
- d;
- c = this.data[a];
- if (void 0 === c)
- return !1;
- if (void 0 === b)
- return g.assert(1 === arguments.length), delete this.data[a], !0;
- d = c.indexOf(b);
- if (-1 === d)
- return !1;
- 1 === c.length ? delete this.data[a] : c.splice(d, 1);
- return !0;
- };
- a.prototype.forEach = function (a, b) {
- var c;
- c = this;
- a = void 0 !== b ? a.bind(b) : a;
- this.keys().forEach(function (b) {
- return c.data[b].forEach(function (d) {
- return a(d, b, c);
- });
- });
- };
- a.prototype.reduce = function (a, b, c) {
- var d,
- f;
- d = this;
- a = void 0 !== c ? a.bind(c) : a;
- f = b;
- this.forEach(function (b, c) {
- f = a(f, b, c, d);
- });
- return f;
- };
- a.prototype.map = function (a, b) {
- var d;
- d = this;
- a = void 0 !== b ? a.bind(b) : a;
- return c.Xr(this.keys().map(function (b) {
- return d.data[b].map(function (c) {
- return a(c, b, d);
- });
- }));
- };
- a.prototype.filter = function (a, b) {
- var d;
- d = this;
- a = void 0 !== b ? a.bind(b) : a;
- return c.Xr(this.keys().map(function (b) {
- return d.data[b].filter(function (c) {
- return a(c, b, d);
- });
- }));
- };
- return a;
- }
- ();
- b.kua = d;
- }, function (d, b, a) {
- var c;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.cK = b.e2a = void 0;
- c = a(0);
- d = function () {
- function a(a, b) {
- this.o = a;
- this.Tu = b ? [b] : [];
- }
- Object.defineProperties(a.prototype, {
- value: {
- get: function () {
- return this.o;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- a.prototype.addListener = function (a) {
- -1 === this.Tu.indexOf(a) && (this.Tu = this.Tu.slice(), this.Tu.push(a));
- };
- a.prototype.removeListener = function (a) {
- a = this.Tu.indexOf(a);
- -1 !== a && (this.Tu = this.Tu.slice(), this.Tu.splice(a, 1));
- };
- return a;
- }
- ();
- b.e2a = d;
- d = function (a) {
- function b(b, c) {
- return a.call(this, b, c) || this;
- }
- c.__extends(b, a);
- Object.defineProperties(b.prototype, {
- value: {
- get: function () {
- return this.o;
- },
- set: function (a) {
- this.set(a);
- },
- enumerable: !1,
- configurable: !0
- }
- });
- b.prototype.set = function (a) {
- var b,
- c;
- b = this.o;
- c = this.Tu;
- this.o = a;
- c.forEach(function (c) {
- return c({
- oldValue: b,
- newValue: a
- });
- });
- };
- return b;
- }
- (d);
- b.cK = d;
- }, function (d, b, a) {
- var c,
- g;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.bxa = void 0;
- c = a(11);
- d = a(4);
- g = d.ak;
- new d.Console("ASEJS_SIDECHANNEL", "media|asejs");
- d = function () {
- function a(a, b, d) {
- this.Am = d;
- this.U8a = new c.Aya(a);
- this.T8a = b.fa;
- this.R3a = 1E3 * b.gub / b.Zab;
- this.F4a = b.Mx;
- this.iA = b.Lba;
- }
- a.prototype.Fn = function (a) {
- var b,
- d,
- g,
- f;
- b = {
- s_xid: this.T8a,
- dl: this.F4a ? 1 : 0
- };
- a.pM && (b.bs = c.EW(Math.floor(a.pM / this.R3a) + 1, 1, 5));
- a.g0 && (b.limit_rate = a.g0);
- a.bDa && (b.bb_reason = a.bDa);
- a.OTa && (b.tm = a.OTa);
- if (a.QW) {
- d = 0;
- g = 0;
- f = 0;
- a.pM && a.pM > this.iA.$O && (this.iA.NP[0] && (d = this.iA.NP[0] * a.QW), this.iA.NP[1] && (g = this.iA.NP[1] * a.QW), this.iA.NP[2] && (f = this.iA.NP[2] * a.QW));
- b.cpr_ss = d;
- b.cpr_ca = g;
- b.cpr_rec = f;
- }
- return this.N6a(b);
- };
- a.prototype.ama = function (a, b) {
- var c,
- d;
- try {
- c = new g(void 0, "notification");
- d = this.Fn({
- bDa: a
- });
- b && d && c.open(b, void 0, 2, void 0, void 0, void 0, d);
- } catch (f) {
- this.Am("SideChannel: Error when sending sendBlackBoxNotification. Error: " + f);
- }
- };
- a.prototype.N6a = function (a) {
- var b;
- try {
- b = this.Z7a(a);
- return this.U8a.encrypt(b);
- } catch (p) {
- this.Am("SideChannel: Error when obfuscating msg. Error: " + p);
- }
- };
- a.prototype.Z7a = function (a) {
- return Object.keys(a).map(function (b) {
- return encodeURIComponent(b) + "=" + encodeURIComponent(JSON.stringify(a[b]));
- }).join("&");
- };
- return a;
- }
- ();
- b.bxa = d;
- }, function (d, b, a) {
- var c,
- g,
- q,
- n,
- k,
- p,
- h,
- f,
- u,
- m,
- r,
- t,
- H;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.roa = void 0;
- c = a(0);
- g = a(22);
- q = a(412);
- n = a(230);
- k = a(817);
- p = a(215);
- h = a(815);
- f = a(810);
- u = a(769);
- m = a(156);
- r = a(373);
- t = a(50);
- H = a(6);
- d = function () {
- function a(a) {
- this.G = a;
- this.events = new g.EventEmitter();
- this.zo = q.gw.CLOSED;
- this.qF = [];
- this.iV = [];
- this.gx = [];
- this.l5a = new k.Fra(a);
- }
- Object.defineProperties(a.prototype, {
- state: {
- get: function () {
- return this.zo;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- XIb: {
- get: function () {
- return this.qF;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- Cyb: {
- get: function () {
- return this.iV;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- Gyb: {
- get: function () {
- return this.gx;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- ub: {
- get: function () {
- this.jD();
- return this.xu.ub;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- zm: {
- get: function () {
- this.jD();
- return this.xu.zm;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(a.prototype, {
- Gf: {
- get: function () {
- this.jD();
- return this.xu.Gf;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- a.prototype.open = function (a, b) {
- if (this.zo === q.gw.OPEN)
- return !1;
- this.eF = new u.Awa(this.yha.bind(this), a);
- this.xu = p.BD.LIa(a, b);
- this.zo = q.gw.OPEN;
- return !0;
- };
- a.prototype.H9a = function (a, b) {
- this.jD();
- a = new f.Koa(this.G, a, 100, b, this.nq.bind(this), this.eF.yM.bind(this.eF));
- this.gx.push(a);
- return a;
- };
- a.prototype.lBb = function (a) {
- this.gx = this.gx.filter(function (b) {
- return b !== a;
- });
- a.close();
- };
- a.prototype.F9a = function (a) {
- this.jD();
- a = new h.Joa(a, [0, 1]);
- this.iV.push(a);
- return a;
- };
- a.prototype.kBb = function (a) {
- this.jD();
- this.iV = this.iV.filter(function (b) {
- return b !== a;
- });
- a.Jn();
- };
- a.prototype.O9a = function (a, b, d, f) {
- var l,
- p,
- q;
- function g(a) {
- return q[a];
- }
- function h() {}
- function k(a) {
- l.events.emit("logdata", a);
- }
- l = this;
- this.jD();
- p = m.Ip.kg.gB("headers", "" + a, !1, !1, {}, f);
- p.Db();
- q = [new r.m6(0), new r.m6(1)];
- a = {
- oa: a,
- ya: b,
- config: f,
- AQ: f.sB ? c.__assign(c.__assign({}, d.AQ), {
- Am: h,
- lq: g
- }) : void 0,
- jb: function () {
- return !0;
- },
- Ri: d.Ri,
- AN: void 0,
- ub: this.xu.ub,
- Gf: this.xu.Gf,
- Mda: {
- ZG: function () {
- return !0;
- },
- ds: h,
- Ig: this.Ig.bind(this, a),
- bp: this.bp.bind(this, a),
- Gm: this.Gm.bind(this, a),
- wl: k
- },
- oga: {
- wl: k,
- OY: function () {
- return p;
- },
- lq: g,
- QZ: function () {
- return !0;
- },
- Ue: void 0,
- Mc: void 0,
- Wf: void 0,
- iy: void 0
- },
- OC: {
- wF: this.eF.wF.bind(this.eF),
- i1: this.eF.i1.bind(this.eF)
- },
- Ya: 0,
- Jk: void 0,
- Oia: {
- TZ: !1,
- nha: !1
- },
- Vp: [],
- EH: h
- };
- a = new n.MR(a);
- this.qF.push(a);
- };
- a.prototype.nq = function (a) {
- var b;
- b = t.An(this.qF, function (b) {
- return b.oa === a;
- });
- if (b)
- return b;
- };
- a.prototype.close = function () {
- this.zo !== q.gw.CLOSED && (this.aBb(), delete this.xu, this.zo = q.gw.CLOSED);
- };
- a.prototype.LQa = function (a) {
- H.assert(!a.ela.qx, "Viewable has outstanding leases");
- this.qF = this.qF.filter(function (b) {
- return b !== a;
- });
- a.close();
- a.yc();
- };
- a.prototype.yha = function () {
- var a;
- a = this.Sfa();
- return this.l5a.Swb(a);
- };
- a.prototype.Sfa = function () {
- var a;
- a = this.gx.map(function (a) {
- return a.Sfa();
- });
- return t.Xr(a);
- };
- a.prototype.jD = function () {
- if (this.zo === q.gw.CLOSED)
- throw Error("Engine CLOSED");
- };
- a.prototype.aBb = function () {
- var a,
- b;
- try {
- for (var d = c.__values(this.qF), f = d.next(); !f.done; f = d.next())
- this.LQa(f.value);
- } catch (ba) {
- a = {
- error: ba
- };
- }
- finally {
- try {
- f && !f.done && (b = d["return"]) && b.call(d);
- }
- finally {
- if (a)
- throw a.error;
- }
- }
- };
- a.prototype.Ig = function (a, b, c, d, f, g) {
- this.gx.forEach(function (h) {
- return h.Ig(b, a, c, d, f, g);
- });
- };
- a.prototype.bp = function () {
- return this.gx.some(function (a) {
- return a.bp();
- });
- };
- a.prototype.Gm = function () {
- this.gx.forEach(function (a) {
- return a.Gm();
- });
- };
- return a;
- }
- ();
- b.roa = d;
- }, function (d, b, a) {
- var c,
- g;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.construct = void 0;
- c = a(869);
- g = a(4);
- b.construct = function () {
- var a;
- a = new g.Console("ASEJS", "media|asejs");
- return new c.roa(a);
- };
- }, function (d, b, a) {
- var c;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- c = a(870);
- Object.defineProperty(b, "construct", {
- enumerable: !0,
- get: function () {
- return c.construct;
- }
- });
- }, function (d, b, a) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- d = a(0);
- d.__exportStar(a(871), b);
- d.__exportStar(a(412), b);
- d.__exportStar(a(768), b);
- d.__exportStar(a(211), b);
- d.__exportStar(a(767), b);
- d.__exportStar(a(766), b);
- d.__exportStar(a(765), b);
- d.__exportStar(a(764), b);
- d.__exportStar(a(763), b);
- }, function (d, b, a) {
- var c,
- g,
- q,
- n,
- k,
- p,
- h,
- f;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.X7 = void 0;
- c = a(0);
- d = a(22);
- g = a(4);
- q = a(872);
- n = a(11);
- k = a(6);
- p = a(762);
- h = a(754);
- f = new g.Console("ASEJS", "media|asejs");
- f.trace.bind(f);
- d = function (b) {
- var m9B;
- m9B = 2;
- while (m9B !== 20) {
- var S9B = "s";
- S9B += "0";
- switch (m9B) {
- case 14:
- d.prototype.rcb = function () {
- var Y9B;
- Y9B = 2;
- while (Y9B !== 1) {
- switch (Y9B) {
- case 4:
- this.ub.uQ(1);
- Y9B = 9;
- break;
- Y9B = 1;
- break;
- case 2:
- this.ub.uQ(null);
- Y9B = 1;
- break;
- }
- }
- };
- d.prototype.nBb = function (a) {
- var h9B,
- b;
- h9B = 2;
- while (h9B !== 6) {
- switch (h9B) {
- case 7:
- a === this.q_ && delete this.q_;
- h9B = 6;
- break;
- case 2:
- this.rcb();
- this.fg.lBb(a.sb);
- this.fg.kBb(a.$l);
- b = this.fg.nq(a.u);
- k.assert(b);
- b.ela.qx || this.fg.LQa(b);
- h9B = 7;
- break;
- }
- }
- };
- d.prototype.Jn = function () {
- var K9B;
- K9B = 2;
- while (K9B !== 9) {
- var M9B = "Attem";
- M9B += "pt to destruct ShimM";
- M9B += "anager with lates";
- M9B += "t session still def";
- M9B += "ined";
- var L9B = "Attempte";
- L9B += "d ";
- L9B += "to ";
- L9B += "destruct ShimManager with viewables present in ASE";
- var v9B = "At";
- v9B += "tempt";
- v9B += "ed t";
- v9B += "o destruct ShimManager with players presen";
- v9B += "t in ASE";
- var X9B = "Attempted ";
- X9B += "to destruct ";
- X9B += "ShimManager with playgraphs present in ASE";
- switch (K9B) {
- case 2:
- k.assert(0 === this.fg.Gyb.length, X9B);
- k.assert(0 === this.fg.Cyb.length, v9B);
- k.assert(0 === this.fg.XIb.length, L9B);
- k.assert(void 0 === this.q_, M9B);
- this.fg.close();
- K9B = 9;
- break;
- }
- }
- };
- d.Egb = S9B;
- return d;
- break;
- case 2:
- c.__extends(d, b);
- Object.defineProperties(d.prototype, {
- ub: {
- get: function () {
- var D9B;
- D9B = 2;
- while (D9B !== 1) {
- switch (D9B) {
- case 2:
- return this.fg.ub;
- break;
- case 4:
- return this.fg.ub;
- break;
- D9B = 1;
- break;
- }
- }
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(d.prototype, {
- zm: {
- get: function () {
- var G9B;
- G9B = 2;
- while (G9B !== 1) {
- switch (G9B) {
- case 4:
- return this.fg.zm;
- break;
- G9B = 1;
- break;
- case 2:
- return this.fg.zm;
- break;
- }
- }
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(d.prototype, {
- Gf: {
- get: function () {
- var O9B;
- O9B = 2;
- while (O9B !== 1) {
- switch (O9B) {
- case 2:
- return this.fg.Gf;
- break;
- case 4:
- return this.fg.Gf;
- break;
- O9B = 1;
- break;
- }
- }
- },
- enumerable: !1,
- configurable: !0
- }
- });
- m9B = 3;
- break;
- case 3:
- d.prototype.Db = function () {
- var Q9B;
- Q9B = 2;
- while (Q9B !== 1) {
- switch (Q9B) {
- case 2:
- this.fg.open(this.config, this.Yv);
- Q9B = 1;
- break;
- }
- }
- };
- d.prototype.wQ = function () {};
- d.prototype.G0 = function () {};
- d.prototype.Gn = function (a, b, c, f, g, h, k, l, q, m) {
- var E9B,
- u;
- E9B = 2;
- while (E9B !== 14) {
- var s9B = "cr";
- s9B += "ea";
- s9B += "ti";
- s9B += "ng s";
- s9B += "ession";
- switch (E9B) {
- case 9:
- u = this.Efb(a, l, g, m, f);
- c = {
- Na: m,
- offset: n.ka.Ff(c)
- };
- q = this.fg.nq(q).ela.add();
- return this.q_ = new p.axa(this.console, this, a, u, b, c, f, g, h, k, m, l, q);
- break;
- case 2:
- this.console.trace(s9B);
- this.fg.ub.reset();
- q = a.movieId;
- m = m || d.Egb;
- E9B = 9;
- break;
- }
- }
- };
- d.prototype.Efb = function (a, b, c, d, f) {
- var B9B,
- g;
- B9B = 2;
- while (B9B !== 9) {
- switch (B9B) {
- case 2:
- g = Number(a.movieId);
- this.fg.nq(g) || this.fg.O9a(g, a, {
- Ri: !!f.Ri,
- AQ: {
- vC: c.vC,
- fa: c.fa,
- Mx: c.Mx
- }
- }, b);
- a = a.choiceMap ? h.QDa(a.choiceMap) : h.BSa(g, d);
- return this.fg.H9a(a, b);
- break;
- }
- }
- };
- m9B = 14;
- break;
- }
- }
- function d(c, d) {
- var r9B,
- g;
- r9B = 2;
- while (r9B !== 13) {
- var n9B = "1SIYb";
- n9B += "ZrN";
- n9B += "JCp9";
- var b9B = "DE";
- b9B += "B";
- b9B += "UG:";
- var F9B = "nf";
- F9B += "-ase";
- F9B += " shim vers";
- F9B += "ion";
- F9B += ":";
- switch (r9B) {
- case 3:
- c = a(371);
- g.console = f;
- r9B = 8;
- break;
- case 2:
- g = b.call(this) || this;
- g.config = c;
- g.Yv = d;
- r9B = 3;
- break;
- case 8:
- g.console.trace(F9B, c, b9B, !1);
- g.fg = q.construct();
- n9B;
- return g;
- break;
- }
- }
- }
- }
- (d.EventEmitter);
- b.X7 = d;
- }, function (d) {
- function b(a, b, d, g) {
- a.trace(":", d, ":", g);
- b(g);
- }
- function a(a) {
- this.listeners = [];
- this.console = a;
- }
- a.prototype.constructor = a;
- a.prototype.addListener = function (a, d, g, n) {
- g = n ? g.bind(n) : g;
- if (a) {
- this.console && (g = b.bind(null, this.console, g, d));
- if ("function" === typeof a.addListener)
- a.addListener(d, g);
- else if ("function" === typeof a.addEventListener)
- a.addEventListener(d, g);
- else
- throw Error("Emitter does not have a function to add listeners for '" + d + "'");
- this.listeners.push([a, d, g]);
- }
- return this;
- };
- a.prototype.on = a.prototype.addListener;
- a.prototype.clear = function () {
- var a;
- a = this.listeners.length;
- this.listeners.forEach(function (a) {
- var b,
- c;
- b = a[0];
- c = a[1];
- a = a[2];
- "function" === typeof b.removeEventListener ? b.removeEventListener(c, a) : "function" === typeof b.removeListener && b.removeListener(c, a);
- });
- this.listeners = [];
- this.console && this.console.trace("removed", a, "listener(s)");
- };
- d.P = a;
- }, function (d, b, a) {
- var c,
- g,
- q,
- n,
- k,
- p;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Dta = void 0;
- c = a(0);
- g = a(22);
- q = a(873);
- n = a(753);
- k = a(215);
- d = new(a(4)).Console("ASEJS", "media|asejs");
- d.trace.bind(d);
- p = ["prebuffstats", "discardedBytes", "flushedBytes", "cacheEvict", "mediacache"];
- d = function (a) {
- function b(b, c) {
- var d;
- d = a.call(this) || this;
- d.K = b;
- d.Eb = new n.Vsa(b, c);
- b.EX && (d.Ok = new q.X7(b, c));
- d.Ak = new g.Ll();
- p.forEach(function (a) {
- d.Ak.on(d.Eb, a, function (b) {
- return d.emit(a, b);
- });
- d.Ok && d.Ak.on(d.Ok, a, function (b) {
- return d.emit(a, b);
- });
- });
- return d;
- }
- c.__extends(b, a);
- Object.defineProperties(b.prototype, {
- ub: {
- get: function () {
- return this.Eb.ub;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- zm: {
- get: function () {
- return this.Eb.zm;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- zp: {
- get: function () {
- return this.Eb.zp;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- Yy: {
- get: function () {
- return this.Eb.Yy;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- tha: {
- get: function () {
- return this.Eb.tha;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- $C: {
- get: function () {
- return this.Eb.$C;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- Ue: {
- get: function () {
- return this.Eb.Ue;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- Gf: {
- get: function () {
- return this.Eb.Gf;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- Fga: {
- get: function () {
- return this.Eb.Fga;
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- G0: {
- get: function () {
- return this.Eb.G0.bind(this.Eb);
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- BO: {
- get: function () {
- return this.Eb.BO.bind(this.Eb);
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- iia: {
- get: function () {
- return this.Eb.iia.bind(this.Eb);
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- gSa: {
- get: function () {
- return this.Eb.gSa.bind(this.Eb);
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- rY: {
- get: function () {
- return this.Eb.rY.bind(this.Eb);
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- YIa: {
- get: function () {
- return this.Eb.YIa.bind(this.Eb);
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- nv: {
- get: function () {
- return this.Eb.nv.bind(this.Eb);
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- VDa: {
- get: function () {
- return this.Eb.VDa.bind(this.Eb);
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- K2: {
- get: function () {
- return this.Eb.K2.bind(this.Eb);
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- tW: {
- get: function () {
- return this.Eb.tW.bind(this.Eb);
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- vM: {
- get: function () {
- return this.Eb.vM.bind(this.Eb);
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- mba: {
- get: function () {
- return this.Eb.mba.bind(this.Eb);
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- wM: {
- get: function () {
- return this.Eb.wM.bind(this.Eb);
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- sW: {
- get: function () {
- return this.Eb.sW.bind(this.Eb);
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- sDa: {
- get: function () {
- return this.Eb.sDa.bind(this.Eb);
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- rDa: {
- get: function () {
- return this.Eb.rDa.bind(this.Eb);
- },
- enumerable: !1,
- configurable: !0
- }
- });
- Object.defineProperties(b.prototype, {
- SRa: {
- get: function () {
- return this.Eb.SRa.bind(this.Eb);
- },
- enumerable: !1,
- configurable: !0
- }
- });
- b.prototype.Db = function (a, b, c, d, f, g) {
- this.Eb.Db(a, b, c, d, f, g);
- this.Ok ? this.Ok.Db(a, b, c, d, f, g) : this.oLa = {
- U$a: a,
- PIb: b,
- Wfb: c,
- Yy: d,
- $C: f,
- pub: g
- };
- };
- b.prototype.wQ = function (a, b, c) {
- this.Eb.wQ(a, b, c);
- this.Ok ? this.Ok.wQ(a, b, c) : this.rLa = {
- sFb: a,
- Yy: b,
- $C: c
- };
- };
- b.prototype.Gn = function (a, b, c, d, f, g, h, k, l, n) {
- var m,
- u,
- r,
- t;
- m = this;
- if (this.Eb.config.EX && !this.Ok) {
- this.Ok = new q.X7(this.Eb.config, this.Eb.Yv);
- p.forEach(function (a) {
- m.Ak.on(m.Ok, a, function (b) {
- return m.emit(a, b);
- });
- });
- if (this.oLa) {
- u = this.oLa;
- r = u.Yy;
- t = u.$C;
- this.Ok.Db(u.U$a, u.PIb, u.Wfb, r, t, u.pub);
- }
- this.rLa && (t = this.rLa, u = t.sFb, r = t.Yy, t = t.$C, this.Ok.wQ(u, r, t));
- }
- return this.Ok && k.ZI ? this.Ok.Gn(a, b, c, d, f, g, h, k, l, n) : this.Eb.Gn(a, b, c, d, f, g, h, k, l, n);
- };
- b.prototype.addEventListener = function (a, b) {
- this.addListener(a, b);
- return !0;
- };
- b.prototype.removeEventListener = function (a, b) {
- this.removeListener(a, b);
- return !0;
- };
- b.prototype.Jn = function () {
- var a;
- this.Ak.clear();
- this.Eb.Jn();
- null === (a = this.Ok) || void 0 === a ? void 0 : a.Jn();
- k.BD.reset();
- };
- return b;
- }
- (g.EventEmitter);
- b.Dta = d;
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- }, function (d, b) {
- var a;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.ma = void 0;
- d = a || (a = {});
- d[d.Pg = 0] = "STARTING";
- d[d.Ce = 1] = "BUFFERING";
- d[d.Ng = 2] = "REBUFFERING";
- d[d.Pc = 3] = "PLAYING";
- d[d.pE = 4] = "STOPPING";
- d[d.$m = 5] = "STOPPED";
- d[d.Lh = 6] = "PAUSED";
- b.ma = a;
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- }, function (d, b, a) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- d = a(0);
- d.__exportStar(a(900), b);
- d.__exportStar(a(899), b);
- d.__exportStar(a(898), b);
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- }, function (d, b) {
- var a;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Ye = void 0;
- d = a || (a = {});
- d[d.$m = 0] = "STOPPED";
- d[d.Ce = 1] = "BUFFERING";
- d[d.Ng = 2] = "REBUFFERING";
- d[d.NT = 3] = "STREAMING";
- b.Ye = a;
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- }, function (d, b, a) {
- var c,
- g,
- q;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Eta = void 0;
- c = a(0);
- g = a(1);
- q = a(249);
- d = function () {
- var b;
- function a(a) {
- this.Oib = a;
- this.Gtb = {
- Kn: "drmType",
- sSb: "drmVersion",
- Sda: "expiration",
- ITb: "isUsingLegacyBatchingAPI",
- vx: "bookmark",
- u: "movieId",
- xl: "packageId",
- duration: "duration",
- pg: "playbackContextId",
- oFa: ["defaultTrackOrderList", {
- nH: "mediaId",
- JWb: "videoTrackId",
- IFb: "subtitleTrackId",
- RA: "audioTrackId",
- fVb: "preferenceOrder"
- }
- ],
- sk: "drmContextId",
- gpb: "hasDrmProfile",
- epb: "hasClearProfile",
- mZ: "hasDrmStreams",
- fpb: "hasClearStreams",
- um: ["locations", {
- Xf: "rank",
- level: "level",
- weight: "weight",
- key: "key"
- }
- ],
- links: ["links", {}
- ],
- Nq: ["servers", {
- id: "id",
- name: "name",
- type: "type",
- Xf: "rank",
- WLa: "lowgrade",
- zhb: ["dns", {
- host: "host",
- Cqb: "ipv4",
- Dqb: "ipv6",
- okb: "forceLookup"
- }
- ],
- key: "key"
- }
- ],
- MCa: ["audio_tracks", {
- type: "type",
- Tm: "trackType",
- Aq: "new_track_id",
- xna: "track_id",
- Fzb: "profileType",
- fFb: "stereo",
- profile: "profile",
- Ko: "channels",
- language: "language",
- Vbb: "channelsFormat",
- WFb: "surroundFormatLabel",
- h_: "languageDescription",
- mSb: "disallowedSubtitleTracks",
- bSb: "defaultTimedText",
- isNative: "isNative",
- ic: ["streams", {
- jda: "downloadable_id",
- size: "size",
- PF: "content_profile",
- Tm: "trackType",
- O: "bitrate",
- bv: "isDrm",
- se: ["urls", {
- DDa: "cdn_id",
- url: "url"
- }
- ],
- Gvb: "new_stream_id",
- type: "type",
- Ko: "channels",
- Vbb: "channelsFormat",
- WFb: "surroundFormatLabel",
- language: "language",
- YQb: "audioKey"
- }
- ],
- Ccb: "codecName",
- OP: "rawTrackType",
- id: "id"
- }
- ],
- ew: ["video_tracks", {
- Tm: "trackType",
- Aq: "new_track_id",
- type: "type",
- xna: "track_id",
- gpb: "hasDrmProfile",
- epb: "hasClearProfile",
- mZ: "hasDrmStreams",
- fpb: "hasClearStreams",
- ic: ["streams", {
- jda: "downloadable_id",
- size: "size",
- PF: "content_profile",
- Tm: "trackType",
- O: "bitrate",
- bv: "isDrm",
- se: ["urls", {
- DDa: "cdn_id",
- url: "url"
- }
- ],
- Gvb: "new_stream_id",
- type: "type",
- ZUb: "peakBitrate",
- nhb: "dimensionsCount",
- ohb: "dimensionsLabel",
- dyb: "pix_w",
- cyb: "pix_h",
- MBb: "res_w",
- LBb: "res_h",
- Ufb: "crop_x",
- Vfb: "crop_y",
- Tfb: "crop_w",
- Sfb: "crop_h",
- vkb: "framerate_value",
- ukb: "framerate_scale",
- $Vb: "startByteOffset",
- wc: "vmaf"
- }
- ],
- Fzb: "profileType",
- fFb: "stereo",
- profile: "profile",
- nhb: "dimensionsCount",
- ohb: "dimensionsLabel",
- mda: ["drmHeader", {
- ba: "bytes",
- dcb: "checksum",
- js: "keyId"
- }
- ],
- XH: ["prkDrmHeaders", {
- ba: "bytes",
- dcb: "checksum",
- js: "keyId",
- cRa: ["resolution", {
- height: "height",
- width: "width"
- }
- ]
- }
- ],
- Vx: "flavor",
- uTb: "ict",
- maxWidth: "maxWidth",
- maxHeight: "maxHeight",
- gyb: "pixelAspectX",
- hyb: "pixelAspectY",
- bUb: "maxCroppedWidth",
- aUb: "maxCroppedHeight",
- cUb: "maxCroppedX",
- dUb: "maxCroppedY",
- gUb: "max_framerate_value",
- fUb: "max_framerate_scale",
- minWidth: "minWidth",
- minHeight: "minHeight",
- sUb: "minCroppedWidth",
- rUb: "minCroppedHeight",
- tUb: "minCroppedX",
- uUb: "minCroppedY",
- Fg: ["license", {
- qsb: "licenseResponseBase64",
- mVb: "providerSessionToken",
- rSb: "drmSessionId",
- links: ["links", {}
- ]
- }
- ]
- }
- ],
- CDa: ["cdnResponseData", {
- TC: "sessionABTestCell",
- vC: "pbcid"
- }
- ],
- uu: ["choiceMap", {
- Th: "initialSegment",
- type: "type",
- oa: "viewableId",
- Va: ["segments", {
- Nw: [q.Nw, {
- sf: "startTimeMs",
- Bg: "endTimeMs",
- next: ["next", {
- Nw: [q.Nw, {
- weight: "weight"
- }
- ]
- }
- ],
- ol: "defaultNext"
- }
- ]
- }
- ]
- }
- ],
- oqb: ["initialHeader", {
- $: ["fragments", {
- na: "endPts"
- }
- ]
- }
- ],
- media: ["media", {
- id: "id",
- Fl: ["tracks", {
- AUDIO: "AUDIO",
- h8: "TEXT",
- VIDEO: "VIDEO"
- }
- ]
- }
- ],
- vGb: ["timedtexttracks", {
- Tm: "trackType",
- Aq: "new_track_id",
- type: "type",
- OP: "rawTrackType",
- h_: "languageDescription",
- language: "language",
- id: "id",
- jha: "isNoneTrack",
- fha: "isForcedNarrative",
- Jhb: ["downloadableIds", {}
- ],
- Qbb: ["cdnlist", {
- id: "id",
- name: "name",
- type: "type",
- Xf: "rank",
- WLa: "lowgrade",
- zhb: ["dns", {
- host: "host",
- Cqb: "ipv4",
- Dqb: "ipv6",
- okb: "forceLookup"
- }
- ],
- key: "key"
- }
- ],
- iHb: ["ttDownloadables", {
- Nw: [q.Nw, {
- size: "size",
- hWb: "textKey",
- mTb: "hashValue",
- lTb: "hashAlgo",
- CTb: "isImage",
- O_: "midxOffset",
- bja: "midxSize",
- height: "height",
- width: "width",
- Fu: ["downloadUrls", {}
- ]
- }
- ]
- }
- ],
- YZ: "isLanguageLeftToRight"
- }
- ],
- eHb: ["trickplays", {
- jda: "downloadable_id",
- size: "size",
- se: "urls",
- id: "id",
- interval: "interval",
- jyb: "pixelsAspectY",
- iyb: "pixelsAspectX",
- width: "width",
- height: "height"
- }
- ],
- qVa: ["watermarkInfo", {
- opacity: "opacity",
- id: "id",
- anchor: "anchor"
- }
- ],
- qSb: "dpsid",
- Zi: "isBranching",
- KWb: "viewableType",
- VB: "isSupplemental",
- vcb: "clientIpAddress",
- xWb: "urlExpirationDuration",
- XTb: "manifestExpirationDuration",
- aWb: ["steeringAdditionalInfo", {
- bWb: "steeringId",
- SQb: "additionalGroupNames",
- cWb: ["streamingClientConfig", {}
- ]
- }
- ]
- };
- }
- a.prototype.nG = function (a) {
- this.Oib.nG(a, this.Gtb);
- };
- b = a;
- return b = c.__decorate([g.N(), c.__param(0, g.l(q.C4))], b);
- }
- ();
- b.Eta = d;
- }, function (d, b, a) {
- var c,
- g,
- q,
- n,
- k,
- p,
- h;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Fta = void 0;
- c = a(0);
- g = a(417);
- q = a(1);
- n = a(39);
- k = a(3);
- p = a(416);
- h = a(415);
- d = function () {
- var b;
- function a(a, b, c, d) {
- this.Ga = a;
- this.Htb = b;
- this.ssb = c;
- this.Etb = d;
- }
- a.prototype.create = function (a) {
- var b;
- b = this.ssb();
- this.Yqb(a) ? (a.clientGenesis = a.clientGenesis || this.Ga.jf.ca(k.ia), a = this.Htb.decode(a), b.u9a(a)) : b.maa(a.links);
- this.Etb.nG(a);
- return {
- Uf: a,
- Jj: b
- };
- };
- a.prototype.Yqb = function (a) {
- return !!a.runtime;
- };
- b = a;
- return b = c.__decorate([q.N(), c.__param(0, q.l(n.Ii)), c.__param(1, q.l(g.Z5)), c.__param(2, q.l(p.Y6)), c.__param(3, q.l(h.V5))], b);
- }
- ();
- b.Fta = d;
- }, function (d, b, a) {
- var c,
- g,
- q;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Jta = void 0;
- c = a(0);
- g = a(1);
- q = a(234);
- d = function () {
- var b;
- function a() {}
- a.prototype.decode = function (a) {
- var b,
- c;
- b = this.Rnb(a.cdns);
- c = this.gmb(a);
- return {
- movieId: a.movieId,
- packageId: a.packageId,
- duration: a.runtime,
- locations: this.pfa(a.locations),
- servers: b,
- audio_tracks: this.getAudioTracks(a.audioTracks),
- video_tracks: this.getVideoTracks(a.videoTracks, a.videoEncrypted ? a.psshb64 : void 0),
- cdnResponseData: a.cdnResponseData,
- isSupplemental: a.isSupplemental,
- choiceMap: a.branchMap,
- watermarkInfo: a.watermark,
- drmVersion: 0,
- playbackContextId: a.playbackContextId,
- bookmark: a.bookmark.position / 1E3,
- hasDrmProfile: !0,
- hasDrmStreams: a.videoEncrypted,
- hasClearProfile: !1,
- hasClearStreams: !a.videoEncrypted,
- defaultTrackOrderList: this.Nlb(a),
- timedtexttracks: this.kob(a.textTracks, b),
- media: this.GG(a.media),
- trickplays: this.qob(a.trickPlayTracks),
- drmContextId: a.drmContextId,
- dpsid: null,
- isBranching: !!a.branchMap,
- clientIpAddress: a.clientIpAddress,
- drmType: "",
- expiration: c.Sda,
- urlExpirationDuration: c.ZUa,
- manifestExpirationDuration: c.ZUa,
- initialHeader: void 0,
- steeringAdditionalInfo: null,
- viewableType: ""
- };
- };
- a.prototype.Nlb = function (a) {
- var b,
- c,
- d;
- b = S(a.defaultMedia.split("|"));
- c = b.next().value;
- d = b.next().value;
- b = b.next().value;
- return [{
- mediaId: a.defaultMedia,
- audioTrackId: c,
- videoTrackId: d,
- subtitleTrackId: b,
- preferenceOrder: 0
- }
- ];
- };
- a.prototype.pfa = function (a) {
- return a ? a.map(function (a) {
- return {
- key: a.id,
- rank: a.rank,
- level: a.level,
- weight: a.weight
- };
- }) : [];
- };
- a.prototype.Rnb = function (a) {
- return a ? a.map(function (a) {
- return {
- name: a.name,
- type: a.type,
- id: Number(a.id),
- key: a.locationId,
- rank: a.rank,
- lowgrade: a.isLowgrade
- };
- }) : [];
- };
- a.prototype.rJa = function (a) {
- return Object.keys(a).map(function (b) {
- return {
- cdn_id: Number(b),
- url: a[b]
- };
- });
- };
- a.prototype.getAudioTracks = function (a) {
- var b;
- b = this;
- return a ? a.map(function (a) {
- var c;
- c = a.downloadables;
- return {
- type: 0,
- channels: a.channels,
- language: a.bcp47,
- languageDescription: a.language,
- trackType: a.trackType,
- streams: b.Ykb(c, a),
- channelsFormat: a.channelsLabel,
- surroundFormatLabel: a.channelsLabel,
- profile: c && c.length ? c[0].contentProfile : void 0,
- rawTrackType: a.trackType.toLowerCase(),
- new_track_id: a.id,
- track_id: a.id,
- id: a.id,
- disallowedSubtitleTracks: [],
- defaultTimedText: null,
- isNative: !1,
- profileType: "",
- stereo: !1,
- codecName: "AAC"
- };
- }) : [];
- };
- a.prototype.Ykb = function (a, b) {
- var c;
- c = this;
- return a ? (a = a.map(function (a) {
- return {
- type: 0,
- trackType: b.trackType,
- content_profile: a.contentProfile,
- downloadable_id: a.downloadableId,
- bitrate: a.bitrate,
- language: b.bcp47,
- urls: c.rJa(a.urls),
- isDrm: !!a.isEncrypted,
- new_stream_id: a.id,
- size: a.size,
- channels: b.channels,
- channelsFormat: "2.0",
- surroundFormatLabel: "2.0",
- audioKey: null
- };
- }), a.sort(function (a, b) {
- return a.bitrate - b.bitrate;
- }), a) : [];
- };
- a.prototype.getVideoTracks = function (a, b) {
- var c;
- c = this;
- return a ? a.map(function (a) {
- return {
- type: 1,
- trackType: "PRIMARY",
- streams: c.Aob(a.downloadables, a.trackType),
- profile: "",
- new_track_id: a.id,
- track_id: a.id,
- dimensionsCount: 2,
- dimensionsLabel: "2D",
- hasDrmProfile: !0,
- hasDrmStreams: !!b,
- hasClearProfile: !1,
- hasClearStreams: !b,
- drmHeader: b && b.length ? {
- bytes: b[0],
- checksum: "",
- keyId: b[0].substr(b.length - 25)
- }
- : void 0,
- prkDrmHeaders: void 0,
- flavor: void 0,
- ict: !1,
- profileType: "",
- stereo: !1,
- maxWidth: 0,
- maxHeight: 0,
- pixelAspectX: 1,
- pixelAspectY: 1,
- max_framerate_value: 0,
- max_framerate_scale: 256,
- minCroppedWidth: 0,
- minCroppedHeight: 0,
- minCroppedX: 0,
- minCroppedY: 0,
- maxCroppedWidth: 0,
- maxCroppedHeight: 0,
- maxCroppedX: 0,
- maxCroppedY: 0,
- minWidth: 0,
- minHeight: 0
- };
- }) : [];
- };
- a.prototype.Aob = function (a, b) {
- var c;
- c = this;
- return a ? (a = a.map(function (a) {
- return {
- type: 1,
- trackType: b,
- content_profile: a.contentProfile,
- downloadable_id: a.downloadableId,
- bitrate: a.bitrate,
- urls: c.rJa(a.urls),
- pix_w: a.width,
- pix_h: a.height,
- res_w: a.width,
- res_h: a.height,
- hdcp: a.hdcpVersions,
- vmaf: a.vmaf,
- size: a.size,
- isDrm: a.isEncrypted,
- new_stream_id: "0",
- peakBitrate: 0,
- dimensionsCount: 2,
- dimensionsLabel: "2D",
- startByteOffset: 0,
- framerate_value: a.framerate_value,
- framerate_scale: a.framerate_scale,
- crop_x: a.cropParamsX,
- crop_y: a.cropParamsY,
- crop_w: a.cropParamsWidth,
- crop_h: a.cropParamsHeight
- };
- }), a.sort(function (a, b) {
- return a.bitrate - b.bitrate;
- }), a) : [];
- };
- a.prototype.kob = function (a, b) {
- var c;
- c = this;
- return a ? a.map(function (a) {
- return {
- type: "timedtext",
- trackType: "SUBTITLES" === a.trackType ? "PRIMARY" : "ASSISTIVE",
- rawTrackType: a.trackType.toLowerCase(),
- language: a.bcp47 || null,
- languageDescription: a.language,
- new_track_id: a.id,
- id: a.id,
- isNoneTrack: a.isNone,
- isForcedNarrative: a.isForced,
- downloadableIds: c.fob(a.downloadables),
- ttDownloadables: c.gob(a.downloadables),
- isLanguageLeftToRight: !!a.isLanguageLeftToRight,
- cdnlist: b
- };
- }) : [];
- };
- a.prototype.fob = function (a) {
- return a ? a.reduce(function (a, b) {
- a[b.contentProfile] = b.downloadableId;
- return a;
- }, {}) : {};
- };
- a.prototype.tnb = function (a) {
- var b;
- b = q.TT.Gfa();
- a = a.filter(function (a) {
- return a.isImage;
- });
- return 0 === a.length ? b : 0 < a.filter(function (a) {
- return a.pixHeight === b;
- }).length ? b : Math.min.apply(Math, [].concat(Y(a.map(function (a) {
- return a.pixHeight;
- }))));
- };
- a.prototype.gob = function (a) {
- var b;
- if (a) {
- b = this.tnb(a);
- return a.reduce(function (a, c) {
- c.isImage && c.pixHeight !== b || (a[c.contentProfile] = {
- size: c.size,
- textKey: null,
- isImage: c.isImage,
- midxOffset: c.offset,
- height: c.pixHeight,
- width: c.pixWidth,
- downloadUrls: c.urls,
- hashValue: "",
- hashAlgo: "sha1",
- midxSize: void 0
- });
- return a;
- }, {});
- }
- return {};
- };
- a.prototype.GG = function (a) {
- return a ? a.map(function (a) {
- return {
- id: a.mediaId,
- tracks: {
- AUDIO: a.tracks.find(function (a) {
- return "AUDIO" === a.type;
- }).id,
- VIDEO: a.tracks.find(function (a) {
- return "VIDEO" === a.type;
- }).id,
- TEXT: a.tracks.find(function (a) {
- return "TEXT" === a.type;
- }).id
- }
- };
- }) : [];
- };
- a.prototype.qob = function (a) {
- var b;
- if (a) {
- b = [];
- a.map(function (a) {
- a.downloadables.map(function (a) {
- b.push({
- downloadable_id: a.downloadableId,
- size: a.size,
- urls: Object.keys(a.urls).map(function (b) {
- return a.urls[b];
- }),
- id: a.id,
- interval: a.interval,
- pixelsAspectY: a.pixWidth,
- pixelsAspectX: a.pixHeight,
- width: a.resWidth,
- height: a.resHeight
- });
- });
- });
- return b;
- }
- return [];
- };
- a.prototype.gmb = function (a) {
- var b;
- b = 0;
- a.videoTracks.forEach(function (a) {
- a.downloadables && a.downloadables.forEach(function (a) {
- b = b ? Math.min(a.validFor, b) : a.validFor;
- });
- });
- a.audioTracks.forEach(function (a) {
- a.downloadables && a.downloadables.forEach(function (a) {
- b = b ? Math.min(a.validFor, b) : a.validFor;
- });
- });
- return {
- ZUa: 1E3 * b,
- Sda: a.clientGenesis + 1E3 * b
- };
- };
- a.prototype.encode = function () {
- throw Error("encode not supported");
- };
- b = a;
- return b = c.__decorate([g.N()], b);
- }
- ();
- b.Jta = d;
- }, function (d, b) {
- function a(a) {
- this.gc = a;
- this.fb = JSON.stringify(this.Lmb());
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Kta = void 0;
- a.prototype.Lmb = function () {
- var a;
- a = [];
- (!this.gc.yj || 0 >= this.gc.yj.length) && a.push({
- error: "No CDN."
- });
- this.gc.eX || a.push({
- error: "No default audio track.",
- foundTracks: this.efa(this.gc.Bn)
- });
- this.gc.Qca || a.push({
- error: "No default video track.",
- foundTracks: this.efa(this.gc.Um)
- });
- this.gc.Pca || a.push({
- error: "No default subtitle track.",
- foundTracks: this.efa(this.gc.Qk)
- });
- return a;
- };
- a.prototype.efa = function (a) {
- return a && 0 < a.length ? a.map(function (a) {
- return a.eb;
- }) : "No tracks found.";
- };
- b.Kta = a;
- }, function (d, b, a) {
- var c,
- g,
- q,
- n,
- k,
- p,
- h;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Gta = void 0;
- c = a(0);
- g = a(1);
- q = a(40);
- n = a(28);
- k = a(41);
- p = a(140);
- h = a(48);
- d = function () {
- var b;
- function a(a, b) {
- a = q.fe.call(this, a, "ManifestParserConfigImpl") || this;
- a.hm = b;
- return a;
- }
- da(a, q.fe);
- pa.Object.defineProperties(a.prototype, {
- $ma: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return [];
- }
- },
- vea: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return "";
- }
- },
- vba: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return [];
- }
- },
- uba: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return [];
- }
- },
- xea: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return "";
- }
- },
- Hga: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return 0;
- }
- },
- RI: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.hm.RI.ca(h.Zq);
- }
- },
- Zv: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.hm.Zv;
- }
- }
- });
- b = a;
- c.__decorate([k.config(k.r2, "supportedAudioTrackTypes")], b.prototype, "$ma", null);
- c.__decorate([k.config(k.string, "forceAudioTrack")], b.prototype, "vea", null);
- c.__decorate([k.config(k.Hna, "cdnIdWhiteList")], b.prototype, "vba", null);
- c.__decorate([k.config(k.Hna, "cdnIdBlackList")], b.prototype, "uba", null);
- c.__decorate([k.config(k.string, "forceTimedTextTrack")], b.prototype, "xea", null);
- c.__decorate([k.config(k.cw, "imageSubsResolution")], b.prototype, "Hga", null);
- c.__decorate([k.config(k.cw, "timedTextSimpleFallbackThreshold")], b.prototype, "RI", null);
- c.__decorate([k.config(k.r2, "timedTextProfiles")], b.prototype, "Zv", null);
- return b = c.__decorate([g.N(), c.__param(0, g.l(n.Li)), c.__param(1, g.l(p.iE))], b);
- }
- ();
- b.Gta = d;
- }, function (d, b, a) {
- var g,
- q,
- n,
- k;
- function c(a, b) {
- return q.WJ.call(this, a, b) || this;
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.vya = void 0;
- g = a(112);
- q = a(422);
- n = a(77);
- k = a(130);
- da(c, q.WJ);
- c.prototype.Bxb = function (a) {
- var b,
- c;
- b = this;
- a = S(g.As(function (a) {
- return a.ic && 0 < a.ic.length;
- }, a));
- c = a.next().value;
- a.next().value.forEach(function (a) {
- return b.log.warn("Video track is missing streams", {
- trackId: a.Aq
- });
- });
- a = c.map(function (a) {
- var c;
- c = a.Tm;
- c = {
- type: n.Mg.video,
- eb: a.Aq,
- QB: a.xna,
- Tm: k.WT[c.toLowerCase()] || k.hn.hE,
- OP: c,
- ic: [],
- eh: {},
- XH: a.XH
- };
- c.ic = b.bUa(a.ic, c);
- b.log.trace("Transformed video track", {
- StreamCount: c.ic.length
- });
- return c;
- });
- if (!a.length)
- throw Error("No valid video tracks");
- this.log.trace("Transformed video tracks", {
- Count: a.length
- });
- return a;
- };
- c.prototype.xxb = function (a) {
- var b;
- b = a.map(function (a) {
- return a.XH;
- }).filter(Boolean);
- b = [].concat.apply([], [].concat(Y(b))).map(function (a) {
- return a.ba;
- });
- a = a.map(function (a) {
- return a.mda;
- }).filter(Boolean).map(function (a) {
- return a.ba;
- });
- return 0 < b.length ? b : a;
- };
- b.vya = c;
- }, function (d, b, a) {
- var g,
- q,
- n,
- k,
- p;
- function c(a, b, c, d) {
- a = q.WJ.call(this, a, d) || this;
- a.config = b;
- a.j = c;
- return a;
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Uoa = void 0;
- g = a(448);
- q = a(422);
- n = a(112);
- k = a(77);
- p = a(130);
- da(c, q.WJ);
- c.prototype.nxb = function (a, b, c) {
- var d,
- f,
- h;
- d = this;
- a = S(n.As(function (a) {
- return a.ic && 0 < a.ic.length;
- }, a));
- f = a.next().value;
- //console.log(f);
- a.next().value.forEach(function (a) {
- return d.log.warn("Audio track is missing streams", d.pJa(a));
- });
- h = this.config.$ma;
- a = S(n.As(function (a) {
- return 0 === h.length || 0 <= h.indexOf(a.Tm);
- }, f));
- f = a.next().value;
- a.next().value.forEach(function (a) {
- return d.log.warn("Audio track is not supported", d.pJa(a));
- });
- a = f.map(function (a) {
- var f;
- f = a.Tm;
- f = {
- type: k.Mg.audio,
- eb: a.Aq,
- QB: a.xna,
- Tm: p.WT[f.toLowerCase()] || p.hn.hE,
- OP: f,
- ll: a.language,
- displayName: a.h_ + " - " + a.codecName + " - " + a.surroundFormatLabel,
- Ko: a.Ko,
- ERb: a.Ko,
- DRb: Number(a.Ko[0]),
- Qk: d.Vkb(a.Aq, b, c),
- eh: {
- Bcp47: a.language,
- TrackId: a.Aq
- },
- ic: [],
- isNative: a.isNative
- };
- f.ic = d.bUa(a.ic, f);
- d.log.trace("Transformed audio track", f, {
- StreamCount: f.ic.length,
- AllowedTimedTextTracks: f.Qk.length
- });
- f.Ccb = g.s3[f.ic[0].Vf];
- return f;
- });
- if (!a.length)
- throw Error("no valid audio tracks");
- this.log.trace("Transformed audio tracks", {
- Count: a.length
- });
- return a;
- };
- c.prototype.aab = function (a) {
- var b,
- c;
- b = this;
- c = this.config.vea;
- if (c) {
- if (a = S(a.filter(function (a) {
- return a.ll == c || a.eb == c;
- })).next().value)
- return a;
- } else if (this.j.cY && (a = S(a.filter(function (a) {
- return a.eb == b.j.cY;
- })).next().value))
- return a;
- };
- c.prototype.pJa = function (a) {
- return {
- language: a.h_,
- bcp47: a.language,
- type: a.Tm
- };
- };
- c.prototype.Vkb = function (a, b, c) {
- return b.filter(function (b) {
- return b.Fl.AUDIO === a;
- }).map(function (a) {
- return a.Fl.h8;
- }).map(function (a) {
- return c.find(function (b) {
- return b.eb === a;
- });
- }).filter(Boolean);
- };
- b.Uoa = c;
- }, function (d, b) {
- function a(a, b, d) {
- this.log = a;
- this.j = b;
- this.Cna = d;
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Zxa = void 0;
- a.prototype.Axb = function (a) {
- var b;
- b = this;
- a = (a || []).filter(function (a) {
- return a.se && 0 < a.se.length;
- }).map(function (a) {
- return b.Cna(b.j, a.id, a.height, a.width, a.iyb, a.jyb, a.size, {
- unknown: a.se[0]
- });
- });
- 0 === a.length && this.log.warn("There are no trickplay tracks");
- a.sort(function (a, b) {
- return a.size - b.size;
- });
- this.log.trace("Transformed trick play tracks", {
- Count: a.length
- });
- return a;
- };
- b.Zxa = a;
- }, function (d, b) {
- function a(a, b, d, g, k) {
- this.wba = a;
- this.xTa = b;
- this.bHb = d;
- this.KCa = g;
- this.hVa = k;
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Ita = void 0;
- a.prototype.Xja = function (a) {
- var b,
- c,
- d,
- g,
- p,
- h,
- f,
- m,
- r,
- t,
- C,
- H,
- D,
- K,
- J;
- b = a.Uf;
- a = this.wba.FOa(b.Nq, b.um, !0);
- c = this.xTa.zxb(b.vGb);
- d = this.bHb.Axb(b.eHb);
- g = this.KCa.nxb(b.MCa, b.media, c);
- p = this.hVa.Bxb(b.ew);
- h = this.wxb(b, g, c);
- f = h[0];
- m = p[0];
- r = this.KCa.aab(g) || f.ld || g[0];
- f = this.xTa.sGb(r.Qk) || f.vc || r.Qk[0];
- t = this.hVa.xxb(b.ew);
- C = b.pg;
- H = b.vcb;
- D = b.mZ;
- K = b.sk;
- J = b.MCa.findIndex(function (a) {
- return a.Aq == r.eb;
- });
- b = b.ew.findIndex(function (a) {
- return a.Aq == m.eb;
- });
- return {
- Hq: t,
- yj: a,
- Bn: g,
- Um: p,
- Qk: c,
- aw: d,
- pg: C,
- uDb: H,
- fv: D,
- sk: K,
- jFa: J,
- pFa: b,
- R0: h,
- Qca: m,
- eX: r,
- Pca: f
- };
- };
- a.prototype.wxb = function (a, b, d) {
- var c,
- g;
- c = [];
- g = a.oFa[0];
- c.push({
- ld: b.find(function (a) {
- return a.QB === g.RA;
- }),
- vc: d.find(function (a) {
- return a.QB === g.IFb;
- }),
- gVb: 0
- });
- return c;
- };
- b.Ita = a;
- }, function (d, b, a) {
- var g,
- q,
- n,
- k;
- function c(a, b, c, d, g) {
- this.log = a;
- this.config = b;
- this.j = c;
- this.wba = d;
- this.qka = g;
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Jxa = void 0;
- g = a(61);
- q = a(10);
- n = a(130);
- k = a(234);
- c.prototype.zxb = function (a) {
- var b;
- b = this;
- a = a.map(function (a) {
- var c,
- d,
- f;
- c = b.RGb(a);
- !1 !== a.jha || c.length || b.log.error("track without downloadables", b.zIa(a));
- !0 !== a.fha || c.length || b.log.error("forced track without downloadables", b.zIa(a));
- d = {};
- f = [];
- if (0 < c.length) {
- d = c[0];
- f = d.profile;
- if (f == g.Wk.aE || f == g.Wk.dT)
- d = b.UCb(c);
- f = b.wba.FOa(a.Qbb, void 0, !1);
- }
- a = b.qka(b.j, a.Aq, a.id, d.md, d.se || {}, f, a.language, a.h_, n.WT[a.Tm.toLowerCase()] || n.hn.hE, a.OP.toUpperCase(), d.profile, b.Rmb(d) || {}, a.jha, a.fha, a.YZ);
- b.log.trace("Transformed timed text track", a);
- return a;
- });
- this.log.trace("Transformed timed text tracks", {
- Count: a.length
- });
- return a;
- };
- c.prototype.sGb = function (a) {
- var b,
- c;
- b = this;
- c = this.config.xea;
- if (c) {
- if (a = S(a.filter(function (a) {
- return a.ll == c || a.eb == c;
- })).next().value)
- return a;
- } else if (this.j.dY && (a = S(a.filter(function (a) {
- return a.eb == b.j.dY;
- })).next().value))
- return a;
- };
- c.prototype.RGb = function (a) {
- var b,
- c,
- d;
- b = this;
- c = a.iHb;
- d = a.Jhb;
- a = Object.keys(c || {}).map(function (a) {
- var f;
- f = c[a];
- return {
- md: d[a],
- profile: a,
- size: f.size || 0,
- ne: b.Ylb(a, f),
- offset: f.O_ || 0,
- byb: f.width,
- fPa: f.height,
- se: f.Fu
- };
- });
- a.sort(function (a, b) {
- return a.ne - b.ne;
- });
- return a;
- };
- c.prototype.Ylb = function (a, b) {
- var c,
- d;
- c = this.config.Zv.indexOf(a);
- b = b.size;
- d = this.config.RI;
- return a === g.Wk.Y3 && 0 < d && b > d ? this.config.Zv.length + 1 : 0 <= c ? c : this.config.Zv.length;
- };
- c.prototype.Rmb = function (a) {
- if (a.profile === g.Wk.aE || a.profile === g.Wk.dT)
- return {
- offset: a.offset,
- length: a.size,
- cRa: {
- width: a.byb,
- height: a.fPa
- }
- };
- };
- c.prototype.UCb = function (a) {
- var b,
- c;
- b = this.config.Hga || k.TT.Gfa();
- c = S(a.filter(function (a) {
- return a.profile === g.Wk.aE || a.profile === g.Wk.dT;
- }).filter(function (a) {
- return a.fPa === b;
- })).next().value;
- if (c)
- return c;
- this.log.warn("none of the downloadables match the intended resolution", {
- screenHeight: q.jr.height,
- intendedResolution: b
- });
- return a[0];
- };
- c.prototype.zIa = function (a) {
- return {
- isNone: a.jha,
- isForced: a.fha,
- bcp47: a.language,
- id: a.Aq
- };
- };
- b.Jxa = c;
- }, function (d) {
- d.P = function (b) {
- return function () {
- return !b.apply(this, arguments);
- };
- };
- }, function (d, b, a) {
- var c,
- g;
- c = a(923);
- b = a(52);
- g = a(429);
- a = b(function (a, b) {
- return g(c(a), b);
- });
- d.P = a;
- }, function (d, b, a) {
- b = a(168);
- a = a(236);
- a = b(a);
- d.P = a;
- }, function (d, b, a) {
- b = a(52)(function (a, b) {
- for (var c = 0; c < a.length; ) {
- if (null == b)
- return;
- b = b[a[c]];
- c += 1;
- }
- return b;
- });
- d.P = b;
- }, function (d, b, a) {
- var c;
- b = a(52);
- c = a(926);
- a = b(function (a, b) {
- return c([a], b);
- });
- d.P = a;
- }, function (d, b, a) {
- var c,
- g;
- b = a(52);
- c = a(426);
- g = function () {
- function a(a, b) {
- this.ER = b;
- this.rN = a;
- }
- a.prototype["@@transducer/init"] = c.Db;
- a.prototype["@@transducer/result"] = c.result;
- a.prototype["@@transducer/step"] = function (a, b) {
- return this.ER["@@transducer/step"](a, this.rN(b));
- };
- return a;
- }
- ();
- a = b(function (a, b) {
- return new g(a, b);
- });
- d.P = a;
- }, function (d, b, a) {
- var c,
- g,
- q,
- n,
- k,
- p;
- b = a(52);
- c = a(428);
- g = a(424);
- q = a(236);
- n = a(928);
- k = a(423);
- p = a(425);
- a = b(c(["fantasy-land/map", "map"], n, function (a, b) {
- switch (Object.prototype.toString.call(b)) {
- case "[object Function]":
- return k(b.length, function () {
- return a.call(this, b.apply(this, arguments));
- });
- case "[object Object]":
- return q(function (c, d) {
- c[d] = a(b[d]);
- return c;
- }, {}, p(b));
- default:
- return g(a, b);
- }
- }));
- d.P = a;
- }, function (d, b, a) {
- var c,
- g;
- b = a(52);
- c = a(929);
- g = a(927);
- a = b(function (a, b) {
- return c(g(a), b);
- });
- d.P = a;
- }, function (d, b, a) {
- b = a(52)(function (a, b) {
- return b > a ? b : a;
- });
- d.P = b;
- }, function (d, b, a) {
- var g,
- q;
- function c(a, b, d) {
- return function () {
- var p;
- for (var h = [], f = 0, k = a, l = 0; l < b.length || f < arguments.length; ) {
- l < b.length && (!q(b[l]) || f >= arguments.length) ? p = b[l] : (p = arguments[f], f += 1);
- h[l] = p;
- q(p) || --k;
- l += 1;
- }
- return 0 >= k ? d.apply(this, h) : g(k, c(a, h, d));
- };
- }
- g = a(235);
- q = a(167);
- d.P = c;
- }, function (d, b, a) {
- var c,
- g,
- q,
- n,
- k;
- b = a(52);
- c = a(424);
- g = a(423);
- q = a(931);
- n = a(930);
- k = a(925);
- a = b(function (a, b) {
- return g(k(q, 0, n("length", b)), function () {
- var d,
- g;
- d = arguments;
- g = this;
- return a.apply(g, c(function (a) {
- return a.apply(g, d);
- }, b));
- });
- });
- d.P = a;
- }, function (d, b, a) {
- var c;
- b = a(111);
- c = a(933);
- a = b(function (a) {
- return c(function () {
- return Array.prototype.slice.call(arguments, 0);
- }, a);
- });
- d.P = a;
- }, function (d, b, a) {
- var c,
- g;
- c = a(237);
- g = Object.prototype.toString;
- d.P = function () {
- return "[object Arguments]" === g.call(arguments) ? function (a) {
- return "[object Arguments]" === g.call(a);
- }
- : function (a) {
- return c("callee", a);
- };
- };
- }, function (d, b, a) {
- var c,
- g;
- b = a(52);
- c = a(426);
- g = function () {
- function a(a, b) {
- this.ER = b;
- this.rN = a;
- }
- a.prototype["@@transducer/init"] = c.Db;
- a.prototype["@@transducer/result"] = c.result;
- a.prototype["@@transducer/step"] = function (a, b) {
- return this.rN(b) ? this.ER["@@transducer/step"](a, b) : a;
- };
- return a;
- }
- ();
- a = b(function (a, b) {
- return new g(a, b);
- });
- d.P = a;
- }, function (d, b, a) {
- var c;
- c = a(235);
- b = a(52)(function (a, b) {
- return c(a.length, function () {
- return a.apply(b, arguments);
- });
- });
- d.P = b;
- }, function (d) {
- var b;
- b = function () {
- function a(a) {
- this.rN = a;
- }
- a.prototype["@@transducer/init"] = function () {
- throw Error("init not implemented on XWrap");
- };
- a.prototype["@@transducer/result"] = function (a) {
- return a;
- };
- a.prototype["@@transducer/step"] = function (a, b) {
- return this.rN(a, b);
- };
- return a;
- }
- ();
- d.P = function (a) {
- return new b(a);
- };
- }, function (d) {
- d.P = function (b) {
- return "[object String]" === Object.prototype.toString.call(b);
- };
- }, function (d, b, a) {
- var c,
- g;
- b = a(111);
- c = a(427);
- g = a(939);
- a = b(function (a) {
- return c(a) ? !0 : !a || "object" !== typeof a || g(a) ? !1 : 1 === a.nodeType ? !!a.length : 0 === a.length ? !0 : 0 < a.length ? a.hasOwnProperty(0) && a.hasOwnProperty(a.length - 1) : !1;
- });
- d.P = a;
- }, function (d) {
- d.P = function (b, a) {
- for (var c = 0, d = a.length, g = []; c < d; )
- b(a[c]) && (g[g.length] = a[c]), c += 1;
- return g;
- };
- }, function (d) {
- d.P = function (b) {
- return "function" === typeof b["@@transducer/step"];
- };
- }, function (d, b, a) {
- var c;
- b = a(429);
- c = a(934);
- a = a(924);
- a = c([b, a]);
- d.P = a;
- }, function (d, b, a) {
- var c;
- b = a(168);
- c = a(237);
- a = b(function (a, b, d) {
- var g,
- l;
- g = {};
- for (l in b)
- c(l, b) && (g[l] = c(l, d) ? a(l, b[l], d[l]) : b[l]);
- for (l in d)
- c(l, d) && !c(l, g) && (g[l] = d[l]);
- return g;
- });
- d.P = a;
- }, function (d, b, a) {
- var c,
- g;
- b = a(168);
- c = a(430);
- g = a(944);
- a = b(function n(a, b, d) {
- return g(function (b, d, g) {
- return c(d) && c(g) ? n(a, d, g) : a(b, d, g);
- }, b, d);
- });
- d.P = a;
- }, function (d, b, a) {
- var c;
- b = a(168);
- c = a(945);
- a = b(function (a, b, d) {
- return c(function (b, c, d) {
- return a(c, d);
- }, b, d);
- });
- d.P = a;
- }, function (d, b, a) {
- var g;
- function c(a, b) {
- this.log = a;
- this.config = b;
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Gpa = void 0;
- g = a(112);
- c.prototype.FOa = function (a, b, c) {
- var d,
- h,
- f,
- k,
- l;
- d = this;
- h = this.config.vba;
- f = this.config.uba;
- a = S(g.As(function (a) {
- return (!h.length || 0 <= h.indexOf(a.id)) && 0 > f.indexOf(a.id);
- }, a || []));
- k = a.next().value;
- a.next().value.forEach(function (a) {
- return d.log.warn("Cdn is not allowed", {
- Id: a.id
- });
- });
- l = k.map(function (a) {
- var c;
- c = (b ? b.find(function (b) {
- return b.key === a.key;
- }) : void 0) || {};
- return {
- id: a.id,
- name: a.name,
- Xf: a.Xf,
- type: a.type,
- Yha: a.key,
- DTb: a.WLa,
- location: {
- id: c.key,
- Xf: c.Xf,
- level: c.level,
- weight: c.weight,
- yj: []
- }
- };
- });
- l.sort(function (a, b) {
- return a.Xf - b.Xf;
- });
- l.forEach(function (a) {
- return a.location.yj = l.filter(function (b) {
- return b.Yha === a.Yha;
- });
- });
- this.log.trace("Transformed cdns", {
- Count: l.length
- });
- if (c && !l.length)
- throw Error("no valid cdns");
- return l;
- };
- b.Gpa = c;
- }, function (d, b, a) {
- var c,
- g,
- q,
- n,
- k,
- p,
- h,
- f,
- m,
- r,
- t,
- C,
- H;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Hta = void 0;
- c = a(0);
- g = a(1);
- q = a(8);
- n = a(431);
- k = a(947);
- p = a(922);
- h = a(921);
- f = a(920);
- m = a(919);
- r = a(918);
- t = a(421);
- C = a(420);
- H = a(419);
- d = function () {
- var b;
- function a(a, b, c, d, f) {
- this.Hf = a;
- this.config = b;
- this.qka = c;
- this.Cna = d;
- this.B2 = f;
- }
- a.prototype.create = function (a) {
- var b,
- c;
- b = this.Hf.yb("ManifestParser", a);
- c = new k.Gpa(b, this.config);
- return new h.Ita(c, new p.Jxa(b, this.config, a, c, this.qka), new f.Zxa(b, a, this.Cna), new m.Uoa(b, this.config, a, this.B2), new r.vya(b, this.B2));
- };
- b = a;
- return b = c.__decorate([g.N(), c.__param(0, g.l(q.Bb)), c.__param(1, g.l(n.X5)), c.__param(2, g.l(t.y7)), c.__param(3, g.l(H.q8)), c.__param(4, g.l(C.n8))], b);
- }
- ();
- b.Hta = d;
- }, function (d, b, a) {
- var c,
- g,
- q,
- n,
- k,
- p,
- h,
- f,
- m,
- r,
- t,
- C,
- H,
- D;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.gMa = void 0;
- d = a(1);
- c = a(432);
- g = a(948);
- q = a(431);
- n = a(917);
- k = a(421);
- p = a(420);
- h = a(418);
- f = a(916);
- m = a(417);
- r = a(915);
- t = a(166);
- C = a(914);
- H = a(415);
- D = a(913);
- b.gMa = new d.Ec(function (b) {
- b(q.X5).to(n.Gta).aa();
- b(c.Y5).to(g.Hta).aa();
- b(k.y7).bi(function (b) {
- for (var c = [], d = 0; d < arguments.length; ++d)
- c[d - 0] = arguments[d];
- d = a(233).cA;
- return new(Function.prototype.bind.apply(d, [null].concat(Y(c))))();
- });
- b(p.n8).bi(function (b) {
- for (var c = [], d = 0; d < arguments.length; ++d)
- c[d - 0] = arguments[d];
- d = a(358).zpa;
- return new(Function.prototype.bind.apply(d, [null].concat(Y(c))))();
- });
- b(h.a6).tf(function () {
- return function (a) {
- return new f.Kta(a);
- };
- });
- b(m.Z5).to(r.Jta).aa();
- b(t.XD).to(C.Fta).aa();
- b(H.V5).to(D.Eta).aa();
- });
- }, function (d, b, a) {
- var c,
- g,
- q,
- n,
- k,
- p,
- h,
- f;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.opa = void 0;
- c = a(0);
- g = a(1);
- q = a(14);
- n = a(8);
- k = a(131);
- p = a(238);
- h = a(90);
- f = a(260);
- d = function () {
- var b;
- function a(a, b, c, d, f, g) {
- this.config = a;
- this.Cy = c;
- this.profile = d;
- this.D2 = f;
- this.sba = g;
- this.log = b.yb("CDMAttestedDescriptor");
- this.JHa();
- }
- a.prototype.JHa = function () {
- var a;
- a = this;
- return this.D2.Vna ? this.config().hib ? this.HHa().then(function (b) {
- if (b)
- return Promise.resolve(void 0);
- a.vLa || (a.vLa = a.sba.XIa());
- return a.vLa;
- })["catch"](function (b) {
- a.log.error("Failed to generate challenge", b);
- }).then(function (a) {
- null === a || void 0 === a ? void 0 : a.rb.close().subscribe();
- return null === a || void 0 === a ? void 0 : a.HDa;
- }).then(function (b) {
- return Promise.all([Promise.resolve(b), a.HHa()]);
- }).then(function (a) {
- var b;
- a = S(a);
- b = a.next().value;
- if (!a.next().value)
- return b;
- }) : this.Cy().then(function (a) {
- a.cP.removeServiceToken("cad");
- }) : Promise.resolve(void 0);
- };
- a.prototype.HHa = function () {
- var a;
- a = this;
- return this.Cy().then(function (b) {
- return (b = b.cP.getServiceTokens(a.profile)) && b.find(function (a) {
- return "cad" === a.name;
- });
- });
- };
- b = a;
- return b = c.__decorate([g.N(), c.__param(0, g.l(q.jd)), c.__param(1, g.l(n.Bb)), c.__param(2, g.l(k.$D)), c.__param(3, g.l(h.nE)), c.__param(4, g.l(p.wK)), c.__param(5, g.l(f.bS))], b);
- }
- ();
- b.opa = d;
- }, function (d, b, a) {
- var c,
- g;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.uDa = void 0;
- d = a(1);
- c = a(433);
- g = a(950);
- b.uDa = new d.Ec(function (a) {
- a(c.I3).to(g.opa).aa();
- });
- }, function (d, b, a) {
- var c,
- g,
- q,
- n;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.cpa = void 0;
- c = a(0);
- g = a(1);
- q = a(21);
- n = a(3);
- d = function () {
- var b;
- function a(a) {
- this.Ha = a;
- }
- a.prototype.wFb = function (a, b) {
- var c,
- d;
- c = parseFloat(a);
- d = 0;
- "%" === a[a.length - 1] && this.Ha.dg(c) ? d = Math.round(c * b.ca(n.ia) / 100) : (a = parseInt(a), this.Ha.Er(a) && (d = a));
- return n.Jb(Math.min(d, b.ca(n.ia)));
- };
- b = a;
- return b = c.__decorate([g.N(), c.__param(0, g.l(q.ee))], b);
- }
- ();
- b.cpa = d;
- }, function (d, b, a) {
- var c,
- g,
- q;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.bpa = void 0;
- c = a(0);
- g = a(1);
- q = a(14);
- d = function () {
- var b;
- function a(a) {
- this.config = a;
- }
- a.prototype.ffa = function () {
- return this.Xx().Nab;
- };
- a.prototype.gfa = function () {
- return this.Xx().Oab;
- };
- a.prototype.umb = function () {
- return this.Xx().Pab;
- };
- a.prototype.Rea = function () {
- return this.Xx().cDa;
- };
- a.prototype.Xx = function () {
- return this.config();
- };
- b = a;
- return b = c.__decorate([g.N(), c.__param(0, g.l(q.jd))], b);
- }
- ();
- b.bpa = d;
- }, function (d, b, a) {
- var c,
- g,
- q,
- n,
- k,
- p,
- h,
- f;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.dpa = void 0;
- c = a(0);
- g = a(1);
- q = a(435);
- n = a(434);
- k = a(8);
- p = a(21);
- h = a(3);
- f = a(14);
- d = function () {
- var b;
- function a(a, b, c, d, f) {
- this.mW = b;
- this.Ha = c;
- this.Mab = d;
- this.config = f;
- this.ja = a.yb("Bookmark");
- }
- a.prototype.$Ba = function (a) {
- var b,
- c;
- b = a.Oa.playbackState && a.Oa.playbackState.currentTime;
- c = this.Dlb(a.u);
- b = this.Ha.kB(b) ? h.Jb(b) : c;
- if (this.Ha.Xd(b))
- this.ja.info("Overriding bookmark", {
- From: a.sD.ca(h.ia),
- To: b.ca(h.ia)
- }), a = Object.assign({}, a, {
- sD: b
- });
- else if (this.Ppb(a))
- return this.ja.trace("Ignoring bookmark because it's too close to beginning"), h.ph(0);
- return this.Opb(a) ? (this.ja.trace("Ignoring bookmark because it's too close to end"), h.ph(0)) : this.Npb(a) ? (this.ja.trace("Ignoring bookmark because it's too close to the end to start decoding"), h.ph(0)) : a.sD;
- };
- a.prototype.Ppb = function (a) {
- return 0 > a.sD.nl(this.ffa(a));
- };
- a.prototype.ffa = function (a) {
- return this.dDa(this.mW.ffa(), a.zP);
- };
- a.prototype.Opb = function (a) {
- return 0 < a.sD.nl(this.gfa(a));
- };
- a.prototype.gfa = function (a) {
- var b;
- b = a.Oa.Zi ? this.mW.umb() : this.mW.gfa();
- return a.zP.Nb(this.dDa(b, a.zP));
- };
- a.prototype.Npb = function (a) {
- return 0 < a.sD.nl(this.emb(a));
- };
- a.prototype.emb = function (a) {
- var b;
- b = a.Oa.Zi ? this.config().pOa : this.config().t0;
- return a.zP.Nb(h.Jb(b));
- };
- a.prototype.Dlb = function (a) {
- var b;
- a = this.mW.Rea()[a];
- b = -1;
- this.Ha.wn(a) ? b = parseInt(a) : this.Ha.dg(a) && (b = a);
- if (this.Ha.Er(b))
- return h.Jb(b);
- };
- a.prototype.dDa = function (a, b) {
- return this.Mab.wFb(a, b);
- };
- b = a;
- return b = c.__decorate([g.N(), c.__param(0, g.l(k.Bb)), c.__param(1, g.l(q.C3)), c.__param(2, g.l(p.ee)), c.__param(3, g.l(n.B3)), c.__param(4, g.l(f.jd))], b);
- }
- ();
- b.dpa = d;
- }, function (d, b, a) {
- var c,
- g,
- q,
- n,
- k,
- p;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.vx = void 0;
- d = a(1);
- c = a(239);
- g = a(435);
- q = a(434);
- n = a(954);
- k = a(953);
- p = a(952);
- b.vx = new d.Ec(function (a) {
- a(c.QR).to(n.dpa).aa();
- a(g.C3).to(k.bpa).aa();
- a(q.B3).to(p.cpa).aa();
- });
- }, function (d, b, a) {
- var g,
- q,
- n,
- k;
- function c(a, b, c) {
- var d;
- d = this;
- this.ja = a;
- this.valid = !0;
- this.Cj = !1;
- this.context = c.context;
- this.size = c.size;
- this.tl = b.create().then(function (a) {
- d.storage = a;
- return a.zO("mediacache").then(function (a) {
- d.keys = a;
- });
- });
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.JYa = b.zqa = void 0;
- g = a(0);
- q = a(1);
- n = a(8);
- k = a(71);
- d = function () {
- var b;
- function a(a, b) {
- this.Hf = a;
- this.Tj = b;
- this.fG = {};
- }
- a.prototype.RW = function (a) {
- this.fG[a.context] = new c(this.Hf.yb("DiskStorageContext"), this.Tj, a);
- return this.fG[a.context];
- };
- a.prototype.yFa = function (a) {
- delete this.fG[a.context];
- };
- b = a;
- return b = g.__decorate([q.N(), g.__param(0, q.l(n.Bb)), g.__param(1, q.l(k.Wq))], b);
- }
- ();
- b.zqa = d;
- c.prototype.create = function (a, b, c, d) {
- var f,
- g,
- h;
- f = this;
- g = this.getKey(a, b);
- h = Date.now();
- this.tl.then(function () {
- f.keys[g] = void 0;
- return f.storage.save(g, c, !1).then(function () {
- f.ja.trace("create succeeded for " + g + ", " + (Date.now() - h) + " ms");
- d(f.SY(a, b));
- });
- })["catch"](function (c) {
- f.ja.trace("create failed", c);
- d(f.Zx(a, b, c));
- });
- };
- c.prototype.append = function (a, b, c, d) {
- c = this.getKey(a, b);
- this.ja.trace("append " + c);
- d(this.Zx(a, b, "append is not supported"));
- };
- c.prototype.remove = function (a, b, c) {
- var d,
- f,
- g;
- d = this;
- f = this.getKey(a, b);
- g = Date.now();
- this.tl.then(function () {
- if (d.keys.hasOwnProperty(f))
- return delete d.keys[f], d.storage.remove(f).then(function () {
- d.ja.trace("remove succeeded for " + f + ", " + (Date.now() - g) + " ms");
- c(d.SY(a, b));
- });
- c(d.SY(a, b));
- })["catch"](function (f) {
- d.ja.trace("remove failed", f);
- c(d.Zx(a, b, f));
- });
- };
- c.prototype.read = function (a, b, c, d, g) {
- var f,
- h,
- k;
- f = this;
- h = this.getKey(a, b);
- k = Date.now();
- 0 !== c || -1 != d ? g(this.Zx(a, b, "byteStart/byteEnd combination is not supported")) : this.tl.then(function () {
- if (f.keys.hasOwnProperty(h))
- return f.storage.load(h).then(function (l) {
- f.ja.trace("read succeeded for " + h + ", " + (Date.now() - k) + " ms");
- g(Object.assign(f.SY(a, b), {
- value: l.value,
- gRb: c,
- end: d
- }));
- });
- g(f.Zx(a, b, "Item doesn't exist"));
- })["catch"](function (c) {
- f.ja.trace("read failed", c);
- g(f.Zx(a, b, c));
- });
- };
- c.prototype.info = function (a) {
- var b;
- b = this;
- this.ja.trace("info ");
- this.tl.then(function () {
- var c;
- c = {
- values: {}
- };
- c.values[b.context] = {
- entries: Object.keys(b.keys).reduce(function (a, c) {
- c = b.Wja(c);
- a[c.UM] || (a[c.UM] = {});
- a[c.UM][c.ny] = {
- size: 0
- };
- return a;
- }, {}),
- total: b.size,
- BWb: 0
- };
- a(c);
- })["catch"](function (c) {
- b.ja.trace("info failed", c);
- a(b.Zx(void 0, void 0, c));
- });
- };
- c.prototype.query = function (a, b, c) {
- var d,
- f;
- d = this;
- f = this.getKey(a, b || "");
- this.tl.then(function () {
- var a;
- a = Object.keys(d.keys).filter(function (a) {
- return 0 === a.indexOf(f);
- }).reduce(function (a, b) {
- a[d.Wja(b).ny] = {
- size: 0
- };
- return a;
- }, {});
- d.ja.trace("query succeeded for prefix " + b, a);
- c(a);
- })["catch"](function (a) {
- d.ja.trace("query failed", a);
- c({});
- });
- };
- c.prototype.Uq = function (a) {
- var b;
- b = this;
- this.ja.trace("validate");
- this.tl.then(function () {
- var c;
- c = Object.keys(b.keys).reduce(function (a, c) {
- a[b.Wja(c).ny] = {
- size: 0
- };
- return a;
- }, {});
- a(c);
- })["catch"](function (c) {
- b.ja.trace("validate failed", c);
- a(b.Zx(void 0, void 0, c));
- });
- };
- c.prototype.getKey = function (a, b) {
- return ["mediacache", this.context, a, b].join(".");
- };
- c.prototype.SY = function (a, b) {
- return {
- V: !0,
- UM: void 0 === a ? "" : a,
- key: void 0 === b ? "" : b,
- xIb: 0,
- Ej: this.size
- };
- };
- c.prototype.Zx = function (a, b, c) {
- return {
- V: !1,
- error: c,
- UM: void 0 === a ? "" : a,
- key: void 0 === b ? "" : b,
- xIb: 0,
- Ej: this.size
- };
- };
- c.prototype.Wja = function (a) {
- var b,
- c;
- a = a.slice(a.indexOf(".") + 1);
- b = a.slice(a.indexOf(".") + 1);
- c = b.indexOf(".");
- a = b.slice(0, c);
- b = b.slice(c + 1);
- return {
- UM: a,
- ny: b
- };
- };
- b.JYa = c;
- }, function (d, b, a) {
- var c,
- g,
- q,
- n;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.bua = void 0;
- c = a(0);
- g = a(1);
- q = a(2);
- n = a(8);
- d = function () {
- var b;
- function a(a) {
- this.Hf = a;
- this.wv = {};
- this.ja = this.Hf.yb("MemoryStorage");
- }
- a.prototype.load = function (a) {
- var b;
- if (this.wv.hasOwnProperty(a)) {
- b = this.wv[a];
- this.ja.debug("Storage entry loaded", {
- key: a
- });
- return Promise.resolve({
- key: a,
- value: b
- });
- }
- this.ja.debug("Storage entry not found", {
- key: a
- });
- return Promise.reject({
- ha: q.I.Hw
- });
- };
- a.prototype.save = function (a, b, c) {
- if (c && this.wv.hasOwnProperty(a))
- return Promise.resolve(!1);
- this.wv[a] = b;
- return Promise.resolve(!0);
- };
- a.prototype.remove = function (a) {
- delete this.wv[a];
- return Promise.resolve();
- };
- a.prototype.loadAll = function () {
- var a,
- b;
- a = this;
- b = Object.keys(this.wv).map(function (b) {
- return {
- key: b,
- value: a.wv[b]
- };
- });
- return Promise.resolve(b);
- };
- a.prototype.zO = function (a) {
- var b;
- b = Object.keys(this.wv).reduce(function (b, c) {
- a && 0 !== c.indexOf(a) || (b[c] = void 0);
- return b;
- }, {});
- return Promise.resolve(b);
- };
- a.prototype.removeAll = function () {
- this.wv = {};
- return Promise.resolve();
- };
- b = a;
- return b = c.__decorate([g.N(), c.__param(0, g.l(n.Bb))], b);
- }
- ();
- b.bua = d;
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.bqa = void 0;
- b.bqa = "__default_rule_key__";
- }, function (d, b, a) {
- var g,
- q,
- n,
- k,
- p,
- h,
- f,
- m;
- function c(a, b, c, d) {
- this.ja = a;
- this.config = b;
- this.Lpb = c;
- this.$ia = d;
- this.Ex = {
- mem: {
- storage: this.$ia,
- key: "mem"
- }
- };
- this.Zy = this.config.Zy;
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.k3 = b.xoa = void 0;
- g = a(0);
- q = a(1);
- n = a(2);
- k = a(169);
- p = a(8);
- h = a(437);
- f = a(958);
- m = a(30);
- d = function () {
- var b;
- function a(a, b, c, d) {
- this.Hf = a;
- this.Tj = b;
- this.$ia = c;
- this.config = d;
- }
- a.prototype.create = function () {
- this.QM || (this.QM = this.RF());
- return this.QM;
- };
- a.prototype.RF = function () {
- this.j$a = new c(this.Hf.yb("AppStorage"), this.config, this.Tj, this.$ia);
- return this.j$a.create();
- };
- b = a;
- return b = g.__decorate([q.N(), g.__param(0, q.l(p.Bb)), g.__param(1, q.l(k.RS)), g.__param(2, q.l(h.k6)), g.__param(3, q.l(m.Yj))], b);
- }
- ();
- b.xoa = d;
- c.prototype.create = function () {
- var a;
- a = this;
- return this.qfb().then(function (b) {
- if (!a.Ebb(b, a.config.cO))
- throw a.Ovb(b);
- return a;
- });
- };
- c.prototype.load = function (a) {
- var b;
- b = this;
- return new Promise(function (c, d) {
- b.DN(a).storage.load(a).then(function (a) {
- c(a);
- })["catch"](function (a) {
- d(a);
- });
- });
- };
- c.prototype.save = function (a, b, c) {
- var d;
- d = this;
- return new Promise(function (f, g) {
- d.DN(a).storage.save(a, b, c).then(function (a) {
- f(a);
- })["catch"](function (a) {
- g(a);
- });
- });
- };
- c.prototype.remove = function (a) {
- var b;
- b = this;
- return new Promise(function (c, d) {
- b.DN(a).storage.remove(a).then(function () {
- c();
- })["catch"](function (a) {
- d(a);
- });
- });
- };
- c.prototype.removeAll = function () {
- var a;
- a = this;
- return new Promise(function (b, c) {
- a.EQa("mem").then(function () {
- return a.EQa("idb");
- })["catch"](function (a) {
- return Promise.reject(a);
- }).then(function () {
- b();
- })["catch"](function (b) {
- a.ja.error("remove all failed");
- c(b);
- });
- });
- };
- c.prototype.loadAll = function () {
- var a,
- b;
- a = this;
- b = [];
- return this.BLa("mem").then(function (c) {
- b = b.concat(c);
- return a.BLa("idb");
- })["catch"](function (b) {
- a.urb(b) || a.ja.error("IndexedDb.LoadAll exception", b);
- return [];
- }).then(function (a) {
- return b = b.concat(a);
- })["catch"](function (b) {
- a.ja.error("load all failed", b);
- throw b;
- });
- };
- c.prototype.zO = function (a) {
- var b;
- b = this;
- return new Promise(function (c, d) {
- var f;
- f = b.Ex.idb;
- f ? f.storage.zO(a).then(function (a) {
- c(a);
- })["catch"](function (a) {
- b.ja.error("loadKeys failed", a);
- d(a);
- }) : d("Storage is not available");
- });
- };
- c.prototype.qfb = function () {
- var a;
- a = this;
- return this.Lpb.create().then(function (b) {
- a.Ex.idb = {
- storage: b,
- key: "idb"
- };
- })["catch"](function (b) {
- a.ja.error("idb failed to load", b);
- return b || {
- ha: n.I.Xk
- };
- });
- };
- c.prototype.Ebb = function (a, b) {
- return !a || a && b ? !0 : !1;
- };
- c.prototype.Ovb = function (a) {
- var b;
- b = "";
- a && (b += a.ha);
- return {
- ha: b
- };
- };
- c.prototype.EQa = function (a) {
- return (a = this.Ex[a]) ? a.storage.removeAll() : Promise.resolve();
- };
- c.prototype.BLa = function (a) {
- return (a = this.Ex[a]) ? a.storage.loadAll() : Promise.resolve([]);
- };
- c.prototype.Pjb = function (a) {
- for (var b in this.Zy)
- if (a.startsWith(b))
- return this.Zy[b];
- return this.Zy[f.bqa];
- };
- c.prototype.DN = function (a) {
- var b,
- c;
- b = this;
- this.Pjb(a).every(function (a) {
- return b.Ex[a] ? (c = b.Ex[a], !1) : !0;
- });
- c || (this.ja.error("component not found for storageKey", {
- nFb: a,
- aRb: Object.keys(this.Ex),
- rules: this.Zy
- }), c = this.Ex.mem);
- this.ja.trace("component found for key", {
- storageKey: a,
- componentKey: c.key
- });
- return c;
- };
- c.prototype.urb = function (a) {
- return (a && (a.ha || a.errorSubCode)) === n.I.Hw;
- };
- b.k3 = c;
- }, function (d, b, a) {
- var c,
- g,
- q;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Ypa = void 0;
- c = a(0);
- g = a(1);
- q = a(30);
- d = function () {
- var b;
- function a(a) {
- this.config = a;
- }
- pa.Object.defineProperties(a.prototype, {
- timeout: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.config.Sma;
- }
- },
- enabled: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.config.wTa;
- }
- }
- });
- b = a;
- return b = c.__decorate([g.N(), c.__param(0, g.l(q.Yj))], b);
- }
- ();
- b.Ypa = d;
- }, function (d, b, a) {
- var c,
- g,
- q,
- n,
- k,
- p;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Dsa = void 0;
- c = a(0);
- g = a(1);
- q = a(41);
- n = a(40);
- k = a(30);
- p = a(28);
- d = function () {
- var b;
- function a(a, b) {
- a = n.fe.call(this, a, "IndexedDBConfigImpl") || this;
- a.config = b;
- a.version = 1;
- a.rC = "namedatapairs";
- return a;
- }
- da(a, n.fe);
- pa.Object.defineProperties(a.prototype, {
- name: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return "netflix.player" + (this.config.Tr ? "Test" : "");
- }
- },
- timeout: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.config.Sma;
- }
- },
- dW: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.config.dW;
- }
- },
- Dma: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return 0;
- }
- },
- CQ: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return 0;
- }
- },
- ZGa: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return !0;
- }
- }
- });
- b = a;
- c.__decorate([q.config(q.cw, "simulateIdbOpenError")], b.prototype, "Dma", null);
- c.__decorate([q.config(q.cw, "simulateIdbLoadAllError")], b.prototype, "CQ", null);
- c.__decorate([q.config(q.Kd, "fixInvalidDatabase")], b.prototype, "ZGa", null);
- return b = c.__decorate([g.N(), c.__param(0, g.l(p.Li)), c.__param(1, g.l(k.Yj))], b);
- }
- ();
- b.Dsa = d;
- }, function (d, b, a) {
- var q,
- n,
- k;
- function c(a, b, c) {
- this.config = a;
- this.Lk = b;
- this.Iv = c;
- }
- function g(a, b) {
- this.reason = a;
- this.cause = b;
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Csa = b.swa = void 0;
- q = a(2);
- n = a(64);
- (function (a) {
- a[a.A6 = 0] = "NoData";
- a[a.Error = 1] = "Error";
- a[a.dA = 2] = "Timeout";
- }
- (k = b.swa || (b.swa = {})));
- c.prototype.load = function (a) {
- var b;
- b = this;
- return new Promise(function (c, d) {
- b.MX("get", !1, a).then(function (b) {
- c({
- key: a,
- value: b
- });
- })["catch"](function (a) {
- var b;
- b = q.I.Lwa;
- switch (a.reason) {
- case k.A6:
- b = q.I.Hw;
- break;
- case k.dA:
- b = q.I.B2a;
- }
- d({
- ha: b,
- cause: a.cause
- });
- });
- });
- };
- c.prototype.save = function (a, b, c) {
- var d;
- d = this;
- return new Promise(function (f, g) {
- d.MX(c ? "add" : "put", !0, {
- name: a,
- data: b
- }).then(function () {
- f(!c);
- })["catch"](function (a) {
- var b;
- b = q.I.Mwa;
- switch (a.reason) {
- case k.dA:
- b = q.I.E2a;
- }
- g({
- ha: b,
- cause: a.cause
- });
- });
- });
- };
- c.prototype.remove = function (a) {
- var b;
- b = this;
- return new Promise(function (c, d) {
- b.MX("delete", !0, a).then(function () {
- c();
- })["catch"](function (a) {
- var b;
- b = q.I.T7;
- switch (a.reason) {
- case k.dA:
- b = q.I.Kwa;
- }
- d({
- ha: b,
- cause: a.cause
- });
- });
- });
- };
- c.prototype.removeAll = function () {
- var a;
- a = this;
- return new Promise(function (b, c) {
- a.MX("clear", !0, "").then(function () {
- b();
- })["catch"](function (a) {
- var b;
- b = q.I.T7;
- switch (a.reason) {
- case k.dA:
- b = q.I.Kwa;
- }
- c({
- ha: b,
- cause: a.cause
- });
- });
- });
- };
- c.prototype.loadAll = function () {
- var a;
- a = this;
- return this.Lk.Hm(this.config.timeout, new Promise(function (b, c) {
- var d,
- f,
- h;
- if (a.config.CQ)
- c(new g(a.config.CQ));
- else {
- d = [];
- f = a.Iv.transaction(a.config.rC, "readonly");
- h = f.objectStore(a.config.rC).openCursor();
- f.onerror = function () {
- c(new g(k.Error, h.error));
- };
- h.onsuccess = function (a) {
- if (a = a.target.result)
- try {
- d.push({
- key: a.value.name,
- value: a.value.data
- });
- a["continue"]();
- } catch (H) {
- c(new g(k.Error, H));
- }
- else
- b(d);
- };
- h.onerror = function () {
- c(new g(k.Error, h.error));
- };
- }
- }))["catch"](function (a) {
- return a instanceof n.gn ? Promise.reject(new g(k.dA, a)) : a instanceof g ? Promise.reject(a) : Promise.reject(new g(k.Error, a));
- });
- };
- c.prototype.zO = function (a) {
- var b;
- b = this;
- return this.Lk.Hm(this.config.timeout, new Promise(function (c, d) {
- var f,
- h,
- l;
- if (b.config.CQ)
- d(new g(b.config.CQ));
- else {
- f = {};
- h = b.Iv.transaction(b.config.rC, "readonly");
- l = h.objectStore(b.config.rC).openKeyCursor(a ? IDBKeyRange.lowerBound(a) : void 0);
- h.onerror = function () {
- d(new g(k.Error, l.error));
- };
- l.onsuccess = function (b) {
- var h,
- l;
- try {
- h = b.target.result;
- if (h) {
- l = h.key;
- a && 0 !== l.indexOf(a) ? c(f) : (f[l] = void 0, h["continue"]());
- } else
- c(f);
- } catch (J) {
- d(new g(k.Error, J));
- }
- };
- l.onerror = function () {
- d(new g(k.Error, l.error));
- };
- }
- }))["catch"](function (a) {
- return a instanceof n.gn ? Promise.reject(new g(k.dA, a)) : a instanceof g ? Promise.reject(a) : Promise.reject(new g(k.Error, a));
- });
- };
- c.prototype.MX = function (a, b, c) {
- var d;
- d = this;
- return this.Lk.Hm(this.config.timeout, new Promise(function (f, h) {
- var l,
- p;
- l = d.Iv.transaction(d.config.rC, b ? "readwrite" : "readonly");
- p = l.objectStore(d.config.rC)[a](c);
- l.onerror = function () {
- h(new g(k.Error, p.error));
- };
- p.onsuccess = function (b) {
- var c;
- if ("get" == a)
- try {
- c = b.target.result;
- c ? f(c.data) : h(new g(k.A6));
- } catch (J) {
- h(new g(k.A6, J));
- }
- else
- f();
- };
- p.onerror = function () {
- h(new g(k.Error, p.error));
- };
- }))["catch"](function (a) {
- return a instanceof n.gn ? Promise.reject(new g(k.dA, a)) : a instanceof g ? Promise.reject(a) : Promise.reject(new g(k.Error, a));
- });
- };
- b.Csa = c;
- }, function (d, b, a) {
- var c,
- g,
- q,
- n,
- k,
- p,
- h,
- f,
- m,
- r,
- t,
- C,
- H;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Fsa = b.Esa = b.Zra = void 0;
- c = a(0);
- g = a(1);
- q = a(8);
- n = a(962);
- k = a(170);
- p = a(2);
- h = a(440);
- f = a(441);
- m = a(64);
- r = a(71);
- t = a(69);
- C = a(169);
- H = a(49);
- d = function () {
- var b;
- function a(a, b, c, d, f) {
- this.config = b;
- this.Rm = c;
- this.jj = f;
- this.ja = a.yb(h.QT);
- this.VM = new Promise(function (a, b) {
- var c;
- try {
- c = d();
- c ? a(c) : b({
- ha: p.I.$ra
- });
- } catch (ha) {
- b({
- ha: p.I.QS,
- cause: ha
- });
- }
- });
- }
- a.prototype.create = function () {
- this.Dca || (this.Dca = this.RF());
- return this.Dca;
- };
- a.prototype.In = function (a) {
- var b;
- b = this;
- this.Dca = null;
- return this.Rm.Hm(this.config.timeout, new Promise(function (c, d) {
- a.close();
- b["delete"](a.name).then(function () {
- c();
- })["catch"](function (a) {
- d(a);
- });
- }))["catch"](function (a) {
- return a instanceof m.gn ? Promise.reject({
- ha: p.I.QS
- }) : a.ha ? Promise.reject(a) : Promise.reject({
- ha: p.I.QS,
- cause: a
- });
- });
- };
- a.prototype["delete"] = function (a) {
- var b;
- b = this;
- return this.Rm.Hm(this.config.timeout, new Promise(function (c, d) {
- b.VM.then(function (b) {
- var f;
- f = b.deleteDatabase(a);
- f.onsuccess = function () {
- c();
- };
- f.onerror = function () {
- d({
- ha: p.I.QS,
- cause: f.error
- });
- };
- })["catch"](function (a) {
- d(a);
- });
- }));
- };
- a.prototype.RF = function () {
- var a,
- b;
- a = this;
- return this.Rm.Hm(this.config.timeout, new Promise(function (c, d) {
- if (a.config.Dma)
- return d({
- ha: a.config.Dma
- });
- a.VM.then(function (f) {
- a.jj.mark(H.ki.VZa);
- b = f.open(a.config.name, a.config.version);
- if (!b)
- return d({
- ha: p.I.bsa
- });
- b.onblocked = function () {
- a.jj.mark(H.ki.SZa);
- d({
- ha: p.I.OZa
- });
- };
- b.onupgradeneeded = function () {
- var c;
- a.jj.mark(H.ki.b_a);
- c = b.result;
- try {
- c.createObjectStore(a.config.rC, {
- keyPath: "name"
- });
- } catch (U) {
- a.ja.error("Exception while creating object store", U);
- }
- };
- b.onsuccess = function (g) {
- var h,
- k;
- a.jj.mark(H.ki.a_a);
- try {
- h = g.target.result;
- k = h.objectStoreNames.length;
- a.ja.trace("objectstorenames length ", k);
- if (0 === k) {
- a.ja.error("invalid indexedDb state, deleting");
- a.jj.mark(H.ki.UZa);
- try {
- h.close();
- } catch (ha) {}
- f.deleteDatabase(a.config.name);
- setTimeout(function () {
- d({
- ha: p.I.NZa
- });
- }, 1);
- return;
- }
- } catch (ha) {
- a.ja.error("Exception while inspecting indexedDb objectstorenames", ha);
- }
- c(b.result);
- };
- b.onerror = function () {
- a.jj.mark(H.ki.TZa);
- a.ja.error("IndexedDB open error", b.error);
- d({
- ha: p.I.PZa,
- cause: b.error
- });
- };
- })["catch"](function (a) {
- d(a);
- });
- }))["catch"](function (c) {
- if (c instanceof m.gn) {
- try {
- b && b.readyState && a.jj.mark("readyState-" + b.readyState);
- } catch (ba) {}
- if (a.config.dW && b && "done" === b.readyState) {
- if (a.GIb(b))
- return a.jj.mark(H.ki.ZZa), Promise.resolve(b.result);
- a.jj.mark(H.ki.YZa);
- }
- a.jj.mark(H.ki.XZa);
- return Promise.reject({
- ha: p.I.RZa
- });
- }
- if (c.ha)
- return Promise.reject(c);
- a.jj.mark(H.ki.WZa);
- a.ja.error("IndexedDB open exception occurred", c);
- return Promise.reject({
- ha: p.I.QZa,
- cause: c
- });
- });
- };
- a.prototype.GIb = function (a) {
- try {
- return 0 < a.result.objectStoreNames.length;
- } catch (R) {
- this.jj.mark(H.ki.$Za);
- this.ja.error("failed to check open request state", R);
- }
- return !1;
- };
- b = a;
- return b = c.__decorate([g.N(), c.__param(0, g.l(q.Bb)), c.__param(1, g.l(f.SJ)), c.__param(2, g.l(m.Fw)), c.__param(3, g.l(k.o5)), c.__param(4, g.l(t.Kw))], b);
- }
- ();
- b.Zra = d;
- d = function () {
- var b;
- function a(a, b) {
- this.config = a;
- this.Rm = b;
- }
- a.prototype.create = function (a) {
- return Promise.resolve(new n.Csa(this.config, this.Rm, a));
- };
- b = a;
- return b = c.__decorate([g.N(), c.__param(0, g.l(f.SJ)), c.__param(1, g.l(m.Fw))], b);
- }
- ();
- b.Esa = d;
- d = function () {
- var b;
- function a(a, b, c, d, f, g) {
- this.config = b;
- this.VM = c;
- this.Tj = d;
- this.KIb = f;
- this.jj = g;
- this.ja = a.yb(h.QT);
- }
- a.prototype.create = function () {
- if (this.storage)
- return Promise.resolve(this.storage);
- this.QM || (this.QM = this.RF(this.KIb));
- return this.QM;
- };
- a.prototype.RF = function (a) {
- var b;
- a = void 0 === a ? [] : a;
- b = this;
- return new Promise(function (c, d) {
- b.jj.mark(H.ki.A2a);
- b.VM.create().then(function (f) {
- b.Tj.create(f).then(function (g) {
- Promise.all(a.map(function (a) {
- return a.Uq(g);
- })).then(function () {
- b.storage = g;
- c(b.storage);
- })["catch"](function (a) {
- b.ja.debug("DB validation failed, cause: " + a);
- b.config.ZGa ? (b.ja.debug("Fixing corrupt DB"), b.VM.In(f).then(function () {
- b.ja.error("Invalid database deleted, creating new database.");
- b.RF().then(function (a) {
- b.ja.error("Invalid database successfully recreated.");
- b.storage = a;
- c(b.storage);
- });
- })["catch"](function (a) {
- b.ja.error("Couldn't delete invalid database.");
- d(a);
- })) : (b.ja.debug("Ignoring invalid DB due to config"), b.storage = g, c(b.storage));
- });
- })["catch"](function (a) {
- d(a);
- });
- })["catch"](function (a) {
- d(a);
- });
- });
- };
- b = a;
- return b = c.__decorate([g.N(), c.__param(0, g.l(q.Bb)), c.__param(1, g.l(f.SJ)), c.__param(2, g.l(C.n5)), c.__param(3, g.l(C.t5)), c.__param(4, g.nC(r.f8)), c.__param(5, g.l(t.Kw))], b);
- }
- ();
- b.Fsa = d;
- }, function (d, b, a) {
- var c,
- g,
- q,
- n;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.$sa = void 0;
- c = a(0);
- g = a(1);
- q = a(2);
- n = a(170);
- d = function () {
- var b;
- function a(a) {
- this.Iv = a;
- }
- a.prototype.load = function (a) {
- var b;
- b = this;
- return new Promise(function (c, d) {
- var f,
- g;
- try {
- f = b.Iv.getItem(a);
- if (f) {
- g = f;
- if ("{" === f[0])
- try {
- g = JSON.parse(f) || f;
- } catch (H) {}
- c({
- key: a,
- value: g
- });
- } else
- d({
- ha: q.I.Hw
- });
- } catch (H) {
- d({
- ha: q.I.Lwa,
- cause: H
- });
- }
- });
- };
- a.prototype.save = function (a, b, c) {
- var d;
- d = this;
- return new Promise(function (f, g) {
- if (c && d.Iv.getItem(a))
- f(!1);
- else
- try {
- "string" === typeof b ? d.Iv.setItem(a, b) : d.Iv.setItem(a, JSON.stringify(b));
- f(!0);
- } catch (H) {
- g({
- ha: q.I.Mwa,
- cause: H
- });
- }
- });
- };
- a.prototype.remove = function (a) {
- var b;
- b = this;
- return new Promise(function (c, d) {
- try {
- b.Iv.removeItem(a);
- c();
- } catch (G) {
- d({
- ha: q.I.T7,
- cause: G
- });
- }
- });
- };
- a.prototype.loadAll = function () {
- return Promise.reject("Not supported");
- };
- a.prototype.zO = function () {
- return Promise.reject("Not supported");
- };
- a.prototype.removeAll = function () {
- return Promise.reject("Not supported");
- };
- b = a;
- return b = c.__decorate([g.N(), c.__param(0, g.l(n.nua))], b);
- }
- ();
- b.$sa = d;
- }, function (d, b, a) {
- var c,
- g,
- q,
- n,
- k,
- p;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Xpa = void 0;
- c = a(0);
- g = a(1);
- q = a(8);
- n = a(64);
- k = a(440);
- p = a(439);
- d = function () {
- var b;
- function a(a, b, c) {
- this.Lk = b;
- this.config = c;
- this.ja = a.yb(k.QT);
- }
- a.prototype.Uq = function (a) {
- return this.config.enabled ? this.config.timeout ? this.Lk.Hm(this.config.timeout, this.KFa(a)) : this.KFa(a) : Promise.resolve();
- };
- a.prototype.KFa = function (a) {
- var b;
- b = this;
- return new Promise(function (c, d) {
- return a.save("indexdb-test", "true", !0).then(function () {
- return a.load("indexdb-test").then(function (f) {
- "true" !== f.value && d();
- b.ja.debug("save/load test passed");
- a.remove("indexdb-test").then(function () {
- c();
- })["catch"](function () {
- b.ja.error("Failed to remove testValue");
- c();
- });
- });
- })["catch"](function (a) {
- return d(a);
- });
- });
- };
- b = a;
- return b = c.__decorate([g.N(), c.__param(0, g.l(q.Bb)), c.__param(1, g.l(n.Fw)), c.__param(2, g.l(p.R3))], b);
- }
- ();
- b.Xpa = d;
- }, function (d, b, a) {
- var c,
- g,
- q,
- n,
- k,
- p,
- h,
- f,
- m,
- r,
- G,
- C,
- H,
- D,
- K,
- x,
- R;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.storage = void 0;
- d = a(1);
- c = a(441);
- g = a(71);
- q = a(170);
- n = a(965);
- k = a(438);
- p = a(964);
- h = a(439);
- f = a(169);
- m = a(963);
- r = a(961);
- G = a(960);
- C = a(959);
- H = a(71);
- D = a(437);
- K = a(957);
- x = a(436);
- R = a(956);
- b.storage = new d.Ec(function (a) {
- a(q.w6).tf(function () {
- return function () {
- return t.localStorage;
- };
- });
- a(q.o5).tf(function () {
- return function () {
- return t.indexedDB;
- };
- });
- a(D.k6).to(K.bua).aa();
- a(H.Wq).to(C.xoa).aa();
- a(k.J5).to(p.$sa).aa();
- a(c.SJ).to(r.Dsa).aa();
- a(f.t5).to(m.Esa).aa();
- a(g.f8).to(n.Xpa).aa();
- a(f.n5).to(m.Zra).aa();
- a(f.RS).to(m.Fsa).aa();
- a(h.R3).to(G.Ypa).aa();
- a(x.k4).to(R.zqa).aa();
- });
- }, function (d, b, a) {
- var c,
- g,
- q,
- n;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.pra = void 0;
- c = a(0);
- g = a(1);
- q = a(240);
- n = a(442);
- d = function () {
- var b;
- function a(a) {
- this.jzb = a;
- }
- a.prototype.Ajb = function () {
- var a,
- b;
- a = {
- qN: q.lw.f3a
- };
- b = this.jzb.PresentationRequest;
- b && (new b("https://netflix.com").getAvailability() || Promise.reject()).then(function (b) {
- var c;
- a.qN = b.value ? q.lw.cwa : q.lw.qoa;
- if (a.qN === q.lw.qoa) {
- c = function () {
- b.value && (a.qN = q.lw.cwa);
- b.removeEventListener("change", c);
- };
- b.addEventListener("change", c);
- }
- })["catch"](function () {
- a.qN = q.lw.Error;
- });
- return a;
- };
- b = a;
- return b = c.__decorate([g.N(), c.__param(0, g.l(n.E7))], b);
- }
- ();
- b.pra = d;
- }, function (d, b, a) {
- var c,
- g,
- q,
- n;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Pta = void 0;
- c = a(0);
- g = a(444);
- q = a(8);
- n = a(1);
- d = function () {
- var b;
- function a(a, b) {
- this.IMa = a;
- this.log = b.yb("MediaCapabilities");
- }
- a.prototype.aea = function (a) {
- var b,
- c,
- d;
- b = this;
- c = {
- xc: void 0
- };
- if (this.IMa.JMa) {
- d = {
- contentType: 'video/mp4;codecs="avc1.640028"',
- width: a.width,
- height: a.height,
- O: 1E3 * a.O,
- jY: "24"
- };
- this.IMa.aea(d).then(function (a) {
- return c.xc = Object.assign(Object.assign({}, a), d);
- })["catch"](function (a) {
- return b.log.error("Error calling MediaCapabilities API", a);
- });
- }
- return c;
- };
- b = a;
- return b = c.__decorate([n.N(), c.__param(0, n.l(g.d6)), c.__param(1, n.l(q.Bb))], b);
- }
- ();
- b.Pta = d;
- }, function (d, b, a) {
- var c,
- g,
- q;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Ota = void 0;
- c = a(0);
- g = a(1);
- q = a(29);
- d = function () {
- var b;
- function a(a) {
- this.navigator = a;
- this.JMa = "mediaCapabilities" in this.navigator && "decodingInfo" in this.navigator.mediaCapabilities;
- }
- a.prototype.aea = function (a) {
- return this.JMa ? this.navigator.mediaCapabilities.decodingInfo({
- type: "media-source",
- video: {
- contentType: a.contentType,
- width: a.width,
- height: a.height,
- bitrate: a.O,
- framerate: a.jY
- }
- }).then(function (a) {
- return {
- dWb: a.supported,
- PEb: a.smooth,
- Pyb: a.powerEfficient
- };
- }) : Promise.reject("MediaCapabilities not supported");
- };
- b = a;
- return b = c.__decorate([g.N(), c.__param(0, g.l(q.Cw))], b);
- }
- ();
- b.Ota = d;
- }, function (d, b, a) {
- var g,
- q,
- n;
- function c(a, b, c, d, l) {
- a = g.Il.call(this, a, b, c) || this;
- a.Ke = d;
- a.navigator = l;
- a.type = q.oj.Owa;
- a.dVa = {};
- a.dVa = a.Pfb();
- return a;
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Qwa = void 0;
- g = a(132);
- q = a(31);
- n = a(61);
- da(c, g.Il);
- c.prototype.NN = function () {
- return Promise.resolve({
- SUPPORTS_SECURE_STOP: this.Ke.Bi.toString()
- });
- };
- c.prototype.SX = function (a) {
- var b,
- c;
- b = this;
- c = a.map(function (a) {
- for (var c = S(b.Gq), d = c.next(); !d.done; d = c.next())
- if (d.value.test(a))
- return Promise.resolve(!0);
- c = S(b.Al);
- for (d = c.next(); !d.done; d = c.next())
- if (d.value.test(a))
- return Promise.resolve(!1);
- return b.Sia(a);
- });
- return Promise.all(c).then(function (b) {
- return a.filter(function (a, c) {
- return b[c];
- });
- });
- };
- c.prototype.Sia = function (a) {
- var b;
- try {
- b = this.dVa[a];
- return !b || this.Uqb(b) && !this.Vqb() ? Promise.resolve(!1) : this.navigator.mediaCapabilities.decodingInfo({
- type: "media-source",
- video: b
- }).then(function (a) {
- return !0 === a.supported && !0 === a.powerEfficient;
- })["catch"](function () {
- return !1;
- });
- } catch (h) {
- return Promise.resolve(!1);
- }
- };
- c.prototype.Pfb = function () {
- var a,
- b,
- c,
- d,
- g,
- l,
- q,
- m,
- r,
- t,
- K,
- x,
- R;
- a = {};
- b = {
- contentType: 'video/mp4; codecs="hev1.2.4.L120.B0"'
- };
- c = {
- contentType: 'video/mp4; codecs="dvh1.05.04"'
- };
- d = {
- width: 1920,
- height: 1080
- };
- g = {
- width: 3840,
- height: 2160
- };
- l = Object.assign(Object.assign({}, d), {
- bitrate: 3E7,
- framerate: 30
- });
- q = Object.assign(Object.assign({}, d), {
- bitrate: 5E7,
- framerate: 60
- });
- d = Object.assign(Object.assign({}, g), {
- bitrate: 1E8,
- framerate: 30
- });
- g = Object.assign(Object.assign({}, g), {
- bitrate: 16E7,
- framerate: 60
- });
- m = {
- hdrMetadataType: "smpteSt2086",
- colorGamut: "rec2020",
- transferFunction: "pq"
- };
- r = {
- hdrMetadataType: "smpteSt2094-10",
- colorGamut: "rec2020",
- transferFunction: "pq"
- };
- t = Object.assign(Object.assign({}, {
- contentType: 'video/mp4; codecs="avc1.640028"'
- }), l);
- a[n.W.wS] = t;
- a[n.W.xS] = t;
- a[n.W.N4] = t;
- t = Object.assign(Object.assign({}, b), l);
- K = Object.assign(Object.assign({}, {
- contentType: 'video/mp4; codecs="hev1.2.4.L123.B0"'
- }), q);
- x = Object.assign(Object.assign({}, {
- contentType: 'video/mp4; codecs="hev1.2.4.L150.B0"'
- }), d);
- R = Object.assign(Object.assign({}, {
- contentType: 'video/mp4; codecs="hev1.2.4.L153.B0"'
- }), g);
- a[n.W.CS] = t;
- a[n.W.ES] = t;
- a[n.W.GS] = t;
- a[n.W.IS] = K;
- a[n.W.PD] = x;
- a[n.W.QD] = R;
- a[n.W.DS] = t;
- a[n.W.FS] = t;
- a[n.W.HS] = t;
- a[n.W.JS] = K;
- a[n.W.KS] = x;
- a[n.W.LS] = R;
- t = Object.assign(Object.assign(Object.assign({}, b), l), m);
- K = Object.assign(Object.assign(Object.assign({}, b), q), m);
- x = Object.assign(Object.assign(Object.assign({}, b), d), m);
- b = Object.assign(Object.assign(Object.assign({}, b), g), m);
- a[n.W.GJ] = t;
- a[n.W.HJ] = t;
- a[n.W.OD] = t;
- a[n.W.IJ] = K;
- a[n.W.zS] = x;
- a[n.W.AS] = b;
- l = Object.assign(Object.assign(Object.assign({}, c), l), r);
- q = Object.assign(Object.assign(Object.assign({}, c), q), r);
- d = Object.assign(Object.assign(Object.assign({}, c), d), r);
- c = Object.assign(Object.assign(Object.assign({}, c), g), r);
- a[n.W.tJ] = l;
- a[n.W.uJ] = l;
- a[n.W.CD] = l;
- a[n.W.vJ] = q;
- a[n.W.wJ] = d;
- a[n.W.gS] = c;
- return a;
- };
- c.prototype.Uqb = function (a) {
- return !!a.colorGamut || !!a.hdrMetadataType || !!a.transferFunction;
- };
- c.prototype.Vqb = function () {
- return t.matchMedia("(dynamic-range: high)").matches;
- };
- c.prototype.NQ = function () {
- return this.config().zda ? this.Sia(n.W.CD) : Promise.resolve(!1);
- };
- c.prototype.PQ = function () {
- return this.config().zda ? this.Sia(n.W.OD) : Promise.resolve(!1);
- };
- b.Qwa = c;
- }, function (d, b, a) {
- var g,
- q,
- n;
- function c(a, b, c, d, l, n) {
- a = g.Il.call(this, a, b, c) || this;
- a.vl = d;
- a.ls = l;
- a.Ga = n;
- a.type = q.oj.O3;
- a.log = a.ls.yb("ChromeVideoCapabilityDetector");
- return a;
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Jpa = void 0;
- g = a(132);
- q = a(31);
- n = a(3);
- da(c, g.Il);
- c.prototype.Ps = function (a) {
- switch (a) {
- case q.gi.er:
- return this.TFb;
- default:
- return Promise.resolve(!1);
- }
- };
- c.prototype.HG = function () {
- var a;
- a = this;
- return this.Ps(q.gi.er).then(function (a) {
- return a ? q.gi.er : void 0;
- }).then(function (b) {
- return a.PM(b);
- });
- };
- c.prototype.kaa = function (a) {
- return this.Bm = a;
- };
- c.prototype.lR = function () {
- var a;
- if (this.Bm) {
- a = this.LJa && this.MJa && this.LJa.Nb(this.MJa).ca(n.ia);
- this.Bm.itshdcp = JSON.stringify({
- hdcp1: this.Vu,
- time1: a
- });
- }
- };
- pa.Object.defineProperties(c.prototype, {
- pf: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- this.LMa || (this.LMa = this.vl.DG().then(function (a) {
- return a.createMediaKeys();
- }));
- return this.LMa;
- }
- },
- TFb: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- var a;
- a = this;
- this.bna || (this.config().mib ? this.bna = this.pf.then(function (b) {
- if (b && b.getStatusForPolicy)
- return a.MJa = a.Ga.jf, b.getStatusForPolicy({
- minHdcpVersion: "1.4"
- }).then(function (b) {
- a.LJa = a.Ga.jf;
- a.Vu = b;
- a.log.trace("hdcpStatus: " + a.Vu);
- return "usable" === a.Vu;
- });
- a.Vu = "not available";
- a.log.trace("hdcpStatus: " + a.Vu);
- return !1;
- })["catch"](function (b) {
- a.Vu = "exception";
- a.log.error("Exception in supportsHdcpLevel", {
- hdcpStatus: a.Vu
- }, b);
- return !1;
- }).then(function (b) {
- a.lR();
- return b;
- }) : (this.Vu = "not enabled", this.log.trace("hdcpStatus: " + this.Vu), this.lR(), this.bna = Promise.resolve(!1)));
- return this.bna;
- }
- }
- });
- b.Jpa = c;
- }, function (d, b, a) {
- var c,
- g,
- q,
- n,
- k,
- p,
- h,
- f,
- m,
- r,
- G,
- C,
- x,
- D,
- K,
- J,
- R,
- P,
- B;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Cta = void 0;
- c = a(61);
- g = a(132);
- q = a(31);
- d = a(98);
- n = a(139);
- k = a(135);
- p = a(3);
- h = a(251);
- f = a(133);
- m = a(241);
- r = "decode-res-x=3840 decode-res-y=2160 decode-bpc=10 decode-bitrate=16000 decode-fps=30 display-res-x=2560 display-res-y=1440 display-bpc=8".split(" ");
- G = "decode-res-x=3840 decode-res-y=2160 decode-bpc=10 decode-bitrate=16000 decode-fps=30 display-res-x=3840 display-res-y=2160 display-bpc=8".split(" ");
- C = "decode-res-x=1920 decode-res-y=1080 decode-bpc=10 decode-bitrate=5800 decode-fps=30 display-res-x=1920 display-res-y=1080 display-bpc=8 hdr=1".split(" ");
- x = "decode-res-x=3840 decode-res-y=2160 decode-bpc=10 decode-bitrate=16000 decode-fps=30 display-res-x=2560 display-res-y=1440 display-bpc=8 hdr=1".split(" ");
- D = "decode-res-x=1920 decode-res-y=1080 decode-bpc=10 decode-bitrate=5800 decode-fps=30 display-res-x=1920 display-res-y=1080 display-bpc=8 hdr=1 ext-profile=dvhe.05".split(" ");
- K = "decode-res-x=3840 decode-res-y=2160 decode-bpc=10 decode-bitrate=16000 decode-fps=30 display-res-x=2560 display-res-y=1440 display-bpc=8 hdr=1 ext-profile=dvhe.05".split(" ");
- J = ["hdcp=1"];
- R = ["hdcp=2"];
- P = new d.Iw();
- B = new h.OR();
- a = function () {
- function a(a, b, c, d, f, h, k) {
- a = g.Il.call(this, a, b, c) || this;
- a.ta = d;
- a.Ga = f;
- a.ls = h;
- a.qc = k;
- a.type = q.oj.qt;
- a.pJ = "hvc1";
- a.jXa = "avc1";
- a.gPa = {};
- a.log = a.ls.yb("MicrosoftVideoCapabilityDetector");
- a.ZEb();
- a.OQ && a.config().Eub ? a.SFa = a.kfb() : (a.SFa = Promise.resolve(""), a.config().Gub ? a.pfb() : a.config().Fub && a.ofb());
- return a;
- }
- da(a, g.Il);
- a.prototype.BG = function (a) {
- return a === q.yd.et && this.config().mIb ? f.Ed.EJ : g.Il.prototype.BG.call(this, a);
- };
- a.prototype.Ps = function (a) {
- switch (a) {
- case q.gi.er:
- return this.lTa();
- case q.gi.Lz:
- return this.GP;
- default:
- return Promise.resolve(!1);
- }
- };
- a.prototype.by = function () {
- return this.OQ ? this.Kpb ? this.lTa().then(function (a) {
- return Promise.resolve(a ? n.nb.Gd : n.nb.lK);
- }) : Promise.resolve(n.nb.lK) : this.UFb ? Promise.resolve(n.nb.lK) : Promise.resolve(n.nb.Np);
- };
- a.prototype.AY = function () {
- return this.SFa;
- };
- a.prototype.PQ = function () {
- return Promise.resolve(this.kTa());
- };
- a.prototype.QQ = function () {
- return this.OQ && this.nTa() ? this.GP : Promise.resolve(!1);
- };
- a.prototype.NQ = function () {
- return Promise.resolve(this.jTa());
- };
- a.prototype.kaa = function (a) {
- this.Bm = a;
- Object.assign(this.Bm, this.gPa);
- a.itshwdrm = this.OQ;
- a.itsqhd = this.mTa();
- a.itshevc = this.nTa();
- a.itshdr = this.kTa();
- a.itsdv = this.jTa();
- return a;
- };
- a.prototype.TL = function (a, b) {
- (this.Bm ? this.Bm : this.gPa)[a] = b;
- };
- a.prototype.HG = function () {
- var a;
- a = this;
- return this.Ps(q.gi.Lz).then(function (b) {
- return b ? a.PM(q.gi.Lz) : a.Ps(q.gi.er).then(function (b) {
- return b ? a.PM(q.gi.er) : a.PM(void 0);
- });
- });
- };
- a.prototype.NN = function () {
- return this.by().then(function (a) {
- return a === n.nb.Gd ? {
- DEVICE_SECURITY_LEVEL: "3000"
- }
- : void 0;
- });
- };
- a.prototype.SX = function (a) {
- var b;
- b = this;
- a = a.filter(function (a) {
- var c,
- f;
- for (var c = S(b.Gq), d = c.next(); !d.done; d = c.next())
- if (d.value.test(a))
- return !0;
- c = S(b.Al);
- for (d = c.next(); !d.done; d = c.next())
- if (d.value.test(a))
- return !1;
- a = b.Jka[a];
- c = [];
- f = n.nb.Np;
- if (a)
- return b.is.wn(a) ? d = a : (c = a.Bd, d = a.Te, f = a.rd), b.Cx(f, d, c);
- });
- return Promise.resolve(a);
- };
- a.prototype.fB = function () {
- var a;
- a = g.Il.prototype.fB.call(this);
- a[c.W.$T] = "vp09.00.11.08.02";
- a[c.W.aU] = "vp09.00.11.08.02";
- a[c.W.bU] = "vp09.00.11.08.02";
- a[c.W.CS] = {
- Te: "hev1.2.6.L90.B0",
- rd: n.nb.Gd,
- Bd: r
- };
- a[c.W.ES] = {
- Te: "hev1.2.6.L93.B0",
- rd: n.nb.Gd,
- Bd: r
- };
- a[c.W.GS] = {
- Te: "hev1.2.6.L120.B0",
- rd: n.nb.Gd,
- Bd: r
- };
- a[c.W.IS] = {
- Te: "hev1.2.6.L123.B0",
- rd: n.nb.Gd,
- Bd: r
- };
- a[c.W.PD] = {
- Te: "hev1.2.6.L150.B0",
- rd: n.nb.Gd,
- Bd: r
- };
- a[c.W.QD] = {
- Te: "hev1.2.6.L153.B0",
- rd: n.nb.Gd,
- Bd: r
- };
- a[c.W.DS] = {
- Te: "hev1.2.6.L90.B0",
- rd: n.nb.Gd,
- Bd: r
- };
- a[c.W.FS] = {
- Te: "hev1.2.6.L93.B0",
- rd: n.nb.Gd,
- Bd: r
- };
- a[c.W.HS] = {
- Te: "hev1.2.6.L120.B0",
- rd: n.nb.Gd,
- Bd: r
- };
- a[c.W.JS] = {
- Te: "hev1.2.6.L123.B0",
- rd: n.nb.Gd,
- Bd: r
- };
- a[c.W.KS] = {
- Te: "hev1.2.6.L150.B0",
- rd: n.nb.Gd,
- Bd: r
- };
- a[c.W.LS] = {
- Te: "hev1.2.6.L153.B0",
- rd: n.nb.Gd,
- Bd: r
- };
- a[c.W.GJ] = {
- Te: "hev1.2.6.L90.B0",
- rd: n.nb.Gd,
- Bd: C
- };
- a[c.W.HJ] = {
- Te: "hev1.2.6.L93.B0",
- rd: n.nb.Gd,
- Bd: C
- };
- a[c.W.OD] = {
- Te: "hev1.2.6.L120.B0",
- rd: n.nb.Gd,
- Bd: C
- };
- a[c.W.IJ] = {
- Te: "hev1.2.6.L123.B0",
- rd: n.nb.Gd,
- Bd: x
- };
- a[c.W.zS] = {
- Te: "hev1.2.6.L150.B0",
- rd: n.nb.Gd,
- Bd: x
- };
- a[c.W.AS] = {
- Te: "hev1.2.6.L153.B0",
- rd: n.nb.Gd,
- Bd: x
- };
- a[c.W.tJ] = {
- Te: "hev1.2.6.L90.B0",
- rd: n.nb.Gd,
- Bd: D
- };
- a[c.W.uJ] = {
- Te: "hev1.2.6.L93.B0",
- rd: n.nb.Gd,
- Bd: D
- };
- a[c.W.CD] = {
- Te: "hev1.2.6.L120.B0",
- rd: n.nb.Gd,
- Bd: D
- };
- a[c.W.vJ] = {
- Te: "hev1.2.6.L123.B0",
- rd: n.nb.Gd,
- Bd: K
- };
- a[c.W.wJ] = {
- Te: "hev1.2.6.L150.B0",
- rd: n.nb.Gd,
- Bd: K
- };
- a[c.W.gS] = {
- Te: "hev1.2.6.L153.B0",
- rd: n.nb.Gd,
- Bd: K
- };
- return a;
- };
- a.prototype.Cx = function (a, b, c) {
- a = m.yw.SW(a, b, c);
- return this.qu(a);
- };
- a.prototype.mTa = function () {
- return this.Cx(n.nb.Gd, this.pJ, r);
- };
- a.prototype.kTa = function () {
- return this.Cx(n.nb.Gd, this.pJ, C);
- };
- a.prototype.jTa = function () {
- return this.Cx(n.nb.Gd, this.pJ, D);
- };
- a.prototype.nTa = function () {
- return this.Cx(n.nb.Gd, this.pJ, G);
- };
- a.prototype.lTa = function () {
- var a;
- a = this;
- return this.GP.then(function (b) {
- return b ? Promise.resolve(b) : a.PPa;
- });
- };
- a.prototype.lR = function () {
- this.Bm && (this.Bm.itshdcp = JSON.stringify({
- hdcp1: this.JJa,
- time1: this.FTa - this.NSa,
- hdcp2: this.KJa,
- time2: this.GTa - this.OSa
- }));
- };
- a.prototype.ZEb = function () {
- var a;
- a = this;
- this.OQ ? (this.rka = new k.dn(), this.ska = new k.dn(), this.PPa = k.ob.from(this.rka).bR().then(function (a) {
- return "probably" === a;
- }), this.GP = k.ob.from(this.ska).bR().then(function (a) {
- return "probably" === a;
- }), this.sSa(this.ska, this.config().Iub), this.sPa(this.qmb.bind(this), this.ska), this.GP.then(function (b) {
- b || (a.sSa(a.rka, a.config().Hub), a.sPa(a.pmb.bind(a), a.rka));
- })) : (this.PPa = Promise.resolve(!0), this.GP = Promise.resolve(!1));
- };
- a.prototype.sPa = function (a, b) {
- k.ob.Rm(0, this.config().Jub).map(function () {
- return a();
- }).DQ(function (a) {
- return "maybe" === a;
- }).map(function (a) {
- b.next(a);
- b.complete();
- }).YQ(k.ob.from(b)).bR();
- };
- a.prototype.sSa = function (a, b) {
- this.ta.Dh(p.Jb(b), function () {
- a.next("timeout");
- a.complete();
- });
- };
- a.prototype.pmb = function () {
- var a;
- a = m.yw.SW(n.nb.lK, this.jXa, J).split("|");
- this.JJa = m.yw.ana(a[0], a[1]);
- this.FTa = this.Ga.jf.ca(p.ia);
- this.NSa = this.NSa || this.FTa;
- this.lR();
- return this.JJa;
- };
- a.prototype.qmb = function () {
- var a;
- a = m.yw.SW(n.nb.Gd, this.pJ, R).split("|");
- this.KJa = m.yw.ana(a[0], a[1]);
- this.GTa = this.Ga.jf.ca(p.ia);
- this.OSa = this.OSa || this.GTa;
- this.lR();
- return this.KJa;
- };
- a.prototype.kfb = function () {
- var a;
- a = this;
- return this.oca(n.nb.Gd, 'Q0hBSQAAAAEAAAUMAAAAAAAAAAJDRVJUAAAAAQAAAfwAAAFsAAEAAQAAAFhr+y4Ydms5rTmj6bCCteW2AAAAAAAAAAAAAAAJzZtwNxHterM9CAoJYOM3CF9Tj0d9KND413a+UtNzRTb/////AAAAAAAAAAAAAAAAAAAAAAABAAoAAABU8vU0ozkqocBJMVIX2K4dugAAADZodHRwOi8vbnJkcC5uY2NwLm5ldGZsaXguY29tL3Jtc2RrL3JpZ2h0c21hbmFnZXIuYXNteAAAAAABAAUAAAAMAAAAAAABAAYAAABcAAAAAQABAgAAAAAAglDQ2GehCoNSsOaaB8zstNK0cCnf1+9gX8wM+2xwLlqJ1kyokCjt3F8P2NqXHM4mEU/G1T0HBBSI3j6XpKqzgAAAAAEAAAACAAAABwAAAEgAAAAAAAAACE5ldGZsaXgAAAAAH1BsYXlSZWFkeSBNZXRlcmluZyBDZXJ0aWZpY2F0ZQAAAAAABjIwMjQ4AAAAAAEACAAAAJAAAQBAU73up7T8eJYVK4UHuKYgMQIRbo0yf27Y5EPZRPmzkx1ZDMor7Prs77CAOU9S9k0RxpxPnqUwAKRPIVCe0aX2+AAAAgBb65FSx1oKG2r8AxQjio+UrYGLhvA7KMlxJBbPXosAV/CJufnIdUMSA0DhxD2W3eRLh2vHukIL4VH9guUcEBXsQ0VSVAAAAAEAAAL8AAACbAABAAEAAABYyTlnSi+jZfRvYL0rk9sVfwAAAAAAAAAAAAAABFNh3USSkWi88BlSM6PZ2gMuceJFJ9hzz0WzuCiwF9qv/////wAAAAAAAAAAAAAAAAAAAAAAAQAFAAAADAAAAAAAAQAGAAAAYAAAAAEAAQIAAAAAAFvrkVLHWgobavwDFCOKj5StgYuG8DsoyXEkFs9eiwBX8Im5+ch1QxIDQOHEPZbd5EuHa8e6QgvhUf2C5RwQFewAAAACAAAAAQAAAAwAAAAHAAABmAAAAAAAAACATWljcm9zb2Z0AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAUGxheVJlYWR5IFNMMCBNZXRlcmluZyBSb290IENBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAMS4wLjAuMQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAIAAAAkAABAECsAomwQgNY0bm6U6Au9JRvwjbNnRzmVkZi+kg7npnRQ2T+4LgyrePBdBRQ3qb/jxXkn++4sOFa7vjRpFBzV0MMAAACAIZNYc/yJW5CLFaLPCgAHPs+FSdlhYS6BSG3mxgo2TbeHYJqj8Pm5/p6kNXKKUbx9kou+59dz/5+Q060QpP6xas= ').then(function (b) {
- a.log.debug("DriverInfo: " + b);
- return b;
- })["catch"](function (b) {
- a.TL("itsDriverInfo", "exception");
- a.log.error("DriverInfo exception", b);
- throw b;
- });
- };
- a.prototype.ofb = function () {
- var a;
- a = this;
- this.oca(n.nb.Np, ' ').then(function (b) {
- var c;
- c = String.fromCharCode.apply(void 0, a.qc.decode(b));
- a.TL("itsHardwareInfo", c);
- a.log.debug("HardwareInfo: " + c);
- return b;
- })["catch"](function (b) {
- a.TL("itsHardwareInfo", "exception");
- a.log.error("HardwareInfo exception", b);
- throw b;
- });
- };
- a.prototype.pfb = function () {
- var a;
- a = this;
- this.oca(n.nb.Np, ' ').then(function (b) {
- var c;
- c = String.fromCharCode.apply(void 0, a.qc.decode(b));
- a.TL("itsHardwareReset", c);
- a.log.debug("ResetHardwareDRMDisabled: " + c);
- return b;
- })["catch"](function (b) {
- a.TL("itsHardwareReset", "exception");
- a.log.error("ResetHardwareDRMDisabled exception", b);
- throw b;
- });
- };
- a.prototype.oca = function (a, b) {
- var c;
- c = this;
- return new Promise(function (d, f) {
- var q,
- m,
- u;
- function g(a) {
- try {
- l(a.target, "Unexpectedly got an mskeyerror event: 0x" + B.Ou(a && a.target && a.target.error && a.target.error.rTa || 0, 4));
- } catch (Za) {
- l(a.target, Za);
- }
- }
- function h(a) {
- l(a.target, "Unexpectedly got an mskeyadded event");
- }
- function k(a) {
- var b;
- try {
- b = c.Xda(a.message, "PlayReadyKeyMessage", "Challenge");
- n(a.target);
- d(b);
- } catch (ka) {
- l(a.target, ka);
- }
- }
- function l(a, d) {
- c.log.error("PlayReadyChallenge error", {
- cdmData: b
- });
- n(a);
- f(d);
- }
- function n(a) {
- a.removeEventListener("mskeymessage", k);
- a.removeEventListener("mskeyadded", h);
- a.removeEventListener("mskeyerror", g);
- q && q.cancel();
- }
- try {
- m = new Uint8Array(P.Xma(b));
- u = new t.MSMediaKeys(a).createSession("video/mp4", new Uint8Array(0), m);
- u.addEventListener("mskeymessage", k);
- u.addEventListener("mskeyadded", h);
- u.addEventListener("mskeyerror", g);
- q = c.ta.Dh(p.Jb(1E3), function () {
- l(u, Error("timeout"));
- });
- } catch (Ga) {
- f(Ga);
- }
- });
- };
- a.prototype.Xda = function (a, b) {
- var c,
- d,
- f,
- g;
- for (var c = 1; c < arguments.length; ++c);
- c = "";
- f = a.length;
- for (d = 0; d < f; d++)
- g = a[d], 0 < g && (c += String.fromCharCode(g));
- f = "\\s*(.*)\\s*";
- for (d = arguments.length - 1; 0 < d; d--) {
- g = arguments[d];
- if (0 > c.search(g))
- return;
- g = "(?:[^:].*:|)" + g;
- f = "[\\s\\S]*<" + g + "[^>]*>" + f + "" + g + ">[\\s\\S]*";
- }
- if (c = c.match(new RegExp(f)))
- return c[1];
- };
- pa.Object.defineProperties(a.prototype, {
- Kpb: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.config().lib && (!this.config().Kub || this.mTa());
- }
- },
- OQ: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- try {
- return this.qu(n.nb.Gd + '|video/mp4;codecs="' + f.Ed.MD + '"');
- } catch (T) {
- return !1;
- }
- }
- },
- UFb: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- try {
- return this.qu(n.nb.lK);
- } catch (T) {
- return !1;
- }
- }
- }
- });
- a.VI = 'video/mp4;codecs="{0},mp4a";';
- return a;
- }
- ();
- b.Cta = a;
- }, function (d, b, a) {
- var g,
- q,
- n,
- k,
- p;
- function c(a, b, c, d) {
- a = k.iS.call(this, a, b) || this;
- a.is = c;
- a.platform = d;
- a.type = g.Yq.qt;
- return a;
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.dua = void 0;
- g = a(31);
- q = a(61);
- n = a(139);
- k = a(445);
- p = a(241);
- da(c, k.iS);
- c.prototype.MQ = function () {
- return Promise.resolve(this.config().jN && this.Cx(n.nb.Np, "avc1,mp4a", ["audio-endpoint-codec=DD+JOC"]));
- };
- c.prototype.fB = function () {
- var a;
- a = {};
- a[q.tg.JJ] = "mp4a.40.2";
- a[q.tg.V4] = "mp4a.40.5";
- a[q.tg.KJ] = "mp4a.40.2";
- "browser" === this.platform.fhb ? this.config().jN && (a[q.tg.rJ] = {
- Te: "avc1",
- rd: n.nb.Np,
- Bd: ["audio-endpoint-codec=DD+JOC"]
- }, a[q.tg.sJ] = {
- Te: "avc1",
- rd: n.nb.Np,
- Bd: ["audio-endpoint-codec=DD+JOC"]
- }) : (this.config().xda && (a[q.tg.rJ] = "ec-3"), this.config().wda && (a[q.tg.V3] = "ec-3"), this.config().jN && (a[q.tg.sJ] = {
- Te: "avc1",
- rd: n.nb.Np,
- Bd: ["audio-endpoint-codec=DD+JOC"]
- }));
- return a;
- };
- c.prototype.SX = function (a) {
- var b;
- b = this;
- a = a.filter(function (a) {
- var c,
- f;
- for (var c = S(b.Gq), d = c.next(); !d.done; d = c.next())
- if (d.value.test(a))
- return !0;
- c = S(b.Al);
- for (d = c.next(); !d.done; d = c.next())
- if (d.value.test(a))
- return !1;
- a = b.Jka[a];
- c = [];
- f = n.nb.Np;
- if (a)
- return b.is.wn(a) ? d = a : (c = a.Bd, d = a.Te, f = a.rd), b.Cx(f, d, c);
- });
- return Promise.resolve(a);
- };
- c.prototype.Cx = function (a, b, c) {
- a = p.yw.SW(a, b, c);
- return this.qu(a);
- };
- b.dua = c;
- }, function (d, b, a) {
- var c,
- g,
- q,
- n,
- k,
- p,
- h,
- f,
- m,
- r,
- t,
- C,
- x,
- D,
- K,
- J,
- R,
- P,
- B,
- z,
- T;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Bpa = void 0;
- c = a(0);
- g = a(1);
- q = a(31);
- n = a(243);
- k = a(171);
- p = a(242);
- h = a(973);
- f = a(972);
- m = a(132);
- r = a(445);
- t = a(36);
- C = a(39);
- x = a(21);
- D = a(971);
- K = a(100);
- J = a(8);
- R = a(970);
- P = a(53);
- B = a(33);
- z = a(42);
- T = a(29);
- d = function () {
- var b;
- function a(a, b, c, d, f, g, h, k, l, n, p, q) {
- this.aLa = a;
- this.cast = b;
- this.config = c;
- this.ta = d;
- this.Ga = f;
- this.is = g;
- this.vl = h;
- this.ls = k;
- this.Ke = l;
- this.platform = n;
- this.qc = p;
- this.navigator = q;
- }
- a.prototype.Ueb = function (a) {
- var b;
- b = this.aLa.LEa();
- switch (a) {
- case q.Yq.qt:
- return new h.dua(this.config, b, this.is, this.platform);
- default:
- return new r.iS(this.config, b);
- }
- };
- a.prototype.Qfb = function (a) {
- var b;
- b = this.aLa.LEa();
- switch (a) {
- case q.oj.L3:
- a = new p.M3(this.config, b, this.is, this.cast);
- break;
- case q.oj.O3:
- a = new D.Jpa(this.config, b, this.is, this.vl, this.ls, this.Ga);
- break;
- case q.oj.qt:
- a = new f.Cta(this.config, b, this.is, this.ta, this.Ga, this.ls, this.qc);
- break;
- case q.oj.Owa:
- a = new R.Qwa(this.config, b, this.is, this.Ke, this.navigator);
- break;
- default:
- a = new m.Il(this.config, b, this.is);
- }
- return a;
- };
- b = a;
- return b = c.__decorate([g.N(), c.__param(0, g.l(n.x5)), c.__param(1, g.l(p.cS)), c.__param(2, g.l(k.yJ)), c.__param(3, g.l(t.Qg)), c.__param(4, g.l(C.Ii)), c.__param(5, g.l(x.ee)), c.__param(6, g.l(K.pt)), c.__param(7, g.l(J.Bb)), c.__param(8, g.l(P.Jl)), c.__param(9, g.l(B.dk)), c.__param(10, g.l(z.Gi)), c.__param(11, g.l(T.Cw))], b);
- }
- ();
- b.Bpa = d;
- }, function (d, b, a) {
- var c,
- g,
- q,
- n,
- k,
- p,
- h;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Ksa = void 0;
- c = a(0);
- g = a(1);
- q = a(243);
- n = a(171);
- k = a(31);
- p = a(242);
- h = a(241);
- d = function () {
- var b;
- function a(a, b, c) {
- this.config = a;
- this.lFa = b;
- this.cast = c;
- }
- a.prototype.LEa = function () {
- switch (this.config().W2) {
- case k.oj.L3:
- return p.M3.kca(this.lFa, this.cast);
- case k.oj.qt:
- return h.yw.kca(this.config);
- default:
- return this.lFa;
- }
- };
- b = a;
- return b = c.__decorate([g.N(), c.__param(0, g.l(n.yJ)), c.__param(1, g.l(q.k7)), c.__param(2, g.l(p.cS))], b);
- }
- ();
- b.Ksa = d;
- }, function (d, b, a) {
- var c,
- g,
- q,
- n,
- k,
- p,
- h,
- f;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.hxa = void 0;
- c = a(0);
- g = a(31);
- q = a(1);
- n = a(133);
- k = a(21);
- p = a(264);
- h = a(448);
- f = a(9);
- d = function () {
- var b,
- d;
- function a(a, b, c) {
- this.cN = a;
- this.Ha = b;
- this.dTa = c;
- this.O8a = "video/mp4;codecs={0}";
- this.N3a = "audio/mp4;codecs={0}";
- a = this.cN.BG(g.yd.et);
- this.N8a = n.Ed.QEa(a);
- }
- a.prototype.SM = function (a) {
- a = this.cN.smb(a);
- a = this.Ha.kB(a) ? a : g.yd.qK;
- return this.dTa.format(this.O8a, this.N8a[a]);
- };
- a.prototype.MM = function (a) {
- if (0 === a.length)
- return this.dTa.format(this.N3a, n.Ed.FR);
- a = h.s3[a[0].Vf];
- return a === b.VVa ? f.xw : a === b.WVa ? f.wta : f.vta;
- };
- d = b = a;
- d.VVa = "AAC";
- d.WVa = "XHEAAC";
- return d = b = c.__decorate([q.N(), c.__param(0, q.l(g.FD)), c.__param(1, q.l(k.ee)), c.__param(2, q.l(p.rK))], d);
- }
- ();
- b.hxa = d;
- }, function (d, b, a) {
- var c,
- g,
- q,
- n,
- k,
- p,
- h;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.tqa = void 0;
- c = a(0);
- g = a(31);
- q = a(171);
- n = a(1);
- k = a(61);
- p = a(450);
- h = a(449);
- d = function () {
- var b;
- function a(a, b, c) {
- this.config = a;
- this.ADa = b;
- this.kyb = c;
- this.Ezb = this.Hfb();
- }
- a.prototype.cob = function () {
- return this.yHa().gJa();
- };
- a.prototype.dob = function () {
- return this.mq().gJa();
- };
- a.prototype.yHa = function () {
- this.Naa && this.Naa.type == this.config().Oaa || (this.Naa = this.ADa.Ueb(this.config().Oaa));
- return this.Naa;
- };
- a.prototype.mq = function () {
- this.V2 && this.V2.type == this.config().W2 || (this.V2 = this.ADa.Qfb(this.config().W2), this.V2.kaa(this.kyb.hmb()));
- return this.V2;
- };
- a.prototype.smb = function (a) {
- var d;
- if (!a || !a.length)
- return g.yd.yS;
- a = this.Ujb(a);
- for (var b = [g.yd.qK, g.yd.yS, g.yd.YT, g.yd.jt, g.yd.et, g.yd.wD, g.yd.Mw, g.yd.Fi], c = b.length; c--; ) {
- d = b[c];
- if ((0, this.Ezb[d])(a))
- return d;
- }
- return g.yd.qK;
- };
- a.prototype.Ps = function (a) {
- return this.mq().Ps(a);
- };
- a.prototype.qu = function (a) {
- return this.mq().qu(a);
- };
- a.prototype.by = function () {
- return this.mq().by();
- };
- a.prototype.AY = function () {
- return this.mq().AY();
- };
- a.prototype.PQ = function () {
- return this.mq().PQ();
- };
- a.prototype.MQ = function () {
- return this.yHa().MQ();
- };
- a.prototype.NQ = function () {
- return this.mq().NQ();
- };
- a.prototype.QQ = function () {
- return this.mq().QQ();
- };
- a.prototype.BG = function (a) {
- return this.mq().BG(a);
- };
- a.prototype.HG = function () {
- return this.mq().HG();
- };
- a.prototype.NN = function () {
- return this.mq().NN();
- };
- a.prototype.Ujb = function (a) {
- var b;
- b = {};
- a.filter(function (a) {
- return "video" === a.type;
- }).forEach(function (a) {
- b[a.Vf] = "";
- });
- return Object.keys(b);
- };
- a.prototype.Hfb = function () {
- var a;
- a = {};
- a[g.yd.Fi] = function (a) {
- return a.some(function (a) {
- return -1 < a.indexOf("av1");
- });
- };
- a[g.yd.wD] = function (a) {
- return a.some(function (a) {
- return -1 < a.indexOf("hpl");
- });
- };
- a[g.yd.Mw] = function (a) {
- return a.some(function (a) {
- return -1 < a.indexOf("vp9");
- });
- };
- a[g.yd.et] = function (a) {
- return a.some(function (a) {
- return -1 < a.indexOf("hevc-dv");
- });
- };
- a[g.yd.jt] = function (a) {
- return a.some(function (a) {
- return -1 < a.indexOf("hevc-hdr");
- });
- };
- a[g.yd.YT] = function (a) {
- return a.some(function (a) {
- return -1 < a.indexOf("hevc-main10-L") || -1 < a.indexOf("hevc-main-L");
- });
- };
- a[g.yd.yS] = function (a, b) {
- var c;
- c = {};
- a.forEach(function (a) {
- return c[a] = 1;
- });
- a = S(b);
- for (b = a.next(); !b.done; b = a.next())
- if (c[b.value])
- return !0;
- }
- .bind(null, [k.W.ND]);
- a[g.yd.qK] = function () {
- return !0;
- };
- return a;
- };
- b = a;
- return b = c.__decorate([n.N(), c.__param(0, n.l(q.yJ)), c.__param(1, n.l(h.K3)), c.__param(2, n.l(p.G4))], b);
- }
- ();
- b.tqa = d;
- }, function (d, b, a) {
- var c,
- g,
- q,
- n,
- k,
- p,
- h,
- f,
- m,
- r,
- G,
- C,
- x,
- D,
- K,
- J,
- R,
- P,
- B,
- z,
- T;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.cN = void 0;
- d = a(1);
- c = a(31);
- g = a(14);
- q = a(977);
- n = a(171);
- k = a(113);
- p = a(976);
- h = a(243);
- f = a(975);
- m = a(450);
- r = a(449);
- G = a(974);
- C = a(242);
- x = a(10);
- D = a(444);
- K = a(969);
- J = a(443);
- R = a(968);
- P = a(240);
- B = a(967);
- z = a(442);
- T = a(29);
- b.cN = new d.Ec(function (a) {
- a(k.aA).to(p.hxa).aa();
- a(c.FD).to(q.tqa).aa();
- a(h.x5).to(f.Ksa).aa();
- a(r.K3).to(G.Bpa).aa();
- a(h.k7).bi({
- isTypeSupported: x.cE && x.cE.isTypeSupported
- });
- a(C.cS).bi("undefined" !== typeof cast ? cast : null);
- a(m.G4).iz(function (a) {
- return {
- hmb: function () {
- return a.lb.get(T.jE);
- }
- };
- });
- a(n.yJ).iz(function (a) {
- return a.lb.get(g.jd);
- });
- a(D.d6).to(K.Ota).aa();
- a(J.c6).to(R.Pta).aa();
- a(P.F4).to(B.pra).aa();
- a(z.E7).bi(t);
- });
- }, function (d, b, a) {
- var c,
- g;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Lxa = void 0;
- c = a(0);
- g = a(1);
- d = function () {
- function a(a) {
- this.Ghb = void 0 === a ? 10 : a;
- }
- return a = c.__decorate([g.N()], a);
- }
- ();
- b.Lxa = d;
- }, function (d, b, a) {
- var c,
- g,
- q;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Hpa = void 0;
- c = a(0);
- g = a(1);
- q = a(244);
- d = function () {
- var b;
- function a(a) {
- this.OGb = a;
- this.w2 = {};
- }
- a.prototype.zlb = function () {
- var a,
- b,
- c;
- a = [];
- for (b in this.w2) {
- c = this.w2[b];
- a.push({
- Dx: Number(b),
- iD: c.qm().iD,
- ida: c.qm().ida
- });
- }
- return a;
- };
- a.prototype.UV = function (a) {
- var b,
- c;
- b = a.Dx;
- c = this.w2[b];
- c || (c = this.OGb(), this.w2[b] = c);
- c.UV(a);
- };
- b = a;
- return b = c.__decorate([g.N(), c.__param(0, g.l(q.VT))], b);
- }
- ();
- b.Hpa = d;
- }, function (d, b, a) {
- var c,
- g,
- q,
- n,
- k;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Mxa = void 0;
- c = a(0);
- g = a(1);
- q = a(48);
- n = a(3);
- k = a(452);
- d = function () {
- var b;
- function a(a) {
- this.config = a;
- this.Gma = q.wd;
- this.BI = [];
- }
- a.prototype.qm = function () {
- var b;
- for (var a; 0 < this.BI.length; )
- a = this.BI.shift(), this.IBa(a);
- a = void 0 === this.fN || void 0 === this.nB ? n.wd : this.nB.Nb(this.fN);
- b = a.dLa() ? 0 : this.Gma.ca(q.yz) / a.ca(n.ia);
- return {
- iD: Math.floor(b),
- ida: a.ca(n.ia)
- };
- };
- a.prototype.UV = function (a) {
- this.Gma = this.Gma.add(a.size);
- this.BI.push(a.Fhb);
- for (this.BI.sort(function (a, b) {
- return a.start.nl(b.start);
- }); this.BI.length > this.config.Ghb; )
- a = this.BI.shift(), this.IBa(a);
- };
- a.prototype.IBa = function (a) {
- void 0 === this.fN && (this.fN = a.start);
- void 0 !== this.nB && 0 > this.nB.nl(a.start) && (this.fN = this.fN.add(a.start.Nb(this.nB)));
- if (void 0 === this.nB || 0 > this.nB.nl(a.end))
- this.nB = a.end;
- };
- b = a;
- return b = c.__decorate([g.N(), c.__param(0, g.l(k.j8))], b);
- }
- ();
- b.Mxa = d;
- }, function (d, b, a) {
- var c,
- g,
- q,
- n,
- k,
- p;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.hz = void 0;
- d = a(1);
- c = a(981);
- g = a(980);
- q = a(979);
- n = a(451);
- k = a(452);
- p = a(244);
- b.hz = new d.Ec(function (a) {
- a(p.k8).to(c.Mxa);
- a(n.N3).to(g.Hpa).aa();
- a(k.j8).bi(new q.Lxa());
- a(p.VT).tf(function (a) {
- return function () {
- return a.lb.get(p.k8);
- };
- });
- });
- }, function (d, b, a) {
- var g,
- q,
- n,
- k,
- p,
- h;
- function c(a, b, c, d, g, h, k, l, n, p, m, r, t) {
- var f;
- f = this;
- this.Wc = a;
- this.Ha = b;
- this.Kb = d;
- this.Bq = h;
- this.DM = k;
- this.Nkb = l;
- this.config = p;
- this.me = r;
- this.da = t;
- this.j = m.create(t.u, t.Ik, n, t.gb, t.id);
- this.j.background = !0;
- this.j.ya = t.ya;
- this.log = c.yb("VideoPlayer", this.j);
- this.$Oa = [];
- this.ended = !1;
- this.BR();
- this.j.state.addListener(function (a) {
- a.newValue === q.qb.xd && f.Zd(q.wb.mha, {
- movieId: t.u
- });
- });
- this.j.Oa.Zi && (this.EF = g.Web(this, this.j, this.me), this.j.addEventListener(q.U.H1, function (a) {
- f.Zd(q.wb.SCb, {
- segmentId: a.segmentId
- });
- }));
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Jsa = void 0;
- g = a(2);
- q = a(13);
- n = a(3);
- k = a(10);
- p = a(78);
- h = a(20);
- c.prototype.isReady = function () {
- return this.j.state.value === q.qb.xd;
- };
- c.prototype.Umb = function () {
- return this.j.u;
- };
- c.prototype.YY = function () {
- return this.j.fa;
- };
- c.prototype.qnb = function () {
- return this.j.WPa;
- };
- c.prototype.Pn = function () {
- return this.j.Mf;
- };
- c.prototype.as = function () {
- return this.j;
- };
- c.prototype.my = function () {
- return this.j.Dq.value;
- };
- c.prototype.frb = function () {
- return this.j.paused.value;
- };
- c.prototype.Qqb = function () {
- return this.ended;
- };
- c.prototype.tk = function () {
- var a;
- a = this.j.kba.value;
- return a ? {
- networkStalled: !!a.f2,
- stalled: !!a.f2,
- progress: a.Xh,
- progressRollback: !!a.Izb
- }
- : null;
- };
- c.prototype.getError = function () {
- var a;
- a = this.j.Vi;
- return a ? a.una() : null;
- };
- c.prototype.qlb = function () {
- var a;
- a = (this.wY() || 0) + this.j.DHa();
- return Math.min(a, this.NHa());
- };
- c.prototype.wY = function () {
- return this.j.JB();
- };
- c.prototype.NHa = function () {
- return this.j.Qr.ca(n.ia);
- };
- c.prototype.Bob = function () {
- return this.j.bJ ? {
- width: this.j.bJ.width,
- height: this.j.bJ.height
- }
- : null;
- };
- c.prototype.Yea = function () {
- var g;
- if (this.j.Um) {
- for (var a, b = 0; b < this.j.Um.length; b++)
- for (var c = this.j.Um[b], d = 0; d < c.ic.length; d++) {
- g = c.ic[d];
- this.Ha.dg(g.uca) && this.Ha.dg(g.WW) && this.Ha.dg(g.VW) && this.Ha.dg(g.UW) && 0 < g.WW && (g = g.UW / g.VW, a = this.Ha.dg(a) ? Math.min(a, g) : g);
- }
- return a;
- }
- };
- c.prototype.Glb = function () {
- return this.j.Yea();
- };
- c.prototype.Mkb = function (a) {
- var b,
- c;
- c = null === (b = this.j.Oa) || void 0 === b ? void 0 : b.xl;
- return c ? this.Nkb.kf(this.log, Object.assign({
- packageId: c
- }, a)) : Promise.reject("Unknown packageId");
- };
- c.prototype.Plb = function () {
- return this.Qlb(this.j.Zca);
- };
- c.prototype.$kb = function () {
- var a;
- a = this;
- return this.j.Bn ? this.j.Bn.map(function (b) {
- return a.KB(b);
- }).filter(function (a) {
- return null !== a;
- }) : [];
- };
- c.prototype.jJa = function (a) {
- var b,
- c;
- b = this;
- c = a && this.j.Bn.find(function (c) {
- return b.KB(c) === a;
- }) || this.j.ld.value;
- return null === c ? [] : c.Qk.map(function (a) {
- return b.KB(a);
- }).filter(function (a) {
- return null !== a;
- });
- };
- c.prototype.crb = function () {
- return this.j.muted.value;
- };
- c.prototype.Dob = function () {
- return this.j.volume.value;
- };
- c.prototype.Zkb = function () {
- return this.KB(this.j.ld.value);
- };
- c.prototype.iJa = function () {
- return this.KB(this.j.vc.value);
- };
- c.prototype.Fqb = function () {
- return !!this.j.background;
- };
- c.prototype.PDb = function (a) {
- this.j.muted.set(!!a);
- };
- c.prototype.gEb = function (a) {
- this.j.volume.set(this.WNa(a, 1));
- };
- c.prototype.UDb = function (a) {
- this.j.playbackRate.set(this.WNa(a, 2));
- };
- c.prototype.PIa = function () {
- return this.j.playbackRate.value;
- };
- c.prototype.xDb = function (a) {
- var b,
- c;
- b = this;
- c = this.j.Bn.find(function (c) {
- return b.KB(c) === a;
- });
- c ? this.j.ld.set(c) : this.log.error("Invalid setAudioTrack call");
- };
- c.prototype.iSa = function (a) {
- var d;
- if (null !== this.j.ld.value) {
- for (var b = this.j.ld.value.Qk, c = 0; c < b.length; c++) {
- d = b[c];
- if (!a && null === d) {
- this.j.vc.set(null);
- return;
- }
- if (this.KB(d) === a) {
- this.log.info("Setting Timed Text, profile: " + d.profile);
- this.j.vc.set(d);
- return;
- }
- }
- this.log.error("Invalid setTimedTextTrack call");
- }
- };
- c.prototype.VRa = function (a) {
- this.j.background = a;
- };
- c.prototype.FQ = function () {
- this.j.FQ();
- };
- c.prototype.addEventListener = function (a, b, c) {
- this.Kb.addListener(a, b, c);
- };
- c.prototype.removeEventListener = function (a, b) {
- this.Kb.removeListener(a, b);
- };
- c.prototype.Mv = function () {};
- c.prototype.load = function () {
- var a;
- a = this;
- this.loaded || (this.loaded = !0, this.j.load(function (b, c) {
- try {
- a.Zd(q.wb.$sb, void 0, !0);
- b.ya && (b.ya.Uf.qVa && a.Zd(q.wb.fJb, b.ya.Uf.qVa, !0), b.ya.Uf.uu && a.Zd(q.wb.RCb, {
- segmentMap: b.ya.Uf.uu
- }, !0));
- c({
- V: !0
- });
- } catch (G) {
- c({
- ha: g.I.Of,
- fb: a.Wc.pd(G)
- });
- }
- }));
- };
- c.prototype.close = function (a) {
- var b;
- b = this;
- this.aEa || (this.aEa = new Promise(function (c) {
- a ? b.j.Wd(a, c) : b.j.close(c);
- }));
- return this.aEa;
- };
- c.prototype.play = function () {
- this.j.jk ? this.j.fireEvent(q.U.pRa) : (this.load(), this.j.paused.value && (this.j.paused.set(!1), this.j.fireEvent(q.U.YUa)));
- };
- c.prototype.pause = function () {
- this.load();
- this.j.paused.value || (this.j.paused.set(!0), this.j.fireEvent(q.U.AIb));
- };
- c.prototype.seek = function (a, b, c, d) {
- this.j.$i ? this.j.$i.seek(a, b, c, d) : this.j.VA = a;
- };
- c.prototype.pyb = function (a) {
- return this.EF ? (this.log.trace("Playing a segment", a), this.EF.play(a)) : Promise.resolve();
- };
- c.prototype.Yzb = function (a) {
- return this.EF ? (this.log.trace("Queueing a segment", a), this.EF.Mk(a)) : Promise.resolve();
- };
- c.prototype.Bp = function (a, b) {
- return this.EF ? (this.log.trace("Updating next segment weights", a, b), this.EF.Bp(a, b)) : Promise.resolve();
- };
- c.prototype.fR = function () {
- this.j.fR();
- };
- c.prototype.TY = function () {
- var a;
- a = this.j.ho.TY();
- return {
- bounds: a.nM,
- margins: a.gp,
- size: a.size,
- visibility: a.visibility
- };
- };
- c.prototype.yQ = function (a) {
- var b,
- c,
- d;
- b = a.bounds;
- c = a.margins;
- d = a.size;
- a = a.visibility;
- this.j.aR && (b && this.j.aR.rma(b), c && this.j.aR.sma(c), "boolean" === typeof a && this.j.aR.tma(a));
- this.j.ho && d && this.j.ho.aEb(d);
- };
- c.prototype.lSa = function (a) {
- this.j.Rk = a;
- };
- c.prototype.oob = function (a) {
- return this.j.$v && this.j.$v.nmb(a) || null;
- };
- c.prototype.Skb = function () {
- return this.Wc.kC({
- playerver: this.config.version,
- jssid: this.config.Lrb,
- groupName: this.config.omb(),
- xid: this.j.fa,
- pbi: this.j.index
- }, this.config.lyb, {
- prefix: "pi_"
- });
- };
- c.prototype.gqb = function (a) {
- this.j.Wd(this.me(g.J.bZa, g.I.Xk, a));
- };
- c.prototype.Osb = function (a, b, c, d) {
- if (!this.Ha.kCa(a))
- throw Error("invalid url");
- this.$Oa.push({
- url: a,
- name: b,
- fab: c,
- options: d
- });
- this.NPa();
- };
- c.prototype.ZIa = function () {
- var a,
- b,
- c,
- d,
- g,
- k,
- l,
- n;
- a = {};
- b = this.j.RSa;
- try {
- if (this.j.Vi && (a.errorCode = this.j.Vi.oX, a.errorType = b ? "endplay" : "startplay"), a.playdelay = h.lm(this.j.qba()), a.xid = this.j.fa, this.j.ya && this.Ha.wn(this.j.ya.Uf.xl) && (a.packageId = Number(this.j.ya.Uf.xl)), a.auth = this.j.blb(), b) {
- a.totaltime = this.j.Cm ? this.Nu(this.j.Cm.QN()) : 0;
- a.abrdel = this.j.Cm ? this.j.Cm.zHa() : 0;
- c = this.j.$i;
- d = c ? c.GB() : null;
- this.Ha.dg(d) && (a.totdfr = d);
- d = c ? c.EN() : null;
- this.Ha.dg(d) && (a.totcfr = d);
- g = c ? c.ymb() : null;
- g && (a.rbfrs_decoder = g.ygb, a.rbfrs_network = g.Evb);
- a.rbfrs_delay = this.j.Cm ? this.j.Cm.cha : 0;
- a.init_vbr = this.j.KZ;
- k = this.ON();
- this.Ha.kB(k) && (a.pdltime = k);
- l = this.j.qf.value;
- n = l && l.stream;
- n && (a.vbr = n.O, a.vdlid = n.md);
- a.bufferedTime = this.j.DHa();
- }
- } catch (J) {
- this.log.error("error capturing session summary", J);
- }
- return a;
- };
- c.prototype.nN = function (a) {
- return this.Ha.dg(this.j.cc.value) ? (a = Object.assign(Object.assign({}, this.Bq.create(this.j)), {
- action: a
- }), this.DM(p.Kl.nN).Uo(this.log, this.j.ya.Jj, a).then(function () {
- return {
- success: !0
- };
- })["catch"](function (a) {
- return {
- success: !1,
- errorCode: a.code,
- errorSubCode: a.Hb,
- errorExternalCode: a.qd,
- errorData: a.data,
- errorDetails: a.Jx
- };
- })) : Promise.resolve({
- success: !1
- });
- };
- c.prototype.Qlb = function (a) {
- return {
- register: a.register.bind(a),
- notifyUpdated: a.QNa.bind(a),
- getModel: a.Smb.bind(a),
- getGroups: a.EY.bind(a),
- addEventListener: a.addEventListener.bind(a),
- removeEventListener: a.removeEventListener.bind(a),
- getTime: a.getTime.bind(a)
- };
- };
- c.prototype.KB = function (a) {
- var b;
- if (null !== a) {
- b = a.Ozb = a.Ozb || {
- trackId: a.eb,
- bcp47: a.ll,
- displayName: a.displayName,
- trackType: a.Tm,
- channels: a.Ko
- };
- a.Un && (b.isImageBased = !0);
- this.hrb(a) && (b.isNative = a.isNative);
- this.irb(a) && (b.isNoneTrack = a.ZZ(), b.isForcedNarrative = a.UZ());
- return b;
- }
- return null;
- };
- c.prototype.hrb = function (a) {
- return "undefined" !== typeof a.isNative;
- };
- c.prototype.irb = function (a) {
- return "undefined" !== typeof a.ZZ && "undefined" !== typeof a.UZ;
- };
- c.prototype.WNa = function (a, b) {
- return 0 <= a ? a <= b ? a : b : 0;
- };
- c.prototype.Nu = function (a) {
- return this.Ha.dg(a) ? (a / 1E3).toFixed(0) : "";
- };
- c.prototype.Zd = function (a, b, c) {
- b = b || {};
- b.target = this;
- this.Kb.Xb(a, b, !c);
- };
- c.prototype.BR = function () {
- var a;
- a = this;
- this.j.addEventListener(q.U.kna, function () {
- a.Zd(q.wb.Po);
- });
- this.j.addEventListener(q.U.K_, function () {
- a.Zd(q.wb.kDa);
- });
- this.j.addEventListener(q.U.qp, function () {
- a.Zd(q.wb.kDa);
- });
- this.j.addEventListener(q.U.TG, function (b) {
- a.Zd(q.wb.TG, {
- errorCode: b
- });
- });
- this.j.addEventListener(q.U.Saa, function (b) {
- a.Zd(q.wb.gab, b.j);
- });
- this.j.addEventListener(q.U.jk, function (b) {
- a.Zd(q.wb.hab, b);
- });
- this.j.Dq.addListener(function () {
- a.Zd(q.wb.Hyb);
- });
- this.j.paused.addListener(function () {
- a.Zd(q.wb.Ixb);
- });
- this.j.muted.addListener(function () {
- a.Zd(q.wb.wvb);
- });
- this.j.volume.addListener(function () {
- a.Zd(q.wb.$Ib);
- });
- this.j.Qb.addListener(function () {
- a.CUa();
- });
- this.j.state.addListener(function () {
- a.CUa();
- });
- this.j.kba.addListener(function (b) {
- a.Xsb || a.j.state.value != q.qb.xd || b.newValue || (a.Xsb = !0, a.Zd(q.wb.loaded), setTimeout(function () {
- a.log.debug.bind(a.log, "summary ", a.ZIa());
- }));
- a.Zd(q.wb.lba);
- });
- this.j.ld.addListener(function (b) {
- a.Zd(q.wb.eM);
- b.oldValue && b.newValue && b.oldValue.Qk == b.newValue.Qk || a.Zd(q.wb.lD);
- setTimeout(function () {
- var b;
- if (null !== a.j.ld.value && null !== a.j.vc.value) {
- b = a.j.ld.value.Qk;
- 0 <= b.indexOf(a.j.vc.value) || (a.log.info("Changing timed text track to match audio track"), a.j.vc.set(b[0]));
- }
- }, 0);
- });
- this.j.vc.addListener(function (b) {
- b.oldValue && b.newValue && b.oldValue.eb == b.newValue.eb || a.Zd(q.wb.SI);
- });
- this.j.addEventListener(q.U.lD, function () {
- a.Zd(q.wb.lD);
- });
- this.j.addEventListener(q.U.dR, function () {
- a.Zd(q.wb.dR);
- });
- this.j.state.addListener(function (b) {
- switch (b.newValue) {
- case q.qb.xd:
- a.Zd(q.wb.Xhb);
- a.Zd(q.wb.UIb);
- a.Zd(q.wb.ICa);
- a.Zd(q.wb.lD);
- a.Zd(q.wb.Zsb);
- a.NPa();
- a.kJb();
- break;
- case q.qb.CLOSING:
- a.j.Vi && a.Zd(q.wb.error, a.j.Vi.una());
- break;
- case q.qb.CLOSED:
- a.Zd(q.wb.closed),
- a.Kb.Ag();
- }
- });
- };
- c.prototype.kJb = function () {
- var a;
- a = this;
- this.j.ho.addEventListener("showsubtitle", function (b) {
- a.Zd(q.wb.FEb, b, !0);
- });
- this.j.ho.addEventListener("removesubtitle", function (b) {
- a.Zd(q.wb.oBb, b, !0);
- });
- };
- c.prototype.NPa = function () {
- if (this.j.state.value == q.qb.xd) {
- for (var a, b, c; b = this.$Oa.shift(); )
- a = this.j.ho.jaa(b.url, b.name, b.options), b.fab && (c = a);
- c && this.j.vc.set(c);
- }
- };
- c.prototype.CUa = function () {
- var a;
- a = this.j.state.value == q.qb.xd && this.j.Qb.value == q.kb.br;
- this.ended !== a && (this.ended = a, this.j.Fo("Ended changed: " + a), (a || this.j.state.value === q.qb.CLOSING) && this.Zd(q.wb.Kib));
- };
- c.prototype.ON = function () {
- var a,
- b;
- try {
- a = /playercore.*js/;
- b = k.ir.getEntriesByType("resource").filter(function (b) {
- return null !== a.exec(b.name);
- });
- if (b && 0 < b.length)
- return JSON.stringify(Math.round(b[0].duration));
- } catch (A) {}
- };
- b.Jsa = c;
- }, function (d, b, a) {
- var c,
- g,
- q,
- n,
- k,
- p,
- h,
- f,
- m,
- r,
- t,
- C,
- x;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.qya = void 0;
- c = a(0);
- g = a(1);
- q = a(90);
- n = a(25);
- k = a(21);
- p = a(8);
- h = a(68);
- f = a(246);
- m = a(454);
- r = a(983);
- t = a(245);
- C = a(78);
- x = a(453);
- d = function () {
- var b;
- function a(a) {
- this.Pb = a;
- }
- a.prototype.Bfb = function (a, b, c, d) {
- return new r.Jsa(this.Pb.get(n.af), this.Pb.get(k.ee), this.Pb.get(p.Bb), this.Pb.get(h.rS), this.Pb.get(f.PT), this.Pb.get(t.tT), this.Pb.get(C.qS), this.Pb.get(x.W6), this.Pb.get(m.j4), a, b, c, d);
- };
- b = a;
- return b = c.__decorate([g.N(), c.__param(0, g.l(q.u5))], b);
- }
- ();
- b.qya = d;
- }, function (d, b, a) {
- var c,
- g;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.eVa = void 0;
- d = a(1);
- c = a(456);
- g = a(984);
- b.eVa = new d.Ec(function (a) {
- a(c.z8).to(g.qya).aa();
- });
- }, function (d, b, a) {
- var c,
- g,
- q;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Vxa = void 0;
- c = a(0);
- g = a(1);
- q = a(14);
- d = function () {
- var b;
- function a(a) {
- this.config = a;
- }
- a.prototype.Dzb = function (a, b, c) {
- var d,
- f;
- if (this.config().gDb) {
- d = a.metrics;
- if (void 0 !== d) {
- f = a.playlistSegment || void 0;
- b.mv.transition({
- isBranching: void 0 === f || void 0,
- isPlaygraph: f,
- mid: b.u,
- xid: b.fa,
- srcxid: c.fa,
- srcmid: c.u,
- segment: a.segmentId,
- srcsegment: d.srcsegment,
- srcsegmentduration: d.srcsegmentduration,
- srcoffset: d.srcoffset,
- seamlessRequested: d.seamlessRequested,
- transitionType: d.transitionType,
- delayToTransition: d.delayToTransition,
- durationOfTransition: d.durationOfTransition,
- atRequest: d.atRequest,
- atTransition: d.atTransition,
- discard: d.discard
- });
- }
- }
- };
- b = a;
- return b = c.__decorate([g.N(), c.__param(0, g.l(q.jd))], b);
- }
- ();
- b.Vxa = d;
- }, function (d, b, a) {
- var g,
- q,
- n;
- function c(a, b, c, d, g) {
- this.debug = a;
- this.version = b;
- this.Lrb = c;
- this.lyb = d;
- this.config = g;
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Xwa = void 0;
- g = a(0);
- q = a(1);
- n = a(3);
- c.prototype.omb = function () {
- return this.config().gy;
- };
- c.prototype.Rea = function () {
- return this.config().cDa;
- };
- c.prototype.Ffa = function () {
- return n.Jb(this.config().Jyb);
- };
- c.prototype.yIa = function () {
- return this.config().Wsb;
- };
- c.prototype.BIa = function () {
- return this.config().Mtb;
- };
- d = function () {
- var b;
- function a() {}
- a.prototype.Xx = function (a, b, d, g, k) {
- return new c(a, b, d, g, k);
- };
- b = a;
- return b = g.__decorate([q.N()], b);
- }
- ();
- b.Xwa = d;
- }, function (d, b, a) {
- var n,
- k,
- p,
- h;
- function c(a, b, c, d, g, h, k) {
- var f;
- f = this;
- this.X = b;
- this.j = c;
- this.By = d;
- this.ta = g;
- this.ZL = h;
- this.me = k;
- this.IF = function () {
- f.Ey && (f.Ey.cancel(), f.Ey = void 0);
- };
- this.log = a.yb("SegmentManager", this.j);
- this.Va = new Map();
- this.j.Oa.Zi && (this.j.addEventListener(p.U.H1, function (a) {
- return f.Qja(a);
- }), this.j.addEventListener(p.U.closed, this.IF));
- }
- function g(a, b) {
- this.id = a;
- this.Dba = b;
- }
- function q(a, b, c, d) {
- return k.Dc.call(this, a, c, void 0, void 0, void 0, b, void 0, d) || this;
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.ipa = void 0;
- n = a(2);
- k = a(47);
- p = a(13);
- h = a(3);
- da(q, k.Dc);
- q.prototype.toString = function () {
- return this.code + "-" + this.Hb + " : " + this.message + "\n" + JSON.stringify(this.data);
- };
- g.prototype.toJSON = function () {
- return {
- id: this.id,
- contentStartPts: this.sf,
- contentEndPts: this.Bg
- };
- };
- pa.Object.defineProperties(g.prototype, {
- sf: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.Dba.startTimeMs;
- }
- },
- Bg: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.Dba.endTimeMs;
- }
- },
- f0: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return Object.keys(this.Dba.next);
- }
- }
- });
- c.prototype.Qja = function (a) {
- var b,
- c;
- b = this;
- if (0 === this.Va.size) {
- c = this.j.vY();
- Object.keys(c).forEach(function (a) {
- b.Va.set(a, new g(a, c[a]));
- });
- }
- this.ga = this.Va.get(a.segmentId);
- };
- c.prototype.play = function (a) {
- this.bI && (this.bI = void 0);
- this.IF();
- this.log.trace("Playing segment", a);
- return this.NKa(a) ? this.oyb(a) : this.H0(a);
- };
- c.prototype.Mk = function (a) {
- this.log.trace("Queueing segment", a);
- return this.NKa(a) ? this.Xzb(a) : this.Zzb(a);
- };
- c.prototype.Bp = function (a, b) {
- var c,
- d;
- c = this;
- d = this.j.Gb;
- if (!d)
- return Promise.reject(this.getError(n.J.Yoa, "ASE session manager is not yet initialized", n.I.u3, {
- segmentId: a,
- updates: b
- }));
- this.log.trace("Updating next segment weights", a, b);
- return new Promise(function (f, g) {
- try {
- d.H2(a, b);
- c.j.fireEvent(p.U.Bp, {
- Na: a,
- $Hb: b
- });
- f();
- } catch (D) {
- g(c.getError(n.J.Yoa, "updateNextSegmentWeights threw an exception", n.I.BWa, {
- segmentId: a,
- updates: b,
- error: D
- }));
- }
- });
- };
- c.prototype.NKa = function (a) {
- return this.ga ? void 0 !== this.j.vY()[this.ga.id].next[a] : !1;
- };
- c.prototype.QIa = function () {
- if (this.j.Gb)
- return this.j.Gb.KY().ze;
- };
- c.prototype.unb = function () {
- if (this.j.Gb)
- return this.j.Gb.KY().id;
- };
- c.prototype.Blb = function (a) {
- if (this.j.Gb)
- return (a = this.j.Gb.uY(a)) && a.ie;
- };
- c.prototype.oyb = function (a) {
- var b,
- c,
- d;
- b = this;
- c = this.j.Gb;
- if (!c)
- return Promise.reject(this.getError(n.J.lJ, "ASE session manager is not yet initialized", n.I.u3, {
- id: a
- }));
- if (this.ga && 1 === this.ga.f0.length)
- return this.H0(a);
- if (!this.j.$i)
- return this.log.warn("MediaPresenter is not initialized", a), Promise.reject(this.getError(n.J.lJ, "MediaPresenter is not initialized", n.I.yWa, {
- id: a
- }));
- d = this.Blb(a);
- return void 0 === d ? (this.log.error("playNextSegment: branchOffset missing", {
- segment: a
- }), this.H0(a)) : new Promise(function (f, g) {
- var r,
- u,
- t,
- A,
- G,
- C;
- function k() {
- !t && u && r && (C.cancel(), t = !0, b.log.trace("Telling ASE to choose the next segment", {
- id: a,
- stopped: u,
- repositioned: r,
- completed: t
- }), c.vu(a, !1, !0) ? (f(), t = !0) : (t = !0, b.log.error("playNextSegment: ASE chooseNextSegment failed. Falling back to full seek.", {
- segment: a
- }), b.H0(a).then(f)["catch"](g)));
- }
- function l() {
- r = !0;
- b.log.trace("Player is repositioned", {
- id: a,
- stopped: u,
- repositioned: r,
- completed: t
- });
- b.j.removeEventListener(p.U.qp, l);
- k();
- }
- function q() {
- b.j.removeEventListener(p.U.Is, q);
- c.stop();
- }
- function m() {
- u = !0;
- b.log.trace("ASE is stopped", {
- id: a,
- stopped: u,
- repositioned: r,
- completed: t
- });
- c.removeEventListener("stop", m);
- k();
- }
- r = !1;
- u = !1;
- t = !1;
- A = b.Va.get(a);
- G = A.sf + (d || 0);
- b.log.trace("Seeking to next segment", JSON.stringify({
- segmentId: a,
- seekTo: G,
- currentSegment: b.ga,
- nextSegment: A
- }, null, " "));
- b.j.fireEvent(p.U.e0, {
- zg: b.ga && b.ga.id,
- gP: a
- });
- c.addEventListener("stop", m);
- b.j.addEventListener(p.U.Is, q);
- b.j.addEventListener(p.U.qp, l);
- C = b.ta.Dh(h.ph(10), function () {
- t = !0;
- C.cancel();
- g(b.getError(n.J.lJ, "Timed out waiting for the player to be repositioned and ASE to be stopped", n.I.xWa, {
- id: a,
- stopped: u,
- repositioned: r,
- completed: t
- }));
- });
- b.X.seek(G, p.Ge.Yz);
- });
- };
- c.prototype.H0 = function (a) {
- var b;
- b = this.Va.get(a);
- return b ? this.hQ(b, n.J.lJ) : Promise.reject(this.getError(n.J.lJ, "Unable to find the separated segment", n.I.Xoa, {
- id: a
- }));
- };
- c.prototype.Xzb = function (a) {
- var b;
- b = this.j.Gb;
- if (!b)
- return Promise.reject(this.getError(n.J.yD, "ASE session manager is not yet initialized", n.I.u3, {
- id: a
- }));
- if (b.vu(a, !0, !0))
- return Promise.resolve();
- this.log.error("queueNextSegment: ASE chooseNextSegment failed", {
- segment: a
- });
- return Promise.reject(this.getError(n.J.yD, "ASE chooseNextSegment failed", n.I.vWa, {
- id: a
- }));
- };
- c.prototype.Zzb = function (a) {
- var b,
- c;
- b = this;
- this.log.error("calls to queueSeparatedSegment are deprecated", {
- segment: a,
- mid: this.j.u,
- srcsegment: this.unb()
- });
- if (this.bI)
- return Promise.reject(this.getError(n.J.yD, "Unable to queue a non-next segment because there is currently already a segment queued", n.I.AWa, {
- currentSegment: this.ga ? this.ga.id : void 0,
- queuedSegment: this.bI.id,
- failedSegment: a
- }));
- if (!this.ga)
- return Promise.reject(this.getError(n.J.yD, "Unable to queue a non-next segment because there is no currently playing segment", n.I.wWa, {
- nextSegmentid: a
- }));
- c = this.Va.get(a);
- if (!c)
- return Promise.reject(this.getError(n.J.yD, "Unable to find the separated segment", n.I.Xoa, {
- nextSegmentid: a,
- currentSegmentId: this.ga.id
- }));
- this.bI = {
- id: a,
- Cs: new Promise(function (d, f) {
- var g;
- b.Ey = b.By.nca({
- Ffa: function () {
- return h.Jb(100);
- }
- }, function () {
- return b.X.j.cc.value || 0;
- });
- g = b.QIa() - 500;
- b.log.trace("Adding moment for queued segment", {
- segment: a,
- pts: g
- });
- b.Ey.observe(g, function () {
- b.log.trace("Moment has arrived", {
- segment: a,
- currentSegment: b.ga.id,
- playerEndPts: b.QIa(),
- pts: g
- });
- b.bI = void 0;
- b.IF();
- b.hQ(c, n.J.yD).then(d)["catch"](f);
- });
- })
- };
- this.bI.Cs["catch"](function (a) {
- b.j.Wd(b.me(a.code, a));
- });
- return Promise.resolve();
- };
- c.prototype.hQ = function (a, b) {
- var c;
- c = this;
- return new Promise(function (d, f) {
- try {
- c.X.seek(a.sf, p.Ge.xt);
- d();
- } catch (H) {
- f(c.getError(b, "Seek threw an exception", n.I.zWa, {
- id: a.id,
- error: H
- }));
- }
- });
- };
- c.prototype.getError = function (a, b, c, d) {
- this.log.warn(b, d);
- return new q(a, b, c, d);
- };
- b.ipa = c;
- }, function (d, b, a) {
- var k,
- p,
- h,
- f;
- function c(a, b, c, d, g, h, l, n, q) {
- var m;
- m = this;
- this.qa = a;
- this.By = c;
- this.mka = d;
- this.config = g;
- this.me = h;
- this.AP = l;
- this.gd = n;
- this.$ib = Object.keys(p.wb).map(function (a) {
- return {
- event: p.wb[a],
- fZ: function (b) {
- return m.Kb.Xb(p.wb[a], b);
- }
- };
- });
- this.Kb = q.create();
- this.IC = [];
- this.log = b.yb("SegmentManager");
- new k.dn();
- this.rea = !0;
- this.Mf = this.gd.createElement("div", f.H7);
- }
- function g(a, b, c, d, f, g, h, l, n) {
- var p;
- p = this;
- this.log = a;
- this.config = b;
- this.twb = c;
- this.mka = d;
- this.me = f;
- this.AP = g;
- this.Mq = h;
- this.da = l;
- this.Mf = n;
- this.IF = function () {
- p.Ey && (p.Ey.cancel(), p.Ey = void 0);
- };
- this.gga = function (a) {
- p.log.trace("Received the transition event", {
- movieId: a.u
- });
- p.nAb();
- };
- this.log.debug("Constructing session data", q(l));
- this.Wha = new k.dn();
- this.zGb = new Promise(function (a) {
- p.nAb = a;
- });
- }
- function q(a) {
- return {
- movieId: a.u
- };
- }
- function n(a) {
- return JSON.stringify({
- movieId: a.u,
- startPts: a.T,
- logicalEnd: a.Yn,
- params: a.gb ? {
- trackingId: a.gb.di,
- authParams: a.gb.fM,
- sessionParams: a.gb.eo,
- disableTrackStickiness: a.gb.cda,
- uiPlayStartTime: a.gb.G2,
- loadImmediately: a.gb.t_,
- playbackState: a.gb.playbackState ? {
- currentTime: a.gb.playbackState.currentTime,
- volume: a.gb.playbackState.volume,
- muted: a.gb.playbackState.muted,
- playbackRate: a.gb.playbackState.playbackRate
- }
- : void 0,
- pin: a.gb.dPa,
- heartbeatCooldown: a.gb.qga,
- uiLabel: a.gb.re
- }
- : void 0
- });
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Zwa = void 0;
- k = a(135);
- p = a(13);
- h = a(3);
- f = a(9);
- g.prototype.load = function (a) {
- var b,
- c;
- b = this;
- this.log.trace("Loading new segment", q(this.da));
- this.X = this.mka.Bfb(this.config, this.AP, this.me, this.da);
- this.X.addEventListener(p.wb.TG, function (a) {
- b.log.trace("Segment is inactive", q(b.da));
- b.Mq.close(b.me(a.errorCode));
- });
- this.X.addEventListener(p.wb.closed, this.IF);
- if (a)
- this.log.debug("Pausing background segment", q(this.da)), this.X.addEventListener(p.wb.mha, this.gga), this.X.pause();
- else {
- this.Mf.appendChild(this.X.Pn());
- c = function (a) {
- b.gga(a);
- b.X.removeEventListener(p.wb.loaded, c);
- };
- this.X.addEventListener(p.wb.loaded, c);
- }
- };
- g.prototype.observe = function () {
- var a,
- b,
- c;
- a = this;
- this.log.trace("Observing segment", n(this.da));
- if (this.Ey)
- this.log.trace("Segment is currently observing", q(this.da));
- else if (this.da.gb && this.da.gb.t_)
- this.Wha.next(this);
- else {
- b = this.twb.nca(this.config, function () {
- var b;
- if (a.X) {
- b = a.X.j.cc.value;
- if (b)
- return b;
- }
- return 0;
- });
- c = this.ubb(this.da);
- this.log.trace("Adding a moment to watch", {
- time: c
- });
- b.observe(c, function () {
- a.log.trace("Segment has reached its loading point", q(a.da));
- a.Wha.next(a);
- a.IF();
- });
- }
- };
- g.prototype.close = function (a) {
- this.log.info("Closing segment", {
- segment: n(this.da),
- error: a
- });
- return this.X ? (this.X.removeEventListener(p.wb.mha, this.gga), this.X.close(a)) : Promise.resolve();
- };
- g.prototype.ubb = function (a) {
- var b,
- c;
- b = a.Yn;
- a = a.gb ? a.gb.t_ : !1;
- c = 0;
- b && !a && (c = b - this.config.yIa(), c < this.config.BIa() && (a = b - this.config.BIa(), c = b - a / 2));
- return c;
- };
- c.prototype.Bnb = function () {
- return this.Je && this.Je.X ? this.Je.X.isReady() : !1;
- };
- c.prototype.Pn = function () {
- return this.Mf;
- };
- c.prototype.Sh = function () {
- if (!this.Je || !this.Je.X)
- throw Error("Player not ready");
- return this.Je.X;
- };
- c.prototype.OHb = function (a) {
- var b,
- c;
- c = this.fea(a);
- c ? this.HUa(c, a) : (this.log.iaa("xid", null === (b = this.Je.X) || void 0 === b ? void 0 : b.YY()), this.log.error("Tried to update a non-existent segment", {
- segment: n(a),
- currentMovieId: this.Je.da.u,
- queuedMovieIds: this.IC.map(function (a) {
- return a.da.u;
- })
- }));
- };
- c.prototype.Sp = function (a) {
- var b;
- this.log.info("Adding segment", n(a));
- this.rea ? (this.log.trace("First segment, loading", q(a)), b = this.ELa(a), this.rea = !1) : (this.log.trace("Subsequent segment, caching", q(a)), (b = this.fea(a)) ? this.HUa(b, a) : (b = this.Gn(a), this.IC.push(b), this.Je.observe()));
- return b ? b.zGb : null;
- };
- c.prototype.transition = function (a) {
- var b;
- if (this.yv && this.yv.X) {
- b = this.yv;
- this.yv = void 0;
- this.log.info("Transitioning segment", n(b.da));
- b && b.X && b.X.lSa(this.qa.$b().ca(h.ia));
- return this.dUa(b, a);
- }
- return Promise.resolve();
- };
- c.prototype.close = function (a) {
- var b;
- b = this;
- this.log.trace("Closing all segments", {
- currSession: JSON.stringify(q(this.Je.da)),
- nextSession: this.yv ? JSON.stringify(q(this.yv.da)) : void 0
- });
- a = [this.Je.close(a)];
- this.yv && a.push(this.yv.close());
- return Promise.all(a).then(function () {
- b.yv = void 0;
- b.IC = [];
- b.rea = !0;
- });
- };
- c.prototype.addListener = function (a, b, c) {
- this.Kb.addListener(a, b, c);
- };
- c.prototype.removeListener = function (a, b) {
- this.Kb.removeListener(a, b);
- };
- c.prototype.HUa = function (a, b) {
- this.lxb(a.da, b);
- this.log.trace("Overwrote existing segment data", n(a.da));
- };
- c.prototype.ELa = function (a) {
- var b,
- c;
- b = this;
- this.log.info("Loading the next episode", q(a));
- this.Je ? (this.config.Rea()[a.u] = a.T, c = this.fea(a)) : c = this.Gn(a);
- if (c)
- return this.log.trace("Found the next session", q(a)), c.Wha.subscribe(function (a) {
- b.oGb(a);
- }), this.Je ? (this.log.trace("Subsequent playback, caching player and pausing", q(a)), this.yv = c, c.load(!0)) : (this.log.trace("First playback transitioning immediately", q(a)), c.load(!1), this.dUa(c)), c;
- this.log.warn("Unable to find the session, make sure to add it before loading", q(a));
- };
- c.prototype.dUa = function (a, b) {
- var c,
- d;
- b = void 0 === b ? {}
- : b;
- this.log.trace("Playing episode", q(a.da));
- c = this.Je;
- this.Je = a;
- if (this.Je.X && (this.Je.X.VRa(!1), this.BR(this.Je.X, c ? c.X : void 0), c && c.X)) {
- d = c.X.Pn();
- a = this.Je.X.Pn();
- d.style.display = "none";
- c = c.close();
- this.Mf.appendChild(a);
- this.Je.X && (a.style.display = "block", this.Je.X.getError() ? this.Je.X.close() : (this.Je.X.as().IHb(b), this.Je.X.FQ(), this.Je.X.play()));
- c.then(function () {
- d.parentElement && d.parentElement.removeChild(d);
- });
- return c;
- }
- return Promise.resolve();
- };
- c.prototype.oGb = function (a) {
- var b,
- c,
- d,
- f;
- if (this.IC.length && a.X) {
- a = a.X.j.cc.value;
- b = this.IC[0];
- c = this.Je.da.Yn;
- d = this.Je.da.gb ? this.Je.da.gb.t_ : !1;
- if (c || d) {
- d ? f = 0 : c && (f = c - this.config.yIa());
- null !== a && a >= f && (this.log.info("Got a time change, loading the next player", q(b.da)), this.ELa(b.da), this.IC.splice(0, 1));
- }
- }
- };
- c.prototype.fea = function (a) {
- return this.Je.da.u === a.u ? this.Je : this.IC.find(function (b) {
- return b.da.u === a.u;
- });
- };
- c.prototype.lxb = function (a, b) {
- a.T = b.T || a.T;
- a.Yn = b.Yn || a.Yn;
- a.gb = b.gb || a.gb;
- a.ya = b.ya || a.ya;
- };
- c.prototype.Gn = function (a) {
- return new g(this.log, this.config, this.By, this.mka, this.me, this.AP, this, a, this.Mf);
- };
- c.prototype.BR = function (a, b) {
- this.$ib.forEach(function (c) {
- b && b.removeEventListener(c.event, c.fZ);
- a.addEventListener(c.event, c.fZ);
- });
- this.Kb.Xb(p.Vz.kQ);
- };
- b.Zwa = c;
- }, function (d, b, a) {
- var c,
- g,
- q,
- n,
- k,
- p,
- h,
- f,
- m,
- r,
- t,
- C,
- x,
- D;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Ywa = void 0;
- c = a(0);
- g = a(1);
- q = a(24);
- n = a(8);
- k = a(247);
- p = a(60);
- h = a(457);
- f = a(456);
- m = a(989);
- r = a(988);
- t = a(84);
- C = a(36);
- x = a(461);
- D = a(25);
- d = function () {
- var b;
- function a(a, b, c, d, f, g, h, k, l, n) {
- this.qa = a;
- this.Hf = b;
- this.By = c;
- this.TIb = d;
- this.AP = f;
- this.ta = g;
- this.ZL = h;
- this.me = k;
- this.Qda = l;
- this.gd = n;
- }
- a.prototype.vfb = function (a) {
- return new m.Zwa(this.qa, this.Hf, this.By, this.TIb, a, this.me, this.AP, this.gd, this.Qda);
- };
- a.prototype.Web = function (a, b, c) {
- c = void 0 === c ? this.me : c;
- return new r.ipa(this.Hf, a, b, this.By, this.ta, this.ZL, c);
- };
- b = a;
- return b = c.__decorate([g.N(), c.__param(0, g.l(q.Oe)), c.__param(1, g.l(n.Bb)), c.__param(2, g.l(k.YS)), c.__param(3, g.l(f.z8)), c.__param(4, g.l(h.u7)), c.__param(5, g.l(C.Qg)), c.__param(6, g.l(t.jJ)), c.__param(7, g.l(p.Vk)), c.__param(8, g.l(x.KD)), c.__param(9, g.l(D.af))], b);
- }
- ();
- b.Ywa = d;
- }, function (d, b, a) {
- var c,
- g,
- q,
- n,
- k,
- p;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Va = void 0;
- d = a(1);
- c = a(246);
- g = a(458);
- q = a(990);
- n = a(987);
- k = a(455);
- p = a(986);
- b.Va = new d.Ec(function (a) {
- a(c.PT).to(q.Ywa).aa();
- a(g.W7).to(n.Xwa).aa();
- a(k.o8).to(p.Vxa).aa();
- });
- }, function (d, b) {
- function a(a, b, d) {
- this.ta = a;
- this.config = b;
- this.getTime = d;
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.gua = void 0;
- a.prototype.observe = function (a, b) {
- var c;
- c = this;
- this.cancel();
- this.Yh = this.ta.Kla(this.config.Ffa(), function () {
- c.getTime() >= a && (c.cancel(), b());
- });
- };
- a.prototype.cancel = function () {
- this.Yh && (this.Yh.cancel(), this.Yh = void 0);
- };
- b.gua = a;
- }, function (d, b, a) {
- var c,
- g,
- q,
- n;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.fua = void 0;
- c = a(0);
- g = a(1);
- q = a(992);
- n = a(36);
- d = function () {
- var b;
- function a(a) {
- this.ta = a;
- }
- a.prototype.nca = function (a, b) {
- return new q.gua(this.ta, a, b);
- };
- b = a;
- return b = c.__decorate([g.N(), c.__param(0, g.l(n.Qg))], b);
- }
- ();
- b.fua = d;
- }, function (d, b, a) {
- var c,
- g;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.ZMa = void 0;
- d = a(1);
- c = a(247);
- g = a(993);
- b.ZMa = new d.Ec(function (a) {
- a(c.YS).to(g.fua).aa();
- });
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.reduce = void 0;
- b.reduce = function (a, b, d) {
- for (; void 0 !== a; a = a.cause)
- d = b(d, a);
- return d;
- };
- }, function (d, b, a) {
- var r,
- t,
- C,
- x,
- D;
- function c(a) {
- return m.call(this, a, function (a) {
- return {
- Details: a
- };
- }) || this;
- }
- function g(a) {
- return m.call(this, a, function (a) {
- return JSON.parse(a.toJSON());
- }) || this;
- }
- function q(a, b) {
- b = m.call(this, b, function (b) {
- return {
- Base64: a.encode(b)
- };
- }) || this;
- b.qc = a;
- return b;
- }
- function n(a, b) {
- b = m.call(this, b, function (a) {
- return a();
- }) || this;
- b.Wc = a;
- return b;
- }
- function k(a, b) {
- return h.call(this, a, b, function (a) {
- var b;
- b = C.reduce(a, function (a, b) {
- var c;
- a.name = void 0 !== a.name ? a.name + ("-" + b.name) : b.name;
- c = "";
- c = "undefined" !== typeof b.type && "undefined" !== typeof b.type.prefix ? c + b.type.prefix : c + b.name;
- "undefined" !== typeof b.number && (c += b.number);
- a.errorCode = void 0 !== a.errorCode ? a.errorCode + ("-" + c) : c;
- k.Ecb(b, a, "stack", "message");
- return a;
- }, {});
- return Object.assign(Object.assign({}, a), b);
- }) || this;
- }
- function p(a) {
- return m.call(this, a, function (a) {
- return {
- Exception: a.message || "" + a,
- StackTrace: a.stack || "nostack"
- };
- }) || this;
- }
- function h(a, b, c) {
- b = m.call(this, b, c) || this;
- b.Wc = a;
- return b;
- }
- function f(a) {
- return m.call(this, a, function (a) {
- return {
- Details: a
- };
- }) || this;
- }
- function m(a, b) {
- this.Jq = a;
- this.value = b ? b(a) : a;
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.fta = b.gZa = void 0;
- r = a(0);
- t = a(1);
- C = a(995);
- x = a(25);
- D = a(42);
- m.prototype.oN = function (a) {
- return this.Jq === a;
- };
- da(f, m);
- f.prototype.mD = function (a, b) {
- return b ? "" : "\r\n" + this.Jq;
- };
- da(h, m);
- h.prototype.mD = function () {
- var a;
- a = "";
- this.Wc.Ju(this.value, function (b, c) {
- try {
- a += ", " + b + ": " + c;
- } catch (P) {
- try {
- a += ", " + b + ": " + JSON.stringify(c);
- } catch (ba) {
- a += ", error stringifying " + b;
- }
- }
- });
- return a.replace(/[\r\n]+ */g, " ");
- };
- da(p, m);
- p.prototype.mD = function (a) {
- var b;
- b = "\r\n" + this.Jq.message;
- a || (b += "\r\n" + this.Jq.stack);
- return b;
- };
- da(k, h);
- k.Ecb = function (a, b, c) {
- var g,
- h;
- for (var d = [], f = 2; f < arguments.length; ++f)
- d[f - 2] = arguments[f];
- for (f = 0; f < d.length; ++f) {
- g = a[d[f]];
- if (void 0 !== g) {
- h = "" + d[f];
- b[h] = b[h] || [];
- b[h].push(g);
- }
- }
- };
- b.gZa = k;
- da(n, m);
- n.prototype.mD = function () {
- var a;
- a = "";
- this.Wc.Ju(this.value, function (b, c) {
- a += ", " + b + ": " + c;
- });
- return a.replace(/[\r\n]+ */g, " ");
- };
- da(q, m);
- q.prototype.mD = function (a, b) {
- return this.Jq && !b ? "\r\n" + this.qc.encode(this.Jq) : "";
- };
- da(g, m);
- g.prototype.mD = function () {
- return this.Jq ? this.Jq.toJSON() : "";
- };
- da(c, m);
- c.prototype.mD = function () {
- return ", " + (this.Jq.toString ? "" + this.Jq.toString() : "");
- };
- d = function () {
- var b;
- function a(a, b) {
- this.qc = a;
- this.Wc = b;
- this.Cd = [];
- }
- a.prototype.L9a = function (a) {
- this.Cd.push(new f(a));
- };
- a.prototype.A9a = function (a) {
- this.Cd.push(new h(this.Wc, a));
- };
- a.prototype.o9a = function (a) {
- this.Cd.push(new p(a));
- };
- a.prototype.m9a = function (a) {
- this.Cd.push(new k(this.Wc, a));
- };
- a.prototype.r9a = function (a) {
- this.Cd.push(new n(this.Wc, a));
- };
- a.prototype.M9a = function (a) {
- this.Cd.push(new q(this.qc, a));
- };
- a.prototype.y9a = function (a) {
- this.Cd.push(new g(a));
- };
- a.prototype.N9a = function (a) {
- this.Cd.push(new c(a));
- };
- a.prototype.kk = function () {
- return this.Cd;
- };
- b = a;
- return b = r.__decorate([t.N(), r.__param(0, t.l(D.Gi)), r.__param(1, t.l(x.af))], b);
- }
- ();
- b.fta = d;
- }, function (d, b, a) {
- var c,
- g,
- q,
- n,
- k;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.eta = void 0;
- c = a(0);
- g = a(1);
- q = a(996);
- n = a(42);
- k = a(25);
- d = function () {
- var b;
- function a(a, b) {
- this.qc = a;
- this.Wc = b;
- }
- a.prototype.Gmb = function () {
- return new q.fta(this.qc, this.Wc);
- };
- b = a;
- return b = c.__decorate([g.N(), c.__param(0, g.l(n.Gi)), c.__param(1, g.l(k.af))], b);
- }
- ();
- b.eta = d;
- }, function (d, b, a) {
- var g,
- q;
- function c(a, b, c, d, f, g, l) {
- this.level = a;
- this.cm = b;
- this.timestamp = c;
- this.message = d;
- this.Cd = f;
- this.prefix = g;
- this.index = void 0 === l ? 0 : l;
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Goa = void 0;
- g = a(3);
- q = {
- 0: "F",
- 1: "E",
- 2: "W",
- 3: "I",
- 4: "T",
- 5: "D"
- };
- c.prototype.y2 = function (a, b) {
- a = (this.prefix.length ? "" + this.prefix.join(" ") + " " : "") + this.message + (b ? "" : " " + this.zFb(!!a));
- return (this.timestamp.ca(g.ia) / 1E3).toFixed(3) + "|" + this.index + "|" + (q[this.level] || this.level) + "|" + this.cm + "| " + a;
- };
- c.prototype.zFb = function (a) {
- var f;
- for (var b = this.Cd.length, c = "", d = 0; d < b; ++d) {
- f = this.Cd[d].Jq;
- d && c.length && (c += " ");
- if ("object" === typeof f)
- if (null === f)
- c += "null";
- else if (f instanceof Error)
- c += this.yFb(f, a);
- else
- try {
- c += JSON.stringify(f);
- } catch (u) {
- c += this.xFb(f);
- }
- else
- c += f;
- }
- return c;
- };
- c.prototype.yFb = function (a, b) {
- return a.toString() + (a.stack && !b ? "\n" + a.stack : "") + "\n";
- };
- c.prototype.xFb = function (a) {
- var b;
- b = [];
- return JSON.stringify(a, function (a, c) {
- if ("object" === typeof c && null !== c) {
- if (-1 !== b.indexOf(c))
- return "";
- b.push(c);
- }
- return c;
- });
- };
- b.Goa = c;
- }, function (d, b, a) {
- var g,
- q;
- function c(a, b, c, d, f, l) {
- a = g.UD.call(this, a, b, c, d) || this;
- a.ega = f;
- Array.isArray(l) ? a.prefix = l : l && "string" === typeof l && (a.prefix = [], a.prefix.push(l));
- return a;
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Hoa = void 0;
- g = a(248);
- q = a(998);
- da(c, g.UD);
- c.prototype.ox = function (a, b, c) {
- a = new q.Goa(a, this.cm, this.qa.$b(), b, c, this.prefix);
- b = S(this.El.El);
- for (c = b.next(); !c.done; c = b.next())
- c = c.value, c(a);
- };
- c.prototype.pca = function (a) {
- return new c(this.qa, this.nu, this.El, a, this.ega, this.prefix);
- };
- b.Hoa = c;
- }, function (d, b, a) {
- var g,
- q,
- n;
- function c(a, b, c, d, l) {
- a = n.UD.call(this, a, b, c, l) || this;
- a.j = d;
- g.wm(a, "playback");
- return a;
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Fva = void 0;
- g = a(54);
- q = a(459);
- n = a(248);
- da(c, n.UD);
- c.prototype.pca = function (a) {
- return new c(this.qa, this.nu, this.El, this.j, a);
- };
- c.prototype.ox = function (a, b, c) {
- a = new q.N5(a, this.cm, this.qa.$b(), b, c, this.j.index);
- b = S(this.El.El);
- for (c = b.next(); !c.done; c = b.next())
- c = c.value, c(a, this.j);
- };
- b.Fva = c;
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.EnumeratedErrorBase = void 0;
- b.EnumeratedErrorBase = function (a, b, d, g) {
- this.type = a;
- this.name = a.name;
- this.number = b;
- "string" === typeof d ? this.message = d : void 0 !== d && (this.cause = d);
- void 0 !== g && (this.message = g);
- };
- }, function (d, b, a) {
- var c;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.YA = void 0;
- c = a(1001);
- b.YA = function (a, b) {
- var g;
- a = a.Gmb();
- for (var d = 0; d < b.length; ++d) {
- g = b[d];
- void 0 != g && null != g && (g.eh && (g = g.eh), g.constructor === Uint8Array ? a.M9a(g) : "MediaRequest" === g.constructor.name ? a.y9a(g) : "string" === typeof g ? a.L9a(g) : "function" === typeof g ? a.r9a(g) : g instanceof Error ? a.o9a(g) : g instanceof c.EnumeratedErrorBase ? a.m9a(g) : g instanceof Object ? a.A9a(g) : a.N9a(g));
- }
- return a.kk();
- };
- }, function (d, b, a) {
- var c,
- g,
- q,
- n,
- k,
- p,
- h,
- f;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.mta = void 0;
- c = a(0);
- g = a(248);
- q = a(1);
- n = a(1E3);
- k = a(24);
- p = a(96);
- h = a(8);
- f = a(999);
- d = function () {
- var b;
- function a(a, b, c) {
- this.qa = a;
- this.El = b;
- this.cia = c;
- }
- a.prototype.yb = function (a, b, c, d, h) {
- c = void 0 === c ? this.El : c;
- return b ? new n.Fva(this.qa, this.cia, c, b, a) : h ? new f.Hoa(this.qa, this.cia, c, a, d || "", h) : new g.UD(this.qa, this.cia, c, a);
- };
- b = a;
- return b = c.__decorate([q.N(), c.__param(0, q.l(k.Oe)), c.__param(1, q.l(p.Mz)), c.__param(2, q.l(h.O5))], b);
- }
- ();
- b.mta = d;
- }, function (d, b, a) {
- var c,
- g;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.nta = void 0;
- c = a(0);
- g = a(1);
- d = function () {
- var b;
- function a() {
- this.Fma = {};
- this.El = [];
- }
- a.prototype.h1 = function (a, b) {
- var c;
- c = this;
- b && (this.Fma[a] = b, this.El = Object.keys(this.Fma).map(function (a) {
- return c.Fma[a];
- }));
- };
- b = a;
- return b = c.__decorate([g.N()], b);
- }
- ();
- b.nta = d;
- }, function (d, b, a) {
- var c,
- g,
- q,
- n,
- k;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.OLa = void 0;
- c = a(1004);
- g = a(1003);
- d = a(1);
- q = a(96);
- n = a(8);
- k = a(997);
- b.OLa = new d.Ec(function (a) {
- a(n.Bb).to(g.mta).aa();
- a(q.Mz).to(c.nta).aa();
- a(n.O5).to(k.eta).aa();
- });
- }, function (d, b, a) {
- var c,
- g,
- q;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.hra = void 0;
- c = a(0);
- g = a(1);
- q = a(249);
- d = function () {
- var b;
- function a() {}
- a.prototype.nG = function (a, b) {
- var c;
- c = this;
- a && Object.keys(b).forEach(function (d) {
- var f,
- g,
- h;
- f = b[d];
- if (c.Kqb(f)) {
- g = S(f);
- f = g.next().value;
- h = g.next().value;
- g = a[f];
- Array.isArray(g) ? (c.Sca(a, d, f), g.forEach(function (a) {
- c.nG(a, h);
- })) : f === q.Nw ? Object.keys(a).forEach(function (b) {
- c.nG(a[b], h);
- }) : (c.Sca(a, d, f), "object" === typeof g && c.nG(g, h));
- } else
- c.Sca(a, d, f);
- });
- };
- a.prototype.Kqb = function (a) {
- return Array.isArray(a);
- };
- a.prototype.Sca = function (a, b, c) {
- a.hasOwnProperty(b) || b === c || Object.defineProperty(a, b, {
- get: function () {
- return a[c];
- },
- enumerable: !1
- });
- };
- b = a;
- return b = c.__decorate([g.N()], b);
- }
- ();
- b.hra = d;
- }, function (d, b, a) {
- var c,
- g,
- q;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.nqa = void 0;
- c = a(0);
- g = a(1);
- q = a(36);
- d = function () {
- var b;
- function a(a, b) {
- this.ta = a;
- this.OW = b;
- }
- a.prototype.Mc = function (a) {
- this.Ag();
- this.Yh = this.ta.Dh(this.OW, a);
- };
- a.prototype.Ag = function () {
- this.Yh && this.Yh.cancel();
- this.Yh = void 0;
- };
- b = a;
- return b = c.__decorate([g.N(), c.__param(0, g.l(q.Qg))], b);
- }
- ();
- b.nqa = d;
- }, function (d, b, a) {
- var c,
- g,
- q,
- n;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Sxa = void 0;
- c = a(0);
- g = a(36);
- q = a(1);
- n = a(3);
- d = function () {
- var b;
- function a(a, b, c) {
- this.ta = a;
- this.xGb = b;
- this.fZ = c;
- }
- a.prototype.uB = function () {
- this.Yh || (this.Yh = this.ta.Dh(n.Jb(this.xGb), this.fZ));
- };
- a.prototype.Ci = function () {
- this.Yh && this.Yh.cancel();
- this.Yh = void 0;
- };
- b = a;
- return b = c.__decorate([q.N(), c.__param(0, q.l(g.Qg))], b);
- }
- ();
- b.Sxa = d;
- }, function (d, b, a) {
- var c,
- g,
- q,
- n;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.nya = b.jpa = void 0;
- c = a(0);
- g = a(1);
- q = a(30);
- d = function () {
- var b;
- function a(a) {
- this.config = a;
- }
- a.prototype.yob = function (a, b) {
- var c;
- b = this.zob(b);
- if (b)
- switch (a) {
- case n.ZLa:
- c = 0 < b.length ? Number(b[0]) : 0;
- break;
- case n.jvb:
- c = 1 < b.length ? Number(b[1]) : 0;
- break;
- case n.Exb:
- c = 2 < b.length ? Number(b[2]) : 0;
- break;
- case n.v1:
- c = 3 < b.length ? Number(b[3]) : 0;
- }
- return void 0 === c || isNaN(c) ? 0 : c;
- };
- a.prototype.zob = function (a) {
- return null === a || void 0 === a ? void 0 : a.split(".");
- };
- pa.Object.defineProperties(a.prototype, {
- Oqb: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return "edge" === this.config.Wg.name;
- }
- },
- Pqb: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return "edgeoss" === this.config.Wg.name;
- }
- },
- $qb: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- var a;
- return "mac" === (null === (a = this.config.Wg.os) || void 0 === a ? void 0 : a.name);
- }
- },
- nW: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.yob(n.ZLa, this.config.Wg.version);
- }
- }
- });
- b = a;
- return b = c.__decorate([g.N(), c.__param(0, g.l(q.Yj))], b);
- }
- ();
- b.jpa = d;
- (function (a) {
- a[a.ZLa = 0] = "major";
- a[a.jvb = 1] = "minor";
- a[a.Exb = 2] = "patch";
- a[a.v1 = 3] = "revision";
- }
- (n = b.nya || (b.nya = {})));
- }, function (d, b) {
- function a() {
- this.searchParams = {};
- }
- function c(b) {
- this.Cn = b;
- this.searchParams = new a();
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.cya = void 0;
- c.prototype.toString = function () {
- return this.href;
- };
- pa.Object.defineProperties(c.prototype, {
- href: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return "" + this.Cn + this.searchParams.toString();
- }
- }
- });
- b.cya = c;
- a.prototype.get = function (a) {
- return this.searchParams[a];
- };
- a.prototype.set = function (a, b) {
- this.searchParams[a] = b;
- };
- a.prototype.toString = function () {
- var a,
- b;
- a = this;
- b = Object.keys(this.searchParams);
- return 0 < b.length ? b.reduce(function (b, c, d) {
- return "" + b + (0 == d ? "?" : "&") + c + "=" + a.searchParams[c];
- }, "") : "";
- };
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.fwa = b.ewa = b.CT = void 0;
- b.CT = "PrioritizedSetOfListsSymbol";
- b.ewa = "PrioritizedSetOfListsFactorySymbol";
- b.fwa = "PrioritizedSetOfSetsFactorySymbol";
- }, function (d, b, a) {
- var c,
- g,
- q,
- n,
- k;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Kxa = void 0;
- c = a(0);
- g = a(1);
- q = a(24);
- n = a(3);
- k = a(36);
- d = function () {
- var b;
- function a(a, b, c) {
- var d;
- d = this;
- this.app = a;
- this.ta = b;
- this.OW = c;
- this.Bv = function (a) {
- d.Yh = void 0;
- d.gHb(a || d.OW);
- };
- this.nLa = n.Jb(-this.OW.ca(n.ia));
- }
- a.prototype.Mc = function (a) {
- this.Mla = a;
- this.Yh = this.Yh || this.tc(this.Bv);
- };
- a.prototype.Ag = function () {
- this.Yh && this.Yh.cancel();
- this.Yh = void 0;
- };
- a.prototype.gHb = function (a) {
- var b,
- c;
- b = this.app.$b();
- if (this.Mla) {
- c = a.Nb(b.Nb(this.nLa));
- 0 >= c.nl(n.wd) ? (a = this.Mla, this.Mla = void 0, this.nLa = b, a()) : this.Yh = this.Yh || this.ta.Dh(c, this.Bv.bind(this, a));
- }
- };
- a.prototype.tc = function (a) {
- return this.ta.Dh(n.wd, a);
- };
- b = a;
- return b = c.__decorate([g.N(), c.__param(0, g.l(q.Oe)), c.__param(1, g.l(k.Qg))], b);
- }
- ();
- b.Kxa = d;
- }, function (d, b, a) {
- var c,
- g,
- q,
- n,
- k,
- p,
- h,
- f,
- m;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.rqa = void 0;
- c = a(0);
- g = a(1);
- q = a(24);
- n = a(47);
- k = a(2);
- p = a(13);
- h = a(3);
- f = a(10);
- m = a(467);
- d = function () {
- var b,
- d;
- function a(a, b) {
- this.qa = a;
- this.config = b;
- }
- a.prototype.ihb = function (a) {
- var c,
- d,
- f,
- g,
- l,
- q,
- m,
- r,
- u,
- t;
- c = this;
- q = a.cc.value;
- m = a.Io.value;
- r = a.Qb.value;
- u = a.state.value;
- l = {
- segmentId: a.Dfa(),
- mediaTime: q,
- segmentTime: a.JB(),
- bufferingState: b.bbb[m],
- presentingState: b.nzb[r],
- playbackState: b.vyb[u],
- mseBuffersBusy: this.Unb(a),
- intBuffersBusy: this.xmb(a),
- tabVisible: this.aGb(),
- decodedFrameCount: this.xgb(a),
- videoElementInDom: this.QIb(a),
- lastVideoSync: this.qa.$b().Nb(h.Jb(a.TQ)).ca(h.ia)
- };
- t = r === p.kb.bg ? a.Oa.Zi ? this.config.rOa : this.config.qOa : this.config.WMa;
- m !== p.Ze.xd ? (f = k.I.JXa, this.gDa(l.mseBuffersBusy, l.intBuffersBusy) && (g = b.Zoa)) : r !== p.kb.Pc && (f = k.I.KXa, (m = a.$i) && m.Ib.sourceBuffers.forEach(function (a) {
- var d,
- f;
- d = b.hC[a.M];
- l[d + "Ranges"] = a.tY();
- try {
- f = a.buffered();
- } catch (N) {
- f = void 0;
- }
- f && 0 !== f.length ? (a = 1E3 * f.end(0) - q, l[d + "Undecoded"] = a, 1 < f.length && (g = b.DWa), q < 1E3 * f.start(0) || q > 1E3 * f.end(0) ? g = b.EWa : a < t.ca(h.ia) ? g = b.FWa : c.gDa(l.mseBuffersBusy, l.intBuffersBusy) && (g = b.Zoa)) : (l[d + "Undecoded"] = 0, g = b.CWa);
- }));
- a = a.n1.fJa();
- m = q === (null === (d = a.repositionTrace) || void 0 === d ? void 0 : d[0].newMediaTime);
- l.lastRepositionCausedTimeout = m;
- Object.assign(l, a);
- d = "";
- try {
- d = JSON.stringify(l);
- } catch (ha) {
- d = "Cannot stringify details: " + ha;
- }
- return new n.Dc(k.J.Mua, f, g, void 0, void 0, void 0, d, void 0);
- };
- a.prototype.Unb = function (a) {
- var b;
- if (a.Ib) {
- b = {};
- a.Ib.sourceBuffers.forEach(function (a) {
- b[0 === a.type ? "audio" : "video"] = {
- updating: a.updating()
- };
- });
- return b;
- }
- };
- a.prototype.xmb = function (a) {
- var b;
- if (a.Ib) {
- b = {};
- a.Ib.sourceBuffers.forEach(function (a) {
- b[0 === a.type ? "audio" : "video"] = {
- updating: a.tk()
- };
- });
- return b;
- }
- };
- a.prototype.aGb = function () {
- return !f.te.hidden;
- };
- a.prototype.xgb = function (a) {
- return (a = a.$i) && (a = a.Ib.Wa) && void 0 !== a.webkitDecodedFrameCount ? a.webkitDecodedFrameCount : NaN;
- };
- a.prototype.QIb = function (a) {
- if (a = a.$i)
- if (a = a.Ib.Wa)
- return f.te.body.contains(a);
- return !1;
- };
- a.prototype.gDa = function (a, b) {
- var c,
- d,
- f,
- g;
- return !((null === (c = a.audio) || void 0 === c ? void 0 : c.updating) === (null === (d = b.audio) || void 0 === d ? void 0 : d.updating) && (null === (f = a.video) || void 0 === f ? void 0 : f.updating) === (null === (g = b.video) || void 0 === g ? void 0 : g.updating));
- };
- d = b = a;
- d.CWa = "1";
- d.DWa = "2";
- d.EWa = "3";
- d.Zoa = "4";
- d.FWa = "5";
- d.hC = ["Audio", "Video"];
- d.bbb = ["", "NORMAL", "BUFFERING", "STALLED"];
- d.nzb = ["", "WAITING", "PLAYING ", "PAUSED", "ENDED"];
- d.vyb = ["STATE_NOTLOADED", "STATE_LOADING", "STATE_NORMAL", "STATE_CLOSING", "STATE_CLOSED"];
- return d = b = c.__decorate([g.N(), c.__param(0, g.l(q.Oe)), c.__param(1, g.l(m.r6))], d);
- }
- ();
- b.rqa = d;
- }, function (d, b, a) {
- var c,
- g,
- q,
- n,
- k;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.l8 = void 0;
- c = a(0);
- g = a(1);
- q = a(24);
- n = a(3);
- k = a(8);
- d = function () {
- var b;
- function a(a, b) {
- this.qa = a;
- this.entries = new Set();
- this.ja = b.yb("TimingApi");
- }
- a.prototype.mark = function (a, b, c) {
- a = {
- name: a,
- Rs: this.qa.$b()
- };
- b && (a.fa = b);
- c && (a.nk = c);
- this.entries.add(a);
- return a;
- };
- a.prototype.sfa = function () {
- var a;
- a = [];
- this.entries.forEach(function (b) {
- return a.push(b);
- });
- return a;
- };
- a.prototype.CIa = function (a) {
- return this.sfa().filter(function (b) {
- return b.fa === a;
- });
- };
- a.prototype.AIa = function () {
- var a;
- a = {};
- try {
- a = this.sfa().filter(function (a) {
- return !a.fa;
- }).reduce(function (a, b) {
- a[b.name] = b.Rs.ca(n.ia);
- return a;
- }, {});
- } catch (u) {
- this.ja.error(" getMapOfCommonMarks exception", u);
- }
- return a;
- };
- a.prototype.GQa = function (a) {
- var b;
- b = this;
- this.sfa().forEach(function (c) {
- c.fa === a && b.entries["delete"](c);
- });
- };
- b = a;
- return b = c.__decorate([g.N(), c.__param(0, g.l(q.Oe)), c.__param(1, g.l(k.Bb))], b);
- }
- ();
- b.l8 = d;
- }, function (d, b, a) {
- var c,
- g,
- q,
- n,
- k;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Mpa = void 0;
- c = a(0);
- g = a(41);
- q = a(40);
- n = a(1);
- k = a(28);
- d = function () {
- var b;
- function a(a) {
- return q.mJ.call(this, a, "ClockConfigImpl") || this;
- }
- da(a, q.mJ);
- pa.Object.defineProperties(a.prototype, {
- TUa: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return !1;
- }
- }
- });
- b = a;
- c.__decorate([g.config(g.Kd, "usePerformanceApi")], b.prototype, "TUa", null);
- return b = c.__decorate([n.N(), c.__param(0, n.l(k.eS))], b);
- }
- ();
- b.Mpa = d;
- }, function (d, b, a) {
- var c,
- g,
- q,
- n,
- k;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.oqa = void 0;
- c = a(0);
- g = a(41);
- q = a(40);
- n = a(1);
- k = a(28);
- d = function () {
- var b;
- function a(a) {
- a = q.mJ.call(this, a, "DebugConfigImpl") || this;
- a.YRb = function () {
- debugger;
- };
- return a;
- }
- da(a, q.mJ);
- pa.Object.defineProperties(a.prototype, {
- Wab: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return !1;
- }
- }
- });
- b = a;
- c.__decorate([g.config(g.Kd, "breakOnError")], b.prototype, "Wab", null);
- return b = c.__decorate([n.N(), c.__param(0, n.l(k.eS))], b);
- }
- ();
- b.oqa = d;
- }, function (d, b, a) {
- var c,
- g,
- q,
- n,
- k;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.pqa = void 0;
- c = a(0);
- g = a(1);
- q = a(21);
- n = a(86);
- k = a(8);
- d = function () {
- var b;
- function a(a, b, c) {
- this.config = a;
- this.Ha = b;
- this.ja = c.yb("General");
- }
- a.prototype.assert = function () {};
- a.prototype.C$a = function (a, b) {
- this.assert(this.Ha.kB(a), b);
- };
- a.prototype.D$a = function (a, b) {
- this.assert(this.Ha.Xd(a), b);
- };
- a.prototype.I$a = function (a, b) {
- this.assert(this.Ha.wn(a), b);
- };
- a.prototype.L$a = function (a, b) {
- this.assert(this.Ha.Xl(a), b);
- };
- a.prototype.J$a = function (a, b) {
- this.assert(this.Ha.wn(a) || null === a || void 0 === a, b);
- };
- a.prototype.G$a = function (a, b) {
- this.assert(this.Ha.dg(a), b);
- };
- a.prototype.F$a = function (a, b) {
- this.assert(this.Ha.Aaa(a), b);
- };
- a.prototype.K$a = function (a, b) {
- this.assert(this.Ha.Er(a), b);
- };
- a.prototype.H$a = function (a, b) {
- this.assert(this.Ha.OL(a), b);
- };
- a.prototype.B$a = function (a, b) {
- this.assert(this.Ha.NL(a), b);
- };
- a.prototype.E$a = function (a, b) {
- this.assert(this.Ha.SV(a), b);
- };
- a.prototype.Bqb = function () {
- this.assert(!1, "invalid operation, this method should not be called");
- };
- a.cTb = function () {
- var a,
- b;
- a = Error.captureStackTrace;
- return b = a ? function (c) {
- var d;
- d = {
- toString: function () {
- return "";
- }
- };
- a(d, c || b);
- return d.stack;
- }
- : function () {
- try {
- throw Error("capture stack");
- } catch (A) {
- return A.stack;
- }
- };
- };
- b = a;
- return b = c.__decorate([g.N(), c.__param(0, g.l(n.c4)), c.__param(1, g.l(q.ee)), c.__param(2, g.l(k.Bb))], b);
- }
- ();
- b.pqa = d;
- }, function (d, b, a) {
- var c,
- g,
- q,
- n;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.$pa = void 0;
- c = a(0);
- g = a(1);
- q = a(21);
- n = a(25);
- d = function () {
- var b,
- d;
- function a(a, b) {
- this.is = a;
- this.Wc = b;
- }
- a.prototype.encode = function (a) {
- var b,
- c;
- b = this;
- c = "";
- this.Wc.Ju(a, function (a, d) {
- a = b.kGa(a) + "=" + b.kGa(d);
- c = c ? c + ("," + a) : a;
- });
- return c;
- };
- a.prototype.kGa = function (a) {
- return this.is.kB(a) ? this.is.dg(a) ? "" + a : this.is.wn(a) ? (a = a.replace(b.fla, this.yia.bind(this)), !b.aAb.test(a) && b.yvb.test(a) && (a = '"' + a + '"'), a) : this.is.NL(a) ? "" + a : this.is.aaa(a) ? "NaN" : "" : "";
- };
- a.prototype.yia = function (a) {
- return b.map[a];
- };
- d = b = a;
- d.map = {
- '"': '""',
- "\r": "",
- "\n": " "
- };
- d.fla = /(?!^.+)["\r\n](?=.+$)/g;
- d.aAb = /["].*["]/g;
- d.yvb = /[", ]/;
- return d = b = c.__decorate([g.N(), c.__param(0, g.l(q.ee)), c.__param(1, g.l(n.af))], d);
- }
- ();
- b.$pa = d;
- }, function (d, b, a) {
- var c,
- g,
- q,
- n,
- k;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.yoa = void 0;
- c = a(0);
- g = a(1);
- q = a(39);
- n = a(3);
- k = a(114);
- d = function () {
- var b;
- function a(a, b) {
- this.Ga = a;
- this.oY = this.Ga.jf.ca(n.ia) - 1;
- this.ltb = this.l_ = 0;
- this.id = "" + b.eB();
- }
- a.prototype.$b = function () {
- var a,
- b;
- a = this.Ga.jf.ca(n.ia) - this.oY;
- if (a < this.l_) {
- b = this.l_ + 1;
- this.oY -= b - a;
- a = b;
- }
- this.l_ = a;
- return n.Jb(this.l_);
- };
- a.prototype.Hmb = function () {
- return this.ltb++;
- };
- pa.Object.defineProperties(a.prototype, {
- $B: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return n.Jb(this.oY);
- }
- }
- });
- b = a;
- return b = c.__decorate([g.N(), c.__param(0, g.l(q.Ii)), c.__param(1, g.l(k.Kz))], b);
- }
- ();
- b.yoa = d;
- }, function (d) {
- d.P = "function" === typeof Object.create ? function (b, a) {
- b.QFb = a;
- b.prototype = Object.create(a.prototype, {
- constructor: {
- value: b,
- enumerable: !1,
- writable: !0,
- configurable: !0
- }
- });
- }
- : function (b, a) {
- function c() {}
- b.QFb = a;
- c.prototype = a.prototype;
- b.prototype = new c();
- b.prototype.constructor = b;
- };
- }, function (d) {
- d.P = function (b) {
- return b && "object" === typeof b && "function" === typeof b.No && "function" === typeof b.fill && "function" === typeof b.pVb;
- };
- }, function (d, b, a) {
- var g;
- function c(a) {
- this.Rkb = a;
- this.iZ = !1;
- this.yZ = this.$f = this.NI = 0;
- this.dO = !1;
- this.zZ = 0;
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Bua = void 0;
- g = a(470);
- c.prototype.B9a = function (a) {
- a < this.NI && (this.$f += this.NI);
- this.NI = a;
- this.iZ = !0;
- };
- c.prototype.Flb = function () {
- if (this.iZ)
- return this.dO ? this.zZ - this.yZ : this.$f + this.NI - this.yZ;
- };
- c.prototype.refresh = function () {
- var a;
- a = this.Rkb();
- g.la(a) && this.B9a(a);
- };
- c.prototype.UEb = function () {
- this.dO || (this.iZ && (this.zZ = this.$f + this.NI), this.dO = !0);
- };
- c.prototype.iFb = function () {
- this.dO && (this.iZ && (this.yZ += this.$f + this.NI - this.zZ), this.zZ = 0, this.dO = !1);
- };
- b.Bua = c;
- }, function (d, b, a) {
- var c,
- g,
- q,
- n;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.jwa = void 0;
- c = a(0);
- g = a(1);
- q = a(36);
- n = a(64);
- d = function () {
- var b;
- function a(a) {
- this.ta = a;
- }
- a.prototype.Hm = function (a, b) {
- var c;
- c = this;
- return new Promise(function (d, f) {
- var g;
- g = c.ta.Dh(a, function () {
- f(new n.gn(a));
- });
- b.then(function (a) {
- d(a);
- g.cancel();
- })["catch"](function (a) {
- f(a);
- g.cancel();
- });
- });
- };
- b = a;
- return b = c.__decorate([g.N(), c.__param(0, g.l(q.Qg))], b);
- }
- ();
- b.jwa = d;
- }, function (d, b, a) {
- var c,
- g;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.eya = void 0;
- c = a(0);
- g = a(1);
- d = function () {
- var b,
- d;
- function a() {}
- a.prototype.encode = function (a) {
- return b.Bda(a);
- };
- a.prototype.decode = function (a) {
- return b.Lca(a);
- };
- a.Bda = function (a) {
- if (!a)
- throw new TypeError("Invalid byte array");
- for (var b = 0, c, d = a.length, g = ""; b < d; ) {
- c = a[b++];
- if (!(0 <= c && 255 >= c))
- throw Error("bad utf8");
- if (c & 128)
- if (192 === (c & 224))
- c = ((c & 31) << 6) + (a[b++] & 63);
- else if (224 === (c & 240))
- c = ((c & 15) << 12) + ((a[b++] & 63) << 6) + (a[b++] & 63);
- else
- throw Error("unsupported utf8 character");
- g += String.fromCharCode(c);
- }
- return g;
- };
- a.Lca = function (a) {
- var b,
- c,
- d,
- g,
- k;
- b = a.length;
- c = 0;
- g = 0;
- if (!(0 <= b))
- throw Error("bad string");
- for (d = b; d--; )
- k = a.charCodeAt(d), 128 > k ? c++ : c = 2048 > k ? c + 2 : c + 3;
- c = new Uint8Array(c);
- for (d = 0; d < b; d++)
- k = a.charCodeAt(d), 128 > k ? c[g++] = k : (2048 > k ? c[g++] = 192 | k >>> 6 : (c[g++] = 224 | k >>> 12, c[g++] = 128 | k >>> 6 & 63), c[g++] = 128 | k & 63);
- return c;
- };
- d = b = a;
- return d = b = c.__decorate([g.N()], d);
- }
- ();
- b.eya = d;
- }, function (d, b, a) {
- var c,
- g,
- q,
- n,
- k,
- p,
- h,
- f;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Npa = void 0;
- c = a(0);
- g = a(54);
- q = a(3);
- n = a(1);
- k = a(29);
- p = a(475);
- h = a(68);
- f = a(13);
- d = function () {
- var b;
- function a(a, b, c, d) {
- var h;
- h = this;
- this.config = a;
- this.bgb = b;
- this.Kb = c;
- this.performance = d;
- this.Vwb = function (a) {
- h.NRa = a.Nb(h.jf);
- };
- g.wm(this, "date");
- g.wm(this, "performance");
- this.h$a = void 0 !== this.performance && void 0 !== this.performance.timing && void 0 !== this.performance.now;
- this.NRa = q.wd;
- this.Kb.addListener(f.w5.PRa, this.Vwb);
- }
- pa.Object.defineProperties(a.prototype, {
- jf: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.bNa ? q.timestamp(this.performance.timing.navigationStart + this.performance.now()) : q.Jb(this.bgb.now());
- }
- },
- P1: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.jf.add(this.NRa);
- }
- },
- bNa: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.config.TUa && this.h$a;
- }
- }
- });
- b = a;
- return b = c.__decorate([n.N(), c.__param(0, n.l(p.Q3)), c.__param(1, n.l(k.a4)), c.__param(2, n.l(h.vS)), c.__param(3, n.l(k.uT)), c.__param(3, n.optional())], b);
- }
- ();
- b.Npa = d;
- }, function (d, b, a) {
- var c,
- g,
- q;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.rwa = void 0;
- c = a(0);
- g = a(1);
- q = a(134);
- d = function () {
- var b;
- function a(a) {
- this.$Fb = a;
- }
- a.prototype.random = function () {
- return this.$Fb.random();
- };
- a.prototype.aQa = function (a, b) {
- if ("number" !== typeof a)
- b = a.end, a = a.start;
- else if ("undefined" === typeof b)
- throw Error("max must be provided for randomInteger API");
- return Math.round(a + this.random() * (b - a));
- };
- b = a;
- return b = c.__decorate([g.N(), c.__param(0, g.l(q.g8))], b);
- }
- ();
- b.rwa = d;
- }, function (d, b, a) {
- var c,
- g,
- q,
- n,
- k;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Asa = void 0;
- c = a(0);
- g = a(1);
- q = a(3);
- n = a(39);
- k = a(134);
- d = function () {
- var b,
- d;
- function a(a, b) {
- this.Ga = a;
- this.random = b;
- }
- a.prototype.eB = function () {
- return this.Ga.jf.ca(q.Pl) * b.spa + Math.floor(this.random.random() * b.spa);
- };
- d = b = a;
- d.spa = 1E4;
- return d = b = c.__decorate([g.N(), c.__param(0, g.l(n.Ii)), c.__param(1, g.l(k.nK))], d);
- }
- ();
- b.Asa = d;
- }, function (d, b, a) {
- var g,
- q,
- n,
- k,
- p;
- function c(a, b) {
- this.TI = a;
- this.Gbb = b;
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Swa = void 0;
- g = a(0);
- q = a(1);
- n = a(54);
- k = a(29);
- p = a(3);
- c.prototype.cancel = function () {
- this.Gbb(this.TI);
- };
- d = function () {
- var b;
- function a(a) {
- this.TI = a;
- n.wm(this, "timers");
- }
- a.prototype.Mc = function (a) {
- return this.Dh(p.wd, a);
- };
- a.prototype.Dh = function (a, b) {
- var d;
- d = this.TI.setTimeout(b, a.ca(p.ia));
- return new c(this.TI, function (a) {
- a.clearTimeout(d);
- });
- };
- a.prototype.Kla = function (a, b) {
- var d;
- d = this.TI.setInterval(b, a.ca(p.ia));
- return new c(this.TI, function (a) {
- a.clearInterval(d);
- });
- };
- b = a;
- return b = g.__decorate([q.N(), g.__param(0, q.l(k.C8))], b);
- }
- ();
- b.Swa = d;
- }, function (d, b, a) {
- var c,
- g,
- q,
- n,
- k,
- p,
- h,
- f,
- m,
- r,
- x,
- C,
- H,
- D,
- K,
- J,
- B,
- P,
- L,
- z,
- T,
- U,
- S,
- ha,
- V,
- W,
- N,
- na,
- ma,
- ja,
- Q,
- Y,
- ia,
- Ga,
- Za,
- ka,
- ca,
- da,
- fa,
- ga,
- la,
- oa,
- pa,
- qa,
- Ba,
- ra,
- sa,
- aa,
- va,
- xa,
- ya,
- Aa,
- Ca,
- Fa,
- Ja,
- Ka,
- Ma,
- Na,
- Qa,
- Ra,
- Sa,
- Ta,
- Ua;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.xu = void 0;
- d = a(1);
- c = a(29);
- g = a(39);
- q = a(36);
- n = a(114);
- k = a(134);
- p = a(1028);
- h = a(1027);
- f = a(1026);
- m = a(1025);
- r = a(99);
- x = a(89);
- C = a(42);
- H = a(25);
- D = a(21);
- K = a(68);
- J = a(64);
- B = a(474);
- P = a(1024);
- L = a(251);
- z = a(473);
- T = a(472);
- U = a(1023);
- S = a(142);
- ha = a(471);
- V = a(1022);
- W = a(264);
- N = a(98);
- na = a(1019);
- ma = a(24);
- ja = a(469);
- Q = a(1018);
- Y = a(1017);
- ia = a(86);
- Ga = a(1016);
- Za = a(8);
- ka = a(475);
- ca = a(1015);
- da = a(69);
- fa = a(1014);
- ga = a(468);
- la = a(1013);
- oa = a(1012);
- pa = a(97);
- qa = a(10);
- Ba = a(1011);
- ra = a(466);
- sa = a(465);
- aa = a(1010);
- va = a(464);
- xa = a(14);
- ya = a(33);
- Aa = a(60);
- Ca = a(463);
- Fa = a(502);
- Ja = a(1009);
- Ka = a(462);
- Ma = a(461);
- Na = a(172);
- Qa = a(1008);
- Ra = a(460);
- Sa = a(1007);
- Ta = a(249);
- Ua = a(1006);
- b.xu = new d.Ec(function (a) {
- a(c.jE).iz(function () {
- return {};
- }).aa();
- a(c.rw).bi(JSON);
- a(c.C8).bi(t);
- a(k.g8).bi(Math);
- a(c.K5).bi(qa.gT);
- a(c.uT).bi(qa.ir);
- a(c.dya).bi(qa.Nl);
- a(c.a4).bi(Date);
- a(c.Cw).bi(qa.Ki);
- a(c.Zta).bi(qa.cE);
- a(ka.Q3).to(ca.Mpa).aa();
- a(ma.Oe).to(na.yoa).aa();
- a(g.Ii).to(m.Npa).aa();
- a(q.Qg).to(p.Swa).aa();
- a(n.Kz).to(h.Asa).aa();
- a(J.Fw).to(U.jwa).aa();
- a(k.nK).to(f.rwa).aa();
- a(ia.$q).to(Y.pqa).aa();
- a(ia.c4).to(Ga.oqa).aa();
- a(r.Lw).to(P.eya).aa();
- a(x.$s).to(L.OR).aa();
- a(C.Gi).to(z.w3).aa();
- a(H.af).to(T.w8).aa();
- a(D.ee).bi(S.kt);
- a(Ka.KD).to(Ma.nra).aa();
- a(K.rS).to(ha.kj).Jga();
- a(K.ED).to(ha.kj).aa();
- a(K.i4).to(ha.kj).aa();
- a(K.vS).to(ha.kj).aa();
- a(W.rK).to(N.Iw).aa();
- a(ja.U3).to(Q.$pa).aa();
- a(da.Kw).to(fa.l8).aa();
- a(da.ZD).to(fa.l8).aa();
- a("Factory").BGb(Za.Bb);
- a(ga.e4).to(la.rqa).aa();
- a(pa.bA).tf(function (a) {
- return function (b) {
- return new oa.Kxa(a.lb.get(ma.Oe), a.lb.get(q.Qg), b);
- };
- });
- a(Ra.b4).tf(function (a) {
- return function (b) {
- return new Sa.nqa(a.lb.get(q.Qg), b);
- };
- });
- a(Ba.CT).DGb(ra.F7);
- a(Ba.ewa).tf(function (a) {
- var b;
- b = a.lb.get(Ba.CT);
- return function () {
- return new b(!1);
- };
- });
- a(Ba.fwa).tf(function (a) {
- var b;
- b = a.lb.get(Ba.CT);
- return function () {
- return new b(!0);
- };
- });
- a(sa.v8).tf(function () {
- return function (a) {
- return new aa.cya(a);
- };
- });
- a(Aa.Vk).tf(function (a) {
- return function (b, c, d) {
- var f,
- g,
- h;
- f = a.lb.get(ia.$q);
- g = a.lb.get(xa.jd);
- h = a.lb.get(ya.dk);
- return new va.Lva(f, g, h, Ca.e6, b, c, d);
- };
- });
- a(B.C6).tf(function () {
- return function (a) {
- return new V.Bua(a);
- };
- });
- a(Fa.G3).to(Ja.jpa);
- a(Na.vK).tf(function (a) {
- return function (b, c) {
- return new Qa.Sxa(a.lb.get(q.Qg), b, c);
- };
- });
- a(Ta.C4).to(Ua.hra).aa();
- });
- }, function (d, b, a) {
- var c,
- g,
- q,
- n,
- k,
- p,
- h,
- f,
- m,
- r,
- t,
- x,
- H,
- D,
- K,
- J,
- B,
- P,
- L,
- z,
- T,
- U,
- S,
- ha,
- V,
- W,
- N,
- na,
- ma,
- ja,
- Q,
- Y;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.CLa = void 0;
- c = a(1029);
- g = a(1005);
- q = a(994);
- n = a(991);
- k = a(985);
- p = a(982);
- h = a(978);
- f = a(966);
- m = a(955);
- r = a(951);
- t = a(949);
- x = a(707);
- H = a(705);
- D = a(701);
- K = a(689);
- J = a(682);
- B = a(675);
- P = a(672);
- L = a(666);
- z = a(263);
- T = a(658);
- U = a(656);
- S = a(649);
- ha = a(645);
- V = a(637);
- W = a(635);
- N = a(628);
- na = a(602);
- ma = a(582);
- ja = a(578);
- Q = a(574);
- Y = a(560);
- b.CLa = function (a) {
- a.load(c.xu, p.hz, g.OLa, h.cN, q.ZMa, n.Va, k.eVa, f.storage, m.vx, r.uDa, t.gMa, x.Cy, H.xh, D.NLa, K.qNa, J.qHa, B.SPa, P.BC, L.WFa, z.eme, T.crypto, U.Wc, S.Cc, ha.fg, V.eNa, W.YOa, N.j, na.iEa, ma.hUa, ja.Ij, Q.Jf, Y.ECa);
- };
- }, function (d, b, a) {
- var q,
- n;
- function c(a, b, c, d, g) {
- this.qa = a;
- this.config = b;
- this.ta = c;
- this.Bv = d;
- this.name = g;
- }
- function g(a, b, c, d) {
- var f;
- f = this;
- this.qa = a;
- this.ta = b;
- this.timeout = c;
- this.wGb = d;
- this.bpb = function () {
- f.Yp = !0;
- f.WB.cancel();
- f.wGb();
- };
- this.startTime = this.qa.$b();
- this.WB = this.ta.Dh(this.timeout, function () {
- f.bpb();
- });
- this.Yp = !1;
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.bra = void 0;
- q = a(2);
- n = a(88);
- g.prototype.stop = function () {
- this.Yp || (this.j2 = this.qa.$b(), this.WB.cancel());
- };
- pa.Object.defineProperties(g.prototype, {
- AX: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- if (this.j2 && this.startTime)
- return this.j2.Nb(this.startTime);
- }
- }
- });
- c.prototype.Mbb = function () {
- var a;
- a = this;
- this.JF = new g(this.qa, this.ta, this.config.Iga, function () {
- a.Bv(new n.Pf(q.J.P7, q.I.oS, void 0, "Eme " + a.name + " event expired with an expiry of " + a.config.Iga + "ms"));
- });
- };
- c.prototype.Lbb = function () {
- this.JF && this.JF.stop();
- };
- c.prototype.pDb = function () {
- this.Wy = this.qa.$b();
- };
- c.prototype.Nbb = function () {
- var a;
- a = this;
- this.M2 = new g(this.qa, this.ta, this.config.Rla, function () {
- a.Bv(new n.Pf(q.J.P7, q.I.w4, void 0, "Eme " + a.name + " event expired with an expiry of " + a.config.Rla + "ms"));
- });
- };
- c.prototype.BDa = function () {
- this.M2 && this.M2.stop();
- };
- pa.Object.defineProperties(c.prototype, {
- Uc: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- var a,
- b;
- a = {};
- if (this.JF) {
- b = this.JF.AX;
- b && (a.RO = b);
- this.Wy && this.JF.j2 && (a.Wy = this.Wy.Nb(this.JF.j2));
- }
- this.M2 && (b = this.M2.AX) && (a.FM = b);
- return a;
- }
- }
- });
- b.bra = c;
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.$qa = void 0;
- b.$qa = "EmeApiSymbol";
- }, function (d, b, a) {
- var c,
- g,
- q,
- n,
- k,
- p,
- h,
- f,
- m,
- r,
- t,
- x,
- H,
- D,
- K,
- J,
- B,
- P,
- L,
- z,
- T;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.dra = void 0;
- c = a(0);
- g = a(1);
- q = a(135);
- n = a(3);
- k = a(2);
- p = a(24);
- h = a(8);
- f = a(42);
- m = a(36);
- r = a(53);
- t = a(87);
- x = a(477);
- d = a(476);
- H = a(138);
- D = a(253);
- K = a(1032);
- J = a(88);
- B = a(1031);
- P = a(64);
- L = a(47);
- (function (a) {
- a[a.pHb = 0] = "unknown";
- a[a.create = 1] = "create";
- a[a.load = 2] = "load";
- a[a.Fg = 3] = "license";
- a[a.KC = 4] = "renewal";
- a[a.stop = 5] = "stop";
- a[a.closed = 6] = "closed";
- }
- (z || (z = {})));
- T = {
- usable: {
- status: d.lo.Sna
- },
- expired: {
- status: d.lo.ijb,
- error: k.J.Nua
- },
- released: {
- status: d.lo.ZAb
- },
- "output-not-allowed": {
- status: d.lo.vOa,
- error: k.J.Oua
- },
- "output-restricted": {
- status: d.lo.vOa,
- error: k.J.K6
- },
- "output-downscaled": {
- status: d.lo.jxb
- },
- "status-pending": {
- status: d.lo.TSa
- },
- "internal-error": {
- status: d.lo.vqb,
- error: k.J.x1a
- }
- };
- a = function () {
- var b;
- function a(a, b, c, d, f, g, h, l, p) {
- var m;
- m = this;
- this.qa = b;
- this.ju = c;
- this.config = d;
- this.eg = f;
- this.Wj = g;
- this.Kn = h;
- this.ta = l;
- this.Lk = p;
- this.onMessage = function (a) {
- var b,
- c,
- d,
- f;
- b = m.Wj.hca(a);
- c = b.ss;
- d = b.SO;
- f = b.sessionId;
- m.gv = m.gv || b.gv;
- m.Q1(f);
- m.ky = m.Wj.ky(b);
- m.log.trace("Received " + a.type + " event", {
- sessionId: f,
- messageType: d,
- keyIds: m.gv,
- isIntermediateChallenge: m.ky
- });
- "license-renewal" === d && (m.log.trace("Received a renewal request"), m.Uh = t.lj.Ol, m.If = z.KC);
- m.If !== z.Fg || m.ky || (m.Sha = {
- Kn: m.Kn,
- data: c
- }, m.yn(x.Jp.rQa));
- m.If === z.KC && m.yn(x.Jp.sQa);
- if (m.wO) {
- if (m.hga(c)) {
- m.hs(new L.Dc(k.J.VYa));
- return;
- }
- m.wO.next({
- Ph: c,
- IDa: d,
- Uh: m.Uh
- });
- m.Uh !== t.lj.Ol || m.ky || (m.wO.complete(), m.wO = void 0);
- }
- m.If === z.stop && (m.Ci.Lbb(), m.config.Bi && m.fQ && (m.fQ.next({
- Ph: c
- }), m.fQ.complete(), m.fQ = void 0));
- };
- this.hOa = function (a) {
- var b,
- c,
- g,
- h,
- l,
- p;
- b = a.target.keyStatuses;
- m.Q1(a.target.sessionId);
- m.log.trace("Received event: " + a.type, {
- keySystem: a.target.keySystem
- });
- try {
- for (var d = S(b), f = d.next(); !f.done; f = d.next()) {
- g = S(f.value);
- h = g.next().value;
- l = g.next().value;
- m.log.trace("key status: " + l);
- p = T[l];
- m.Cha.next({
- js: new Uint8Array(h),
- value: p.status
- });
- m.SB(p.error) && (c = new J.Pf(p.error), m.wha(c));
- }
- } catch (bb) {
- c = new J.Pf(k.J.y1a);
- c.bN(bb);
- }
- c ? m.xha(c) : (m.Wj.JW() || m.gLa(), m.Uh !== t.lj.uw || m.Wj.Raa() || (m.log.info("Kicking off license renewal", {
- timeout: m.config.ry
- }), setTimeout(function () {
- m.fI();
- }, m.config.ry.ca(n.ia))));
- };
- this.Av = function (a) {
- var b;
- b = m.Wj.aq(a);
- m.log.error("Received event: " + a.type, b);
- m.hs(b);
- m.xha(b);
- m.Wi || m.rm || m.wha(b);
- };
- this.hs = function (a) {
- m.Wi && m.close().subscribe(void 0, function (b) {
- m.log.error("EmeSession closed with an error.", m.Wj.aq(b));
- m.Wi && (m.Wi.error(a), m.Wi = void 0);
- }, function () {
- m.log.trace("Issuing a generate challenge error");
- m.Wi && (m.Wi.error(a), m.Wi = void 0);
- });
- };
- this.fLa = function () {
- m.Wi && (m.Wi.complete(), m.Wi = void 0);
- };
- this.xha = function (a) {
- m.rm && (m.log.error("Failed to add license", a), m.close().subscribe(void 0, function (b) {
- m.log.error("EmeSession closed with an error.", m.Wj.aq(b));
- m.If === z.KC && m.yn(x.Jp.QBa);
- m.Wi = void 0;
- m.rm && (m.rm.error(a), m.rm = void 0);
- }, function () {
- m.log.trace("Issuing a license error");
- m.Wi = void 0;
- m.rm && (m.rm.error(a), m.rm = void 0);
- }));
- };
- this.gLa = function () {
- m.rm && (m.log.info("Successfully added license"), m.If === z.Fg ? m.yn(x.Jp.MBa) : m.If === z.KC && m.yn(x.Jp.PBa), m.rm.complete(), m.rm = void 0);
- };
- this.wha = function (a) {
- m.fq && m.close().subscribe(void 0, function (b) {
- m.log.error("EmeSession closed with an error.", m.Wj.aq(b));
- m.Wi = void 0;
- m.rm = void 0;
- m.fq && (m.fq.next(a), m.fq.complete(), m.fq = void 0);
- }, function () {
- m.log.trace("Issuing a CDM error");
- m.Wi = void 0;
- m.rm = void 0;
- m.fq && (m.fq.next(a), m.fq.complete(), m.fq = void 0);
- });
- };
- this.yn = function (a) {
- m.Uc.push({
- time: m.qa.$b(),
- Qub: a
- });
- };
- this.log = a.yb("EmeSession");
- this.wO = new q.dn();
- this.config.Bi && (this.fQ = new q.dn());
- this.Cha = new q.f2a();
- this.fq = new q.dn();
- this.If = z.pHb;
- this.Uc = [];
- }
- a.prototype.by = function () {
- return this.context.ce;
- };
- a.prototype.ay = function () {
- return this.sessionId;
- };
- a.prototype.close = function () {
- var a;
- a = this;
- this.Cha.complete();
- this.If = z.closed;
- this.Uc = [];
- return this.eg.rrb() ? (this.log.trace("Closing the session"), this.eg.hBb(this.onMessage), this.eg.eBb(this.hOa), this.eg.cBb(this.Av), this.pf = void 0, q.ob.create(function (b) {
- a.Lk.Hm(a.config.lCa, a.eg.close()).then(function () {
- a.log.info("Closed the session");
- b.complete();
- })["catch"](function (c) {
- a.log.error("Close failed", c);
- c = a.Wj.aq(c);
- c.code = k.J.C1a;
- b.error(c);
- });
- })) : q.ob.empty();
- };
- a.prototype.Bha = function () {
- return this.Cha.Jaa();
- };
- a.prototype.rG = function () {
- return this.fq ? this.fq.Jaa() : void 0;
- };
- a.prototype.kq = function () {
- return this.Kn;
- };
- a.prototype.jga = function () {
- return void 0 !== this.zk;
- };
- a.prototype.Gn = function (a, b, c, d) {
- var f;
- f = this;
- this.Uh = d;
- this.If = z.create;
- this.context = a;
- this.yn(x.Jp.xLa);
- return q.ob.create(function (a) {
- (c.FJa() ? Promise.resolve() : f.Lk.Hm(f.config.mCa, f.eg.xfb(b)).then(function (a) {
- f.log.trace("Created media keys");
- c.VC(a);
- return f.m$a(a);
- })).then(function () {
- f.pf = c.pf;
- try {
- f.eg.Gn(f.pf, f.Wj.Ofa(d));
- f.eg.z9a(f.onMessage);
- f.eg.t9a(f.hOa);
- f.eg.n9a(f.Av);
- f.Q1(f.eg.ay());
- a.next(f);
- a.complete();
- } catch (ja) {
- a.error(new J.Pf(k.J.RYa, k.I.Of, void 0, "Unable to create a persisted key session", ja));
- }
- })["catch"](function (b) {
- b.code && b.Hb ? a.error(b) : a.error(new J.Pf(k.J.mS, b instanceof P.gn ? k.I.CJ : k.I.Of, void 0, "Unable to create MediaKeys. " + b.message, b));
- });
- });
- };
- a.prototype.TDb = function (a) {
- this.jh = a;
- this.log.iaa("xid", a.fa);
- };
- a.prototype.Vsb = function (a) {
- var b;
- b = this;
- this.If = z.load;
- return q.ob.Yr(this.eg.load(a).then(function () {
- return b;
- }));
- };
- a.prototype.mY = function (a) {
- var b;
- b = this;
- this.If = z.Fg;
- this.log.trace("Generating a license challenge");
- this.Wi = new q.dn();
- if (!a)
- return this.GW(new J.Pf(k.J.Qqa, k.I.x4));
- if (this.hga(a))
- return this.GW(new J.Pf(k.J.Qqa, k.I.v4));
- this.Lk.Hm(this.config.nCa, this.eg.Iea("cenc", a)).then(function () {
- b.Q1(b.eg.ay());
- })["catch"](function (a) {
- var c;
- c = new J.Pf(k.J.Pqa, a instanceof P.gn ? k.I.CJ : k.I.Of);
- c.message = "Unable to generate request.";
- c.bN(a);
- b.log.error("Unable to generate a license request", c);
- b.hs(c);
- });
- this.log.trace("Returning the challenge subject");
- return this.Wi;
- };
- a.prototype.LBa = function (a) {
- var b;
- b = this;
- this.Yb = a.Yb;
- a = a.zk.map(function (a) {
- return a.data;
- });
- this.hga(a) ? (this.log.error("The license buffer is empty"), this.hs(new J.Pf(k.J.Rqa, k.I.v4))) : this.ky ? this.Lk.Hm(this.config.Caa, this.eg.update(a, this.gv)).then(function () {
- b.log.trace("Successfully updated CDM with intermediate server response");
- })["catch"](function (a) {
- a = b.Wj.aq(a);
- a.code = k.J.ID;
- a.message = "Unable to update the CDM intermediate challenge";
- b.log.error("Unable to update the CDM intermediate challenge", a);
- b.hs(a);
- }) : (this.If === z.Fg && (this.yn(x.Jp.qQa), this.zk = a, this.fLa()), this.If === z.KC && (this.yn(x.Jp.tQa), this.zk = a, this.Gaa()));
- };
- a.prototype.w9a = function (a) {
- this.If === z.KC ? (this.yn(x.Jp.uQa), this.wha(a)) : this.hs(a);
- };
- a.prototype.Gaa = function () {
- var a,
- b;
- a = this;
- if (!this.zk)
- return this.GW(new J.Pf(k.J.Rqa, k.I.x4));
- this.rm = new q.dn();
- b = this.zk;
- this.zk = void 0;
- this.Lk.Hm(this.config.Caa, this.eg.update(b, this.gv)).then(function () {
- a.Wj.JW() && a.gLa();
- })["catch"](function (b) {
- b = a.Wj.aq(b);
- b.code = k.J.M6;
- b.message = "Unable to update the EME";
- a.log.error(b.message, b);
- a.xha(b);
- });
- return this.rm;
- };
- a.prototype.fH = function () {
- return this.wO;
- };
- a.prototype.uHa = function () {
- var a;
- a = this;
- if (this.If === z.Fg && this.Uh === t.lj.uw)
- return q.ob.empty();
- this.If = z.stop;
- this.log.trace("Generating a secure stop challenge");
- this.Wi = new q.dn();
- this.Ci = new B.bra(this.qa, this.config, this.ta, function () {
- a.log.error("got a timeout error");
- }, "non-persisted");
- this.Ci.Mbb();
- this.eg.remove().then(function () {
- a.log.trace("Call to 'remove' on key session succeeded");
- })["catch"](function (b) {
- var c;
- c = a.Wj.aq(b);
- c.code = k.J.Tqa;
- c.Hb = k.I.Of;
- c.message = "Call to 'remove' on key session failed";
- a.log.error("Call to 'remove' on key session failed", {
- error: b
- });
- a.hs(c);
- });
- return this.Wi;
- };
- a.prototype.RBa = function (a) {
- a && a.constructor !== Uint8Array ? this.hs(a) : a ? 0 === a.length ? (this.log.error("The secure stop buffer is empty"), this.hs(new J.Pf(k.J.Sqa, k.I.v4))) : (this.log.trace("Secure stop is ready to apply"), this.F1 = a, this.Ci.pDb(), this.fLa()) : (this.log.error("The secure stop buffer is undefined"), this.hs(new J.Pf(k.J.Sqa, k.I.x4)));
- };
- a.prototype.p$a = function () {
- var a;
- a = this;
- if (!this.F1)
- return q.ob.from([this]);
- this.log.trace("Setting the secure stop data");
- return q.ob.create(function (b) {
- a.Ci.Nbb();
- a.eg.update([a.F1]).then(function () {
- a.Ci.BDa();
- a.log.info("Successfully released the license and securely removed the key session");
- b.next(a);
- b.complete();
- })["catch"](function (c) {
- var d;
- a.Ci.BDa();
- d = a.Wj.aq(c);
- d.code = k.J.ID;
- d.Hb = k.I.Of;
- d.message = "Unable to update the EME with secure stop data";
- a.log.error("Unable to update the EME", {
- error: c
- });
- b.error(d);
- });
- });
- };
- a.prototype.m$a = function (a) {
- var b,
- c;
- b = this;
- c = this.Wj.Vea();
- return c ? (c = this.ju.decode(c), this.Lk.Hm(this.config.pCa, this.eg.YDb(a, c)).then(function (a) {
- b.log.trace("Set the server certificate", {
- result: a
- });
- })) : Promise.resolve();
- };
- a.prototype.Q1 = function (a) {
- a && a !== this.sessionId && (this.sessionId && this.log.warn("sessionId changed from " + this.sessionId + " to " + a), this.sessionId = a, this.log.iaa("sessionId", a));
- };
- a.prototype.SB = function (a) {
- return a === k.J.K6 ? this.config.wOa : !!a;
- };
- a.prototype.fI = function () {
- var a;
- a = this;
- this.log.trace("Initiating a renewal request");
- this.Uh = t.lj.Ol;
- this.If = z.KC;
- this.Wj.aha(this.eg)["catch"](function () {
- return a.GW(new L.Dc(k.J.nS));
- });
- };
- a.prototype.GW = function (a) {
- var b;
- b = this;
- return q.ob.create(function (c) {
- b.close().subscribe(void 0, function () {
- c.error(a);
- }, function () {
- c.error(a);
- });
- });
- };
- a.prototype.hga = function (a) {
- return 0 === a.length || a.reduce(function (a, b) {
- return a || 0 === b.length;
- }, !1);
- };
- b = a;
- return b = c.__decorate([g.N(), c.__param(0, g.l(h.Bb)), c.__param(1, g.l(p.Oe)), c.__param(2, g.l(f.Gi)), c.__param(3, g.l(r.Jl)), c.__param(4, g.l(K.$qa)), c.__param(5, g.l(D.Jqa)), c.__param(6, g.l(H.Lqa)), c.__param(7, g.l(m.Qg)), c.__param(8, g.l(P.Fw))], b);
- }
- ();
- b.dra = a;
- }, function (d, b, a) {
- var c,
- g,
- q,
- n,
- k,
- p,
- h,
- f,
- m,
- r;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.cra = void 0;
- c = a(0);
- g = a(1);
- q = a(8);
- n = a(24);
- k = a(42);
- p = a(53);
- h = a(36);
- f = a(64);
- m = a(1033);
- r = a(100);
- d = function () {
- var b;
- function a(a, b, c, d, f, g, h) {
- this.ls = a;
- this.qa = b;
- this.qc = c;
- this.config = d;
- this.ta = f;
- this.Lk = g;
- this.vl = h;
- }
- a.prototype.create = function () {
- var a;
- a = this;
- return Promise.all([this.vl.bmb(), this.vl.amb(), this.vl.kq()]).then(function (b) {
- var c,
- d;
- c = S(b);
- b = c.next().value;
- d = c.next().value;
- c = c.next().value;
- return new m.dra(a.ls, a.qa, a.qc, a.config, b, d, c, a.ta, a.Lk);
- });
- };
- b = a;
- return b = c.__decorate([g.N(), c.__param(0, g.l(q.Bb)), c.__param(1, g.l(n.Oe)), c.__param(2, g.l(k.Gi)), c.__param(3, g.l(p.Jl)), c.__param(4, g.l(h.Qg)), c.__param(5, g.l(f.Fw)), c.__param(6, g.l(r.pt))], b);
- }
- ();
- b.cra = d;
- }, function (d, b, a) {
- var c,
- g,
- q,
- n,
- k,
- p,
- h,
- f,
- m,
- r,
- t;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Pwa = void 0;
- c = a(0);
- g = a(1);
- q = a(2);
- n = a(25);
- k = a(89);
- p = a(99);
- h = a(88);
- f = a(64);
- m = a(53);
- r = a(42);
- t = a(478);
- d = function () {
- var b;
- function a(a, b, c, d, f) {
- this.Wc = a;
- this.Nh = b;
- this.qc = c;
- this.Hh = d;
- this.Ke = f;
- }
- a.prototype.JW = function () {
- return !1;
- };
- a.prototype.Raa = function () {
- return !1;
- };
- a.prototype.Ofa = function () {
- return this.Ke.Bi ? "persistent-usage-record" : "temporary";
- };
- a.prototype.Vea = function () {
- return t.H4;
- };
- a.prototype.Jfa = function () {
- return [{
- initDataTypes: ["cenc"],
- videoCapabilities: [{
- contentType: "video/mp4;codecs=avc1.42E01E",
- robustness: ""
- }
- ],
- audioCapabilities: [{
- contentType: "audio/mp4;codecs=mp4a.40.2",
- robustness: ""
- }
- ],
- distinctiveIdentifier: "not-allowed",
- persistentState: "optional",
- sessionTypes: ["temporary", "persistent-usage-record"]
- }
- ];
- };
- a.prototype.ky = function (a) {
- return this.Wc.Nr(a.ss[0], this.Hh.decode("certificate"));
- };
- a.prototype.aha = function (a) {
- return a.fI();
- };
- a.prototype.hca = function (a) {
- var b,
- c,
- d;
- b = this;
- if ("license-request" === a.messageType) {
- c = this.Hh.encode(new Uint8Array(a.message));
- d = JSON.parse(c);
- c = d.map(function (a) {
- return b.qc.decode(a.payload);
- });
- d = d.map(function (a) {
- return a.keyID;
- });
- return {
- type: a.type,
- sessionId: a.target.sessionId,
- gv: d,
- ss: c,
- SO: "license-request"
- };
- }
- return {
- type: a.type,
- sessionId: a.target.sessionId,
- ss: [new Uint8Array(a.message)],
- SO: a.messageType
- };
- };
- a.prototype.aq = function (a) {
- var b,
- c,
- d,
- g;
- c = null === (b = a.target) || void 0 === b ? void 0 : b.error;
- c && (d = c.systemCode, g = c.code);
- b = new h.Pf(q.J.Dw, a instanceof f.gn ? q.I.CJ : q.I.ft, d ? this.Nh.Ou(d, 4) : g, "", c);
- b.bN(a);
- return b;
- };
- b = a;
- return b = c.__decorate([g.N(), c.__param(0, g.l(n.af)), c.__param(1, g.l(k.$s)), c.__param(2, g.l(r.Gi)), c.__param(3, g.l(p.Lw)), c.__param(4, g.l(m.Jl))], b);
- }
- ();
- b.Pwa = d;
- }, function (d, b) {
- function a(a, b, d) {
- var c;
- c = this;
- this.qc = a;
- this.gd = b;
- this.Hh = d;
- this.Dmb = function (a) {
- var b;
- a = a.subarray(14, 30);
- a = c.qc.decode(String.fromCharCode.apply(null, a));
- a = a.subarray(4);
- b = new Uint8Array(16);
- b.set(a);
- return b;
- };
- this.qZa = {
- fXa: 1667591779,
- OKb: 1667392371
- };
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.tra = void 0;
- a.prototype.cdb = function (a, b) {
- var c;
- c = this.qZa.fXa;
- b = b ? 1 : 0;
- a = a.map(function (a) {
- return {
- LTb: "",
- Prb: a,
- hW: a,
- REb: a,
- MIb: [1]
- };
- });
- return this.ytb(c, b, a);
- };
- a.prototype.xtb = function (a, b) {
- var c;
- c = new Uint8Array(4);
- new DataView(c.buffer).setUint32(0, a);
- return this.ria("fpsi", b, [c]);
- };
- a.prototype.wtb = function (a, b, d, g) {
- a = [this.ria("fkri", 0, [a])];
- b.byteLength && a.push(this.FO("fkai", [b]));
- d.byteLength && a.push(this.FO("fkcx", [d]));
- g.length && a.push(this.FO("fkvl", [new Uint8Array(new Uint32Array(g).buffer)]));
- return this.FO("fpsk", a);
- };
- a.prototype.ytb = function (a, b, d) {
- var c;
- c = new Uint8Array([148, 206, 134, 251, 7, 255, 79, 67, 173, 184, 147, 210, 250, 150, 140, 162]);
- a = [this.xtb(a, b)];
- for (var g in d)
- b = d[g], a.push(this.wtb(b.Prb, b.hW, b.REb, b.MIb));
- d = this.FO("fpsd", a);
- g = new Uint8Array(4);
- new DataView(g.buffer).setUint32(0, d.byteLength);
- return this.ria("pssh", 0, [c, g, d]);
- };
- a.prototype.ria = function (a, b, d) {
- var c,
- g,
- l;
- c = 0;
- for (g in d)
- c += d[g].byteLength;
- c = new Uint8Array(12 + c);
- l = new DataView(c.buffer);
- g = 0;
- l.setUint32(g, c.byteLength);
- g += 4;
- c.set(this.Hh.decode(a), g);
- g += 4;
- l.setUint32(g, 0 | 4095 & b);
- g += 4;
- for (var h in d)
- a = d[h], c.set(a, g), g += a.byteLength;
- return c;
- };
- a.prototype.FO = function (a, b) {
- var c,
- d;
- c = 0;
- for (d in b)
- c += b[d].byteLength;
- c = new Uint8Array(8 + c);
- d = 0;
- new DataView(c.buffer).setUint32(d, c.byteLength);
- d += 4;
- c.set(this.Hh.decode(a), d);
- d += 4;
- for (var g in b)
- a = b[g], c.set(a, d), d += a.byteLength;
- return c;
- };
- b.tra = a;
- }, function (d, b, a) {
- var c,
- g,
- m,
- n,
- k,
- p,
- h,
- f,
- r,
- t;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.ura = void 0;
- c = a(0);
- g = a(1);
- m = a(252);
- n = a(1036);
- k = a(29);
- p = a(21);
- h = a(42);
- f = a(25);
- r = a(53);
- t = a(99);
- d = function () {
- var b;
- function a(a, b, c, d, f, g) {
- a = m.mr.call(this, a, b, c, d, f, g) || this;
- a.qc = c;
- a.gd = d;
- a.Ke = f;
- a.Hh = g;
- a.TJa = new n.tra(a.qc, a.gd, a.Hh);
- return a;
- }
- da(a, m.mr);
- a.prototype.Iea = function (a, b) {
- var c,
- d,
- f;
- c = this;
- try {
- d = b.map(function (a) {
- return c.TJa.Dmb(a);
- });
- this.lLa = d.map(function (a) {
- return c.qc.encode(a);
- });
- f = this.TJa.cdb(d, this.Ke.Bi);
- return m.mr.prototype.Iea.call(this, a, [f]);
- } catch (P) {
- return Promise.reject(P);
- }
- };
- a.prototype.update = function (a, b) {
- var c,
- d,
- f,
- g;
- c = this;
- if (b)
- try {
- d = a.map(function (d, f) {
- return {
- keyID: 1 === a.length ? c.lLa[c.lLa.length - 1] : b[f],
- payload: c.qc.encode(d)
- };
- });
- f = JSON.stringify(d);
- g = this.Hh.decode(f);
- return m.mr.prototype.update.call(this, [g]);
- } catch (ba) {
- return Promise.reject(ba);
- }
- return m.mr.prototype.update.call(this, a);
- };
- a.prototype.fI = function () {
- return m.mr.prototype.update.call(this, [this.Hh.decode("renew")]);
- };
- b = a;
- return b = c.__decorate([g.N(), c.__param(0, g.l(k.Cw)), c.__param(1, g.l(p.ee)), c.__param(2, g.l(h.Gi)), c.__param(3, g.l(f.af)), c.__param(4, g.l(r.Jl)), c.__param(5, g.l(t.Lw))], b);
- }
- ();
- b.ura = d;
- }, function (d, b, a) {
- var c,
- g,
- m,
- n,
- k,
- p,
- h,
- f,
- r,
- t,
- x;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Ipa = void 0;
- c = a(0);
- g = a(1);
- m = a(2);
- n = a(25);
- k = a(89);
- p = a(253);
- h = a(88);
- f = a(64);
- r = a(53);
- t = a(14);
- x = a(47);
- d = function () {
- var b;
- function a(a, b, c, d) {
- this.Wc = a;
- this.Nh = b;
- this.Ke = c;
- this.config = d;
- }
- a.prototype.JW = function () {
- return !0;
- };
- a.prototype.Raa = function () {
- return !0;
- };
- a.prototype.Ofa = function () {
- return "temporary";
- };
- a.prototype.Vea = function () {
- return this.Ke.qQ ? this.Ke.qQ : "Cr0CCAMSEOVEukALwQ8307Y2+LVP+0MYh/HPkwUijgIwggEKAoIBAQDm875btoWUbGqQD8eAGuBlGY+Pxo8YF1LQR+Ex0pDONMet8EHslcZRBKNQ/09RZFTP0vrYimyYiBmk9GG+S0wB3CRITgweNE15cD33MQYyS3zpBd4z+sCJam2+jj1ZA4uijE2dxGC+gRBRnw9WoPyw7D8RuhGSJ95OEtzg3Ho+mEsxuE5xg9LM4+Zuro/9msz2bFgJUjQUVHo5j+k4qLWu4ObugFmc9DLIAohL58UR5k0XnvizulOHbMMxdzna9lwTw/4SALadEV/CZXBmswUtBgATDKNqjXwokohncpdsWSauH6vfS6FXwizQoZJ9TdjSGC60rUB2t+aYDm74cIuxAgMBAAE6EHRlc3QubmV0ZmxpeC5jb20SgAOE0y8yWw2Win6M2/bw7+aqVuQPwzS/YG5ySYvwCGQd0Dltr3hpik98WijUODUr6PxMn1ZYXOLo3eED6xYGM7Riza8XskRdCfF8xjj7L7/THPbixyn4mULsttSmWFhexzXnSeKqQHuoKmerqu0nu39iW3pcxDV/K7E6aaSr5ID0SCi7KRcL9BCUCz1g9c43sNj46BhMCWJSm0mx1XFDcoKZWhpj5FAgU4Q4e6f+S8eX39nf6D6SJRb4ap7Znzn7preIvmS93xWjm75I6UBVQGo6pn4qWNCgLYlGGCQCUm5tg566j+/g5jvYZkTJvbiZFwtjMW5njbSRwB3W4CrKoyxw4qsJNSaZRTKAvSjTKdqVDXV/U5HK7SaBA6iJ981/aforXbd2vZlRXO/2S+Maa2mHULzsD+S5l4/YGpSt7PnkCe25F+nAovtl/ogZgjMeEdFyd/9YMYjOS4krYmwp3yJ7m9ZzYCQ6I8RQN4x/yLlHG5RH/+WNLNUs6JAZ0fFdCmw=";
- };
- a.prototype.Jfa = function () {
- var a,
- b;
- a = [{
- contentType: p.fr,
- robustness: "HW_SECURE_DECODE"
- }, {
- contentType: p.fr,
- robustness: "SW_SECURE_DECODE"
- }, {
- contentType: p.fr,
- robustness: "SW_SECURE_CRYPTO"
- }
- ];
- b = [{
- contentType: p.fr,
- robustness: "SW_SECURE_CRYPTO"
- }
- ];
- return [{
- initDataTypes: ["cenc"],
- persistentState: "required",
- audioCapabilities: [{
- contentType: p.xw,
- robustness: "SW_SECURE_CRYPTO"
- }
- ],
- videoCapabilities: this.config().eHa ? b : a
- }, {
- initDataTypes: ["cenc"],
- persistentState: "required"
- }
- ];
- };
- a.prototype.ky = function (a) {
- return this.Wc.Nr(a.ss[0], new Uint8Array([8, 4]));
- };
- a.prototype.aha = function () {
- return Promise.reject(new x.Dc(m.J.nS));
- };
- a.prototype.hca = function (a) {
- return {
- type: a.type,
- sessionId: a.target.sessionId,
- ss: [new Uint8Array(a.message)],
- SO: a.messageType
- };
- };
- a.prototype.aq = function (a) {
- var b,
- c,
- d;
- b = new h.Pf(m.J.Dw);
- c = a.code;
- null != c && void 0 !== c ? (c = parseInt(c, 10), b.Hb = 1 <= c && 9 >= c ? m.I.ft + c : m.I.ft) : b.Hb = a instanceof f.gn ? m.I.CJ : m.I.Of;
- try {
- d = a.message.match(/\((\d*)\)/)[1];
- b.qd = this.Nh.Ou(d, 4);
- } catch (P) {}
- b.bN(a);
- return b;
- };
- b = a;
- return b = c.__decorate([g.N(), c.__param(0, g.l(n.af)), c.__param(1, g.l(k.$s)), c.__param(2, g.l(r.Jl)), c.__param(3, g.l(t.jd))], b);
- }
- ();
- b.Ipa = d;
- }, function (d, b, a) {
- var c,
- g,
- m;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Zva = void 0;
- c = a(0);
- g = a(1);
- m = a(252);
- d = function () {
- var b;
- function a(a) {
- return m.mr.apply(this, arguments) || this;
- }
- da(a, m.mr);
- b = a;
- return b = c.__decorate([g.N()], b);
- }
- ();
- b.Zva = d;
- }, function (d, b, a) {
- var c,
- g,
- m,
- n,
- k,
- p,
- h,
- f,
- r,
- t,
- x;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Zqa = void 0;
- c = a(0);
- g = a(1);
- m = a(2);
- n = a(89);
- k = a(42);
- p = a(253);
- h = a(88);
- f = a(87);
- r = a(53);
- t = a(64);
- x = a(47);
- d = function () {
- var b;
- function a(a, b, c) {
- this.Nh = a;
- this.qc = b;
- this.Ke = c;
- }
- a.prototype.JW = function () {
- return !0;
- };
- a.prototype.Raa = function () {
- return !1;
- };
- a.prototype.Ofa = function (a) {
- return this.Ke.Bi && a === f.lj.Ol ? "persistent-usage-record" : "temporary";
- };
- a.prototype.Vea = function () {
- if (this.Ke.qQ)
- return this.Ke.qQ;
- };
- a.prototype.Jfa = function () {
- return [{
- initDataTypes: ["cenc"],
- audioCapabilities: [{
- contentType: p.xw
- }
- ],
- videoCapabilities: [{
- contentType: p.fr
- }
- ],
- sessionTypes: ["temporary", "persistent-usage-record"]
- }
- ];
- };
- a.prototype.ky = function () {
- return !1;
- };
- a.prototype.aha = function () {
- return Promise.reject(new x.Dc(m.J.nS));
- };
- a.prototype.hca = function (a) {
- var b;
- b = new Uint8Array(a.message);
- b = this.Xda(b, "PlayReadyKeyMessage", "Challenge");
- b = this.qc.decode(b);
- return {
- type: a.type,
- sessionId: a.target.sessionId,
- ss: [b],
- SO: a.messageType
- };
- };
- a.prototype.aq = function (a) {
- var b,
- c;
- b = new h.Pf(m.J.Dw);
- c = a.code;
- null != c && void 0 !== c ? (c = parseInt(c, 10), b.Hb = 1 <= c && 9 >= c ? m.I.ft + c : m.I.ft) : b.Hb = a instanceof t.gn ? m.I.CJ : m.I.Of;
- try {
- b.qd = this.Nh.Ou(a.target && a.target.error && a.target.error.systemCode, 4);
- } catch (R) {}
- b.bN(a);
- return b;
- };
- a.prototype.Xda = function (a, b) {
- var c,
- d,
- f,
- g;
- for (var c = 1; c < arguments.length; ++c);
- for (c = 1; c < arguments.length; c++);
- c = "";
- f = a.length;
- for (d = 0; d < f; d++)
- g = a[d], 0 < g && (c += String.fromCharCode(g));
- f = "\\s*(.*)\\s*";
- for (d = arguments.length - 1; 0 < d; d--) {
- g = arguments[d];
- if (0 > c.search(g))
- return "";
- g = "(?:[^:].*:|)" + g;
- f = "[\\s\\S]*<" + g + "[^>]*>" + f + "" + g + ">[\\s\\S]*";
- }
- return (c = c.match(new RegExp(f))) ? c[1] : "";
- };
- b = a;
- return b = c.__decorate([g.N(), c.__param(0, g.l(n.$s)), c.__param(1, g.l(k.Gi)), c.__param(2, g.l(r.Jl))], b);
- }
- ();
- b.Zqa = d;
- }, function (d, b, a) {
- var c,
- g,
- m,
- n,
- k,
- p,
- h,
- f,
- r,
- t,
- x,
- C,
- H,
- D,
- K,
- B,
- R,
- P,
- L,
- z,
- T;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Tta = void 0;
- c = a(0);
- g = a(1);
- m = a(2);
- n = a(8);
- k = a(88);
- p = a(138);
- h = a(1040);
- f = a(1039);
- r = a(1038);
- t = a(252);
- x = a(25);
- C = a(89);
- H = a(42);
- D = a(21);
- K = a(29);
- B = a(1037);
- R = a(1035);
- P = a(99);
- L = a(14);
- z = a(139);
- T = a(53);
- d = function () {
- var b;
- function a(a, b, c, d, f, g, h, k, l) {
- this.ls = a;
- this.Wc = b;
- this.Hh = c;
- this.Nh = d;
- this.qc = f;
- this.is = g;
- this.dP = h;
- this.config = k;
- this.Ke = l;
- this.log = this.ls.yb("MediaKeySystemAccessServices");
- }
- a.prototype.DG = function () {
- this.Cs || (this.Cs = this.kCb());
- return this.Cs;
- };
- a.prototype.sfb = function (a) {
- var b;
- b = this;
- return new Promise(function (c, d) {
- var f,
- g;
- f = z.nb.$ea(a);
- g = b.cIa(f);
- f = b.ZHa(f);
- g.DBb(a, f.Jfa()).then(function (d) {
- b.log.trace("Created the media keys system access", {
- keySystem: a,
- supportedconfig: d.getConfiguration ? JSON.stringify(d.getConfiguration()) : void 0
- });
- c(d);
- })["catch"](function (c) {
- b.log.error("Unable to create the media key system access object", {
- keySystem: a,
- error: c.message
- });
- d(new k.Pf(m.J.Oqa, m.I.Of, void 0, "Unable to create media keys system access. " + c.message, c));
- });
- });
- };
- a.prototype.kq = function () {
- var a;
- a = this;
- return this.DG().then(function (b) {
- return a.$Ha(b);
- });
- };
- a.prototype.$lb = function () {
- var a,
- b;
- a = this;
- b = this.config().mLa || [this.config().ce];
- if (1 < b.length)
- return this.DG().then(function (b) {
- return a.$Ha(b);
- }).then(function (a) {
- return z.nb.YHa(a);
- });
- b = z.nb.$ea(b[0]);
- return Promise.resolve(z.nb.YHa(b));
- };
- a.prototype.amb = function () {
- var a;
- a = this;
- return this.kq().then(function (b) {
- return a.ZHa(b);
- });
- };
- a.prototype.bmb = function () {
- var a;
- a = this;
- return this.kq().then(function (b) {
- return a.cIa(b);
- });
- };
- a.prototype.$Ha = function (a) {
- return z.nb.$ea(a.keySystem);
- };
- a.prototype.ZHa = function (a) {
- switch (a) {
- case p.Vm.DC:
- return new h.Zqa(this.Nh, this.qc, this.Ke);
- case p.Vm.yB:
- return new R.Pwa(this.Wc, this.Nh, this.qc, this.Hh, this.Ke);
- default:
- return new r.Ipa(this.Wc, this.Nh, this.Ke, this.config);
- }
- };
- a.prototype.cIa = function (a) {
- switch (a) {
- case p.Vm.DC:
- return new f.Zva(this.dP, this.is, this.qc, this.Wc, this.Ke, this.Hh);
- case p.Vm.yB:
- return new B.ura(this.dP, this.is, this.qc, this.Wc, this.Ke, this.Hh);
- default:
- return new t.mr(this.dP, this.is, this.qc, this.Wc, this.Ke, this.Hh);
- }
- };
- a.prototype.kCb = function () {
- var a,
- b;
- a = this;
- b = (this.config().mLa || [this.config().ce]).map(function (b) {
- return function () {
- return a.sfb(b);
- };
- });
- return this.lCb(b);
- };
- a.prototype.lCb = function (a) {
- return a.reduce(function (a, b) {
- return a.then(function (a) {
- return Promise.resolve(a);
- })["catch"](function () {
- return b();
- });
- }, Promise.reject(Error("keySystem missing")));
- };
- b = a;
- return b = c.__decorate([g.N(), c.__param(0, g.l(n.Bb)), c.__param(1, g.l(x.af)), c.__param(2, g.l(P.Lw)), c.__param(3, g.l(C.$s)), c.__param(4, g.l(H.Gi)), c.__param(5, g.l(D.ee)), c.__param(6, g.l(K.Cw)), c.__param(7, g.l(L.jd)), c.__param(8, g.l(T.Jl))], b);
- }
- ();
- b.Tta = d;
- }, function (d, b, a) {
- d = a(19);
- a = a(482);
- d.ob.from = a.from;
- }, function (d, b) {
- b.RZ = function (a) {
- return a instanceof Date && !isNaN(+a);
- };
- }, function (d, b, a) {
- d = a(491);
- a = a(490);
- b.async = new a.Soa(d.Poa);
- }, function (d, b, a) {
- var c;
- c = a(176);
- b.erb = function (a) {
- return !c.isArray(a) && 0 <= a - parseFloat(a) + 1;
- };
- }, function (d, b, a) {
- var c,
- g,
- m,
- n,
- k;
- c = this && this.__extends || function (a, b) {
- function c() {
- this.constructor = a;
- }
- for (var d in b)
- b.hasOwnProperty(d) && (a[d] = b[d]);
- a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c());
- };
- g = a(1045);
- d = a(19);
- m = a(1044);
- n = a(255);
- k = a(1043);
- a = function (a) {
- function b(b, c, d) {
- void 0 === b && (b = 0);
- a.call(this);
- this.E0 = -1;
- this.UFa = 0;
- g.erb(c) ? this.E0 = 1 > Number(c) && 1 || Number(c) : n.a_(c) && (d = c);
- n.a_(d) || (d = m.async);
- this.ta = d;
- this.UFa = k.RZ(b) ? +b - this.ta.now() : b;
- }
- c(b, a);
- b.create = function (a, c, d) {
- void 0 === a && (a = 0);
- return new b(a, c, d);
- };
- b.tc = function (a) {
- var b,
- c,
- d;
- b = a.index;
- c = a.E0;
- d = a.ij;
- d.next(b);
- if (!d.closed) {
- if (-1 === c)
- return d.complete();
- a.index = b + 1;
- this.Mc(a, c);
- }
- };
- b.prototype.Vl = function (a) {
- return this.ta.Mc(b.tc, this.UFa, {
- index: 0,
- E0: this.E0,
- ij: a
- });
- };
- return b;
- }
- (d.ob);
- b.W2a = a;
- }, function (d, b, a) {
- d = a(1046);
- b.Rm = d.W2a.create;
- }, function (d, b, a) {
- d = a(19);
- a = a(1047);
- d.ob.Rm = a.Rm;
- }, function (d, b, a) {
- d = a(19);
- a = a(484);
- d.ob.of = a.of;
- }, function (d, b, a) {
- var c,
- g,
- m,
- n,
- k,
- p;
- c = this && this.__extends || function (a, b) {
- function c() {
- this.constructor = a;
- }
- for (var d in b)
- b.hasOwnProperty(d) && (a[d] = b[d]);
- a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c());
- };
- g = a(176);
- m = a(254);
- d = a(175);
- n = a(174);
- b.race = function () {
- for (var a = [], b = 0; b < arguments.length; b++)
- a[b - 0] = arguments[b];
- if (1 === a.length)
- if (g.isArray(a[0]))
- a = a[0];
- else
- return a[0];
- return new m.m3(a).vq(new k());
- };
- k = function () {
- function a() {}
- a.prototype.call = function (a, b) {
- return b.subscribe(new p(a));
- };
- return a;
- }
- ();
- b.VOb = k;
- p = function (a) {
- function b(b) {
- a.call(this, b);
- this.iga = !1;
- this.Jja = [];
- this.LQ = [];
- }
- c(b, a);
- b.prototype.cl = function (a) {
- this.Jja.push(a);
- };
- b.prototype.Td = function () {
- var a,
- b,
- d;
- a = this.Jja;
- b = a.length;
- if (0 === b)
- this.destination.complete();
- else {
- for (var c = 0; c < b && !this.iga; c++) {
- d = a[c];
- d = n.s2(this, d, d, c);
- this.LQ && this.LQ.push(d);
- this.add(d);
- }
- this.Jja = null;
- }
- };
- b.prototype.l0 = function (a, b, c) {
- var d;
- if (!this.iga) {
- this.iga = !0;
- for (a = 0; a < this.LQ.length; a++)
- if (a !== c) {
- d = this.LQ[a];
- d.unsubscribe();
- this.remove(d);
- }
- this.LQ = null;
- }
- this.destination.next(b);
- };
- return b;
- }
- (d.mT);
- b.WOb = p;
- }, function (d, b, a) {
- d = a(19);
- a = a(1050);
- d.ob.race = a.race;
- }, function (d, b, a) {
- d = a(481);
- b.Yr = d.iwa.create;
- }, function (d, b, a) {
- d = a(19);
- a = a(1052);
- d.ob.Yr = a.Yr;
- }, function (d, b, a) {
- d = a(173);
- b.empty = d.pS.create;
- }, function (d, b, a) {
- d = a(19);
- a = a(1054);
- d.ob.empty = a.empty;
- }, function (d, b, a) {
- var c;
- c = a(486);
- b.Ucb = function () {
- return c.iC(1);
- };
- }, function (d, b, a) {
- var c,
- g,
- m;
- c = this && this.__extends || function (a, b) {
- function c() {
- this.constructor = a;
- }
- for (var d in b)
- b.hasOwnProperty(d) && (a[d] = b[d]);
- a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c());
- };
- d = a(19);
- g = a(483);
- m = a(173);
- a = function (a) {
- function b(b, c) {
- a.call(this);
- this.Iaa = b;
- (this.ta = c) || 1 !== b.length || (this.Lt = !0, this.value = b[0]);
- }
- c(b, a);
- b.create = function (a, c) {
- var d;
- d = a.length;
- return 0 === d ? new m.pS() : 1 === d ? new g.Rwa(a[0], c) : new b(a, c);
- };
- b.tc = function (a) {
- var b,
- c,
- d;
- b = a.Iaa;
- c = a.index;
- d = a.ij;
- d.closed || (c >= a.length ? d.complete() : (d.next(b[c]), a.index = c + 1, this.Mc(a)));
- };
- b.prototype.Vl = function (a) {
- var c,
- d,
- g;
- c = this.Iaa;
- d = this.ta;
- g = c.length;
- if (d)
- return d.Mc(b.tc, 0, {
- Iaa: c,
- index: 0,
- length: g,
- ij: a
- });
- for (d = 0; d < g && !a.closed; d++)
- a.next(c[d]);
- a.complete();
- };
- return b;
- }
- (d.ob);
- b.oWa = a;
- }, function (d, b, a) {
- var c,
- g,
- m,
- n,
- k,
- p;
- c = this && this.__extends || function (a, b) {
- function c() {
- this.constructor = a;
- }
- for (var d in b)
- b.hasOwnProperty(d) && (a[d] = b[d]);
- a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c());
- };
- g = a(85);
- d = a(19);
- m = a(256);
- a = function (a) {
- function b(b, c) {
- a.call(this);
- this.ta = c;
- if (null == b)
- throw Error("iterator cannot be null.");
- if ((c = b[m.iterator]) || "string" !== typeof b)
- if (c || void 0 === b.length) {
- if (!c)
- throw new TypeError("object is not iterable");
- b = b[m.iterator]();
- } else
- b = new k(b);
- else
- b = new n(b);
- this.iterator = b;
- }
- c(b, a);
- b.create = function (a, c) {
- return new b(a, c);
- };
- b.tc = function (a) {
- var b,
- c,
- d,
- f;
- b = a.index;
- c = a.iterator;
- d = a.ij;
- if (a.TN)
- d.error(a.error);
- else {
- f = c.next();
- f.done ? d.complete() : (d.next(f.value), a.index = b + 1, d.closed ? "function" === typeof c["return"] && c["return"]() : this.Mc(a));
- }
- };
- b.prototype.Vl = function (a) {
- var c,
- d;
- c = this.iterator;
- d = this.ta;
- if (d)
- return d.Mc(b.tc, 0, {
- index: 0,
- iterator: c,
- ij: a
- });
- do {
- d = c.next();
- if (d.done) {
- a.complete();
- break;
- } else
- a.next(d.value);
- if (a.closed) {
- "function" === typeof c["return"] && c["return"]();
- break;
- }
- } while (1);
- };
- return b;
- }
- (d.ob);
- b.N_a = a;
- n = function () {
- function a(a, b, c) {
- void 0 === b && (b = 0);
- void 0 === c && (c = a.length);
- this.$y = a;
- this.bO = b;
- this.Rha = c;
- }
- a.prototype[m.iterator] = function () {
- return this;
- };
- a.prototype.next = function () {
- return this.bO < this.Rha ? {
- done: !1,
- value: this.$y.charAt(this.bO++)
- }
- : {
- done: !0,
- value: void 0
- };
- };
- return a;
- }
- ();
- k = function () {
- function a(a, b, c) {
- var d;
- void 0 === b && (b = 0);
- if (void 0 === c)
- if (c = +a.length, isNaN(c))
- c = 0;
- else if (0 !== c && "number" === typeof c && g.root.isFinite(c)) {
- d = +c;
- c = (0 === d || isNaN(d) ? d : 0 > d ? -1 : 1) * Math.floor(Math.abs(c));
- c = 0 >= c ? 0 : c > p ? p : c;
- }
- this.s$a = a;
- this.bO = b;
- this.Rha = c;
- }
- a.prototype[m.iterator] = function () {
- return this;
- };
- a.prototype.next = function () {
- return this.bO < this.Rha ? {
- done: !1,
- value: this.s$a[this.bO++]
- }
- : {
- done: !0,
- value: void 0
- };
- };
- return a;
- }
- ();
- p = Math.pow(2, 53) - 1;
- }, function (d, b, a) {
- var c,
- g,
- m,
- n,
- k,
- p,
- h,
- f,
- r,
- t,
- x,
- C;
- c = this && this.__extends || function (a, b) {
- function c() {
- this.constructor = a;
- }
- for (var d in b)
- b.hasOwnProperty(d) && (a[d] = b[d]);
- a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c());
- };
- g = a(176);
- m = a(488);
- n = a(487);
- k = a(481);
- p = a(1058);
- h = a(254);
- f = a(1057);
- r = a(256);
- t = a(19);
- x = a(489);
- C = a(257);
- d = function (a) {
- function b(b, c) {
- a.call(this, null);
- this.Crb = b;
- this.ta = c;
- }
- c(b, a);
- b.create = function (a, c) {
- if (null != a) {
- if ("function" === typeof a[C.observable])
- return a instanceof t.ob && !c ? a : new b(a, c);
- if (g.isArray(a))
- return new h.m3(a, c);
- if (n.RKa(a))
- return new k.iwa(a, c);
- if ("function" === typeof a[r.iterator] || "string" === typeof a)
- return new p.N_a(a, c);
- if (m.AKa(a))
- return new f.oWa(a, c);
- }
- throw new TypeError((null !== a && typeof a || a) + " is not observable");
- };
- b.prototype.Vl = function (a) {
- var b,
- c;
- b = this.Crb;
- c = this.ta;
- return null == c ? b[C.observable]().subscribe(a) : b[C.observable]().subscribe(new x.Aua(a, c, 0));
- };
- return b;
- }
- (t.ob);
- b.rZa = d;
- }, function (d, b, a) {
- var c,
- g,
- m,
- n;
- c = a(255);
- g = a(484);
- m = a(482);
- n = a(1056);
- b.concat = function () {
- for (var a = [], b = 0; b < arguments.length; b++)
- a[b - 0] = arguments[b];
- return 1 === a.length || 2 === a.length && c.a_(a[1]) ? m.from(a[0]) : n.Ucb()(g.of.apply(void 0, a));
- };
- }, function (d, b, a) {
- d = a(19);
- a = a(1060);
- d.ob.concat = a.concat;
- }, function () {}, function (d, b, a) {
- var c,
- g,
- m,
- n;
- c = this && this.__extends || function (a, b) {
- function c() {
- this.constructor = a;
- }
- for (var d in b)
- b.hasOwnProperty(d) && (a[d] = b[d]);
- a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c());
- };
- d = a(175);
- g = a(174);
- b.YQ = function (a) {
- return function (b) {
- return b.vq(new m(a));
- };
- };
- m = function () {
- function a(a) {
- this.Ua = a;
- }
- a.prototype.call = function (a, b) {
- return b.subscribe(new n(a, this.Ua));
- };
- return a;
- }
- ();
- n = function (a) {
- function b(b, c) {
- a.call(this, b);
- this.Ua = c;
- this.add(g.s2(this, c));
- }
- c(b, a);
- b.prototype.l0 = function () {
- this.complete();
- };
- b.prototype.xs = function () {};
- return b;
- }
- (d.mT);
- }, function (d, b, a) {
- var c;
- c = a(1063);
- b.YQ = function (a) {
- return c.YQ(a)(this);
- };
- }, function (d, b, a) {
- d = a(19);
- a = a(1064);
- d.ob.prototype.YQ = a.YQ;
- }, function (d, b) {
- var a;
- a = this && this.__extends || function (a, b) {
- function c() {
- this.constructor = a;
- }
- for (var d in b)
- b.hasOwnProperty(d) && (a[d] = b[d]);
- a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c());
- };
- d = function (b) {
- function c() {
- var a;
- a = b.call(this, "argument out of range");
- this.name = a.name = "ArgumentOutOfRangeError";
- this.stack = a.stack;
- this.message = a.message;
- }
- a(c, b);
- return c;
- }
- (Error);
- b.jWa = d;
- }, function (d, b, a) {
- var c,
- g,
- m,
- n,
- k;
- c = this && this.__extends || function (a, b) {
- function c() {
- this.constructor = a;
- }
- for (var d in b)
- b.hasOwnProperty(d) && (a[d] = b[d]);
- a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c());
- };
- d = a(70);
- g = a(1066);
- m = a(173);
- b.XQ = function (a) {
- return function (b) {
- return 0 === a ? new m.pS() : b.vq(new n(a));
- };
- };
- n = function () {
- function a(a) {
- this.total = a;
- if (0 > this.total)
- throw new g.jWa();
- }
- a.prototype.call = function (a, b) {
- return b.subscribe(new k(a, this.total));
- };
- return a;
- }
- ();
- k = function (a) {
- function b(b, c) {
- a.call(this, b);
- this.total = c;
- this.count = 0;
- }
- c(b, a);
- b.prototype.cl = function (a) {
- var b,
- c;
- b = this.total;
- c = ++this.count;
- c <= b && (this.destination.next(a), c === b && (this.destination.complete(), this.unsubscribe()));
- };
- return b;
- }
- (d.en);
- }, function (d, b, a) {
- var c;
- c = a(1067);
- b.XQ = function (a) {
- return c.XQ(a)(this);
- };
- }, function (d, b, a) {
- d = a(19);
- a = a(1068);
- d.ob.prototype.XQ = a.XQ;
- }, function (d, b, a) {
- var c,
- g,
- m;
- c = this && this.__extends || function (a, b) {
- function c() {
- this.constructor = a;
- }
- for (var d in b)
- b.hasOwnProperty(d) && (a[d] = b[d]);
- a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c());
- };
- d = a(70);
- b.DQ = function (a) {
- return function (b) {
- return b.vq(new g(a));
- };
- };
- g = function () {
- function a(a) {
- this.My = a;
- }
- a.prototype.call = function (a, b) {
- return b.subscribe(new m(a, this.My));
- };
- return a;
- }
- ();
- m = function (a) {
- function b(b, c) {
- a.call(this, b);
- this.My = c;
- this.Kma = !0;
- this.index = 0;
- }
- c(b, a);
- b.prototype.cl = function (a) {
- var b;
- b = this.destination;
- this.Kma && this.fHb(a);
- this.Kma || b.next(a);
- };
- b.prototype.fHb = function (a) {
- try {
- this.Kma = !!this.My(a, this.index++);
- } catch (h) {
- this.destination.error(h);
- }
- };
- return b;
- }
- (d.en);
- }, function (d, b, a) {
- var c;
- c = a(1070);
- b.DQ = function (a) {
- return c.DQ(a)(this);
- };
- }, function (d, b, a) {
- d = a(19);
- a = a(1071);
- d.ob.prototype.DQ = a.DQ;
- }, function (d, b, a) {
- var c;
- c = a(485);
- b.pH = function (a, b, d) {
- void 0 === d && (d = Number.POSITIVE_INFINITY);
- return c.pH(a, b, d)(this);
- };
- }, function (d, b, a) {
- d = a(19);
- a = a(1073);
- d.ob.prototype.pH = a.pH;
- d.ob.prototype.Wr = a.pH;
- }, function (d, b) {
- b.Mpb = function (a) {
- return a;
- };
- }, function (d, b, a) {
- var c;
- c = a(486);
- b.iC = function (a) {
- void 0 === a && (a = Number.POSITIVE_INFINITY);
- return c.iC(a)(this);
- };
- }, function (d, b, a) {
- d = a(19);
- a = a(1076);
- d.ob.prototype.iC = a.iC;
- }, function (d, b, a) {
- var c,
- g,
- m;
- c = this && this.__extends || function (a, b) {
- function c() {
- this.constructor = a;
- }
- for (var d in b)
- b.hasOwnProperty(d) && (a[d] = b[d]);
- a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c());
- };
- d = a(70);
- b.map = function (a, b) {
- return function (c) {
- if ("function" !== typeof a)
- throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");
- return c.vq(new g(a, b));
- };
- };
- g = function () {
- function a(a, b) {
- this.GC = a;
- this.ina = b;
- }
- a.prototype.call = function (a, b) {
- return b.subscribe(new m(a, this.GC, this.ina));
- };
- return a;
- }
- ();
- b.jNb = g;
- m = function (a) {
- function b(b, c, d) {
- a.call(this, b);
- this.GC = c;
- this.count = 0;
- this.ina = d || this;
- }
- c(b, a);
- b.prototype.cl = function (a) {
- var b;
- try {
- b = this.GC.call(this.ina, a, this.count++);
- } catch (f) {
- this.destination.error(f);
- return;
- }
- this.destination.next(b);
- };
- return b;
- }
- (d.en);
- }, function (d, b, a) {
- var c;
- c = a(1078);
- b.map = function (a, b) {
- return c.map(a, b)(this);
- };
- }, function (d, b, a) {
- d = a(19);
- a = a(1079);
- d.ob.prototype.map = a.map;
- }, function (d, b) {
- var a;
- a = this && this.__extends || function (a, b) {
- function c() {
- this.constructor = a;
- }
- for (var d in b)
- b.hasOwnProperty(d) && (a[d] = b[d]);
- a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c());
- };
- d = function (b) {
- function c() {
- var a;
- a = b.call(this, "no elements in sequence");
- this.name = a.name = "EmptyError";
- this.stack = a.stack;
- this.message = a.message;
- }
- a(c, b);
- return c;
- }
- (Error);
- b.fZa = d;
- }, function (d, b, a) {
- var c,
- g,
- m,
- n;
- c = this && this.__extends || function (a, b) {
- function c() {
- this.constructor = a;
- }
- for (var d in b)
- b.hasOwnProperty(d) && (a[d] = b[d]);
- a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c());
- };
- d = a(70);
- g = a(1081);
- b.dh = function (a, b, c) {
- return function (d) {
- return d.vq(new m(a, b, c, d));
- };
- };
- m = function () {
- function a(a, b, c, d) {
- this.My = a;
- this.Ks = b;
- this.defaultValue = c;
- this.source = d;
- }
- a.prototype.call = function (a, b) {
- return b.subscribe(new n(a, this.My, this.Ks, this.defaultValue, this.source));
- };
- return a;
- }
- ();
- n = function (a) {
- function b(b, c, d, g, k) {
- a.call(this, b);
- this.My = c;
- this.Ks = d;
- this.defaultValue = g;
- this.source = k;
- this.QG = !1;
- this.index = 0;
- "undefined" !== typeof g && (this.o_ = g, this.QG = !0);
- }
- c(b, a);
- b.prototype.cl = function (a) {
- var b;
- b = this.index++;
- this.My ? this.C8a(a, b) : this.Ks ? this.vBa(a, b) : (this.o_ = a, this.QG = !0);
- };
- b.prototype.C8a = function (a, b) {
- var c;
- try {
- c = this.My(a, b, this.source);
- } catch (A) {
- this.destination.error(A);
- return;
- }
- c && (this.Ks ? this.vBa(a, b) : (this.o_ = a, this.QG = !0));
- };
- b.prototype.vBa = function (a, b) {
- var c;
- try {
- c = this.Ks(a, b);
- } catch (A) {
- this.destination.error(A);
- return;
- }
- this.o_ = c;
- this.QG = !0;
- };
- b.prototype.Td = function () {
- var a;
- a = this.destination;
- this.QG ? (a.next(this.o_), a.complete()) : a.error(new g.fZa());
- };
- return b;
- }
- (d.en);
- }, function (d, b, a) {
- var c;
- c = a(1082);
- b.dh = function (a, b, d) {
- return c.dh(a, b, d)(this);
- };
- }, function (d, b, a) {
- d = a(19);
- a = a(1083);
- d.ob.prototype.dh = a.dh;
- }, function (d, b, a) {
- var c,
- g,
- m,
- n;
- c = this && this.__extends || function (a, b) {
- function c() {
- this.constructor = a;
- }
- for (var d in b)
- b.hasOwnProperty(d) && (a[d] = b[d]);
- a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c());
- };
- g = a(70);
- b.bGb = function (a, b, c) {
- return function (d) {
- return d.vq(new m(a, b, c));
- };
- };
- m = function () {
- function a(a, b, c) {
- this.Ivb = a;
- this.error = b;
- this.complete = c;
- }
- a.prototype.call = function (a, b) {
- return b.subscribe(new n(a, this.Ivb, this.error, this.complete));
- };
- return a;
- }
- ();
- n = function (a) {
- function b(b, c, d, k) {
- a.call(this, b);
- b = new g.en(c, d, k);
- b.Om = !0;
- this.add(b);
- this.Fla = b;
- }
- c(b, a);
- b.prototype.cl = function (a) {
- var b;
- b = this.Fla;
- b.next(a);
- b.fD ? this.destination.error(b.gD) : this.destination.next(a);
- };
- b.prototype.bf = function (a) {
- var b;
- b = this.Fla;
- b.error(a);
- b.fD ? this.destination.error(b.gD) : this.destination.error(a);
- };
- b.prototype.Td = function () {
- var a;
- a = this.Fla;
- a.complete();
- a.fD ? this.destination.error(a.gD) : this.destination.complete();
- };
- return b;
- }
- (g.en);
- }, function (d, b, a) {
- var c;
- c = a(1085);
- b.p9 = function (a, b, d) {
- return c.bGb(a, b, d)(this);
- };
- }, function (d, b, a) {
- d = a(19);
- a = a(1086);
- d.ob.prototype.dN = a.p9;
- d.ob.prototype.p9 = a.p9;
- }, function (d, b, a) {
- var c;
- c = this && this.__extends || function (a, b) {
- function c() {
- this.constructor = a;
- }
- for (var d in b)
- b.hasOwnProperty(d) && (a[d] = b[d]);
- a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c());
- };
- d = function (a) {
- function b(b, c, d) {
- a.call(this);
- this.parent = b;
- this.ixb = c;
- this.hxb = d;
- this.index = 0;
- }
- c(b, a);
- b.prototype.cl = function (a) {
- this.parent.l0(this.ixb, a, this.hxb, this.index++, this);
- };
- b.prototype.bf = function (a) {
- this.parent.Uvb(a);
- this.unsubscribe();
- };
- b.prototype.Td = function () {
- this.parent.xs(this);
- this.unsubscribe();
- };
- return b;
- }
- (a(70).en);
- b.Hsa = d;
- }, function (d, b, a) {
- var c,
- g,
- m,
- n;
- c = this && this.__extends || function (a, b) {
- function c() {
- this.constructor = a;
- }
- for (var d in b)
- b.hasOwnProperty(d) && (a[d] = b[d]);
- a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c());
- };
- d = a(175);
- g = a(174);
- b.Jbb = function (a) {
- return function (b) {
- var c;
- c = new m(a);
- b = b.vq(c);
- return c.tba = b;
- };
- };
- m = function () {
- function a(a) {
- this.$la = a;
- }
- a.prototype.call = function (a, b) {
- return b.subscribe(new n(a, this.$la, this.tba));
- };
- return a;
- }
- ();
- n = function (a) {
- function b(b, c, d) {
- a.call(this, b);
- this.$la = c;
- this.tba = d;
- }
- c(b, a);
- b.prototype.error = function (b) {
- var c;
- if (!this.Eg) {
- c = void 0;
- try {
- c = this.$la(b, this.tba);
- } catch (u) {
- a.prototype.error.call(this, u);
- return;
- }
- this.F8a();
- this.add(g.s2(this, c));
- }
- };
- return b;
- }
- (d.mT);
- }, function (d, b, a) {
- var c;
- c = a(1089);
- b.b9 = function (a) {
- return c.Jbb(a)(this);
- };
- }, function (d, b, a) {
- d = a(19);
- a = a(1090);
- d.ob.prototype["catch"] = a.b9;
- d.ob.prototype.b9 = a.b9;
- }, function (d, b, a) {
- a(19);
- d = function () {
- function a(a, b, c) {
- this.kind = a;
- this.value = b;
- this.error = c;
- this.QG = "N" === a;
- }
- a.prototype.observe = function (a) {
- switch (this.kind) {
- case "N":
- return a.next && a.next(this.value);
- case "E":
- return a.error && a.error(this.error);
- case "C":
- return a.complete && a.complete();
- }
- };
- a.prototype.dN = function (a, b, c) {
- switch (this.kind) {
- case "N":
- return a && a(this.value);
- case "E":
- return b && b(this.error);
- case "C":
- return c && c();
- }
- };
- a.prototype.accept = function (a, b, c) {
- return a && "function" === typeof a.next ? this.observe(a) : this.dN(a, b, c);
- };
- a.Afb = function (b) {
- return "undefined" !== typeof b ? new a("N", b) : a.nHb;
- };
- a.lfb = function (b) {
- return new a("E", void 0, b);
- };
- a.bfb = function () {
- return a.Lcb;
- };
- a.Lcb = new a("C");
- a.nHb = new a("N", void 0);
- return a;
- }
- ();
- b.Notification = d;
- }, function (d, b) {
- d = function () {
- function a(b, d) {
- void 0 === d && (d = a.now);
- this.H2a = b;
- this.now = d;
- }
- a.prototype.Mc = function (a, b, d) {
- void 0 === b && (b = 0);
- return new this.H2a(this, a).Mc(d, b);
- };
- a.now = Date.now ? Date.now : function () {
- return +new Date();
- };
- return a;
- }
- ();
- b.G2a = d;
- }, function (d, b, a) {
- var c;
- c = this && this.__extends || function (a, b) {
- function c() {
- this.constructor = a;
- }
- for (var d in b)
- b.hasOwnProperty(d) && (a[d] = b[d]);
- a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c());
- };
- d = function (a) {
- function b() {
- a.apply(this, arguments);
- }
- c(b, a);
- return b;
- }
- (a(490).Soa);
- b.$1a = d;
- }, function (d, b, a) {
- var c;
- c = this && this.__extends || function (a, b) {
- function c() {
- this.constructor = a;
- }
- for (var d in b)
- b.hasOwnProperty(d) && (a[d] = b[d]);
- a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c());
- };
- d = function (a) {
- function b() {
- a.call(this);
- }
- c(b, a);
- b.prototype.Mc = function () {
- return this;
- };
- return b;
- }
- (a(115).Jw);
- b.hWa = d;
- }, function (d, b, a) {
- var c;
- c = this && this.__extends || function (a, b) {
- function c() {
- this.constructor = a;
- }
- for (var d in b)
- b.hasOwnProperty(d) && (a[d] = b[d]);
- a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c());
- };
- d = function (a) {
- function b(b, c) {
- a.call(this, b, c);
- this.ta = b;
- this.aoa = c;
- }
- c(b, a);
- b.prototype.Mc = function (b, c) {
- void 0 === c && (c = 0);
- if (0 < c)
- return a.prototype.Mc.call(this, b, c);
- this.pl = c;
- this.state = b;
- this.ta.flush(this);
- return this;
- };
- b.prototype.kf = function (b, c) {
- return 0 < c || this.closed ? a.prototype.kf.call(this, b, c) : this.tza(b);
- };
- b.prototype.ola = function (b, c, d) {
- void 0 === d && (d = 0);
- return null !== d && 0 < d || null === d && 0 < this.pl ? a.prototype.ola.call(this, b, c, d) : b.flush(this);
- };
- return b;
- }
- (a(491).Poa);
- b.Y1a = d;
- }, function (d, b, a) {
- d = a(1096);
- a = a(1094);
- b.Mk = new a.$1a(d.Y1a);
- }, function (d, b, a) {
- var c,
- g,
- m,
- n,
- k,
- p,
- h;
- c = this && this.__extends || function (a, b) {
- function c() {
- this.constructor = a;
- }
- for (var d in b)
- b.hasOwnProperty(d) && (a[d] = b[d]);
- a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c());
- };
- d = a(494);
- g = a(1097);
- m = a(115);
- n = a(489);
- k = a(493);
- p = a(492);
- a = function (a) {
- function b(b, c, d) {
- void 0 === b && (b = Number.POSITIVE_INFINITY);
- void 0 === c && (c = Number.POSITIVE_INFINITY);
- a.call(this);
- this.ta = d;
- this.cg = [];
- this.T3a = 1 > b ? 1 : b;
- this.R8a = 1 > c ? 1 : c;
- }
- c(b, a);
- b.prototype.next = function (b) {
- var c;
- c = this.Hza();
- this.cg.push(new h(c, b));
- this.sBa();
- a.prototype.next.call(this, b);
- };
- b.prototype.Vl = function (a) {
- var b,
- c,
- d;
- b = this.sBa();
- c = this.ta;
- if (this.closed)
- throw new k.fE();
- this.TN ? d = m.Jw.EMPTY : this.Eg ? d = m.Jw.EMPTY : (this.zv.push(a), d = new p.txa(this, a));
- c && a.add(a = new n.Aua(a, c));
- for (var c = b.length, f = 0; f < c && !a.closed; f++)
- a.next(b[f].value);
- this.TN ? a.error(this.mna) : this.Eg && a.complete();
- return d;
- };
- b.prototype.Hza = function () {
- return (this.ta || g.Mk).now();
- };
- b.prototype.sBa = function () {
- for (var a = this.Hza(), b = this.T3a, c = this.R8a, d = this.cg, f = d.length, g = 0; g < f && !(a - d[g].time < c); )
- g++;
- f > b && (g = Math.max(g, f - b));
- 0 < g && d.splice(0, g);
- return d;
- };
- return b;
- }
- (d.dn);
- b.f2a = a;
- h = function () {
- return function (a, b) {
- this.time = a;
- this.value = b;
- };
- }
- ();
- }, function (d, b) {
- b.Nvb = function () {};
- }, function (d, b, a) {
- var g;
- function c(a) {
- return a ? 1 === a.length ? a[0] : function (b) {
- return a.reduce(function (a, b) {
- return b(a);
- }, b);
- }
- : g.Nvb;
- }
- g = a(1099);
- b.$xb = function () {
- for (var a = [], b = 0; b < arguments.length; b++)
- a[b - 0] = arguments[b];
- return c(a);
- };
- b.ayb = c;
- }, function (d, b) {
- var a;
- a = this && this.__extends || function (a, b) {
- function c() {
- this.constructor = a;
- }
- for (var d in b)
- b.hasOwnProperty(d) && (a[d] = b[d]);
- a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c());
- };
- d = function (b) {
- function c(a) {
- b.call(this);
- this.rG = a;
- a = Error.call(this, a ? a.length + " errors occurred during unsubscription:\n " + a.map(function (a, b) {
- return b + 1 + ") " + a.toString();
- }).join("\n ") : "");
- this.name = a.name = "UnsubscriptionError";
- this.stack = a.stack;
- this.message = a.message;
- }
- a(c, b);
- return c;
- }
- (Error);
- b.ZT = d;
- }, function (d, b, a) {
- var g,
- m;
- function c() {
- try {
- return m.apply(this, arguments);
- } catch (n) {
- return g.Qx.e = n,
- g.Qx;
- }
- }
- g = a(495);
- b.kUa = function (a) {
- m = a;
- return c;
- };
- }, function (d, b, a) {
- var c,
- g,
- m;
- c = a(70);
- g = a(258);
- m = a(259);
- b.FGb = function (a, b, d) {
- if (a) {
- if (a instanceof c.en)
- return a;
- if (a[g.QC])
- return a[g.QC]();
- }
- return a || b || d ? new c.en(a, b, d) : new c.en(m.empty);
- };
- }, function (d, b, a) {
- var c,
- g,
- m,
- n,
- k,
- p,
- h,
- f,
- r,
- t,
- x,
- C,
- B,
- D,
- K,
- J;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Hqa = void 0;
- c = a(0);
- g = a(1);
- m = a(135);
- n = a(8);
- k = a(36);
- p = a(480);
- h = a(69);
- f = a(87);
- r = a(53);
- t = a(261);
- x = a(262);
- C = a(479);
- B = a(14);
- D = a(100);
- K = a(137);
- J = a(49);
- d = function () {
- var b;
- function a(a, b, c, d, g, h, k, l, n, p) {
- var q;
- q = this;
- this.ta = b;
- this.Es = c;
- this.config = d;
- this.iq = g;
- this.cGa = h;
- this.GF = k;
- this.vl = l;
- this.NO = n;
- this.Hk = p;
- this.DFb = function (a, b) {
- q.Hk.mark(J.xa.uS, a.jh.fa, "generate-challenge");
- b.fH().XQ(1).subscribe(function (c) {
- q.wLa.next({
- Kn: b.kq(),
- data: c.Ph
- });
- q.Hk.mark(J.xa.tS, a.jh.fa, "generate-challenge");
- });
- b.fH().map(function (c) {
- return q.IB(a, b, c);
- }).iC().dN(function (a) {
- return b.LBa(a);
- }).subscribe(void 0, function (a) {
- b.w9a(a);
- }, function () {
- q.jbb(b);
- });
- };
- this.GFb = function (a) {
- a.fQ.map(function (b) {
- return q.TIa(a, b);
- }).iC().dN(function (b) {
- return a.RBa(b.response);
- }).subscribe(void 0, a.RBa);
- };
- this.log = a.yb("DrmServices");
- this.wLa = new m.dn();
- this.iq().Dp && this.GF.hQa().then(function () {
- q.hFb();
- })["catch"](function (a) {
- q.log.error("Unable to load the persisted DRM data", a);
- });
- this.config.sKa && this.vl.DG().then(function (a) {
- return q.JEa(a, {
- ce: a.keySystem
- }, f.lj.Ol, n()).Wr(function (a) {
- return a.close();
- }).subscribe();
- });
- }
- a.prototype.Mv = function (a, b) {
- var c;
- c = this;
- return new Promise(function (d, f) {
- c.Fg(a, b).subscribe(d, f);
- });
- };
- a.prototype.Ikb = function (a, b) {
- var c;
- c = this;
- return new Promise(function (d, f) {
- c.mY(a, b).subscribe(d, f);
- });
- };
- a.prototype.Fg = function (a, b) {
- var c;
- c = this;
- this.log.info("Requesting challenges", this.wIa(a, a.type));
- return this.NM(a.context, a.type, b).Wr(function (b) {
- c.$Ma(a, b);
- return c.qEa(b.mY(a.CZ), b);
- });
- };
- a.prototype.$Ma = function (a, b) {
- b.TDb(a.jh);
- this.DFb(a, b);
- };
- a.prototype.lFb = function (a, b) {
- var c,
- d;
- c = this;
- this.config.Bi ? (this.log.info("Releasing server license and EME license", this.Pfa(a)), this.GFb(a), d = a.uHa()) : (this.log.info("Releasing server license", this.Pfa(a)), d = this.TIa(a));
- return this.qEa(d, a).dN(function () {
- var d;
- d = Object.assign({
- ce: a.context.ce,
- Yb: []
- }, a.jh);
- c.GF.jla(d);
- b.gBb();
- });
- };
- a.prototype.fH = function () {
- return this.wLa.Jaa();
- };
- a.prototype.wIa = function (a, b) {
- return {
- movieId: a.jh.u,
- xid: a.jh.fa,
- type: f.Tha(b)
- };
- };
- a.prototype.Pfa = function (a) {
- return {
- movieId: a.jh ? a.jh.u : void 0,
- xid: a.jh ? a.jh.fa : void 0,
- keySessionId: a.ay()
- };
- };
- a.prototype.qEa = function (a, b) {
- return m.ob.concat(a, m.ob.of(b)).dh();
- };
- a.prototype.IB = function (a, b, c) {
- this.log.info("Sending license request", this.wIa(a, c.Uh));
- return m.ob.Yr(this.Es.Fg({
- fa: a.jh.fa,
- pg: a.jh.pg,
- uX: [a.jh.sk],
- Ph: [{
- sessionId: b.ay() || "session",
- data: c.Ph
- }
- ],
- Uh: c.Uh,
- Kn: b.kq(),
- IDa: c.IDa,
- LO: a.jh.LO,
- Jj: a.jh.Jj
- }));
- };
- a.prototype.TIa = function (a, b) {
- this.log.info("Sending release request", this.Pfa(a));
- return b ? m.ob.Yr(this.Es.release({
- fa: a.jh.fa,
- Yb: a.Yb,
- Ph: b.Ph
- })) : m.ob.Yr(this.Es.release({
- fa: a.jh.fa,
- Yb: a.Yb
- }));
- };
- a.prototype.mY = function (a, b) {
- return this.NM(a.context, a.type, b).Wr(function (b) {
- return m.ob.race(b.mY(a.CZ).map(function () {
- return b;
- }), b.fH().map(function () {
- return b;
- }));
- });
- };
- a.prototype.NM = function (a, b, c) {
- var d;
- d = this;
- return m.ob.Yr(this.vl.DG()).Wr(function (f) {
- return d.JEa(f, a, b, c);
- });
- };
- a.prototype.JEa = function (a, b, c, d) {
- return m.ob.Yr(this.cGa.create()).Wr(function (f) {
- return f.Gn(b, a, d, c);
- });
- };
- a.prototype.gFb = function (a) {
- var b;
- b = this;
- return this.config.Bi ? m.ob.Yr(this.Lsb(a)) : m.ob.Yr(this.Es.release({
- fa: a.fa,
- Yb: a.Yb
- }))["catch"](function (a) {
- b.log.error("Unable to send release data to the server", a);
- return m.ob.empty();
- }).map(function () {
- return a;
- });
- };
- a.prototype.Lsb = function (a) {
- var b;
- b = this;
- this.vl.DG().then(function (c) {
- b.cGa.create().then(function (d) {
- d.Gn({
- ce: c.keySystem
- }, c, b.NO(), f.lj.Ol).Wr(function () {
- return d.Vsb(a.Yb[0].id);
- }).Wr(function () {
- return d.uHa();
- }).subscribe(void 0, function (a) {
- b.log.error("SecureStop failed.", a);
- });
- });
- });
- return Promise.resolve(a);
- };
- a.prototype.hFb = function () {
- var a;
- a = this;
- this.ta.Dh(this.config.eka, function () {
- var b;
- a.log.trace("Removing cached sessions", {
- "count:": a.GF.vX.length
- });
- b = a.GF.vX.filter(function (a) {
- return !a.active;
- }).map(function (b) {
- return a.gFb(b);
- });
- m.ob.concat.apply(m.ob, [].concat(Y(b))).subscribe(function (b) {
- a.GF.jla(b);
- });
- });
- };
- a.prototype.jbb = function (a) {
- var b;
- if (a.ay() && a.jh) {
- b = new x.kS();
- b.ce = a.context.ce;
- b.Yb = a.Yb;
- b.fa = a.jh.fa;
- b.u = a.jh.u;
- this.GF.JBa(b);
- }
- };
- b = a;
- return b = c.__decorate([g.N(), c.__param(0, g.l(n.Bb)), c.__param(1, g.l(k.Qg)), c.__param(2, g.l(p.p4)), c.__param(3, g.l(r.Jl)), c.__param(4, g.l(B.jd)), c.__param(5, g.l(C.A4)), c.__param(6, g.l(t.aS)), c.__param(7, g.l(D.pt)), c.__param(8, g.l(K.YD)), c.__param(9, g.l(h.ZD))], b);
- }
- ();
- b.Hqa = d;
- }, function (d, b, a) {
- var c,
- g,
- m,
- n,
- k,
- p;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.aGa = void 0;
- d = a(1);
- c = a(117);
- g = a(1104);
- m = a(100);
- n = a(1041);
- k = a(479);
- p = a(1034);
- b.aGa = new d.Ec(function (a) {
- a(c.q4).to(g.Hqa).aa();
- a(m.pt).to(n.Tta).aa();
- a(k.A4).to(p.cra);
- });
- }, function (d, b, a) {
- var c,
- g,
- m,
- n,
- k,
- p;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.x3 = void 0;
- c = a(0);
- g = a(1);
- m = a(40);
- n = a(28);
- k = a(3);
- p = a(41);
- d = function () {
- var b;
- function a(a, b) {
- return m.fe.call(this, a, void 0 === b ? "EmeConfigImpl" : b) || this;
- }
- da(a, m.fe);
- pa.Object.defineProperties(a.prototype, {
- sKa: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return !1;
- }
- },
- Bi: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return !1;
- }
- },
- ry: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return k.ph(5);
- }
- },
- eka: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return k.ph(10);
- }
- },
- Iga: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return k.Jb(2E3);
- }
- },
- Rla: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return k.Jb(1E3);
- }
- },
- Yxb: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return k.Jb(2500);
- }
- },
- hN: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return "unsentDrmData";
- }
- },
- vN: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return !1;
- }
- },
- op: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return !0;
- }
- },
- lCa: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return k.ph(30);
- }
- },
- mCa: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return k.ph(30);
- }
- },
- pCa: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return k.ph(30);
- }
- },
- nCa: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return k.ph(30);
- }
- },
- Caa: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return k.ph(30);
- }
- },
- qQ: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return "";
- }
- },
- wOa: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return !1;
- }
- }
- });
- b = a;
- c.__decorate([p.config(p.Kd, "initializeKeySystemAtStartup")], b.prototype, "sKa", null);
- c.__decorate([p.config(p.Kd, "secureStopEnabled")], b.prototype, "Bi", null);
- c.__decorate([p.config(p.fh, "licenseRenewalRequestDelay")], b.prototype, "ry", null);
- c.__decorate([p.config(p.fh, "persistedReleaseDelay")], b.prototype, "eka", null);
- c.__decorate([p.config(p.fh, "secureStopKeyMessageTimeoutMilliseconds")], b.prototype, "Iga", null);
- c.__decorate([p.config(p.fh, "secureStopKeyAddedTimeoutMilliseconds")], b.prototype, "Rla", null);
- c.__decorate([p.config(p.fh, "secureStopPersistedKeyMessageTimeoutMilliseconds")], b.prototype, "Yxb", null);
- c.__decorate([p.config(p.string, "drmPersistKey")], b.prototype, "hN", null);
- c.__decorate([p.config(p.Kd, "forceLimitedDurationLicense")], b.prototype, "vN", null);
- c.__decorate([p.config(p.Kd, "prepareCadmium")], b.prototype, "op", null);
- c.__decorate([p.config(p.fh, "apiCloseTimeout")], b.prototype, "lCa", null);
- c.__decorate([p.config(p.fh, "apiCreateMediaKeysTimeout")], b.prototype, "mCa", null);
- c.__decorate([p.config(p.fh, "apiSetServerCertificateTimeout")], b.prototype, "pCa", null);
- c.__decorate([p.config(p.fh, "apiGenerateRequestTimeout")], b.prototype, "nCa", null);
- c.__decorate([p.config(p.fh, "apiUpdateTimeout")], b.prototype, "Caa", null);
- c.__decorate([p.config(p.string, "serverCertificate")], b.prototype, "qQ", null);
- c.__decorate([p.config(p.Kd, "outputRestrictedIsFatal")], b.prototype, "wOa", null);
- return b = c.__decorate([g.N(), c.__param(0, g.l(n.Li)), c.__param(1, g.l(n.Az)), c.__param(1, g.optional())], b);
- }
- ();
- b.x3 = d;
- }, function (d, b, a) {
- var c,
- g,
- m,
- n;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.ara = void 0;
- c = a(0);
- g = a(1);
- m = a(28);
- n = a(1106);
- d = function () {
- var b;
- function a(a, b) {
- return n.x3.call(this, a, void 0 === b ? "EmeConfigImpl" : b) || this;
- }
- da(a, n.x3);
- b = a;
- return b = c.__decorate([g.N(), c.__param(0, g.l(m.Li)), c.__param(1, g.l(m.Az)), c.__param(1, g.optional())], b);
- }
- ();
- b.ara = d;
- }, function (d, b, a) {
- var c,
- g,
- m,
- n,
- k,
- p,
- h,
- f;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.yra = void 0;
- c = a(0);
- g = a(39);
- m = a(1);
- n = a(3);
- k = a(40);
- p = a(116);
- h = a(41);
- f = a(28);
- d = function () {
- var b;
- function a(a, b, c, d) {
- a = k.fe.call(this, a, void 0 === d ? "FtlProbeConfigImpl" : d) || this;
- a.eg = b;
- a.Ga = c;
- return a;
- }
- da(a, k.fe);
- pa.Object.defineProperties(a.prototype, {
- enabled: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return !0;
- }
- },
- endpoint: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return "" + this.Gea + (-1 === this.Gea.indexOf("?") ? "?" : "&") + "monotonic=" + this.Ga.bNa + "&device=web";
- }
- },
- KSa: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return n.wd;
- }
- },
- wea: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return "";
- }
- },
- Gea: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.eg.endpoint + "/ftl/probe" + (this.wea ? "?force=" + this.wea : "");
- }
- }
- });
- b = a;
- c.__decorate([h.config(h.Kd, "ftlEnabled")], b.prototype, "enabled", null);
- c.__decorate([h.config(h.fh, "ftlStartDelay")], b.prototype, "KSa", null);
- c.__decorate([h.config(h.string, "ftlEndpointForceParam")], b.prototype, "wea", null);
- c.__decorate([h.config(h.url, "ftlEndpoint")], b.prototype, "Gea", null);
- return b = c.__decorate([m.N(), c.__param(0, m.l(f.Li)), c.__param(1, m.l(p.oz)), c.__param(2, m.l(g.Ii)), c.__param(3, m.l(f.Az)), c.__param(3, m.optional())], b);
- }
- ();
- b.yra = d;
- }, function (d, b, a) {
- var c,
- g,
- m,
- n,
- k;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.oua = void 0;
- c = a(0);
- g = a(1);
- m = a(41);
- n = a(40);
- k = a(28);
- d = function () {
- var b;
- function a(a, b) {
- return n.fe.call(this, a, void 0 === b ? "NetworkMonitorConfigImpl" : b) || this;
- }
- da(a, n.fe);
- pa.Object.defineProperties(a.prototype, {
- RUa: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return !0;
- }
- }
- });
- b = a;
- c.__decorate([m.config(m.Kd, "useNetworkMonitor")], b.prototype, "RUa", null);
- return b = c.__decorate([g.N(), c.__param(0, g.l(k.Li)), c.__param(1, g.l(k.Az)), c.__param(1, g.optional())], b);
- }
- ();
- b.oua = d;
- }, function (d, b) {
- function a(a) {
- this.value = a;
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.E6 = void 0;
- a.empty = function () {
- return a.of(void 0);
- };
- a.of = function (b) {
- return new a(b);
- };
- a.prototype.sOa = function (a) {
- return void 0 === this.value ? a instanceof Function ? a() : a : this.value;
- };
- a.prototype.map = function (b) {
- return void 0 === this.value ? a.empty() : a.of(b(this.value));
- };
- b.E6 = a;
- }, function (d, b, a) {
- var c,
- g,
- m,
- n,
- k,
- p,
- h,
- f,
- r;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Dra = b.oG = void 0;
- c = a(0);
- g = a(3);
- m = a(1);
- n = a(41);
- k = a(40);
- p = a(30);
- h = a(28);
- f = a(140);
- r = {
- test: "Test",
- stg: "Staging",
- "int": "Int",
- prod: "Prod"
- };
- b.oG = function (a, b) {
- return a.iQa(r[b] || b, p.ht);
- };
- d = function () {
- var d;
- function a(a, b, c) {
- a = k.fe.call(this, a, void 0 === c ? "GeneralConfigImpl" : c) || this;
- a.hm = b;
- return a;
- }
- da(a, k.fe);
- pa.Object.defineProperties(a.prototype, {
- oG: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return p.ht.W1a;
- }
- },
- Sma: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return g.ph(8);
- }
- },
- gy: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return "";
- }
- },
- HF: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return "";
- }
- },
- qD: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return "";
- }
- },
- wTa: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return !1;
- }
- },
- dW: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return !0;
- }
- },
- cO: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.hm.cO;
- }
- },
- ejb: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return !1;
- }
- },
- Wg: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return {};
- }
- },
- hRa: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return !1;
- }
- },
- rha: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return !1;
- }
- },
- Z2: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return !1;
- }
- },
- Tq: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return !1;
- }
- },
- kN: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return !1;
- }
- },
- Zy: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return {
- __default_rule_key__: ["idb", "mem"]
- };
- }
- },
- Tr: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return 0 <= [p.ht.Ixa, p.ht.Isa].indexOf(this.oG);
- }
- }
- });
- d = a;
- c.__decorate([n.config(b.oG, "environment")], d.prototype, "oG", null);
- c.__decorate([n.config(n.fh, "storageTimeout")], d.prototype, "Sma", null);
- c.__decorate([n.config(n.string, "groupName")], d.prototype, "gy", null);
- c.__decorate([n.config(n.string, "canaryGroupName")], d.prototype, "HF", null);
- c.__decorate([n.config(n.string, "uiGroupName")], d.prototype, "qD", null);
- c.__decorate([n.config(n.Kd, "testIndexDBForCorruptedDatabase")], d.prototype, "wTa", null);
- c.__decorate([n.config(n.Kd, "applyIndexedDbOpenWorkaround")], d.prototype, "dW", null);
- c.__decorate([n.config(n.Kd, "ignoreIdbOpenError")], d.prototype, "cO", null);
- c.__decorate([n.config(n.Kd, "executeStorageMigration")], d.prototype, "ejb", null);
- c.__decorate([n.config(n.object(), "browserInfo")], d.prototype, "Wg", null);
- c.__decorate([n.config(n.Kd, "retryAllMslRequestsOnError")], d.prototype, "hRa", null);
- c.__decorate([n.config(n.Kd, "isTestAccount")], d.prototype, "rha", null);
- c.__decorate([n.config(n.Kd, "vuiCommandLogging")], d.prototype, "Z2", null);
- c.__decorate([n.config(n.Kd, "useRangeHeader")], d.prototype, "Tq", null);
- c.__decorate([n.config(n.Kd, "enableMilestoneEventList")], d.prototype, "kN", null);
- c.__decorate([n.config(n.object, "storageRules")], d.prototype, "Zy", null);
- return d = c.__decorate([m.N(), c.__param(0, m.l(h.Li)), c.__param(1, m.l(f.iE)), c.__param(2, m.l(h.Az)), c.__param(2, m.optional())], d);
- }
- ();
- b.Dra = d;
- }, function (d, b, a) {
- var c,
- g,
- m,
- n,
- k,
- p,
- h;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Gsa = b.mya = b.Qpa = void 0;
- c = a(0);
- g = a(1);
- m = a(86);
- n = a(8);
- k = a(136);
- p = a(499);
- h = a(28);
- d = function () {
- function a(a, b, c) {
- this.Yu = a;
- this.iP = b;
- this.Z0 = c;
- }
- return a = c.__decorate([g.N(), c.__param(0, g.l(h.TJ)), c.__param(1, g.l(k.ST)), c.__param(2, g.l(p.DT))], a);
- }
- ();
- b.Qpa = d;
- d = function () {
- function a(a, b, c, d, f) {
- this.debug = a;
- this.Yu = b;
- this.iP = c;
- this.Hf = d;
- this.Z0 = f;
- }
- return a = c.__decorate([g.N(), c.__param(0, g.l(m.$q)), c.__param(1, g.l(h.TJ)), c.__param(2, g.l(k.ST)), c.__param(3, g.l(n.Bb)), c.__param(4, g.l(p.DT))], a);
- }
- ();
- b.mya = d;
- d = function () {
- var b;
- function a() {
- this.Au = {};
- this.iRa = 0;
- }
- a.prototype.Aub = function (a) {
- this.Au = Object.assign({}, this.Au, a);
- this.iRa++;
- };
- pa.Object.defineProperties(a.prototype, {
- data: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.Au;
- }
- },
- v1: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.iRa;
- }
- }
- });
- b = a;
- return b = c.__decorate([g.N()], b);
- }
- ();
- b.Gsa = d;
- }, function (d, b, a) {
- var c,
- g,
- m,
- n,
- k,
- p,
- h,
- f,
- r,
- x,
- B;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.config = void 0;
- d = a(1);
- c = a(14);
- g = a(1112);
- m = a(28);
- n = a(30);
- k = a(1111);
- p = a(498);
- h = a(1109);
- f = a(177);
- r = a(1108);
- x = a(53);
- B = a(1107);
- b.config = new d.Ec(function (a) {
- a(c.jd).tf(function () {
- return function () {
- return t._cad_global.config;
- };
- });
- a(m.eS).to(g.Qpa).aa();
- a(m.Li).to(g.mya).aa();
- a(m.TJ).to(g.Gsa).aa();
- a(n.Yj).to(k.Dra).aa();
- a(p.x6).to(h.oua).aa();
- a(f.L4).to(r.yra).aa();
- a(x.Jl).to(B.ara).aa();
- });
- }, function (d, b, a) {
- var c,
- g,
- m,
- n,
- k,
- p,
- h,
- f,
- r,
- t;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Apa = void 0;
- c = a(0);
- g = a(1);
- m = a(117);
- n = a(42);
- k = a(14);
- p = a(8);
- h = a(137);
- f = a(100);
- r = a(87);
- t = a(138);
- d = function () {
- var b;
- function a(a, b, c, d, f, g) {
- this.qB = a;
- this.qc = b;
- this.config = c;
- this.NO = f;
- this.vl = g;
- this.log = d.yb("CannedChallengeProviderImpl");
- }
- a.prototype.XIa = function () {
- var a;
- a = this;
- return Promise.all([this.qB(), this.vmb()]).then(function (b) {
- var c;
- c = S(b);
- b = c.next().value;
- c = c.next().value;
- c = {
- type: r.lj.uw,
- CZ: [c],
- context: {
- ce: a.config().ce
- }
- };
- return b.Ikb(c, a.NO());
- }).then(function (b) {
- var c;
- c = b.Sha.data.map(function (b) {
- return a.qc.encode(b);
- });
- a.log.trace("Challenge generated", c);
- return {
- rb: b,
- HDa: c && c[0]
- };
- });
- };
- a.prototype.vmb = function () {
- return this.vl.kq().then(function (a) {
- switch (a) {
- case t.Vm.yB:
- return "c2tkOi8vbmV0ZmxpeC9BQUFBQkFBQUFBQUV6SWZ5aFdkc0dObEdGaGllK1VhUXNYZVNQczJ1eDQ2Nm9JMVZGN2RqTVRPZXJOST0=";
- default:
- return "AAAANHBzc2gAAAAA7e+LqXnWSs6jyCfc1R0h7QAAABQIARIQAAAAAAPSZ0kAAAAAAAAAAA==";
- }
- }).then(this.qc.decode);
- };
- b = a;
- return b = c.__decorate([g.N(), c.__param(0, g.l(m.AJ)), c.__param(1, g.l(n.Gi)), c.__param(2, g.l(k.jd)), c.__param(3, g.l(p.Bb)), c.__param(4, g.l(h.YD)), c.__param(5, g.l(f.pt))], b);
- }
- ();
- b.Apa = d;
- }, function (d, b) {
- function a() {}
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.Uta = void 0;
- a.prototype.FJa = function () {
- return void 0 !== this.pf;
- };
- a.prototype.VC = function (a) {
- this.pf = a;
- };
- a.prototype.gBb = function () {
- this.FJa() && (this.pf = void 0);
- };
- b.Uta = a;
- }, function (d, b, a) {
- var c,
- g,
- m,
- n,
- k;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.RPa = void 0;
- c = a(2);
- g = a(88);
- m = a(117);
- n = a(263);
- b.RPa = function (a) {
- n.iG.parent = a.lb;
- return function () {
- k || (k = new Promise(function (a, b) {
- try {
- a(n.iG.get(m.q4));
- } catch (u) {
- b(new g.Pf(c.J.g_a, c.I.z_a, void 0, "Unable to extract the DRM services from the dependency injector", u));
- }
- }));
- return k;
- };
- };
- }, function (d, b, a) {
- var m,
- n,
- k,
- p,
- h,
- f,
- r,
- t,
- x;
- function c(a) {
- a = JSON.parse(a);
- a = {
- xid: a.xid,
- movieId: a.movieId,
- keySessionIds: a.keySessionIds,
- licenseContextId: a.licenseContextId
- };
- if (!a.licenseContextId || !a.xid || !a.movieId)
- throw new f.Dc(p.J.RD, p.I.iw);
- return {
- version: 1,
- drmData: [a]
- };
- }
- function g(a, b) {
- if (a.eu(b.drmData))
- return {
- version: 2,
- drmData: b.drmData.map(function (a) {
- var b;
- b = a.keySessionIds;
- return new x.kS({
- keySystemId: a.keySystemId,
- keySessionData: (b && 0 < b.length ? b : [void 0]).map(function (b) {
- return {
- id: b,
- licenseContextId: a.licenseContextId,
- licenseId: void 0
- };
- }),
- xid: a.xid,
- movieId: a.movieId
- }).Us();
- })
- };
- throw new f.Dc(p.J.RD, p.I.iw);
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.ypa = void 0;
- m = a(0);
- n = a(1);
- k = a(53);
- p = a(2);
- h = a(21);
- f = a(47);
- r = a(500);
- t = a(71);
- x = a(262);
- d = function () {
- var b;
- function a(a, b, d) {
- var h;
- h = this;
- this.is = a;
- this.Tj = b;
- this.config = d;
- this.Us = function () {
- return {
- version: h.version,
- drmData: h.vX.map(function (a) {
- return a.Us();
- })
- };
- };
- this.Fea = function (a) {
- var b;
- h.is.Xl(a) && (a = c(a));
- 1 === a.version && (a = g(h.is, a));
- b = {
- version: 2,
- data: []
- };
- if (2 === a.version) {
- b.version = a.version;
- try {
- b.data = a.drmData.map(function (a) {
- return new x.kS(a);
- });
- } catch (z) {
- throw new f.Dc(p.J.RD, p.I.iw, void 0, void 0, void 0, "The format of the DRM data is inconsistent with what is expected.", z);
- }
- } else {
- if (!a.version || !h.is.dg(a.version))
- throw new f.Dc(p.J.RD, p.I.iw, void 0, void 0, void 0, "The format of the DRM data is inconsistent with what is expected.");
- if (1 !== a.version)
- throw new f.Dc(p.J.RD, p.I.npa, void 0, void 0, void 0, "Version number is not supported. Version: " + h.getVersion);
- }
- return b;
- };
- this.yp = new r.s5(2, this.config.hN, this.is.Xl(this.config.hN), this.Tj, this.Us);
- }
- a.prototype.hQa = function () {
- return this.aFb();
- };
- a.prototype.JBa = function (a) {
- return this.yp.add(a);
- };
- a.prototype.jla = function (a) {
- return this.yp.remove(a, function (a, b) {
- return a.fa === b.fa;
- });
- };
- a.prototype.toString = function () {
- return JSON.stringify(this.Us(), null, " ");
- };
- a.prototype.aFb = function () {
- var a;
- a = this;
- this.lQa || (this.lQa = new Promise(function (b, c) {
- a.yp.load(a.Fea).then(function () {
- b();
- })["catch"](function (a) {
- a.ha && a.cause ? c(new f.Dc(p.J.RD, a.ha, void 0, void 0, void 0, "Unable to load persisted playdata.", void 0, a)) : c(a);
- });
- }));
- return this.lQa;
- };
- pa.Object.defineProperties(a.prototype, {
- version: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.yp.version;
- }
- },
- vX: {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return this.yp.Lr;
- }
- }
- });
- b = a;
- return b = m.__decorate([n.N(), m.__param(0, n.l(h.ee)), m.__param(1, n.l(t.Wq)), m.__param(2, n.l(k.Jl))], b);
- }
- ();
- b.ypa = d;
- }, function (d, b, a) {
- var g;
- function c(a, b, c, d) {
- this.log = a;
- this.IB = b;
- this.F1 = c;
- this.context = d;
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.zya = void 0;
- g = a(2).J;
- c.prototype.Fg = function (a) {
- var b;
- b = this;
- (this.context.Tc || this.context.bh) && this.log.trace("Requesting license", {
- drmType: a.Kn
- });
- return this.IB(a)["catch"](function (a) {
- b.log.error("Unable to get the Playready license", a);
- if (b.context.yWb)
- throw a;
- throw {
- V: !1,
- code: g.tw,
- Hb: a.Hb,
- qd: a.qd,
- im: a.im,
- Nn: a.message || a.Nn,
- pN: a.data,
- message: "Unable to send the Playready license request. " + (a.message || a.Nn)
- };
- });
- };
- c.prototype.stop = function (a) {
- var b;
- b = this;
- this.log.trace("Requesting stop data");
- return this.F1(a)["catch"](function (a) {
- b.log.error("Unable to release the PlayReady license and get the secure stop data ", {
- code: a.code,
- subCode: a.Hb,
- extCode: a.qd,
- edgeCode: a.im,
- message: a.message || a.Nn
- });
- throw {
- V: !1,
- code: g.Dwa,
- Hb: a.Hb,
- qd: a.qd,
- im: a.im,
- Nn: a.message || a.Nn,
- message: "Unable to release the PlayReady license and get the secure stop data. " + (a.message || a.Nn)
- };
- });
- };
- b.zya = c;
- t._cad_global.WindowsDrmRequests = c;
- }, function (d, b, a) {
- var c,
- g,
- m,
- n,
- k,
- p,
- h,
- f,
- r,
- x,
- B;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.E8 = void 0;
- c = a(2);
- g = a(269);
- m = a(21);
- n = a(264);
- k = a(25);
- p = a(89);
- h = a(42);
- f = a(24);
- r = a(3);
- x = a(31);
- B = a(49);
- (function () {
- var N;
- function a(b, c, d, f) {
- var h;
- h = this;
- this.log = b;
- this.jKa = c;
- this.Fy = d || Y.bind(this);
- this.context = f;
- this.bka = this.GDa = this.rd = this.keySessionId = this.xe = this.pf = void 0;
- this.Uc = {};
- this.dOa = z.bind(this);
- this.bka = void 0;
- this.oVa = new Promise(function (a, b) {
- h.SBb = a;
- h.WAb = b;
- });
- this.oVa["catch"](function (a) {
- h.log.error("wait for license rejected", a);
- });
- g.Pb.get(x.FD).AY().then(function (a) {
- (h.context.Tc || h.context.bh) && h.log.debug("DRIVERINFO: ", a);
- })["catch"](function (a) {
- h.log.error("DRIVERINFO", a);
- });
- this.Av = function (a, b) {
- h.WAb(a, b);
- h.context.onerror(a, b);
- };
- this.Lwb = function () {
- h.SBb();
- };
- if (!(this instanceof a))
- throw new TypeError("EmeSession constructor not called correctly.");
- }
- function d(a) {
- this.ontimeout = a;
- this.Rm = void 0;
- }
- function l() {
- return g.Pb.get(f.Oe).$b().ca(r.ia);
- }
- function q() {
- return g.Pb.get(h.Gi);
- }
- function u() {
- return g.Pb.get(p.$s);
- }
- function A() {
- return g.Pb.get(k.af);
- }
- function G(a) {
- var b;
- b = g.Pb.get(n.rK);
- return new Uint8Array(b.Xma('' + a + ' Q0hBSQAAAAEAAAUMAAAAAAAAAAJDRVJUAAAAAQAAAfwAAAFsAAEAAQAAAFhr+y4Ydms5rTmj6bCCteW2AAAAAAAAAAAAAAAJzZtwNxHterM9CAoJYOM3CF9Tj0d9KND413a+UtNzRTb/////AAAAAAAAAAAAAAAAAAAAAAABAAoAAABU8vU0ozkqocBJMVIX2K4dugAAADZodHRwOi8vbnJkcC5uY2NwLm5ldGZsaXguY29tL3Jtc2RrL3JpZ2h0c21hbmFnZXIuYXNteAAAAAABAAUAAAAMAAAAAAABAAYAAABcAAAAAQABAgAAAAAAglDQ2GehCoNSsOaaB8zstNK0cCnf1+9gX8wM+2xwLlqJ1kyokCjt3F8P2NqXHM4mEU/G1T0HBBSI3j6XpKqzgAAAAAEAAAACAAAABwAAAEgAAAAAAAAACE5ldGZsaXgAAAAAH1BsYXlSZWFkeSBNZXRlcmluZyBDZXJ0aWZpY2F0ZQAAAAAABjIwMjQ4AAAAAAEACAAAAJAAAQBAU73up7T8eJYVK4UHuKYgMQIRbo0yf27Y5EPZRPmzkx1ZDMor7Prs77CAOU9S9k0RxpxPnqUwAKRPIVCe0aX2+AAAAgBb65FSx1oKG2r8AxQjio+UrYGLhvA7KMlxJBbPXosAV/CJufnIdUMSA0DhxD2W3eRLh2vHukIL4VH9guUcEBXsQ0VSVAAAAAEAAAL8AAACbAABAAEAAABYyTlnSi+jZfRvYL0rk9sVfwAAAAAAAAAAAAAABFNh3USSkWi88BlSM6PZ2gMuceJFJ9hzz0WzuCiwF9qv/////wAAAAAAAAAAAAAAAAAAAAAAAQAFAAAADAAAAAAAAQAGAAAAYAAAAAEAAQIAAAAAAFvrkVLHWgobavwDFCOKj5StgYuG8DsoyXEkFs9eiwBX8Im5+ch1QxIDQOHEPZbd5EuHa8e6QgvhUf2C5RwQFewAAAACAAAAAQAAAAwAAAAHAAABmAAAAAAAAACATWljcm9zb2Z0AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAUGxheVJlYWR5IFNMMCBNZXRlcmluZyBSb290IENBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAMS4wLjAuMQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAIAAAAkAABAECsAomwQgNY0bm6U6Au9JRvwjbNnRzmVkZi+kg7npnRQ2T+4LgyrePBdBRQ3qb/jxXkn++4sOFa7vjRpFBzV0MMAAACAIZNYc/yJW5CLFaLPCgAHPs+FSdlhYS6BSG3mxgo2TbeHYJqj8Pm5/p6kNXKKUbx9kou+59dz/5+Q060QpP6xas= '));
- }
- function L(a) {
- var b,
- c;
- b = g.Pb.get(n.rK);
- c = "";
- a.forEach(function (a) {
- c += "" + a + " ";
- });
- a = '' + c + " ";
- b = new Uint8Array(b.Xma(a));
- (this.context.Tc || this.context.bh) && this.log.trace("LICENSE: proactive license cdm data", {
- xml: a,
- b64: q().encode(b)
- });
- return b;
- }
- function z(a) {
- var b;
- b = a.target.error ? a.target.error.msExtendedCode : void 0;
- this.log.error("Received " + a.type + " event", {
- sessionId: this.xe.sessionId,
- systemCode: b
- });
- if (this.context.onerror)
- this.context.onerror(N.ug.Dw, N.cn.ft, b);
- this.xe = void 0;
- }
- function T(a, b, c, d) {
- var f,
- h;
- f = g.Pb.get(m.ee);
- h = a.code || a.number;
- h = f.dg(h) ? u().Ou(h, 4) : void 0;
- return {
- V: !1,
- code: b,
- Hb: c,
- message: d,
- qd: h,
- cause: {
- fb: A().pd(a)
- }
- };
- }
- function U(a, b, c) {
- var d,
- f,
- g,
- h;
- for (var d = 2; d < arguments.length; ++d);
- d = "";
- g = a.length;
- for (f = 0; f < g; f++)
- h = a[f], 0 < h && (d += String.fromCharCode(h));
- g = "\\s*(.*)\\s*";
- for (f = arguments.length - 1; 0 < f; f--) {
- h = arguments[f];
- if (0 > d.search(h))
- return;
- h = "(?:[^:].*:|)" + h;
- g = "[\\s\\S]*<" + h + "[^>]*>" + g + "" + h + ">[\\s\\S]*";
- }
- if (d = d.match(new RegExp(g)))
- return d[1];
- }
- function S(a, b, c, d) {
- var f,
- g;
- f = a.target && a.target.sessionId;
- g = q().decode(U(a.message, "PlayReadyKeyMessage", "Challenge"));
- c.state = 12;
- c.log.trace("LICENSE: Received " + a.type + " event", {
- keySystem: a.target && a.target.keySystem,
- sessionId: f
- });
- (c.context.Tc || c.context.bh || c.context.kz) && c.log.debug("LICENSE: License challenge", q().encode(g));
- c.keySessionId = f;
- a = {
- Uh: b,
- SO: "license-request",
- Kn: /clearkey/i.test(c.rd) ? "clearkey" : "playready",
- Ph: [{
- data: g,
- sessionId: f
- }
- ]
- };
- 12 === c.state && (c.Fy("lc"), g = {
- data: g,
- Kn: /clearkey/i.test(c.rd) ? "clearkey" : "playready"
- }, c.context.J0 ? c.context.k0(g) : c.bka = g);
- c.context.hj.Fg(a).then(function (a) {
- if (12 === c.state && (c.Fy("lr"), c.Lwb(), !c.context.J0))
- c.aPa = a.zk[0].data, c.state = 13, d({
- V: !0,
- state: c.state
- });
- else if (c.xe)
- return V(c, a.zk[0].data, c.xe).then(function () {
- c.state = 30;
- d({
- V: !0,
- state: c.state
- });
- });
- })["catch"](function (a) {
- d(A().kC(a, {
- state: c.state
- }));
- });
- }
- function W(a, b) {
- var c;
- if (a) {
- c = this;
- A().Ju(a, function (a, b) {
- "error" === b && c.log.error("SECURE_STOP: The server returned an error for the session", {
- id: a
- });
- });
- a = a[b];
- if ("error" !== a)
- return a;
- }
- }
- function V(a, b, c) {
- a.FKa() && a.log.trace("LICENSE: Got the response, calling update", {
- sessionId: c.sessionId,
- license: q().encode(b)
- });
- return new Promise(function (d, f) {
- try {
- a.xe.update(b);
- d();
- a.FKa() && a.log.trace("LICENSE: Update succeeded", {
- sessionId: c.sessionId
- });
- } catch (ia) {
- f({
- V: !1,
- code: N.ug.M6,
- message: "Unable to update the EME.",
- fb: A().pd(ia)
- });
- }
- });
- }
- function Y(a) {
- this.context.Ga && (this.Uc[a] = this.context.Ga.getTime(), this.log.trace("Milestone: " + a + ", " + this.Uc[a]));
- }
- N = {};
- N.ug = c.J;
- N.cn = c.I;
- d.prototype.start = function (a, b, c) {
- var d;
- d = this;
- d.stop();
- d.Rm = setTimeout(function () {
- d.ontimeout({
- V: !1,
- code: N.ug.P7,
- Hb: b,
- message: "Eme " + c + " event expired with an expiry of " + a + "ms"
- });
- }, a);
- };
- d.prototype.stop = function () {
- this.Rm && (clearTimeout(this.Rm), this.Rm = void 0);
- };
- a.prototype.by = function () {
- return this.rd;
- };
- a.prototype.NHb = function (a, b) {
- a.log && (this.log = a.log);
- a.Fy && (this.Fy = a.Fy);
- b.hj && (this.context.hj = b.hj);
- b.onerror && (this.context.onerror = b.onerror);
- };
- a.prototype.create = function (a) {
- var b;
- b = this;
- return (a ? Promise.resolve(a) : g.Pb.get(x.FD).by()).then(function (a) {
- b.Fy("lg");
- b.log.trace("Creating the media keys", {
- keySystem: a
- });
- b.rd = a;
- try {
- if (!t.MSMediaKeys.isTypeSupported(a, "video/mp4"))
- return Promise.reject({
- code: N.ug.eK
- });
- } catch (Q) {
- return Promise.reject({
- code: N.ug.eK
- });
- }
- if (b.context.X0)
- a = Promise.reject({
- V: !1,
- code: N.ug.mS,
- message: "Promise based EME is currently not supported for Internet Explorer"
- });
- else
- a: {
- try {
- b.pf = new t.MSMediaKeys(a);
- } catch (Q) {
- a = Promise.reject({
- V: !1,
- code: N.ug.Lua,
- message: "create MSMediaKeys(" + a + ") failed",
- fb: A().pd(Q)
- });
- break a;
- }
- try {
- b.context.Wa && b.context.Wa.msSetMediaKeys(b.pf);
- } catch (Q) {
- a = Promise.reject({
- V: !1,
- code: N.ug.fK,
- message: "set MSMediaKeys failed",
- fb: A().pd(Q)
- });
- break a;
- }
- a = Promise.resolve({
- V: !0,
- pf: b.pf
- });
- }
- return a;
- });
- };
- a.prototype.close = function () {
- this.xe && (this.log.info("Closing the session", {
- sessionId: this.xe.sessionId
- }), this.xe.removeEventListener("mskeyerror", this.dOa), this.xe.close(), this.xe = void 0);
- };
- a.prototype.Fg = function (a, b, c) {
- var d;
- if (1 < b.length)
- return Promise.reject({
- code: N.ug.B1a
- });
- if (0 === b.length)
- return Promise.reject({
- code: N.ug.z1a
- });
- b = b[0];
- d = this;
- d.context.Tc && d.log.trace("LICENSE: Setting license");
- return d.context.X0 ? Promise.reject({
- V: !1,
- code: N.ug.WYa,
- message: "Promise based EME is currently not supported for Internet Explorer"
- }) : function () {
- return new Promise(function (f, g) {
- var h,
- k,
- l,
- m,
- n,
- p,
- r;
- try {
- n = function (a) {
- d.xe && (d.xe.removeEventListener("mskeymessage", h), d.xe.removeEventListener("mskeyadded", k), d.xe.removeEventListener("mskeyerror", l), d.xe.addEventListener("mskeyerror", d.dOa));
- a.state = 11;
- a.V ? f(a) : (d.close(), g(a));
- };
- p = function (a) {
- var b,
- c;
- b = [];
- c = Array.prototype.map.call(a, function (a) {
- return a ? String.fromCharCode(a) : "";
- }).join("").match(/(.+?)<\/KID>/);
- if (c)
- b.push(c[1]);
- else {
- a = U(a, "KIDS");
- for (var c = /VALUE="(.+?)">/g, d = c.exec(a); null != d; )
- b.push(d[1]), d = c.exec(a);
- }
- return b;
- };
- h = function (b) {
- m && clearTimeout(m);
- S(b, a, d, n);
- };
- k = function (a) {
- (d.context.Tc || d.context.bh) && d.log.trace("LICENSE: Received " + a.type + " event", {
- keySystem: a.target.keySystem,
- sessionId: a.target.sessionId
- });
- n({
- V: !0
- });
- };
- l = function (a) {
- var b,
- c;
- m && clearTimeout(m);
- a.target && a.target.error && (b = a.target.error.systemCode, c = a.target.error.code);
- b = {
- code: N.ug.Dw,
- Hb: N.cn.ft,
- qd: b ? u().Ou(b, 4) : c,
- Jx: A().pd(a),
- cause: a.target && a.target.error,
- YFb: b,
- bjb: c
- };
- d.log.error("LICENSE: Received " + a.type + " event", {
- sessionId: d.xe && d.xe.sessionId,
- keySystem: a.target.keySystem,
- systemCode: b.YFb,
- code: b.bjb
- });
- d.Fy("le");
- d.Av && d.Av(N.ug.Dw, b);
- n({
- V: !1,
- code: N.ug.Dw,
- Hb: N.cn.ft,
- qd: b.qd,
- message: "Received a key error.",
- fb: b.Jx,
- cause: b.cause
- });
- };
- d.log.trace("LICENSE: Executing prefix based EME");
- (d.context.Tc || d.context.bh) && d.log.debug("LICENSE: PSSH", q().encode(b));
- d.gv || (d.gv = p(b));
- if (c) {
- r = L.call(d, d.gv);
- d.xe = d.pf.createSession("video/mp4", new Uint8Array(0), r);
- } else
- d.xe = d.pf.createSession("video/mp4", b, null);
- (d.context.Tc || d.context.bh) && d.log.debug("LICENSE: Created the media keys sessions", {
- keySystem: d.xe.keySystem,
- sessionId: d.xe.sessionId
- });
- d.xe.addEventListener("mskeymessage", h);
- d.xe.addEventListener("mskeyadded", k);
- d.xe.addEventListener("mskeyerror", l);
- d.context.psb && (m = setTimeout(function () {
- n({
- V: !1,
- code: N.ug.L6,
- Hb: N.cn.oS
- });
- }, d.context.psb));
- } catch (Ha) {
- g({
- code: N.ug.L6,
- Hb: N.cn.Of
- });
- }
- });
- }
- ();
- };
- a.prototype.fI = function () {
- (this.context.Tc || this.context.bh) && this.log.trace("LICENSE: Renewing license");
- return this.Fg(B.Fd.S_a.Ol, [new Uint8Array(0)], !0);
- };
- a.prototype.cW = function (a) {
- this.aPa || this.log.error("pending license must exist at this point");
- this.context.J0 = !0;
- try {
- a && (this.context.Wa = a, this.context.Wa.msSetMediaKeys(this.pf));
- } catch (ma) {
- return Promise.reject({
- V: !1,
- code: N.ug.fK,
- message: "setMediaKeys failed",
- fb: A().pd(ma)
- });
- }
- return V(this, this.aPa, this.xe);
- };
- a.prototype.hjb = function (a) {
- var b,
- c,
- f;
- b = this;
- c = 1;
- if (b.context.$G && !b.xe)
- return b.log.info("The key session is undefined, assuming its closed and bailing"), Promise.resolve({
- V: !0
- });
- f = {
- fa: a.fa,
- Yb: a.Yb,
- gQ: {}
- };
- return new Promise(function (a, h) {
- var p,
- r,
- z,
- x,
- A,
- D,
- C,
- B,
- H;
- function k(d) {
- b.Fh && (b.Fh.removeEventListener("mskeymessage", p), b.Fh.removeEventListener("mskeyadded", r), b.Fh.removeEventListener("mskeyerror", z), b.Fh.close());
- d.state = c;
- B.stop();
- b.close();
- d.V ? a(d) : h(d);
- }
- function n() {
- b.context.hj.stop.call(b.context.hj, f).then(function (a) {
- if (b.context.$G) {
- if (2 == c)
- if (c = 3, D = l(), (a = a.response.data) && (b.context.Tc || b.context.bh) && b.log.debug("SECURE_STOP: Received stop data from the server", {
- sessionId: b.keySessionId,
- stopData: JSON.stringify(a)
- }), (b.context.Tc || b.context.bh) && b.log.debug("SECURE_STOP: Calling update", {
- sessionId: b.keySessionId,
- stopData: JSON.stringify(a)
- }), a = W.call(b, a, b.keySessionId))
- try {
- B.start(b.context.nI.BW, N.cn.w4, "non-persisted mskeyadded");
- b.Fh.update(q().decode(a));
- } catch (kb) {
- b.log.error("SECURE_STOP: Unable to update the EME.", kb);
- k(T(kb, N.ug.ID, N.cn.Of, "Unable to update the EME with secure stop data."));
- }
- else
- k({
- V: !0,
- state: 4
- });
- } else
- k({
- V: !0,
- RO: void 0,
- Wy: void 0,
- FM: void 0
- });
- })["catch"](function (a) {
- b.log.error("SECURE_STOP: Unable to get the stop data", {
- sessionId: b.keySessionId,
- code: a.code,
- subCode: a.Hb,
- extCode: a.qd,
- edgeCode: a.im,
- message: a.Nn
- });
- k(a);
- });
- }
- x = l();
- B = new d(function (a) {
- c = 5;
- k(a);
- });
- p = function (a) {
- var d;
- if (a.message && 1 == c) {
- c = 2;
- B.stop();
- d = new Uint8Array(a.message);
- (b.context.Tc || b.context.bh) && b.log.debug("SECURE_STOP: Received " + a.type + " event", {
- sessionId: a.target.sessionId,
- keySystem: a.target.keySystem,
- messageType: a.messageType,
- message: q().encode(d)
- });
- A = l();
- d = U(a.message, "PlayReadyKeyMessage", "Challenge");
- f.gQ[a.target.sessionId] = d;
- n();
- }
- };
- r = function (a) {
- (b.context.Tc || b.context.bh) && b.log.info("SECURE_STOP: Received " + a.type + " event", {
- sessionId: a.target.sessionId
- });
- C = l();
- b.log.info("Successfully released license", {
- sessionId: a.target.sessionId
- });
- k({
- V: !0,
- state: 4,
- RO: A - x,
- Wy: D - A,
- FM: C - D
- });
- };
- z = function (a) {
- var d,
- f;
- d = g.Pb.get(m.ee);
- f = a.target && a.target.error && a.target.error.systemCode;
- d = d.dg(f) ? u().Ou(f, 4) : void 0;
- b.log.error("SECURE_STOP: Received " + a.type + " event", {
- sessionId: b.keySessionId,
- extErrorCode: d,
- systemCode: f
- });
- 1 == c && n();
- k({
- V: !1,
- code: N.ug.O7,
- qd: d,
- rTa: f,
- state: c
- });
- };
- if (b.context.$G && b.xe)
- try {
- b.close();
- b.log.trace("SECURE_STOP: Calling createSession", {
- sessionId: b.keySessionId
- });
- B.start(b.context.nI.M_, N.cn.oS, "non-persisted mskeymessage");
- b.pf = new t.MSMediaKeys(b.rd);
- H = G(b.keySessionId);
- b.Fh = b.pf.createSession("video/mp4", new Uint8Array(0), H);
- b.Fh.addEventListener("mskeymessage", p, !1);
- b.Fh.addEventListener("mskeyadded", r, !1);
- b.Fh.addEventListener("mskeyerror", z, !1);
- } catch (Ba) {
- k(T(Ba, N.ug.Ewa, N.cn.Of, "Failed to createSession."));
- }
- else
- c = 2, n();
- });
- };
- a.prototype.Mgb = function (a) {
- var b,
- c,
- f,
- h;
- b = this;
- c = a.Yb[0].id;
- f = 1;
- h = {
- fa: a.fa,
- Yb: a.Yb,
- gQ: {}
- };
- return new Promise(function (a, k) {
- var r,
- z,
- x,
- A,
- D,
- C,
- B,
- H,
- K,
- J;
- function n(c) {
- A().then(function () {
- b.Fh && (b.Fh.removeEventListener("mskeymessage", r), b.Fh.removeEventListener("mskeyadded", z), b.Fh.removeEventListener("mskeyerror", x));
- c.state = f;
- K.stop();
- b.close();
- c.V ? a(c) : k(c);
- });
- }
- function p() {
- A = function () {
- return Promise.resolve();
- };
- b.context.hj.stop.call(b.context.hj, h).then(function (a) {
- if (2 == f)
- if (f = 3, B = l(), (a = a.response.data) && (b.context.Tc || b.context.bh) && b.log.debug("SECURE_STOP: Received stop data from the server", {
- sessionId: c,
- stopData: JSON.stringify(a)
- }), (b.context.Tc || b.context.bh) && b.log.debug("SECURE_STOP: Calling update", {
- sessionId: c,
- stopData: JSON.stringify(a)
- }), (a = W.call(b, a, c)) && b.Fh)
- try {
- K.start(b.context.nI.BW, N.cn.w4, "persisted mskeyadded");
- b.Fh.update(q().decode(a));
- } catch (aa) {
- b.log.error("SECURE_STOP: Unable to update the EME.", aa);
- n(T(aa, N.ug.ID, N.cn.Of, "Unable to update the EME with secure stop data."));
- }
- else
- b.log.trace("done with set stop data", {
- sessionStopData: !!a,
- stopKeySession: !!b.Fh
- }), n({
- V: !0,
- state: 4
- });
- })["catch"](function (a) {
- b.log.error("SECURE_STOP: Unable to get the stop data", {
- sessionId: c,
- code: a.code,
- subCode: a.Hb,
- extCode: a.qd,
- edgeCode: a.im,
- message: a.Nn
- });
- n(a);
- });
- }
- D = l();
- K = new d(function (a) {
- f = 5;
- n(a);
- });
- r = function (a) {
- var d;
- if (a.message && 1 == f) {
- f = 2;
- K.stop();
- d = new Uint8Array(a.message);
- (b.context.Tc || b.context.bh) && b.log.debug("SECURE_STOP: Received " + a.type + " event", {
- sessionId: a.target.sessionId,
- keySystem: a.target.keySystem,
- messageType: a.messageType,
- message: q().encode(d)
- });
- C = l();
- a = U(a.message, "PlayReadyKeyMessage", "Challenge");
- h.gQ[c] = a;
- p();
- }
- };
- z = function (a) {
- (b.context.Tc || b.context.bh) && b.log.info("SECURE_STOP: Received " + a.type + " event", {
- sessionId: a.target.sessionId
- });
- H = l();
- n({
- V: !0,
- state: 4,
- RO: C - D,
- Wy: B - C,
- FM: H - B
- });
- };
- x = function (a) {
- var c,
- d;
- c = g.Pb.get(m.ee);
- d = a.target && a.target.error && a.target.error.systemCode;
- c = c.dg(d) ? u().Ou(d, 4) : void 0;
- b.log.error("SECURE_STOP: Received " + a.type + " event", {
- sessionId: b.Fh.sessionId,
- extErrorCode: c,
- systemCode: d
- });
- n({
- V: !1,
- code: N.ug.O7,
- qd: c,
- rTa: d,
- state: f
- });
- };
- A = function () {
- return b.context.hj.stop.call(b.context.hj, h).then(function () {
- b.log.info("SECURE_STOP: Successfully sent playdata without SecureStop");
- })["catch"](function (a) {
- b.log.error("SECURE_STOP: Failed to send playdata without SecureStop", {
- sessionId: b.xe.sessionId,
- code: a.code,
- subCode: a.Hb,
- extCode: a.qd,
- edgeCode: a.im,
- message: a.Nn
- });
- });
- };
- if (b.context.$G && c)
- try {
- b.log.trace("SECURE_STOP: Calling createSession", {
- sessionId: c
- });
- K.start(b.context.nI.M_, N.cn.oS, "non-persisted mskeymessage");
- b.pf = new t.MSMediaKeys(b.rd);
- J = G("Kg==");
- b.Fh = b.pf.createSession("video/mp4", new Uint8Array(0), J);
- b.Fh.addEventListener("mskeymessage", r, !1);
- b.Fh.addEventListener("mskeyadded", z, !1);
- b.Fh.addEventListener("mskeyerror", x, !1);
- } catch (Pb) {
- n(T(Pb, N.ug.Ewa, N.cn.Of, "Failed to createSession."));
- }
- else
- f = 2, p();
- });
- };
- a.prototype.FKa = function () {
- return this.context.Tc || this.context.bh;
- };
- b.E8 = a;
- t._cad_global.WindowsEmeSession = b.E8;
- }
- ());
- }, function (d, b, a) {
- var c,
- g,
- m,
- n,
- k;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.i7 = void 0;
- c = a(3);
- g = a(48);
- m = a(266);
- n = a(61);
- k = {
- MONOSPACED_SERIF: "font-family:Courier New,Arial,Helvetica;font-weight:bolder",
- MONOSPACED_SANS_SERIF: "font-family:Consolas,Lucida Console,Menlo,Monaco,Arial,Helvetica;font-weight:bolder",
- PROPORTIONAL_SERIF: "font-family:Georgia,Times New Roman,Arial,Helvetica;font-weight:bolder",
- PROPORTIONAL_SANS_SERIF: "font-family:Arial,Helvetica;font-weight:bolder",
- CASUAL: "font-family:Gabriola,Segoe Print,Comic Sans MS,Chalkboard,Arial,Helvetica;font-weight:bolder",
- CURSIVE: "font-family:Lucida Handwriting,Brush Script MT,Segoe Script,Arial,Helvetica;font-weight:bolder",
- SMALL_CAPITALS: "font-family:Copperplate Gothic,Copperplate Gothic Bold,Copperplate,Arial,Helvetica;font-variant:small-caps;font-weight:bolder"
- };
- b.i7 = function () {
- this.PCa = this.SA = m.wz.B5;
- this.gma = !0;
- this.dM = [];
- this.xR = [];
- this.w0 = this.vda = !1;
- this.Zv = [n.Wk.Y3, n.Wk.t2a, n.Wk.aE];
- this.ce = void 0;
- this.Ida = !0;
- this.HX = !1;
- this.eW = g.ba(288E4);
- this.gW = g.ba(335544320);
- this.C_ = c.Jb(15E3);
- this.Ztb = g.ba(6291456);
- this.hH = 1E3;
- this.rba = !0;
- this.pna = k;
- this.RI = g.ba(0);
- this.z2 = c.Jb(0);
- this.cO = !0;
- };
- }, function (d, b, a) {
- var c,
- g,
- m,
- n,
- k,
- p,
- h,
- f,
- r,
- x,
- B,
- C,
- H,
- D,
- K,
- J,
- R,
- P,
- L,
- z;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.platform = b.eZa = b.dZa = b.cZa = void 0;
- c = a(0);
- g = a(1);
- m = a(29);
- n = a(33);
- k = a(3);
- p = a(140);
- h = a(1120);
- f = a(266);
- r = a(61);
- x = a(503);
- B = a(502);
- C = a(31);
- H = a(139);
- D = a(265);
- K = a(1119);
- J = a(1118);
- R = function () {
- function a(a) {
- var b,
- c;
- b = a.userAgent;
- a = /Edge/.test(b);
- c = / Edg\//.test(b);
- b = /Macintosh/.test(b);
- this.version = "6.0023.976.031";
- this.fNa = !0;
- this.xB = c ? "D" : "H";
- this.Rx = c ? b ? "NFCDIE-04-" : "NFCDIE-03-" : a ? "NFCDIE-02-" : "NFCDIE-01-";
- this.lY = !0;
- this.Xca = a || c ? "edge-cadmium" : "ie-cadmium";
- this.fhb = "browser";
- this.otb = "";
- this.Yca = "cadmium";
- this.BIb = !0;
- this.$Ab = this.b$a = !1;
- }
- return a = c.__decorate([g.N(), c.__param(0, g.l(m.Cw))], a);
- }
- ();
- b.cZa = R;
- P = function () {
- var b;
- function a() {
- var a;
- a = h.i7.call(this) || this;
- a.SA = t.crypto ? f.wz.B5 : f.wz.O_a;
- a.PCa = a.SA;
- if (useddplus){
- a.dM = [r.tg.rJ, r.tg.sJ];
- } else {
- a.dM = [r.tg.JJ, r.tg.KJ, r.tg.rJ, r.tg.sJ];
- }
- a.xR = [].concat(r.W.Gra, r.W.fWa, r.W.bya, r.W.Z2a, r.W.Hra, r.W.mqa);
- a.ce = void 0;
- a.C_ = k.Jb(31E3);
- a.cO = !1;
- return a;
- }
- da(a, h.i7);
- b = a;
- return b = c.__decorate([g.N()], b);
- }
- ();
- b.dZa = P;
- L = function () {
- var b;
- function a(a) {
- this.Wg = a;
- }
- a.prototype.apply = function () {
- var a,
- b,
- c,
- d,
- f;
- a = {
- nudgeSourceBuffer: !0,
- audioCapabilityDetectorType: C.Yq.qt,
- videoCapabilityDetectorType: C.oj.qt,
- microsoftHwdrmRequiresHevc: !0,
- microsoftScreenSizeFilterEnabled: !0,
- addFailedLogBlobsToQueue: !1,
- secureStopEnabled: !0,
- secureStopFromPersistedKeySession: !0,
- secureStopPersistedKeyMessageTimeoutMilliseconds: 25E3,
- editAudioFragments: !0
- };
- b = this.Wg.Pqb;
- c = this.Wg.$qb;
- d = {
- prepareCadmium: !0,
- enableLdlPrefetch: !0,
- doNotPerformLdlOnPlaybackStart: !0,
- licenseRenewalRequestDelay: 5E3,
- enableGetHeadersAndMediaPrefetch: !0,
- enableUsingHeaderCount: !0,
- defaultHeaderCacheSize: 15
- };
- f = {
- audioCapabilityDetectorType: C.Yq.kw,
- videoCapabilityDetectorType: C.oj.O3,
- microsoftScreenSizeFilterEnabled: !1,
- secureStopEnabled: !1,
- secureStopFromPersistedKeySession: !1,
- keySystemList: [H.nb.n3a],
- useTypescriptEme: !0,
- licenseRenewalRequestDelay: 0,
- audioProfiles: [r.tg.JJ, r.tg.KJ],
- videoProfiles: [r.W.DJ, r.W.ND, r.W.wS, r.W.xS],
- enableAVCHigh: !0,
- enableCDMAttestedDescriptors: !0,
- droppedFrameRateFilterEnabled: !0
- };
- this.Wg.Oqb && (14 <= this.Wg.nW && (a = Object.assign(Object.assign(Object.assign({}, a), d), {
- microsoftEnableDeviceInfo: !0,
- enableHWDRM: !0,
- enableHEVC: !0,
- useHevcCodecForDolbyVision: !0
- })), 15 <= this.Wg.nW && (a = Object.assign(Object.assign({}, a), {
- enablePRK: !0,
- enableHDR: !0,
- usePlayReadyHeaderObject: !0
- })), 16 <= this.Wg.nW && (a = Object.assign(Object.assign({}, a), {
- microsoftHwdrmRequiresHevc: !1
- })), 17 <= this.Wg.nW && (a = Object.assign(Object.assign({}, a), {
- enableDDPlusAtmos: !0
- })));
- b && (a = Object.assign(Object.assign({}, a), d), c || (a = Object.assign(Object.assign({}, a), {
- webkitDecodedFrameCountIncorrectlyReported: !0
- })), b = t.MSMediaKeys && t.MSMediaKeys.isTypeSupported(H.nb.Np, "video/mp4"), a = c || !b ? Object.assign(Object.assign({}, a), f) : Object.assign(Object.assign({}, a), {
- microsoftEnableDeviceInfo: !1,
- enableHWDRM: !0,
- enableHEVC: !0,
- enablePRK: !0,
- enableHDR: !0,
- usePlayReadyHeaderObject: !0,
- microsoftHwdrmRequiresHevc: !1,
- enableDDPlusAtmos: !0
- }));
- return a;
- };
- b = a;
- return b = c.__decorate([g.N(), c.__param(0, g.l(B.G3))], b);
- }
- ();
- b.eZa = L;
- z = function () {
- function a(a) {
- this.Vqa = a.Rx;
- }
- return a = c.__decorate([g.N(), c.__param(0, g.l(n.dk))], a);
- }
- ();
- b.platform = new g.Ec(function (a) {
- a(n.dk).to(R);
- a(p.iE).to(P);
- a(x.j7).to(L);
- a(n.Mp).to(z).aa();
- a(D.vT).tf(function () {
- return function () {
- return {
- rb: function (a, b, c, d) {
- return new K.E8(a, b, c, d);
- },
- request: J.zya
- };
- };
- });
- });
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.iNa = function (a) {
- return function (b) {
- return function () {
- for (var c = [], d = 0; d < arguments.length; d++)
- c[d] = arguments[d];
- return c.forEach(function (c) {
- return a.bind(c).EGb(b);
- });
- };
- };
- };
- }, function (d, b, a) {
- var c,
- g,
- m;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- c = a(55);
- g = a(37);
- m = a(65);
- b.uPa = function () {
- return function (a, b) {
- b = new m.Metadata(g.gK, b);
- if (Reflect.kga(g.gK, a.constructor))
- throw Error(c.x0a);
- Reflect.Rca(g.gK, b, a.constructor);
- };
- };
- }, function (d, b, a) {
- var c,
- g,
- m;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- c = a(37);
- g = a(65);
- m = a(91);
- b.ZQ = function (a) {
- return function (b, d, h) {
- var f;
- f = new g.Metadata(c.aT, a);
- m.hD(b, d, h, f);
- };
- };
- }, function (d, b, a) {
- var c,
- g,
- m;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- c = a(37);
- g = a(65);
- m = a(91);
- b.nC = function (a) {
- return function (b, d, h) {
- var f;
- f = new g.Metadata(c.Nz, a);
- "number" === typeof h ? m.hD(b, d, h, f) : m.WQ(b, d, f);
- };
- };
- }, function (d, b, a) {
- var c,
- g,
- m;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- c = a(37);
- g = a(65);
- m = a(91);
- b.ei = function () {
- return function (a, b, d) {
- var h;
- h = new g.Metadata(c.xK, !0);
- m.hD(a, b, d, h);
- };
- };
- }, function (d, b, a) {
- var c,
- g,
- m;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- c = a(37);
- g = a(65);
- m = a(91);
- b.optional = function () {
- return function (a, b, d) {
- var h;
- h = new g.Metadata(c.xua, !0);
- "number" === typeof d ? m.hD(a, b, d, h) : m.WQ(a, b, h);
- };
- };
- }, function (d, b, a) {
- var c,
- g,
- m;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- c = a(37);
- g = a(65);
- m = a(91);
- b.lNa = function (a) {
- return function (b, d, h) {
- var f;
- f = new g.Metadata(c.Bw, a);
- "number" === typeof h ? m.hD(b, d, h, f) : m.WQ(b, d, f);
- };
- };
- }, function (d, b, a) {
- var c,
- g;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- c = a(65);
- g = a(91);
- b.sTa = function (a, b) {
- return function (d, l, h) {
- var f;
- f = new c.Metadata(a, b);
- "number" === typeof h ? g.hD(d, l, h, f) : g.WQ(d, l, f);
- };
- };
- }, function (d, b, a) {
- var c,
- g;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- c = a(55);
- g = a(37);
- b.N = function () {
- return function (a) {
- var b;
- if (Reflect.kga(g.F6, a))
- throw Error(c.BYa);
- b = Reflect.getMetadata(g.YXa, a) || [];
- Reflect.Rca(g.F6, b, a);
- return a;
- };
- };
- }, function (d, b, a) {
- var c;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- c = a(101);
- b.Ec = function () {
- return function (a) {
- this.id = c.id();
- this.gla = a;
- };
- }
- ();
- b.Roa = function () {
- return function (a) {
- this.id = c.id();
- this.gla = a;
- };
- }
- ();
- }, function (d, b, a) {
- var c;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- c = a(55);
- d = function () {
- function a() {
- this.tj = new Map();
- }
- a.prototype.add = function (a, b) {
- var d;
- if (null === a || void 0 === a)
- throw Error(c.ZJ);
- if (null === b || void 0 === b)
- throw Error(c.ZJ);
- d = this.tj.get(a);
- void 0 !== d ? (d.push(b), this.tj.set(a, d)) : this.tj.set(a, [b]);
- };
- a.prototype.get = function (a) {
- if (null === a || void 0 === a)
- throw Error(c.ZJ);
- a = this.tj.get(a);
- if (void 0 !== a)
- return a;
- throw Error(c.Lsa);
- };
- a.prototype.remove = function (a) {
- if (null === a || void 0 === a)
- throw Error(c.ZJ);
- if (!this.tj["delete"](a))
- throw Error(c.Lsa);
- };
- a.prototype.DJa = function (a) {
- if (null === a || void 0 === a)
- throw Error(c.ZJ);
- return this.tj.has(a);
- };
- a.prototype.clone = function () {
- var b;
- b = new a();
- this.tj.forEach(function (a, c) {
- a.forEach(function (a) {
- return b.add(c, a.clone());
- });
- });
- return b;
- };
- a.prototype.XGb = function (a) {
- this.tj.forEach(function (b, c) {
- a(c, b);
- });
- };
- return a;
- }
- ();
- b.X_a = d;
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- d = function () {
- function a() {}
- a.of = function (b, d) {
- var c;
- c = new a();
- c.kM = b;
- c.Mub = d;
- return c;
- };
- return a;
- }
- ();
- b.WKb = d;
- }, function (d, b, a) {
- var c,
- g;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- c = a(79);
- g = a(506);
- d = function () {
- function a(a) {
- this.Ob = a;
- }
- a.prototype.aa = function () {
- this.Ob.scope = c.Hp.Z7;
- return new g.xz(this.Ob);
- };
- a.prototype.Jga = function () {
- this.Ob.scope = c.Hp.XT;
- return new g.xz(this.Ob);
- };
- return a;
- }
- ();
- b.KWa = d;
- }, function (d, b, a) {
- var c,
- g,
- m;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- c = a(1134);
- g = a(268);
- m = a(267);
- d = function () {
- function a(a) {
- this.Ob = a;
- this.KK = new m.A3(this.Ob);
- this.S8 = new g.PR(this.Ob);
- this.Pya = new c.KWa(a);
- }
- a.prototype.aa = function () {
- return this.Pya.aa();
- };
- a.prototype.Jga = function () {
- return this.Pya.Jga();
- };
- a.prototype.when = function (a) {
- return this.KK.when(a);
- };
- a.prototype.AR = function () {
- return this.KK.AR();
- };
- a.prototype.ys = function (a) {
- return this.S8.ys(a);
- };
- return a;
- }
- ();
- b.apa = d;
- }, function (d, b, a) {
- var c,
- g,
- m,
- n;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- c = a(55);
- g = a(79);
- m = a(1135);
- n = a(506);
- d = function () {
- function a(a) {
- this.Ob = a;
- }
- a.prototype.to = function (a) {
- this.Ob.type = g.Hi.v5;
- this.Ob.yk = a;
- return new m.apa(this.Ob);
- };
- a.prototype.QTa = function () {
- if ("function" !== typeof this.Ob.rf)
- throw Error("" + c.C_a);
- this.to(this.Ob.rf);
- };
- a.prototype.bi = function (a) {
- this.Ob.type = g.Hi.Rpa;
- this.Ob.cache = a;
- this.Ob.hG = null;
- this.Ob.yk = null;
- new n.xz(this.Ob);
- };
- a.prototype.iz = function (a) {
- this.Ob.type = g.Hi.Nqa;
- this.Ob.cache = null;
- this.Ob.hG = a;
- this.Ob.yk = null;
- return new m.apa(this.Ob);
- };
- a.prototype.DGb = function (a) {
- this.Ob.type = g.Hi.Spa;
- this.Ob.yk = a;
- new n.xz(this.Ob);
- };
- a.prototype.tf = function (a) {
- this.Ob.type = g.Hi.J4;
- this.Ob.tG = a;
- new n.xz(this.Ob);
- };
- a.prototype.BGb = function (a) {
- this.Ob.type = g.Hi.J4;
- this.Ob.tG = function (b) {
- return function () {
- return b.lb.get(a);
- };
- };
- new n.xz(this.Ob);
- };
- a.prototype.cR = function (a) {
- this.Ob.type = g.Hi.kwa;
- this.Ob.Es = a;
- new n.xz(this.Ob);
- };
- a.prototype.EGb = function (a) {
- this.iz(function (b) {
- return b.lb.get(a);
- });
- };
- return a;
- }
- ();
- b.LWa = d;
- }, function (d, b, a) {
- var m,
- n,
- k;
- function c(a, b, c) {
- var d;
- b = b.filter(function (a) {
- return null !== a.target && a.target.type === n.zt.Lpa;
- });
- d = b.map(c);
- b.forEach(function (b, c) {
- b = b.target.name.value();
- a[b] = d[c];
- });
- return a;
- }
- function g(a, b) {
- var c;
- if (Reflect.kpb(k.gK, a)) {
- c = Reflect.getMetadata(k.gK, a);
- try {
- b[c.value]();
- } catch (u) {
- throw Error(m.L1a(a.name, u.message));
- }
- }
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- m = a(55);
- n = a(79);
- k = a(37);
- b.RBb = function (a, b, d) {
- var f;
- f = null;
- 0 < b.length ? (f = b.filter(function (a) {
- return null !== a.target && a.target.type === n.zt.Tpa;
- }).map(d), f = new(a.bind.apply(a, [void 0].concat(f)))(), f = c(f, b, d)) : f = new a();
- g(a, f);
- return f;
- };
- }, function (d, b, a) {
- var m,
- n,
- k,
- p,
- h;
- function c(a) {
- return function (b) {
- var d,
- f,
- k,
- l,
- q;
- d = b.kM;
- f = b.Cba;
- k = b.target && b.target.isArray();
- l = !b.Fv || !b.Fv.target || !b.target || !b.Fv.target.Rtb(b.target.rf);
- if (k && l)
- return f.map(function (b) {
- return c(a)(b);
- });
- k = null;
- if (!b.target.OKa() || 0 !== d.length) {
- q = d[0];
- d = q.scope === n.Hp.Z7;
- l = q.scope === n.Hp.Request;
- if (d && q.faa)
- return q.cache;
- if (l && null !== a && a.has(q.id))
- return a.get(q.id);
- if (q.type === n.Hi.Rpa)
- k = q.cache;
- else if (q.type === n.Hi.Function)
- k = q.cache;
- else if (q.type === n.Hi.Spa)
- k = q.yk;
- else if (q.type === n.Hi.Nqa && null !== q.hG)
- k = g("toDynamicValue", q.rf, function () {
- return q.hG(b.LH);
- });
- else if (q.type === n.Hi.J4 && null !== q.tG)
- k = g("toFactory", q.rf, function () {
- return q.tG(b.LH);
- });
- else if (q.type === n.Hi.kwa && null !== q.Es)
- k = g("toProvider", q.rf, function () {
- return q.Es(b.LH);
- });
- else if (q.type === n.Hi.v5 && null !== q.yk)
- k = h.RBb(q.yk, f, c(a));
- else
- throw f = p.JG(b.rf), Error(m.x_a + " " + f);
- "function" === typeof q.ys && (k = q.ys(b.LH, k));
- d && (q.cache = k, q.faa = !0);
- l && null !== a && !a.has(q.id) && a.set(q.id, k);
- return k;
- }
- };
- }
- function g(a, b, c) {
- try {
- return c();
- } catch (G) {
- if (k.XKa(G))
- throw Error(m.iXa(a, b.toString()));
- throw G;
- }
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- m = a(55);
- n = a(79);
- k = a(509);
- p = a(141);
- h = a(1137);
- b.resolve = function (a) {
- return c(a.QH.Ela.GBb)(a.QH.Ela);
- };
- }, function (d, b, a) {
- var c;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- c = a(101);
- d = function () {
- function a(a, b, d, g, h) {
- this.id = c.id();
- this.rf = a;
- this.LH = b;
- this.Fv = d;
- this.target = h;
- this.Cba = [];
- this.kM = Array.isArray(g) ? g : [g];
- this.GBb = null === d ? new Map() : null;
- }
- a.prototype.HBa = function (b, c, d) {
- b = new a(b, this.LH, this, c, d);
- this.Cba.push(b);
- return b;
- };
- return a;
- }
- ();
- b.Request = d;
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- d = function () {
- function a(a) {
- this.$y = a;
- }
- a.prototype.startsWith = function (a) {
- return 0 === this.$y.indexOf(a);
- };
- a.prototype.endsWith = function (a) {
- var b;
- b = a.split("").reverse().join("");
- a = this.$y.split("").reverse().join("");
- return this.startsWith.call({
- $y: a
- }, b);
- };
- a.prototype.contains = function (a) {
- return -1 !== this.$y.indexOf(a);
- };
- a.prototype.equals = function (a) {
- return this.$y === a;
- };
- a.prototype.value = function () {
- return this.$y;
- };
- return a;
- }
- ();
- b.X1a = d;
- }, function (d, b, a) {
- var k,
- p,
- h,
- f,
- r,
- t;
- function c(a, b, c, d) {
- var f,
- l,
- u,
- x,
- A,
- D,
- C,
- B,
- G,
- H;
- f = a.MHa(c);
- l = f.kEa;
- if (void 0 === l)
- throw Error(p.j0a + " " + b + ".");
- for (var f = f.yIb, m = Object.keys(f), q = 0 === c.length && 0 < m.length ? m.length : c.length, m = [], r = 0; r < q; r++) {
- x = r;
- A = d;
- D = b;
- C = l;
- u = f[x.toString()] || [];
- B = n(u);
- G = !0 !== B.ei;
- C = C[x];
- H = B.l || B.nC;
- C = H ? H : C;
- C instanceof k.G5 && (C = C.tHb());
- if (G) {
- G = C === Function;
- G = C === Object || G || void 0 === C;
- if (!A && G)
- throw Error(p.k0a + " argument " + x + " in class " + D + ".");
- x = new t.UT(h.zt.Tpa, B.ZQ, C);
- x.Dd = u;
- u = x;
- } else
- u = null;
- null !== u && m.push(u);
- }
- a = g(a, c);
- return m.concat(a);
- }
- function g(a, b) {
- var l,
- m,
- p;
- for (var c = a.vnb(b), d = [], f = 0, k = Object.keys(c); f < k.length; f++) {
- l = k[f];
- m = c[l];
- p = n(c[l]);
- l = new t.UT(h.zt.Lpa, p.ZQ || l, p.l || p.nC);
- l.Dd = m;
- d.push(l);
- }
- b = Object.getPrototypeOf(b.prototype).constructor;
- b !== Object && (a = g(a, b), d = d.concat(a));
- return d;
- }
- function m(a, b) {
- var d,
- g;
- b = Object.getPrototypeOf(b.prototype).constructor;
- if (b !== Object) {
- d = r.getFunctionName(b);
- d = c(a, d, b, !0);
- g = d.map(function (a) {
- return a.Dd.filter(function (a) {
- return a.key === f.xK;
- });
- });
- g = [].concat.apply([], g).length;
- d = d.length - g;
- return 0 < d ? d : m(a, b);
- }
- return 0;
- }
- function n(a) {
- var b;
- b = {};
- a.forEach(function (a) {
- b[a.key.toString()] = a.value;
- });
- return {
- l: b[f.RJ],
- nC: b[f.Nz],
- ZQ: b[f.aT],
- ei: b[f.xK]
- };
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- k = a(508);
- p = a(55);
- h = a(79);
- f = a(37);
- r = a(141);
- b.getFunctionName = r.getFunctionName;
- t = a(507);
- b.Olb = function (a, b) {
- var d;
- d = r.getFunctionName(b);
- return c(a, d, b, !1);
- };
- b.ilb = m;
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.U1a = function () {
- return function (a, b) {
- this.LH = a;
- this.Ela = b;
- };
- }
- ();
- }, function (d, b, a) {
- var c;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- c = a(101);
- d = function () {
- function a(a) {
- this.id = c.id();
- this.lb = a;
- }
- a.prototype.C9a = function (a) {
- this.QH = a;
- };
- return a;
- }
- ();
- b.Upa = d;
- }, function (d, b) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- b.z3 = {
- mNb: 2,
- qua: 0,
- X0a: 1
- };
- }, function (d, b, a) {
- var k,
- p,
- h,
- f,
- r,
- t,
- x,
- B,
- H,
- D,
- K,
- J;
- function c(a, b, c, d, f) {
- var h,
- l;
- h = n(c.lb, f.rf);
- l = [];
- h.length === k.z3.qua && c.lb.options.hM && "function" === typeof f.rf && a.MHa(f.rf).kEa && (c.lb.bind(f.rf).QTa(), h = n(c.lb, f.rf));
- l = b ? h : h.filter(function (a) {
- var b;
- b = new K.Request(a.rf, c, d, a, f);
- return a.cB(b);
- });
- g(f.rf, l, f, c.lb);
- return l;
- }
- function g(a, b, c, d) {
- switch (b.length) {
- case k.z3.qua:
- if (c.OKa())
- break;
- a = t.JG(a);
- b = p.K0a;
- b += t.tsb(a, c);
- b += t.ALa(d, a, n);
- throw Error(b);
- case k.z3.X0a:
- if (!c.isArray())
- break;
- default:
- if (!c.isArray())
- throw a = t.JG(a), b = p.IVa + " " + a, b += t.ALa(d, a, n), Error(b);
- }
- }
- function m(a, b, d, f, g, k) {
- var l;
- null === g ? (b = c(a, b, f, null, k), l = new K.Request(d, f, null, b, k), d = new H.U1a(f, l), f.C9a(d)) : (b = c(a, b, f, g, k), l = g.HBa(k.rf, b, k));
- b.forEach(function (b) {
- var c,
- d,
- g;
- c = null;
- if (k.isArray())
- c = l.HBa(b.rf, b, k);
- else {
- if (b.cache)
- return;
- c = l;
- }
- if (b.type === h.Hi.v5 && null !== b.yk) {
- d = D.Olb(a, b.yk);
- if (!f.lb.options.ZC) {
- g = D.ilb(a, b.yk);
- if (d.length < g)
- throw b = p.JVa(D.getFunctionName(b.yk)), Error(b);
- }
- d.forEach(function (b) {
- m(a, !1, b.rf, f, c, b);
- });
- }
- });
- }
- function n(a, b) {
- var c,
- d;
- c = [];
- d = a.xE;
- d.DJa(b) ? c = d.get(b) : null !== a.parent && (c = n(a.parent, b));
- return c;
- }
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- k = a(1144);
- p = a(55);
- h = a(79);
- f = a(37);
- r = a(509);
- t = a(141);
- x = a(1143);
- B = a(65);
- H = a(1142);
- D = a(1141);
- K = a(1139);
- J = a(507);
- b.Qea = function (a) {
- return a.xE;
- };
- b.QH = function (a, b, c, d, g, h, k, l) {
- void 0 === l && (l = !1);
- b = new x.Upa(b);
- c = new B.Metadata(c ? f.Nz : f.RJ, g);
- d = new J.UT(d, "", g, c);
- void 0 !== h && (h = new B.Metadata(h, k), d.Dd.push(h));
- try {
- return m(a, l, g, b, null, d),
- b;
- } catch (V) {
- throw r.XKa(V) && b.QH && t.kcb(b.QH.Ela),
- V;
- }
- };
- b.PRb = function (a, b, c, d) {
- c = new J.UT(h.zt.y8, "", b, new B.Metadata(c, d));
- a = new x.Upa(a);
- return new K.Request(b, a, null, [], c);
- };
- }, function (d, b, a) {
- var c,
- g;
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- c = a(79);
- g = a(101);
- d = function () {
- function a(a, b) {
- this.id = g.id();
- this.faa = !1;
- this.rf = a;
- this.scope = b;
- this.type = c.Hi.M_a;
- this.cB = function () {
- return !0;
- };
- this.hG = this.ys = this.Es = this.tG = this.cache = this.yk = null;
- }
- a.prototype.clone = function () {
- var b;
- b = new a(this.rf, this.scope);
- b.faa = !1;
- b.yk = this.yk;
- b.hG = this.hG;
- b.scope = this.scope;
- b.type = this.type;
- b.tG = this.tG;
- b.Es = this.Es;
- b.cB = this.cB;
- b.ys = this.ys;
- b.cache = this.cache;
- return b;
- };
- return a;
- }
- ();
- b.JWa = d;
- }, function (d, b, a) {
- var c,
- l,
- m,
- n,
- k,
- p,
- h,
- f,
- t,
- x,
- B,
- C;
- c = this && this.__awaiter || function (a, b, c, d) {
- return new(c || (c = Promise))(function (f, g) {
- function h(a) {
- try {
- l(d.next(a));
- } catch (ea) {
- g(ea);
- }
- }
- function k(a) {
- try {
- l(d["throw"](a));
- } catch (ea) {
- g(ea);
- }
- }
- function l(a) {
- a.done ? f(a.value) : new c(function (b) {
- b(a.value);
- }).then(h, k);
- }
- l((d = d.apply(a, b || [])).next());
- });
- };
- l = this && this.__generator || function (a, b) {
- var f,
- h,
- k,
- l,
- m;
- function c(a) {
- return function (b) {
- return d([a, b]);
- };
- }
- function d(c) {
- if (h)
- throw new TypeError("Generator is already executing.");
- for (; f; )
- try {
- if (h = 1, k && (l = k[c[0] & 2 ? "return" : c[0] ? "throw" : "next"]) && !(l = l.call(k, c[1])).done)
- return l;
- if (k = 0, l)
- c = [0, l.value];
- switch (c[0]) {
- case 0:
- case 1:
- l = c;
- break;
- case 4:
- return f.label++, {
- value: c[1],
- done: !1
- };
- case 5:
- f.label++;
- k = c[1];
- c = [0];
- continue;
- case 7:
- c = f.tC.pop();
- f.pD.pop();
- continue;
- default:
- if (!(l = f.pD, l = 0 < l.length && l[l.length - 1]) && (6 === c[0] || 2 === c[0])) {
- f = 0;
- continue;
- }
- if (3 === c[0] && (!l || c[1] > l[0] && c[1] < l[3]))
- f.label = c[1];
- else if (6 === c[0] && f.label < l[1])
- f.label = l[1], l = c;
- else if (l && f.label < l[2])
- f.label = l[2], f.tC.push(c);
- else {
- l[2] && f.tC.pop();
- f.pD.pop();
- continue;
- }
- }
- c = b.call(a, f);
- } catch (ea) {
- c = [6, ea];
- k = 0;
- }
- finally {
- h = l = 0;
- }
- if (c[0] & 5)
- throw c[1];
- return {
- value: c[0] ? c[1] : void 0,
- done: !0
- };
- }
- f = {
- label: 0,
- uI: function () {
- if (l[0] & 1)
- throw l[1];
- return l[1];
- },
- pD: [],
- tC: []
- };
- g();
- g();
- r();
- return m = {
- next: c(0),
- "throw": c(1),
- "return": c(2)
- },
- "function" === typeof Symbol && (m[Symbol.iterator] = function () {
- return this;
- }),
- m;
- };
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- m = a(1146);
- n = a(55);
- k = a(79);
- a(37);
- p = a(510);
- h = a(1145);
- f = a(1138);
- t = a(1136);
- x = a(101);
- B = a(141);
- a(1133);
- C = a(1132);
- d = function () {
- function a(a) {
- a = a || {};
- if ("object" !== typeof a)
- throw Error("" + n.wXa);
- if (void 0 === a.jB)
- a.jB = k.Hp.XT;
- else if (a.jB !== k.Hp.Z7 && a.jB !== k.Hp.XT && a.jB !== k.Hp.Request)
- throw Error("" + n.uXa);
- if (void 0 === a.hM)
- a.hM = !1;
- else if ("boolean" !== typeof a.hM)
- throw Error("" + n.tXa);
- if (void 0 === a.ZC)
- a.ZC = !1;
- else if ("boolean" !== typeof a.ZC)
- throw Error("" + n.vXa);
- this.options = {
- hM: a.hM,
- jB: a.jB,
- ZC: a.ZC
- };
- this.id = x.id();
- this.xE = new C.X_a();
- this.g8a = [];
- this.parent = this.Z9 = null;
- this.Y5a = new p.n6();
- }
- a.nUb = function (b, c) {
- var f,
- g;
- function d(a, b) {
- a.XGb(function (a, c) {
- c.forEach(function (a) {
- b.add(a.rf, a.clone());
- });
- });
- }
- f = new a();
- g = h.Qea(f);
- b = h.Qea(b);
- c = h.Qea(c);
- d(b, g);
- d(c, g);
- return f;
- };
- a.prototype.load = function () {
- var d,
- f;
- for (var a = [], b = 0; b < arguments.length; b++)
- a[b] = arguments[b];
- for (var b = this.Dza(), c = 0; c < a.length; c++) {
- d = a[c];
- f = b(d.id);
- d.gla(f.YCa, f.qUa, f.eLa, f.oQa);
- }
- };
- a.prototype.yO = function () {
- for (var a = [], b = 0; b < arguments.length; b++)
- a[b] = arguments[b];
- return c(this, void 0, void 0, function () {
- var b,
- c,
- d,
- f,
- g;
- return l(this, function (h) {
- switch (h.label) {
- case 0:
- b = this.Dza(),
- c = 0,
- d = a,
- h.label = 1;
- case 1:
- if (!(c < d.length))
- return [3, 4];
- f = d[c];
- g = b(f.id);
- return [4, f.gla(g.YCa, g.qUa, g.eLa, g.oQa)];
- case 2:
- h.uI(),
- h.label = 3;
- case 3:
- return c++,
- [3, 1];
- case 4:
- return [2];
- }
- });
- });
- };
- a.prototype.bind = function (a) {
- var b;
- b = new m.JWa(a, this.options.jB || k.Hp.XT);
- this.xE.add(a, b);
- return new t.LWa(b);
- };
- a.prototype.pAb = function (a) {
- this.pUa(a);
- return this.bind(a);
- };
- a.prototype.pUa = function (a) {
- try {
- this.xE.remove(a);
- } catch (K) {
- throw Error(n.eXa + " " + B.JG(a));
- }
- };
- a.prototype.DKa = function (a) {
- var b;
- b = this.xE.DJa(a);
- !b && this.parent && (b = this.parent.DKa(a));
- return b;
- };
- a.prototype.restore = function () {
- var a;
- a = this.g8a.pop();
- if (void 0 === a)
- throw Error(n.L0a);
- this.xE = a.kM;
- this.Z9 = a.Mub;
- };
- a.prototype.Zeb = function () {
- var b;
- b = new a(this.options);
- b.parent = this;
- return b;
- };
- a.prototype.get = function (a) {
- return this.Bza(!1, !1, k.zt.y8, a);
- };
- a.prototype.getAll = function (a) {
- return this.Bza(!0, !0, k.zt.y8, a);
- };
- a.prototype.resolve = function (a) {
- var b;
- b = this.Zeb();
- b.bind(a).QTa();
- return b.get(a);
- };
- a.prototype.Dza = function () {
- var f;
- function a(a) {
- return function (b) {
- b = f.pAb.bind(f)(b);
- b.Ob.kvb = a;
- return b;
- };
- }
- function b() {
- return function (a) {
- return f.DKa.bind(f)(a);
- };
- }
- function c() {
- return function (a) {
- f.pUa.bind(f)(a);
- };
- }
- function d(a) {
- return function (b) {
- b = f.bind.bind(f)(b);
- b.Ob.kvb = a;
- return b;
- };
- }
- f = this;
- return function (f) {
- return {
- YCa: d(f),
- eLa: b(),
- oQa: a(f),
- qUa: c()
- };
- };
- };
- a.prototype.Bza = function (a, b, c, d) {
- var f;
- f = null;
- a = {
- oab: a,
- hdb: function (a) {
- return a;
- },
- brb: b,
- key: void 0,
- rf: d,
- cGb: c,
- value: void 0
- };
- if (this.Z9) {
- if (f = this.Z9(a), void 0 === f || null === f)
- throw Error(n.A_a);
- } else
- f = this.l7a()(a);
- return f;
- };
- a.prototype.l7a = function () {
- var a;
- a = this;
- return function (b) {
- var c;
- c = h.QH(a.Y5a, a, b.brb, b.cGb, b.rf, b.key, b.value, b.oab);
- c = b.hdb(c);
- return f.resolve(c);
- };
- };
- return a;
- }
- ();
- b.fS = d;
- }, function (d, b, a) {
- var c,
- g;
- c = a(511);
- g = a(514);
- d.P = function () {
- var a;
- a = c();
- g(Object, {
- values: a
- }, {
- values: function () {
- return Object.values !== a;
- }
- });
- return a;
- };
- }, function (d, b, a) {
- var c,
- g,
- m;
- c = a(271);
- b = a(270)("%Function%");
- g = b.apply;
- m = b.call;
- d.P = function () {
- return c.apply(m, arguments);
- };
- d.P.apply = function () {
- return c.apply(g, arguments);
- };
- }, function (d, b, a) {
- var c,
- g,
- m;
- c = a(270);
- g = a(1149);
- m = g(c("String.prototype.indexOf"));
- d.P = function (a, b) {
- b = c(a, !!b);
- return "function" === typeof b && m(a, ".prototype.") ? g(b) : b;
- };
- }, function (d) {
- d.P = function () {
- var b,
- a,
- c;
- g();
- if ("function" !== typeof Symbol || "function" !== typeof Object.getOwnPropertySymbols)
- return !1;
- g();
- r();
- if ("symbol" === typeof Symbol.iterator)
- return !0;
- b = {};
- g();
- a = Symbol("test");
- c = Object(a);
- if ("string" === typeof a || "[object Symbol]" !== Object.prototype.toString.call(a) || "[object Symbol]" !== Object.prototype.toString.call(c))
- return !1;
- b[a] = 42;
- for (a in b)
- return !1;
- if ("function" === typeof Object.keys && 0 !== Object.keys(b).length || "function" === typeof Object.getOwnPropertyNames && 0 !== Object.getOwnPropertyNames(b).length)
- return !1;
- c = Object.getOwnPropertySymbols(b);
- return 1 !== c.length || c[0] !== a || !Object.prototype.propertyIsEnumerable.call(b, a) || "function" === typeof Object.getOwnPropertyDescriptor && (b = Object.getOwnPropertyDescriptor(b, a), 42 !== b.value || !0 !== b.enumerable) ? !1 : !0;
- };
- }, function (d, b, a) {
- (function (b) {
- var c,
- m;
- c = b.Symbol;
- m = a(1151);
- d.P = function () {
- if ("function" !== typeof c)
- return !1;
- g();
- if ("function" !== typeof Symbol || "symbol" !== typeof c("foo"))
- return !1;
- g();
- return "symbol" !== typeof Symbol("bar") ? !1 : m();
- };
- }
- .call(this, a(143)));
- }, function (d, b, a) {
- var c;
- c = a(270)("%TypeError%");
- d.P = function (a, b) {
- if (null == a)
- throw new c(b || "Cannot call method on " + a);
- return a;
- };
- }, function (d, b, a) {
- d.P = a(1153);
- }, function (d) {
- var b,
- a;
- b = Array.prototype.slice;
- a = Object.prototype.toString;
- d.P = function (c) {
- var d;
- d = this;
- if ("function" !== typeof d || "[object Function]" !== a.call(d))
- throw new TypeError("Function.prototype.bind called on incompatible " + d);
- for (var g = b.call(arguments, 1), m, k = Math.max(0, d.length - g.length), p = [], h = 0; h < k; h++)
- p.push("$" + h);
- m = Function("binder", "return function (" + p.join(",") + "){ return binder.apply(this,arguments); }")(function () {
- var a;
- if (this instanceof m) {
- a = d.apply(this, g.concat(b.call(arguments)));
- return Object(a) === a ? a : this;
- }
- return d.apply(c, g.concat(b.call(arguments)));
- });
- d.prototype && (k = function () {}, k.prototype = d.prototype, m.prototype = new k(), k.prototype = null);
- return m;
- };
- }, function (d, b, a) {
- b = a(271);
- d.P = b.call(Function.call, Object.prototype.hasOwnProperty);
- }, function (d, b, a) {
- var c,
- g,
- m,
- n,
- k,
- p,
- h,
- f,
- r,
- x;
- if (!Object.keys) {
- g = Object.prototype.hasOwnProperty;
- m = Object.prototype.toString;
- n = a(513);
- b = Object.prototype.propertyIsEnumerable;
- k = !b.call({
- toString: null
- }, "toString");
- p = b.call(function () {}, "prototype");
- h = "toString toLocaleString valueOf hasOwnProperty isPrototypeOf propertyIsEnumerable constructor".split(" ");
- f = function (a) {
- var b;
- b = a.constructor;
- return b && b.prototype === a;
- };
- r = {
- xJb: !0,
- yJb: !0,
- zJb: !0,
- AJb: !0,
- BJb: !0,
- CJb: !0,
- DJb: !0,
- EJb: !0,
- FJb: !0,
- GJb: !0,
- HJb: !0,
- IJb: !0,
- JJb: !0,
- KJb: !0,
- LJb: !0,
- MJb: !0,
- NJb: !0,
- OJb: !0,
- PJb: !0,
- QJb: !0,
- RJb: !0,
- SJb: !0,
- TJb: !0
- };
- x = function () {
- if ("undefined" === typeof t)
- return !1;
- for (var a in t)
- try {
- !r["$" + a] && g.call(t, a);
- } catch (C) {
- return !0;
- }
- return !1;
- }
- ();
- c = function (a) {
- var b,
- c,
- d,
- l,
- q,
- u;
- b = null !== a && "object" === typeof a;
- c = "[object Function]" === m.call(a);
- d = n(a);
- l = b && "[object String]" === m.call(a);
- q = [];
- if (!b && !c && !d)
- throw new TypeError("Object.keys called on a non-object");
- b = p && c;
- if (l && 0 < a.length && !g.call(a, 0))
- for (l = 0; l < a.length; ++l)
- q.push(String(l));
- if (d && 0 < a.length)
- for (d = 0; d < a.length; ++d)
- q.push(String(d));
- else
- for (var r in a)
- b && "prototype" === r || !g.call(a, r) || q.push(String(r));
- if (k) {
- if ("undefined" !== typeof t && x)
- try {
- u = f(a);
- } catch (ba) {
- u = !1;
- }
- else
- u = f(a);
- for (d = 0; d < h.length; ++d)
- u && "constructor" === h[d] || !g.call(a, h[d]) || q.push(h[d]);
- }
- return q;
- };
- }
- d.P = c;
- }, function (d, b, a) {
- var c,
- g,
- m,
- n,
- k;
- c = Array.prototype.slice;
- g = a(513);
- m = Object.keys;
- n = m ? function (a) {
- return m(a);
- }
- : a(1157);
- k = Object.keys;
- n.Ok = function () {
- Object.keys ? function () {
- var a;
- a = Object.keys(arguments);
- return a && a.length === arguments.length;
- }
- (1, 2) || (Object.keys = function (a) {
- return g(a) ? k(c.call(a)) : k(a);
- }) : Object.keys = n;
- return Object.keys || n;
- };
- d.P = n;
- }, function (d, b, a) {
- var c,
- g,
- m;
- b = a(514);
- c = a(512);
- g = a(511);
- a = a(1148);
- m = g();
- b(m, {
- bTb: g,
- implementation: c,
- Ok: a
- });
- d.P = m;
- }, function (d, b, a) {
- (function (a) {
- var b;
- (function (b) {
- var Y,
- V,
- ca,
- N,
- da,
- fa,
- ga,
- Q,
- la;
- function c(a, b, c) {
- var d;
- d = la.get(a);
- if (!d) {
- if (!c)
- return;
- d = new ga();
- la.set(a, d);
- }
- a = d.get(b);
- if (!a) {
- if (!c)
- return;
- a = new ga();
- d.set(b, a);
- }
- return a;
- }
- function d(a, b, c) {
- if (g(a, b, c))
- return !0;
- b = K(b);
- return null !== b ? d(a, b, c) : !1;
- }
- function g(a, b, d) {
- b = c(b, d, !1);
- return void 0 !== b && !!b.has(a);
- }
- function h(a, b, c) {
- if (g(a, b, c))
- return f(a, b, c);
- b = K(b);
- return null !== b ? h(a, b, c) : void 0;
- }
- function f(a, b, d) {
- b = c(b, d, !1);
- return void 0 === b ? void 0 : b.get(a);
- }
- function l(a, b) {
- var c,
- f;
- c = m(a, b);
- a = K(a);
- if (null === a)
- return c;
- b = l(a, b);
- if (0 >= b.length)
- return c;
- if (0 >= c.length)
- return b;
- a = new Q();
- for (var d = 0; d < c.length; d++) {
- f = c[d];
- a.add(f);
- }
- for (c = 0; c < b.length; c++)
- f = b[c], a.add(f);
- return P(a);
- }
- function m(a, b) {
- var d;
- a = c(a, b, !1);
- d = [];
- a && L(a, function (a, b) {
- return d.push(b);
- });
- return d;
- }
- function q(a) {
- return void 0 === a;
- }
- function r(a) {
- return Array.isArray ? Array.isArray(a) : a instanceof Array || "[object Array]" === Object.prototype.toString.call(a);
- }
- function x(a) {
- return "object" === typeof a ? null !== a : "function" === typeof a;
- }
- function B(a) {
- return "symbol" === typeof a ? a : String(a);
- }
- function K(a) {
- var b,
- c;
- b = Object.getPrototypeOf(a);
- if ("function" !== typeof a || a === fa || b !== fa)
- return b;
- c = a.prototype;
- c = c && Object.getPrototypeOf(c);
- if (null == c || c === Object.prototype)
- return b;
- c = c.constructor;
- return "function" !== typeof c || c === a ? b : c;
- }
- function J(a) {
- a = a.next();
- return a.done ? void 0 : a;
- }
- function L(a, b) {
- var c,
- d,
- f;
- c = a.entries;
- if ("function" === typeof c) {
- c = c.call(a);
- try {
- for (; d = J(c); ) {
- f = d.value;
- b.call(void 0, f[1], f[0], a);
- }
- }
- finally {
- d && (a = c["return"]) && a.call(c);
- }
- } else
- c = a.forEach, "function" === typeof c && c.call(a, b, void 0);
- }
- function P(a) {
- var b;
- b = [];
- L(a, function (a, c) {
- b.push(c);
- });
- return b;
- }
- function S(a, b, c) {
- var d;
- d = 0;
- return {
- next: function () {
- var f;
- if ((a || b) && d < (a || b).length) {
- f = d++;
- switch (c) {
- case "key":
- return {
- value: a[f],
- done: !1
- };
- case "value":
- return {
- value: b[f],
- done: !1
- };
- case "key+value":
- return {
- value: [a[f], b[f]],
- done: !1
- };
- }
- }
- b = a = void 0;
- return {
- value: void 0,
- done: !0
- };
- },
- "throw": function (c) {
- if (a || b)
- b = a = void 0;
- throw c;
- },
- "return": function (c) {
- if (a || b)
- b = a = void 0;
- return {
- value: c,
- done: !0
- };
- }
- };
- }
- function z() {
- var a;
- a = {};
- return function () {
- function b() {
- this.Qp = [];
- this.au = [];
- this.nU = a;
- this.mU = -2;
- }
- Object.defineProperty(b.prototype, "size", {
- get: function () {
- return this.Qp.length;
- },
- enumerable: !0,
- configurable: !0
- });
- b.prototype.has = function (a) {
- return 0 <= this.IU(a, !1);
- };
- b.prototype.get = function (a) {
- a = this.IU(a, !1);
- return 0 <= a ? this.au[a] : void 0;
- };
- b.prototype.set = function (a, b) {
- a = this.IU(a, !0);
- this.au[a] = b;
- return this;
- };
- b.prototype["delete"] = function (b) {
- var c;
- c = this.IU(b, !1);
- if (0 <= c) {
- b = this.Qp.length;
- for (c += 1; c < b; c++)
- this.Qp[c - 1] = this.Qp[c], this.au[c - 1] = this.au[c];
- this.Qp.length--;
- this.au.length--;
- this.nU = a;
- this.mU = -2;
- return !0;
- }
- return !1;
- };
- b.prototype.clear = function () {
- this.Qp.length = 0;
- this.au.length = 0;
- this.nU = a;
- this.mU = -2;
- };
- b.prototype.keys = function () {
- return S(this.Qp, void 0, "key");
- };
- b.prototype.values = function () {
- return S(void 0, this.au, "value");
- };
- b.prototype.entries = function () {
- return S(this.Qp, this.au, "key+value");
- };
- b.prototype.IU = function (a, b) {
- var c;
- if (this.nU === a)
- return this.mU;
- c = this.Qp.indexOf(a);
- 0 > c && b && (c = this.Qp.length, this.Qp.push(a), this.au.push(void 0));
- return this.nU = a,
- this.mU = c;
- };
- return b;
- }
- ();
- }
- function T() {
- return function () {
- function a() {
- this.tj = new ga();
- }
- Object.defineProperty(a.prototype, "size", {
- get: function () {
- return this.tj.size;
- },
- enumerable: !0,
- configurable: !0
- });
- a.prototype.has = function (a) {
- return this.tj.has(a);
- };
- a.prototype.add = function (a) {
- return this.tj.set(a, a),
- this;
- };
- a.prototype["delete"] = function (a) {
- return this.tj["delete"](a);
- };
- a.prototype.clear = function () {
- this.tj.clear();
- };
- a.prototype.keys = function () {
- return this.tj.keys();
- };
- a.prototype.values = function () {
- return this.tj.values();
- };
- a.prototype.entries = function () {
- return this.tj.entries();
- };
- return a;
- }
- ();
- }
- function U() {
- var d,
- f;
- function a(a) {
- for (var b = 0; 16 > b; ++b)
- a[b] = 255 * Math.random() | 0;
- return a;
- }
- function b() {
- var b,
- g;
- do {
- b = "function" === typeof Uint8Array ? "undefined" !== typeof crypto ? crypto.getRandomValues(new Uint8Array(16)) : "undefined" !== typeof msCrypto ? msCrypto.getRandomValues(new Uint8Array(16)) : a(new Uint8Array(16)) : a(Array(16));
- b[6] = b[6] & 79 | 64;
- b[8] = b[8] & 191 | 128;
- for (var c = "", f = 0; 16 > f; ++f) {
- g = b[f];
- if (4 === f || 6 === f || 8 === f)
- c += "-";
- 16 > g && (c += "0");
- c += g.toString(16).toLowerCase();
- }
- b = "@@WeakMap@@" + c;
- } while (da.has(d, b));
- d[b] = !0;
- return b;
- }
- function c(a, b) {
- if (!Y.call(a, f)) {
- if (!b)
- return;
- Object.defineProperty(a, f, {
- value: N()
- });
- }
- return a[f];
- }
- d = N();
- f = b();
- return function () {
- function a() {
- this.pA = b();
- }
- a.prototype.has = function (a) {
- a = c(a, !1);
- return void 0 !== a ? da.has(a, this.pA) : !1;
- };
- a.prototype.get = function (a) {
- a = c(a, !1);
- return void 0 !== a ? da.get(a, this.pA) : void 0;
- };
- a.prototype.set = function (a, b) {
- c(a, !0)[this.pA] = b;
- return this;
- };
- a.prototype["delete"] = function (a) {
- a = c(a, !1);
- return void 0 !== a ? delete a[this.pA] : !1;
- };
- a.prototype.clear = function () {
- this.pA = b();
- };
- return a;
- }
- ();
- }
- function W(a) {
- a.tQb = 1;
- delete a.uQb;
- return a;
- }
- Y = Object.prototype.hasOwnProperty;
- V = "function" === typeof Object.create;
- ca = function () {
- var b;
- function a() {}
- b = {};
- a.prototype = b;
- return new a().__proto__ === b;
- }
- ();
- N = V ? function () {
- return W(Object.create(null));
- }
- : ca ? function () {
- return W({
- __proto__: null
- });
- }
- : function () {
- return W({});
- };
- (function (a) {
- var b;
- b = !V && !ca;
- a.has = b ? function (a, b) {
- return Y.call(a, b);
- }
- : function (a, b) {
- return b in a;
- };
- a.get = b ? function (a, b) {
- return Y.call(a, b) ? a[b] : void 0;
- }
- : function (a, b) {
- return a[b];
- };
- }
- (da || (da = {})));
- fa = Object.getPrototypeOf(Function);
- ga = "function" === typeof Map ? Map : z();
- Q = "function" === typeof Set ? Set : T();
- la = new("function" === typeof WeakMap ? WeakMap : (U()))();
- b.Ix = function (a, b, c, d) {
- var g;
- if (q(d)) {
- if (q(c)) {
- if (!r(a))
- throw new TypeError();
- if ("function" !== typeof b)
- throw new TypeError();
- for (c = a.length - 1; 0 <= c; --c)
- if (d = (0, a[c])(b), !q(d)) {
- if ("function" !== typeof d)
- throw new TypeError();
- b = d;
- }
- return b;
- }
- if (!r(a))
- throw new TypeError();
- if (!x(b))
- throw new TypeError();
- c = B(c);
- for (d = a.length - 1; 0 <= d; --d)
- (0, a[d])(b, c);
- } else {
- if (!r(a))
- throw new TypeError();
- if (!x(b))
- throw new TypeError();
- if (q(c))
- throw new TypeError();
- if (!x(d))
- throw new TypeError();
- c = B(c);
- for (var f = a.length - 1; 0 <= f; --f) {
- g = (0, a[f])(b, c, d);
- if (!q(g)) {
- if (!x(g))
- throw new TypeError();
- d = g;
- }
- }
- return d;
- }
- };
- b.Dd = function (a, b) {
- return function (d, f) {
- if (q(f)) {
- if ("function" !== typeof d)
- throw new TypeError();
- c(d, void 0, !0).set(a, b);
- } else {
- if (!x(d))
- throw new TypeError();
- f = B(f);
- c(d, f, !0).set(a, b);
- }
- };
- };
- b.Rca = function (a, b, d) {
- var f;
- if (!x(d))
- throw new TypeError();
- q(f) || (f = B(f));
- c(d, f, !0).set(a, b);
- };
- b.kpb = function (a, b) {
- var c;
- if (!x(b))
- throw new TypeError();
- q(c) || (c = B(c));
- return d(a, b, c);
- };
- b.kga = function (a, b) {
- var c;
- if (!x(b))
- throw new TypeError();
- q(c) || (c = B(c));
- return g(a, b, c);
- };
- b.getMetadata = function (a, b, c) {
- if (!x(b))
- throw new TypeError();
- q(c) || (c = B(c));
- return h(a, b, c);
- };
- b.ZSb = function (a, b, c) {
- if (!x(b))
- throw new TypeError();
- q(c) || (c = B(c));
- return f(a, b, c);
- };
- b.YSb = function (a, b) {
- if (!x(a))
- throw new TypeError();
- q(b) || (b = B(b));
- return l(a, b);
- };
- b.$Sb = function (a, b) {
- if (!x(a))
- throw new TypeError();
- q(b) || (b = B(b));
- return m(a, b);
- };
- b.cSb = function (a, b, d) {
- var f;
- if (!x(b))
- throw new TypeError();
- q(d) || (d = B(d));
- f = c(b, d, !1);
- if (q(f) || !f["delete"](a))
- return !1;
- if (0 < f.size)
- return !0;
- a = la.get(b);
- a["delete"](d);
- if (0 < a.size)
- return !0;
- la["delete"](b);
- return !0;
- };
- (function (a) {
- if ("undefined" !== typeof a.Reflect) {
- if (a.Reflect !== b)
- for (var c in b)
- Y.call(b, c) && (a.Reflect[c] = b[c]);
- } else
- a.Reflect = b;
- }
- ("undefined" !== typeof t ? t : "undefined" !== typeof WorkerGlobalScope ? self : "undefined" !== typeof a ? a : Function("return this;")()));
- }
- (b || (b = {})));
- }
- .call(this, a(143)));
- }, function (d, b, a) {
- Object.defineProperty(b, "__esModule", {
- value: !0
- });
- a(1160);
- a(1159);
- t._cad_global = {};
- t.DEBUG = !1;
- a(9);
- a(10);
- a(15);
- a(20);
- a(44);
- a(92);
- a(550);
- a(277);
- a(59);
- a(35);
- a(16);
- a(76);
- a(56);
- a(549);
- a(184);
- a(464);
- a(548);
- a(182);
- a(547);
- a(275);
- a(202);
- a(361);
- a(297);
- a(291);
- a(293);
- a(292);
- a(274);
- a(305);
- a(304);
- a(302);
- a(145);
- a(190);
- a(546);
- a(12);
- a(286);
- a(545);
- a(121);
- a(67);
- a(296);
- a(125);
- a(360);
- a(359);
- a(201);
- a(544);
- a(543);
- a(333);
- a(542);
- a(541);
- a(339);
- a(188);
- a(343);
- a(189);
- a(306);
- a(540);
- a(186);
- a(289);
- a(148);
- a(301);
- a(122);
- a(80);
- a(539);
- a(538);
- a(537);
- a(536);
- a(535);
- a(533);
- a(290);
- a(57);
- a(532);
- a(294);
- a(358);
- a(295);
- a(287);
- a(531);
- a(530);
- a(279);
- a(119);
- a(529);
- a(528);
- a(527);
- a(526);
- a(525);
- a(518);
- a(515);
- a(299);
- }, function (d, b, a) {
- d.P = a(1161);
- }
- ]));
- }
- .call(t));
- }
- (window));
-}
- .call(window));
diff --git a/cadmium-playercore-6.0025.038.031.js b/cadmium-playercore-6.0025.038.031.js
new file mode 100644
index 0000000..176e598
--- /dev/null
+++ b/cadmium-playercore-6.0025.038.031.js
@@ -0,0 +1,125592 @@
+a000.x4P = (function (j4P) {
+ return {
+ b4P: function () {
+ var c4P,
+ R4P = arguments;
+ switch (j4P) {
+ case 12:
+ c4P = (R4P[1] / R4P[0] | R4P[3]) * R4P[2];
+ break;
+ case 14:
+ c4P = R4P[0] * R4P[1] / R4P[2] | R4P[3];
+ break;
+ case 11:
+ c4P = R4P[2] * R4P[0] * R4P[1] * R4P[3] - R4P[4];
+ break;
+ case 19:
+ c4P = R4P[1] + R4P[2] + R4P[0];
+ break;
+ case 1:
+ c4P = R4P[0] >= R4P[1];
+ break;
+ case 3:
+ c4P = R4P[1] + R4P[0];
+ break;
+ case 10:
+ c4P = R4P[1] * R4P[3] + R4P[2] + R4P[0];
+ break;
+ case 18:
+ c4P = R4P[1] + R4P[0] + R4P[2] + R4P[4] + R4P[3];
+ break;
+ case 13:
+ c4P = R4P[2] + R4P[3] / R4P[1] * R4P[0];
+ break;
+ case 9:
+ c4P = R4P[0] - R4P[1] + R4P[2];
+ break;
+ case 2:
+ c4P = R4P[1] < R4P[0];
+ break;
+ case 4:
+ c4P = R4P[0] - R4P[1];
+ break;
+ case 15:
+ c4P = R4P[2] / R4P[0] | R4P[1];
+ break;
+ case 5:
+ c4P = R4P[1] / R4P[0];
+ break;
+ case 17:
+ c4P = R4P[1] - R4P[0] * R4P[2];
+ break;
+ case 6:
+ c4P = void R4P[1] !== R4P[0];
+ break;
+ case 7:
+ c4P = (R4P[0] - R4P[2]) * R4P[1];
+ break;
+ case 16:
+ c4P = R4P[2] * R4P[3] - R4P[1] + -R4P[0];
+ break;
+ case 8:
+ c4P = (R4P[2] - R4P[1]) * -R4P[3] / R4P[0];
+ break;
+ case 0:
+ c4P = R4P[1] + R4P[2] - R4P[0];
+ break;
+ }
+ return c4P;
+ },
+ a4P: function (V4P) {
+ j4P = V4P;
+ }
+ };
+})();
+function a000() {}
+a000.X4P = function () {
+ return typeof a000.x4P.b4P === 'function' ? a000.x4P.b4P.apply(a000.x4P, arguments) : a000.x4P.b4P;
+};
+a000.s4P = function () {
+ return typeof a000.x4P.a4P === 'function' ? a000.x4P.a4P.apply(a000.x4P, arguments) : a000.x4P.a4P;
+};
+a000.t4P = function () {
+ return typeof a000.x4P.b4P === 'function' ? a000.x4P.b4P.apply(a000.x4P, arguments) : a000.x4P.b4P;
+};
+a000.o4P = function () {
+ return typeof a000.x4P.a4P === 'function' ? a000.x4P.a4P.apply(a000.x4P, arguments) : a000.x4P.a4P;
+};
+(function () {
+ (function (t, ca) {
+ t.Promise || (t.Promise = ca());
+ })(this, function () {
+ var Sa;
+ function t(t) {
+ var ca;
+ ca = this;
+ if (t)
+ try {
+ t(function (q) {
+ eb(ca, q);
+ }, function (q) {
+ Ja(ca, q);
+ });
+ } catch (q) {
+ Ja(this, q);
+ }
+ }
+ function ca() {
+ return Object.create(t.prototype);
+ }
+ function eb(t, ca, q) {
+ t._fulfilled === Sa && (t._fulfilled = !0, t._result = ca, cc(t, q));
+ }
+ function Ja(t, ca, q) {
+ t._fulfilled === Sa && (t._fulfilled = !1, t._result = ca, cc(t, q));
+ }
+ function Oa(t, ca) {
+ t._fulfilled !== Sa ? dc(ca, t._fulfilled, t._result) : (t._deferred || (t._deferred = []), t._deferred.push(ca));
+ }
+ function cc(t, ca) {
+ var q,
+ z,
+ g;
+ q = t._deferred;
+ if (q)
+ for ((t._deferred = Sa, z = q.length, g = 0); g < z; g++) {
+ dc(q[g], t._fulfilled, t._result, ca);
+ }
+ }
+ function dc(t, ca, q, z) {
+ var g;
+ ca && q && q._isPromise ? Oa(q, t) : (g = ca ? t._onFulfilled : t._onRejected, t._onFulfilled = Sa, t._onRejected = Sa, g ? z ? Ta(t, g, q) : setImmediate(Ta.bind(Sa, t, g, q)) : ca ? eb(t, q, z) : Ja(t, q, z));
+ }
+ function Ta(t, ca, q) {
+ var z;
+ try {
+ z = ca(q);
+ if (z === t)
+ throw new TypeError();
+ eb(t, z, !0);
+ } catch (g) {
+ Ja(t, g, !0);
+ }
+ }
+ t.prototype.then = function (t, Ja) {
+ var q;
+ q = ca();
+ "function" === typeof t && (q._onFulfilled = t);
+ "function" === typeof Ja && (q._onRejected = Ja);
+ Oa(this, q);
+ return q;
+ };
+ t.prototype["catch"] = function (t) {
+ return this.then(Sa, t);
+ };
+ t.resolve = function (t) {
+ var Ja;
+ Ja = ca();
+ eb(Ja, t);
+ return Ja;
+ };
+ t.reject = function (t) {
+ var Sa;
+ Sa = ca();
+ Ja(Sa, t);
+ return Sa;
+ };
+ t.all = function (t) {
+ var z,
+ g,
+ Ta,
+ pb,
+ ec,
+ yb;
+ function Oa(g, q) {
+ Ta[g] = q;
+ --pb || eb(z, Ta, !1);
+ }
+ function q(g) {
+ Ja(z, g, !1);
+ }
+ z = ca();
+ g = t.length;
+ Ta = [];
+ pb = 1;
+ for (yb = 0; yb < g; yb++) {
+ (ec = t[yb]) && ec._isPromise ? (pb++, ec.then(Oa.bind(Sa, yb), q)) : Ta[yb] = ec;
+ }
+ --pb || (z._fulfilled = !0, z._result = Ta);
+ return z;
+ };
+ t.race = function (Oa) {
+ var z,
+ g,
+ xb,
+ pb;
+ function Ta(g) {
+ eb(z, g, !1);
+ }
+ function q(g) {
+ Ja(z, g, !1);
+ }
+ z = ca();
+ g = Oa.length;
+ for (pb = 0; pb < g; pb++) {
+ if ((xb = Oa[pb]) && xb._isPromise) {
+ if ((xb.then(Ta, q), xb._fulfilled !== Sa))
+ break;
+ } else {
+ t.resolve().then(Ta.bind(Sa, xb));
+ break;
+ }
+ }
+ return z;
+ };
+ t.prototype._isPromise = !0;
+ return t;
+ });
+ (function (t, ca) {
+ var eb,
+ Kb,
+ Wa,
+ Ac,
+ ra,
+ xa,
+ bb,
+ Ed,
+ Fd,
+ Ma,
+ Na,
+ Ub,
+ Gd,
+ Bc,
+ Hd,
+ Id,
+ Zc,
+ n,
+ oa,
+ pc,
+ Jd,
+ $c,
+ E,
+ N,
+ ga,
+ Bb,
+ nb,
+ ab,
+ ea,
+ cb,
+ Ra,
+ Wb,
+ Ga,
+ Da,
+ Ka,
+ fb,
+ Cc,
+ Cb,
+ tb,
+ ub,
+ Dc,
+ ad,
+ Kd,
+ Nb,
+ Ob,
+ Xb,
+ bd,
+ fc,
+ Db,
+ Ec,
+ Tb,
+ cd,
+ Ld,
+ gc,
+ dd,
+ ed,
+ fd,
+ gd,
+ Eb,
+ hd,
+ id,
+ jd,
+ ic,
+ Fb,
+ Gb,
+ jc,
+ Fc,
+ Gc,
+ Hc,
+ kb,
+ Ne,
+ Pa,
+ Vb,
+ Md,
+ Ic,
+ qb,
+ Nd,
+ Oe,
+ vb,
+ Od,
+ Pd,
+ Jc,
+ Qd,
+ Pe,
+ oc,
+ Rd,
+ Me,
+ Qe,
+ kd,
+ Kc,
+ Re,
+ Se,
+ Bd,
+ Te,
+ Cd,
+ Sd,
+ ob,
+ qc,
+ Td,
+ rc,
+ Ud,
+ rb,
+ Vd,
+ ld,
+ Wd,
+ nd,
+ Lc,
+ Xd,
+ Ve,
+ Dd,
+ Mc,
+ Yc,
+ Yd,
+ Ue,
+ Zd,
+ od,
+ $d,
+ ae,
+ be,
+ pd,
+ Sb,
+ de,
+ ce,
+ We,
+ sc,
+ ee,
+ rd,
+ tc,
+ fe,
+ qd,
+ ge,
+ he,
+ sd,
+ je,
+ ke,
+ Pc,
+ $b,
+ kc,
+ ac,
+ le,
+ me,
+ ne,
+ oe,
+ pe,
+ qe,
+ Qc,
+ Xe,
+ re,
+ se,
+ ud,
+ te,
+ jb,
+ Yb,
+ hc,
+ Zb,
+ Qb,
+ Hb,
+ Nc,
+ db,
+ Mb,
+ ie,
+ uc,
+ bc,
+ ue,
+ Ye,
+ vc,
+ ve,
+ Ze,
+ lc,
+ we,
+ Rc,
+ vd,
+ wc,
+ wd,
+ xe,
+ xc,
+ ye,
+ ze,
+ Ae,
+ $e,
+ yc,
+ Be,
+ af,
+ bf,
+ Ce,
+ td,
+ Oc,
+ De,
+ Le,
+ Ee,
+ cf,
+ ef,
+ df,
+ mc,
+ zc,
+ ff,
+ Ad,
+ gf,
+ Fe;
+ function Ja(g, q) {
+ if (!q || "utf-8" === q)
+ return cc(g);
+ throw Error("unsupported encoding");
+ }
+ function Oa(g, q) {
+ if (!q || "utf-8" === q)
+ return dc(g);
+ throw Error("unsupported encoding");
+ }
+ function cc(g) {
+ for (var q = 0, n, t = g.length, z = ""; q < t; ) {
+ n = g[q++];
+ if (n & 128)
+ if (192 === (n & 224))
+ n = ((n & 31) << 6) + (g[q++] & 63);
+ else if (224 === (n & 240))
+ n = ((n & 15) << 12) + ((g[q++] & 63) << 6) + (g[q++] & 63);
+ else
+ throw Error("unsupported character");
+ z += String.fromCharCode(n);
+ }
+ return z;
+ }
+ function dc(g) {
+ var q,
+ n,
+ t,
+ z,
+ E;
+ q = g.length;
+ n = 0;
+ z = 0;
+ for (t = q; t--; ) {
+ E = g.charCodeAt(t);
+ 128 > E ? n++ : n = 2048 > E ? n + 2 : n + 3;
+ }
+ n = new Uint8Array(n);
+ for (t = 0; t < q; t++) {
+ E = g.charCodeAt(t);
+ 128 > E ? n[z++] = E : (2048 > E ? n[z++] = 192 | E >>> 6 : (n[z++] = 224 | E >>> 12, n[z++] = 128 | E >>> 6 & 63), n[z++] = 128 | E & 63);
+ }
+ return n;
+ }
+ function Ta(g, q) {
+ if (g === q)
+ return !0;
+ if (!g || !q || g.length != q.length)
+ return !1;
+ for (var n = 0; n < g.length; ++n) {
+ if (g[n] != q[n])
+ return !1;
+ }
+ return !0;
+ }
+ function Sa(g) {
+ var t;
+ if (!(g && g.constructor == Uint8Array || Array.isArray(g)))
+ throw new TypeError("Cannot compute the hash code of " + g);
+ for (var q = 1, n = 0; n < g.length; ++n) {
+ t = g[n];
+ if ("number" !== typeof t)
+ throw new TypeError("Cannot compute the hash code over non-numeric elements: " + t);
+ q = 31 * q + t & 4294967295;
+ }
+ return q;
+ }
+ function xd(g, q) {
+ var La;
+ if (g === q)
+ return !0;
+ if (!g || !q)
+ return !1;
+ q instanceof Array || (q = [q]);
+ for (var n = 0; n < q.length; ++n) {
+ for (var t = q[n], z = !1, E = 0; E < g.length; ++E) {
+ La = g[E];
+ if (t.equals && "function" === typeof t.equals && t.equals(La) || t == La) {
+ z = !0;
+ break;
+ }
+ }
+ if (!z)
+ return !1;
+ }
+ return !0;
+ }
+ function yd(g, q) {
+ return xd(g, q) && (g.length == q.length || xd(q, g));
+ }
+ function q(g, q, n) {
+ var t,
+ z;
+ n && (t = n);
+ if ("object" !== typeof g || "function" !== typeof g.result || "function" !== typeof g.error)
+ throw new TypeError("callback must be an object with function properties 'result' and 'error'.");
+ try {
+ z = q.call(t, g);
+ z !== ca && g.result(z);
+ } catch (Vc) {
+ try {
+ g.error(Vc);
+ } catch (La) {}
+ }
+ }
+ function z(g, n, t) {
+ if ("object" !== typeof g || "function" !== typeof g.timeout)
+ throw new TypeError("callback must be an object with function properties 'result', 'timeout', and 'error'.");
+ q(g, n, t);
+ }
+ function g(g, q, n) {
+ 1E5 > g && (g = 1E5 + g);
+ Object.defineProperties(this, {
+ internalCode: {
+ value: g,
+ writable: !1,
+ configurable: !1
+ },
+ responseCode: {
+ value: q,
+ writable: !1,
+ configurable: !1
+ },
+ message: {
+ value: n,
+ writable: !1,
+ configurable: !1
+ }
+ });
+ }
+ function xb(g) {
+ switch (g) {
+ case Pa.PSK:
+ case Pa.MGK:
+ return !0;
+ default:
+ return !1;
+ }
+ }
+ function pb(g) {
+ switch (g) {
+ case Pa.PSK:
+ case Pa.MGK:
+ case Pa.X509:
+ case Pa.RSA:
+ case Pa.NPTICKET:
+ case Pa.ECC:
+ return !0;
+ default:
+ return !1;
+ }
+ }
+ function ec(g) {
+ return g.toJSON();
+ }
+ function yb(q, n) {
+ zc ? n.result(zc) : Promise.resolve().then(function () {
+ return Ka.getKeyByName(q);
+ })["catch"](function () {
+ return Ka.generateKey({
+ name: q
+ }, !1, ["wrapKey", "unwrapKey"]);
+ }).then(function (g) {
+ zc = g;
+ n.result(zc);
+ })["catch"](function (q) {
+ n.error(new E(g.INTERNAL_EXCEPTION, "Unable to get system key"));
+ });
+ }
+ function zd(g, q) {
+ var n,
+ t,
+ z;
+ n = q.masterToken;
+ t = q.userIdToken;
+ z = q.serviceTokens;
+ return {
+ NccpMethod: g.method,
+ UserId: g.userId,
+ UT: t && t.serialNumber,
+ MT: n && n.serialNumber + ":" + n.sequenceNumber,
+ STCount: z && z.length
+ };
+ }
+ function Je(g) {
+ return g.uniqueKey();
+ }
+ function Ke(t, z, sb, Xa, zb) {
+ var Ia;
+ function Uc(g, L) {
+ g.errorCode === n.ENTITY_REAUTH || g.errorCode === n.ENTITYDATA_REAUTH ? (Xa.clearCryptoContexts(), Ya()) : g.errorCode !== n.USER_REAUTH && g.errorCode !== n.USERDATA_REAUTH || La(L);
+ }
+ function La(g) {
+ if (g = Xa.getUserIdToken(g))
+ (Xa.removeUserIdToken(g), Ya());
+ }
+ function ba(g, L, J) {
+ var v;
+ v = [];
+ (function D() {
+ g.read(-1, L, {
+ result: function (g) {
+ q(J, function () {
+ var x,
+ F,
+ I,
+ J,
+ L;
+ if (g)
+ (v.push(g), D());
+ else
+ switch (v.length) {
+ case 0:
+ return new Uint8Array(0);
+ case 1:
+ return v[0];
+ default:
+ (J = v.length, L = 0);
+ for (F = x = 0; F < J; F++) {
+ x += v[F].length;
+ }
+ x = new Uint8Array(x);
+ for (F = 0; F < J; F++) {
+ I = v[F];
+ x.set(I, L);
+ L += I.length;
+ }
+ return x;
+ }
+ });
+ },
+ timeout: function () {
+ J.timeout();
+ },
+ error: function (g) {
+ J.error(g);
+ }
+ });
+ })();
+ }
+ function Ya() {
+ Xa.getStoreState({
+ result: function (g) {
+ for (var L = Ia.slice(), J = 0; J < L.length; J++) {
+ L[J]({
+ storeState: g
+ });
+ }
+ },
+ timeout: function () {
+ t.error("Timeout getting store state", "" + e);
+ },
+ error: function (g) {
+ t.error("Error getting store state", "" + g);
+ }
+ });
+ }
+ Ia = [];
+ this.addEventHandler = function (g, L) {
+ switch (g) {
+ case "shouldpersist":
+ Ia.push(L);
+ }
+ };
+ this.send = function (q) {
+ return new Promise(function (L, J) {
+ var v,
+ y,
+ D;
+ v = q.timeout;
+ y = new Ad(t, sb, q, Xa.getKeyRequestData());
+ D = new Bd(q.url);
+ t.trace("Sending MSL request");
+ z.request(sb, y, D, v, {
+ result: function (y) {
+ var x;
+ y && y.getMessageHeader();
+ t.trace("Received MSL response", {
+ Method: q.method
+ });
+ if (y) {
+ q.allowTokenRefresh && Ya();
+ x = y.getErrorHeader();
+ x ? (Uc(x, q.userId), J({
+ success: !1,
+ error: x
+ })) : ba(y, v, {
+ result: function (g) {
+ L({
+ success: !0,
+ body: Ja(g)
+ });
+ },
+ timeout: function () {
+ J({
+ success: !1,
+ subCode: zb.MSL_READ_TIMEOUT
+ });
+ },
+ error: function (g) {
+ J({
+ success: !1,
+ error: g
+ });
+ }
+ });
+ } else
+ J({
+ success: !1,
+ error: new E(g.INTERNAL_EXCEPTION, "Null response stream"),
+ description: "Null response stream"
+ });
+ },
+ timeout: function () {
+ J({
+ success: !1,
+ subCode: zb.MSL_REQUEST_TIMEOUT
+ });
+ },
+ error: function (g) {
+ J({
+ success: !1,
+ error: g
+ });
+ }
+ });
+ });
+ };
+ this.hasUserIdToken = function (g) {
+ return !!Xa.getUserIdToken(g);
+ };
+ this.getUserIdTokenKeys = function () {
+ return Xa.getUserIdTokenKeys();
+ };
+ this.removeUserIdToken = La;
+ this.clearUserIdTokens = function () {
+ Xa.clearUserIdTokens();
+ Ya();
+ };
+ this.isErrorReauth = function (g) {
+ return g && g.errorCode == n.USERDATA_REAUTH;
+ };
+ this.isErrorHeader = function (g) {
+ return g instanceof Sb;
+ };
+ this.getErrorCode = function (g) {
+ return g && g.errorCode;
+ };
+ this.getStateForMdx = function (g) {
+ var L,
+ J;
+ L = Xa.getMasterToken();
+ g = Xa.getUserIdToken(g);
+ J = Xa.getCryptoContext(L);
+ return {
+ masterToken: L,
+ userIdToken: g,
+ cryptoContext: J
+ };
+ };
+ this.buildPlayDataRequest = function (g, L) {
+ var J;
+ J = new Cd();
+ z.request(sb, new Ad(t, sb, g), J, g.timeout, {
+ result: function () {
+ L.result(J.getRequest());
+ },
+ error: function () {
+ L.result(J.getRequest());
+ },
+ timeout: function () {
+ L.timeout();
+ }
+ });
+ };
+ this.rekeyUserIdToken = function (g, L) {
+ Xa.rekeyUserIdToken(g, L);
+ Ya();
+ };
+ this.getServiceTokens = function (g) {
+ var L;
+ L = Xa.getMasterToken();
+ (g = Xa.getUserIdToken(g)) && !g.isBoundTo(L) && (g = ca);
+ return Xa.getServiceTokens(L, g);
+ };
+ this.removeServiceToken = function (g) {
+ var L;
+ L = Xa.getMasterToken();
+ Xa.getServiceTokens(L).find(function (J) {
+ return J.name === g;
+ }) && (Xa.removeServiceTokens(g, L), Ya());
+ };
+ }
+ function Wc(q, n, t, z, zb, ca) {
+ function Xa(n) {
+ var ba;
+ return Promise.resolve().then(function () {
+ ba = q.authenticationKeyNames[n];
+ if (!ba)
+ throw new E(g.KEY_IMPORT_ERROR, "Invalid config keyName " + n);
+ return Ka.getKeyByName(ba);
+ }).then(function (q) {
+ return new Promise(function (n, L) {
+ fc(q, {
+ result: n,
+ error: function () {
+ L(new E(g.KEY_IMPORT_ERROR, "Unable to create " + ba + " CipherKey"));
+ }
+ });
+ });
+ })["catch"](function (q) {
+ throw new E(g.KEY_IMPORT_ERROR, "Unable to import " + ba, q);
+ });
+ }
+ return Promise.resolve().then(function () {
+ if (!Ka.getKeyByName)
+ throw new E(g.INTERNAL_EXCEPTION, "No WebCrypto cryptokeys");
+ return Promise.all([Xa("e"), Xa("h"), Xa("w")]);
+ }).then(function (g) {
+ var ba,
+ Ia,
+ Va;
+ ba = {};
+ ba[n] = new t(q.esn, g[0], g[1], g[2]);
+ g = new z(q.esn);
+ Ia = new Le();
+ Ia = [new zb(Ia)];
+ Va = new ca(n);
+ return {
+ entityAuthFactories: ba,
+ entityAuthData: g,
+ keyExchangeFactories: Ia,
+ keyRequestData: Va
+ };
+ });
+ }
+ function Xc(q, n, t) {
+ var sb;
+ function z() {
+ return Promise.resolve().then(function () {
+ return Ka.generateKey(n, !1, ["wrapKey", "unwrapKey"]);
+ }).then(function (g) {
+ return zb(g.publicKey, g.privateKey);
+ });
+ }
+ function zb(q, n) {
+ return Promise.all([new Promise(function (n, ba) {
+ Tb(q, {
+ result: n,
+ error: function (q) {
+ ba(new E(g.INTERNAL_EXCEPTION, "Unable to create keyx public key", q));
+ }
+ });
+ }), new Promise(function (q, ba) {
+ gc(n, {
+ result: q,
+ error: function (q) {
+ ba(new E(g.INTERNAL_EXCEPTION, "Unable to create keyx private key", q));
+ }
+ });
+ })]).then(function (g) {
+ g = new Yc("rsaKeypairId", t, g[0], g[1]);
+ sb && (g.storeData = {
+ keyxPublicKey: q,
+ keyxPrivateKey: n
+ });
+ return g;
+ });
+ }
+ sb = !q.systemKeyWrapFormat;
+ return Promise.resolve().then(function () {
+ var g,
+ n;
+ g = q.storeState;
+ n = g && g.keyxPublicKey;
+ g = g && g.keyxPrivateKey;
+ return sb && n && g ? zb(n, g) : z();
+ }).then(function (g) {
+ var n,
+ t,
+ Ia;
+ n = {};
+ n[Pa.NONE] = new Me();
+ t = new oc(q.esn);
+ Ia = [new Dd()];
+ return {
+ entityAuthFactories: n,
+ entityAuthData: t,
+ keyExchangeFactories: Ia,
+ keyRequestData: g,
+ createKeyRequestData: sb ? z : ca
+ };
+ });
+ }
+ Kb = t.nfCrypto || t.msCrypto || t.webkitCrypto || t.crypto;
+ Wa = Kb && (Kb.webkitSubtle || Kb.subtle);
+ Ac = t.nfCryptokeys || t.msCryptokeys || t.webkitCryptokeys || t.cryptokeys;
+ (function (g) {
+ var q,
+ n;
+ q = (function () {
+ function g(g, n) {
+ g instanceof q ? (this.abv = g.abv, this.position = g.position) : (this.abv = g, this.position = n || 0);
+ }
+ g.prototype = {
+ readByte: function () {
+ return this.abv[this.position++];
+ },
+ writeByte: function (g) {
+ this.abv[this.position++] = g;
+ },
+ peekByte: function (g) {
+ return this.abv[g];
+ },
+ copyBytes: function (g, q, n) {
+ var ba;
+ ba = new Uint8Array(this.abv.buffer, this.position, n);
+ g = new Uint8Array(g.buffer, q, n);
+ ba.set(g);
+ this.position += n;
+ },
+ seek: function (g) {
+ this.position = g;
+ },
+ skip: function (g) {
+ this.position += g;
+ },
+ getPosition: function () {
+ return this.position;
+ },
+ setPosition: function (g) {
+ this.position = g;
+ },
+ getRemaining: function () {
+ return this.abv.length - this.position;
+ },
+ getLength: function () {
+ return this.abv.length;
+ },
+ isEndOfStream: function () {
+ return this.position >= this.abv.length;
+ },
+ show: function () {
+ return "AbvStream: pos " + (this.getPosition().toString() + " of " + this.getLength().toString());
+ }
+ };
+ return g;
+ })();
+ n = {};
+ (function () {
+ var I,
+ x,
+ F,
+ ua,
+ ka,
+ va,
+ sa,
+ R,
+ ta;
+ function g(x, v) {
+ var Q;
+ v.writeByte(x.tagClass << 6 | x.constructed << 5 | x.tag);
+ Q = x.payloadLen;
+ if (128 > Q)
+ v.writeByte(Q);
+ else {
+ for (var F = Q, y = 0; F; ) {
+ ++y;
+ F >>= 8;
+ }
+ v.writeByte(128 | y);
+ for (F = 0; F < y; ++F) {
+ v.writeByte(Q >> 8 * (y - F - 1) & 255);
+ }
+ }
+ if (x.child)
+ for ((x.tag == I.BIT_STRING && v.writeByte(0), Q = x._child); Q; ) {
+ if (!g(Q, v))
+ return !1;
+ Q = Q.next;
+ }
+ else
+ switch (x.tag) {
+ case I.INTEGER:
+ x.backingStore[x.dataIdx] >> 7 && v.writeByte(0);
+ v.copyBytes(x.backingStore, x.dataIdx, x.dataLen);
+ break;
+ case I.BIT_STRING:
+ v.writeByte(0);
+ v.copyBytes(x.backingStore, x.dataIdx, x.dataLen);
+ break;
+ case I.OCTET_STRING:
+ v.copyBytes(x.backingStore, x.dataIdx, x.dataLen);
+ break;
+ case I.OBJECT_IDENTIFIER:
+ v.copyBytes(x.backingStore, x.dataIdx, x.dataLen);
+ }
+ return !0;
+ }
+ function t(g) {
+ var x,
+ Q;
+ x = g.readByte();
+ Q = x & 127;
+ if (Q == x)
+ return Q;
+ if (3 < Q || 0 === Q)
+ return -1;
+ for (var v = x = 0; v < Q; ++v) {
+ x = x << 8 | g.readByte();
+ }
+ return x;
+ }
+ function z(g, v, F) {
+ var Q,
+ y,
+ J,
+ D,
+ W,
+ la,
+ R;
+ Q = g.backingStore;
+ y = new q(Q, v);
+ v += F;
+ F = g;
+ if (8 < ka++)
+ return ca;
+ for (; y.getPosition() < v; ) {
+ y.getPosition();
+ W = y.readByte();
+ if (31 == (W & 31)) {
+ for (D = 0; W & 128; ) {
+ D <<= 8;
+ D |= W & 127;
+ }
+ W = D;
+ }
+ J = W;
+ D = J & 31;
+ if (0 > D || 30 < D)
+ return ca;
+ W = t(y);
+ if (0 > W || W > y.getRemaining())
+ return ca;
+ F.constructed = J & 32;
+ F.tagClass = (J & 192) >> 6;
+ F.tag = D;
+ F.dataLen = W;
+ F.dataIdx = y.getPosition();
+ D = y;
+ la = J;
+ J = W;
+ if (la & 32)
+ D = !0;
+ else if (la < I.BIT_STRING || la > I.OCTET_STRING)
+ D = !1;
+ else {
+ R = new q(D);
+ la == I.BIT_STRING && R.skip(1);
+ R.readByte() >> 6 & 1 ? D = !1 : (la = t(R), D = R.getPosition() - D.getPosition() + la == J);
+ }
+ D && (D = y.getPosition(), J = W, F.tag == I.BIT_STRING && (F.dataIdx++, F.dataLen--, D++, J--), F.child = new x(Q, F), z(F.child, D, J));
+ F.tag == I.INTEGER && (D = y.getPosition(), 0 == y.peekByte(D) && y.peekByte(D + 1) >> 7 && (F.dataIdx++, F.dataLen--));
+ y.skip(W);
+ y.getPosition() < v && (F.next = new x(Q, F.parent), F = F.next);
+ }
+ ka--;
+ return g;
+ }
+ function E(g, x, v) {
+ if (9 != v)
+ return !1;
+ for (v = 0; 9 > v; ++v) {
+ if (g[x++] != va[v])
+ return !1;
+ }
+ return !0;
+ }
+ function ba(g) {
+ var x;
+ if (!(g && g.child && g.child.next && g.child.child && g.child.next.child))
+ return !1;
+ x = g.child.child;
+ return E(x.backingStore, x.dataIdx, x.dataLen) && 2 == g.nChildren && 2 == g.child.nChildren && 2 == g.child.next.child.nChildren ? !0 : !1;
+ }
+ function Ya(g) {
+ var x;
+ if (!(g && g.child && g.child.next && g.child.next.child && g.child.next.next && g.child.next.next.child))
+ return !1;
+ x = g.child.next.child;
+ return E(x.backingStore, x.dataIdx, x.dataLen) && 3 == g.nChildren && 2 == g.child.next.nChildren && 9 == g.child.next.next.child.nChildren ? !0 : !1;
+ }
+ function Ia(g) {
+ var x,
+ v;
+ x = F.createSequenceNode();
+ v = new ua(x);
+ v.addChild(F.createSequenceNode());
+ v.addChild(F.createOidNode(va));
+ v.addSibling(F.createNullNode());
+ v.addToParent(x, F.createBitStringNode(null));
+ v.addChild(F.createSequenceNode());
+ v.addChild(F.createIntegerNode(g.n));
+ v.addSibling(F.createIntegerNode(g.e));
+ return x;
+ }
+ function Va(g) {
+ var x;
+ g = g.child.next.child.child;
+ x = g.data;
+ g = g.next;
+ return new sa(x, g.data, null, null);
+ }
+ function L(g) {
+ var x,
+ v;
+ x = F.createSequenceNode();
+ v = new ua(x);
+ v.addChild(F.createIntegerNode(new Uint8Array([0])));
+ v.addSibling(F.createSequenceNode());
+ v.addChild(F.createOidNode(va));
+ v.addSibling(F.createNullNode());
+ v.addToParent(x, F.createOctetStringNode(null));
+ v.addChild(F.createSequenceNode());
+ v.addChild(F.createIntegerNode(new Uint8Array([0])));
+ v.addSibling(F.createIntegerNode(g.n));
+ v.addSibling(F.createIntegerNode(g.e));
+ v.addSibling(F.createIntegerNode(g.d));
+ v.addSibling(F.createIntegerNode(g.p));
+ v.addSibling(F.createIntegerNode(g.q));
+ v.addSibling(F.createIntegerNode(g.dp));
+ v.addSibling(F.createIntegerNode(g.dq));
+ v.addSibling(F.createIntegerNode(g.qi));
+ return x;
+ }
+ function J(g) {
+ var x;
+ x = [];
+ g = g.child.next.next.child.child.next;
+ for (var v = 0; 8 > v; v++) {
+ x.push(g.data);
+ g = g.next;
+ }
+ return new R(x[0], x[1], x[2], x[3], x[4], x[5], x[6], x[7]);
+ }
+ function v(g, x, v, F) {
+ if (!(g instanceof sa || g instanceof R))
+ return ca;
+ if (v)
+ for (var y = 0; y < v.length; ++y) {
+ if (-1 == ta.indexOf(v[y]))
+ return ca;
+ }
+ x = {
+ kty: "RSA",
+ alg: x,
+ key_ops: v || [],
+ ext: F == ca ? !1 : F,
+ n: ra(g.n, !0),
+ e: ra(g.e, !0)
+ };
+ g instanceof R && (x.d = ra(g.d, !0), x.p = ra(g.p, !0), x.q = ra(g.q, !0), x.dp = ra(g.dp, !0), x.dq = ra(g.dq, !0), x.qi = ra(g.qi, !0));
+ return x;
+ }
+ function y(g) {
+ var x,
+ v,
+ F,
+ y,
+ Q,
+ J,
+ D,
+ I,
+ ka,
+ L;
+ if (!g.kty || "RSA" != g.kty || !g.n || !g.e)
+ return ca;
+ x = ("RSA1_5 RSA-OAEP RSA-OAEP-256 RSA-OAEP-384 RSA-OAEP-512 RS256 RS384 RS512").split(" ");
+ if (g.alg && -1 == x.indexOf(g.alg))
+ return ca;
+ x = [];
+ g.use ? "enc" == g.use ? x = ["encrypt", "decrypt", "wrap", "unwrap"] : "sig" == g.use && (x = ["sign", "verify"]) : x = g.key_ops;
+ v = g.ext;
+ F = xa(g.n, !0);
+ y = xa(g.e, !0);
+ if (g.d) {
+ Q = xa(g.d, !0);
+ J = xa(g.p, !0);
+ D = xa(g.q, !0);
+ I = xa(g.dp, !0);
+ ka = xa(g.dq, !0);
+ L = xa(g.qi, !0);
+ return new R(F, y, Q, J, D, I, ka, L, g.alg, x, v);
+ }
+ return new sa(F, y, v, x);
+ }
+ function D(g, x, v, F) {
+ this.der = g;
+ this.type = x;
+ this.keyOps = v;
+ this.extractable = F;
+ }
+ I = {
+ BER: 0,
+ BOOLEAN: 1,
+ INTEGER: 2,
+ BIT_STRING: 3,
+ OCTET_STRING: 4,
+ NULL: 5,
+ OBJECT_IDENTIFIER: 6,
+ OBJECT_DESCRIPTOR: 7,
+ INSTANCE_OF_EXTERNAL: 8,
+ REAL: 9,
+ ENUMERATED: 10,
+ EMBEDDED_PPV: 11,
+ UTF8_STRING: 12,
+ RELATIVE_OID: 13,
+ SEQUENCE: 16,
+ SET: 17,
+ NUMERIC_STRING: 18,
+ PRINTABLE_STRING: 19,
+ TELETEX_STRING: 20,
+ T61_STRING: 20,
+ VIDEOTEX_STRING: 21,
+ IA5_STRING: 22,
+ UTC_TIME: 23,
+ GENERALIZED_TIME: 24,
+ GRAPHIC_STRING: 25,
+ VISIBLE_STRING: 26,
+ ISO64_STRING: 26,
+ GENERAL_STRING: 27,
+ UNIVERSAL_STRING: 28,
+ CHARACTER_STRING: 29,
+ BMP_STRING: 30
+ };
+ x = function (g, x, v, F, y, J) {
+ this._data = g;
+ this._parent = x || ca;
+ this._constructed = v || !1;
+ this._tagClass = 0;
+ this._tag = F || 0;
+ this._dataIdx = y || 0;
+ this._dataLen = J || 0;
+ };
+ x.prototype = {
+ _child: ca,
+ _next: ca,
+ get data() {
+ return new Uint8Array(this._data.buffer.slice(this._dataIdx, this._dataIdx + this._dataLen));
+ },
+ get backingStore() {
+ return this._data;
+ },
+ get constructed() {
+ return this._constructed;
+ },
+ set constructed(g) {
+ this._constructed = 0 != g ? !0 : !1;
+ },
+ get tagClass() {
+ return this._tagClass;
+ },
+ set tagClass(g) {
+ this._tagClass = g;
+ },
+ get tag() {
+ return this._tag;
+ },
+ set tag(g) {
+ this._tag = g;
+ },
+ get dataIdx() {
+ return this._dataIdx;
+ },
+ set dataIdx(g) {
+ this._dataIdx = g;
+ },
+ get dataLen() {
+ return this._dataLen;
+ },
+ set dataLen(g) {
+ this._dataLen = g;
+ },
+ get child() {
+ return this._child;
+ },
+ set child(g) {
+ this._child = g;
+ this._child.parent = this;
+ },
+ get next() {
+ return this._next;
+ },
+ set next(g) {
+ this._next = g;
+ },
+ get parent() {
+ return this._parent;
+ },
+ set parent(g) {
+ this._parent = g;
+ },
+ get payloadLen() {
+ var g;
+ g = 0;
+ if (this._child) {
+ for (var x = this._child; x; ) {
+ g += x.length;
+ x = x.next;
+ }
+ this._tag == I.BIT_STRING && g++;
+ } else
+ switch (this._tag) {
+ case I.INTEGER:
+ g = this._dataLen;
+ this._data[this._dataIdx] >> 7 && g++;
+ break;
+ case I.BIT_STRING:
+ g = this._dataLen + 1;
+ break;
+ case I.OCTET_STRING:
+ g = this._dataLen;
+ break;
+ case I.NULL:
+ g = 0;
+ break;
+ case I.OBJECT_IDENTIFIER:
+ E(this._data, this._dataIdx, this._dataLen) && (g = 9);
+ }
+ return g;
+ },
+ get length() {
+ var g,
+ x;
+ g = this.payloadLen;
+ if (127 < g)
+ for (x = g; x; ) {
+ x >>= 8;
+ ++g;
+ }
+ return g + 2;
+ },
+ get der() {
+ var x,
+ v;
+ x = this.length;
+ if (!x)
+ return ca;
+ x = new Uint8Array(x);
+ v = new q(x);
+ return g(this, v) ? x : ca;
+ },
+ get nChildren() {
+ for (var g = 0, x = this._child; x; ) {
+ g++;
+ x = x.next;
+ }
+ return g;
+ }
+ };
+ F = {
+ createSequenceNode: function () {
+ return new x(null, null, !0, I.SEQUENCE, null, null);
+ },
+ createOidNode: function (g) {
+ return new x(g, null, !1, I.OBJECT_IDENTIFIER, 0, g ? g.length : 0);
+ },
+ createNullNode: function () {
+ return new x(null, null, !1, I.NULL, null, null);
+ },
+ createBitStringNode: function (g) {
+ return new x(g, null, !1, I.BIT_STRING, 0, g ? g.length : 0);
+ },
+ createIntegerNode: function (g) {
+ return new x(g, null, !1, I.INTEGER, 0, g ? g.length : 0);
+ },
+ createOctetStringNode: function (g) {
+ return new x(g, null, !1, I.OCTET_STRING, 0, g ? g.length : 0);
+ }
+ };
+ ua = function (g) {
+ this._currentNode = this._rootNode = g;
+ };
+ ua.prototype = {
+ addChild: function (g) {
+ this.addTo(this._currentNode, g);
+ },
+ addSibling: function (g) {
+ this.addTo(this._currentNode.parent, g);
+ },
+ addTo: function (g, x) {
+ this._currentNode = x;
+ this._currentNode.parent = g;
+ if (g.child) {
+ for (var v = g.child; v.next; ) {
+ v = v.next;
+ }
+ v.next = x;
+ } else
+ g.child = x;
+ },
+ addToParent: function (g, x) {
+ this.findNode(g) && this.addTo(g, x);
+ },
+ findNode: function (g) {
+ for (var x = this._currentNode; x; ) {
+ if (g == x)
+ return !0;
+ x = x.parent;
+ }
+ return !1;
+ }
+ };
+ ka = 0;
+ va = new Uint8Array([42, 134, 72, 134, 247, 13, 1, 1, 1]);
+ sa = function (g, x, v, F) {
+ this.n = g;
+ this.e = x;
+ this.ext = v;
+ this.keyOps = F;
+ };
+ R = function (g, x, v, F, y, J, D, I, R, ka, L) {
+ this.n = g;
+ this.e = x;
+ this.d = v;
+ this.p = F;
+ this.q = y;
+ this.dp = J;
+ this.dq = D;
+ this.qi = I;
+ this.alg = R;
+ this.keyOps = ka;
+ this.ext = L;
+ };
+ ta = ("sign verify encrypt decrypt wrapKey unwrapKey deriveKey deriveBits").split(" ");
+ D.prototype.getDer = function () {
+ return this.der;
+ };
+ D.prototype.getType = function () {
+ return this.type;
+ };
+ D.prototype.getKeyOps = function () {
+ return this.keyOps;
+ };
+ D.prototype.getExtractable = function () {
+ return this.extractable;
+ };
+ n.parse = function (g) {
+ ka = 0;
+ return z(new x(g), 0, g.length);
+ };
+ n.show = function (g, x) {};
+ n.isRsaSpki = ba;
+ n.isRsaPkcs8 = Ya;
+ n.NodeFactory = F;
+ n.Builder = ua;
+ n.tagVal = I;
+ n.RsaPublicKey = sa;
+ n.RsaPrivateKey = R;
+ n.buildRsaSpki = Ia;
+ n.parseRsaSpki = function (g) {
+ g = n.parse(g);
+ return ba ? Va(g) : ca;
+ };
+ n.buildRsaPkcs8 = L;
+ n.parseRsaPkcs8 = function (g) {
+ g = n.parse(g);
+ return Ya(g) ? J(g) : ca;
+ };
+ n.buildRsaJwk = v;
+ n.parseRsaJwk = y;
+ n.RsaDer = D;
+ n.rsaDerToJwk = function (g, x, F, y) {
+ g = n.parse(g);
+ if (!g)
+ return ca;
+ if (ba(g))
+ g = Va(g);
+ else if (Ya(g))
+ g = J(g);
+ else
+ return ca;
+ return v(g, x, F, y);
+ };
+ n.jwkToRsaDer = function (g) {
+ var x,
+ v;
+ g = y(g);
+ if (!g)
+ return ca;
+ if (g instanceof sa)
+ (x = "spki", v = Ia(g).der);
+ else if (g instanceof R)
+ (x = "pkcs8", v = L(g).der);
+ else
+ return ca;
+ return new D(v, x, g.keyOps, g.ext);
+ };
+ n.webCryptoAlgorithmToJwkAlg = function (g) {
+ return "RSAES-PKCS1-v1_5" == g.name ? "RSA1_5" : "RSASSA-PKCS1-v1_5" == g.name ? "SHA-256" == g.hash.name ? "RS256" : "SHA-384" == g.hash.name ? "RS384" : "SHA-512" == g.hash.name ? "RS512" : ca : ca;
+ };
+ n.webCryptoUsageToJwkKeyOps = function (g) {
+ return g.map(function (g) {
+ return "wrapKey" == g ? "wrap" : "unwrapKey" == g ? "unwrap" : g;
+ });
+ };
+ })();
+ g.ASN1 = n;
+ })(t);
+ (function () {
+ for (var g = {}, q = {}, n = {
+ "=": 0,
+ ".": 0
+ }, t = {
+ "=": 0,
+ ".": 0
+ }, z = /\s+/g, E = /^[ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/_-]*[=]{0,2}$/, La = 64; La--; ) {
+ g[("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/")[La]] = 262144 * La;
+ q[("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/")[La]] = 4096 * La;
+ n[("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/")[La]] = 64 * La;
+ t[("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/")[La]] = La;
+ }
+ for (La = 64; La-- && ("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/")[La] != ("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_")[La]; ) {
+ g[("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_")[La]] = 262144 * La;
+ q[("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_")[La]] = 4096 * La;
+ n[("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_")[La]] = 64 * La;
+ t[("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_")[La]] = La;
+ }
+ ra = function (g, q) {
+ for (var n = "", ba = 0, L = g.length, J = L - 2, v, y = q ? "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_" : "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", D = q ? "" : "="; ba < J; ) {
+ v = 65536 * g[ba++] + 256 * g[ba++] + g[ba++];
+ n += y[v >>> 18] + y[v >>> 12 & 63] + y[v >>> 6 & 63] + y[v & 63];
+ }
+ ba == J ? (v = 65536 * g[ba++] + 256 * g[ba++], n += y[v >>> 18] + y[v >>> 12 & 63] + y[v >>> 6 & 63] + D) : ba == L - 1 && (v = 65536 * g[ba++], n += y[v >>> 18] + y[v >>> 12 & 63] + D + D);
+ return n;
+ };
+ xa = function (ba, Ya) {
+ var Ia;
+ ba = ba.replace(z, "");
+ if (Ya) {
+ Ia = ba.length % 4;
+ if (Ia)
+ for (var Ia = 4 - Ia, Va = 0; Va < Ia; ++Va) {
+ ba += "=";
+ }
+ }
+ Ia = ba.length;
+ if (0 != Ia % 4 || !E.test(ba))
+ throw Error("bad base64: " + ba);
+ for (var L = Ia / 4 * 3 - ("=" == ba[Ia - 1] ? 1 : 0) - ("=" == ba[Ia - 2] ? 1 : 0), J = new Uint8Array(L), v = 0, y = 0; v < Ia; ) {
+ Va = g[ba[v++]] + q[ba[v++]] + n[ba[v++]] + t[ba[v++]];
+ J[y++] = Va >>> 16;
+ y < L && (J[y++] = Va >>> 8 & 255, y < L && (J[y++] = Va & 255));
+ }
+ return J;
+ };
+ })();
+ bb = {};
+ (function () {
+ var E,
+ La,
+ ba,
+ Ia;
+ function g(n) {
+ if (!(this instanceof g))
+ return new g(n);
+ for (var L = 0, J = La.length; L < J; L++) {
+ this[La[L]] = "";
+ }
+ this.bufferCheckPosition = bb.MAX_BUFFER_LENGTH;
+ this.q = this.c = this.p = "";
+ this.opt = n || ({});
+ this.closed = this.closedRoot = this.sawRoot = !1;
+ this.tag = this.error = null;
+ this.state = ba.BEGIN;
+ this.stack = new E();
+ this.index = this.position = this.column = 0;
+ this.line = 1;
+ this.slashed = !1;
+ this.unicodeI = 0;
+ this.unicodeS = null;
+ q(this, "onready");
+ }
+ function q(g, L, J) {
+ if (g[L])
+ g[L](J);
+ }
+ function n(g, L) {
+ var J,
+ v;
+ J = g.opt;
+ v = g.textNode;
+ J.trim && (v = v.trim());
+ J.normalize && (v = v.replace(/\s+/g, " "));
+ g.textNode = v;
+ g.textNode && q(g, L ? L : "onvalue", g.textNode);
+ g.textNode = "";
+ }
+ function t(g, L) {
+ n(g);
+ L += "\nLine: " + g.line + "\nColumn: " + g.column + "\nChar: " + g.c;
+ L = Error(L);
+ g.error = L;
+ q(g, "onerror", L);
+ return g;
+ }
+ function z(Va) {
+ Va.state !== ba.VALUE && t(Va, "Unexpected end");
+ n(Va);
+ Va.c = "";
+ Va.closed = !0;
+ q(Va, "onend");
+ g.call(Va, Va.opt);
+ return Va;
+ }
+ E = Array;
+ bb.parser = function (q) {
+ return new g(q);
+ };
+ bb.CParser = g;
+ bb.MAX_BUFFER_LENGTH = 65536;
+ bb.DEBUG = !1;
+ bb.INFO = !1;
+ bb.EVENTS = ("value string key openobject closeobject openarray closearray error end ready").split(" ");
+ La = ["textNode", "numberNode"];
+ bb.EVENTS.filter(function (g) {
+ return "error" !== g && "end" !== g;
+ });
+ ba = 0;
+ bb.STATE = {
+ BEGIN: ba++,
+ VALUE: ba++,
+ OPEN_OBJECT: ba++,
+ CLOSE_OBJECT: ba++,
+ OPEN_ARRAY: ba++,
+ CLOSE_ARRAY: ba++,
+ TEXT_ESCAPE: ba++,
+ STRING: ba++,
+ BACKSLASH: ba++,
+ END: ba++,
+ OPEN_KEY: ba++,
+ CLOSE_KEY: ba++,
+ TRUE: ba++,
+ TRUE2: ba++,
+ TRUE3: ba++,
+ FALSE: ba++,
+ FALSE2: ba++,
+ FALSE3: ba++,
+ FALSE4: ba++,
+ NULL: ba++,
+ NULL2: ba++,
+ NULL3: ba++,
+ NUMBER_DECIMAL_POINT: ba++,
+ NUMBER_DIGIT: ba++
+ };
+ for (var Ya in bb.STATE) {
+ bb.STATE[bb.STATE[Ya]] = Ya;
+ }
+ ba = bb.STATE;
+ Object.getPrototypeOf || (Object.getPrototypeOf = function (g) {
+ return g.__proto__;
+ });
+ Ia = /[\\"\n]/g;
+ g.prototype = {
+ end: function () {
+ z(this);
+ },
+ write: function (g) {
+ var v,
+ y,
+ D;
+ if (this.error)
+ throw this.error;
+ if (this.closed)
+ return t(this, "Cannot write after close. Assign an onready handler.");
+ if (null === g)
+ return z(this);
+ for (var L = g[0], J; L; ) {
+ J = L;
+ this.c = L = g.charAt(this.index++);
+ J !== L ? this.p = J : J = this.p;
+ if (!L)
+ break;
+ this.position++;
+ "\n" === L ? (this.line++, this.column = 0) : this.column++;
+ switch (this.state) {
+ case ba.BEGIN:
+ "{" === L ? this.state = ba.OPEN_OBJECT : "[" === L ? this.state = ba.OPEN_ARRAY : "\r" !== L && "\n" !== L && " " !== L && "\t" !== L && t(this, "Non-whitespace before {[.");
+ continue;
+ case ba.OPEN_KEY:
+ case ba.OPEN_OBJECT:
+ if ("\r" === L || "\n" === L || " " === L || "\t" === L)
+ continue;
+ if (this.state === ba.OPEN_KEY)
+ this.stack.push(ba.CLOSE_KEY);
+ else if ("}" === L) {
+ q(this, "onopenobject");
+ q(this, "oncloseobject");
+ this.state = this.stack.pop() || ba.VALUE;
+ continue;
+ } else
+ this.stack.push(ba.CLOSE_OBJECT);
+ '"' === L ? this.state = ba.STRING : t(this, 'Malformed object key should start with "');
+ continue;
+ case ba.CLOSE_KEY:
+ case ba.CLOSE_OBJECT:
+ if ("\r" === L || "\n" === L || " " === L || "\t" === L)
+ continue;
+ ":" === L ? (this.state === ba.CLOSE_OBJECT ? (this.stack.push(ba.CLOSE_OBJECT), n(this, "onopenobject")) : n(this, "onkey"), this.state = ba.VALUE) : "}" === L ? (n(this), q(this, "oncloseobject", void 0), this.state = this.stack.pop() || ba.VALUE) : "," === L ? (this.state === ba.CLOSE_OBJECT && this.stack.push(ba.CLOSE_OBJECT), n(this), this.state = ba.OPEN_KEY) : t(this, "Bad object");
+ continue;
+ case ba.OPEN_ARRAY:
+ case ba.VALUE:
+ if ("\r" === L || "\n" === L || " " === L || "\t" === L)
+ continue;
+ if (this.state === ba.OPEN_ARRAY)
+ if ((q(this, "onopenarray"), this.state = ba.VALUE, "]" === L)) {
+ q(this, "onclosearray");
+ this.state = this.stack.pop() || ba.VALUE;
+ continue;
+ } else
+ this.stack.push(ba.CLOSE_ARRAY);
+ '"' === L ? this.state = ba.STRING : "{" === L ? this.state = ba.OPEN_OBJECT : "[" === L ? this.state = ba.OPEN_ARRAY : "t" === L ? this.state = ba.TRUE : "f" === L ? this.state = ba.FALSE : "n" === L ? this.state = ba.NULL : "-" === L ? this.numberNode += L : "0" === L ? (this.numberNode += L, this.state = ba.NUMBER_DIGIT) : -1 !== ("123456789").indexOf(L) ? (this.numberNode += L, this.state = ba.NUMBER_DIGIT) : t(this, "Bad value");
+ continue;
+ case ba.CLOSE_ARRAY:
+ if ("," === L)
+ (this.stack.push(ba.CLOSE_ARRAY), n(this, "onvalue"), this.state = ba.VALUE);
+ else if ("]" === L)
+ (n(this), q(this, "onclosearray", void 0), this.state = this.stack.pop() || ba.VALUE);
+ else if ("\r" === L || "\n" === L || " " === L || "\t" === L)
+ continue;
+ else
+ t(this, "Bad array");
+ continue;
+ case ba.STRING:
+ J = this.index - 1;
+ (v = this.slashed, y = this.unicodeI);
+ a: for (; ; ) {
+ if (bb.DEBUG)
+ for (; 0 < y; ) {
+ if ((this.unicodeS += L, L = g.charAt(this.index++), 4 === y ? (this.textNode += String.fromCharCode(parseInt(this.unicodeS, 16)), y = 0, J = this.index - 1) : y++, !L))
+ break a;
+ }
+ if ('"' === L && !v) {
+ this.state = this.stack.pop() || ba.VALUE;
+ (this.textNode += g.substring(J, this.index - 1)) || q(this, "onvalue", "");
+ break;
+ }
+ if ("\\" === L && !v && (v = !0, this.textNode += g.substring(J, this.index - 1), L = g.charAt(this.index++), !L))
+ break;
+ if (v)
+ if ((v = !1, "n" === L ? this.textNode += "\n" : "r" === L ? this.textNode += "\r" : "t" === L ? this.textNode += "\t" : "f" === L ? this.textNode += "\f" : "b" === L ? this.textNode += "\b" : "u" === L ? (y = 1, this.unicodeS = "") : this.textNode += L, L = g.charAt(this.index++), J = this.index - 1, L))
+ continue;
+ else
+ break;
+ Ia.lastIndex = this.index;
+ D = Ia.exec(g);
+ if (null === D) {
+ this.index = g.length + 1;
+ this.textNode += g.substring(J, this.index - 1);
+ break;
+ }
+ this.index = D.index + 1;
+ L = g.charAt(D.index);
+ if (!L) {
+ this.textNode += g.substring(J, this.index - 1);
+ break;
+ }
+ }
+ this.slashed = v;
+ this.unicodeI = y;
+ continue;
+ case ba.TRUE:
+ if ("" === L)
+ continue;
+ "r" === L ? this.state = ba.TRUE2 : t(this, "Invalid true started with t" + L);
+ continue;
+ case ba.TRUE2:
+ if ("" === L)
+ continue;
+ "u" === L ? this.state = ba.TRUE3 : t(this, "Invalid true started with tr" + L);
+ continue;
+ case ba.TRUE3:
+ if ("" === L)
+ continue;
+ "e" === L ? (q(this, "onvalue", !0), this.state = this.stack.pop() || ba.VALUE) : t(this, "Invalid true started with tru" + L);
+ continue;
+ case ba.FALSE:
+ if ("" === L)
+ continue;
+ "a" === L ? this.state = ba.FALSE2 : t(this, "Invalid false started with f" + L);
+ continue;
+ case ba.FALSE2:
+ if ("" === L)
+ continue;
+ "l" === L ? this.state = ba.FALSE3 : t(this, "Invalid false started with fa" + L);
+ continue;
+ case ba.FALSE3:
+ if ("" === L)
+ continue;
+ "s" === L ? this.state = ba.FALSE4 : t(this, "Invalid false started with fal" + L);
+ continue;
+ case ba.FALSE4:
+ if ("" === L)
+ continue;
+ "e" === L ? (q(this, "onvalue", !1), this.state = this.stack.pop() || ba.VALUE) : t(this, "Invalid false started with fals" + L);
+ continue;
+ case ba.NULL:
+ if ("" === L)
+ continue;
+ "u" === L ? this.state = ba.NULL2 : t(this, "Invalid null started with n" + L);
+ continue;
+ case ba.NULL2:
+ if ("" === L)
+ continue;
+ "l" === L ? this.state = ba.NULL3 : t(this, "Invalid null started with nu" + L);
+ continue;
+ case ba.NULL3:
+ if ("" === L)
+ continue;
+ "l" === L ? (q(this, "onvalue", null), this.state = this.stack.pop() || ba.VALUE) : t(this, "Invalid null started with nul" + L);
+ continue;
+ case ba.NUMBER_DECIMAL_POINT:
+ "." === L ? (this.numberNode += L, this.state = ba.NUMBER_DIGIT) : t(this, "Leading zero not followed by .");
+ continue;
+ case ba.NUMBER_DIGIT:
+ -1 !== ("0123456789").indexOf(L) ? this.numberNode += L : "." === L ? (-1 !== this.numberNode.indexOf(".") && t(this, "Invalid number has two dots"), this.numberNode += L) : "e" === L || "E" === L ? (-1 === this.numberNode.indexOf("e") && -1 === this.numberNode.indexOf("E") || t(this, "Invalid number has two exponential"), this.numberNode += L) : "+" === L || "-" === L ? ("e" !== J && "E" !== J && t(this, "Invalid symbol in number"), this.numberNode += L) : (this.numberNode && q(this, "onvalue", parseFloat(this.numberNode)), this.numberNode = "", this.index--, this.state = this.stack.pop() || ba.VALUE);
+ continue;
+ default:
+ t(this, "Unknown state: " + this.state);
+ }
+ }
+ if (this.position >= this.bufferCheckPosition) {
+ g = Math.max(bb.MAX_BUFFER_LENGTH, 10);
+ J = L = 0;
+ for (v = La.length; J < v; J++) {
+ y = this[La[J]].length;
+ if (y > g)
+ switch (La[J]) {
+ case "text":
+ break;
+ default:
+ t(this, "Max buffer length exceeded: " + La[J]);
+ }
+ L = Math.max(L, y);
+ }
+ this.bufferCheckPosition = bb.MAX_BUFFER_LENGTH - L + this.position;
+ }
+ return this;
+ },
+ resume: function () {
+ this.error = null;
+ return this;
+ },
+ close: function () {
+ return this.write(null);
+ }
+ };
+ })();
+ (function () {
+ var t;
+ function g(g, q) {
+ q || (q = g.length);
+ return g.reduce(function (g, n, ba) {
+ return ba < q ? g + String.fromCharCode(n) : g;
+ }, "");
+ }
+ for (var q = {}, n = 0; 256 > n; ++n) {
+ t = g([n]);
+ q[t] = n;
+ }
+ for (var z = Object.keys(q).length, E = [], n = 0; 256 > n; ++n) {
+ E[n] = [n];
+ }
+ Ed = function (n, ba) {
+ var x,
+ F;
+ function t(g, x) {
+ var F;
+ for (; 0 < x; ) {
+ if (y >= v.length)
+ return !1;
+ if (x > D) {
+ F = g;
+ F = F >>> x - D;
+ v[y] |= F & 255;
+ x -= D;
+ D = 8;
+ ++y;
+ } else
+ x <= D && (F = g, F <<= D - x, F &= 255, F >>>= 8 - D, v[y] |= F & 255, D -= x, x = 0, 0 == D && (D = 8, ++y));
+ }
+ return !0;
+ }
+ for (var Ia in q) {
+ ba[Ia] = q[Ia];
+ }
+ for (var Va = z, L = [], J = 8, v = new Uint8Array(n.length), y = 0, D = 8, I = 0; I < n.length; ++I) {
+ x = n[I];
+ L.push(x);
+ Ia = g(L);
+ F = ba[Ia];
+ if (!F) {
+ L = g(L, L.length - 1);
+ if (!t(ba[L], J))
+ return null;
+ 0 != Va >> J && ++J;
+ ba[Ia] = Va++;
+ L = [x];
+ }
+ }
+ return 0 < L.length && (Ia = g(L), F = ba[Ia], !t(F, J)) ? null : v.subarray(0, 8 > D ? y + 1 : y);
+ };
+ Fd = function (g) {
+ var I,
+ x,
+ D,
+ t;
+ for (var q = E.slice(), n = 0, t = 0, z = 8, L = new Uint8Array(Math.ceil(1.5 * g.length)), J = 0, v, y = []; n < g.length && !(8 * (g.length - n) - t < z); ) {
+ for (var D = v = 0; D < z; ) {
+ I = Math.min(z - D, 8 - t);
+ x = g[n];
+ x = x << t;
+ x = x & 255;
+ x = x >>> 8 - I;
+ D = D + I;
+ t = t + I;
+ 8 == t && (t = 0, ++n);
+ v |= (x & 255) << z - D;
+ }
+ D = q[v];
+ 0 == y.length ? ++z : (D ? y.push(D[0]) : y.push(y[0]), q[q.length] = y, y = [], q.length == 1 << z && ++z, D || (D = q[v]));
+ v = J + D.length;
+ v >= L.length && (I = new Uint8Array(Math.ceil(1.5 * v)), I.set(L), L = I);
+ L.set(D, J);
+ J = v;
+ y = y.concat(D);
+ }
+ return L.subarray(0, J);
+ };
+ })();
+ (function () {
+ var g,
+ q,
+ t;
+ Ma = "utf-8";
+ Na = 9007199254740992;
+ g = Ub = {
+ GZIP: "GZIP",
+ LZW: "LZW"
+ };
+ Object.freeze(Ub);
+ Gd = function (q) {
+ for (var n = [g.GZIP, g.LZW], t = 0; t < n.length && 0 < q.length; ++t) {
+ for (var z = n[t], ba = 0; ba < q.length; ++ba) {
+ if (q[ba] == z)
+ return z;
+ }
+ }
+ return null;
+ };
+ q = Bc = {
+ AES_CBC_PKCS5Padding: "AES/CBC/PKCS5Padding",
+ AESWrap: "AESWrap",
+ RSA_ECB_PKCS1Padding: "RSA/ECB/PKCS1Padding"
+ };
+ Object.freeze(Bc);
+ Hd = function (g) {
+ return q.AES_CBC_PKCS5Padding == g ? q.AES_CBC_PKCS5Padding : q.RSA_ECB_PKCS1Padding == g ? q.RSA_ECB_PKCS1Padding : q[g];
+ };
+ t = Id = {
+ HmacSHA256: "HmacSHA256",
+ SHA256withRSA: "SHA256withRSA"
+ };
+ Object.freeze(Id);
+ Zc = function (g) {
+ return t[g];
+ };
+ n = {
+ FAIL: 1,
+ TRANSIENT_FAILURE: 2,
+ ENTITY_REAUTH: 3,
+ USER_REAUTH: 4,
+ KEYX_REQUIRED: 5,
+ ENTITYDATA_REAUTH: 6,
+ USERDATA_REAUTH: 7,
+ EXPIRED: 8,
+ REPLAYED: 9,
+ SSOTOKEN_REJECTED: 10
+ };
+ Object.freeze(n);
+ })();
+ oa = {
+ isObjectLiteral: function (g) {
+ return null !== g && "object" === typeof g && g.constructor === Object;
+ },
+ extendDeep: function () {
+ var g,
+ q,
+ n,
+ t,
+ z,
+ E,
+ N,
+ ba;
+ g = arguments[0];
+ q = 1;
+ n = arguments.length;
+ t = !1;
+ "boolean" === typeof g && (t = g, g = arguments[1], q = 2);
+ for (; q < n; q++) {
+ if (null != (z = arguments[q]))
+ for (E in z) {
+ t && (E in g) || (ba = z[E], g !== ba && ba !== ca && (N = g[E], g[E] = null !== N && null !== ba && "object" === typeof N && "object" === typeof ba ? oa.extendDeep(t, {}, N, ba) : ba));
+ }
+ }
+ return g;
+ }
+ };
+ (function () {
+ var ca,
+ ba;
+ function g(g, q) {
+ return function () {
+ var n,
+ L;
+ n = g.base;
+ g.base = q;
+ L = g.apply(this, arguments);
+ g.base = n;
+ return L;
+ };
+ }
+ function q(q, n, t) {
+ var L,
+ J,
+ v,
+ y;
+ t = t || ba;
+ y = !!t.extendAll;
+ for (L in n) {
+ J = n.__lookupGetter__(L);
+ v = n.__lookupSetter__(L);
+ J || v ? (J && q.__defineGetter__(L, J), v && q.__defineSetter__(L, v)) : (J = n[L], v = q[L], "function" === typeof J && "function" === typeof v && J !== v ? (J.base !== Function.prototype.base && (J = g(J, v)), J.base = v) : (y || t[L]) && oa.isObjectLiteral(J) && oa.isObjectLiteral(v) && (J = oa.extendDeep({}, v, J)), q[L] = J);
+ }
+ }
+ function n() {
+ var g,
+ q;
+ g = Array.prototype.slice;
+ q = g.call(arguments, 1);
+ return this.extend({
+ init: function L() {
+ var J;
+ J = g.call(arguments, 0);
+ L.base.apply(this, q.concat(J));
+ }
+ });
+ }
+ function t(g, n) {
+ var ba;
+ ba = new this(ca);
+ q(ba, g, n);
+ return E(ba);
+ }
+ function z(g, n) {
+ q(this.prototype, g, n);
+ return this;
+ }
+ function E(g) {
+ var q;
+ q = function () {
+ var g;
+ g = this.init;
+ g && arguments[0] !== ca && g.apply(this, arguments);
+ };
+ g && (q.prototype = g);
+ q.prototype.constructor = q;
+ q.extend = t;
+ q.bind = n;
+ q.mixin = z;
+ return q;
+ }
+ ca = {};
+ ba = {
+ actions: !0
+ };
+ Function.prototype.base = function () {};
+ oa.Class = {
+ create: E,
+ mixin: q,
+ extend: function (g, q) {
+ var n;
+ n = E();
+ n.prototype = new g();
+ return n.extend(q);
+ }
+ };
+ oa.mixin = function () {
+ oa.log && oa.log.warn("util.mixin is deprecated. Please change your code to use util.Class.mixin()");
+ q.apply(null, arguments);
+ };
+ })();
+ (function () {
+ var ca,
+ ba,
+ Ya;
+ function g(g, q) {
+ return function () {
+ var n,
+ J;
+ n = g.base;
+ g.base = q;
+ J = g.apply(this, arguments);
+ g.base = n;
+ return J;
+ };
+ }
+ function q(q, n, L) {
+ var J,
+ v,
+ y,
+ D;
+ L = L || ba;
+ D = !!L.extendAll;
+ for (J in n) {
+ v = n.__lookupGetter__(J);
+ y = n.__lookupSetter__(J);
+ v || y ? (v && q.__defineGetter__(J, v), y && q.__defineSetter__(J, y)) : (v = n[J], y = q[J], "function" === typeof v && "function" === typeof y && v !== y ? (v.base !== Ya && (v = g(v, y)), v.base = y) : (D || L[J]) && oa.isObjectLiteral(v) && oa.isObjectLiteral(y) && (v = oa.extendDeep({}, y, v)), q[J] = v);
+ }
+ }
+ function n() {
+ var g,
+ q;
+ g = Array.prototype.slice;
+ q = g.call(arguments, 1);
+ return this.extend({
+ init: function J() {
+ var v;
+ v = g.call(arguments, 0);
+ J.base.apply(this, q.concat(v));
+ }
+ });
+ }
+ function t(g, n) {
+ var L;
+ L = new this(ca);
+ q(L, g, n);
+ return E(L);
+ }
+ function z(g, n) {
+ q(this.prototype, g, n);
+ return this;
+ }
+ function E(g) {
+ var q;
+ q = function () {
+ var g;
+ g = this.init;
+ g && arguments[0] !== ca && g.apply(this, arguments);
+ };
+ g && (q.prototype = g);
+ q.prototype.constructor = q;
+ q.extend = t;
+ q.bind = n;
+ q.mixin = z;
+ return q;
+ }
+ ca = {};
+ ba = {
+ actions: !0
+ };
+ Ya = function () {};
+ Function.prototype.base = Ya;
+ oa.Class = {
+ create: E,
+ mixin: q,
+ extend: function (g, q) {
+ var n;
+ n = E();
+ n.prototype = new g();
+ return n.extend(q);
+ }
+ };
+ oa.mixin = function () {
+ oa.log && oa.log.warn("util.mixin is deprecated. Please change your code to use util.Class.mixin()");
+ q.apply(null, arguments);
+ };
+ })();
+ (function () {
+ function g(g) {
+ return g == Na ? 1 : g + 1;
+ }
+ function q(q) {
+ if (0 === Object.keys(q._waiters).length)
+ return 0;
+ for (var n = g(q._nextWaiter); !q._waiters[n]; ) {
+ n = g(n);
+ }
+ return n;
+ }
+ pc = oa.Class.create({
+ init: function () {
+ Object.defineProperties(this, {
+ _queue: {
+ value: [],
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ _waiters: {
+ value: {},
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ _nextWaiter: {
+ value: 0,
+ writable: !0,
+ enumerable: !1,
+ configurable: !1
+ },
+ _lastWaiter: {
+ value: 0,
+ writable: !0,
+ enumerable: !1,
+ configurable: !1
+ }
+ });
+ },
+ cancel: function (g) {
+ var n;
+ if (this._waiters[g]) {
+ n = this._waiters[g];
+ delete this._waiters[g];
+ g == this._nextWaiter && (this._nextWaiter = q(this));
+ n.call(this, ca);
+ }
+ },
+ cancelAll: function () {
+ for (; 0 !== this._nextWaiter; ) {
+ this.cancel(this._nextWaiter);
+ }
+ },
+ poll: function (n, t) {
+ var E,
+ ca;
+ E = this;
+ ca = g(this._lastWaiter);
+ this._lastWaiter = ca;
+ z(t, function () {
+ var g,
+ ba;
+ if (0 < this._queue.length) {
+ g = this._queue.shift();
+ setTimeout(function () {
+ t.result(g);
+ }, 0);
+ } else {
+ -1 != n && (ba = setTimeout(function () {
+ delete E._waiters[ca];
+ ca == E._nextWaiter && (E._nextWaiter = q(E));
+ t.timeout();
+ }, n));
+ this._waiters[ca] = function (g) {
+ clearTimeout(ba);
+ setTimeout(function () {
+ t.result(g);
+ }, 0);
+ };
+ this._nextWaiter || (this._nextWaiter = ca);
+ }
+ }, E);
+ return ca;
+ },
+ add: function (g) {
+ var n;
+ if (this._nextWaiter) {
+ n = this._waiters[this._nextWaiter];
+ delete this._waiters[this._nextWaiter];
+ this._nextWaiter = q(this);
+ n.call(this, g);
+ } else
+ this._queue.push(g);
+ }
+ });
+ })();
+ (function () {
+ var g;
+ g = 0 - Na;
+ Jd = oa.Class.create({
+ nextBoolean: function () {
+ var g;
+ g = new Uint8Array(1);
+ Kb.getRandomValues(g);
+ return g[0] & 1 ? !0 : !1;
+ },
+ nextInt: function (g) {
+ var q;
+ if (null !== g && g !== ca) {
+ if ("number" !== typeof g)
+ throw new TypeError("n must be of type number");
+ if (1 > g)
+ throw new RangeError("n must be greater than zero");
+ --g;
+ q = new Uint8Array(4);
+ Kb.getRandomValues(q);
+ return Math.floor(((q[3] & 127) << 24 | q[2] << 16 | q[1] << 8 | q[0]) / 2147483648 * (g - 0 + 1) + 0);
+ }
+ g = new Uint8Array(4);
+ Kb.getRandomValues(g);
+ q = (g[3] & 127) << 24 | g[2] << 16 | g[1] << 8 | g[0];
+ return g[3] & 128 ? -q : q;
+ },
+ nextLong: function () {
+ var n,
+ q;
+ for (var q = g; q == g; ) {
+ q = new Uint8Array(7);
+ Kb.getRandomValues(q);
+ n = 16777216 * ((q[6] & 31) << 24 | q[5] << 16 | q[4] << 8 | q[3]) + (q[2] << 16 | q[1] << 8 | q[0]);
+ q = q[6] & 128 ? -n - 1 : n;
+ }
+ return q;
+ },
+ nextBytes: function (g) {
+ Kb.getRandomValues(g);
+ }
+ });
+ })();
+ (function () {
+ function g(g) {
+ return g == Na ? 1 : g + 1;
+ }
+ function q(q) {
+ if (0 === Object.keys(q._waitingReaders).length)
+ return 0;
+ for (var n = g(q._nextReader); !q._waitingReaders[n]; ) {
+ n = g(n);
+ }
+ return n;
+ }
+ function n(q) {
+ if (0 === Object.keys(q._waitingWriters).length)
+ return 0;
+ for (var n = g(q._nextWriter); !q._waitingWriters[n]; ) {
+ n = g(n);
+ }
+ return n;
+ }
+ $c = oa.Class.create({
+ init: function () {
+ Object.defineProperties(this, {
+ _readers: {
+ value: {},
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ _waitingReaders: {
+ value: {},
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ _writer: {
+ value: null,
+ writable: !0,
+ enumerable: !1,
+ configurable: !1
+ },
+ _waitingWriters: {
+ value: {},
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ _nextReader: {
+ value: 0,
+ writable: !0,
+ enumerable: !1,
+ configurable: !1
+ },
+ _nextWriter: {
+ value: 0,
+ writable: !0,
+ enumerable: !1,
+ configurable: !1
+ },
+ _lastNumber: {
+ value: 0,
+ writable: !0,
+ enumerable: !1,
+ configurable: !1
+ }
+ });
+ },
+ cancel: function (g) {
+ var t;
+ if (this._waitingReaders[g]) {
+ t = this._waitingReaders[g];
+ delete this._waitingReaders[g];
+ g == this._nextReader && (this._nextReader = q(this));
+ t.call(this, !0);
+ }
+ this._waitingWriters[g] && (t = this._waitingWriters[g], delete this._waitingWriters[g], g == this._nextWriter && (this._nextWriter = n(this)), t.call(this, !0));
+ },
+ cancelAll: function () {
+ for (; 0 !== this._nextWriter; ) {
+ this.cancel(this._nextWriter);
+ }
+ for (; 0 !== this._nextReader; ) {
+ this.cancel(this._nextReader);
+ }
+ },
+ readLock: function (n, t) {
+ var E,
+ N;
+ E = this;
+ N = g(this._lastNumber);
+ this._lastNumber = N;
+ z(t, function () {
+ var g;
+ if (!this._writer && 0 === Object.keys(this._waitingWriters).length)
+ return (this._readers[N] = !0, N);
+ -1 != n && (g = setTimeout(function () {
+ delete E._waitingReaders[N];
+ N == E._nextReader && (E._nextReader = q(E));
+ t.timeout();
+ }, n));
+ this._waitingReaders[N] = function (q) {
+ clearTimeout(g);
+ q ? setTimeout(function () {
+ t.result(ca);
+ }, 0) : (E._readers[N] = !0, setTimeout(function () {
+ t.result(N);
+ }, 0));
+ };
+ this._nextReader || (this._nextReader = N);
+ }, E);
+ return N;
+ },
+ writeLock: function (q, t) {
+ var E,
+ N;
+ E = this;
+ N = g(this._lastNumber);
+ this._lastNumber = N;
+ z(t, function () {
+ var g;
+ if (0 === Object.keys(this._readers).length && 0 === Object.keys(this._waitingReaders).length && !this._writer)
+ return this._writer = N;
+ -1 != q && (g = setTimeout(function () {
+ delete E._waitingWriters[N];
+ N == E._nextWriter && (E._nextWriter = n(E));
+ t.timeout();
+ }, q));
+ this._waitingWriters[N] = function (q) {
+ clearTimeout(g);
+ q ? setTimeout(function () {
+ t.result(ca);
+ }, 0) : (E._writer = N, setTimeout(function () {
+ t.result(N);
+ }, 0));
+ };
+ this._nextWriter || (this._nextWriter = N);
+ }, E);
+ return N;
+ },
+ unlock: function (q) {
+ if (q == this._writer)
+ this._writer = null;
+ else {
+ if (!this._readers[q])
+ throw new ea("There is no reader or writer with ticket number " + q + ".");
+ delete this._readers[q];
+ }
+ if (this._nextWriter)
+ 0 < Object.keys(this._readers).length || (q = this._waitingWriters[this._nextWriter], delete this._waitingWriters[this._nextWriter], this._nextWriter = n(this), q.call(this, !1));
+ else {
+ for (var t = this._nextReader; 0 < Object.keys(this._waitingReaders).length; t = g(t)) {
+ this._waitingReaders[t] && (q = this._waitingReaders[t], delete this._waitingReaders[t], q.call(this, !1));
+ }
+ this._nextReader = 0;
+ }
+ }
+ });
+ })();
+ oa.Class.mixin(g, {
+ JSON_PARSE_ERROR: new g(0, n.FAIL, "Error parsing JSON."),
+ JSON_ENCODE_ERROR: new g(1, n.FAIL, "Error encoding JSON."),
+ ENVELOPE_HASH_MISMATCH: new g(2, n.FAIL, "Computed hash does not match envelope hash."),
+ INVALID_PUBLIC_KEY: new g(3, n.FAIL, "Invalid public key provided."),
+ INVALID_PRIVATE_KEY: new g(4, n.FAIL, "Invalid private key provided."),
+ PLAINTEXT_ILLEGAL_BLOCK_SIZE: new g(5, n.FAIL, "Plaintext is not a multiple of the block size."),
+ PLAINTEXT_BAD_PADDING: new g(6, n.FAIL, "Plaintext contains incorrect padding."),
+ CIPHERTEXT_ILLEGAL_BLOCK_SIZE: new g(7, n.FAIL, "Ciphertext is not a multiple of the block size."),
+ CIPHERTEXT_BAD_PADDING: new g(8, n.FAIL, "Ciphertext contains incorrect padding."),
+ ENCRYPT_NOT_SUPPORTED: new g(9, n.FAIL, "Encryption not supported."),
+ DECRYPT_NOT_SUPPORTED: new g(10, n.FAIL, "Decryption not supported."),
+ ENVELOPE_KEY_ID_MISMATCH: new g(11, n.FAIL, "Encryption envelope key ID does not match crypto context key ID."),
+ CIPHERTEXT_ENVELOPE_PARSE_ERROR: new g(12, n.FAIL, "Error parsing ciphertext envelope."),
+ CIPHERTEXT_ENVELOPE_ENCODE_ERROR: new g(13, n.FAIL, "Error encoding ciphertext envelope."),
+ SIGN_NOT_SUPPORTED: new g(14, n.FAIL, "Sign not supported."),
+ VERIFY_NOT_SUPPORTED: new g(15, n.FAIL, "Verify not suppoprted."),
+ SIGNATURE_ERROR: new g(16, n.FAIL, "Signature not initialized or unable to process data/signature."),
+ HMAC_ERROR: new g(17, n.FAIL, "Error computing HMAC."),
+ ENCRYPT_ERROR: new g(18, n.FAIL, "Error encrypting plaintext."),
+ DECRYPT_ERROR: new g(19, n.FAIL, "Error decrypting ciphertext."),
+ INSUFFICIENT_CIPHERTEXT: new g(20, n.FAIL, "Insufficient ciphertext for decryption."),
+ SESSION_KEY_CREATION_FAILURE: new g(21, n.FAIL, "Error when creating session keys."),
+ ASN1_PARSE_ERROR: new g(22, n.FAIL, "Error parsing ASN.1."),
+ ASN1_ENCODE_ERROR: new g(23, n.FAIL, "Error encoding ASN.1."),
+ INVALID_SYMMETRIC_KEY: new g(24, n.FAIL, "Invalid symmetric key provided."),
+ INVALID_ENCRYPTION_KEY: new g(25, n.FAIL, "Invalid encryption key."),
+ INVALID_HMAC_KEY: new g(26, n.FAIL, "Invalid HMAC key."),
+ WRAP_NOT_SUPPORTED: new g(27, n.FAIL, "Wrap not supported."),
+ UNWRAP_NOT_SUPPORTED: new g(28, n.FAIL, "Unwrap not supported."),
+ UNIDENTIFIED_JWK_TYPE: new g(29, n.FAIL, "Unidentified JSON web key type."),
+ UNIDENTIFIED_JWK_USAGE: new g(30, n.FAIL, "Unidentified JSON web key usage."),
+ UNIDENTIFIED_JWK_ALGORITHM: new g(31, n.FAIL, "Unidentified JSON web key algorithm."),
+ WRAP_ERROR: new g(32, n.FAIL, "Error wrapping plaintext."),
+ UNWRAP_ERROR: new g(33, n.FAIL, "Error unwrapping ciphertext."),
+ INVALID_JWK: new g(34, n.FAIL, "Invalid JSON web key."),
+ INVALID_JWK_KEYDATA: new g(35, n.FAIL, "Invalid JSON web key keydata."),
+ UNSUPPORTED_JWK_ALGORITHM: new g(36, n.FAIL, "Unsupported JSON web key algorithm."),
+ WRAP_KEY_CREATION_FAILURE: new g(37, n.FAIL, "Error when creating wrapping key."),
+ INVALID_WRAP_CIPHERTEXT: new g(38, n.FAIL, "Invalid wrap ciphertext."),
+ UNSUPPORTED_JWE_ALGORITHM: new g(39, n.FAIL, "Unsupported JSON web encryption algorithm."),
+ JWE_ENCODE_ERROR: new g(40, n.FAIL, "Error encoding JSON web encryption header."),
+ JWE_PARSE_ERROR: new g(41, n.FAIL, "Error parsing JSON web encryption header."),
+ INVALID_ALGORITHM_PARAMS: new g(42, n.FAIL, "Invalid algorithm parameters."),
+ JWE_ALGORITHM_MISMATCH: new g(43, n.FAIL, "JSON web encryption header algorithms mismatch."),
+ KEY_IMPORT_ERROR: new g(44, n.FAIL, "Error importing key."),
+ KEY_EXPORT_ERROR: new g(45, n.FAIL, "Error exporting key."),
+ DIGEST_ERROR: new g(46, n.FAIL, "Error in digest."),
+ UNSUPPORTED_KEY: new g(47, n.FAIL, "Unsupported key type or algorithm."),
+ UNSUPPORTED_JWE_SERIALIZATION: new g(48, n.FAIL, "Unsupported JSON web encryption serialization."),
+ XML_PARSE_ERROR: new g(49, n.FAIL, "Error parsing XML."),
+ XML_ENCODE_ERROR: new g(50, n.FAIL, "Error encoding XML."),
+ INVALID_WRAPPING_KEY: new g(51, n.FAIL, "Invalid wrapping key."),
+ UNIDENTIFIED_CIPHERTEXT_ENVELOPE: new g(52, n.FAIL, "Unidentified ciphertext envelope version."),
+ UNIDENTIFIED_SIGNATURE_ENVELOPE: new g(53, n.FAIL, "Unidentified signature envelope version."),
+ UNSUPPORTED_CIPHERTEXT_ENVELOPE: new g(54, n.FAIL, "Unsupported ciphertext envelope version."),
+ UNSUPPORTED_SIGNATURE_ENVELOPE: new g(55, n.FAIL, "Unsupported signature envelope version."),
+ UNIDENTIFIED_CIPHERSPEC: new g(56, n.FAIL, "Unidentified cipher specification."),
+ UNIDENTIFIED_ALGORITHM: new g(57, n.FAIL, "Unidentified algorithm."),
+ SIGNATURE_ENVELOPE_PARSE_ERROR: new g(58, n.FAIL, "Error parsing signature envelope."),
+ SIGNATURE_ENVELOPE_ENCODE_ERROR: new g(59, n.FAIL, "Error encoding signature envelope."),
+ INVALID_SIGNATURE: new g(60, n.FAIL, "Invalid signature."),
+ WRAPKEY_FINGERPRINT_NOTSUPPORTED: new g(61, n.FAIL, "Wrap key fingerprint not supported"),
+ UNIDENTIFIED_JWK_KEYOP: new g(62, n.FAIL, "Unidentified JSON web key key operation."),
+ MASTERTOKEN_UNTRUSTED: new g(1E3, n.ENTITY_REAUTH, "Master token is not trusted."),
+ MASTERTOKEN_KEY_CREATION_ERROR: new g(1001, n.ENTITY_REAUTH, "Unable to construct symmetric keys from master token."),
+ MASTERTOKEN_EXPIRES_BEFORE_RENEWAL: new g(1002, n.ENTITY_REAUTH, "Master token expiration timestamp is before the renewal window opens."),
+ MASTERTOKEN_SESSIONDATA_MISSING: new g(1003, n.ENTITY_REAUTH, "No master token session data found."),
+ MASTERTOKEN_SEQUENCE_NUMBER_OUT_OF_RANGE: new g(1004, n.ENTITY_REAUTH, "Master token sequence number is out of range."),
+ MASTERTOKEN_SERIAL_NUMBER_OUT_OF_RANGE: new g(1005, n.ENTITY_REAUTH, "Master token serial number is out of range."),
+ MASTERTOKEN_TOKENDATA_INVALID: new g(1006, n.ENTITY_REAUTH, "Invalid master token data."),
+ MASTERTOKEN_SIGNATURE_INVALID: new g(1007, n.ENTITY_REAUTH, "Invalid master token signature."),
+ MASTERTOKEN_SESSIONDATA_INVALID: new g(1008, n.ENTITY_REAUTH, "Invalid master token session data."),
+ MASTERTOKEN_SEQUENCE_NUMBER_OUT_OF_SYNC: new g(1009, n.ENTITY_REAUTH, "Master token sequence number does not have the expected value."),
+ MASTERTOKEN_TOKENDATA_MISSING: new g(1010, n.ENTITY_REAUTH, "No master token data found."),
+ MASTERTOKEN_TOKENDATA_PARSE_ERROR: new g(1011, n.ENTITY_REAUTH, "Error parsing master token data."),
+ MASTERTOKEN_SESSIONDATA_PARSE_ERROR: new g(1012, n.ENTITY_REAUTH, "Error parsing master token session data."),
+ MASTERTOKEN_IDENTITY_REVOKED: new g(1013, n.ENTITY_REAUTH, "Master token entity identity is revoked."),
+ MASTERTOKEN_REJECTED_BY_APP: new g(1014, n.ENTITY_REAUTH, "Master token is rejected by the application."),
+ USERIDTOKEN_MASTERTOKEN_MISMATCH: new g(2E3, n.USER_REAUTH, "User ID token master token serial number does not match master token serial number."),
+ USERIDTOKEN_NOT_DECRYPTED: new g(2001, n.USER_REAUTH, "User ID token is not decrypted or verified."),
+ USERIDTOKEN_MASTERTOKEN_NULL: new g(2002, n.USER_REAUTH, "User ID token requires a master token."),
+ USERIDTOKEN_EXPIRES_BEFORE_RENEWAL: new g(2003, n.USER_REAUTH, "User ID token expiration timestamp is before the renewal window opens."),
+ USERIDTOKEN_USERDATA_MISSING: new g(2004, n.USER_REAUTH, "No user ID token user data found."),
+ USERIDTOKEN_MASTERTOKEN_NOT_FOUND: new g(2005, n.USER_REAUTH, "User ID token is bound to an unknown master token."),
+ USERIDTOKEN_MASTERTOKEN_SERIAL_NUMBER_OUT_OF_RANGE: new g(2006, n.USER_REAUTH, "User ID token master token serial number is out of range."),
+ USERIDTOKEN_SERIAL_NUMBER_OUT_OF_RANGE: new g(2007, n.USER_REAUTH, "User ID token serial number is out of range."),
+ USERIDTOKEN_TOKENDATA_INVALID: new g(2008, n.USER_REAUTH, "Invalid user ID token data."),
+ USERIDTOKEN_SIGNATURE_INVALID: new g(2009, n.USER_REAUTH, "Invalid user ID token signature."),
+ USERIDTOKEN_USERDATA_INVALID: new g(2010, n.USER_REAUTH, "Invalid user ID token user data."),
+ USERIDTOKEN_IDENTITY_INVALID: new g(2011, n.USER_REAUTH, "Invalid user ID token user identity."),
+ RESERVED_2012: new g(2012, n.USER_REAUTH, "The entity is not associated with the user."),
+ USERIDTOKEN_IDENTITY_NOT_FOUND: new g(2013, n.USER_REAUTH, "The user identity was not found."),
+ USERIDTOKEN_PASSWORD_VERSION_CHANGED: new g(2014, n.USER_REAUTH, "The user identity must be reauthenticated because the password version changed."),
+ USERIDTOKEN_USERAUTH_DATA_MISMATCH: new g(2015, n.USER_REAUTH, "The user ID token and user authentication data user identities do not match."),
+ USERIDTOKEN_TOKENDATA_MISSING: new g(2016, n.USER_REAUTH, "No user ID token data found."),
+ USERIDTOKEN_TOKENDATA_PARSE_ERROR: new g(2017, n.USER_REAUTH, "Error parsing user ID token data."),
+ USERIDTOKEN_USERDATA_PARSE_ERROR: new g(2018, n.USER_REAUTH, "Error parsing user ID token user data."),
+ USERIDTOKEN_REVOKED: new g(2019, n.USER_REAUTH, "User ID token is revoked."),
+ USERIDTOKEN_REJECTED_BY_APP: new g(2020, n.USER_REAUTH, "User ID token is rejected by the application."),
+ SERVICETOKEN_MASTERTOKEN_MISMATCH: new g(3E3, n.FAIL, "Service token master token serial number does not match master token serial number."),
+ SERVICETOKEN_USERIDTOKEN_MISMATCH: new g(3001, n.FAIL, "Service token user ID token serial number does not match user ID token serial number."),
+ SERVICETOKEN_SERVICEDATA_INVALID: new g(3002, n.FAIL, "Service token data invalid."),
+ SERVICETOKEN_MASTERTOKEN_NOT_FOUND: new g(3003, n.FAIL, "Service token is bound to an unknown master token."),
+ SERVICETOKEN_USERIDTOKEN_NOT_FOUND: new g(3004, n.FAIL, "Service token is bound to an unknown user ID token."),
+ SERVICETOKEN_MASTERTOKEN_SERIAL_NUMBER_OUT_OF_RANGE: new g(3005, n.FAIL, "Service token master token serial number is out of range."),
+ SERVICETOKEN_USERIDTOKEN_SERIAL_NUMBER_OUT_OF_RANGE: new g(3006, n.FAIL, "Service token user ID token serial number is out of range."),
+ SERVICETOKEN_TOKENDATA_INVALID: new g(3007, n.FAIL, "Invalid service token data."),
+ SERVICETOKEN_SIGNATURE_INVALID: new g(3008, n.FAIL, "Invalid service token signature."),
+ SERVICETOKEN_TOKENDATA_MISSING: new g(3009, n.FAIL, "No service token data found."),
+ UNIDENTIFIED_ENTITYAUTH_SCHEME: new g(4E3, n.FAIL, "Unable to identify entity authentication scheme."),
+ ENTITYAUTH_FACTORY_NOT_FOUND: new g(4001, n.FAIL, "No factory registered for entity authentication scheme."),
+ X509CERT_PARSE_ERROR: new g(4002, n.ENTITYDATA_REAUTH, "Error parsing X.509 certificate data."),
+ X509CERT_ENCODE_ERROR: new g(4003, n.ENTITYDATA_REAUTH, "Error encoding X.509 certificate data."),
+ X509CERT_VERIFICATION_FAILED: new g(4004, n.ENTITYDATA_REAUTH, "X.509 certificate verification failed."),
+ ENTITY_NOT_FOUND: new g(4005, n.FAIL, "Entity not recognized."),
+ INCORRECT_ENTITYAUTH_DATA: new g(4006, n.FAIL, "Entity used incorrect entity authentication data type."),
+ RSA_PUBLICKEY_NOT_FOUND: new g(4007, n.ENTITYDATA_REAUTH, "RSA public key not found."),
+ NPTICKET_GRACE_PERIOD_EXCEEDED: new g(4008, n.ENTITYDATA_REAUTH, "Fake NP-Tickets cannot be used after the grace period when the Playstation Network is up."),
+ NPTICKET_SERVICE_ID_MISSING: new g(4009, n.ENTITYDATA_REAUTH, "NP-Ticket service ID is missing."),
+ NPTICKET_SERVICE_ID_DISALLOWED: new g(4010, n.ENTITYDATA_REAUTH, "NP-Ticket service ID is not allowed."),
+ NPTICKET_NOT_YET_VALID: new g(4011, n.ENTITYDATA_REAUTH, "NP-Ticket issuance date is in the future."),
+ NPTICKET_EXPIRED: new g(4012, n.ENTITYDATA_REAUTH, "NP-Ticket has expired."),
+ NPTICKET_PRIVATE_KEY_NOT_FOUND: new g(4013, n.ENTITYDATA_REAUTH, "No private key found for NP-Ticket GUID."),
+ NPTICKET_COOKIE_VERIFICATION_FAILED: new g(4014, n.ENTITYDATA_REAUTH, "NP-Ticket cookie signature verification failed."),
+ NPTICKET_INCORRECT_COOKIE_VERSION: new g(4015, n.ENTITYDATA_REAUTH, "Incorrect NP-Ticket cookie version."),
+ NPTICKET_BROKEN: new g(4016, n.ENTITYDATA_REAUTH, "NP-Ticket broken."),
+ NPTICKET_VERIFICATION_FAILED: new g(4017, n.ENTITYDATA_REAUTH, "NP-Ticket signature verification failed."),
+ NPTICKET_ERROR: new g(4018, n.ENTITYDATA_REAUTH, "Unknown NP-Ticket TCM error."),
+ NPTICKET_CIPHER_INFO_NOT_FOUND: new g(4019, n.ENTITYDATA_REAUTH, "No cipher information found for NP-Ticket."),
+ NPTICKET_INVALID_CIPHER_INFO: new g(4020, n.ENTITYDATA_REAUTH, "Cipher information for NP-Ticket is invalid."),
+ NPTICKET_UNSUPPORTED_VERSION: new g(4021, n.ENTITYDATA_REAUTH, "Unsupported NP-Ticket version."),
+ NPTICKET_INCORRECT_KEY_LENGTH: new g(4022, n.ENTITYDATA_REAUTH, "Incorrect NP-Ticket public key length."),
+ UNSUPPORTED_ENTITYAUTH_DATA: new g(4023, n.FAIL, "Unsupported entity authentication data."),
+ CRYPTEX_RSA_KEY_SET_NOT_FOUND: new g(4024, n.FAIL, "Cryptex RSA key set not found."),
+ ENTITY_REVOKED: new g(4025, n.FAIL, "Entity is revoked."),
+ ENTITY_REJECTED_BY_APP: new g(4026, n.ENTITYDATA_REAUTH, "Entity is rejected by the application."),
+ FORCE_LOGIN: new g(5E3, n.USERDATA_REAUTH, "User must login again."),
+ NETFLIXID_COOKIES_EXPIRED: new g(5001, n.USERDATA_REAUTH, "Netflix ID cookie identity has expired."),
+ NETFLIXID_COOKIES_BLANK: new g(5002, n.USERDATA_REAUTH, "Netflix ID or Secure Netflix ID cookie is blank."),
+ UNIDENTIFIED_USERAUTH_SCHEME: new g(5003, n.FAIL, "Unable to identify user authentication scheme."),
+ USERAUTH_FACTORY_NOT_FOUND: new g(5004, n.FAIL, "No factory registered for user authentication scheme."),
+ EMAILPASSWORD_BLANK: new g(5005, n.USERDATA_REAUTH, "Email or password is blank."),
+ AUTHMGR_COMMS_FAILURE: new g(5006, n.TRANSIENT_FAILURE, "Error communicating with authentication manager."),
+ EMAILPASSWORD_INCORRECT: new g(5007, n.USERDATA_REAUTH, "Email or password is incorrect."),
+ UNSUPPORTED_USERAUTH_DATA: new g(5008, n.FAIL, "Unsupported user authentication data."),
+ SSOTOKEN_BLANK: new g(5009, n.SSOTOKEN_REJECTED, "SSO token is blank."),
+ SSOTOKEN_NOT_ASSOCIATED: new g(5010, n.USERDATA_REAUTH, "SSO token is not associated with a Netflix user."),
+ USERAUTH_USERIDTOKEN_INVALID: new g(5011, n.USERDATA_REAUTH, "User authentication data user ID token is invalid."),
+ PROFILEID_BLANK: new g(5012, n.USERDATA_REAUTH, "Profile ID is blank."),
+ UNIDENTIFIED_USERAUTH_MECHANISM: new g(5013, n.FAIL, "Unable to identify user authentication mechanism."),
+ UNSUPPORTED_USERAUTH_MECHANISM: new g(5014, n.FAIL, "Unsupported user authentication mechanism."),
+ SSOTOKEN_INVALID: new g(5015, n.SSOTOKEN_REJECTED, "SSO token invalid."),
+ USERAUTH_MASTERTOKEN_MISSING: new g(5016, n.USERDATA_REAUTH, "User authentication required master token is missing."),
+ ACCTMGR_COMMS_FAILURE: new g(5017, n.TRANSIENT_FAILURE, "Error communicating with the account manager."),
+ SSO_ASSOCIATION_FAILURE: new g(5018, n.TRANSIENT_FAILURE, "SSO user association failed."),
+ SSO_DISASSOCIATION_FAILURE: new g(5019, n.TRANSIENT_FAILURE, "SSO user disassociation failed."),
+ MDX_USERAUTH_VERIFICATION_FAILED: new g(5020, n.USERDATA_REAUTH, "MDX user authentication data verification failed."),
+ USERAUTH_USERIDTOKEN_NOT_DECRYPTED: new g(5021, n.USERDATA_REAUTH, "User authentication data user ID token is not decrypted or verified."),
+ MDX_USERAUTH_ACTION_INVALID: new g(5022, n.USERDATA_REAUTH, "MDX user authentication data action is invalid."),
+ CTICKET_DECRYPT_ERROR: new g(5023, n.USERDATA_REAUTH, "CTicket decryption failed."),
+ USERAUTH_MASTERTOKEN_INVALID: new g(5024, n.USERDATA_REAUTH, "User authentication data master token is invalid."),
+ USERAUTH_MASTERTOKEN_NOT_DECRYPTED: new g(5025, n.USERDATA_REAUTH, "User authentication data master token is not decrypted or verified."),
+ CTICKET_CRYPTOCONTEXT_ERROR: new g(5026, n.USERDATA_REAUTH, "Error creating CTicket crypto context."),
+ MDX_PIN_BLANK: new g(5027, n.USERDATA_REAUTH, "MDX controller or target PIN is blank."),
+ MDX_PIN_MISMATCH: new g(5028, n.USERDATA_REAUTH, "MDX controller and target PIN mismatch."),
+ MDX_USER_UNKNOWN: new g(5029, n.USERDATA_REAUTH, "MDX controller user ID token or CTicket is not decrypted or verified."),
+ USERAUTH_USERIDTOKEN_MISSING: new g(5030, n.USERDATA_REAUTH, "User authentication required user ID token is missing."),
+ MDX_CONTROLLERDATA_INVALID: new g(5031, n.USERDATA_REAUTH, "MDX controller authentication data is invalid."),
+ USERAUTH_ENTITY_MISMATCH: new g(5032, n.USERDATA_REAUTH, "User authentication data does not match entity identity."),
+ USERAUTH_INCORRECT_DATA: new g(5033, n.FAIL, "Entity used incorrect key request data type"),
+ SSO_ASSOCIATION_WITH_NONMEMBER: new g(5034, n.USERDATA_REAUTH, "SSO user association failed because the customer is not a member."),
+ SSO_ASSOCIATION_WITH_FORMERMEMBER: new g(5035, n.USERDATA_REAUTH, "SSO user association failed because the customer is a former member."),
+ SSO_ASSOCIATION_CONFLICT: new g(5036, n.USERDATA_REAUTH, "SSO user association failed because the token identifies a different member."),
+ USER_REJECTED_BY_APP: new g(5037, n.USERDATA_REAUTH, "User is rejected by the application."),
+ PROFILE_SWITCH_DISALLOWED: new g(5038, n.TRANSIENT_FAILURE, "Unable to switch user profile."),
+ MEMBERSHIPCLIENT_COMMS_FAILURE: new g(5039, n.TRANSIENT_FAILURE, "Error communicating with the membership manager."),
+ USERIDTOKEN_IDENTITY_NOT_ASSOCIATED_WITH_ENTITY: new g(5040, n.USER_REAUTH, "The entity is not associated with the user."),
+ UNSUPPORTED_COMPRESSION: new g(6E3, n.FAIL, "Unsupported compression algorithm."),
+ COMPRESSION_ERROR: new g(6001, n.FAIL, "Error compressing data."),
+ UNCOMPRESSION_ERROR: new g(6002, n.FAIL, "Error uncompressing data."),
+ MESSAGE_ENTITY_NOT_FOUND: new g(6003, n.FAIL, "Message header entity authentication data or master token not found."),
+ PAYLOAD_MESSAGE_ID_MISMATCH: new g(6004, n.FAIL, "Payload chunk message ID does not match header message ID ."),
+ PAYLOAD_SEQUENCE_NUMBER_MISMATCH: new g(6005, n.FAIL, "Payload chunk sequence number does not match expected sequence number."),
+ PAYLOAD_VERIFICATION_FAILED: new g(6006, n.FAIL, "Payload chunk payload signature verification failed."),
+ MESSAGE_DATA_MISSING: new g(6007, n.FAIL, "No message data found."),
+ MESSAGE_FORMAT_ERROR: new g(6008, n.FAIL, "Malformed message data."),
+ MESSAGE_VERIFICATION_FAILED: new g(6009, n.FAIL, "Message header/error data signature verification failed."),
+ HEADER_DATA_MISSING: new g(6010, n.FAIL, "No header data found."),
+ PAYLOAD_DATA_MISSING: new g(6011, n.FAIL, "No payload data found in non-EOM payload chunk."),
+ PAYLOAD_DATA_CORRUPT: new g(6012, n.FAIL, "Corrupt payload data found in non-EOM payload chunk."),
+ UNIDENTIFIED_COMPRESSION: new g(6013, n.FAIL, "Unidentified compression algorithm."),
+ MESSAGE_EXPIRED: new g(6014, n.EXPIRED, "Message expired and not renewable. Rejected."),
+ MESSAGE_ID_OUT_OF_RANGE: new g(6015, n.FAIL, "Message ID is out of range."),
+ INTERNAL_CODE_NEGATIVE: new g(6016, n.FAIL, "Error header internal code is negative."),
+ UNEXPECTED_RESPONSE_MESSAGE_ID: new g(6017, n.FAIL, "Unexpected response message ID. Possible replay."),
+ RESPONSE_REQUIRES_ENCRYPTION: new g(6018, n.KEYX_REQUIRED, "Message response requires encryption."),
+ PAYLOAD_SEQUENCE_NUMBER_OUT_OF_RANGE: new g(6019, n.FAIL, "Payload chunk sequence number is out of range."),
+ PAYLOAD_MESSAGE_ID_OUT_OF_RANGE: new g(6020, n.FAIL, "Payload chunk message ID is out of range."),
+ MESSAGE_REPLAYED: new g(6021, n.REPLAYED, "Non-replayable message replayed."),
+ INCOMPLETE_NONREPLAYABLE_MESSAGE: new g(6022, n.FAIL, "Non-replayable message sent non-renewable or without key request data or without a master token."),
+ HEADER_SIGNATURE_INVALID: new g(6023, n.FAIL, "Invalid Header signature."),
+ HEADER_DATA_INVALID: new g(6024, n.FAIL, "Invalid header data."),
+ PAYLOAD_INVALID: new g(6025, n.FAIL, "Invalid payload."),
+ PAYLOAD_SIGNATURE_INVALID: new g(6026, n.FAIL, "Invalid payload signature."),
+ RESPONSE_REQUIRES_MASTERTOKEN: new g(6027, n.KEYX_REQUIRED, "Message response requires a master token."),
+ RESPONSE_REQUIRES_USERIDTOKEN: new g(6028, n.USER_REAUTH, "Message response requires a user ID token."),
+ REQUEST_REQUIRES_USERAUTHDATA: new g(6029, n.FAIL, "User-associated message requires user authentication data."),
+ UNEXPECTED_MESSAGE_SENDER: new g(6030, n.FAIL, "Message sender is equal to the local entity or not the master token entity."),
+ NONREPLAYABLE_MESSAGE_REQUIRES_MASTERTOKEN: new g(6031, n.FAIL, "Non-replayable message requires a master token."),
+ NONREPLAYABLE_ID_OUT_OF_RANGE: new g(6032, n.FAIL, "Non-replayable message non-replayable ID is out of range."),
+ MESSAGE_SERVICETOKEN_MISMATCH: new g(6033, n.FAIL, "Service token master token or user ID token serial number does not match the message token serial numbers."),
+ MESSAGE_PEER_SERVICETOKEN_MISMATCH: new g(6034, n.FAIL, "Peer service token master token or user ID token serial number does not match the message peer token serial numbers."),
+ RESPONSE_REQUIRES_INTEGRITY_PROTECTION: new g(6035, n.KEYX_REQUIRED, "Message response requires integrity protection."),
+ HANDSHAKE_DATA_MISSING: new g(6036, n.FAIL, "Handshake message is not renewable or does not contain key request data."),
+ MESSAGE_RECIPIENT_MISMATCH: new g(6037, n.FAIL, "Message recipient does not match local identity."),
+ UNIDENTIFIED_KEYX_SCHEME: new g(7E3, n.FAIL, "Unable to identify key exchange scheme."),
+ KEYX_FACTORY_NOT_FOUND: new g(7001, n.FAIL, "No factory registered for key exchange scheme."),
+ KEYX_REQUEST_NOT_FOUND: new g(7002, n.FAIL, "No key request found matching header key response data."),
+ UNIDENTIFIED_KEYX_KEY_ID: new g(7003, n.FAIL, "Unable to identify key exchange key ID."),
+ UNSUPPORTED_KEYX_KEY_ID: new g(7004, n.FAIL, "Unsupported key exchange key ID."),
+ UNIDENTIFIED_KEYX_MECHANISM: new g(7005, n.FAIL, "Unable to identify key exchange mechanism."),
+ UNSUPPORTED_KEYX_MECHANISM: new g(7006, n.FAIL, "Unsupported key exchange mechanism."),
+ KEYX_RESPONSE_REQUEST_MISMATCH: new g(7007, n.FAIL, "Key exchange response does not match request."),
+ KEYX_PRIVATE_KEY_MISSING: new g(7008, n.FAIL, "Key exchange private key missing."),
+ UNKNOWN_KEYX_PARAMETERS_ID: new g(7009, n.FAIL, "Key exchange parameters ID unknown or invalid."),
+ KEYX_MASTER_TOKEN_MISSING: new g(7010, n.FAIL, "Master token required for key exchange is missing."),
+ KEYX_INVALID_PUBLIC_KEY: new g(7011, n.FAIL, "Key exchange public key is invalid."),
+ KEYX_PUBLIC_KEY_MISSING: new g(7012, n.FAIL, "Key exchange public key missing."),
+ KEYX_WRAPPING_KEY_MISSING: new g(7013, n.FAIL, "Key exchange wrapping key missing."),
+ KEYX_WRAPPING_KEY_ID_MISSING: new g(7014, n.FAIL, "Key exchange wrapping key ID missing."),
+ KEYX_INVALID_WRAPPING_KEY: new g(7015, n.FAIL, "Key exchange wrapping key is invalid."),
+ KEYX_INCORRECT_DATA: new g(7016, n.FAIL, "Entity used incorrect wrapping key data type"),
+ CRYPTEX_ENCRYPTION_ERROR: new g(8E3, n.FAIL, "Error encrypting data with cryptex."),
+ CRYPTEX_DECRYPTION_ERROR: new g(8001, n.FAIL, "Error decrypting data with cryptex."),
+ CRYPTEX_MAC_ERROR: new g(8002, n.FAIL, "Error computing MAC with cryptex."),
+ CRYPTEX_VERIFY_ERROR: new g(8003, n.FAIL, "Error verifying MAC with cryptex."),
+ CRYPTEX_CONTEXT_CREATION_FAILURE: new g(8004, n.FAIL, "Error creating cryptex cipher or MAC context."),
+ DATAMODEL_DEVICE_ACCESS_ERROR: new g(8005, n.TRANSIENT_FAILURE, "Error accessing data model device."),
+ DATAMODEL_DEVICETYPE_NOT_FOUND: new g(8006, n.FAIL, "Data model device type not found."),
+ CRYPTEX_KEYSET_UNSUPPORTED: new g(8007, n.FAIL, "Cryptex key set not supported."),
+ CRYPTEX_PRIVILEGE_EXCEPTION: new g(8008, n.FAIL, "Insufficient privileges for cryptex operation."),
+ CRYPTEX_WRAP_ERROR: new g(8009, n.FAIL, "Error wrapping data with cryptex."),
+ CRYPTEX_UNWRAP_ERROR: new g(8010, n.FAIL, "Error unwrapping data with cryptex."),
+ CRYPTEX_COMMS_FAILURE: new g(8011, n.TRANSIENT_FAILURE, "Error comunicating with cryptex."),
+ CRYPTEX_SIGN_ERROR: new g(8012, n.FAIL, "Error computing signature with cryptex."),
+ INTERNAL_EXCEPTION: new g(9E3, n.TRANSIENT_FAILURE, "Internal exception."),
+ MSL_COMMS_FAILURE: new g(9001, n.FAIL, "Error communicating with MSL entity."),
+ NONE: new g(9999, n.FAIL, "Special unit test error.")
+ });
+ Object.freeze(g);
+ (function () {
+ E = oa.Class.create(Error());
+ E.mixin({
+ init: function (g, q, n) {
+ var z,
+ N,
+ ea;
+ function t() {
+ return N ? N : this.cause && this.cause instanceof E ? this.cause.messageId : ca;
+ }
+ Error.captureStackTrace && Error.captureStackTrace(this, this.constructor);
+ z = g.message;
+ q && (z += " [" + q + "]");
+ ea = this.stack;
+ Object.defineProperties(this, {
+ message: {
+ value: z,
+ writable: !1,
+ configurable: !0
+ },
+ error: {
+ value: g,
+ writable: !1,
+ configurable: !0
+ },
+ cause: {
+ value: n,
+ writable: !1,
+ configurable: !0
+ },
+ name: {
+ value: "MslException",
+ writable: !1,
+ configurable: !0
+ },
+ masterToken: {
+ value: null,
+ writable: !0,
+ configurable: !1
+ },
+ entityAuthenticationData: {
+ value: null,
+ writable: !0,
+ configurable: !1
+ },
+ userIdToken: {
+ value: null,
+ writable: !0,
+ configurable: !1
+ },
+ userAuthenticationData: {
+ value: null,
+ writable: !0,
+ configurable: !1
+ },
+ messageId: {
+ get: t,
+ set: function (g) {
+ if (0 > g || g > Na)
+ throw new RangeError("Message ID " + g + " is outside the valid range.");
+ t() || (N = g);
+ },
+ configurable: !0
+ },
+ stack: {
+ get: function () {
+ var g;
+ g = this.toString();
+ ea && (g += "\n" + ea);
+ n && n.stack && (g += "\nCaused by " + n.stack);
+ return g;
+ },
+ configurable: !0
+ }
+ });
+ },
+ setEntity: function (g) {
+ !g || this.masterToken || this.entityAuthenticationData || (g instanceof jb ? this.masterToken = g : g instanceof Vb && (this.entityAuthenticationData = g));
+ return this;
+ },
+ setUser: function (g) {
+ !g || this.userIdToken || this.userAuthenticationData || (g instanceof hc ? this.userIdToken = g : g instanceof Mb && (this.userAuthenticationData = g));
+ return this;
+ },
+ setMessageId: function (g) {
+ this.messageId = g;
+ return this;
+ },
+ toString: function () {
+ return this.name + ": " + this.message;
+ }
+ });
+ })();
+ N = E.extend({
+ init: function Uc(g, q, n) {
+ Uc.base.call(this, g, q, n);
+ Object.defineProperties(this, {
+ name: {
+ value: "MslCryptoException",
+ writable: !1,
+ configurable: !0
+ }
+ });
+ }
+ });
+ ga = E.extend({
+ init: function sb(g, q, n) {
+ sb.base.call(this, g, q, n);
+ Object.defineProperties(this, {
+ name: {
+ value: "MslEncodingException",
+ writable: !1,
+ configurable: !0
+ }
+ });
+ }
+ });
+ Bb = E.extend({
+ init: function Xa(g, q, n) {
+ Xa.base.call(this, g, q, n);
+ Object.defineProperties(this, {
+ name: {
+ value: "MslEntityAuthException",
+ writable: !1,
+ configurable: !0
+ }
+ });
+ }
+ });
+ (function () {
+ nb = oa.Class.create(Error());
+ nb.mixin({
+ init: function (g, q, n) {
+ var t;
+ Error.captureStackTrace && Error.captureStackTrace(this, this.constructor);
+ t = this.stack;
+ Object.defineProperties(this, {
+ message: {
+ value: g,
+ writable: !1,
+ configurable: !1
+ },
+ cause: {
+ value: q,
+ writable: !1,
+ configurable: !1
+ },
+ requestCause: {
+ value: n,
+ writable: !1,
+ configurable: !1
+ },
+ name: {
+ value: "MslErrorResponseException",
+ writable: !1,
+ configurable: !0
+ },
+ stack: {
+ get: function () {
+ var g;
+ g = this.toString();
+ t && (g += "\n" + t);
+ q && q.stack && (g += "\nCaused by " + q.stack);
+ return g;
+ },
+ configurable: !0
+ }
+ });
+ },
+ toString: function () {
+ return this.name + ": " + this.message;
+ }
+ });
+ })();
+ (function () {
+ ab = oa.Class.create(Error());
+ ab.mixin({
+ init: function (g, q) {
+ var n;
+ Error.captureStackTrace && Error.captureStackTrace(this, this.constructor);
+ n = this.stack;
+ Object.defineProperties(this, {
+ message: {
+ value: g,
+ writable: !1,
+ configurable: !1
+ },
+ cause: {
+ value: q,
+ writable: !1,
+ configurable: !1
+ },
+ name: {
+ value: "MslIoException",
+ writable: !1,
+ configurable: !0
+ },
+ stack: {
+ get: function () {
+ var g;
+ g = this.toString();
+ n && (g += "\n" + n);
+ q && q.stack && (g += "\nCaused by " + q.stack);
+ return g;
+ },
+ configurable: !0
+ }
+ });
+ },
+ toString: function () {
+ return this.name + ": " + this.message;
+ }
+ });
+ })();
+ (function () {
+ ea = oa.Class.create(Error());
+ ea.mixin({
+ init: function (g, q) {
+ var n;
+ Error.captureStackTrace && Error.captureStackTrace(this, this.constructor);
+ n = this.stack;
+ Object.defineProperties(this, {
+ message: {
+ value: g,
+ writable: !1,
+ configurable: !1
+ },
+ cause: {
+ value: q,
+ writable: !1,
+ configurable: !1
+ },
+ name: {
+ value: "MslInternalException",
+ writable: !1,
+ configurable: !0
+ },
+ stack: {
+ get: function () {
+ var g;
+ g = this.toString();
+ n && (g += "\n" + n);
+ q && q.stack && (g += "\nCaused by " + q.stack);
+ return g;
+ },
+ configurable: !0
+ }
+ });
+ },
+ toString: function () {
+ return this.name + ": " + this.message;
+ }
+ });
+ })();
+ (function () {
+ cb = oa.Class.create(Error());
+ cb.mixin({
+ init: function (g, q) {
+ var n;
+ Error.captureStackTrace && Error.captureStackTrace(this, this.constructor);
+ n = this.stack;
+ Object.defineProperties(this, {
+ message: {
+ value: g,
+ writable: !1,
+ configurable: !1
+ },
+ cause: {
+ value: q,
+ writable: !1,
+ configurable: !1
+ },
+ name: {
+ value: "MslInterruptedException",
+ writable: !1,
+ configurable: !0
+ },
+ stack: {
+ get: function () {
+ var g;
+ g = this.toString();
+ n && (g += "\n" + n);
+ q && q.stack && (g += "\nCaused by " + q.stack);
+ return g;
+ },
+ configurable: !0
+ }
+ });
+ },
+ toString: function () {
+ return this.name + ": " + this.message;
+ }
+ });
+ })();
+ Ra = E.extend({
+ init: function zb(g, q, n) {
+ zb.base.call(this, g, q, n);
+ Object.defineProperties(this, {
+ name: {
+ value: "MslKeyExchangeException",
+ writable: !1,
+ configurable: !0
+ }
+ });
+ }
+ });
+ Wb = E.extend({
+ init: function Vc(g, q) {
+ Vc.base.call(this, g);
+ Object.defineProperties(this, {
+ masterToken: {
+ value: q,
+ writable: !1,
+ configurable: !1
+ },
+ name: {
+ value: "MslMasterTokenException",
+ writable: !1,
+ configurable: !0
+ }
+ });
+ }
+ });
+ Ga = E.extend({
+ init: function La(g, q, n) {
+ La.base.call(this, g, q, n);
+ Object.defineProperties(this, {
+ name: {
+ value: "MslMessageException",
+ writable: !1,
+ configurable: !0
+ }
+ });
+ }
+ });
+ Da = E.extend({
+ init: function ba(g, q, n) {
+ ba.base.call(this, g, q, n);
+ Object.defineProperties(this, {
+ name: {
+ value: "MslUserAuthException",
+ writable: !1,
+ configurable: !0
+ }
+ });
+ }
+ });
+ (function () {
+ var L;
+ function g(g) {
+ return "undefined" === typeof g ? !1 : g;
+ }
+ function q(g) {
+ return g && g.length ? (fb === L.V2014_02 && (g = g.map(function (g) {
+ return "wrap" == g ? "wrapKey" : "unwrap" == g ? "unwrapKey" : g;
+ })), g) : fb === L.V2014_02 ? ("encrypt decrypt sign verify deriveKey wrapKey unwrapKey").split(" ") : ("encrypt decrypt sign verify deriveKey wrap unwrap").split(" ");
+ }
+ function n(g, v, q, n, I) {
+ return Promise.resolve().then(function () {
+ return Wa.importKey(g, v, q, n, I);
+ })["catch"](function (x) {
+ var F;
+ if ("spki" !== g && "pkcs8" !== g)
+ throw x;
+ x = ASN1.webCryptoAlgorithmToJwkAlg(q);
+ F = ASN1.webCryptoUsageToJwkKeyOps(I);
+ x = ASN1.rsaDerToJwk(v, x, F, n);
+ if (!x)
+ throw Error("Could not make valid JWK from DER input");
+ x = JSON.stringify(x);
+ return Wa.importKey("jwk", dc(x), q, n, I);
+ });
+ }
+ function z(g, v) {
+ return Promise.resolve().then(function () {
+ return Wa.exportKey(g, v);
+ })["catch"](function (q) {
+ if ("spki" !== g && "pkcs8" !== g)
+ throw q;
+ return Wa.exportKey("jwk", v).then(function (g) {
+ g = JSON.parse(cc(new Uint8Array(g)));
+ g = ASN1.jwkToRsaDer(g);
+ if (!g)
+ throw Error("Could not make valid DER from JWK input");
+ return g.getDer().buffer;
+ });
+ });
+ }
+ L = Cc = {
+ LEGACY: 1,
+ V2014_01: 2,
+ V2014_02: 3,
+ LATEST: 3
+ };
+ Object.freeze(Cc);
+ fb = L.LATEST;
+ Ka = {
+ encrypt: function (g, v, q) {
+ switch (fb) {
+ case L.LEGACY:
+ return new Promise(function (y, n) {
+ var x;
+ x = Wa.encrypt(g, v, q);
+ x.oncomplete = function (g) {
+ y(g.target.result);
+ };
+ x.onerror = function (g) {
+ n(g);
+ };
+ });
+ case L.V2014_01:
+ case L.V2014_02:
+ return Wa.encrypt(g, v, q).then(function (g) {
+ return new Uint8Array(g);
+ });
+ default:
+ throw Error("Unsupported Web Crypto version " + WEB_CRYPTO_VERSION + ".");
+ }
+ },
+ decrypt: function (g, v, q) {
+ switch (fb) {
+ case L.LEGACY:
+ return new Promise(function (y, n) {
+ var x;
+ x = Wa.decrypt(g, v, q);
+ x.oncomplete = function (g) {
+ y(g.target.result);
+ };
+ x.onerror = function (g) {
+ n(g);
+ };
+ });
+ case L.V2014_01:
+ case L.V2014_02:
+ return Wa.decrypt(g, v, q).then(function (g) {
+ return new Uint8Array(g);
+ });
+ default:
+ throw Error("Unsupported Web Crypto version " + WEB_CRYPTO_VERSION + ".");
+ }
+ },
+ sign: function (g, v, q) {
+ switch (fb) {
+ case L.LEGACY:
+ return new Promise(function (y, n) {
+ var x;
+ x = Wa.sign(g, v, q);
+ x.oncomplete = function (g) {
+ y(g.target.result);
+ };
+ x.onerror = function (g) {
+ n(g);
+ };
+ });
+ case L.V2014_01:
+ case L.V2014_02:
+ return Wa.sign(g, v, q).then(function (g) {
+ return new Uint8Array(g);
+ });
+ default:
+ throw Error("Unsupported Web Crypto version " + WEB_CRYPTO_VERSION + ".");
+ }
+ },
+ verify: function (g, v, q, n) {
+ switch (fb) {
+ case L.LEGACY:
+ return new Promise(function (y, x) {
+ var F;
+ F = Wa.verify(g, v, q, n);
+ F.oncomplete = function (g) {
+ y(g.target.result);
+ };
+ F.onerror = function (g) {
+ x(g);
+ };
+ });
+ case L.V2014_01:
+ case L.V2014_02:
+ return Wa.verify(g, v, q, n);
+ default:
+ throw Error("Unsupported Web Crypto version " + WEB_CRYPTO_VERSION + ".");
+ }
+ },
+ digest: function (g, v) {
+ switch (fb) {
+ case L.LEGACY:
+ return new Promise(function (q, n) {
+ var y;
+ y = Wa.digest(g, v);
+ y.oncomplete = function (g) {
+ q(g.target.result);
+ };
+ y.onerror = function (g) {
+ n(g);
+ };
+ });
+ case L.V2014_01:
+ case L.V2014_02:
+ return Wa.digest(g, v).then(function (g) {
+ return new Uint8Array(g);
+ });
+ default:
+ throw Error("Unsupported Web Crypto version " + WEB_CRYPTO_VERSION + ".");
+ }
+ },
+ generateKey: function (n, v, y) {
+ var J,
+ I;
+ J = g(v);
+ I = q(y);
+ switch (fb) {
+ case L.LEGACY:
+ return new Promise(function (g, v) {
+ var x;
+ x = Wa.generateKey(n, J, I);
+ x.oncomplete = function (x) {
+ g(x.target.result);
+ };
+ x.onerror = function (g) {
+ v(g);
+ };
+ });
+ case L.V2014_01:
+ case L.V2014_02:
+ return Wa.generateKey(n, J, I);
+ default:
+ throw Error("Unsupported Web Crypto version " + WEB_CRYPTO_VERSION + ".");
+ }
+ },
+ deriveKey: function (n, v, y, D, I) {
+ var x,
+ F;
+ x = g(D);
+ F = q(I);
+ switch (fb) {
+ case L.LEGACY:
+ return new Promise(function (g, q) {
+ var I;
+ I = Wa.deriveKey(n, v, y, x, F);
+ I.oncomplete = function (x) {
+ g(x.target.result);
+ };
+ I.onerror = function (g) {
+ q(g);
+ };
+ });
+ case L.V2014_01:
+ case L.V2014_02:
+ return Wa.deriveKey(n, v, y, x, F);
+ default:
+ throw Error("Unsupported Web Crypto version " + WEB_CRYPTO_VERSION + ".");
+ }
+ },
+ importKey: function (J, v, y, D, I) {
+ var x,
+ F;
+ x = g(D);
+ F = q(I);
+ switch (fb) {
+ case L.LEGACY:
+ return new Promise(function (g, q) {
+ var n;
+ n = Wa.importKey(J, v, y, x, F);
+ n.oncomplete = function (x) {
+ g(x.target.result);
+ };
+ n.onerror = function (g) {
+ q(g);
+ };
+ });
+ case L.V2014_01:
+ case L.V2014_02:
+ return n(J, v, y, x, F);
+ default:
+ throw Error("Unsupported Web Crypto version " + WEB_CRYPTO_VERSION + ".");
+ }
+ },
+ exportKey: function (g, v) {
+ switch (fb) {
+ case L.LEGACY:
+ return new Promise(function (q, n) {
+ var y;
+ y = Wa.exportKey(g, v);
+ y.oncomplete = function (g) {
+ q(g.target.result);
+ };
+ y.onerror = function (g) {
+ n(g);
+ };
+ });
+ case L.V2014_01:
+ case L.V2014_02:
+ return z(g, v).then(function (g) {
+ return new Uint8Array(g);
+ });
+ default:
+ throw Error("Unsupported Web Crypto version " + WEB_CRYPTO_VERSION + ".");
+ }
+ },
+ wrapKey: function (g, v, q, n) {
+ switch (fb) {
+ case L.LEGACY:
+ return new Promise(function (g, x) {
+ var F;
+ F = Wa.wrapKey(v, q, n);
+ F.oncomplete = function (x) {
+ g(x.target.result);
+ };
+ F.onerror = function (g) {
+ x(g);
+ };
+ });
+ case L.V2014_01:
+ case L.V2014_02:
+ return Wa.wrapKey(g, v, q, n).then(function (g) {
+ return new Uint8Array(g);
+ });
+ default:
+ throw Error("Unsupported Web Crypto version " + WEB_CRYPTO_VERSION + ".");
+ }
+ },
+ unwrapKey: function (n, v, y, D, I, x, F) {
+ switch (fb) {
+ case L.LEGACY:
+ return new Promise(function (g, x) {
+ var q;
+ q = Wa.unwrapKey(v, I, y);
+ q.oncomplete = function (x) {
+ g(x.target.result);
+ };
+ q.onerror = function (g) {
+ x(g);
+ };
+ });
+ case L.V2014_01:
+ case L.V2014_02:
+ return Wa.unwrapKey(n, v, y, D, I, g(x), q(F));
+ default:
+ throw Error("Unsupported Web Crypto version " + WEB_CRYPTO_VERSION + ".");
+ }
+ }
+ };
+ Ac && Ac.getKeyByName && (Ka.getKeyByName = function (g) {
+ switch (fb) {
+ case L.LEGACY:
+ return new Promise(function (v, q) {
+ var y;
+ y = Ac.getKeyByName(g);
+ y.oncomplete = function (g) {
+ v(g.target.result);
+ };
+ y.onerror = function (g) {
+ q(g);
+ };
+ });
+ case L.V2014_01:
+ case L.V2014_02:
+ return Ac.getKeyByName(g);
+ default:
+ throw Error("Unsupported Web Crypto version " + WEB_CRYPTO_VERSION + ".");
+ }
+ });
+ t.netflix = t.netflix || ({});
+ t.netflix.crypto = Ka;
+ })();
+ Cb = {
+ name: "AES-KW"
+ };
+ tb = {
+ name: "AES-CBC"
+ };
+ ub = {
+ name: "HMAC",
+ hash: {
+ name: "SHA-256"
+ }
+ };
+ Dc = {
+ name: "RSA-OAEP",
+ hash: {
+ name: "SHA-1"
+ }
+ };
+ ad = {
+ name: "RSAES-PKCS1-v1_5"
+ };
+ Kd = {
+ name: "RSASSA-PKCS1-v1_5",
+ hash: {
+ name: "SHA-256"
+ }
+ };
+ Nb = ["encrypt", "decrypt"];
+ Ob = ["wrap", "unwrap"];
+ Xb = ["sign", "verify"];
+ (function () {
+ bd = oa.Class.create({
+ init: function (n, t, z) {
+ var L;
+ function ba(g) {
+ q(t, function () {
+ var v;
+ v = g ? ra(g) : ca;
+ Object.defineProperties(L, {
+ rawKey: {
+ value: n,
+ writable: !1,
+ configurable: !1
+ },
+ keyData: {
+ value: g,
+ writable: !1,
+ configurable: !1
+ },
+ keyDataB64: {
+ value: v,
+ writable: !1,
+ configurable: !1
+ }
+ });
+ return this;
+ }, L);
+ }
+ L = this;
+ q(t, function () {
+ if (!n || "object" != typeof n)
+ throw new N(g.INVALID_SYMMETRIC_KEY);
+ !z && n.extractable ? Ka.exportKey("raw", n).then(function (g) {
+ ba(new Uint8Array(g));
+ }, function (q) {
+ t.error(new N(g.KEY_EXPORT_ERROR, "raw"));
+ }) : ba(z);
+ }, L);
+ },
+ size: function () {
+ return this.keyData.length;
+ },
+ toByteArray: function () {
+ return this.keyData;
+ },
+ toBase64: function () {
+ return this.keyDataB64;
+ }
+ });
+ fc = function (g, q) {
+ new bd(g, q);
+ };
+ Db = function (n, t, z, E) {
+ q(E, function () {
+ try {
+ n = "string" == typeof n ? xa(n) : n;
+ } catch (L) {
+ throw new N(g.INVALID_SYMMETRIC_KEY, "keydata " + n, L);
+ }
+ Ka.importKey("raw", n, t, !0, z).then(function (g) {
+ new bd(g, E, n);
+ }, function (q) {
+ E.error(new N(g.INVALID_SYMMETRIC_KEY));
+ });
+ });
+ };
+ })();
+ (function () {
+ Ec = oa.Class.create({
+ init: function (n, t, z) {
+ var L;
+ function ba(g) {
+ q(t, function () {
+ Object.defineProperties(L, {
+ rawKey: {
+ value: n,
+ writable: !1,
+ configurable: !1
+ },
+ encoded: {
+ value: g,
+ writable: !1,
+ configurable: !1
+ }
+ });
+ return this;
+ }, L);
+ }
+ L = this;
+ q(t, function () {
+ if (!n || "object" != typeof n || "public" != n.type)
+ throw new TypeError("Only original public crypto keys are supported.");
+ !z && n.extractable ? Ka.exportKey("spki", n).then(function (g) {
+ ba(new Uint8Array(g));
+ }, function (q) {
+ t.error(new N(g.KEY_EXPORT_ERROR, "spki"));
+ }) : ba(z);
+ });
+ },
+ getEncoded: function () {
+ return this.encoded;
+ }
+ });
+ Tb = function (g, q) {
+ new Ec(g, q);
+ };
+ cd = function (n, t, z, E) {
+ q(E, function () {
+ try {
+ n = "string" == typeof n ? xa(n) : n;
+ } catch (L) {
+ throw new N(g.INVALID_PUBLIC_KEY, "spki " + n, L);
+ }
+ Ka.importKey("spki", n, t, !0, z).then(function (g) {
+ new Ec(g, E, n);
+ }, function (q) {
+ E.error(new N(g.INVALID_PUBLIC_KEY));
+ });
+ });
+ };
+ })();
+ (function () {
+ Ld = oa.Class.create({
+ init: function (n, t, z) {
+ var L;
+ function E(g) {
+ q(t, function () {
+ Object.defineProperties(L, {
+ rawKey: {
+ value: n,
+ writable: !1,
+ configurable: !1
+ },
+ encoded: {
+ value: g,
+ writable: !1,
+ configurable: !1
+ }
+ });
+ return this;
+ }, L);
+ }
+ L = this;
+ q(t, function () {
+ if (!n || "object" != typeof n || "private" != n.type)
+ throw new TypeError("Only original private crypto keys are supported.");
+ !z && n.extractable ? Ka.exportKey("pkcs8", n).then(function (g) {
+ E(new Uint8Array(g));
+ }, function (q) {
+ t.error(new N(g.KEY_EXPORT_ERROR, "pkcs8"));
+ }) : E(z);
+ });
+ },
+ getEncoded: function () {
+ return this.encoded;
+ }
+ });
+ gc = function (g, q) {
+ new Ld(g, q);
+ };
+ })();
+ (function () {
+ var n;
+ n = gd = {
+ V1: 1,
+ V2: 2
+ };
+ dd = oa.Class.create({
+ init: function (g, t, z, L) {
+ q(L, function () {
+ var q,
+ v,
+ y,
+ D;
+ q = n.V1;
+ v = g;
+ y = null;
+ for (D in Bc) {
+ if (Bc[D] == g) {
+ q = n.V2;
+ v = null;
+ y = g;
+ break;
+ }
+ }
+ Object.defineProperties(this, {
+ version: {
+ value: q,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ keyId: {
+ value: v,
+ writable: !1,
+ configurable: !1
+ },
+ cipherSpec: {
+ value: y,
+ writable: !1,
+ configurable: !1
+ },
+ iv: {
+ value: t,
+ writable: !1,
+ configurable: !1
+ },
+ ciphertext: {
+ value: z,
+ writable: !1,
+ configurable: !1
+ }
+ });
+ return this;
+ }, this);
+ },
+ toJSON: function () {
+ var g;
+ g = {};
+ switch (this.version) {
+ case n.V1:
+ g.keyid = this.keyId;
+ this.iv && (g.iv = ra(this.iv));
+ g.ciphertext = ra(this.ciphertext);
+ g.sha256 = "AA==";
+ break;
+ case n.V2:
+ g.version = this.version;
+ g.cipherspec = this.cipherSpec;
+ this.iv && (g.iv = ra(this.iv));
+ g.ciphertext = ra(this.ciphertext);
+ break;
+ default:
+ throw new ea("Ciphertext envelope version " + this.version + " encoding unsupported.");
+ }
+ return g;
+ }
+ });
+ ed = function (g, q, n, L) {
+ new dd(g, q, n, L);
+ };
+ fd = function (t, z, E) {
+ q(E, function () {
+ var q,
+ J,
+ v,
+ y,
+ D,
+ I,
+ x;
+ q = t.keyid;
+ J = t.cipherspec;
+ v = t.iv;
+ y = t.ciphertext;
+ D = t.sha256;
+ if (!z)
+ if ((z = t.version) && "number" === typeof z && z === z) {
+ I = !1;
+ for (x in n) {
+ if (n[x] == z) {
+ I = !0;
+ break;
+ }
+ }
+ if (!I)
+ throw new N(g.UNIDENTIFIED_CIPHERTEXT_ENVELOPE, "ciphertext envelope " + JSON.stringify(t));
+ } else
+ z = n.V1;
+ switch (z) {
+ case n.V1:
+ if ("string" !== typeof q || v && "string" !== typeof v || "string" !== typeof y || "string" !== typeof D)
+ throw new ga(g.JSON_PARSE_ERROR, "ciphertext envelope " + JSON.stringify(t));
+ break;
+ case n.V2:
+ x = t.version;
+ if (x != n.V2)
+ throw new N(g.UNIDENTIFIED_CIPHERTEXT_ENVELOPE, "ciphertext envelope " + JSON.stringify(t));
+ if ("string" !== typeof J || v && "string" !== typeof v || "string" !== typeof y)
+ throw new ga(g.JSON_PARSE_ERROR, "ciphertext envelope " + JSON.stringify(t));
+ J = Hd(J);
+ if (!J)
+ throw new N(g.UNIDENTIFIED_CIPHERSPEC, "ciphertext envelope " + JSON.stringify(t));
+ q = J;
+ break;
+ default:
+ throw new N(g.UNSUPPORTED_CIPHERTEXT_ENVELOPE, "ciphertext envelope " + JSON.stringify(t));
+ }
+ try {
+ v && (v = xa(v));
+ y = xa(y);
+ } catch (F) {
+ throw new N(g.CIPHERTEXT_ENVELOPE_PARSE_ERROR, "encryption envelope " + JSON.stringify(t), F);
+ }
+ new dd(q, v, y, E);
+ });
+ };
+ })();
+ (function () {
+ var n;
+ n = jd = {
+ V1: 1,
+ V2: 2
+ };
+ Eb = oa.Class.create({
+ init: function (g, q, t) {
+ var L;
+ switch (g) {
+ case n.V1:
+ L = t;
+ break;
+ case n.V2:
+ L = {};
+ L.version = g;
+ L.algorithm = q;
+ L.signature = ra(t);
+ L = Oa(JSON.stringify(L), Ma);
+ break;
+ default:
+ throw new ea("Signature envelope version " + g + " encoding unsupported.");
+ }
+ Object.defineProperties(this, {
+ version: {
+ value: g,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ algorithm: {
+ value: q,
+ writable: !1,
+ configurable: !1
+ },
+ signature: {
+ value: t,
+ writable: !1,
+ configurable: !1
+ },
+ bytes: {
+ value: L,
+ writable: !1,
+ configurable: !1
+ }
+ });
+ }
+ });
+ hd = function () {
+ var g,
+ t,
+ z,
+ L;
+ 2 == arguments.length ? (g = n.V1, t = arguments[0], z = null, L = arguments[1]) : 3 == arguments.length && (g = n.V2, z = arguments[0], t = arguments[1], L = arguments[2]);
+ q(L, function () {
+ return new Eb(g, z, t);
+ });
+ };
+ id = function (t, z, E) {
+ q(E, function () {
+ var q,
+ J,
+ v,
+ y,
+ D,
+ I,
+ x;
+ if (z)
+ switch (z) {
+ case n.V1:
+ return new Eb(n.V1, null, t);
+ case n.V2:
+ try {
+ q = Ja(t, Ma);
+ J = JSON.parse(q);
+ v = parseInt(J.version);
+ y = J.algorithm;
+ D = J.signature;
+ if (!v || "number" !== typeof v || v != v || "string" !== typeof y || "string" !== typeof D)
+ throw new ga(g.JSON_PARSE_ERROR, "signature envelope " + ra(t));
+ if (n.V2 != v)
+ throw new N(g.UNSUPPORTED_SIGNATURE_ENVELOPE, "signature envelope " + ra(t));
+ I = Zc(y);
+ if (!I)
+ throw new N(g.UNIDENTIFIED_ALGORITHM, "signature envelope " + ra(t));
+ x = xa(D);
+ if (!x)
+ throw new N(g.INVALID_SIGNATURE, "signature envelope " + Base64Util.encode(t));
+ return new Eb(n.V2, I, x);
+ } catch (F) {
+ if (F instanceof SyntaxError)
+ throw new ga(g.JSON_PARSE_ERROR, "signature envelope " + ra(t), F);
+ throw F;
+ }
+ default:
+ throw new N(g.UNSUPPORTED_SIGNATURE_ENVELOPE, "signature envelope " + ra(t));
+ }
+ try {
+ q = Ja(t, Ma);
+ J = JSON.parse(q);
+ } catch (F) {
+ J = null;
+ }
+ if (J && J.version) {
+ if ((q = J.version, "number" !== typeof q || q !== q))
+ q = n.V1;
+ } else
+ q = n.V1;
+ switch (q) {
+ case n.V1:
+ return new Eb(q, null, t);
+ case n.V2:
+ I = J.algorithm;
+ D = J.signature;
+ if ("string" !== typeof I || "string" !== typeof D)
+ return new Eb(n.V1, null, t);
+ I = Zc(I);
+ if (!I)
+ return new Eb(n.V1, null, t);
+ try {
+ x = xa(D);
+ } catch (F) {
+ return new Eb(n.V1, null, t);
+ }
+ return new Eb(q, I, x);
+ default:
+ throw new N(g.UNSUPPORTED_SIGNATURE_ENVELOPE, "signature envelope " + t);
+ }
+ });
+ };
+ })();
+ ic = oa.Class.create({
+ encrypt: function (g, q) {},
+ decrypt: function (g, q) {},
+ wrap: function (g, q) {},
+ unwrap: function (g, q, n, t) {},
+ sign: function (g, q) {},
+ verify: function (g, q, n) {}
+ });
+ (function () {
+ var n;
+ n = Gb = {
+ RSA_OAEP: Dc.name,
+ A128KW: Cb.name
+ };
+ eb = "A128GCM";
+ Fb = oa.Class.create({
+ init: function (g, q, t, L, J) {
+ switch (q) {
+ case n.RSA_OAEP:
+ J = J && (J.rawKey || J);
+ L = L && (L.rawKey || L);
+ break;
+ case n.A128KW:
+ J = L = L && (L.rawKey || L);
+ break;
+ default:
+ throw new ea("Unsupported algorithm: " + q);
+ }
+ Object.defineProperties(this, {
+ _ctx: {
+ value: g,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ _algo: {
+ value: q,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ _enc: {
+ value: t,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ _wrapKey: {
+ value: J,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ _unwrapKey: {
+ value: L,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ }
+ });
+ },
+ encrypt: function (q, n) {
+ n.error(new N(g.ENCRYPT_NOT_SUPPORTED));
+ },
+ decrypt: function (q, n) {
+ n.error(new N(g.DECRYPT_NOT_SUPPORTED));
+ },
+ wrap: function (n, t) {
+ q(t, function () {
+ Ka.wrapKey("jwe+jwk", n.rawKey, this._wrapKey, this._wrapKey.algorithm).then(function (g) {
+ t.result(g);
+ }, function (q) {
+ t.error(new N(g.WRAP_ERROR));
+ });
+ }, this);
+ },
+ unwrap: function (n, t, z, L) {
+ function J(v) {
+ q(L, function () {
+ switch (v.type) {
+ case "secret":
+ fc(v, L);
+ break;
+ case "public":
+ Tb(v, L);
+ break;
+ case "private":
+ gc(v, L);
+ break;
+ default:
+ throw new N(g.UNSUPPORTED_KEY, "type: " + v.type);
+ }
+ });
+ }
+ q(L, function () {
+ Ka.unwrapKey("jwe+jwk", n, this._unwrapKey, this._unwrapKey.algorithm, t, !1, z).then(function (g) {
+ J(g);
+ }, function () {
+ L.error(new N(g.UNWRAP_ERROR));
+ });
+ }, this);
+ },
+ sign: function (q, n) {
+ n.error(new N(g.SIGN_NOT_SUPPORTED));
+ },
+ verify: function (q, n, t) {
+ t.error(new N(g.VERIFY_NOT_SUPPORTED));
+ }
+ });
+ })();
+ jc = ic.extend({
+ encrypt: function (g, q) {
+ q.result(g);
+ },
+ decrypt: function (g, q) {
+ q.result(g);
+ },
+ wrap: function (g, q) {
+ q.result(g);
+ },
+ unwrap: function (g, q, n, t) {
+ t.result(g);
+ },
+ sign: function (g, q) {
+ q.result(new Uint8Array(0));
+ },
+ verify: function (g, q, n) {
+ n.result(!0);
+ }
+ });
+ (function () {
+ var n;
+ n = Gc = {
+ ENCRYPT_DECRYPT_OAEP: 1,
+ ENCRYPT_DECRYPT_PKCS1: 2,
+ WRAP_UNWRAP_OAEP: 3,
+ WRAP_UNWRAP_PKCS1: 4,
+ SIGN_VERIFY: 5
+ };
+ Fc = ic.extend({
+ init: function Ia(g, q, J, v, y) {
+ Ia.base.call(this);
+ J && (J = J.rawKey);
+ v && (v = v.rawKey);
+ Object.defineProperties(this, {
+ id: {
+ value: q,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ privateKey: {
+ value: J,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ publicKey: {
+ value: v,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ transform: {
+ value: y == n.ENCRYPT_DECRYPT_PKCS1 ? ad : y == n.ENCRYPT_DECRYPT_OAEP ? Dc : "nullOp",
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ wrapTransform: {
+ value: y == n.WRAP_UNWRAP_PKCS1 ? ad : y == n.WRAP_UNWRAP_OAEP ? Dc : "nullOp",
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ algo: {
+ value: y == n.SIGN_VERIFY ? Kd : "nullOp",
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ }
+ });
+ },
+ encrypt: function (n, t) {
+ var L;
+ L = this;
+ q(t, function () {
+ if ("nullOp" == this.transform)
+ return n;
+ if (!this.publicKey)
+ throw new N(g.ENCRYPT_NOT_SUPPORTED, "no public key");
+ if (0 == n.length)
+ return n;
+ Ka.encrypt(L.transform, L.publicKey, n).then(function (q) {
+ ed(L.id, null, q, {
+ result: function (q) {
+ var n;
+ try {
+ n = JSON.stringify(q);
+ t.result(Oa(n, Ma));
+ } catch (D) {
+ t.error(new N(g.ENCRYPT_ERROR, null, D));
+ }
+ },
+ error: function (q) {
+ q instanceof E || (q = new N(g.ENCRYPT_ERROR, null, q));
+ t.error(q);
+ }
+ });
+ }, function (q) {
+ t.error(new N(g.ENCRYPT_ERROR));
+ });
+ }, this);
+ },
+ decrypt: function (n, t) {
+ var L;
+ L = this;
+ q(t, function () {
+ var q,
+ v;
+ if ("nullOp" == this.transform)
+ return n;
+ if (!this.privateKey)
+ throw new N(g.DECRYPT_NOT_SUPPORTED, "no private key");
+ if (0 == n.length)
+ return n;
+ try {
+ v = Ja(n, Ma);
+ q = JSON.parse(v);
+ } catch (y) {
+ if (y instanceof SyntaxError)
+ throw new N(g.CIPHERTEXT_ENVELOPE_PARSE_ERROR, null, y);
+ throw new N(g.DECRYPT_ERROR, null, y);
+ }
+ fd(q, gd.V1, {
+ result: function (q) {
+ var n;
+ try {
+ if (q.keyId != L.id)
+ throw new N(g.ENVELOPE_KEY_ID_MISMATCH);
+ n = t.result;
+ Ka.decrypt(L.transform, L.privateKey, q.ciphertext).then(n, function (q) {
+ t.error(new N(g.DECRYPT_ERROR));
+ });
+ } catch (I) {
+ I instanceof E ? t.error(I) : t.error(new N(g.DECRYPT_ERROR, null, I));
+ }
+ },
+ error: function (q) {
+ q instanceof ga && (q = new N(g.CIPHERTEXT_ENVELOPE_ENCODE_ERROR, null, q));
+ q instanceof E || (q = new N(g.DECRYPT_ERROR, null, q));
+ t.error(q);
+ }
+ });
+ }, this);
+ },
+ wrap: function (n, t) {
+ q(t, function () {
+ var q;
+ if ("nullOp" == this.wrapTransform || !this.publicKey)
+ throw new N(g.WRAP_NOT_SUPPORTED, "no public key");
+ q = t.result;
+ Ka.wrapKey("jwk", n.rawKey, this.publicKey, this.wrapTransform).then(q, function (q) {
+ t.error(new N(g.WRAP_ERROR));
+ });
+ }, this);
+ },
+ unwrap: function (n, t, L, J) {
+ function v(n) {
+ q(J, function () {
+ switch (n.type) {
+ case "secret":
+ fc(n, J);
+ break;
+ case "public":
+ Tb(n, J);
+ break;
+ case "private":
+ gc(n, J);
+ break;
+ default:
+ throw new N(g.UNSUPPORTED_KEY, "type: " + n.type);
+ }
+ });
+ }
+ q(J, function () {
+ if ("nullOp" == this.wrapTransform || !this.privateKey)
+ throw new N(g.UNWRAP_NOT_SUPPORTED, "no private key");
+ Ka.unwrapKey("jwk", n, this.privateKey, {
+ name: this.privateKey.algorithm.name,
+ hash: {
+ name: "SHA-1"
+ }
+ }, t, !1, L).then(v, function (q) {
+ J.error(new N(g.UNWRAP_ERROR));
+ });
+ }, this);
+ },
+ sign: function (n, t) {
+ q(t, function () {
+ if ("nullOp" == this.algo)
+ return new Uint8Array(0);
+ if (!this.privateKey)
+ throw new N(g.SIGN_NOT_SUPPORTED, "no private key");
+ Ka.sign(this.algo, this.privateKey, n).then(function (g) {
+ hd(g, {
+ result: function (g) {
+ t.result(g.bytes);
+ },
+ error: t.error
+ });
+ }, function (q) {
+ t.error(new N(g.SIGNATURE_ERROR));
+ });
+ }, this);
+ },
+ verify: function (n, t, L) {
+ var J;
+ J = this;
+ q(L, function () {
+ if ("nullOp" == this.algo)
+ return !0;
+ if (!this.publicKey)
+ throw new N(g.VERIFY_NOT_SUPPORTED, "no public key");
+ id(t, jd.V1, {
+ result: function (v) {
+ q(L, function () {
+ var q;
+ q = L.result;
+ Ka.verify(this.algo, this.publicKey, v.signature, n).then(q, function (q) {
+ L.error(new N(g.SIGNATURE_ERROR));
+ });
+ }, J);
+ },
+ error: L.error
+ });
+ }, this);
+ }
+ });
+ })();
+ (function () {
+ Hc = ic.extend({
+ init: function Ya(g, q, n, J, v) {
+ Ya.base.call(this);
+ n = n && n.rawKey;
+ J = J && J.rawKey;
+ v = v && v.rawKey;
+ Object.defineProperties(this, {
+ ctx: {
+ value: g,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ id: {
+ value: q,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ encryptionKey: {
+ value: n,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ hmacKey: {
+ value: J,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ wrapKey: {
+ value: v,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ }
+ });
+ },
+ encrypt: function (n, t) {
+ var z;
+ z = this;
+ q(t, function () {
+ var q;
+ if (!this.encryptionKey)
+ throw new N(g.ENCRYPT_NOT_SUPPORTED, "no encryption/decryption key");
+ if (0 == n.length)
+ return n;
+ q = new Uint8Array(16);
+ this.ctx.getRandom().nextBytes(q);
+ Ka.encrypt({
+ name: tb.name,
+ iv: q
+ }, z.encryptionKey, n).then(function (n) {
+ n = new Uint8Array(n);
+ ed(z.id, q, n, {
+ result: function (q) {
+ var n;
+ try {
+ n = JSON.stringify(q);
+ t.result(Oa(n, Ma));
+ } catch (D) {
+ t.error(new N(g.ENCRYPT_ERROR, null, D));
+ }
+ },
+ error: function (q) {
+ q instanceof E || (q = new N(g.ENCRYPT_ERROR, null, q));
+ t.error(q);
+ }
+ });
+ }, function (q) {
+ t.error(new N(g.ENCRYPT_ERROR));
+ });
+ }, this);
+ },
+ decrypt: function (n, t) {
+ var z;
+ z = this;
+ q(t, function () {
+ var q,
+ J;
+ if (!this.encryptionKey)
+ throw new N(g.DECRYPT_NOT_SUPPORTED, "no encryption/decryption key");
+ if (0 == n.length)
+ return n;
+ try {
+ J = Ja(n, Ma);
+ q = JSON.parse(J);
+ } catch (v) {
+ if (v instanceof SyntaxError)
+ throw new N(g.CIPHERTEXT_ENVELOPE_PARSE_ERROR, null, v);
+ throw new N(g.DECRYPT_ERROR, null, v);
+ }
+ fd(q, gd.V1, {
+ result: function (q) {
+ try {
+ if (q.keyId != z.id)
+ throw new N(g.ENVELOPE_KEY_ID_MISMATCH);
+ Ka.decrypt({
+ name: tb.name,
+ iv: q.iv
+ }, z.encryptionKey, q.ciphertext).then(function (g) {
+ g = new Uint8Array(g);
+ t.result(g);
+ }, function () {
+ t.error(new N(g.DECRYPT_ERROR));
+ });
+ } catch (y) {
+ y instanceof E ? t.error(y) : t.error(new N(g.DECRYPT_ERROR, null, y));
+ }
+ },
+ error: function (q) {
+ q instanceof ga && (q = new N(g.CIPHERTEXT_ENVELOPE_ENCODE_ERROR, null, q));
+ q instanceof E || (q = new N(g.DECRYPT_ERROR, null, q));
+ t.error(q);
+ }
+ });
+ }, this);
+ },
+ wrap: function (n, t) {
+ q(t, function () {
+ if (!this.wrapKey)
+ throw new N(g.WRAP_NOT_SUPPORTED, "no wrap/unwrap key");
+ Ka.wrapKey("raw", n.rawKey, this.wrapKey, this.wrapKey.algorithm).then(function (g) {
+ t.result(g);
+ }, function (q) {
+ t.error(new N(g.WRAP_ERROR));
+ });
+ }, this);
+ },
+ unwrap: function (n, t, z, L) {
+ function J(n) {
+ q(L, function () {
+ switch (n.type) {
+ case "secret":
+ fc(n, L);
+ break;
+ case "public":
+ Tb(n, L);
+ break;
+ case "private":
+ gc(n, L);
+ break;
+ default:
+ throw new N(g.UNSUPPORTED_KEY, "type: " + n.type);
+ }
+ });
+ }
+ q(L, function () {
+ if (!this.wrapKey)
+ throw new N(g.UNWRAP_NOT_SUPPORTED, "no wrap/unwrap key");
+ Ka.unwrapKey("raw", n, this.wrapKey, this.wrapKey.algorithm, t, !1, z).then(function (g) {
+ J(g);
+ }, function (q) {
+ L.error(new N(g.UNWRAP_ERROR));
+ });
+ }, this);
+ },
+ sign: function (n, t) {
+ var z;
+ z = this;
+ q(t, function () {
+ if (!this.hmacKey)
+ throw new N(g.SIGN_NOT_SUPPORTED, "no HMAC key.");
+ Ka.sign(ub, this.hmacKey, n).then(function (g) {
+ q(t, function () {
+ var q;
+ q = new Uint8Array(g);
+ hd(q, {
+ result: function (g) {
+ t.result(g.bytes);
+ },
+ error: t.error
+ });
+ }, z);
+ }, function () {
+ t.error(new N(g.HMAC_ERROR));
+ });
+ }, this);
+ },
+ verify: function (n, t, z) {
+ var L;
+ L = this;
+ q(z, function () {
+ if (!this.hmacKey)
+ throw new N(g.VERIFY_NOT_SUPPORTED, "no HMAC key.");
+ id(t, jd.V1, {
+ result: function (t) {
+ q(z, function () {
+ Ka.verify(ub, this.hmacKey, t.signature, n).then(function (g) {
+ z.result(g);
+ }, function (q) {
+ z.error(new N(g.HMAC_ERROR));
+ });
+ }, L);
+ },
+ error: z.error
+ });
+ }, this);
+ }
+ });
+ })();
+ kb = Hc.extend({
+ init: function Ya(q, n, t, J, v) {
+ if (t || J || v)
+ Ya.base.call(this, q, t + "_" + n.sequenceNumber, J, v, null);
+ else {
+ if (!n.isDecrypted())
+ throw new Wb(g.MASTERTOKEN_UNTRUSTED, n);
+ Ya.base.call(this, q, n.identity + "_" + n.sequenceNumber, n.encryptionKey, n.hmacKey, null);
+ }
+ }
+ });
+ Ne = ic.extend({
+ encrypt: function (g, q) {
+ q.result(g);
+ },
+ decrypt: function (g, q) {
+ q.result(g);
+ },
+ wrap: function (g, q) {
+ q.error(new ea("Wrap is unsupported by the MSL token crypto context."));
+ },
+ unwrap: function (g, q, n, t) {
+ t.error(new ea("Unwrap is unsupported by the MSL token crypto context."));
+ },
+ sign: function (g, q) {
+ q.result(new Uint8Array(0));
+ },
+ verify: function (g, q, n) {
+ n.result(!1);
+ }
+ });
+ Pa = {
+ PSK: "PSK",
+ MGK: "MGK",
+ X509: "X509",
+ RSA: "RSA",
+ NPTICKET: "NPTICKET",
+ ECC: "ECC",
+ NONE: "NONE"
+ };
+ Object.freeze(Pa);
+ (function () {
+ Vb = oa.Class.create({
+ init: function (g) {
+ Object.defineProperties(this, {
+ scheme: {
+ value: g,
+ writable: !1,
+ configurable: !1
+ }
+ });
+ },
+ getIdentity: function () {},
+ getAuthData: function () {},
+ equals: function (g) {
+ return this === g ? !0 : g instanceof Vb ? this.scheme == g.scheme : !1;
+ },
+ toJSON: function () {
+ var g;
+ g = {};
+ g.scheme = this.scheme;
+ g.authdata = this.getAuthData();
+ return g;
+ }
+ });
+ Md = function (q, n) {
+ var t,
+ L,
+ J;
+ t = n.scheme;
+ L = n.authdata;
+ if (!t || !L)
+ throw new ga(g.JSON_PARSE_ERROR, "entityauthdata " + JSON.stringify(n));
+ if (!Pa[t])
+ throw new Bb(g.UNIDENTIFIED_ENTITYAUTH_SCHEME, t);
+ J = q.getEntityAuthenticationFactory(t);
+ if (!J)
+ throw new Bb(g.ENTITYAUTH_FACTORY_NOT_FOUND, t);
+ return J.createData(q, L);
+ };
+ })();
+ Ic = oa.Class.create({
+ init: function (g) {
+ Object.defineProperties(this, {
+ scheme: {
+ value: g,
+ writable: !1,
+ configurable: !1
+ }
+ });
+ },
+ createData: function (g, q) {},
+ getCryptoContext: function (g, q) {}
+ });
+ (function () {
+ qb = Vb.extend({
+ init: function Ia(g) {
+ Ia.base.call(this, Pa.MGK);
+ Object.defineProperties(this, {
+ identity: {
+ value: g,
+ writable: !1,
+ configurable: !1
+ }
+ });
+ },
+ getIdentity: function () {
+ return this.identity;
+ },
+ getAuthData: function () {
+ var g;
+ g = {};
+ g.identity = this.identity;
+ return g;
+ },
+ equals: function Va(g) {
+ return this === g ? !0 : g instanceof qb ? Va.base.call(this, this, g) && this.identity == g.identity : !1;
+ }
+ });
+ Nd = function (q) {
+ var n;
+ n = q.identity;
+ if (!n)
+ throw new ga(g.JSON_PARSE_ERROR, "mgk authdata" + JSON.stringify(q));
+ return new qb(n);
+ };
+ })();
+ Oe = Ic.extend({
+ init: function Ia(g) {
+ Ia.base.call(this, Pa.MGK);
+ Object.defineProperties(this, {
+ localIdentity: {
+ value: g,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ }
+ });
+ },
+ createData: function (g, q) {
+ return Nd(q);
+ },
+ getCryptoContext: function (q, n) {
+ if (!(n instanceof qb))
+ throw new ea("Incorrect authentication data type " + JSON.stringify(n) + ".");
+ if (n.identity != this.localIdentity)
+ throw new Bb(g.ENTITY_NOT_FOUND, "mgk " + n.identity).setEntity(n);
+ return new jc();
+ }
+ });
+ (function () {
+ vb = Vb.extend({
+ init: function Va(g) {
+ Va.base.call(this, Pa.PSK);
+ Object.defineProperties(this, {
+ identity: {
+ value: g,
+ writable: !1
+ }
+ });
+ },
+ getIdentity: function () {
+ return this.identity;
+ },
+ getAuthData: function () {
+ var g;
+ g = {};
+ g.identity = this.identity;
+ return g;
+ },
+ equals: function L(g) {
+ return this === g ? !0 : g instanceof vb ? L.base.call(this, this, g) && this.identity == g.identity : !1;
+ }
+ });
+ Od = function (q) {
+ var n;
+ n = q.identity;
+ if (!n)
+ throw new ga(g.JSON_PARSE_ERROR, "psk authdata" + JSON.stringify(q));
+ return new vb(n);
+ };
+ })();
+ Pd = Ic.extend({
+ init: function Va(g) {
+ Va.base.call(this, Pa.PSK);
+ Object.defineProperties(this, {
+ localIdentity: {
+ value: g,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ }
+ });
+ },
+ createData: function (g, q) {
+ return Od(q);
+ },
+ getCryptoContext: function (q, n) {
+ if (!(n instanceof vb))
+ throw new ea("Incorrect authentication data type " + JSON.stringify(n) + ".");
+ if (n.getIdentity() != this.localIdentity)
+ throw new Bb(g.ENTITY_NOT_FOUND, "psk " + n.identity).setEntity(n);
+ return new jc();
+ }
+ });
+ (function () {
+ Jc = Vb.extend({
+ init: function L(g, q) {
+ L.base.call(this, Pa.RSA);
+ Object.defineProperties(this, {
+ identity: {
+ value: g,
+ writable: !1,
+ configurable: !1
+ },
+ publicKeyId: {
+ value: q,
+ writable: !1,
+ configurable: !1
+ }
+ });
+ },
+ getIdentity: function () {
+ return this.identity;
+ },
+ getAuthData: function () {
+ var g;
+ g = {};
+ g.identity = this.identity;
+ g.pubkeyid = this.publicKeyId;
+ return g;
+ },
+ equals: function J(g) {
+ return this === g ? !0 : g instanceof Jc ? J.base.call(this, this, g) && this.identity == g.identity && this.publicKeyId == g.publicKeyId : !1;
+ }
+ });
+ Qd = function (q) {
+ var n,
+ y;
+ n = q.identity;
+ y = q.pubkeyid;
+ if (!n || "string" !== typeof n || !y || "string" !== typeof y)
+ throw new ga(g.JSON_PARSE_ERROR, "RSA authdata" + JSON.stringify(q));
+ return new Jc(n, y);
+ };
+ })();
+ Pe = Ic.extend({
+ init: function L(g) {
+ L.base.call(this, Pa.RSA);
+ Object.defineProperties(this, {
+ store: {
+ value: g,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ }
+ });
+ },
+ createData: function (g, q) {
+ return Qd(q);
+ },
+ getCryptoContext: function (q, n) {
+ var v,
+ y,
+ t;
+ if (!(n instanceof Jc))
+ throw new ea("Incorrect authentication data type " + n + ".");
+ v = n.identity;
+ y = n.publicKeyId;
+ t = this.store.getPublicKey(y);
+ if (!t)
+ throw new Bb(g.RSA_PUBLICKEY_NOT_FOUND, y).setEntity(n);
+ return new Fc(q, v, null, t, Gc.SIGN_VERIFY);
+ }
+ });
+ (function () {
+ oc = Vb.extend({
+ init: function J(g) {
+ J.base.call(this, Pa.NONE);
+ Object.defineProperties(this, {
+ identity: {
+ value: g,
+ writable: !1
+ }
+ });
+ },
+ getIdentity: function () {
+ return this.identity;
+ },
+ getAuthData: function () {
+ var g;
+ g = {};
+ g.identity = this.identity;
+ return g;
+ },
+ equals: function v(g) {
+ return this === g ? !0 : g instanceof oc ? v.base.call(this, this, g) && this.identity == g.identity : !1;
+ }
+ });
+ Rd = function (q) {
+ var n;
+ n = q.identity;
+ if (!n)
+ throw new ga(g.JSON_PARSE_ERROR, "Unauthenticated authdata" + JSON.stringify(q));
+ return new oc(n);
+ };
+ })();
+ Me = Ic.extend({
+ init: function J() {
+ J.base.call(this, Pa.NONE);
+ },
+ createData: function (g, q) {
+ return Rd(q);
+ },
+ getCryptoContext: function (g, q) {
+ if (!(q instanceof oc))
+ throw new ea("Incorrect authentication data type " + JSON.stringify(q) + ".");
+ return new jc();
+ }
+ });
+ Qe = oa.Class.create({
+ init: function () {
+ Object.defineProperties(this, {
+ rsaKeys: {
+ value: {},
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ }
+ });
+ },
+ addPublicKey: function (g, q) {
+ if (!(q instanceof Ec))
+ throw new ea("Incorrect key data type " + q + ".");
+ this.rsaKeys[g] = q;
+ },
+ getIdentities: function () {
+ return Object.keys(this.rsaKeys);
+ },
+ removePublicKey: function (g) {
+ delete this.rsaKeys[g];
+ },
+ getPublicKey: function (g) {
+ return this.rsaKeys[g];
+ }
+ });
+ kd = oa.Class.create({
+ abort: function () {},
+ close: function () {},
+ mark: function () {},
+ reset: function () {},
+ markSupported: function () {},
+ read: function (g, q, n) {}
+ });
+ Kc = oa.Class.create({
+ abort: function () {},
+ close: function (g, q) {},
+ write: function (g, q, n, t, I) {},
+ flush: function (g, q) {}
+ });
+ Re = oa.Class.create({
+ init: function (g) {
+ Object.defineProperties(this, {
+ _data: {
+ value: g,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ _closed: {
+ value: !1,
+ writable: !0,
+ enumerable: !1,
+ configurable: !1
+ },
+ _currentPosition: {
+ value: 0,
+ writable: !0,
+ enumerable: !1,
+ configurable: !1
+ },
+ _mark: {
+ value: -1,
+ writable: !0,
+ enumerable: !1,
+ configurable: !1
+ }
+ });
+ },
+ abort: function () {},
+ close: function () {
+ this._close = !0;
+ },
+ mark: function () {
+ this._mark = this._currentPosition;
+ },
+ reset: function () {
+ if (-1 == this._mark)
+ throw new ab("Stream has not been marked.");
+ this._currentPosition = this._mark;
+ },
+ markSupported: function () {
+ return !0;
+ },
+ read: function (g, q, n) {
+ z(n, function () {
+ var q;
+ if (this._closed)
+ throw new ab("Stream is already closed.");
+ if (this._currentPosition == this._data.length)
+ return null;
+ -1 == g && (g = this._data.length - this._currentPosition);
+ q = this._data.subarray(this._currentPosition, this._currentPosition + g);
+ this._currentPosition += q.length;
+ return q;
+ }, this);
+ }
+ });
+ Se = oa.Class.create({
+ init: function () {
+ var g;
+ g = {
+ _closed: {
+ value: !1,
+ writable: !0,
+ enumerable: !1,
+ configurable: !1
+ },
+ _result: {
+ value: new Uint8Array(0),
+ writable: !0,
+ enuemrable: !1,
+ configurable: !1
+ },
+ _buffered: {
+ value: [],
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ }
+ };
+ Object.defineProperties(this, g);
+ },
+ abort: function () {},
+ close: function (g, q) {
+ this._closed = !0;
+ q.result(!0);
+ },
+ write: function (g, q, n, t, I) {
+ z(I, function () {
+ var x;
+ if (this._closed)
+ throw new ab("Stream is already closed.");
+ if (0 > q)
+ throw new RangeError("Offset cannot be negative.");
+ if (0 > n)
+ throw new RangeError("Length cannot be negative.");
+ if (q + n > g.length)
+ throw new RangeError("Offset plus length cannot be greater than the array length.");
+ x = g.subarray(q, n);
+ this._buffered.push(x);
+ return x.length;
+ }, this);
+ },
+ flush: function (g, q) {
+ var n,
+ v;
+ for (; 0 < this._buffered.length; ) {
+ n = this._buffered.shift();
+ if (this._result) {
+ v = new Uint8Array(this._result.length + n.length);
+ v.set(this._result);
+ v.set(n, this._result.length);
+ this._result = v;
+ } else
+ this._result = new Uint8Array(n);
+ }
+ q.result(!0);
+ },
+ size: function () {
+ this.flush(1, {
+ result: function () {}
+ });
+ return this._result.length;
+ },
+ toByteArray: function () {
+ this.flush(1, {
+ result: function () {}
+ });
+ return this._result;
+ }
+ });
+ Te = oa.Class.create({
+ getResponse: function (g, q, n) {}
+ });
+ (function () {
+ var g,
+ q;
+ g = Kc.extend({
+ init: function (g, q) {
+ var n;
+ n = {
+ _httpLocation: {
+ value: g,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ _timeout: {
+ value: q,
+ writable: !0,
+ enumerable: !1,
+ configurable: !1
+ },
+ _buffer: {
+ value: new Se(),
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ _response: {
+ value: ca,
+ writable: !0,
+ enumerable: !1,
+ configurable: !1
+ },
+ _abortToken: {
+ value: ca,
+ writable: !0,
+ enumerable: !1,
+ configurable: !1
+ },
+ _responseQueue: {
+ value: new pc(),
+ writable: !0,
+ enumerable: !1,
+ configurable: !1
+ }
+ };
+ Object.defineProperties(this, n);
+ },
+ setTimeout: function (g) {
+ this._timeout = g;
+ },
+ getResponse: function (g, q) {
+ var n;
+ n = this;
+ this._responseQueue.poll(g, {
+ result: function (g) {
+ z(q, function () {
+ g && this._responseQueue.add(g);
+ return g;
+ }, n);
+ },
+ timeout: function () {
+ z(q, function () {
+ this._response = {
+ isTimeout: !0
+ };
+ this._responseQueue.add(this._response);
+ this.abort();
+ q.timeout();
+ }, n);
+ },
+ error: function (g) {
+ z(q, function () {
+ this._response = {
+ isError: !0
+ };
+ this._responseQueue.add(this._response);
+ throw g;
+ }, n);
+ }
+ });
+ },
+ abort: function () {
+ this._abortToken && this._abortToken.abort();
+ },
+ close: function (g, q) {
+ var n;
+ n = this;
+ z(q, function () {
+ var g;
+ if (this._response)
+ return !0;
+ g = this._buffer.toByteArray();
+ 0 < g.length && (this._abortToken = this._httpLocation.getResponse({
+ body: g
+ }, this._timeout, {
+ result: function (g) {
+ n._response = {
+ response: g
+ };
+ n._responseQueue.add(n._response);
+ },
+ timeout: function () {
+ n._response = {
+ isTimeout: !0
+ };
+ n._responseQueue.add(n._response);
+ },
+ error: function (g) {
+ n._response = {
+ isError: !0,
+ error: g
+ };
+ n._responseQueue.add(n._response);
+ }
+ }));
+ return !0;
+ }, this);
+ },
+ write: function (g, q, n, x, F) {
+ z(F, function () {
+ if (this._response)
+ throw new ab("HttpOutputStream already closed.");
+ this._buffer.write(g, q, n, x, F);
+ }, this);
+ },
+ flush: function (g, q) {
+ z(q, function () {
+ if (this._response)
+ return !0;
+ this._buffer.flush(g, q);
+ }, this);
+ }
+ });
+ q = kd.extend({
+ init: function (g) {
+ Object.defineProperties(this, {
+ _out: {
+ value: g,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ _buffer: {
+ value: ca,
+ writable: !0,
+ enumerable: !1,
+ configurable: !1
+ },
+ _exception: {
+ value: ca,
+ writable: !0,
+ enumerable: !1,
+ configurable: !1
+ },
+ _timedout: {
+ value: !1,
+ writable: !0,
+ enumerable: !1,
+ configurable: !1
+ },
+ _aborted: {
+ value: !1,
+ writable: !0,
+ enumerable: !1,
+ configurable: !1
+ },
+ _json: {
+ value: ca,
+ writable: !0,
+ enumerable: !1,
+ configurable: !1
+ }
+ });
+ },
+ abort: function () {
+ this._out.abort();
+ },
+ close: function () {
+ this._buffer && this._buffer.close();
+ },
+ mark: function () {
+ this._buffer || this._buffer.mark();
+ },
+ reset: function () {
+ this._buffer && this._buffer.reset();
+ },
+ markSupported: function () {
+ if (this._buffer)
+ return this._buffer.markSupported();
+ },
+ read: function (g, q, n) {
+ var F;
+ function x(x) {
+ z(n, function () {
+ if (!x)
+ return new Uint8Array(0);
+ this._out.getResponse(q, {
+ result: function (x) {
+ z(n, function () {
+ var v;
+ if (x.isTimeout)
+ (this._timedout = !0, n.timeout());
+ else {
+ if (x.isError)
+ throw (this._exception = x.error || new ab("Unknown HTTP exception."), this._exception);
+ if (!x.response)
+ throw (this._exception = new ab("Missing HTTP response."), this._exception);
+ x.response.json !== ca && (this._json = x.response.json, this.getJSON = function () {
+ return F._json;
+ });
+ v = x.response.content || dc("string" === typeof x.response.body ? x.response.body : JSON.stringify(this._json));
+ this._buffer = new Re(v);
+ this._buffer.read(g, q, n);
+ }
+ }, F);
+ },
+ timeout: function () {
+ n.timeout();
+ },
+ error: function (g) {
+ n.error(g);
+ }
+ });
+ }, F);
+ }
+ F = this;
+ z(n, function () {
+ if (this._exception)
+ throw this._exception;
+ if (this._timedout)
+ n.timeout();
+ else {
+ if (this._aborted)
+ return new Uint8Array(0);
+ this._buffer ? this._buffer.read(g, q, n) : this._out.close(q, {
+ result: function (g) {
+ x(g);
+ },
+ timeout: function () {
+ n.timeout();
+ },
+ error: function (g) {
+ n.error(g);
+ }
+ });
+ }
+ }, F);
+ }
+ });
+ Bd = oa.Class.create({
+ init: function (g, q) {
+ Object.defineProperties(this, {
+ _httpLocation: {
+ value: g,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ _timeout: {
+ value: q,
+ writable: !0,
+ enumerable: !1,
+ configurable: !1
+ }
+ });
+ },
+ setTimeout: function (g) {
+ this._timeout = g;
+ },
+ openConnection: function () {
+ var n;
+ n = new g(this._httpLocation, this._timeout);
+ return {
+ input: new q(n),
+ output: n
+ };
+ }
+ });
+ })();
+ (function () {
+ var g,
+ q;
+ g = Kc.extend({
+ init: function () {
+ var g;
+ g = {
+ _buffer: {
+ value: new Uint8Array(),
+ writable: !0,
+ enumerable: !1,
+ configurable: !1
+ }
+ };
+ Object.defineProperties(this, g);
+ },
+ setTimeout: function () {},
+ getResponse: function (g, q) {
+ q.result({
+ success: !1,
+ content: null,
+ errorHttpCode: ca,
+ errorSubCode: ca
+ });
+ },
+ abort: function () {},
+ close: function (g, q) {
+ q.result(!0);
+ },
+ write: function (g, q, n, x, F) {
+ var v,
+ y;
+ try {
+ if (0 > q)
+ throw new RangeError("Offset cannot be negative.");
+ if (0 > n)
+ throw new RangeError("Length cannot be negative.");
+ if (q + n > g.length)
+ throw new RangeError("Offset plus length cannot be greater than the array length.");
+ v = g.subarray(q, n);
+ y = new Uint8Array(this._buffer.length + v.length);
+ y.set(this._buffer);
+ y.set(v, this._buffer.length);
+ this._buffer = y;
+ F.result(v.length);
+ } catch (va) {
+ F.error(va);
+ }
+ },
+ flush: function (g, q) {
+ q.result(!0);
+ },
+ request: function () {
+ return this._buffer;
+ }
+ });
+ q = kd.extend({
+ init: function () {},
+ abort: function () {},
+ close: function () {},
+ mark: function () {},
+ reset: function () {},
+ markSupported: function () {},
+ read: function (g, q, n) {
+ n.result(new Uint8Array(16));
+ }
+ });
+ Cd = oa.Class.create({
+ init: function () {
+ var n;
+ n = {
+ output: {
+ value: new g(),
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ input: {
+ value: new q(),
+ writable: !0,
+ enumerable: !1,
+ configurable: !1
+ }
+ };
+ Object.defineProperties(this, n);
+ },
+ setTimeout: function () {},
+ openConnection: function () {
+ return {
+ input: this.input,
+ output: this.output
+ };
+ },
+ getRequest: function () {
+ return cc(this.output.request());
+ }
+ });
+ })();
+ Sd = function (g, q, n) {
+ function v(g) {
+ var q,
+ n;
+ g = new Ue(Ja(g, "utf-8"));
+ q = [];
+ for (n = g.nextValue(); n !== ca; ) {
+ q.push(n);
+ n = g.nextValue();
+ }
+ return q;
+ }
+ (function (g, q, F) {
+ g.read(-1, q, {
+ result: function (g) {
+ g && g.length ? F(null, g) : F(null, null);
+ },
+ timeout: function () {
+ n.timeout();
+ },
+ error: function (g) {
+ F(g, null);
+ }
+ });
+ })(g, q, function (q, x) {
+ q ? n.error(q) : x ? g.getJSON !== ca && "function" === typeof g.getJSON ? n.result(g.getJSON()) : n.result(v(x)) : n.result(null);
+ });
+ };
+ ob = {
+ SYMMETRIC_WRAPPED: "SYMMETRIC_WRAPPED",
+ ASYMMETRIC_WRAPPED: "ASYMMETRIC_WRAPPED",
+ DIFFIE_HELLMAN: "DIFFIE_HELLMAN",
+ JWE_LADDER: "JWE_LADDER",
+ JWK_LADDER: "JWK_LADDER",
+ AUTHENTICATED_DH: "AUTHENTICATED_DH"
+ };
+ Object.freeze(ob);
+ (function () {
+ qc = oa.Class.create({
+ init: function (g) {
+ Object.defineProperties(this, {
+ keyExchangeScheme: {
+ value: g,
+ writable: !1,
+ configurable: !1
+ }
+ });
+ },
+ getKeydata: function () {},
+ toJSON: function () {
+ var g;
+ g = {};
+ g.scheme = this.keyExchangeScheme;
+ g.keydata = this.getKeydata();
+ return g;
+ },
+ equals: function (g) {
+ return this === g ? !0 : g instanceof qc ? this.keyExchangeScheme == g.keyExchangeScheme : !1;
+ },
+ uniqueKey: function () {
+ return this.keyExchangeScheme;
+ }
+ });
+ Td = function (n, v, y) {
+ q(y, function () {
+ var q,
+ t,
+ x;
+ q = v.scheme;
+ t = v.keydata;
+ if (!q || !t || "object" !== typeof t)
+ throw new ga(g.JSON_PARSE_ERROR, "keyrequestdata " + JSON.stringify(v));
+ if (!ob[q])
+ throw new Ra(g.UNIDENTIFIED_KEYX_SCHEME, q);
+ x = n.getKeyExchangeFactory(q);
+ if (!x)
+ throw new Ra(g.KEYX_FACTORY_NOT_FOUND, q);
+ x.createRequestData(n, t, y);
+ });
+ };
+ })();
+ (function () {
+ rc = oa.Class.create({
+ init: function (g, q) {
+ Object.defineProperties(this, {
+ masterToken: {
+ value: g,
+ writable: !1,
+ configurable: !1
+ },
+ keyExchangeScheme: {
+ value: q,
+ wrtiable: !1,
+ configurable: !1
+ }
+ });
+ },
+ getKeydata: function () {},
+ toJSON: function () {
+ var g;
+ g = {};
+ g.mastertoken = this.masterToken;
+ g.scheme = this.keyExchangeScheme;
+ g.keydata = this.getKeydata();
+ return g;
+ },
+ equals: function (g) {
+ return this === g ? !0 : g instanceof rc ? this.masterToken.equals(g.masterToken) && this.keyExchangeScheme == g.keyExchangeScheme : !1;
+ },
+ uniqueKey: function () {
+ return this.masterToken.uniqueKey() + ":" + this.keyExchangeScheme;
+ }
+ });
+ Ud = function (n, v, y) {
+ q(y, function () {
+ var t,
+ I,
+ x;
+ t = v.mastertoken;
+ I = v.scheme;
+ x = v.keydata;
+ if (!I || !t || "object" !== typeof t || !x || "object" !== typeof x)
+ throw new ga(g.JSON_PARSE_ERROR, "keyresponsedata " + JSON.stringify(v));
+ if (!ob[I])
+ throw new Ra(g.UNIDENTIFIED_KEYX_SCHEME, I);
+ Yb(n, t, {
+ result: function (F) {
+ q(y, function () {
+ var q;
+ q = n.getKeyExchangeFactory(I);
+ if (!q)
+ throw new Ra(g.KEYX_FACTORY_NOT_FOUND, I);
+ return q.createResponseData(n, F, x);
+ });
+ },
+ error: function (g) {
+ y.error(g);
+ }
+ });
+ });
+ };
+ })();
+ (function () {
+ var n;
+ n = oa.Class.create({
+ init: function (g, q) {
+ Object.defineProperties(this, {
+ keyResponseData: {
+ value: g,
+ writable: !1,
+ configurable: !1
+ },
+ cryptoContext: {
+ value: q,
+ writable: !1,
+ configurable: !1
+ }
+ });
+ }
+ });
+ rb = oa.Class.create({
+ init: function (g) {
+ Object.defineProperties(this, {
+ scheme: {
+ value: g,
+ writable: !1,
+ configurable: !1
+ }
+ });
+ },
+ createRequestData: function (g, q, n) {},
+ createResponseData: function (g, q, n) {},
+ generateResponse: function (g, q, n, t) {},
+ getCryptoContext: function (g, q, n, t, x) {},
+ generateSessionKeys: function (n, y) {
+ q(y, function () {
+ var q,
+ v;
+ q = new Uint8Array(16);
+ v = new Uint8Array(32);
+ n.getRandom().nextBytes(q);
+ n.getRandom().nextBytes(v);
+ Db(q, tb, Nb, {
+ result: function (q) {
+ Db(v, ub, Xb, {
+ result: function (g) {
+ y.result({
+ encryptionKey: q,
+ hmacKey: g
+ });
+ },
+ error: function (q) {
+ y.error(new N(g.SESSION_KEY_CREATION_FAILURE, null, q));
+ }
+ });
+ },
+ error: function (q) {
+ y.error(new N(g.SESSION_KEY_CREATION_FAILURE, null, q));
+ }
+ });
+ });
+ },
+ importSessionKeys: function (g, q, n) {
+ Db(g, tb, Nb, {
+ result: function (g) {
+ Db(q, ub, Xb, {
+ result: function (q) {
+ n.result({
+ encryptionKey: g,
+ hmacKey: q
+ });
+ },
+ error: function (g) {
+ n.error(g);
+ }
+ });
+ },
+ error: function (g) {
+ n.error(g);
+ }
+ });
+ }
+ });
+ rb.KeyExchangeData = n;
+ })();
+ (function () {
+ var v,
+ y,
+ t;
+ function n(n, x, F, t, y) {
+ q(y, function () {
+ var I,
+ ka;
+ switch (x) {
+ case v.PSK:
+ (I = new vb(t), ka = n.getEntityAuthenticationFactory(Pa.PSK));
+ if (!ka)
+ throw new Ra(g.UNSUPPORTED_KEYX_MECHANISM, x);
+ I = ka.getCryptoContext(n, I);
+ return new Fb(n, Gb.A128KW, eb, ca);
+ case v.MGK:
+ I = new qb(t);
+ ka = n.getEntityAuthenticationFactory(Pa.MGK);
+ if (!ka)
+ throw new Ra(g.UNSUPPORTED_KEYX_MECHANISM, x);
+ I = ka.getCryptoContext(n, I);
+ return new Fb(n, Gb.A128KW, eb, ca);
+ case v.WRAP:
+ I = n.getMslCryptoContext();
+ I.unwrap(F, Cb, Ob, {
+ result: function (g) {
+ q(y, function () {
+ return new Fb(n, Gb.A128KW, eb, g);
+ });
+ },
+ error: y.error
+ });
+ break;
+ default:
+ throw new Ra(g.UNSUPPORTED_KEYX_MECHANISM, x);
+ }
+ });
+ }
+ v = {
+ PSK: "PSK",
+ MGK: "MGK",
+ WRAP: "WRAP"
+ };
+ y = ld = qc.extend({
+ init: function x(g, q) {
+ x.base.call(this, ob.JWE_LADDER);
+ switch (g) {
+ case v.WRAP:
+ if (!q)
+ throw new ea("Previous wrapping key based key exchange requires the previous wrapping key data and ID.");
+ break;
+ default:
+ q = null;
+ }
+ Object.defineProperties(this, {
+ mechanism: {
+ value: g,
+ writable: !1,
+ configurable: !1
+ },
+ wrapdata: {
+ value: q,
+ writable: !1,
+ configurable: !1
+ }
+ });
+ },
+ getKeydata: function () {
+ var g;
+ g = {};
+ g.mechanism = this.mechanism;
+ this.wrapdata && (g.wrapdata = ra(this.wrapdata));
+ return g;
+ },
+ equals: function F(g) {
+ return g === this ? !0 : g instanceof ld ? F.base.call(this, g) && this.mechanism == g.mechanism && Ta(this.wrapdata, g.wrapdata) : !1;
+ },
+ uniqueKey: function ua() {
+ var g;
+ g = ua.base.call(this) + ":" + this.mechanism;
+ this.wrapdata && (g += ":" + Sa(this.wrapdata));
+ return g;
+ }
+ });
+ t = Wd = rc.extend({
+ init: function ka(g, q, n, v, t) {
+ ka.base.call(this, g, ob.JWE_LADDER);
+ Object.defineProperties(this, {
+ wrapKey: {
+ value: q,
+ writable: !1,
+ configurable: !1
+ },
+ wrapdata: {
+ value: n,
+ writable: !1,
+ configurable: !1
+ },
+ encryptionKey: {
+ value: v,
+ writable: !1,
+ configurable: !1
+ },
+ hmacKey: {
+ value: t,
+ writable: !1,
+ configurable: !1
+ }
+ });
+ },
+ getKeydata: function () {
+ var g;
+ g = {};
+ g.wrapkey = ra(this.wrapKey);
+ g.wrapdata = ra(this.wrapdata);
+ g.encryptionkey = ra(this.encryptionKey);
+ g.hmackey = ra(this.hmacKey);
+ return g;
+ },
+ equals: function va(g) {
+ return this === g ? !0 : g instanceof Wd ? va.base.call(this, g) && Ta(this.wrapKey, g.wrapKey) && Ta(this.wrapdata, g.wrapdata) && Ta(this.encryptionKey, g.encryptionKey) && Ta(this.hmacKey, g.hmacKey) : !1;
+ },
+ uniqueKey: function sa() {
+ return sa.base.call(this) + ":" + Sa(this.wrapKey) + ":" + Sa(this.wrapdata) + ":" + Sa(this.encryptionKey) + ":" + Sa(this.hmacKey);
+ }
+ });
+ Vd = rb.extend({
+ init: function R(g) {
+ R.base.call(this, ob.JWE_LADDER);
+ Object.defineProperties(this, {
+ repository: {
+ value: g,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ }
+ });
+ },
+ createRequestData: function (n, t, Q) {
+ q(Q, function () {
+ var q,
+ n,
+ R;
+ q = t.mechanism;
+ n = t.wrapdata;
+ if (!q || q == v.WRAP && (!n || "string" !== typeof n))
+ throw new ga(g.JSON_PARSE_ERROR, "keydata " + JSON.stringify(t));
+ if (!v[q])
+ throw new Ra(g.UNIDENTIFIED_KEYX_MECHANISM, q);
+ switch (q) {
+ case v.WRAP:
+ try {
+ R = xa(n);
+ } catch (Ea) {
+ throw new Ra(g.KEYX_WRAPPING_KEY_MISSING, "keydata " + t.toString());
+ }
+ if (null == R || 0 == R.length)
+ throw new Ra(g.KEYX_WRAPPING_KEY_MISSING, "keydata " + t.toString());
+ break;
+ default:
+ R = null;
+ }
+ return new y(q, R);
+ });
+ },
+ createResponseData: function (q, n, v) {
+ var y,
+ R,
+ Q,
+ D,
+ ta,
+ J,
+ z;
+ q = v.wrapkey;
+ y = v.wrapdata;
+ R = v.encryptionkey;
+ Q = v.hmackey;
+ if (!(q && "string" === typeof q && y && "string" === typeof y && R && "string" === typeof R && Q) || "string" !== typeof Q)
+ throw new ga(g.JSON_PARSE_ERROR, "keydata " + JSON.stringify(v));
+ try {
+ D = xa(q);
+ ta = xa(y);
+ } catch (la) {
+ throw new N(g.INVALID_SYMMETRIC_KEY, "keydata " + JSON.stringify(v), la);
+ }
+ try {
+ J = xa(R);
+ } catch (la) {
+ throw new N(g.INVALID_ENCRYPTION_KEY, "keydata " + JSON.stringify(v), la);
+ }
+ try {
+ z = xa(Q);
+ } catch (la) {
+ throw new N(g.INVALID_HMAC_KEY, "keydata " + JSON.stringify(v), la);
+ }
+ return new t(n, D, ta, J, z);
+ },
+ generateResponse: function (v, D, Q, W) {
+ var Qa,
+ qa;
+ function R(g, n, t) {
+ Qa.generateSessionKeys(v, {
+ result: function (v) {
+ q(W, function () {
+ ta(g, n, t, v.encryptionKey, v.hmacKey);
+ }, Qa);
+ },
+ error: function (g) {
+ q(W, function () {
+ g instanceof E && g.setEntity(qa);
+ throw g;
+ });
+ }
+ });
+ }
+ function ta(g, t, y, R, Q) {
+ q(W, function () {
+ n(v, D.mechanism, D.wrapdata, g, {
+ result: function (g) {
+ g.wrap(t, {
+ result: function (d) {
+ J(t, y, R, Q, d);
+ },
+ error: function (d) {
+ q(W, function () {
+ d instanceof E && d.setEntity(qa);
+ throw d;
+ });
+ }
+ });
+ },
+ error: function (g) {
+ q(W, function () {
+ g instanceof E && g.setEntity(qa);
+ throw g;
+ });
+ }
+ });
+ }, Qa);
+ }
+ function J(g, n, t, y, R) {
+ q(W, function () {
+ var la;
+ la = new Fb(v, Gb.A128KW, eb, g);
+ la.wrap(t, {
+ result: function (d) {
+ la.wrap(y, {
+ result: function (b) {
+ z(n, R, t, d, y, b);
+ },
+ error: function (b) {
+ q(W, function () {
+ b instanceof E && b.setEntity(qa);
+ throw b;
+ });
+ }
+ });
+ },
+ error: function (d) {
+ q(W, function () {
+ d instanceof E && d.setEntity(qa);
+ throw d;
+ });
+ }
+ });
+ }, Qa);
+ }
+ function z(g, n, y, R, D, ta) {
+ q(W, function () {
+ var d;
+ d = v.getTokenFactory();
+ qa ? d.renewMasterToken(v, qa, y, D, {
+ result: function (b) {
+ q(W, function () {
+ var a,
+ c;
+ a = new kb(v, b);
+ c = new t(b, n, g, R, ta);
+ return new rb.KeyExchangeData(c, a, W);
+ }, Qa);
+ },
+ error: function (b) {
+ q(W, function () {
+ b instanceof E && b.setEntity(qa);
+ throw b;
+ });
+ }
+ }) : d.createMasterToken(v, Q, y, D, {
+ result: function (b) {
+ q(W, function () {
+ var a,
+ c;
+ a = new kb(v, b);
+ c = new t(b, n, g, R, ta);
+ return new rb.KeyExchangeData(c, a, W);
+ }, Qa);
+ },
+ error: W.error
+ });
+ }, Qa);
+ }
+ Qa = this;
+ q(W, function () {
+ var n,
+ t;
+ if (!(D instanceof y))
+ throw new ea("Key request data " + JSON.stringify(D) + " was not created by this factory.");
+ n = Q;
+ if (Q instanceof jb) {
+ if (!Q.isVerified())
+ throw new Wb(g.MASTERTOKEN_UNTRUSTED, Q);
+ qa = Q;
+ n = Q.identity;
+ }
+ t = new Uint8Array(16);
+ v.getRandom().nextBytes(t);
+ Db(t, Cb, Ob, {
+ result: function (g) {
+ q(W, function () {
+ v.getMslCryptoContext().wrap(g, {
+ result: function (q) {
+ R(n, g, q);
+ },
+ error: function (g) {
+ q(W, function () {
+ g instanceof E && g.setEntity(qa);
+ throw g;
+ }, Qa);
+ }
+ });
+ }, Qa);
+ },
+ error: function (n) {
+ q(W, function () {
+ throw new N(g.WRAP_KEY_CREATION_FAILURE, null, n).setEntity(qa);
+ }, Qa);
+ }
+ });
+ }, Qa);
+ },
+ getCryptoContext: function (n, D, Q, W, Aa) {
+ var ta;
+ function R(g, v, t, y, R) {
+ q(Aa, function () {
+ var la;
+ la = new Fb(n, Gb.A128KW, eb, R);
+ la.unwrap(v.encryptionKey, tb, Nb, {
+ result: function (R) {
+ la.unwrap(v.hmacKey, ub, Xb, {
+ result: function (g) {
+ q(Aa, function () {
+ this.repository.addCryptoContext(v.wrapdata, la);
+ this.repository.removeCryptoContext(t);
+ return new kb(n, v.masterToken, y, R, g);
+ }, ta);
+ },
+ error: function (n) {
+ q(Aa, function () {
+ n instanceof E && n.setEntity(g);
+ throw n;
+ });
+ }
+ });
+ },
+ error: function (n) {
+ q(Aa, function () {
+ n instanceof E && n.setEntity(g);
+ throw n;
+ });
+ }
+ });
+ }, ta);
+ }
+ ta = this;
+ q(Aa, function () {
+ var W,
+ U;
+ if (!(D instanceof y))
+ throw new ea("Key request data " + JSON.stringify(D) + " was not created by this factory.");
+ if (!(Q instanceof t))
+ throw new ea("Key response data " + JSON.stringify(Q) + " was not created by this factory.");
+ W = D.mechanism;
+ U = D.wrapdata;
+ n.getEntityAuthenticationData(null, {
+ result: function (t) {
+ q(Aa, function () {
+ var y,
+ D,
+ ta;
+ y = t.getIdentity();
+ switch (W) {
+ case v.PSK:
+ D = new vb(y);
+ ta = n.getEntityAuthenticationFactory(Pa.PSK);
+ if (!ta)
+ throw new Ra(g.UNSUPPORTED_KEYX_MECHANISM, W).setEntity(t);
+ D = ta.getCryptoContext(n, D);
+ D = new Fb(n, Gb.A128KW, eb, ca);
+ break;
+ case v.MGK:
+ D = new qb(y);
+ ta = n.getEntityAuthenticationFactory(Pa.MGK);
+ if (!ta)
+ throw new Ra(g.UNSUPPORTED_KEYX_MECHANISM, W).setEntity(t);
+ D = ta.getCryptoContext(n, D);
+ D = new Fb(n, Gb.A128KW, eb, D.wrapKey);
+ break;
+ case v.WRAP:
+ D = this.repository.getCryptoContext(U);
+ if (!D)
+ throw new Ra(g.KEYX_WRAPPING_KEY_MISSING, ra(U)).setEntity(t);
+ break;
+ default:
+ throw new Ra(g.UNSUPPORTED_KEYX_MECHANISM, W).setEntity(t);
+ }
+ D.unwrap(Q.wrapKey, Cb, Ob, {
+ result: function (g) {
+ R(t, Q, U, y, g);
+ },
+ error: function (g) {
+ q(Aa, function () {
+ g instanceof E && g.setEntity(t);
+ throw g;
+ });
+ }
+ });
+ }, ta);
+ },
+ error: Aa.error
+ });
+ }, ta);
+ }
+ });
+ })();
+ (function () {
+ var v,
+ t,
+ D,
+ I;
+ function n(n, F, t, y, D) {
+ q(D, function () {
+ var x,
+ R;
+ switch (F) {
+ case v.PSK:
+ (x = new vb(y), R = n.getEntityAuthenticationFactory(Pa.PSK));
+ if (!R)
+ throw new Ra(g.UNSUPPORTED_KEYX_MECHANISM, F);
+ x = R.getCryptoContext(n, x);
+ return new I(ca);
+ case v.MGK:
+ x = new qb(y);
+ R = n.getEntityAuthenticationFactory(Pa.MGK);
+ if (!R)
+ throw new Ra(g.UNSUPPORTED_KEYX_MECHANISM, F);
+ x = R.getCryptoContext(n, x);
+ return new I(ca);
+ case v.WRAP:
+ x = n.getMslCryptoContext();
+ x.unwrap(t, Cb, Ob, {
+ result: function (g) {
+ q(D, function () {
+ return new I(g);
+ });
+ },
+ error: D.error
+ });
+ break;
+ default:
+ throw new Ra(g.UNSUPPORTED_KEYX_MECHANISM, F);
+ }
+ });
+ }
+ v = {
+ PSK: "PSK",
+ MGK: "MGK",
+ WRAP: "WRAP"
+ };
+ t = Lc = qc.extend({
+ init: function F(g, q) {
+ F.base.call(this, ob.JWK_LADDER);
+ switch (g) {
+ case v.WRAP:
+ if (!q)
+ throw new ea("Previous wrapping key based key exchange requires the previous wrapping key data and ID.");
+ break;
+ default:
+ q = null;
+ }
+ Object.defineProperties(this, {
+ mechanism: {
+ value: g,
+ writable: !1,
+ configurable: !1
+ },
+ wrapdata: {
+ value: q,
+ writable: !1,
+ configurable: !1
+ }
+ });
+ },
+ getKeydata: function () {
+ var g;
+ g = {};
+ g.mechanism = this.mechanism;
+ this.wrapdata && (g.wrapdata = ra(this.wrapdata));
+ return g;
+ },
+ equals: function ua(g) {
+ return g === this ? !0 : g instanceof Lc ? ua.base.call(this, g) && this.mechanism == g.mechanism && Ta(this.wrapdata, g.wrapdata) : !1;
+ },
+ uniqueKey: function ka() {
+ var g;
+ g = ka.base.call(this) + ":" + this.mechanism;
+ this.wrapdata && (g += ":" + Sa(this.wrapdata));
+ return g;
+ }
+ });
+ D = Xd = rc.extend({
+ init: function va(g, q, n, v, t) {
+ va.base.call(this, g, ob.JWK_LADDER);
+ Object.defineProperties(this, {
+ wrapKey: {
+ value: q,
+ writable: !1,
+ configurable: !1
+ },
+ wrapdata: {
+ value: n,
+ writable: !1,
+ configurable: !1
+ },
+ encryptionKey: {
+ value: v,
+ writable: !1,
+ configurable: !1
+ },
+ hmacKey: {
+ value: t,
+ writable: !1,
+ configurable: !1
+ }
+ });
+ },
+ getKeydata: function () {
+ var g;
+ g = {};
+ g.wrapkey = ra(this.wrapKey);
+ g.wrapdata = ra(this.wrapdata);
+ g.encryptionkey = ra(this.encryptionKey);
+ g.hmackey = ra(this.hmacKey);
+ return g;
+ },
+ equals: function sa(g) {
+ return this === g ? !0 : g instanceof Xd ? sa.base.call(this, g) && Ta(this.wrapKey, g.wrapKey) && Ta(this.wrapdata, g.wrapdata) && Ta(this.encryptionKey, g.encryptionKey) && Ta(this.hmacKey, g.hmacKey) : !1;
+ },
+ uniqueKey: function R() {
+ return R.base.call(this) + ":" + Sa(this.wrapKey) + ":" + Sa(this.wrapdata) + ":" + Sa(this.encryptionKey) + ":" + Sa(this.hmacKey);
+ }
+ });
+ I = ic.extend({
+ init: function (g) {
+ g && g.rawKey && (g = g.rawKey);
+ Object.defineProperties(this, {
+ _wrapKey: {
+ value: g,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ }
+ });
+ },
+ encrypt: function (q, n) {
+ n.error(new N(g.ENCRYPT_NOT_SUPPORTED));
+ },
+ decrypt: function (q, n) {
+ n.error(new N(g.DECRYPT_NOT_SUPPORTED));
+ },
+ wrap: function (n, v) {
+ q(v, function () {
+ Ka.wrapKey("jwk", n.rawKey, this._wrapKey, Cb).then(function (g) {
+ v.result(g);
+ }, function (q) {
+ v.error(new N(g.WRAP_ERROR));
+ });
+ }, this);
+ },
+ unwrap: function (n, v, t, y) {
+ function D(n) {
+ q(y, function () {
+ switch (n.type) {
+ case "secret":
+ fc(n, y);
+ break;
+ case "public":
+ Tb(n, y);
+ break;
+ case "private":
+ gc(n, y);
+ break;
+ default:
+ throw new N(g.UNSUPPORTED_KEY, "type: " + n.type);
+ }
+ });
+ }
+ q(y, function () {
+ Ka.unwrapKey("jwk", n, this._wrapKey, Cb, v, !1, t).then(function (g) {
+ D(g);
+ }, function (q) {
+ y.error(new N(g.UNWRAP_ERROR));
+ });
+ }, this);
+ },
+ sign: function (q, n) {
+ n.error(new N(g.SIGN_NOT_SUPPORTED));
+ },
+ verify: function (q, n, v) {
+ v.error(new N(g.VERIFY_NOT_SUPPORTED));
+ }
+ });
+ nd = rb.extend({
+ init: function ta(g) {
+ ta.base.call(this, ob.JWK_LADDER);
+ Object.defineProperties(this, {
+ repository: {
+ value: g,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ }
+ });
+ },
+ createRequestData: function (n, y, D) {
+ q(D, function () {
+ var q,
+ n,
+ D;
+ q = y.mechanism;
+ n = y.wrapdata;
+ if (!q || q == v.WRAP && (!n || "string" !== typeof n))
+ throw new ga(g.JSON_PARSE_ERROR, "keydata " + JSON.stringify(y));
+ if (!v[q])
+ throw new Ra(g.UNIDENTIFIED_KEYX_MECHANISM, q);
+ switch (q) {
+ case v.WRAP:
+ try {
+ D = xa(n);
+ } catch (Ca) {
+ throw new Ra(g.KEYX_WRAPPING_KEY_MISSING, "keydata " + y.toString());
+ }
+ if (null == D || 0 == D.length)
+ throw new Ra(g.KEYX_WRAPPING_KEY_MISSING, "keydata " + y.toString());
+ break;
+ default:
+ D = null;
+ }
+ return new t(q, D);
+ });
+ },
+ createResponseData: function (q, n, v) {
+ var t,
+ y,
+ I,
+ Q,
+ W,
+ ta,
+ la;
+ q = v.wrapkey;
+ t = v.wrapdata;
+ y = v.encryptionkey;
+ I = v.hmackey;
+ if (!(q && "string" === typeof q && t && "string" === typeof t && y && "string" === typeof y && I) || "string" !== typeof I)
+ throw new ga(g.JSON_PARSE_ERROR, "keydata " + JSON.stringify(v));
+ try {
+ Q = xa(q);
+ W = xa(t);
+ } catch (Ab) {
+ throw new N(g.INVALID_SYMMETRIC_KEY, "keydata " + JSON.stringify(v), Ab);
+ }
+ try {
+ ta = xa(y);
+ } catch (Ab) {
+ throw new N(g.INVALID_ENCRYPTION_KEY, "keydata " + JSON.stringify(v), Ab);
+ }
+ try {
+ la = xa(I);
+ } catch (Ab) {
+ throw new N(g.INVALID_HMAC_KEY, "keydata " + JSON.stringify(v), Ab);
+ }
+ return new D(n, Q, W, ta, la);
+ },
+ generateResponse: function (v, y, W, Aa) {
+ var qa,
+ la;
+ function Q(g, n, t) {
+ qa.generateSessionKeys(v, {
+ result: function (v) {
+ q(Aa, function () {
+ ta(g, n, t, v.encryptionKey, v.hmacKey);
+ }, qa);
+ },
+ error: function (g) {
+ q(Aa, function () {
+ g instanceof E && g.setEntity(la);
+ throw g;
+ });
+ }
+ });
+ }
+ function ta(g, t, D, I, Q) {
+ q(Aa, function () {
+ n(v, y.mechanism, y.wrapdata, g, {
+ result: function (d) {
+ d.wrap(t, {
+ result: function (b) {
+ J(t, D, I, Q, b);
+ },
+ error: function (b) {
+ q(Aa, function () {
+ b instanceof E && b.setEntity(la);
+ throw b;
+ });
+ }
+ });
+ },
+ error: function (d) {
+ q(Aa, function () {
+ d instanceof E && d.setEntity(la);
+ throw d;
+ });
+ }
+ });
+ }, qa);
+ }
+ function J(g, n, v, t, y) {
+ q(Aa, function () {
+ var d;
+ d = new I(g);
+ d.wrap(v, {
+ result: function (b) {
+ d.wrap(t, {
+ result: function (a) {
+ z(n, y, v, b, t, a);
+ },
+ error: function (a) {
+ q(Aa, function () {
+ a instanceof E && a.setEntity(la);
+ throw a;
+ });
+ }
+ });
+ },
+ error: function (b) {
+ q(Aa, function () {
+ b instanceof E && b.setEntity(la);
+ throw b;
+ });
+ }
+ });
+ }, qa);
+ }
+ function z(g, n, t, y, I, d) {
+ q(Aa, function () {
+ var b;
+ b = v.getTokenFactory();
+ la ? b.renewMasterToken(v, la, t, I, {
+ result: function (a) {
+ q(Aa, function () {
+ var b,
+ k;
+ b = new kb(v, a);
+ k = new D(a, n, g, y, d);
+ return new rb.KeyExchangeData(k, b, Aa);
+ }, qa);
+ },
+ error: function (a) {
+ q(Aa, function () {
+ a instanceof E && a.setEntity(la);
+ throw a;
+ });
+ }
+ }) : b.createMasterToken(v, W, t, I, {
+ result: function (a) {
+ q(Aa, function () {
+ var b,
+ k;
+ b = new kb(v, a);
+ k = new D(a, n, g, y, d);
+ return new rb.KeyExchangeData(k, b, Aa);
+ }, qa);
+ },
+ error: Aa.error
+ });
+ }, qa);
+ }
+ qa = this;
+ q(Aa, function () {
+ var n,
+ D;
+ if (!(y instanceof t))
+ throw new ea("Key request data " + JSON.stringify(y) + " was not created by this factory.");
+ n = W;
+ if (W instanceof jb) {
+ if (!W.isVerified())
+ throw new Wb(g.MASTERTOKEN_UNTRUSTED, W);
+ la = W;
+ n = W.identity;
+ }
+ D = new Uint8Array(16);
+ v.getRandom().nextBytes(D);
+ Db(D, Cb, Ob, {
+ result: function (g) {
+ q(Aa, function () {
+ v.getMslCryptoContext().wrap(g, {
+ result: function (q) {
+ Q(n, g, q);
+ },
+ error: function (g) {
+ q(Aa, function () {
+ g instanceof E && g.setEntity(la);
+ throw g;
+ }, qa);
+ }
+ });
+ }, qa);
+ },
+ error: function (n) {
+ q(Aa, function () {
+ throw new N(g.WRAP_KEY_CREATION_FAILURE, null, n).setEntity(la);
+ }, qa);
+ }
+ });
+ }, qa);
+ },
+ getCryptoContext: function (n, y, W, J, U) {
+ var ta;
+ function Q(g, v, t, y, D) {
+ q(U, function () {
+ var la;
+ la = new I(D);
+ la.unwrap(v.encryptionKey, tb, Nb, {
+ result: function (D) {
+ la.unwrap(v.hmacKey, ub, Xb, {
+ result: function (g) {
+ q(U, function () {
+ this.repository.addCryptoContext(v.wrapdata, la);
+ this.repository.removeCryptoContext(t);
+ return new kb(n, v.masterToken, y, D, g);
+ }, ta);
+ },
+ error: function (n) {
+ q(U, function () {
+ n instanceof E && n.setEntity(g);
+ throw n;
+ });
+ }
+ });
+ },
+ error: function (n) {
+ q(U, function () {
+ n instanceof E && n.setEntity(g);
+ throw n;
+ });
+ }
+ });
+ }, ta);
+ }
+ ta = this;
+ q(U, function () {
+ var J,
+ Aa;
+ if (!(y instanceof t))
+ throw new ea("Key request data " + JSON.stringify(y) + " was not created by this factory.");
+ if (!(W instanceof D))
+ throw new ea("Key response data " + JSON.stringify(W) + " was not created by this factory.");
+ J = y.mechanism;
+ Aa = y.wrapdata;
+ n.getEntityAuthenticationData(null, {
+ result: function (t) {
+ q(U, function () {
+ var y,
+ D,
+ la;
+ y = t.getIdentity();
+ switch (J) {
+ case v.PSK:
+ D = new vb(y);
+ la = n.getEntityAuthenticationFactory(Pa.PSK);
+ if (!la)
+ throw new Ra(g.UNSUPPORTED_KEYX_MECHANISM, J).setEntity(t);
+ D = la.getCryptoContext(n, D);
+ D = new I(D.wrapKey);
+ break;
+ case v.MGK:
+ D = new qb(y);
+ la = n.getEntityAuthenticationFactory(Pa.MGK);
+ if (!la)
+ throw new Ra(g.UNSUPPORTED_KEYX_MECHANISM, J).setEntity(t);
+ D = la.getCryptoContext(n, D);
+ D = new I(D.wrapKey);
+ break;
+ case v.WRAP:
+ D = this.repository.getCryptoContext(Aa);
+ if (!D)
+ throw new Ra(g.KEYX_WRAPPING_KEY_MISSING, ra(Aa)).setEntity(t);
+ break;
+ default:
+ throw new Ra(g.UNSUPPORTED_KEYX_MECHANISM, J).setEntity(t);
+ }
+ D.unwrap(W.wrapKey, Cb, Ob, {
+ result: function (g) {
+ Q(t, W, Aa, y, g);
+ },
+ error: function (g) {
+ q(U, function () {
+ g instanceof E && g.setEntity(t);
+ throw g;
+ });
+ }
+ });
+ }, ta);
+ },
+ error: U.error
+ });
+ }, ta);
+ }
+ });
+ })();
+ Ve = oa.Class.create({
+ addCryptoContext: function (g, q) {},
+ getCryptoContext: function (g) {},
+ removeCryptoContext: function (g) {}
+ });
+ (function () {
+ var v,
+ t,
+ D,
+ I;
+ function n(q, n, t, y, D) {
+ switch (t) {
+ case v.JWE_RSA:
+ case v.JWEJS_RSA:
+ return new Fb(q, Gb.RSA_OAEP, eb, y, D);
+ case v.JWK_RSA:
+ return new Fc(q, n, y, D, Gc.WRAP_UNWRAP_OAEP);
+ case v.JWK_RSAES:
+ return new Fc(q, n, y, D, Gc.WRAP_UNWRAP_PKCS1);
+ default:
+ throw new N(g.UNSUPPORTED_KEYX_MECHANISM, t);
+ }
+ }
+ v = Mc = {
+ RSA: "RSA",
+ ECC: "ECC",
+ JWE_RSA: "JWE_RSA",
+ JWEJS_RSA: "JWEJS_RSA",
+ JWK_RSA: "JWK_RSA",
+ JWK_RSAES: "JWK_RSAES"
+ };
+ t = Yc = qc.extend({
+ init: function F(g, q, n, v) {
+ F.base.call(this, ob.ASYMMETRIC_WRAPPED);
+ Object.defineProperties(this, {
+ keyPairId: {
+ value: g,
+ writable: !1,
+ configurable: !1
+ },
+ mechanism: {
+ value: q,
+ writable: !1,
+ configurable: !1
+ },
+ publicKey: {
+ value: n,
+ writable: !1,
+ configurable: !1
+ },
+ privateKey: {
+ value: v,
+ writable: !1,
+ configurable: !1
+ }
+ });
+ },
+ getKeydata: function () {
+ var g;
+ g = {};
+ g.keypairid = this.keyPairId;
+ g.mechanism = this.mechanism;
+ g.publickey = ra(this.publicKey.getEncoded());
+ return g;
+ },
+ equals: function ua(g) {
+ var q;
+ if (g === this)
+ return !0;
+ if (!(g instanceof Yc))
+ return !1;
+ q = this.privateKey === g.privateKey || this.privateKey && g.privateKey && Ta(this.privateKey.getEncoded(), g.privateKey.getEncoded());
+ return ua.base.call(this, g) && this.keyPairId == g.keyPairId && this.mechanism == g.mechanism && Ta(this.publicKey.getEncoded(), g.publicKey.getEncoded()) && q;
+ },
+ uniqueKey: function ka() {
+ var g,
+ q;
+ g = this.publicKey.getEncoded();
+ q = this.privateKey && this.privateKey.getEncoded();
+ g = ka.base.call(this) + ":" + this.keyPairId + ":" + this.mechanism + ":" + Sa(g);
+ q && (g += ":" + Sa(q));
+ return g;
+ }
+ });
+ D = function (n, y) {
+ q(y, function () {
+ var q,
+ D,
+ I,
+ Q;
+ q = n.keypairid;
+ D = n.mechanism;
+ I = n.publickey;
+ if (!q || "string" !== typeof q || !D || !I || "string" !== typeof I)
+ throw new ga(g.JSON_PARSE_ERROR, "keydata " + JSON.stringify(n));
+ if (!v[D])
+ throw new Ra(g.UNIDENTIFIED_KEYX_MECHANISM, D);
+ try {
+ Q = xa(I);
+ switch (D) {
+ case v.JWE_RSA:
+ case v.JWEJS_RSA:
+ case v.JWK_RSA:
+ cd(Q, Dc, Ob, {
+ result: function (g) {
+ y.result(new t(q, D, g, null));
+ },
+ error: function (g) {
+ y.error(g);
+ }
+ });
+ break;
+ case v.JWK_RSAES:
+ cd(Q, ad, Ob, {
+ result: function (g) {
+ y.result(new t(q, D, g, null));
+ },
+ error: function (g) {
+ y.error(g);
+ }
+ });
+ break;
+ default:
+ throw new N(g.UNSUPPORTED_KEYX_MECHANISM, D);
+ }
+ } catch (W) {
+ if (!(W instanceof E))
+ throw new N(g.INVALID_PUBLIC_KEY, "keydata " + JSON.stringify(n), W);
+ throw W;
+ }
+ });
+ };
+ I = Yd = rc.extend({
+ init: function va(g, q, n, v) {
+ va.base.call(this, g, ob.ASYMMETRIC_WRAPPED);
+ Object.defineProperties(this, {
+ keyPairId: {
+ value: q,
+ writable: !1,
+ configurable: !1
+ },
+ encryptionKey: {
+ value: n,
+ writable: !1,
+ configurable: !1
+ },
+ hmacKey: {
+ value: v,
+ writable: !1,
+ configurable: !1
+ }
+ });
+ },
+ getKeydata: function () {
+ var g;
+ g = {};
+ g.keypairid = this.keyPairId;
+ g.encryptionkey = ra(this.encryptionKey);
+ g.hmackey = ra(this.hmacKey);
+ return g;
+ },
+ equals: function sa(g) {
+ return this === g ? !0 : g instanceof Yd ? sa.base.call(this, g) && this.keyPairId == g.keyPairId && Ta(this.encryptionKey, g.encryptionKey) && Ta(this.hmacKey, g.hmacKey) : !1;
+ },
+ uniqueKey: function R() {
+ return R.base.call(this) + ":" + this.keyPairId + ":" + Sa(this.encryptionKey) + ":" + Sa(this.hmacKey);
+ }
+ });
+ Dd = rb.extend({
+ init: function ta() {
+ ta.base.call(this, ob.ASYMMETRIC_WRAPPED);
+ },
+ createRequestData: function (g, q, n) {
+ D(q, n);
+ },
+ createResponseData: function (q, n, v) {
+ var t,
+ y,
+ D,
+ Q;
+ q = v.keypairid;
+ t = v.encryptionkey;
+ y = v.hmackey;
+ if (!q || "string" !== typeof q || !t || "string" !== typeof t || !y || "string" !== typeof y)
+ throw new ga(g.JSON_PARSE_ERROR, "keydata " + JSON.stringify(v));
+ try {
+ D = xa(t);
+ } catch (Qa) {
+ throw new N(g.INVALID_ENCRYPTION_KEY, "keydata " + JSON.stringify(v), Qa);
+ }
+ try {
+ Q = xa(y);
+ } catch (Qa) {
+ throw new N(g.INVALID_HMAC_KEY, "keydata " + JSON.stringify(v), Qa);
+ }
+ return new I(n, q, D, Q);
+ },
+ generateResponse: function (g, v, y, D) {
+ var W;
+ function Q(t, I) {
+ q(D, function () {
+ var la;
+ la = n(g, v.keyPairId, v.mechanism, null, v.publicKey);
+ la.wrap(t, {
+ result: function (g) {
+ q(D, function () {
+ la.wrap(I, {
+ result: function (q) {
+ J(t, g, I, q);
+ },
+ error: function (g) {
+ q(D, function () {
+ g instanceof E && y instanceof jb && g.setEntity(y);
+ throw g;
+ }, W);
+ }
+ });
+ }, W);
+ },
+ error: function (g) {
+ q(D, function () {
+ g instanceof E && y instanceof jb && g.setEntity(y);
+ throw g;
+ }, W);
+ }
+ });
+ }, W);
+ }
+ function J(n, t, la, Q) {
+ q(D, function () {
+ var U;
+ U = g.getTokenFactory();
+ y instanceof jb ? U.renewMasterToken(g, y, n, la, {
+ result: function (n) {
+ q(D, function () {
+ var q,
+ y;
+ q = new kb(g, n);
+ y = new I(n, v.keyPairId, t, Q);
+ return new rb.KeyExchangeData(y, q, D);
+ }, W);
+ },
+ error: function (g) {
+ q(D, function () {
+ g instanceof E && g.setEntity(y);
+ throw g;
+ }, W);
+ }
+ }) : U.createMasterToken(g, y, n, la, {
+ result: function (n) {
+ q(D, function () {
+ var q,
+ y;
+ q = new kb(g, n);
+ y = new I(n, v.keyPairId, t, Q);
+ return new rb.KeyExchangeData(y, q, D);
+ }, W);
+ },
+ error: D.error
+ });
+ }, W);
+ }
+ W = this;
+ q(D, function () {
+ if (!(v instanceof t))
+ throw new ea("Key request data " + JSON.stringify(v) + " was not created by this factory.");
+ this.generateSessionKeys(g, {
+ result: function (g) {
+ Q(g.encryptionKey, g.hmacKey);
+ },
+ error: function (g) {
+ q(D, function () {
+ g instanceof E && y instanceof jb && g.setEntity(y);
+ throw g;
+ }, W);
+ }
+ });
+ }, W);
+ },
+ getCryptoContext: function (v, y, D, J, U) {
+ var Q;
+ Q = this;
+ q(U, function () {
+ var W,
+ ta,
+ Aa;
+ if (!(y instanceof t))
+ throw new ea("Key request data " + JSON.stringify(y) + " was not created by this factory.");
+ if (!(D instanceof I))
+ throw new ea("Key response data " + JSON.stringify(D) + " was not created by this factory.");
+ W = y.keyPairId;
+ ta = D.keyPairId;
+ if (W != ta)
+ throw new Ra(g.KEYX_RESPONSE_REQUEST_MISMATCH, "request " + W + "; response " + ta).setEntity(J);
+ ta = y.privateKey;
+ if (!ta)
+ throw new Ra(g.KEYX_PRIVATE_KEY_MISSING, "request Asymmetric private key").setEntity(J);
+ Aa = n(v, W, y.mechanism, ta, null);
+ Aa.unwrap(D.encryptionKey, tb, Nb, {
+ result: function (g) {
+ Aa.unwrap(D.hmacKey, ub, Xb, {
+ result: function (n) {
+ v.getEntityAuthenticationData(null, {
+ result: function (t) {
+ q(U, function () {
+ var q;
+ q = t.getIdentity();
+ return new kb(v, D.masterToken, q, g, n);
+ }, Q);
+ },
+ error: function (g) {
+ q(U, function () {
+ g instanceof E && g.setEntity(J);
+ throw g;
+ }, Q);
+ }
+ });
+ },
+ error: function (g) {
+ q(U, function () {
+ g instanceof E && g.setEntity(J);
+ throw g;
+ }, Q);
+ }
+ });
+ },
+ error: function (g) {
+ q(U, function () {
+ g instanceof E && g.setEntity(J);
+ throw g;
+ }, Q);
+ }
+ });
+ }, Q);
+ }
+ });
+ })();
+ Ue = oa.Class.create({
+ init: function (g) {
+ var q,
+ n,
+ t,
+ I,
+ x,
+ F,
+ J,
+ ka;
+ q = bb.parser();
+ n = [];
+ t = [];
+ J = 0;
+ ka = !1;
+ q.onerror = function (g) {
+ ka || (ka = !0, q.end());
+ };
+ q.onopenobject = function (g) {
+ var q;
+ if (I)
+ (I[F] = {}, t.push(I), I = I[F]);
+ else if (x) {
+ q = {};
+ t.push(x);
+ x.push(q);
+ I = q;
+ x = ca;
+ } else
+ I = {};
+ F = g;
+ };
+ q.oncloseobject = function () {
+ var g;
+ g = t.pop();
+ g ? "object" === typeof g ? I = g : (I = ca, x = g) : (n.push(I), J = q.index, I = ca);
+ };
+ q.onopenarray = function () {
+ var g;
+ if (I)
+ (I[F] = [], t.push(I), x = I[F], I = ca);
+ else if (x) {
+ g = [];
+ t.push(x);
+ x.push(g);
+ x = g;
+ } else
+ x = [];
+ };
+ q.onclosearray = function () {
+ var g;
+ g = t.pop();
+ g ? "object" === typeof g ? (I = g, x = ca) : x = g : (n.push(x), J = q.index, x = ca);
+ };
+ q.onkey = function (g) {
+ F = g;
+ };
+ q.onvalue = function (g) {
+ I ? I[F] = g : x ? x.push(g) : (n.push(g), J = q.index);
+ };
+ q.write(g).close();
+ Object.defineProperties(this, {
+ _values: {
+ value: n,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ _lastIndex: {
+ value: J,
+ writable: !0,
+ enumerable: !1,
+ configurable: !1
+ }
+ });
+ },
+ more: function () {
+ return 0 < this._values.length;
+ },
+ nextValue: function () {
+ return 0 == this._values.length ? ca : this._values.shift();
+ },
+ lastIndex: function () {
+ return this._lastIndex;
+ }
+ });
+ (function () {
+ var n,
+ v,
+ t,
+ D,
+ I;
+ n = od = "entityauthdata";
+ v = $d = "mastertoken";
+ t = ae = "headerdata";
+ D = be = "errordata";
+ I = pd = "signature";
+ Zd = function (x, F, y, ka) {
+ q(ka, function () {
+ var q,
+ J,
+ R,
+ ua,
+ Q,
+ W;
+ q = F[n];
+ J = F[v];
+ R = F[I];
+ if (q && "object" !== typeof q || J && "object" !== typeof J || "string" !== typeof R)
+ throw new ga(g.JSON_PARSE_ERROR, "header/errormsg " + JSON.stringify(F));
+ try {
+ ua = xa(R);
+ } catch (Aa) {
+ throw new Ga(g.HEADER_SIGNATURE_INVALID, "header/errormsg " + JSON.stringify(F), Aa);
+ }
+ Q = null;
+ q && (Q = Md(x, q));
+ W = F[t];
+ if (W != ca && null != W) {
+ if ("string" !== typeof W)
+ throw new ga(g.JSON_PARSE_ERROR, "header/errormsg " + JSON.stringify(F));
+ J ? Yb(x, J, {
+ result: function (g) {
+ qd(x, W, Q, g, ua, y, ka);
+ },
+ error: function (g) {
+ ka.error(g);
+ }
+ }) : qd(x, W, Q, null, ua, y, ka);
+ } else if ((q = F[D], q != ca && null != q)) {
+ if ("string" !== typeof q)
+ throw new ga(g.JSON_PARSE_ERROR, "header/errormsg " + JSON.stringify(F));
+ ce(x, q, Q, ua, ka);
+ } else
+ throw new ga(g.JSON_PARSE_ERROR, JSON.stringify(F));
+ });
+ };
+ })();
+ (function () {
+ function t(g, q) {
+ this.errordata = g;
+ this.signature = q;
+ }
+ Sb = oa.Class.create({
+ init: function (n, t, D, I, x, F, J, ka, z, sa) {
+ var v;
+ v = this;
+ q(sa, function () {
+ var y,
+ R;
+ 0 > F && (F = -1);
+ if (0 > I || I > Na)
+ throw new ea("Message ID " + I + " is out of range.");
+ if (!t)
+ throw new Ga(g.MESSAGE_ENTITY_NOT_FOUND);
+ if (z)
+ return (Object.defineProperties(this, {
+ entityAuthenticationData: {
+ value: t,
+ writable: !1,
+ configurable: !1
+ },
+ recipient: {
+ value: D,
+ writable: !1,
+ configurable: !1
+ },
+ messageId: {
+ value: I,
+ writable: !1,
+ configurable: !1
+ },
+ errorCode: {
+ value: x,
+ writable: !1,
+ configurable: !1
+ },
+ internalCode: {
+ value: F,
+ writable: !1,
+ configurable: !1
+ },
+ errorMessage: {
+ value: J,
+ writable: !1,
+ configurable: !1
+ },
+ userMessage: {
+ value: ka,
+ writable: !1,
+ configurable: !1
+ },
+ errordata: {
+ value: z.errordata,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ signature: {
+ value: z.signature,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ }
+ }), this);
+ y = {};
+ D && (y.recipient = D);
+ y.messageid = I;
+ y.errorcode = x;
+ 0 < F && (y.internalcode = F);
+ J && (y.errormsg = J);
+ ka && (y.usermsg = ka);
+ try {
+ R = n.getEntityAuthenticationFactory(t.scheme).getCryptoContext(n, t);
+ } catch (W) {
+ throw (W instanceof E && (W.setEntity(t), W.setMessageId(I)), W);
+ }
+ y = Oa(JSON.stringify(y), Ma);
+ R.encrypt(y, {
+ result: function (g) {
+ q(sa, function () {
+ R.sign(g, {
+ result: function (n) {
+ q(sa, function () {
+ Object.defineProperties(this, {
+ entityAuthenticationData: {
+ value: t,
+ writable: !1,
+ configurable: !1
+ },
+ recipient: {
+ value: D,
+ writable: !1,
+ configurable: !1
+ },
+ messageId: {
+ value: I,
+ writable: !1,
+ configurable: !1
+ },
+ errorCode: {
+ value: x,
+ writable: !1,
+ configurable: !1
+ },
+ internalCode: {
+ value: F,
+ writable: !1,
+ configurable: !1
+ },
+ errorMessage: {
+ value: J,
+ writable: !1,
+ configurable: !1
+ },
+ userMessage: {
+ value: ka,
+ writable: !1,
+ configurable: !1
+ },
+ errordata: {
+ value: g,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ signature: {
+ value: n,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ }
+ });
+ return this;
+ }, v);
+ },
+ error: function (g) {
+ q(sa, function () {
+ g instanceof E && (g.setEntity(t), g.setMessageId(I));
+ throw g;
+ }, v);
+ }
+ });
+ }, v);
+ },
+ error: function (g) {
+ q(sa, function () {
+ g instanceof E && (g.setEntity(t), g.setMessageId(I));
+ throw g;
+ }, v);
+ }
+ });
+ }, v);
+ },
+ toJSON: function () {
+ var g;
+ g = {};
+ g[od] = this.entityAuthenticationData;
+ g[be] = ra(this.errordata);
+ g[pd] = ra(this.signature);
+ return g;
+ }
+ });
+ de = function (g, q, n, t, x, F, J, ka, z) {
+ new Sb(g, q, n, t, x, F, J, ka, null, z);
+ };
+ ce = function (v, y, D, I, x) {
+ q(x, function () {
+ var F,
+ J,
+ ka;
+ if (!D)
+ throw new Ga(g.MESSAGE_ENTITY_NOT_FOUND);
+ try {
+ J = D.scheme;
+ ka = v.getEntityAuthenticationFactory(J);
+ if (!ka)
+ throw new Bb(g.ENTITYAUTH_FACTORY_NOT_FOUND, J);
+ F = ka.getCryptoContext(v, D);
+ } catch (va) {
+ throw (va instanceof E && va.setEntity(D), va);
+ }
+ try {
+ y = xa(y);
+ } catch (va) {
+ throw new Ga(g.HEADER_DATA_INVALID, y, va).setEntity(D);
+ }
+ if (!y || 0 == y.length)
+ throw new Ga(g.HEADER_DATA_MISSING, y).setEntity(D);
+ F.verify(y, I, {
+ result: function (ka) {
+ q(x, function () {
+ if (!ka)
+ throw new N(g.MESSAGE_VERIFICATION_FAILED).setEntity(D);
+ F.decrypt(y, {
+ result: function (F) {
+ q(x, function () {
+ var q,
+ ka,
+ Q,
+ J,
+ ua,
+ U,
+ z,
+ va;
+ q = Ja(F, Ma);
+ try {
+ ka = JSON.parse(q);
+ } catch (qa) {
+ if (qa instanceof SyntaxError)
+ throw new ga(g.JSON_PARSE_ERROR, "errordata " + q, qa).setEntity(D);
+ throw qa;
+ }
+ Q = ka.recipient !== ca ? ka.recipient : null;
+ J = parseInt(ka.messageid);
+ ua = parseInt(ka.errorcode);
+ U = parseInt(ka.internalcode);
+ z = ka.errormsg;
+ va = ka.usermsg;
+ if (Q && "string" !== typeof Q || !J || J != J || !ua || ua != ua || ka.internalcode && U != U || z && "string" !== typeof z || va && "string" !== typeof va)
+ throw new ga(g.JSON_PARSE_ERROR, "errordata " + q).setEntity(D);
+ if (0 > J || J > Na)
+ throw new Ga(g.MESSAGE_ID_OUT_OF_RANGE, "errordata " + q).setEntity(D);
+ ka = !1;
+ for (var sa in n) {
+ if (n[sa] == ua) {
+ ka = !0;
+ break;
+ }
+ }
+ ka || (ua = n.FAIL);
+ if (U) {
+ if (0 > U)
+ throw new Ga(g.INTERNAL_CODE_NEGATIVE, "errordata " + q).setEntity(D).setMessageId(J);
+ } else
+ U = -1;
+ q = new t(y, I);
+ new Sb(v, D, Q, J, ua, U, z, va, q, x);
+ });
+ },
+ error: function (g) {
+ q(x, function () {
+ g instanceof E && g.setEntity(D);
+ throw g;
+ });
+ }
+ });
+ });
+ },
+ error: function (g) {
+ q(x, function () {
+ g instanceof E && g.setEntity(D);
+ throw g;
+ });
+ }
+ });
+ });
+ };
+ })();
+ We = oa.Class.create({
+ getUserMessage: function (g, q) {}
+ });
+ (function () {
+ rd = function (g, q) {
+ var n,
+ v;
+ if (!g || !q)
+ return null;
+ n = g.compressionAlgorithms.filter(function (g) {
+ for (var n = 0; n < q.compressionAlgorithms.length; ++n) {
+ if (g == q.compressionAlgorithms[n])
+ return !0;
+ }
+ return !1;
+ });
+ v = g.languages.filter(function (g) {
+ for (var n = 0; n < q.languages.length; ++n) {
+ if (g == q.languages[n])
+ return !0;
+ }
+ return !1;
+ });
+ return new sc(n, v);
+ };
+ sc = oa.Class.create({
+ init: function (g, q) {
+ g || (g = []);
+ q || (q = []);
+ g.sort();
+ Object.defineProperties(this, {
+ compressionAlgorithms: {
+ value: g,
+ writable: !1,
+ enumerable: !0,
+ configurable: !1
+ },
+ languages: {
+ value: q,
+ writable: !1,
+ enumerable: !0,
+ configurable: !1
+ }
+ });
+ },
+ toJSON: function () {
+ var g;
+ g = {};
+ g.compressionalgos = this.compressionAlgorithms;
+ g.languages = this.languages;
+ return g;
+ },
+ equals: function (g) {
+ return this === g ? !0 : g instanceof sc ? yd(this.compressionAlgorithms, g.compressionAlgorithms) && yd(this.languages, g.languages) : !1;
+ },
+ uniqueKey: function () {
+ return this.compressionAlgorithms.join(":") + "|" + this.languages.join(":");
+ }
+ });
+ ee = function (q) {
+ var n,
+ t,
+ I;
+ n = q.compressionalgos;
+ t = q.languages;
+ if (n && !(n instanceof Array) || t && !(t instanceof Array))
+ throw new ga(g.JSON_PARSE_ERROR, "capabilities " + JSON.stringify(q));
+ q = [];
+ for (var D = 0; n && D < n.length; ++D) {
+ I = n[D];
+ Ub[I] && q.push(I);
+ }
+ return new sc(q, t);
+ };
+ })();
+ (function () {
+ var sa,
+ R;
+ function n(g, q, n, x, v) {
+ this.customer = g;
+ this.sender = q;
+ this.messageCryptoContext = n;
+ this.headerdata = x;
+ this.signature = v;
+ }
+ function v(g, q, n, x, v, t, F, y, D, I, R, ka, J, wa, ua, d, b, a, c, k) {
+ return {
+ cryptoContext: {
+ value: q,
+ writable: !1,
+ configurable: !1
+ },
+ customer: {
+ value: n,
+ writable: !1,
+ configurable: !1
+ },
+ entityAuthenticationData: {
+ value: x,
+ writable: !1,
+ configurable: !1
+ },
+ masterToken: {
+ value: v,
+ writable: !1,
+ configurable: !1
+ },
+ sender: {
+ value: t,
+ writable: !1,
+ configurable: !1
+ },
+ messageId: {
+ value: F,
+ writable: !1,
+ configurable: !1
+ },
+ nonReplayableId: {
+ value: d,
+ writable: !1,
+ configurable: !1
+ },
+ keyRequestData: {
+ value: y,
+ writable: !1,
+ configurable: !1
+ },
+ keyResponseData: {
+ value: D,
+ writable: !1,
+ configurable: !1
+ },
+ userAuthenticationData: {
+ value: I,
+ writable: !1,
+ configurable: !1
+ },
+ userIdToken: {
+ value: R,
+ writable: !1,
+ configurable: !1
+ },
+ serviceTokens: {
+ value: ka,
+ writable: !1,
+ configurable: !1
+ },
+ peerMasterToken: {
+ value: J,
+ writable: !1,
+ configurable: !1
+ },
+ peerUserIdToken: {
+ value: wa,
+ writable: !1,
+ configurable: !1
+ },
+ peerServiceTokens: {
+ value: ua,
+ writable: !1,
+ configurable: !1
+ },
+ messageCapabilities: {
+ value: a,
+ writable: !1,
+ configurable: !1
+ },
+ renewable: {
+ value: b,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ headerdata: {
+ value: c,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ signature: {
+ value: k,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ }
+ };
+ }
+ function t(q, n, x) {
+ var v;
+ if (x) {
+ if (n = q.getMslStore().getCryptoContext(x))
+ return n;
+ if (!x.isVerified() || !x.isDecrypted())
+ throw new Wb(g.MASTERTOKEN_UNTRUSTED, x);
+ return new kb(q, x);
+ }
+ x = n.scheme;
+ v = q.getEntityAuthenticationFactory(x);
+ if (!v)
+ throw new Bb(g.ENTITYAUTH_FACTORY_NOT_FOUND, x);
+ return v.getCryptoContext(q, n);
+ }
+ function D(n, x, v, t, F) {
+ q(F, function () {
+ x.verify(v, t, {
+ result: function (n) {
+ q(F, function () {
+ if (!n)
+ throw new N(g.MESSAGE_VERIFICATION_FAILED);
+ x.decrypt(v, {
+ result: function (g) {
+ q(F, function () {
+ return Ja(g, Ma);
+ });
+ },
+ error: function (g) {
+ F.error(g);
+ }
+ });
+ });
+ },
+ error: function (g) {
+ F.error(g);
+ }
+ });
+ });
+ }
+ function I(g, n, x) {
+ q(x, function () {
+ if (n)
+ Ud(g, n, x);
+ else
+ return null;
+ });
+ }
+ function x(g, n, x, v) {
+ q(v, function () {
+ if (n)
+ Zb(g, n, x, v);
+ else
+ return null;
+ });
+ }
+ function F(g, n, x, v) {
+ q(v, function () {
+ if (x)
+ ie(g, n, x, v);
+ else
+ return null;
+ });
+ }
+ function ua(n, x, v, t, F, y, D) {
+ var R;
+ function I(x, D, ka) {
+ var la,
+ Q;
+ if (D >= x.length) {
+ la = [];
+ for (Q in R) {
+ la.push(R[Q]);
+ }
+ ka.result(la);
+ } else {
+ la = x[D];
+ if ("object" !== typeof la)
+ throw new ga(g.JSON_PARSE_ERROR, "headerdata " + y);
+ Nc(n, la, v, t, F, {
+ result: function (g) {
+ q(ka, function () {
+ R[g.uniqueKey()] = g;
+ I(x, D + 1, ka);
+ });
+ },
+ error: function (g) {
+ ka.error(g);
+ }
+ });
+ }
+ }
+ R = {};
+ q(D, function () {
+ if (x) {
+ if (!(x instanceof Array))
+ throw new ga(g.JSON_PARSE_ERROR, "headerdata " + y);
+ I(x, 0, D);
+ } else
+ return [];
+ });
+ }
+ function ka(n, x, v, t, F, y) {
+ function D(n, x, v) {
+ q(v, function () {
+ var q;
+ q = x.peermastertoken;
+ if (q && "object" !== typeof q)
+ throw new ga(g.JSON_PARSE_ERROR, "headerdata " + F);
+ if (!q)
+ return null;
+ Yb(n, q, v);
+ });
+ }
+ function I(n, x, v, t) {
+ q(t, function () {
+ var q;
+ q = x.peeruseridtoken;
+ if (q && "object" !== typeof q)
+ throw new ga(g.JSON_PARSE_ERROR, "headerdata " + F);
+ if (!q)
+ return null;
+ Zb(n, q, v, t);
+ });
+ }
+ q(y, function () {
+ if (!n.isPeerToPeer())
+ return {
+ peerMasterToken: null,
+ peerUserIdToken: null,
+ peerServiceTokens: []
+ };
+ D(n, x, {
+ result: function (g) {
+ q(y, function () {
+ var D;
+ D = v ? v.masterToken : g;
+ I(n, x, D, {
+ result: function (v) {
+ q(y, function () {
+ ua(n, x.peerservicetokens, D, v, t, F, {
+ result: function (n) {
+ q(y, function () {
+ return {
+ peerMasterToken: g,
+ peerUserIdToken: v,
+ peerServiceTokens: n
+ };
+ });
+ },
+ error: function (g) {
+ q(y, function () {
+ g instanceof E && (g.setEntity(D), g.setUser(v));
+ throw g;
+ });
+ }
+ });
+ });
+ },
+ error: function (g) {
+ q(y, function () {
+ g instanceof E && g.setEntity(D);
+ throw g;
+ });
+ }
+ });
+ });
+ },
+ error: y.error
+ });
+ });
+ }
+ function z(n, x, v, t) {
+ var y;
+ function F(g, x) {
+ q(t, function () {
+ if (x >= g.length)
+ return y;
+ Td(n, g[x], {
+ result: function (n) {
+ q(t, function () {
+ y.push(n);
+ F(g, x + 1);
+ });
+ },
+ error: function (g) {
+ t.error(g);
+ }
+ });
+ });
+ }
+ y = [];
+ q(t, function () {
+ var q;
+ q = x.keyrequestdata;
+ if (!q)
+ return y;
+ if (!(q instanceof Array))
+ throw new ga(g.JSON_PARSE_ERROR, "headerdata " + v);
+ F(q, 0);
+ });
+ }
+ sa = ge = oa.Class.create({
+ init: function (g, q, n, x, v, t, F, y, D) {
+ Object.defineProperties(this, {
+ messageId: {
+ value: g,
+ writable: !1,
+ configurable: !1
+ },
+ nonReplayableId: {
+ value: q,
+ writable: !1,
+ configurable: !1
+ },
+ renewable: {
+ value: n,
+ writable: !1,
+ configurable: !1
+ },
+ capabilities: {
+ value: x,
+ writable: !1,
+ configurable: !1
+ },
+ keyRequestData: {
+ value: v,
+ writable: !1,
+ configurable: !1
+ },
+ keyResponseData: {
+ value: t,
+ writable: !1,
+ configurable: !1
+ },
+ userAuthData: {
+ value: F,
+ writable: !1,
+ configurable: !1
+ },
+ userIdToken: {
+ value: y,
+ writable: !1,
+ configurable: !1
+ },
+ serviceTokens: {
+ value: D,
+ writable: !1,
+ configurable: !1
+ }
+ });
+ }
+ });
+ R = he = oa.Class.create({
+ init: function (g, q, n) {
+ Object.defineProperties(this, {
+ peerMasterToken: {
+ value: g,
+ writable: !1,
+ configurable: !1
+ },
+ peerUserIdToken: {
+ value: q,
+ writable: !1,
+ configurable: !1
+ },
+ peerServiceTokens: {
+ value: n,
+ writable: !1,
+ configurable: !1
+ }
+ });
+ }
+ });
+ tc = oa.Class.create({
+ init: function (g, n, x, F, y, D, I) {
+ var ka;
+ function R(la) {
+ q(I, function () {
+ var R,
+ J,
+ ua,
+ Q,
+ U,
+ d,
+ b,
+ a,
+ c,
+ k,
+ l,
+ r,
+ h,
+ p,
+ m,
+ f,
+ u;
+ n = x ? null : n;
+ R = F.nonReplayableId;
+ J = F.renewable;
+ ua = F.capabilities;
+ Q = F.messageId;
+ U = F.keyRequestData ? F.keyRequestData : [];
+ d = F.keyResponseData;
+ b = F.userAuthData;
+ a = F.userIdToken;
+ c = F.serviceTokens ? F.serviceTokens : [];
+ g.isPeerToPeer() ? (k = y.peerMasterToken, l = y.peerUserIdToken, r = y.peerServiceTokens ? y.peerServiceTokens : []) : (l = k = null, r = []);
+ if (0 > Q || Q > Na)
+ throw new ea("Message ID " + Q + " is out of range.");
+ if (!n && !x)
+ throw new ea("Message entity authentication data or master token must be provided.");
+ d ? g.isPeerToPeer() ? (h = x, p = d.masterToken) : (h = d.masterToken, p = k) : (h = x, p = k);
+ if (a && (!h || !a.isBoundTo(h)))
+ throw new ea("User ID token must be bound to a master token.");
+ if (l && (!p || !l.isBoundTo(p)))
+ throw new ea("Peer user ID token must be bound to a peer master token.");
+ c.forEach(function (b) {
+ if (b.isMasterTokenBound() && (!h || !b.isBoundTo(h)))
+ throw new ea("Master token bound service tokens must be bound to the provided master token.");
+ if (b.isUserIdTokenBound() && (!a || !b.isBoundTo(a)))
+ throw new ea("User ID token bound service tokens must be bound to the provided user ID token.");
+ }, this);
+ r.forEach(function (a) {
+ if (a.isMasterTokenBound() && (!p || !a.isBoundTo(p)))
+ throw new ea("Master token bound peer service tokens must be bound to the provided peer master token.");
+ if (a.isUserIdTokenBound() && (!l || !a.isBoundTo(l)))
+ throw new ea("User ID token bound peer service tokens must be bound to the provided peer user ID token.");
+ }, this);
+ if (D) {
+ m = D.customer;
+ f = D.messageCryptoContext;
+ u = v(g, f, m, n, x, la, Q, U, d, b, a, c, k, l, r, R, J, ua, D.headerdata, D.signature);
+ Object.defineProperties(this, u);
+ return this;
+ }
+ m = a ? a.customer : null;
+ u = {};
+ la && (u.sender = la);
+ u.messageid = Q;
+ "number" === typeof R && (u.nonreplayableid = R);
+ u.renewable = J;
+ ua && (u.capabilities = ua);
+ 0 < U.length && (u.keyrequestdata = U);
+ d && (u.keyresponsedata = d);
+ b && (u.userauthdata = b);
+ a && (u.useridtoken = a);
+ 0 < c.length && (u.servicetokens = c);
+ k && (u.peermastertoken = k);
+ l && (u.peeruseridtoken = l);
+ 0 < r.length && (u.peerservicetokens = r);
+ try {
+ f = t(g, n, x);
+ } catch (w) {
+ throw (w instanceof E && (w.setEntity(x), w.setEntity(n), w.setUser(a), w.setUser(b), w.setMessageId(Q)), w);
+ }
+ u = Oa(JSON.stringify(u), Ma);
+ f.encrypt(u, {
+ result: function (h) {
+ q(I, function () {
+ f.sign(h, {
+ result: function (p) {
+ q(I, function () {
+ var u;
+ u = v(g, f, m, n, x, la, Q, U, d, b, a, c, k, l, r, R, J, ua, h, p);
+ Object.defineProperties(this, u);
+ return this;
+ }, ka);
+ },
+ error: function (k) {
+ q(I, function () {
+ k instanceof E && (k.setEntity(x), k.setEntity(n), k.setUser(a), k.setUser(b), k.setMessageId(Q));
+ throw k;
+ }, ka);
+ }
+ });
+ }, ka);
+ },
+ error: function (k) {
+ q(I, function () {
+ k instanceof E && (k.setEntity(x), k.setEntity(n), k.setUser(a), k.setUser(b), k.setMessageId(Q));
+ throw k;
+ }, ka);
+ }
+ });
+ }, ka);
+ }
+ ka = this;
+ q(I, function () {
+ D ? R(D.sender) : x ? g.getEntityAuthenticationData(null, {
+ result: function (g) {
+ g = g.getIdentity();
+ R(g);
+ },
+ error: I.error
+ }) : R(null);
+ }, ka);
+ },
+ isEncrypting: function () {
+ return this.masterToken || xb(this.entityAuthenticationData.scheme);
+ },
+ isRenewable: function () {
+ return this.renewable;
+ },
+ toJSON: function () {
+ var g;
+ g = {};
+ this.masterToken ? g[$d] = this.masterToken : g[od] = this.entityAuthenticationData;
+ g[ae] = ra(this.headerdata);
+ g[pd] = ra(this.signature);
+ return g;
+ }
+ });
+ fe = function (g, q, n, x, v, t) {
+ new tc(g, q, n, x, v, null, t);
+ };
+ qd = function (v, y, J, va, U, Ea, Ca) {
+ q(Ca, function () {
+ var Q,
+ W;
+ J = va ? null : J;
+ if (!J && !va)
+ throw new Ga(g.MESSAGE_ENTITY_NOT_FOUND);
+ Q = y;
+ try {
+ y = xa(Q);
+ } catch (la) {
+ throw new Ga(g.HEADER_DATA_INVALID, Q, la);
+ }
+ if (!y || 0 == y.length)
+ throw new Ga(g.HEADER_DATA_MISSING, Q);
+ try {
+ W = t(v, J, va);
+ } catch (la) {
+ throw (la instanceof E && (la.setEntity(va), la.setEntity(J)), la);
+ }
+ D(v, W, y, U, {
+ result: function (t) {
+ q(Ca, function () {
+ var D,
+ la,
+ Q,
+ wa,
+ ta;
+ try {
+ D = JSON.parse(t);
+ } catch (d) {
+ if (d instanceof SyntaxError)
+ throw new ga(g.JSON_PARSE_ERROR, "headerdata " + t, d).setEntity(va).setEntity(J);
+ throw d;
+ }
+ la = parseInt(D.messageid);
+ if (!la || la != la)
+ throw new ga(g.JSON_PARSE_ERROR, "headerdata " + t).setEntity(va).setEntity(J);
+ if (0 > la || la > Na)
+ throw new Ga(g.MESSAGE_ID_OUT_OF_RANGE, "headerdata " + t).setEntity(va).setEntity(J);
+ Q = va ? D.sender : null;
+ if (va && (!Q || "string" !== typeof Q))
+ throw new ga(g.JSON_PARSE_ERROR, "headerdata " + t).setEntity(va).setEntity(J).setMessageId(la);
+ wa = D.keyresponsedata;
+ if (wa && "object" !== typeof wa)
+ throw new ga(g.JSON_PARSE_ERROR, "headerdata " + t).setEntity(va).setEntity(J).setMessageId(la);
+ ta = Ca;
+ Ca = {
+ result: function (d) {
+ ta.result(d);
+ },
+ error: function (d) {
+ d instanceof E && (d.setEntity(va), d.setEntity(J), d.setMessageId(la));
+ ta.error(d);
+ }
+ };
+ I(v, wa, {
+ result: function (d) {
+ q(Ca, function () {
+ var b,
+ a;
+ b = !v.isPeerToPeer() && d ? d.masterToken : va;
+ a = D.useridtoken;
+ if (a && "object" !== typeof a)
+ throw new ga(g.JSON_PARSE_ERROR, "headerdata " + t);
+ x(v, a, b, {
+ result: function (a) {
+ q(Ca, function () {
+ var k;
+ k = D.userauthdata;
+ if (k && "object" !== typeof k)
+ throw new ga(g.JSON_PARSE_ERROR, "headerdata " + t);
+ F(v, b, k, {
+ result: function (k) {
+ q(Ca, function () {
+ var c,
+ h,
+ p;
+ if (k) {
+ h = k.scheme;
+ p = v.getUserAuthenticationFactory(h);
+ if (!p)
+ throw new Da(g.USERAUTH_FACTORY_NOT_FOUND, h).setUser(a).setUser(k);
+ h = va ? va.identity : J.getIdentity();
+ c = p.authenticate(v, h, k, a);
+ } else
+ c = a ? a.customer : null;
+ ua(v, D.servicetokens, b, a, Ea, t, {
+ result: function (b) {
+ q(Ca, function () {
+ var f,
+ h,
+ m,
+ p;
+ f = D.nonreplayableid !== ca ? parseInt(D.nonreplayableid) : null;
+ h = D.renewable;
+ if (f != f || "boolean" !== typeof h)
+ throw new ga(g.JSON_PARSE_ERROR, "headerdata " + t);
+ if (0 > f || f > Na)
+ throw new Ga(g.NONREPLAYABLE_ID_OUT_OF_RANGE, "headerdata " + t);
+ m = null;
+ p = D.capabilities;
+ if (p) {
+ if ("object" !== typeof p)
+ throw new ga(g.JSON_PARSE_ERROR, "headerdata " + t);
+ m = ee(p);
+ }
+ z(v, D, t, {
+ result: function (p) {
+ ka(v, D, d, Ea, t, {
+ result: function (u) {
+ q(Ca, function () {
+ var l,
+ r,
+ w,
+ A;
+ l = u.peerMasterToken;
+ r = u.peerUserIdToken;
+ w = u.peerServiceTokens;
+ A = new sa(la, f, h, m, p, d, k, a, b);
+ l = new R(l, r, w);
+ r = new n(c, Q, W, y, U);
+ new tc(v, J, va, A, l, r, Ca);
+ });
+ },
+ error: Ca.error
+ });
+ },
+ error: function (b) {
+ q(Ca, function () {
+ b instanceof E && (b.setUser(a), b.setUser(k));
+ throw b;
+ });
+ }
+ });
+ });
+ },
+ error: function (h) {
+ q(Ca, function () {
+ h instanceof E && (h.setEntity(b), h.setUser(a), h.setUser(k));
+ throw h;
+ });
+ }
+ });
+ });
+ },
+ error: Ca.error
+ });
+ });
+ },
+ error: Ca.error
+ });
+ });
+ },
+ error: Ca.error
+ });
+ });
+ },
+ error: Ca.error
+ });
+ });
+ };
+ })();
+ (function () {
+ function n(g, q) {
+ this.payload = g;
+ this.signature = q;
+ }
+ sd = oa.Class.create({
+ init: function (g, n, t, I, x, F, J, ka) {
+ var v;
+ v = this;
+ q(ka, function () {
+ var y,
+ D;
+ if (0 > g || g > Na)
+ throw new ea("Sequence number " + g + " is outside the valid range.");
+ if (0 > n || n > Na)
+ throw new ea("Message ID " + n + " is outside the valid range.");
+ if (J)
+ return (Object.defineProperties(this, {
+ sequenceNumber: {
+ value: g,
+ writable: !1,
+ configurable: !1
+ },
+ messageId: {
+ value: n,
+ writable: !1,
+ configurable: !1
+ },
+ compressionAlgo: {
+ value: I,
+ writable: !1,
+ configurable: !1
+ },
+ data: {
+ value: x,
+ writable: !1,
+ configurable: !1
+ },
+ endofmsg: {
+ value: t,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ payload: {
+ value: J.payload,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ signature: {
+ value: J.signature,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ }
+ }), this);
+ I ? (y = td(I, x), y || (I = null, y = x)) : (I = null, y = x);
+ D = {};
+ D.sequencenumber = g;
+ D.messageid = n;
+ t && (D.endofmsg = t);
+ I && (D.compressionalgo = I);
+ D.data = ra(y);
+ y = Oa(JSON.stringify(D), Ma);
+ F.encrypt(y, {
+ result: function (y) {
+ q(ka, function () {
+ F.sign(y, {
+ result: function (F) {
+ q(ka, function () {
+ Object.defineProperties(this, {
+ sequenceNumber: {
+ value: g,
+ writable: !1,
+ configurable: !1
+ },
+ messageId: {
+ value: n,
+ writable: !1,
+ configurable: !1
+ },
+ compressionAlgo: {
+ value: I,
+ writable: !1,
+ configurable: !1
+ },
+ data: {
+ value: x,
+ writable: !1,
+ configurable: !1
+ },
+ endofmsg: {
+ value: t,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ payload: {
+ value: y,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ signature: {
+ value: F,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ }
+ });
+ return this;
+ }, v);
+ },
+ error: function (g) {
+ ka.error(g);
+ }
+ });
+ }, v);
+ },
+ error: function (g) {
+ ka.error(g);
+ }
+ });
+ }, v);
+ },
+ isEndOfMessage: function () {
+ return this.endofmsg;
+ },
+ toJSON: function () {
+ var g;
+ g = {};
+ g.payload = ra(this.payload);
+ g.signature = ra(this.signature);
+ return g;
+ }
+ });
+ je = function (g, n, q, t, x, F, J) {
+ new sd(g, n, q, t, x, F, null, J);
+ };
+ ke = function (v, t, D) {
+ q(D, function () {
+ var y,
+ x,
+ F,
+ J;
+ y = v.payload;
+ x = v.signature;
+ if (!y || "string" !== typeof y || "string" !== typeof x)
+ throw new ga(g.JSON_PARSE_ERROR, "payload chunk " + JSON.stringify(v));
+ try {
+ F = xa(y);
+ } catch (ka) {
+ throw new Ga(g.PAYLOAD_INVALID, "payload chunk " + JSON.stringify(v), ka);
+ }
+ try {
+ J = xa(x);
+ } catch (ka) {
+ throw new Ga(g.PAYLOAD_SIGNATURE_INVALID, "payload chunk " + JSON.stringify(v), ka);
+ }
+ t.verify(F, J, {
+ result: function (x) {
+ q(D, function () {
+ if (!x)
+ throw new N(g.PAYLOAD_VERIFICATION_FAILED);
+ t.decrypt(F, {
+ result: function (x) {
+ q(D, function () {
+ var q,
+ v,
+ y,
+ I,
+ ka,
+ ua,
+ U;
+ q = Ja(x, Ma);
+ try {
+ v = JSON.parse(q);
+ } catch (Ea) {
+ if (Ea instanceof SyntaxError)
+ throw new ga(g.JSON_PARSE_ERROR, "payload chunk payload " + q, Ea);
+ throw Ea;
+ }
+ y = parseInt(v.sequencenumber);
+ I = parseInt(v.messageid);
+ ka = v.endofmsg;
+ ua = v.compressionalgo;
+ v = v.data;
+ if (!y || y != y || !I || I != I || ka && "boolean" !== typeof ka || ua && "string" !== typeof ua || "string" !== typeof v)
+ throw new ga(g.JSON_PARSE_ERROR, "payload chunk payload " + q);
+ if (0 > y || y > Na)
+ throw new E(g.PAYLOAD_SEQUENCE_NUMBER_OUT_OF_RANGE, "payload chunk payload " + q);
+ if (0 > I || I > Na)
+ throw new E(g.PAYLOAD_MESSAGE_ID_OUT_OF_RANGE, "payload chunk payload " + q);
+ ka || (ka = !1);
+ if (ua && !Ub[ua])
+ throw new Ga(g.UNIDENTIFIED_COMPRESSION, ua);
+ try {
+ U = xa(v);
+ } catch (Ea) {
+ throw new Ga(g.PAYLOAD_DATA_CORRUPT, v, Ea);
+ }
+ if (U && 0 != U.length)
+ q = ua ? Oc(ua, U) : U;
+ else {
+ if (0 < v.length)
+ throw new Ga(g.PAYLOAD_DATA_CORRUPT, v);
+ if (ka)
+ q = new Uint8Array(0);
+ else
+ throw new Ga(g.PAYLOAD_DATA_MISSING, v);
+ }
+ U = new n(F, J);
+ new sd(y, I, ka, ua, q, t, U, D);
+ });
+ },
+ error: function (g) {
+ D.error(g);
+ }
+ });
+ });
+ },
+ error: function (g) {
+ D.error(g);
+ }
+ });
+ });
+ };
+ })();
+ (function () {
+ var D,
+ I;
+ function n(n, v, t, y, D) {
+ var F,
+ I,
+ ka,
+ J,
+ ua;
+ function x() {
+ q(D, function () {
+ var t,
+ y;
+ I >= v.length && (I = 0, ++F);
+ if (F >= ka.length) {
+ if (J)
+ throw J;
+ throw new Ra(g.KEYX_FACTORY_NOT_FOUND, JSON.stringify(v));
+ }
+ t = ka[F];
+ y = v[I];
+ t.scheme != y.keyExchangeScheme ? (++I, x()) : t.generateResponse(n, y, ua, {
+ result: function (g) {
+ D.result(g);
+ },
+ error: function (g) {
+ q(D, function () {
+ if (!(g instanceof E))
+ throw g;
+ J = g;
+ ++I;
+ x();
+ });
+ }
+ });
+ });
+ }
+ F = 0;
+ I = 0;
+ ka = n.getKeyExchangeFactories();
+ ua = t ? t : y;
+ x();
+ }
+ function v(g, v, t, y, D) {
+ q(D, function () {
+ var x;
+ x = v.keyRequestData;
+ if (v.isRenewable() && 0 < x.length)
+ y ? y.isRenewable() || y.isExpired() ? n(g, x, y, null, D) : g.getTokenFactory().isNewestMasterToken(g, y, {
+ result: function (v) {
+ q(D, function () {
+ if (v)
+ return null;
+ n(g, x, y, null, D);
+ });
+ },
+ error: D.error
+ }) : n(g, x, null, t.getIdentity(), D);
+ else
+ return null;
+ });
+ }
+ function t(n, v, t, y) {
+ q(y, function () {
+ var q,
+ x,
+ F,
+ D;
+ q = v.userIdToken;
+ x = v.userAuthenticationData;
+ F = v.messageId;
+ if (q && q.isVerified()) {
+ if (q.isRenewable() && v.isRenewable() || q.isExpired() || !q.isBoundTo(t)) {
+ x = n.getTokenFactory();
+ x.renewUserIdToken(n, q, t, y);
+ return;
+ }
+ } else if (v.isRenewable() && t && x) {
+ q = v.customer;
+ if (!q) {
+ q = x.scheme;
+ D = n.getUserAuthenticationFactory(q);
+ if (!D)
+ throw new Da(g.USERAUTH_FACTORY_NOT_FOUND, q).setEntity(t).setUser(x).setMessageId(F);
+ q = D.authenticate(n, t.identity, x, null);
+ }
+ x = n.getTokenFactory();
+ x.createUserIdToken(n, q, t, y);
+ return;
+ }
+ return q;
+ });
+ }
+ D = new Uint8Array(0);
+ I = $b = function (g) {
+ if (0 > g || g > Na)
+ throw new ea("Message ID " + g + " is outside the valid range.");
+ return g == Na ? 0 : g + 1;
+ };
+ kc = function (g) {
+ if (0 > g || g > Na)
+ throw new ea("Message ID " + g + " is outside the valid range.");
+ return 0 == g ? Na : g - 1;
+ };
+ ac = function (g, n, v, t, y) {
+ q(y, function () {
+ var x;
+ if (t == ca || null == t) {
+ x = g.getRandom();
+ do {
+ t = x.nextLong();
+ } while (0 > t || t > Na);
+ } else if (0 > t || t > Na)
+ throw new ea("Message ID " + t + " is outside the valid range.");
+ g.getEntityAuthenticationData(null, {
+ result: function (x) {
+ q(y, function () {
+ var q;
+ q = g.getMessageCapabilities();
+ return new Pc(g, t, q, x, n, v, null, null, null, null, null);
+ });
+ },
+ error: function (g) {
+ y.error(g);
+ }
+ });
+ });
+ };
+ le = function (g, n, y) {
+ q(y, function () {
+ var F,
+ D,
+ R,
+ J,
+ Q,
+ ua;
+ function x(g) {
+ q(y, function () {
+ g instanceof E && (g.setEntity(F), g.setEntity(D), g.setUser(R), g.setUser(J), g.setMessageId(Q));
+ throw g;
+ });
+ }
+ F = n.masterToken;
+ D = n.entityAuthenticationData;
+ R = n.userIdToken;
+ J = n.userAuthenticationData;
+ Q = n.messageId;
+ ua = I(Q);
+ v(g, n, D, F, {
+ result: function (v) {
+ q(y, function () {
+ var D;
+ D = v ? v.keyResponseData.masterToken : D = F;
+ g.getEntityAuthenticationData(null, {
+ result: function (I) {
+ q(y, function () {
+ t(g, n, D, {
+ result: function (x) {
+ q(y, function () {
+ var q,
+ t,
+ y;
+ R = x;
+ q = rd(n.messageCapabilities, g.getMessageCapabilities());
+ t = n.keyResponseData;
+ y = n.serviceTokens;
+ return g.isPeerToPeer() ? new Pc(g, ua, q, I, t ? t.masterToken : n.peerMasterToken, n.peerUserIdToken, n.peerServiceTokens, F, R, y, v) : new Pc(g, ua, q, I, t ? t.masterToken : F, R, y, null, null, null, v);
+ });
+ },
+ error: x
+ });
+ });
+ },
+ error: x
+ });
+ });
+ },
+ error: x
+ });
+ });
+ };
+ me = function (g, n, v, t, y) {
+ q(y, function () {
+ g.getEntityAuthenticationData(null, {
+ result: function (x) {
+ q(y, function () {
+ var q,
+ F;
+ if (n != ca && null != n)
+ q = I(n);
+ else {
+ F = g.getRandom();
+ do {
+ q = F.nextInt();
+ } while (0 > q || q > Na);
+ }
+ de(g, x, q, v.responseCode, v.internalCode, v.message, t, y);
+ });
+ },
+ error: function (g) {
+ y.error(g);
+ }
+ });
+ });
+ };
+ Pc = oa.Class.create({
+ init: function (g, q, n, v, t, y, D, I, J, z, E) {
+ var x,
+ F,
+ ka,
+ R,
+ Q;
+ if (!g.isPeerToPeer() && (I || J))
+ throw new ea("Cannot set peer master token or peer user ID token when not in peer-to-peer mode.");
+ x = E && !g.isPeerToPeer() ? E.keyResponseData.masterToken : t;
+ F = [];
+ x = g.getMslStore().getServiceTokens(x, y);
+ F.push.apply(F, x);
+ D && D.forEach(function (g) {
+ F.push(g);
+ }, this);
+ Q = [];
+ g.isPeerToPeer() && (ka = I, R = J, D = E ? E.keyResponseData.masterToken : I, J = g.getMslStore().getServiceTokens(D, J), Q.push.apply(Q, J), z && z.forEach(function (g) {
+ Q.push(g);
+ }, this));
+ Object.defineProperties(this, {
+ _ctx: {
+ value: g,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ _entityAuthData: {
+ value: v,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ _masterToken: {
+ value: t,
+ writable: !0,
+ enumerable: !1,
+ configurable: !1
+ },
+ _messageId: {
+ value: q,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ _capabilities: {
+ value: n,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ _keyExchangeData: {
+ value: E,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ _nonReplayable: {
+ value: !1,
+ writable: !0,
+ enumerable: !1,
+ configurable: !1
+ },
+ _renewable: {
+ value: !1,
+ writable: !0,
+ enumerable: !1,
+ configurable: !1
+ },
+ _keyRequestData: {
+ value: {},
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ _userAuthData: {
+ value: null,
+ writable: !0,
+ enumerable: !1,
+ configurable: !1
+ },
+ _userIdToken: {
+ value: y,
+ writable: !0,
+ enumerable: !1,
+ configurable: !1
+ },
+ _serviceTokens: {
+ value: F,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ _peerMasterToken: {
+ value: ka,
+ writable: !0,
+ enumerable: !1,
+ configurable: !1
+ },
+ _peerUserIdToken: {
+ value: R,
+ writable: !0,
+ enumerable: !1,
+ configurable: !1
+ },
+ _peerServiceTokens: {
+ value: Q,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ }
+ });
+ },
+ getMessageId: function () {
+ return this._messageId;
+ },
+ getMasterToken: function () {
+ return this._masterToken;
+ },
+ getUserIdToken: function () {
+ return this._userIdToken;
+ },
+ getKeyExchangeData: function () {
+ return this._keyExchangeData;
+ },
+ willEncryptHeader: function () {
+ return this._masterToken || xb(this._entityAuthData.scheme);
+ },
+ willEncryptPayloads: function () {
+ return this._masterToken || !this._ctx.isPeerToPeer() && this._keyExchangeData || xb(this._entityAuthData.scheme);
+ },
+ willIntegrityProtectHeader: function () {
+ return this._masterToken || pb(this._entityAuthData.scheme);
+ },
+ willIntegrityProtectPayloads: function () {
+ return this._masterToken || !this._ctx.isPeerToPeer() && this._keyExchangeData || pb(this._entityAuthData.scheme);
+ },
+ getHeader: function (n) {
+ q(n, function () {
+ var q,
+ x,
+ v;
+ q = this._keyExchangeData ? this._keyExchangeData.keyResponseData : null;
+ x = [];
+ for (v in this._keyRequestData) {
+ x.push(this._keyRequestData[v]);
+ }
+ if (this._nonReplayable) {
+ if (!this._masterToken)
+ throw new Ga(g.NONREPLAYABLE_MESSAGE_REQUIRES_MASTERTOKEN);
+ v = this._ctx.getMslStore().getNonReplayableId(this._masterToken);
+ } else
+ v = null;
+ q = new ge(this._messageId, v, this._renewable, this._capabilities, x, q, this._userAuthData, this._userIdToken, this._serviceTokens);
+ x = new he(this._peerMasterToken, this._peerUserIdToken, this._peerServiceTokens);
+ fe(this._ctx, this._entityAuthData, this._masterToken, q, x, n);
+ }, this);
+ },
+ isNonReplayable: function () {
+ return this._nonReplayable;
+ },
+ setNonReplayable: function (g) {
+ this._nonReplayable = g;
+ return this;
+ },
+ isRenewable: function () {
+ return this._renewable;
+ },
+ setRenewable: function (g) {
+ this._renewable = g;
+ return this;
+ },
+ setAuthTokens: function (g, q) {
+ var n,
+ v;
+ if (q && !q.isBoundTo(g))
+ throw new ea("User ID token must be bound to master token.");
+ if (this._keyExchangeData && !this._ctx.isPeerToPeer())
+ throw new ea("Attempt to set message builder master token when key exchange data exists as a trusted network server.");
+ try {
+ n = this._ctx.getMslStore().getServiceTokens(g, q);
+ } catch (sa) {
+ if (sa instanceof E)
+ throw new ea("Invalid master token and user ID token combination despite checking above.", sa);
+ throw sa;
+ }
+ for (var x = this._serviceTokens.length - 1; 0 <= x; --x) {
+ v = this._serviceTokens[x];
+ (v.isUserIdTokenBound() && !v.isBoundTo(q) || v.isMasterTokenBound() && !v.isBoundTo(g)) && this._serviceTokens.splice(x, 1);
+ }
+ n.forEach(function (g) {
+ this.excludeServiceToken(g.name, g.isMasterTokenBound(), g.isUserIdTokenBound());
+ this._serviceTokens.push(g);
+ }, this);
+ this._masterToken = g;
+ this._userIdToken = q;
+ },
+ setUserAuthenticationData: function (g) {
+ this._userAuthData = g;
+ return this;
+ },
+ setCustomer: function (g, n) {
+ var x;
+ x = this;
+ q(n, function () {
+ var v;
+ if (!this._ctx.isPeerToPeer() && null != this._userIdToken || this._ctx.isPeerToPeer() && null != this._peerUserIdToken)
+ throw new ea("User ID token or peer user ID token already exists for the remote user.");
+ v = this._keyExchangeData ? this._keyExchangeData.keyResponseData.masterToken : this._ctx.isPeerToPeer() ? this._peerMasterToken : this._masterToken;
+ if (!v)
+ throw new ea("User ID token or peer user ID token cannot be created because no corresponding master token exists.");
+ this._ctx.getTokenFactory().createUserIdToken(this._ctx, g, v, {
+ result: function (g) {
+ q(n, function () {
+ this._ctx.isPeerToPeer() ? this._peerUserIdToken = g : (this._userIdToken = g, this._userAuthData = null);
+ return !0;
+ }, x);
+ },
+ error: function (g) {
+ n.error(g);
+ }
+ });
+ }, x);
+ },
+ addKeyRequestData: function (g) {
+ this._keyRequestData[g.uniqueKey()] = g;
+ return this;
+ },
+ removeKeyRequestData: function (g) {
+ delete this._keyRequestData[g.uniqueKey()];
+ return this;
+ },
+ addServiceToken: function (q) {
+ var n;
+ n = this._keyExchangeData && !this._ctx.isPeerToPeer() ? this._keyExchangeData.keyResponseData.masterToken : this._masterToken;
+ if (q.isMasterTokenBound() && !q.isBoundTo(n))
+ throw new Ga(g.SERVICETOKEN_MASTERTOKEN_MISMATCH, "st " + JSON.stringify(q) + "; mt " + JSON.stringify(n)).setEntity(n);
+ if (q.isUserIdTokenBound() && !q.isBoundTo(this._userIdToken))
+ throw new Ga(g.SERVICETOKEN_USERIDTOKEN_MISMATCH, "st " + JSON.stringify(q) + "; uit " + JSON.stringify(this._userIdToken)).setEntity(n).setUser(this._userIdToken);
+ this.excludeServiceToken(q.name, q.isMasterTokenBound(), q.isUserIdTokenBound());
+ this._serviceTokens.push(q);
+ return this;
+ },
+ addServiceTokenIfAbsent: function (g) {
+ var n;
+ for (var q = this._serviceTokens.length - 1; 0 <= q; --q) {
+ n = this._serviceTokens[q];
+ if (n.name == g.name && n.isMasterTokenBound() == g.isMasterTokenBound() && n.isUserIdTokenBound() == g.isUserIdTokenBound())
+ return this;
+ }
+ this.addServiceToken(g);
+ return this;
+ },
+ excludeServiceToken: function () {
+ var g,
+ q,
+ n,
+ t;
+ 1 == arguments.length ? (n = arguments[0], g = n.name, q = n.isMasterTokenBound(), n = n.isUserIdTokenBound()) : (arguments.length = 3, g = arguments[0], q = arguments[1], n = arguments[2]);
+ for (var v = this._serviceTokens.length - 1; 0 <= v; --v) {
+ t = this._serviceTokens[v];
+ t.name == g && t.isMasterTokenBound() == q && t.isUserIdTokenBound() == n && this._serviceTokens.splice(v, 1);
+ }
+ return this;
+ },
+ deleteServiceToken: function () {
+ var g,
+ n,
+ v,
+ t;
+ if (2 == arguments.length) {
+ v = arguments[0];
+ g = v.name;
+ v.isMasterTokenBound();
+ v.isUserIdTokenBound();
+ n = arguments[1];
+ } else (arguments.length = 4, g = arguments[0], n = arguments[3]);
+ t = this;
+ q(n, function () {
+ var x,
+ v;
+ x = originalToken.isMasterTokenBound() ? this._masterToken : null;
+ v = originalToken.isUserIdTokenBound() ? this._userIdToken : null;
+ Hb(this._ctx, g, D, x, v, !1, null, new jc(), {
+ result: function (g) {
+ q(n, function () {
+ return this.addServiceToken(g);
+ }, t);
+ },
+ error: function (g) {
+ g instanceof E && (g = new ea("Failed to create and add empty service token to message.", g));
+ n.error(g);
+ }
+ });
+ }, t);
+ },
+ getServiceTokens: function () {
+ var g;
+ g = [];
+ g.push.apply(g, this._serviceTokens);
+ return g;
+ },
+ getPeerMasterToken: function () {
+ return this._peerMasterToken;
+ },
+ getPeerUserIdToken: function () {
+ return this._peerUserIdToken;
+ },
+ setPeerAuthTokens: function (n, q) {
+ var x,
+ t;
+ if (!this._ctx.isPeerToPeer())
+ throw new ea("Cannot set peer master token or peer user ID token when not in peer-to-peer mode.");
+ if (q && !n)
+ throw new ea("Peer master token cannot be null when setting peer user ID token.");
+ if (q && !q.isBoundTo(n))
+ throw new Ga(g.USERIDTOKEN_MASTERTOKEN_MISMATCH, "uit " + q + "; mt " + n).setEntity(n).setUser(q);
+ try {
+ x = this._ctx.getMslStore().getServiceTokens(n, q);
+ } catch (sa) {
+ if (sa instanceof E)
+ throw new ea("Invalid peer master token and user ID token combination despite proper check.", sa);
+ throw sa;
+ }
+ for (var v = this._peerServiceTokens.length - 1; 0 <= v; --v) {
+ t = this._peerServiceTokens[v];
+ (t.isUserIdTokenBound() && !t.isBoundTo(q) || t.isMasterTokenBound() && !t.isBoundTo(n)) && this._peerServiceTokens.slice(v, 1);
+ }
+ x.forEach(function (g) {
+ this.excludePeerServiceToken(g.name, g.isMasterTokenBound(), g.isUserIdTokenBound());
+ this._peerServiceTokens.push(g);
+ }, this);
+ this._peerUserIdToken = q;
+ this._peerMasterToken = n;
+ return this;
+ },
+ addPeerServiceToken: function (n) {
+ if (!this._ctx.isPeerToPeer())
+ throw new ea("Cannot set peer service tokens when not in peer-to-peer mode.");
+ if (n.isMasterTokenBound() && !n.isBoundTo(this._peerMasterToken))
+ throw new Ga(g.SERVICETOKEN_MASTERTOKEN_MISMATCH, "st " + JSON.stringify(n) + "; mt " + JSON.stringify(this._peerMasterToken)).setEntity(this._peerMasterToken);
+ if (n.isUserIdTokenBound() && !n.isBoundTo(this._peerUserIdToken))
+ throw new Ga(g.SERVICETOKEN_USERIDTOKEN_MISMATCH, "st " + JSON.stringify(n) + "; uit " + JSON.stringify(this._peerUserIdToken)).setEntity(this._peerMasterToken).setUser(this._peerUserIdToken);
+ this.excludePeerServiceToken(n.name, n.isMasterTokenBound(), n.isUserIdTokenBound());
+ this._peerServiceTokens.push(n);
+ return this;
+ },
+ addPeerServiceTokenIfAbsent: function (g) {
+ var q;
+ for (var n = this._peerServiceTokens.length - 1; 0 <= n; --n) {
+ q = this._peerServiceTokens[n];
+ if (q.name == g.name && q.isMasterTokenBound() == g.isMasterTokenBound() && q.isUserIdTokenBound() == g.isUserIdTokenBound())
+ return this;
+ }
+ this.addPeerServiceToken(g);
+ return this;
+ },
+ excludePeerServiceToken: function () {
+ var g,
+ n,
+ q,
+ t;
+ 1 == arguments.length ? (q = arguments[0], g = q.name, n = q.isMasterTokenBound(), q = q.isUserIdTokenBound()) : (arguments.length = 3, g = arguments[0], n = arguments[1], q = arguments[2]);
+ for (var v = this._peerServiceTokens.length - 1; 0 <= v; --v) {
+ t = this._peerServiceTokens[v];
+ t.name == g && t.isMasterTokenBound() == n && t.isUserIdTokenBound() == q && this._peerServiceTokens.splice(v, 1);
+ }
+ return this;
+ },
+ deletePeerServiceToken: function () {
+ var g,
+ n,
+ v,
+ t,
+ y,
+ I;
+ if (2 == arguments.length) {
+ y = arguments[0];
+ g = y.name;
+ n = y.isMasterTokenBound();
+ v = y.isUserIdTokenBound();
+ t = arguments[1];
+ } else (arguments.length = 4, g = arguments[0], n = arguments[1], v = arguments[2], t = arguments[3]);
+ I = this;
+ q(t, function () {
+ Hb(this._ctx, g, D, n ? this._peerMasterToken : null, v ? this._peerUserIdToken : null, !1, null, new jc(), {
+ result: function (g) {
+ q(t, function () {
+ return this.addPeerServiceToken(g);
+ }, I);
+ },
+ error: function (g) {
+ g instanceof E && (g = new ea("Failed to create and add empty peer service token to message.", g));
+ t.error(g);
+ }
+ });
+ }, I);
+ },
+ getPeerServiceTokens: function () {
+ var g;
+ g = [];
+ g.push.apply(g, this._peerServiceTokens);
+ return g;
+ }
+ });
+ })();
+ (function () {
+ function g(g, n) {
+ return n[g] ? n[g] : n[""];
+ }
+ function n(g) {
+ var n;
+ n = g.builder.getKeyExchangeData();
+ return n && !g.ctx.isPeerToPeer() ? n.keyResponseData.masterToken : g.builder.getMasterToken();
+ }
+ ne = oa.Class.create({
+ init: function (g, n, q) {
+ g = {
+ ctx: {
+ value: g,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ cryptoContexts: {
+ value: n.getCryptoContexts(),
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ builder: {
+ value: q,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ }
+ };
+ Object.defineProperties(this, g);
+ },
+ isPrimaryMasterTokenAvailable: function () {
+ return n(this) ? !0 : !1;
+ },
+ isPrimaryUserIdTokenAvailable: function () {
+ return this.builder.getUserIdToken() ? !0 : !1;
+ },
+ isPeerMasterTokenAvailable: function () {
+ return this.builder.getPeerMasterToken() ? !0 : !1;
+ },
+ isPeerUserIdTokenAvailable: function () {
+ return this.builder.getPeerUserIdToken() ? !0 : !1;
+ },
+ getPrimaryServiceTokens: function () {
+ return this.builder.getServiceTokens();
+ },
+ getPeerServiceTokens: function () {
+ return this.builder.getPeerServiceTokens();
+ },
+ addPrimaryServiceToken: function (g) {
+ try {
+ return (this.builder.addServiceToken(g), !0);
+ } catch (D) {
+ if (D instanceof Ga)
+ return !1;
+ throw D;
+ }
+ },
+ addPeerServiceToken: function (g) {
+ try {
+ return (this.builder.addPeerServiceToken(g), !0);
+ } catch (D) {
+ if (D instanceof Ga)
+ return !1;
+ throw D;
+ }
+ },
+ addUnboundPrimaryServiceToken: function (n, v, t, x, F) {
+ var y;
+ y = this;
+ q(F, function () {
+ var D;
+ D = g(n, this.cryptoContexts);
+ if (!D)
+ return !1;
+ Hb(this.ctx, n, v, null, null, t, x, D, {
+ result: function (g) {
+ q(F, function () {
+ try {
+ this.builder.addServiceToken(g);
+ } catch (sa) {
+ if (sa instanceof Ga)
+ throw new ea("Service token bound to incorrect authentication tokens despite being unbound.", sa);
+ throw sa;
+ }
+ return !0;
+ }, y);
+ },
+ error: function (g) {
+ F.error(g);
+ }
+ });
+ }, y);
+ },
+ addUnboundPeerServiceToken: function (n, v, t, x, F) {
+ var y;
+ y = this;
+ q(F, function () {
+ var D;
+ D = g(n, this.cryptoContexts);
+ if (!D)
+ return !1;
+ Hb(this.ctx, n, v, null, null, t, x, D, {
+ result: function (g) {
+ q(F, function () {
+ try {
+ this.builder.addPeerServiceToken(g);
+ } catch (sa) {
+ if (sa instanceof Ga)
+ throw new ea("Service token bound to incorrect authentication tokens despite being unbound.", sa);
+ throw sa;
+ }
+ return !0;
+ }, y);
+ },
+ error: function (g) {
+ F.error(g);
+ }
+ });
+ }, y);
+ },
+ addMasterBoundPrimaryServiceToken: function (v, t, I, x, F) {
+ var y;
+ y = this;
+ q(F, function () {
+ var D,
+ J;
+ D = n(this);
+ if (!D)
+ return !1;
+ J = g(v, this.cryptoContexts);
+ if (!J)
+ return !1;
+ Hb(this.ctx, v, t, D, null, I, x, J, {
+ result: function (g) {
+ q(F, function () {
+ try {
+ this.builder.addServiceToken(g);
+ } catch (R) {
+ if (R instanceof Ga)
+ throw new ea("Service token bound to incorrect authentication tokens despite setting correct master token.", R);
+ throw R;
+ }
+ return !0;
+ }, y);
+ },
+ error: function (g) {
+ F.error(g);
+ }
+ });
+ }, y);
+ },
+ addMasterBoundPeerServiceToken: function (n, v, t, x, F) {
+ var y;
+ y = this;
+ q(F, function () {
+ var D,
+ I;
+ D = this.builder.getPeerMasterToken();
+ if (!D)
+ return !1;
+ I = g(n, this.cryptoContexts);
+ if (!I)
+ return !1;
+ Hb(this.ctx, n, v, D, null, t, x, I, {
+ result: function (g) {
+ q(F, function () {
+ try {
+ this.builder.addPeerServiceToken(g);
+ } catch (R) {
+ if (R instanceof Ga)
+ throw new ea("Service token bound to incorrect authentication tokens despite setting correct master token.", R);
+ throw R;
+ }
+ return !0;
+ }, y);
+ },
+ error: function (g) {
+ F.error(g);
+ }
+ });
+ }, y);
+ },
+ addUserBoundPrimaryServiceToken: function (v, t, I, x, F) {
+ var y;
+ y = this;
+ q(F, function () {
+ var D,
+ J,
+ z;
+ D = n(this);
+ if (!D)
+ return !1;
+ J = this.builder.getUserIdToken();
+ if (!J)
+ return !1;
+ z = g(v, this.cryptoContexts);
+ if (!z)
+ return !1;
+ Hb(this.ctx, v, t, D, J, I, x, z, {
+ result: function (g) {
+ q(F, function () {
+ try {
+ this.builder.addServiceToken(g);
+ } catch (ta) {
+ if (ta instanceof Ga)
+ throw new ea("Service token bound to incorrect authentication tokens despite setting correct master token and user ID token.", ta);
+ throw ta;
+ }
+ return !0;
+ }, y);
+ },
+ error: function (g) {
+ F.error(g);
+ }
+ });
+ }, y);
+ },
+ addUserBoundPeerServiceToken: function (n, v, t, x, F) {
+ var y;
+ y = this;
+ q(F, function () {
+ var D,
+ I,
+ J;
+ D = this.builder.getPeerMasterToken();
+ if (!D)
+ return !1;
+ I = this.builder.getPeerUserIdToken();
+ if (!I)
+ return !1;
+ J = g(n, this.cryptoContexts);
+ if (!J)
+ return !1;
+ Hb(this.ctx, n, v, D, I, t, x, J, {
+ result: function (g) {
+ q(F, function () {
+ try {
+ this.builder.addPeerServiceToken(g);
+ } catch (ta) {
+ if (ta instanceof Ga)
+ throw new ea("Service token bound to incorrect authentication tokens despite setting correct master token and user ID token.", ta);
+ throw ta;
+ }
+ return !0;
+ }, y);
+ },
+ error: function (g) {
+ F.error(g);
+ }
+ });
+ }, y);
+ },
+ excludePrimaryServiceToken: function () {
+ var g,
+ n,
+ q,
+ v;
+ if (1 == arguments.length) {
+ v = arguments[0];
+ g = v.name;
+ n = v.isMasterTokenBound();
+ q = v.isUserIdTokenBound();
+ } else (arguments.length = 3, g = arguments[0], n = arguments[1], q = arguments[2]);
+ for (var t = this.builder.getServiceTokens(), J = 0; J < t.length; ++J) {
+ if ((v = t[J], v.name == g && v.isMasterTokenBound() == n && v.isUserIdTokenBound() == q))
+ return (this.builder.excludeServiceToken(g, n, q), !0);
+ }
+ return !1;
+ },
+ excludePeerServiceToken: function () {
+ var g,
+ n,
+ q,
+ v;
+ if (1 == arguments.length) {
+ v = arguments[0];
+ g = v.name;
+ n = v.isMasterTokenBound();
+ q = v.isUserIdTokenBound();
+ } else (arguments.length = 3, g = arguments[0], n = arguments[1], q = arguments[2]);
+ for (var t = this.builder.getPeerServiceTokens(), J = 0; J < t.length; ++J) {
+ if ((v = t[J], v.name == g && v.isMasterTokenBound() == n && v.isUserIdTokenBound() == q))
+ return (this.builder.excludePeerServiceToken(g, n, q), !0);
+ }
+ return !1;
+ },
+ deletePrimaryServiceToken: function () {
+ var g,
+ n,
+ v,
+ x,
+ t;
+ if (2 == arguments.length) {
+ t = arguments[0];
+ g = t.name;
+ n = t.isMasterTokenBound();
+ v = t.isUserIdTokenBound();
+ x = arguments[1];
+ } else
+ 4 == arguments.length && (g = arguments[0], n = arguments[1], v = arguments[2], x = arguments[3]);
+ q(x, function () {
+ var y;
+ for (var q = this.builder.getServiceTokens(), t = 0; t < q.length; ++t) {
+ y = q[t];
+ if (y.name == g && y.isMasterTokenBound() == n && y.isUserIdTokenBound() == v) {
+ this.builder.deleteServiceToken(g, n, v, {
+ result: function () {
+ x.result(!0);
+ },
+ error: function (g) {
+ x.error(g);
+ }
+ });
+ return;
+ }
+ }
+ return !1;
+ }, this);
+ },
+ deletePeerServiceToken: function () {
+ var g,
+ n,
+ v,
+ x,
+ t;
+ if (2 == arguments.length) {
+ t = arguments[0];
+ g = t.name;
+ n = t.isMasterTokenBound();
+ v = t.isUserIdTokenBound();
+ x = arguments[1];
+ } else
+ 4 == arguments.length && (g = arguments[0], n = arguments[1], v = arguments[2], x = arguments[3]);
+ q(x, function () {
+ var y;
+ for (var q = this.builder.getPeerServiceTokens(), t = 0; t < q.length; ++t) {
+ y = q[t];
+ if (y.name == g && y.isMasterTokenBound() == n && y.isUserIdTokenBound() == v) {
+ this.builder.deletePeerServiceToken(g, n, v, {
+ result: function () {
+ x.result(!0);
+ },
+ error: function (g) {
+ x.error(g);
+ }
+ });
+ return;
+ }
+ }
+ return !1;
+ }, this);
+ }
+ });
+ })();
+ (function () {
+ function n(n, t, D, I) {
+ q(I, function () {
+ var y,
+ J,
+ z,
+ va,
+ sa,
+ R;
+ function v() {
+ q(I, function () {
+ var t;
+ if (R >= D.length) {
+ if (sa)
+ throw sa;
+ throw new Ra(g.KEYX_RESPONSE_REQUEST_MISMATCH, JSON.stringify(D));
+ }
+ t = D[R];
+ z != t.keyExchangeScheme ? (++R, v()) : va.getCryptoContext(n, t, J, y, {
+ result: I.result,
+ error: function (g) {
+ q(I, function () {
+ if (!(g instanceof E))
+ throw g;
+ sa = g;
+ ++R;
+ v();
+ });
+ }
+ });
+ });
+ }
+ y = t.masterToken;
+ J = t.keyResponseData;
+ if (!J)
+ return null;
+ z = J.keyExchangeScheme;
+ va = n.getKeyExchangeFactory(z);
+ if (!va)
+ throw new Ra(g.KEYX_FACTORY_NOT_FOUND, z);
+ R = 0;
+ v();
+ });
+ }
+ oe = kd.extend({
+ init: function (q, t, D, I, x, F, J) {
+ var v;
+ v = this;
+ z(J, function () {
+ var ka;
+ function y() {
+ v._ready = !0;
+ v._readyQueue.add(!0);
+ }
+ function J(g, n) {
+ var q;
+ try {
+ q = n.masterToken;
+ g.getTokenFactory().isMasterTokenRevoked(g, q, {
+ result: function (t) {
+ t ? (v._errored = new Wb(t, q).setUser(n.userIdToken).setUser(n.userAuthenticationData).setMessageId(n.messageId), y()) : R(g, n);
+ },
+ error: function (g) {
+ g instanceof E && (g.setEntity(n.masterToken), g.setUser(n.userIdToken), g.setUser(n.userAuthenticationData), g.setMessageId(n.messageId));
+ v._errored = g;
+ y();
+ }
+ });
+ } catch (Ca) {
+ Ca instanceof E && (Ca.setEntity(n.masterToken), Ca.setUser(n.userIdToken), Ca.setUser(n.userAuthenticationData), Ca.setMessageId(n.messageId));
+ v._errored = Ca;
+ y();
+ }
+ }
+ function R(g, n) {
+ var q,
+ t;
+ try {
+ q = n.masterToken;
+ t = n.userIdToken;
+ t ? g.getTokenFactory().isUserIdTokenRevoked(g, q, t, {
+ result: function (x) {
+ x ? (v._errored = new MslUserIdTokenException(x, t).setEntity(q).setUser(t).setMessageId(n.messageId), y()) : z(g, n);
+ },
+ error: function (g) {
+ g instanceof E && (g.setEntity(n.masterToken), g.setUser(n.userIdToken), g.setUser(n.userAuthenticationData), g.setMessageId(n.messageId));
+ v._errored = g;
+ y();
+ }
+ }) : z(g, n);
+ } catch (Qa) {
+ Qa instanceof E && (Qa.setEntity(n.masterToken), Qa.setUser(n.userIdToken), Qa.setUser(n.userAuthenticationData), Qa.setMessageId(n.messageId));
+ v._errored = Qa;
+ y();
+ }
+ }
+ function z(n, q) {
+ var t;
+ try {
+ t = q.masterToken;
+ t.isExpired() ? q.isRenewable() && 0 != q.keyRequestData.length ? n.getTokenFactory().isMasterTokenRenewable(n, t, {
+ result: function (g) {
+ g ? (v._errored = new Ga(g, "Master token is expired and not renewable.").setEntity(t).setUser(q.userIdToken).setUser(q.userAuthenticationData).setMessageId(q.messageId), y()) : Q(n, q);
+ },
+ error: function (g) {
+ g instanceof E && (g.setEntity(q.masterToken), g.setUser(q.userIdToken), g.setUser(q.userAuthenticationData), g.setMessageId(q.messageId));
+ v._errored = g;
+ y();
+ }
+ }) : (v._errored = new Ga(g.MESSAGE_EXPIRED, JSON.stringify(q)).setEntity(t).setUser(q.userIdToken).setUser(q.userAuthenticationData).setMessageId(q.messageId), y()) : Q(n, q);
+ } catch (Ca) {
+ Ca instanceof E && (Ca.setEntity(q.masterToken), Ca.setUser(q.userIdToken), Ca.setUser(q.userAuthenticationData), Ca.setMessageId(q.messageId));
+ v._errored = Ca;
+ y();
+ }
+ }
+ function Q(n, q) {
+ var t,
+ x;
+ try {
+ t = q.masterToken;
+ x = q.nonReplayableId;
+ "number" === typeof x ? t ? n.getTokenFactory().acceptNonReplayableId(n, t, x, {
+ result: function (n) {
+ n || (v._errored = new Ga(g.MESSAGE_REPLAYED, JSON.stringify(q)).setEntity(t).setUser(q.userIdToken).setUser(q.userAuthenticationData).setMessageId(q.messageId));
+ y();
+ },
+ error: function (g) {
+ g instanceof E && (g.setEntity(t), g.setUser(q.userIdToken), g.setUser(q.userAuthenticationData), g.setMessageId(q.messageId));
+ v._errored = g;
+ y();
+ }
+ }) : (v._errored = new Ga(g.INCOMPLETE_NONREPLAYABLE_MESSAGE, JSON.stringify(q)).setEntity(q.entityAuthenticationData).setUser(q.userIdToken).setUser(q.userAuthenticationData).setMessageId(q.messageId), y()) : y();
+ } catch (Qa) {
+ Qa instanceof E && (Qa.setEntity(q.masterToken), Qa.setEntity(q.entityAuthenticationData), Qa.setUser(q.userIdToken), Qa.setUser(q.userAuthenticationData), Qa.setMessageId(q.messageId));
+ v._errored = Qa;
+ y();
+ }
+ }
+ ka = {
+ _source: {
+ value: t,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ _parser: {
+ value: ca,
+ writable: !0,
+ enumerable: !1,
+ configurable: !1
+ },
+ _charset: {
+ value: D,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ _remainingData: {
+ value: "",
+ writable: !0,
+ enumerable: !1,
+ configurable: !1
+ },
+ _timeout: {
+ value: F,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ _header: {
+ value: ca,
+ writable: !0,
+ enumerable: !1,
+ configurable: !1
+ },
+ _cryptoContext: {
+ value: ca,
+ writable: !0,
+ enumerable: !1,
+ configurable: !1
+ },
+ _keyxCryptoContext: {
+ value: ca,
+ writable: !0,
+ enumerable: !1,
+ configurable: !1
+ },
+ _payloadSequenceNumber: {
+ value: 1,
+ writable: !0,
+ enuemrable: !1,
+ configurable: !1
+ },
+ _eom: {
+ value: !1,
+ writable: !0,
+ enumerable: !1,
+ configurable: !1
+ },
+ _closeSource: {
+ value: !1,
+ writable: !0,
+ enumerable: !1,
+ configurable: !1
+ },
+ _payloads: {
+ value: [],
+ writable: !0,
+ enumerable: !1,
+ configurable: !1
+ },
+ _payloadIndex: {
+ value: -1,
+ writable: !0,
+ enumerable: !1,
+ configurable: !1
+ },
+ _payloadOffset: {
+ value: 0,
+ writable: !0,
+ enuemrable: !1,
+ configurable: !1
+ },
+ _markOffset: {
+ value: 0,
+ writable: !0,
+ enumerable: !1,
+ configurable: !1
+ },
+ _currentPayload: {
+ value: null,
+ writable: !0,
+ enumerable: !1,
+ configurable: !1
+ },
+ _readException: {
+ value: null,
+ writable: !0,
+ enumerable: !1,
+ configurable: !1
+ },
+ _ready: {
+ value: !1,
+ writable: !0,
+ enumerable: !1,
+ configurable: !1
+ },
+ _readyQueue: {
+ value: new pc(),
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ _aborted: {
+ value: !1,
+ writable: !0,
+ enumerable: !1,
+ configurable: !1
+ },
+ _timedout: {
+ value: !1,
+ writable: !0,
+ enumerable: !1,
+ configurable: !1
+ },
+ _errored: {
+ value: null,
+ writable: !0,
+ enumerable: !1,
+ configurable: !1
+ }
+ };
+ Object.defineProperties(this, ka);
+ Sd(v._source, F, {
+ result: function (t) {
+ v._json = t;
+ v._jsonIndex = 0;
+ null === v._json ? (v._errored = new ga(g.MESSAGE_DATA_MISSING), y()) : Zd(q, v._json[v._jsonIndex++], x, {
+ result: function (g) {
+ var t;
+ v._header = g;
+ if (v._header instanceof Sb)
+ (v._keyxCryptoContext = null, v._cryptoContext = null, y());
+ else {
+ t = v._header;
+ n(q, t, I, {
+ result: function (g) {
+ var n;
+ try {
+ v._keyxCryptoContext = g;
+ q.isPeerToPeer() || !v._keyxCryptoContext ? v._cryptoContext = t.cryptoContext : v._cryptoContext = v._keyxCryptoContext;
+ try {
+ n = t.masterToken;
+ n && (q.isPeerToPeer() || n.isVerified()) ? J(q, t) : Q(q, t);
+ } catch (qa) {
+ qa instanceof E && (qa.setEntity(t.masterToken), qa.setUser(t.userIdToken), qa.setUser(t.userAuthenticationData), qa.setMessageId(t.messageId));
+ v._errored = qa;
+ y();
+ }
+ } catch (qa) {
+ qa instanceof E && (qa.setEntity(t.masterToken), qa.setEntity(t.entityAuthenticationData), qa.setUser(t.userIdToken), qa.setUser(t.userAuthenticationData), qa.setMessageId(t.messageId));
+ v._errored = qa;
+ y();
+ }
+ },
+ error: function (g) {
+ g instanceof E && (g.setEntity(t.masterToken), g.setEntity(t.entityAuthenticationData), g.setUser(t.userIdToken), g.setUser(t.userAuthenticationData), g.setMessageId(t.messageId));
+ v._errored = g;
+ y();
+ }
+ });
+ }
+ },
+ error: function (g) {
+ v._errored = g;
+ y();
+ }
+ });
+ },
+ timeout: function () {
+ v._timedout = !0;
+ y();
+ },
+ error: function (g) {
+ v._errored = g;
+ y();
+ }
+ });
+ return this;
+ }, v);
+ },
+ nextData: function (n, q) {
+ var v;
+ v = this;
+ z(q, function () {
+ var t;
+ function n(g) {
+ z(g, function () {
+ var q;
+ if (this._jsonIndex < this._json.length)
+ return q = this._json[this._jsonIndex++];
+ Sd(this._source, this._timeout, {
+ result: function (q) {
+ q && q.length && 0 < q.length ? (q.forEach(function (g) {
+ this._json.push(g);
+ }), n(g)) : (this._eom = !0, g.result(null));
+ },
+ timeout: function () {
+ g.timeout();
+ },
+ error: function (n) {
+ g.error(n);
+ }
+ });
+ }, v);
+ }
+ t = this.getMessageHeader();
+ if (!t)
+ throw new ea("Read attempted with error message.");
+ if (-1 != this._payloadIndex && this._payloadIndex < this._payloads.length)
+ return this._payloads[this._payloadIndex++];
+ if (this._eom)
+ return null;
+ n({
+ result: function (n) {
+ z(q, function () {
+ if (!n)
+ return null;
+ if ("object" !== typeof n)
+ throw new ga(g.MESSAGE_FORMAT_ERROR);
+ ke(n, this._cryptoContext, {
+ result: function (n) {
+ z(q, function () {
+ var q,
+ v,
+ x,
+ y;
+ q = t.masterToken;
+ v = t.entityAuthenticationData;
+ x = t.userIdToken;
+ y = t.getUserAuthenticationData;
+ if (n.messageId != t.messageId)
+ throw new Ga(g.PAYLOAD_MESSAGE_ID_MISMATCH, "payload mid " + n.messageId + " header mid " + t.messageId).setEntity(q).setEntity(v).setUser(x).setUser(y);
+ if (n.sequenceNumber != this._payloadSequenceNumber)
+ throw new Ga(g.PAYLOAD_SEQUENCE_NUMBER_MISMATCH, "payload seqno " + n.sequenceNumber + " expected seqno " + this._payloadSequenceNumber).setEntity(q).setEntity(v).setUser(x).setUser(y);
+ ++this._payloadSequenceNumber;
+ n.isEndOfMessage() && (this._eom = !0);
+ q = n.data;
+ this._payloads.push(q);
+ this._payloadIndex = -1;
+ return q;
+ }, v);
+ },
+ error: function (n) {
+ n instanceof SyntaxError && (n = new ga(g.JSON_PARSE_ERROR, "payloadchunk", n));
+ q.error(n);
+ }
+ });
+ }, v);
+ },
+ timeout: function () {
+ q.timeout();
+ },
+ error: function (g) {
+ q.error(g);
+ }
+ });
+ }, v);
+ },
+ isReady: function (g, n) {
+ var v;
+ function q() {
+ z(n, function () {
+ if (this._aborted)
+ return !1;
+ if (this._timedout)
+ n.timeout();
+ else {
+ if (this._errored)
+ throw this._errored;
+ return !0;
+ }
+ }, v);
+ }
+ v = this;
+ z(n, function () {
+ this._ready ? q() : this._readyQueue.poll(g, {
+ result: function (g) {
+ z(n, function () {
+ if (g === ca)
+ return !1;
+ q();
+ }, v);
+ },
+ timeout: function () {
+ n.timeout();
+ },
+ error: function (g) {
+ n.error(g);
+ }
+ });
+ }, v);
+ },
+ getMessageHeader: function () {
+ return this._header instanceof tc ? this._header : null;
+ },
+ getErrorHeader: function () {
+ return this._header instanceof Sb ? this._header : null;
+ },
+ getIdentity: function () {
+ var g,
+ n;
+ g = this.getMessageHeader();
+ if (g) {
+ n = g.masterToken;
+ return n ? n.identity : g.entityAuthenticationData.getIdentity();
+ }
+ return this.getErrorHeader().entityAuthenticationData.getIdentity();
+ },
+ getCustomer: function () {
+ var g;
+ g = this.getMessageHeader();
+ return g ? g.customer : null;
+ },
+ getPayloadCryptoContext: function () {
+ return this._cryptoContext;
+ },
+ getKeyExchangeCryptoContext: function () {
+ return this._keyxCryptoContext;
+ },
+ closeSource: function (g) {
+ this._closeSource = g;
+ },
+ abort: function () {
+ this._aborted = !0;
+ this._source.abort();
+ this._readyQueue.cancelAll();
+ },
+ close: function () {
+ this._closeSource && this._source.close();
+ },
+ mark: function () {
+ if (this._currentPayload) {
+ for (; 0 < this._payloads.length && this._payloads[0] !== this._currentPayload; ) {
+ this._payloads.shift();
+ }
+ this._payloadIndex = 0;
+ this._currentPayload = this._payloads[this._payloadIndex++];
+ this._markOffset = this._payloadOffset;
+ } else (this._payloadIndex = -1, this._payloads = []);
+ },
+ markSupported: function () {
+ return !0;
+ },
+ read: function (g, n, q) {
+ var t;
+ function v() {
+ z(q, function () {
+ var x,
+ y,
+ D,
+ I;
+ function v(q) {
+ z(q, function () {
+ var x,
+ F,
+ J;
+ if (y && I >= y.length)
+ return y.subarray(0, I);
+ x = -1;
+ if (this._currentPayload) {
+ F = this._currentPayload.length - this._payloadOffset;
+ if (!y) {
+ J = F;
+ if (-1 != this._payloadIndex)
+ for (var R = this._payloadIndex; R < this._payloads.length; ++R) {
+ J += this._payloads[R].length;
+ }
+ 0 < J && (y = new Uint8Array(J));
+ }
+ F = Math.min(F, y ? y.length - I : 0);
+ 0 < F && (x = this._currentPayload.subarray(this._payloadOffset, this._payloadOffset + F), y.set(x, D), x = F, D += F, this._payloadOffset += F);
+ }
+ -1 != x ? (I += x, v(q)) : this.nextData(n, {
+ result: function (n) {
+ z(q, function () {
+ if (this._aborted)
+ return y ? y.subarray(0, I) : new Uint8Array(0);
+ this._currentPayload = n;
+ this._payloadOffset = 0;
+ if (this._currentPayload)
+ v(q);
+ else
+ return 0 == I && 0 != g ? null : y ? y.subarray(0, I) : new Uint8Array(0);
+ }, t);
+ },
+ timeout: function () {
+ q.timeout(y ? y.subarray(0, I) : new Uint8Array(0));
+ },
+ error: function (g) {
+ z(q, function () {
+ g instanceof E && (g = new ab("Error reading the payload chunk.", g));
+ if (0 < I)
+ return (t._readException = g, y.subarray(0, I));
+ throw g;
+ }, t);
+ }
+ });
+ }, t);
+ }
+ if (this._aborted)
+ return new Uint8Array(0);
+ if (this._timedout)
+ q.timeout(new Uint8Array(0));
+ else {
+ if (this._errored)
+ throw this._errored;
+ if (null != this._readException) {
+ x = this._readException;
+ this._readException = null;
+ throw x;
+ }
+ y = -1 != g ? new Uint8Array(g) : ca;
+ D = 0;
+ I = 0;
+ v(q);
+ }
+ }, t);
+ }
+ t = this;
+ z(q, function () {
+ if (-1 > g)
+ throw new RangeError("read requested with illegal length " + g);
+ this._ready ? v() : this._readyQueue.poll(n, {
+ result: function (g) {
+ g === ca ? q.result(!1) : v();
+ },
+ timeout: function () {
+ q.timeout(new Uint8Array(0));
+ },
+ error: function (g) {
+ q.error(g);
+ }
+ });
+ }, t);
+ },
+ reset: function () {
+ this._payloadIndex = 0;
+ 0 < this._payloads.length ? (this._currentPayload = this._payloads[this._payloadIndex++], this._payloadOffset = this._markOffset) : this._currentPayload = null;
+ }
+ });
+ pe = function (g, n, q, t, x, F, J) {
+ new oe(g, n, q, t, x, F, J);
+ };
+ })();
+ (function () {
+ qe = Kc.extend({
+ init: function (g, n, q, t, I, x, F) {
+ var v;
+ v = this;
+ z(F, function () {
+ var F,
+ D,
+ J;
+ function y() {
+ v._ready = !0;
+ v._readyQueue.add(!0);
+ }
+ F = rd(g.getMessageCapabilities(), t.messageCapabilities);
+ D = null;
+ F && (D = Gd(F.compressionAlgorithms));
+ F = {
+ _destination: {
+ value: n,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ _charset: {
+ value: q,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ _capabilities: {
+ value: F,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ _header: {
+ value: t,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ _compressionAlgo: {
+ value: D,
+ writable: !0,
+ enumerable: !1,
+ configurable: !1
+ },
+ _cryptoContext: {
+ value: I,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ _payloadSequenceNumber: {
+ value: 1,
+ writable: !0,
+ enumerable: !1,
+ configurable: !1
+ },
+ _currentPayload: {
+ value: [],
+ writable: !0,
+ enumerable: !1,
+ configurable: !1
+ },
+ _closed: {
+ value: !1,
+ writable: !0,
+ enumerable: !1,
+ configurable: !1
+ },
+ _payloads: {
+ value: [],
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ _ready: {
+ value: !1,
+ writable: !0,
+ enumerable: !1,
+ configurable: !1
+ },
+ _readyQueue: {
+ value: new pc(),
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ _aborted: {
+ value: !1,
+ writable: !0,
+ enumerable: !1,
+ configurable: !1
+ },
+ _timedout: {
+ value: !1,
+ writable: !0,
+ enumerable: !1,
+ configurable: !1
+ },
+ _errored: {
+ value: null,
+ writable: !0,
+ enumerable: !1,
+ configurable: !1
+ }
+ };
+ Object.defineProperties(this, F);
+ J = Oa(JSON.stringify(t), q);
+ n.write(J, 0, J.length, x, {
+ result: function (g) {
+ try {
+ v._aborted ? y() : g < J.length ? (v._timedout = !0, y()) : n.flush(x, {
+ result: function (g) {
+ v._aborted || (v._timedout = !g);
+ y();
+ },
+ timeout: function () {
+ v._timedout = !0;
+ y();
+ },
+ error: function (g) {
+ v._errored = g;
+ y();
+ }
+ });
+ } catch (Q) {
+ v._errored = Q;
+ y();
+ }
+ },
+ timeout: function () {
+ v._timedout = !0;
+ y();
+ },
+ error: function (g) {
+ v._errored = g;
+ y();
+ }
+ });
+ return this;
+ }, v);
+ },
+ setCompressionAlgorithm: function (g, n, q) {
+ var t;
+ function v() {
+ t.flush(n, {
+ result: function (n) {
+ z(q, function () {
+ if (!n)
+ throw new ab("flush() aborted");
+ this._compressionAlgo = g;
+ return !0;
+ }, t);
+ },
+ timeout: function () {
+ q.timeout();
+ },
+ error: function (g) {
+ q.error(g);
+ }
+ });
+ }
+ t = this;
+ z(q, function () {
+ if (!this.getMessageHeader())
+ throw new ea("Cannot write payload data for an error message.");
+ if (this._compressionAlgo == g)
+ return !0;
+ if (g) {
+ if (!this._capabilities)
+ return !1;
+ for (var n = this._capabilities.compressionAlgorithms, q = 0; q < n.length; ++q) {
+ if (n[q] == g) {
+ v();
+ return;
+ }
+ }
+ return !1;
+ }
+ v();
+ }, t);
+ },
+ getMessageHeader: function () {
+ return this._header instanceof tc ? this._header : null;
+ },
+ getErrorMessage: function () {
+ return this._header instanceof Sb ? this._header : null;
+ },
+ getPayloads: function () {
+ return this._payloads;
+ },
+ abort: function () {
+ this._aborted = !0;
+ this._destination.abort();
+ this._readyQueue.cancelAll();
+ },
+ close: function (g, n) {
+ var q;
+ q = this;
+ z(n, function () {
+ if (this._aborted)
+ return !1;
+ if (this._timedout)
+ n.timeout();
+ else {
+ if (this._errored)
+ throw this._errored;
+ if (this._closed)
+ return !0;
+ this._closed = !0;
+ this.flush(g, {
+ result: function (g) {
+ z(n, function () {
+ g && (this._currentPayload = null);
+ return g;
+ }, q);
+ },
+ timeout: function () {
+ n.timeout();
+ },
+ error: function (g) {
+ n.error(g);
+ }
+ });
+ }
+ }, q);
+ },
+ flush: function (g, n) {
+ var t;
+ function q() {
+ z(n, function () {
+ var q,
+ v,
+ va;
+ if (this._aborted)
+ return !1;
+ if (this._timedout)
+ n.timeout();
+ else {
+ if (this._errored)
+ throw this._errored;
+ if (!this._currentPayload || !this._closed && 0 == this._currentPayload.length)
+ return !0;
+ q = this.getMessageHeader();
+ if (!q)
+ return !0;
+ v = 0;
+ this._currentPayload && this._currentPayload.forEach(function (g) {
+ v += g.length;
+ });
+ for (var y = new Uint8Array(v), D = 0, J = 0; this._currentPayload && J < this._currentPayload.length; ++J) {
+ va = this._currentPayload[J];
+ y.set(va, D);
+ D += va.length;
+ }
+ je(this._payloadSequenceNumber, q.messageId, this._closed, this._compressionAlgo, y, this._cryptoContext, {
+ result: function (q) {
+ z(n, function () {
+ var v;
+ this._payloads.push(q);
+ v = Oa(JSON.stringify(q), this._charset);
+ this._destination.write(v, 0, v.length, g, {
+ result: function (v) {
+ z(n, function () {
+ if (this._aborted)
+ return !1;
+ v < q.length ? n.timeout() : this._destination.flush(g, {
+ result: function (g) {
+ z(n, function () {
+ if (this._aborted)
+ return !1;
+ if (g)
+ return (++this._payloadSequenceNumber, this._currentPayload = this._closed ? null : [], !0);
+ n.timeout();
+ }, t);
+ },
+ timeout: function () {
+ n.timeout();
+ },
+ error: function (g) {
+ g instanceof E && (g = new ab("Error encoding payload chunk [sequence number " + t._payloadSequenceNumber + "].", g));
+ n.error(g);
+ }
+ });
+ }, t);
+ },
+ timeout: function (g) {
+ n.timeout();
+ },
+ error: function (g) {
+ g instanceof E && (g = new ab("Error encoding payload chunk [sequence number " + t._payloadSequenceNumber + "].", g));
+ n.error(g);
+ }
+ });
+ }, t);
+ },
+ error: function (g) {
+ g instanceof E && (g = new ab("Error encoding payload chunk [sequence number " + t._payloadSequenceNumber + "].", g));
+ n.error(g);
+ }
+ });
+ }
+ }, t);
+ }
+ t = this;
+ z(n, function () {
+ this._ready ? q() : this._readyQueue.poll(g, {
+ result: function (g) {
+ g === ca ? n.result(!1) : q();
+ },
+ timeout: function () {
+ n.timeout();
+ },
+ error: function (g) {
+ n.error(g);
+ }
+ });
+ }, t);
+ },
+ write: function (g, n, q, t, I) {
+ z(I, function () {
+ var t;
+ if (this._aborted)
+ return !1;
+ if (this._timedout)
+ I.timeout();
+ else {
+ if (this._errored)
+ throw this._errored;
+ if (this._closed)
+ throw new ab("Message output stream already closed.");
+ if (0 > n)
+ throw new RangeError("Offset cannot be negative.");
+ if (0 > q)
+ throw new RangeError("Length cannot be negative.");
+ if (n + q > g.length)
+ throw new RangeError("Offset plus length cannot be greater than the array length.");
+ if (!this.getMessageHeader())
+ throw new ea("Cannot write payload data for an error message.");
+ t = g.subarray(n, n + q);
+ this._currentPayload.push(t);
+ return t.length;
+ }
+ }, this);
+ }
+ });
+ Qc = function (g, n, q, t, I, x, F) {
+ new qe(g, n, q, t, I, x, F);
+ };
+ })();
+ Xe = oa.Class.create({
+ sentHeader: function (g) {},
+ receivedHeader: function (g) {}
+ });
+ Object.freeze({
+ USERDATA_REAUTH: n.USERDATA_REAUTH,
+ SSOTOKEN_REJECTED: n.SSOTOKEN_REJECTED
+ });
+ re = oa.Class.create({
+ getCryptoContexts: function () {},
+ getRecipient: function () {},
+ isEncrypted: function () {},
+ isIntegrityProtected: function () {},
+ isNonReplayable: function () {},
+ isRequestingTokens: function () {},
+ getUserId: function () {},
+ getUserAuthData: function (g, n, q, t) {},
+ getCustomer: function () {},
+ getKeyRequestData: function (g) {},
+ updateServiceTokens: function (g, n, q) {},
+ write: function (g, n, q) {},
+ getDebugContext: function () {}
+ });
+ oa.Class.create({
+ getInputStream: function (g) {},
+ getOutputStream: function (g) {}
+ });
+ (function () {
+ var ua,
+ ka,
+ va,
+ sa,
+ R,
+ ta,
+ Q,
+ W,
+ Aa,
+ U,
+ Ea,
+ Ca;
+ function t(g) {
+ return function () {
+ g.abort();
+ };
+ }
+ function v(g, n) {
+ Object.defineProperties(this, {
+ masterToken: {
+ value: g,
+ writable: !1,
+ configurable: !1
+ },
+ ticket: {
+ value: n,
+ writable: !1,
+ configurable: !1
+ }
+ });
+ }
+ function y(g, n) {
+ Object.defineProperties(this, {
+ builder: {
+ value: g,
+ writable: !1,
+ configurable: !1
+ },
+ msgCtx: {
+ value: n,
+ writable: !1,
+ configurable: !1
+ }
+ });
+ }
+ function D(g, n, q) {
+ Object.defineProperties(this, {
+ requestHeader: {
+ value: g,
+ writable: !1,
+ configurable: !1
+ },
+ payloads: {
+ value: n,
+ writable: !1,
+ configurable: !1
+ },
+ handshake: {
+ value: q,
+ writable: !1,
+ configurable: !1
+ }
+ });
+ }
+ function I(g, n) {
+ Object.defineProperties(this, {
+ requestHeader: {
+ value: n.requestHeader,
+ writable: !1,
+ configurable: !1
+ },
+ payloads: {
+ value: n.payloads,
+ writable: !1,
+ configurable: !1
+ },
+ handshake: {
+ value: n.handshake,
+ writable: !1,
+ configurable: !1
+ },
+ response: {
+ value: g,
+ writable: !1,
+ configurable: !1
+ }
+ });
+ }
+ function x(g) {
+ for (; g; ) {
+ if (g instanceof cb)
+ return !0;
+ g = g instanceof E ? g.cause : ca;
+ }
+ return !1;
+ }
+ function F(g, n, q, t, v, x, y, F, d) {
+ me(n, t, v, x, {
+ result: function (b) {
+ q && q.sentHeader(b);
+ Qc(n, y, Ma, b, null, null, F, {
+ result: function (a) {
+ g.setAbort(function () {
+ a.abort();
+ });
+ a.close(F, {
+ result: function (a) {
+ z(d, function () {
+ if (!a)
+ throw new cb("sendError aborted.");
+ return a;
+ });
+ },
+ timeout: function () {
+ d.timeout();
+ },
+ error: function (a) {
+ d.error(a);
+ }
+ });
+ },
+ timeout: function () {},
+ error: function (a) {
+ d.error(a);
+ }
+ });
+ },
+ error: function (b) {
+ d.error(b);
+ }
+ });
+ }
+ ua = Kc.extend({
+ close: function (g, n) {
+ n.result(!0);
+ },
+ write: function (g, n, t, v, x) {
+ q(x, function () {
+ return Math.min(g.length - n, t);
+ });
+ },
+ flush: function (g, n) {
+ n.result(!0);
+ }
+ });
+ ka = We.extend({
+ getUserMessage: function (g, n) {
+ return null;
+ }
+ });
+ va = re.extend({
+ init: function (g) {
+ Object.defineProperties(this, {
+ _appCtx: {
+ value: g,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ }
+ });
+ },
+ getCryptoContexts: function () {
+ return this._appCtx.getCryptoContexts();
+ },
+ isEncrypted: function () {
+ return this._appCtx.isEncrypted();
+ },
+ isIntegrityProtected: function () {
+ return this._appCtx.isIntegrityProtected();
+ },
+ isNonReplayable: function () {
+ return this._appCtx.isNonReplayable();
+ },
+ isRequestingTokens: function () {
+ return this._appCtx.isRequestingTokens();
+ },
+ getUserId: function () {
+ return this._appCtx.getUserId();
+ },
+ getUserAuthData: function (g, n, q, t) {
+ this._appCtx.getUserAuthData(g, n, q, t);
+ },
+ getCustomer: function () {
+ return this._appCtx.getCustomer();
+ },
+ getKeyRequestData: function (g) {
+ this._appCtx.getKeyRequestData(g);
+ },
+ updateServiceTokens: function (g, n, q) {
+ this._appCtx.updateServiceTokens(g, n, q);
+ },
+ write: function (g, n, q) {
+ this._appCtx.write(g, n, q);
+ },
+ getDebugContext: function () {
+ return this._appCtx.getDebugContext();
+ }
+ });
+ sa = va.extend({
+ init: function qa(g, n) {
+ qa.base.call(this, n);
+ Object.defineProperties(this, {
+ _payloads: {
+ value: g,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ }
+ });
+ },
+ write: function (g, n, q) {
+ var v;
+ function t(x, y) {
+ var d;
+ if (x == v._payloads.length)
+ q.result(!0);
+ else {
+ d = v._payloads[x];
+ g.setCompressionAlgorithm(d.compressionAlgo, n, {
+ result: function (b) {
+ g.write(d.data, 0, d.data.length, n, {
+ result: function (a) {
+ z(q, function () {
+ d.isEndOfMessage() ? t(x + 1, y) : g.flush(n, {
+ result: function (a) {
+ q.result(a);
+ },
+ timeout: function () {
+ q.timeout();
+ },
+ error: function (a) {
+ q.error(a);
+ }
+ });
+ }, v);
+ },
+ timeout: function (a) {
+ q.timeout(a);
+ },
+ error: function (a) {
+ q.error(a);
+ }
+ });
+ },
+ timeout: function () {},
+ error: function (b) {
+ q.error(b);
+ }
+ });
+ }
+ }
+ v = this;
+ t(0);
+ }
+ });
+ R = va.extend({
+ init: function la(g) {
+ la.base.call(this, g);
+ },
+ isEncrypted: function () {
+ return !1;
+ },
+ isNonReplayable: function () {
+ return !1;
+ },
+ write: function (g, n, q) {
+ q.result(!0);
+ }
+ });
+ ta = {};
+ Ea = oa.Class.create({
+ init: function (g) {
+ g || (g = new ka());
+ Object.defineProperties(this, {
+ _filterFactory: {
+ value: null,
+ writable: !0,
+ enumerable: !1,
+ configurable: !1
+ },
+ _renewingContexts: {
+ value: [],
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ _masterTokenLocks: {
+ value: {},
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ _messageRegistry: {
+ value: g,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ }
+ });
+ },
+ setFilterFactory: function (g) {
+ this._filterFactory = g;
+ },
+ getNewestMasterToken: function (g, n, q, t) {
+ var x;
+ x = this;
+ z(t, function () {
+ var y,
+ d,
+ b,
+ a,
+ c;
+ y = n.getMslStore();
+ d = y.getMasterToken();
+ if (!d)
+ return null;
+ b = d.uniqueKey();
+ a = this._masterTokenLocks[b];
+ a || (a = new $c(), this._masterTokenLocks[b] = a);
+ c = a.readLock(q, {
+ result: function (k) {
+ z(t, function () {
+ var c;
+ if (k === ca)
+ throw new cb("getNewestMasterToken aborted.");
+ c = y.getMasterToken();
+ if (d.equals(c))
+ return new v(d, k);
+ a.unlock(k);
+ a.writeLock(q, {
+ result: function (k) {
+ z(t, function () {
+ if (k === ca)
+ throw new cb("getNewestMasterToken aborted.");
+ delete this._masterTokenLocks[b];
+ a.unlock(k);
+ return this.getNewestMasterToken(g, n, q, t);
+ }, x);
+ },
+ timeout: function () {
+ t.timeout();
+ },
+ error: function (a) {
+ t.error(a);
+ }
+ });
+ }, x);
+ },
+ timeout: function () {
+ t.timeout();
+ },
+ error: function (a) {
+ t.error(a);
+ }
+ });
+ g.setAbort(function () {
+ c && (a.cancel(c), c = ca);
+ });
+ }, x);
+ },
+ deleteMasterToken: function (g, n) {
+ var q;
+ if (n) {
+ q = this;
+ setTimeout(function () {
+ var t,
+ v;
+ t = n.uniqueKey();
+ v = q._masterTokenLocks[t];
+ v || (v = new $c(), q._masterTokenLocks[t] = v);
+ v.writeLock(-1, {
+ result: function (x) {
+ g.getMslStore().removeCryptoContext(n);
+ delete q._masterTokenLocks[t];
+ v.unlock(x);
+ },
+ timeout: function () {
+ throw new ea("Unexpected timeout received.");
+ },
+ error: function (g) {
+ throw g;
+ }
+ });
+ }, 0);
+ }
+ },
+ releaseMasterToken: function (g) {
+ var n;
+ if (g && g.masterToken) {
+ n = g.masterToken.uniqueKey();
+ n = this._masterTokenLocks[n];
+ if (!n)
+ throw new ea("Master token read/write lock does not exist when it should.");
+ n.unlock(g.ticket);
+ }
+ },
+ updateOutgoingCryptoContexts: function (g, n, q) {
+ var t;
+ t = g.getMslStore();
+ !g.isPeerToPeer() && q && (t.setCryptoContext(q.keyResponseData.masterToken, q.cryptoContext), this.deleteMasterToken(g, n.masterToken));
+ },
+ updateIncomingCryptoContexts: function (g, n, q) {
+ var t,
+ v;
+ t = q.getMessageHeader();
+ if (t) {
+ v = g.getMslStore();
+ if (t = t.keyResponseData)
+ (v.setCryptoContext(t.masterToken, q.getKeyExchangeCryptoContext()), this.deleteMasterToken(g, n.masterToken));
+ }
+ },
+ storeServiceTokens: function (g, n, q, t) {
+ var d,
+ b;
+ g = g.getMslStore();
+ for (var v = [], x = 0; x < t.length; ++x) {
+ d = t[x];
+ if (!d.isBoundTo(n) || !n.isVerified()) {
+ b = d.data;
+ b && 0 == b.length ? g.removeServiceTokens(d.name, d.isMasterTokenBound() ? n : null, d.isUserIdTokenBound() ? q : null) : v.push(d);
+ }
+ }
+ 0 < v.length && g.addServiceTokens(v);
+ },
+ buildRequest: function (g, n, t, v, x) {
+ var y;
+ y = this;
+ this.getNewestMasterToken(g, n, v, {
+ result: function (d) {
+ q(x, function () {
+ var b,
+ a,
+ c;
+ b = d && d.masterToken;
+ if (b) {
+ a = t.getUserId();
+ c = n.getMslStore();
+ a = (a = a ? c.getUserIdToken(a) : null) && a.isBoundTo(b) ? a : null;
+ } else
+ a = null;
+ ac(n, b, a, null, {
+ result: function (a) {
+ q(x, function () {
+ a.setNonReplayable(t.isNonReplayable());
+ return {
+ builder: a,
+ tokenTicket: d
+ };
+ });
+ },
+ error: function (a) {
+ q(x, function () {
+ this.releaseMasterToken(d);
+ a instanceof E && (a = new ea("User ID token not bound to master token despite internal check.", a));
+ throw a;
+ }, y);
+ }
+ });
+ }, y);
+ },
+ timeout: function () {
+ x.timeout();
+ },
+ error: function (d) {
+ x.error(d);
+ }
+ });
+ },
+ buildResponse: function (g, n, q, t, v, x) {
+ var d;
+ d = this;
+ le(n, t, {
+ result: function (b) {
+ z(x, function () {
+ b.setNonReplayable(q.isNonReplayable());
+ if (!n.isPeerToPeer() && !t.keyResponseData)
+ return {
+ builder: b,
+ tokenTicket: null
+ };
+ this.getNewestMasterToken(g, n, v, {
+ result: function (a) {
+ z(x, function () {
+ var c,
+ k,
+ l;
+ c = a && a.masterToken;
+ if (c) {
+ k = q.getUserId();
+ l = n.getMslStore();
+ k = (k = k ? l.getUserIdToken(k) : null) && k.isBoundTo(c) ? k : null;
+ } else
+ k = null;
+ b.setAuthTokens(c, k);
+ return {
+ builder: b,
+ tokenTicket: a
+ };
+ }, d);
+ },
+ timeout: function () {
+ x.timeout();
+ },
+ error: function (a) {
+ x.error(a);
+ }
+ });
+ }, d);
+ },
+ error: function (b) {
+ x.error(b);
+ }
+ });
+ },
+ buildErrorResponse: function (g, q, t, v, x, F, d) {
+ var c;
+ function b(a, b) {
+ z(d, function () {
+ var k,
+ h;
+ k = $b(x.messageId);
+ h = new sa(b, t);
+ ac(q, null, null, k, {
+ result: function (b) {
+ z(d, function () {
+ q.isPeerToPeer() && b.setPeerAuthTokens(a.peerMasterToken, a.peerUserIdToken);
+ b.setNonReplayable(h.isNonReplayable());
+ return {
+ errorResult: new y(b, h),
+ tokenTicket: null
+ };
+ }, c);
+ },
+ error: function (a) {
+ d.error(a);
+ }
+ });
+ }, c);
+ }
+ function a(a, b) {
+ c.getNewestMasterToken(g, q, F, {
+ result: function (k) {
+ z(d, function () {
+ var h,
+ p,
+ m;
+ h = k && k.masterToken;
+ p = $b(x.messageId);
+ m = new sa(b, t);
+ ac(q, h, null, p, {
+ result: function (b) {
+ z(d, function () {
+ q.isPeerToPeer() && b.setPeerAuthTokens(a.peerMasterToken, a.peerUserIdToken);
+ b.setNonReplayable(m.isNonReplayable());
+ return {
+ errorResult: new y(b, m),
+ tokenTicket: k
+ };
+ }, c);
+ },
+ error: function (a) {
+ d.error(a);
+ }
+ });
+ }, c);
+ },
+ timeout: function () {
+ d.timeout();
+ },
+ error: function (a) {
+ d.error(a);
+ }
+ });
+ }
+ c = this;
+ z(d, function () {
+ var k,
+ l,
+ r,
+ h;
+ k = v.requestHeader;
+ l = v.payloads;
+ r = x.errorCode;
+ switch (r) {
+ case n.ENTITYDATA_REAUTH:
+ case n.ENTITY_REAUTH:
+ q.getEntityAuthenticationData(r, {
+ result: function (a) {
+ z(d, function () {
+ if (!a)
+ return null;
+ b(k, l);
+ }, c);
+ },
+ error: function (a) {
+ d.error(a);
+ }
+ });
+ break;
+ case n.USERDATA_REAUTH:
+ case n.SSOTOKEN_REJECTED:
+ t.getUserAuthData(r, !1, !0, {
+ result: function (b) {
+ z(d, function () {
+ if (!b)
+ return null;
+ a(k, l);
+ }, c);
+ },
+ error: function (a) {
+ d.error(a);
+ }
+ });
+ break;
+ case n.USER_REAUTH:
+ a(k, l);
+ break;
+ case n.KEYX_REQUIRED:
+ (r = $b(x.messageId), h = new sa(l, t));
+ ac(q, null, null, r, {
+ result: function (a) {
+ z(d, function () {
+ q.isPeerToPeer() && a.setPeerAuthTokens(k.peerMasterToken, k.peerUserIdToken);
+ a.setRenewable(!0);
+ a.setNonReplayable(h.isNonReplayable());
+ return {
+ errorResult: new y(a, h),
+ tokenTicket: null
+ };
+ }, c);
+ },
+ error: function (a) {
+ d.error(a);
+ }
+ });
+ break;
+ case n.EXPIRED:
+ this.getNewestMasterToken(g, q, F, {
+ result: function (a) {
+ z(d, function () {
+ var b,
+ f,
+ h,
+ p;
+ b = a && a.masterToken;
+ f = k.userIdToken;
+ h = $b(x.messageId);
+ p = new sa(l, t);
+ ac(q, b, f, h, {
+ result: function (f) {
+ z(d, function () {
+ q.isPeerToPeer() && f.setPeerAuthTokens(k.peerMasterToken, k.peerUserIdToken);
+ k.masterToken.equals(b) && f.setRenewable(!0);
+ f.setNonReplayable(p.isNonReplayable());
+ return {
+ errorResult: new y(f, p),
+ tokenTicket: a
+ };
+ }, c);
+ },
+ error: function (a) {
+ d.error(a);
+ }
+ }, c);
+ }, c);
+ },
+ timeout: function () {
+ d.timeout();
+ },
+ error: function (a) {
+ d.error(a);
+ }
+ });
+ break;
+ case n.REPLAYED:
+ this.getNewestMasterToken(g, q, F, {
+ result: function (a) {
+ z(d, function () {
+ var b,
+ f,
+ h,
+ p;
+ b = a && a.masterToken;
+ f = k.userIdToken;
+ h = $b(x.messageId);
+ p = new sa(l, t);
+ ac(q, b, f, h, {
+ result: function (f) {
+ z(d, function () {
+ q.isPeerToPeer() && f.setPeerAuthTokens(k.peerMasterToken, k.peerUserIdToken);
+ k.masterToken.equals(b) ? (f.setRenewable(!0), f.setNonReplayable(!1)) : f.setNonReplayable(p.isNonReplayable());
+ return {
+ errorResult: new y(f, p),
+ tokenTicket: a
+ };
+ }, c);
+ },
+ error: function (a) {
+ d.error(a);
+ }
+ });
+ }, c);
+ },
+ timeout: function () {
+ d.timeout();
+ },
+ error: function (a) {
+ d.error(a);
+ }
+ });
+ break;
+ default:
+ return null;
+ }
+ }, c);
+ },
+ cleanupContext: function (g, q, t) {
+ switch (t.errorCode) {
+ case n.ENTITY_REAUTH:
+ this.deleteMasterToken(g, q.masterToken);
+ break;
+ case n.USER_REAUTH:
+ (t = q.userIdToken, q.masterToken && t && g.getMslStore().removeUserIdToken(t));
+ }
+ },
+ send: function (g, n, q, t, v, x, d) {
+ var r;
+ function b(b, k, m) {
+ z(d, function () {
+ var f;
+ f = v.getPeerUserIdToken();
+ !n.isPeerToPeer() && !k || n.isPeerToPeer() && !f ? (f = q.getCustomer()) ? v.setCustomer(f, {
+ result: function (f) {
+ z(d, function () {
+ k = v.getUserIdToken();
+ a(b, k, m);
+ }, r);
+ },
+ error: function (a) {
+ d.error(a);
+ }
+ }) : a(b, k, m) : a(b, k, m);
+ }, r);
+ }
+ function a(a, b, k) {
+ z(d, function () {
+ var f,
+ h;
+ f = !k && (!q.isEncrypted() || v.willEncryptPayloads()) && (!q.isIntegrityProtected() || v.willIntegrityProtectPayloads()) && (!q.isNonReplayable() || v.isNonReplayable() && a);
+ f || v.setNonReplayable(!1);
+ h = [];
+ v.isRenewable() && (!a || a.isRenewable() || q.isNonReplayable()) ? q.getKeyRequestData({
+ result: function (k) {
+ z(d, function () {
+ var p;
+ for (var m = 0; m < k.length; ++m) {
+ p = k[m];
+ h.push(p);
+ v.addKeyRequestData(p);
+ }
+ c(a, b, f, h);
+ }, r);
+ },
+ error: function (a) {
+ d.error(a);
+ }
+ }) : c(a, b, f, h);
+ }, r);
+ }
+ function c(a, b, m, f) {
+ z(d, function () {
+ var f;
+ f = new ne(n, q, v);
+ q.updateServiceTokens(f, !m, {
+ result: function (f) {
+ v.getHeader({
+ result: function (f) {
+ z(d, function () {
+ var h,
+ c;
+ h = q.getDebugContext();
+ h && h.sentHeader(f);
+ h = v.getKeyExchangeData();
+ this.updateOutgoingCryptoContexts(n, f, h);
+ this.storeServiceTokens(n, a, b, f.serviceTokens);
+ h = !n.isPeerToPeer() && h ? h.cryptoContext : f.cryptoContext;
+ if (g.isAborted())
+ throw new cb("send aborted.");
+ c = null != this._filterFactory ? this._filterFactory.getOutputStream(t) : t;
+ Qc(n, c, Ma, f, h, x, {
+ result: function (a) {
+ g.setAbort(function () {
+ a.abort();
+ });
+ k(a, f, m);
+ },
+ timeout: function () {
+ d.timeout();
+ },
+ error: function (a) {
+ d.error(a);
+ }
+ });
+ }, r);
+ },
+ timeout: function () {
+ d.timeout();
+ },
+ error: function (a) {
+ d.error(a);
+ }
+ });
+ },
+ error: function (a) {
+ d.error(a);
+ }
+ });
+ }, r);
+ }
+ function k(a, b, k) {
+ var f,
+ h;
+ if (k)
+ q.write(a, x, {
+ result: function (f) {
+ z(d, function () {
+ if (g.isAborted())
+ throw new cb("MessageOutputStream write aborted.");
+ l(a, b, k);
+ }, r);
+ },
+ timeout: function () {
+ d.timeout();
+ },
+ error: function (a) {
+ d.error(a);
+ }
+ });
+ else {
+ f = new ua();
+ h = new jc();
+ Qc(n, f, Ma, b, h, x, {
+ result: function (f) {
+ q.write(f, x, {
+ result: function (h) {
+ z(d, function () {
+ if (g.isAborted())
+ throw new cb("MessageOutputStream proxy write aborted.");
+ f.close(x, {
+ result: function (h) {
+ z(d, function () {
+ var m;
+ if (!h)
+ throw new cb("MessageOutputStream proxy close aborted.");
+ m = f.getPayloads();
+ l(a, b, k, m);
+ }, r);
+ },
+ timeout: function () {
+ d.timeout();
+ },
+ error: function (a) {
+ d.error(a);
+ }
+ });
+ }, r);
+ },
+ timeout: function () {
+ d.timeout();
+ },
+ error: function (a) {
+ d.error(a);
+ }
+ });
+ },
+ timeout: function () {
+ d.timeout();
+ },
+ error: function (a) {
+ d.error(a);
+ }
+ });
+ }
+ }
+ function l(a, b, k, f) {
+ a.close(x, {
+ result: function (h) {
+ z(d, function () {
+ if (!h)
+ throw new cb("MessageOutputStream close aborted.");
+ f || (f = a.getPayloads());
+ return new D(b, f, !k);
+ }, r);
+ },
+ timeout: function () {
+ d.timeout();
+ },
+ error: function (a) {
+ d.error(a);
+ }
+ });
+ }
+ r = this;
+ z(d, function () {
+ var a,
+ k,
+ m,
+ f;
+ a = v.getMasterToken();
+ k = v.getUserIdToken();
+ m = !1;
+ if (q.getUserId()) {
+ f = !k;
+ q.getUserAuthData(null, v.isRenewable(), f, {
+ result: function (f) {
+ z(d, function () {
+ f && (v.willEncryptHeader() && v.willIntegrityProtectHeader() ? v.setUserAuthenticationData(f) : m = !0);
+ b(a, k, m);
+ }, r);
+ },
+ error: function (a) {
+ d.error(a);
+ }
+ });
+ } else
+ b(a, k, m);
+ }, r);
+ },
+ receive: function (q, t, v, x, y, F, d) {
+ var b;
+ b = this;
+ z(d, function () {
+ var a,
+ c,
+ k;
+ if (q.isAborted())
+ throw new cb("receive aborted.");
+ a = [];
+ y && (a = y.keyRequestData.filter(function () {
+ return !0;
+ }));
+ c = v.getCryptoContexts();
+ k = this._filterFactory ? this._filterFactory.getInputStream(x) : x;
+ pe(t, k, Ma, a, c, F, {
+ result: function (a) {
+ q.setAbort(function () {
+ a.abort();
+ });
+ a.isReady(F, {
+ result: function (k) {
+ z(d, function () {
+ var h,
+ c,
+ m,
+ f;
+ if (!k)
+ throw new cb("MessageInputStream aborted.");
+ h = a.getMessageHeader();
+ c = a.getErrorHeader();
+ m = v.getDebugContext();
+ m && m.receivedHeader(h ? h : c);
+ if (y && (m = c ? c.errorCode : null, h || m != n.FAIL && m != n.TRANSIENT_FAILURE && m != n.ENTITY_REAUTH && m != n.ENTITYDATA_REAUTH)) {
+ m = h ? h.messageId : c.messageId;
+ f = $b(y.messageId);
+ if (m != f)
+ throw new Ga(g.UNEXPECTED_RESPONSE_MESSAGE_ID, "expected " + f + "; received " + m);
+ }
+ t.getEntityAuthenticationData(null, {
+ result: function (k) {
+ z(d, function () {
+ var b,
+ f,
+ m,
+ p;
+ b = k.getIdentity();
+ if (h) {
+ f = h.entityAuthenticationData;
+ m = h.masterToken;
+ f = m ? h.sender : f.getIdentity();
+ if (m && m.isDecrypted() && m.identity != f || b == f)
+ throw new Ga(g.UNEXPECTED_MESSAGE_SENDER, f);
+ y && this.updateIncomingCryptoContexts(t, y, a);
+ b = h.keyResponseData;
+ t.isPeerToPeer() ? (b = b ? b.masterToken : h.peerMasterToken, m = h.peerUserIdToken, f = h.peerServiceTokens) : (b = b ? b.masterToken : h.masterToken, m = h.userIdToken, f = h.serviceTokens);
+ p = v.getUserId();
+ p && m && !m.isVerified() && t.getMslStore().addUserIdToken(p, m);
+ this.storeServiceTokens(t, b, m, f);
+ } else if ((f = c.entityAuthenticationData.getIdentity(), b == f))
+ throw new Ga(g.UNEXPECTED_MESSAGE_SENDER, f);
+ return a;
+ }, b);
+ },
+ error: d.error
+ });
+ }, b);
+ },
+ timeout: function () {
+ d.timeout();
+ },
+ error: function (a) {
+ d.error(a);
+ }
+ });
+ },
+ timeout: function () {
+ d.timeout();
+ },
+ error: function (a) {
+ d.error(a);
+ }
+ });
+ }, b);
+ },
+ sendReceive: function (g, n, q, t, v, x, d, b, a) {
+ var k;
+ function c(c, r) {
+ z(a, function () {
+ x.setRenewable(r);
+ this.send(g, n, q, v, x, d, {
+ result: function (h) {
+ z(a, function () {
+ var p;
+ p = h.requestHeader.keyRequestData;
+ b || h.handshake || !p.isEmpty() ? this.receive(g, n, q, t, h.requestHeader, d, {
+ result: function (b) {
+ z(a, function () {
+ r && this.releaseRenewalLock(n, c, b);
+ return new I(b, h);
+ }, k);
+ },
+ timeout: function () {
+ z(a, function () {
+ r && this.releaseRenewalLock(n, c, null);
+ a.timeout();
+ }, k);
+ },
+ error: function (b) {
+ z(a, function () {
+ r && this.releaseRenewalLock(n, c, null);
+ throw b;
+ }, k);
+ }
+ }) : z(a, function () {
+ r && this.releaseRenewalLock(n, c, null);
+ return new I(null, h);
+ }, k);
+ }, k);
+ },
+ timeout: function () {
+ z(a, function () {
+ r && this.releaseRenewalLock(n, c, null);
+ a.timeout();
+ }, k);
+ },
+ error: function (b) {
+ z(a, function () {
+ r && this.releaseRenewalLock(n, c, null);
+ throw b;
+ }, k);
+ }
+ });
+ }, k);
+ }
+ k = this;
+ z(a, function () {
+ var b;
+ b = new pc();
+ this.acquireRenewalLock(g, n, q, b, x, d, {
+ result: function (a) {
+ c(b, a);
+ },
+ timeout: function () {
+ a.timeout();
+ },
+ error: function (b) {
+ b instanceof cb ? a.result(null) : a.error(b);
+ }
+ });
+ }, k);
+ },
+ acquireRenewalLock: function (g, n, q, t, v, x, d) {
+ var c;
+ function b(k, l, r) {
+ z(d, function () {
+ var m,
+ f;
+ if (g.isAborted())
+ throw new cb("acquireRenewalLock aborted.");
+ for (var h = null, p = 0; p < this._renewingContexts.length; ++p) {
+ m = this._renewingContexts[p];
+ if (m.ctx === n) {
+ h = m.queue;
+ break;
+ }
+ }
+ if (!h)
+ return (this._renewingContexts.push({
+ ctx: n,
+ queue: t
+ }), !0);
+ f = h.poll(x, {
+ result: function (f) {
+ z(d, function () {
+ var m;
+ if (f === ca)
+ throw new cb("acquireRenewalLock aborted.");
+ h.add(f);
+ if (f === ta || f.isExpired())
+ b(f, l, r);
+ else {
+ if (r && !l || l && !l.isBoundTo(f)) {
+ m = n.getMslStore().getUserIdToken(r);
+ l = m && m.isBoundTo(f) ? m : null;
+ }
+ v.setAuthTokens(f, l);
+ v.isRenewable() && f.equals(k) ? b(f, l, r) : q.isRequestingTokens() && !l ? b(f, l, r) : a(f, l);
+ }
+ }, c);
+ },
+ timeout: function () {},
+ error: function (a) {}
+ });
+ g.setAbort(function () {
+ f && (h.cancel(f), f = ca);
+ });
+ }, c);
+ }
+ function a(a, b) {
+ z(d, function () {
+ var c;
+ if (g.isAborted())
+ throw new cb("acquireRenewalLock aborted.");
+ if (!a || a.isRenewable() || !b && q.getUserId() || b && b.isRenewable()) {
+ for (var k = null, h = 0; h < this._renewingContexts.length; ++h) {
+ c = this._renewingContexts[h];
+ if (c.ctx === n) {
+ k = c.queue;
+ break;
+ }
+ }
+ if (!k)
+ return (this._renewingContexts.push({
+ ctx: n,
+ queue: t
+ }), !0);
+ }
+ return !1;
+ }, c);
+ }
+ c = this;
+ z(d, function () {
+ var k,
+ c,
+ r;
+ k = v.getMasterToken();
+ c = v.getUserIdToken();
+ r = q.getUserId();
+ q.isEncrypted() && !v.willEncryptPayloads() || q.isIntegrityProtected() && !v.willIntegrityProtectPayloads() || v.isRenewable() || !k && q.isNonReplayable() || k && k.isExpired() || !(c || !r || v.willEncryptHeader() && v.willIntegrityProtectHeader()) || q.isRequestingTokens() && (!k || r && !c) ? b(k, c, r) : a(k, c);
+ }, c);
+ },
+ releaseRenewalLock: function (g, n, q) {
+ var d;
+ for (var t, v, x = 0; x < this._renewingContexts.length; ++x) {
+ d = this._renewingContexts[x];
+ if (d.ctx === g) {
+ t = x;
+ v = d.queue;
+ break;
+ }
+ }
+ if (v !== n)
+ throw new ea("Attempt to release renewal lock that is not owned by this queue.");
+ q ? (q = q.messageHeader) ? (v = q.keyResponseData) ? n.add(v.masterToken) : (g = g.isPeerToPeer() ? q.peerMasterToken : q.masterToken) ? n.add(g) : n.add(ta) : n.add(ta) : n.add(ta);
+ this._renewingContexts.splice(t, 1);
+ }
+ });
+ se = oa.Class.create({
+ init: function () {
+ var g;
+ g = {
+ _impl: {
+ value: new Ea(),
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ _shutdown: {
+ value: !1,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ }
+ };
+ Object.defineProperties(this, g);
+ },
+ setFilterFactory: function (g) {
+ this._impl.setFilterFactory(g);
+ },
+ shutdown: function () {
+ this._shutdown = !0;
+ },
+ receive: function (g, n, q, v, x, y) {
+ var d;
+ if (this._shutdown)
+ throw new E("MslControl is shutdown.");
+ d = new Q(this._impl, g, n, q, v, x);
+ setTimeout(function () {
+ d.call(y);
+ }, 0);
+ return t(d);
+ },
+ respond: function (g, n, q, v, x, y, d) {
+ var b;
+ if (this._shutdown)
+ throw new E("MslControl is shutdown.");
+ b = new W(this._impl, g, n, q, v, x, y);
+ setTimeout(function () {
+ b.call(d);
+ }, 0);
+ return t(b);
+ },
+ error: function (g, n, q, v, x, y, d) {
+ var b;
+ if (this._shutdown)
+ throw new E("MslControl is shutdown.");
+ b = new Aa(this._impl, g, n, q, v, x, y);
+ setTimeout(function () {
+ b.call(d);
+ }, 0);
+ return t(b);
+ },
+ request: function (g, n) {
+ var q,
+ v,
+ x,
+ y,
+ d,
+ b;
+ if (this._shutdown)
+ throw new E("MslControl is shutdown.");
+ if (5 == arguments.length) {
+ if ((q = arguments[2], x = v = null, y = arguments[3], d = arguments[4], g.isPeerToPeer())) {
+ d.error(new ea("This method cannot be used in peer-to-peer mode."));
+ return;
+ }
+ } else if (6 == arguments.length && (q = null, v = arguments[2], x = arguments[3], y = arguments[4], d = arguments[5], !g.isPeerToPeer())) {
+ d.error(new ea("This method cannot be used in trusted network mode."));
+ return;
+ }
+ b = new U(this._impl, g, n, q, v, x, null, 0, y);
+ setTimeout(function () {
+ b.call(d);
+ }, 0);
+ return t(b);
+ }
+ });
+ Q = oa.Class.create({
+ init: function (g, n, q, t, v, x) {
+ Object.defineProperties(this, {
+ _ctrl: {
+ value: g,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ _ctx: {
+ value: n,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ _msgCtx: {
+ value: q,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ _input: {
+ value: t,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ _output: {
+ value: v,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ _timeout: {
+ value: x,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ _aborted: {
+ value: !1,
+ writable: !0,
+ enumerable: !1,
+ configurable: !1
+ },
+ _abortFunc: {
+ value: ca,
+ writable: !0,
+ enumerable: !1,
+ configurable: !1
+ }
+ });
+ },
+ isAborted: function () {
+ return this._aborted;
+ },
+ abort: function () {
+ this._aborted = !0;
+ this._abortFunc && this._abortFunc.call(this);
+ },
+ setAbort: function (g) {
+ this._abortFunc = g;
+ },
+ call: function (n) {
+ var y;
+ function q(q) {
+ z(n, function () {
+ var d;
+ d = q.messageHeader;
+ if (!d)
+ return q;
+ this.setAbort(function () {
+ q.abort();
+ });
+ q.mark(Number.MAX_VALUE);
+ q.read(1, y._timeout, {
+ result: function (b) {
+ z(n, function () {
+ if (b && 0 == b.length)
+ return null;
+ if (b)
+ return (q.reset(), q);
+ t(q);
+ }, y);
+ },
+ timeout: function () {
+ n.timeout();
+ },
+ error: function (b) {
+ z(n, function () {
+ var a,
+ c,
+ k;
+ if (x(b))
+ return null;
+ a = d ? d.messageId : null;
+ b instanceof ab ? (c = g.MSL_COMMS_FAILURE, k = b) : (c = g.INTERNAL_EXCEPTION, k = new ea("Error peeking into the message payloads."));
+ F(this, this._ctx, this._msgCtx.getDebugContext(), a, c, null, this._output, this._timeout, {
+ result: function (a) {
+ n.error(k);
+ },
+ timeout: function () {
+ n.timeout();
+ },
+ error: function (a) {
+ z(n, function () {
+ if (x(a))
+ return null;
+ throw new nb("Error peeking into the message payloads.", a, b);
+ }, y);
+ }
+ });
+ }, y);
+ }
+ });
+ }, y);
+ }
+ function t(q) {
+ z(n, function () {
+ q.close();
+ this._ctrl.buildResponse(this, this._ctx, this._msgCtx, q.messageHeader, this._timeout, {
+ result: function (d) {
+ z(n, function () {
+ var b,
+ a,
+ c,
+ k,
+ l;
+ b = d.builder;
+ a = d.tokenTicket;
+ c = q.messageHeader;
+ k = new R(this._msgCtx);
+ if (!this._ctx.isPeerToPeer() || c.isEncrypting() || c.keyResponseData)
+ v(c, b, k, a);
+ else {
+ l = new U(this._ctrl, this._ctx, k, null, this._input, this._output, d, 1, this._timeout);
+ this.setAbort(function () {
+ l.abort();
+ });
+ l.call(n);
+ }
+ }, y);
+ },
+ timeout: function () {
+ n.timeout();
+ },
+ error: function (d) {
+ z(n, function () {
+ var b,
+ a,
+ c,
+ k;
+ if (x(d))
+ return null;
+ d instanceof E ? (b = d.messageId, a = d.error, c = q.messageHeader.messageCapabilities, c = this._ctrl.messageRegistry.getUserMessage(a, c ? c.languages : null), k = d) : (b = requestHeader ? requestHeader.messageId : null, a = g.INTERNAL_EXCEPTION, c = null, k = new ea("Error creating an automatic handshake response.", d));
+ F(this, this._ctx, this._msgCtx.getDebugContext(), b, a, c, this._output, this._timeout, {
+ result: function (a) {
+ n.error(k);
+ },
+ timeout: function () {
+ n.timeout();
+ },
+ error: function (a) {
+ z(n, function () {
+ if (x(a))
+ return null;
+ throw new nb("Error creating an automatic handshake response.", a, d);
+ }, y);
+ }
+ });
+ }, y);
+ }
+ });
+ }, y);
+ }
+ function v(q, d, b, a) {
+ z(n, function () {
+ d.setRenewable(!1);
+ this._ctrl.send(this._ctx, b, this._output, d, this._timeout, {
+ result: function (b) {
+ z(n, function () {
+ this._ctx.isPeerToPeer() && this._ctrl.releaseMasterToken(a);
+ return null;
+ }, y);
+ },
+ timeout: function () {
+ z(n, function () {
+ this._ctx.isPeerToPeer() && this._ctrl.releaseMasterToken(a);
+ n.timeout();
+ }, y);
+ },
+ error: function (b) {
+ z(n, function () {
+ var k,
+ c,
+ r,
+ h;
+ this._ctx.isPeerToPeer() && this._ctrl.releaseMasterToken(a);
+ if (x(b))
+ return null;
+ b instanceof E ? (k = b.messageId, c = b.error, r = q ? q.messageCapabilities : null, r = this._ctrl.messageRegistry.getUserMessage(c, r ? r.languages : null), h = b) : b instanceof ab ? (k = q ? q.messageId : null, c = g.MSL_COMMS_FAILURE, r = null, h = b) : (k = q ? q.messageId : null, c = g.INTERNAL_EXCEPTION, r = null, h = new ea("Error sending an automatic handshake response.", b));
+ F(this, this._ctx, this._msgCtx.getDebugContext(), k, c, r, this._output, this._timeout, {
+ result: function (a) {
+ n.error(h);
+ },
+ timeout: function () {
+ n.timeout();
+ },
+ error: function (a) {
+ z(n, function () {
+ if (x(a))
+ return null;
+ throw new nb("Error sending an automatic handshake response.", a, b);
+ }, y);
+ }
+ });
+ }, y);
+ }
+ });
+ }, y);
+ }
+ y = this;
+ z(n, function () {
+ this._ctrl.receive(this, this._ctx, this._msgCtx, this._input, null, this._timeout, {
+ result: function (g) {
+ q(g);
+ },
+ timeout: function () {
+ n.timeout();
+ },
+ error: function (q) {
+ z(n, function () {
+ var d,
+ b,
+ a,
+ c;
+ if (x(q))
+ return null;
+ q instanceof E ? (d = q.messageId, b = q.error, a = this._ctrl.messageRegistry.getUserMessage(b, null), c = q) : (d = null, b = g.INTERNAL_EXCEPTION, a = null, c = new ea("Error receiving the message header.", q));
+ F(this, this._ctx, this._msgCtx.getDebugContext(), d, b, a, this._output, this._timeout, {
+ result: function (a) {
+ n.error(c);
+ },
+ timeout: function () {
+ n.timeout();
+ },
+ error: function (a) {
+ z(n, function () {
+ if (x(a))
+ return null;
+ throw new nb("Error receiving the message header.", a, q);
+ }, y);
+ }
+ });
+ }, y);
+ }
+ });
+ }, y);
+ }
+ });
+ W = oa.Class.create({
+ init: function (g, n, q, t, v, x, d) {
+ Object.defineProperties(this, {
+ _ctrl: {
+ value: g,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ _ctx: {
+ value: n,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ _msgCtx: {
+ value: q,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ _input: {
+ value: t,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ _output: {
+ value: v,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ _request: {
+ value: x,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ _timeout: {
+ value: d,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ _aborted: {
+ value: !1,
+ writable: !0,
+ enumerable: !1,
+ configurable: !1
+ },
+ _abortFunc: {
+ value: ca,
+ writable: !0,
+ enumerable: !1,
+ configurable: !1
+ }
+ });
+ },
+ isAborted: function () {
+ return this._aborted;
+ },
+ abort: function () {
+ this._aborted = !0;
+ this._abortFunc && this._abortFunc.call(this);
+ },
+ setAbort: function (g) {
+ this._abortFunc = g;
+ },
+ trustedNetworkExecute: function (n, q, t) {
+ var v;
+ v = this;
+ z(t, function () {
+ var y,
+ D;
+ if (12 < q + 1)
+ return !1;
+ if (y = this._msgCtx.isIntegrityProtected() && !n.willIntegrityProtectHeader() ? g.RESPONSE_REQUIRES_INTEGRITY_PROTECTION : this._msgCtx.isEncrypted() && !n.willEncryptPayloads() ? g.RESPONSE_REQUIRES_ENCRYPTION : null) {
+ D = kc(n.getMessageId());
+ F(this, this._ctx, this._msgCtx.getDebugContext(), D, y, null, this._output, this._timeout, {
+ result: function (d) {
+ t.result(!1);
+ },
+ timeout: function () {
+ t.timeout();
+ },
+ error: function (d) {
+ z(t, function () {
+ if (x(d))
+ return !1;
+ throw new nb("Response requires encryption or integrity protection but cannot be protected: " + y, d, null);
+ }, v);
+ }
+ });
+ } else !this._msgCtx.getCustomer() || n.getMasterToken() || n.getKeyExchangeData() ? (n.setRenewable(!1), this._ctrl.send(this._ctx, this._msgCtx, this._output, n, this._timeout, {
+ result: function (d) {
+ t.result(!0);
+ },
+ timeout: function () {
+ t.timeout();
+ },
+ error: function (d) {
+ t.error(d);
+ }
+ })) : (D = kc(n.getMessageId()), F(this, this._ctx, this._msgCtx.getDebugContext(), D, g.RESPONSE_REQUIRES_MASTERTOKEN, null, this._output, this._timeout, {
+ result: function (d) {
+ t.result(!1);
+ },
+ timeout: function () {
+ t.timeout();
+ },
+ error: function (d) {
+ z(t, function () {
+ if (x(d))
+ return !1;
+ throw new nb("Response wishes to attach a user ID token but there is no master token.", d, null);
+ }, v);
+ }
+ }));
+ }, v);
+ },
+ peerToPeerExecute: function (n, q, t, v) {
+ var D;
+ function y(d) {
+ z(v, function () {
+ var b;
+ b = d.response;
+ b.close();
+ b = b.getErrorHeader();
+ this._ctrl.cleanupContext(this._ctx, d.requestHeader, b);
+ this._ctrl.buildErrorResponse(this, this._ctx, n, d, b, {
+ result: function (a) {
+ z(v, function () {
+ var b,
+ k;
+ if (!a)
+ return !1;
+ b = a.errorResult;
+ k = a.tokenTicket;
+ this.peerToPeerExecute(b.msgCtx, b.builder, t, {
+ result: function (a) {
+ z(v, function () {
+ this._ctrl.releaseMasterToken(k);
+ return a;
+ }, D);
+ },
+ timeout: function () {
+ z(v, function () {
+ this._ctrl.releaseMasterToken(k);
+ v.timeout();
+ }, D);
+ },
+ error: function (a) {
+ z(v, function () {
+ this._ctrl.releaseMasterToken(k);
+ throw a;
+ }, D);
+ }
+ });
+ }, D);
+ }
+ });
+ }, D);
+ }
+ D = this;
+ z(v, function () {
+ var d;
+ if (12 < t + 2)
+ return !1;
+ if (null != n.getCustomer() && null == q.getPeerMasterToken() && null == q.getKeyExchangeData()) {
+ d = kc(q.getMessageId());
+ F(this, this._ctx, n.getDebugContext(), d, g.RESPONSE_REQUIRES_MASTERTOKEN, null, this._output, this._timeout, {
+ result: function (b) {
+ v.result(!1);
+ },
+ timeout: function () {
+ v.timeout();
+ },
+ error: function (b) {
+ z(v, function () {
+ if (x(b))
+ return !1;
+ throw new nb("Response wishes to attach a user ID token but there is no master token.", b, null);
+ }, D);
+ }
+ });
+ } else
+ this._ctrl.sendReceive(this._ctx, n, this._input, this._output, q, this._timeout, !1, {
+ result: function (b) {
+ z(v, function () {
+ var k,
+ l,
+ r;
+ function a() {
+ k.read(32768, D._timeout, {
+ result: function (b) {
+ z(v, function () {
+ b ? a() : c();
+ }, D);
+ },
+ timeout: function () {
+ v.timeout();
+ },
+ error: function (a) {
+ v.error(a);
+ }
+ });
+ }
+ function c() {
+ z(v, function () {
+ var a;
+ a = new sa(b.payloads, n);
+ this._ctrl.buildResponse(this, this._ctx, a, l, this._timeout, {
+ result: function (b) {
+ z(v, function () {
+ var k;
+ k = b.tokenTicket;
+ this.peerToPeerExecute(a, b.builder, t, {
+ result: function (a) {
+ z(v, function () {
+ this._ctrl.releaseMasterToken(k);
+ return a;
+ }, D);
+ },
+ timeout: function () {
+ z(v, function () {
+ this._ctrl.releaseMasterToken(k);
+ v.timeout();
+ }, D);
+ },
+ error: function (a) {
+ z(v, function () {
+ this._ctrl.releaseMasterToken(k);
+ throw a;
+ }, D);
+ }
+ });
+ }, D);
+ },
+ timeout: function () {
+ v.timeout();
+ },
+ error: function (a) {
+ v.error(a);
+ }
+ });
+ }, D);
+ }
+ k = b.response;
+ t += 2;
+ if (!k)
+ return !0;
+ l = k.getMessageHeader();
+ if (l) {
+ r = b.payloads;
+ r = 0 < r.length && 0 < r[0].data.length;
+ if (b.handshake && r)
+ a();
+ else
+ return !0;
+ } else
+ y(b);
+ }, D);
+ },
+ timeout: function () {
+ v.timeout();
+ },
+ error: function (b) {
+ v.error(b);
+ }
+ });
+ }, D);
+ },
+ call: function (n) {
+ var q;
+ q = this;
+ this._ctrl.buildResponse(this, this._ctx, this._msgCtx, this._request, this._timeout, {
+ result: function (t) {
+ z(n, function () {
+ var v,
+ y;
+ v = t.builder;
+ y = t.tokenTicket;
+ this._ctx.isPeerToPeer() ? this.peerToPeerExecute(this._msgCtx, v, 3, {
+ result: function (g) {
+ z(n, function () {
+ this._ctx.isPeerToPeer() && this.releaseMasterToken(y);
+ return g;
+ }, q);
+ },
+ timeout: function () {
+ z(n, function () {
+ this._ctx.isPeerToPeer() && this.releaseMasterToken(y);
+ n.timeout();
+ }, q);
+ },
+ error: function (t) {
+ z(n, function () {
+ var d,
+ b,
+ a,
+ c;
+ this._ctx.isPeerToPeer() && this.releaseMasterToken(y);
+ if (x(t))
+ return !1;
+ d = kc(v.getMessageId());
+ t instanceof E ? (b = t.error, a = this._request.messageCapabilities, a = this._ctrl.messageRegistry.getUserMessage(b, a ? a.languages : null), c = t) : t instanceof ab ? (b = g.MSL_COMMS_FAILURE, a = null, c = t) : (b = g.INTERNAL_EXCEPTION, a = null, c = new ea("Error sending the response.", t));
+ F(this, this._ctx, this._msgCtx.getDebugContext(), d, b, a, this._output, this._timeout, {
+ result: function (a) {
+ n.error(c);
+ },
+ timeout: function () {
+ n.timeout();
+ },
+ error: function (a) {
+ z(n, function () {
+ if (x(a))
+ return !1;
+ throw new nb("Error sending the response.", a, null);
+ }, q);
+ }
+ });
+ }, q);
+ }
+ }) : this.trustedNetworkExecute(v, 3, {
+ result: function (g) {
+ z(n, function () {
+ this._ctx.isPeerToPeer() && this.releaseMasterToken(y);
+ return g;
+ }, q);
+ },
+ timeout: function () {
+ z(n, function () {
+ this._ctx.isPeerToPeer() && this.releaseMasterToken(y);
+ n.timeout();
+ }, q);
+ },
+ error: function (t) {
+ z(n, function () {
+ var d,
+ b,
+ a,
+ c;
+ this._ctx.isPeerToPeer() && this.releaseMasterToken(y);
+ if (x(t))
+ return !1;
+ d = kc(v.getMessageId());
+ t instanceof E ? (b = t.error, a = this._request.messageCapabilities, a = this._ctrl.messageRegistry.getUserMessage(b, a ? a.languages : null), c = t) : t instanceof ab ? (b = g.MSL_COMMS_FAILURE, a = null, c = t) : (b = g.INTERNAL_EXCEPTION, a = null, c = new ea("Error sending the response.", t));
+ F(this, this._ctx, this._msgCtx.getDebugContext(), d, b, a, this._output, this._timeout, {
+ result: function (a) {
+ n.error(c);
+ },
+ timeout: function () {
+ n.timeout();
+ },
+ error: function (a) {
+ z(n, function () {
+ if (x(a))
+ return !1;
+ throw new nb("Error sending the response.", a, null);
+ }, q);
+ }
+ });
+ }, q);
+ }
+ });
+ }, q);
+ },
+ timeout: function () {
+ n.timeout();
+ },
+ error: function (t) {
+ z(n, function () {
+ var v,
+ y,
+ D,
+ d;
+ if (x(t))
+ return !1;
+ t instanceof E ? (v = t.messageId, y = t.error, D = this._request.messageCapabilities, D = this._ctrl.messageRegistry.getUserMessage(y, D ? D.languages : null), d = t) : (v = null, y = g.INTERNAL_EXCEPTION, D = null, d = new ea("Error building the response.", t));
+ F(this, this._ctx, this._msgCtx.getDebugContext(), v, y, D, this._output, this._timeout, {
+ result: function (b) {
+ n.error(d);
+ },
+ timeout: function () {
+ n.timeout();
+ },
+ error: function (b) {
+ z(n, function () {
+ if (x(b))
+ return null;
+ throw new nb("Error building the response.", b, t);
+ }, q);
+ }
+ });
+ }, q);
+ }
+ });
+ }
+ });
+ Aa = oa.Class.create({
+ init: function (g, n, q, t, v, x, d) {
+ Object.defineProperties(this, {
+ _ctrl: {
+ value: g,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ _ctx: {
+ value: n,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ _msgCtx: {
+ value: q,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ _appError: {
+ value: t,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ _output: {
+ value: output,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ _request: {
+ value: x,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ _timeout: {
+ value: d,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ _aborted: {
+ value: !1,
+ writable: !0,
+ enumerable: !1,
+ configurable: !1
+ },
+ _abortFunc: {
+ value: ca,
+ writable: !0,
+ enumerable: !1,
+ configurable: !1
+ }
+ });
+ },
+ isAborted: function () {
+ return this._aborted;
+ },
+ abort: function () {
+ this._aborted = !0;
+ this._abortFunc && this._abortFunc.call(this);
+ },
+ setAbort: function (g) {
+ this._abortFunc = g;
+ },
+ call: function (n) {
+ var q;
+ q = this;
+ z(n, function () {
+ var t,
+ v;
+ if (this._appError == ENTITY_REJECTED)
+ t = this._request.masterToken ? g.MASTERTOKEN_REJECTED_BY_APP : g.ENTITY_REJECTED_BY_APP;
+ else if (this._appError == USER_REJECTED)
+ t = this._request.userIdToken ? g.USERIDTOKEN_REJECTED_BY_APP : g.USER_REJECTED_BY_APP;
+ else
+ throw new ea("Unhandled application error " + this._appError + ".");
+ v = this._request.messageCapabilities;
+ v = this._ctrl.messageRegistry.getUserMessage(t, v ? v.languages : null);
+ F(this, this._ctx, this._msgCtx.getDebugContext(), this._request.messageId, t, v, this._output, this._timeout, {
+ result: function (g) {
+ n.result(g);
+ },
+ timeout: n.timeout,
+ error: function (g) {
+ z(n, function () {
+ if (x(g))
+ return !1;
+ if (g instanceof E)
+ throw g;
+ throw new ea("Error building the error response.", g);
+ }, q);
+ }
+ });
+ }, q);
+ }
+ });
+ Ca = {
+ result: function () {},
+ timeout: function () {},
+ error: function () {}
+ };
+ U = oa.Class.create({
+ init: function (g, n, q, t, v, x, d, b, a) {
+ var c;
+ d ? (c = d.builder, d = d.tokenTicket) : d = c = null;
+ Object.defineProperties(this, {
+ _ctrl: {
+ value: g,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ _ctx: {
+ value: n,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ _msgCtx: {
+ value: q,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ _remoteEntity: {
+ value: t,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ _input: {
+ value: v,
+ writable: !0,
+ enumerable: !1,
+ configurable: !1
+ },
+ _output: {
+ value: x,
+ writable: !0,
+ enumerable: !1,
+ configurable: !1
+ },
+ _openedStreams: {
+ value: !1,
+ writable: !0,
+ enumerable: !1,
+ configurable: !1
+ },
+ _builder: {
+ value: c,
+ writable: !0,
+ enumerable: !1,
+ configurable: !1
+ },
+ _tokenTicket: {
+ value: d,
+ writable: !0,
+ enumerable: !1,
+ configurable: !1
+ },
+ _timeout: {
+ value: a,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ _msgCount: {
+ value: b,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ _aborted: {
+ value: !1,
+ writable: !0,
+ enumerable: !1,
+ configurable: !1
+ },
+ _abortFunc: {
+ value: ca,
+ writable: !0,
+ enumerable: !1,
+ configurable: !1
+ }
+ });
+ },
+ isAborted: function () {
+ return this._aborted;
+ },
+ abort: function () {
+ this._aborted = !0;
+ this._abortFunc && this._abortFunc.call(this);
+ },
+ setAbort: function (g) {
+ this._abortFunc = g;
+ },
+ execute: function (g, n, q, t, v) {
+ var b;
+ function x(a) {
+ function c(k) {
+ z(v, function () {
+ var b;
+ b = a.response;
+ return k ? k : b;
+ }, b);
+ }
+ z(v, function () {
+ var k,
+ l;
+ k = a.response;
+ k.close();
+ l = k.getErrorHeader();
+ this._ctrl.cleanupContext(this._ctx, a.requestHeader, l);
+ this._ctrl.buildErrorResponse(this, this._ctx, g, a, l, q, {
+ result: function (a) {
+ z(v, function () {
+ var h,
+ p,
+ m,
+ f;
+ if (!a)
+ return k;
+ h = a.errorResult;
+ p = a.tokenTicket;
+ m = h.builder;
+ h = h.msgCtx;
+ if (this._ctx.isPeerToPeer())
+ this.execute(h, m, this._timeout, t, {
+ result: function (a) {
+ z(v, function () {
+ this._ctrl.releaseMasterToken(p);
+ c(a);
+ }, b);
+ },
+ timeout: function () {
+ z(v, function () {
+ this._ctrl.releaseMasterToken(p);
+ v.timeout();
+ }, b);
+ },
+ error: function (a) {
+ z(v, function () {
+ this._ctrl.releaseMasterToken(p);
+ v.error(a);
+ }, b);
+ }
+ });
+ else {
+ this._openedStreams && (this._input.close(), this._output.close(q, Ca));
+ f = new U(this._ctrl, this._ctx, h, this._remoteEntity, null, null, {
+ builder: m,
+ tokenTicket: p
+ }, t, this._timeout);
+ this.setAbort(function () {
+ f.abort();
+ });
+ f.call({
+ result: function (a) {
+ c(a);
+ },
+ timeout: function () {
+ v.timeout();
+ },
+ error: function (a) {
+ v.error(a);
+ }
+ });
+ }
+ }, b);
+ },
+ timeout: function () {
+ v.timeout();
+ },
+ error: function (a) {
+ v.error(a);
+ }
+ });
+ }, b);
+ }
+ function d(a) {
+ z(v, function () {
+ var l,
+ r,
+ h,
+ p,
+ m;
+ function c() {
+ l.read(32768, b._timeout, {
+ result: function (a) {
+ a ? c() : k();
+ },
+ timeout: function () {
+ v.timeout();
+ },
+ error: function (a) {
+ v.error(a);
+ }
+ });
+ }
+ function k() {
+ z(v, function () {
+ var k;
+ k = new sa(a.payloads, g);
+ this._ctrl.buildResponse(this, this._ctx, g, r, q, {
+ result: function (a) {
+ z(v, function () {
+ var f;
+ f = a.tokenTicket;
+ this.execute(k, a.builder, this._timeout, t, {
+ result: function (a) {
+ z(v, function () {
+ this._ctrl.releaseMasterToken(f);
+ return a;
+ }, b);
+ },
+ timeout: function () {
+ z(v, function () {
+ this._ctrl.releaseMasterToken(f);
+ v.timeout();
+ }, b);
+ },
+ error: function (a) {
+ z(v, function () {
+ this._ctrl.releaseMasterToken(f);
+ throw a;
+ }, b);
+ }
+ });
+ }, b);
+ },
+ timeout: function () {
+ v.timeout();
+ },
+ error: function (a) {
+ v.error(a);
+ }
+ });
+ }, b);
+ }
+ l = a.response;
+ r = l.getMessageHeader();
+ h = a.payloads;
+ h = 0 < h.length && 0 < h[0].data.length;
+ if (!this._ctx.isPeerToPeer()) {
+ if (!a.handshake || !h)
+ return l;
+ this._openedStreams && (this._input.close(), this._output.close(q, Ca));
+ p = new sa(a.payloads, g);
+ this._ctrl.buildResponse(this, this._ctx, g, r, q, {
+ result: function (a) {
+ z(v, function () {
+ var b;
+ b = new U(this._ctrl, this._ctx, p, this._remoteEntity, null, null, a, t, this._timeout);
+ this.setAbort(function () {
+ b.abort();
+ });
+ b.call(v);
+ }, b);
+ },
+ timeout: function () {
+ v.timeout();
+ },
+ error: function (a) {
+ v.error(a);
+ }
+ });
+ } else if (a.handshake && h)
+ c();
+ else if (0 < r.keyRequestData.length) {
+ m = new R(g);
+ this._ctrl.buildResponse(this, this._ctx, m, r, q, {
+ result: function (a) {
+ z(v, function () {
+ var k,
+ f;
+ k = a.builder;
+ f = a.tokenTicket;
+ l.mark();
+ l.read(1, this._timeout, {
+ result: function (a) {
+ z(v, function () {
+ function h() {
+ l.read(32768, b._timeout, {
+ result: function (a) {
+ a ? h() : c();
+ },
+ timeout: function () {
+ v.timeout();
+ },
+ error: function (a) {
+ v.error(a);
+ }
+ });
+ }
+ function c() {
+ b.execute(m, k, b._timeout, t, {
+ result: function (a) {
+ z(v, function () {
+ this._ctrl.releaseMasterToken(f);
+ return a;
+ }, b);
+ },
+ timeout: function () {
+ z(v, function () {
+ this._ctrl.releaseMasterToken(f);
+ v.timeout();
+ }, b);
+ },
+ error: function (a) {
+ z(v, function () {
+ this._ctrl.releaseMasterToken(f);
+ throw a;
+ }, b);
+ }
+ });
+ }
+ if (a) {
+ if ((l.reset(), 12 >= t + 1))
+ (k.setRenewable(!1), this._ctrl.send(this, this._ctx, m, this._output, k, this._timeout, {
+ result: function (a) {
+ z(v, function () {
+ this.releaseMasterToken(f);
+ return l;
+ }, b);
+ },
+ timeout: function () {
+ v.timeout();
+ },
+ error: function (a) {
+ v.error(a);
+ }
+ }));
+ else
+ return (this.releaseMasterToken(f), l);
+ } else
+ h();
+ }, b);
+ },
+ timeout: function () {
+ z(v, function () {
+ this.releaseMasterToken(f);
+ v.timeout();
+ }, b);
+ },
+ error: function (a) {
+ z(v, function () {
+ this.releaseMasterToken(f);
+ throw a;
+ }, b);
+ }
+ });
+ }, b);
+ },
+ timeout: function () {
+ v.timeout();
+ },
+ error: function (a) {
+ v.error(a);
+ }
+ });
+ }
+ }, b);
+ }
+ b = this;
+ z(v, function () {
+ if (12 < t + 2)
+ return null;
+ this._ctrl.sendReceive(this, this._ctx, g, this._input, this._output, n, q, !0, {
+ result: function (a) {
+ z(v, function () {
+ var b;
+ if (!a)
+ return null;
+ b = a.response;
+ t += 2;
+ b.getMessageHeader() ? d(a) : x(a);
+ }, b);
+ },
+ timeout: function () {
+ v.timeout();
+ },
+ error: function (a) {
+ v.error(a);
+ }
+ });
+ }, b);
+ },
+ call: function (g) {
+ var q;
+ function n(n, v, t) {
+ z(g, function () {
+ this.execute(this._msgCtx, n, t, this._msgCount, {
+ result: function (d) {
+ z(g, function () {
+ this._ctrl.releaseMasterToken(v);
+ this._openedStreams && this._output.close(t, Ca);
+ d && d.closeSource(this._openedStreams);
+ return d;
+ }, q);
+ },
+ timeout: function () {
+ z(g, function () {
+ this._ctrl.releaseMasterToken(v);
+ this._openedStreams && (this._output.close(t, Ca), this._input.close());
+ g.timeout();
+ }, q);
+ },
+ error: function (d) {
+ z(g, function () {
+ this._ctrl.releaseMasterToken(v);
+ this._openedStreams && (this._output.close(t, Ca), this._input.close());
+ if (x(d))
+ return null;
+ throw d;
+ }, q);
+ }
+ });
+ }, q);
+ }
+ q = this;
+ z(g, function () {
+ var v,
+ t,
+ y;
+ v = this._timeout;
+ if (!this._input || !this._output)
+ try {
+ this._remoteEntity.setTimeout(this._timeout);
+ t = Date.now();
+ y = this._remoteEntity.openConnection();
+ this._output = y.output;
+ this._input = y.input;
+ -1 != v && (v = this._timeout - (Date.now() - t));
+ this._openedStreams = !0;
+ } catch (d) {
+ this._builder && this._ctrl.releaseMasterToken(this._tokenTicket);
+ this._output && this._output.close(this._timeout, Ca);
+ this._input && this._input.close();
+ if (x(d))
+ return null;
+ throw d;
+ }
+ this._builder ? n(this._builder, this._tokenTicket, v) : this._ctrl.buildRequest(this, this._ctx, this._msgCtx, this._timeout, {
+ result: function (d) {
+ z(g, function () {
+ n(d.builder, d.tokenTicket, v);
+ }, q);
+ },
+ timeout: function () {
+ z(g, function () {
+ this._openedStreams && (this._output.close(this._timeout, Ca), this._input.close());
+ g.timeout();
+ }, q);
+ },
+ error: function (d) {
+ z(g, function () {
+ this._openedStreams && (this._output.close(this._timeout, Ca), this._input.close());
+ if (x(d))
+ return null;
+ throw d;
+ }, q);
+ }
+ });
+ }, q);
+ }
+ });
+ })();
+ (function () {
+ ud = oa.Class.create({
+ init: function (g) {
+ Object.defineProperties(this, {
+ id: {
+ value: g,
+ writable: !1,
+ configurable: !1
+ }
+ });
+ },
+ toJSON: function () {
+ var g;
+ g = {};
+ g.id = this.id;
+ return g;
+ },
+ equals: function (g) {
+ return this === g ? !0 : g instanceof ud ? this.id == g.id : !1;
+ },
+ uniqueKey: function () {
+ return this.id;
+ }
+ });
+ te = function (n) {
+ var q;
+ q = n.id;
+ if (!q)
+ throw new ga(g.JSON_PARSE_ERROR, JSON.stringify(n));
+ return new ud(q);
+ };
+ })();
+ oa.Class.create({
+ isNewestMasterToken: function (g, n, q) {},
+ isMasterTokenRevoked: function (g, n) {},
+ acceptNonReplayableId: function (g, n, q, t) {},
+ createMasterToken: function (g, n, q, t, I) {},
+ isMasterTokenRenewable: function (g, n, q) {},
+ renewMasterToken: function (g, n, q, t, I) {},
+ isUserIdTokenRevoked: function (g, n, q, t) {},
+ createUserIdToken: function (g, n, q, t) {},
+ renewUserIdToken: function (g, n, q, t) {}
+ });
+ (function () {
+ function n(g, n, q, t) {
+ this.sessiondata = g;
+ this.tokendata = n;
+ this.signature = q;
+ this.verified = t;
+ }
+ jb = oa.Class.create({
+ init: function (g, n, t, I, x, F, J, z, E, sa, R) {
+ var v;
+ v = this;
+ q(R, function () {
+ var y,
+ D,
+ ka,
+ U,
+ Ea;
+ if (t.getTime() < n.getTime())
+ throw new ea("Cannot construct a master token that expires before its renewal window opens.");
+ if (0 > I || I > Na)
+ throw new ea("Sequence number " + I + " is outside the valid range.");
+ if (0 > x || x > Na)
+ throw new ea("Serial number " + x + " is outside the valid range.");
+ y = Math.floor(n.getTime() / 1E3);
+ D = Math.floor(t.getTime() / 1E3);
+ if (sa)
+ ka = sa.sessiondata;
+ else {
+ U = {};
+ F && (U.issuerdata = F);
+ U.identity = J;
+ U.encryptionkey = ra(z.toByteArray());
+ U.hmackey = ra(E.toByteArray());
+ ka = Oa(JSON.stringify(U), Ma);
+ }
+ if (sa)
+ return (Object.defineProperties(this, {
+ ctx: {
+ value: g,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ renewalWindowSeconds: {
+ value: y,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ expirationSeconds: {
+ value: D,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ sequenceNumber: {
+ value: I,
+ writable: !1,
+ configurable: !1
+ },
+ serialNumber: {
+ value: x,
+ writable: !1,
+ configurable: !1
+ },
+ issuerData: {
+ value: F,
+ writable: !1,
+ configurable: !1
+ },
+ identity: {
+ value: J,
+ writable: !1,
+ configurable: !1
+ },
+ encryptionKey: {
+ value: z,
+ writable: !1,
+ configurable: !1
+ },
+ hmacKey: {
+ value: E,
+ writable: !1,
+ configurable: !1
+ },
+ sessiondata: {
+ value: ka,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ verified: {
+ value: sa.verified,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ tokendata: {
+ value: sa.tokendata,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ signature: {
+ value: sa.signature,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ }
+ }), this);
+ Ea = g.getMslCryptoContext();
+ Ea.encrypt(ka, {
+ result: function (n) {
+ q(R, function () {
+ var t,
+ Q;
+ t = {};
+ t.renewalwindow = y;
+ t.expiration = D;
+ t.sequencenumber = I;
+ t.serialnumber = x;
+ t.sessiondata = ra(n);
+ Q = Oa(JSON.stringify(t), Ma);
+ Ea.sign(Q, {
+ result: function (n) {
+ q(R, function () {
+ Object.defineProperties(this, {
+ ctx: {
+ value: g,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ renewalWindowSeconds: {
+ value: y,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ expirationSeconds: {
+ value: D,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ sequenceNumber: {
+ value: I,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ serialNumber: {
+ value: x,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ issuerData: {
+ value: F,
+ writable: !1,
+ configurable: !1
+ },
+ identity: {
+ value: J,
+ writable: !1,
+ configurable: !1
+ },
+ encryptionKey: {
+ value: z,
+ writable: !1,
+ configurable: !1
+ },
+ hmacKey: {
+ value: E,
+ writable: !1,
+ configurable: !1
+ },
+ sessiondata: {
+ value: ka,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ verified: {
+ value: !0,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ tokendata: {
+ value: Q,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ signature: {
+ value: n,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ }
+ });
+ return this;
+ }, v);
+ },
+ error: function (g) {
+ R.error(g);
+ }
+ });
+ }, v);
+ },
+ error: function (g) {
+ R.error(g);
+ }
+ });
+ }, this);
+ },
+ get renewalWindow() {
+ return new Date(1E3 * this.renewalWindowSeconds);
+ },
+ get expiration() {
+ return new Date(1E3 * this.expirationSeconds);
+ },
+ isDecrypted: function () {
+ return this.sessiondata ? !0 : !1;
+ },
+ isVerified: function () {
+ return this.verified;
+ },
+ isRenewable: function (g) {
+ return this.isVerified() ? this.renewalWindow.getTime() <= this.ctx.getTime() : !0;
+ },
+ isExpired: function (g) {
+ return this.isVerified() ? this.expiration.getTime() <= this.ctx.getTime() : !1;
+ },
+ isNewerThan: function (g) {
+ var n;
+ if (this.sequenceNumber == g.sequenceNumber)
+ return this.expiration > g.expiration;
+ if (this.sequenceNumber > g.sequenceNumber) {
+ n = this.sequenceNumber - Na + 127;
+ return g.sequenceNumber >= n;
+ }
+ n = g.sequenceNumber - Na + 127;
+ return this.sequenceNumber < n;
+ },
+ toJSON: function () {
+ var g;
+ g = {};
+ g.tokendata = ra(this.tokendata);
+ g.signature = ra(this.signature);
+ return g;
+ },
+ equals: function (g) {
+ return this === g ? !0 : g instanceof jb ? this.serialNumber == g.serialNumber && this.sequenceNumber == g.sequenceNumber && this.expiration.getTime() == g.expiration.getTime() : !1;
+ },
+ uniqueKey: function () {
+ return this.serialNumber + ":" + this.sequenceNumber + this.expiration.getTime();
+ }
+ });
+ Yb = function (t, y, D) {
+ q(D, function () {
+ var v,
+ x,
+ F,
+ J,
+ z;
+ v = t.getMslCryptoContext();
+ x = y.tokendata;
+ F = y.signature;
+ if ("string" !== typeof x || "string" !== typeof F)
+ throw new ga(g.JSON_PARSE_ERROR, "mastertoken " + JSON.stringify(y));
+ try {
+ J = xa(x);
+ } catch (va) {
+ throw new E(g.MASTERTOKEN_TOKENDATA_INVALID, "mastertoken " + JSON.stringify(y), va);
+ }
+ if (!J || 0 == J.length)
+ throw new ga(g.MASTERTOKEN_TOKENDATA_MISSING, "mastertoken " + JSON.stringify(y));
+ try {
+ z = xa(F);
+ } catch (va) {
+ throw new E(g.MASTERTOKEN_SIGNATURE_INVALID, "mastertoken " + JSON.stringify(y), va);
+ }
+ v.verify(J, z, {
+ result: function (x) {
+ q(D, function () {
+ var y,
+ F,
+ I,
+ Q,
+ W,
+ ka,
+ U,
+ Ea,
+ ua,
+ va;
+ ka = Ja(J, Ma);
+ try {
+ U = JSON.parse(ka);
+ y = parseInt(U.renewalwindow);
+ F = parseInt(U.expiration);
+ I = parseInt(U.sequencenumber);
+ Q = parseInt(U.serialnumber);
+ W = U.sessiondata;
+ } catch (qa) {
+ if (qa instanceof SyntaxError)
+ throw new ga(g.MASTERTOKEN_TOKENDATA_PARSE_ERROR, "mastertokendata " + ka, qa);
+ throw qa;
+ }
+ if (!y || y != y || !F || F != F || "number" !== typeof I || I != I || "number" !== typeof Q || Q != Q || "string" !== typeof W)
+ throw new ga(g.MASTERTOKEN_TOKENDATA_PARSE_ERROR, "mastertokendata " + ka);
+ if (F < y)
+ throw new E(g.MASTERTOKEN_EXPIRES_BEFORE_RENEWAL, "mastertokendata " + ka);
+ if (0 > I || I > Na)
+ throw new E(g.MASTERTOKEN_SEQUENCE_NUMBER_OUT_OF_RANGE, "mastertokendata " + ka);
+ if (0 > Q || Q > Na)
+ throw new E(g.MASTERTOKEN_SERIAL_NUMBER_OUT_OF_RANGE, "mastertokendata " + ka);
+ Ea = new Date(1E3 * y);
+ ua = new Date(1E3 * F);
+ try {
+ va = xa(W);
+ } catch (qa) {
+ throw new E(g.MASTERTOKEN_SESSIONDATA_INVALID, W, qa);
+ }
+ if (!va || 0 == va.length)
+ throw new E(g.MASTERTOKEN_SESSIONDATA_MISSING, W);
+ x ? v.decrypt(va, {
+ result: function (v) {
+ q(D, function () {
+ var y,
+ F,
+ R,
+ E,
+ W,
+ U;
+ W = Ja(v, Ma);
+ try {
+ U = JSON.parse(W);
+ y = U.issuerdata;
+ F = U.identity;
+ R = U.encryptionkey;
+ E = U.hmackey;
+ } catch (d) {
+ if (d instanceof SyntaxError)
+ throw new ga(g.MASTERTOKEN_SESSIONDATA_PARSE_ERROR, "sessiondata " + W, d);
+ throw d;
+ }
+ if (y && "object" !== typeof y || !F || "string" !== typeof R || "string" !== typeof E)
+ throw new ga(g.MASTERTOKEN_SESSIONDATA_PARSE_ERROR, "sessiondata " + W);
+ Db(R, tb, Nb, {
+ result: function (d) {
+ Db(E, ub, Xb, {
+ result: function (b) {
+ q(D, function () {
+ var a;
+ a = new n(v, J, z, x);
+ new jb(t, Ea, ua, I, Q, y, F, d, b, a, D);
+ });
+ },
+ error: function (b) {
+ D.error(new N(g.MASTERTOKEN_KEY_CREATION_ERROR, b));
+ }
+ });
+ },
+ error: function (d) {
+ D.error(new N(g.MASTERTOKEN_KEY_CREATION_ERROR, d));
+ }
+ });
+ });
+ },
+ error: function (g) {
+ D.error(g);
+ }
+ }) : (y = new n(null, J, z, x), new jb(t, Ea, ua, I, Q, null, null, null, null, y, D));
+ });
+ },
+ error: function (g) {
+ D.error(g);
+ }
+ });
+ });
+ };
+ })();
+ (function () {
+ function n(g, n, q) {
+ this.tokendata = g;
+ this.signature = n;
+ this.verified = q;
+ }
+ hc = oa.Class.create({
+ init: function (g, n, t, I, x, F, J, z, va) {
+ var v;
+ v = this;
+ q(va, function () {
+ var y,
+ D,
+ Q,
+ W,
+ ka,
+ U,
+ Ea;
+ if (t.getTime() < n.getTime())
+ throw new ea("Cannot construct a user ID token that expires before its renewal window opens.");
+ if (!I)
+ throw new ea("Cannot construct a user ID token without a master token.");
+ if (0 > x || x > Na)
+ throw new ea("Serial number " + x + " is outside the valid range.");
+ y = Math.floor(n.getTime() / 1E3);
+ D = Math.floor(t.getTime() / 1E3);
+ Q = I.serialNumber;
+ if (z) {
+ W = z.tokendata;
+ ka = z.signature;
+ U = z.verified;
+ Q = I.serialNumber;
+ Object.defineProperties(this, {
+ ctx: {
+ value: g,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ renewalWindowSeconds: {
+ value: y,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ expirationSeconds: {
+ value: D,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ mtSerialNumber: {
+ value: Q,
+ writable: !1,
+ configurable: !1
+ },
+ serialNumber: {
+ value: x,
+ writable: !1,
+ configurable: !1
+ },
+ issuerData: {
+ value: F,
+ writable: !1,
+ configurable: !1
+ },
+ customer: {
+ value: J,
+ writable: !1,
+ configurable: !1
+ },
+ verified: {
+ value: U,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ tokendata: {
+ value: W,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ signature: {
+ value: ka,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ }
+ });
+ return this;
+ }
+ W = {};
+ F && (W.issuerdata = F);
+ W.identity = J;
+ W = Oa(JSON.stringify(W), Ma);
+ Ea = g.getMslCryptoContext();
+ Ea.encrypt(W, {
+ result: function (n) {
+ q(va, function () {
+ var t,
+ z;
+ t = {};
+ t.renewalwindow = y;
+ t.expiration = D;
+ t.mtserialnumber = Q;
+ t.serialnumber = x;
+ t.userdata = ra(n);
+ z = Oa(JSON.stringify(t), Ma);
+ Ea.sign(z, {
+ result: function (n) {
+ q(va, function () {
+ Object.defineProperties(this, {
+ ctx: {
+ value: g,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ renewalWindowSeconds: {
+ value: y,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ expirationSeconds: {
+ value: D,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ mtSerialNumber: {
+ value: I.serialNumber,
+ writable: !1,
+ configurable: !1
+ },
+ serialNumber: {
+ value: x,
+ writable: !1,
+ configurable: !1
+ },
+ issuerData: {
+ value: F,
+ writable: !1,
+ configurable: !1
+ },
+ customer: {
+ value: J,
+ writable: !1,
+ configurable: !1
+ },
+ verified: {
+ value: !0,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ tokendata: {
+ value: z,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ signature: {
+ value: n,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ }
+ });
+ return this;
+ }, v);
+ },
+ error: function (g) {
+ q(va, function () {
+ g instanceof E && g.setEntity(I);
+ throw g;
+ }, v);
+ }
+ });
+ }, v);
+ },
+ error: function (g) {
+ q(va, function () {
+ g instanceof E && g.setEntity(I);
+ throw g;
+ }, v);
+ }
+ });
+ }, this);
+ },
+ get renewalWindow() {
+ return new Date(1E3 * this.renewalWindowSeconds);
+ },
+ get expiration() {
+ return new Date(1E3 * this.expirationSeconds);
+ },
+ isVerified: function () {
+ return this.verified;
+ },
+ isDecrypted: function () {
+ return this.customer ? !0 : !1;
+ },
+ isRenewable: function () {
+ return this.renewalWindow.getTime() <= this.ctx.getTime();
+ },
+ isExpired: function () {
+ return this.expiration.getTime() <= this.ctx.getTime();
+ },
+ isBoundTo: function (g) {
+ return g && g.serialNumber == this.mtSerialNumber;
+ },
+ toJSON: function () {
+ var g;
+ g = {};
+ g.tokendata = ra(this.tokendata);
+ g.signature = ra(this.signature);
+ return g;
+ },
+ equals: function (g) {
+ return this === g ? !0 : g instanceof hc ? this.serialNumber == g.serialNumber && this.mtSerialNumber == g.mtSerialNumber : !1;
+ },
+ uniqueKey: function () {
+ return this.serialNumber + ":" + this.mtSerialNumber;
+ }
+ });
+ Zb = function (t, y, D, I) {
+ q(I, function () {
+ var v,
+ F,
+ J,
+ z,
+ va;
+ v = t.getMslCryptoContext();
+ F = y.tokendata;
+ J = y.signature;
+ if ("string" !== typeof F || "string" !== typeof J)
+ throw new ga(g.JSON_PARSE_ERROR, "useridtoken " + JSON.stringify(y)).setEntity(D);
+ try {
+ z = xa(F);
+ } catch (sa) {
+ throw new E(g.USERIDTOKEN_TOKENDATA_INVALID, "useridtoken " + JSON.stringify(y), sa).setEntity(D);
+ }
+ if (!z || 0 == z.length)
+ throw new ga(g.USERIDTOKEN_TOKENDATA_MISSING, "useridtoken " + JSON.stringify(y)).setEntity(D);
+ try {
+ va = xa(J);
+ } catch (sa) {
+ throw new E(g.USERIDTOKEN_TOKENDATA_INVALID, "useridtoken " + JSON.stringify(y), sa).setEntity(D);
+ }
+ v.verify(z, va, {
+ result: function (x) {
+ q(I, function () {
+ var y,
+ F,
+ J,
+ W,
+ ka,
+ U,
+ Ea,
+ ua,
+ sa,
+ qa;
+ U = Ja(z, Ma);
+ try {
+ Ea = JSON.parse(U);
+ y = parseInt(Ea.renewalwindow);
+ F = parseInt(Ea.expiration);
+ J = parseInt(Ea.mtserialnumber);
+ W = parseInt(Ea.serialnumber);
+ ka = Ea.userdata;
+ } catch (la) {
+ if (la instanceof SyntaxError)
+ throw new ga(g.USERIDTOKEN_TOKENDATA_PARSE_ERROR, "usertokendata " + U, la).setEntity(D);
+ throw la;
+ }
+ if (!y || y != y || !F || F != F || "number" !== typeof J || J != J || "number" !== typeof W || W != W || "string" !== typeof ka)
+ throw new ga(g.USERIDTOKEN_TOKENDATA_PARSE_ERROR, "usertokendata " + U).setEntity(D);
+ if (F < y)
+ throw new E(g.USERIDTOKEN_EXPIRES_BEFORE_RENEWAL, "mastertokendata " + U).setEntity(D);
+ if (0 > J || J > Na)
+ throw new E(g.USERIDTOKEN_MASTERTOKEN_SERIAL_NUMBER_OUT_OF_RANGE, "usertokendata " + U).setEntity(D);
+ if (0 > W || W > Na)
+ throw new E(g.USERIDTOKEN_SERIAL_NUMBER_OUT_OF_RANGE, "usertokendata " + U).setEntity(D);
+ ua = new Date(1E3 * y);
+ sa = new Date(1E3 * F);
+ if (!D || J != D.serialNumber)
+ throw new E(g.USERIDTOKEN_MASTERTOKEN_MISMATCH, "uit mtserialnumber " + J + "; mt " + JSON.stringify(D)).setEntity(D);
+ try {
+ qa = xa(ka);
+ } catch (la) {
+ throw new E(g.USERIDTOKEN_USERDATA_INVALID, ka, la).setEntity(D);
+ }
+ if (!qa || 0 == qa.length)
+ throw new E(g.USERIDTOKEN_USERDATA_MISSING, ka).setEntity(D);
+ x ? v.decrypt(qa, {
+ result: function (v) {
+ q(I, function () {
+ var q,
+ y,
+ F,
+ J,
+ R;
+ F = Ja(v, Ma);
+ try {
+ J = JSON.parse(F);
+ q = J.issuerdata;
+ y = J.identity;
+ } catch (d) {
+ if (d instanceof SyntaxError)
+ throw new ga(g.USERIDTOKEN_USERDATA_PARSE_ERROR, "userdata " + F).setEntity(D);
+ throw d;
+ }
+ if (q && "object" !== typeof q || "object" !== typeof y)
+ throw new ga(g.USERIDTOKEN_USERDATA_PARSE_ERROR, "userdata " + F).setEntity(D);
+ try {
+ R = te(y);
+ } catch (d) {
+ throw new E(g.USERIDTOKEN_IDENTITY_INVALID, "userdata " + F, d).setEntity(D);
+ }
+ y = new n(z, va, x);
+ new hc(t, ua, sa, D, W, q, R, y, I);
+ });
+ },
+ error: function (g) {
+ q(I, function () {
+ g instanceof E && g.setEntity(D);
+ throw g;
+ });
+ }
+ }) : (y = new n(z, va, x), new hc(t, ua, sa, D, W, null, null, y, I));
+ });
+ },
+ error: function (g) {
+ q(I, function () {
+ g instanceof E && g.setEntity(D);
+ throw g;
+ });
+ }
+ });
+ });
+ };
+ })();
+ (function () {
+ function n(n, q) {
+ var t,
+ v,
+ y;
+ t = n.tokendata;
+ if ("string" !== typeof t)
+ throw new ga(g.JSON_PARSE_ERROR, "servicetoken " + JSON.stringify(n));
+ try {
+ v = xa(t);
+ } catch (ua) {
+ throw new E(g.SERVICETOKEN_TOKENDATA_INVALID, "servicetoken " + JSON.stringify(n), ua);
+ }
+ if (!v || 0 == v.length)
+ throw new ga(g.SERVICETOKEN_TOKENDATA_MISSING, "servicetoken " + JSON.stringify(n));
+ try {
+ y = JSON.parse(Ja(v, Ma)).name;
+ } catch (ua) {
+ if (ua instanceof SyntaxError)
+ throw new ga(g.JSON_PARSE_ERROR, "servicetoken " + JSON.stringify(n), ua);
+ throw ua;
+ }
+ if (!y)
+ throw new ga(g.JSON_PARSE_ERROR, "servicetoken " + JSON.stringify(n));
+ return q[y] ? q[y] : q[""];
+ }
+ function t(g, n, q) {
+ this.tokendata = g;
+ this.signature = n;
+ this.verified = q;
+ }
+ Qb = oa.Class.create({
+ init: function (g, n, t, v, F, J, z, va, sa, R) {
+ var x;
+ x = this;
+ q(R, function () {
+ var y,
+ D,
+ I,
+ U,
+ Ea;
+ if (v && F && !F.isBoundTo(v))
+ throw new ea("Cannot construct a service token bound to a master token and user ID token where the user ID token is not bound to the same master token.");
+ y = v ? v.serialNumber : -1;
+ D = F ? F.serialNumber : -1;
+ if (sa)
+ return (Ea = sa.tokendata, Object.defineProperties(this, {
+ ctx: {
+ value: g,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ name: {
+ value: n,
+ writable: !1,
+ configurable: !1
+ },
+ mtSerialNumber: {
+ value: y,
+ writable: !1,
+ configurable: !1
+ },
+ uitSerialNumber: {
+ value: D,
+ writable: !1,
+ configurable: !1
+ },
+ data: {
+ value: t,
+ writable: !1,
+ configurable: !1
+ },
+ encrypted: {
+ value: J,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ compressionAlgo: {
+ value: z,
+ writable: !1,
+ configurable: !1
+ },
+ verified: {
+ value: sa.verified,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ tokendata: {
+ value: Ea,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ signature: {
+ value: sa.signature,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ }
+ }), this);
+ z ? (I = td(z, t), I.length < t.length || (z = null, I = t)) : (z = null, I = t);
+ U = {};
+ U.name = n;
+ -1 != y && (U.mtserialnumber = y);
+ -1 != D && (U.uitserialnumber = D);
+ U.encrypted = J;
+ z && (U.compressionalgo = z);
+ if (J && 0 < I.length)
+ va.encrypt(I, {
+ result: function (I) {
+ q(R, function () {
+ var Q;
+ U.servicedata = ra(I);
+ Q = Oa(JSON.stringify(U), Ma);
+ va.sign(Q, {
+ result: function (v) {
+ q(R, function () {
+ Object.defineProperties(this, {
+ ctx: {
+ value: g,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ name: {
+ value: n,
+ writable: !1,
+ configurable: !1
+ },
+ mtSerialNumber: {
+ value: y,
+ writable: !1,
+ configurable: !1
+ },
+ uitSerialNumber: {
+ value: D,
+ writable: !1,
+ configurable: !1
+ },
+ data: {
+ value: t,
+ writable: !1,
+ configurable: !1
+ },
+ encrypted: {
+ value: J,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ compressionAlgo: {
+ value: z,
+ writable: !1,
+ configurable: !1
+ },
+ verified: {
+ value: !0,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ tokendata: {
+ value: Q,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ signature: {
+ value: v,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ }
+ });
+ return this;
+ }, x);
+ },
+ error: function (g) {
+ q(R, function () {
+ g instanceof E && (g.setEntity(v), g.setUser(F));
+ throw g;
+ });
+ }
+ });
+ }, x);
+ },
+ error: function (g) {
+ q(R, function () {
+ g instanceof E && (g.setEntity(v), g.setUser(F));
+ throw g;
+ });
+ }
+ });
+ else {
+ U.servicedata = ra(I);
+ Ea = Oa(JSON.stringify(U), Ma);
+ va.sign(Ea, {
+ result: function (v) {
+ q(R, function () {
+ Object.defineProperties(this, {
+ ctx: {
+ value: g,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ name: {
+ value: n,
+ writable: !1,
+ configurable: !1
+ },
+ mtSerialNumber: {
+ value: y,
+ writable: !1,
+ configurable: !1
+ },
+ uitSerialNumber: {
+ value: D,
+ writable: !1,
+ configurable: !1
+ },
+ data: {
+ value: t,
+ writable: !1,
+ configurable: !1
+ },
+ encrypted: {
+ value: J,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ compressionAlgo: {
+ value: z,
+ writable: !1,
+ configurable: !1
+ },
+ verified: {
+ value: !0,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ tokendata: {
+ value: Ea,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ signature: {
+ value: v,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ }
+ });
+ return this;
+ }, x);
+ },
+ error: function (g) {
+ q(R, function () {
+ g instanceof E && (g.setEntity(v), g.setUser(F));
+ throw g;
+ });
+ }
+ });
+ }
+ }, this);
+ },
+ isEncrypted: function () {
+ return this.encrypted;
+ },
+ isVerified: function () {
+ return this.verified;
+ },
+ isDecrypted: function () {
+ return this.data ? !0 : !1;
+ },
+ isDeleted: function () {
+ return this.data && 0 == this.data.length;
+ },
+ isMasterTokenBound: function () {
+ return -1 != this.mtSerialNumber;
+ },
+ isBoundTo: function (g) {
+ return g ? g instanceof jb ? g.serialNumber == this.mtSerialNumber : g instanceof hc ? g.serialNumber == this.uitSerialNumber : !1 : !1;
+ },
+ isUserIdTokenBound: function () {
+ return -1 != this.uitSerialNumber;
+ },
+ isUnbound: function () {
+ return -1 == this.mtSerialNumber && -1 == this.uitSerialNumber;
+ },
+ toJSON: function () {
+ var g;
+ g = {};
+ g.tokendata = ra(this.tokendata);
+ g.signature = ra(this.signature);
+ return g;
+ },
+ equals: function (g) {
+ return this === g ? !0 : g instanceof Qb ? this.name == g.name && this.mtSerialNumber == g.mtSerialNumber && this.uitSerialNumber == g.uitSerialNumber : !1;
+ },
+ uniqueKey: function () {
+ return this.name + ":" + this.mtSerialNumber + ":" + this.uitSerialNumber;
+ }
+ });
+ Hb = function (g, n, q, t, v, J, z, E, sa) {
+ new Qb(g, n, q, t, v, J, z, E, null, sa);
+ };
+ Nc = function (v, D, I, x, F, J) {
+ q(J, function () {
+ var y,
+ z,
+ ua,
+ R,
+ ta,
+ Q,
+ W,
+ Aa,
+ U,
+ Ea,
+ Ca,
+ N,
+ qa;
+ !F || F instanceof ic || (F = n(D, F));
+ y = D.tokendata;
+ z = D.signature;
+ if ("string" !== typeof y || "string" !== typeof z)
+ throw new ga(g.JSON_PARSE_ERROR, "servicetoken " + JSON.stringify(D)).setEntity(I).setEntity(x);
+ try {
+ ua = xa(y);
+ } catch (la) {
+ throw new E(g.SERVICETOKEN_TOKENDATA_INVALID, "servicetoken " + JSON.stringify(D), la).setEntity(I).setEntity(x);
+ }
+ if (!ua || 0 == ua.length)
+ throw new ga(g.SERVICETOKEN_TOKENDATA_MISSING, "servicetoken " + JSON.stringify(D)).setEntity(I).setEntity(x);
+ try {
+ R = xa(z);
+ } catch (la) {
+ throw new E(g.SERVICETOKEN_SIGNATURE_INVALID, "servicetoken " + JSON.stringify(D), la).setEntity(I).setEntity(x);
+ }
+ Ca = Ja(ua, Ma);
+ try {
+ N = JSON.parse(Ca);
+ ta = N.name;
+ Q = N.mtserialnumber ? parseInt(N.mtserialnumber) : -1;
+ W = N.uitserialnumber ? parseInt(N.uitserialnumber) : -1;
+ Aa = N.encrypted;
+ U = N.compressionalgo;
+ Ea = N.servicedata;
+ } catch (la) {
+ if (la instanceof SyntaxError)
+ throw new ga(g.JSON_PARSE_ERROR, "servicetokendata " + Ca, la).setEntity(I).setEntity(x);
+ throw la;
+ }
+ if (!ta || "number" !== typeof Q || Q != Q || "number" !== typeof W || W != W || "boolean" !== typeof Aa || U && "string" !== typeof U || "string" !== typeof Ea)
+ throw new ga(g.JSON_PARSE_ERROR, "servicetokendata " + Ca).setEntity(I).setEntity(x);
+ if (N.mtserialnumber && 0 > Q || Q > Na)
+ throw new E(g.SERVICETOKEN_MASTERTOKEN_SERIAL_NUMBER_OUT_OF_RANGE, "servicetokendata " + Ca).setEntity(I).setEntity(x);
+ if (N.uitserialnumber && 0 > W || W > Na)
+ throw new E(g.SERVICETOKEN_USERIDTOKEN_SERIAL_NUMBER_OUT_OF_RANGE, "servicetokendata " + Ca).setEntity(I).setEntity(x);
+ if (-1 != Q && (!I || Q != I.serialNumber))
+ throw new E(g.SERVICETOKEN_MASTERTOKEN_MISMATCH, "st mtserialnumber " + Q + "; mt " + I).setEntity(I).setEntity(x);
+ if (-1 != W && (!x || W != x.serialNumber))
+ throw new E(g.SERVICETOKEN_USERIDTOKEN_MISMATCH, "st uitserialnumber " + W + "; uit " + x).setEntity(I).setEntity(x);
+ Aa = !0 === Aa;
+ if (U) {
+ if (!Ub[U])
+ throw new E(g.UNIDENTIFIED_COMPRESSION, U);
+ qa = U;
+ } else
+ qa = null;
+ F ? F.verify(ua, R, {
+ result: function (n) {
+ q(J, function () {
+ var y,
+ D;
+ if (n) {
+ try {
+ y = xa(Ea);
+ } catch (md) {
+ throw new E(g.SERVICETOKEN_SERVICEDATA_INVALID, "servicetokendata " + Ca, md).setEntity(I).setEntity(x);
+ }
+ if (!y || 0 != Ea.length && 0 == y.length)
+ throw new E(g.SERVICETOKEN_SERVICEDATA_INVALID, "servicetokendata " + Ca).setEntity(I).setEntity(x);
+ if (Aa && 0 < y.length)
+ F.decrypt(y, {
+ result: function (g) {
+ q(J, function () {
+ var q,
+ y;
+ q = qa ? Oc(qa, g) : g;
+ y = new t(ua, R, n);
+ new Qb(v, ta, q, -1 != Q ? I : null, -1 != W ? x : null, Aa, qa, F, y, J);
+ });
+ },
+ error: function (g) {
+ q(J, function () {
+ g instanceof E && (g.setEntity(I), g.setUser(x));
+ throw g;
+ });
+ }
+ });
+ else {
+ y = qa ? Oc(qa, y) : y;
+ D = new t(ua, R, n);
+ new Qb(v, ta, y, -1 != Q ? I : null, -1 != W ? x : null, Aa, qa, F, D, J);
+ }
+ } else (y = "" == Ea ? new Uint8Array(0) : null, D = new t(ua, R, n), new Qb(v, ta, y, -1 != Q ? I : null, -1 != W ? x : null, Aa, qa, F, D, J));
+ });
+ },
+ error: function (g) {
+ q(J, function () {
+ g instanceof E && (g.setEntity(I), g.setUser(x));
+ throw g;
+ });
+ }
+ }) : (y = "" == Ea ? new Uint8Array(0) : null, z = new t(ua, R, !1), new Qb(v, ta, y, -1 != Q ? I : null, -1 != W ? x : null, Aa, qa, F, z, J));
+ });
+ };
+ })();
+ db = {
+ EMAIL_PASSWORD: "EMAIL_PASSWORD",
+ NETFLIXID: "NETFLIXID",
+ SSO: "SSO",
+ SWITCH_PROFILE: "SWITCH_PROFILE",
+ MDX: "MDX"
+ };
+ Object.freeze(db);
+ (function () {
+ Mb = oa.Class.create({
+ init: function (g) {
+ Object.defineProperties(this, {
+ scheme: {
+ value: g,
+ writable: !1,
+ configurable: !1
+ }
+ });
+ },
+ getAuthData: function () {},
+ equals: function (g) {
+ return this === g ? !0 : g instanceof Mb ? this.scheme == g.scheme : !1;
+ },
+ toJSON: function () {
+ var g;
+ g = {};
+ g.scheme = this.scheme;
+ g.authdata = this.getAuthData();
+ return g;
+ }
+ });
+ ie = function (n, t, y, D) {
+ q(D, function () {
+ var q,
+ v,
+ F;
+ q = y.scheme;
+ v = y.authdata;
+ if (!q || !v)
+ throw new ga(g.JSON_PARSE_ERROR, "userauthdata " + JSON.stringify(y));
+ if (!db[q])
+ throw new Da(g.UNIDENTIFIED_USERAUTH_SCHEME, q);
+ F = n.getUserAuthenticationFactory(q);
+ if (!F)
+ throw new Da(g.USERAUTH_FACTORY_NOT_FOUND, q);
+ F.createData(n, t, v, D);
+ });
+ };
+ })();
+ uc = oa.Class.create({
+ init: function (g) {
+ Object.defineProperties(this, {
+ scheme: {
+ value: g,
+ writable: !1,
+ configurable: !1
+ }
+ });
+ },
+ createData: function (g, n, q, t) {},
+ authenticate: function (g, n, q, t) {}
+ });
+ (function () {
+ bc = Mb.extend({
+ init: function v(g, n) {
+ v.base.call(this, db.NETFLIXID);
+ Object.defineProperties(this, {
+ netflixId: {
+ value: g,
+ writable: !1,
+ configurable: !1
+ },
+ secureNetflixId: {
+ value: n,
+ writable: !1,
+ configurable: !1
+ }
+ });
+ },
+ getAuthData: function () {
+ var g;
+ g = {};
+ g.netflixid = this.netflixId;
+ this.secureNetflixId && (g.securenetflixid = this.secureNetflixId);
+ return g;
+ },
+ equals: function y(g) {
+ return this === g ? !0 : g instanceof bc ? y.base.call(this, g) && this.netflixId == g.netflixId && this.secureNetflixId == g.secureNetflixId : !1;
+ }
+ });
+ ue = function (n) {
+ var q,
+ t;
+ q = n.netflixid;
+ t = n.securenetflixid;
+ if (!q)
+ throw new ga(g.JSON_PARSE_ERROR, "NetflixId authdata " + JSON.stringify(n));
+ return new bc(q, t);
+ };
+ })();
+ Ye = uc.extend({
+ init: function v() {
+ v.base.call(this, db.NETFLIXID);
+ },
+ createData: function (g, n, t, I) {
+ q(I, function () {
+ return ue(t);
+ });
+ },
+ authenticate: function (n, q, t, I) {
+ if (!(t instanceof bc))
+ throw new ea("Incorrect authentication data type " + t + ".");
+ n = t.secureNetflixId;
+ if (!t.netflixId || !n)
+ throw new Da(g.NETFLIXID_COOKIES_BLANK).setUser(t);
+ throw new Da(g.UNSUPPORTED_USERAUTH_DATA, this.scheme).setUser(t);
+ }
+ });
+ (function () {
+ vc = Mb.extend({
+ init: function y(g, n) {
+ y.base.call(this, db.EMAIL_PASSWORD);
+ Object.defineProperties(this, {
+ email: {
+ value: g,
+ writable: !1,
+ configurable: !1
+ },
+ password: {
+ value: n,
+ writable: !1,
+ configurable: !1
+ }
+ });
+ },
+ getAuthData: function () {
+ var g;
+ g = {};
+ g.email = this.email;
+ g.password = this.password;
+ return g;
+ },
+ equals: function D(g) {
+ return this === g ? !0 : g instanceof vc ? D.base.call(this, this, g) && this.email == g.email && this.password == g.password : !1;
+ }
+ });
+ ve = function (n) {
+ var q,
+ t;
+ q = n.email;
+ t = n.password;
+ if (!q || !t)
+ throw new ga(g.JSON_PARSE_ERROR, "email/password authdata " + JSON.stringify(n));
+ return new vc(q, t);
+ };
+ })();
+ Ze = uc.extend({
+ init: function y() {
+ y.base.call(this, db.EMAIL_PASSWORD);
+ },
+ createData: function (g, n, t, x) {
+ q(x, function () {
+ return ve(t);
+ });
+ },
+ authenticate: function (n, q, t, x) {
+ if (!(t instanceof vc))
+ throw new ea("Incorrect authentication data type " + t + ".");
+ n = t.password;
+ if (!t.email || !n)
+ throw new Da(g.EMAILPASSWORD_BLANK).setUser(t);
+ throw new Da(g.UNSUPPORTED_USERAUTH_DATA, this.scheme).setUser(t);
+ }
+ });
+ (function () {
+ var x,
+ F,
+ z,
+ ka,
+ va,
+ sa,
+ R,
+ ta;
+ function n(g, n) {
+ return "<" + g + ">" + n + "" + g + ">";
+ }
+ function t(g) {
+ return g.replace(/[<>&"']/g, function (g) {
+ return va[g];
+ });
+ }
+ function I(g) {
+ return encodeURIComponent(g).replace("%20", "+").replace(/[!'()]/g, escape).replace(/\*/g, "%2A");
+ }
+ x = Rc = {
+ MSL: "MSL",
+ NTBA: "NTBA",
+ MSL_LEGACY: "MSL_LEGACY"
+ };
+ F = oa.Class.create({
+ getAction: function () {},
+ getNonce: function () {},
+ getPin: function () {},
+ getSignature: function () {},
+ getEncoding: function () {},
+ equals: function () {}
+ });
+ z = vd = F.extend({
+ init: function (n, t, x, y, F, D, I) {
+ var Q;
+ function z(y) {
+ q(I, function () {
+ var q,
+ D;
+ try {
+ D = {};
+ D.useridtoken = n;
+ D.action = t;
+ D.nonce = x;
+ D.pin = ra(y);
+ q = Oa(JSON.stringify(D), Ma);
+ } catch (Pb) {
+ throw new ga(g.JSON_ENCODE_ERROR, "MSL-based MDX authdata", Pb);
+ }
+ F.sign(q, {
+ result: function (g) {
+ R(q, g);
+ },
+ error: I.error
+ });
+ }, Q);
+ }
+ function R(g, F) {
+ q(I, function () {
+ Object.defineProperties(this, {
+ _userIdToken: {
+ value: n,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ _action: {
+ value: t,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ _nonce: {
+ value: x,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ _pin: {
+ value: y,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ _encoding: {
+ value: g,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ _signature: {
+ value: F,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ }
+ });
+ return this;
+ }, Q);
+ }
+ Q = this;
+ q(I, function () {
+ D ? R(D.encoding, D.signature) : F.encrypt(Oa(y, Ma), {
+ result: function (g) {
+ z(g);
+ },
+ error: I.error
+ });
+ }, Q);
+ },
+ getUserIdToken: function () {
+ return this._userIdToken;
+ },
+ getAction: function () {
+ return this._action;
+ },
+ getNonce: function () {
+ return this._nonce;
+ },
+ getPin: function () {
+ return this._pin;
+ },
+ getSignature: function () {
+ return this._signature;
+ },
+ getEncoding: function () {
+ return this._encoding;
+ },
+ equals: function (g) {
+ return this === g ? !0 : g instanceof z ? this._action == g._action && this._nonce == g._nonce && this._pin == g._pin && this._userIdToken.equals(g._userIdToken) : !1;
+ }
+ });
+ vd.ACTION = "userauth";
+ ka = function (n, t, x, y, F) {
+ function D(y) {
+ q(F, function () {
+ var D,
+ z,
+ R,
+ Q,
+ U,
+ W;
+ D = Ja(x, Ma);
+ try {
+ W = JSON.parse(D);
+ z = W.useridtoken;
+ R = W.action;
+ Q = W.nonce;
+ U = W.pin;
+ } catch (d) {
+ if (d instanceof SyntaxError)
+ throw new ga(g.JSON_PARSE_ERROR, "MDX authdata " + D, d);
+ throw d;
+ }
+ if (!(z && "object" === typeof z && R && "string" === typeof R && Q && "number" === typeof Q && U) || "string" !== typeof U)
+ throw new ga(g.JSON_PARSE_ERROR, "MDX authdata " + D);
+ Zb(n, z, t, {
+ result: function (d) {
+ q(F, function () {
+ if (!d.isDecrypted())
+ throw new Da(g.USERAUTH_USERIDTOKEN_NOT_DECRYPTED, "MDX authdata " + D);
+ I(y, d, R, Q, U);
+ });
+ },
+ error: function (d) {
+ q(F, function () {
+ if (d instanceof E)
+ throw new Da(g.USERAUTH_USERIDTOKEN_INVALID, "MDX authdata " + D, d);
+ throw d;
+ });
+ }
+ });
+ });
+ }
+ function I(g, n, t, D, I) {
+ q(F, function () {
+ var R;
+ R = xa(I);
+ g.decrypt(R, {
+ result: function (g) {
+ q(F, function () {
+ var d;
+ d = Ja(g, Ma);
+ new z(n, t, D, d, null, {
+ encoding: x,
+ signature: y
+ }, F);
+ });
+ },
+ error: F.error
+ });
+ });
+ }
+ q(F, function () {
+ var I,
+ z;
+ try {
+ z = n.getMslStore().getCryptoContext(t);
+ I = z ? z : new kb(n, t);
+ } catch (Ab) {
+ if (Ab instanceof Wb)
+ throw new Da(g.USERAUTH_MASTERTOKEN_NOT_DECRYPTED, "MDX authdata " + ra(x));
+ throw Ab;
+ }
+ I.verify(x, y, {
+ result: function (n) {
+ q(F, function () {
+ if (!n)
+ throw new N(g.MDX_USERAUTH_VERIFICATION_FAILED, "MDX authdata " + ra(x));
+ D(I);
+ });
+ },
+ error: F.error
+ });
+ });
+ };
+ va = {
+ "<": "<",
+ ">": ">",
+ "&": "&",
+ '"': """,
+ "'": "'"
+ };
+ sa = wc = F.extend({
+ init: function (g, q, x, y) {
+ var F,
+ D;
+ F = n("action", t(g));
+ D = n("nonce", q.toString());
+ x = n("pin", x);
+ F = n("registerdata", F + D + x);
+ F = Oa(F, "utf-8");
+ Object.defineProperties(this, {
+ _action: {
+ value: g,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ _nonce: {
+ value: q,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ _pin: {
+ value: null,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ _encoding: {
+ value: F,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ _signature: {
+ value: y,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ }
+ });
+ },
+ getAction: function () {
+ return this._action;
+ },
+ getNonce: function () {
+ return this._nonce;
+ },
+ getPin: function () {
+ return this._pin;
+ },
+ getSignature: function () {
+ return this._signature;
+ },
+ getEncoding: function () {
+ return this._encoding;
+ },
+ equals: function (g) {
+ return this === g ? !0 : g instanceof sa ? this._action == g._action && this._nonce == g._nonce && this._pin == g._pin : !1;
+ }
+ });
+ wc.ACTION = "regpairrequest";
+ R = wd = F.extend({
+ init: function (g, x, y, F, D, z) {
+ var E;
+ function R(y) {
+ q(z, function () {
+ var q,
+ D,
+ R,
+ E,
+ d;
+ q = ra(y);
+ D = n("action", t(g));
+ R = n("nonce", x.toString());
+ E = n("pin", q);
+ D = n("registerdata", D + R + E);
+ d = Oa(D, "utf-8");
+ q = "action=" + I(g) + "&nonce=" + I(x.toString()) + "&pin=" + I(q);
+ F.sign(Oa(q, "utf-8"), {
+ result: function (b) {
+ Q(d, b);
+ },
+ error: z.error
+ });
+ }, E);
+ }
+ function Q(n, t) {
+ q(z, function () {
+ Object.defineProperties(this, {
+ _action: {
+ value: g,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ _nonce: {
+ value: x,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ _pin: {
+ value: y,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ _encoding: {
+ value: n,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ _signature: {
+ value: t,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ }
+ });
+ return this;
+ }, E);
+ }
+ E = this;
+ q(z, function () {
+ D ? Q(D.encoding, D.signature) : F.encrypt(Oa(y, "utf-8"), {
+ result: function (g) {
+ R(g);
+ },
+ error: z.error
+ });
+ }, E);
+ },
+ getAction: function () {
+ return this._action;
+ },
+ getNonce: function () {
+ return this._nonce;
+ },
+ getPin: function () {
+ return this._pin;
+ },
+ getSignature: function () {
+ return this._signature;
+ },
+ getEncoding: function () {
+ return this._encoding;
+ },
+ equals: function (g) {
+ return this === g ? !0 : g instanceof R ? this._action == g._action && this._nonce == g._nonce && this._pin == g._pin : !1;
+ }
+ });
+ wd.ACTION = wc.ACTION;
+ ta = function (n, t, x, y, F) {
+ q(F, function () {
+ var D,
+ z,
+ E,
+ Q,
+ U,
+ W,
+ ka;
+ D = n.getMslStore().getCryptoContext(t);
+ z = D ? D : new kb(n, t);
+ D = Ja(x, "utf-8");
+ E = new DOMParser().parseFromString(D, "application/xml");
+ D = E.getElementsByTagName("action");
+ Q = E.getElementsByTagName("nonce");
+ E = E.getElementsByTagName("pin");
+ U = D && 1 == D.length && D[0].firstChild ? D[0].firstChild.nodeValue : null;
+ W = Q && 1 == Q.length && Q[0].firstChild ? parseInt(Q[0].firstChild.nodeValue) : null;
+ ka = E && 1 == E.length && E[0].firstChild ? E[0].firstChild.nodeValue : null;
+ if (!U || !W || !ka)
+ throw new ga(g.XML_PARSE_ERROR, "MDX authdata " + ra(x));
+ D = "action=" + I(U) + "&nonce=" + I(W.toString()) + "&pin=" + I(ka);
+ z.verify(Oa(D, "utf-8"), y, {
+ result: function (n) {
+ q(F, function () {
+ var t;
+ if (!n)
+ throw new N(g.MDX_USERAUTH_VERIFICATION_FAILED, "MDX authdata " + ra(x));
+ t = xa(ka);
+ z.decrypt(t, {
+ result: function (d) {
+ q(F, function () {
+ var b;
+ b = Ja(d, "utf-8");
+ new R(U, W, b, null, {
+ encoding: x,
+ signature: y
+ }, F);
+ });
+ },
+ error: F.error
+ });
+ });
+ },
+ error: F.error
+ });
+ });
+ };
+ lc = Mb.extend({
+ init: function W(g, n, q, t, y, F) {
+ var D,
+ I,
+ R,
+ E,
+ U,
+ ka;
+ W.base.call(this, db.MDX);
+ D = null;
+ I = null;
+ R = null;
+ if ("string" === typeof q)
+ (g = x.MSL_LEGACY, R = q);
+ else if (q instanceof Uint8Array)
+ (g = x.NTBA, I = q);
+ else if (q instanceof jb)
+ (g = x.MSL, D = q);
+ else
+ throw new TypeError("Controller token " + q + " is not a master token, encrypted CTicket, or MSL token construct.");
+ E = q = null;
+ U = null;
+ if (F) {
+ ka = F.controllerAuthData;
+ q = ka.getAction();
+ E = ka.getPin();
+ F = F.userIdToken;
+ ka instanceof z ? U = ka.getUserIdToken().customer : F && (U = F.customer);
+ }
+ Object.defineProperties(this, {
+ mechanism: {
+ value: g,
+ writable: !1,
+ configurable: !1
+ },
+ action: {
+ value: q,
+ writable: !1,
+ configurable: !1
+ },
+ targetPin: {
+ value: n,
+ writable: !1,
+ configurable: !1
+ },
+ controllerPin: {
+ value: E,
+ writable: !1,
+ configurable: !1
+ },
+ customer: {
+ value: U,
+ writable: !1,
+ configurable: !1
+ },
+ _masterToken: {
+ value: D,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ _encryptedCTicket: {
+ value: I,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ _mslTokens: {
+ value: R,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ _controllerEncoding: {
+ value: t,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ _signature: {
+ value: y,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ }
+ });
+ },
+ getAuthData: function () {
+ var g,
+ n;
+ g = {};
+ switch (this.mechanism) {
+ case x.MSL:
+ n = JSON.parse(JSON.stringify(this._masterToken));
+ g.mastertoken = n;
+ break;
+ case x.NTBA:
+ n = Ja(this._encryptedCTicket, "utf-8");
+ g.cticket = n;
+ break;
+ case x.MSL_LEGACY:
+ g.cticket = this._mslTokens;
+ break;
+ default:
+ throw new ea("Unsupported MDX mechanism.");
+ }
+ g.pin = this.targetPin;
+ g.mdxauthdata = ra(this._controllerEncoding);
+ g.signature = ra(this._signature);
+ return g;
+ },
+ equals: function Aa(g) {
+ return this === g ? !0 : g instanceof lc ? Aa.base.call(this, g) && (this._masterToken == g._masterToken || this._masterToken && this._masterToken.equals(g._masterToken)) && (this._encryptedCTicket == g._encryptedCTicket || this._encryptedCTicket && Ta(this._encryptedCTicket, g._encryptedCTicket)) && this._mslTokens == g._mslTokens && Ta(this._controllerEncoding, g._controllerEncoding) && Ta(this._signature, g._signature) : !1;
+ }
+ });
+ we = function (n, t, x) {
+ function y(y, F, D, I) {
+ Yb(n, F, {
+ result: function (F) {
+ q(x, function () {
+ if (!F.isDecrypted())
+ throw new Da(g.USERAUTH_MASTERTOKEN_NOT_DECRYPTED, "MDX authdata " + t.toString());
+ ka(n, F, D, I, {
+ result: function (g) {
+ q(x, function () {
+ var d,
+ b;
+ d = g.getEncoding();
+ b = g.getSignature();
+ return new lc(n, y, F, d, b, {
+ controllerAuthData: g,
+ userIdToken: null
+ });
+ });
+ },
+ error: x.error
+ });
+ });
+ },
+ error: function (n) {
+ q(x, function () {
+ if (n instanceof E)
+ throw new Da(g.USERAUTH_MASTERTOKEN_INVALID, "MDX authdata " + JSON.stringify(t), n);
+ throw n;
+ });
+ }
+ });
+ }
+ function F(n, t, y, F) {
+ q(x, function () {
+ throw new Da(g.UNSUPPORTED_USERAUTH_MECHANISM, "NtbaControllerData$parse");
+ });
+ }
+ function D(y, F, D, I) {
+ function z(d, b) {
+ q(b, function () {
+ var a,
+ c;
+ try {
+ a = xa(d);
+ } catch (k) {
+ throw new Da(g.USERAUTH_MASTERTOKEN_INVALID, "MDX authdata " + JSON.stringify(t), k);
+ }
+ if (!a || 0 == a.length)
+ throw new Da(g.USERAUTH_MASTERTOKEN_MISSING, "MDX authdata " + JSON.stringify(t));
+ try {
+ c = JSON.parse(Ja(a, "utf-8"));
+ Yb(n, c, {
+ result: function (a) {
+ q(b, function () {
+ if (!a.isDecrypted())
+ throw new Da(g.USERAUTH_MASTERTOKEN_NOT_DECRYPTED, "MDX authdata " + t.toString());
+ return a;
+ });
+ },
+ error: function (a) {
+ q(b, function () {
+ if (a instanceof E)
+ throw new Da(g.USERAUTH_MASTERTOKEN_INVALID, "MDX authdata " + JSON.stringify(t), a);
+ throw a;
+ });
+ }
+ });
+ } catch (k) {
+ if (k instanceof SyntaxError)
+ throw new ga(g.JSON_PARSE_ERROR, "MDX authdata " + JSON.stringify(t), k);
+ throw k;
+ }
+ });
+ }
+ function R(d, b, a) {
+ q(a, function () {
+ var c,
+ k;
+ try {
+ c = xa(d);
+ } catch (l) {
+ throw new Da(g.USERAUTH_USERIDTOKEN_INVALID, "MDX authdata " + JSON.stringify(t), l);
+ }
+ if (!c || 0 == c.length)
+ throw new Da(g.USERAUTH_USERIDTOKEN_MISSING, "MDX authdata " + JSON.stringify(t));
+ try {
+ k = JSON.parse(Ja(c, "utf-8"));
+ Zb(n, k, b, {
+ result: function (b) {
+ q(a, function () {
+ if (!b.isDecrypted())
+ throw new Da(g.USERAUTH_USERIDTOKEN_NOT_DECRYPTED, "MDX authdata " + JSON.stringify(t));
+ return b;
+ });
+ },
+ error: function (b) {
+ q(a, function () {
+ if (b instanceof E)
+ throw new Da(g.USERAUTH_USERIDTOKEN_INVALID, "MDX authdata " + JSON.stringify(t), b);
+ throw b;
+ });
+ }
+ });
+ } catch (l) {
+ if (l instanceof SyntaxError)
+ throw new ga(g.JSON_PARSE_ERROR, "MDX authdata " + JSON.stringify(t), l);
+ throw l;
+ }
+ });
+ }
+ q(x, function () {
+ var d;
+ d = F.split(",");
+ if (3 != d.length || "1" != d[0])
+ throw new Da(g.UNIDENTIFIED_USERAUTH_MECHANISM, "MDX authdata " + JSON.stringify(t));
+ z(d[1], {
+ result: function (b) {
+ R(d[2], b, {
+ result: function (a) {
+ ta(n, b, D, I, {
+ result: function (b) {
+ q(x, function () {
+ return new lc(n, y, F, D, I, {
+ controllerAuthData: b,
+ userIdToken: a
+ });
+ });
+ },
+ error: function (a) {
+ q(x, function () {
+ if (a instanceof Wb)
+ throw new Da(g.USERAUTH_MASTERTOKEN_NOT_DECRYPTED, "MDX authdata " + JSON.stringify(t), a);
+ throw a;
+ });
+ }
+ });
+ },
+ error: x.error
+ });
+ },
+ error: x.error
+ });
+ });
+ }
+ q(x, function () {
+ var n,
+ q,
+ x,
+ I,
+ z;
+ n = t.pin;
+ q = t.mdxauthdata;
+ x = t.signature;
+ if (!n || "string" !== typeof n || !q || "string" !== typeof q || !x || "string" !== typeof x)
+ throw new ga(g.JSON_PARSE_ERROR, "MDX authdata " + JSON.stringify(t));
+ try {
+ I = xa(q);
+ z = xa(x);
+ } catch (Pb) {
+ throw new Da(g.MDX_CONTROLLERDATA_INVALID, "MDX authdata " + JSON.stringify(t), Pb);
+ }
+ if (t.mastertoken) {
+ q = t.mastertoken;
+ if (!q || "object" !== typeof q)
+ throw new ga(g.JSON_PARSE_ERROR, "MDX authdata " + JSON.stringify(t));
+ y(n, q, I, z);
+ } else if (t.cticket) {
+ q = t.cticket;
+ if (!q || "string" !== typeof q)
+ throw new ga(g.JSON_PARSE_ERROR, "MDX authdata " + JSON.stringify(t));
+ -1 == q.indexOf(",") ? F(n, q, I, z) : D(n, q, I, z);
+ } else
+ throw new Da(g.UNIDENTIFIED_USERAUTH_MECHANISM, "MDX authdata " + JSON.stringify(t));
+ });
+ };
+ })();
+ (function () {
+ var n,
+ q,
+ t;
+ n = vd.ACTION;
+ q = wc.ACTION;
+ t = wd.ACTION;
+ xe = uc.extend({
+ init: function F() {
+ F.base.call(this, db.MDX);
+ },
+ createData: function (g, n, q, t) {
+ we(g, q, t);
+ },
+ authenticate: function (y, D, I, z) {
+ if (!(I instanceof lc))
+ throw new ea("Incorrect authentication data type " + I.getClass().getName() + ".");
+ y = I.action;
+ switch (I.mechanism) {
+ case Rc.MSL:
+ if (n != y)
+ throw new Da(g.MDX_USERAUTH_ACTION_INVALID).setUser(I);
+ break;
+ case Rc.NTBA:
+ if (q != y)
+ throw new Da(g.MDX_USERAUTH_ACTION_INVALID).setUser(I);
+ break;
+ case Rc.MSL_LEGACY:
+ if (t != y)
+ throw new Da(g.MDX_USERAUTH_ACTION_INVALID).setUser(I);
+ }
+ y = I.controllerPin;
+ D = I.targetPin;
+ if (!y || !D)
+ throw new Da(g.MDX_PIN_BLANK).setUser(I);
+ if (y != D)
+ throw new Da(g.MDX_PIN_MISMATCH).setUser(I);
+ y = I.customer;
+ if (!y)
+ throw new Da(g.MDX_USER_UNKNOWN).setUser(I);
+ if (z && (z = z.customer, !y.equals(z)))
+ throw new Da(g.USERIDTOKEN_USERAUTH_DATA_MISMATCH, "uad customer " + y + "; uit customer " + z).setUser(I);
+ return y;
+ }
+ });
+ })();
+ (function () {
+ var n,
+ q,
+ t;
+ n = {
+ MICROSOFT_SAML: "MICROSOFT_SAML",
+ SAMSUNG: "SAMSUNG",
+ MICROSOFT_JWT: "MICROSOFT_JWT",
+ GOOGLE_JWT: "GOOGLE_JWT"
+ };
+ q = ze = oa.Class.create({
+ init: function (g, n) {
+ Object.defineProperties(this, {
+ email: {
+ value: g,
+ writable: !1,
+ enumerable: !0,
+ configurable: !1
+ },
+ password: {
+ value: n,
+ writable: !1,
+ enumerable: !0,
+ configurable: !1
+ }
+ });
+ }
+ });
+ t = Ae = oa.Class.create({
+ init: function (g, n) {
+ Object.defineProperties(this, {
+ netflixId: {
+ value: g,
+ writable: !1,
+ enumerable: !0,
+ configurable: !1
+ },
+ secureNetflixId: {
+ value: n,
+ writable: !1,
+ enumerable: !0,
+ configurable: !1
+ }
+ });
+ }
+ });
+ xc = Mb.extend({
+ init: function F(g, n, y, D) {
+ var I,
+ z,
+ E,
+ W;
+ F.base.call(this, db.SSO);
+ I = null;
+ z = null;
+ E = null;
+ W = null;
+ y instanceof q ? (I = y.email, z = y.password) : y instanceof t && (E = y.netflixId, W = y.secureNetflixId);
+ Object.defineProperties(this, {
+ mechanism: {
+ value: g,
+ writable: !1,
+ configurable: !1
+ },
+ token: {
+ value: n,
+ writable: !1,
+ configurable: !1
+ },
+ email: {
+ value: I,
+ writable: !1,
+ configurable: !1
+ },
+ password: {
+ value: z,
+ writable: !1,
+ configurable: !1
+ },
+ netflixId: {
+ value: E,
+ writable: !1,
+ configurable: !1
+ },
+ secureNetflixId: {
+ value: W,
+ writable: !1,
+ configurable: !1
+ },
+ profileGuid: {
+ value: "undefined" === typeof D ? null : D,
+ writable: !1,
+ configurable: !1
+ }
+ });
+ },
+ getAuthData: function () {
+ var g;
+ g = {};
+ g.mechanism = this.mechanism;
+ g.token = ra(this.token);
+ this.email && this.password ? (g.email = this.email, g.password = this.password) : this.netflixId && this.secureNetflixId && (g.netflixid = this.netflixId, g.securenetflixid = this.secureNetflixId);
+ this.profileGuid && (g.profileguid = this.profileGuid);
+ return g;
+ },
+ equals: function ua(g) {
+ return this === g ? !0 : g instanceof xc ? ua.base.call(this, g) && this.mechanism == g.mechanism && Ta(this.token, g.token) && this.email == g.email && this.password == g.password && this.netflixId == g.netflixId && this.secureNetflixId == g.secureNetflixId && this.profileGuid == g.profileGuid : !1;
+ }
+ });
+ ye = function (y) {
+ var D,
+ I,
+ z,
+ R,
+ E,
+ Q,
+ W,
+ ua,
+ U;
+ D = y.mechanism;
+ I = y.token;
+ if (!D || !I || "string" !== typeof I)
+ throw new ga(g.JSON_PARSE_ERROR, "SSO authdata " + JSON.stringify(y));
+ if (!n[D])
+ throw new Da(g.UNIDENTIFIED_USERAUTH_MECHANISM, "SSO authdata " + JSON.stringify(y));
+ z = y.email;
+ R = y.password;
+ E = y.netflixid;
+ Q = y.securenetflixid;
+ W = y.profileguid;
+ if (z && !R || !z && R || E && !Q || !E && Q || z && E)
+ throw new ga(g.JSON_PARSE_ERROR, "SSO authdata " + JSON.stringify(y));
+ try {
+ ua = xa(I);
+ } catch (Ea) {
+ throw new Da(g.SSOTOKEN_INVALID, "SSO authdata " + JSON.stringify(y), Ea);
+ }
+ z && R ? U = new q(z, R) : E && Q && (U = new t(E, Q));
+ return new xc(D, ua, U, W);
+ };
+ })();
+ $e = uc.extend({
+ init: function D() {
+ D.base.call(this, db.SSO);
+ },
+ createData: function (g, n, t, F) {
+ q(F, function () {
+ return ye(t);
+ });
+ },
+ authenticate: function (n, q, t, F) {
+ var x,
+ D;
+ if (!(t instanceof xc))
+ throw new ea("Incorrect authentication data type " + t + ".");
+ n = t.token;
+ q = t.email;
+ F = t.password;
+ x = t.netflixId;
+ D = t.secureNetflixId;
+ if (!n || 0 == n.length)
+ throw new Da(g.SSOTOKEN_BLANK);
+ if (!(null === q && null === F || q && F))
+ throw new Da(g.EMAILPASSWORD_BLANK);
+ if (!(null === x && null === D || x && D))
+ throw new Da(g.NETFLIXID_COOKIES_BLANK).setUser(t);
+ throw new Da(g.UNSUPPORTED_USERAUTH_DATA, this.scheme).setUser(t);
+ }
+ });
+ (function () {
+ yc = Mb.extend({
+ init: function I(g, n) {
+ I.base.call(this, db.SWITCH_PROFILE);
+ Object.defineProperties(this, {
+ userIdToken: {
+ value: g,
+ writable: !1,
+ configurable: !1
+ },
+ profileGuid: {
+ value: n,
+ writable: !1,
+ configurable: !1
+ }
+ });
+ },
+ getAuthData: function () {
+ var g;
+ g = {};
+ g.useridtoken = JSON.parse(JSON.stringify(this.userIdToken));
+ g.profileguid = this.profileGuid;
+ return g;
+ },
+ equals: function x(g) {
+ return this == g ? !0 : g instanceof yc ? x.base.call(this, g) && this.userIdToken.equals(g.userIdToken) && this.profileGuid == g.profileGuid : !1;
+ }
+ });
+ Be = function (n, t, z, E) {
+ q(E, function () {
+ var x,
+ F;
+ if (!t)
+ throw new Da(g.USERAUTH_MASTERTOKEN_MISSING);
+ x = z.useridtoken;
+ F = z.profileguid;
+ if ("object" !== typeof x || "string" !== typeof F)
+ throw new ga(g.JSON_PARSE_ERROR, "switch profile authdata " + JSON.stringify(z));
+ Zb(n, x, t, {
+ result: function (n) {
+ q(E, function () {
+ if (!n.isDecrypted())
+ throw new Da(g.USERAUTH_USERIDTOKEN_NOT_DECRYPTED, "switch profile authdata " + JSON.stringify(z));
+ return new yc(n, F);
+ });
+ },
+ error: function (n) {
+ E.error(new Da(g.USERAUTH_USERIDTOKEN_INVALID, "switch profile authdata " + JSON.stringify(z), n));
+ }
+ });
+ });
+ };
+ })();
+ af = uc.extend({
+ init: function I(g) {
+ I.base.call(this, db.SWITCH_PROFILE);
+ Object.defineProperties(this, {
+ _store: {
+ value: g,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ }
+ });
+ },
+ createData: function (g, n, q, t) {
+ Be(g, n, q, t);
+ },
+ authenticate: function (n, q, t, z) {
+ if (!(t instanceof yc))
+ throw new ea("Incorrect authentication data type " + t + ".");
+ q = t.userIdToken;
+ n = t.profileGuid;
+ if (!n)
+ throw new Da(NetflixMslError.PROFILEGUID_BLANK).setUserAuthenticationData(t);
+ q = q.user;
+ if (!q)
+ throw new Da(g.USERAUTH_USERIDTOKEN_NOT_DECRYPTED).setUserAuthenticationData(t);
+ n = this._store.switchUsers(q, n);
+ if (!n)
+ throw new Da(NetflixMslError.PROFILE_SWITCH_DISALLOWED).setUserAuthenticationData(t);
+ if (z && (z = z.user, !n.equals(z)))
+ throw new Da(g.USERIDTOKEN_USERAUTH_DATA_MISMATCH, "uad user " + n + "; uit user " + z).setUserAuthenticationData(t);
+ return n;
+ }
+ });
+ Object.freeze({
+ ENTITY_REAUTH: n.ENTITY_REAUTH,
+ ENTITYDATA_REAUTH: n.ENTITYDATA_REAUTH
+ });
+ bf = oa.Class.create({
+ getTime: function () {},
+ getRandom: function () {},
+ isPeerToPeer: function () {},
+ getMessageCapabilities: function () {},
+ getEntityAuthenticationData: function (g, n) {},
+ getMslCryptoContext: function () {},
+ getEntityAuthenticationFactory: function (g) {},
+ getUserAuthenticationFactory: function (g) {},
+ getTokenFactory: function () {},
+ getKeyExchangeFactory: function (g) {},
+ getKeyExchangeFactories: function () {},
+ getMslStore: function () {}
+ });
+ Ce = oa.Class.create({
+ setCryptoContext: function (g, n) {},
+ getMasterToken: function () {},
+ getNonReplayableId: function (g) {},
+ getCryptoContext: function (g) {},
+ removeCryptoContext: function (g) {},
+ clearCryptoContexts: function () {},
+ addUserIdToken: function (g, n) {},
+ getUserIdToken: function (g) {},
+ removeUserIdToken: function (g) {},
+ clearUserIdTokens: function () {},
+ addServiceTokens: function (g) {},
+ getServiceTokens: function (g, n) {},
+ removeServiceTokens: function (g, n, q) {},
+ clearServiceTokens: function () {}
+ });
+ (function () {
+ var n;
+ n = Ub;
+ td = function (q, t) {
+ var x;
+ x = {};
+ switch (q) {
+ case n.LZW:
+ return Ed(t, x);
+ case n.GZIP:
+ return gzip$compress(t);
+ default:
+ throw new E(g.UNSUPPORTED_COMPRESSION, q);
+ }
+ };
+ Oc = function (q, t, z) {
+ switch (q) {
+ case n.LZW:
+ return Fd(t);
+ case n.GZIP:
+ return gzip$uncompress(t);
+ default:
+ throw new E(g.UNSUPPORTED_COMPRESSION, q.name());
+ }
+ };
+ })();
+ Ce.extend({
+ setCryptoContext: function (g, n) {},
+ getMasterToken: function () {
+ return null;
+ },
+ getNonReplayableId: function (g) {
+ return 1;
+ },
+ getCryptoContext: function (g) {
+ return null;
+ },
+ removeCryptoContext: function (g) {},
+ clearCryptoContexts: function () {},
+ addUserIdToken: function (g, n) {},
+ getUserIdToken: function (g) {
+ return null;
+ },
+ removeUserIdToken: function (g) {},
+ clearUserIdTokens: function () {},
+ addServiceTokens: function (g) {},
+ getServiceTokens: function (n, q) {
+ if (q) {
+ if (!n)
+ throw new E(g.USERIDTOKEN_MASTERTOKEN_NULL);
+ if (!q.isBoundTo(n))
+ throw new E(g.USERIDTOKEN_MASTERTOKEN_MISMATCH, "uit mtserialnumber " + q.mtSerialNumber + "; mt " + n.serialNumber);
+ }
+ return [];
+ },
+ removeServiceTokens: function (n, q, t) {
+ if (t && q && !t.isBoundTo(q))
+ throw new E(g.USERIDTOKEN_MASTERTOKEN_MISMATCH, "uit mtserialnumber " + t.masterTokenSerialNumber + "; mt " + q.serialNumber);
+ },
+ clearServiceTokens: function () {}
+ });
+ (function () {
+ De = Ce.extend({
+ init: function x() {
+ x.base.call(this);
+ Object.defineProperties(this, {
+ masterTokens: {
+ value: {},
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ cryptoContexts: {
+ value: {},
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ userIdTokens: {
+ value: {},
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ nonReplayableIds: {
+ value: {},
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ unboundServiceTokens: {
+ value: {},
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ mtServiceTokens: {
+ value: {},
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ uitServiceTokens: {
+ value: {},
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ }
+ });
+ },
+ setCryptoContext: function (g, n) {
+ var q;
+ if (n) {
+ q = g.uniqueKey();
+ this.masterTokens[q] = g;
+ this.cryptoContexts[q] = n;
+ } else
+ this.removeCryptoContext(g);
+ },
+ getMasterToken: function () {
+ var g,
+ n,
+ q;
+ g = null;
+ for (n in this.masterTokens) {
+ q = this.masterTokens[n];
+ if (!g || q.isNewerThan(g))
+ g = q;
+ }
+ return g;
+ },
+ getNonReplayableId: function (g) {
+ var n;
+ g = g.serialNumber;
+ n = this.nonReplayableIds[g] !== ca ? this.nonReplayableIds[g] : 0;
+ if (0 > n || n > Na)
+ throw new ea("Non-replayable ID " + n + " is outside the valid range.");
+ n = n == Na ? 0 : n + 1;
+ return this.nonReplayableIds[g] = n;
+ },
+ getCryptoContext: function (g) {
+ return this.cryptoContexts[g.uniqueKey()];
+ },
+ removeCryptoContext: function (g) {
+ var n,
+ q,
+ t,
+ x;
+ n = g.uniqueKey();
+ if (this.masterTokens[n]) {
+ q = g.serialNumber;
+ for (t in this.masterTokens) {
+ x = this.masterTokens[t];
+ if (!x.equals(g) && x.serialNumber == q) {
+ delete this.masterTokens[n];
+ delete this.cryptoContexts[n];
+ return;
+ }
+ }
+ Object.keys(this.userIdTokens).forEach(function (n) {
+ n = this.userIdTokens[n];
+ n.isBoundTo(g) && this.removeUserIdToken(n);
+ }, this);
+ try {
+ this.removeServiceTokens(null, g, null);
+ } catch (sa) {
+ if (sa instanceof E)
+ throw new ea("Unexpected exception while removing master token bound service tokens.", sa);
+ throw sa;
+ }
+ delete this.nonReplayableIds[q];
+ delete this.masterTokens[n];
+ delete this.cryptoContexts[n];
+ }
+ },
+ clearCryptoContexts: function () {
+ [this.masterTokens, this.cryptoContexts, this.nonReplayableIds, this.userIdTokens, this.uitServiceTokens, this.mtServiceTokens].forEach(function (g) {
+ for (var n in g) {
+ delete g[n];
+ }
+ }, this);
+ },
+ addUserIdToken: function (n, q) {
+ var t,
+ x;
+ t = !1;
+ for (x in this.masterTokens) {
+ if (q.isBoundTo(this.masterTokens[x])) {
+ t = !0;
+ break;
+ }
+ }
+ if (!t)
+ throw new E(g.USERIDTOKEN_MASTERTOKEN_NOT_FOUND, "uit mtserialnumber " + q.mtSerialNumber);
+ this.userIdTokens[n] = q;
+ },
+ getUserIdToken: function (g) {
+ return this.userIdTokens[g];
+ },
+ removeUserIdToken: function (g) {
+ var n,
+ q,
+ t;
+ n = null;
+ for (q in this.masterTokens) {
+ t = this.masterTokens[q];
+ if (g.isBoundTo(t)) {
+ n = t;
+ break;
+ }
+ }
+ Object.keys(this.userIdTokens).forEach(function (q) {
+ if (this.userIdTokens[q].equals(g)) {
+ try {
+ this.removeServiceTokens(null, n, g);
+ } catch (sa) {
+ if (sa instanceof E)
+ throw new ea("Unexpected exception while removing user ID token bound service tokens.", sa);
+ throw sa;
+ }
+ delete this.userIdTokens[q];
+ }
+ }, this);
+ },
+ clearUserIdTokens: function () {
+ for (var g in this.userIdTokens) {
+ this.removeUserIdToken(this.userIdTokens[g]);
+ }
+ },
+ addServiceTokens: function (n) {
+ n.forEach(function (n) {
+ var q,
+ t,
+ x;
+ if (n.isMasterTokenBound()) {
+ q = !1;
+ for (t in this.masterTokens) {
+ if (n.isBoundTo(this.masterTokens[t])) {
+ q = !0;
+ break;
+ }
+ }
+ if (!q)
+ throw new E(g.SERVICETOKEN_MASTERTOKEN_NOT_FOUND, "st mtserialnumber " + n.mtSerialNumber);
+ }
+ if (n.isUserIdTokenBound()) {
+ q = !1;
+ for (x in this.userIdTokens) {
+ if (n.isBoundTo(this.userIdTokens[x])) {
+ q = !0;
+ break;
+ }
+ }
+ if (!q)
+ throw new E(g.SERVICETOKEN_USERIDTOKEN_NOT_FOUND, "st uitserialnumber " + n.uitSerialNumber);
+ }
+ }, this);
+ n.forEach(function (g) {
+ var n;
+ if (g.isUnbound())
+ this.unboundServiceTokens[g.uniqueKey()] = g;
+ else {
+ if (g.isMasterTokenBound()) {
+ n = this.mtServiceTokens[g.mtSerialNumber];
+ n || (n = {});
+ n[g.uniqueKey()] = g;
+ this.mtServiceTokens[g.mtSerialNumber] = n;
+ }
+ g.isUserIdTokenBound() && ((n = this.uitServiceTokens[g.uitSerialNumber]) || (n = {}), n[g.uniqueKey()] = g, this.uitServiceTokens[g.uitSerialNumber] = n);
+ }
+ }, this);
+ },
+ getServiceTokens: function (n, q) {
+ var t,
+ x,
+ F;
+ if (q) {
+ if (!n)
+ throw new E(g.USERIDTOKEN_MASTERTOKEN_NULL);
+ if (!q.isBoundTo(n))
+ throw new E(g.USERIDTOKEN_MASTERTOKEN_MISMATCH, "uit mtserialnumber " + q.mtSerialNumber + "; mt " + n.serialNumber);
+ }
+ t = {};
+ for (x in this.unboundServiceTokens) {
+ F = this.unboundServiceTokens[x];
+ t[F.uniqueKey()] = F;
+ }
+ if (n && (x = this.mtServiceTokens[n.serialNumber]))
+ for (var z in x) {
+ F = x[z];
+ F.isUserIdTokenBound() || (t[z] = F);
+ }
+ if (q && (z = this.uitServiceTokens[q.serialNumber]))
+ for (var R in z) {
+ x = z[R];
+ x.isBoundTo(n) && (t[R] = x);
+ }
+ R = [];
+ for (var ta in t) {
+ R.push(t[ta]);
+ }
+ return R;
+ },
+ removeServiceTokens: function (n, q, t) {
+ var x,
+ F,
+ z;
+ if (t && q && !t.isBoundTo(q))
+ throw new E(g.USERIDTOKEN_MASTERTOKEN_MISMATCH, "uit mtserialnumber " + t.mtSerialNumber + "; mt " + q.serialNumber);
+ !n || q || t || Object.keys(this.unboundServiceTokens).forEach(function (g) {
+ this.unboundServiceTokens[g].name == n && delete this.unboundServiceTokens[g];
+ }, this);
+ q && !t && (x = this.mtServiceTokens[q.serialNumber]) && (z = Object.keys(x), z.forEach(function (g) {
+ var q;
+ q = x[g];
+ n && q.name != n || delete x[g];
+ }, this), this.mtServiceTokens[q.serialNumber] = x);
+ t && (F = this.uitServiceTokens[t.serialNumber]) && (q = Object.keys(F), q.forEach(function (g) {
+ var q;
+ q = F[g];
+ n && q.name != n || delete F[g];
+ }, this), this.uitServiceTokens[t.serialNumber] = F);
+ },
+ clearServiceTokens: function () {
+ [this.unboundServiceTokens, this.mtServiceTokens, this.uitServiceTokens].forEach(function (g) {
+ for (var n in g) {
+ delete g[n];
+ }
+ }, this);
+ }
+ });
+ })();
+ Le = Ve.extend({
+ init: function x() {
+ x.base.call(this);
+ Object.defineProperties(this, {
+ _contextMap: {
+ value: {},
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ }
+ });
+ },
+ addCryptoContext: function (g, n) {
+ var q;
+ if (n && g && g.length) {
+ q = ra(g);
+ this._contextMap[q] = n;
+ }
+ },
+ getCryptoContext: function (g) {
+ return g && g.length ? (g = ra(g), this._contextMap[g] || null) : null;
+ },
+ removeCryptoContext: function (g) {
+ g && g.length && (g = ra(g), delete this._contextMap[g]);
+ }
+ });
+ Ee = Oe.extend({
+ init: function F(g, n, q, t) {
+ F.base.call(this, g);
+ Object.defineProperties(this, {
+ _kde: {
+ value: n,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ _kdh: {
+ value: q,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ _kdw: {
+ value: t,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ }
+ });
+ },
+ getCryptoContext: function (n, q) {
+ if (!(q instanceof qb))
+ throw new ea("Incorrect authentication data type " + JSON.stringify(q) + ".");
+ if (q.identity != this.localIdentity)
+ throw new Bb(g.ENTITY_NOT_FOUND, "mgk " + q.identity);
+ return new Hc(n, this.localIdentity, this._kde, this._kdh, this._kdw);
+ }
+ });
+ cf = Pd.extend({
+ init: function ua(g, n, q, t) {
+ ua.base.call(this, g);
+ Object.defineProperties(this, {
+ _kpe: {
+ value: n,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ _kph: {
+ value: q,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ _kpw: {
+ value: t,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ }
+ });
+ },
+ getCryptoContext: function (n, q) {
+ if (!(q instanceof vb))
+ throw new ea("Incorrect authentication data type " + JSON.stringify(q) + ".");
+ if (q.identity != this.localIdentity)
+ throw new Bb(g.ENTITY_NOT_FOUND, "psk " + q.identity);
+ return new Hc(n, this.localIdentity, this._kpe, this._kph, this._kpw);
+ }
+ });
+ ef = De.extend({
+ init: function ka(g, n, q, t, z, E) {
+ ka.base.call(this);
+ this._log = g;
+ this._esn = n;
+ this._keyRequestData = q;
+ this._createKeyRequestData = t;
+ this._systemKeyName = z;
+ this._systemKeyWrapFormat = E;
+ },
+ setCryptoContext: function va(g, n, q) {
+ var t;
+ t = this;
+ t._log.trace("Adding MasterToken", {
+ SequenceNumber: g.sequenceNumber,
+ SerialNumber: g.serialNumber,
+ Expiration: g.expiration.getTime()
+ });
+ va.base.call(this, g, n);
+ !q && (g = t._createKeyRequestData) && (t._log.trace("Generating new keyx request data"), g().then(function (g) {
+ t._keyRequestData = g;
+ }, function (g) {
+ t._log.error("Unable to generate new keyx request data", "" + g);
+ }));
+ },
+ addUserIdToken: function sa(g, n) {
+ this._log.trace("Adding UserIdToken", {
+ UserId: g,
+ SerialNumber: n.serialNumber,
+ MTSerialNumber: n.mtSerialNumber,
+ Expiration: n.expiration.getTime()
+ });
+ sa.base.call(this, g, n);
+ },
+ addServiceTokens: function R(g) {
+ R.base.call(this, g.filter(function (g) {
+ return !df[g.name];
+ }));
+ },
+ getUserIdTokenKeys: function () {
+ var g,
+ n;
+ g = [];
+ for (n in this.userIdTokens) {
+ g.push(n);
+ }
+ return g;
+ },
+ rekeyUserIdToken: function (g, n) {
+ this.userIdTokens[g] && (this.userIdTokens[n] = this.userIdTokens[g], delete this.userIdTokens[g]);
+ },
+ getKeyRequestData: function () {
+ return this._keyRequestData;
+ },
+ getStoreState: function (g) {
+ var n;
+ n = this;
+ q(g, function () {
+ var t;
+ t = n.getMasterToken();
+ t ? n.getKeysForStore(t, {
+ result: function (z) {
+ q(g, function () {
+ var g,
+ q,
+ E;
+ g = n.userIdTokens;
+ q = Object.keys(g).map(function (q) {
+ var z;
+ z = g[q];
+ return {
+ userId: q,
+ userIdTokenJSON: g[q].toJSON(),
+ serviceTokenJSONList: n.getServiceTokens(t, z).map(ec)
+ };
+ });
+ z.esn = n._esn;
+ z.masterTokenJSON = t.toJSON();
+ z.userList = q;
+ E = n._keyRequestData.storeData;
+ E && Object.keys(E).forEach(function (g) {
+ z[g] = E[g];
+ });
+ return z;
+ });
+ },
+ timeout: g.timeout,
+ error: g.error
+ }) : g.result(null);
+ });
+ },
+ getKeysForStore: function (n, t) {
+ var z;
+ z = this;
+ q(t, function () {
+ var q;
+ q = z.getCryptoContext(n);
+ q = {
+ encryptionKey: q.encryptionKey,
+ hmacKey: q.hmacKey
+ };
+ if (q.encryptionKey && q.hmacKey) {
+ if (z._systemKeyWrapFormat)
+ z.wrapKeysWithSystemKey(q, t);
+ else
+ return q;
+ } else
+ throw new E(g.INTERNAL_EXCEPTION, "Unable to get CryptoContext keys");
+ });
+ },
+ wrapKeysWithSystemKey: function (n, t) {
+ var z;
+ z = this;
+ yb(this._systemKeyName, {
+ result: function (R) {
+ q(t, function () {
+ var q,
+ Q,
+ W,
+ N;
+ q = n.encryptionKey;
+ Q = n.hmacKey;
+ W = q[mc];
+ N = Q[mc];
+ if (W && N)
+ return {
+ wrappedEncryptionKey: W,
+ wrappedHmacKey: N
+ };
+ Promise.resolve().then(function () {
+ return Promise.all([Ka.wrapKey(z._systemKeyWrapFormat, q, R, R.algorithm), Ka.wrapKey(z._systemKeyWrapFormat, Q, R, R.algorithm)]);
+ }).then(function (g) {
+ W = ra(g[0]);
+ q[mc] = W;
+ N = ra(g[1]);
+ Q[mc] = N;
+ t.result({
+ wrappedEncryptionKey: W,
+ wrappedHmacKey: N
+ });
+ })["catch"](function (n) {
+ t.error(new E(g.INTERNAL_EXCEPTION, "Error wrapping key with SYSTEM key", n));
+ });
+ });
+ },
+ timeout: t.timeout,
+ error: t.error
+ });
+ },
+ unwrapKeysWithSystemKey: function (n, t) {
+ var z;
+ z = this;
+ yb(this._systemKeyName, {
+ result: function (R) {
+ q(t, function () {
+ var q,
+ Q;
+ q = xa(n.wrappedEncryptionKey);
+ Q = xa(n.wrappedHmacKey);
+ Promise.resolve().then(function () {
+ return Promise.all([Ka.unwrapKey(z._systemKeyWrapFormat, q, R, R.algorithm, tb, !1, Nb), Ka.unwrapKey(z._systemKeyWrapFormat, Q, R, R.algorithm, ub, !1, Xb)]);
+ }).then(function (g) {
+ var q;
+ q = g[0];
+ g = g[1];
+ q[mc] = n.wrappedEncryptionKey;
+ g[mc] = n.wrappedHmacKey;
+ t.result({
+ encryptionKey: q,
+ hmacKey: g
+ });
+ })["catch"](function (n) {
+ t.error(new E(g.INTERNAL_EXCEPTION, "Error unwrapping with SYSTEM key", n));
+ });
+ });
+ },
+ timeout: t.timeout,
+ error: t.error
+ });
+ },
+ loadStoreState: function (g, n, q, t) {
+ var R,
+ Q;
+ function z(g, t) {
+ var z;
+ try {
+ z = q.userList.slice();
+ } catch (Ab) {}
+ z ? (function Lb() {
+ var q;
+ q = z.shift();
+ q ? Zb(n, q.userIdTokenJSON, g, {
+ result: function (n) {
+ try {
+ R.addUserIdToken(q.userId, n);
+ E(g, n, q.serviceTokenJSONList, {
+ result: Lb,
+ timeout: Lb,
+ error: Lb
+ });
+ } catch (Pb) {
+ Lb();
+ }
+ },
+ timeout: Lb,
+ error: Lb
+ }) : t.result();
+ })() : t.result();
+ }
+ function E(g, q, t, z) {
+ var E,
+ Q;
+ try {
+ E = t.slice();
+ } catch (wa) {}
+ if (E) {
+ Q = R.getCryptoContext(g);
+ (function Pb() {
+ var d;
+ d = E.shift();
+ d ? Nc(n, d, g, q, Q, {
+ result: function (b) {
+ R.addServiceTokens([b]);
+ Pb();
+ },
+ timeout: function () {
+ Pb();
+ },
+ error: function () {
+ Pb();
+ }
+ }) : z.result();
+ })();
+ } else
+ z.result();
+ }
+ R = this;
+ Q = R._log;
+ q.esn != R._esn ? (Q.error("Esn mismatch, starting fresh"), t.error()) : (function (t) {
+ var W,
+ U,
+ N,
+ Ea;
+ function z() {
+ var q;
+ if (!W && U && N && Ea) {
+ W = !0;
+ q = new kb(n, U, g.esn, {
+ rawKey: N
+ }, {
+ rawKey: Ea
+ });
+ R.setCryptoContext(U, q, !0);
+ t.result(U);
+ }
+ }
+ function E(g, d) {
+ Q.error(g, d && "" + d);
+ W || (W = !0, t.error());
+ }
+ q.masterTokenJSON ? (Yb(n, q.masterTokenJSON, {
+ result: function (g) {
+ U = g;
+ z();
+ },
+ timeout: function () {
+ E("Timeout parsing MasterToken");
+ },
+ error: function (g) {
+ E("Error parsing MasterToken", g);
+ }
+ }), R._systemKeyWrapFormat ? R.unwrapKeysWithSystemKey(q, {
+ result: function (g) {
+ N = g.encryptionKey;
+ Ea = g.hmacKey;
+ z();
+ },
+ timeout: function () {
+ E("Timeout unwrapping keys");
+ },
+ error: function (g) {
+ E("Error unwrapping keys", g);
+ }
+ }) : Promise.resolve().then(function () {
+ return Ka.encrypt({
+ name: tb.name,
+ iv: new Uint8Array(16)
+ }, q.encryptionKey, new Uint8Array(1));
+ }).then(function (g) {
+ N = q.encryptionKey;
+ })["catch"](function (g) {
+ E("Error loading encryptionKey");
+ }).then(function () {
+ return Ka.sign(ub, q.hmacKey, new Uint8Array(1));
+ }).then(function (g) {
+ Ea = q.hmacKey;
+ z();
+ })["catch"](function (g) {
+ E("Error loading hmacKey");
+ })) : E("Persisted store is corrupt");
+ })({
+ result: function (g) {
+ z(g, t);
+ },
+ timeout: t.timeout,
+ error: t.error
+ });
+ }
+ });
+ df = {
+ "streaming.servicetokens.movie": !0,
+ "streaming.servicetokens.license": !0
+ };
+ mc = "$netflix$msl$wrapsys";
+ ff = bf.extend({
+ init: function (g, n, q, t, z, E) {
+ var R,
+ Q;
+ R = new sc([Ub.LZW]);
+ Q = new Qe();
+ Q.addPublicKey(n, q);
+ t[Pa.RSA] = new Pe(Q);
+ n = {};
+ n[db.EMAIL_PASSWORD] = new Ze();
+ n[db.NETFLIXID] = new Ye();
+ n[db.MDX] = new xe();
+ n[db.SSO] = new $e();
+ n[db.SWITCH_PROFILE] = new af();
+ g = {
+ _mslCryptoContext: {
+ value: new Ne(),
+ writable: !0,
+ enumerable: !1,
+ configurable: !1
+ },
+ _capabilities: {
+ value: R,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ _entityAuthData: {
+ value: z,
+ writable: !0,
+ enumerable: !1,
+ configurable: !1
+ },
+ _entityAuthFactories: {
+ value: t,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ _userAuthFactories: {
+ value: n,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ _keyExchangeFactories: {
+ value: E,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ },
+ _store: {
+ value: g,
+ writable: !1,
+ enumerable: !1,
+ configurable: !1
+ }
+ };
+ Object.defineProperties(this, g);
+ },
+ getTime: function () {
+ return Date.now();
+ },
+ getRandom: function () {
+ return new Jd();
+ },
+ isPeerToPeer: function () {
+ return !1;
+ },
+ getMessageCapabilities: function () {
+ return this._capabilities;
+ },
+ getEntityAuthenticationData: function (g, n) {
+ n.result(this._entityAuthData);
+ },
+ getMslCryptoContext: function () {
+ return this._mslCryptoContext;
+ },
+ getEntityAuthenticationFactory: function (g) {
+ return this._entityAuthFactories[g];
+ },
+ getUserAuthenticationFactory: function (g) {
+ return this._userAuthFactories[g];
+ },
+ getTokenFactory: function () {
+ return null;
+ },
+ getKeyExchangeFactory: function (g) {
+ return this._keyExchangeFactories.filter(function (n) {
+ return n.scheme == g;
+ })[0];
+ },
+ getKeyExchangeFactories: function () {
+ return this._keyExchangeFactories;
+ },
+ getMslStore: function () {
+ return this._store;
+ }
+ });
+ Ad = re.extend({
+ init: function (g, n, q, t) {
+ this._log = g;
+ this._mslContext = n;
+ this._mslRequest = q;
+ this._keyRequestData = t;
+ },
+ getCryptoContexts: function () {
+ return {};
+ },
+ isEncrypted: function () {
+ return !!this._mslRequest.encrypted;
+ },
+ isNonReplayable: function () {
+ return !!this._mslRequest.nonReplayable;
+ },
+ isRequestingTokens: function () {
+ return !0;
+ },
+ getUserId: function () {
+ return this._mslRequest.profileGuid || this._mslRequest.userId || null;
+ },
+ getUserAuthData: function (g, n, t, z) {
+ var E,
+ R;
+ E = this._mslRequest;
+ R = this._mslContext;
+ q(z, function () {
+ var n,
+ q;
+ if (g || !E.shouldSendUserAuthData)
+ return null;
+ if (E.token) {
+ E.email ? n = new ze(E.email, E.password) : E.netflixId && (n = new Ae(E.netflixId, E.secureNetflixId));
+ q = "undefined" === typeof E.profileGuid ? null : E.profileGuid;
+ return new xc(E.mechanism, Oa(E.token), n, q);
+ }
+ return E.email ? new vc(E.email, E.password) : E.netflixId ? new bc(E.netflixId, E.secureNetflixId) : E.mdxControllerToken ? (n = new wc("regpairrequest", E.mdxNonce, E.mdxEncryptedPinB64, E.mdxSignature).getEncoding(), new lc(R, E.mdxPin, E.mdxControllerToken, n, E.mdxSignature)) : E.useNetflixUserAuthData ? new bc() : E.profileGuid ? (n = E.userId, n = R.getMslStore().userIdTokens[n], new yc(n, E.profileGuid)) : t && E.sendUserAuthIfRequired ? new bc() : null;
+ });
+ },
+ getCustomer: function () {
+ return null;
+ },
+ getKeyRequestData: function (g) {
+ g.result(this._mslRequest.allowTokenRefresh ? [this._keyRequestData] : []);
+ },
+ updateServiceTokens: function (g, n, q) {
+ var t,
+ z,
+ E,
+ R,
+ Q,
+ N;
+ t = this._log;
+ z = (this._mslRequest.serviceTokens || []).slice();
+ E = this._mslContext;
+ n = E.getMslStore();
+ R = g.builder.getMasterToken();
+ Q = this.getUserId();
+ N = n.getUserIdToken(Q);
+ (function la() {
+ var n;
+ n = z.shift();
+ if (n)
+ try {
+ n instanceof Qb ? (g.addPrimaryServiceToken(n), la()) : Nc(E, n, R, N, null, {
+ result: function (n) {
+ try {
+ g.addPrimaryServiceToken(n);
+ } catch (md) {
+ t.warn("Exception adding service token", "" + md);
+ }
+ la();
+ },
+ timeout: function () {
+ t.warn("Timeout parsing service token");
+ la();
+ },
+ error: function (g) {
+ t.warn("Error parsing service token", "" + g);
+ la();
+ }
+ });
+ } catch (Lb) {
+ t.warn("Exception processing service token", "" + Lb);
+ la();
+ }
+ else
+ q.result(!0);
+ })();
+ },
+ write: function (g, n, q) {
+ var t;
+ t = Oa(this._mslRequest.body);
+ g.write(t, 0, t.length, n, {
+ result: function (z) {
+ z != t.length ? q.error(new ab("Not all data was written to output.")) : g.flush(n, {
+ result: function () {
+ q.result(!0);
+ },
+ timeout: function () {
+ q.timeout();
+ },
+ error: function (g) {
+ q.error(g);
+ }
+ });
+ },
+ timeout: function () {
+ q.timeout();
+ },
+ error: function (g) {
+ q.error(g);
+ }
+ });
+ },
+ getDebugContext: function () {
+ this._dc || (this._dc = new gf(this._log, this._mslRequest));
+ return this._dc;
+ }
+ });
+ gf = Xe.extend({
+ init: function (g, n) {
+ this._log = g;
+ this._mslRequest = n;
+ },
+ sentHeader: function (g) {
+ this._log.trace("Sent MSL header", zd(this._mslRequest, g), g.serviceTokens && g.serviceTokens.map(Je).join("\n"));
+ },
+ receivedHeader: function (g) {
+ var n,
+ q;
+ n = zd(this._mslRequest, g);
+ q = g.errorCode;
+ q ? this._log.warn("Received MSL error header", n, {
+ errorCode: q,
+ errorMessage: g.errorMessage,
+ internalCode: g.internalCode
+ }) : this._log.trace("Received MSL header", n);
+ }
+ });
+ Fe = {
+ PSK: function (g) {
+ return Wc(g, Pa.PSK, cf, vb, nd, Lc);
+ },
+ MGK: function (g) {
+ return Wc(g, Pa.MGK, Ee, qb, nd, Lc);
+ },
+ MGK_WITH_FALLBACK: function (n) {
+ var q,
+ t;
+ switch (n.esnPrefix) {
+ case "GOOGEUR001":
+ case "GOOGLEXX01":
+ case "GOOGEST001":
+ case "GOOGNEW001":
+ q = "PSK";
+ break;
+ default:
+ q = "MGK";
+ }
+ t = Fe[q];
+ if (!t)
+ throw new E(g.INTERNAL_EXCEPTION, "Invalid fallback authenticationType: " + q);
+ return t(n);
+ },
+ MGK_JWE: function (g) {
+ return Wc(g, Pa.MGK, Ee, qb, Vd, ld);
+ },
+ JWK_RSA: function (g) {
+ return Xc(g, {
+ name: "RSA-OAEP",
+ modulusLength: 2048,
+ publicExponent: new Uint8Array([1, 0, 1]),
+ hash: {
+ name: "SHA-1"
+ }
+ }, Mc.JWK_RSA);
+ },
+ JWK_RSAES: function (g) {
+ return Xc(g, {
+ name: "RSAES-PKCS1-v1_5",
+ modulusLength: 2048,
+ publicExponent: new Uint8Array([1, 0, 1])
+ }, Mc.JWK_RSAES);
+ },
+ JWEJS_RSA: function (g) {
+ return Xc(g, {
+ name: "RSA-OAEP",
+ modulusLength: 2048,
+ publicExponent: new Uint8Array([1, 0, 1])
+ }, Mc.JWEJS_RSA);
+ }
+ };
+ t.netflix = t.netflix || ({});
+ t.netflix.msl = {
+ createMslClient: function (n, q) {
+ var t,
+ z,
+ R,
+ U,
+ N;
+ t = n.log;
+ N = n.notifyMilestone || (function () {});
+ Promise.resolve().then(function () {
+ if (!(Wa && Wa.generateKey && Wa.importKey && Wa.unwrapKey))
+ throw new E(g.INTERNAL_EXCEPTION, "No WebCrypto");
+ fb = Wa.generateKey({
+ name: "AES-CBC",
+ length: 128
+ }, !0, Nb).then ? Cc.V2014_02 : Cc.LEGACY;
+ N("mslisik");
+ return Ka.importKey("spki", n.serverIdentityKeyData, Kd, !1, ["verify"]);
+ }).then(function (n) {
+ return new Promise(function (q, t) {
+ Tb(n, {
+ result: q,
+ error: function () {
+ t(new E(g.KEY_IMPORT_ERROR, "Unable to create server identity verification key"));
+ }
+ });
+ });
+ }).then(function (q) {
+ z = q;
+ if (q = Fe[n.authenticationType])
+ return (N("mslcc"), q(n));
+ throw new E(g.INTERNAL_EXCEPTION, "Invalid authenticationType: " + n.authenticationType);
+ }).then(function (g) {
+ var q;
+ R = new ef(t, n.esn, g.keyRequestData, g.createKeyRequestData, n.authenticationKeyNames.s, n.systemKeyWrapFormat);
+ U = new ff(R, n.serverIdentityId, z, g.entityAuthFactories, g.entityAuthData, g.keyExchangeFactories);
+ q = n.storeState;
+ if (q)
+ return (N("mslss"), t.info("Loading store state"), new Promise(function (g, t) {
+ R.loadStoreState(n, U, q, {
+ result: g,
+ timeout: g,
+ error: g
+ });
+ }));
+ t.info("No store state, starting fresh");
+ }).then(function () {
+ var g;
+ g = new se();
+ N("msldone");
+ q.result(new Ke(t, g, U, R, n.ErrorSubCodes));
+ })["catch"](function (g) {
+ q.error(g);
+ });
+ },
+ IHttpLocation: Te,
+ MslIoException: ab
+ };
+ (function () {
+ var xa,
+ wa,
+ Da;
+ function g() {
+ g = function () {};
+ wa.Symbol || (wa.Symbol = n);
+ }
+ function n(d) {
+ return "jscomp_symbol_" + (d || "") + Da++;
+ }
+ function q() {
+ var d;
+ g();
+ d = wa.Symbol.iterator;
+ d || (d = wa.Symbol.iterator = wa.Symbol("iterator"));
+ "function" != typeof Array.prototype[d] && xa(Array.prototype, d, {
+ configurable: !0,
+ writable: !0,
+ value: function () {
+ return z(this);
+ }
+ });
+ q = function () {};
+ }
+ function z(d) {
+ var b;
+ b = 0;
+ return E(function () {
+ return b < d.length ? {
+ done: !1,
+ value: d[b++]
+ }
+ : {
+ done: !0
+ };
+ });
+ }
+ function E(d) {
+ q();
+ d = {
+ next: d
+ };
+ d[wa.Symbol.iterator] = function () {
+ return this;
+ };
+ return d;
+ }
+ function U(d) {
+ var b;
+ q();
+ g();
+ q();
+ b = d[Symbol.iterator];
+ return b ? b.call(d) : z(d);
+ }
+ function N(d, b) {
+ var k;
+ function a() {}
+ a.prototype = b.prototype;
+ d.prototype = new a();
+ d.prototype.constructor = d;
+ for (var c in b) {
+ if (Object.defineProperties) {
+ k = Object.getOwnPropertyDescriptor(b, c);
+ k && Object.defineProperty(d, c, k);
+ } else
+ d[c] = b[c];
+ }
+ }
+ function ca(d) {
+ if (!(d instanceof Array)) {
+ d = U(d);
+ for (var b, a = []; !(b = d.next()).done; ) {
+ a.push(b.value);
+ }
+ d = a;
+ }
+ return d;
+ }
+ function ea(d, b) {
+ var a,
+ k;
+ if (b) {
+ a = wa;
+ d = d.split(".");
+ for (var c = 0; c < d.length - 1; c++) {
+ k = d[c];
+ (k in a) || (a[k] = {});
+ a = a[k];
+ }
+ d = d[d.length - 1];
+ c = a[d];
+ b = b(c);
+ b != c && null != b && xa(a, d, {
+ configurable: !0,
+ writable: !0,
+ value: b
+ });
+ }
+ }
+ function ga(d, b) {
+ return Object.prototype.hasOwnProperty.call(d, b);
+ }
+ function la(d, b) {
+ var a,
+ c;
+ q();
+ d instanceof String && (d += "");
+ a = 0;
+ c = {
+ next: function () {
+ var k;
+ if (a < d.length) {
+ k = a++;
+ return {
+ value: b(k, d[k]),
+ done: !1
+ };
+ }
+ c.next = function () {
+ return {
+ done: !0,
+ value: void 0
+ };
+ };
+ return c.next();
+ }
+ };
+ c[Symbol.iterator] = function () {
+ return c;
+ };
+ return c;
+ }
+ function oa(d, b, a) {
+ if (null == d)
+ throw new TypeError("The 'this' value for String.prototype." + a + " must not be null or undefined");
+ if (b instanceof RegExp)
+ throw new TypeError("First argument to String.prototype." + a + " must not be a regular expression");
+ return d + "";
+ }
+ function ra(d, b, a) {
+ var l;
+ d instanceof String && (d = String(d));
+ for (var c = d.length, k = 0; k < c; k++) {
+ l = d[k];
+ if (b.call(a, l, k, d))
+ return {
+ Zj: k,
+ z4: l
+ };
+ }
+ return {
+ Zj: -1,
+ z4: void 0
+ };
+ }
+ xa = "function" == typeof Object.defineProperties ? Object.defineProperty : function (d, b, a) {
+ if (a.get || a.set)
+ throw new TypeError("ES3 does not support getters and setters.");
+ d != Array.prototype && d != Object.prototype && (d[b] = a.value);
+ };
+ wa = "undefined" != typeof t && t === this ? this : "undefined" != typeof global && null != global ? global : this;
+ Da = 0;
+ ea("Object.setPrototypeOf", function (d) {
+ return d ? d : "object" != typeof("").__proto__ ? null : function (b, a) {
+ b.__proto__ = a;
+ if (b.__proto__ !== a)
+ throw new TypeError(b + " is not extensible");
+ return b;
+ };
+ });
+ ea("Object.assign", function (d) {
+ return d ? d : function (b, a) {
+ var k;
+ for (var c = 1; c < arguments.length; c++) {
+ k = arguments[c];
+ if (k)
+ for (var l in k) {
+ ga(k, l) && (b[l] = k[l]);
+ }
+ }
+ return b;
+ };
+ });
+ ea("Object.getOwnPropertySymbols", function (d) {
+ return d ? d : function () {
+ return [];
+ };
+ });
+ ea("Promise", function (d) {
+ var c,
+ k;
+ function b(a) {
+ var b;
+ this.OR = 0;
+ this.zna = void 0;
+ this.uQ = [];
+ b = this.$da();
+ try {
+ a(b.resolve, b.reject);
+ } catch (h) {
+ b.reject(h);
+ }
+ }
+ function a() {
+ this.by = null;
+ }
+ if (d)
+ return d;
+ a.prototype.nFa = function (a) {
+ null == this.by && (this.by = [], this.Gdb());
+ this.by.push(a);
+ };
+ a.prototype.Gdb = function () {
+ var a;
+ a = this;
+ this.oFa(function () {
+ a.tnb();
+ });
+ };
+ c = wa.setTimeout;
+ a.prototype.oFa = function (a) {
+ c(a, 0);
+ };
+ a.prototype.tnb = function () {
+ var a,
+ k;
+ for (; this.by && this.by.length; ) {
+ a = this.by;
+ this.by = [];
+ for (var b = 0; b < a.length; ++b) {
+ k = a[b];
+ delete a[b];
+ try {
+ k();
+ } catch (p) {
+ this.Idb(p);
+ }
+ }
+ }
+ this.by = null;
+ };
+ a.prototype.Idb = function (a) {
+ this.oFa(function () {
+ throw a;
+ });
+ };
+ b.prototype.$da = function () {
+ var b,
+ k;
+ function a(a) {
+ return function (h) {
+ k || (k = !0, a.call(b, h));
+ };
+ }
+ b = this;
+ k = !1;
+ return {
+ resolve: a(this.YGb),
+ reject: a(this.bna)
+ };
+ };
+ b.prototype.YGb = function (a) {
+ var k;
+ if (a === this)
+ this.bna(new TypeError("A Promise cannot resolve to itself"));
+ else if (a instanceof b)
+ this.tJb(a);
+ else {
+ a: switch (typeof a) {
+ case "object":
+ k = null != a;
+ break a;
+ case "function":
+ k = !0;
+ break a;
+ default:
+ k = !1;
+ }
+ k ? this.XGb(a) : this.qKa(a);
+ }
+ };
+ b.prototype.XGb = function (a) {
+ var b;
+ b = void 0;
+ try {
+ b = a.then;
+ } catch (h) {
+ this.bna(h);
+ return;
+ }
+ "function" == typeof b ? this.uJb(b, a) : this.qKa(a);
+ };
+ b.prototype.bna = function (a) {
+ this.cWa(2, a);
+ };
+ b.prototype.qKa = function (a) {
+ this.cWa(1, a);
+ };
+ b.prototype.cWa = function (a, b) {
+ if (0 != this.OR)
+ throw Error("Cannot settle(" + a + ", " + b | "): Promise already settled in state" + this.OR);
+ this.OR = a;
+ this.zna = b;
+ this.unb();
+ };
+ b.prototype.unb = function () {
+ if (null != this.uQ) {
+ for (var a = this.uQ, b = 0; b < a.length; ++b) {
+ a[b].call();
+ a[b] = null;
+ }
+ this.uQ = null;
+ }
+ };
+ k = new a();
+ b.prototype.tJb = function (a) {
+ var b;
+ b = this.$da();
+ a.JX(b.resolve, b.reject);
+ };
+ b.prototype.uJb = function (a, b) {
+ var k;
+ k = this.$da();
+ try {
+ a.call(b, k.resolve, k.reject);
+ } catch (p) {
+ k.reject(p);
+ }
+ };
+ b.prototype.then = function (a, k) {
+ var c,
+ m,
+ f;
+ function h(a, b) {
+ return "function" == typeof a ? function (b) {
+ try {
+ c(a(b));
+ } catch (K) {
+ m(K);
+ }
+ }
+ : b;
+ }
+ f = new b(function (a, b) {
+ c = a;
+ m = b;
+ });
+ this.JX(h(a, c), h(k, m));
+ return f;
+ };
+ b.prototype["catch"] = function (a) {
+ return this.then(void 0, a);
+ };
+ b.prototype.JX = function (a, b) {
+ var c;
+ function h() {
+ switch (c.OR) {
+ case 1:
+ a(c.zna);
+ break;
+ case 2:
+ b(c.zna);
+ break;
+ default:
+ throw Error("Unexpected state: " + c.OR);
+ }
+ }
+ c = this;
+ null == this.uQ ? k.nFa(h) : this.uQ.push(function () {
+ k.nFa(h);
+ });
+ };
+ b.resolve = function (a) {
+ return a instanceof b ? a : new b(function (b) {
+ b(a);
+ });
+ };
+ b.reject = function (a) {
+ return new b(function (b, k) {
+ k(a);
+ });
+ };
+ b.race = function (a) {
+ return new b(function (k, h) {
+ for (var c = U(a), m = c.next(); !m.done; m = c.next()) {
+ b.resolve(m.value).JX(k, h);
+ }
+ });
+ };
+ b.all = function (a) {
+ var k,
+ h;
+ k = U(a);
+ h = k.next();
+ return h.done ? b.resolve([]) : new b(function (a, m) {
+ var c,
+ p;
+ function f(b) {
+ return function (k) {
+ c[b] = k;
+ p--;
+ 0 == p && a(c);
+ };
+ }
+ c = [];
+ p = 0;
+ do {
+ c.push(void 0);
+ p++;
+ b.resolve(h.value).JX(f(c.length - 1), m);
+ h = k.next();
+ } while (!h.done);
+ });
+ };
+ b.$jscomp$new$AsyncExecutor = function () {
+ return new a();
+ };
+ return b;
+ });
+ ea("Array.prototype.keys", function (d) {
+ return d ? d : function () {
+ return la(this, function (b) {
+ return b;
+ });
+ };
+ });
+ ea("Math.tanh", function (d) {
+ return d ? d : function (b) {
+ var a;
+ b = Number(b);
+ if (0 === b)
+ return b;
+ a = Math.exp(-2 * Math.abs(b));
+ a = (1 - a) / (1 + a);
+ return 0 > b ? -a : a;
+ };
+ });
+ ea("WeakMap", function (d) {
+ var k,
+ l;
+ function b(a) {
+ this.mP = (l += Math.random() + 1).toString();
+ if (a) {
+ g();
+ q();
+ a = U(a);
+ for (var b; !(b = a.next()).done; ) {
+ b = b.value;
+ this.set(b[0], b[1]);
+ }
+ }
+ }
+ function a(a) {
+ ga(a, k) || xa(a, k, {
+ value: {}
+ });
+ }
+ function c(b) {
+ var k;
+ k = Object[b];
+ k && (Object[b] = function (b) {
+ a(b);
+ return k(b);
+ });
+ }
+ if ((function () {
+ var a,
+ b,
+ k;
+ if (!d || !Object.seal)
+ return !1;
+ try {
+ a = Object.seal({});
+ b = Object.seal({});
+ k = new d([[a, 2], [b, 3]]);
+ if (2 != k.get(a) || 3 != k.get(b))
+ return !1;
+ k["delete"](a);
+ k.set(b, 4);
+ return !k.has(a) && 4 == k.get(b);
+ } catch (m) {
+ return !1;
+ }
+ })())
+ return d;
+ k = "$jscomp_hidden_" + Math.random().toString().substring(2);
+ c("freeze");
+ c("preventExtensions");
+ c("seal");
+ l = 0;
+ b.prototype.set = function (b, h) {
+ a(b);
+ if (!ga(b, k))
+ throw Error("WeakMap key fail: " + b);
+ b[k][this.mP] = h;
+ return this;
+ };
+ b.prototype.get = function (a) {
+ return ga(a, k) ? a[k][this.mP] : void 0;
+ };
+ b.prototype.has = function (a) {
+ return ga(a, k) && ga(a[k], this.mP);
+ };
+ b.prototype["delete"] = function (a) {
+ return ga(a, k) && ga(a[k], this.mP) ? delete a[k][this.mP] : !1;
+ };
+ return b;
+ });
+ ea("Map", function (d) {
+ var l,
+ r;
+ function b() {
+ var a;
+ a = {};
+ return a.xw = a.next = a.head = a;
+ }
+ function a(a, b) {
+ var k;
+ k = a.Hv;
+ return E(function () {
+ if (k) {
+ for (; k.head != a.Hv; ) {
+ k = k.xw;
+ }
+ for (; k.next != k.head; ) {
+ return (k = k.next, {
+ done: !1,
+ value: b(k)
+ });
+ }
+ k = null;
+ }
+ return {
+ done: !0,
+ value: void 0
+ };
+ });
+ }
+ function c(a, b) {
+ var k,
+ f,
+ h;
+ k = b && typeof b;
+ "object" == k || "function" == k ? l.has(b) ? k = l.get(b) : (k = "" + ++r, l.set(b, k)) : k = "p_" + b;
+ f = a.kv[k];
+ if (f && ga(a.kv, k))
+ for (a = 0; a < f.length; a++) {
+ h = f[a];
+ if (b !== b && h.key !== h.key || b === h.key)
+ return {
+ id: k,
+ list: f,
+ index: a,
+ Ee: h
+ };
+ }
+ return {
+ id: k,
+ list: f,
+ index: -1,
+ Ee: void 0
+ };
+ }
+ function k(a) {
+ this.kv = {};
+ this.Hv = b();
+ this.size = 0;
+ if (a) {
+ a = U(a);
+ for (var k; !(k = a.next()).done; ) {
+ k = k.value;
+ this.set(k[0], k[1]);
+ }
+ }
+ }
+ if ((function () {
+ var a,
+ b,
+ k,
+ f;
+ if (!d || !d.prototype.entries || "function" != typeof Object.seal)
+ return !1;
+ try {
+ a = Object.seal({
+ x: 4
+ });
+ b = new d(U([[a, "s"]]));
+ if ("s" != b.get(a) || 1 != b.size || b.get({
+ x: 4
+ }) || b.set({
+ x: 4
+ }, "t") != b || 2 != b.size)
+ return !1;
+ k = b.entries();
+ f = k.next();
+ if (f.done || f.value[0] != a || "s" != f.value[1])
+ return !1;
+ f = k.next();
+ return f.done || 4 != f.value[0].x || "t" != f.value[1] || !k.next().done ? !1 : !0;
+ } catch (u) {
+ return !1;
+ }
+ })())
+ return d;
+ g();
+ q();
+ l = new WeakMap();
+ k.prototype.set = function (a, b) {
+ var k;
+ k = c(this, a);
+ k.list || (k.list = this.kv[k.id] = []);
+ k.Ee ? k.Ee.value = b : (k.Ee = {
+ next: this.Hv,
+ xw: this.Hv.xw,
+ head: this.Hv,
+ key: a,
+ value: b
+ }, k.list.push(k.Ee), this.Hv.xw.next = k.Ee, this.Hv.xw = k.Ee, this.size++);
+ return this;
+ };
+ k.prototype["delete"] = function (a) {
+ a = c(this, a);
+ return a.Ee && a.list ? (a.list.splice(a.index, 1), a.list.length || delete this.kv[a.id], a.Ee.xw.next = a.Ee.next, a.Ee.next.xw = a.Ee.xw, a.Ee.head = null, this.size--, !0) : !1;
+ };
+ k.prototype.clear = function () {
+ this.kv = {};
+ this.Hv = this.Hv.xw = b();
+ this.size = 0;
+ };
+ k.prototype.has = function (a) {
+ return !!c(this, a).Ee;
+ };
+ k.prototype.get = function (a) {
+ return (a = c(this, a).Ee) && a.value;
+ };
+ k.prototype.entries = function () {
+ return a(this, function (a) {
+ return [a.key, a.value];
+ });
+ };
+ k.prototype.keys = function () {
+ return a(this, function (a) {
+ return a.key;
+ });
+ };
+ k.prototype.values = function () {
+ return a(this, function (a) {
+ return a.value;
+ });
+ };
+ k.prototype.forEach = function (a, b) {
+ for (var k = this.entries(), f; !(f = k.next()).done; ) {
+ f = f.value;
+ a.call(b, f[1], f[0], this);
+ }
+ };
+ k.prototype[Symbol.iterator] = k.prototype.entries;
+ r = 0;
+ return k;
+ });
+ ea("Set", function (d) {
+ function b(a) {
+ this.Im = new Map();
+ if (a) {
+ a = U(a);
+ for (var b; !(b = a.next()).done; ) {
+ this.add(b.value);
+ }
+ }
+ this.size = this.Im.size;
+ }
+ if ((function () {
+ var a,
+ b,
+ k,
+ l;
+ if (!d || !d.prototype.entries || "function" != typeof Object.seal)
+ return !1;
+ try {
+ a = Object.seal({
+ x: 4
+ });
+ b = new d(U([a]));
+ if (!b.has(a) || 1 != b.size || b.add(a) != b || 1 != b.size || b.add({
+ x: 4
+ }) != b || 2 != b.size)
+ return !1;
+ k = b.entries();
+ l = k.next();
+ if (l.done || l.value[0] != a || l.value[1] != a)
+ return !1;
+ l = k.next();
+ return l.done || l.value[0] == a || 4 != l.value[0].x || l.value[1] != l.value[0] ? !1 : k.next().done;
+ } catch (r) {
+ return !1;
+ }
+ })())
+ return d;
+ g();
+ q();
+ b.prototype.add = function (a) {
+ this.Im.set(a, a);
+ this.size = this.Im.size;
+ return this;
+ };
+ b.prototype["delete"] = function (a) {
+ a = this.Im["delete"](a);
+ this.size = this.Im.size;
+ return a;
+ };
+ b.prototype.clear = function () {
+ this.Im.clear();
+ this.size = 0;
+ };
+ b.prototype.has = function (a) {
+ return this.Im.has(a);
+ };
+ b.prototype.entries = function () {
+ return this.Im.entries();
+ };
+ b.prototype.values = function () {
+ return this.Im.values();
+ };
+ b.prototype[Symbol.iterator] = b.prototype.values;
+ b.prototype.forEach = function (a, b) {
+ var k;
+ k = this;
+ this.Im.forEach(function (c) {
+ return a.call(b, c, c, k);
+ });
+ };
+ return b;
+ });
+ ea("Number.isNaN", function (d) {
+ return d ? d : function (b) {
+ return "number" === typeof b && isNaN(b);
+ };
+ });
+ ea("String.prototype.includes", function (d) {
+ return d ? d : function (b, a) {
+ return -1 !== oa(this, b, "includes").indexOf(b, a || 0);
+ };
+ });
+ ea("Array.prototype.find", function (d) {
+ return d ? d : function (b, a) {
+ return ra(this, b, a).z4;
+ };
+ });
+ ea("Array.prototype.entries", function (d) {
+ return d ? d : function () {
+ return la(this, function (b, a) {
+ return [b, a];
+ });
+ };
+ });
+ ea("Array.prototype.values", function (d) {
+ return d ? d : function () {
+ return la(this, function (b, a) {
+ return a;
+ });
+ };
+ });
+ ea("WeakSet", function (d) {
+ function b(a) {
+ this.Im = new WeakMap();
+ if (a) {
+ g();
+ q();
+ a = U(a);
+ for (var b; !(b = a.next()).done; ) {
+ this.add(b.value);
+ }
+ }
+ }
+ if ((function () {
+ var a,
+ b,
+ k;
+ if (!d || !Object.seal)
+ return !1;
+ try {
+ a = Object.seal({});
+ b = Object.seal({});
+ k = new d([a]);
+ if (!k.has(a) || k.has(b))
+ return !1;
+ k["delete"](a);
+ k.add(b);
+ return !k.has(a) && k.has(b);
+ } catch (l) {
+ return !1;
+ }
+ })())
+ return d;
+ b.prototype.add = function (a) {
+ this.Im.set(a, !0);
+ return this;
+ };
+ b.prototype.has = function (a) {
+ return this.Im.has(a);
+ };
+ b.prototype["delete"] = function (a) {
+ return this.Im["delete"](a);
+ };
+ return b;
+ });
+ ea("String.prototype.repeat", function (d) {
+ return d ? d : function (b) {
+ var a;
+ a = oa(this, null, "repeat");
+ if (0 > b || 1342177279 < b)
+ throw new RangeError("Invalid count value");
+ b |= 0;
+ for (var c = ""; b; ) {
+ if ((b & 1 && (c += a), b >>>= 1))
+ a += a;
+ }
+ return c;
+ };
+ });
+ ea("String.prototype.endsWith", function (d) {
+ return d ? d : function (b, a) {
+ var c;
+ c = oa(this, b, "endsWith");
+ b += "";
+ void 0 === a && (a = c.length);
+ a = Math.max(0, Math.min(a | 0, c.length));
+ for (var k = b.length; 0 < k && 0 < a; ) {
+ if (c[--a] != b[--k])
+ return !1;
+ }
+ return 0 >= k;
+ };
+ });
+ ea("Array.prototype.findIndex", function (d) {
+ return d ? d : function (b, a) {
+ return ra(this, b, a).Zj;
+ };
+ });
+ ea("String.prototype.startsWith", function (d) {
+ return d ? d : function (b, a) {
+ var c,
+ k,
+ l;
+ c = oa(this, b, "startsWith");
+ b += "";
+ k = c.length;
+ l = b.length;
+ a = Math.max(0, Math.min(a | 0, c.length));
+ for (var r = 0; r < l && a < k; ) {
+ if (c[a++] != b[r++])
+ return !1;
+ }
+ return r >= l;
+ };
+ });
+ ea("Number.MAX_SAFE_INTEGER", function () {
+ return 9007199254740991;
+ });
+ ea("Array.prototype.fill", function (d) {
+ return d ? d : function (b, a, c) {
+ var k;
+ k = this.length || 0;
+ 0 > a && (a = Math.max(0, k + a));
+ if (null == c || c > k)
+ c = k;
+ c = Number(c);
+ 0 > c && (c = Math.max(0, k + c));
+ for (a = Number(a || 0); a < c; a++) {
+ this[a] = b;
+ }
+ return this;
+ };
+ });
+ (function (d) {
+ var a;
+ function b(c) {
+ var k;
+ if (a[c])
+ return a[c].P;
+ k = a[c] = {
+ Zj: c,
+ twb: !1,
+ P: {}
+ };
+ d[c].call(k.P, k, k.P, b);
+ k.twb = !0;
+ return k.P;
+ }
+ a = {};
+ b.BZb = d;
+ b.XWb = a;
+ b.d = function (a, k, l) {
+ b.PAb(a, k) || Object.defineProperty(a, k, {
+ configurable: !1,
+ enumerable: !0,
+ get: l
+ });
+ };
+ b.r = function (a) {
+ Object.defineProperty(a, "__esModule", {
+ value: !0
+ });
+ };
+ b.n = function (a) {
+ var k;
+ k = a && a.hBa ? function () {
+ return a["default"];
+ }
+ : function () {
+ return a;
+ };
+ b.d(k, "a", k);
+ return k;
+ };
+ b.PAb = function (a, b) {
+ return Object.prototype.hasOwnProperty.call(a, b);
+ };
+ b.p = "";
+ return b(b.i0b = 1207);
+ })([function (d, b, a) {
+ function c() {
+ c = Object.assign || (function (a) {
+ for (var b, k = 1, f = arguments.length; k < f; k++) {
+ b = arguments[k];
+ for (var m in b) {
+ Object.prototype.hasOwnProperty.call(b, m) && (a[m] = b[m]);
+ }
+ }
+ return a;
+ });
+ return c.apply(this, arguments);
+ }
+ function k(a, b) {
+ k = Object.setPrototypeOf || ({
+ __proto__: []
+ })instanceof Array && (function (a, b) {
+ a.__proto__ = b;
+ }) || (function (a, b) {
+ for (var k in b) {
+ b.hasOwnProperty(k) && (a[k] = b[k]);
+ }
+ });
+ return k(a, b);
+ }
+ function l(a, b) {
+ function f() {
+ this.constructor = a;
+ }
+ k(a, b);
+ a.prototype = null === b ? Object.create(b) : (f.prototype = b.prototype, new f());
+ }
+ function r(a, b) {
+ var k,
+ f,
+ m;
+ k = {};
+ for (f in a) {
+ Object.prototype.hasOwnProperty.call(a, f) && 0 > b.indexOf(f) && (k[f] = a[f]);
+ }
+ if (null != a && "function" === typeof Object.getOwnPropertySymbols) {
+ m = 0;
+ for (f = Object.getOwnPropertySymbols(a); m < f.length; m++) {
+ 0 > b.indexOf(f[m]) && Object.prototype.propertyIsEnumerable.call(a, f[m]) && (k[f[m]] = a[f[m]]);
+ }
+ }
+ return k;
+ }
+ function h(a, b, k, f) {
+ var m,
+ h,
+ c;
+ m = arguments.length;
+ h = 3 > m ? b : null === f ? f = Object.getOwnPropertyDescriptor(b, k) : f;
+ if ("object" === typeof Reflect && "function" === typeof Reflect.oy)
+ h = Reflect.oy(a, b, k, f);
+ else
+ for (var p = a.length - 1; 0 <= p; p--) {
+ if (c = a[p])
+ h = (3 > m ? c(h) : 3 < m ? c(b, k, h) : c(b, k)) || h;
+ }
+ return (3 < m && h && Object.defineProperty(b, k, h), h);
+ }
+ function p(a, b) {
+ return function (k, f) {
+ b(k, f, a);
+ };
+ }
+ function m(a, b) {
+ if ("object" === typeof Reflect && "function" === typeof Reflect.Kd)
+ return Reflect.Kd(a, b);
+ }
+ function f(a, b, k, f) {
+ return new(k || (k = Promise))(function (m, h) {
+ function c(a) {
+ try {
+ u(f.next(a));
+ } catch (Ha) {
+ h(Ha);
+ }
+ }
+ function p(a) {
+ try {
+ u(f["throw"](a));
+ } catch (Ha) {
+ h(Ha);
+ }
+ }
+ function u(a) {
+ a.done ? m(a.value) : new k(function (b) {
+ b(a.value);
+ }).then(c, p);
+ }
+ u((f = f.apply(a, b || [])).next());
+ });
+ }
+ function u(a, b) {
+ var m,
+ h,
+ c,
+ p,
+ u;
+ function k(a) {
+ return function (b) {
+ return f([a, b]);
+ };
+ }
+ function f(k) {
+ if (h)
+ throw new TypeError("Generator is already executing.");
+ for (; m; ) {
+ try {
+ if ((h = 1, c && (p = k[0] & 2 ? c["return"] : k[0] ? c["throw"] || ((p = c["return"]) && p.call(c), 0) : c.next) && !(p = p.call(c, k[1])).done))
+ return p;
+ if ((c = 0, p))
+ k = [k[0] & 2, p.value];
+ switch (k[0]) {
+ case 0:
+ case 1:
+ p = k;
+ break;
+ case 4:
+ return (m.label++, {
+ value: k[1],
+ done: !1
+ });
+ case 5:
+ m.label++;
+ c = k[1];
+ k = [0];
+ continue;
+ case 7:
+ k = m.hD.pop();
+ m.hE.pop();
+ continue;
+ default:
+ if (!(p = m.hE, p = 0 < p.length && p[p.length - 1]) && (6 === k[0] || 2 === k[0])) {
+ m = 0;
+ continue;
+ }
+ if (3 === k[0] && (!p || k[1] > p[0] && k[1] < p[3]))
+ m.label = k[1];
+ else if (6 === k[0] && m.label < p[1])
+ (m.label = p[1], p = k);
+ else if (p && m.label < p[2])
+ (m.label = p[2], m.hD.push(k));
+ else {
+ p[2] && m.hD.pop();
+ m.hE.pop();
+ continue;
+ }
+ }
+ k = b.call(a, m);
+ } catch (Ha) {
+ k = [6, Ha];
+ c = 0;
+ }
+ finally {
+ h = p = 0;
+ }
+ }
+ if (k[0] & 5)
+ throw k[1];
+ return {
+ value: k[0] ? k[1] : void 0,
+ done: !0
+ };
+ }
+ m = {
+ label: 0,
+ Bt: function () {
+ if (p[0] & 1)
+ throw p[1];
+ return p[1];
+ },
+ hE: [],
+ hD: []
+ };
+ g();
+ g();
+ q();
+ return (u = {
+ next: k(0),
+ "throw": k(1),
+ "return": k(2)
+ }, "function" === typeof Symbol && (u[Symbol.iterator] = function () {
+ return this;
+ }), u);
+ }
+ function w(a, b) {
+ for (var k in a) {
+ b.hasOwnProperty(k) || (b[k] = a[k]);
+ }
+ }
+ function A(a) {
+ var b,
+ k;
+ g();
+ g();
+ q();
+ b = "function" === typeof Symbol && a[Symbol.iterator];
+ k = 0;
+ return b ? b.call(a) : {
+ next: function () {
+ a && k >= a.length && (a = void 0);
+ return {
+ value: a && a[k++],
+ done: !a
+ };
+ }
+ };
+ }
+ function K(a, b) {
+ var k,
+ f,
+ m,
+ h;
+ g();
+ g();
+ q();
+ k = "function" === typeof Symbol && a[Symbol.iterator];
+ if (!k)
+ return a;
+ a = k.call(a);
+ m = [];
+ try {
+ for (; (void 0 === b || 0 < b--) && !(f = a.next()).done; ) {
+ m.push(f.value);
+ }
+ } catch (O) {
+ h = {
+ error: O
+ };
+ }
+ finally {
+ try {
+ f && !f.done && (k = a["return"]) && k.call(a);
+ }
+ finally {
+ if (h)
+ throw h.error;
+ }
+ }
+ return m;
+ }
+ function C() {
+ for (var a = [], b = 0; b < arguments.length; b++) {
+ a = a.concat(K(arguments[b]));
+ }
+ return a;
+ }
+ function M() {
+ for (var a = 0, b = 0, k = arguments.length; b < k; b++) {
+ a += arguments[b].length;
+ }
+ for (var a = Array(a), f = 0, b = 0; b < k; b++) {
+ for (var m = arguments[b], h = 0, c = m.length; h < c; (h++, f++)) {
+ a[f] = m[h];
+ }
+ }
+ return a;
+ }
+ function H(a) {
+ return this instanceof H ? (this.z4 = a, this) : new H(a);
+ }
+ function G(a, b, k) {
+ var u,
+ l,
+ r;
+ function f(a) {
+ u[a] && (l[a] = function (b) {
+ return new Promise(function (k, f) {
+ 1 < r.push([a, b, k, f]) || m(a, b);
+ });
+ });
+ }
+ function m(a, b) {
+ var k;
+ try {
+ k = u[a](b);
+ k.value instanceof H ? Promise.resolve(k.value.z4).then(h, c) : p(r[0][2], k);
+ } catch (ma) {
+ p(r[0][3], ma);
+ }
+ }
+ function h(a) {
+ m("next", a);
+ }
+ function c(a) {
+ m("throw", a);
+ }
+ function p(a, b) {
+ (a(b), r.shift(), r.length) && m(r[0][0], r[0][1]);
+ }
+ g();
+ if (!Symbol.uX)
+ throw new TypeError("Symbol.asyncIterator is not defined.");
+ u = k.apply(a, b || []);
+ r = [];
+ g();
+ return (l = {}, f("next"), f("throw"), f("return"), l[Symbol.uX] = function () {
+ return this;
+ }, l);
+ }
+ function T(a) {
+ var k,
+ f;
+ function b(b, m) {
+ k[b] = a[b] ? function (k) {
+ return (f = !f) ? {
+ value: H(a[b](k)),
+ done: "return" === b
+ }
+ : m ? m(k) : k;
+ }
+ : m;
+ }
+ g();
+ q();
+ return (k = {}, b("next"), b("throw", function (a) {
+ throw a;
+ }), b("return"), k[Symbol.iterator] = function () {
+ return this;
+ }, k);
+ }
+ function S(a) {
+ var f,
+ m;
+ function b(b) {
+ m[b] = a[b] && (function (f) {
+ return new Promise(function (m, h) {
+ f = a[b](f);
+ k(m, h, f.done, f.value);
+ });
+ });
+ }
+ function k(a, b, k, f) {
+ Promise.resolve(f).then(function (b) {
+ a({
+ value: b,
+ done: k
+ });
+ }, b);
+ }
+ g();
+ if (!Symbol.uX)
+ throw new TypeError("Symbol.asyncIterator is not defined.");
+ g();
+ f = a[Symbol.uX];
+ g();
+ q();
+ g();
+ return f ? f.call(a) : (a = "function" === typeof A ? A(a) : a[Symbol.iterator](), m = {}, b("next"), b("throw"), b("return"), m[Symbol.uX] = function () {
+ return this;
+ }, m);
+ }
+ function n(a, b) {
+ Object.defineProperty ? Object.defineProperty(a, "raw", {
+ value: b
+ }) : a.raw = b;
+ return a;
+ }
+ function Z(a) {
+ var b;
+ if (a && a.hBa)
+ return a;
+ b = {};
+ if (null != a)
+ for (var k in a) {
+ Object.hasOwnProperty.call(a, k) && (b[k] = a[k]);
+ }
+ b["default"] = a;
+ return b;
+ }
+ function B(a) {
+ return a && a.hBa ? a : {
+ "default": a
+ };
+ }
+ a.r(b);
+ a.d(b, "__extends", function () {
+ return l;
+ });
+ a.d(b, "__assign", function () {
+ return c;
+ });
+ a.d(b, "__rest", function () {
+ return r;
+ });
+ a.d(b, "__decorate", function () {
+ return h;
+ });
+ a.d(b, "__param", function () {
+ return p;
+ });
+ a.d(b, "__metadata", function () {
+ return m;
+ });
+ a.d(b, "__awaiter", function () {
+ return f;
+ });
+ a.d(b, "__generator", function () {
+ return u;
+ });
+ a.d(b, "__exportStar", function () {
+ return w;
+ });
+ a.d(b, "__values", function () {
+ return A;
+ });
+ a.d(b, "__read", function () {
+ return K;
+ });
+ a.d(b, "__spread", function () {
+ return C;
+ });
+ a.d(b, "__spreadArrays", function () {
+ return M;
+ });
+ a.d(b, "__await", function () {
+ return H;
+ });
+ a.d(b, "__asyncGenerator", function () {
+ return G;
+ });
+ a.d(b, "__asyncDelegator", function () {
+ return T;
+ });
+ a.d(b, "__asyncValues", function () {
+ return S;
+ });
+ a.d(b, "__makeTemplateObject", function () {
+ return n;
+ });
+ a.d(b, "__importStar", function () {
+ return Z;
+ });
+ a.d(b, "__importDefault", function () {
+ return B;
+ });
+ }, function (d, b, a) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ d = a(38);
+ b.DSb = d;
+ d = a(1192);
+ b.mT = d.mT;
+ d = a(77);
+ b.Tp = d.Tp;
+ b.Vi = d.Vi;
+ b.nu = d.nu;
+ d = a(1176);
+ b.lra = d.lra;
+ b.Kc = d.Kc;
+ d = a(1175);
+ b.N = d.N;
+ d = a(1174);
+ b.hXa = d.hXa;
+ d = a(1173);
+ b.PQa = d.PQa;
+ d = a(519);
+ b.l = d.l;
+ b.j7 = d.j7;
+ d = a(1172);
+ b.optional = d.optional;
+ d = a(1171);
+ b.mi = d.mi;
+ d = a(1170);
+ b.aD = d.aD;
+ d = a(1169);
+ b.eS = d.eS;
+ d = a(1168);
+ b.ZSa = d.ZSa;
+ d = a(521);
+ b.T7 = d.T7;
+ d = a(102);
+ b.id = d.id;
+ d = a(92);
+ b.oy = d.oy;
+ d = a(516);
+ b.eYa = d.eYa;
+ b.iXa = d.iXa;
+ b.QQa = d.QQa;
+ b.mYa = d.mYa;
+ d = a(143);
+ b.GH = d.GH;
+ a = a(1167);
+ b.MQa = a.MQa;
+ }, function (d, b) {
+ var a,
+ c;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Vp = b.h6 = b.Nta = b.g6 = b.p2a = b.q2a = b.Mta = b.Jta = b.o2a = b.nwa = b.kU = b.XT = b.Lta = b.I = b.J = void 0;
+ (function (a) {
+ a[a.nl = 7001] = "UNKNOWN";
+ a[a.g7a = 7002] = "UNHANDLED_EXCEPTION";
+ a[a.n3a = 7003] = "INIT_COMPONENT_LOG_TO_REMOTE";
+ a[a.Dua = 7010] = "INIT_ASYNCCOMPONENT";
+ a[a.Vua = 7011] = "INIT_HTTP";
+ a[a.j3a = 7014] = "INIT_BADMOVIEID";
+ a[a.z3a = 7016] = "INIT_NETFLIXID_MISSING";
+ a[a.y3a = 7017] = "INIT_NETFLIXID_INVALID";
+ a[a.B3a = 7018] = "INIT_SECURENETFLIXID_MISSING";
+ a[a.Wua = 7020] = "INIT_PLAYBACK_LOCK";
+ a[a.Xua = 7022] = "INIT_SESSION_LOCK";
+ a[a.A3a = 7029] = "INIT_POSTAUTHORIZE";
+ a[a.pSb = 7031] = "INIT_HEADER_MEDIA";
+ a[a.URb = 7032] = "HEADER_MISSING";
+ a[a.TRb = 7033] = "HEADER_FRAGMENTS_MISSING";
+ a[a.C3a = 7034] = "INIT_TIMEDTEXT_TRACK";
+ a[a.qSb = 7035] = "INIT_LOAD_DOWNLOADED_MEDIA";
+ a[a.rSb = 7036] = "INIT_STREAMS_NOT_AVAILABLE";
+ a[a.TZa = 7037] = "ASE_SESSION_ERROR";
+ a[a.SZa = 7038] = "ASE_SEEK_THREW";
+ a[a.UZa = 7039] = "ASE_SKIPPED_THREW";
+ a[a.v3a = 7041] = "INIT_CORE_OBJECTS1";
+ a[a.w3a = 7042] = "INIT_CORE_OBJECTS2";
+ a[a.x3a = 7043] = "INIT_CORE_OBJECTS3";
+ a[a.mSb = 7051] = "INIT_COMPONENT_REQUESTQUOTA";
+ a[a.gSb = 7052] = "INIT_COMPONENT_FILESYSTEM";
+ a[a.Nua = 7053] = "INIT_COMPONENT_STORAGE";
+ a[a.Oua = 7054] = "INIT_COMPONENT_STORAGELOCK";
+ a[a.hSb = 7055] = "INIT_COMPONENT_LOGPERSIST";
+ a[a.iSb = 7056] = "INIT_COMPONENT_NRDDPI";
+ a[a.kSb = 7057] = "INIT_COMPONENT_PEPPERCRYPTO";
+ a[a.Jua = 7058] = "INIT_COMPONENT_MAINTHREADMONITOR";
+ a[a.T6 = 7059] = "INIT_COMPONENT_DEVICE";
+ a[a.jSb = 7062] = "INIT_COMPONENT_NTBA";
+ a[a.Kua = 7063] = "INIT_COMPONENT_MSL";
+ a[a.l3a = 7065] = "INIT_COMPONENT_CONTROL_PROTOCOL";
+ a[a.Iua = 7066] = "INIT_COMPONENT_LOGBLOBBATCHER";
+ a[a.Zw = 7067] = "INIT_COMPONENT_PERSISTEDPLAYDATA";
+ a[a.lSb = 7068] = "INIT_COMPONENT_PLAYBACKHEURISTICSRANDOM";
+ a[a.k3a = 7069] = "INIT_COMPONENT_ACCOUNT";
+ a[a.p3a = 7070] = "INIT_COMPONENT_NRDP_CONFIG_LOADER";
+ a[a.r3a = 7071] = "INIT_COMPONENT_NRDP_ESN_PREFIX_LOADER";
+ a[a.s3a = 7072] = "INIT_COMPONENT_NRDP_MEDIA";
+ a[a.t3a = 7073] = "INIT_COMPONENT_NRDP_PREPARE_LOADER";
+ a[a.u3a = 7074] = "INIT_COMPONENT_NRDP_REGISTRATION";
+ a[a.o3a = 7081] = "INIT_COMPONENT_NRDP";
+ a[a.q3a = 7082] = "INIT_COMPONENT_NRDP_DEVICE";
+ a[a.Uua = 7083] = "INIT_COMPONENT_WEBCRYPTO";
+ a[a.Qua = 7084] = "INIT_COMPONENT_VIDEO_PREPARER";
+ a[a.oSb = 7085] = "INIT_CONGESTION_SERVICE";
+ a[a.Hua = 7086] = "INIT_COMPONENT_IDB_VIEWER_TOOL";
+ a[a.Pua = 7087] = "INIT_COMPONENT_TRACKING_LOG";
+ a[a.Fua = 7088] = "INIT_COMPONENT_BATTERY_MANAGER";
+ a[a.Eua = 7089] = "INIT_COMPONENT_ASE_MANAGER";
+ a[a.nSb = 7090] = "INIT_COMPONENT_VIDEO_CACHE";
+ a[a.HE = 7091] = "INIT_COMPONENT_DRM_CACHE";
+ a[a.m3a = 7092] = "INIT_COMPONENT_DRM";
+ a[a.Lua = 7093] = "INIT_COMPONENT_PREFETCH_EVENTS";
+ a[a.Gua = 7094] = "INIT_COMPONENT_FTL";
+ a[a.Mua = 7095] = "INIT_COMPONENT_PREPARE_MODEL";
+ a[a.Rua = 7096] = "INIT_COMPONENT_VIDEO_SESSION_EDGE";
+ a[a.Sua = 7097] = "INIT_COMPONENT_VIDEO_SESSION_MDX";
+ a[a.Tua = 7098] = "INIT_COMPONENT_VIDEO_SESSION_TEST";
+ a[a.MANIFEST = 7111] = "MANIFEST";
+ a[a.d_a = 7112] = "AUTHORIZE_UNKNOWN";
+ a[a.d4a = 7117] = "MANIFEST_VERIFY";
+ a[a.D6a = 7120] = "START";
+ a[a.cx = 7121] = "LICENSE";
+ a[a.nza = 7122] = "SECURESTOP";
+ a[a.sza = 7123] = "STOP";
+ a[a.JRb = 7124] = "FPSAPPDATA";
+ a[a.g7 = 7125] = "KEEPALIVE";
+ a[a.GQb = 7126] = "DEACTIVATE";
+ a[a.pVb = 7127] = "SYNC_DEACTIVATE_LINKS";
+ a[a.DPb = 7130] = "ACTIVATE";
+ a[a.v5a = 7131] = "PING";
+ a[a.fTb = 7133] = "NETFLIXID";
+ a[a.f2a = 7134] = "ENGAGE";
+ a[a.b4a = 7135] = "LOGIN";
+ a[a.K6a = 7136] = "SWITCH_PROFILES";
+ a[a.a4a = 7137] = "LOGBLOB";
+ a[a.e5a = 7138] = "PAUSE";
+ a[a.i6a = 7139] = "RESUME";
+ a[a.qza = 7140] = "SPLICE";
+ a[a.TQb = 7141] = "DOWNLOAD_EVENT";
+ a[a.z_a = 7142] = "BIND";
+ a[a.d5a = 7143] = "PAIR";
+ a[a.A_a = 7144] = "BIND_DEVICE";
+ a[a.z2a = 7145] = "GENERATE_SCREENSHOTS";
+ a[a.y5a = 7202] = "PLAY_INIT_EXCEPTION";
+ a[a.CSb = 7301] = "MEDIA_DOWNLOAD";
+ a[a.STb = 7330] = "PLAY_MSE_EME_CREATE_KEYSESSION_FAILED";
+ a[a.TTb = 7331] = "PLAY_MSE_EME_KEY_SESSION_UPDATE_EXCEPTION";
+ a[a.qxa = 7332] = "PLAY_MSE_EME_KEY_STATUS_CHANGE_EXPIRED";
+ a[a.D5a = 7333] = "PLAY_MSE_EME_KEY_STATUS_CHANGE_INTERNAL_ERROR";
+ a[a.rxa = 7334] = "PLAY_MSE_EME_KEY_STATUS_CHANGE_OUTPUT_NOT_ALLOWED";
+ a[a.E5a = 7335] = "PLAY_MSE_EME_KEY_STATUS_EXCEPTION";
+ a[a.p8 = 7336] = "PLAY_MSE_EME_KEY_STATUS_CHANGE_OUTPUT_RESTRICTED";
+ a[a.UTb = 7337] = "PLAY_MSE_EME_KEY_STATUS_CHANGE_RELEASED";
+ a[a.txa = 7351] = "PLAY_MSE_NOTSUPPORTED";
+ a[a.sxa = 7352] = "PLAY_MSE_EME_NOTSUPPORTED";
+ a[a.pxa = 7353] = "PLAY_MSE_DECODER_TIMEOUT";
+ a[a.jL = 7354] = "PLAY_MSE_EME_TYPE_NOTSUPPORTED";
+ a[a.s8 = 7355] = "PLAY_MSE_SOURCEADD";
+ a[a.oxa = 7356] = "PLAY_MSE_CREATE_MEDIAKEYS";
+ a[a.q8 = 7357] = "PLAY_MSE_GENERATEKEYREQUEST";
+ a[a.XTb = 7358] = "PLAY_MSE_PARSECHALLENGE";
+ a[a.RTb = 7359] = "PLAY_MSE_ADDKEY";
+ a[a.$Tb = 7360] = "PLAY_MSE_UNEXPECTED_NEEDKEY";
+ a[a.J5a = 7361] = "PLAY_MSE_EVENT_ERROR";
+ a[a.kL = 7362] = "PLAY_MSE_SETMEDIAKEYS";
+ a[a.lx = 7363] = "PLAY_MSE_EVENT_KEYERROR";
+ a[a.I5a = 7364] = "PLAY_MSE_EME_SESSION_CLOSE";
+ a[a.K5a = 7365] = "PLAY_MSE_GETCURRENTTIME";
+ a[a.L5a = 7367] = "PLAY_MSE_SETCURRENTTIME";
+ a[a.M5a = 7371] = "PLAY_MSE_SOURCEAPPEND";
+ a[a.YTb = 7373] = "PLAY_MSE_SOURCEAPPEND_INIT";
+ a[a.Q5a = 7375] = "PLAY_MSE_UNEXPECTED_SEEKING";
+ a[a.P5a = 7376] = "PLAY_MSE_UNEXPECTED_SEEKED";
+ a[a.O5a = 7377] = "PLAY_MSE_UNEXPECTED_REWIND";
+ a[a.ZTb = 7379] = "PLAY_MSE_SOURCE_EOS";
+ a[a.N5a = 7381] = "PLAY_MSE_SOURCEBUFFER_ERROR";
+ a[a.WTb = 7385] = "PLAY_MSE_KEYSESSION_UPDATE";
+ a[a.z5a = 7391] = "PLAY_MSE_CREATE_MEDIASOURCE";
+ a[a.A5a = 7392] = "PLAY_MSE_CREATE_MEDIASOURCE_OBJECTURL";
+ a[a.B5a = 7393] = "PLAY_MSE_CREATE_MEDIASOURCE_OPEN";
+ a[a.F5a = 7394] = "PLAY_MSE_EME_MISSING_DRMHEADER";
+ a[a.G5a = 7395] = "PLAY_MSE_EME_MISSING_PSSH";
+ a[a.VTb = 7396] = "PLAY_MSE_EME_MISSING_CERT";
+ a[a.H5a = 7397] = "PLAY_MSE_EME_NO_PRK_SUPPORT";
+ a[a.C5a = 7398] = "PLAY_MSE_DURATIONCHANGE_ERROR";
+ a[a.r8 = 7399] = "PLAY_MSE_SET_LICENSE_ERROR";
+ a[a.i2a = 7400] = "EXTERNAL";
+ a[a.yU = 7500] = "PAUSE_TIMEOUT";
+ a[a.YT = 7502] = "INACTIVITY_TIMEOUT";
+ a[a.c_a = 7510] = "AUTHORIZATION_EXPIRED";
+ a[a.IQb = 7520] = "DECRYPT_AUDIO";
+ a[a.z9 = 7600] = "SECURE_STOP_PROMISE_EXPIRED";
+ a[a.y9 = 7601] = "SECURE_STOP_KEY_ERROR";
+ a[a.TUb = 7602] = "SECURE_STOP_VIDEO_ERROR";
+ a[a.EUb = 7603] = "SECURE_STOP_NCCP_ERROR";
+ a[a.FUb = 7604] = "SECURE_STOP_NCCP_PARSE_PAYLOAD_ERROR";
+ a[a.SUb = 7605] = "SECURE_STOP_STORAGE_REMOVE_ERROR";
+ a[a.IUb = 7620] = "SECURE_STOP_PERSISTED_KEY_SESSION_NOT_AVAILABLE";
+ a[a.s6a = 7621] = "SECURE_STOP_PERSISTED_NO_MORE_ERROR";
+ a[a.JUb = 7622] = "SECURE_STOP_PERSISTED_MAX_ATTEMPTS_EXCEEDED";
+ a[a.KUb = 7623] = "SECURE_STOP_PERSISTED_MSE_CREATE_MEDIASOURCE_OPEN";
+ a[a.NUb = 7624] = "SECURE_STOP_PERSISTED_PLAY_MSE_GENERATEKEYREQUEST";
+ a[a.oza = 7625] = "SECURE_STOP_PERSISTED_CREATE_SESSION_WITH_KEY_RELEASE_FAILED";
+ a[a.LUb = 7626] = "SECURE_STOP_PERSISTED_NCCP_FPSAPPDATA";
+ a[a.PUb = 7627] = "SECURE_STOP_PERSISTED_PLIST_PARSE_ERROR";
+ a[a.MUb = 7628] = "SECURE_STOP_PERSISTED_PENDING_KEY_ADDED_EXPIRED";
+ a[a.HUb = 7631] = "SECURE_STOP_PERSISTED_KEY_ERROR";
+ a[a.RUb = 7632] = "SECURE_STOP_PERSISTED_VIDEO_ERROR";
+ a[a.OUb = 7633] = "SECURE_STOP_PERSISTED_PLAY_MSE_KEYSESSION_UPDATE";
+ a[a.GUb = 7634] = "SECURE_STOP_PERSISTED_DRM_NOT_SUPPORTED";
+ a[a.QUb = 7635] = "SECURE_STOP_PERSISTED_UNEXPECTED_MESSAGE_TYPE";
+ a[a.a2a = 7700] = "EME_INVALID_KEYSYSTEM";
+ a[a.ota = 7701] = "EME_CREATE_MEDIAKEYS_SYSTEMACCESS_FAILED";
+ a[a.vT = 7702] = "EME_CREATE_MEDIAKEYS_FAILED";
+ a[a.pta = 7703] = "EME_GENERATEREQUEST_FAILED";
+ a[a.yE = 7704] = "EME_UPDATE_FAILED";
+ a[a.c2a = 7705] = "EME_KEYSESSION_ERROR";
+ a[a.b2a = 7706] = "EME_KEYMESSAGE_EMPTY";
+ a[a.tta = 7707] = "EME_REMOVE_FAILED";
+ a[a.e2a = 7708] = "EME_LOAD_FAILED";
+ a[a.Y1a = 7709] = "EME_CREATE_SESSION_FAILED";
+ a[a.wT = 7710] = "EME_LDL_RENEWAL_ERROR";
+ a[a.qta = 7711] = "EME_INVALID_INITDATA_DATA";
+ a[a.rta = 7712] = "EME_INVALID_LICENSE_DATA";
+ a[a.d2a = 7713] = "EME_LDL_KEYSSION_ALREADY_CLOSED";
+ a[a.dRb = 7714] = "EME_MEDIAKEYS_GENERIC_ERROR";
+ a[a.sta = 7715] = "EME_INVALID_SECURESTOP_DATA";
+ a[a.X1a = 7716] = "EME_CLOSE_FAILED";
+ a[a.w5a = 7800] = "PLAYDATA_STORE_FAILURE";
+ a[a.QTb = 7801] = "PLAYDATA_SEND_FAILURE";
+ a[a.qK = 7900] = "BRANCH_PLAY_FAILURE";
+ a[a.qE = 7901] = "BRANCH_QUEUE_FAILURE";
+ a[a.sra = 7902] = "BRANCH_UPDATE_NEXT_SEGMENT_WEIGHTS_FAILURE";
+ a[a.kTb = 8E3] = "NRDP_REGISTRATION_ACTIVATE_FAILURE";
+ a[a.lTb = 8010] = "NRDP_REGISTRATION_SSO_ACTIVATE_FAILURE";
+ a[a.k5a = 8100] = "PBO_EVENTLOOKUP_FAILURE";
+ a[a.o8 = 8200] = "PLAYGRAPH_ADD_MANIFEST";
+ a[a.x5a = 8201] = "PLAYGRAPH_SEGMENT_NOT_READY";
+ })(a = b.J || (b.J = {}));
+ (function (a) {
+ a[a.nl = 1001] = "UNKNOWN";
+ a[a.Df = 1003] = "EXCEPTION";
+ a[a.F3a = 1004] = "INVALID_DI";
+ a[a.XZa = 1011] = "ASYNCLOAD_EXCEPTION";
+ a[a.YZa = 1013] = "ASYNCLOAD_TIMEOUT";
+ a[a.EPb = 1015] = "ASYNCLOAD_BADCONFIG";
+ a[a.VZa = 1016] = "ASYNCLOAD_COMPONENT_DUPLICATE";
+ a[a.WZa = 1017] = "ASYNCLOAD_COMPONENT_MISSING";
+ a[a.XK = 1101] = "HTTP_UNKNOWN";
+ a[a.O6 = 1102] = "HTTP_XHR";
+ a[a.UK = 1103] = "HTTP_PROTOCOL";
+ a[a.TK = 1104] = "HTTP_OFFLINE";
+ a[a.WK = 1105] = "HTTP_TIMEOUT";
+ a[a.pA = 1106] = "HTTP_READTIMEOUT";
+ a[a.Xw = 1107] = "HTTP_ABORT";
+ a[a.qua = 1108] = "HTTP_PARSE";
+ a[a.mua = 1110] = "HTTP_BAD_URL";
+ a[a.VK = 1111] = "HTTP_PROXY";
+ a[a.Zva = 1203] = "MSE_AUDIO";
+ a[a.$va = 1204] = "MSE_VIDEO";
+ a[a.s4a = 1250] = "MSE_MEDIA_ERR_BASE";
+ a[a.HSb = 1251] = "MSE_MEDIA_ERR_ABORTED";
+ a[a.KSb = 1252] = "MSE_MEDIA_ERR_NETWORK";
+ a[a.ISb = 1253] = "MSE_MEDIA_ERR_DECODE";
+ a[a.LSb = 1254] = "MSE_MEDIA_ERR_SRC_NOT_SUPPORTED";
+ a[a.JSb = 1255] = "MSE_MEDIA_ERR_ENCRYPTED";
+ a[a.Yt = 1260] = "EME_MEDIA_KEYERR_BASE";
+ a[a.jRb = 1261] = "EME_MEDIA_KEYERR_UNKNOWN";
+ a[a.eRb = 1262] = "EME_MEDIA_KEYERR_CLIENT";
+ a[a.iRb = 1263] = "EME_MEDIA_KEYERR_SERVICE";
+ a[a.hRb = 1264] = "EME_MEDIA_KEYERR_OUTPUT";
+ a[a.gRb = 1265] = "EME_MEDIA_KEYERR_HARDWARECHANGE";
+ a[a.fRb = 1266] = "EME_MEDIA_KEYERR_DOMAIN";
+ a[a.kRb = 1269] = "EME_MEDIA_UNAVAILABLE_CDM";
+ a[a.$1a = 1280] = "EME_ERROR_NODRMSESSSION";
+ a[a.Z1a = 1281] = "EME_ERROR_NODRMREQUESTS";
+ a[a.aRb = 1282] = "EME_ERROR_INDIV_FAILED";
+ a[a.bRb = 1283] = "EME_ERROR_UNSUPPORTED_MESSAGETYPE";
+ a[a.xT = 1284] = "EME_TIMEOUT_MESSAGE";
+ a[a.Z5 = 1285] = "EME_TIMEOUT_KEYCHANGE";
+ a[a.a6 = 1286] = "EME_UNDEFINED_DATA";
+ a[a.HK = 1287] = "EME_INVALID_STATE";
+ a[a.cRb = 1288] = "EME_LDL_DOES_NOT_SUPPORT_PRK";
+ a[a.Y5 = 1289] = "EME_EMPTY_DATA";
+ a[a.IK = 1290] = "EME_TIMEOUT";
+ a[a.$Sb = 1303] = "NCCP_METHOD_NOT_SUPPORTED";
+ a[a.cTb = 1305] = "NCCP_PARSEXML";
+ a[a.U5a = 1309] = "PROCESS_EXCEPTION";
+ a[a.bTb = 1311] = "NCCP_NETFLIXID_MISSING";
+ a[a.dTb = 1312] = "NCCP_SECURENETFLIXID_MISSING";
+ a[a.XSb = 1313] = "NCCP_HMAC_MISSING";
+ a[a.WSb = 1315] = "NCCP_HMAC_MISMATCH";
+ a[a.VSb = 1317] = "NCCP_HMAC_FAILED";
+ a[a.USb = 1321] = "NCCP_CLIENTTIME_MISSING";
+ a[a.TSb = 1323] = "NCCP_CLIENTTIME_MISMATCH";
+ a[a.bua = 1331] = "GENERIC";
+ a[a.L4a = 1333] = "NCCP_PROTOCOL_INVALIDDEVICECREDENTIALS";
+ a[a.M4a = 1337] = "NCCP_PROTOCOL_REDIRECT_LOOP";
+ a[a.eTb = 1341] = "NCCP_TRANSACTION";
+ a[a.YSb = 1343] = "NCCP_INVALID_DRMTYPE";
+ a[a.ZSb = 1344] = "NCCP_INVALID_LICENCE_RESPONSE";
+ a[a.aTb = 1345] = "NCCP_MISSING_PAYLOAD";
+ a[a.iUb = 1346] = "PROTOCOL_NOT_INITIALIZED";
+ a[a.hUb = 1347] = "PROTOCOL_MISSING_FIELD";
+ a[a.gUb = 1348] = "PROTOCOL_MISMATCHED_PROFILEGUID";
+ a[a.px = 1402] = "STORAGE_NODATA";
+ a[a.ZUb = 1403] = "STORAGE_EXCEPTION";
+ a[a.gVb = 1405] = "STORAGE_QUOTA_NOT_GRANTED";
+ a[a.hVb = 1407] = "STORAGE_QUOTA_TO_SMALL";
+ a[a.uza = 1411] = "STORAGE_LOAD_ERROR";
+ a[a.G6a = 1412] = "STORAGE_LOAD_TIMEOUT";
+ a[a.vza = 1414] = "STORAGE_SAVE_ERROR";
+ a[a.J6a = 1415] = "STORAGE_SAVE_TIMEOUT";
+ a[a.D9 = 1417] = "STORAGE_DELETE_ERROR";
+ a[a.tza = 1418] = "STORAGE_DELETE_TIMEOUT";
+ a[a.fVb = 1421] = "STORAGE_FS_REQUESTFILESYSTEM";
+ a[a.cVb = 1423] = "STORAGE_FS_GETDIRECTORY";
+ a[a.eVb = 1425] = "STORAGE_FS_READENTRIES";
+ a[a.$Ub = 1427] = "STORAGE_FS_FILEREAD";
+ a[a.bVb = 1429] = "STORAGE_FS_FILEWRITE";
+ a[a.aVb = 1431] = "STORAGE_FS_FILEREMOVE";
+ a[a.dVb = 1432] = "STORAGE_FS_PARSEJSON";
+ a[a.I6a = 1451] = "STORAGE_NO_LOCALSTORAGE";
+ a[a.H6a = 1453] = "STORAGE_LOCALSTORAGE_ACCESS_EXCEPTION";
+ a[a.rTb = 1501] = "NTBA_UNKNOWN";
+ a[a.qTb = 1502] = "NTBA_EXCEPTION";
+ a[a.mTb = 1504] = "NTBA_CRYPTO_KEY";
+ a[a.oTb = 1506] = "NTBA_CRYPTO_OPERATION";
+ a[a.nTb = 1508] = "NTBA_CRYPTO_KEYEXCHANGE";
+ a[a.pTb = 1515] = "NTBA_DECRYPT_UNSUPPORTED";
+ a[a.Bsa = 1553] = "DEVICE_NO_ESN";
+ a[a.A5 = 1555] = "DEVICE_ERROR_GETTING_ESN";
+ a[a.t2a = 1701] = "FORMAT_UNKNOWN";
+ a[a.Sta = 1713] = "FORMAT_XML";
+ a[a.u2a = 1715] = "FORMAT_XML_CONTENT";
+ a[a.s2a = 1721] = "FORMAT_BASE64";
+ a[a.AT = 1723] = "FORMAT_DFXP";
+ a[a.W2a = 1801] = "INDEXDB_OPEN_EXCEPTION";
+ a[a.Bua = 1802] = "INDEXDB_NOT_SUPPORTED";
+ a[a.V2a = 1803] = "INDEXDB_OPEN_ERROR";
+ a[a.Cua = 1804] = "INDEXDB_OPEN_NULL";
+ a[a.U2a = 1805] = "INDEXDB_OPEN_BLOCKED";
+ a[a.X2a = 1807] = "INDEXDB_OPEN_TIMEOUT";
+ a[a.T2a = 1808] = "INDEXDB_INVALID_STORE_STATE";
+ a[a.ZT = 1809] = "INDEXDB_ACCESS_EXCEPTION";
+ a[a.C4a = 1901] = "MSL_UNKNOWN";
+ a[a.v4a = 1911] = "MSL_INIT_NO_MSL";
+ a[a.bwa = 1913] = "MSL_INIT_ERROR";
+ a[a.w4a = 1915] = "MSL_INIT_NO_WEBCRYPTO";
+ a[a.t4a = 1931] = "MSL_ERROR";
+ a[a.B4a = 1933] = "MSL_REQUEST_TIMEOUT";
+ a[a.A4a = 1934] = "MSL_READ_TIMEOUT";
+ a[a.u4a = 1935] = "MSL_ERROR_HEADER";
+ a[a.MSb = 1936] = "MSL_ERROR_ENVELOPE";
+ a[a.NSb = 1937] = "MSL_ERROR_MISSING_PAYLOAD";
+ a[a.awa = 1957] = "MSL_ERROR_REAUTH";
+ a[a.r$ = 2103] = "WEBCRYPTO_MISSING";
+ a[a.p7a = 2105] = "WEBCRYPTOKEYS_MISSING";
+ a[a.q7a = 2107] = "WEBCRYPTO_IFRAME_LOAD_ERROR";
+ a[a.oQb = 2200] = "CACHEDDATA_PARSEJSON";
+ a[a.Ira = 2201] = "CACHEDDATA_UNSUPPORTED_VERSION";
+ a[a.pQb = 2202] = "CACHEDDATA_UPGRADE_FAILED";
+ a[a.Sw = 2203] = "CACHEDDATA_INVALID_FORMAT";
+ a[a.BPb = 3E3] = "ACCOUNT_CHANGE_INFLIGHT";
+ a[a.CPb = 3001] = "ACCOUNT_INVALID";
+ a[a.SQb = 3100] = "DOWNLOADED_MANIFEST_UNAVAILABLE";
+ a[a.RQb = 3101] = "DOWNLOADED_MANIFEST_PARSE_EXCEPTION";
+ a[a.PQb = 3200] = "DOWNLOADED_LICENSE_UNAVAILABLE";
+ a[a.QQb = 3201] = "DOWNLOADED_LICENSE_UNUSEABLE";
+ a[a.OQb = 3202] = "DOWNLOADED_LICENSE_EXCEPTION";
+ a[a.iVb = 3300] = "STORAGE_VA_LOAD_ERROR";
+ a[a.jVb = 3301] = "STORAGE_VA_LOAD_TIMEOUT";
+ a[a.mVb = 3302] = "STORAGE_VA_SAVE_ERROR";
+ a[a.nVb = 3303] = "STORAGE_VA_SAVE_TIMEOUT";
+ a[a.kVb = 3304] = "STORAGE_VA_REMOVE_ERROR";
+ a[a.lVb = 3305] = "STORAGE_VA_REMOVE_TIMEOUT";
+ a[a.l8 = 3077] = "PBO_DEVICE_EOL_WARNING";
+ a[a.hxa = 3078] = "PBO_DEVICE_EOL_FINAL";
+ a[a.kxa = 3100] = "PBO_DEVICE_RESET";
+ a[a.jxa = 3101] = "PBO_DEVICE_RELOAD";
+ a[a.ixa = 3102] = "PBO_DEVICE_EXIT";
+ a[a.r5a = 5003] = "PBO_VIEWABLE_OUT_OF_AVAILABILITY_WINDOW";
+ a[a.f5a = 5005] = "PBO_ACCOUNT_ON_HOLD";
+ a[a.j5a = 5006] = "PBO_CONCURRENT_STREAM_QUOTA_EXCEEDED";
+ a[a.lxa = 5007] = "PBO_INCORRECT_PIN";
+ a[a.p5a = 5008] = "PBO_MOBILE_ONLY";
+ a[a.s5a = 5009] = "PBO_VIEWABLE_RESTRICTED_BY_PROFILE";
+ a[a.l5a = 5033] = "PBO_INSUFFICIENT_MATURITY_LEVEL";
+ a[a.h5a = 5059] = "PBO_BLACKLISTED_IP";
+ a[a.g5a = 5070] = "PBO_AGE_VERIFICATION_REQUIRED";
+ a[a.i5a = 5080] = "PBO_CHOICE_MAP_ERROR";
+ a[a.q5a = 5090] = "PBO_RESTRICTED_TO_TESTERS";
+ a[a.n5a = 5091] = "PBO_MALFORMED_REQUEST";
+ a[a.m5a = 5092] = "PBO_INVALID_SERVICE_VERSION";
+ a[a.o5a = 5093] = "PBO_MDX_INVALID_CTICKET";
+ a[a.Q0a = 5100] = "DECODER_TIMEOUT_BUFFERING";
+ a[a.R0a = 5101] = "DECODER_TIMEOUT_PRESENTING";
+ a[a.H1a = 5200] = "DOWNLOADER_IO_ERROR";
+ a[a.rra = 5300] = "BRANCHING_SEGMENT_NOTFOUND";
+ a[a.E_a = 5301] = "BRANCHING_PRESENTER_UNINITIALIZED";
+ a[a.SPb = 5302] = "BRANCHING_SEGMENT_STREAMING_NOT_STARTED";
+ a[a.a5 = 5303] = "BRANCHING_ASE_UNINITIALIZED";
+ a[a.B_a = 5304] = "BRANCHING_ASE_FAILURE";
+ a[a.PPb = 5305] = "BRANCHING_MOMENT_FAILURE";
+ a[a.C_a = 5306] = "BRANCHING_CURRENT_SEGMENT_UNINITIALIZED";
+ a[a.RPb = 5307] = "BRANCHING_SEGMENT_LASTPTS_UNINIITALIZED";
+ a[a.F_a = 5308] = "BRANCHING_SEEK_THREW";
+ a[a.QPb = 5309] = "BRANCHING_PLAY_NOTENOUGHNEXTSEGMENTS";
+ a[a.D_a = 5310] = "BRANCHING_PLAY_TIMEDOUT";
+ a[a.G_a = 5311] = "BRANCHING_SEGMENT_ALREADYQUEUED";
+ a[a.H_a = 5312] = "BRANCHING_UPDATE_NEXT_SEGMENT_WEIGHTS_THREW";
+ a[a.NZa = 5400] = "ADD_MANIFEST_STREAMING_SESSION_ERROR";
+ a[a.MZa = 5401] = "ADD_MANIFEST_NO_STREAMING_SESSION";
+ a[a.oVb = 5500] = "STUDIO_MUXED_MANIFEST";
+ })(c = b.I || (b.I = {}));
+ (function (a) {
+ a[a.cQb = 5003] = "BR_VIEWABLE_OUT_OF_AVAILABILITY_WINDOW";
+ a[a.TPb = 5005] = "BR_ACCOUNT_ON_HOLD";
+ a[a.XPb = 5006] = "BR_CONCURRENT_STREAM_QUOTA_EXCEEDED";
+ a[a.$Pb = 5033] = "BR_INSUFFICIENT_MATURITY_LEVEL";
+ a[a.WPb = 5059] = "BR_BLACKLISTED_IP";
+ a[a.UPb = 5070] = "BR_AGE_VERIFICATION_REQUIRED";
+ a[a.aQb = 2204] = "BR_PLAYBACK_CONTEXT_CREATION";
+ a[a.YPb = 2205] = "BR_DRM_LICENSE_AQUISITION";
+ a[a.bQb = 2206] = "BR_PLAYBACK_SERVICE_ERROR";
+ a[a.ZPb = 2207] = "BR_ENDPOINT_ERROR";
+ a[a.VPb = 2208] = "BR_AUTHORIZATION_ERROR";
+ })(b.Lta || (b.Lta = {}));
+ b.XT = {
+ O_a: "400",
+ KVb: "401",
+ vxa: "413"
+ };
+ b.kU = {
+ HRb: 1,
+ DVb: 2,
+ nRb: 3,
+ JVb: 4,
+ wSb: 5,
+ mRb: 6,
+ i$: 7,
+ h2a: 8,
+ wUb: 9,
+ WUb: 10
+ };
+ (function (a) {
+ a[a.OTb = 21] = "PAIRING_CONTROLLER_CTICKET_EXPIRED";
+ a[a.PTb = 98] = "PAIRING_UNKNOWN_ERROR";
+ })(b.nwa || (b.nwa = {}));
+ b.o2a = function (a) {
+ return 7100 <= a && 7200 > a;
+ };
+ b.Jta = function (b) {
+ return b == a.yU || b == a.YT;
+ };
+ b.Mta = function (a) {
+ return 1100 <= a && 1199 >= a;
+ };
+ b.q2a = function (a) {
+ return 1300 <= a && 1399 >= a;
+ };
+ b.p2a = function (a) {
+ return 1900 <= a && 1999 >= a;
+ };
+ b.g6 = function (a, b) {
+ return 1 <= a && 9 >= a ? b + a : b;
+ };
+ b.Nta = function (a) {
+ return b.g6(a, c.s4a);
+ };
+ b.h6 = function (a) {
+ return b.g6(a, c.Yt);
+ };
+ b.Vp = function (a) {
+ var b,
+ r,
+ h;
+ b = {};
+ r = a.errorExternalCode || a.Fe;
+ h = a.errorDetails || a.ab;
+ b.ErrorSubCode = a.errorSubCode || a.ja || c.nl;
+ r && (b.ErrorExternalCode = r);
+ h && (b.ErrorDetails = h);
+ return b;
+ };
+ }, function (d, b, a) {
+ var l;
+ function c(a) {
+ return l.DL.apply(this, arguments) || this;
+ }
+ function k(a) {
+ return new l.Wp(a, b.ia);
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Cc = b.wua = b.V7 = b.ll = b.ia = b.zA = b.timestamp = b.Ztb = b.dQ = b.qh = b.Gb = b.cTa = b.dzb = b.Y6a = void 0;
+ l = a(515);
+ N(c, l.DL);
+ b.Y6a = c;
+ b.dzb = function (a) {
+ return new l.Wp(a, b.zA);
+ };
+ b.cTa = function (a) {
+ return new l.Wp(a * b.ll.Af, b.zA);
+ };
+ b.Gb = k;
+ b.qh = function (a) {
+ return new l.Wp(a, b.ll);
+ };
+ b.dQ = function (a) {
+ return new l.Wp(a, b.V7);
+ };
+ b.Ztb = function (a) {
+ return new l.Wp(a, b.wua);
+ };
+ b.timestamp = function (a) {
+ return k(a);
+ };
+ b.zA = new c(1, "\u03bcs");
+ b.ia = new c(1E3, "ms", b.zA);
+ b.ll = new c(1E3 * b.ia.Af, "s", b.zA);
+ b.V7 = new c(60 * b.ll.Af, "min", b.zA);
+ b.wua = new c(60 * b.V7.Af, "hr", b.zA);
+ b.Cc = k(0);
+ }, function (d) {
+ d.P = {
+ QH: function (b) {
+ for (var a in b) {
+ b.hasOwnProperty(a) && (this[a] = b[a]);
+ }
+ },
+ reset: function () {}
+ };
+ }, function (d, b, a) {
+ var c,
+ k;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.assert = void 0;
+ c = a(0);
+ k = (function (a) {
+ function b() {
+ return null !== a && a.apply(this, arguments) || this;
+ }
+ c.__extends(b, a);
+ return b;
+ })(Error);
+ b.assert = function (a, b) {
+ if (!a)
+ throw new k(b || "Assertion failed");
+ };
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r,
+ h,
+ p,
+ m;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.ba = b.sya = b.IO = b.Gg = b.Fh = b.log = b.sf = b.AH = b.gAa = b.GFa = b.pm = b.ns = b.Fc = b.xeb = b.Dca = b.veb = b.web = b.Vh = b.bK = b.wS = b.Ng = void 0;
+ c = a(277);
+ d = a(7);
+ k = a(30);
+ l = a(100);
+ r = a(90);
+ h = a(42);
+ p = a(23);
+ m = a(115);
+ b.Ng = c.jc.get(l.tx);
+ b.wS = b.Ng.encode.bind(b.Ng);
+ b.bK = b.Ng.decode.bind(b.Ng);
+ b.Vh = c.jc.get(r.Ut);
+ b.web = b.Vh.encode.bind(b.Vh);
+ b.veb = b.Vh.decode.bind(b.Vh);
+ b.Dca = b.Vh.zv.bind(b.Vh);
+ b.xeb = b.Vh.MXa.bind(b.Vh);
+ b.Fc = c.jc.get(h.Ui);
+ b.ns = function (a) {
+ a = p.Td(a) ? b.bK(a) : a;
+ return b.Fc.encode(a);
+ };
+ b.pm = b.Fc.decode.bind(b.Fc);
+ b.GFa = function (a) {
+ return b.wS(b.pm(a));
+ };
+ b.gAa = a(566);
+ b.AH = function () {
+ return c.jc.get(k.Vw);
+ };
+ b.sf = c.jc.get(d.Jb);
+ b.log = b.sf.xb("General");
+ b.Fh = function (a, m) {
+ return b.sf.xb(a, void 0, m);
+ };
+ b.Gg = function (a, m, h) {
+ return b.sf.xb(m, a, h);
+ };
+ b.IO = function (a, m, h, c) {
+ return b.sf.xb(a, void 0, c, m, h);
+ };
+ b.sya = function (a, b, h) {
+ return c.jc.get(m.GA)(a, b, h).zpa();
+ };
+ b.ba = c.jc;
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.FK = b.Jb = b.r7 = b.pi = void 0;
+ d = b.pi || (b.pi = {});
+ d[d.r2a = 0] = "FATAL";
+ d[d.ERROR = 1] = "ERROR";
+ d[d.q$ = 2] = "WARN";
+ d[d.S6 = 3] = "INFO";
+ d[d.lAa = 4] = "TRACE";
+ d[d.Oa = 5] = "DEBUG";
+ b.r7 = "LogFieldBuilderFactorySymbol";
+ b.Jb = "LoggerFactorySymbol";
+ b.FK = {};
+ }, function (d) {
+ var b;
+ b = {
+ na: function (a) {
+ return "number" === typeof a;
+ },
+ df: function (a) {
+ return "object" === typeof a;
+ },
+ Td: function (a) {
+ return "string" === typeof a;
+ },
+ X: function (a) {
+ return "undefined" === typeof a;
+ },
+ jvb: function (a) {
+ return "boolean" === typeof a;
+ },
+ Zb: function (a) {
+ return "function" === typeof a;
+ },
+ Pa: function (a) {
+ return null === a;
+ },
+ isArray: function (a) {
+ return "[object Array]" === Object.prototype.toString.call(a);
+ },
+ isFinite: function (a) {
+ return isFinite(a) && !isNaN(parseFloat(a));
+ },
+ has: function (a, b) {
+ return null !== a && "undefined" !== typeof a && Object.prototype.hasOwnProperty.call(a, b);
+ },
+ ZBb: function (a) {
+ var c,
+ k;
+ k = [];
+ if (!b.df(a))
+ throw new TypeError("Object.pairs called on non-object");
+ for (c in a) {
+ a.hasOwnProperty(c) && k.push([c, a[c]]);
+ }
+ return k;
+ }
+ };
+ b.ee = b.forEach = function (a, c, k) {
+ if (null === a || "undefined" === typeof a)
+ return a;
+ if (a.length === +a.length)
+ for (var l = 0, r = a.length; l < r; l++) {
+ c.call(k, a[l], l, a);
+ }
+ else
+ for (l in a) {
+ b.has(a, l) && c.call(k, a[l], l, a);
+ }
+ return a;
+ };
+ d.P = b;
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Jja = b.localStorage = b.Fub = b.indexedDB = b.pU = b.On = b.gu = b.SE = b.TE = b.URL = b.sU = b.qU = b.mwa = b.fU = b.vA = b.wA = b.hn = b.am = b.Th = b.I7 = b.bu = b.dAa = b.vE = b.g8 = b.EA = b.pop = b.forEach = b.filter = b.reduce = b.every = b.slice = b.map = b.sort = b.Ru = b.O4a = b.Ae = b.Mr = b.Nr = b.rU = b.bm = b.Zi = void 0;
+ d = "undefined" === typeof t ? {}
+ : t;
+ b.Zi = d.navigator || ({});
+ b.bm = b.Zi.userAgent;
+ b.rU = d.location;
+ b.Nr = d.screen;
+ b.Mr = d.performance;
+ b.Ae = d.document || ({});
+ b.O4a = b.Ae.documentElement;
+ b.Ru = Array.prototype;
+ b.sort = b.Ru.sort;
+ b.map = b.Ru.map;
+ b.slice = b.Ru.slice;
+ b.every = b.Ru.every;
+ b.reduce = b.Ru.reduce;
+ b.filter = b.Ru.filter;
+ b.forEach = b.Ru.forEach;
+ b.pop = b.Ru.pop;
+ b.EA = Object.create;
+ b.g8 = Object.keys;
+ b.vE = Date.now;
+ b.dAa = String.fromCharCode;
+ b.bu = Math.floor;
+ b.I7 = Math.ceil;
+ b.Th = Math.round;
+ b.am = Math.max;
+ b.hn = Math.min;
+ b.wA = Math.random;
+ b.vA = Math.abs;
+ b.fU = Math.pow;
+ b.mwa = Math.sqrt;
+ b.qU = d.escape;
+ b.sU = d.unescape;
+ b.URL = d.URL || d.webkitURL;
+ b.TE = d.MediaSource || d.WebKitMediaSource;
+ b.SE = d.WebKitMediaKeys || d.MSMediaKeys || d.MediaKeys;
+ b.gu = d.nfCrypto || d.webkitCrypto || d.msCrypto || d.crypto;
+ b.On = b.gu && (b.gu.webkitSubtle || b.gu.subtle);
+ b.pU = d.nfCryptokeys || d.webkitCryptokeys || d.msCryptokeys || d.cryptokeys;
+ try {
+ b.indexedDB = d.indexedDB;
+ } catch (a) {
+ b.Fub = a || "noex";
+ }
+ try {
+ b.localStorage = d.localStorage;
+ } catch (a) {
+ b.Jja = a || "noex";
+ }
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.r9 = b.NE = b.dU = b.Y_a = b.T_a = b.V_a = b.W_a = b.Ara = b.S_a = b.U_a = b.zra = b.X_a = b.d0a = b.b0a = b.c0a = b.a0a = b.T1a = b.S1a = b.ita = b.h4a = b.i4a = b.Jr = b.Wva = b.Xva = b.gx = b.kta = b.U1a = b.U5 = b.uT = b.Z4a = b.z6a = b.Sva = b.N_a = b.ysa = b.wU = b.DA = b.vU = b.Rva = b.au = b.M_a = b.qra = b.V3a = b.l7a = b.g4a = b.f4a = b.r6a = b.q6a = b.Bj = b.pd = b.Zya = b.ff = void 0;
+ b.ff = function () {};
+ b.Zya = function () {
+ return !0;
+ };
+ b.pd = {
+ U: !0
+ };
+ b.Bj = 1E3;
+ b.q6a = 86400;
+ b.r6a = 604800;
+ b.f4a = 1E4;
+ b.g4a = 1E7;
+ b.l7a = 1.5;
+ b.V3a = .128;
+ b.qra = 7.8125;
+ b.M_a = 128;
+ b.au = 145152E5;
+ b.Rva = 1E5;
+ b.vU = "$netflix$player$order";
+ b.DA = -1;
+ b.wU = 1;
+ b.ysa = ["en-US"];
+ b.N_a = 8;
+ b.Sva = 65535;
+ b.z6a = 65536;
+ b.Z4a = Number.MAX_VALUE;
+ b.uT = "playready";
+ b.U5 = "widevine";
+ b.U1a = "fps";
+ b.kta = "clearkey";
+ b.gx = 'audio/mp4; codecs="mp4a.40.5"';
+ b.Xva = 'audio/mp4; codecs="mp4a.40.42"';
+ b.Wva = 'audio/mp4; codecs="mp4a.a6"';
+ b.Jr = 'video/mp4; codecs="avc1.640028"';
+ b.i4a = 'video/mp4; codecs="hev1.2.6.L153.B0"';
+ b.h4a = 'video/mp4; codecs="dvhe.01000000"';
+ b.ita = "9A04F079-9840-4286-AB92-E65BE0885F95";
+ b.S1a = "29701FE4-3CC7-4A34-8C5B-AE90C7439A47";
+ b.T1a = "EDEF8BA9-79D6-4ACE-A3C8-27DCD51D21ED";
+ b.a0a = ["4E657466-6C69-7850-6966-665374726D21", "4E657466-6C69-7848-6165-6465722E7632"];
+ b.c0a = "A2394F52-5A9B-4F14-A244-6C427C648DF4";
+ b.b0a = "4E657466-6C69-7846-7261-6D6552617465";
+ b.d0a = "8974DBCE-7BE7-4C51-84F9-7148F9882554";
+ b.X_a = "mp4a";
+ b.zra = "enca";
+ b.U_a = "ec-3";
+ b.S_a = "avc1";
+ b.Ara = "encv";
+ b.W_a = "hvcC";
+ b.V_a = "hev1";
+ b.T_a = "dvhe";
+ b.Y_a = "vp09";
+ b.dU = 0;
+ b.NE = 1;
+ b.r9 = "position:relative;width:100%;height:100%;overflow:hidden";
+ }, function (d, b, a) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.pL = b.cua = b.eBa = void 0;
+ d = a(0);
+ d.__exportStar(a(906), b);
+ d.__exportStar(a(111), b);
+ d.__exportStar(a(27), b);
+ d.__exportStar(a(904), b);
+ d.__exportStar(a(903), b);
+ d.__exportStar(a(902), b);
+ d = a(901);
+ b.eBa = d;
+ d = a(900);
+ b.cua = d;
+ a = a(422);
+ b.pL = a;
+ }, function (d, b, a) {
+ var l,
+ r,
+ h,
+ p,
+ m,
+ f,
+ u,
+ w,
+ A,
+ K,
+ C,
+ M,
+ H,
+ g,
+ T,
+ S,
+ n,
+ Z;
+ function c(a) {
+ return (a = b.config.MMb[k(a)]) ? a : {};
+ }
+ function k(a) {
+ if (a) {
+ if (0 <= a.indexOf("billboard"))
+ return "billboard";
+ if (0 <= a.toLowerCase().indexOf("preplay"))
+ return "preplay";
+ if (0 <= a.indexOf("embedded"))
+ return "embedded";
+ if (0 <= a.indexOf("content-sampling"))
+ return "content-sampling";
+ if (0 <= a.indexOf("video-merch-bob-horizontal"))
+ return "video-merch-bob-horizontal";
+ if (0 <= a.indexOf("mini-modal-horizontal"))
+ return "mini-modal-horizontal";
+ if (0 <= a.indexOf("standard"))
+ return "standard";
+ }
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.chb = b.dhb = b.Gda = b.Hda = b.bhb = b.gHa = b.ahb = b.hHa = b.Fda = b.config = void 0;
+ l = a(10);
+ r = a(46);
+ h = a(6);
+ p = a(34);
+ m = a(17);
+ a(23);
+ f = a(30);
+ u = a(59);
+ w = a(22);
+ a(7);
+ A = a(9);
+ K = a(39);
+ C = a(15);
+ M = a(171);
+ H = a(47);
+ g = a(62);
+ T = a(142);
+ S = a(50);
+ n = a(3);
+ Z = a(32);
+ b.hHa = function (a, c) {
+ var z,
+ E,
+ Ba,
+ lb,
+ hb,
+ Jb,
+ Fa,
+ N,
+ mb;
+ function k(a, b) {
+ w.Ed(a, function (a, f) {
+ C.Zb(f) ? b[a] = f.call(void 0, b[a]) : C.df(f) && (b[a] = b[a] || ({}), k(f, b[a]));
+ });
+ }
+ function d(a, b, f, h) {
+ for (var c = [], p = 3; p < arguments.length; ++p) {
+ c[p - 3] = arguments[p];
+ }
+ return function (h) {
+ C.dc(h) && (f = h);
+ m.Ra(C.Zb(a));
+ return a.apply(void 0, [].concat([b, f], ca(c)));
+ };
+ }
+ function G(a) {
+ a = a.toLowerCase();
+ lb.hasOwnProperty(a) && (Ba[a] = lb[a], hb[a] = lb[a]);
+ return a;
+ }
+ function aa(a, b, f) {
+ var c;
+ a = a.toLowerCase();
+ if (Ba.hasOwnProperty(a)) {
+ c = Ba[a];
+ try {
+ c = f ? f(c) : c;
+ } catch (Sc) {
+ c = void 0;
+ }
+ if (void 0 !== c)
+ return c;
+ m.Ra(!1);
+ h.log.error("Invalid configuration value. Name: " + a);
+ }
+ return b;
+ }
+ function q(a, b, f, m) {
+ return aa(a, b, function (a) {
+ C.Td(a) && (a = w.Ud(a));
+ if (C.bOa(a, f, m))
+ return a;
+ });
+ }
+ function B(a, b, f, m) {
+ return aa(a, b, function (a) {
+ C.Td(a) && (a = w.Ud(a));
+ if (C.Pv(a, f, m))
+ return a;
+ });
+ }
+ function V(a, b, f, m) {
+ return aa(a, b, function (a) {
+ C.Td(a) && (a = parseFloat(a));
+ if (C.na(a, f, m))
+ return a;
+ });
+ }
+ function ha(a, b, f) {
+ return aa(a, b, function (a) {
+ if (f ? f.test(a) : C.Td(a))
+ return a;
+ });
+ }
+ function P(a, b) {
+ return aa(a, b, function (a) {
+ if ("true" == a || !0 === a)
+ return !0;
+ if ("false" == a || !1 === a)
+ return !1;
+ });
+ }
+ function Ha(a, b) {
+ return aa(a, b, function (a) {
+ if (C.Td(a))
+ return JSON.parse(A.sU(a));
+ if (C.df(a))
+ return a;
+ });
+ }
+ function ja(a, b, f, m, h, c) {
+ var p;
+ a = a.toLowerCase();
+ Ba.hasOwnProperty(a) && (p = Ba[a]);
+ if (!C.dc(p))
+ return b;
+ if (C.Td(p))
+ if (p[0] !== f)
+ p = m(p);
+ else
+ try {
+ p = JSON.parse(A.sU(p));
+ } catch (wb) {
+ p = void 0;
+ }
+ if (void 0 === p)
+ return b;
+ for (a = 0; a < h.length; a++) {
+ if (!h[a](p))
+ return b;
+ }
+ return c ? c(p) : p;
+ }
+ function ya(a, b, f, m, h) {
+ return ja(a, b, "[", function (a) {
+ a = a.split("|");
+ for (var b = a.length; b--; ) {
+ a[b] = w.Ud(a[b]);
+ }
+ return a;
+ }, [function (a) {
+ return C.isArray(a) && 0 < a.length;
+ }, function (a) {
+ for (var b = a.length; b--; ) {
+ if (!C.Pv(a[b], f, m))
+ return !1;
+ }
+ return !0;
+ }, function (a) {
+ return void 0 === h || a.length >= h;
+ }
+ ]);
+ }
+ function za(a, b) {
+ return ja(a, b, "[", function (a) {
+ a = C.isArray(a) ? a : a.split("|");
+ for (var b = a.length; b--; ) {
+ try {
+ a[b] = JSON.parse(A.sU(a[b]));
+ } catch (Sc) {
+ a = void 0;
+ break;
+ }
+ }
+ return a;
+ }, [function (a) {
+ return C.isArray(a) && 0 < a.length;
+ }, function (a) {
+ for (var b = a.length; b--; ) {
+ if (!C.dc(a[b]) || !C.df(a[b]))
+ return !1;
+ }
+ return !0;
+ }
+ ]);
+ }
+ function ma(a, b, f, m) {
+ return ja(a, b, "[", function (a) {
+ return C.isArray(a) ? a : a.split("|");
+ }, [function (a) {
+ return C.isArray(a) && 0 < a.length;
+ }, function (a) {
+ for (var b = a.length; b--; ) {
+ if (f ? !f.test(a[b]) : !C.Qv(a[b]))
+ return !1;
+ }
+ return !0;
+ }, function (a) {
+ return void 0 === m || a.length >= m;
+ }
+ ]);
+ }
+ function Ua(a, b, f) {
+ return ja(a, b, "{", function (a) {
+ var b,
+ m,
+ h;
+ b = {};
+ a = a.split(";");
+ for (var f = a.length; f--; ) {
+ m = a[f];
+ h = m.indexOf(":");
+ if (0 >= h)
+ return;
+ b[m.substring(0, h)] = m.substring(h + 1);
+ }
+ return b;
+ }, [function (a) {
+ return C.df(a) && 0 < Object.keys(a).length;
+ }, function (a) {
+ if (f)
+ for (var b in a) {
+ if (!f.test(a[b]))
+ return !1;
+ }
+ return !0;
+ }
+ ], function (a) {
+ var f;
+ f = {};
+ w.yb(f, b);
+ w.yb(f, a);
+ return f;
+ });
+ }
+ function gb(a) {
+ var b;
+ b = [];
+ w.Ed(a, function (a, f) {
+ var m;
+ try {
+ m = "videoapp" === a.toLowerCase() ? "[object object]" : JSON.stringify(f);
+ } catch (Ib) {
+ m = "cantparse";
+ }
+ b.push(a + "=" + m);
+ });
+ return b.join("\n");
+ }
+ z = /^[0-9]+[%]?$/;
+ E = /^[0-9]*$/;
+ hb = {};
+ Jb = h.ba.get(p.kl);
+ Fa = h.ba.get(T.ZE);
+ (function (b) {
+ function f(a) {
+ a.split(",").forEach(function (a) {
+ var b;
+ b = a.indexOf("=");
+ 0 < b && (Ba[a.substring(0, b).toLowerCase()] = a.substring(b + 1));
+ });
+ }
+ Ba = {};
+ w.yb(Ba, b);
+ a && a.length && A.forEach.call(a, function (a) {
+ C.Td(a) ? f(a) : C.df(a) && w.yb(Ba, a, {
+ hI: !0
+ });
+ });
+ lb = w.yb({}, r.e_(), {
+ hI: !0
+ });
+ if (b = r.OTa().cadmiumconfig)
+ (h.log.info("Config cookie loaded", b), f(b));
+ if (h.ba.get(Z.aj).Scb || Ba.istestaccount)
+ (w.yb(Ba, lb), hb = lb);
+ "clearkey" != ha("drmType") || Ba.keysystemid || (Ba.keysystemid = (t.WebKitMediaKeys || HTMLVideoElement.prototype.webkitGenerateKeyRequest ? "webkit-" : HTMLVideoElement.prototype.msSetMediaKeys ? "ms-" : "") + "org.w3.clearkey");
+ })(c);
+ b.config = {};
+ N = {
+ Tmb: d(P, G("enableXHEAAC"), !1),
+ ffa: d(P, G("enableDDPlus20"), !0),
+ efa: d(P, G("enableDDPlus"), !0),
+ qO: d(P, G("enableDDPlusAtmos"), !1),
+ Gmb: d(P, G("enableLSSDH"), !0),
+ Bmb: d(P, G("enableHEVC"), !1),
+ ZRa: d(P, G("overrideEnableHEVC"), !1),
+ hfa: d(P, G("enableHDR"), !1),
+ YRa: d(P, G("overrideEnableHDR"), !1),
+ dfa: d(P, G("enableAVCHigh"), Fa.dfa),
+ W1: d(P, G("overrideEnableAVCHigh"), Fa.W1),
+ Rmb: d(P, G("enableVP9"), !1),
+ $Ra: d(P, G("overrideEnableVP9"), !1),
+ wmb: d(P, G("enableAV1"), !1),
+ XRa: d(P, G("overrideEnableAV1"), !1),
+ Lmb: d(P, G("enablePRK"), !1),
+ Cmb: d(P, G("enableHWDRM"), !1),
+ Emb: d(P, G("enableImageSubs"), !0),
+ bN: d(ma, G("audioProfiles"), Fa.bN),
+ QXb: d(P, G("disableHD"), !1),
+ D4: d(B, "videoCapabilityDetectorType", f.Dj.Uw),
+ qca: d(B, "audioCapabilityDetectorType", f.Ar.Uw),
+ DS: d(ma, G("videoProfiles"), Fa.DS),
+ obb: d(ma, G("timedTextProfiles"), Fa.Lt),
+ Lt: function () {
+ return N.obb().filter(function (a) {
+ return a === u.ml.B5 ? N.Gmb() : a === u.ml.RE ? N.Emb() : !0;
+ });
+ },
+ endpoint: d(P, G("endpoint"), !1),
+ version: d(ha, "version", "unknown"),
+ QVa: d(P, G("setMediaKeysEarly"), !1),
+ u_b: d(P, G("nrdpPersistCookiesToIndexDB"), !1),
+ yIa: d(P, G("doNotPerformLdlOnPlaybackCreate"), !1),
+ zIa: d(P, G("doNotPerformLdlOnPlaybackStart"), !1),
+ RYa: d(P, G("useHdcpLevelOnCast"), !1),
+ Dmb: d(P, G("enableHdcp"), !1),
+ Ap: d(P, G("prepareCadmium"), !1),
+ Obb: d(P, G("acceptManifestOnPrepareItemParams"), !0),
+ bTa: d(Ha, "ppmconfig", {
+ maxNumberTitlesScheduled: 1
+ }),
+ pDb: d(P, G("playerPredictionModelV2"), !0),
+ iH: d(P, G("enableLdlPrefetch"), !1),
+ SY: d(P, G("enableGetHeadersAndMediaPrefetch"), !1),
+ dO: d(P, G("deleteCachedManifestOnPlayback"), !1),
+ fO: d(P, G("deleteOtherManifestCacheOnCreate"), !1),
+ eO: d(P, G("deleteOtherLdlCacheOnCreate"), !1),
+ JCb: d(B, G("periodicPrepareLogsIntervalMilliseconds"), 36E5),
+ XDb: d(B, G("prepareManifestCacheMaxCount"), 50),
+ VDb: d(B, G("prepareLdlCacheMaxCount"), 30),
+ jTa: d(B, G("prepareManifestExpiryMilliseconds"), 12E5),
+ WDb: d(B, G("prepareLdlExpiryMilliseconds"), 78E4),
+ iTa: d(ha, G("prepareInsertStrategyPersistentTasks"), "append", /^(prepend|append|ignore)$/),
+ t1b: d(Ha, "videoApp"),
+ Gz: d(Ha, "storageRules"),
+ cpb: d(P, "ftlEnabled", !0),
+ ria: d(B, G("imageSubsResolution"), 0),
+ tub: d(B, G("imageSubsMaxBuffer"), Fa.yyb.ca(S.Cr), 0),
+ BN: d(P, G("captureBatteryStatus"), !1),
+ Fpb: d(B, G("getBatteryApiTimeoutMilliseconds"), 5E3),
+ he: d(ha, G("keySystemId"), Fa.he),
+ KOa: d(ma, G("keySystemList"), void 0, void 0),
+ hzb: d(B, G("hdcpGlobalTimeout1"), 1E4),
+ izb: d(B, G("hdcpGlobalTimeout2"), 1E4),
+ WZb: d(B, G("hdcpQueryTimeout1"), 1E3),
+ XZb: d(B, G("hdcpQueryTimeout2"), 1E3),
+ jzb: d(B, G("hdcpQueryTimeout2"), 100),
+ kzb: d(P, G("microsoftHwdrmRequiresHevc"), !1),
+ ezb: d(P, G("microsoftEnableDeviceInfo"), !1),
+ fzb: d(P, G("microsoftEnableHardwareInfo"), !1),
+ gzb: d(P, G("microsoftEnableHardwareReset"), !1),
+ NNb: d(P, G("useHevcCodecForDolbyVision"), !1),
+ Dxb: d(P, "logMediaPipelineStatus", !1),
+ cR: d(P, G("renderDomDiagnostics"), !0),
+ kPa: function () {
+ return -1;
+ },
+ gI: d(q, G("logDisplayMaxEntryCount"), Fa.gI, -1),
+ Kxb: d(q, G("logToConsoleLevel"), -1),
+ OWb: d(q, G("bladerunnerCmdHistorySize"), 10),
+ Ds: function () {
+ return Jb.Ds;
+ },
+ DNb: d(P, "upgradeNetflixId", !0),
+ Oja: d(P, "logErrorIfEsnNotProvided", !0),
+ rfa: d(P, "enforceSinglePlayback", Fa.rfa),
+ XY: d(P, "enforceSingleSession", Fa.XY),
+ wda: d(P, "closeOtherPlaybacks", !0),
+ Hdb: d(B, "asyncLoadTimeout", 15E3, 1),
+ Sxb: d(B, "mainThreadMonitorPollRate", 0),
+ t_b: d(P, "nrdpAlwaysShowUIOverlay", !1),
+ v_b: d(P, "nrdpValidateSSOTokens", !0),
+ E0b: d(P, "showNrdpDebugBadging", !1),
+ E4: function () {
+ return Jb.E4;
+ },
+ Jy: function () {
+ return Jb.Jy;
+ },
+ CG: function () {
+ return Jb.CG;
+ },
+ iE: function () {
+ return Jb.iE;
+ },
+ dZa: d(B, G("verbosePlaybackInfoDenominator"), 0),
+ N2: d(P, "renderTimedText", !0),
+ IDb: d(P, "preBufferTimedText", !0),
+ Qnb: d(P, "fatalOnTimedTextLoadError", !0),
+ DXa: d(Ua, "timedTextStyleDefaults", {}),
+ vpa: d(Ua, "timedTextStyleOverrides", {}),
+ upa: d(Ua, "timedTextFontFamilyMapping", Fa.upa || ({
+ "default": "font-family:Arial,Helvetica;font-weight:bolder"
+ })),
+ EXa: d(B, G("timedTextTimeOverride"), 0),
+ TJ: d(B, "timedTextSimpleFallbackThreshold", Fa.TJ.ca(S.Cr)),
+ jea: d(ha, G("customDfxpUrl")),
+ Qmb: d(P, G("enableSubtitleTrackerLogging"), !1),
+ jIb: d(P, G("sendSubtitleQoeLogblobOnMidplay"), !1),
+ bda: d(ya, "cdnIdWhiteList", []),
+ ada: d(ya, "cdnIdBlackList", []),
+ ega: d(ha, G("forceAudioTrack")),
+ Vzb: d(P, "muteVolumeOnPlaybackClose", !0),
+ w_b: d(ha, "nrdpVolumeControlType", "VOLUME_STREAM"),
+ gga: d(ha, G("forceTimedTextTrack")),
+ Dyb: d(B, G("maxRetriesTimedTextDownload"), 0),
+ OLb: d(B, G("timedTextRetryInterval"), 8E3),
+ BKb: d(ha, "storageType", "idb", /^(none|fs|idb|ls)$/),
+ gPa: d(B, "lockExpiration", 1E4),
+ Bxb: d(B, "lockRefresh", 3E3),
+ Ffb: d(P, "captureUnhandledExceptions", !0),
+ rub: d(P, "ignoreUnhandledExceptionDuringPlayback", !0),
+ PMb: d(P, "unhandledExceptionsArePlaybackErrors", !1),
+ rYa: d(ha, "unhandledExceptionSource", ""),
+ hEb: d(P, "preserveLastFrame", !1),
+ uzb: d(B, "minBufferingTimeInMilliseconds", 4E3),
+ zEb: d(B, "progressBackwardsGraceTimeMilliseconds", 4E3),
+ AEb: d(B, "progressBackwardsMinPercent", 10),
+ Ieb: d(ha, G("bookmarkIgnoreBeginning"), "0", z),
+ Jeb: d(ha, G("bookmarkIgnoreEnd"), "5%", z),
+ Keb: d(ha, G("bookmarkIgnoreEndForBranching"), "60000", z),
+ kI: d(B, "maxParallelConnections", 3),
+ hna: d(P, "reportThroughputInLogblobs", !0),
+ sI: d(B, "minAudioMediaRequestDuration", 16E3),
+ szb: d(B, "minAudioMediaRequestDurationBranching", 0),
+ xI: d(B, "minVideoMediaRequestDuration", 4E3),
+ zzb: d(B, "minVideoMediaRequestDurationAL1", 0),
+ Azb: d(B, "minVideoMediaRequestDurationBranching", 0),
+ j1: d(B, "minAudioMediaRequestSizeBytes", 0),
+ q1: d(B, "minVideoMediaRequestSizeBytes", 0),
+ hmb: d(P, "droppedFrameRateFilterEnabled", !1),
+ imb: d(B, "droppedFrameRateFilterMaxObservation", 60, 10, 1E3),
+ kmb: d(function (a, b, f, m, h, c) {
+ return ja(a, b, "[", function (a) {
+ a = a.split(";");
+ for (var b = a.length; b--; ) {
+ a[b] = a[b].split("|");
+ for (var f = a[b].length; f--; ) {
+ a[b][f] = w.Ud(a[b][f]);
+ }
+ }
+ return a;
+ }, [function (a) {
+ return C.isArray(a) && 0 < a.length;
+ }, function (a) {
+ for (var b = a.length; b-- && void 0 !== a; ) {
+ if (!C.isArray(a[b]))
+ return !1;
+ for (var h = a[b].length; h--; ) {
+ if (!C.Pv(a[b][h], f, m))
+ return !1;
+ }
+ }
+ return !0;
+ }, function (a) {
+ if (void 0 !== h)
+ for (var b = a.length; b--; ) {
+ if (h !== a[b].length)
+ return !1;
+ }
+ return !0;
+ }, function (a) {
+ return void 0 === c || a.length >= c;
+ }
+ ]);
+ }, "droppedFrameRateFilterPolicy", [[3, 15], [6, 9], [9, 2], [15, 1]], void 0, void 0, 2, 0),
+ YXb: d(P, "droppedFrameRateFilterWithoutRebufferEnabled", !0),
+ jmb: d(B, "droppedFrameRateFilterMinHeight", 384),
+ lmb: d(ya, "droppedFramesPercentilesList", []),
+ lzb: d(P, "microsoftScreenSizeFilterEnabled", !1),
+ mwb: d(P, "keyStatusFilterEnabled", !1),
+ LMb: d(P, "uiLabelFilterEnabled", !0),
+ KMb: d(Ha, "uiLabelFilter", {}),
+ Rkb: d(B, G("defaultVolume"), 100, 0, 100),
+ tIa: d(P, "disableVideoRightClickMenu", !1),
+ l1: d(B, "minDecoderBufferMilliseconds", 1E3, 0, l.au),
+ iD: d(B, "optimalDecoderBufferMilliseconds", 5E3, 0, l.au),
+ QRa: d(B, "optimalDecoderBufferMillisecondsBranching", 3E3, 0, l.au),
+ gz: d(B, "minimumTimeBeforeBranchDecision", 3E3, 0, l.au),
+ az: d(B, "maxDecoderBufferMilliseconds", Fa.az.ca(n.ia), 0, l.au),
+ VHa: d(B, "decoderTimeoutMilliseconds", 1E4, 1),
+ Glb: d(P, "disgardMediaOnAppend", !1),
+ cdb: d(P, "appendMediaBeforeInit", !1),
+ uCb: d(B, "pauseTimeoutLimitMilliseconds", 18E5),
+ uia: d(B, "inactivityMonitorInterval", 3E4, 0),
+ Mbb: d(ya, "abrdelLogPointsSeconds", [15, 30, 60, 120], 0, void 0, 4),
+ jH: d(P, "enableTrickPlay", !1),
+ Hcb: d(ya, "additionalDownloadSimulationParams", [2E3, 2E3, 100], 0, void 0, 3),
+ yMb: d(B, "trickPlayHighResolutionBitrateThreshold", 1E3),
+ zMb: d(B, "trickPlayHighResolutionThresholdMilliseconds", 1E4),
+ CMb: d(V, "trickplayBufferFactor", .5),
+ xMb: d(B, "trickPlayDownloadRetryCount", 1),
+ ika: d(ha, "marginPredictor", "simple", /^(simple|scale|iqr|percentile)$/),
+ cla: d(ha, "networkMeasurementGranularity", "video_location", /^(location|video_location)$/),
+ vua: d(Ha, "HistoricalTDigestConfig", {
+ maxc: 25,
+ rc: "ewma",
+ c: .5,
+ hl: 7200
+ }),
+ XPa: d(q, "maxIQRSamples", Infinity),
+ uQa: d(q, "minIQRSamples", 5),
+ WYa: d(P, "useResourceTimingAPI", !1),
+ pub: d(P, "ignoreFirstByte", !0),
+ Vyb: d(P, "mediaRequestAsyncLoadStart", !0),
+ VNb: d(P, "useXHROnLoadStart", !1),
+ Ifa: d(ya, "failedDownloadRetryWaitsASE", [10, 200, 500, 1E3, 2E3, 4E3]),
+ YX: d(B, "connectTimeoutMilliseconds", 8E3, 500),
+ gla: d(B, "noProgressTimeoutMilliseconds", 8E3, 500),
+ QNb: d(P, "useOnLineApi", !1),
+ CXa: d(B, "timedTextDownloadRetryCountBeforeCdnSwitch", 3),
+ n_b: d(B, "netflixRequestExpiryTimeout", 0),
+ LOb: d(P, "webkitDecodedFrameCountIncorrectlyReported", !1),
+ NHb: d(B, "seekBackOnAudioTrackChangeMilliseconds", 8E3),
+ sCb: d(P, "pausePlaybackOnAudioSwitch", !0),
+ dpa: d(ma, G("supportedAudioTrackTypes"), [], void 0, 1),
+ yNa: d(B, "initialLogFlushTimeout", 5E3),
+ RSa: d(ha, "playdataPersistKey", Jb.Ds ? "unsentplaydatatest" : "unsentplaydata"),
+ eoa: d(P, "sendPersistedPlaydata", !0),
+ mDb: d(B, "playdataPersistIntervalMilliseconds", 4E3),
+ N_b: d(B, "playdataSendDelayMilliseconds", 1E4),
+ q3: d(P, "sendPlaydataBackupOnInit", !0),
+ Gxb: d(ma, "logPerformanceTiming", ("navigationStart redirectStart fetchStart secureConnectionStart requestStart domLoading").split(" ")),
+ nzb: d(P, "midplayEnabled", !0),
+ qQa: d(B, "midplayIntervalMilliseconds", 3E5),
+ ozb: d(ya, "midplayKeyPoints", [15E3, 3E4, 6E4, 12E4]),
+ jO: d(B, "downloadReportDenominator", 0),
+ Tlb: d(B, "downloadReportInterval", 3E5),
+ jPa: d(B, "logConfigApplyDenominator", 0),
+ OFa: d(Ua, G("bookmarkByMovieId"), {}),
+ DO: d(P, G("forceLimitedDurationLicense"), !1),
+ Wy: d(B, G("licenseRenewalRequestDelay"), 0),
+ Xla: d(B, G("persistedReleaseDelay"), 1E4),
+ vZb: d(P, G("limitedDurationFlagOverride"), void 0),
+ wj: d(P, G("secureStopEnabled"), !1),
+ x0b: d(P, G("secureStopFromPersistedKeySession"), !1),
+ mVa: d(B, "secureStopKeyMessageTimeoutMilliseconds", 2E3, 1),
+ Tna: d(B, "secureStopKeyAddedTimeoutMilliseconds", 1E3, 1),
+ KHb: d(B, G("secureStopPersistedKeyMessageTimeoutMilliseconds"), 2500, 1),
+ LHb: d(B, G("secureStopPersistedKeySessionRetries"), 17, 1),
+ JHb: d(B, "secureStopPersistedKeyAddedTimeoutUnmatchedSession", 1E3, 1),
+ $Ua: d(B, "safariPlayPauseWorkaroundDelay", 100),
+ UOb: d(B, "workaroundValueForSeekIssue", 1200),
+ Yca: d(P, G("callEndOfStream"), Fa.Yca),
+ HCb: d(P, "performRewindCheck", !0),
+ Snb: d(P, "fatalOnUnexpectedSeeking", !0),
+ Rnb: d(P, "fatalOnUnexpectedSeeked", !0),
+ oJb: d(P, G("setVideoElementSize")),
+ Agb: d(P, G("clearVideoSrc"), !0),
+ jIa: d(B, G("delayPlayPause"), 0),
+ Pp: d(P, G("useTypescriptEme"), !1),
+ mO: d(ha, G("drmPersistKey"), "unsentDrmData"),
+ Gma: d(P, G("promiseBasedEme"), !1),
+ Efb: d(P, "captureKeyStatusData", !1),
+ SH: d(P, "includeCapabilitiesInRequestMediaKeySystemAccess", !0),
+ JAb: d(P, G("nudgeSourceBuffer"), !1),
+ Una: d(q, G("seekDelta"), 1),
+ IQ: d(P, G("preciseSeeking"), !1),
+ LDb: d(P, G("preciseSeekingOnTwoCoreDevice"), !1),
+ iIa: d(Ua, G("delayErrorHandling")),
+ VXa: d(P, "trackingLogEnabled", !1),
+ WXa: d(function (a, b) {
+ var f;
+ f = Ua(a, b, void 0);
+ f && Object.keys(f).forEach(function (a) {
+ var b;
+ b = f[a];
+ "true" === b ? f[a] = !0 : "false" === b && (f[a] = !1);
+ });
+ return f;
+ }, "trackingLogEvents", {
+ sso: !1,
+ startup: !1,
+ playback: !1,
+ regpair: !1
+ }),
+ Fpa: d(ha, "trackingLogPath", "/customerevents/track/debug"),
+ nMb: d(ya, "trackingLogStallKeyPoints", [1E4, 3E4, 6E4, 12E4]),
+ Ch: d(ha, "esn", ""),
+ GJa: d(ha, "fesn", ""),
+ Nmb: d(P, G("enablePerformanceLogging"), !1),
+ gfa: d(P, G("enableEmeVerboseLogging"), !1),
+ Hmb: d(P, "enableLastChunkLogging", !1),
+ WM: d(ha, "appId", "", E),
+ sessionId: d(ha, "sessionId", "", E),
+ dda: d(ha, "cdnProxyUrl"),
+ UNb: d(P, "usePlayReadyHeaderObject", !1),
+ eKa: d(B, "forceXhrErrorResponseCode", void 0),
+ ep: {
+ h_b: d(ha, "mslApiPath", "/msl/"),
+ $Xb: d(ha, G("edgePath"), "/cbp/cadmium-29"),
+ X_b: d(ha, "proxyPath", ""),
+ qS: d(ha, "uiVersion"),
+ l4: d(ha, "uiPlatform"),
+ eXb: function () {
+ return "0";
+ },
+ sma: d(ma, "preferredLanguages", l.ysa, /^[a-zA-Z-]{2,5}$/, 1),
+ Iob: d(ha, G("forceDebugLogLevel"), void 0, /^(ERROR|WARN|INFO|TRACE)$/),
+ fLb: d(P, "supportPreviewContentPin", !0),
+ gLb: d(P, "supportWatermarking", !0),
+ QJb: d(P, "showAllSubDubTracks", !1),
+ lYb: d(P, G("failOnGuidMismatch"), !1)
+ },
+ z2: {
+ enabled: d(P, "qcEnabled", !1),
+ Uk: d(ha, "qcPackageId", "")
+ },
+ ur: d(P, "useRangeHeader", !1),
+ rO: d(P, "enableMilestoneEventList", !1),
+ DB: d(ha, "authenticationType", Jb.Ds ? Fa.zFa : Fa.DB),
+ yFa: d(Ua, "authenticationKeyNames", w.yb({
+ e: "DKE",
+ h: "DKH",
+ w: "DKW",
+ s: "DKS"
+ })),
+ qLb: d(ha, "systemKeyWrapFormat"),
+ zub: d(P, "includeNetflixIdUserAuthData", !0),
+ LJb: d(P, "shouldSendUserAuthData", !0),
+ hoa: d(P, "sendUserAuthIfRequired", Fa.hoa),
+ GJb: d(P, "shouldClearUserData", !1),
+ Qzb: d(P, "mslDeleteStore", !1),
+ Szb: d(P, "mslPersistStore", !0),
+ xhb: d(P, "correctNetworkForShortTitles", !0),
+ GDb: d(P, "postplayHighInitBitrate", !1),
+ Eob: d(P, "flushHeaderCacheOnAudioTrackChange", !0),
+ jLb: d(P, "supportsUnequalizedDownloadables", !0),
+ RHa: d(B, G("debugAseDenominator"), 100),
+ rX: d(B, "aseAudioBufferSizeBytes", Fa.rX.ca(S.Cr)),
+ tX: d(B, "aseVideoBufferSizeBytes", Fa.tX.ca(S.Cr)),
+ $s: d(B, "minInitVideoBitrate", 560),
+ Pka: d(B, "minHCInitVideoBitrate", 560),
+ aw: d(B, "maxInitVideoBitrate", Infinity),
+ bQ: d(B, "minInitAudioBitrate", 0),
+ aQ: d(B, "minHCInitAudioBitrate", 0),
+ QP: d(B, "maxInitAudioBitrate", 65535),
+ i1: d(B, "minAcceptableVideoBitrate", 235),
+ cQ: d(B, "minRequiredBuffer", 3E4),
+ Li: d(B, "minPrebufSize", 7800),
+ Oka: d(B, "minCheckBufferingCompleteInterval", 999999),
+ Uma: d(V, "rebufferingFactor", 1),
+ vp: d(B, "maxBufferingTime", 2600),
+ eqa: d(P, "useMaxPrebufSize", !0),
+ cz: d(B, "maxPrebufSize", 45E3),
+ tka: d(B, "maxRebufSize", Infinity),
+ V_: d(za, "initialBitrateSelectionCurve", null),
+ uNa: d(B, "initSelectionLowerBound", 560),
+ vNa: d(B, "initSelectionUpperBound", 1050),
+ b4: d(B, "throughputPercentForAudio", 15),
+ Aca: d(B, "bandwidthMargin", 10),
+ Bca: d(P, "bandwidthMarginContinuous", !1),
+ Cca: d(za, "bandwidthMarginCurve", [{
+ m: 65,
+ b: 8E3
+ }, {
+ m: 65,
+ b: 3E4
+ }, {
+ m: 50,
+ b: 6E4
+ }, {
+ m: 45,
+ b: 9E4
+ }, {
+ m: 40,
+ b: 12E4
+ }, {
+ m: 20,
+ b: 18E4
+ }, {
+ m: 5,
+ b: 24E4
+ }
+ ]),
+ Jda: d(B, "conservBandwidthMargin", 20),
+ hpa: d(P, "switchConfigBasedOnInSessionTput", !1),
+ IN: d(B, "conservBandwidthMarginTputThreshold", 0),
+ Kda: d(za, "conservBandwidthMarginCurve", [{
+ m: 80,
+ b: 8E3
+ }, {
+ m: 80,
+ b: 3E4
+ }, {
+ m: 70,
+ b: 6E4
+ }, {
+ m: 60,
+ b: 9E4
+ }, {
+ m: 50,
+ b: 12E4
+ }, {
+ m: 30,
+ b: 18E4
+ }, {
+ m: 10,
+ b: 24E4
+ }
+ ]),
+ dXa: d(P, "switchAlgoBasedOnHistIQR", !1),
+ Nz: d(ha, "switchConfigBasedOnThroughputHistory", "none", /^(none|iqr|avg)$/),
+ ska: d(q, "maxPlayerStateToSwitchConfig", -1),
+ Vja: d(ha, "lowEndMarkingCriteria", "none", /^(none|iqr|avg)$/),
+ U6: d(V, "IQRThreshold", .5),
+ iia: d(ha, "histIQRCalcToUse", "simple"),
+ Vs: d(B, "maxTotalBufferLevelPerSession", 0),
+ $Ma: d(B, "highWatermarkLevel", 3E4),
+ LXa: d(B, "toStableThreshold", 3E4),
+ f4: d(B, "toUnstableThreshold", Fa.f4.ca(n.ia)),
+ Moa: d(P, "skipBitrateInUpswitch", !0),
+ oqa: d(B, "watermarkLevelForSkipStart", 8E3),
+ bia: d(B, "highStreamRetentionWindow", 9E4),
+ Wja: d(B, "lowStreamTransitionWindow", 51E4),
+ dia: d(B, "highStreamRetentionWindowUp", 3E5),
+ Yja: d(B, "lowStreamTransitionWindowUp", 3E5),
+ cia: d(B, "highStreamRetentionWindowDown", 6E5),
+ Xja: d(B, "lowStreamTransitionWindowDown", 0),
+ aia: d(V, "highStreamInfeasibleBitrateFactor", .5),
+ Wv: d(B, "lowestBufForUpswitch", 15E3),
+ K0: d(B, "lockPeriodAfterDownswitch", 15E3),
+ $ja: d(B, "lowWatermarkLevel", 25E3),
+ Xv: d(B, "lowestWaterMarkLevel", 2E4),
+ aka: d(P, "lowestWaterMarkLevelBufferRelaxed", !1),
+ Fka: d(V, "mediaRate", 1),
+ Y0: d(B, "maxTrailingBufferLen", 1E4),
+ aN: d(B, "audioBufferTargetAvailableSize", 262144),
+ BS: d(B, "videoBufferTargetAvailableSize", 1048576),
+ fQa: d(B, "maxVideoTrailingBufferSize", 8388608),
+ RPa: d(B, "maxAudioTrailingBufferSize", 393216),
+ hZ: d(V, "fastUpswitchFactor", 3),
+ Kfa: d(V, "fastDownswitchFactor", 1),
+ Wq: d(B, "maxMediaBufferAllowed", 24E4),
+ Ws: d(B, "maxVideoBufferAllowedInBytes", 0),
+ Hoa: d(P, "simulatePartialBlocks", !0),
+ jWa: d(P, "simulateBufferFull", !0),
+ Lda: d(P, "considerConnectTime", !1),
+ Ida: d(V, "connectTimeMultiplier", 1),
+ sPa: d(B, "lowGradeModeEnterThreshold", 12E4),
+ tPa: d(B, "lowGradeModeExitThreshold", 9E4),
+ UPa: d(B, "maxDomainFailureWaitDuration", 3E4),
+ QPa: d(B, "maxAttemptsOnFailure", 18),
+ wJa: d(P, "exhaustAllLocationsForFailure", !0),
+ $Pa: d(B, "maxNetworkErrorsDuringBuffering", 20),
+ lka: d(B, "maxBufferingTimeAllowedWithNetworkError", 6E4),
+ EJa: d(B, "fastDomainSelectionBwThreshold", 2E3),
+ vXa: d(B, "throughputProbingEnterThreshold", 4E4),
+ wXa: d(B, "throughputProbingExitThreshold", 34E3),
+ fPa: d(B, "locationProbingTimeout", 1E4),
+ IJa: d(B, "finalLocationSelectionBwThreshold", 1E4),
+ tXa: d(V, "throughputHighConfidenceLevel", .75),
+ uXa: d(V, "throughputLowConfidenceLevel", .4),
+ dJa: d(P, "enablePerfBasedLocationSwitch", !1),
+ er: d(P, "probeServerWhenError", !0),
+ Ama: d(B, "probeRequestTimeoutMilliseconds", 8E3),
+ Pu: d(P, "allowSwitchback", !0),
+ vD: d(B, "probeDetailDenominator", 100),
+ T0: d(B, "maxDelayToReportFailure", 300),
+ Lja: d(B, "locationStatisticsUpdateInterval", 6E4),
+ sHa: d(P, "countGapInBuffer", !1),
+ KEa: d(P, "allowCallToStreamSelector", !0),
+ VFa: d(B, "bufferThresholdForAbort", 1E4),
+ Zla: d(B, "pipelineScheduleTimeoutMs", 2),
+ cw: d(B, "maxPartialBuffersAtBufferingStart", 2),
+ Qka: d(B, "minPendingBufferLen", 6E3),
+ bz: d(B, "maxPendingBufferLen", 12E3),
+ Byb: d(B, "maxPendingBufferLenAL1", 3E4),
+ uka: d(B, "maxStreamingSkew", 4E3),
+ rka: d(B, "maxPendingBufferPercentage", 10),
+ TC: d(B, "maxRequestsInBuffer", 60),
+ bQa: d(B, "maxRequestsInBufferAL1", 240),
+ cQa: d(B, "maxRequestsInBufferBranching", 120),
+ F_: d(B, "headerRequestSize", 4096),
+ $P: d(B, "minBufferLenForHeaderDownloading", 1E4),
+ gR: d(B, "reserveForSkipbackBufferMs", 1E4),
+ rla: d(B, "numExtraFragmentsAllowed", 2),
+ xp: d(P, "pipelineEnabled", !1),
+ oWa: d(B, "socketReceiveBufferSize", 0),
+ xX: d(B, "audioSocketReceiveBufferSize", 32768),
+ fK: d(B, "videoSocketReceiveBufferSize", 65536),
+ Zha: d(B, "headersSocketReceiveBufferSize", 32768),
+ s4: d(B, "updatePtsIntervalMs", 1E3),
+ Lca: d(B, "bufferTraceDenominator", 100),
+ HB: d(B, "bufferLevelNotifyIntervalMs", 2E3),
+ YM: d(B, "aseReportDenominator", 0),
+ mca: d(B, "aseReportIntervalMs", 3E5),
+ XIa: d(P, "enableAbortTesting", !1),
+ jEa: d(B, "abortRequestFrequency", 8),
+ $oa: d(B, "streamingStatusIntervalMs", 2E3),
+ qz: d(B, "prebufferTimeLimit", 24E4),
+ k1: d(B, "minBufferLevelForTrackSwitch", 2E3),
+ Sla: d(B, "penaltyFactorForLongConnectTime", 2),
+ Tja: d(B, "longConnectTimeThreshold", 200),
+ Tba: d(B, "additionalBufferingLongConnectTime", 2E3),
+ Uba: d(B, "additionalBufferingPerFailure", 8E3),
+ ZQ: d(B, "rebufferCheckDuration", 6E4),
+ bJa: d(P, "enableLookaheadHints", !1),
+ oPa: d(B, "lookaheadFragments", 2),
+ eC: d(P, "enableOCSideChannel", !0),
+ uU: d(Ha, "OCSCBufferQuantizationConfig", {
+ lv: 5,
+ mx: 240
+ }),
+ BYa: d(P, "updateDrmRequestOnNetworkFailure", !1),
+ hIa: d(P, "deferAseScheduling", !1),
+ TPa: d(B, "maxDiffAudioVideoEndPtsMs", 16E3),
+ $J: d(P, "useHeaderCache", !0),
+ bO: d(B, "defaultHeaderCacheSize", 4),
+ tY: d(B, "defaultHeaderCacheDataPrefetchMs", 8E3),
+ Vha: d(B, "headerCacheMaxPendingData", 6),
+ dla: d(P, "neverWipeHeaderCache", !0),
+ Wha: d(B, "headerCachePriorityLimit", 5),
+ tO: d(P, "enableUsingHeaderCount", !1),
+ VMa: d(P, "headerCacheTruncateHeaderAfterParsing", !0),
+ Dob: d(P, G("flushHeaderCacheBeforePlayback"), !1),
+ bla: d(B, "networkFailureResetWaitMs", 2E3),
+ ala: d(B, "networkFailureAbandonMs", 6E4),
+ X0: d(B, "maxThrottledNetworkFailures", 3),
+ a4: d(B, "throttledNetworkFailureThresholdMs", 200),
+ Zja: d(q, "lowThroughputThreshold", 400),
+ Bfa: d(P, "excludeSessionWithoutHistoryFromLowThroughputThreshold", !1),
+ HQa: d(P, "mp4ParsingInNative", !1),
+ pWa: d(P, "sourceBufferInOrderAppend", !0),
+ zt: d(P, "requireAudioStreamToEncompassVideo", !0),
+ JEa: d(P, "allowAudioToStreamPastVideo", !0),
+ ah: d(P, "enableManagerDebugTraces", !1),
+ GPa: d(B, "managerDebugMessageInterval", 1E3),
+ FPa: d(B, "managerDebugMessageCount", 20),
+ pRa: d(P, "notifyManifestCacheEom", !1),
+ Kca: d(B, "bufferThresholdToSwitchToSingleConnMs", 18E4),
+ Jca: d(B, "bufferThresholdToSwitchToParallelConnMs", 12E4),
+ f2: d(B, "periodicHistoryPersistMs", 3E5),
+ e3: d(B, "saveVideoBitrateMs", 18E4),
+ YEa: d(P, "appendMediaRequestOnComplete", !0),
+ iK: d(P, "waitForDrmToAppendMedia", !1),
+ uZ: d(P, G("forceAppendHeadersAfterDrm"), !1),
+ dJ: d(P, G("reappendRequestsOnSkip"), !1),
+ Zzb: d(B, "netIntrStoreWindow", 36E3),
+ wzb: d(B, "minNetIntrDuration", 8E3),
+ Mnb: d(B, "fastHistoricBandwidthExpirationTime", 10368E3),
+ neb: d(B, "bandwidthExpirationTime", 5184E3),
+ Jnb: d(B, "failureExpirationTime", 86400),
+ Wtb: d(B, "historyTimeOfDayGranularity", 4),
+ wnb: d(P, "expandDownloadTime", !1),
+ Izb: d(B, "minimumMeasurementTime", 500),
+ Hzb: d(B, "minimumMeasurementBytes", 131072),
+ ELb: d(B, "throughputMeasurementTimeout", 2E3),
+ Oub: d(B, "initThroughputMeasureDataSize", 262144),
+ FLb: d(ha, "throughputPredictor", "ewma"),
+ DLb: d(B, "throughputMeasureWindow", 5E3),
+ HLb: d(B, "throughputWarmupTime", 5E3),
+ CLb: d(B, "throughputIQRMeasureWindow", 5E3),
+ Q3a: d(B, "IQRBucketizerWindow", 15E3),
+ fhb: d(B, "connectTimeHalflife", 10),
+ $Gb: d(B, "responseTimeHalflife", 10),
+ Vtb: d(B, "historicBandwidthUpdateInterval", 2E3),
+ Fzb: d(B, "minimumBufferToStopProbing", 1E4),
+ Rna: d(ha, "secondThroughputEstimator", "none"),
+ kVa: d(q, "secondThroughputMeasureWindowInMs", Infinity),
+ Amb: d(ma, "enableFilters", ("throughput-ewma throughput-sw throughput-iqr throughput-tdigest avtp entropy").split(" ")),
+ aob: d(Ha, "filterDefinitionOverrides", {}),
+ Mkb: d(ha, "defaultFilter", "throughput-ewma"),
+ GHb: d(ha, "secondaryFilter", "none"),
+ Nkb: d(Ha, "defaultFilterDefinitions", {
+ "throughput-ewma": {
+ type: "discontiguous-ewma",
+ mw: 5E3,
+ wt: 5E3
+ },
+ "throughput-sw": {
+ type: "slidingwindow",
+ mw: 5E3
+ },
+ "throughput-iqr": {
+ type: "iqr",
+ mx: Infinity,
+ mn: 5,
+ bw: 15E3,
+ iv: 1E3
+ },
+ "throughput-iqr-history": {
+ type: "iqr-history"
+ },
+ "throughput-location-history": {
+ type: "discrete-ewma",
+ hl: 14400,
+ "in": 3600
+ },
+ "respconn-location-history": {
+ type: "discrete-ewma",
+ hl: 100,
+ "in": 25
+ },
+ "throughput-tdigest": {
+ type: "tdigest",
+ maxc: 25,
+ c: .5,
+ b: 1E3,
+ w: 15E3,
+ mn: 6
+ },
+ "throughput-tdigest-history": {
+ type: "tdigest-history",
+ maxc: 25,
+ rc: "ewma",
+ c: .5,
+ hl: 7200
+ },
+ "respconn-ewma": {
+ type: "discrete-ewma",
+ hl: 10,
+ "in": 10
+ },
+ avtp: {
+ type: "avtp"
+ },
+ entropy: {
+ type: "entropy",
+ mw: 2E3,
+ sw: 6E4,
+ "in": "none",
+ mins: 1,
+ hdl: [150, 230, 352, 539, 825, 1264, 1936, 2966, 4543, 6958],
+ uhdl: [150, 230, 352, 539, 825, 1264, 1936, 2966, 4543, 6958, 10657, 16322, 25E3]
+ }
+ }),
+ hQ: d(P, "needMinimumNetworkConfidence", !0),
+ Gca: d(P, "biasTowardHistoricalThroughput", !0),
+ fX: d(P, "addHeaderDataToNetworkMonitor", !1),
+ Uoa: d(P, "startMonitorOnLoadStart", !1),
+ gna: d(P, "reportFailedRequestsToNetworkMonitor", !1),
+ nka: d(q, "maxFastPlayBufferInMs", Infinity),
+ mka: d(q, "maxFastPlayBitThreshold", Infinity),
+ eca: d(P, "appendFirstHeaderOnComplete", !0),
+ rdb: d(ha, "ase_stream_selector", "optimized"),
+ Eia: d(ha, "initBitrateSelectorAlgorithm", "default"),
+ Nca: d(ha, "bufferingSelectorAlgorithm", "default"),
+ SHa: d(ha, "ase_ls_failure_simulation", ""),
+ nea: d(P, "ase_dump_fragments", !1),
+ pea: d(B, "ase_location_history", 0),
+ qea: d(B, "ase_throughput", 0),
+ UHa: d(P, "ase_simulate_verbose", !1),
+ BDb: d(B, "pollingPeriod", 150),
+ txb: d(B, "loadTimeMs", 18E4),
+ kyb: d(B, "marginTimeMs", 1E4),
+ Tz: d(P, "useMediaCache", !1),
+ ry: d(B, "diskCacheSizeLimit", 52428800),
+ UP: d(B, "mediaCachePrefetchMs", 8E3),
+ zka: d(Ua, "mediaCachePartitionConfig", {
+ partitions: [{
+ key: "billboard",
+ capacity: 31457280,
+ owner: "browser-player@netflix.com",
+ evictionPolicy: "FIFO"
+ }
+ ]
+ }),
+ Gga: d(P, "getDeviceIdFromBindDevice", !1),
+ Mba: d(P, "addFailedLogBlobsToQueue", !0),
+ MMb: {
+ "content-sampling": {
+ vp: d(B, "contentSamplingMaxBufferingTime", 3E3),
+ rJ: d(ha, "contentSamplingSelectStartingVMAFMethod", "fallback"),
+ PM: d(P, "contentSamplingActivateSelectStartingVMAF", !0),
+ wI: d(B, "contentSamplingMinStartingVideoVMAF", 80),
+ ZP: d(B, "contentSamplingMinAcceptableVMAF", 70),
+ XC: d(B, "contentSamplingMinAllowedVmaf", 60)
+ },
+ billboard: {
+ $s: d(B, "billboardMinInitVideoBitrate", 1050),
+ aw: d(B, "billboardMaxInitVideoBitrate", null),
+ Li: d(B, "billboardMinPrebufSize", null),
+ cz: d(B, "billboardMaxPrebufSize", null),
+ vp: d(B, "billboardMaxBufferingTime", null),
+ cw: d(B, "billboardMaxPartialBuffersAtBufferingStart", null),
+ Xv: d(B, "billboardLowestWaterMarkLevel", 6E3),
+ Wv: d(B, "billboardLowestBufForUpswitch", 25E3),
+ Nz: d(ha, "billboardSwitchConfigBasedOnThroughputHistory", "none", /^(none|iqr|avg)$/),
+ mE: d(P, "billboardUseNewApi", null)
+ },
+ preplay: {
+ $s: d(B, "preplayMinInitVideoBitrate", 1050),
+ aw: d(B, "preplayMaxInitVideoBitrate", null),
+ Li: d(B, "preplayMinPrebufSize", null),
+ cz: d(B, "preplayMaxPrebufSize", null),
+ vp: d(B, "preplayMaxBufferingTime", null),
+ cw: d(B, "preplayMaxPartialBuffersAtBufferingStart", null),
+ Xv: d(B, "preplayLowestWaterMarkLevel", 6E3),
+ Wv: d(B, "preplayLowestBufForUpswitch", 25E3)
+ },
+ embedded: {
+ $s: d(B, "embeddedMinInitVideoBitrate", 1050),
+ aw: d(B, "embeddedMaxInitVideoBitrate", null),
+ Li: d(B, "embeddedMinPrebufSize", null),
+ cz: d(B, "embeddedMaxPrebufSize", null),
+ vp: d(B, "embeddedMaxBufferingTime", null),
+ cw: d(B, "embeddedMaxPartialBuffersAtBufferingStart", null),
+ Xv: d(B, "embeddedLowestWaterMarkLevel", 6E3),
+ Wv: d(B, "embeddedLowestBufForUpswitch", 25E3)
+ },
+ "video-merch-bob-horizontal": {
+ $s: d(B, "videoMerchBobHorizontalMinInitVideoBitrate", null),
+ aw: d(B, "videoMerchBobHorizontalMaxInitVideoBitrate", null),
+ Li: d(B, "videoMerchBobHorizontalMinPrebufSize", null),
+ cz: d(B, "videoMerchBobHorizontalMaxPrebufSize", null),
+ vp: d(B, "videoMerchBobHorizontalMaxBufferingTime", null),
+ cw: d(B, "videoMerchBobHorizontalMaxPartialBuffersAtBufferingStart", null),
+ Xv: d(B, "videoMerchBobHorizontalLowestWaterMarkLevel", null),
+ Wv: d(B, "videoMerchBobHorizontalLowestBufForUpswitch", null),
+ mE: d(P, "videoMerchBobHorizontalUseNewApi", !0)
+ },
+ "mini-modal-horizontal": {
+ $s: d(B, "miniModalHorizontalMinInitVideoBitrate", null),
+ aw: d(B, "miniModalHorizontalMaxInitVideoBitrate", null),
+ Li: d(B, "miniModalHorizontalMinPrebufSize", null),
+ cz: d(B, "miniModalHorizontalMaxPrebufSize", null),
+ vp: d(B, "miniModalHorizontalMaxBufferingTime", 500),
+ cw: d(B, "miniModalHorizontalMaxPartialBuffersAtBufferingStart", null),
+ Xv: d(B, "miniModalHorizontalLowestWaterMarkLevel", null),
+ Wv: d(B, "miniModalHorizontalLowestBufForUpswitch", null)
+ },
+ standard: {
+ mE: d(P, "standardUseNewApi", null)
+ }
+ },
+ Smb: d(P, "enableVerbosePlaydelayLogging", !1),
+ Pmb: d(P, "enableSeamless", !1),
+ hia: d(B, "hindsightDenominator", 0),
+ gia: d(B, "hindsightDebugDenominator", 0),
+ I_: d(Ha, "hindsightParam", {
+ numB: Infinity,
+ bSizeMs: 1E3,
+ fillS: "last",
+ fillHl: 1E3
+ }),
+ sO: d(P, "enableSessionHistoryReport", !1),
+ cfa: d(B, "earlyStageEstimatePeriod", 1E4),
+ SOa: d(B, "lateStageEstimatePeriod", 3E4),
+ U0: d(B, "maxNumSessionHistoryStored", 30),
+ o1: d(B, "minSessionHistoryDuration", 3E4),
+ Us: d(B, "maxActiveRequestsPerSession", 3),
+ R0: d(B, "maxActiveRequestsSABCell100", 2),
+ V0: d(B, "maxPendingBufferLenSABCell100", 500),
+ Gja: d(P, "limitAudioDiscountByMaxAudioBitrate", !0),
+ Zg: d(Ha, "browserInfo", {}),
+ bfb: d(B, G("busyGracePeriod"), 199),
+ kIb: d(P, G("sendTransitionLogblob"), !0),
+ eH: d(P, G("editVideoFragments"), !0),
+ OY: d(P, G("earlyAppendSingleChildBranch"), !0),
+ Aub: d(P, G("includeSegmentInfoOnLogblobs"), !0),
+ znb: d(P, "exposeTestData", !1),
+ sea: d(P, "declareBufferingCompleteAtSegmentEnd", !0),
+ yB: d(P, "applyProfileTimestampOffset", !1),
+ Qo: d(P, "applyProfileStreamingOffset", !1),
+ Tcb: d(P, G("allowSmallSeekDelta"), !1),
+ aKb: d(B, G("smallSeekDeltaThresholdMilliseconds"), M.VU),
+ xmb: d(P, "enableCDMAttestedDescriptors", !1),
+ pna: d(P, "requireDownloadDataAtBuffering", !1),
+ U2: d(P, "requireSetupConnectionDuringBuffering", !1),
+ Vma: d(P, "recordFirstFragmentOnSubBranchCreate", !1),
+ Reb: d(P, "branchingAudioTrackFrameDropSmallSeekFix", !0),
+ cKa: d(P, "forceL3WidevineCdm", !1),
+ PNb: d(P, "useMobileVMAF", !1),
+ llb: d(ha, "desiredVMAFTypeMobile", "phone_plus_lts"),
+ mlb: d(ha, "desiredVMAFTypeNonMobile", "plus_lts"),
+ PM: d(P, "activateSelectStartingVMAF", !1),
+ wI: d(B, "minStartingVideoVMAF", 1),
+ ZP: d(B, "minAcceptableVMAF", 1),
+ XC: d(B, "minAllowedVmaf", 1),
+ aca: d(P, "alwaysNotifyEOSForPlaygraph", !0),
+ UY: d(P, "enableNewAse", !0),
+ mE: d(P, "useNewApi", !1),
+ TY: d(P, "enableHudsonFieldTest", !1),
+ lP: d(ma, "hudsonTitles", ["81127954", "70125931", "80158148"]),
+ qka: d(B, "maxPartialBuffersAtHudson", 1),
+ FI: d(B, "numberOfChunksPerSegment", 4),
+ Z3: d(B, "targetContentLatency", 1E4),
+ lpa: d(B, "targetLongContentLatency", 3E4),
+ r1: d(B, "minimumTimeDelay", 1),
+ VY: d(P, "enableWsslEstimate", !1),
+ S0: d(B, "maxAllowedOutstandingRequests", 4),
+ p1: d(B, "minStreamableConcurrencyWindow", 3E3),
+ V3: d(V, "streamableConcurrencyFactor", .3),
+ rN: d(B, "bufferingConcurrencyWindow", 7800),
+ Ioa: d(P, "singleStreamablePerBranch", !0),
+ Elb: d(P, "disableSkipping", !1)
+ };
+ mb = !0;
+ b.Fda = function (a) {
+ var f,
+ c;
+ if (0 < b.config.jPa && 0 === K.d7 % b.config.jPa)
+ try {
+ f = h.ba.get(H.uk);
+ c = h.ba.get(g.zo).Mn("config", "info", {
+ params: a
+ });
+ f.Ic(c);
+ } catch (hf) {
+ h.log.error("Failed to log config$apply", hf);
+ }
+ t._cad_global.config = b.config;
+ m.Ra(a);
+ a && (Ba = w.yb({}, a, {
+ hI: !0
+ }), w.yb(Ba, hb, {
+ hI: !0
+ }), k(N, b.config), Ba.istestaccount && h.log.trace("Config applied for", gb(mb ? Ba : a)), mb = !1);
+ };
+ b.Fda(Ba);
+ };
+ b.ahb = function (a, b) {
+ return C.Td(a) && "%" == a[a.length - 1] ? A.Th(parseFloat(a) * b / 100) : a | 0;
+ };
+ b.gHa = function (a) {
+ return a ? (a = w.yb({}, b.config), w.yb(a, {
+ iD: b.config.QRa
+ }, {
+ lw: !0
+ })) : b.config;
+ };
+ b.bhb = function (a) {
+ var f;
+ f = w.yb({}, b.config);
+ return w.yb(f, c(a), {
+ lw: !0
+ });
+ };
+ b.Hda = function (b) {
+ b = c(b);
+ return w.yb({}, a(156)(b), {
+ lw: !0
+ });
+ };
+ b.Gda = function (f, m, h) {
+ h = !!h && (0 <= h.indexOf("h264hpl") || 0 <= h.indexOf("vp9"));
+ f = {
+ sI: f ? b.config.szb : b.config.sI,
+ xI: f ? b.config.Azb : h ? b.config.zzb : b.config.xI,
+ TC: f && h ? Math.max(b.config.cQa, b.config.bQa) : f ? b.config.cQa : h ? b.config.bQa : b.config.TC,
+ bz: h ? b.config.Byb : b.config.bz,
+ OY: !m
+ };
+ return w.yb({}, a(156)(f), {
+ lw: !0
+ });
+ };
+ b.dhb = c;
+ b.chb = k;
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.le = b.lb = b.ye = b.ob = b.V = b.Z6 = b.HA = b.Cb = void 0;
+ (function (a) {
+ a.xxb = "loadedtracks";
+ a.wxb = "loadedmetadata";
+ a.loaded = "loaded";
+ a.error = "error";
+ a.closed = "closed";
+ a.ap = "currenttimechanged";
+ a.XFa = "bufferedtimechanged";
+ a.mmb = "durationchanged";
+ a.vOb = "videosizechanged";
+ a.vCb = "pausedchanged";
+ a.zDb = "playingchanged";
+ a.anb = "endedchanged";
+ a.Rca = "busychanged";
+ a.sFa = "audiotracklistchanged";
+ a.dN = "audiotrackchanged";
+ a.dE = "timedtexttracklistchanged";
+ a.UJ = "timedtexttrackchanged";
+ a.lS = "trickplayframeschanged";
+ a.Wzb = "mutedchanged";
+ a.COb = "volumechanged";
+ a.RJb = "showsubtitle";
+ a.mGb = "removesubtitle";
+ a.KOb = "watermark";
+ a.Yia = "isReadyToTransition";
+ a.RH = "inactivated";
+ a.VHb = "segmentmaploaded";
+ a.WHb = "segmentpresenting";
+ a.deb = "autoplaywasallowed";
+ a.eeb = "autoplaywasblocked";
+ })(b.Cb || (b.Cb = {}));
+ (b.HA || (b.HA = {})).sR = "playgraphsegmenttransition";
+ b.Z6 = (function () {
+ function a() {}
+ a.BVa = "serverTimeChanged";
+ return a;
+ })();
+ (function (a) {
+ a.sG = "aseException";
+ a.tG = "aseReport";
+ a.beb = "authorized";
+ a.wca = "autoplayWasAllowed";
+ a.Bk = "autoplayWasBlocked";
+ a.seb = "bandwidthMeterAggregateUpdate";
+ a.Xu = "bufferUnderrun";
+ a.closed = "closed";
+ a.If = "closing";
+ a.ap = "currentTimeChanged";
+ a.ty = "downloadComplete";
+ a.RH = "inactivated";
+ a.UOa = "licenseAdded";
+ a.HP = "licensed";
+ a.Ss = "locationSelected";
+ a.iI = "manifestClosing";
+ a.rp = "manifestPresenting";
+ a.EZb = "manifestSelected";
+ a.$0 = "mediaBufferChanged";
+ a.Zka = "needLicense";
+ a.D1 = "nextSegmentChosen";
+ a.ko = "playbackStart";
+ a.Rm = "repositioned";
+ a.CD = "repositioning";
+ a.aVa = "safePlayRequested";
+ a.OHb = "segmentAborted";
+ a.k3 = "segmentPresenting";
+ a.y0b = "segmentComplete";
+ a.QHb = "segmentLastPts";
+ a.UHb = "segmentStarting";
+ a.wJ = "serverSwitch";
+ a.hWa = "shouldUpdateVideoDiagInfo";
+ a.MJ = "subtitleError";
+ a.ppa = "throttledMediaTimeChanged";
+ a.SJ = "timedTextRebuffer";
+ a.dE = "timedTextTrackListChanged";
+ a.lS = "trickPlayFramesChanged";
+ a.nS = "tryRecoverFromStall";
+ a.Np = "updateNextSegmentWeights";
+ a.aOb = "userInitiatedPause";
+ a.$Ya = "userInitiatedResume";
+ })(b.V || (b.V = {}));
+ (function (a) {
+ a[a.UE = 0] = "NOTLOADED";
+ a[a.LOADING = 1] = "LOADING";
+ a[a.od = 2] = "NORMAL";
+ a[a.CLOSING = 3] = "CLOSING";
+ a[a.CLOSED = 4] = "CLOSED";
+ })(b.ob || (b.ob = {}));
+ (function (a) {
+ a[a.od = 1] = "NORMAL";
+ a[a.Xd = 2] = "BUFFERING";
+ a[a.rza = 3] = "STALLED";
+ })(b.ye || (b.ye = {}));
+ (function (a) {
+ a[a.dg = 1] = "WAITING";
+ a[a.Sc = 2] = "PLAYING";
+ a[a.$i = 3] = "PAUSED";
+ a[a.Fr = 4] = "ENDED";
+ })(b.lb || (b.lb = {}));
+ (function (a) {
+ a[a.Yw = 0] = "INITIAL";
+ a[a.lu = 1] = "SEEK";
+ a[a.fF = 2] = "TRACK_CHANGED";
+ a[a.KA = 3] = "SEGMENT_CHANGED";
+ })(b.le || (b.le = {}));
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.fd = b.VT = b.ju = b.Br = void 0;
+ b.Br = {
+ dXb: "casttv",
+ chrome: "chrome",
+ kXb: "chromecast",
+ ep: "edge",
+ OIa: "edgeoss",
+ wob: "firefox",
+ aZb: "ie",
+ opera: "opera",
+ nHb: "safari"
+ };
+ b.ju = {
+ REa: "android",
+ kgb: "chromeos",
+ Rwb: "linux",
+ xPa: "mac",
+ yLb: "tesla",
+ xZa: "windows"
+ };
+ b.VT = {
+ Xgb: "computer",
+ NCb: "phone",
+ tLb: "tablet"
+ };
+ b.fd = "ConfigSymbol";
+ }, function (d, b, a) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Zb = b.Oia = b.Qv = b.Td = b.gja = b.uvb = b.kvb = b.Xia = b.Pv = b.bOa = b.na = b.eja = b.isArray = b.yOa = b.df = b.dc = b.is = void 0;
+ d = a(185);
+ b.is = d.ax;
+ b.dc = function (a) {
+ return b.is.de(a);
+ };
+ b.df = function (a) {
+ return b.is.xB(a);
+ };
+ b.yOa = function (a) {
+ return b.is.Cba(a);
+ };
+ b.isArray = function (a) {
+ return b.is.Qu(a);
+ };
+ b.eja = function (a) {
+ return b.is.PEa(a);
+ };
+ b.na = function (a, k, l) {
+ return b.is.fg(a, k, l);
+ };
+ b.bOa = function (a, k, l) {
+ return b.is.bca(a, k, l);
+ };
+ b.Pv = function (a, k, l) {
+ return b.is.ks(a, k, l);
+ };
+ b.Xia = function (a) {
+ return b.is.MM(a);
+ };
+ b.kvb = function (a) {
+ return b.is.Kbb(a);
+ };
+ b.uvb = function (a) {
+ return b.is.Lbb(a);
+ };
+ b.gja = function (a) {
+ return b.is.QEa(a);
+ };
+ b.Td = function (a) {
+ return b.is.En(a);
+ };
+ b.Qv = function (a) {
+ return b.is.lm(a);
+ };
+ b.Oia = function (a) {
+ return b.is.LM(a);
+ };
+ b.Zb = function (a) {
+ return b.is.cX(a);
+ };
+ }, function (d, b, a) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ a(0).__exportStar(a(424), b);
+ }, function (d, b, a) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.zkb = b.mea = b.skb = b.wkb = b.TG = b.aO = b.vkb = b.xkb = b.UG = b.QHa = b.ukb = b.tkb = b.Ra = b.nf = b.ykb = b.pra = void 0;
+ d = a(6);
+ a = a(87);
+ b.pra = function () {
+ b.Ra();
+ };
+ b.ykb = !0;
+ b.nf = d.ba.get(a.Dr);
+ b.Ra = b.nf.assert.bind(b.nf);
+ b.tkb = b.nf.vdb.bind(b.nf);
+ b.ukb = b.nf.wdb.bind(b.nf);
+ b.QHa = b.nf.Bdb.bind(b.nf);
+ b.UG = b.nf.Edb.bind(b.nf);
+ b.xkb = b.nf.Cdb.bind(b.nf);
+ b.vkb = b.nf.zdb.bind(b.nf);
+ b.aO = b.nf.ydb.bind(b.nf);
+ b.TG = b.nf.Ddb.bind(b.nf);
+ b.wkb = b.nf.Adb.bind(b.nf);
+ b.skb = b.nf.udb.bind(b.nf);
+ b.mea = b.nf.xdb.bind(b.nf);
+ b.zkb = b.nf.dvb.bind(b.nf);
+ }, function (d, b, a) {
+ b = a(132);
+ b.Okb = 0;
+ d.P = {
+ EventEmitter: b,
+ Wi: a(911)
+ };
+ }, function (d) {
+ d.P = {
+ dQb: {
+ mu: 0,
+ YUb: 1,
+ name: ["STARTUP", "STEADY"]
+ },
+ JT: {
+ Sg: 0,
+ XUb: 1,
+ h7a: 2,
+ name: ["STARTING", "STABLE", "UNSTABLE"]
+ },
+ Na: {
+ AUDIO: 0,
+ VIDEO: 1,
+ name: ["AUDIO", "VIDEO"]
+ },
+ Yi: {
+ AUDIO: 0,
+ VIDEO: 1,
+ name: ["AUDIO", "VIDEO"]
+ },
+ zg: {
+ URL: 0,
+ LA: 1,
+ pva: 2,
+ fu: 3,
+ name: ["URL", "SERVER", "LOCATION", "NETWORK"]
+ },
+ Xe: {
+ HAVE_NOTHING: 0,
+ oA: 1,
+ nA: 2,
+ MK: 3,
+ name: ["HAVE_NOTHING", "HAVE_SOMETHING", "HAVE_MINIMUM", "HAVE_ENOUGH"]
+ },
+ Rg: {
+ LPb: 0,
+ IRb: 1,
+ eUb: 2,
+ NEXT: 3,
+ ITb: 4,
+ BVb: 5,
+ KRb: 6,
+ BSb: 7,
+ mu: 8,
+ ERROR: 9,
+ u8: 10,
+ T5a: 11,
+ Z4: 12,
+ $3a: 13,
+ Z3a: 14,
+ u6a: 15,
+ t6a: 16,
+ name: ("maxweightedbw fastselection reuseprevious nextdomain onlychoice tolowgrade fromlowgrade mcqueen startup error probeswitchback probeswitchaway bitrate locswitchback locswitchaway serverswitchback serverswitchaway").split(" ")
+ },
+ lRb: {
+ fu: 0,
+ HQb: 1,
+ name: ["NETWORK", "DECODE"]
+ },
+ UUb: {
+ JQb: "delayedSeamless",
+ cSb: "hideLongTransition"
+ }
+ };
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r;
+ c = a(86);
+ k = a(1147);
+ l = a(265);
+ r = a(1144);
+ d = (function () {
+ function a(a) {
+ this.yu = !1;
+ a && (this.im = a);
+ }
+ a.prototype.Rq = function (b) {
+ var m;
+ m = new a();
+ m.source = this;
+ m.KI = b;
+ return m;
+ };
+ a.prototype.subscribe = function (a, b, f) {
+ var m;
+ m = this.KI;
+ a = k.dMb(a, b, f);
+ m ? m.call(a, this.source) : a.add(this.source || !a.Ym ? this.im(a) : this.sba(a));
+ if (a.Ym && (a.Ym = !1, a.YD))
+ throw a.ZD;
+ return a;
+ };
+ a.prototype.sba = function (a) {
+ try {
+ return this.im(a);
+ } catch (m) {
+ a.YD = !0;
+ a.ZD = m;
+ a.error(m);
+ }
+ };
+ a.prototype.forEach = function (a, b) {
+ var f;
+ f = this;
+ b || (c.root.JA && c.root.JA.config && c.root.JA.config.Promise ? b = c.root.JA.config.Promise : c.root.Promise && (b = c.root.Promise));
+ if (!b)
+ throw Error("no Promise impl found");
+ return new b(function (b, m) {
+ var h;
+ h = f.subscribe(function (b) {
+ if (h)
+ try {
+ a(b);
+ } catch (C) {
+ m(C);
+ h.unsubscribe();
+ }
+ else
+ a(b);
+ }, m, b);
+ });
+ };
+ a.prototype.im = function (a) {
+ return this.source.subscribe(a);
+ };
+ a.prototype[l.observable] = function () {
+ return this;
+ };
+ a.prototype.PCb = function () {
+ for (var a = [], b = 0; b < arguments.length; b++) {
+ a[b - 0] = arguments[b];
+ }
+ return 0 === a.length ? this : r.QCb(a)(this);
+ };
+ a.prototype.Sz = function () {
+ var a,
+ b;
+ b = this;
+ a || (c.root.JA && c.root.JA.config && c.root.JA.config.Promise ? a = c.root.JA.config.Promise : c.root.Promise && (a = c.root.Promise));
+ if (!a)
+ throw Error("no Promise impl found");
+ return new a(function (a, m) {
+ var f;
+ b.subscribe(function (a) {
+ return f = a;
+ }, function (a) {
+ return m(a);
+ }, function () {
+ return a(f);
+ });
+ });
+ };
+ a.create = function (b) {
+ return new a(b);
+ };
+ return a;
+ })();
+ b.sb = d;
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Zd = void 0;
+ b.Zd = "IsTypeSymbol";
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.rHa = b.fKa = b.yv = b.Wj = b.Fd = b.NP = b.trim = b.iP = b.TWa = b.Mma = b.aCb = b.Ud = b.gFa = b.lGa = b.yb = b.Ed = void 0;
+ c = a(17);
+ k = a(23);
+ l = a(9);
+ r = a(15);
+ b.Ed = function (a, b) {
+ for (var m in a) {
+ a.hasOwnProperty(m) && b(m, a[m]);
+ }
+ };
+ b.yb = b.yb || (function (a, c, m) {
+ var f,
+ h,
+ p;
+ if (c)
+ if (m) {
+ f = m.hI;
+ h = m.prefix;
+ p = m.lw;
+ b.Ed(c, function (b, m) {
+ if (!p || k.dc(m))
+ a[(h || "") + (f ? b.toLowerCase() : b)] = m;
+ });
+ } else
+ b.Ed(c, function (b, f) {
+ a[b] = f;
+ });
+ return a;
+ });
+ b.lGa = function (a, b, m, f) {
+ var h;
+ if (a) {
+ h = a[b];
+ r.Zb(h) && (m = h.apply(a, l.slice.call(arguments, 3)));
+ }
+ return m;
+ };
+ b.gFa = function (a) {
+ for (var b = {}, m = a.length; m--; ) {
+ b[a[m]] = !0;
+ }
+ return b;
+ };
+ b.Ud = b.Ud || (function (a) {
+ return parseInt(a, 10);
+ });
+ b.aCb = function (a) {
+ return (/^true$/i).test(a);
+ };
+ b.Mma = function (a, b) {
+ return l.Th(a + l.wA() * (b - a));
+ };
+ b.TWa = function (a) {
+ return JSON.stringify(a, null, " ");
+ };
+ b.iP = (function () {
+ var b,
+ m;
+ function a(a) {
+ c.Ra(void 0 !== b[a]);
+ return b[a];
+ }
+ b = {
+ "&": "&",
+ "'": "'",
+ '"': """,
+ "<": "<",
+ ">": ">"
+ };
+ m = /[&'"<>]/g;
+ return function (b) {
+ return b.replace(m, a);
+ };
+ })();
+ b.trim = (function () {
+ var a;
+ a = /^\s+|\s+$/gm;
+ return function (b) {
+ return b.replace(a, "");
+ };
+ })();
+ b.NP = function (a) {
+ return Array.isArray(a) ? a : [a];
+ };
+ b.Fd = b.Fd || (function (a) {
+ var b,
+ m,
+ f;
+ if (a) {
+ b = a.stack;
+ m = a.number;
+ f = a.message;
+ f || (f = "" + a);
+ b ? (a = "" + b, 0 != a.indexOf(f) && (a = f + "\n" + a)) : a = f;
+ m && (a += "\nnumber:" + m);
+ return a;
+ }
+ });
+ b.Wj = function (a) {
+ return r.na(a) ? a.toFixed(0) : "";
+ };
+ b.yv = function (a) {
+ return r.na(a) ? (a / 1E3).toFixed(0) : "";
+ };
+ b.fKa = function (a) {
+ return r.na(a) ? a.toFixed() : "";
+ };
+ b.rHa = function (a) {
+ for (var b = [], m = 0; m < a.length; m++) {
+ b[m] = a[m];
+ }
+ return b;
+ };
+ }, function (d, b, a) {
+ var r,
+ h;
+ function c(a) {
+ return null !== a && void 0 !== a;
+ }
+ function k(a) {
+ return typeof a == b.nAa;
+ }
+ function l(a, b, f) {
+ var m,
+ p,
+ l;
+ if (b)
+ if (f) {
+ m = f.hI;
+ p = f.prefix;
+ l = f.lw;
+ h.Ed(b, function (b, f) {
+ if (!l || c(f))
+ a[(p || "") + (m ? b.toLowerCase() : b)] = f;
+ });
+ } else
+ h.Ed(b, function (b, f) {
+ a[b] = f;
+ });
+ return a;
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.I = b.Fd = b.iP = b.uH = b.SB = b.createElement = b.ws = b.fFa = b.TX = b.AJ = b.yb = b.jn = b.Ud = b.Qv = b.Td = b.df = b.dc = b.mAa = b.W6a = b.X6a = b.nAa = b.Xz = b.J4 = b.Sp = b.mK = b.lK = b.Si = b.fU = b.vA = b.wA = b.hn = b.am = b.Th = b.I7 = b.bu = b.vE = b.g8 = b.EA = b.Bj = b.ff = void 0;
+ r = a(9);
+ h = a(22);
+ b.ff = function () {};
+ b.Bj = 1E3;
+ b.EA = Object.create;
+ b.g8 = Object.keys;
+ b.vE = Date.now;
+ b.bu = Math.floor;
+ b.I7 = Math.ceil;
+ b.Th = Math.round;
+ b.am = Math.max;
+ b.hn = Math.min;
+ b.wA = Math.random;
+ b.vA = Math.abs;
+ b.fU = Math.pow;
+ b.Si = "$attributes";
+ b.lK = "$children";
+ b.mK = "$name";
+ b.Sp = "$text";
+ b.J4 = "$parent";
+ b.Xz = "$sibling";
+ b.nAa = "string";
+ b.X6a = "number";
+ b.W6a = "function";
+ b.mAa = "object";
+ b.dc = c;
+ b.df = function (a) {
+ return typeof a == b.mAa;
+ };
+ b.Td = k;
+ b.Qv = function (a) {
+ return k(a) && a;
+ };
+ b.Ud = function (a) {
+ return parseInt(a, 10);
+ };
+ b.jn = function (a, b, f) {
+ return a >= b ? a <= f ? a : f : b;
+ };
+ b.yb = l;
+ b.AJ = function (a) {
+ return l({}, a);
+ };
+ b.TX = function (a) {
+ var h;
+ for (var b = 0; b < arguments.length; ++b) { ;
+ }
+ for (var b = 0, f = arguments.length; b < f; ) {
+ h = arguments[b++];
+ if (c(h))
+ return h;
+ }
+ };
+ b.fFa = function (a, b) {
+ for (var f, m = !0, h; m; ) {
+ for ((m = !1, f = a.length); --f; ) {
+ h = a[f];
+ h[b] < a[f - 1][b] && (a[f] = a[f - 1], a[f - 1] = h, m = !0);
+ }
+ }
+ };
+ b.ws = function (a, b) {
+ if (a.length == b.length) {
+ for (var f = a.length; f--; ) {
+ if (a[f] != b[f])
+ return !1;
+ }
+ return !0;
+ }
+ return !1;
+ };
+ b.createElement = function (a, b, f, c) {
+ var m;
+ m = r.Ae.createElement(a);
+ b && (m.style.cssText = b);
+ f && (m.innerHTML = f);
+ c && h.Ed(c, function (a, b) {
+ m.setAttribute(a, b);
+ });
+ return m;
+ };
+ b.SB = function (a) {
+ var b;
+ b = "";
+ h.Ed(a, function (a, m) {
+ b += (b ? ";" : "") + a + ":" + m;
+ });
+ return b;
+ };
+ b.uH = function (a, m, f) {
+ var h;
+ a / m > f ? (h = b.Th(m * f), a = m) : (h = a, a = b.Th(a / f));
+ return {
+ width: h,
+ height: a
+ };
+ };
+ b.iP = (function () {
+ var b,
+ f;
+ function a(a) {
+ return b[a];
+ }
+ b = {
+ "&": "&",
+ "'": "'",
+ '"': """,
+ "<": "<",
+ ">": ">"
+ };
+ f = /[&'"<>]/g;
+ return function (b) {
+ return b.replace(f, a);
+ };
+ })();
+ b.Fd = function (a) {
+ var b,
+ f;
+ if (a) {
+ b = a.stack;
+ f = a.number;
+ a = "" + a;
+ b ? (b = "" + b, 0 != b.indexOf(a) && (b = a + "\n" + b)) : b = a;
+ f && (b += "\nnumber:" + f);
+ return b;
+ }
+ };
+ b.I = {
+ nl: 1001,
+ Df: 1003,
+ t2a: 1701,
+ Sta: 1713,
+ u2a: 1715,
+ s2a: 1721,
+ AT: 1723
+ };
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Me = void 0;
+ b.Me = "ApplicationSymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.hf = void 0;
+ b.hf = "UtilitiesSymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Cf = void 0;
+ b.Cf = "AsyncComponentLoaderSymbol";
+ }, function (d, b) {
+ function a(a, b) {
+ return "number" !== typeof a || "number" !== typeof b ? !1 : a && b ? Math.abs(a * b / c(a, b)) : 0;
+ }
+ function c(a, b) {
+ var c;
+ a = Math.abs(a);
+ for (b = Math.abs(b); b; ) {
+ c = b;
+ b = a % b;
+ a = c;
+ }
+ return a;
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.fa = void 0;
+ d = (function () {
+ function b(a, b) {
+ "object" === typeof a ? (this.Ju = a.Ab, this.jm = a.S) : (this.Ju = a, this.jm = b);
+ }
+ b.LBb = function (a) {
+ return new b(1, a);
+ };
+ b.Jd = function (a) {
+ return 0 === a ? b.Cc : new b(a, 1E3);
+ };
+ b.ypa = function (a, b) {
+ return Math.floor(1E3 * a / b);
+ };
+ b.Yka = function (a, b) {
+ return Math.floor(a * b / 1E3);
+ };
+ b.max = function () {
+ for (var a = [], b = 0; b < arguments.length; b++) {
+ a[b] = arguments[b];
+ }
+ return a.reduce(function (a, b) {
+ return a.greaterThan(b) ? a : b;
+ });
+ };
+ b.min = function () {
+ for (var a = [], b = 0; b < arguments.length; b++) {
+ a[b] = arguments[b];
+ }
+ return a.reduce(function (a, b) {
+ return a.lessThan(b) ? a : b;
+ });
+ };
+ b.pga = function (l, r) {
+ var h;
+ if (l.S === r.S)
+ return new b(c(l.Ab, r.Ab), l.S);
+ h = a(l.S, r.S);
+ return b.pga(l.ef(h), r.ef(h));
+ };
+ Object.defineProperties(b.prototype, {
+ Ab: {
+ get: function () {
+ return this.Ju;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ S: {
+ get: function () {
+ return this.jm;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ qa: {
+ get: function () {
+ return 1E3 * this.Ju / this.jm;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ qh: {
+ get: function () {
+ return this.Ju / this.jm;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ b.prototype.ef = function (a) {
+ a /= this.S;
+ return new b(Math.floor(this.Ab * a), Math.floor(this.S * a));
+ };
+ b.prototype.add = function (c) {
+ var l;
+ if (this.S === c.S)
+ return new b(this.Ab + c.Ab, this.S);
+ l = a(this.S, c.S);
+ return this.ef(l).add(c.ef(l));
+ };
+ b.prototype.Ib = function (a) {
+ return this.add(new b(-a.Ab, a.S));
+ };
+ b.prototype.u1 = function (a) {
+ return new b(this.Ab * a, this.S);
+ };
+ b.prototype.pv = function (b) {
+ var c;
+ if (this.S === b.S)
+ return this.Ab / b.Ab;
+ c = a(this.S, b.S);
+ return this.ef(c).pv(b.ef(c));
+ };
+ b.prototype.Kea = function (c) {
+ var l;
+ if (this.S === c.S)
+ return new b(Math.abs(this.Ab - c.Ab), this.S);
+ l = a(this.S, c.S);
+ return this.ef(l).Kea(c.ef(l));
+ };
+ b.prototype.pMa = function (b) {
+ return a(this.S, b);
+ };
+ b.prototype.eUa = function () {
+ return new b(this.S, this.Ab);
+ };
+ b.prototype.compare = function (b, c) {
+ var h;
+ if (this.S === c.S)
+ return b(this.Ab, c.Ab);
+ h = a(this.S, c.S);
+ return b(this.ef(h).Ab, c.ef(h).Ab);
+ };
+ b.prototype.Pj = function (a) {
+ return this.equal(a) ? 0 : this.lessThan(a) ? -1 : 1;
+ };
+ b.prototype.equal = function (a) {
+ return this.compare(function (a, b) {
+ return a === b;
+ }, a);
+ };
+ b.prototype.eD = function (a) {
+ return this.compare(function (a, b) {
+ return a !== b;
+ }, a);
+ };
+ b.prototype.lessThan = function (a) {
+ return this.compare(function (a, b) {
+ return a < b;
+ }, a);
+ };
+ b.prototype.greaterThan = function (a) {
+ return this.compare(function (a, b) {
+ return a > b;
+ }, a);
+ };
+ b.prototype.MC = function (a) {
+ return this.compare(function (a, b) {
+ return a <= b;
+ }, a);
+ };
+ b.prototype.Iy = function (a) {
+ return this.compare(function (a, b) {
+ return a >= b;
+ }, a);
+ };
+ b.prototype.Aeb = function (a, b) {
+ var c;
+ c = !1;
+ void 0 === c && (c = !0);
+ return c ? this.Iy(a) && this.MC(b) : this.greaterThan(a) && this.lessThan(b);
+ };
+ b.prototype.toJSON = function () {
+ return {
+ ticks: this.Ab,
+ timescale: this.S
+ };
+ };
+ b.prototype.toString = function () {
+ return this.Ab + "/" + this.S;
+ };
+ b.Cc = new b(0, 1E3);
+ b.kw = new b(1, 1E3);
+ b.Os = new b(Infinity, 1);
+ return b;
+ })();
+ b.fa = d;
+ }, function (d, b, a) {
+ var c;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ c = a(131);
+ b.Oa = !1;
+ d = (function () {
+ function a(a, b, c, p, m) {
+ this.fb = a;
+ this.type = b;
+ this.byteOffset = c;
+ this.byteLength = p;
+ this.parent = m;
+ this.Vc = {};
+ this.jD = p;
+ }
+ a.kC = function (a, b) {
+ var p,
+ f;
+ function c(a) {
+ a && a.kC && (a = a.kC(b), a.length && (p = p.concat(a)));
+ }
+ p = [];
+ a.type === b && p.push(a);
+ if (a.Vc)
+ for (var m in a.Vc) {
+ f = a.Vc[m];
+ Array.isArray(f) && f.forEach(c);
+ }
+ return p;
+ };
+ a.SM = function (a, b) {
+ void 0 === a.Vc[b.type] && (a.Vc[b.type] = []);
+ a.Vc[b.type].push(b);
+ };
+ a.lC = function (b, c) {
+ return a.kC(b, c)[0];
+ };
+ Object.defineProperties(a.prototype, {
+ startOffset: {
+ get: function () {
+ return this.byteOffset;
+ },
+ enumerable: !0,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ length: {
+ get: function () {
+ return this.byteLength;
+ },
+ enumerable: !0,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ M: {
+ get: function () {
+ return this.fb;
+ },
+ enumerable: !0,
+ configurable: !0
+ }
+ });
+ a.prototype.$f = function () {
+ var a;
+ a = this.fb.Mb();
+ this.version = a >> 24;
+ this.qf = a & 16777215;
+ };
+ a.prototype.SM = function (b) {
+ a.SM(this, b);
+ };
+ a.prototype.kC = function (b) {
+ return a.kC(this, b);
+ };
+ a.prototype.lC = function (b) {
+ return a.lC(this, b);
+ };
+ a.prototype.parse = function () {
+ return !0;
+ };
+ a.prototype.sH = function () {
+ return !0;
+ };
+ a.prototype.qr = function (a) {
+ if ((a = this.Vc[a]) && Array.isArray(a) && 1 === a.length)
+ return a[0];
+ };
+ a.prototype.$k = function (a, b) {
+ b = void 0 === b ? this.fb.offset : b;
+ c.assert(b >= this.startOffset + 8 && b + a <= this.startOffset + this.jD, "Removal range [0x" + b.toString(16) + "-0x" + (b + a).toString(16) + ") must be in box [0x" + this.startOffset.toString(16) + "-0x" + (this.startOffset + this.jD).toString(16) + ")");
+ this.fb.$k(a, b, this);
+ };
+ a.prototype.O2 = function (a, b, h) {
+ h = void 0 === h ? this.fb.offset : h;
+ c.assert(h >= this.startOffset + 8 && h + a <= this.startOffset + this.jD, "Removal range [0x" + h.toString(16) + "-0x" + (h + a).toString(16) + ") must be in box [0x" + this.startOffset.toString(16) + "-0x" + (this.startOffset + this.jD).toString(16) + ")");
+ this.fb.O2(a, b, h, this);
+ };
+ a.prototype.WTa = function (a, b, c) {
+ if (1 < c) {
+ for (var h = []; 0 < c--; ) {
+ h.push(this.yDa(a, b));
+ }
+ return h;
+ }
+ return this.yDa(a, b);
+ };
+ a.prototype.xt = function (a) {
+ var b,
+ c;
+ c = this;
+ void 0 === b && (b = {});
+ a.forEach(function (a) {
+ var m,
+ f;
+ if ("offset" === a.type) {
+ m = a.offset;
+ if (0 < m % 8)
+ throw Error("Requested offset " + a.offset + "is not an even byte multiple");
+ c.fb.offset += m / 8;
+ } else
+ for (m in a) {
+ f = a[m];
+ b[m] = "string" === typeof f ? c.WTa(f) : c.WTa(f.type, f.length, f.ndb);
+ }
+ });
+ return b;
+ };
+ a.prototype.yDa = function (a, b) {
+ var c;
+ c = this.byteLength - this.fb.offset + this.startOffset;
+ "undefined" === typeof b && (b = c);
+ switch (a) {
+ case "int8":
+ a = this.fb.Ad();
+ break;
+ case "int64":
+ a = this.fb.tj();
+ break;
+ case "int32":
+ a = this.fb.Mb();
+ break;
+ case "int16":
+ a = this.fb.kh();
+ break;
+ case "string":
+ a = this.fb.$Eb(Math.min(b, c));
+ break;
+ default:
+ throw Error("Invalid type: " + a);
+ }
+ return a;
+ };
+ a.uc = !1;
+ return a;
+ })();
+ b.cg = d;
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.JE = b.iA = b.bj = b.lT = void 0;
+ b.lT = "ConfigurableInputsSymbol";
+ b.bj = "ValidatingConfigurableInputsSymbol";
+ b.iA = "ConfigNameSymbol";
+ b.JE = "InitParamsSymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.R1a = b.Vw = b.ZAa = b.m7a = b.oi = b.Cd = b.Dj = b.Ar = b.Lr = void 0;
+ (function (a) {
+ a[a.Audio = 0] = "Audio";
+ a[a.UAa = 1] = "Video";
+ })(b.Lr || (b.Lr = {}));
+ (function (a) {
+ a[a.Uw = 0] = "Default";
+ a[a.du = 1] = "Microsoft";
+ })(b.Ar || (b.Ar = {}));
+ (function (a) {
+ a[a.Uw = 0] = "Default";
+ a[a.p5 = 1] = "Cast";
+ a[a.s5 = 2] = "Chrome";
+ a[a.du = 3] = "Microsoft";
+ a[a.wza = 4] = "Safari";
+ })(b.Dj || (b.Dj = {}));
+ (function (a) {
+ a[a.wL = 0] = "SD";
+ a[a.GT = 1] = "HD";
+ a[a.hV = 2] = "UHD";
+ a[a.Xt = 3] = "DV";
+ a[a.$t = 4] = "HDR10";
+ a[a.pE = 5] = "AVCHigh";
+ a[a.ux = 6] = "VP9";
+ a[a.Ti = 7] = "AV1";
+ })(b.Cd || (b.Cd = {}));
+ (function (a) {
+ a[a.Ir = 0] = "Level_1_4";
+ a[a.sA = 1] = "Level_2_2";
+ })(b.oi || (b.oi = {}));
+ b.m7a = function () {};
+ (function (a) {
+ a[a.nUb = 0] = "Platform";
+ a[a.EQb = 1] = "CurrentTitle";
+ })(b.ZAa || (b.ZAa = {}));
+ b.Vw = "DeviceCapabilitiesSymbol";
+ b.R1a = function () {};
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.$E = b.FU = b.D5 = b.n7 = b.Bwa = b.AA = b.k$ = b.bx = b.s$ = void 0;
+ b.s$ = "WindowTimersSymbol";
+ b.bx = "JSONSymbol";
+ b.k$ = "UserAgentSymbol";
+ b.AA = "NavigatorSymbol";
+ b.Bwa = "MediaSourceSymbol";
+ b.n7 = "LocationSymbol";
+ b.D5 = "DateSymbol";
+ b.FU = "PerformanceSymbol";
+ b.$E = "PlatformExtraInfoSymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Xp = b.aj = void 0;
+ b.aj = "PlatformSymbol";
+ b.Xp = "PlatformMutableSymbol";
+ }, function (d, b, a) {
+ var r,
+ h,
+ p;
+ function c(a) {
+ var b,
+ m,
+ c,
+ l;
+ c = Object.getOwnPropertyNames(a);
+ for (a = Object.getPrototypeOf(a); a !== Object.prototype; ) {
+ try {
+ for (var h = (b = void 0, r.__values(Object.getOwnPropertyNames(a))), p = h.next(); !p.done; p = h.next()) {
+ l = p.value;
+ -1 === c.indexOf(l) && c.push(l);
+ }
+ } catch (M) {
+ b = {
+ error: M
+ };
+ }
+ finally {
+ try {
+ p && !p.done && (m = h["return"]) && m.call(h);
+ }
+ finally {
+ if (b)
+ throw b.error;
+ }
+ }
+ a = Object.getPrototypeOf(a);
+ }
+ return c;
+ }
+ function k(a, b, c, h, p) {
+ var f;
+ Object.getOwnPropertyNames(a).filter(function (a) {
+ return p(a) && (c || !Object.prototype.hasOwnProperty.call(b, a)) && (h || !((a in b)));
+ }).forEach(function (m) {
+ f = Object.getOwnPropertyDescriptor(a, m);
+ void 0 !== f && Object.defineProperty(b, m, f);
+ });
+ }
+ function l(a, b, h, p) {
+ var f,
+ m;
+ f = [];
+ h || (f = Object.getOwnPropertyNames(b));
+ p || (f = c(b));
+ m = Object.getPrototypeOf(a);
+ null !== m && m !== Object.prototype && l(m, b, h, p);
+ k(a, b, !0, !0, function (a) {
+ return "constructor" !== a && -1 === f.indexOf(a);
+ });
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Ve = b.whb = void 0;
+ r = a(0);
+ h = a(5);
+ b.whb = l;
+ p = Object.getOwnPropertyNames(Function);
+ b.Ve = function (a, b, c, r) {
+ void 0 === c && (c = !0);
+ void 0 === r && (r = !0);
+ r || h.assert(!c);
+ a.prototype ? (l(a.prototype, b.prototype, c, r), k(a, b, c, r, function (a) {
+ return -1 === p.indexOf(a);
+ })) : k(a, b.prototype, c, r, function (a) {
+ return -1 === p.indexOf(a);
+ });
+ return b;
+ };
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.kl = b.eu = b.Zt = void 0;
+ (function (a) {
+ a[a.pAa = 0] = "Test";
+ a[a.hva = 1] = "Int";
+ a[a.N6a = 2] = "Staging";
+ a[a.a6a = 3] = "Prod";
+ })(b.Zt || (b.Zt = {}));
+ (function (a) {
+ a[a.KU = 0] = "PreferMsl";
+ a[a.Jya = 1] = "PreferNoMsl";
+ a[a.Y4a = 2] = "NoMsl";
+ })(b.eu || (b.eu = {}));
+ b.kl = "GeneralConfigSymbol";
+ }, function (d, b, a) {
+ var r,
+ h;
+ function c(a, b) {
+ return a && a.Pq && (b || !1 !== a.Fs);
+ }
+ function k(a, b, f) {
+ return !r.na(a) || a < b ? b : a > f ? f : a;
+ }
+ function l(a) {
+ if (!(this instanceof l))
+ return new l(a);
+ this.ld = r.na(a) ? a : void 0;
+ }
+ r = a(8);
+ h = new(a(4).Console)("ASEJS_STREAM_SELECTOR", "media|asejs");
+ d.P = {
+ console: h,
+ debug: !1,
+ assert: function (a, b) {
+ if (!a)
+ throw (a = b ? " : " + b : "", h.error("Assertion failed" + a), Error("ASEJS_STREAM_SELECTOR assertion failed" + a));
+ },
+ GC: c,
+ Sfa: function (a, b, f) {
+ var c,
+ h,
+ p,
+ l;
+ function m(b) {
+ var c;
+ c = a[b];
+ if (!c.Pq || f && !f(c, b))
+ return !1;
+ l = b;
+ return !0;
+ }
+ c = a.length;
+ h = 0;
+ p = c;
+ r.isArray(b) && (h = k(b[0], 0, c), p = k(b[1], 0, c), b = b[2]);
+ b = k(b, h - 1, p);
+ for (c = b - 1; c >= h; --c) {
+ if (m(c))
+ return l;
+ }
+ for (c = b + 1; c < p; ++c) {
+ if (m(c))
+ return l;
+ }
+ return -1;
+ },
+ Ozb: function (a, b) {
+ return Math.floor(a / (125 * b) * 1E3);
+ },
+ cfb: function (a, b) {
+ return Math.ceil(a / 1E3 * b * 125);
+ },
+ hZb: function (a, b) {
+ return !a.slice(b + 1).some(c);
+ },
+ Co: l,
+ xl: function (a, b) {
+ var f;
+ return a.some(function (a, c, m) {
+ f = a;
+ return b(a, c, m);
+ }) ? f : void 0;
+ },
+ ay: function (a, b) {
+ var f;
+ return a.some(function (a, c, m) {
+ f = c;
+ return b(a, c, m);
+ }) ? f : -1;
+ },
+ RX: k
+ };
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Tg = void 0;
+ b.Tg = "SchedulerSymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.ni = void 0;
+ b.ni = "ClockSymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.kx = "named";
+ b.lU = "name";
+ b.CL = "unmanaged";
+ b.$wa = "optional";
+ b.YK = "inject";
+ b.uA = "multi_inject";
+ b.iAa = "inversify:tagged";
+ b.jAa = "inversify:tagged_props";
+ b.k8 = "inversify:paramtypes";
+ b.e1a = "design:paramtypes";
+ b.lL = "post_construct";
+ }, function (d, b, a) {
+ var k,
+ l,
+ r,
+ h;
+ function c() {
+ return b.NL.LC.ca(h.ia);
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Egb = b.vda = b.LGa = b.KGa = b.Dgb = b.EN = b.zh = b.d7 = b.uCa = b.NL = b.su = void 0;
+ d = a(277);
+ k = a(37);
+ l = a(24);
+ r = a(116);
+ h = a(3);
+ b.su = d.jc.get(k.ni);
+ b.NL = d.jc.get(l.Me);
+ b.uCa = d.jc.get(r.rA);
+ b.d7 = b.NL.id;
+ b.zh = function () {
+ return b.NL.Yb().ca(h.ia);
+ };
+ b.EN = function () {
+ return b.su.$e.ca(h.ll);
+ };
+ b.Dgb = function () {
+ return b.NL.LC.ca(h.ll);
+ };
+ b.KGa = function () {
+ return b.uCa.TB();
+ };
+ b.LGa = c;
+ b.vda = function () {
+ return b.su.$e.ca(h.ia);
+ };
+ b.Egb = function () {
+ return c();
+ };
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r,
+ h;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.me = b.rK = b.kAa = void 0;
+ c = a(0);
+ k = a(1154);
+ l = a(1);
+ r = a(139);
+ b.kAa = "isTestAccount";
+ h = (function () {
+ var m;
+ function a(a, b) {
+ this.iHa = b;
+ this.Hma = {};
+ this.Jv = a.Jv;
+ this.pQ = a.pQ;
+ this.A2 = a.A2;
+ }
+ a.prototype.jKa = function () {};
+ a.prototype.ZGb = function (a, b) {
+ this.Hma[a] = [b, this.Jv.Y2];
+ };
+ a.prototype.Pvb = function (a) {
+ return k.j8.of(this.Hma[a]).map(function (a) {
+ return a[1];
+ }).ow(-1) < this.Jv.Y2;
+ };
+ a.prototype.$rb = function (a) {
+ return k.j8.of(this.Hma[a]).map(function (a) {
+ return a[0];
+ }).ow(function () {
+ throw Error("Invalid State Error");
+ });
+ };
+ wa.Object.defineProperties(a.prototype, {
+ Rcb: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ var a,
+ c;
+ if (this && this.Jv && this.Jv.data) {
+ a = this.Jv.data[b.kAa];
+ "undefined" !== typeof a && (c = a.toString());
+ a = this.pQ.Pma(c);
+ a = a instanceof r.kn ? !1 : a;
+ } else
+ a = !1;
+ return a;
+ }
+ }
+ });
+ m = a;
+ return m = c.__decorate([l.N(), c.__param(0, l.mi()), c.__param(1, l.mi())], m);
+ })();
+ b.rK = h;
+ d = (function () {
+ var b;
+ function a(a, b) {
+ var f;
+ f = h.call(this, a, b) || this;
+ f.iHa = b;
+ f.debug = a.debug;
+ f.ka = a.sf.xb(f.iHa);
+ return f;
+ }
+ N(a, h);
+ a.prototype.jKa = function (a, b) {
+ this.ka.error("Invalid configuration value.", {
+ name: a
+ }, b);
+ this.debug.assert(!1);
+ };
+ b = a;
+ return b = c.__decorate([c.__param(0, l.mi()), c.__param(1, l.mi())], b);
+ })();
+ b.me = d;
+ }, function (d, b, a) {
+ var r,
+ h,
+ p;
+ function c(a) {
+ return function (b, c) {
+ return b.Sma(c, a);
+ };
+ }
+ function k(a, b) {
+ return a.A2.OEb[b] || l(a, b);
+ }
+ function l(a, b) {
+ a = a.Jv.data[b];
+ switch (typeof a) {
+ case "undefined":
+ break;
+ case "string":
+ case "number":
+ case "boolean":
+ return a.toString();
+ default:
+ return JSON.stringify(a);
+ }
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Hn = b.$ma = b.object = b.jnb = b.url = b.da = b.hh = b.Qpa = b.cvb = b.X3 = b.string = b.Mw = b.jd = b.a0 = b.config = void 0;
+ r = a(50);
+ h = a(3);
+ p = a(139);
+ b.config = function (a, b) {
+ return function (f, c, m) {
+ var h,
+ u;
+ h = void 0 !== b ? b : c;
+ u = m.get;
+ void 0 !== u && (m.get = function () {
+ var b;
+ if (!this.Pvb(c))
+ return this.$rb(c);
+ a: {
+ b = (this.Rcb ? k : l)(this, h.toString());
+ if (void 0 !== b)
+ if ((b = a(this.pQ, b), b instanceof p.kn))
+ this.jKa(h, b);
+ else
+ break a;
+ b = u.bind(this)();
+ }
+ this.ZGb(c, b);
+ return b;
+ });
+ return m;
+ };
+ };
+ b.a0 = function (a, b) {
+ return a.STa(b);
+ };
+ b.jd = function (a, b) {
+ return a.Pma(b);
+ };
+ b.Mw = function (a, b) {
+ return a.Xa(b);
+ };
+ b.string = function (a, b) {
+ return a.Sma(b);
+ };
+ b.X3 = function (a, f) {
+ return a.Vd(f, b.string);
+ };
+ b.cvb = function (a, f) {
+ return a.Vd(f, b.a0);
+ };
+ b.Qpa = function (a, f) {
+ return a.Vd(f, b.Mw);
+ };
+ b.hh = function (a, b) {
+ a = a.Xa(b);
+ return a instanceof p.kn ? a : h.Gb(a);
+ };
+ b.da = function (a, b) {
+ a = a.Xa(b);
+ return a instanceof p.kn ? a : r.da(a);
+ };
+ b.url = c(/^\S+$/);
+ b.jnb = function (a) {
+ return function (b, c) {
+ return b.RTa(c, a);
+ };
+ };
+ b.object = function () {
+ return function (a, b) {
+ return a.TTa(b);
+ };
+ };
+ b.$ma = c;
+ b.Hn = function (a, b) {
+ return function (f, c) {
+ return f.Vd(c, a, b);
+ };
+ };
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Ui = void 0;
+ b.Ui = "Base64EncoderSymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.TU = b.Ag = b.uh = void 0;
+ b.uh = {
+ lPa: "logblob",
+ xa: "manifest",
+ Ig: "license",
+ events: "events",
+ bind: "bind",
+ bSa: "pair",
+ ping: "ping",
+ config: "config"
+ };
+ d = b.Ag || (b.Ag = {});
+ d[d.Gr = 20] = "High";
+ d[d.P7 = 10] = "Medium";
+ d[d.ME = 0] = "Low";
+ b.TU = {
+ Ag: "reqPriority",
+ l6a: "reqAttempt",
+ m6a: "reqName"
+ };
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Oa = void 0;
+ b.Oa = !1;
+ }, function (d, b, a) {
+ var k;
+ function c(a) {
+ return a.filter(function (b, c) {
+ return a.indexOf(b) === c;
+ });
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.kla = b.dtb = b.yhb = b.Aq = b.vzb = b.WGa = b.hFa = b.zB = b.ldb = b.dFa = b.ay = b.eFa = b.xl = void 0;
+ k = a(0);
+ b.xl = function (a, b) {
+ var c;
+ return a.some(function (a, m, f) {
+ c = a;
+ return b(a, m, f);
+ }) ? c : void 0;
+ };
+ b.eFa = function (a, b) {
+ for (var c = a.length - 1; 0 <= c; --c) {
+ if (b(a[c], c, a))
+ return a[c];
+ }
+ };
+ b.ay = function (a, b) {
+ var c;
+ c = -1;
+ return a.some(function (a, m, f) {
+ c = m;
+ return b(a, m, f);
+ }) ? c : -1;
+ };
+ b.dFa = function (a, b) {
+ for (var c = a.length - 1; 0 <= c; c--) {
+ if (b(a[c], c, a))
+ return c;
+ }
+ return -1;
+ };
+ b.ldb = c;
+ b.zB = function (a, b, c) {
+ return c ? a.filter(function (a) {
+ return !b.some(function (b) {
+ return c(a, b);
+ });
+ }) : a.filter(function (a) {
+ return -1 === b.indexOf(a);
+ });
+ };
+ b.hFa = function (a, b) {
+ return c(a.concat(b));
+ };
+ b.WGa = function (a) {
+ return function (b, c) {
+ b = a(b);
+ c = a(c);
+ return b < c ? -1 : b > c ? 1 : 0;
+ };
+ };
+ b.vzb = function (a) {
+ return function (b, c) {
+ return a(b) < a(c) ? b : c;
+ };
+ };
+ b.Aq = function (a) {
+ var b;
+ return (b = []).concat.apply(b, k.__spread(a));
+ };
+ b.yhb = function (a, b) {
+ void 0 === b && (b = function (a) {
+ return a;
+ });
+ return a.reduce(function (a, c) {
+ c = b(c);
+ return (void 0 === a[c] ? a[c] = 1 : ++a[c], a);
+ }, {});
+ };
+ b.dtb = function (a, b) {
+ return a.reduce(function (a, c) {
+ var m;
+ m = b(c);
+ return (void 0 === a[m] ? a[m] = [c] : a[m].push(c), a);
+ }, {});
+ };
+ b.kla = function (a) {
+ return null !== a && void 0 !== a;
+ };
+ }, function (d, b, a) {
+ var m,
+ f,
+ u,
+ w,
+ A,
+ K,
+ C;
+ function c() {
+ var a,
+ f;
+ if (a = b.e_.wDa)
+ return a;
+ a = K.rU.search.substr(1);
+ f = a.indexOf("#");
+ 0 <= f && (a = a.substr(0, f));
+ a = k(a);
+ return b.e_.wDa = a;
+ }
+ function k(a) {
+ for (var b = /[+]/g, f = (a || "").split("&"), c = {}, m, h = 0; h < f.length; h++) {
+ a = w.trim(f[h]);
+ m = a.indexOf("=");
+ 0 <= m ? c[decodeURIComponent(a.substr(0, m).replace(b, "%20")).toLowerCase()] = decodeURIComponent(a.substr(m + 1).replace(b, "%20")) : c[a.toLowerCase()] = null;
+ }
+ return c;
+ }
+ function l(a) {
+ return (a = (/function (.{1,})\(/).exec(a.toString())) && 1 < a.length ? a[1] : "";
+ }
+ function r(a) {
+ return l(a.constructor);
+ }
+ function h(a) {
+ return K.sort.call(a, function (a, b) {
+ return a - b;
+ });
+ }
+ function p(a) {
+ for (var b = 0, f = a.length; f--; ) {
+ b += a[f];
+ }
+ return b;
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.EDb = b.XO = b.hLa = b.s0 = b.ADb = b.nOa = b.Z_a = b.$_a = b.Cob = b.oq = b.Wgb = b.uH = b.Ynb = b.gD = b.r_a = b.Q4 = b.s_a = b.RS = b.Pqa = b.q_a = b.Zub = b.SB = b.aEb = b.tla = b.Ega = b.getFunctionName = b.GI = b.zQ = b.e_ = b.Srb = b.OTa = b.xEa = b.mHa = b.YEb = b.ws = b.XGa = void 0;
+ m = a(10);
+ f = a(17);
+ u = a(6);
+ w = a(22);
+ A = a(23);
+ K = a(9);
+ C = a(15);
+ b.XGa = function (a, b) {
+ if (a === b)
+ return !0;
+ if (!a || !b)
+ return !1;
+ for (var f in a) {
+ if (a.hasOwnProperty(f) && (!b.hasOwnProperty(f) || a[f] !== b[f]))
+ return !1;
+ }
+ return !0;
+ };
+ b.ws = b.ws || (function (a, b) {
+ if (a.length == b.length) {
+ for (var f = a.length; f--; ) {
+ if (a[f] != b[f])
+ return !1;
+ }
+ return !0;
+ }
+ return !1;
+ });
+ b.YEb = function (a) {
+ var b;
+ if (a) {
+ b = a.length;
+ if (b)
+ return (b = w.Mma(0, b - 1), a[b]);
+ }
+ };
+ b.mHa = function (a, b) {
+ if (a.length != b.length)
+ return !1;
+ a.sort();
+ b.sort();
+ for (var f = a.length; f--; ) {
+ if (a[f] !== b[f])
+ return !1;
+ }
+ return !0;
+ };
+ b.xEa = function (a, b, f) {
+ function c() {
+ a.removeEventListener(b, c);
+ f.apply(this, arguments);
+ }
+ a.addEventListener(b, c);
+ };
+ b.OTa = function () {
+ var a,
+ b,
+ f,
+ c,
+ m,
+ h;
+ a = K.Ae.cookie.split("; ");
+ b = a.length;
+ h = {};
+ for (f = 0; f < b; f++) {
+ if (c = w.trim(a[f]))
+ (m = c.indexOf("="), 0 < m && (h[c.substr(0, m)] = c.substr(m + 1)));
+ }
+ return h;
+ };
+ b.Srb = c;
+ b.e_ = Object.assign(c, {
+ wDa: void 0
+ });
+ b.zQ = k;
+ b.GI = function (a) {
+ var b;
+ b = "";
+ w.Ed(a, function (a, c) {
+ b && (b += "&");
+ f.Ra(A.Td(c) || C.na(c) || C.Oia(c));
+ b += encodeURIComponent(a) + "=" + encodeURIComponent(c);
+ });
+ return b;
+ };
+ b.getFunctionName = l;
+ b.Ega = r;
+ b.tla = function (a) {
+ var b;
+ b = "";
+ C.isArray(a) || C.eja(a) ? b = K.reduce.call(a, function (a, b) {
+ return a + (32 <= b && 128 > b ? K.dAa(b) : ".");
+ }, "") : A.Td(a) ? b = a : w.Ed(a, function (a, f) {
+ b += (b ? ", " : "") + "{" + a + ": " + (C.Zb(f) ? l(f) || "function" : f) + "}";
+ });
+ return "[" + r(a) + " " + b + "]";
+ };
+ b.aEb = function (a, b) {
+ a.firstChild ? a.insertBefore(b, a.firstChild) : a.appendChild(b);
+ };
+ b.SB = b.SB || (function (a) {
+ var b;
+ b = "";
+ w.Ed(a, function (a, f) {
+ b += (b ? ";" : "") + a + ":" + f;
+ });
+ return b;
+ });
+ b.Zub = function (a, b) {
+ var f;
+ f = a[0];
+ if (b <= f[0])
+ return f.slice(1);
+ for (var c = 1, m; m = a[c++]; ) {
+ if (b <= m[0]) {
+ a = (b - f[0]) / (m[0] - f[0]);
+ b = [];
+ for (c = 1; c < f.length; c++) {
+ b.push((f[c] || 0) + a * ((m[c] || 0) - (f[c] || 0)));
+ }
+ return b;
+ }
+ f = m;
+ }
+ return f.slice(1);
+ };
+ b.q_a = function (a, b) {
+ var m;
+ for (var f = {}, c = 0; c < b.length; c++) {
+ m = b[c];
+ if ("string" != typeof m && "number" != typeof m)
+ return !1;
+ f[b[c]] = 1;
+ }
+ for (c = 0; c < a.length; c++) {
+ if ((m = a[c], !f[m]))
+ return !1;
+ }
+ return !0;
+ };
+ b.Pqa = function (a, b) {
+ 0 > a.indexOf(b) && a.push(b);
+ };
+ b.RS = h;
+ b.s_a = p;
+ b.Q4 = function (a, b) {
+ var f,
+ c,
+ m,
+ h;
+ f = -1;
+ c = a.length;
+ if (1 === arguments.length) {
+ for (; ++f < c && !(null != (m = a[f]) && m <= m); ) {
+ m = void 0;
+ }
+ for (; ++f < c; ) {
+ null != (h = a[f]) && h > m && (m = h);
+ }
+ } else {
+ for (; ++f < c && !(null != (m = b.call(a, a[f], f)) && m <= m); ) {
+ m = void 0;
+ }
+ for (; ++f < c; ) {
+ null != (h = b.call(a, a[f], f)) && h > m && (m = h);
+ }
+ }
+ return m;
+ };
+ b.r_a = function (a, b) {
+ var f,
+ c,
+ m,
+ h;
+ f = -1;
+ c = a.length;
+ if (1 === arguments.length) {
+ for (; ++f < c && !(null != (m = a[f]) && m <= m); ) {
+ m = void 0;
+ }
+ for (; ++f < c; ) {
+ null != (h = a[f]) && m > h && (m = h);
+ }
+ } else {
+ for (; ++f < c && !(null != (m = b.call(a, a[f], f)) && m <= m); ) {
+ m = void 0;
+ }
+ for (; ++f < c; ) {
+ null != (h = b.call(a, a[f], f)) && m > h && (m = h);
+ }
+ }
+ return m;
+ };
+ b.gD = function (a) {
+ return C.Zb(a.then) ? a : new Promise(function (b, f) {
+ a.oncomplete = function () {
+ b(a.result);
+ };
+ a.onerror = function () {
+ f(a.error);
+ };
+ });
+ };
+ b.Ynb = function (a, b) {
+ var c,
+ m,
+ p,
+ u,
+ l,
+ k;
+ function f(a) {
+ 0 > c.indexOf(a) && C.na(a) && c.push(a);
+ }
+ a = a.slice();
+ h(a);
+ c = [];
+ if (!b || !b.length)
+ return a;
+ if (!a.length)
+ return [];
+ m = b.length;
+ try {
+ for (; m--; ) {
+ l = "" + b[m];
+ k = A.Ud(l);
+ switch (l[l.length - 1]) {
+ case "-":
+ for (p = a.length; p--; ) {
+ if ((u = a[p], u < k)) {
+ f(u);
+ break;
+ }
+ }
+ break;
+ case "+":
+ for (p = 0; p < a.length; p++) {
+ if ((u = a[p], u > k)) {
+ f(u);
+ break;
+ }
+ }
+ break;
+ default:
+ 0 <= a.indexOf(k) && f(k);
+ }
+ }
+ } catch (fa) {}
+ c.length || c.push(a[0]);
+ h(c);
+ return c;
+ };
+ b.uH = b.uH || (function (a, b, f) {
+ var c;
+ a / b > f ? (c = K.Th(b * f), a = b) : (c = a, a = K.Th(a / f));
+ return {
+ width: c,
+ height: a
+ };
+ });
+ b.Wgb = function (a, b, f) {
+ for (var c = [], m = 0; m < b; m++) {
+ c.push(K.fU(a[m] - f, 2));
+ }
+ return K.mwa(p(c) / c.length);
+ };
+ b.oq = function (a, b) {
+ var f;
+ f = a.length;
+ b = (f - 1) * b + 1;
+ if (1 === b)
+ return a[0];
+ if (b == f)
+ return a[f - 1];
+ f = K.bu(b);
+ return a[f - 1] + (b - f) * (a[f] - a[f - 1]);
+ };
+ b.Cob = function (a, b) {
+ if (!C.isArray(a))
+ throw Error("boxes is not an array");
+ if (0 >= a.length)
+ throw Error("There are no boxes in boxes");
+ b = C.isArray(b) ? b : [b];
+ for (var f = a.length, c = 0; c < f; c++) {
+ for (var m = 0; m < b.length; m++) {
+ if (a[c].type == b[m])
+ return a[c];
+ }
+ }
+ throw Error("Box not found " + b);
+ };
+ b.$_a = function (a) {
+ return a.zH("trak/mdia/minf/stbl/stsd/" + m.zra + "|" + m.Ara).children.filter(function (a) {
+ return "sinf" == a.type && "cenc" == a.Wfa.schm.zHb;
+ })[0].zH("schi/tenc").Qs;
+ };
+ b.Z_a = function (a) {
+ var f;
+ function b(a, b) {
+ var c;
+ c = f[a];
+ f[a] = f[b];
+ f[b] = c;
+ }
+ f = new Uint8Array(a);
+ b(0, 3);
+ b(1, 2);
+ b(4, 5);
+ b(6, 7);
+ return f;
+ };
+ b.nOa = function () {
+ return C.Zb(K.Zi.requestMediaKeySystemAccess);
+ };
+ b.ADb = function (a) {
+ return function (b) {
+ return b && b[a];
+ };
+ };
+ C.Zb(ArrayBuffer.prototype.slice) || (ArrayBuffer.prototype.slice = function (a, b) {
+ var f,
+ c;
+ void 0 === a && (a = 0);
+ void 0 === b && (b = this.byteLength);
+ a = Math.floor(a);
+ b = Math.floor(b);
+ 0 > a && (a += this.byteLength);
+ 0 > b && (b += this.byteLength);
+ a = Math.min(Math.max(0, a), this.byteLength);
+ b = Math.min(Math.max(0, b), this.byteLength);
+ if (0 >= b - a)
+ return new ArrayBuffer(0);
+ f = new ArrayBuffer(b - a);
+ c = new Uint8Array(f);
+ a = new Uint8Array(this, a, b - a);
+ c.set(a);
+ return f;
+ });
+ b.s0 = function (a) {
+ return a && 0 == a.toLowerCase().indexOf("https");
+ };
+ b.hLa = function () {
+ var a,
+ b;
+ a = new ArrayBuffer(4);
+ b = new Uint8Array(a);
+ a = new Uint32Array(a);
+ b[0] = 161;
+ b[1] = 178;
+ b[2] = 195;
+ b[3] = 212;
+ return 3569595041 == a[0] ? "LE" : 2712847316 == a[0] ? "BE" : "undefined";
+ };
+ b.XO = function () {
+ var a,
+ b,
+ f;
+ try {
+ a = /playercore.*js/;
+ b = K.Mr.getEntries("resource").filter(function (b) {
+ return null !== a.exec(b.name);
+ });
+ if (b && 0 < b.length) {
+ f = K.Th(b[0].duration);
+ return JSON.stringify(f);
+ }
+ } catch (T) {}
+ };
+ b.EDb = function (a, b, f) {
+ if (a && a.length) {
+ if (f && f.mgb)
+ try {
+ a.forEach(function (a, c) {
+ var m;
+ m = (c = f.mgb[c]) && c.media;
+ m && A.Td(m) ? (m = u.pm(m).buffer, a.media = {
+ arrayBuffer: m,
+ length: m.byteLength,
+ stream: b,
+ tc: c.cdn
+ }) : u.log.warn("chunk not in cache", a.fh);
+ });
+ } catch (T) {
+ u.log.error("error reading cached chunks", T);
+ }
+ else
+ u.log.warn("chunks not available in cached stream", f.type);
+ } else
+ u.log.warn("chunks not available in mediabuffer", f.type);
+ };
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.o7 = b.uk = b.cU = void 0;
+ b.cU = "LogBatcherConfigSymbol";
+ b.uk = "LogBatcherSymbol";
+ b.o7 = "LogBatcherProviderSymbol";
+ }, function (d, b, a) {
+ var k;
+ function c(a, b, c, p, m, f, u, w, d, K, C, M) {
+ this.code = void 0 === a ? k.J.nl : a;
+ this.Nb = b;
+ this.xd = c;
+ this.wm = p;
+ this.ct = m;
+ this.message = f;
+ this.py = u;
+ this.data = w;
+ this.Vn = d;
+ this.kDb = K;
+ this.alert = C;
+ this.Yba = M;
+ this.U = !1;
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Dc = void 0;
+ k = a(2);
+ c.Fd = function (a) {
+ var b,
+ c,
+ p;
+ if (a) {
+ b = a.stack;
+ c = a.number;
+ p = a.message;
+ p || (p = "" + a);
+ b ? (a = "" + b, 0 !== a.indexOf(p) && (a = p + "\n" + a)) : a = p;
+ c && (a += "\nnumber:" + c);
+ return a;
+ }
+ return "";
+ };
+ c.prototype.iO = function (a) {
+ this.py = c.Fd(a);
+ this.data = a;
+ };
+ c.prototype.toString = function () {
+ return JSON.stringify(this.toJSON);
+ };
+ c.prototype.toJSON = function () {
+ return {
+ code: this.code,
+ subCode: this.Nb,
+ extCode: this.xd,
+ edgeCode: this.wm,
+ mslCode: this.ct,
+ message: this.message,
+ details: this.py,
+ data: this.data,
+ errorDisplayMessage: this.Vn,
+ playbackServiceError: this.kDb
+ };
+ };
+ c.EZ = function (a, b) {
+ return new c(a, k.I.Df, void 0, void 0, void 0, void 0, b.message, b.stack);
+ };
+ c.ROb = function (a, b) {
+ return new c(a, k.I.Df, void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0, b);
+ };
+ b.Dc = c;
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.yk = void 0;
+ b.yk = "PboCommandContextSymbol";
+ }, function (d, b, a) {
+ var l;
+ function c(a) {
+ return l.DL.apply(this, arguments) || this;
+ }
+ function k(a) {
+ return new l.Wp(a, b.hA);
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Cc = b.Dwa = b.i7 = b.Cr = b.hA = b.Zyb = b.swb = b.da = b.kN = b.f0a = void 0;
+ l = a(515);
+ N(c, l.DL);
+ b.f0a = c;
+ b.kN = k;
+ b.da = function (a) {
+ return new l.Wp(a, b.Cr);
+ };
+ b.swb = function (a) {
+ return new l.Wp(a, b.i7);
+ };
+ b.Zyb = function (a) {
+ return new l.Wp(a, b.Dwa);
+ };
+ b.hA = new c(1, "b");
+ b.Cr = new c(8 * b.hA.Af, "B", b.hA);
+ b.i7 = new c(1024 * b.Cr.Af, "KB", b.hA);
+ b.Dwa = new c(1024 * b.i7.Af, "MB", b.hA);
+ b.Cc = k(0);
+ }, function (d, b, a) {
+ var c,
+ k;
+ c = a(112);
+ k = a(173);
+ d.P = function (a) {
+ return function h(b, m) {
+ switch (arguments.length) {
+ case 0:
+ return h;
+ case 1:
+ return k(b) ? h : c(function (f) {
+ return a(b, f);
+ });
+ default:
+ return k(b) && k(m) ? h : k(b) ? c(function (b) {
+ return a(b, m);
+ }) : k(m) ? c(function (f) {
+ return a(b, f);
+ }) : a(b, m);
+ }
+ };
+ };
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Zl = void 0;
+ b.Zl = "EmeConfigSymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Hm = b.LKb = b.ARa = void 0;
+ b.ARa = function (a, b) {
+ return a - b;
+ };
+ b.LKb = function (a, b) {
+ return a.localeCompare(b);
+ };
+ b.Hm = function (a, b) {
+ var c;
+ c = Object.getOwnPropertyDescriptor(a, b);
+ c && Object.defineProperty(a, b, {
+ configurable: c.configurable,
+ enumerable: !1,
+ value: c.value,
+ writable: c.writable
+ });
+ };
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.I1a = "Cannot apply @injectable decorator multiple times.";
+ b.J1a = "Metadata key was used more than once in a parameter:";
+ b.eL = "NULL argument";
+ b.lva = "Key Not Found";
+ b.PZa = "Ambiguous match found for serviceIdentifier:";
+ b.l0a = "Could not unbind serviceIdentifier:";
+ b.Q4a = "No matching bindings found for serviceIdentifier:";
+ b.p4a = "Missing required @injectable annotation in:";
+ b.q4a = "Missing required @inject or @multiInject annotation in:";
+ b.f7a = function (a) {
+ return "@inject called with undefined this could mean that the class " + a + " has a circular dependency problem. You can use a LazyServiceIdentifer to overcome this limitation.";
+ };
+ b.o0a = "Circular dependency found:";
+ b.iTb = "Sorry, this feature is not fully implemented yet.";
+ b.D3a = "Invalid binding type:";
+ b.R4a = "No snapshot available to restore.";
+ b.G3a = "Invalid return type in middleware. Middleware must return!";
+ b.sSb = "Value provided to function binding must be a function!";
+ b.I3a = "The toSelf function can only be applied when a constructor is used as service identifier";
+ b.E3a = "The @inject @multiInject @tagged and @named decorators must be applied to the parameters of a class constructor or a class property.";
+ b.QZa = function () {
+ for (var a = [], b = 0; b < arguments.length; b++) {
+ a[b] = arguments[b];
+ }
+ return "The number of constructor arguments in the derived class " + (a[0] + " must be >= than the number of constructor arguments of its base class.");
+ };
+ b.D0a = "Invalid Container constructor argument. Container options must be an object.";
+ b.B0a = "Invalid Container option. Default scope must be a string ('singleton' or 'transient').";
+ b.A0a = "Invalid Container option. Auto bind injectable must be a boolean";
+ b.C0a = "Invalid Container option. Skip base check must be a boolean";
+ b.D4a = "Cannot apply @postConstruct decorator multiple times in the same class";
+ b.R5a = function () {
+ for (var a = [], b = 0; b < arguments.length; b++) {
+ a[b] = arguments[b];
+ }
+ return "@postConstruct error in class " + a[0] + ": " + a[1];
+ };
+ b.p0a = function () {
+ for (var a = [], b = 0; b < arguments.length; b++) {
+ a[b] = arguments[b];
+ }
+ return "It looks like there is a circular dependency " + ("in one of the '" + a[0] + "' bindings. Please investigate bindings with") + ("service identifier '" + a[1] + "'.");
+ };
+ b.C6a = "Maximum call stack size exceeded";
+ }, function (d, b, a) {
+ var c,
+ k;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.s_ = b.MH = b.t_ = b.Hy = b.Hl = b.Te = void 0;
+ d = a(66);
+ c = a(58);
+ k = a(9);
+ b.Te = new d.Xi();
+ b.Hl = 1;
+ b.Hy = 2;
+ b.t_ = 3;
+ b.MH = 4;
+ b.s_ = 5;
+ c.zc(function () {
+ var c,
+ h,
+ p;
+ function a(a, b) {
+ if (h)
+ h.on(a, b);
+ else
+ t.addEventListener(a, b);
+ }
+ c = t.jQuery;
+ h = c && c(t);
+ c = (c = t.netflix) && c.cadmium && c.cadmium.addBeforeUnloadHandler;
+ p = k.Ae.hidden;
+ c ? c(function (a) {
+ b.Te.$b(b.Hl, a);
+ }) : a("beforeunload", function (a) {
+ b.Te.$b(b.Hl, a);
+ });
+ a("keydown", function (a) {
+ b.Te.$b(b.Hy, a);
+ });
+ a("resize", function () {
+ b.Te.$b(b.t_);
+ });
+ k.Ae.addEventListener("visibilitychange", function () {
+ p !== k.Ae.hidden && (p = k.Ae.hidden, b.Te.$b(b.MH));
+ });
+ });
+ (function () {
+ t.addEventListener("error", function (a) {
+ b.Te.$b(b.s_, a);
+ return !0;
+ });
+ })();
+ }, function (d, b, a) {
+ var k,
+ l;
+ function c(a, h) {
+ var p;
+ p = b.ln[0];
+ p == h && (p = b.ln[1]);
+ p ? p.close(function () {
+ c(a, h);
+ }) : a && a(k.pd);
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.gya = b.fya = b.S8 = b.T8 = b.aF = b.V8 = b.U8 = b.Y8 = b.X8 = b.ln = b.Z8 = b.W8 = void 0;
+ k = a(10);
+ l = a(17);
+ b.W8 = c;
+ b.Z8 = function (a, c) {
+ switch (a) {
+ case b.U8:
+ b.X8.push(c);
+ return;
+ case b.V8:
+ b.Y8.push(c);
+ return;
+ }
+ l.Ra(!1);
+ };
+ b.ln = [];
+ b.X8 = [];
+ b.Y8 = [];
+ b.U8 = 1;
+ b.V8 = 3;
+ b.aF = {
+ index: 0,
+ Lzb: void 0,
+ $fa: void 0
+ };
+ b.T8 = "network";
+ b.S8 = "media";
+ b.fya = "timedtext";
+ b.gya = "playback";
+ }, function (d, b, a) {
+ var c,
+ k;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Nzb = b.platform = b.vm = b.Hc = b.arb = b.SO = b.APa = void 0;
+ d = a(0);
+ d.__exportStar(a(424), b);
+ d.__exportStar(a(915), b);
+ d.__exportStar(a(914), b);
+ d.__exportStar(a(913), b);
+ c = a(27);
+ Object.defineProperty(b, "Timestamp", {
+ enumerable: !0,
+ get: function () {
+ return c.fa;
+ }
+ });
+ b.APa = function (c) {
+ b.platform.QH(c);
+ return a(912).dwa;
+ };
+ b.SO = function (c) {
+ b.platform.QH(c);
+ return Promise.resolve().then(function () {
+ return a(423);
+ }).then(function (a) {
+ return a.SO();
+ });
+ };
+ b.arb = function () {
+ return a(223);
+ };
+ d = a(19);
+ b.Hc = d;
+ d = a(723);
+ b.vm = d.vm;
+ d = a(4);
+ b.platform = d;
+ k = a(722);
+ b.Nzb = function () {
+ return {
+ jx: k.jx
+ };
+ };
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.zc = void 0;
+ b.zc = function (a) {
+ return setTimeout(a, 0);
+ };
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.ml = b.xg = b.W = void 0;
+ d = (function () {
+ function a() {}
+ a.KK = "playready-h264mpl30-dash";
+ a.DE = "playready-h264mpl31-dash";
+ a.s6 = "playready-h264mpl40-dash";
+ a.A2a = "playready-h264hpl22-dash";
+ a.ET = "playready-h264hpl30-dash";
+ a.FT = "playready-h264hpl31-dash";
+ a.r6 = "playready-h264hpl40-dash";
+ a.E6 = "hevc-main-L30-dash-cenc";
+ a.F6 = "hevc-main-L31-dash-cenc";
+ a.G6 = "hevc-main-L40-dash-cenc";
+ a.H6 = "hevc-main-L41-dash-cenc";
+ a.I6 = "hevc-main-L50-dash-cenc";
+ a.J6 = "hevc-main-L51-dash-cenc";
+ a.A6 = "hevc-main10-L30-dash-cenc";
+ a.B6 = "hevc-main10-L31-dash-cenc";
+ a.C6 = "hevc-main10-L40-dash-cenc";
+ a.D6 = "hevc-main10-L41-dash-cenc";
+ a.FE = "hevc-main10-L50-dash-cenc";
+ a.GE = "hevc-main10-L51-dash-cenc";
+ a.KT = "hevc-main10-L30-dash-cenc-prk";
+ a.MT = "hevc-main10-L31-dash-cenc-prk";
+ a.OT = "hevc-main10-L40-dash-cenc-prk";
+ a.QT = "hevc-main10-L41-dash-cenc-prk";
+ a.LT = "hevc-main10-L30-dash-cenc-prk-do";
+ a.NT = "hevc-main10-L31-dash-cenc-prk-do";
+ a.PT = "hevc-main10-L40-dash-cenc-prk-do";
+ a.RT = "hevc-main10-L41-dash-cenc-prk-do";
+ a.ST = "hevc-main10-L50-dash-cenc-prk-do";
+ a.TT = "hevc-main10-L51-dash-cenc-prk-do";
+ a.ZRb = "hevc-main-L30-L31-dash-cenc-tl";
+ a.$Rb = "hevc-main-L31-L40-dash-cenc-tl";
+ a.aSb = "hevc-main-L40-L41-dash-cenc-tl";
+ a.bSb = "hevc-main-L50-L51-dash-cenc-tl";
+ a.VRb = "hevc-main10-L30-L31-dash-cenc-tl";
+ a.WRb = "hevc-main10-L31-L40-dash-cenc-tl";
+ a.XRb = "hevc-main10-L40-L41-dash-cenc-tl";
+ a.YRb = "hevc-main10-L50-L51-dash-cenc-tl";
+ a.zK = "hevc-dv5-main10-L30-dash-cenc-prk";
+ a.AK = "hevc-dv5-main10-L31-dash-cenc-prk";
+ a.uE = "hevc-dv5-main10-L40-dash-cenc-prk";
+ a.BK = "hevc-dv5-main10-L41-dash-cenc-prk";
+ a.CK = "hevc-dv5-main10-L50-dash-cenc-prk";
+ a.nT = "hevc-dv5-main10-L51-dash-cenc-prk";
+ a.t6 = "hevc-hdr-main10-L30-dash-cenc";
+ a.u6 = "hevc-hdr-main10-L31-dash-cenc";
+ a.v6 = "hevc-hdr-main10-L40-dash-cenc";
+ a.w6 = "hevc-hdr-main10-L41-dash-cenc";
+ a.x6 = "hevc-hdr-main10-L50-dash-cenc";
+ a.y6 = "hevc-hdr-main10-L51-dash-cenc";
+ a.NK = "hevc-hdr-main10-L30-dash-cenc-prk";
+ a.OK = "hevc-hdr-main10-L31-dash-cenc-prk";
+ a.EE = "hevc-hdr-main10-L40-dash-cenc-prk";
+ a.PK = "hevc-hdr-main10-L41-dash-cenc-prk";
+ a.HT = "hevc-hdr-main10-L50-dash-cenc-prk";
+ a.IT = "hevc-hdr-main10-L51-dash-cenc-prk";
+ a.RAa = "vp9-profile0-L21-dash-cenc";
+ a.jV = "vp9-profile0-L30-dash-cenc";
+ a.kV = "vp9-profile0-L31-dash-cenc";
+ a.lV = "vp9-profile0-L40-dash-cenc";
+ a.MAa = "vp9-profile2-L30-dash-cenc-prk";
+ a.NAa = "vp9-profile2-L31-dash-cenc-prk";
+ a.OAa = "vp9-profile2-L40-dash-cenc-prk";
+ a.PAa = "vp9-profile2-L50-dash-cenc-prk";
+ a.QAa = "vp9-profile2-L51-dash-cenc-prk";
+ a.yqa = "av1-main-L20-dash-cbcs-prk";
+ a.zqa = "av1-main-L21-dash-cbcs-prk";
+ a.Aqa = "av1-main-L30-dash-cbcs-prk";
+ a.Bqa = "av1-main-L31-dash-cbcs-prk";
+ a.Cqa = "av1-main-L40-dash-cbcs-prk";
+ a.Dqa = "av1-main-L41-dash-cbcs-prk";
+ a.Eqa = "av1-main-L50-dash-cbcs-prk";
+ a.Fqa = "av1-main-L51-dash-cbcs-prk";
+ a.p6a = [a.KK];
+ a.E2a = [a.DE, a.s6];
+ a.c7a = [a.E6, a.F6, a.G6, a.H6, a.I6, a.J6];
+ a.e7a = [a.A6, a.B6, a.C6, a.D6, a.FE, a.GE];
+ a.IAa = [a.KT, a.MT, a.OT, a.QT, a.FE, a.GE];
+ a.d7a = [a.LT, a.NT, a.PT, a.RT, a.ST, a.TT];
+ a.D2a = [a.t6, a.u6, a.v6, a.w6, a.x6, a.y6];
+ a.hua = [a.NK, a.OK, a.EE, a.PK, a.HT, a.IT];
+ a.Ksa = [a.zK, a.uE, a.CK, a.AK, a.BK, a.nT];
+ a.UQb = [a.zK, a.AK, a.uE, a.BK, a.CK];
+ if (!useAVC){
+ a.l_a = [a.ET, a.FT, a.r6];
+ }
+ a.PVb = [a.jV, a.kV, a.lV];
+ a.ux = [a.RAa, a.jV, a.kV, a.lV, a.MAa, a.NAa, a.OAa, a.PAa, a.QAa];
+ a.f_a = [a.yqa, a.zqa, a.Aqa];
+ a.e_a = [a.Bqa, a.Cqa, a.Dqa];
+ a.g_a = [a.Eqa, a.Fqa];
+ a.Ti = [].concat(a.f_a, a.e_a, a.g_a);
+ a.gua = a.p6a.concat(a.E2a);
+ a.C2a = a.c7a;
+ a.B2a = a.e7a;
+ a.o_a = [].concat(a.gua, a.C2a, a.B2a, a.IAa, a.D2a, a.hua, a.Ksa, a.ux, a.Ti);
+ return a;
+ })();
+ b.W = d;
+ b.xg = (function () {
+ function a() {}
+ a.QK = "heaac-2-dash";
+ a.F2a = "heaac-5.1-dash";
+ a.RK = "heaac-2hq-dash";
+ a.oV = "xheaac-dash";
+ a.xK = "ddplus-2.0-dash";
+ a.y5 = "ddplus-5.1-dash";
+ a.yK = "ddplus-atmos-dash";
+ a.z6 = "playready-heaac-2-dash";
+ a.H2a = "heaac-2-dash-enc";
+ a.L0a = "ddplus-2.0-dash-enc";
+ a.M0a = "ddplus-5.1-dash-enc";
+ a.G2a = "playready-heaac-2-dash-enc";
+ a.o_a = [a.QK, a.RK, a.xK, a.y5, a.yK, a.z6, a.H2a, a.L0a, a.M0a, a.G2a];
+ return a;
+ })();
+ b.ml = (function () {
+ function a() {}
+ a.y6a = "simplesdh";
+ a.B5 = "dfxp-ls-sdh";
+ a.RE = "nflx-cmisc";
+ a.VUb = "simplesdh-enc";
+ a.NQb = "dfxp-ls-sdh-enc";
+ a.oU = "nflx-cmisc-enc";
+ return a;
+ })();
+ }, function (d) {
+ d.P = function (b, a) {
+ for (var c in b) {
+ b.hasOwnProperty(c) && (a[c] = b[c]);
+ }
+ return a;
+ };
+ }, function (d, b) {
+ function a(a) {
+ var b;
+ b = Error.call(this, "TimeoutError");
+ this.message = b.message;
+ ("stack" in b) && (this.stack = b.stack);
+ this.interval = a;
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.nx = b.rn = void 0;
+ N(a, Error);
+ b.rn = a;
+ b.nx = "PromiseTimerSymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.zo = void 0;
+ b.zo = "LogMessageFactorySymbol";
+ }, function (d, b, a) {
+ var k,
+ l,
+ r,
+ h,
+ p;
+ function c(a) {
+ return ["STANDARD", "LIMITED", "PREVIEW"][a];
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.sk = b.za = b.si = void 0;
+ d = a(121);
+ (function (a) {
+ a[a.cm = 0] = "STANDARD";
+ a[a.dx = 1] = "LIMITED";
+ a[a.dUb = 2] = "PREVIEW";
+ })(k || (k = {}));
+ l = (function () {
+ function a() {}
+ a.IVb = "uirequest";
+ a.cUb = "prefetch_start";
+ a.aUb = "prefetch_complete";
+ a.bUb = "prefetch_delete";
+ a.u5a = "periodic_update";
+ return a;
+ })();
+ r = {
+ manifest: d.Ne.qk.xqa,
+ ldl: d.Ne.qk.cx,
+ getHeaders: d.Ne.qk.SK,
+ getMedia: d.Ne.qk.MEDIA
+ };
+ (function (a) {
+ a[a.HAVE_NOTHING = 0] = "HAVE_NOTHING";
+ a[a.HAVE_METADATA = 1] = "HAVE_METADATA";
+ a[a.HAVE_CURRENT_DATA = 2] = "HAVE_CURRENT_DATA";
+ a[a.HAVE_FUTURE_DATA = 3] = "HAVE_FUTURE_DATA";
+ a[a.HAVE_ENOUGH_DATA = 4] = "HAVE_ENOUGH_DATA";
+ })(h || (h = {}));
+ (function (a) {
+ a.a_a = "asl_start";
+ a.ZZa = "asl_comp";
+ a.FPb = "asl_exc";
+ a.$Za = "asl_fail";
+ a.F6a = "stf_creat";
+ a.a3a = "idb_open";
+ a.Y2a = "idb_block";
+ a.h3a = "idb_upgr";
+ a.g3a = "idb_succ";
+ a.Z2a = "idb_error";
+ a.$2a = "idb_invalid_state";
+ a.c3a = "idb_open_timeout";
+ a.e3a = "idb_open_wrkarnd";
+ a.f3a = "idb_storelen_exc";
+ a.b3a = "idb_open_exc";
+ a.d3a = "idb_timeout_invalid_storelen";
+ a.x4a = "msl_load_data";
+ a.z4a = "msl_load_no_data";
+ a.y4a = "msl_load_failed";
+ })(p = b.si || (b.si = {}));
+ (function (a) {
+ a.n8 = "PlaybackRequestStart";
+ a.m8 = "PlaybackRequestEnd";
+ a.SU = "RequestPrefetchManifestStart";
+ a.RU = "RequestPrefetchManifestEnd";
+ a.QU = "RequestManifestStart";
+ a.PU = "RequestManifestEnd";
+ a.OU = "RequestLicenseStart";
+ a.NU = "RequestLicenseEnd";
+ a.fT = "RequestTimedTextUrlStart";
+ a.eT = "RequestTimedTextUrlEnd";
+ a.dT = "RequestAudioUrlStart";
+ a.cT = "RequestAudioUrlEnd";
+ a.hT = "RequestVideoUrlStart";
+ a.gT = "RequestVideoUrlEnd";
+ a.L4 = "AppendBufferStart";
+ a.K4 = "AppendBufferEnd";
+ a.B9 = "SetMediaKeysStart";
+ a.A9 = "SetMediaKeysEnd";
+ a.CT = "GenerateChallengeStart";
+ a.BT = "GenerateChallengeEnd";
+ a.N4 = "ApplyLicenseStart";
+ a.M4 = "ApplyLicenseEnd";
+ })(b.za || (b.za = {}));
+ b.sk = (function () {
+ function a() {}
+ a.Y3a = k;
+ a.pHa = c;
+ a.S5a = l;
+ a.mL = r;
+ a.si = p;
+ a.kua = h;
+ return a;
+ })();
+ }, function (d, b, a) {
+ var c;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ c = a(38);
+ d = (function () {
+ function a(a, b) {
+ this.key = a;
+ this.value = b;
+ }
+ a.prototype.toString = function () {
+ return this.key === c.kx ? "named: " + this.value.toString() + " " : "tagged: { key:" + this.key.toString() + ", value: " + this.value + " }";
+ };
+ return a;
+ })();
+ b.Metadata = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r,
+ h,
+ p;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.rh = void 0;
+ c = a(0);
+ k = a(1);
+ l = a(323);
+ r = a(3);
+ h = a(48);
+ p = a(34);
+ d = (function () {
+ var b;
+ function a(a, b, f, c, h, m) {
+ this.context = a;
+ this.errorCode = b;
+ this.dHb = f;
+ this.lna = h;
+ this.zW = m;
+ this.name = c;
+ }
+ a.prototype.send = function (a, b, f, c, h, m, l) {
+ var u;
+ l = void 0 === l ? p.eu.KU : l;
+ u = this;
+ return this.oqb(a, b, f, l, c, h, m).then(function (a) {
+ return u.context.Ilb.send(a.context, a.request);
+ });
+ };
+ a.prototype.oqb = function (a, b, f, c, h, m, p) {
+ var u,
+ l;
+ try {
+ u = this.context.DGb.create(this.context.OH.TB(), b, f, h, c);
+ l = this.Zeb(a, c, m, p);
+ return Promise.resolve({
+ context: l,
+ request: u
+ });
+ } catch (S) {
+ return Promise.reject(S);
+ }
+ };
+ a.prototype.Zeb = function (a, b, f, c) {
+ return {
+ cf: this.context.cf,
+ log: a,
+ Oj: this.name,
+ url: this.context.INb(l.aGa(this.context.gg, this.context.bi, this.name, b)),
+ Bna: this.dHb,
+ timeout: r.qh(59),
+ headers: l.$Fa(this.context.bi, this.context.qy),
+ kna: this.kna,
+ lna: void 0 !== f ? f : this.lna,
+ Eeb: c
+ };
+ };
+ a.prototype.Gl = function (a) {
+ return a instanceof h.Dc ? a : l.Gl(this.errorCode, a);
+ };
+ a.prototype.AGa = function (a) {
+ var b;
+ b = this;
+ a.forEach(function (a) {
+ if (b.vP(a))
+ throw a.error;
+ });
+ };
+ a.prototype.vP = function (a) {
+ return void 0 !== a.error;
+ };
+ wa.Object.defineProperties(a.prototype, {
+ kna: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.zW;
+ }
+ }
+ });
+ b = a;
+ return b = c.__decorate([k.N(), c.__param(0, k.mi()), c.__param(1, k.mi()), c.__param(2, k.mi()), c.__param(3, k.mi()), c.__param(4, k.mi()), c.__param(5, k.mi())], b);
+ })();
+ b.rh = d;
+ }, function (d, b, a) {
+ var k,
+ l;
+ function c() {
+ var a,
+ b;
+ a = this;
+ this.fq = {};
+ this.on = function (b, c, f) {
+ a.addListener(b, c, f);
+ };
+ this.addListener = function (b, c, f) {
+ a.fq && (a.fq[b] = a.fq[b] || new l.o9(!0)).add(c, f);
+ };
+ this.removeListener = function (b, c) {
+ a.fq && a.fq[b] && a.fq[b].removeAll(c);
+ };
+ this.Kga = function (b) {
+ return a.fq && a.fq[b] ? a.fq[b].Aq() : [];
+ };
+ b = this;
+ this.$b = function (a, c, f) {
+ var h;
+ if (b.fq) {
+ h = b.Kga(a);
+ for (a = {
+ Zj: 0
+ }; a.Zj < h.length; (a = {
+ Zj: a.Zj
+ }, a.Zj++)) {
+ f ? (function (a) {
+ return function () {
+ var b;
+ b = h[a.Zj];
+ k.zc(function () {
+ b(c);
+ });
+ };
+ })(a)() : h[a.Zj].call(this, c);
+ }
+ }
+ };
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Xi = void 0;
+ k = a(58);
+ l = a(476);
+ c.prototype.Fg = function () {
+ this.fq = void 0;
+ };
+ b.Xi = c;
+ }, function (d, b, a) {
+ var f,
+ u,
+ w,
+ A,
+ K,
+ C,
+ M,
+ H,
+ g,
+ T,
+ S,
+ n,
+ Z,
+ B,
+ q,
+ fa;
+ function c(a) {
+ var b,
+ f,
+ c,
+ h;
+ b = a.url.split("?");
+ f = b[0];
+ c = "sc=" + a.AHb;
+ h = a.dGa ? "random=" + (1E17 * S.wA()).toFixed(0) : "";
+ f = b[1] ? f + ("?" + b[1] + "&" + c) : f + ("?" + c);
+ f = f + (h ? "&" + h : "");
+ a.tc && !A.s0(f) && (a = u.config && u.config.dda) && (f = a.replace("{URL}", f).replace("{EURL}", encodeURIComponent(f)));
+ return f;
+ }
+ function k(a) {
+ var b,
+ f,
+ c,
+ h;
+ b = a.url.split("?");
+ f = b[0];
+ c = "bb_reason=" + a.reason;
+ h = a.dGa ? "random=" + (1E17 * S.wA()).toFixed(0) : "";
+ f = b[1] ? f + ("?" + b[1] + "&" + c) : f + ("?" + c);
+ f = f + (h ? "&" + h : "");
+ a.tc && !A.s0(f) && (a = u.config && u.config.dda) && (f = a.replace("{URL}", f).replace("{EURL}", encodeURIComponent(f)));
+ return f;
+ }
+ function l(a, b) {
+ var f,
+ c,
+ h,
+ m;
+ f = a.url.split("?");
+ c = f[0];
+ h = r(a);
+ h && (b.hr = h, (void 0 === a.ur ? u.config.ur : a.ur) ? (a.headers = a.headers || ({}), a.headers.Range = "bytes=" + h) : (b.hr = h, c = "/" == c[c.length - 1] ? c + "range/" : c + "/range/", c += h));
+ h = a.dGa ? "random=" + (1E17 * S.wA()).toFixed(0) : "";
+ u.config.eC && a.F3 && (m = "sc=" + a.F3, h = m + (h ? "&" + h : ""));
+ c = f[1] ? c + ("?" + f[1] + (h ? "&" + h : "")) : c + (h ? "?" + h : "");
+ a.tc && !A.s0(c) && (a = u.config && u.config.dda) && (c = a.replace("{URL}", c).replace("{EURL}", encodeURIComponent(c)));
+ b.url = c;
+ }
+ function r(a) {
+ var b;
+ b = a.offset;
+ if (void 0 !== b)
+ return (g.aO(b), void 0 !== a.length ? (a = a.offset + a.length - 1, g.aO(a), b + "-" + a) : b + "-");
+ }
+ function h() {
+ return !1 !== S.Zi.onLine;
+ }
+ function p(a, f, c, h) {
+ var m,
+ p;
+ m = h.mma;
+ p = h.headers;
+ a.open(m ? "POST" : "GET", f, !c);
+ switch (h.responseType) {
+ case b.jP:
+ a.responseType = "arraybuffer";
+ break;
+ case b.lia:
+ T.lGa(a, "overrideMimeType", void 0, "text/xml");
+ }
+ m && (f = {
+ "Content-Type": C.Td(m) ? "text/plain" : "application/x-octet-stream"
+ }, p = p ? C.yb(f, p) : f);
+ p && T.Ed(p, function (b, f) {
+ a.setRequestHeader(b, f);
+ });
+ h.withCredentials && (a.withCredentials = !0);
+ void 0 !== a.msCaching && (a.msCaching = "disabled");
+ m ? a.send(m) : a.send();
+ }
+ function m(a, f) {
+ switch (f.type) {
+ case b.jP:
+ return a.response || new ArrayBuffer(0);
+ case b.lia:
+ return a.responseXML;
+ default:
+ return a.responseText;
+ }
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.jP = b.lia = b.kia = b.mia = b.M_ = b.cNa = b.bNa = b.K_ = b.t7a = b.u7a = b.fub = b.L_ = b.cub = b.dub = b.bub = b.eub = b.cf = void 0;
+ f = a(66);
+ u = a(12);
+ w = a(10);
+ A = a(46);
+ K = a(39);
+ C = a(23);
+ M = a(2);
+ H = a(6);
+ g = a(17);
+ T = a(22);
+ S = a(9);
+ n = a(58);
+ Z = a(15);
+ B = a(26);
+ q = {
+ S9: 1,
+ TVb: 2,
+ y_a: 3
+ };
+ b.cf = (function () {
+ var A,
+ G,
+ T,
+ S;
+ function a(a) {
+ var b;
+ try {
+ b = a.url;
+ Z.gja(b) ? 0 === b.indexOf("https") ? S.ssl++ : 0 === b.indexOf("http") ? S["non-ssl"]++ : S.invalid++ : S.invalid++;
+ } catch (ja) {}
+ }
+ function r() {
+ G.$b(b.cNa);
+ G.$b(b.mia);
+ }
+ function d() {
+ G.$b(b.M_);
+ G.$b(b.mia);
+ }
+ A = H.Fh("Http");
+ G = new f.Xi();
+ T = 0;
+ S = {
+ ssl: 0,
+ "non-ssl": 0,
+ invalid: 0
+ };
+ H.ba.get(B.Cf).register(M.J.Vua, function (a) {
+ u.config.QNb && (t.addEventListener("online", r), t.addEventListener("offline", d), b.L_ = h);
+ a(w.pd);
+ });
+ return {
+ addEventListener: G.addListener,
+ removeEventListener: G.removeListener,
+ download: function (f, c) {
+ var q,
+ V,
+ t,
+ pa,
+ ia,
+ Y,
+ na,
+ X,
+ O,
+ P,
+ ha;
+ function h() {
+ var a;
+ h = C.ff;
+ ha && (clearTimeout(ha), ha = null);
+ G.removeListener(b.M_, d);
+ O && (O.onloadstart = null, O.onreadystatechange = null, O.onprogress = null, O.onerror = null, O.onload = null, O = O.onabort = null);
+ X.U || (X.ja != M.I.Xw ? q.warn("Download failed", V, M.Vp(X)) : q.trace("Download aborted", V));
+ a = t;
+ t = void 0;
+ for (var f = a.length; f--; ) {
+ (function () {
+ var b;
+ b = a[f];
+ n.zc(function () {
+ b(X);
+ });
+ })();
+ }
+ G.$b(b.bNa, X, !0);
+ }
+ function k() {
+ ha && (clearTimeout(ha), ha = null);
+ ha = setTimeout(S, P ? na : Y);
+ }
+ function r(a, b, f, c) {
+ var m,
+ p;
+ X.U = !1;
+ X.ja = a;
+ m = K.zh();
+ p = X.Ok;
+ p.ph = p.ph || m;
+ p.Tm = p.Tm || m;
+ 0 < b && (X.kj = X.Fe = b);
+ f && (X.ab = f);
+ c && (X.Az = c);
+ a !== M.I.TK && a !== M.I.pA && a !== M.I.WK || !O || (O.onabort = null, B());
+ h();
+ }
+ function w(a) {
+ var b,
+ f;
+ try {
+ f = a.getResponseHeader("X-Netflix.Retry.Server.Policy");
+ f && (b = JSON.parse(f));
+ } catch (wb) {}
+ return b;
+ }
+ function d() {
+ b.L_() || r(M.I.TK);
+ }
+ function S() {
+ r(P ? M.I.pA : M.I.WK);
+ }
+ function B() {
+ try {
+ O && O.abort();
+ } catch (Sc) {}
+ }
+ function aa() {
+ r(M.I.Xw);
+ }
+ g.Ra(c);
+ q = f.j && f.j.log && H.Gg(f.j, "Http") || A;
+ V = {
+ Num: T++
+ };
+ t = [c];
+ pa = {};
+ Y = f.YX || u.config.YX;
+ na = f.gla || u.config.gla;
+ a(f);
+ X = (function () {
+ var a,
+ b,
+ c;
+ a = C.ff;
+ b = C.ff;
+ c = C.ff;
+ return {
+ request: f,
+ type: f.responseType,
+ Ok: pa,
+ abort: B,
+ timeout: S,
+ Iba: function (a) {
+ h !== C.ff && (g.Ra(t, "Callback should be added before download starts."), t && t.unshift(a));
+ },
+ P1: function (a) {
+ c(a);
+ },
+ R1: function (b) {
+ a(b);
+ },
+ iw: function (a) {
+ b(a);
+ },
+ SIb: function (a) {
+ c = a;
+ },
+ $Ib: function (b) {
+ a = b;
+ },
+ MIb: function (a) {
+ b = a;
+ }
+ };
+ })();
+ n.zc(function () {
+ var a,
+ c;
+ if (Z.gja(f.url))
+ try {
+ if ((l(f, X), ia = X.url, g.UG(ia), V.Url = ia, b.L_())) {
+ O = new XMLHttpRequest();
+ a = u.config.VNb && "undefined" != typeof O.onloadstart;
+ a && (O.onloadstart = function () {
+ var a;
+ a = K.zh();
+ pa.requestTime = a;
+ X.P1({
+ mediaRequest: f,
+ timestamp: a
+ });
+ });
+ O.onreadystatechange = function () {
+ if (2 == O.readyState) {
+ P = !0;
+ pa.ph = K.zh();
+ O.onreadystatechange = null;
+ k();
+ for (var a = X, b = O.getAllResponseHeaders().split("\n"), c = b.length, h, m, p = {}; c--; ) {
+ if (h = b[c])
+ (m = h.indexOf(": "), 1 <= m && m < h.length - 1 && (p[h.substr(0, m)] = h.substr(m + 2)));
+ }
+ a.headers = p;
+ X.R1({
+ timestamp: pa.ph,
+ connect: !0,
+ mediaRequest: f,
+ start: pa.requestTime,
+ rt: [pa.ph - pa.requestTime]
+ });
+ }
+ };
+ O.onprogress = function (a) {
+ P = !0;
+ pa.RB = a.loaded;
+ k();
+ a = {
+ mediaRequest: f,
+ bytes: a.loaded,
+ tempstamp: K.zh(),
+ bytesLoaded: a.loaded
+ };
+ X.R1(a);
+ };
+ O.onload = function () {
+ var a;
+ if (h !== C.ff) {
+ g.Ra(void 0 === pa.Tm);
+ pa.Tm = K.zh();
+ pa.ph = pa.ph || pa.Tm;
+ 200 <= O.status && 299 >= O.status ? (a = m(O, X), X.parsed = !1, X.content = a, X.U = !0) : O.status == fa ? r(M.I.VK, O.status) : r(M.I.UK, O.status, O.response, w(O));
+ h();
+ }
+ };
+ O.onabort = aa;
+ O.onerror = function () {
+ var a,
+ b;
+ a = O.status;
+ "undefined" !== typeof u.config.eKa && (a = u.config.eKa);
+ if (0 < a) {
+ if (a == fa)
+ r(M.I.VK, a);
+ else {
+ try {
+ b = O.responseText;
+ } catch (lf) {}
+ r(M.I.UK, a, b, w(O));
+ }
+ } else
+ r(M.I.XK);
+ };
+ c = K.zh();
+ p(O, ia, !1, f);
+ G.$b(b.K_, X, !0);
+ a || (pa.requestTime = c, X.P1({
+ mediaRequest: f,
+ timestamp: c
+ }));
+ k();
+ G.addListener(b.M_, d);
+ } else
+ n.zc(r.bind(void 0, M.I.TK));
+ } catch (Ge) {
+ q.error("Exception starting download", Ge, V);
+ r(M.I.O6, void 0, C.Fd(Ge));
+ }
+ else
+ r(M.I.mua);
+ });
+ return X;
+ },
+ ac: S,
+ s_b: function (a) {
+ var b;
+ b = new XMLHttpRequest();
+ a = k(a);
+ b.open("HEAD", a);
+ b.onreadystatechange = function () {};
+ b.send();
+ },
+ TJb: function (a) {
+ var b;
+ b = new XMLHttpRequest();
+ a = c(a);
+ b.open("HEAD", a);
+ b.onreadystatechange = function () {};
+ b.send();
+ },
+ nEb: function (a) {
+ var b,
+ f,
+ c;
+ b = new XMLHttpRequest();
+ f = a.url;
+ c = a.kEb;
+ b.open("HEAD", f);
+ b.timeout = Math.max(2 * c.zxb, u.config.Ama);
+ b.onreadystatechange = function () {
+ 2 == b.readyState && c && c.dt({
+ url: f
+ });
+ };
+ b.ontimeout = b.onerror = function () {
+ c && c.ola({
+ url: f
+ });
+ };
+ b.send();
+ },
+ h6a: q
+ };
+ })();
+ b.eub = c;
+ b.bub = k;
+ b.dub = l;
+ b.cub = r;
+ b.L_ = w.Zya;
+ b.fub = h;
+ b.u7a = p;
+ b.t7a = m;
+ b.K_ = 1;
+ b.bNa = 2;
+ b.cNa = 3;
+ b.M_ = 4;
+ b.mia = 5;
+ b.kia = 1;
+ b.lia = 2;
+ b.jP = 3;
+ fa = 420;
+ t._cad_global.http = b.cf;
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.PE = b.sx = void 0;
+ b.sx = "TimingApiSymbol";
+ b.PE = "MilestoneTimingApiSymbol";
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r,
+ h,
+ p;
+ c = this && this.__extends || (function (a, b) {
+ function f() {
+ this.constructor = a;
+ }
+ for (var c in b) {
+ b.hasOwnProperty(c) && (a[c] = b[c]);
+ }
+ a.prototype = null === b ? Object.create(b) : (f.prototype = b.prototype, new f());
+ });
+ k = a(508);
+ d = a(117);
+ l = a(267);
+ r = a(266);
+ h = (function (a) {
+ function b(b, f, c) {
+ var m;
+ a.call(this);
+ this.ZD = null;
+ this.Hg = this.Ym = this.YD = !1;
+ switch (arguments.length) {
+ case 0:
+ this.destination = l.empty;
+ break;
+ case 1:
+ if (!b) {
+ this.destination = l.empty;
+ break;
+ }
+ if ("object" === typeof b) {
+ if (b instanceof h || ("syncErrorThrowable" in b) && b[r.JD]) {
+ m = b[r.JD]();
+ this.Ym = m.Ym;
+ this.destination = m;
+ m.add(this);
+ } else (this.Ym = !0, this.destination = new p(this, b));
+ break;
+ }
+ default:
+ (this.Ym = !0, this.destination = new p(this, b, f, c));
+ }
+ }
+ c(b, a);
+ b.prototype[r.JD] = function () {
+ return this;
+ };
+ b.create = function (a, f, c) {
+ a = new b(a, f, c);
+ a.Ym = !1;
+ return a;
+ };
+ b.prototype.next = function (a) {
+ this.Hg || this.tl(a);
+ };
+ b.prototype.error = function (a) {
+ this.Hg || (this.Hg = !0, this.jf(a));
+ };
+ b.prototype.complete = function () {
+ this.Hg || (this.Hg = !0, this.$d());
+ };
+ b.prototype.unsubscribe = function () {
+ this.closed || (this.Hg = !0, a.prototype.unsubscribe.call(this));
+ };
+ b.prototype.tl = function (a) {
+ this.destination.next(a);
+ };
+ b.prototype.jf = function (a) {
+ this.destination.error(a);
+ this.unsubscribe();
+ };
+ b.prototype.$d = function () {
+ this.destination.complete();
+ this.unsubscribe();
+ };
+ b.prototype.wbb = function () {
+ var a,
+ b;
+ a = this.Jo;
+ b = this.eB;
+ this.eB = this.Jo = null;
+ this.unsubscribe();
+ this.Hg = this.closed = !1;
+ this.Jo = a;
+ this.eB = b;
+ };
+ return b;
+ })(d.rx);
+ b.qn = h;
+ p = (function (a) {
+ function b(b, f, c, h) {
+ var m;
+ a.call(this);
+ this.rM = b;
+ b = this;
+ k.Zb(f) ? m = f : f && (m = f.next, c = f.error, h = f.complete, f !== l.empty && (b = Object.create(f), k.Zb(b.unsubscribe) && this.add(b.unsubscribe.bind(b)), b.unsubscribe = this.unsubscribe.bind(this)));
+ this.Ej = b;
+ this.tl = m;
+ this.jf = c;
+ this.$d = h;
+ }
+ c(b, a);
+ b.prototype.next = function (a) {
+ var b;
+ if (!this.Hg && this.tl) {
+ b = this.rM;
+ b.Ym ? this.y$(b, this.tl, a) && this.unsubscribe() : this.z$(this.tl, a);
+ }
+ };
+ b.prototype.error = function (a) {
+ var b;
+ if (!this.Hg) {
+ b = this.rM;
+ if (this.jf)
+ (b.Ym ? this.y$(b, this.jf, a) : this.z$(this.jf, a), this.unsubscribe());
+ else if (b.Ym)
+ (b.ZD = a, b.YD = !0, this.unsubscribe());
+ else
+ throw (this.unsubscribe(), a);
+ }
+ };
+ b.prototype.complete = function () {
+ var a,
+ b,
+ f;
+ a = this;
+ if (!this.Hg) {
+ b = this.rM;
+ if (this.$d) {
+ f = function () {
+ return a.$d.call(a.Ej);
+ };
+ b.Ym ? this.y$(b, f) : this.z$(f);
+ }
+ this.unsubscribe();
+ }
+ };
+ b.prototype.z$ = function (a, b) {
+ try {
+ a.call(this.Ej, b);
+ } catch (A) {
+ throw (this.unsubscribe(), A);
+ }
+ };
+ b.prototype.y$ = function (a, b, f) {
+ try {
+ b.call(this.Ej, f);
+ } catch (K) {
+ return (a.ZD = K, a.YD = !0);
+ }
+ return !1;
+ };
+ b.prototype.uba = function () {
+ var a;
+ a = this.rM;
+ this.rM = this.Ej = null;
+ a.unsubscribe();
+ };
+ return b;
+ })(h);
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.xr = b.Q9 = void 0;
+ b.Q9 = "StorageValidatorSymbol";
+ b.xr = "AppStorageFactorySymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Or = void 0;
+ b.Or = "PboConfigSymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Er = void 0;
+ b.Er = "DeviceFactorySymbol";
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r,
+ h,
+ p,
+ m,
+ f;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Rh = void 0;
+ c = a(0);
+ a(5);
+ k = a(19);
+ l = a(80);
+ r = a(410);
+ h = a(27);
+ d = a(33);
+ p = a(168);
+ m = a(230);
+ a = a(110);
+ f = (function (a) {
+ function b(b, f) {
+ var c;
+ c = a.call(this, b, f) || this;
+ c.Gj = f.index;
+ c.uF = f.Qa;
+ c.Sr = f.jb;
+ c.Fbb = f.Bb ? f.Bb : b.Bb;
+ c.rR = f.rR;
+ c.tDa = f.hk || 0;
+ c.ECa = !!f.Rs;
+ c.mg = void 0 === f.AZ || void 0 === f.hga || f.AZ === f.Qa && f.hga === f.jb ? c : new m.cA(c, {
+ Qa: f.AZ,
+ jb: f.hga
+ });
+ c.e$a = f.Vka;
+ c.B7a = f.Di;
+ c.cq = f.Sa ? c.gRa(f.Sa) : void 0;
+ c.SDa = f.Hw;
+ c.Ei = !1;
+ return c;
+ }
+ c.__extends(b, a);
+ b.Ujb = function (a) {
+ for (var b = new Uint32Array(a.length), f = new Uint32Array(a.length), c = 0, h, m, p = 0; p < a.length; ++p) {
+ h = a[p];
+ m = h.ec;
+ b[p] = h.Sr - h.uF;
+ f[p] = m;
+ c += m;
+ }
+ return new r.I9(b, f, a.length ? a[0].S : 1E3, c);
+ };
+ Object.defineProperties(b.prototype, {
+ Qy: {
+ get: function () {
+ return !0;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ index: {
+ get: function () {
+ return this.Gj;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ Bb: {
+ get: function () {
+ return this.Fbb;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ Qa: {
+ get: function () {
+ return this.uF;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ jb: {
+ get: function () {
+ return this.Sr;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ hk: {
+ get: function () {
+ return this.tDa;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ Rs: {
+ get: function () {
+ return this.ECa;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ Vka: {
+ get: function () {
+ return this.e$a;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ Di: {
+ get: function () {
+ return this.B7a;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ Sa: {
+ get: function () {
+ return this.cq;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ Hw: {
+ get: function () {
+ return this.SDa;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ AZ: {
+ get: function () {
+ return this.mg.Qa;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ hga: {
+ get: function () {
+ return this.mg.jb;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ Pob: {
+ get: function () {
+ return this.mg.cp;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ mKa: {
+ get: function () {
+ return this.mg.hma;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ zy: {
+ get: function () {
+ return this.mg.Zc;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ BZ: {
+ get: function () {
+ return this.mg.ie;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ lKa: {
+ get: function () {
+ return this.mg.duration;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ iga: {
+ get: function () {
+ return this.mg.cc;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ Oob: {
+ get: function () {
+ return this.mg.Qb;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ vH: {
+ get: function () {
+ return this.Pob / this.stream.Wa.Ab;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ b.prototype.SVa = function (a) {
+ this.tDa = a.ef(this.S).Ab;
+ };
+ b.prototype.NPa = function () {
+ this.ECa = !0;
+ };
+ b.prototype.bJb = function (a) {
+ this.rR = {
+ ve: a.WKa(),
+ vOa: a.or
+ };
+ };
+ b.prototype.CR = function (a) {
+ this.SDa = a;
+ };
+ b.prototype.ik = function (a) {
+ var b,
+ f;
+ void 0 === a && (a = {});
+ b = this.stream.Wa.Ab;
+ f = this.cq || ({
+ start: 0,
+ end: this.vH
+ });
+ a = this.gRa(a);
+ this.mg && this.mg !== this || (this.mg = new m.cA(this, this));
+ a.start > f.start && (this.uF = this.mg.Qa + a.start * b);
+ a.end < f.end && (this.Sr = this.mg.Qa + a.end * b);
+ this.cq = a;
+ };
+ b.prototype.Zea = function (a) {
+ void 0 === a && (a = 1);
+ this.cq ? this.ik({
+ start: this.cq.start + a,
+ end: this.cq.end
+ }) : this.ik({
+ start: a
+ });
+ };
+ b.prototype.emb = function () {
+ this.cq ? this.ik({
+ start: this.cq.start,
+ end: (this.cq.end || 0) - 1
+ }) : this.ik({
+ start: 0,
+ end: -1
+ });
+ };
+ b.prototype.qob = function (a) {
+ var f;
+ if (!(a < this.T || a >= this.oa) && this.Di && this.Di.length) {
+ a = new h.fa(a + 1 - this.T, 1E3).pv(this.stream.Wa);
+ for (var b = this.Di.length - 1; 0 <= b; --b) {
+ f = this.Di[b];
+ if (f.Um <= a)
+ return f;
+ }
+ return {
+ Um: 0,
+ Oc: this.zy
+ };
+ }
+ };
+ b.prototype.pob = function (a) {
+ var f;
+ if (!(a < this.T || a >= this.oa) && this.Di && this.Di.length) {
+ a = new h.fa(a + 1 - this.T, 1E3).pv(this.stream.Wa);
+ for (var b = this.Di.length - 1; 0 <= b; --b) {
+ f = this.Di[b];
+ if (f.Um <= a)
+ return f;
+ }
+ return {
+ Um: 0,
+ Oc: this.zy
+ };
+ }
+ };
+ b.prototype.KJa = function (a, b) {
+ var f,
+ c,
+ m;
+ if (!(a < this.T || a >= this.oa)) {
+ f = this.Wa.Ab;
+ c = this.Wa.S;
+ m = Math.floor(this.cp / f);
+ a = Math.min((b ? Math.ceil : Math.floor)((h.fa.Yka(a, c) - this.Qa + (b ? -1 : 1) * (c / 1E3 - 1)) / f), m);
+ f = h.fa.ypa(this.Qa + a * f, c);
+ return a === m ? void 0 : {
+ Um: a,
+ Oc: f
+ };
+ }
+ };
+ b.prototype.mZ = function (a) {
+ return this.L === k.Na.VIDEO ? this.qob(a) : this.KJa(a, !1);
+ };
+ b.prototype.nob = function (a) {
+ return this.L === k.Na.VIDEO ? this.pob(a) : this.KJa(a, !0);
+ };
+ b.prototype.Xba = function (a) {
+ this.ec += a.da;
+ this.Sr = a.jb;
+ this.cq && (this.mg = new m.cA(this, {
+ Qa: this.AZ,
+ jb: this.Sr
+ }), this.cq.end = this.vH);
+ };
+ b.prototype.toString = function () {
+ return "[" + this.wa + ", " + this.R + "kbit/s, " + ("c:" + this.cc + "-" + this.Qb + ",") + ("p:" + this.Zc + "-" + this.ie + ",d:" + this.duration + "]");
+ };
+ b.prototype.toJSON = function () {
+ var a;
+ a = p.Rw.prototype.toJSON.call(this);
+ l({
+ index: this.index,
+ startPts: this.T,
+ endPts: this.oa,
+ contentStartPts: this.cc,
+ contentEndPts: this.Qb,
+ fragmentStartPts: this.zy !== this.T ? this.zy : void 0,
+ fragmentEndPts: this.BZ !== this.oa ? this.BZ : void 0,
+ edit: this.Sa
+ }, a);
+ return a;
+ };
+ b.prototype.PJa = function (a) {
+ var b;
+ if (this.Di)
+ for (var f = 0; f < this.Di.length; ++f) {
+ this.Di[f].Um === a && (b = this.Di[f].offset);
+ }
+ return b;
+ };
+ b.prototype.gRa = function (a) {
+ return {
+ start: a.start || 0,
+ end: (void 0 !== a.end && 0 <= a.end ? 0 : this.vH) + (a.end || 0)
+ };
+ };
+ return b;
+ })(p.Rw);
+ b.Rh = f;
+ d.Ve(a.dA, f);
+ d.Ve(a.$z, f);
+ }, function (d, b, a) {
+ var c;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ c = a(131);
+ b.Ax = function (a) {
+ c.assert("number" === typeof a);
+ return String.fromCharCode(a >>> 24 & 255) + String.fromCharCode(a >>> 16 & 255) + String.fromCharCode(a >>> 8 & 255) + String.fromCharCode(a & 255);
+ };
+ b.IBa = function (a) {
+ return a.charCodeAt(3) + (a.charCodeAt(2) << 8) + (a.charCodeAt(1) << 16) + (a.charCodeAt(0) << 24);
+ };
+ b.cWb = function (a, b) {
+ return Math.floor(1E3 * a / b);
+ };
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Qg = void 0;
+ b.Qg = {
+ audio: "audio",
+ video: "video",
+ d4: "timedtext",
+ Lpa: "trickplay"
+ };
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.e6 = b.K9 = b.h7 = b.P9 = b.N9 = b.zT = b.$l = void 0;
+ b.$l = {
+ start: "start",
+ stop: "stop",
+ xP: "keepAlive",
+ uO: "engage",
+ splice: "splice"
+ };
+ b.zT = "EventPboCommandFactorySymbol";
+ b.N9 = "StartEventPboCommandSymbol";
+ b.P9 = "StopEventPboCommandSymbol";
+ b.h7 = "KeepAliveEventPboCommandSymbol";
+ b.K9 = "SpliceEventPboCommandSymbol";
+ b.e6 = "EngageEventPboCommandSymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Tp = {
+ Request: "Request",
+ J9: "Singleton",
+ gV: "Transient"
+ };
+ b.Vi = {
+ lsa: "ConstantValue",
+ msa: "Constructor",
+ nta: "DynamicValue",
+ n6: "Factory",
+ Function: "Function",
+ Y6: "Instance",
+ S3a: "Invalid",
+ Vya: "Provider"
+ };
+ b.nu = {
+ fsa: "ClassProperty",
+ nsa: "ConstructorArgument",
+ n$: "Variable"
+ };
+ }, function (d, b) {
+ var c;
+ function a(a, b) {
+ var l;
+ l = this;
+ this.laa = [];
+ c.forEach(function (c) {
+ (c = c(a, b)) && l.laa.push(c);
+ });
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.yA = b.Cwa = void 0;
+ c = [];
+ a.prototype.Ct = function (a) {
+ var h;
+ for (var b = [], c = this.laa.length; c--; ) {
+ h = this.laa[c];
+ h.Ct(a) && b.push(h.rH);
+ }
+ if (b.length)
+ return b;
+ };
+ b.Cwa = a;
+ b.yA = function (a) {
+ c.push(a);
+ };
+ }, function (d, b, a) {
+ (function (b, k) {
+ var r;
+ function c(a, b, c) {
+ this.now = a;
+ this.yWa = a = this.now();
+ this.$Y = a + b;
+ this.ICb = b;
+ this.qkb = a + c;
+ this.debug = !1;
+ this.ON = this.Vq = 0;
+ }
+ r = new(a(4).Console)("ASEJS_QOE_EVAL", "media|asejs");
+ c.prototype.constructor = c;
+ c.prototype.Bg = function (a, c) {
+ var h;
+ a = ((a - this.yWa) / 1E3).toFixed(3);
+ a = (" ").slice(a.length - 4) + a;
+ h = b.$yb();
+ r.debug(a + (" " + Math.floor(h.UYb / 1024 / 1024) + " MB/" + Math.floor(h.XMa / 1024 / 1024) + " MB ") + this.nY + c);
+ };
+ c.prototype.Xab = function (a) {
+ var b;
+ b = this.now();
+ this.nY = a;
+ this.Vq = 0;
+ this.Bg(b, "starting");
+ };
+ c.prototype.xbb = function (a) {
+ var c,
+ h;
+ this.ON++;
+ if (!(1E3 > this.ON)) {
+ this.ON = 0;
+ c = this.now();
+ if (c >= this.qkb)
+ throw (r.error("Execution deadline exceeded after " + (c - this.yWa) + "ms: " + this.nY), Error("Execution deadline exceeded: " + this.nY));
+ h = b.$yb();
+ this.Vq = Math.max(this.Vq, h.XMa);
+ if (7516192768 < h.XMa)
+ throw Error("Heap total limit exceeded: " + this.nY);
+ if (!(c <= this.$Y)) {
+ for (; c > this.$Y; ) {
+ this.$Y += this.ICb;
+ }
+ this.Bg(c, a);
+ }
+ }
+ };
+ c.Eb = function (a) {
+ k.vz = new c(a, 5E3, 33E5);
+ };
+ c.z3 = function (a) {
+ k.vz && k.vz.Xab(a);
+ };
+ c.update = function (a) {
+ k.vz && k.vz.xbb(a);
+ };
+ c.Zga = function () {
+ if (k.vz)
+ return k.vz.Vq;
+ };
+ c.now = function () {
+ return k.vz ? k.vz.now() : Date.now();
+ };
+ d.P = c;
+ }).call(this, a(258), a(144));
+ }, function (d) {
+ d.P = function a(c, k) {
+ var l;
+ c.__proto__ && c.__proto__ !== Object.prototype && a(c.__proto__, k);
+ Object.getOwnPropertyNames(c).forEach(function (a) {
+ l = Object.getOwnPropertyDescriptor(c, a);
+ void 0 !== l && Object.defineProperty(k, a, l);
+ });
+ };
+ }, function (d, b, a) {
+ var c;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ c = a(0);
+ d = (function (a) {
+ function b() {
+ return null !== a && a.apply(this, arguments) || this;
+ }
+ c.__extends(b, a);
+ b.prototype.parse = function (b) {
+ a.prototype.parse.call(this, b);
+ this.Hd = this.xt([{
+ offset: 16,
+ type: "offset"
+ }, {
+ offset: 16,
+ type: "offset"
+ }, {
+ offset: 96,
+ type: "offset"
+ }, {
+ width: "int16"
+ }, {
+ height: "int16"
+ }, {
+ XYb: "int32"
+ }, {
+ r1b: "int32"
+ }, {
+ offset: 32,
+ type: "offset"
+ }, {
+ Qob: "int16"
+ }, {
+ Ugb: {
+ type: "int8",
+ ndb: 32
+ }
+ }, {
+ depth: "int16"
+ }, {
+ offset: 16,
+ type: "offset"
+ }
+ ]);
+ return !0;
+ };
+ b.uc = !0;
+ return b;
+ })(a(235)["default"]);
+ b["default"] = d;
+ a = (function (a) {
+ function b() {
+ return null !== a && a.apply(this, arguments) || this;
+ }
+ c.__extends(b, a);
+ b.Ye = "avc1";
+ return b;
+ })(d);
+ b.h_a = a;
+ a = (function (a) {
+ function b() {
+ return null !== a && a.apply(this, arguments) || this;
+ }
+ c.__extends(b, a);
+ b.Ye = "avc2";
+ return b;
+ })(d);
+ b.i_a = a;
+ a = (function (a) {
+ function b() {
+ return null !== a && a.apply(this, arguments) || this;
+ }
+ c.__extends(b, a);
+ b.Ye = "avc3";
+ return b;
+ })(d);
+ b.j_a = a;
+ a = (function (a) {
+ function b() {
+ return null !== a && a.apply(this, arguments) || this;
+ }
+ c.__extends(b, a);
+ b.Ye = "avc4";
+ return b;
+ })(d);
+ b.k_a = a;
+ a = (function (a) {
+ function b() {
+ return null !== a && a.apply(this, arguments) || this;
+ }
+ c.__extends(b, a);
+ b.Ye = "hvc1";
+ return b;
+ })(d);
+ b.P2a = a;
+ d = (function (a) {
+ function b() {
+ return null !== a && a.apply(this, arguments) || this;
+ }
+ c.__extends(b, a);
+ b.Ye = "hev1";
+ return b;
+ })(d);
+ b.K2a = d;
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Z7 = "6674654e-696c-5078-6966-665374726d21";
+ b.a8 = "6674654e-696c-4878-6165-6465722e7632";
+ b.Owa = "6674654e-696c-5078-6966-66496e646578";
+ b.nU = "6674654e-696c-4d78-6f6f-6653697a6573";
+ b.mU = "6674654e-696c-5378-6565-6b506f696e74";
+ b.nxa = "cedb7489-e77b-514c-84f9-7148f9882554";
+ b.mxa = "524f39a2-9b5a-144f-a244-6c427c648df4";
+ b.Y7 = "6674654e-696c-4678-7261-6d6552617465";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.yr = void 0;
+ d = (function () {
+ function a(a) {
+ this.Pe = a;
+ }
+ a.prototype.TVa = function (a) {
+ this.Pe = a;
+ };
+ a.prototype.HGa = function () {
+ this.Pe = void 0;
+ };
+ a.prototype.EO = function (a) {
+ return this.Pe && this.Pe.T1 && this.Pe.T1(a);
+ };
+ a.prototype.nC = function (a) {
+ this.Pe && this.Pe.nw && this.Pe.nw(a);
+ };
+ a.prototype.yy = function (a) {
+ this.Pe && this.Pe.II && this.Pe.II(a);
+ };
+ a.prototype.oC = function (a) {
+ this.Pe && this.Pe.JI && this.Pe.JI(a);
+ };
+ a.prototype.gKa = function (a) {
+ this.Pe && this.Pe.Ila && this.Pe.Ila(a);
+ };
+ a.prototype.Bq = function (a) {
+ this.Pe && this.Pe.rj && this.Pe.rj(a);
+ };
+ a.prototype.zZ = function (a) {
+ this.Pe && this.Pe.xQ && this.Pe.xQ(a);
+ };
+ a.prototype.yZ = function (a, b, l) {
+ this.Pe && this.Pe.wQ && this.Pe.wQ(a, b, l);
+ };
+ return a;
+ })();
+ b.yr = d;
+ d.prototype.T1 = d.prototype.EO;
+ d.prototype.nw = d.prototype.nC;
+ d.prototype.II = d.prototype.yy;
+ d.prototype.JI = d.prototype.oC;
+ d.prototype.rj = d.prototype.Bq;
+ d.prototype.xQ = d.prototype.zZ;
+ d.prototype.wQ = d.prototype.yZ;
+ d.prototype.Ila = d.prototype.gKa;
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.oK = b.v_a = b.T4 = b.U4 = void 0;
+ (function (a) {
+ a[a.IIa = 0] = "downloading";
+ a[a.$lb = 1] = "downloaded";
+ a[a.Ei = 2] = "appended";
+ a[a.buffered = 3] = "buffered";
+ a[a.ena = 4] = "removed";
+ a[a.h1b = 5] = "unused";
+ })(b.U4 || (b.U4 = {}));
+ (function (a) {
+ a[a.waiting = 1] = "waiting";
+ a[a.z_b = 2] = "ondeck";
+ a[a.IIa = 4] = "downloading";
+ a[a.$lb = 8] = "downloaded";
+ a[a.sP = 6] = "inprogress";
+ })(b.T4 || (b.T4 = {}));
+ b.v_a = "AseBufferViewSymbol";
+ b.oK = "AseBufferAccountingSymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.L5 = b.DK = b.DT = b.i6 = void 0;
+ b.i6 = "EventSourceSymbol";
+ b.DT = "GlobalEventSourceSymbol";
+ b.DK = "DebugEventSourceSymbol";
+ b.L5 = "DiagnosticsEventSourceSymbol";
+ }, function (d, b, a) {
+ d = a(144);
+ a = "undefined" !== typeof self && "undefined" !== typeof WorkerGlobalScope && self instanceof WorkerGlobalScope && self;
+ d = "undefined" !== typeof t && t || "undefined" !== typeof d && d || a;
+ b.root = d;
+ if (!d)
+ throw Error("RxJS could not find any global context (window, self, global)");
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Dr = b.F5 = void 0;
+ b.F5 = "DebugConfigSymbol";
+ b.Dr = "DebugSymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Fja = b.Aj = void 0;
+ (function (a) {
+ a[a.cm = 0] = "STANDARD";
+ a[a.dx = 1] = "LIMITED";
+ })(b.Aj || (b.Aj = {}));
+ b.Fja = function (a) {
+ return ["STANDARD", "LIMITED"][a];
+ };
+ }, function (d, b, a) {
+ var k,
+ l;
+ function c(a, b, c, m, f) {
+ a = void 0 === a ? k.J.nl : a;
+ return l.Dc.call(this, a, b, c, void 0, void 0, m, l.Dc.Fd(f), f) || this;
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Sf = void 0;
+ k = a(2);
+ l = a(48);
+ N(c, l.Dc);
+ b.Sf = c;
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Ut = void 0;
+ b.Ut = "Base16EncoderSymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.cF = b.au = b.X6 = void 0;
+ b.X6 = "Injector";
+ b.au = 145152E5;
+ b.cF = "ProfileSymbol";
+ }, function (d, b, a) {
+ var l,
+ r;
+ function c(a, b, c, f, u) {
+ var h,
+ m,
+ k;
+ h = {};
+ m = "number" === typeof u;
+ u = void 0 !== u && m ? u.toString() : c;
+ if (m && void 0 !== c)
+ throw Error(l.E3a);
+ Reflect.Uha(a, b) && (h = Reflect.getMetadata(a, b));
+ c = h[u];
+ if (Array.isArray(c))
+ for (var m = 0, p = c; m < p.length; m++) {
+ k = p[m];
+ if (k.key === f.key)
+ throw Error(l.J1a + " " + k.key.toString());
+ }
+ else
+ c = [];
+ c.push(f);
+ h[u] = c;
+ Reflect.Aea(a, h, b);
+ }
+ function k(a, b) {
+ return function (c, f) {
+ b(c, f, a);
+ };
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ l = a(54);
+ r = a(38);
+ b.$D = function (a, b, m, f) {
+ c(r.iAa, a, b, f, m);
+ };
+ b.bS = function (a, b, m) {
+ c(r.jAa, a.constructor, b, m);
+ };
+ b.oy = function (a, b, c) {
+ "number" === typeof c ? Reflect.oy([k(c, a)], b) : "string" === typeof c ? Reflect.oy([a], b, c) : Reflect.oy([a], b);
+ };
+ }, function (d, b, a) {
+ var c;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.th = b.$4a = b.jn = void 0;
+ c = a(15);
+ b.jn = b.jn || (function (a, b, c) {
+ return a >= b ? a <= c ? a : c : b;
+ });
+ b.$4a = function (a, b, c, h, p) {
+ return (a - b) * (p - h) / (c - b) + h;
+ };
+ b.th = function (a) {
+ if (c.na(a))
+ return (a / 1E3).toFixed(3);
+ };
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.ex = b.R2a = b.ResponseType = void 0;
+ d = b.ResponseType || (b.ResponseType = {});
+ d[d.Text = 0] = "Text";
+ d[d.UVb = 1] = "Xml";
+ d[d.hQb = 2] = "Binary";
+ b.R2a = "HttpClientSymbol";
+ b.ex = "LegacyHttpSymbol";
+ }, function (d, b, a) {
+ var l,
+ r,
+ h,
+ p,
+ m,
+ f,
+ u,
+ w;
+ function c(a) {
+ var b;
+ if (!a.vba) {
+ b = a.oMa();
+ a.sl.vB(b["default"].Ca, a.vi);
+ a.sl.lE(b.Oq ? b.Oq.d2 : void 0, b.Oq ? b.Oq.KD : void 0);
+ l.Pa(a.Wb) || (a.vba = !0);
+ }
+ }
+ function k(a, b, c) {
+ var m;
+ this.K = c;
+ this.jq = {};
+ this.zF = c.zF;
+ this.aCa = new p(this.zF);
+ this.XL = new f(!0);
+ this.KL = new f(!1);
+ this.reset();
+ this.Oaa = a;
+ this.sl = b;
+ this.yCa = r.Km.name();
+ this.sl.y3(this.yCa);
+ this.xM = this.TA = 0;
+ this.LL = [];
+ r.events.on("networkchange", (function (a) {
+ this.yCa = a;
+ this.sl.y3(a);
+ }).bind(this));
+ m = c.qea;
+ m && (m = {
+ Dd: h.Xe.MK,
+ Ia: {
+ Ca: parseInt(m, 10),
+ Qh: 0
+ },
+ Lh: {
+ ieb: 0,
+ Qh: 0
+ },
+ Nq: {
+ ieb: 0,
+ Qh: 0
+ }
+ }, this.get = function () {
+ return m;
+ });
+ w = this;
+ }
+ l = a(8);
+ r = a(4);
+ h = a(19);
+ a(11);
+ b = a(18).EventEmitter;
+ p = a(407).Xta;
+ m = new r.Console("ASEJS_NETWORK_MONITOR", "media|asejs");
+ f = a(861).Gta;
+ u = a(859);
+ w = void 0;
+ k.prototype.constructor = k;
+ k.prototype = Object.create(b.prototype);
+ k.Lf = function () {
+ u(void 0 !== w);
+ return w;
+ };
+ k.reset = function () {
+ w && w.reset();
+ };
+ Object.defineProperties(k.prototype, {
+ startTime: {
+ get: function () {
+ return this.ne;
+ }
+ },
+ Dd: {
+ get: function () {
+ return this.vi;
+ }
+ },
+ Oo: {
+ get: function () {
+ return this.TA;
+ }
+ },
+ kEa: {
+ get: function () {
+ return this.LL;
+ }
+ }
+ });
+ k.prototype.v8a = function () {
+ var a,
+ b,
+ f,
+ c;
+ a = this.K;
+ b = a.K8a.concat(a.S8a);
+ f = a.kaa;
+ c = this.aCa;
+ return b.reduce(function (a, b) {
+ a[b] = c.create(b, f);
+ return a;
+ }, {});
+ };
+ k.prototype.reset = function () {
+ var a,
+ b,
+ f;
+ a = this.K.kaa;
+ b = this.aCa;
+ f = this.K;
+ this.location = null;
+ this.jq = this.v8a();
+ this.XL.reset();
+ this.KL.reset();
+ this.Eu = b.create("respconn-ewma", a);
+ this.xu = b.create("respconn-ewma", a);
+ this.vi = h.Xe.HAVE_NOTHING;
+ this.zbb = (function () {
+ c(this);
+ }).bind(this);
+ this.$W = void 0;
+ this.Ix = this.ec = this.Wb = this.ne = null;
+ this.X7a = this.UW = this.IM = 0;
+ this.Waa = !1;
+ f.GUa && (this.xM = this.TA = 0, this.LL = []);
+ };
+ k.prototype.AR = function (a) {
+ var b;
+ b = this.jq;
+ if (a !== this.location) {
+ l.X(this.$W) || (clearInterval(this.$W), this.$W = void 0);
+ l.Pa(this.location) && (this.UW = this.IM = 0, this.ne = null);
+ if (!l.Pa(a)) {
+ this.vi = h.Xe.HAVE_NOTHING;
+ for (var f in b) {
+ b[f] && b[f].reset && b[f].reset();
+ }
+ this.Eu.reset();
+ this.xu.reset();
+ }
+ l.Pa(this.ne) || (this.IM += (l.Pa(this.Wb) ? r.time.ea() : this.Wb) - this.ne, this.UW += this.ec);
+ this.Wb = this.ne = null;
+ this.ec = 0;
+ this.location = a;
+ this.sl.AR(a);
+ }
+ };
+ k.prototype.y3 = function (a) {
+ this.sl.y3(a);
+ };
+ k.prototype.fcb = function (a) {
+ this.jq.QoEEvaluator ? m.warn("monitor (QoEEvaluator) already existed.") : this.jq.QoEEvaluator = a;
+ };
+ k.prototype.dGb = function () {
+ delete this.jq.QoEEvaluator;
+ };
+ k.prototype.Yx = function (a, b, f, p) {
+ var u,
+ k;
+ u = this.K;
+ k = this.jq;
+ if (!0 === p.oE)
+ (p = k["throughput-wssl"]) && p.add(a, b, f, !0);
+ else if (l.X(b))
+ m.warn("addDataReceived called with undefined start time");
+ else {
+ u.R8a && 10 > f - b ? b = f - 10 : 0 === f - b && (b = f - 1);
+ this.XL.Yx(a, b, f, p);
+ this.KL.Yx(a, b, f, p);
+ for (var r in k) {
+ k[r] && k[r].add && k[r].add(a, b, f);
+ }
+ this.vi = Math.max(this.vi, h.Xe.oA);
+ l.Pa(this.ne) && (this.ne = b, this.Wb = null, this.vba = !1, this.ec = 0);
+ l.Pa(this.Wb) || (b > this.Wb && (this.ne += b - this.Wb), this.Wb = null, this.vba = !1);
+ this.ec += a;
+ this.vi < h.Xe.nA && (f - this.ne > u.c$a || this.ec > u.b$a) && (this.vi = h.Xe.nA);
+ this.vi < h.Xe.MK && (f - this.ne > u.lab || this.ec > u.kab) && (!this.Waa || this.X7a > u.a$a) && (this.vi = h.Xe.MK, c(this), this.$W = setInterval(this.zbb, u.N9a));
+ l.Pa(this.Ix) || (b - this.Ix > u.VCa ? this.Oaa.LNa(this.Ix, b) : f - b > u.VCa && this.Oaa.LNa(b, f));
+ this.Ix = Math.max(f, this.Ix);
+ }
+ };
+ k.prototype.Ou = function (a) {
+ this.Eu.add(a);
+ this.sl.Ou(a);
+ };
+ k.prototype.Nu = function (a) {
+ this.xu.add(a);
+ this.sl.Nu(a);
+ };
+ k.prototype.start = function (a) {
+ var b;
+ l.Pa(this.Ix) && !l.Pa(this.Wb) && (this.Ix = a);
+ b = this.jq;
+ if (this.K.Uoa)
+ for (var f in b) {
+ b[f] && b[f].start && b[f].start(a);
+ }
+ };
+ k.prototype.stop = function (a) {
+ var b,
+ f;
+ b = this.jq;
+ for (f in b) {
+ b[f] && b[f].stop && b[f].stop(a);
+ }
+ this.Wb = l.Pa(this.Wb) ? a : Math.min(this.Wb, a);
+ this.Ix = null;
+ };
+ k.prototype.flush = function () {
+ var a,
+ b;
+ a = this.jq;
+ for (b in a) {
+ a[b] && a[b].flush && a[b].flush();
+ }
+ };
+ k.prototype.fail = function () {
+ this.ne = null;
+ };
+ k.prototype.iLa = function () {
+ var a,
+ b;
+ a = this.jq.entropy;
+ a && (b = a.jfb(), a.reset());
+ return b;
+ };
+ k.prototype.oMa = function () {
+ var a,
+ b,
+ f,
+ c,
+ h,
+ m,
+ p;
+ a = r.time.ea();
+ b = {};
+ f = this.jq;
+ c = this.K;
+ h = c.z8a;
+ m = c.Sab;
+ for (p in f) {
+ f[p] && f[p].get && (b[p] = f[p].get(a), "iqr" === f[p].type && (b.Oq = b[p]), "tdigest" === f[p].type && (b.Ri = b[p]), "wssl" === f[p].type && (b.oE = b[p]));
+ }
+ b.cdnavtp = this.XL.Cm();
+ b.activecdnavtp = this.KL.Cm();
+ b["default"] = h && b[h] ? b[h] : b["throughput-ewma"];
+ "none" !== c.Rna && "none" !== m && (b.lVa = m && b[m] ? b[m] : b["throughput-sw"]);
+ return b;
+ };
+ k.prototype.get = function () {
+ var a,
+ b,
+ f,
+ c,
+ h,
+ m;
+ a = this.oMa();
+ b = a["default"];
+ f = this.Eu.get();
+ c = this.xu.get();
+ h = this.K;
+ if (a.lVa)
+ (m = a.lVa, b = l.na(b.Ca) && l.na(m.Ca) && b.Ca > m.Ca && 0 < m.Ca ? m : b);
+ a.Dd = this.vi;
+ a.Ia = b;
+ !h.VY || !b || l.Pa(b.Ca) || isNaN(b.Ca) || !a.oE || l.Pa(a.oE.Ca) || isNaN(a.oE.Ca) || ("max" === h.DZa ? a.Ia.Ca = Math.max(a.oE.Ca, b.Ca) : "sum" === h.DZa && (a.Ia.Ca += a.oE.Ca));
+ a.Lh = f;
+ a.Nq = c;
+ b = this.IM + !l.Pa(this.ne) ? (l.Pa(this.Wb) ? r.time.ea() : this.Wb) - this.ne : 0;
+ a.time = b;
+ return a;
+ };
+ k.prototype.ppb = function () {
+ var a;
+ a = this.IM + !l.Pa(this.ne) ? (l.Pa(this.Wb) ? r.time.ea() : this.Wb) - this.ne : 0;
+ return {
+ xG: Math.floor(8 * (this.UW + this.ec) / a),
+ VYb: this.Oaa.Wc()
+ };
+ };
+ k.prototype.Esb = function () {
+ var a,
+ b,
+ f;
+ a = {};
+ b = this.get(!0);
+ if (b.Dd && b.Ia) {
+ a.aseavtp = Number(b.Ia.Ca).toFixed(2);
+ a.asevartp = Number(b.Ia.Qh).toFixed(2);
+ if (b.Oq) {
+ f = b.Oq.d2;
+ !f || isNaN(f.Tk) || isNaN(f.Sk) || isNaN(f.sj) || (a.aseniqr = 0 < f.sj ? Number((f.Tk - f.Sk) / f.sj).toFixed(2) : -1, a.aseiqr = Number(f.Tk - f.Sk).toFixed(2), a.asemedtp = Number(f.sj).toFixed(2));
+ a.iqrsamples = b.Oq.KD;
+ }
+ b.Ri && b.Ri.Bv && (a.tdigest = b.Ri.Bv());
+ }
+ return a;
+ };
+ k.prototype.DD = function (a, b) {
+ var f;
+ f = b.requestId;
+ 1 === ++this.TA && (this.emit("active", a), this.start(a));
+ f && this.LL.push(f);
+ this.XL.DD(a, b);
+ this.KL.DD(a, b);
+ };
+ k.prototype.nna = function () {
+ ++this.xM;
+ };
+ k.prototype.FD = function (a, b, f) {
+ var c;
+ c = f.requestId;
+ b && --this.xM;
+ --this.TA;
+ this.K.GUa && (this.TA = Math.max(this.TA, 0), this.xM = Math.max(this.xM, 0));
+ 0 === this.TA && (this.stop(a), this.emit("inactive", a));
+ c && (b = this.LL.indexOf(c), 0 <= b && this.LL.splice(b, 1));
+ this.XL.FD(a, f);
+ this.KL.FD(a, f);
+ };
+ d.P = k;
+ }, function (d, b, a) {
+ var c;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ d = a(237);
+ c = a(130);
+ b.K1a = c;
+ c = a(419);
+ b.h$ = c;
+ c = a(415);
+ b.DWb = c;
+ b.Nza = d.AI.Vc.sidx;
+ d = a(880);
+ b.jx = d.jx;
+ d = a(411);
+ b.cL = d.cL;
+ d = a(876);
+ b.ix = d.ix;
+ b.PP = d.PP;
+ d = a(74);
+ b.Ax = d.Ax;
+ a = a(875);
+ b.Lr = a.Lr;
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.tA = void 0;
+ b.tA = "LoggerSinksSymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.PA = void 0;
+ b.PA = "ThrottleFactorySymbol";
+ }, function (d, b, a) {
+ var c,
+ k;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.qx = void 0;
+ c = a(0);
+ k = a(1);
+ d = (function () {
+ var b;
+ function a() {}
+ a.prototype.format = function (a, b) {
+ var f;
+ for (var c = 1; c < arguments.length; ++c) { ;
+ }
+ f = Array.prototype.slice.call(arguments, 1);
+ return a.replace(/{(\d+)}/g, function (a, b) {
+ return "undefined" != typeof f[b] ? f[b] : a;
+ });
+ };
+ a.prototype.bpa = function (a) {
+ for (var b = a.length, c = new Uint16Array(b), f = 0; f < b; f++) {
+ c[f] = a.charCodeAt(f);
+ }
+ return c.buffer;
+ };
+ a.prototype.TWa = function (a) {
+ return JSON.stringify(a, null, " ");
+ };
+ b = a;
+ return b = c.__decorate([k.N()], b);
+ })();
+ b.qx = d;
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.tx = void 0;
+ b.tx = "Utf8EncoderSymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.cu = void 0;
+ b.cu = "MediaKeySystemAccessServicesSymbol";
+ }, function (d, b) {
+ var a;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ a = 0;
+ b.id = function () {
+ return a++;
+ };
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.CU = b.vk = b.Rh = void 0;
+ b.Rh = function () {};
+ (function (a) {
+ a.t8 = "PRE_FETCH";
+ a.q9 = "QC";
+ a.cm = "STANDARD";
+ a.XU = "SUPPLEMENTAL";
+ a.G1a = "DOWNLOAD";
+ })(b.vk || (b.vk = {}));
+ b.CU = "PboManifestCommandSymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Hr = void 0;
+ d = b.Hr || (b.Hr = {});
+ d[d.fQb = 8] = "Backspace";
+ d[d.Tab = 9] = "Tab";
+ d[d.rRb = 13] = "Enter";
+ d[d.vVb = 16] = "Shift";
+ d[d.DQb = 17] = "Ctrl";
+ d[d.IPb = 18] = "Alt";
+ d[d.lUb = 19] = "PauseBreak";
+ d[d.wQb = 20] = "CapsLock";
+ d[d.tRb = 27] = "Escape";
+ d[d.xVb = 32] = "Space";
+ d[d.kUb = 33] = "PageUp";
+ d[d.jUb = 34] = "PageDown";
+ d[d.qRb = 35] = "End";
+ d[d.eSb = 36] = "Home";
+ d[d.xSb = 37] = "LeftArrow";
+ d[d.LVb = 38] = "UpArrow";
+ d[d.BUb = 39] = "RightArrow";
+ d[d.$Qb = 40] = "DownArrow";
+ d[d.tSb = 45] = "Insert";
+ d[d.XQb = 46] = "Delete";
+ d[d.XVb = 48] = "Zero";
+ d[d.LTb = 49] = "One";
+ d[d.GVb = 50] = "Two";
+ d[d.EVb = 51] = "Three";
+ d[d.ORb = 52] = "Four";
+ d[d.MRb = 53] = "Five";
+ d[d.wVb = 54] = "Six";
+ d[d.uVb = 55] = "Seven";
+ d[d.pRb = 56] = "Eight";
+ d[d.sTb = 57] = "Nine";
+ d[d.zPb = 65] = "A";
+ d[d.KPb = 66] = "B";
+ d[d.nQb = 67] = "C";
+ d[d.K0a = 68] = "D";
+ d[d.E = 69] = "E";
+ d[d.uRb = 70] = "F";
+ d[d.PRb = 71] = "G";
+ d[d.SRb = 72] = "H";
+ d[d.S2a = 73] = "I";
+ d[d.uSb = 74] = "J";
+ d[d.f7 = 75] = "K";
+ d[d.W3a = 76] = "L";
+ d[d.ASb = 77] = "M";
+ d[d.K4a = 78] = "N";
+ d[d.FTb = 79] = "O";
+ d[d.NTb = 80] = "P";
+ d[d.Q = 81] = "Q";
+ d[d.uUb = 82] = "R";
+ d[d.n6a = 83] = "S";
+ d[d.V6a = 84] = "T";
+ d[d.HVb = 85] = "U";
+ d[d.MVb = 86] = "V";
+ d[d.QVb = 87] = "W";
+ d[d.v$ = 88] = "X";
+ d[d.VVb = 89] = "Y";
+ d[d.WVb = 90] = "Z";
+ d[d.ySb = 91] = "LeftWindowKey";
+ d[d.CUb = 92] = "RightWindowKey";
+ d[d.sVb = 93] = "SelectKey";
+ d[d.vTb = 96] = "Numpad0";
+ d[d.wTb = 97] = "Numpad1";
+ d[d.xTb = 98] = "Numpad2";
+ d[d.yTb = 99] = "Numpad3";
+ d[d.zTb = 100] = "Numpad4";
+ d[d.ATb = 101] = "Numpad5";
+ d[d.BTb = 102] = "Numpad6";
+ d[d.CTb = 103] = "Numpad7";
+ d[d.DTb = 104] = "Numpad8";
+ d[d.ETb = 105] = "Numpad9";
+ d[d.SSb = 106] = "Multiply";
+ d[d.HPb = 107] = "Add";
+ d[d.zVb = 109] = "Subtract";
+ d[d.WQb = 110] = "DecimalPoint";
+ d[d.ZQb = 111] = "Divide";
+ d[d.vRb = 112] = "F1";
+ d[d.zRb = 113] = "F2";
+ d[d.ARb = 114] = "F3";
+ d[d.BRb = 115] = "F4";
+ d[d.CRb = 116] = "F5";
+ d[d.DRb = 117] = "F6";
+ d[d.ERb = 118] = "F7";
+ d[d.FRb = 119] = "F8";
+ d[d.GRb = 120] = "F9";
+ d[d.wRb = 121] = "F10";
+ d[d.xRb = 122] = "F11";
+ d[d.yRb = 123] = "F12";
+ d[d.uTb = 144] = "NumLock";
+ d[d.qVb = 145] = "ScrollLock";
+ d[d.tVb = 186] = "SemiColon";
+ d[d.sRb = 187] = "Equals";
+ d[d.zQb = 188] = "Comma";
+ d[d.VQb = 189] = "Dash";
+ d[d.mUb = 190] = "Period";
+ d[d.NRb = 191] = "ForwardSlash";
+ d[d.FVb = 192] = "Tilde";
+ d[d.MTb = 219] = "OpenBracket";
+ d[d.eQb = 220] = "BackSlash";
+ d[d.yQb = 221] = "CloseBracket";
+ d[d.tUb = 222] = "Quote";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.SA = void 0;
+ b.SA = "VideoPreparerSymbol";
+ }, function (d, b, a) {
+ d.P = {
+ EventEmitter: a(731),
+ Wi: a(730)
+ };
+ }, function (d, b, a) {
+ var h,
+ p;
+ function c(a) {
+ return a instanceof ArrayBuffer || "[object ArrayBuffer]" === Object.prototype.toString.call(a);
+ }
+ function k(a) {
+ return h.Td(a);
+ }
+ function l(a) {
+ return h.na(a);
+ }
+ function r(a) {
+ return !c(a) && !k(a) && !l(a) && !Array.isArray(a) && h.df(a);
+ }
+ h = a(8);
+ p = {
+ jA: 0,
+ WU: 1,
+ S4a: 2,
+ OBJECT: 3,
+ nl: 4
+ };
+ d.P = {
+ Iha: function (a) {
+ return c(a) ? p.jA : k(a) ? p.WU : l(a) ? p.S4a : r(a) ? p.OBJECT : p.nl;
+ },
+ d0: c,
+ Td: k,
+ na: l,
+ df: r,
+ Ao: p
+ };
+ }, function (d) {
+ var b;
+ b = {
+ QH: function (a) {
+ for (var c in a) {
+ a.hasOwnProperty(c) && (b[c] = a[c]);
+ }
+ }
+ };
+ d.P = b;
+ }, function (d, b, a) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ d = a(0);
+ d.__exportStar(a(128), b);
+ d.__exportStar(a(852), b);
+ d.__exportStar(a(163), b);
+ }, function (d, b, a) {
+ var h;
+ function c(a, b) {
+ return void 0 === a ? void 0 : 0 === a ? h.fa.Cc : new h.fa(a, b);
+ }
+ function k(a, b) {
+ return a && Math.floor(h.fa.ypa(a, b));
+ }
+ function l(a, b) {
+ return void 0 === a || void 0 === b ? void 0 : a + b;
+ }
+ function r(a, b) {
+ return void 0 === a || void 0 === b ? void 0 : a - b;
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.$z = b.dA = void 0;
+ h = a(27);
+ d = (function () {
+ function a() {}
+ Object.defineProperties(a.prototype, {
+ cp: {
+ get: function () {
+ return r(this.jb, this.Qa) || 0;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ hma: {
+ get: function () {
+ return l(this.Qa, this.hk);
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ SSa: {
+ get: function () {
+ return l(this.jb, this.hk);
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ NY: {
+ get: function () {
+ return c(this.cp, this.S);
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ Cl: {
+ get: function () {
+ return c(this.Qa, this.S);
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ sq: {
+ get: function () {
+ return c(this.jb, this.S);
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ ot: {
+ get: function () {
+ return c(this.hma, this.S);
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ mt: {
+ get: function () {
+ return c(this.SSa, this.S);
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ HEb: {
+ get: function () {
+ return c(this.hk, this.S);
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ return a;
+ })();
+ b.dA = d;
+ d = (function () {
+ function a() {}
+ Object.defineProperties(a.prototype, {
+ duration: {
+ get: function () {
+ return r(this.oa, this.T) || 0;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ T: {
+ get: function () {
+ return k(l(this.Qa, this.hk), this.S);
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ oa: {
+ get: function () {
+ return k(l(this.jb, this.hk), this.S);
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ Qm: {
+ get: function () {
+ return k(this.hk, this.S);
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ Gi: {
+ get: function () {
+ return k(this.Qa, this.S);
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ cc: {
+ get: function () {
+ return k(this.Qa, this.S);
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ Qb: {
+ get: function () {
+ return k(this.jb, this.S);
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ Zc: {
+ get: function () {
+ return k(l(this.Qa, this.hk), this.S);
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ ie: {
+ get: function () {
+ return k(l(this.jb, this.hk), this.S);
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ sv: {
+ get: function () {
+ return this.duration;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ yw: {
+ get: function () {
+ return this.T;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ ut: {
+ get: function () {
+ return this.oa;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ return a;
+ })();
+ b.$z = d;
+ }, function (d, b, a) {
+ var u;
+ function c(a, b) {
+ if (a.length == b.length && 1 < a.length) {
+ for (var f = a.length, c = 0, m = h(a), p = h(b), u = 0; u < f; u++) {
+ c += a[u] * b[u];
+ }
+ return (c - m * p / f) / f;
+ }
+ return !1;
+ }
+ function k(a) {
+ if (!Array.isArray(a) || 2 > a.length)
+ return !1;
+ a = l(a);
+ return Math.sqrt(a);
+ }
+ function l(a) {
+ var b;
+ if (!Array.isArray(a) || 2 > a.length)
+ return !1;
+ b = r(a);
+ return h(a.map(function (a) {
+ return (a - b) * (a - b);
+ })) / (a.length - 1);
+ }
+ function r(a) {
+ return Array.isArray(a) && a.length ? h(a) / a.length : !1;
+ }
+ function h(a) {
+ return Array.isArray(a) ? a.reduce(function (a, b) {
+ return a + b;
+ }, 0) : !1;
+ }
+ function p(a, b, f) {
+ return Math.max(Math.min(a, f), b);
+ }
+ function m(a, b) {
+ return "number" === typeof a ? a : b;
+ }
+ function f(a) {
+ return 1 / (1 + Math.exp(-a));
+ }
+ u = a(8);
+ d.P = {
+ Ka: function (a, b, f) {
+ try {
+ a.emit(b, f);
+ } catch (C) {
+ a.jf("JAVASCRIPT EXCEPTION: Caught in ASE client event listener. Exception:", C, "Event:", f);
+ }
+ },
+ ys: function () {
+ var a,
+ b,
+ f;
+ a = Array.prototype.concat.apply([], arguments);
+ b = a.reduce(function (a, b) {
+ return a + b.byteLength;
+ }, 0);
+ f = new Uint8Array(b);
+ a.reduce(function (a, b) {
+ f.set(new Uint8Array(b), a);
+ return a + b.byteLength;
+ }, 0);
+ return f.buffer;
+ },
+ RX: p,
+ sgb: function (a, b, f, c) {
+ return {
+ min: p(m(a.min, b), f, c),
+ max: p(m(a.max, b), f, c),
+ cv: p(a.cv || 6E4, 0, 6E5),
+ sGa: p(a.sGa || 0, -3E5, 3E5),
+ scale: p(a.scale || 6E4, 0, 3E5),
+ gVa: p(a.gVa || 0, -3E5, 3E5),
+ gamma: p(a.gamma || 1, .1, 10)
+ };
+ },
+ Ed: function (a, b) {
+ void 0 !== a && u.ZBb(a).forEach(function (a) {
+ b(a[0], a[1]);
+ });
+ },
+ tJa: function (a, b, c) {
+ return a.min + (a.max - a.min) * (1 - Math.pow(f(6 * (b - (a.cv + (a.sGa || 0) * (1 - c))) / (a.scale + (a.gVa || 0) * (1 - c))), a.gamma));
+ },
+ onb: function (a, b) {
+ return a.min + (a.max - a.min) * Math.pow(f(6 * (b - a.cv) / a.scale), a.gamma);
+ },
+ LYb: h,
+ ypb: r,
+ Rsb: l,
+ JYb: k,
+ wYb: c,
+ vYb: function (a, b) {
+ var f;
+ if (a.length == b.length) {
+ f = c(a, b);
+ a = k(a);
+ b = k(b);
+ if (0 < a && 0 < b)
+ return f / (a * b);
+ }
+ return !1;
+ },
+ Zy: function (a, b, f) {
+ return b.DHa ? b.DHa(f) : new a.Console("ASEJS", "media|asejs", f);
+ },
+ Yna: function (a) {
+ return a.length ? "{" + a + "} " : "";
+ },
+ vHb: function (a, b, f) {
+ return {
+ min: a.min * f + (1 - f) * b.min,
+ max: a.max * f + (1 - f) * b.max,
+ cv: a.cv * f + (1 - f) * b.cv,
+ scale: a.scale * f + (1 - f) * b.scale,
+ gamma: a.gamma * f + (1 - f) * b.gamma
+ };
+ },
+ tanh: Math.tanh || (function (a) {
+ var b;
+ b = Math.exp(+a);
+ a = Math.exp(-a);
+ return Infinity == b ? 1 : Infinity == a ? -1 : (b - a) / (b + a);
+ }),
+ Eoa: f,
+ Gm: function (a) {
+ var b;
+ b = a.Ja.Gc.aa.id;
+ return {
+ T: a.T,
+ duration: a.duration,
+ offset: a.offset,
+ da: a.da,
+ R: a.R,
+ profile: a.profile,
+ kc: a.kc,
+ Ha: b,
+ wa: a.wa,
+ Ob: a.Ob,
+ location: a.location,
+ Yj: a.Yj,
+ Gi: a.Gi,
+ kt: {
+ Gc: {
+ aa: {
+ id: b
+ }
+ }
+ }
+ };
+ }
+ };
+ }, function (d, b, a) {
+ var c;
+ c = a(173);
+ d.P = function (a) {
+ return function r(b) {
+ return 0 === arguments.length || c(b) ? r : a.apply(this, arguments);
+ };
+ };
+ }, function (d, b, a) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.ht = b.Lka = b.oQa = void 0;
+ d = a(990);
+ a = a(987);
+ b.oQa = d;
+ b.Lka = function (a, k) {
+ return b.oQa(function (a, b) {
+ return void 0 !== b ? b : a;
+ }, a, k);
+ };
+ b.ht = a;
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.OA = void 0;
+ b.OA = "SourceBufferTypeProviderSymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.GA = void 0;
+ b.GA = "PlayerErrorFactorySymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.rA = void 0;
+ b.rA = "IdProviderSymbol";
+ }, function (d, b, a) {
+ var k,
+ l,
+ r,
+ h,
+ p,
+ m;
+ function c(a) {
+ return a.reduce(function (a, b) {
+ return a.concat(b instanceof m.iV ? b.nH : b);
+ }, []);
+ }
+ k = a(182);
+ l = a(507);
+ r = a(508);
+ h = a(1146);
+ p = a(506);
+ m = a(1145);
+ d = (function () {
+ function a(a) {
+ this.closed = !1;
+ this.gG = this.eB = this.Jo = null;
+ a && (this.uba = a);
+ }
+ a.prototype.unsubscribe = function () {
+ var a,
+ b,
+ f,
+ d,
+ C,
+ M;
+ a = !1;
+ if (!this.closed) {
+ f = this.Jo;
+ d = this.eB;
+ C = this.uba;
+ M = this.gG;
+ this.closed = !0;
+ this.gG = this.eB = this.Jo = null;
+ for (var H = -1, g = d ? d.length : 0; f; ) {
+ f.remove(this);
+ f = ++H < g && d[H] || null;
+ }
+ r.Zb(C) && (f = h.gYa(C).call(this), f === p.vy && (a = !0, b = b || (p.vy.e instanceof m.iV ? c(p.vy.e.nH) : [p.vy.e])));
+ if (k.isArray(M))
+ for ((H = -1, g = M.length); ++H < g; ) {
+ f = M[H];
+ l.df(f) && (f = h.gYa(f.unsubscribe).call(f), f === p.vy && (a = !0, b = b || [], f = p.vy.e, f instanceof m.iV ? b = b.concat(c(f.nH)) : b.push(f)));
+ }
+ if (a)
+ throw new m.iV(b);
+ }
+ };
+ a.prototype.add = function (b) {
+ var f;
+ if (!b || b === a.EMPTY)
+ return a.EMPTY;
+ if (b === this)
+ return this;
+ f = b;
+ switch (typeof b) {
+ case "function":
+ f = new a(b);
+ case "object":
+ if (f.closed || "function" !== typeof f.unsubscribe)
+ return f;
+ if (this.closed)
+ return (f.unsubscribe(), f);
+ "function" !== typeof f.nBa && (b = f, f = new a(), f.gG = [b]);
+ break;
+ default:
+ throw Error("unrecognized teardown " + b + " added to Subscription.");
+ }
+ (this.gG || (this.gG = [])).push(f);
+ f.nBa(this);
+ return f;
+ };
+ a.prototype.remove = function (a) {
+ var b;
+ b = this.gG;
+ b && (a = b.indexOf(a), -1 !== a && b.splice(a, 1));
+ };
+ a.prototype.nBa = function (a) {
+ var b,
+ f;
+ b = this.Jo;
+ f = this.eB;
+ b && b !== a ? f ? -1 === f.indexOf(a) && f.push(a) : this.eB = [a] : this.Jo = a;
+ };
+ a.EMPTY = (function (a) {
+ a.closed = !0;
+ return a;
+ })(new a());
+ return a;
+ })();
+ b.rx = d;
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Yz = void 0;
+ b.Yz = "ApiInfoSymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.xA = void 0;
+ b.xA = "MediaKeysStorageFactorySymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.GK = b.T5 = void 0;
+ b.T5 = "DrmServicesSymbol";
+ b.GK = "DrmServicesProviderSymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.k9 = b.Ne = void 0;
+ (function (a) {
+ a.lA = (function () {
+ function a() {}
+ a.j0a = "cache_start";
+ a.k0a = "cache_success";
+ a.g0a = "cache_abort";
+ a.i0a = "cache_fail";
+ a.h0a = "cache_evict";
+ a.t5a = "pb_request";
+ a.E6a = "start_playback";
+ return a;
+ })();
+ a.qk = (function () {
+ function a() {}
+ a.xqa = "auth";
+ a.cx = "ldl";
+ a.SK = "hdr";
+ a.MEDIA = "media";
+ return a;
+ })();
+ a.QS = (function () {
+ function a() {}
+ a.aT = "cached";
+ a.LOADING = "loading";
+ a.h2a = "expired";
+ return a;
+ })();
+ })(b.Ne || (b.Ne = {}));
+ b.k9 = "PrefetchEventsFactorySymbol";
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r,
+ h,
+ p,
+ m,
+ f,
+ u,
+ w,
+ A,
+ g,
+ C,
+ M,
+ H,
+ G,
+ T,
+ S,
+ n;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.GL = void 0;
+ c = a(197);
+ k = a(12);
+ l = a(56);
+ r = a(6);
+ h = a(199);
+ p = a(2);
+ m = a(29);
+ f = a(207);
+ u = a(151);
+ w = a(291);
+ A = a(188);
+ g = a(105);
+ C = a(26);
+ M = a(288);
+ H = a(24);
+ G = a(145);
+ T = a(172);
+ S = a(514);
+ n = a(353);
+ d = (function () {
+ function a(b) {
+ var m,
+ u;
+ m = this;
+ this.createPlayer = function (a, b) {
+ var f;
+ b = void 0 === b ? {}
+ : b;
+ b = "number" === typeof b ? {
+ li: b
+ }
+ : b;
+ f = r.ba.get(T.OE);
+ f = b.manifest ? f.create(b.manifest) : void 0;
+ a = r.ba.get(A.rL).Ojb(a);
+ return m.GHa(a, b, f);
+ };
+ this.createPlaygraphPlayer = function (a, b, f) {
+ var c;
+ c = r.ba.get(T.OE);
+ f = f ? c.create(f) : void 0;
+ return m.GHa(G.$5a.encode(a), b, f);
+ };
+ this.closeAllPlayers = function (a) {
+ l.W8(void 0 === a ? function () {}
+ : a);
+ };
+ this.init = function (b) {
+ b = void 0 === b ? function () {}
+ : b;
+ m.vG.IP(function (f) {
+ f.U ? (k.config.q3 ? m.fIb().then(function () {
+ c.cya();
+ })["catch"](function (a) {
+ r.log.error("Unable to initialize the playdata services", a);
+ }) : Promise.resolve()).then(function () {
+ Object.assign(m, a.ZM);
+ b(Object.assign({
+ success: !0
+ }, a.ZM));
+ }) : b({
+ success: !1,
+ error: r.sya(f.errorCode || p.J.Dua, f)
+ });
+ });
+ };
+ this.applyConfig = function (a) {
+ m.EYa(a);
+ k.Fda(a);
+ };
+ this.prepare = function (a, b) {
+ var f;
+ a = m.uma.nIa(a) || [];
+ f = new Set();
+ a = a.filter(function (a) {
+ var b;
+ b = f.has(a.G);
+ f.add(a.G);
+ return !b;
+ });
+ if (k.config.Ap && m.Jc())
+ try {
+ m.Jc().ww(a, b);
+ } catch (X) {
+ r.log.warn("Prepare call failed", X);
+ }
+ };
+ this.predownload = function (a, b) {
+ if ((a = m.uma.nIa(a)) && k.config.Tz && m.Jc())
+ try {
+ m.Jc().ODb(a, b);
+ } catch (pa) {
+ r.log.warn("Predownload call failed", pa);
+ }
+ };
+ this.lookupPredownloaded = function () {
+ return k.config.Tz && m.Jc() ? m.Jc().Vv() : Promise.resolve([]);
+ };
+ this.ppmUpdate = function (a) {
+ t._cad_global.playerPredictionModel ? ((a = m.uma.klb(a)) && t._cad_global.playerPredictionModel.update(a), t._cad_global.prefetchEvents && t._cad_global.prefetchEvents.update(a)) : r.log.error("ppmUpdate called but there is no ppmModel");
+ };
+ this.supportsHdr = function (a) {
+ r.AH().VR().then(a)["catch"](function () {
+ return a(!1);
+ });
+ };
+ this.supportsUltraHd = function (a) {
+ r.AH().WR().then(a)["catch"](function () {
+ return a(!1);
+ });
+ };
+ this.supportsDolbyAtmos = function (a) {
+ r.AH().SR().then(a)["catch"](function () {
+ return a(!1);
+ });
+ };
+ this.supportsDolbyVision = function (a) {
+ r.AH().TR().then(a)["catch"](function () {
+ return a(!1);
+ });
+ };
+ this.close = function () {};
+ this.deviceThroughput = function () {
+ var a;
+ a = r.ba.get(f.fL).Vda();
+ return a ? Promise.resolve(a.Cm()) : Promise.resolve(void 0);
+ };
+ this.deviceThroughputNiqr = function () {
+ var a;
+ a = r.ba.get(f.fL).Vda();
+ return a ? Promise.resolve(a.urb()) : Promise.resolve(void 0);
+ };
+ this.isSeamlessEnabled = function () {
+ return k.config.Pmb;
+ };
+ this.EYa(b);
+ r.ba.get(n.O4);
+ this.uma = r.ba.get(h.HU);
+ this.vG = r.ba.get(C.Cf);
+ this.Jc = r.ba.get(g.SA);
+ u = r.ba.get(S.P8).apply();
+ k.hHa([b], u);
+ r.AH().WR();
+ }
+ a.prototype.EYa = function (a) {
+ r.ba.get(m.JE).azb(a);
+ };
+ a.prototype.fIb = function () {
+ return r.ba.get(u.nL)()["catch"](function (a) {
+ r.log.error("Unable to initialize the playdata services", a);
+ throw a;
+ }).then(function (a) {
+ return a.send(Infinity);
+ })["catch"](function (a) {
+ r.log.error("Unable to send deferred playdata", a);
+ });
+ };
+ a.prototype.GHa = function (a, b, f) {
+ var c,
+ h,
+ m,
+ p;
+ b = void 0 === b ? {}
+ : b;
+ c = r.ba.get(H.Me);
+ h = r.ba.get(w.g9);
+ m = r.ba.get(M.i9);
+ p = r.ba.get(A.rL);
+ h = h.create(a);
+ a = h.RZ();
+ c = c.Yb();
+ b = Object.assign(Object.assign({
+ startPts: b.playbackState && b.playbackState.currentTime || a.yf,
+ uiPlayStartTime: Date.now()
+ }, b), {
+ endPts: a.jg,
+ isPlaygraph: !0
+ });
+ m = m.create(c, h, p);
+ m.addEpisode({
+ movieId: a.ma,
+ playbackParams: b,
+ manifest: f
+ });
+ return m;
+ };
+ a.ZM = {};
+ return a;
+ })();
+ b.GL = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.wo = void 0;
+ c = a(0);
+ k = a(1);
+ l = a(43);
+ r = a(65);
+ a(155);
+ d = (function () {
+ var b;
+ function a(a, b, c, h, p) {
+ b = r.rh.call(this, a, b, h, l.uh.events, p, l.uh.events + "/" + c) || this;
+ b.context = a;
+ b.pnb = c;
+ return b;
+ }
+ N(a, r.rh);
+ a.prototype.Ge = function (a, b) {
+ var f,
+ c;
+ f = this;
+ c = this.CX(b);
+ return this.send(a, b.href, c).then(function () {
+ return b;
+ })["catch"](function (a) {
+ throw f.Gl(a);
+ });
+ };
+ a.prototype.Xn = function (a, b, c) {
+ var f,
+ h;
+ f = this;
+ h = this.CX(c);
+ return this.send(a, b.RO("events").href, h).then(function (a) {
+ b.Nba(a.result.links);
+ return c;
+ })["catch"](function (a) {
+ throw f.Gl(a);
+ });
+ };
+ a.prototype.CX = function (a) {
+ return {
+ event: this.pnb,
+ xid: a.ga,
+ position: a.position || 0,
+ clientTime: a.DN,
+ sessionStartTime: a.yR,
+ mediaId: a.nI,
+ trackId: a.cb,
+ sessionId: a.sessionId,
+ appId: a.WM,
+ playTimes: this.afb(a.CQ),
+ sessionParams: a.oo,
+ mdxControllerEsn: a.yka
+ };
+ };
+ a.prototype.Pca = function (a) {
+ return {
+ downloadableId: a.vd,
+ duration: a.duration
+ };
+ };
+ a.prototype.afb = function (a) {
+ var b;
+ b = {
+ total: a.total,
+ audio: a.audio.map(this.Pca),
+ video: a.video.map(this.Pca),
+ text: a.text.map(this.Pca)
+ };
+ a.total !== a.fE && (b.totalContentTime = a.fE);
+ return b;
+ };
+ b = a;
+ return b = c.__decorate([k.N(), c.__param(0, k.mi()), c.__param(1, k.mi()), c.__param(2, k.mi()), c.__param(3, k.mi()), c.__param(4, k.mi())], b);
+ })();
+ b.wo = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r,
+ h,
+ p,
+ m,
+ f,
+ u;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Ah = void 0;
+ c = a(10);
+ k = a(12);
+ d = a(2);
+ l = a(17);
+ r = a(6);
+ h = a(362);
+ p = a(9);
+ m = a(26);
+ f = a(32);
+ u = r.ba.get(m.Cf);
+ u.register(d.J.T6, function (a) {
+ var m,
+ d,
+ w,
+ M;
+ m = r.ba.get(f.aj);
+ l.Ra(k.config);
+ l.Ra(p.gu && p.gu.getDeviceId || p.pU || m.FZ);
+ d = r.ba.get(h.K5);
+ w = r.Fh("Device");
+ u.kd("devs");
+ M = r.ba.get(f.Xp);
+ d.create({
+ deviceId: k.config.deviceId,
+ FZ: m.FZ,
+ qIa: "deviceid",
+ Ch: k.config.Ch,
+ wy: M.vta,
+ Gea: m.Gea,
+ userAgent: p.bm,
+ Oja: k.config.Oja,
+ Gga: k.config.Gga,
+ ulb: M.f1a || !1,
+ aeb: k.config.yFa.e,
+ tlb: M.KQb || !1,
+ i_b: k.config.Ds ? "mslstoretest" : "mslstore"
+ }).then(function (f) {
+ b.Ah = f;
+ t._cad_global.device = b.Ah;
+ w.info("Esn source: " + b.Ah.xfa);
+ u.kd("devdone");
+ a(c.pd);
+ })["catch"](function (b) {
+ b.U = void 0;
+ a(b);
+ });
+ });
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r,
+ h,
+ p,
+ m,
+ f,
+ u,
+ w,
+ A,
+ g,
+ C,
+ M,
+ H;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Uc = b.yl = void 0;
+ c = a(57);
+ k = a(326);
+ l = a(637);
+ r = a(194);
+ h = a(12);
+ p = a(10);
+ m = a(149);
+ f = a(310);
+ u = a(39);
+ d = a(2);
+ w = a(6);
+ A = a(207);
+ g = a(9);
+ C = a(146);
+ M = a(26);
+ H = a(56);
+ w.ba.get(M.Cf).register(d.J.Eua, function (d) {
+ var M,
+ K,
+ G,
+ n,
+ B,
+ q,
+ t;
+ M = w.ba.get(A.fL).Vda();
+ K = w.ba.get(m.Q5).wE;
+ G = w.ba.get(k.N7).wk;
+ n = {
+ oD: w.IO("ASE"),
+ pdb: w.IO("JS-ASE", void 0, "Platform"),
+ Fh: w.IO,
+ storage: C.storage,
+ bp: C.bp,
+ vrb: g.vE,
+ getTime: u.zh,
+ dI: {},
+ wk: G,
+ Qr: l.Qr,
+ wE: K,
+ MediaSource: f.Awa,
+ SourceBuffer: r.L7,
+ Ik: function () {
+ return [h.config.rX, h.config.tX];
+ },
+ my: function (a) {
+ H.ln.forEach(function (b) {
+ b.$Va(a);
+ });
+ }
+ };
+ K = new Promise(function (a) {
+ C.storage.load("nh", function (b) {
+ n.dI.nh = b.U ? b.data : void 0;
+ a();
+ });
+ });
+ G = new Promise(function (a) {
+ C.storage.load("lh", function (b) {
+ n.dI.lh = b.U ? b.data : void 0;
+ a();
+ });
+ });
+ B = new Promise(function (a) {
+ C.storage.load("gh", function (b) {
+ n.dI.gh = b.U ? b.data : void 0;
+ a();
+ });
+ });
+ q = new Promise(function (a) {
+ C.storage.load("sth", function (b) {
+ n.dI.sth = b.U ? b.data : void 0;
+ a();
+ });
+ });
+ t = new Promise(function (a) {
+ C.storage.load("vb", function (b) {
+ n.dI.vb = b.U ? b.data : void 0;
+ a();
+ });
+ });
+ Promise.all([K, G, t, q, B]).then(function () {
+ var f;
+ f = a(635)(n);
+ b.Uc = a(309);
+ b.Uc.declare(c.vm);
+ b.Uc.declare({
+ Tz: ["useMediaCache", !1],
+ ry: ["diskCacheSizeLimit", 0],
+ zXb: ["dailyDiskCacheWriteLimit", 0],
+ UP: ["mediaCachePrefetchMs", 8E3],
+ zka: ["mediaCachePartitionConfig", {}
+ ]
+ });
+ b.Uc.set(a(156)(h.config), !0, w.IO("ASE"));
+ f = c.APa(f);
+ b.yl = new f(b.Uc, M);
+ b.yl.Eb(h.config.rX, h.config.tX, {
+ oD: n.oD
+ }, h.config.gR);
+ d(p.pd);
+ })["catch"](function (a) {
+ n.oD.error("Exception loading location history from local storage", a);
+ });
+ });
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.bF = void 0;
+ b.bF = "PlaygraphConfigSymbol";
+ }, function (d, b, a) {
+ var c,
+ k;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Zxb = b.qSa = b.gCb = b.XKa = b.oCb = b.Xz = b.J4 = b.Sp = b.mK = b.lK = b.Si = void 0;
+ c = a(22);
+ k = a(17);
+ b.Si = "$attributes";
+ b.lK = "$children";
+ b.mK = "$name";
+ b.Sp = "$text";
+ b.J4 = "$parent";
+ b.Xz = "$sibling";
+ b.oCb = /^\s*\<\?xml.*\?\>/i;
+ b.XKa = function (a, b, c) {
+ for (var h = 2; h < arguments.length; ++h) { ;
+ }
+ for (h = 1; (b = arguments[h++]) && (a = a[b]); ) { ;
+ }
+ return a;
+ };
+ b.gCb = function (a, r) {
+ var h;
+ a ? h = c.Ud(a[b.Sp]) : void 0 !== r && (h = r);
+ k.aO(h);
+ return h;
+ };
+ b.qSa = function (a, c) {
+ var h;
+ a ? h = a[b.Sp] : void 0 !== c && (h = c);
+ k.QHa(h);
+ return h;
+ };
+ b.Zxb = function (a, c) {
+ var h;
+ h = {};
+ h[b.Si] = a;
+ h[b.Sp] = c;
+ return h;
+ };
+ }, function (d, b, a) {
+ var c,
+ k,
+ l;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Rr = b.E9 = void 0;
+ c = a(27);
+ (function (a) {
+ a[a.absolute = 0] = "absolute";
+ a[a.UFb = 1] = "relative";
+ })(k = b.E9 || (b.E9 = {}));
+ l = (function () {
+ function a(a, b) {
+ this.type = a;
+ this.timestamp = b;
+ }
+ a.prototype.toString = function () {
+ return "timeStamp: " + this.timestamp + ", type: " + k[this.type];
+ };
+ return a;
+ })();
+ d = (function () {
+ function a() {}
+ a.HS = function (a) {
+ return new l(k.absolute, a);
+ };
+ a.FOb = function (a) {
+ return new l(k.UFb, a);
+ };
+ a.nqa = new l(k.absolute, c.fa.Os);
+ return a;
+ })();
+ b.Rr = d;
+ }, function (d, b, a) {
+ var c,
+ k;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ c = a(0);
+ k = a(234);
+ d = (function () {
+ function a(a, b, c) {
+ this.tag = a;
+ this.view = b;
+ this.M = c;
+ this.startOffset = c.offset;
+ }
+ a.PTa = function (b, c) {
+ var h,
+ m;
+ h = b.Ad();
+ m = b.cFb();
+ b = new(k.ZG[h] || a)(h, b.hqb(m), b);
+ b.parse(c);
+ return b;
+ };
+ Object.defineProperties(a.prototype, {
+ length: {
+ get: function () {
+ return this.view.byteLength;
+ },
+ enumerable: !0,
+ configurable: !0
+ }
+ });
+ a.prototype.parse = function () {
+ this.M.offset = this.startOffset + this.length;
+ this.M.bD = 0;
+ return !0;
+ };
+ a.prototype.LJa = function (a) {
+ var b;
+ b = [];
+ this.tag === a && b.push(this);
+ if (this.ZG)
+ for (var p = 0; p < this.ZG.length; p++) {
+ b = c.__spreadArrays(b, this.ZG[p].LJa(a));
+ }
+ return b;
+ };
+ a.prototype.lC = function (a) {
+ for (a = this.LJa(a); 0 < a.length; ) {
+ return a[0];
+ }
+ };
+ a.prototype.xDa = function () {
+ for (this.ZG = []; this.M.offset < this.startOffset + this.length; ) {
+ this.ZG.push(a.PTa(this.M, this));
+ }
+ };
+ return a;
+ })();
+ b.I5 = d;
+ d.prototype.skip = d.prototype.parse;
+ }, function (d) {
+ var c,
+ k;
+ function b() {
+ var b,
+ r;
+ if (DataView.prototype && DataView.prototype.IH && !k) {
+ try {
+ b = new ArrayBuffer(4);
+ r = new DataView(b);
+ r.JH(0, 4, 1);
+ } catch (h) {
+ return;
+ }
+ try {
+ b = new ArrayBuffer(4);
+ r = new DataView(b);
+ r.JH(1, 2, 2);
+ } catch (h) {
+ DataView.prototype.JH = a(DataView.prototype.JH, DataView.prototype.getUint8, Uint8Array);
+ DataView.prototype.m_ = a(DataView.prototype.m_, DataView.prototype.getUint16, Uint16Array);
+ DataView.prototype.IH = a(DataView.prototype.IH, DataView.prototype.getUint32, Uint32Array);
+ DataView.prototype.Rga = a(DataView.prototype.Rga, DataView.prototype.getInt8, Int8Array);
+ DataView.prototype.Pga = a(DataView.prototype.Pga, DataView.prototype.getInt16, Int16Array);
+ DataView.prototype.Qga = a(DataView.prototype.Qga, DataView.prototype.getInt32, Int32Array);
+ }
+ c.Nsb = function (a, b, c, f, u) {
+ return c ? a.JH(b, c, f || 1, u) : new Uint8Array(0);
+ };
+ c.Lsb = function (a, b, c, f, u) {
+ return c ? a.m_(b, c, f || 2, u) : new Uint16Array(0);
+ };
+ c.Msb = function (a, b, c, f, u) {
+ return c ? a.IH(b, c, f || 4, u) : new Uint32Array(0);
+ };
+ c.AYb = function (a, b, c, f, u) {
+ return c ? a.Rga(b, c, f || 1, u) : new Int8Array(0);
+ };
+ c.yYb = function (a, b, c, f, u) {
+ return c ? a.Pga(b, c, f || 2, u) : new Int16Array(0);
+ };
+ c.zYb = function (a, b, c, f, u) {
+ return c ? a.Qga(b, c, f || 4, u) : new Int32Array(0);
+ };
+ k = !0;
+ }
+ }
+ function a(a, b, c) {
+ return function (h, m, f, u) {
+ var p;
+ f = f || c.BYTES_PER_ELEMENT;
+ if (h + m * f > this.byteLength) {
+ p = new c(m);
+ p.set(a.call(this, h, m - 1, f, u));
+ p[m - 1] = b.call(this, h + (m - 1 * f), u);
+ return p;
+ }
+ return a.call(this, h, m, f, u);
+ };
+ }
+ c = {
+ JH: function (a, b, c, p, m) {
+ var f;
+ f = new Uint8Array(c);
+ p = p || 1;
+ for (var h = 0; h < c; (++h, b += p)) {
+ f[h] = a.getUint8(b, m);
+ }
+ return f;
+ },
+ m_: function (a, b, c, p, m) {
+ var f;
+ f = new Uint16Array(c);
+ p = p || 2;
+ for (var h = 0; h < c; (++h, b += p)) {
+ f[h] = a.getUint16(b, m);
+ }
+ return f;
+ },
+ IH: function (a, b, c, p, m) {
+ var f;
+ f = new Uint32Array(c);
+ p = p || 4;
+ for (var h = 0; h < c; (++h, b += p)) {
+ f[h] = a.getUint32(b, m);
+ }
+ return f;
+ },
+ Rga: function (a, b, c, p, m) {
+ var f;
+ f = new Int8Array(c);
+ p = p || 1;
+ for (var h = 0; h < c; (++h, b += p)) {
+ f[h] = a.getInt8(b, m);
+ }
+ return f;
+ },
+ Pga: function (a, b, c, p, m) {
+ var f;
+ f = new Int16Array(c);
+ p = p || 2;
+ for (var h = 0; h < c; (++h, b += p)) {
+ f[h] = a.getInt16(b, m);
+ }
+ return f;
+ },
+ Qga: function (a, b, c, p, m) {
+ var f;
+ f = new Int32Array(c);
+ p = p || 4;
+ for (var h = 0; h < c; (++h, b += p)) {
+ f[h] = a.getInt32(b, m);
+ }
+ return f;
+ },
+ kYb: b
+ };
+ k = !1;
+ c.mqb = function () {
+ return k;
+ };
+ b();
+ d.P = c;
+ }, function (d, b, a) {
+ var c,
+ k;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ c = a(0);
+ k = (function (a) {
+ function b() {
+ return null !== a && a.apply(this, arguments) || this;
+ }
+ c.__extends(b, a);
+ return b;
+ })(Error);
+ b.assert = function (a, b) {
+ if (!a)
+ throw new k(b || "Assertion failed");
+ };
+ }, function (d) {
+ var r,
+ h,
+ p,
+ m;
+ function b() {
+ b.Eb.call(this);
+ }
+ function a(a, c, h, m) {
+ var f,
+ p;
+ if ("function" !== typeof h)
+ throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof h);
+ f = a.eg;
+ void 0 === f ? (f = a.eg = Object.create(null), a.YA = 0) : (void 0 !== f.p_b && (a.emit("newListener", c, h.listener ? h.listener : h), f = a.eg), p = f[c]);
+ void 0 === p ? (f[c] = h, ++a.YA) : ("function" === typeof p ? p = f[c] = m ? [h, p] : [p, h] : m ? p.unshift(h) : p.push(h), h = void 0 === a.mM ? b.Okb : a.mM, 0 < h && p.length > h && !p.HOb && (p.HOb = !0, h = Error("Possible EventEmitter memory leak detected. " + p.length + " " + String(c) + " listeners added. Use emitter.setMaxListeners() to increase limit"), h.name = "MaxListenersExceededWarning", h.Bs = a, h.type = c, h.count = p.length, console && console.warn && console.warn(h)));
+ return a;
+ }
+ function c() {
+ for (var a = [], b = 0; b < arguments.length; b++) {
+ a.push(arguments[b]);
+ }
+ this.TJa || (this.target.removeListener(this.type, this.zZa), this.TJa = !0, h(this.listener, this.target, a));
+ }
+ function k(a, b, h) {
+ a = {
+ TJa: !1,
+ zZa: void 0,
+ target: a,
+ type: b,
+ listener: h
+ };
+ b = c.bind(a);
+ b.listener = h;
+ return a.zZa = b;
+ }
+ function l(a) {
+ var b;
+ b = this.eg;
+ if (void 0 !== b) {
+ a = b[a];
+ if ("function" === typeof a)
+ return 1;
+ if (void 0 !== a)
+ return a.length;
+ }
+ return 0;
+ }
+ r = "object" === typeof Reflect ? Reflect : null;
+ h = r && "function" === typeof r.apply ? r.apply : function (a, b, c) {
+ return Function.prototype.apply.call(a, b, c);
+ };
+ p = Number.isNaN || (function (a) {
+ return a !== a;
+ });
+ d.P = b;
+ b.EventEmitter = b;
+ b.prototype.eg = void 0;
+ b.prototype.YA = 0;
+ b.prototype.mM = void 0;
+ m = 10;
+ Object.defineProperty(b, "defaultMaxListeners", {
+ enumerable: !0,
+ get: function () {
+ return m;
+ },
+ set: function (a) {
+ if ("number" !== typeof a || 0 > a || p(a))
+ throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + a + ".");
+ m = a;
+ }
+ });
+ b.Eb = function () {
+ if (void 0 === this.eg || this.eg === Object.getPrototypeOf(this).eg)
+ (this.eg = Object.create(null), this.YA = 0);
+ this.mM = this.mM || void 0;
+ };
+ b.prototype.setMaxListeners = function (a) {
+ if ("number" !== typeof a || 0 > a || p(a))
+ throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + a + ".");
+ this.mM = a;
+ return this;
+ };
+ b.prototype.emit = function (a) {
+ var c,
+ f,
+ m;
+ for (var b = [], f = 1; f < arguments.length; f++) {
+ b.push(arguments[f]);
+ }
+ c = "error" === a;
+ f = this.eg;
+ if (void 0 !== f)
+ c = c && void 0 === f.error;
+ else if (!c)
+ return !1;
+ if (c) {
+ 0 < b.length && (m = b[0]);
+ if (m instanceof Error)
+ throw m;
+ b = Error("Unhandled error." + (m ? " (" + m.message + ")" : ""));
+ b.context = m;
+ throw b;
+ }
+ f = f[a];
+ if (void 0 === f)
+ return !1;
+ if ("function" === typeof f)
+ h(f, this, b);
+ else {
+ m = f.length;
+ for (var c = Array(m), p = 0; p < m; ++p) {
+ c[p] = f[p];
+ }
+ for (f = 0; f < m; ++f) {
+ h(c[f], this, b);
+ }
+ }
+ return !0;
+ };
+ b.prototype.addListener = function (b, c) {
+ return a(this, b, c, !1);
+ };
+ b.prototype.on = b.prototype.addListener;
+ b.prototype.mTa = function (b, c) {
+ return a(this, b, c, !0);
+ };
+ b.prototype.once = function (a, b) {
+ if ("function" !== typeof b)
+ throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof b);
+ this.on(a, k(this, a, b));
+ return this;
+ };
+ b.prototype.bEb = function (a, b) {
+ if ("function" !== typeof b)
+ throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof b);
+ this.mTa(a, k(this, a, b));
+ return this;
+ };
+ b.prototype.removeListener = function (a, b) {
+ var f,
+ c,
+ h,
+ m,
+ p;
+ if ("function" !== typeof b)
+ throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof b);
+ c = this.eg;
+ if (void 0 === c)
+ return this;
+ f = c[a];
+ if (void 0 === f)
+ return this;
+ if (f === b || f.listener === b)
+ 0 === --this.YA ? this.eg = Object.create(null) : (delete c[a], c.removeListener && this.emit("removeListener", a, f.listener || b));
+ else if ("function" !== typeof f) {
+ h = -1;
+ for (m = f.length - 1; 0 <= m; m--) {
+ if (f[m] === b || f[m].listener === b) {
+ p = f[m].listener;
+ h = m;
+ break;
+ }
+ }
+ if (0 > h)
+ return this;
+ if (0 === h)
+ f.shift();
+ else {
+ for (; h + 1 < f.length; h++) {
+ f[h] = f[h + 1];
+ }
+ f.pop();
+ }
+ 1 === f.length && (c[a] = f[0]);
+ void 0 !== c.removeListener && this.emit("removeListener", a, p || b);
+ }
+ return this;
+ };
+ b.prototype.HI = b.prototype.removeListener;
+ b.prototype.removeAllListeners = function (a) {
+ var b,
+ f,
+ c;
+ f = this.eg;
+ if (void 0 === f)
+ return this;
+ if (void 0 === f.removeListener)
+ return (0 === arguments.length ? (this.eg = Object.create(null), this.YA = 0) : void 0 !== f[a] && (0 === --this.YA ? this.eg = Object.create(null) : delete f[a]), this);
+ if (0 === arguments.length) {
+ b = Object.keys(f);
+ for (f = 0; f < b.length; ++f) {
+ c = b[f];
+ "removeListener" !== c && this.removeAllListeners(c);
+ }
+ this.removeAllListeners("removeListener");
+ this.eg = Object.create(null);
+ this.YA = 0;
+ return this;
+ }
+ b = f[a];
+ if ("function" === typeof b)
+ this.removeListener(a, b);
+ else if (void 0 !== b)
+ for (f = b.length - 1; 0 <= f; f--) {
+ this.removeListener(a, b[f]);
+ }
+ return this;
+ };
+ b.prototype.listeners = function (a) {
+ var b;
+ b = this.eg;
+ if (void 0 === b)
+ a = [];
+ else if ((a = b[a], void 0 === a))
+ a = [];
+ else if ("function" === typeof a)
+ a = [a.listener || a];
+ else {
+ for (var b = Array(a.length), f = 0; f < b.length; ++f) {
+ b[f] = a[f].listener || a[f];
+ }
+ a = b;
+ }
+ return a;
+ };
+ b.listenerCount = function (a, b) {
+ return "function" === typeof a.listenerCount ? a.listenerCount(b) : l.call(a, b);
+ };
+ b.prototype.listenerCount = l;
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.fV = b.sn = void 0;
+ b.sn = {
+ YE: "PRIMARY",
+ vqa: "ASSISTIVE",
+ Kra: "COMMENTARY",
+ NONE: "NONE"
+ };
+ b.fV = {
+ assistive: b.sn.vqa,
+ closedcaptions: b.sn.vqa,
+ directorscommentary: b.sn.Kra,
+ commentary: b.sn.Kra,
+ subtitles: b.sn.YE,
+ primary: b.sn.YE,
+ none: b.sn.NONE
+ };
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.QE = void 0;
+ b.QE = "MslProviderSymbol";
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Yl = void 0;
+ c = a(30);
+ k = a(59);
+ l = a(457);
+ d = a(99);
+ r = a(136);
+ new d.qx();
+ a = (function () {
+ function a(a, b, f) {
+ var h;
+ h = l.wK.call(this, a, b, c.Lr.UAa) || this;
+ h.config = a;
+ h.Hka = b;
+ h.is = f;
+ h.type = c.Dj.Uw;
+ h.GS = r.Md.HHa();
+ return h;
+ }
+ N(a, l.wK);
+ a.prototype.It = function () {
+ return Promise.resolve(!1);
+ };
+ a.prototype.Js = function () {
+ return Promise.resolve("");
+ };
+ a.prototype.UZ = function () {
+ return Promise.resolve("");
+ };
+ a.prototype.VR = function () {
+ return Promise.resolve(!1);
+ };
+ a.prototype.TR = function () {
+ return Promise.resolve(!1);
+ };
+ a.prototype.WR = function () {
+ return Promise.resolve(!1);
+ };
+ a.prototype.SR = function () {
+ return Promise.resolve(!1);
+ };
+ a.prototype.wH = function (a) {
+ return this.GS[a];
+ };
+ a.prototype.Lba = function (a) {
+ return a;
+ };
+ a.prototype.JPa = function (a) {
+ switch (a) {
+ case c.oi.Ir:
+ return "1.4";
+ case c.oi.sA:
+ return "2.2";
+ }
+ };
+ a.prototype.UB = function () {
+ var a;
+ a = {};
+ a[k.W.KK] = "avc1.4D401E";
+ a[k.W.DE] = "avc1.4D401F";
+ a[k.W.s6] = "avc1.4D4028";
+ a[k.W.E6] = "hev1.1.6.L90.B0";
+ a[k.W.F6] = "hev1.1.6.L93.B0";
+ a[k.W.G6] = "hev1.1.6.L120.B0";
+ a[k.W.H6] = "hev1.1.6.L123.B0";
+ a[k.W.I6] = "hev1.1.6.L150.B0";
+ a[k.W.J6] = "hev1.1.6.L153.B0";
+ a[k.W.A6] = "hev1.2.6.L90.B0";
+ a[k.W.B6] = "hev1.2.6.L93.B0";
+ a[k.W.C6] = "hev1.2.6.L120.B0";
+ a[k.W.D6] = "hev1.2.6.L123.B0";
+ a[k.W.FE] = "hev1.2.6.L150.B0";
+ a[k.W.GE] = "hev1.2.6.L153.B0";
+ a[k.W.KT] = "hev1.2.6.L90.B0";
+ a[k.W.MT] = "hev1.2.6.L93.B0";
+ a[k.W.OT] = "hev1.2.6.L120.B0";
+ a[k.W.QT] = "hev1.2.6.L123.B0";
+ a[k.W.t6] = "hev1.2.6.L90.B0";
+ a[k.W.u6] = "hev1.2.6.L93.B0";
+ a[k.W.v6] = "hev1.2.6.L120.B0";
+ a[k.W.w6] = "hev1.2.6.L123.B0";
+ a[k.W.x6] = "hev1.2.6.L150.B0";
+ a[k.W.y6] = "hev1.2.6.L153.B0";
+ a[k.W.NK] = "hev1.2.6.L90.B0";
+ a[k.W.OK] = "hev1.2.6.L93.B0";
+ a[k.W.EE] = "hev1.2.6.L120.B0";
+ a[k.W.PK] = "hev1.2.6.L123.B0";
+ a[k.W.zK] = r.Md.C5;
+ a[k.W.AK] = r.Md.Fsa;
+ a[k.W.uE] = r.Md.Gsa;
+ a[k.W.BK] = r.Md.Hsa;
+ a[k.W.CK] = r.Md.Isa;
+ a[k.W.nT] = r.Md.Jsa;
+ a[k.W.A2a] = "avc1.640016";
+ a[k.W.ET] = "avc1.64001E";
+ a[k.W.FT] = "avc1.64001F";
+ a[k.W.r6] = "avc1.640028";
+ a[k.W.RAa] = r.Md.FL;
+ a[k.W.jV] = r.Md.FL;
+ a[k.W.kV] = r.Md.FL;
+ a[k.W.lV] = r.Md.FL;
+ a[k.W.MAa] = r.Md.EL;
+ a[k.W.NAa] = r.Md.EL;
+ a[k.W.OAa] = r.Md.EL;
+ a[k.W.PAa] = r.Md.EL;
+ a[k.W.QAa] = r.Md.EL;
+ a[k.W.yqa] = r.Md.Ti;
+ a[k.W.zqa] = r.Md.Ti;
+ a[k.W.Aqa] = r.Md.Ti;
+ a[k.W.Bqa] = r.Md.Ti;
+ a[k.W.Cqa] = r.Md.Ti;
+ a[k.W.Dqa] = r.Md.Ti;
+ a[k.W.Eqa] = r.Md.Ti;
+ a[k.W.Fqa] = r.Md.Ti;
+ return a;
+ };
+ a.prototype.TLa = function () {
+ return this.config().DS;
+ };
+ a.prototype.EH = function () {
+ return Promise.resolve(void 0);
+ };
+ a.prototype.WO = function () {
+ return Promise.resolve(void 0);
+ };
+ a.prototype.UN = function (a) {
+ var b;
+ b = [];
+ this.is.de(a) && b.push(this.JPa(a));
+ return [{
+ type: "DigitalVideoOutputDescriptor",
+ outputType: "unknown",
+ supportedHdcpVersions: b,
+ isHdcpEngaged: !!b.length
+ }
+ ];
+ };
+ a.XJ = "video/mp4;codecs={0};";
+ return a;
+ })();
+ b.Yl = a;
+ }, function (d, b, a) {
+ var c;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Md = void 0;
+ c = a(30);
+ b.Md = (function () {
+ function a() {}
+ a.HHa = function (b) {
+ var l;
+ l = {};
+ l[c.Cd.wL] = a.CE;
+ l[c.Cd.GT] = a.CE;
+ l[c.Cd.hV] = a.LK;
+ l[c.Cd.$t] = a.$t;
+ l[c.Cd.Xt] = b || a.Xt;
+ l[c.Cd.pE] = a.CE;
+ l[c.Cd.ux] = a.FL;
+ l[c.Cd.Ti] = a.Ti;
+ return l;
+ };
+ a.CE = "avc1.640028";
+ a.LK = "hev1.1.6.L93.B0";
+ a.C5 = "dvhe.05.01";
+ a.Fsa = "dvhe.05.04";
+ a.Gsa = "dvhe.05.05";
+ a.Hsa = "dvhe.05.06";
+ a.Isa = "dvhe.05.07";
+ a.Jsa = "dvhe.05.09";
+ a.Xt = a.C5;
+ a.$t = a.LK;
+ a.OS = "mp4a.40.2";
+ a.oV = "mp4a.40.42";
+ a.FQb = "ec-3";
+ a.OVb = "vp9";
+ a.FL = "vp09.00.11.08.02";
+ a.EL = "vp09.02.31.10.01";
+ a.Ti = "av01.0.04M.08";
+ a.G0a = [a.Jsa, a.Isa, a.Hsa, a.Gsa, a.Fsa, a.C5];
+ return a;
+ })();
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.tL = b.R9 = void 0;
+ b.R9 = "SystemRandomSymbol";
+ b.tL = "RandomGeneratorSymbol";
+ }, function (d, b, a) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ d = a(0);
+ d.__exportStar(a(20), b);
+ d.__exportStar(a(505), b);
+ d.__exportStar(a(1142), b);
+ d.__exportStar(a(267), b);
+ d.__exportStar(a(117), b);
+ a(1135);
+ a(1131);
+ a(1128);
+ a(1124);
+ a(1121);
+ a(1118);
+ a(1116);
+ a(1113);
+ a(1109);
+ a(1106);
+ a(1105);
+ a(1099);
+ a(1097);
+ a(1095);
+ a(1093);
+ a(1092);
+ a(1086);
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.bV = b.kn = void 0;
+ b.kn = function () {};
+ b.bV = "StringObjectReaderSymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.lta = b.en = void 0;
+ d = b.en || (b.en = {});
+ d[d.tD = 0] = "playready";
+ d[d.H4 = 1] = "widevine";
+ d[d.jC = 2] = "fairplay";
+ d[d.nXb = 3] = "clearkey";
+ b.lta = "DrmTypeSymbol";
+ }, function (d, b, a) {
+ var c,
+ k,
+ l;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.xE = b.rb = void 0;
+ c = a(140);
+ k = a(48);
+ l = a(2);
+ b.rb = (function () {
+ function a() {}
+ a.Hga = function (a) {
+ if (a) {
+ if (a.includes(b.xE.tD))
+ return c.en.tD;
+ if (a.includes("fps"))
+ return c.en.jC;
+ if (a.includes(b.xE.H4))
+ return c.en.H4;
+ }
+ throw new k.Dc(l.J.a2a, void 0, void 0, void 0, void 0, "Invalid KeySystem: " + a);
+ };
+ a.bLa = function (a) {
+ switch (a) {
+ case c.en.tD:
+ return b.xE.tD;
+ case c.en.jC:
+ return b.xE.jC;
+ default:
+ return b.xE.H4;
+ }
+ };
+ a.Yp = "com.microsoft.playready";
+ a.Nd = "com.microsoft.playready.hardware";
+ a.qL = "com.microsoft.playready.software";
+ a.oUb = "com.chromecast.playready";
+ a.pUb = "org.chromium.external.playready";
+ a.LRb = "com.apple.fps.2_0";
+ a.s7a = "com.widevine.alpha";
+ a.qUb = "com.microsoft.playready.recommendation";
+ a.rUb = "com.microsoft.playready.recommendation.3000";
+ a.sUb = "com.microsoft.playready.recommendation.2000";
+ return a;
+ })();
+ b.xE = {
+ jC: "fairplay",
+ H4: "widevine",
+ tD: "playready"
+ };
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.ZE = void 0;
+ b.ZE = "PlatformConfigDefaultsSymbol";
+ }, function (d, b, a) {
+ var p;
+ function c(a) {
+ return "function" === typeof a ? a.name : "symbol" === typeof a ? a.toString() : a;
+ }
+ function k(a, b) {
+ return null === a.pw ? !1 : a.pw.xf === b ? !0 : k(a.pw, b);
+ }
+ function l(a) {
+ function b(a, f) {
+ void 0 === f && (f = []);
+ f.push(c(a.xf));
+ return null !== a.pw ? b(a.pw, f) : f;
+ }
+ return b(a).reverse().join(" --\x3e ");
+ }
+ function r(a) {
+ a.kda.forEach(function (a) {
+ if (k(a, a.xf))
+ throw (a = l(a), Error(p.o0a + " " + a));
+ r(a);
+ });
+ }
+ function h(a) {
+ var b;
+ if (a.name)
+ return a.name;
+ a = a.toString();
+ b = a.match(/^function\s*([^\s(]+)/);
+ return b ? b[1] : "Anonymous function: " + a;
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ p = a(54);
+ b.GH = c;
+ b.$Oa = function (a, b, c) {
+ var f;
+ f = "";
+ a = c(a, b);
+ 0 !== a.length && (f = "\nRegistered bindings:", a.forEach(function (a) {
+ var b;
+ b = "Object";
+ null !== a.Mk && (b = h(a.Mk));
+ f = f + "\n " + b;
+ a.QB.pQa && (f = f + " - " + a.QB.pQa);
+ }));
+ return f;
+ };
+ b.ogb = r;
+ b.Swb = function (a, b) {
+ var f,
+ c;
+ if (b.cja() || b.Tia()) {
+ f = "";
+ c = b.qrb();
+ b = b.gqb();
+ null !== c && (f += c.toString() + "\n");
+ null !== b && b.forEach(function (a) {
+ f += a.toString() + "\n";
+ });
+ return " " + a + "\n " + a + " - " + f;
+ }
+ return " " + a;
+ };
+ b.getFunctionName = h;
+ }, function (d) {
+ var b;
+ b = (function () {
+ return this;
+ })();
+ try {
+ b = b || Function("return this")() || (0, eval)("this");
+ } catch (a) {
+ "object" === typeof t && (b = t);
+ }
+ d.P = b;
+ }, function (d, b, a) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ d = a(0);
+ d.__exportStar(a(580), b);
+ d.__exportStar(a(579), b);
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r,
+ h,
+ p;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.bp = b.storage = void 0;
+ c = a(12);
+ k = a(10);
+ l = a(314);
+ d = a(2);
+ r = a(313);
+ h = a(311);
+ p = a(6);
+ a = a(26);
+ b.storage = b.storage || void 0;
+ b.bp = b.bp || void 0;
+ p.ba.get(a.Cf).register(d.J.Nua, function (a) {
+ var f;
+ switch (c.config.BKb) {
+ case "idb":
+ f = r.KWa;
+ break;
+ case "none":
+ f = l.MWa;
+ break;
+ case "ls":
+ f = h.LWa;
+ }
+ f(function (f) {
+ f.U ? (b.storage = f.storage, b.bp = f.bp, a(k.pd)) : a(f);
+ });
+ });
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.oL = void 0;
+ b.oL = "PboPublisherSymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Vb = void 0;
+ b.Vb = (function () {
+ function a() {}
+ a.Yd = {
+ Ywa: "mr1",
+ Xwa: "mr2",
+ Zwa: "mr3",
+ hL: "mr4",
+ b5a: "mr5",
+ CA: "mr6"
+ };
+ a.vc = {
+ UNSENT: 0,
+ OPENED: 1,
+ ox: 2,
+ IA: 3,
+ DONE: 5,
+ JK: 6,
+ nK: 7,
+ name: ("UNSENT OPENED SENT RECEIVING DONE FAILED ABORTED").split(" ")
+ };
+ a.yUb = {
+ uqa: 0,
+ MA: 1,
+ Pwa: 2,
+ name: ["ARRAYBUFFER", "STREAM", "NOTIFICATION"]
+ };
+ a.zE = {
+ NO_ERROR: -1,
+ q1a: 0,
+ Dsa: 1,
+ C1a: 2,
+ u1a: 3,
+ v0a: 4,
+ Mra: 5,
+ n5: 6,
+ w0a: 7,
+ x0a: 8,
+ y0a: 9,
+ s0a: 10,
+ u0a: 11,
+ Lra: 12,
+ t0a: 13,
+ r0a: 14,
+ M2a: 15,
+ oua: 16,
+ nua: 17,
+ L6: 18,
+ N6: 19,
+ M6: 20,
+ rua: 21,
+ O2a: 22,
+ UT: 23,
+ pua: 24,
+ N2a: 25,
+ x1a: 26,
+ r1a: 27,
+ B6a: 28,
+ h1a: 29,
+ i1a: 30,
+ j1a: 31,
+ k1a: 32,
+ l1a: 33,
+ m1a: 34,
+ n1a: 35,
+ o1a: 36,
+ p1a: 37,
+ s1a: 38,
+ t1a: 39,
+ v1a: 40,
+ w1a: 41,
+ y1a: 42,
+ z1a: 43,
+ A1a: 44,
+ B1a: 45,
+ D1a: 46,
+ E1a: 47,
+ A6a: 48,
+ TIMEOUT: 49,
+ K6: 50,
+ lua: 51,
+ L2a: 52,
+ name: ("DNS_ERROR DNS_TIMEOUT DNS_QUERY_REFUSED DNS_NOT_FOUND CONNECTION_REFUSED CONNECTION_TIMEOUT CONNECTION_CLOSED CONNECTION_RESET CONNECTION_RESET_ON_CONNECT CONNECTION_RESET_WHILE_RECEIVING CONNECTION_NET_UNREACHABLE CONNECTION_NO_ROUTE_TO_HOST CONNECTION_NETWORK_DOWN CONNECTION_NO_ADDRESS CONNECTION_ERROR HTTP_CONNECTION_ERROR HTTP_CONNECTION_TIMEOUT HTTP_CONNECTION_STALL HTTP_PROTOCOL_ERROR HTTP_RESPONSE_4XX HTTP_RESPONSE_420 HTTP_RESPONSE_5XX HTTP_TOO_MANY_REDIRECTS HTTP_TRANSACTION_TIMEOUT HTTP_MESSAGE_LENGTH_ERROR HTTP_HEADER_LENGTH_ERROR DNS_NOT_SUPPORTED DNS_EXPIRED SSL_ERROR DNS_BAD_FAMILY DNS_BAD_FLAGS DNS_BAD_HINTS DNS_BAD_NAME DNS_BAD_STRING DNS_CANCELLED DNS_CHANNEL_DESTROYED DNS_CONNECTION_REFUSED DNS_EOF DNS_FILE DNS_FORMAT_ERROR DNS_NOT_IMPLEMENTED DNS_NOT_INITIALIZED DNS_NO_DATA DNS_NO_MEMORY DNS_NO_NAME DNS_QUERY_MALFORMED DNS_RESPONSE_MALFORMED DNS_SERVER_FAILURE SOCKET_ERROR TIMEOUT HTTPS_CONNECTION_ERROR HTTPS_CONNECTION_TIMEOUT HTTPS_CONNECTION_REDIRECT_TO_HTTP").split(" ")
+ };
+ a.gc = {
+ lJ: {
+ uqa: !0,
+ MA: !1,
+ Pwa: !0
+ }
+ };
+ return a;
+ })();
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Q5 = b.bta = void 0;
+ b.bta = function () {
+ this.AUDIO = 0;
+ this.VIDEO = 1;
+ this.I2a = 2;
+ this.Ge = function () {};
+ };
+ b.Q5 = "DownloadTrackConstructorFactorySymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.l9 = b.Pr = void 0;
+ d = b.Pr || (b.Pr = {});
+ d.mXa = "taskstart";
+ d.kXa = "taskabort";
+ d.lXa = "taskfail";
+ d.nXa = "tasksuccess";
+ b.l9 = "PreparerTaskSchedulerSymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.nL = b.J8 = void 0;
+ b.J8 = "PboPlaydataServicesSymbol";
+ b.nL = "PboPlaydataServicesProviderSymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.KE = void 0;
+ b.KE = "LicenseProviderSymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Oe = void 0;
+ d = b.Oe || (b.Oe = {});
+ d.sm = "created";
+ d.Ht = "started";
+ d.OJ = "succeeded";
+ d.yq = "failed";
+ d.gj = "cancelled";
+ d.LX = "cancelled_on_create";
+ d.zN = "cancelled_on_start";
+ d.KX = "cancelled_not_encrypted";
+ }, function (d, b, a) {
+ var k,
+ l;
+ function c(a) {
+ switch (a) {
+ case k.I.UK:
+ return "http";
+ case k.I.WK:
+ return "connectiontimeout";
+ case k.I.pA:
+ return "readtimeout";
+ case k.I.qua:
+ return "corruptcontent";
+ case k.I.Xw:
+ return "abort";
+ case k.I.XK:
+ case k.I.O6:
+ return "unknown";
+ }
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.sha = b.hha = b.gha = void 0;
+ k = a(2);
+ l = a(9);
+ b.gha = c;
+ b.hha = function (a, b) {
+ a = {
+ errorcode: a + (b.errorCode || k.J.nl)
+ };
+ b.ja && (a.errorsubcode = b.ja);
+ b.Fe && (a.errorextcode = b.Fe);
+ b.ufa && (a.erroredgecode = b.ufa);
+ b.ab && (a.errordetails = b.ab);
+ b.kj && (a.httperr = b.kj);
+ b.w1 && (a.aseneterr = b.w1);
+ b.wO && (a.errordata = b.wO);
+ b.VP && (a.mediaerrormessage = b.VP);
+ (b = c(Number(b.ja))) && (a.nwerr = b);
+ return a;
+ };
+ b.sha = function () {
+ return {
+ screensize: l.Nr.width + "x" + l.Nr.height,
+ screenavailsize: l.Nr.availWidth + "x" + l.Nr.availHeight,
+ clientsize: t.innerWidth + "x" + t.innerHeight
+ };
+ };
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.pT = b.G5 = void 0;
+ (b.G5 || (b.G5 = {})).W5a = "PboDebugEvent";
+ b.pT = {
+ E4a: "Manifest",
+ Event: "Event",
+ zSb: "Logblob"
+ };
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ d.P = function (a) {
+ return {
+ minInitVideoBitrate: a.$s,
+ minHCInitVideoBitrate: a.Pka,
+ maxInitVideoBitrate: a.aw,
+ minInitAudioBitrate: a.bQ,
+ maxInitAudioBitrate: a.QP,
+ minHCInitAudioBitrate: a.aQ,
+ minAcceptableVideoBitrate: a.i1,
+ minRequiredBuffer: a.cQ,
+ minPrebufSize: a.Li,
+ minCheckBufferingCompleteInterval: a.Oka,
+ rebufferingFactor: a.Uma,
+ useMaxPrebufSize: a.eqa,
+ maxPrebufSize: a.cz,
+ maxRebufSize: a.tka,
+ maxBufferingTime: a.vp,
+ minAudioMediaRequestSizeBytes: a.j1,
+ minVideoMediaRequestSizeBytes: a.q1,
+ initialBitrateSelectionCurve: a.V_,
+ initSelectionLowerBound: a.uNa,
+ initSelectionUpperBound: a.vNa,
+ throughputPercentForAudio: a.b4,
+ bandwidthMargin: a.Aca,
+ bandwidthMarginContinuous: a.Bca,
+ bandwidthMarginCurve: a.Cca,
+ conservBandwidthMargin: a.Jda,
+ switchConfigBasedOnInSessionTput: a.hpa,
+ conservBandwidthMarginTputThreshold: a.IN,
+ conservBandwidthMarginCurve: a.Kda,
+ switchAlgoBasedOnHistIQR: a.dXa,
+ switchConfigBasedOnThroughputHistory: a.Nz,
+ maxPlayerStateToSwitchConfig: a.ska,
+ lowEndMarkingCriteria: a.Vja,
+ IQRThreshold: a.U6,
+ histIQRCalcToUse: a.iia,
+ maxTotalBufferLevelPerSession: a.Vs,
+ highWatermarkLevel: a.$Ma,
+ toStableThreshold: a.LXa,
+ toUnstableThreshold: a.f4,
+ skipBitrateInUpswitch: a.Moa,
+ watermarkLevelForSkipStart: a.oqa,
+ highStreamRetentionWindow: a.bia,
+ lowStreamTransitionWindow: a.Wja,
+ highStreamRetentionWindowUp: a.dia,
+ lowStreamTransitionWindowUp: a.Yja,
+ highStreamRetentionWindowDown: a.cia,
+ lowStreamTransitionWindowDown: a.Xja,
+ highStreamInfeasibleBitrateFactor: a.aia,
+ lowestBufForUpswitch: a.Wv,
+ lockPeriodAfterDownswitch: a.K0,
+ lowWatermarkLevel: a.$ja,
+ lowestWaterMarkLevel: a.Xv,
+ lowestWaterMarkLevelBufferRelaxed: a.aka,
+ mediaRate: a.Fka,
+ maxTrailingBufferLen: a.Y0,
+ audioBufferTargetAvailableSize: a.aN,
+ videoBufferTargetAvailableSize: a.BS,
+ maxVideoTrailingBufferSize: a.fQa,
+ maxAudioTrailingBufferSize: a.RPa,
+ fastUpswitchFactor: a.hZ,
+ fastDownswitchFactor: a.Kfa,
+ maxMediaBufferAllowed: a.Wq,
+ maxMediaBufferAllowedInBytes: a.Ws,
+ simulatePartialBlocks: a.Hoa,
+ simulateBufferFull: a.jWa,
+ considerConnectTime: a.Lda,
+ connectTimeMultiplier: a.Ida,
+ lowGradeModeEnterThreshold: a.sPa,
+ lowGradeModeExitThreshold: a.tPa,
+ maxDomainFailureWaitDuration: a.UPa,
+ maxAttemptsOnFailure: a.QPa,
+ exhaustAllLocationsForFailure: a.wJa,
+ maxNetworkErrorsDuringBuffering: a.$Pa,
+ maxBufferingTimeAllowedWithNetworkError: a.lka,
+ fastDomainSelectionBwThreshold: a.EJa,
+ throughputProbingEnterThreshold: a.vXa,
+ throughputProbingExitThreshold: a.wXa,
+ locationProbingTimeout: a.fPa,
+ finalLocationSelectionBwThreshold: a.IJa,
+ throughputHighConfidenceLevel: a.tXa,
+ throughputLowConfidenceLevel: a.uXa,
+ locationStatisticsUpdateInterval: a.Lja,
+ enablePerfBasedLocationSwitch: a.dJa,
+ probeServerWhenError: a.er,
+ probeRequestTimeoutMilliseconds: a.Ama,
+ allowSwitchback: a.Pu,
+ probeDetailDenominator: a.vD,
+ maxDelayToReportFailure: a.T0,
+ countGapInBuffer: a.sHa,
+ bufferThresholdForAbort: a.VFa,
+ allowCallToStreamSelector: a.KEa,
+ pipelineScheduleTimeoutMs: a.Zla,
+ maxPartialBuffersAtBufferingStart: a.cw,
+ minPendingBufferLen: a.Qka,
+ maxPendingBufferLen: a.bz,
+ maxPendingBufferLenSABCell100: a.V0,
+ maxActiveRequestsSABCell100: a.R0,
+ maxStreamingSkew: a.uka,
+ maxPendingBufferPercentage: a.rka,
+ maxRequestsInBuffer: a.TC,
+ headerRequestSize: a.F_,
+ minBufferLenForHeaderDownloading: a.$P,
+ reserveForSkipbackBufferMs: a.gR,
+ numExtraFragmentsAllowed: a.rla,
+ pipelineEnabled: a.xp,
+ maxParallelConnections: a.kI,
+ socketReceiveBufferSize: a.oWa,
+ audioSocketReceiveBufferSize: a.xX,
+ videoSocketReceiveBufferSize: a.fK,
+ headersSocketReceiveBufferSize: a.Zha,
+ updatePtsIntervalMs: a.s4,
+ bufferTraceDenominator: a.Lca,
+ bufferLevelNotifyIntervalMs: a.HB,
+ aseReportDenominator: a.YM,
+ aseReportIntervalMs: a.mca,
+ enableAbortTesting: a.XIa,
+ abortRequestFrequency: a.jEa,
+ streamingStatusIntervalMs: a.$oa,
+ prebufferTimeLimit: a.qz,
+ minBufferLevelForTrackSwitch: a.k1,
+ penaltyFactorForLongConnectTime: a.Sla,
+ longConnectTimeThreshold: a.Tja,
+ additionalBufferingLongConnectTime: a.Tba,
+ additionalBufferingPerFailure: a.Uba,
+ rebufferCheckDuration: a.ZQ,
+ enableLookaheadHints: a.bJa,
+ lookaheadFragments: a.oPa,
+ enableOCSideChannel: a.eC,
+ OCSCBufferQuantizationConfig: a.uU,
+ updateDrmRequestOnNetworkFailure: a.BYa,
+ deferAseScheduling: a.hIa,
+ maxDiffAudioVideoEndPtsMs: a.TPa,
+ useHeaderCache: a.$J,
+ useHeaderCacheData: a.SY,
+ defaultHeaderCacheSize: a.bO,
+ defaultHeaderCacheDataPrefetchMs: a.tY,
+ headerCacheMaxPendingData: a.Vha,
+ neverWipeHeaderCache: a.dla,
+ headerCachePriorityLimit: a.Wha,
+ enableUsingHeaderCount: a.tO,
+ networkFailureResetWaitMs: a.bla,
+ networkFailureAbandonMs: a.ala,
+ maxThrottledNetworkFailures: a.X0,
+ throttledNetworkFailureThresholdMs: a.a4,
+ lowThroughputThreshold: a.Zja,
+ excludeSessionWithoutHistoryFromLowThroughputThreshold: a.Bfa,
+ mp4ParsingInNative: a.HQa,
+ sourceBufferInOrderAppend: a.pWa,
+ requireAudioStreamToEncompassVideo: a.zt,
+ allowAudioToStreamPastVideo: a.JEa,
+ enableManagerDebugTraces: a.ah,
+ managerDebugMessageInterval: a.GPa,
+ managerDebugMessageCount: a.FPa,
+ bufferThresholdToSwitchToSingleConnMs: a.Kca,
+ bufferThresholdToSwitchToParallelConnMs: a.Jca,
+ netIntrStoreWindow: a.Zzb,
+ minNetIntrDuration: a.wzb,
+ fastHistoricBandwidthExpirationTime: a.Mnb,
+ bandwidthExpirationTime: a.neb,
+ failureExpirationTime: a.Jnb,
+ historyTimeOfDayGranularity: a.Wtb,
+ expandDownloadTime: a.wnb,
+ minimumMeasurementTime: a.Izb,
+ minimumMeasurementBytes: a.Hzb,
+ throughputMeasurementTimeout: a.ELb,
+ initThroughputMeasureDataSize: a.Oub,
+ throughputMeasureWindow: a.DLb,
+ throughputIQRMeasureWindow: a.CLb,
+ IQRBucketizerWindow: a.Q3a,
+ connectTimeHalflife: a.fhb,
+ responseTimeHalflife: a.$Gb,
+ historicBandwidthUpdateInterval: a.Vtb,
+ throughputWarmupTime: a.HLb,
+ minimumBufferToStopProbing: a.Fzb,
+ throughputPredictor: a.FLb,
+ ase_stream_selector: a.rdb,
+ enableFilters: a.Amb,
+ filterDefinitionOverrides: a.aob,
+ defaultFilter: a.Mkb,
+ secondaryFilter: a.GHb,
+ defaultFilterDefinitions: a.Nkb,
+ initBitrateSelectorAlgorithm: a.Eia,
+ bufferingSelectorAlgorithm: a.Nca,
+ ase_ls_failure_simulation: a.SHa,
+ ase_dump_fragments: a.nea,
+ ase_location_history: a.pea,
+ ase_throughput: a.qea,
+ ase_simulate_verbose: a.UHa,
+ secondThroughputEstimator: a.Rna,
+ secondThroughputMeasureWindowInMs: a.kVa,
+ marginPredictor: a.ika,
+ networkMeasurementGranularity: a.cla,
+ HistoricalTDigestConfig: a.vua,
+ maxIQRSamples: a.XPa,
+ minIQRSamples: a.uQa,
+ periodicHistoryPersistMs: a.f2,
+ saveVideoBitrateMs: a.e3,
+ needMinimumNetworkConfidence: a.hQ,
+ biasTowardHistoricalThroughput: a.Gca,
+ maxFastPlayBufferInMs: a.nka,
+ maxFastPlayBitThreshold: a.mka,
+ headerCacheTruncateHeaderAfterParsing: a.VMa,
+ minAudioMediaRequestDuration: a.sI,
+ minVideoMediaRequestDuration: a.xI,
+ minAudioMediaRequestDurationCache: a.sI,
+ minVideoMediaRequestDurationCache: a.xI,
+ addHeaderDataToNetworkMonitor: a.fX,
+ useMediaCache: a.Tz,
+ mediaCachePartitionConfig: a.zka,
+ diskCacheSizeLimit: a.ry,
+ mediaCachePrefetchMs: a.UP,
+ hindsightDenominator: a.hia,
+ hindsightDebugDenominator: a.gia,
+ hindsightParam: a.I_,
+ minimumTimeBeforeBranchDecision: a.gz,
+ enableSessionHistoryReport: a.sO,
+ earlyStageEstimatePeriod: a.cfa,
+ lateStageEstimatePeriod: a.SOa,
+ maxNumSessionHistoryStored: a.U0,
+ minSessionHistoryDuration: a.o1,
+ appendMediaRequestOnComplete: a.YEa,
+ waitForDrmToAppendMedia: a.iK,
+ forceAppendHeadersAfterDrm: a.uZ,
+ startMonitorOnLoadStart: a.Uoa,
+ reportFailedRequestsToNetworkMonitor: a.gna,
+ reappendRequestsOnSkip: a.dJ,
+ maxActiveRequestsPerSession: a.Us,
+ limitAudioDiscountByMaxAudioBitrate: a.Gja,
+ appendFirstHeaderOnComplete: a.eca,
+ maxAudioFragmentOverlapMs: 0,
+ editVideoFragments: a.eH,
+ declareBufferingCompleteAtSegmentEnd: a.sea,
+ applyProfileTimestampOffset: a.yB,
+ applyProfileStreamingOffset: a.Qo,
+ requireDownloadDataAtBuffering: a.pna,
+ requireSetupConnectionDuringBuffering: a.U2,
+ recordFirstFragmentOnSubBranchCreate: a.Vma,
+ earlyAppendSingleChildBranch: a.OY,
+ selectStartingVMAFMethod: a.rJ,
+ activateSelectStartingVMAF: a.PM,
+ minStartingVideoVMAF: a.wI,
+ minAcceptableVMAF: a.ZP,
+ minAllowedVmaf: a.XC,
+ alwaysNotifyEOSForPlaygraph: a.aca,
+ enableNewAse: a.UY,
+ useNewApi: a.mE,
+ enableHudsonFieldTest: a.TY,
+ hudsonTitles: a.lP,
+ maxPartialBuffersAtHudson: a.qka,
+ numberOfChunksPerSegment: a.FI,
+ targetContentLatency: a.Z3,
+ targetLongContentLatency: a.lpa,
+ minimumTimeDelay: a.r1,
+ enableWsslEstimate: a.VY,
+ maxAllowedOutstandingRequests: a.S0,
+ minStreamableConcurrencyWindow: a.p1,
+ streamableConcurrencyFactor: a.V3,
+ bufferingConcurrencyWindow: a.rN,
+ singleStreamablePerBranch: a.Ioa
+ };
+ };
+ }, function (d, b, a) {
+ var c,
+ k;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.gza = b.FA = void 0;
+ c = a(0);
+ k = a(773);
+ (function (a) {
+ a[a.N3 = 0] = "startPlayback";
+ a[a.lfa = 1] = "endPlayback";
+ })(b.FA || (b.FA = {}));
+ d = (function () {
+ function a(a) {
+ this.config = a;
+ this.xUa = [];
+ }
+ a.prototype.Rba = function (a) {
+ var b,
+ p;
+ p = c.__read(this.config.Hea.filter(function (b) {
+ return b.HN === a.HN;
+ }), 1)[0];
+ (null !== (b = null === p || void 0 === p ? void 0 : p.enabled) && void 0 !== b ? b : a.enabled) && this.xUa.push(a);
+ };
+ a.prototype.GO = function (a) {
+ var b,
+ p,
+ m,
+ f,
+ r,
+ d;
+ m = {};
+ f = [];
+ try {
+ for (var u = c.__values(this.xUa), l = u.next(); !l.done; l = u.next()) {
+ r = l.value;
+ try {
+ d = r.GO({
+ op: a
+ });
+ d && (r.RQa ? m[r.RQa] = d : m = c.__assign(c.__assign({}, m), d));
+ } catch (C) {
+ f.push(C);
+ }
+ }
+ } catch (C) {
+ b = {
+ error: C
+ };
+ }
+ finally {
+ try {
+ l && !l.done && (p = u["return"]) && p.call(u);
+ }
+ finally {
+ if (b)
+ throw b.error;
+ }
+ }
+ f.length && (m["rpt-error"] = new k.Jqa("Reporting error", f));
+ return m;
+ };
+ return a;
+ })();
+ b.gza = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.tK = void 0;
+ c = a(796);
+ k = a(795);
+ l = a(215);
+ Object.defineProperty(b, "BasePredictor", {
+ enumerable: !0,
+ get: function () {
+ return l.tK;
+ }
+ });
+ b["default"] = function (a, b) {
+ switch (a.ika) {
+ case "manifold":
+ return new c.lwa(a, b);
+ default:
+ return new k.Qza(a, b);
+ }
+ };
+ }, function (d, b, a) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ d = a(0);
+ d.__exportStar(a(809), b);
+ d.__exportStar(a(808), b);
+ d.__exportStar(a(807), b);
+ d.__exportStar(a(806), b);
+ d.__exportStar(a(805), b);
+ d.__exportStar(a(804), b);
+ d.__exportStar(a(803), b);
+ d.__exportStar(a(802), b);
+ d.__exportStar(a(384), b);
+ d.__exportStar(a(801), b);
+ d.__exportStar(a(800), b);
+ d.__exportStar(a(799), b);
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.xo = void 0;
+ c = a(0);
+ k = a(19);
+ l = a(812);
+ r = a(4);
+ d = (function () {
+ function b(a) {
+ this.JL = a;
+ this.Ph = [];
+ this.console = new r.Console("ASEJS_DOWNLOAD_TRACK_POOL", "media|asejs");
+ }
+ Object.defineProperties(b, {
+ Lf: {
+ get: function () {
+ var c;
+ if (void 0 === b.ZA) {
+ c = a(4);
+ b.ZA = new b(c.wE);
+ }
+ return b.ZA;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ b.reset = function () {
+ b.ZA = void 0;
+ };
+ b.prototype.VB = function (a, b, f, c, h, k) {
+ var m,
+ p,
+ u,
+ r;
+ m = !1;
+ u = k.zJb ? this.iob(f, b, a) : -1;
+ if (-1 === u) {
+ p = {
+ track: this.rjb(f, c, a, h, k),
+ br: f,
+ G: b,
+ ITa: a,
+ cJ: [],
+ sm: !1,
+ BY: !1
+ };
+ this.Ph.push(p);
+ r = function () {
+ p.sm = !0;
+ p.track.removeListener("created", r);
+ };
+ p.track.on("created", r);
+ m = !1;
+ } else (m = !0, p = this.Ph[u]);
+ a = new l.lza(this.console, p.track, p.sm, m);
+ p.cJ.push(a);
+ return a;
+ };
+ b.prototype.hO = function (a) {
+ var b,
+ f;
+ a.vq();
+ b = this.nZ(function (b) {
+ return b.track === a.track;
+ });
+ if (-1 !== b) {
+ if ((b = this.Ph[b], 1 === b.cJ.length))
+ (b.track.vq(), b.BY = !0);
+ else {
+ f = b.cJ.indexOf(a);
+ 0 <= f && b.cJ.splice(f, 1);
+ }
+ } else
+ a.track.vq();
+ };
+ b.prototype.Ge = function () {
+ this.JL.Ge();
+ };
+ b.prototype.rjb = function (a, b, f, h, l) {
+ var m,
+ p,
+ u;
+ m = this;
+ p = !1;
+ a ? 1 === f ? (a = !1, b = 1, l.xp ? (a = !0, b = l.kI) : l.Us && 2 < l.Us && (a = !0, b = l.Us), a = {
+ type: this.JL.VIDEO,
+ openRange: !a,
+ pipeline: a,
+ connections: b,
+ socketBufferSize: l.fK,
+ minRequestSize: l.vI
+ }) : 0 === f ? (p = l.xp && (l.SNb || b && l.TNb), a = {
+ type: this.JL.AUDIO,
+ openRange: !p,
+ pipeline: p,
+ connections: 1,
+ socketBufferSize: l.xX,
+ minRequestSize: l.vI
+ }) : a = {
+ type: this.JL.I2a,
+ openRange: !1,
+ pipeline: !0,
+ connections: 1,
+ socketBufferSize: l.Zha,
+ minRequestSize: l.vI
+ }
+ : a = {
+ type: 0 === f ? k.Na.AUDIO : k.Na.VIDEO,
+ openRange: !1,
+ pipeline: !1,
+ connections: 1,
+ socketBufferSize: 0 === f ? l.xX : l.fK,
+ minRequestSize: l.vI
+ };
+ u = new this.JL(a, h);
+ u.on("transportreport", function (a) {
+ var b;
+ b = m.nZ(function (a) {
+ return a.track === u;
+ });
+ -1 !== b && (b = m.Ph[b], b.cJ.length && b.cJ[0].emit("transportreport", a));
+ });
+ u.on("destroyed", function () {
+ var a;
+ a = m.nZ(function (a) {
+ return a.track === u;
+ });
+ -1 !== a && m.Ph.splice(a, 1);
+ u.removeAllListeners();
+ });
+ if (p && l.RNb || l.VYa)
+ u.on("pipelinedisabled", function () {
+ l.VYa && 1 === u.config.type ? u.J2(c.__assign(c.__assign({}, u.config), {
+ socketBufferSize: l.Czb,
+ pipeline: !1,
+ openRange: !0,
+ connections: 1
+ })) : u.J2(c.__assign(c.__assign({}, u.config), {
+ pipeline: !1,
+ openRange: !0
+ }));
+ });
+ return u;
+ };
+ b.prototype.iob = function (a, b, f) {
+ return this.nZ(function (c) {
+ return !c.BY && (a ? c.br && c.G === b && c.ITa === f : !c.br && c.ITa === f);
+ });
+ };
+ b.prototype.nZ = function (a) {
+ for (var b = 0; b < this.Ph.length; ++b) {
+ if (a(this.Ph[b]))
+ return b;
+ }
+ return -1;
+ };
+ return b;
+ })();
+ b.xo = d;
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.cha = b.$ba = void 0;
+ b.$ba = function (a, b) {
+ var c,
+ l,
+ r;
+ c = b.profile;
+ b = b.G;
+ l = a.CHb;
+ r = a.DHb;
+ return a.BHb || Array.isArray(l) && -1 !== l.indexOf(c) || "object" === typeof r && Array.isArray(r[c]) && -1 !== r[c].indexOf("" + b);
+ };
+ b.cha = function (a, b) {
+ return void 0 !== a.tI ? a.tI : b && void 0 !== b.tI ? b.tI : 100;
+ };
+ }, function (d, b, a) {
+ var l,
+ r,
+ h,
+ p,
+ m,
+ f,
+ u,
+ w;
+ function c(a) {
+ return a && "function" === typeof a.Fg ? !0 : !1;
+ }
+ function k(a) {
+ return c(a) && (a = typeof a.qvb, "boolean" === a || "undefined" === a) ? !0 : !1;
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Aq = b.map = b.J0a = b.Anb = b.pvb = b.t_a = b.eA = void 0;
+ l = a(0);
+ r = a(44);
+ h = a(4).Promise;
+ m = (function () {
+ function a(a) {
+ var b;
+ b = this;
+ this.v9a = a;
+ this.fM = !1;
+ this.nab = function (a) {
+ return b.rEb(a);
+ };
+ this.tHa();
+ }
+ a.fwb = function (a, b) {
+ function f() {
+ var c;
+ c = a.next();
+ c.then(function (f) {
+ k(a) && a.qvb || b(f);
+ });
+ c.then(function (a) {
+ return !a.done && f();
+ });
+ }
+ f();
+ };
+ Object.defineProperties(a.prototype, {
+ Mv: {
+ get: function () {
+ return this.fM;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ a.yqb = function () {
+ return new f([]);
+ };
+ a.Eha = function () {
+ p || (p = h.resolve({
+ done: !0
+ }));
+ return p;
+ };
+ a.NYb = function () {
+ return {
+ done: !0
+ };
+ };
+ Object.defineProperties(a.prototype, {
+ VH: {
+ get: function () {
+ return this.aq || !1;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ a.prototype.Fg = function () {
+ this.cancel();
+ };
+ a.prototype.cancel = function () {
+ this.gDa();
+ this.aq = !0;
+ return this.P$;
+ };
+ a.prototype.next = function () {
+ return this.aq ? this.P$ : h.race([this.P$, this.v9a()]).then(this.nab);
+ };
+ a.prototype.rEb = function (a) {
+ a.done && (this.fM = !0, this.Fg());
+ this.VH || (this.gDa(), this.tHa());
+ return a;
+ };
+ a.prototype.tHa = function () {
+ var a;
+ a = this;
+ this.P$ = new h(function (b) {
+ a.gDa = function () {
+ b({
+ done: !0
+ });
+ };
+ });
+ };
+ return a;
+ })();
+ b.eA = m;
+ f = (function (a) {
+ function b(b) {
+ var f;
+ f = a.call(this, function () {
+ return f.srb();
+ }) || this;
+ f.Hn = b;
+ f.index = 0;
+ return f;
+ }
+ l.__extends(b, a);
+ b.prototype.Fg = function () {
+ c(this.Hn) && this.Hn.Fg();
+ a.prototype.Fg.call(this);
+ };
+ b.prototype.srb = function () {
+ return this.Hn.length > this.index ? h.resolve({
+ value: this.Hn[this.index++],
+ done: !1
+ }) : h.resolve({
+ done: !0
+ });
+ };
+ return b;
+ })(m);
+ b.t_a = f;
+ b.pvb = c;
+ b.Anb = k;
+ u = (function (a) {
+ function b(b, c, h) {
+ var m;
+ m = a.call(this, function () {
+ return m.ela();
+ }) || this;
+ m.console = c;
+ m.Hj = h;
+ m.Dma = !1;
+ Array.isArray(b) ? m.pM = new f(b) : m.pM = b;
+ return m;
+ }
+ l.__extends(b, a);
+ b.prototype.tEb = function (a) {
+ var b;
+ this.Dma = !1;
+ b = this.console;
+ r.Oa && b && b.trace("CompoundIterator: processNextOuterIterator");
+ if (a.done)
+ return a;
+ a = a.value;
+ if (this.HF)
+ return (c(a) && a.Fg(), m.Eha());
+ Array.isArray(a) ? this.Hj = new f(a) : this.Hj = a;
+ return this.ela();
+ };
+ b.prototype.sEb = function (a) {
+ var b;
+ b = this.console;
+ r.Oa && b && b.trace("CompoundIterator: processNextInnerResult", this.HF, a.done);
+ if (!a.done || this.HF)
+ return a;
+ this.Hj = void 0;
+ return this.ela();
+ };
+ b.prototype.Fg = function () {
+ var b;
+ b = this.console;
+ r.Oa && b && b.trace("CompoundIterator: dispose");
+ this.HF = !0;
+ a.prototype.Fg.call(this);
+ c(this.pM) && this.pM.Fg();
+ c(this.Hj) && this.Hj.Fg();
+ };
+ b.prototype.toString = function () {
+ return "CompoundIterator " + this.HF + " " + this.pM + " " + this.Hj;
+ };
+ b.prototype.ela = function () {
+ var a,
+ b;
+ a = this;
+ b = this.console;
+ r.Oa && b && b.trace("CompoundIterator: nextImpl");
+ if (this.Hj)
+ return (r.Oa && b && b.trace("CompoundIterator: getNextInner"), this.Hj.next().then(function (b) {
+ return a.sEb(b);
+ }));
+ this.Dma = !0;
+ r.Oa && b && b.trace("CompoundIterator: getNextOuter");
+ return this.pM.next().then(function (b) {
+ return a.tEb(b);
+ });
+ };
+ return b;
+ })(m);
+ b.J0a = u;
+ b.map = function (a, b, f) {
+ return new w(a, b, f);
+ };
+ w = (function (a) {
+ function b(b, f, c) {
+ var h;
+ h = a.call(this, function () {
+ return h.g9a();
+ }) || this;
+ h.source = b;
+ h.hka = f;
+ h.Ygb = c;
+ return h;
+ }
+ l.__extends(b, a);
+ b.prototype.Fg = function () {
+ c(this.source) && this.source.Fg();
+ a.prototype.Fg.call(this);
+ };
+ b.prototype.g9a = function () {
+ var a,
+ b,
+ f;
+ a = this.Ygb;
+ b = this.hka;
+ f = this.source;
+ r.Oa && a && a.trace("MappedIterator: Requesting next");
+ return f.next().then(function (a) {
+ return a.done ? a : b(a.value);
+ });
+ };
+ return b;
+ })(m);
+ b.Aq = function (a, b, f) {
+ return new u(a, b, f);
+ };
+ }, function (d, b, a) {
+ var c,
+ k;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.U9 = b.Zp = void 0;
+ c = a(128);
+ (function (a) {
+ a[a.jt = 0] = "pending";
+ a[a.Dna = 1] = "running";
+ a[a.complete = 2] = "complete";
+ a[a.BY = 3] = "destroyed";
+ })(k = b.Zp || (b.Zp = {}));
+ d = (function () {
+ function a() {
+ this.gd = k.jt;
+ }
+ Object.defineProperties(a.prototype, {
+ state: {
+ get: function () {
+ return this.gd;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ Mp: {
+ get: function () {
+ return this.GM;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ a.prototype.Fdb = function (a) {
+ var b;
+ null === (b = this.GM) || void 0 === b ? void 0 : b.dna(this);
+ this.GM = a;
+ };
+ a.prototype.Bz = function () {
+ this.gd = k.Dna;
+ this.Ge();
+ this.C1() === c.Rr.nqa && (this.gd = k.complete);
+ };
+ a.prototype.ic = function () {
+ var a;
+ this.gd = k.BY;
+ null === (a = this.GM) || void 0 === a ? void 0 : a.dna(this);
+ };
+ return a;
+ })();
+ b.U9 = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.bA = void 0;
+ c = a(0);
+ k = a(5);
+ l = a(19);
+ r = a(4);
+ d = (function (a) {
+ function b(b, f, c, h, p) {
+ c = a.call(this, c) || this;
+ c.Wba = !1;
+ c.CUa = b;
+ c.Uc = h;
+ c.ICa = b.location || f.location;
+ c.DM = b.Ac || f.Ob;
+ c.koa = b.koa || f.koa;
+ c.Y0b = r.time.ea();
+ k.assert(p);
+ c.u = p;
+ return c;
+ }
+ c.__extends(b, a);
+ Object.defineProperties(b.prototype, {
+ console: {
+ get: function () {
+ return this.u;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ location: {
+ get: function () {
+ return this.ICa;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ Ob: {
+ get: function () {
+ return this.DM;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ b.prototype.Eb = function (a) {
+ this.Ja = a;
+ };
+ b.prototype.B3 = function (a, b) {
+ this.ICa = a;
+ this.DM = b;
+ };
+ b.prototype.wW = function (a) {
+ var b,
+ c,
+ h;
+ b = {
+ type: "logdata",
+ target: "endplay",
+ fields: {}
+ };
+ c = this.L === l.Na.AUDIO ? "audioedit" : "videoedit";
+ h = [this.zy === this.T ? this.Qb : this.cc, this.zy === this.T ? -this.duration : this.duration];
+ a && a.Et && h.push(a.Et);
+ b.fields[c] = {
+ type: "array",
+ value: h
+ };
+ return b;
+ };
+ b.prototype.oW = function (a, b) {
+ this.Uc.dJ && (this.nKa = !0, this.QIa = a, this.Iyb = b);
+ };
+ b.prototype.u4 = function () {
+ var a,
+ b;
+ if (this.complete)
+ return 0;
+ a = this.CUa;
+ b = a.O;
+ return a.url ? this.url === a.url || (b.B3(this, a.location, a.Ac), this.YR(a.url)) ? 0 : (this.u.warn("swapUrl failed: ", this.qH), 2) : (this.u.warn("updateurl, missing url for streamId:", a.wa, "mediaRequest:", this, "stream:", a), 1);
+ };
+ return b;
+ })(a(83).yr);
+ b.bA = d;
+ }, function (d, b, a) {
+ function c(a, b) {
+ this.kG = a;
+ this.Ci = Math.floor((a + b - 1) / b);
+ this.Tc = b;
+ this.reset();
+ }
+ a(5);
+ c.prototype.shift = function () {
+ this.cd.shift();
+ this.fs.shift();
+ };
+ c.prototype.mz = function (a) {
+ return this.iGa(this.cd[a], a);
+ };
+ c.prototype.update = function (a, b) {
+ this.cd[a] = (this.cd[a] || 0) + b;
+ };
+ c.prototype.push = function () {
+ this.cd.push(0);
+ this.fs.push(0);
+ this.Ua += this.Tc;
+ };
+ c.prototype.add = function (a, b, c) {
+ var h,
+ p,
+ m;
+ if (null === this.Ua)
+ for ((h = Math.max(Math.floor((c - b + this.Tc - 1) / this.Tc), 1), this.Ua = b); this.cd.length < h; ) {
+ this.push();
+ }
+ for (; this.Ua <= c; ) {
+ this.push();
+ this.cd.length > this.Ci && this.shift();
+ }
+ if (null === this.em || b < this.em)
+ this.em = b;
+ if (b > this.Ua - this.Tc)
+ this.update(this.cd.length - 1, a);
+ else if (b == c)
+ (h = this.cd.length - Math.max(Math.ceil((this.Ua - c) / this.Tc), 1), 0 <= h && this.update(h, a));
+ else
+ for (h = 1; h <= this.cd.length; ++h) {
+ p = this.Ua - h * this.Tc;
+ m = p + this.Tc;
+ if (!(p > c)) {
+ if (m < b)
+ break;
+ this.update(this.cd.length - h, Math.round(a * (Math.min(m, c) - Math.max(p, b)) / (c - b)));
+ }
+ }
+ for (; this.cd.length > this.Ci; ) {
+ this.shift();
+ }
+ };
+ c.prototype.start = function (a) {
+ null === this.em && (this.em = a);
+ null === this.Ua && (this.Ua = a);
+ };
+ c.prototype.stop = function (a) {
+ var b,
+ c;
+ if (null !== this.Ua)
+ if (a - this.Ua > 10 * this.kG)
+ this.reset();
+ else {
+ for (; this.Ua <= a; ) {
+ this.push();
+ this.cd.length > this.Ci && this.shift();
+ }
+ b = this.cd.length - Math.ceil((this.Ua - this.em) / this.Tc);
+ c = this.cd.length - Math.ceil((this.Ua - a) / this.Tc);
+ if (0 <= c)
+ if ((0 > b && (this.em = this.Ua - this.Tc * this.cd.length, b = 0), b === c))
+ this.fs[b] += a - this.em;
+ else if (c > b)
+ for ((this.fs[b] += (this.Ua - this.em) % this.Tc, this.fs[c] += this.Tc - (this.Ua - a) % this.Tc, a = b + 1); a < c; ++a) {
+ this.fs[a] = this.Tc;
+ }
+ this.em = null;
+ }
+ };
+ c.prototype.iGa = function (a, b) {
+ b = this.sga(b);
+ return 0 === b ? null : 8 * a / b;
+ };
+ c.prototype.sga = function (a) {
+ var b;
+ b = this.fs[a];
+ null !== this.em && (a = this.Ua - (this.cd.length - a - 1) * this.Tc, a > this.em && (b = a - this.em <= this.Tc ? b + (a - this.em) : this.Tc));
+ return b;
+ };
+ c.prototype.get = function (a, b) {
+ var c,
+ h;
+ c = this.cd.map(this.iGa, this);
+ if ("last" === a)
+ for (a = 0; a < c.length; ++a) {
+ null === c[a] && (c[a] = 0 < a ? c[a - 1] : 0);
+ }
+ else if ("average" === a) {
+ b = 1 - Math.pow(.5, 1 / ((b || 2E3) / this.Tc));
+ for (a = 0; a < c.length; ++a) {
+ null === c[a] ? c[a] = Math.floor(h || 0) : h = void 0 !== h ? b * c[a] + (1 - b) * h : c[a];
+ }
+ }
+ return c;
+ };
+ c.prototype.reset = function () {
+ this.saa || (this.cd = [], this.fs = [], this.em = this.Ua = null);
+ };
+ c.prototype.setInterval = function (a) {
+ this.Ci = Math.floor((a + this.Tc - 1) / this.Tc);
+ };
+ d.P = c;
+ }, function (d, b, a) {
+ var c,
+ k;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Vt = void 0;
+ c = a(228);
+ k = a(5);
+ d = (function () {
+ function a(a) {
+ this.config = a;
+ this.reset();
+ }
+ a.Lf = function () {
+ k.assert(void 0 !== a.ZA);
+ return a.ZA;
+ };
+ a.ehb = function (b) {
+ a.ZA = new a(b);
+ };
+ a.lXb = function () {
+ a.ZA = void 0;
+ };
+ a.prototype.push = function (a) {
+ this.Ri && this.Ri.push(a);
+ };
+ a.prototype.qb = function () {
+ if (this.Ri)
+ return (this.Ri.hv(), this.Ri.ci([.25, .5, .75, .9, .95, .99]).map(function (a) {
+ return a ? parseFloat(a.toFixed(1)) : 0;
+ }));
+ };
+ a.prototype.reset = function () {
+ this.config.eJa && this.config.c7 && (this.Ri = new c.AVb(this.config.c7.c, this.config.c7.maxc));
+ };
+ return a;
+ })();
+ b.Vt = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r,
+ h,
+ p,
+ m,
+ f,
+ u,
+ w;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.aA = void 0;
+ c = a(0);
+ d = a(18);
+ k = a(8);
+ l = d.Wi;
+ r = a(4);
+ h = r.wk;
+ p = a(166);
+ m = a(95);
+ f = a(11);
+ d = a(33);
+ u = a(164);
+ w = a(168);
+ a = (function (a) {
+ function b(b, f, c, m, p, k, r) {
+ f = a.call(this, f, c) || this;
+ u.bA.call(f, b, m, p, k, r);
+ w.Rw.call(f, b, m);
+ f.IL = b.url || m.url;
+ f.HL = m.responseType;
+ f.gBa = m.F3;
+ void 0 === f.HL && (f.HL = h.gc && !h.gc.lJ.MA ? 0 : 1);
+ f.Vf = new l();
+ f.Vf.on(f, h.Yd.Ywa, f.oM);
+ f.Vf.on(f, h.Yd.Xwa, f.Saa);
+ f.Vf.on(f, h.Yd.Zwa, f.Taa);
+ f.Vf.on(f, h.Yd.hL, f.nM);
+ f.Vf.on(f, h.Yd.CA, f.UF);
+ f.gF = !1;
+ f.bd = !1;
+ f.Dg = !1;
+ f.$r = !1;
+ f.ZL = !1;
+ f.Pl = 0;
+ return f;
+ }
+ c.__extends(b, a);
+ Object.defineProperties(b.prototype, {
+ active: {
+ get: function () {
+ return this.bd;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ dUa: {
+ get: function () {
+ return this.Dg;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ complete: {
+ get: function () {
+ return !this.gF && 5 === this.readyState;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ hs: {
+ get: function () {
+ return this.gF;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ Via: {
+ get: function () {
+ return this.$r && !this.ZL;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ b.prototype.Eb = function (a) {
+ u.bA.prototype.Eb.call(this, a);
+ this.bc || !this.Uc.fX && this.kc || (this.bc = m.Lf(), this.active && (this.bc.DD(r.time.ea(), {
+ requestId: this.xn(),
+ re: this.Ob,
+ type: this.L
+ }), this.Dg && (this.bc.nna(r.time.ea()), this.connect && 0 < this.Cp.length && this.bc.Ou(this.Cp[0]))));
+ };
+ b.prototype.EC = function () {
+ return 1 === this.responseType ? 3 <= this.readyState : 5 === this.readyState;
+ };
+ b.prototype.qG = function (a) {
+ this.Ei = a.appendBuffer(this.response, f.Gm(this));
+ return {
+ U: this.Ei
+ };
+ };
+ b.prototype.ft = function () {
+ (this.$r = h.prototype.open.call(this, this.IL, {
+ start: this.offset,
+ end: this.offset + this.da - 1
+ }, this.HL, {}, void 0, void 0, this.gBa)) && this.EO(this);
+ return this.$r;
+ };
+ b.prototype.abort = function () {
+ var a;
+ if (this.hs)
+ return !0;
+ a = this.bd;
+ this.bc && a && this.bc.FD(r.time.ea(), this.Dg, {
+ requestId: this.xn(),
+ re: this.Ob,
+ type: this.L
+ });
+ this.gF = !0;
+ this.Dg = this.bd = !1;
+ h.prototype.abort.call(this);
+ this.yZ(this, a, this.Via);
+ return !0;
+ };
+ b.prototype.yc = function () {
+ 7 !== this.readyState && 5 !== this.readyState && (this.u.warn("AseMediaRequest: in-progress request should be aborted before cleanup", this), this.abort());
+ this.Vf && this.Vf.clear();
+ a.prototype.yc.call(this);
+ };
+ b.prototype.oM = function () {
+ var a;
+ a = this.ed || this.rf;
+ p.Vt.Lf().push(r.time.ea() - a);
+ this.bd || (this.bd = !0, this.eo = this.track.eo(), this.stream.K.OPa || this.bc && this.bc.DD(a, {
+ requestId: this.xn(),
+ re: this.Ob,
+ type: this.L
+ }), this.nC(this), this.Ql = this.ed);
+ };
+ b.prototype.Saa = function () {
+ var a,
+ b,
+ f;
+ a = this.ed || this.Tfa;
+ b = this.connect;
+ f = this.Cp;
+ p.Vt.Lf().push(r.time.ea() - a);
+ this.bd || (this.bd = !0);
+ this.Dg || (this.Dg = !0, this.stream.K.OPa && this.bc && this.bc.DD(a, {
+ requestId: this.xn(),
+ re: this.Ob,
+ type: this.L
+ }), this.bc && this.bc.nna(), b && 0 < f.length && this.bc && this.bc.Ou(f[0]), this.yy(this), this.Ql = a);
+ };
+ b.prototype.Taa = function () {
+ var a,
+ b,
+ f;
+ a = this;
+ b = this.ed;
+ f = this.Qe - this.Pl;
+ p.Vt.Lf().push(r.time.ea() - b);
+ this.Dg || (this.Dg = !0);
+ this.bc && (void 0 === this.Ql || this.bc.Yx(f, this.Ql, b, {
+ requestId: this.xn(),
+ re: this.Ob,
+ type: this.L
+ }), this.Cp && this.Cp.length && this.Cp.forEach(function (b) {
+ a.bc.Nu(b);
+ }));
+ this.oC(this);
+ this.Ql = b;
+ this.Pl = this.Qe;
+ };
+ b.prototype.nM = function () {
+ var a,
+ b,
+ f;
+ a = this;
+ b = this.ed;
+ f = this.Qe - this.Pl;
+ p.Vt.Lf().push(r.time.ea() - b);
+ this.bc && (0 < f && this.bc.Yx(f, this.Ql, b, {
+ requestId: this.xn(),
+ re: this.Ob,
+ type: this.L
+ }), this.Cp && this.Cp.length && this.Cp.forEach(function (b) {
+ a.bc.Nu(b);
+ }), this.bc.FD(b, this.Dg, {
+ requestId: this.xn(),
+ re: this.Ob,
+ type: this.L
+ }));
+ this.Dg = this.bd = !1;
+ this.ZL = !0;
+ this.Bq(this);
+ this.Ql = b;
+ this.Pl = this.Qe;
+ this.yc();
+ };
+ b.prototype.xn = function () {
+ var a,
+ b;
+ a = (a = this.stream) ? a.toString() : this.url;
+ b = this.DX;
+ b && (a += ",range " + b.start + "-" + b.end);
+ return a;
+ };
+ b.prototype.UF = function () {
+ var a,
+ b,
+ f,
+ c;
+ this.u.warn("AseMediaRequest._onError:", this.toString());
+ a = this.ed;
+ b = this.status;
+ f = this.Dh;
+ c = this.qj;
+ p.Vt.Lf().push(r.time.ea() - a);
+ this.complete ? this.u.warn("Error on a done request " + this.toString() + ", failurecode: " + f) : this.hs ? this.u.warn("Error on an aborted request " + this.toString() + ", failurecode: " + f) : k.na(f) ? (this.bc && this.Uc && this.Uc.gna && this.rf && void 0 === b && this.bc.Yx(this.Pl ? this.Qe - this.Pl : this.Qe, this.Ql ? this.Ql : this.rf, a, {
+ requestId: this.xn(),
+ re: this.Ob,
+ type: this.L
+ }), this.zZ(this)) : this.u.warn("ignoring undefined request error (nativecode: " + c + ")");
+ };
+ return b;
+ })(h);
+ b.aA = a;
+ d.Ve(u.bA, a, !1);
+ d.Ve(w.Rw, a, !1);
+ }, function (d, b, a) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Rw = void 0;
+ a(5);
+ d = (function () {
+ function a(a, b) {
+ this.Pd = a;
+ this.ec = b.da;
+ this.ae = b.offset;
+ }
+ Object.defineProperties(a.prototype, {
+ stream: {
+ get: function () {
+ return this.Pd;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ da: {
+ get: function () {
+ return this.ec;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ offset: {
+ get: function () {
+ return this.ae;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ O: {
+ get: function () {
+ return this.Pd.O;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ G: {
+ get: function () {
+ return this.Pd.G;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ L: {
+ get: function () {
+ return this.Pd.L;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ wa: {
+ get: function () {
+ return this.Pd.wa;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ R: {
+ get: function () {
+ return this.Pd.R;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ profile: {
+ get: function () {
+ return this.Pd.profile;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ S: {
+ get: function () {
+ return this.Pd.S;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ zI: {
+ get: function () {
+ return this.Pd.zI;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ Wa: {
+ get: function () {
+ return this.Pd.Wa;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ a.prototype.toJSON = function () {
+ return {
+ movieId: this.G,
+ streamId: this.wa,
+ offset: this.offset,
+ bytes: this.da
+ };
+ };
+ return a;
+ })();
+ b.Rw = d;
+ }, function (d, b, a) {
+ var c,
+ k;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ c = a(0);
+ k = a(28);
+ d = (function (a) {
+ function b() {
+ return null !== a && a.apply(this, arguments) || this;
+ }
+ c.__extends(b, a);
+ b.prototype.parse = function (b) {
+ b = a.prototype.parse.call(this, b);
+ this.M.offset += 8;
+ this.Tfb = this.M.kh();
+ this.qHb = this.M.kh();
+ this.M.offset += 4;
+ this.cVa = this.M.kh();
+ this.M.offset += 2;
+ k.Oa && this.M.console.trace("MP4AudioSampleEntry: channelcount: " + this.Tfb + ", samplesize: " + this.qHb + ", samplerate: " + this.cVa);
+ return b;
+ };
+ b.uc = !1;
+ return b;
+ })(a(235)["default"]);
+ b["default"] = d;
+ }, function (d, b, a) {
+ var c,
+ k;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Xl = void 0;
+ c = a(4);
+ k = a(11);
+ d = (function () {
+ function a(a) {
+ this.u = new c.Console("ASEJS", "media|asejs", "(" + a + ")");
+ this.Kaa = [];
+ }
+ a.prototype.$n = function (a) {
+ this.Kaa[a] || (this.Kaa[a] = k.Zy(c, this.u, "[" + a + "]"));
+ return this.Kaa[a];
+ };
+ return a;
+ })();
+ b.Xl = new d(0);
+ }, function (d, b, a) {
+ var c,
+ k;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.$ya = b.VU = b.WZ = void 0;
+ c = a(57);
+ k = a(2);
+ b.WZ = function (a) {
+ return a === c.Hc.Yi.AUDIO ? k.I.Zva : k.I.$va;
+ };
+ b.VU = 50;
+ b.$ya = 1E3;
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.OE = void 0;
+ b.OE = "ManifestFactorySymbol";
+ }, function (d) {
+ d.P = function (b) {
+ return null != b && "object" === typeof b && !0 === b["@@functional/placeholder"];
+ };
+ }, function (d, b, a) {
+ var c,
+ k,
+ l;
+ c = a(112);
+ k = a(51);
+ l = a(173);
+ d.P = function (a) {
+ return function p(b, f, u) {
+ switch (arguments.length) {
+ case 0:
+ return p;
+ case 1:
+ return l(b) ? p : k(function (f, c) {
+ return a(b, f, c);
+ });
+ case 2:
+ return l(b) && l(f) ? p : l(b) ? k(function (b, c) {
+ return a(b, f, c);
+ }) : l(f) ? k(function (f, c) {
+ return a(b, f, c);
+ }) : c(function (c) {
+ return a(b, f, c);
+ });
+ default:
+ return l(b) && l(f) && l(u) ? p : l(b) && l(f) ? k(function (b, f) {
+ return a(b, f, u);
+ }) : l(b) && l(u) ? k(function (b, c) {
+ return a(b, f, c);
+ }) : l(f) && l(u) ? k(function (f, c) {
+ return a(b, f, c);
+ }) : l(b) ? c(function (b) {
+ return a(b, f, u);
+ }) : l(f) ? c(function (f) {
+ return a(b, f, u);
+ }) : l(u) ? c(function (c) {
+ return a(b, f, c);
+ }) : a(b, f, u);
+ }
+ };
+ };
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.$T = b.W6 = b.Q6 = void 0;
+ b.Q6 = "IDBDatabaseFactorySymbol";
+ b.W6 = "IndexedDBFactorySymbol";
+ b.$T = "IndexedDBStorageFactorySymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.R6 = b.b8 = b.Qwa = void 0;
+ b.Qwa = "NativeLocalStorageSymbol";
+ b.b8 = "NativeLocalStorageFactorySymbol";
+ b.R6 = "IDBFactorySymbol";
+ }, function (d, b, a) {
+ var c;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.EK = b.M1a = void 0;
+ c = a(30);
+ b.M1a = function () {
+ this.bN = [];
+ this.DS = [];
+ this.qca = c.Ar.Uw;
+ this.D4 = c.Dj.Uw;
+ };
+ b.EK = "DeviceCapabilitiesConfigSymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.AL = void 0;
+ b.AL = "TimeoutMonitorFactorySymbol";
+ }, function (d, b, a) {
+ var c;
+ c = this && this.__extends || (function (a, b) {
+ function c() {
+ this.constructor = a;
+ }
+ for (var h in b) {
+ b.hasOwnProperty(h) && (a[h] = b[h]);
+ }
+ a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c());
+ });
+ d = (function (a) {
+ function b(b) {
+ a.call(this);
+ this.ya = b;
+ }
+ c(b, a);
+ b.create = function (a) {
+ return new b(a);
+ };
+ b.zc = function (a) {
+ a.xj.complete();
+ };
+ b.prototype.im = function (a) {
+ var c;
+ c = this.ya;
+ if (c)
+ return c.Pc(b.zc, 0, {
+ xj: a
+ });
+ a.complete();
+ };
+ return b;
+ })(a(20).sb);
+ b.yT = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r,
+ h,
+ p,
+ m,
+ f;
+ c = a(86);
+ k = a(499);
+ l = a(498);
+ r = a(507);
+ h = a(20);
+ p = a(264);
+ m = a(1132);
+ f = a(265);
+ b.Y3 = function (a, b, d, g) {
+ var u;
+ u = new m.gva(a, d, g);
+ if (u.closed)
+ return null;
+ if (b instanceof h.sb) {
+ if (b.yu)
+ (u.next(b.value), u.complete());
+ else
+ return (u.Ym = !0, b.subscribe(u));
+ } else if (k.ONa(b)) {
+ a = 0;
+ for (d = b.length; a < d && !u.closed; a++) {
+ u.next(b[a]);
+ }
+ u.closed || u.complete();
+ } else {
+ if (l.mOa(b))
+ return (b.then(function (a) {
+ u.closed || (u.next(a), u.complete());
+ }, function (a) {
+ return u.error(a);
+ }).then(null, function (a) {
+ c.root.setTimeout(function () {
+ throw a;
+ });
+ }), u);
+ if (b && "function" === typeof b[p.iterator]) {
+ b = b[p.iterator]();
+ do {
+ a = b.next();
+ if (a.done) {
+ u.complete();
+ break;
+ }
+ u.next(a.value);
+ if (u.closed)
+ break;
+ } while (1);
+ } else if (b && "function" === typeof b[f.observable]) {
+ if ((b = b[f.observable](), "function" !== typeof b.subscribe))
+ u.error(new TypeError("Provided object does not correctly implement Symbol.observable"));
+ else
+ return b.subscribe(new m.gva(a, d, g));
+ } else (b = "You provided " + (r.df(b) ? "an invalid object" : "'" + b + "'") + " where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.", u.error(new TypeError(b)));
+ }
+ return null;
+ };
+ }, function (d, b, a) {
+ var c;
+ c = this && this.__extends || (function (a, b) {
+ function c() {
+ this.constructor = a;
+ }
+ for (var h in b) {
+ b.hasOwnProperty(h) && (a[h] = b[h]);
+ }
+ a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c());
+ });
+ d = (function (a) {
+ function b() {
+ a.apply(this, arguments);
+ }
+ c(b, a);
+ b.prototype.K1 = function (a, b) {
+ this.destination.next(b);
+ };
+ b.prototype.uAb = function (a) {
+ this.destination.error(a);
+ };
+ b.prototype.dt = function () {
+ this.destination.complete();
+ };
+ return b;
+ })(a(69).qn);
+ b.xU = d;
+ }, function (d, b) {
+ b.isArray = Array.isArray || (function (a) {
+ return a && "number" === typeof a.length;
+ });
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.q6 = b.p6 = b.v9 = b.w9 = void 0;
+ b.w9 = "ReportSyncSymbol";
+ b.v9 = "ReportApiErrorSyncSymbol";
+ b.p6 = "FtlProbeConfigSymbol";
+ b.q6 = "FtlProbeSymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.vK = void 0;
+ b.vK = "CannedChallengeProvider";
+ }, function (d, b) {
+ var c;
+ function a() {}
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.ax = void 0;
+ c = /^\S+$/;
+ a.prototype.ZB = function (a) {
+ return void 0 !== a;
+ };
+ a.prototype.de = function (a) {
+ return null !== a && void 0 !== a;
+ };
+ a.prototype.xB = function (b) {
+ return a.OEa(b);
+ };
+ a.prototype.Cba = function (b) {
+ return !(!b || !a.OEa(b));
+ };
+ a.prototype.Qu = function (a) {
+ return Array.isArray(a);
+ };
+ a.prototype.PEa = function (a) {
+ return !(!a || a.constructor != Uint8Array);
+ };
+ a.prototype.fg = function (b, c, r) {
+ return a.hEa(b, c, r);
+ };
+ a.prototype.Bba = function (b) {
+ return a.Bba(b);
+ };
+ a.prototype.bca = function (b, c, r) {
+ return a.mX(b, c, r) && 0 === b % 1;
+ };
+ a.prototype.ks = function (b, c, r) {
+ return a.mX(b, c || 0, r);
+ };
+ a.prototype.MM = function (b) {
+ return a.mX(b, 1);
+ };
+ a.prototype.Kbb = function (b) {
+ return a.mX(b, 0, 255);
+ };
+ a.prototype.Lbb = function (a) {
+ return a === +a && (0 === a || a !== (a | 0)) && !0 && !0;
+ };
+ a.prototype.QEa = function (a) {
+ return !(!a || !c.test(a));
+ };
+ a.prototype.En = function (b) {
+ return a.iEa(b);
+ };
+ a.prototype.lm = function (b) {
+ return !(!a.iEa(b) || !b);
+ };
+ a.prototype.LM = function (a) {
+ return !0 === a || !1 === a;
+ };
+ a.prototype.cX = function (a) {
+ return "function" == typeof a;
+ };
+ a.iEa = function (a) {
+ return "string" == typeof a;
+ };
+ a.hEa = function (a, b, c) {
+ return "number" == typeof a && !isNaN(a) && isFinite(a) && (void 0 === b || a >= b) && (void 0 === c || a <= c);
+ };
+ a.Bba = function (a) {
+ return "number" == typeof a && isNaN(a);
+ };
+ a.mX = function (b, c, r) {
+ return a.hEa(b, c, r) && 0 === b % 1;
+ };
+ a.OEa = function (a) {
+ return "object" == typeof a;
+ };
+ b.ax = new a();
+ }, function (d) {
+ d.P = {
+ Wt: {
+ T9: 0,
+ pza: 1,
+ Cj: 2,
+ name: ["transient", "semiTransient", "permanent"]
+ },
+ Tt: {
+ Rta: 0,
+ mza: 1,
+ UU: 2,
+ iL: 3,
+ hu: 100,
+ name: ["firstLoad", "scrollHorizontal", "search", "playFocus"]
+ },
+ NVb: {
+ CVb: 0,
+ GSb: 1,
+ vQb: 2,
+ hu: 100,
+ name: ["trailer", "montage", "content"]
+ },
+ Kr: {
+ ova: 0,
+ aza: 1,
+ i7a: 2,
+ F1a: 3,
+ hu: 100,
+ name: ["left", "right", "up", "down"]
+ },
+ $K: {
+ E0a: 0,
+ UU: 1,
+ RRb: 2,
+ oRb: 3,
+ OPb: 4,
+ QRb: 5,
+ x_a: 6,
+ hu: 100,
+ name: ("continueWatching search grid episode billboard genre bigRow").split(" ")
+ },
+ IE: {
+ iL: 0,
+ Asa: 1,
+ hu: 100,
+ name: ["playFocused", "detailsOpened"]
+ }
+ };
+ }, function (d, b, a) {
+ b = a(258);
+ d.P = "undefined" !== typeof b && "undefined" !== typeof nrdp ? nrdp.ea : Date.now;
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.rL = void 0;
+ b.rL = "PlaygraphHelperSymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Eo = void 0;
+ d = b.Eo || (b.Eo = {});
+ d[d.Uwa = 0] = "None";
+ d[d.Wta = 1] = "Fetching";
+ d[d.O5 = 2] = "Done";
+ d[d.Error = 3] = "Error";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.t9 = void 0;
+ b.t9 = function (a, b) {
+ var c;
+ this.xoa = function () {
+ c || (c = setInterval(b, a));
+ };
+ this.sda = function () {
+ c && (clearInterval(c), c = void 0);
+ };
+ };
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.ri = void 0;
+ d = b.ri || (b.ri = {});
+ d[d.sWa = 1] = "sourceopen";
+ d[d.ap = 2] = "currentTimeChanged";
+ d[d.pR = 3] = "seeked";
+ d[d.j_b = 4] = "needlicense";
+ d[d.YOa = 5] = "licenseadded";
+ d[d.rWa = 6] = "sourceBuffersAdded";
+ d[d.Ala = 7] = "onNeedKey";
+ }, function (d, b, a) {
+ var c,
+ k,
+ l;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.JHa = b.bka = void 0;
+ c = a(17);
+ k = a(22);
+ l = a(15);
+ (function () {
+ var h,
+ p,
+ m;
+ function a(a) {
+ c.Ra(void 0 !== h[a]);
+ return h[a];
+ }
+ h = {
+ '"': '""',
+ "\r": "",
+ "\n": " "
+ };
+ p = /["\r\n]/g;
+ m = /[", ]/;
+ b.JHa = function (b) {
+ return l.dc(b) ? l.na(b) ? b : l.Td(b) ? b.replace(p, a) : l.Oia(b) ? b : isNaN(b) ? "NaN" : "" : "";
+ };
+ b.bka = function (a) {
+ var f,
+ c;
+ f = b.JHa;
+ c = "";
+ k.Ed(a, function (a, b) {
+ a = f(a) + "=" + f(b);
+ m.test(a) && (a = '"' + a + '"');
+ c = c ? c + ("," + a) : a;
+ });
+ return c;
+ };
+ })();
+ }, function (d, b, a) {
+ var k,
+ l,
+ r;
+ function c(a, b) {
+ this.Wr = b ? [b] : [];
+ this.raa = "$op$" + r++;
+ this.o = a;
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Rc = void 0;
+ k = a(10);
+ l = a(17);
+ r = 0;
+ c.prototype.addListener = function (a, b) {
+ var c;
+ c = this;
+ l.mea(a);
+ l.Ra(0 > this.Wr.indexOf(a));
+ a[k.vU + this.raa] = b;
+ this.Wr = this.Wr.slice();
+ this.Wr.push(a);
+ this.Wr.sort(function (a, b) {
+ return c.cKb(a, b);
+ });
+ };
+ c.prototype.removeListener = function (a) {
+ var b;
+ l.mea(a);
+ this.Wr = this.Wr.slice();
+ 0 <= (b = this.Wr.indexOf(a)) && this.Wr.splice(b, 1);
+ };
+ c.prototype.set = function (a, b) {
+ if (this.o !== a) {
+ b = {
+ oldValue: this.o,
+ newValue: a,
+ ny: b
+ };
+ this.o = a;
+ a = this.Wr;
+ for (var c = a.length, f = 0; f < c; f++) {
+ a[f](b);
+ }
+ }
+ };
+ c.prototype.when = function (a) {
+ var b;
+ b = this;
+ return new Promise(function (c) {
+ function f(h) {
+ if (a(h.newValue))
+ return (b.removeListener(f), c(h.newValue));
+ }
+ if (a(b.o))
+ return c(b.o);
+ b.addListener(f);
+ });
+ };
+ c.prototype.cKb = function (a, b) {
+ return (a[k.vU + this.raa] || 0) - (b[k.vU + this.raa] || 0);
+ };
+ wa.Object.defineProperties(c.prototype, {
+ value: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.o;
+ }
+ }
+ });
+ b.Rc = c;
+ }, function (d, b, a) {
+ var k,
+ l,
+ r,
+ h,
+ p,
+ m,
+ f,
+ u,
+ w,
+ A,
+ g,
+ C;
+ function c(a, b, c, m, u) {
+ var d,
+ w;
+ d = this;
+ this.j = a;
+ this.type = b;
+ this.rBa = m;
+ this.log = u;
+ this.bW = new h.Rc(!1);
+ this.XA = {
+ data: [],
+ state: "",
+ operation: ""
+ };
+ this.rI = this.AJa((this.type === k.Hc.Na.VIDEO ? this.j.wg.value : this.j.rd.value).pc);
+ this.gq = new p.Xi();
+ this.Faa = {
+ Type: this.type
+ };
+ r.config.Wy && (w = !0, this.Xfa = new h.Rc(!1));
+ this.log.trace("Adding source buffer", this.Faa, {
+ TypeId: this.rI
+ });
+ this.Ec = c.addSourceBuffer(this.rI);
+ this.Ec.addEventListener("updatestart", function () {
+ d.XA.state = "updatestart";
+ });
+ this.Ec.addEventListener("update", function () {
+ d.XA.state = "update";
+ });
+ this.Ec.addEventListener("updateend", function () {
+ var a;
+ d.bW.set(!1);
+ d.ABa && d.ABa();
+ d.XA.state = "updateend";
+ a = 0;
+ try {
+ a = d.Ec.buffered.length;
+ } catch (V) {}
+ w && a && (w = !1, d.Xfa.set(!0));
+ });
+ this.Ec.addEventListener("error", function (b) {
+ var c;
+ try {
+ c = b.target.error && b.target.error.message;
+ (b.message || c) && u.error("error event received on sourcebuffer", {
+ mediaErrorMessage: b.message
+ });
+ } catch (fa) {}
+ a.sd(f.J.N5a, l.WZ(d.type));
+ });
+ this.Ec.addEventListener("abort", function () {});
+ a.addEventListener(A.V.closed, function () {
+ d.Ec = void 0;
+ });
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.L7 = void 0;
+ k = a(57);
+ l = a(171);
+ r = a(12);
+ h = a(193);
+ p = a(66);
+ m = a(6);
+ a(84);
+ f = a(2);
+ a(3);
+ u = a(17);
+ w = a(15);
+ A = a(13);
+ g = a(114);
+ C = a(148);
+ c.prototype.Eh = function () {
+ return this.bW.value;
+ };
+ c.prototype.updating = function () {
+ return this.Ec ? this.Ec.updating : !1;
+ };
+ c.prototype.x3 = function (a) {
+ this.ABa = a;
+ };
+ c.prototype.RZ = function () {
+ return this.XA;
+ };
+ c.prototype.buffered = function () {
+ return this.Ec.buffered;
+ };
+ c.prototype.toString = function () {
+ return "SourceBuffer (type: " + this.type + ")";
+ };
+ c.prototype.toJSON = function () {
+ return {
+ type: this.type
+ };
+ };
+ c.prototype.NZ = function () {
+ var a,
+ b,
+ f,
+ c,
+ h,
+ m,
+ p;
+ try {
+ a = this.Ec.buffered;
+ h = 0;
+ if (a)
+ for ((b = [], f = 0, c = a.length, f = 0); f < c; f++) {
+ m = a.start(f);
+ p = a.end(f);
+ h = h + (p - m);
+ u.Ra(p > m);
+ b.push(m + "-" + p);
+ }
+ if (b)
+ return {
+ Buffered: h.toFixed(3),
+ Ranges: b.join("|")
+ };
+ } catch (B) {}
+ };
+ c.prototype.XEa = function (a, b) {
+ try {
+ u.Ra(this.Ec.buffered && 1 >= this.Ec.buffered.length, "Gaps in media are not allowed: " + JSON.stringify(this.NZ()));
+ } catch (G) {}
+ u.Ra(!this.Eh());
+ this.dWa("append", a);
+ b = b && b.Qm / 1E3;
+ w.na(b) && this.Ec.timestampOffset !== b && (this.Ec.timestampOffset = b);
+ this.Ec.appendBuffer(a);
+ this.bW.set(!0);
+ };
+ c.prototype.remove = function (a, b) {
+ u.Ra(!this.Eh());
+ try {
+ this.dWa("remove");
+ this.Ec.remove(a, b);
+ this.bW.set(!0);
+ } catch (G) {
+ this.log.error("SourceBuffer remove exception", G, this.Faa);
+ }
+ };
+ c.prototype.dWa = function (a, b) {
+ this.XA.data = b || [];
+ this.XA.state = "init";
+ this.XA.operation = a;
+ };
+ c.prototype.kJb = function (a, b) {
+ this.Iwb = Math.floor(1E3 * a / b);
+ };
+ c.prototype.Rfb = function (a) {
+ var b;
+ if (!this.Ec) {
+ if ((a = this.AJa([{
+ type: this.lhb,
+ hg: a
+ }
+ ]), a !== this.rI)) {
+ b = this.rI;
+ this.log.info("Changing SourceBuffer mime-type from: " + this.rI + " to: " + a);
+ try {
+ if (this.Ec.changeType)
+ (this.Ec.changeType(a), this.rI = a);
+ else
+ throw Error("Platform doesnt support changing SourceBuffer mime-type");
+ } catch (G) {
+ throw (this.log.error("Error changing SourceBuffer type", G, this.Faa, {
+ From: b,
+ To: a
+ }), G);
+ }
+ }
+ } else
+ this.log.info("No SourceBuffer");
+ };
+ c.prototype.appendBuffer = function (a, b) {
+ !b || b.kc ? this.fca(a, b) : this.oX(a, b);
+ return !0;
+ };
+ c.prototype.fca = function (a, b) {
+ this.j.pj.fca(this, a, b || ({}));
+ };
+ c.prototype.oX = function (a, b) {
+ this.j.pj.oX(this.ghb(a, b));
+ };
+ c.prototype.ghb = function (a, b) {
+ var f;
+ f = this.Iwb || 0;
+ return {
+ DGa: function () {
+ this.response = void 0;
+ },
+ Yj: function () {
+ return this.requestId;
+ },
+ constructor: {
+ name: "MediaRequest"
+ },
+ L: this.L,
+ readyState: C.Vb.vc.DONE,
+ yw: b.T,
+ ut: b.T + b.duration,
+ sv: b.duration,
+ Qm: f,
+ Gi: b.Gi,
+ Ha: b.Ha,
+ wa: b.wa,
+ Ob: +b.Ob,
+ location: b.location,
+ uN: b.offset,
+ tN: b.offset + b.da - 1,
+ R: b.R,
+ response: a,
+ KMa: a && 0 < a.byteLength,
+ Qy: !0,
+ get kc() {
+ return !this.Qy;
+ },
+ oVa: this.Fj - f || Infinity,
+ toJSON: function () {
+ var a;
+ a = {
+ requestId: this.requestId,
+ segmentId: this.Ha,
+ isHeader: this.kc,
+ ptsStart: this.yw,
+ ptsOffset: this.Qm,
+ responseType: this.pWb,
+ duration: this.sv,
+ readystate: this.Cg
+ };
+ this.stream && (a.bitrate = this.stream.R);
+ return JSON.stringify(a);
+ }
+ };
+ };
+ c.prototype.endOfStream = function () {
+ var a;
+ this.j.Po("EndOfStream");
+ null === (a = this.j.pj) || void 0 === a ? void 0 : a.I1(this.L);
+ };
+ c.prototype.addEventListener = function (a, b, f) {
+ this.gq.addListener(a, b, f);
+ };
+ c.prototype.removeEventListener = function (a, b) {
+ this.gq.removeListener(a, b);
+ };
+ c.prototype.AJa = function (a) {
+ var b;
+ b = m.ba.get(g.OA);
+ return this.type === k.Hc.Na.VIDEO ? b.WN(a) : b.PN(a);
+ };
+ wa.Object.defineProperties(c.prototype, {
+ L: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.type;
+ }
+ },
+ BX: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.rBa.BX;
+ }
+ },
+ sourceId: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.rBa.sourceId;
+ }
+ },
+ lhb: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return 0 === this.type ? "audio" : "video";
+ }
+ }
+ });
+ b.L7 = c;
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.zU = void 0;
+ b.zU = "PboBindCommandSymbol";
+ }, function (d, b, a) {
+ var k,
+ l,
+ r,
+ h,
+ p,
+ m,
+ f,
+ u,
+ w,
+ A,
+ g,
+ C,
+ M,
+ H,
+ G,
+ T,
+ S;
+ function c(a, b) {
+ var c;
+ function f(a) {
+ return a && 0 < a.length && a[0].Vy;
+ }
+ c = h.ba.get(g.KE);
+ return a.ga && f(a.Rb) ? c.release(Object.assign(Object.assign({}, b), {
+ ga: a.ga,
+ Rb: a.Rb
+ })) : b.ga && f(b.Rb) ? c.release(b) : Promise.resolve(k.pd);
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.kUa = b.qsa = void 0;
+ k = a(10);
+ l = a(12);
+ r = a(39);
+ h = a(6);
+ p = a(17);
+ m = a(512);
+ f = a(2);
+ u = a(63);
+ w = a(58);
+ A = a(15);
+ g = a(152);
+ C = a(151);
+ M = a(13);
+ H = a(71);
+ G = a(105);
+ T = a(195);
+ S = a(32);
+ d = (function () {
+ function a(a) {
+ var b;
+ b = this;
+ this.j = a;
+ this.AFa = this.ZOa = !1;
+ this.log = h.Gg(this.j, "Playback");
+ this.H0 = h.ba.get(g.KE);
+ this.bi = h.ba.get(H.Or);
+ this.Jc = h.ba.get(G.SA);
+ this.wCb = h.ba.get(T.zU);
+ this.j.addEventListener(M.V.HP, function () {
+ return b.ENb();
+ });
+ p.Ra(l.config);
+ l.config.Pp || (this.bmb = h.ba.get(m.R5));
+ }
+ a.prototype.fN = function (a) {
+ var h,
+ m,
+ u;
+ function b() {
+ h.j.uVa().then(c)["catch"](a);
+ }
+ function c(b) {
+ try {
+ h.j.tTa(b);
+ a(k.pd);
+ h.sob();
+ } catch (X) {
+ h.log.error("Exception processing authorization response", X);
+ a({
+ U: !1,
+ ja: f.I.U5a
+ });
+ }
+ }
+ h = this;
+ p.TG(this.j.G);
+ p.TG(this.j.li);
+ m = this.j.xa;
+ if (m) {
+ u = m.Wf.Cfa;
+ u ? (u -= r.vda(), 18E5 < u ? w.zc(function () {
+ c(m);
+ h.j.$u = "ui";
+ }) : (this.log.error("manifest is expired", {
+ gap: u
+ }), b())) : w.zc(function () {
+ c(m);
+ h.j.$u = "ui";
+ });
+ } else
+ l.config.Ap && this.Jc() ? (u = this.Jc().Dq(this.j.G, "manifest")) && u.then(function (a) {
+ c(a);
+ h.j.$u = "videopreparer";
+ })["catch"](function (a) {
+ h.log.warn("manifest not in cache", a);
+ b();
+ }) : b();
+ };
+ a.prototype.sC = function (a) {
+ var b;
+ b = this;
+ return new Promise(function (f, c) {
+ var m,
+ p,
+ l;
+ m = u.sk.pHa(a.ai);
+ p = a.Xh.map(function (a) {
+ return {
+ sessionId: a.sessionId,
+ dataBase64: h.ns(a.data)
+ };
+ });
+ l = b.j.Irb(a.Xh[0].sessionId);
+ m = {
+ sg: l.sg,
+ ai: A.is.lm(a.ai) ? a.ai : m,
+ KY: [l.Hk],
+ Xh: p,
+ ga: l.ga,
+ Qn: a.Qn,
+ Ki: l.xa.Ki
+ };
+ b.j.MN && b.j.MN.$X && (m.TP = b.j.MN.$X);
+ b.H0.uB(m).then(function (a) {
+ b.j.Rb = a.Rb;
+ f(a);
+ b.tob(l);
+ })["catch"](c);
+ });
+ };
+ a.prototype.release = function (a) {
+ return c(this.j, a);
+ };
+ a.prototype.uHa = function () {
+ var a;
+ a = this.bmb.create();
+ this.j.Jf && (a.he = this.j.Jf.Js());
+ a.Rb = this.j.Rb;
+ a.ga = this.j.ga;
+ a.G = this.j.G;
+ return a;
+ };
+ a.prototype.tob = function (a) {
+ this.ZOa || (this.ZOa = !0, this.j.fireEvent(M.V.HP, {
+ G: a.G
+ }));
+ };
+ a.prototype.sob = function () {
+ var a;
+ a = this;
+ this.AFa || (this.AFa = !0, this.j.fireEvent(M.V.beb), h.ba.get(C.nL)().then(function (b) {
+ b.N3(a.j);
+ }));
+ };
+ a.prototype.ENb = function () {
+ var b,
+ c;
+ b = this;
+ c = h.ba.get(S.aj);
+ this.bi.XH || a.OYa || (a.OYa = !0, c.bOb && l.config.DNb && this.wCb.Ge(this.log, {}).then(function () {
+ return b.log.trace("Updated NetflixId");
+ })["catch"](function (a) {
+ return b.log.error("NetflixId upgrade failed", f.Vp(a));
+ }));
+ };
+ a.OYa = !1;
+ return a;
+ })();
+ b.qsa = d;
+ b.kUa = c;
+ }, function (d, b, a) {
+ var r,
+ h,
+ p,
+ m,
+ f,
+ u,
+ w,
+ A,
+ g,
+ C,
+ M,
+ H,
+ G,
+ T;
+ function c(a, b) {
+ var H;
+ function c(b) {
+ return r.kUa(a, b);
+ }
+ function m() {
+ var a,
+ b,
+ h,
+ m;
+ b = u.Fh("Eme");
+ h = u.ba.get(f.Xp);
+ a = new h.kA(b, void 0, c, {
+ Xc: !1,
+ bh: !1
+ });
+ m = u.ba.get(A.OA);
+ return h.mA(b, "cenc", void 0, {
+ Xc: !1,
+ bh: !1,
+ ZH: p.config.wj,
+ pJ: {
+ d1: p.config.KHb,
+ OX: p.config.Tna,
+ g1b: p.config.JHb
+ },
+ vj: a,
+ x2: p.config.Gma,
+ Uz: p.config.gfa,
+ J_b: p.config.LHb,
+ rFa: m.PN([]),
+ gZa: m.WN([]),
+ SH: p.config.SH
+ });
+ }
+ function d() {
+ function a(a, b) {
+ var f,
+ h;
+ f = u.ba.get(T.tT);
+ if (!b.Rb || 0 === b.Rb.length || !b.Rb[0].Vy)
+ return (H.error("releaseDrmSession exception: missing valid keySessionData"), k(a, b));
+ if (0 < b.Rb.length) {
+ H.info("Sending the deferred playdata and secure stop data");
+ h = m();
+ return h.create(p.config.he).then(function () {
+ return h.Ykb(b);
+ }).then(function (c) {
+ H.info("Sent the deferred playdata and secure stop data");
+ f.r3(c, b);
+ return k(a, b);
+ })["catch"](function (c) {
+ c && c.code === w.J.s6a && k(a, b);
+ c && c.code === w.J.y9 && k(a, b);
+ H.error("Unable to send last stop", c);
+ f.r3(c, b);
+ throw c;
+ });
+ }
+ H.info("No key session so just send the playdata");
+ return c(b).then(function () {
+ H.trace("Successfully sent stop command for previous session");
+ return k(a, b);
+ })["catch"](function (a) {
+ H.error("Unable to send stop command for previous session", a);
+ throw a;
+ });
+ }
+ l(H).then(function (f) {
+ var c;
+ c = f.LY.filter(function (a) {
+ return !1 === a.active;
+ }).map(function (b) {
+ return a(f, b);
+ });
+ Promise.all(c).then(function () {
+ H.info("release drm session completed for " + c.length + " entries");
+ b(h.pd);
+ })["catch"](function (a) {
+ a = a || ({});
+ a.DrmCacheSize = c.length;
+ H.error("Unable to release one or more DRM session data", a);
+ b(h.pd);
+ });
+ })["catch"](function (a) {
+ H.error("Unable to load DRM session data", a);
+ b(h.pd);
+ });
+ }
+ H = u.Fh("PlayDataManager");
+ b = b || h.ff;
+ p.config.Pp ? b(h.pd) : d();
+ }
+ function k(a, b) {
+ return a ? a.cna(b) : Promise.resolve();
+ }
+ function l(a) {
+ var f;
+ if (!b.Wea) {
+ f = u.ba.get(g.iT);
+ b.Wea = new Promise(function (b, c) {
+ f.QTa().then(function () {
+ b(f);
+ })["catch"](function (b) {
+ a.error("Unable to load DRM data for persistent secure stop", b);
+ c(b);
+ });
+ });
+ }
+ return b.Wea;
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.cya = b.bya = b.Wea = void 0;
+ r = a(196);
+ h = a(10);
+ p = a(12);
+ m = a(55);
+ f = a(32);
+ u = a(6);
+ w = a(2);
+ A = a(114);
+ g = a(269);
+ C = a(151);
+ M = a(13);
+ H = a(47);
+ d = a(26);
+ G = a(273);
+ T = a(268);
+ b.bya = function (a) {
+ var d,
+ w,
+ A,
+ g,
+ K,
+ T;
+ function b() {
+ w || (a.kd("pdsb"), w = u.ba.get(C.nL)().then(function (b) {
+ g = b;
+ a.kd("pdsc");
+ return b;
+ })["catch"](function (b) {
+ d.error("Unable to initialize the playdata services", b);
+ a.kd("pdse");
+ throw b;
+ }));
+ return w;
+ }
+ function r() {
+ A = !0;
+ g && g.close();
+ m.Te.removeListener(m.Hl, r);
+ }
+ d = u.Gg(a, "PlayDataManager");
+ A = !1;
+ K = u.ba.get(f.Xp);
+ if (!K.mA || !K.kA) {
+ T = u.ba.get(G.GU)();
+ K.mA = T.tb;
+ K.kA = T.request;
+ }
+ a.kd("pdctor");
+ a.addEventListener(M.V.If, function () {
+ m.Te.removeListener(m.Hl, r);
+ });
+ a.addEventListener(M.V.HP, function () {
+ var b;
+ if (!p.config.Pp && a.Jf) {
+ b = a.LN.uHa();
+ l(d).then(function (a) {
+ return a.nEa(b);
+ })["catch"](function () {
+ d.error("Unable to load/add cached DRM data");
+ });
+ }
+ });
+ a.addEventListener(M.V.If, function () {
+ var f;
+ if (!A) {
+ a.EOb();
+ f = [(function () {
+ return p.config.Pp || !a.Jf ? Promise.resolve() : new Promise(function (b) {
+ var f;
+ d.info("Sending the expedited playdata and secure stop data");
+ f = a.LN.uHa();
+ a.Jf.xnb(f).then(function (b) {
+ d.info("Sent the expedited playdata and secure stop data");
+ p.config.wj && a.qp.j3({
+ success: b.U,
+ persisted: !1,
+ ss_km: b.c1,
+ ss_sr: b.LD,
+ ss_ka: b.WX
+ });
+ return l(d);
+ }).then(function (a) {
+ return k(a, f);
+ }).then(function () {
+ b();
+ })["catch"](function (f) {
+ d.error("Unable to send the expedited playdata and secure stop data", f);
+ p.config.wj && a.qp.j3({
+ success: f.U,
+ state: f.state,
+ ErrorCode: f.code,
+ ErrorSubCode: f.Nb,
+ ErrorExternalCode: f.xd,
+ ErrorEdgeCode: f.wm,
+ ErrorDetails: f.cause && f.cause.ab
+ });
+ b();
+ });
+ });
+ })(), (function () {
+ return b().then(function (b) {
+ return b.IWa(a.ha);
+ }).then(function () {
+ d.info("Sent the playdata");
+ })["catch"](function (a) {
+ d.error("Unable to send the playdata", a);
+ });
+ })(), (function () {
+ return new Promise(function (a) {
+ u.ba.get(H.uk).flush(!1)["catch"](function () {
+ d.error("Unable to send logblob");
+ a();
+ }).then(function () {
+ a();
+ });
+ });
+ })()];
+ Promise.all(f).then(function () {
+ a.H1();
+ })["catch"](function () {
+ a.H1();
+ });
+ }
+ });
+ m.Te.addListener(m.Hl, r);
+ return {
+ eIb: function (f) {
+ a.kd("pdpb");
+ p.config.q3 || b().then(function (b) {
+ return b.send(a.G);
+ }).then(function () {
+ p.config.Pp ? (a.kd("pdpc"), f(h.pd)) : c(a, function () {
+ a.kd("pdpc");
+ f(h.pd);
+ });
+ })["catch"](function () {
+ a.kd("pdpe");
+ f(h.pd);
+ });
+ }
+ };
+ };
+ b.cya = function () {
+ return new Promise(function (a) {
+ c({}, function (b) {
+ a(b);
+ });
+ });
+ };
+ u.ba.get(d.Cf).register(w.J.Zw, function (a) {
+ a(h.pd);
+ });
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r,
+ h,
+ p,
+ m,
+ f,
+ u,
+ w,
+ A;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.WD = void 0;
+ c = a(10);
+ k = a(12);
+ l = a(55);
+ r = a(39);
+ h = a(2);
+ p = a(17);
+ m = a(6);
+ f = a(22);
+ u = a(9);
+ w = a(146);
+ A = a(15);
+ d = a(26);
+ m.ba.get(d.Cf).register(h.J.Oua, function (a) {
+ var H,
+ K,
+ T;
+ function d() {
+ var a;
+ d = c.ff;
+ a = setInterval(g, k.config.Bxb);
+ l.Te.addListener(l.Hl, function (b) {
+ b && b.isPopStateEvent ? H.trace("popstate event, Lock timers can stay") : (f.Ed(K, function (a, b) {
+ localStorage.removeItem(b.pp);
+ }), clearInterval(a));
+ }, c.DA);
+ }
+ function g() {
+ var a;
+ a = r.EN();
+ f.Ed(K, function (b, f) {
+ b = localStorage.getItem(f.pp);
+ (b = JSON.parse(b)) ? b.updated = a : b = {
+ updated: a,
+ sessionId: T,
+ count: 1
+ };
+ localStorage.setItem(f.pp, JSON.stringify(b));
+ });
+ }
+ p.Ra(w.storage);
+ H = m.Fh("StorageLock");
+ K = {};
+ T = Date.now() + "-" + Math.floor(1E6 * Math.random());
+ b.WD = {
+ uB: function (a, b, m) {
+ var l,
+ w,
+ g,
+ C,
+ M,
+ G,
+ S,
+ n,
+ aa,
+ q;
+ function p(a) {
+ localStorage.setItem(g, JSON.stringify(a));
+ a = {
+ pp: g
+ };
+ K[g] = a;
+ H.trace("Lock acquired", {
+ Name: a.pp
+ });
+ d();
+ b({
+ U: !0,
+ L0: a
+ });
+ }
+ m = void 0 === m ? !1 : m;
+ l = this;
+ if (localStorage) {
+ w = r.EN();
+ g = "lock-" + a;
+ C = {
+ updated: w,
+ sessionId: T,
+ count: 1
+ };
+ try {
+ if ((g in localStorage)) {
+ M = localStorage.getItem(g);
+ G = 0;
+ S = JSON.parse(M);
+ A.Pv(S.updated) && (G = S.updated);
+ n = u.vA(w - G) * c.Bj;
+ aa = T === S.sessionId;
+ if (n < k.config.gPa) {
+ if (aa)
+ (S.count += 1, H.debug("Incremented lock count for existing playbackSession", {
+ id: T,
+ count: S.count
+ }), S.updated = w, p(S));
+ else if (m) {
+ q = k.config.gPa - n + c.Bj;
+ H.error("Waiting until current expiration to confirm whether lock is still active", {
+ id: T,
+ count: S.count,
+ Epoch: w,
+ LockEpoch: G,
+ waitTimeoutMs: q
+ });
+ t.setTimeout(function () {
+ return l.uB(a, b, !1);
+ }, q);
+ } else
+ b({
+ U: !1
+ });
+ } else (H.error("Lock was expired or invalid, ignoring", {
+ Epoch: w,
+ LockEpoch: G
+ }), p(C));
+ } else
+ p(C);
+ } catch (Ha) {
+ H.error("Error acquiring Lock", {
+ errorSubCode: h.I.Df,
+ errorDetails: f.Fd(Ha)
+ });
+ b({
+ U: !0
+ });
+ }
+ } else (u.Jja ? H.error("Local storage access exception", {
+ errorSubCode: h.I.H6a,
+ errorDetails: f.Fd(u.Jja)
+ }) : H.error("No localstorage", {
+ errorSubCode: h.I.I6a
+ }), b({
+ U: !0
+ }));
+ },
+ release: function (a, b) {
+ var f,
+ h;
+ p.Ra(K[a.pp] == a);
+ if (localStorage) {
+ try {
+ f = localStorage.getItem(a.pp);
+ h = JSON.parse(f);
+ 1 < h.count ? (--h.count, localStorage.setItem(a.pp, JSON.stringify(h)), H.trace("Lock count decremented", {
+ Name: a.pp,
+ count: h.count
+ })) : (localStorage.removeItem(a.pp), delete K[a.pp], H.trace("Lock released", {
+ Name: a.pp
+ }));
+ } catch (V) {
+ H.error("Unable to release Lock", {
+ Name: a.pp
+ }, V);
+ }
+ b && b(c.pd);
+ }
+ }
+ };
+ k.config.XY ? b.WD.uB("session", function (f) {
+ b.WD.GVa = f;
+ a(c.pd);
+ }) : a(c.pd);
+ });
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.HU = void 0;
+ b.HU = "PlayPredictionDeserializerSymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.CP = void 0;
+ b.CP = function (a, b, k) {
+ var c;
+ if (k.set)
+ throw Error("Property " + b + " has a setter and cannot be made into a lazy property.");
+ c = k.get;
+ k.get = function () {
+ var l,
+ h;
+ l = c.apply(this, arguments);
+ h = {
+ enumerable: k.enumerable,
+ value: l
+ };
+ Object.getPrototypeOf(a) === Function.prototype ? Object.defineProperty(a, b, h) : Object.defineProperty(this, b, h);
+ return l;
+ };
+ };
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.w7 = void 0;
+ b.w7 = (function () {
+ function a() {}
+ a.g1a = "display";
+ a.z0a = "console";
+ a.vUb = "remote";
+ a.RVb = "writer";
+ return a;
+ })();
+ }, function (d, b, a) {
+ var k;
+ function c() {}
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.kT = void 0;
+ k = a(9);
+ c.Rda = function (a) {
+ var b;
+ if (k.Ae.queryCommandSupported && k.Ae.queryCommandSupported("copy")) {
+ b = k.Ae.createElement("textarea");
+ b.textContent = a;
+ b.style.position = "fixed";
+ k.Ae.body.appendChild(b);
+ b.select();
+ try {
+ k.Ae.execCommand("copy");
+ } catch (h) {
+ console.warn("Copy to clipboard failed.", h);
+ }
+ finally {
+ k.Ae.body.removeChild(b);
+ }
+ }
+ };
+ b.kT = c;
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.I8 = b.H8 = b.K8 = void 0;
+ b.K8 = "PboPlaydataValidatorSymbol";
+ b.H8 = "PboPlaydataArrayValidatorSymbol";
+ b.I8 = "PboPlaydataCollectionValidatorSymbol";
+ }, function (d, b, a) {
+ var r,
+ h,
+ p,
+ m,
+ f,
+ u,
+ w;
+ function c() {}
+ function k() {}
+ function l() {}
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Rxa = b.DU = void 0;
+ r = a(0);
+ h = a(1);
+ p = a(37);
+ m = a(3);
+ f = a(14);
+ u = a(24);
+ w = a(91);
+ l.prototype.encode = function (a) {
+ return {
+ downloadableId: a.vd,
+ duration: a.duration
+ };
+ };
+ l.prototype.decode = function (a) {
+ return {
+ vd: a.downloadableId,
+ duration: a.duration
+ };
+ };
+ k.prototype.encode = function (a) {
+ return {
+ total: a.total,
+ totalContentTime: a.fE,
+ audio: a.audio.map(new l().encode),
+ video: a.video.map(new l().encode),
+ text: a.text.map(new l().encode)
+ };
+ };
+ k.prototype.decode = function (a) {
+ var b;
+ return {
+ total: a.total,
+ fE: null !== (b = a.totalContentTime) && void 0 !== b ? b : a.total,
+ audio: a.audio.map(new l().decode),
+ video: a.video.map(new l().decode),
+ text: a.text.map(new l().decode)
+ };
+ };
+ c.prototype.encode = function (a) {
+ return {
+ type: a.type,
+ href: a.href,
+ xid: a.ga,
+ movieId: a.G,
+ position: a.position,
+ clientTime: a.DN,
+ sessionStartTime: a.yR,
+ mediaId: a.nI,
+ playTimes: new k().encode(a.CQ),
+ trackId: a.cb,
+ sessionId: a.sessionId,
+ appId: a.WM,
+ sessionParams: a.oo,
+ mdxControllerEsn: a.yka,
+ profileId: a.profileId
+ };
+ };
+ c.prototype.decode = function (a) {
+ return {
+ type: a.type,
+ href: a.href,
+ ga: a.xid,
+ G: a.movieId,
+ position: a.position,
+ DN: a.clientTime,
+ yR: a.sessionStartTime,
+ nI: a.mediaId,
+ CQ: new k().decode(a.playTimes),
+ cb: a.trackId,
+ sessionId: a.sessionId,
+ WM: a.appId,
+ oo: a.sessionParams,
+ yka: a.mdxControllerEsn,
+ profileId: a.profileId
+ };
+ };
+ b.DU = c;
+ d = (function () {
+ var b;
+ function a(a, b, f, c) {
+ this.Aa = a;
+ this.r_ = b;
+ this.va = f;
+ this.profile = c;
+ }
+ a.prototype.create = function (a) {
+ return {
+ href: a.xa && a.xa.Ki ? a.xa.Ki.RO("events").href : "",
+ type: "online",
+ ga: a.ga.toString(),
+ G: a.G,
+ position: a.hea || 0,
+ DN: this.Aa.t3.ca(m.ia),
+ yR: a.UH ? a.UH.ca(m.ia) : -1,
+ nI: this.eqb(a),
+ CQ: this.Grb(a),
+ cb: void 0 !== a.li ? a.li.toString() : "",
+ sessionId: this.r_().sessionId || this.va.id,
+ WM: this.r_().WM || this.va.id,
+ oo: a.Ta.oo || ({}),
+ profileId: this.profile
+ };
+ };
+ a.prototype.vjb = function (a, b) {
+ return Object.assign({}, this.create(a), {
+ yka: b && b.$X
+ });
+ };
+ a.prototype.load = function (a) {
+ return new c().decode(a);
+ };
+ a.prototype.eqb = function (a) {
+ var b,
+ f,
+ c;
+ b = a.rd.value;
+ f = a.wg.value;
+ c = a.Bc.value;
+ return b && f && c ? (a = a.xa.Wf.media.find(function (a) {
+ return a.Ph.AUDIO === b.cb && a.Ph.VIDEO === f.cb && a.Ph.S9 === c.cb;
+ })) ? a.id : "" : "";
+ };
+ a.prototype.kha = function (a) {
+ return a.map(function (a) {
+ return {
+ vd: a.downloadableId,
+ duration: a.duration
+ };
+ });
+ };
+ a.prototype.Grb = function (a) {
+ return (a = a.Om) ? (a = a.Frb(), {
+ total: a.total,
+ fE: a.totalContentTime,
+ audio: this.kha(a.audio),
+ video: this.kha(a.video),
+ text: this.kha(a.timedtext)
+ }) : {
+ total: 0,
+ fE: 0,
+ video: [],
+ audio: [],
+ text: []
+ };
+ };
+ b = a;
+ return b = r.__decorate([h.N(), r.__param(0, h.l(p.ni)), r.__param(1, h.l(f.fd)), r.__param(2, h.l(u.Me)), r.__param(3, h.l(w.cF))], b);
+ })();
+ b.Rxa = d;
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.BU = void 0;
+ b.BU = "PboLicenseResponseTransformerSymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ d = (function () {
+ function a(a) {
+ this.buffer = a;
+ this.position = 0;
+ }
+ a.prototype.seek = function (a) {
+ this.position = a;
+ };
+ a.prototype.skip = function (a) {
+ this.position += a;
+ };
+ a.prototype.Jk = function () {
+ return this.buffer.length - this.position;
+ };
+ a.prototype.Ke = function () {
+ return this.buffer[this.position++];
+ };
+ a.prototype.Vd = function (a) {
+ var b;
+ b = this.position;
+ this.position += a;
+ return this.Yvb(this.buffer) ? this.buffer.subarray(b, this.position) : this.buffer.slice(b, this.position);
+ };
+ a.prototype.Yvb = function (a) {
+ return void 0 !== a.subarray;
+ };
+ a.prototype.$c = function (a) {
+ for (var b = 0; a--; ) {
+ b = 256 * b + this.buffer[this.position++];
+ }
+ return b;
+ };
+ a.prototype.vt = function (a) {
+ for (var b = ""; a--; ) {
+ b += String.fromCharCode(this.buffer[this.position++]);
+ }
+ return b;
+ };
+ a.prototype.Qma = function () {
+ for (var a = "", b; b = this.Ke(); ) {
+ a += String.fromCharCode(b);
+ }
+ return a;
+ };
+ a.prototype.Tb = function () {
+ return this.$c(2);
+ };
+ a.prototype.Xa = function () {
+ return this.$c(4);
+ };
+ a.prototype.Kg = function () {
+ return this.$c(8);
+ };
+ a.prototype.F2 = function () {
+ return this.$c(2) / 256;
+ };
+ a.prototype.XQ = function () {
+ return this.$c(4) / 65536;
+ };
+ a.prototype.Qf = function (a) {
+ for (var b, c = ""; a--; ) {
+ b = this.Ke();
+ c += ("0123456789ABCDEF")[b >>> 4] + ("0123456789ABCDEF")[b & 15];
+ }
+ return c;
+ };
+ a.prototype.xz = function () {
+ return this.Qf(4) + "-" + this.Qf(2) + "-" + this.Qf(2) + "-" + this.Qf(2) + "-" + this.Qf(6);
+ };
+ a.prototype.YQ = function (a) {
+ for (var b = 0, c = 0; c < a; c++) {
+ b += this.Ke() << (c << 3);
+ }
+ return b;
+ };
+ a.prototype.zD = function () {
+ return this.YQ(4);
+ };
+ a.prototype.MS = function (a) {
+ this.buffer[this.position++] = a;
+ };
+ a.prototype.rqa = function (a, b) {
+ this.position += b;
+ for (var c = 1; c <= b; c++) {
+ this.buffer[this.position - c] = a & 255;
+ a = Math.floor(a / 256);
+ }
+ };
+ a.prototype.LS = function (a) {
+ for (var b = a.length, c = 0; c < b; c++) {
+ this.buffer[this.position++] = a[c];
+ }
+ };
+ a.prototype.nE = function (a, b) {
+ this.LS(a.Vd(b));
+ };
+ a.prototype.CZa = function (b) {
+ b = new a(b);
+ for (var c, l; ; ) {
+ if ((c = b.Jk(), l = c >>> 14))
+ (l = Math.min(4, l), this.MS(192 | l), this.nE(b, 16384 * l));
+ else {
+ 128 > c ? this.MS(c) : this.rqa(c | 32768, 2);
+ this.nE(b, c);
+ break;
+ }
+ }
+ };
+ a.prototype.MTa = function () {
+ var l;
+ for (var b = [], k = new a(b); ; ) {
+ l = this.Ke();
+ if (l & 128) {
+ if (128 == (l & 192))
+ (l &= 63, l = (l << 8) + this.Ke(), k.nE(this, l));
+ else if ((l &= 63, 0 < l && 4 >= l)) {
+ k.nE(this, 16384 * l);
+ continue;
+ } else
+ throw Error("bad asn1");
+ } else
+ k.nE(this, l);
+ break;
+ }
+ return new Uint8Array(b);
+ };
+ return a;
+ })();
+ b.oT = d;
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.fL = void 0;
+ b.fL = "NetworkMonitorFactorySymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.t7 = b.s7 = void 0;
+ b.s7 = "LogMessageRulerConfigSymbol";
+ b.t7 = "LogMessageRulerSymbol";
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r,
+ h;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.tqa = void 0;
+ c = a(6);
+ k = a(2);
+ l = a(368);
+ r = a(367);
+ h = a(58);
+ b.tqa = function (a, b) {
+ var f,
+ m;
+ try {
+ f = l.EZa(a);
+ } catch (w) {
+ c.log.error("xml2xmlDoc exception", w);
+ }
+ h.zc(function () {
+ if (f && f.documentElement)
+ try {
+ m = r.FZa(f);
+ } catch (w) {
+ c.log.error("xmlDoc2js exception", w);
+ }
+ h.zc(function () {
+ m ? b({
+ U: !0,
+ object: m
+ }) : b({
+ U: !1,
+ ja: k.I.Sta
+ });
+ });
+ });
+ };
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r,
+ h,
+ p,
+ m;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.hSa = b.gSa = b.Y1 = b.Lla = b.iSa = b.kSa = b.jSa = b.lSa = b.Z1 = b.mSa = b.nSa = b.fSa = void 0;
+ c = a(17);
+ k = a(23);
+ l = a(10);
+ r = a(127);
+ h = a(9);
+ p = a(15);
+ m = a(22);
+ b.fSa = (function () {
+ var ia,
+ Y,
+ pa,
+ X,
+ O,
+ na,
+ ha,
+ P,
+ Ha,
+ ja,
+ ya,
+ za;
+ function a(a) {
+ if (k.Qv(a)) {
+ a = a.toLowerCase();
+ if ("#" == a[0]) {
+ if (7 == a.length)
+ return a;
+ if (4 == a.length)
+ return "#" + a[1] + a[1] + a[2] + a[2] + a[3] + a[3];
+ }
+ return b.lSa[a];
+ }
+ }
+ function u(a, b, f) {
+ b = b[a];
+ 0 <= b || (b = parseFloat(a));
+ if (0 <= b)
+ return h.hn(b, f);
+ }
+ function d(a, b) {
+ var f,
+ c;
+ f = a.length;
+ c = a[f - 1];
+ if ("t" === c)
+ return parseFloat(a) * b | 0;
+ if ("s" === c)
+ return "m" === a[f - 2] ? parseFloat(a) | 0 : parseFloat(a) * l.Bj | 0;
+ if ((a = a.match(Ha)) && 4 <= a.length)
+ return (3600 * parseInt(a[1], 10) + 60 * parseInt(a[2], 10) + parseFloat(a[3])) * l.Bj | 0;
+ throw Error("dfxp-badtime");
+ }
+ function A(a, b, f, c, h) {
+ var m,
+ p,
+ u,
+ l,
+ k,
+ r,
+ d,
+ w;
+ if (a) {
+ p = a.style;
+ f = p ? f[p] : void 0;
+ c = (p = a.region) ? c[p] : void 0;
+ p = h.length;
+ for (u = 0; u < p; u++) {
+ if ((l = h[u], k = a[l], void 0 === k && f && (k = f[l]), void 0 === k && c && (k = c[l]), void 0 !== k && k !== b[l])) {
+ if (!m)
+ for ((m = {}, r = 0); r < p; r++) {
+ d = h[r];
+ w = b[d];
+ void 0 !== w && (m[d] = w);
+ }
+ m[l] = k;
+ }
+ }
+ }
+ return m || b;
+ }
+ function g(a, b, f, c, h, m, p, u, l) {
+ var w,
+ H;
+ function d(a, g, C) {
+ var M,
+ K,
+ T,
+ S,
+ n,
+ B;
+ M = a[r.Si];
+ K = M.style || g.style || "";
+ T = M.region || g.region || "";
+ K || T ? (S = K + "/" + T, n = f[S]) : n = b;
+ if (!n) {
+ n = b;
+ B = k.AJ(c);
+ k.yb(B, h[K]);
+ n = G(n, B, p, u, l);
+ f[K + "/"] = n;
+ T && (k.yb(B, m[T]), k.yb(B, h[K]), n = G(n, B, p, u, l), f[S] = n);
+ }
+ if (!C)
+ a: {
+ for (C = na.length; C--; ) {
+ if (void 0 !== M[na[C]]) {
+ C = !0;
+ break a;
+ }
+ }
+ C = void 0;
+ }
+ C && (M = A(M, g, h, m, ha), n = G(n, M, p, u, l));
+ g = (a = a[r.lK]) && a.length;
+ for (K = 0; K < g; K++) {
+ T = a[K];
+ k.df(T) ? ja.test(T[r.mK]) ? H++ : d(T, M, C) : (w.push({
+ text: T,
+ lineBreaks: H,
+ style: n
+ }), H = 0);
+ }
+ }
+ w = [];
+ H = 0;
+ d(a, c, !1);
+ 0 < H && w.push({
+ text: "",
+ lineBreaks: H,
+ style: b
+ });
+ return w;
+ }
+ function C(a, b, f, c, h, m, p, u) {
+ var l,
+ k;
+ f && (f = Y[f] || "top", a.verticalAlignment !== f && (a.verticalAlignment = f));
+ c && (f = pa[c] || "left", a.horizontalAlignment !== f && (a.horizontalAlignment = f));
+ h ? ((k = u[h]) ? (c = k.marginLeft, f = k.marginTop) : (l = h.split(" "), c = n(l[0], p.x) || 0, f = n(l[1], p.y) || 0, k = {
+ Tn: 0,
+ marginLeft: c,
+ marginTop: f,
+ Kcb: c * b.Pha + b.dP,
+ Mcb: f * b.hqa + b.B4
+ }, 30 > u.Tn && (u.Tn++, u[h] = k)), a.marginLeft = k.Kcb, a.marginTop = k.Mcb) : (f = c = 0, (k = u["default"]) || (u["default"] = k = {
+ Tn: 0
+ }));
+ m && (h = k[m], h || (l = m.split(" "), h = {
+ Lcb: (1 - (c + (n(l[0], p.x) || 0))) * b.Pha + b.dP,
+ Jcb: (1 - (f + (n(l[1], p.y) || 0))) * b.hqa + b.B4
+ }, 30 > k.Tn && (k.Tn++, k[m] = h)), a.marginRight = h.Lcb, a.marginBottom = h.Jcb);
+ }
+ function M(a, b, f, c, h) {
+ var m,
+ p,
+ u;
+ m = a.displayAlign;
+ p = a.textAlign;
+ u = a.origin;
+ a = a.extent;
+ f = k.AJ(f);
+ C(f, b, m, p, u, a, c, h);
+ f.id = ia++;
+ return f;
+ }
+ function H(f, c, h, m) {
+ var p,
+ l,
+ r,
+ d,
+ w,
+ A;
+ p = u(h.characterSize || c.characterSize, b.mSa, 2) || 1;
+ l = (l = f.fontSize) && ya.test(l) ? k.jn(k.Ud(l), 25, 200) : void 0;
+ p *= l / 100 || 1;
+ l = f.textOutline;
+ if (l && "none" != l) {
+ d = l.split(" ");
+ za.test(d) ? (A = 0, w = f.color) : (A = 1, w = a(d[0]));
+ r = S(d[A]);
+ d = S(d[A + 1]);
+ }
+ return {
+ characterStyle: h.characterStyle || b.nSa[f.fontFamily] || c.characterStyle,
+ characterSize: p * m,
+ characterColor: a(h.characterColor || f.color || c.characterColor),
+ characterOpacity: u(k.TX(h.characterOpacity, f.opacity, c.characterOpacity), b.Z1, 1),
+ characterEdgeAttributes: h.characterEdgeAttributes || l && ("none" === l ? b.jSa : d ? b.Y1 : b.Lla) || c.characterEdgeAttributes,
+ characterEdgeColor: a(h.characterEdgeColor || w || c.characterEdgeColor),
+ characterEdgeWidth: r,
+ characterEdgeBlur: d,
+ characterItalic: "italic" === f.fontStyle,
+ characterUnderline: "underline" === f.textDecoration,
+ backgroundColor: a(h.backgroundColor || f.backgroundColor || c.backgroundColor),
+ backgroundOpacity: u(k.TX(h.backgroundOpacity, f.opacity, c.backgroundOpacity), b.Z1, 1)
+ };
+ }
+ function G(a, b, f, c, p) {
+ var u;
+ b = H(b, f, c, p);
+ m.Ed(b, function (b, f) {
+ f !== a[b] && (u || (u = h.EA(a)), u[b] = f);
+ });
+ return u || a;
+ }
+ function T(a, b, f, c, m, p, u, l) {
+ var k;
+ k = a[r.Si];
+ f = A(a[r.Si], b, f, m, P);
+ b = f.region;
+ a = k.displayAlign;
+ f = f.textAlign;
+ m = k.origin;
+ k = k.extent;
+ b || a || f || m || k ? ((c = c[b]) ? c = h.EA(c) : a || m || k ? (c = h.EA(O), c.id = ia++) : c = h.EA(X), C(c, p, a, f, m, k, u, l)) : c = X;
+ return c;
+ }
+ function S(a) {
+ a = k.Ud(a);
+ return p.Pv(a, 0, 100) ? a : 0;
+ }
+ function n(a, b) {
+ var f;
+ f = a[a.length - 1];
+ if ("%" === f)
+ return k.jn(.01 * parseFloat(a), 0, 1);
+ if ("c" === f)
+ return k.jn(k.Ud(a) / b, 0, 1);
+ }
+ function q(a) {
+ for (var b = a.length, f = a[--b].endTime; b--; ) {
+ f = h.hn(a[b].endTime, f);
+ }
+ return f;
+ }
+ function B(b) {
+ m.Ed(b, function (f, c) {
+ 0 <= f.toLowerCase().indexOf("color") && (b[f] = a(c));
+ });
+ }
+ function V(a, b) {
+ var f,
+ m,
+ p,
+ u;
+ f = a.pixelAspectRatio;
+ u = {
+ dP: 0,
+ Pha: 1,
+ B4: 0,
+ hqa: 1
+ };
+ a = (a.extent || "640px 480px").split(" ");
+ 2 <= a.length && (f = (f || "").split(" "), m = parseFloat(a[0]) * (parseFloat(f[0]) || 1), p = parseFloat(a[1]) * (parseFloat(f[1]) || 1));
+ m = 0 < m && 0 < p ? m / p : 1280 / 720;
+ b = b || 1280 / 720;
+ f = m / b;
+ .01 < h.vA(b - m) && (b >= m ? (u.dP = (1 - f) / 2, u.Pha = f) : c.Ra(!1, "not implemented"));
+ return u;
+ }
+ function t(a) {
+ var f,
+ c,
+ h,
+ m,
+ p;
+ if (f = a.cellResolution)
+ if ((f = f.split(" "), 2 <= f.length)) {
+ c = k.Ud(f[0]);
+ f = k.Ud(f[1]);
+ if (0 < c && 0 < f)
+ return {
+ x: c,
+ y: f
+ };
+ }
+ f = a.extent;
+ if (f && (f = f.split(" "), 2 <= f.length)) {
+ c = k.Ud(f[0]);
+ p = k.Ud(f[1]);
+ if (a = a.pixelAspectRatio)
+ (f = a.split(" "), h = k.Ud(f[0]), m = k.Ud(f[1]));
+ if (c && p && 1.5 < c * (h || 1) / (p * (m || 1)))
+ return b.hSa;
+ }
+ return b.gSa;
+ }
+ ia = 1;
+ Y = {
+ before: "top",
+ center: "center",
+ after: "bottom"
+ };
+ pa = {
+ left: "left",
+ start: "left",
+ center: "center",
+ right: "right",
+ end: "right"
+ };
+ X = {
+ id: ia++,
+ verticalAlignment: "bottom",
+ horizontalAlignment: "center",
+ marginTop: .1,
+ marginLeft: .1,
+ marginRight: .1,
+ marginBottom: .1
+ };
+ O = {
+ id: ia++,
+ verticalAlignment: "top",
+ horizontalAlignment: "left",
+ marginTop: 0,
+ marginLeft: 0,
+ marginRight: 0,
+ marginBottom: 0
+ };
+ na = ("fontFamily fontSize fontStyle textDecoration color opacity backgroundColor textOutline").split(" ");
+ ha = na.concat(["style", "region"]);
+ P = ["region", "textAlign", "displayAlign", "extent", "origin"];
+ Ha = /^([0-9]+):([0-9]+):([0-9.]+)$/;
+ ja = /^br$/i;
+ ya = /^[0-9]{1,3}%$/;
+ za = /^[0-9]/;
+ return function (f, c, m, p, w) {
+ var S,
+ n,
+ aa,
+ Z,
+ pa,
+ na,
+ Y,
+ X,
+ fa,
+ ja,
+ za,
+ ya,
+ Ha,
+ ma,
+ Ua,
+ z,
+ gb,
+ E,
+ $a,
+ ib,
+ R,
+ Q,
+ U,
+ W,
+ ca,
+ ea,
+ Ie,
+ la,
+ ga,
+ oa;
+ function C() {
+ try {
+ for (var a; U; ) {
+ if ((fa = U[r.Si], W.push({
+ id: ia++,
+ startTime: d(fa.begin, aa),
+ endTime: d(fa.end, aa),
+ region: T(U, ea, na, X, Y, Z, ma, E),
+ textNodes: g(U, Ie, la, ca, na, Y, z, gb, Ua)
+ }), U = U[r.Xz], a = h.vE(), 100 < a - ga)) {
+ ga = Date.now();
+ oa = setTimeout(C, 1);
+ return;
+ }
+ }
+ } catch (kf) {
+ G({
+ ja: k.I.AT,
+ ab: k.Fd(kf)
+ });
+ return;
+ }
+ oa = setTimeout(K, 1);
+ }
+ function K() {
+ var b,
+ f,
+ c,
+ h,
+ m,
+ p,
+ u;
+ function a(a, c) {
+ for (var h, m = [], p = {}, u, l = f.length; l--; ) {
+ h = f[l];
+ u = h.region.id;
+ p[u] || (p[u] = 1, m.unshift(h));
+ }
+ (h = b[b.length - 1]) && h.endTime == a && k.ws(h.blocks, m) ? h.endTime = c : b.push({
+ id: ia++,
+ startTime: a,
+ endTime: c,
+ blocks: m
+ });
+ }
+ try {
+ if (!W.length) {
+ G({
+ U: !0,
+ entries: []
+ });
+ return;
+ }
+ k.fFa(W, "startTime");
+ b = [];
+ f = [];
+ c = W[0];
+ m = W[0].startTime;
+ for (p = 1; f.length || c; ) {
+ for (; !f.length || c && c.startTime == m; ) {
+ f.push(c);
+ m = c.startTime;
+ c = W[p++];
+ }
+ h = q(f);
+ if (!c || h <= c.startTime)
+ for ((a(m, h), m = h, u = f.length); u--; ) {
+ f[u].endTime <= m && f.splice(u, 1);
+ }
+ else (a(m, c.startTime), m = c.startTime, f.push(c), c = W[p++]);
+ }
+ for (p = b.length; p--; ) {
+ b[p].index = p;
+ b[p].previous = b[p - 1];
+ b[p].next = b[p + 1];
+ }
+ } catch (nc) {
+ G({
+ ja: k.I.AT,
+ ab: k.Fd(nc)
+ });
+ return;
+ }
+ G({
+ U: !0,
+ entries: b
+ });
+ }
+ function G(a) {
+ setTimeout(function () {
+ S.abort = k.ff;
+ w(a);
+ }, 1);
+ }
+ S = {
+ abort: function () {
+ oa && clearTimeout(oa);
+ }
+ };
+ try {
+ n = f[r.Si];
+ aa = l.Bj / (k.Ud(n.tickRate) || 1);
+ Z = V(n, c);
+ pa = k.yb(O, {
+ marginLeft: Z.dP,
+ marginTop: Z.B4,
+ marginRight: Z.dP,
+ marginBottom: Z.B4
+ });
+ na = {};
+ Y = {};
+ X = {};
+ ya = f.head;
+ Ha = f.body;
+ ma = t(n);
+ Ua = 1 / ma.y * Z.hqa;
+ z = k.yb({
+ characterStyle: "PROPORTIONAL_SANS_SERIF",
+ characterColor: "#EBEB64",
+ characterEdgeAttributes: b.Y1,
+ characterEdgeColor: "#000000",
+ characterSize: 1
+ }, m, {
+ lw: !0
+ });
+ gb = p || ({});
+ E = {
+ Tn: 0
+ };
+ if (ya) {
+ $a = ya.styling;
+ if ($a)
+ for (za = $a.style; za; ) {
+ fa = za[r.Si];
+ B(fa);
+ na[fa.id] = fa;
+ za = za[r.Xz];
+ }
+ ib = ya.layout;
+ if (ib)
+ for (var N = ib.region; N; ) {
+ fa = N[r.Si];
+ R = fa.id;
+ ja = k.AJ(na[fa.style]);
+ ja = k.yb(ja, fa);
+ for (za = N.style; za; ) {
+ k.yb(ja, za[r.Si]);
+ za = za[r.Xz];
+ }
+ B(ja);
+ Y[R] = ja;
+ X[R] = M(ja, Z, pa, ma, E);
+ N = N[r.Xz];
+ }
+ }
+ Q = Ha.div;
+ U = Q.p;
+ W = [];
+ ca = {};
+ ca = A(Ha[r.Si], ca, na, Y, ha);
+ ca = A(Q[r.Si], ca, na, Y, ha);
+ ea = {};
+ ea = A(Ha[r.Si], ea, na, Y, P);
+ ea = A(Q[r.Si], ea, na, Y, P);
+ Ie = H(ca, z, gb, Ua);
+ k.yb(Ie, {
+ windowColor: a(gb.windowColor || z.windowColor),
+ windowOpacity: u(k.TX(gb.windowOpacity, z.windowOpacity), b.Z1, 1),
+ cellResolution: ma
+ }, {
+ lw: !0
+ });
+ la = {};
+ Q.p = void 0;
+ Q[r.lK] = [];
+ } catch (jf) {
+ G({
+ ja: k.I.AT,
+ ab: k.Fd(jf)
+ });
+ return;
+ }
+ ga = h.vE();
+ oa = setTimeout(C, 1);
+ return S;
+ };
+ })();
+ b.nSa = {
+ "default": "PROPORTIONAL_SANS_SERIF",
+ monospaceSansSerif: "MONOSPACED_SANS_SERIF",
+ monospaceSerif: "MONOSPACED_SERIF",
+ proportionalSansSerif: "PROPORTIONAL_SANS_SERIF",
+ proportionalSerif: "PROPORTIONAL_SERIF",
+ casual: "CASUAL",
+ cursive: "CURSIVE",
+ smallCapitals: "SMALL_CAPITALS",
+ monospace: "MONOSPACED_SANS_SERIF",
+ sansSerif: "PROPORTIONAL_SANS_SERIF",
+ serif: "PROPORTIONAL_SERIF"
+ };
+ b.mSa = {
+ SMALL: .5,
+ MEDIUM: 1,
+ LARGE: 2
+ };
+ b.Z1 = {
+ NONE: 0,
+ SEMI_TRANSPARENT: .5,
+ OPAQUE: 1
+ };
+ b.lSa = {
+ black: "#000000",
+ silver: "#c0c0c0",
+ gray: "#808080",
+ white: "#ffffff",
+ maroon: "#800000",
+ red: "#ff0000",
+ purple: "#800080",
+ fuchsia: "#ff00ff",
+ magenta: "#ff00ff",
+ green: "#00ff00",
+ lime: "#00ff00",
+ olive: "#808000",
+ yellow: "#ffff00",
+ navy: "#000080",
+ blue: "#0000ff",
+ teal: "#008080",
+ aqua: "#00ffff",
+ cyan: "#00ffff",
+ orange: "#ffa500",
+ pink: "#ffc0cb"
+ };
+ b.jSa = "NONE";
+ b.kSa = "RAISED";
+ b.iSa = "DEPRESED";
+ b.Lla = "UNIFORM";
+ b.Y1 = "DROP_SHADOW";
+ b.gSa = {
+ x: 40,
+ y: 19
+ };
+ b.hSa = {
+ x: 52,
+ y: 19
+ };
+ }, function (d) {
+ d.P = {
+ yMa: function (b) {
+ var a;
+ if (b && 0 !== b.length) {
+ a = [];
+ b.forEach(function (b) {
+ var c;
+ void 0 === b.error.code && (b.error.code = 0);
+ void 0 === b.error.description && (b.error.description = "Unknown");
+ a.forEach(function (a) {
+ b.error && b.error.code == a.error.code && b.error.description === a.error.description && (c = a);
+ });
+ c ? c.iR.push(b.mo) : a.push({
+ error: b.error,
+ iR: [b.mo]
+ });
+ });
+ return a;
+ }
+ },
+ PKa: function (b) {
+ var a;
+ a = {
+ freeSize: b.Xj,
+ dailyBytesRemaining: b.QG,
+ bytesWritten: b.fj,
+ time: b.time,
+ duration: b.duration
+ };
+ b.items && (a.items = b.items.map(function (a) {
+ return {
+ key: a.key,
+ operation: a.Jg,
+ itemBytes: a.t0,
+ error: a.error
+ };
+ }));
+ return a;
+ },
+ st: function (b) {
+ return b["catch"](function (a) {
+ setTimeout(function () {
+ throw a;
+ }, 0);
+ });
+ }
+ };
+ }, function (d) {
+ d.P = {
+ Vva: {
+ code: -1,
+ description: "MediaCache is not supported."
+ },
+ xUb: {
+ code: 100,
+ description: "Resource was not found"
+ },
+ k4a: {
+ code: 101,
+ description: "Resource Metadata was not found"
+ },
+ dF: {
+ code: 102,
+ description: "Read failed",
+ vo: function (b, a) {
+ return {
+ code: this.code,
+ description: b,
+ cause: a
+ };
+ }
+ },
+ nV: {
+ code: 200,
+ description: "Daily write limit exceeded"
+ },
+ rE: {
+ code: 201,
+ description: "Capacity has been exceeded"
+ },
+ mV: {
+ code: 202,
+ description: "Write failed, cause unknown",
+ vo: function (b, a) {
+ return {
+ code: this.code,
+ description: b,
+ cause: a
+ };
+ }
+ },
+ SVb: {
+ code: 203,
+ description: "Write failed, cause unknown"
+ },
+ d1a: {
+ code: 300,
+ description: "Failed to delete resource",
+ vo: function (b, a) {
+ return {
+ code: this.code,
+ description: b,
+ cause: a
+ };
+ }
+ },
+ $w: {
+ code: 900,
+ description: "Invalid partition name"
+ },
+ H3a: {
+ code: 700,
+ description: "Invalid parition configuration, commitment exceeds capacity."
+ },
+ Csa: {
+ code: 701,
+ description: "Failed to initialize underlying disk cache."
+ },
+ j4a: {
+ code: 800,
+ description: 'Metadata failed to pass validation. Metadata must be an object with a numeric "lifespan" property.'
+ }
+ };
+ }, function (d, b, a) {
+ var r;
+ function c() {}
+ function k(a, b) {
+ this.Yo = a;
+ void 0 !== b ? (r(b <= a.Gp, "require remain_sec <= chunk.sec but has " + b + " and " + a.Gp), this.uj = b) : this.uj = a.Gp;
+ }
+ function l(a) {
+ void 0 === a && (a = []);
+ this.Zk = [];
+ this.vg = this.nk = 0;
+ for (var b in a) {
+ this.add(a[b], void 0);
+ }
+ }
+ r = a(5).assert;
+ c.prototype = Error();
+ k.prototype.constructor = k;
+ k.prototype.$o = function () {
+ return new k(this.Yo, this.uj);
+ };
+ l.prototype.constructor = l;
+ l.prototype.add = function (a, b) {
+ a = new k(a, b);
+ this.Zk.push(a);
+ this.vg += a.uj;
+ this.nk += a.Yo.Ev() * a.uj;
+ };
+ l.prototype.$o = function () {
+ var a,
+ b;
+ a = new l(void 0);
+ for (b in this.Zk) {
+ a.add(this.Zk[b].Yo, this.Zk[b].uj);
+ }
+ return a;
+ };
+ l.prototype.Jq = function () {
+ try {
+ return this.Zk[0];
+ } catch (h) {}
+ };
+ l.prototype.JSa = function (a) {
+ var b;
+ for (r(0 <= a, "unexpected play_for_x_sec: x=" + a); 0 < a; ) {
+ if (void 0 === this.Jq())
+ throw new c();
+ if (a < this.Jq().uj) {
+ b = this.Jq().Yo.Ev() * a;
+ this.Jq().uj -= a;
+ this.vg -= a;
+ this.nk -= b;
+ a = 0;
+ } else (b = this.Zk.shift(), this.vg -= b.uj, this.nk -= b.Yo.Ev() * b.uj, a -= b.uj);
+ }
+ };
+ l.prototype.gDb = function (a) {
+ var h;
+ r(0 <= a, "unexpected play_y_kb: y=" + a);
+ for (var b = 0; 0 < a; ) {
+ if (void 0 === this.Jq())
+ throw new c();
+ if (a < this.Jq().uj * this.Jq().Yo.Ev()) {
+ h = a / this.Jq().Yo.Ev();
+ this.Jq().uj -= h;
+ this.vg -= h;
+ this.nk -= a;
+ b += h;
+ a = 0;
+ } else (h = this.Zk.shift(), this.vg -= h.uj, this.nk -= h.Yo.Ev() * h.uj, b += h.uj, a -= h.Yo.Ev() * h.uj);
+ }
+ return b;
+ };
+ d.P = {
+ Gra: l,
+ e0a: c
+ };
+ }, function (d, b, a) {
+ var c;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.gca = b.vw = b.sJa = void 0;
+ c = a(111).tJa;
+ b.sJa = function (a, b, c) {
+ var h,
+ p,
+ m;
+ h = 0;
+ if (c) {
+ a.some(function (a) {
+ var f;
+ f = a.b;
+ a = a.m;
+ if (b <= f)
+ return (h = m && f !== p ? m + (a - m) / (f - p) * (b - p) : a, !0);
+ p = f;
+ h = m = a;
+ return !1;
+ });
+ } else
+ a.some(function (a) {
+ h = a.m;
+ return b <= a.b;
+ });
+ return h;
+ };
+ b.vw = function (a, b, r) {
+ var h;
+ b = (null === (h = b.Ia) || void 0 === h ? void 0 : h.Ca) || 0;
+ return a.qeb ? (a = c(a.peb, r.Bl - r.ud, 1), b * (1 - a)) : b * a.b4 / 100;
+ };
+ b.gca = function (a, b) {
+ return a < 2 * b ? a / 2 : a - b;
+ };
+ }, function (d, b, a) {
+ var c;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.tK = void 0;
+ c = a(214);
+ d = (function () {
+ var a00;
+ a00 = 2;
+ for (; a00 !== 3; ) {
+ switch (a00) {
+ case 2:
+ a.prototype.uIa = function (a, b) {
+ var c00,
+ h;
+ c00 = 2;
+ for (; c00 !== 3; ) {
+ switch (c00) {
+ case 2:
+ h = null === this.sca ? a * (100 - this.config.b4) / 100 : c.gca(a, this.sca);
+ b = null !== b && void 0 !== b ? b : this.jI;
+ this.config.Gja && b ? (a = c.gca(a, b), a = Math.max(a, h)) : a = h;
+ return a;
+ break;
+ }
+ }
+ };
+ a.prototype.yJ = function (a) {
+ var d00;
+ d00 = 2;
+ for (; d00 !== 1; ) {
+ switch (d00) {
+ case 2:
+ this.sca = a;
+ d00 = 1;
+ break;
+ }
+ }
+ };
+ a.prototype.Vpa = function (a) {
+ var e00;
+ e00 = 2;
+ for (; e00 !== 1; ) {
+ switch (e00) {
+ case 2:
+ this.config = a;
+ e00 = 1;
+ break;
+ case 4:
+ this.config = a;
+ e00 = 2;
+ break;
+ e00 = 1;
+ break;
+ }
+ }
+ };
+ a00 = 4;
+ break;
+ case 4:
+ return a;
+ break;
+ case 14:
+ return a;
+ break;
+ a00 = 3;
+ break;
+ }
+ }
+ function a(a, b) {
+ var b00;
+ b00 = 2;
+ for (; b00 !== 3; ) {
+ switch (b00) {
+ case 2:
+ var M4P = "1";
+ M4P += "SIYbZrN";
+ M4P += "JCp9";
+ this.config = a;
+ this.jI = b;
+ this.sca = null;
+ M4P;
+ b00 = 3;
+ break;
+ }
+ }
+ }
+ })();
+ b.tK = d;
+ }, function (d, b, a) {
+ var c;
+ b = a(827);
+ c = a(387);
+ a = a(825);
+ d.P = {
+ STARTING: a.pVa,
+ BUFFERING: b.m3,
+ REBUFFERING: b.m3,
+ PLAYING: c.uR,
+ PAUSED: c.uR
+ };
+ }, function (d, b, a) {
+ var c;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.n2 = void 0;
+ c = a(16);
+ b.n2 = function (a) {
+ switch (a) {
+ case c.pa.Xd:
+ a = c.Bd.Xd;
+ break;
+ case c.pa.gf:
+ a = c.Bd.gf;
+ break;
+ case c.pa.Sg:
+ case c.pa.Bo:
+ case c.pa.eF:
+ a = c.Bd.Bo;
+ break;
+ default:
+ a = c.Bd.NA;
+ }
+ return a;
+ };
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r,
+ h;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Zz = void 0;
+ c = a(0);
+ k = a(80);
+ l = a(5);
+ d = a(33);
+ r = a(400);
+ h = a(73);
+ a = (function (a) {
+ function b(b, c, m, p, l) {
+ m = a.call(this, b, c, m, p, l) || this;
+ h.Rh.call(m, b, c);
+ m.ec = 0;
+ m.Sa || m.ik();
+ m.Ei = !1;
+ return m;
+ }
+ c.__extends(b, a);
+ Object.defineProperties(b.prototype, {
+ kc: {
+ get: function () {
+ return !1;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ b.prototype.push = function (b) {
+ this.ec += b.da;
+ a.prototype.push.call(this, b);
+ };
+ b.prototype.EC = function () {
+ return !this.Ei && !!this.ta.length && this.ta.every(function (a) {
+ return a.EC();
+ });
+ };
+ b.prototype.qG = function (a, b) {
+ l.assert(!this.Ei);
+ this.Ei = this.ta.every(function (f) {
+ return f.EC() ? f.qG(a, b, void 0, void 0) : !1;
+ });
+ return {
+ U: this.Ei
+ };
+ };
+ b.prototype.XFb = function () {
+ this.ta.forEach(function (a) {
+ a.bR();
+ });
+ };
+ b.prototype.Yj = function () {
+ return this.ta ? this.ta[0].Yj() + "-" + this.ta[this.ta.length - 1].Yj() : "empty";
+ };
+ b.prototype.toString = function () {
+ return h.Rh.prototype.toString.call(this) + "(aggregate)";
+ };
+ b.prototype.toJSON = function () {
+ var b;
+ b = a.prototype.toJSON.call(this);
+ k(h.Rh.prototype.toJSON.call(this), b);
+ return b;
+ };
+ return b;
+ })(r.S4);
+ b.Zz = a;
+ d.Ve(h.Rh, a);
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r,
+ h,
+ p,
+ m,
+ f,
+ u;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.TS = void 0;
+ c = a(0);
+ a(5);
+ d = a(33);
+ k = a(218);
+ l = a(73);
+ r = a(167);
+ h = a(19);
+ p = a(80);
+ m = a(4).wk;
+ f = a(838);
+ a = a(837);
+ u = (function (a) {
+ function b(b, f, c, h, p, u, k) {
+ var g00,
+ r;
+ g00 = 2;
+ for (; g00 !== 6; ) {
+ switch (g00) {
+ case 4:
+ r = r.length ? "(" + r.join(",") + ")" : "";
+ void 0 === c.responseType && (c.responseType = c.Sa || m.gc && !m.gc.lJ.MA ? 0 : 1);
+ r = a.call(this, b, f, r, c, h, u, k) || this;
+ l.Rh.call(r, b, c);
+ g00 = 7;
+ break;
+ case 7:
+ return r;
+ break;
+ case 2:
+ var N4P = "e";
+ N4P += "d";
+ N4P += "i";
+ N4P += "t";
+ var m4P = "c";
+ m4P += "a";
+ m4P += "c";
+ m4P += "h";
+ m4P += "e";
+ var Z4P = "1";
+ Z4P += "SI";
+ Z4P += "YbZrN";
+ Z4P += "JCp";
+ Z4P += "9";
+ r = this;
+ Z4P;
+ r = [m4P, N4P].filter(function (a, b) {
+ var h00;
+ h00 = 2;
+ for (; h00 !== 1; ) {
+ switch (h00) {
+ case 2:
+ return [p, c.Sa][b];
+ break;
+ case 4:
+ return [p, c.Sa][b];
+ break;
+ h00 = 1;
+ break;
+ }
+ }
+ });
+ g00 = 4;
+ break;
+ }
+ }
+ }
+ var f00;
+ f00 = 2;
+ for (; f00 !== 3; ) {
+ switch (f00) {
+ case 8:
+ c.__extends(b, a);
+ f00 = 3;
+ break;
+ f00 = 1;
+ break;
+ case 1:
+ b.create = function (a, c, p, u, l, d, w) {
+ var i00,
+ A,
+ H,
+ g;
+ i00 = 2;
+ for (; i00 !== 19; ) {
+ switch (i00) {
+ case 7:
+ A = Math.ceil(u.da / A);
+ i00 = 6;
+ break;
+ case 4:
+ A = Math.ceil(u.da / u.SC);
+ d = u.offset;
+ H = u.da;
+ i00 = 8;
+ break;
+ case 10:
+ return l;
+ break;
+ case 8:
+ l = new k.Zz(a, u, l, c, w);
+ i00 = 7;
+ break;
+ case 5:
+ i00 = u.SC && u.da > u.SC ? 4 : 20;
+ break;
+ case 11:
+ var Y4P = "su";
+ Y4P += "bre";
+ Y4P += "qu";
+ Y4P += "est";
+ l.push(new r.aA(a, p, Y4P, g, l, c, w));
+ i00 = 6;
+ break;
+ case 14:
+ g = {
+ offset: d,
+ da: Math.min(H, A),
+ responseType: u.responseType
+ };
+ d += g.da;
+ H -= g.da;
+ i00 = 11;
+ break;
+ case 20:
+ return new b(a, p, u, l, d, c, w);
+ break;
+ case 2:
+ i00 = !c.Lg && u.Sa && a.L === h.Na.VIDEO && m.gc && m.gc.lJ.MA ? 1 : 5;
+ break;
+ case 6:
+ i00 = 0 < H ? 14 : 10;
+ break;
+ case 1:
+ return new f.Rqa(a, p, u, l, d, c, w);
+ break;
+ }
+ }
+ };
+ b.prototype.toString = function () {
+ var j00;
+ j00 = 2;
+ for (; j00 !== 1; ) {
+ switch (j00) {
+ case 2:
+ return r.aA.prototype.toString.call(this) + ":" + l.Rh.prototype.toString.call(this);
+ break;
+ }
+ }
+ };
+ return b;
+ break;
+ case 2:
+ c.__extends(b, a);
+ f00 = 1;
+ break;
+ }
+ }
+ })(r.aA);
+ b.TS = u;
+ p(a["default"], u.prototype);
+ d.Ve(l.Rh, u, !1);
+ }, function (d, b, a) {
+ var k,
+ l,
+ r,
+ h,
+ p,
+ m;
+ function c(a) {
+ var b;
+ b = a.qa;
+ return a.Ib(p.fa.Jd(0 > b ? Math.ceil(b) : Math.floor(b)));
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.l5 = b.Xka = void 0;
+ k = a(0);
+ d = a(18);
+ l = a(19);
+ r = a(4);
+ h = a(843);
+ p = a(27);
+ m = a(5);
+ b.Xka = c;
+ a = (function (a) {
+ function b(b, f, c, h, m, p, u) {
+ var l,
+ k;
+ k = a.call(this) || this;
+ k.u = b;
+ k.De = f;
+ k.lf = c;
+ k.Ec = h;
+ k.K = m;
+ k.Y = p;
+ k.ng = u;
+ k.jf = k.u.error.bind(k.u);
+ k.ib = k.u.warn.bind(k.u);
+ k.Kj = k.u.trace.bind(k.u);
+ null === (l = h.events) || void 0 === l ? void 0 : l.addListener("ready", function () {
+ k.xx();
+ });
+ k.reset();
+ return k;
+ }
+ k.__extends(b, a);
+ Object.defineProperties(b.prototype, {
+ endOfStream: {
+ get: function () {
+ return this.RV;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ BX: {
+ get: function () {
+ return this.Ec ? this.Ec.BX : -1;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ GOb: {
+ get: function () {
+ return this.Mo.length;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ vwb: {
+ get: function () {
+ return this.aB;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ YWa: {
+ get: function () {
+ return !!this.Ec.$mb;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ Mz: {
+ get: function () {
+ return !!this.Ec.reset;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ b.prototype.reset = function (a) {
+ var b,
+ f;
+ this.Bu = !1;
+ a || (this.Mo = []);
+ this.gW = this.aB = this.oaa = this.LF = void 0;
+ this.WF = p.fa.Cc;
+ this.bB = void 0;
+ this.jVa = new h.Bza(this.K, this.u);
+ this.RV = !1;
+ this.kba(p.fa.Cc);
+ null === (f = (b = this.Ec).reset) || void 0 === f ? void 0 : f.call(b);
+ };
+ b.prototype.aKa = function () {
+ this.oaa = !0;
+ };
+ b.prototype.pause = function () {
+ this.Bu = !0;
+ };
+ b.prototype.resume = function () {
+ this.Bu = !1;
+ this.xx();
+ };
+ b.prototype.Uga = function () {
+ var a;
+ return null === (a = this.aB) || void 0 === a ? void 0 : a.ie;
+ };
+ b.prototype.Ldb = function (a) {
+ var b;
+ if (this.K.ZIa) {
+ m.assert(a.Ja);
+ b = a.Ja.Gc;
+ m.assert(void 0 !== a.cc);
+ m.assert(void 0 !== b.Qb);
+ if (a.cc >= b.Qb)
+ return;
+ a.Qm !== b.pe && a.SVa(new p.fa(b.pe, 1E3));
+ }
+ this.Mo.push(a);
+ this.xx();
+ };
+ b.prototype.sr = function () {
+ this.xx();
+ };
+ b.prototype.S2 = function (a) {
+ a = this.Mo.indexOf(a);
+ -1 !== a && this.Mo.splice(a, 1);
+ };
+ b.prototype.mRa = function (a, b) {
+ this.K.eca && b && void 0 === this.aB && this.qBa(a, 0);
+ this.xx();
+ };
+ b.prototype.I1 = function () {
+ this.RV || (this.RV = !0, this.xx(), this.YWa || this.Ec.endOfStream());
+ };
+ b.prototype.s3 = function () {
+ return JSON.stringify(this.Mo);
+ };
+ b.prototype.kba = function (a) {
+ this.VDa = a;
+ this.Ec.kJb(a.Ab, a.S);
+ };
+ b.prototype.xx = function () {
+ var a,
+ b,
+ f,
+ c,
+ h,
+ m,
+ p,
+ u;
+ b = this.K;
+ if (this.Mo.length)
+ if (this.Ec && !1 !== this.Ec.ready) {
+ f = this.Mo[0];
+ if (this.Bu)
+ this.XF("@" + r.time.ea() + ", bufferManager _append ignored, paused, nextRequest: " + JSON.stringify(f));
+ else if (!f.complete && f.hs)
+ (this.ib("aborted MediaRequest should not appear in the toAppend list"), this.XF("@" + r.time.ea() + ", append: removing aborted request from toAppend: " + f.toString()), this.Mo.shift());
+ else {
+ c = f.stream;
+ h = c.O;
+ if (c.Ii)
+ if (this.DJb(c, f.index))
+ (this.oaa = !1, this.qBa(c, f.index));
+ else if ((c = this.Y.Ov(h) || this.uub(c), !b.iK || c))
+ if ((c = f.Zc - this.Y.Sd(), !(this.De === l.Na.AUDIO && f.Rs && f.Sa && !b.zt && !this.RV && 1 === this.Mo.length && c > b.zQa) || null !== (a = f.rR) && void 0 !== a && a.vOa)) {
+ if (b.ZIa || b.Fmb) {
+ a = f.Ja.Gc;
+ m = this.qlb();
+ if (m) {
+ p = a.jj;
+ u = f.Qb >= m;
+ c = c > b.zQa;
+ if (m < a.Qb && u && c && !p)
+ return;
+ }
+ }
+ b.tCb && this.ng && (b = this.ng(h.Za)) && !b.XM ? this.pause() : (this.Mo.shift(), this.G7a(f));
+ }
+ }
+ } else
+ this.XF("@" + r.time.ea() + ", append: not appending, sourceBuffer not ready");
+ };
+ b.prototype.DJb = function (a, b) {
+ var f;
+ if (this.oaa || void 0 === this.LF || a.wa !== this.LF.wa)
+ return !0;
+ a = a.Ii;
+ m.assert(a);
+ f = this.LF.aOa;
+ return f === a.length - 1 ? !1 : b >= a[f + 1].pC;
+ };
+ b.prototype.uub = function (a) {
+ if (void 0 === this.LF)
+ return !1;
+ a = a.Ii;
+ m.assert(a);
+ return !1 === a[this.LF.aOa].Uj;
+ };
+ b.prototype.qlb = function () {
+ throw Error("not supported");
+ };
+ b.prototype.C7a = function (a) {
+ var b,
+ f;
+ if (a.Ni) {
+ f = null === (b = this.lf.gc) || void 0 === b ? void 0 : b.OXb;
+ this.K.MNb && void 0 !== f && 0 <= f ? (b = new p.fa(f, 48E3), this.WF = a.Ni.add(b)) : this.K.yB && (this.WF = a.Ni);
+ }
+ };
+ b.prototype.qBa = function (a, b) {
+ var f;
+ f = a.Ii.reduce(function (a, f, c) {
+ return f.pC <= b ? c : a;
+ }, 0);
+ if (this.Ec.appendBuffer(a.Ii[f].data, {
+ kc: !0,
+ profile: a.profile,
+ R: a.R,
+ wa: a.id
+ }))
+ (this.XF("@" + r.time.ea() + ", header appended, streamId: " + a.wa), this.LF = {
+ wa: a.wa,
+ aOa: f
+ }, this.Eab(a.O.Za || 0, a.wa, f), this.C7a(a), this.xx());
+ else
+ throw (this.ib("appendHeader error: " + this.Ec.error), this.XF("@" + r.time.ea() + ", appendHeader error: " + this.Ec.error), Error("appendHeaderError"));
+ };
+ b.prototype.G7a = function (a) {
+ var b,
+ f,
+ c,
+ h,
+ m,
+ u,
+ k,
+ d;
+ m = a.HEb || p.fa.Cc;
+ u = a.Ja.Gc.aa;
+ u.oa && Infinity !== u.oa && (u = new p.fa(u.oa, 1E3).add(m).qh, Infinity === this.lf.duration || this.lf.duration < u) && (this.lf.duration = u);
+ if (void 0 === this.gW || m && !m.equal(this.gW))
+ (u = this.WF.add(this.jVa.ou).add(m), this.kba(u), this.gW = m);
+ m = this.jVa.Ona(this.De, a, this.bB, this.WF, this.gW, this.aB, this.Mo[0], this.J9a, this.kba.bind(this), this.Gab.bind(this));
+ u = m.Ona;
+ k = m.dmb;
+ m = m.Wdb;
+ if (void 0 === this.aB && !this.K.Ika && a.stream.Ni && this.K.Qo) {
+ d = null === (b = a.Cl) || void 0 === b ? void 0 : b.Ib(a.stream.Ni).add(this.VDa);
+ d.lessThan(p.fa.Cc) && a.Zea(Math.ceil(d.u1(-1).pv(a.stream.Wa)));
+ }
+ u = a.qG(this.Ec, this.lf.gc, this.aB, this.Mo[0], u, k);
+ b = u.U;
+ (u = u.ho) && this.emit(u.type, u);
+ if (b)
+ (void 0 === this.bB || this.De !== l.Na.AUDIO || a.ot.equal(this.bB.add(m)) || (this.zab(a, this.bB.add(m)), this.bB = void 0), this.XF("@" + r.time.ea() + ", request appended, type: " + a.L + ", streamId: " + a.wa + ", pts: " + a.Zc + "-" + a.ie), this.aB = a, a.Rs ? (this.bB = a.mt, this.J9a = this.b8a(a, this.VDa || p.fa.Cc), null === (c = (f = this.Ec).$mb) || void 0 === c ? void 0 : c.call(f, a.rR), this.K.mE && (null === (h = a.rR) || void 0 === h ? 0 : h.vOa) && this.I1()) : this.bB = void 0, this.Fab(a), this.xx());
+ else {
+ if (void 0 !== this.Ec.error) {
+ if ("done" === this.Ec.error)
+ return;
+ this.jf("failure to append queued mediaRequest: " + (a && a.toJSON()) + " err: " + this.Ec.error);
+ throw this.Ec.error;
+ }
+ a = Error("failure to append queued mediaRequest: " + (a && JSON.stringify(a)) + " err: " + this.Ec.error);
+ this.jf(a.message);
+ throw a;
+ }
+ };
+ b.prototype.b8a = function (a, b) {
+ var f,
+ h;
+ f = a.stream.Wa;
+ h = a.sq;
+ this.K.Qo && a.stream.Ni && (h = h.Ib(a.stream.Ni));
+ return c(h.Ib(f)).add(c(f)).add(c(b));
+ };
+ b.prototype.Eab = function (a, b, f) {
+ a = {
+ type: "headerAppended",
+ mediaType: this.De,
+ manifestIndex: a,
+ streamId: b,
+ isIndex: f
+ };
+ this.emit(a.type, a);
+ };
+ b.prototype.Fab = function (a) {
+ a = {
+ type: "requestAppended",
+ mediaType: this.De,
+ request: a
+ };
+ this.emit(a.type, a);
+ };
+ b.prototype.XF = function (a) {
+ a = {
+ type: "managerdebugevent",
+ message: a
+ };
+ this.emit(a.type, a);
+ };
+ b.prototype.zab = function (a, b) {
+ var f;
+ f = a.cc;
+ a = a.ot.Ib(b).qa;
+ f = {
+ type: "logdata",
+ target: "endplay",
+ fields: {
+ audiodisc: {
+ type: "array",
+ value: [f, a]
+ }
+ }
+ };
+ this.emit(f.type, f);
+ };
+ b.prototype.Gab = function (a, b) {
+ a = {
+ type: "logdata",
+ target: "endplay",
+ fields: {
+ maxavsyncerror: a.qa,
+ minavsyncerror: b.qa
+ }
+ };
+ this.emit(a.type, a);
+ };
+ return b;
+ })(d.EventEmitter);
+ b.l5 = a;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r,
+ h,
+ p,
+ m,
+ f;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.d6a = b.WS = void 0;
+ c = a(0);
+ d = a(18);
+ k = a(162);
+ l = a(44);
+ r = a(4);
+ h = a(11);
+ a = a(33);
+ p = r.Promise;
+ m = (function () {
+ function a(a, b) {
+ this.console = a;
+ this.bg = b;
+ this.j$a = this.VL = 0;
+ this.Tf = [];
+ this.console = h.Zy(r, this.console, "QueueIterator:");
+ }
+ Object.defineProperties(a.prototype, {
+ dlb: {
+ get: function () {
+ return this.VL;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ aHa: {
+ get: function () {
+ var a,
+ b,
+ f;
+ for (b = 0; b < this.Tf.length; b++) {
+ f = this.Tf[b];
+ if (!f.wP || (null === (a = f.item) || void 0 === a ? 0 : a.done))
+ break;
+ }
+ return b;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ count: {
+ get: function () {
+ return this.bg;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ Mv: {
+ get: function () {
+ return 0 === this.bg;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ ona: {
+ get: function () {
+ var a;
+ for (a = 0; a < this.Tf.length && this.Tf[a].$ia; a++) { ;
+ }
+ return a;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ head: {
+ get: function () {
+ var a;
+ a = c.__read(this.Tf, 1)[0];
+ return (a = a && a.item) && !a.done && a.value;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ fla: {
+ get: function () {
+ var a;
+ for (a = 0; a < this.Tf.length && this.Tf[a].wP; a++) { ;
+ }
+ return a;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ a.prototype.ZY = function () {
+ var a;
+ if (void 0 === this.bg) {
+ a = this.console;
+ l.Oa && a && a.trace("QueueIterator: enqueueEnd");
+ this.Wpa(this.fla - (this.bg || 0));
+ }
+ };
+ a.prototype.bn = function () {
+ return this.Tf.map(function (a) {
+ return a.item;
+ });
+ };
+ a.prototype.Apa = function () {
+ return this.Tf.filter(function (a) {
+ return (null === a || void 0 === a ? void 0 : a.item) && !a.item.done;
+ }).map(function (a) {
+ return a.item.value;
+ });
+ };
+ a.prototype.Wpa = function (a) {
+ var b;
+ l.Oa && this.console.trace("updateCount", {
+ y_b: this.bg,
+ XG: a
+ });
+ if (void 0 !== this.bg) {
+ b = this.Tf[this.bg];
+ b && this.Kia(b);
+ }
+ this.bg = void 0 === this.bg ? a : void 0 === a ? a : this.bg + a;
+ void 0 !== this.bg && (this.bg = Math.max(0, this.bg), (b = this.Tf[this.bg]) && b.aI.resolve({
+ done: !0
+ }));
+ };
+ a.prototype.enqueue = function (a) {
+ l.Oa && this.console.trace("Enqueue called");
+ return this.DEb(this.fla, {
+ value: a,
+ done: !1
+ }).lIa.qt;
+ };
+ a.prototype.sna = function () {
+ l.Oa && this.console.trace("resetEnd");
+ this.Wpa(void 0);
+ };
+ a.prototype.clear = function (a) {
+ var b,
+ f,
+ c;
+ l.Oa && this.console.trace("clear");
+ this.BTa();
+ b = this.ona;
+ f = this.Tf.length - b;
+ if (0 < f) {
+ c = {
+ index: b,
+ sla: f
+ };
+ l.Oa && this.console.trace("Removing items", c);
+ this.Tf.splice(b, f);
+ this.emit("onRemoved", c);
+ }
+ for (f = 1; f < b; f++) {
+ this.Kia(this.Tf[f]);
+ }
+ this.bg = void 0;
+ this.Wpa(a ? a + b : a);
+ this.VL && (this.VL = 0);
+ };
+ a.prototype.tLa = function () {
+ var a,
+ b;
+ a = this;
+ b = h.Zy(r, this.console, "QueueIteratorInstance::");
+ return new f(this, function (b) {
+ return a.LLa(b);
+ }, b);
+ };
+ a.prototype.YG = function () {
+ var a;
+ if (0 < this.ona) {
+ a = c.__read(this.Tf, 1)[0];
+ if (a.wP)
+ return (l.Oa && this.console.trace("dequeue", a.id), this.BTa(1), this.emit("onDequeue", a.aI.qt));
+ }
+ };
+ a.prototype.remove = function (a) {
+ var b,
+ f,
+ c;
+ for (b = 0; b < this.Tf.length; b++) {
+ f = this.Tf[b];
+ c = f.item;
+ if (c && !c.done && c.value === a) {
+ this.Tf.splice(b, 1);
+ l.Oa && this.console.trace("removed", {
+ id: f.id
+ });
+ this.emit("onRemoved", {
+ index: b,
+ sla: 1
+ });
+ break;
+ }
+ }
+ };
+ a.prototype.BTa = function (a) {
+ var b;
+ a = a || Math.min(this.ona, this.fla);
+ if (0 < a) {
+ b = this.Tf.splice(0, a);
+ this.bg && (this.bg -= a);
+ l.Oa && this.console.trace("pruned", a);
+ setTimeout(function () {
+ b.forEach(function (a) {
+ a.lIa.resolve();
+ });
+ }, 0);
+ this.emit("onRemoved", {
+ index: 0,
+ sla: a
+ });
+ this.VL += a;
+ }
+ };
+ a.prototype.LLa = function (a) {
+ var b;
+ l.Oa && this.console.trace("getNextItemCalled", {
+ offset: a
+ });
+ if (void 0 === this.count || 0 < this.count) {
+ this.sNa(a);
+ b = this.Tf[a];
+ b.IGb.resolve();
+ a = b.aI.qt;
+ l.Oa && this.console.trace("getNextItem:return", {
+ id: b.id
+ });
+ } else (l.Oa && this.console.trace("getNextItem:returnDone"), a = p.resolve({
+ done: !0
+ }));
+ return a;
+ };
+ a.prototype.DEb = function (a, b) {
+ var f;
+ f = !b.done && b.value;
+ f = f && f.toJSON ? f.toJSON() : f;
+ l.Oa && this.console.trace("Providing result", {
+ mdb: a,
+ item: f
+ });
+ this.sNa(a);
+ a = this.Tf[a];
+ f = a.aI.resolve;
+ f(b);
+ return a;
+ };
+ a.prototype.sNa = function (a) {
+ var b;
+ if (void 0 === this.Tf[a]) {
+ b = {};
+ this.Kia(b);
+ this.Tf[a] = b;
+ a === this.bg && b.aI.resolve({
+ done: !0
+ });
+ l.Oa && this.console.trace("Item initialized", {
+ mdb: a
+ });
+ }
+ };
+ a.prototype.Zda = function (a) {
+ var b;
+ b = {};
+ b.qt = new p(function (f, c) {
+ b.resolve = function (b) {
+ f(b);
+ a && a(b);
+ };
+ b.reject = c;
+ });
+ return b;
+ };
+ a.prototype.Kia = function (a) {
+ var b;
+ b = this;
+ a.aI = this.Zda(function (f) {
+ a.item = f;
+ a.wP = !0;
+ l.Oa && b.console.trace("Item resolved", {
+ id: a.id
+ });
+ });
+ a.id && a.$ia && !a.wP && (a.aI.resolve({
+ done: !0
+ }), l.Oa && this.console.warn("Overwriting requested queue item", a.id));
+ a.lIa = this.Zda();
+ a.IGb = this.Zda(function () {
+ a.$ia = !0;
+ l.Oa && b.console.trace("Item requested", {
+ id: a.id
+ });
+ });
+ a.id = this.j$a++;
+ a.$ia = !1;
+ a.wP = !1;
+ a.item = void 0;
+ };
+ a.prototype.xpb = function () {
+ var a,
+ b;
+ a = this;
+ b = new k.eA(function () {
+ var f,
+ c;
+ if (0 === a.count)
+ return k.eA.Eha();
+ f = a.LLa(0);
+ c = a.Tf[0];
+ f.then(function () {
+ b.VH || c === a.Tf[0] && a.YG();
+ });
+ return f;
+ });
+ return b;
+ };
+ return a;
+ })();
+ b.WS = m;
+ a.Ve(d.EventEmitter, m);
+ f = (function (a) {
+ function b(b, f, c) {
+ var h;
+ h = a.call(this, function () {
+ l.Oa && h.console.trace("Next item requested", {
+ index: h.index
+ });
+ return h.gHb(h.index++);
+ }) || this;
+ h.parent = b;
+ h.gHb = f;
+ h.console = c;
+ h.HF = !1;
+ h.index = 0;
+ h.taa = !1;
+ h.MRa = function (a) {
+ var b;
+ b = a.index;
+ a = a.sla;
+ h.index >= b && (h.index = Math.max(b, h.index - a));
+ b = h.console;
+ l.Oa && b && b.trace("QueueIteratorInstance: onRemoved modified", h.index);
+ };
+ return h;
+ }
+ c.__extends(b, a);
+ b.prototype.Fg = function () {
+ this.console.trace("disposed");
+ this.HF = !0;
+ this.yc();
+ a.prototype.Fg.call(this);
+ };
+ b.prototype.next = function () {
+ this.VH || this.$_();
+ return a.prototype.next.call(this);
+ };
+ b.prototype.cancel = function () {
+ this.yc();
+ return a.prototype.cancel.call(this);
+ };
+ b.prototype.yc = function () {
+ this.parent.HI("onRemoved", this.MRa);
+ this.taa = !1;
+ };
+ b.prototype.$_ = function () {
+ this.taa || (this.taa = !0, this.parent.on("onRemoved", this.MRa));
+ };
+ return b;
+ })(k.eA);
+ b.d6a = f;
+ }, function (d, b, a) {
+ var k;
+ function c(a, b) {
+ return a < b ? -1 : a > b ? 1 : 0;
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.hU = void 0;
+ k = a(0);
+ d = (function () {
+ function a(a, b) {
+ this.data = null !== a && void 0 !== a ? a : [];
+ this.compare = null !== b && void 0 !== b ? b : c;
+ if (!this.empty)
+ for (a = (this.length >> 1) - 1; 0 <= a; a--) {
+ this.TBa(a);
+ }
+ }
+ Object.defineProperties(a.prototype, {
+ length: {
+ get: function () {
+ return this.data.length;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ empty: {
+ get: function () {
+ return 0 === this.data.length;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ a.prototype.push = function (a) {
+ this.data.push(a);
+ this.aEa(this.length - 1);
+ };
+ a.prototype.pop = function () {
+ var a,
+ b;
+ if (!this.empty) {
+ a = this.data[0];
+ b = this.data.pop();
+ this.empty || (this.data[0] = b, this.TBa(0));
+ return a;
+ }
+ };
+ a.prototype.mz = function () {
+ return this.data[0];
+ };
+ a.prototype.iEb = function (a) {
+ a = this.data.indexOf(a);
+ -1 !== a && this.aEa(a);
+ };
+ a.prototype.map = function (a) {
+ return this.data.map(a);
+ };
+ a.prototype.find = function (a) {
+ return k.__read(this.data.filter(a), 1)[0];
+ };
+ a.prototype.clear = function () {
+ this.data = [];
+ };
+ a.prototype.remove = function (a) {
+ a = this.data.indexOf(a);
+ -1 !== a && this.data.splice(a, 1);
+ };
+ a.prototype.aEa = function (a) {
+ for (var b = this.data, c = this.compare, m = b[a], f, u; 0 < a; ) {
+ f = a - 1 >> 1;
+ u = b[f];
+ if (0 <= c(m, u))
+ break;
+ b[a] = u;
+ a = f;
+ }
+ b[a] = m;
+ };
+ a.prototype.TBa = function (a) {
+ for (var b = this.data, c = this.compare, m = this.length >> 1, f = b[a], u, l, k; a < m; ) {
+ u = (a << 1) + 1;
+ k = b[u];
+ l = u + 1;
+ l < this.length && 0 > c(b[l], k) && (u = l, k = b[l]);
+ if (0 <= c(k, f))
+ break;
+ b[a] = k;
+ a = u;
+ }
+ b[a] = f;
+ };
+ return a;
+ })();
+ b.hU = d;
+ }, function (d, b, a) {
+ var h,
+ p,
+ m,
+ f,
+ u,
+ w;
+ function c(a) {
+ var b;
+ b = a.kaa;
+ this.K = a;
+ this.vi = p.Xe.HAVE_NOTHING;
+ this.zF = a.zF;
+ a = new u(this.zF);
+ this.HM = a.create("throughput-location-history", b);
+ this.Eu = a.create("respconn-location-history", b);
+ this.xu = a.create("respconn-location-history", b);
+ this.SW = a.create("throughput-tdigest-history", b);
+ this.aW = a.create("throughput-iqr-history", b);
+ this.Ua = null;
+ }
+ function k(a, b, f, h, p) {
+ this.wu = new c(p);
+ this.Lo = [];
+ this.Z9a = m.time.ea() - Date.now() % 864E5;
+ this.uu = null;
+ this.K = p;
+ for (a = 0; a < h; ++a) {
+ this.Lo.push(new c(p));
+ }
+ }
+ function l(a, b, f) {
+ return h.has(a, b) ? a[b] : a[b] = f;
+ }
+ function r(a, b) {
+ var f;
+ this.K = a;
+ this.TDa = b;
+ this.qJa();
+ this.$L = new c(this.K);
+ this.iM();
+ f = a.pea;
+ f && (f = {
+ Dd: p.Xe.MK,
+ Ia: {
+ Ca: parseInt(f, 10),
+ Qh: 0
+ },
+ Lh: {
+ Ca: 0,
+ Qh: 0
+ },
+ Nq: {
+ Ca: 0,
+ Qh: 0
+ }
+ }, this.get = function () {
+ return f;
+ });
+ }
+ h = a(8);
+ p = a(19);
+ b = a(11);
+ m = a(4);
+ f = b.cua;
+ u = a(407).Xta;
+ new m.Console("ASEJS_LOCATION_HISTORY", "media|asejs");
+ w = {
+ Dd: p.Xe.HAVE_NOTHING
+ };
+ c.prototype.vB = function (a, b) {
+ this.vi = b;
+ this.HM.add(a);
+ this.SW.add(a);
+ this.Ua = m.time.ea();
+ };
+ c.prototype.lE = function (a, b) {
+ this.aW.set(a, b);
+ };
+ c.prototype.Ou = function (a) {
+ this.Eu.add(a);
+ };
+ c.prototype.Nu = function (a) {
+ this.xu.add(a);
+ };
+ c.prototype.Wc = function () {
+ var a,
+ b,
+ f,
+ c,
+ p,
+ u;
+ a = this.HM.Wc();
+ b = this.Eu.Wc();
+ f = this.xu.Wc();
+ c = this.aW.Wc();
+ p = this.SW.Wc();
+ if (h.Pa(a) && h.Pa(b) && h.Pa(f))
+ return null;
+ u = {
+ c: this.vi,
+ t: m.time.Uka(this.Ua)
+ };
+ h.Pa(a) || (u.tp = a);
+ h.Pa(b) || (u.rt = b);
+ h.Pa(f) || (u.hrt = f);
+ h.Pa(c) || (u.iqr = c);
+ h.Pa(p) || (u.td = p);
+ return u;
+ };
+ c.prototype.ke = function (a) {
+ var b;
+ b = m.time.now();
+ if (!(a && h.has(a, "c") && h.has(a, "t") && h.has(a, "tp") && h.isFinite(a.c) && h.isFinite(a.t)) || 0 > a.c || a.c > p.Xe.MK || a.t > b || !this.HM.ke(a.tp))
+ return (this.vi = p.Xe.HAVE_NOTHING, this.uu = this.Ua = null, this.HM.ke(null), this.Eu.ke(null), this.xu.ke(null), !1);
+ this.vi = a.c;
+ this.Ua = m.time.pla(a.t);
+ this.Eu.ke(h.has(a, "rt") ? a.rt : null);
+ this.xu.ke(h.has(a, "hrt") ? a.hrt : null);
+ h.has(a, "iqr") && this.aW.ke(a.iqr);
+ h.has(a, "td") && this.SW.ke(a.td);
+ return !0;
+ };
+ c.prototype.get = function () {
+ var a,
+ b,
+ c,
+ u,
+ l,
+ k;
+ a = this.K;
+ if (h.Pa(this.Ua))
+ return w;
+ b = (m.time.ea() - this.Ua) / 1E3;
+ b > a.w9a ? this.vi = p.Xe.HAVE_NOTHING : b > a.W8a && (this.vi = Math.min(this.vi, p.Xe.oA));
+ a = this.HM.get();
+ c = this.Eu.get();
+ u = this.xu.get();
+ l = this.aW.get();
+ k = this.SW.get();
+ b = {
+ om: b,
+ Dd: this.vi,
+ Ia: a,
+ Lh: c,
+ Nq: u,
+ Oq: l,
+ Ri: k
+ };
+ a && (b.W0b = f.prototype.nma.bind(a));
+ c && (b.g0b = f.prototype.nma.bind(c));
+ u && (b.ZYb = f.prototype.nma.bind(u));
+ return b;
+ };
+ c.prototype.time = function () {
+ return this.Ua;
+ };
+ c.prototype.yF = function () {
+ this.get();
+ m.time.ea();
+ };
+ k.prototype.Gj = function () {
+ return ((m.time.ea() - this.Z9a) / 1E3 / 3600 / (24 / this.Lo.length) | 0) % this.Lo.length;
+ };
+ k.prototype.Wc = function () {
+ var a;
+ a = {
+ g: this.wu.Wc(),
+ h: this.Lo.map(function (a) {
+ return a.Wc();
+ })
+ };
+ h.Pa(this.uu) || (a.f = m.time.Uka(this.uu));
+ return a;
+ };
+ k.prototype.ke = function (a) {
+ var b,
+ f;
+ if (!this.wu.ke(a.g))
+ return !1;
+ b = this.Lo.length;
+ f = !1;
+ this.Lo.forEach(function (c, h) {
+ f = !c.ke(a.h[h * a.h.length / b | 0]) || f;
+ });
+ this.uu = h.has(a, "f") ? m.time.pla(a.f) : null;
+ return f;
+ };
+ k.prototype.vB = function (a, b) {
+ this.wu.vB(a, b);
+ this.Lo[this.Gj()].vB(a, b);
+ this.uu = null;
+ };
+ k.prototype.lE = function (a, b) {
+ this.wu.lE(a, b);
+ this.Lo[this.Gj()].lE(a, b);
+ };
+ k.prototype.Ou = function (a) {
+ this.wu.Ou(a);
+ this.Lo[this.Gj()].Ou(a);
+ };
+ k.prototype.Nu = function (a) {
+ this.wu.Nu(a);
+ this.Lo[this.Gj()].Nu(a);
+ };
+ k.prototype.fail = function (a) {
+ this.uu = a;
+ };
+ k.prototype.get = function () {
+ var a,
+ b;
+ if (!h.Pa(this.uu)) {
+ if ((m.time.ea() - this.uu) / 1E3 < this.K.V8a)
+ return {
+ Dd: p.Xe.HAVE_NOTHING,
+ yq: !0
+ };
+ this.uu = null;
+ }
+ a = this.Lo[this.Gj()].get();
+ b = this.wu.get();
+ a = a.Dd >= b.Dd ? a : b;
+ a.yq = !1;
+ return a;
+ };
+ k.prototype.time = function () {
+ return this.wu.time();
+ };
+ k.prototype.yF = function (a) {
+ this.wu.yF(a + ": global");
+ this.Lo.forEach(function (b, f, c) {
+ h.Pa(b.time()) || (f = 24 * f / c.length, b.yF(a + ": " + ((10 > f ? "0" : "") + f + "00") + "h"));
+ });
+ };
+ r.prototype.kCa = function (a, b) {
+ var f;
+ f = this.K;
+ a = l(this.Gx, a, {});
+ return l(a, b, new k(0, 0, 0, f.hDa || 4, f));
+ };
+ r.prototype.iM = function () {
+ var a,
+ b;
+ a = m.storage.get("lh");
+ b = m.storage.get("gh");
+ a && this.iba(a);
+ b && this.Yab(b);
+ };
+ r.prototype.paa = function () {
+ var a;
+ a = {};
+ h.ee(this.Gx, function (b, f) {
+ h.ee(b, function (b, c) {
+ l(a, f, {})[c] = b.Wc();
+ }, this);
+ }, this);
+ return a;
+ };
+ r.prototype.Yab = function (a) {
+ this.$L.ke(a);
+ };
+ r.prototype.iba = function (a) {
+ var b,
+ f;
+ b = null;
+ f = this.K;
+ h.ee(a, function (a, c) {
+ h.ee(a, function (a, m) {
+ var p;
+ p = new k(0, 0, 0, f.hDa || 4, f);
+ p.ke(a) ? (l(this.Gx, c, {})[m] = p, b = !0) : h.Pa(b) && (b = !1);
+ }, this);
+ }, this);
+ return h.Pa(b) ? !0 : b;
+ };
+ r.prototype.save = function () {
+ var a;
+ a = this.paa();
+ m.storage.set("lh", a);
+ m.storage.set("gh", this.$L.Wc());
+ this.TDa && this.TDa.noa(this.$L.Wc());
+ };
+ r.prototype.qJa = function (a) {
+ a ? (h.has(this.Gx, a) && delete this.Gx[a], this.LV == a && (this.WA = this.LV = "", this.sl = null)) : (this.Gx = {}, this.WA = this.LV = "", this.sl = null);
+ };
+ r.prototype.AR = function (a) {
+ this.LV = a;
+ this.sl = null;
+ };
+ r.prototype.y3 = function (a) {
+ this.WA = a;
+ this.sl = null;
+ };
+ r.prototype.XV = function () {
+ h.Pa(this.sl) && (this.sl = this.kCa(this.LV, this.WA));
+ return this.sl;
+ };
+ r.prototype.vB = function (a, b) {
+ this.XV().vB(a, b);
+ this.$L.vB(a, b);
+ };
+ r.prototype.lE = function (a, b) {
+ a && a.Sk && a.sj && a.Tk && (this.XV().lE(a, b), this.$L.lE(a, b));
+ };
+ r.prototype.Ou = function (a) {
+ this.XV().Ou(a);
+ };
+ r.prototype.Nu = function (a) {
+ this.XV().Nu(a);
+ };
+ r.prototype.fail = function (a, b) {
+ this.kCa(a, this.WA).fail(b);
+ };
+ r.prototype.get = function (a, b) {
+ var f,
+ c,
+ m,
+ u;
+ a = (a = this.Gx[a]) ? a[this.WA] : null;
+ f = null;
+ if (a && (f = a.get(), f.Dd > p.Xe.HAVE_NOTHING))
+ return f;
+ if (!1 === b)
+ return w;
+ c = f = null;
+ m = !1;
+ u = null;
+ h.ee(this.Gx, function (a) {
+ h.ee(a, function (a, b) {
+ var h;
+ if (!m || b == this.WA) {
+ h = a.get();
+ h && (!c || c <= h.Dd) && (!u || c < h.Dd || u < a.time()) && (c = h.Dd, m = b == this.WA, u = a.time(), f = h);
+ }
+ }, this);
+ }, this);
+ return f ? f : w;
+ };
+ r.prototype.yF = function () {
+ h.ee(this.Gx, function (a, b) {
+ h.ee(a, function (a, f) {
+ a.yF(b + ":" + f);
+ });
+ });
+ };
+ d.P = r;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r,
+ h,
+ p;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.tE = void 0;
+ c = a(166);
+ k = a(223);
+ l = a(854);
+ r = a(95);
+ h = a(5);
+ d = (function () {
+ function a(a, b) {
+ var f;
+ f = this;
+ this.Mf = new k(a, b);
+ this.Lm = new l(a);
+ this.zb = new r(this.Lm, this.Mf, a);
+ c.Vt.ehb(a);
+ a.f2 && setInterval(function () {
+ f.Mf.save();
+ f.Lm.save();
+ }, a.f2);
+ }
+ a.OLa = function (b, c) {
+ void 0 === p ? (a.config = b, a.Iw = c, p = new a(b, c)) : (h.assert(a.config === b), h.assert(a.Iw === c));
+ return p;
+ };
+ a.reset = function () {
+ a.config = void 0;
+ p = a.Iw = void 0;
+ };
+ return a;
+ })();
+ b.tE = d;
+ }, function (d, b) {
+ function a(a) {
+ var b;
+ b = {
+ profile: a.spoofedProfile || a.profile,
+ lga: a.max_framerate_value,
+ kga: a.max_framerate_scale,
+ maxWidth: a.maxWidth,
+ maxHeight: a.maxHeight,
+ XCb: a.pixelAspectX,
+ YCb: a.pixelAspectY,
+ Xo: a.channels,
+ sampleRate: a.channels ? 48E3 : void 0
+ };
+ a.spoofedProfile && (b.C_b = a.profile);
+ return b;
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.ILa = b.HLa = void 0;
+ b.HLa = function (b, k, l) {
+ var c;
+ c = [{}, {}
+ ];
+ (0 === l ? ["audio_tracks"] : ["audio_tracks", "video_tracks"]).forEach(function (h, p) {
+ b[h].some(function (b, f) {
+ return f === k[p] ? (c[p] = a(b), !0) : !1;
+ });
+ });
+ return c;
+ };
+ b.ILa = a;
+ }, function (d, b, a) {
+ b = a(857);
+ d.P = b;
+ }, function (d, b, a) {
+ var r;
+ function c(a) {
+ this.jG = a;
+ this.reset();
+ }
+ function k(a) {
+ this.Ci = new c(a);
+ this.ae = 0;
+ this.Wb = null;
+ }
+ function l(a, b) {
+ this.jG = a;
+ this.PCa = b;
+ this.reset();
+ }
+ r = a(8);
+ c.prototype.uDa = function (a, b) {
+ this.Ua += a;
+ this.Fj += a;
+ this.ec += b;
+ this.dj.push({
+ d: a,
+ xca: b
+ });
+ };
+ c.prototype.vM = function () {
+ var a;
+ for (; this.Fj > this.jG; ) {
+ a = this.dj.shift();
+ this.ec -= a.xca;
+ this.Fj -= a.d;
+ }
+ };
+ c.prototype.reset = function () {
+ this.dj = [];
+ this.Ua = null;
+ this.Fj = this.ec = 0;
+ };
+ c.prototype.setInterval = function (a) {
+ this.jG = a;
+ this.vM();
+ };
+ c.prototype.start = function (a) {
+ r.Pa(this.Ua) && (this.Ua = a);
+ };
+ c.prototype.add = function (a, b, c) {
+ r.Pa(this.Ua) && (this.Ua = b);
+ b > this.Ua && this.uDa(b - this.Ua, 0);
+ this.uDa(c > this.Ua ? c - this.Ua : 0, a);
+ this.vM();
+ };
+ c.prototype.get = function () {
+ return {
+ Ca: Math.floor(8 * this.ec / this.Fj),
+ Qh: 0
+ };
+ };
+ k.prototype.reset = function () {
+ this.Ci.reset();
+ this.ae = 0;
+ this.Wb = null;
+ };
+ k.prototype.add = function (a, b, c) {
+ !r.Pa(this.Wb) && c > this.Wb && (b > this.Wb && (this.ae += b - this.Wb), this.Wb = null);
+ this.Ci.add(a, b - this.ae, c - this.ae);
+ };
+ k.prototype.start = function (a) {
+ !r.Pa(this.Wb) && a > this.Wb && (this.ae += a - this.Wb, this.Wb = null);
+ this.Ci.start(a - this.ae);
+ };
+ k.prototype.stop = function (a) {
+ this.Wb = r.Pa(this.Wb) ? a : Math.min(a, this.Wb);
+ };
+ k.prototype.get = function () {
+ return this.Ci.get();
+ };
+ k.prototype.setInterval = function (a) {
+ this.Ci.setInterval(a);
+ };
+ l.prototype.reset = function () {
+ this.dj = [];
+ this.ec = this.Fj = 0;
+ };
+ l.prototype.add = function (a, b, c, f) {
+ void 0 !== f && !0 === f && (b = c - b, this.Fj += b, this.ec += a, this.dj.push({
+ d: b,
+ xca: a
+ }), this.vM());
+ };
+ l.prototype.vM = function () {
+ var a;
+ for (; this.Fj > this.jG || this.dj.length > this.PCa; ) {
+ a = this.dj.shift();
+ this.ec -= a.xca;
+ this.Fj -= a.d;
+ }
+ };
+ l.prototype.start = function () {};
+ l.prototype.stop = function () {};
+ l.prototype.get = function () {
+ return {
+ Ca: Math.floor(8 * this.ec / this.Fj),
+ Qh: 0
+ };
+ };
+ l.prototype.setInterval = function (a, b) {
+ this.jG = a;
+ this.PCa = b;
+ this.vM();
+ };
+ d.P = {
+ BQb: c,
+ O1a: k,
+ r7a: l
+ };
+ }, function (d, b, a) {
+ var h;
+ function c(a, b, f) {
+ this.aH = !1 === a;
+ this.XG = a || .01;
+ this.f7 = void 0 === b ? 25 : b;
+ this.Rra = void 0 === f ? 1.1 : f;
+ this.yh = new h(k);
+ this.reset();
+ }
+ function k(a, b) {
+ return a.tf > b.tf ? 1 : a.tf < b.tf ? -1 : 0;
+ }
+ function l(a, b) {
+ return a.Xs - b.Xs;
+ }
+ function r(a) {
+ this.config = a || ({});
+ this.mode = this.config.mode || "auto";
+ c.call(this, "cont" === this.mode ? a.XG : !1);
+ this.xlb = this.config.ratio || .9;
+ this.ylb = this.config.V0b || 1E3;
+ this.v1 = 0;
+ }
+ h = a(870).f6a;
+ c.prototype.reset = function () {
+ this.yh.clear();
+ this.Cja = this.n = 0;
+ };
+ c.prototype.size = function () {
+ return this.yh.size;
+ };
+ c.prototype.bn = function (a) {
+ var b;
+ b = [];
+ a ? (this.JV(!0), this.yh.ee(function (a) {
+ b.push(a);
+ })) : this.yh.ee(function (a) {
+ b.push({
+ tf: a.tf,
+ n: a.n
+ });
+ });
+ return b;
+ };
+ c.prototype.summary = function () {
+ return [(this.aH ? "exact " : "approximating ") + this.n + " samples using " + this.size() + " centroids", "min = " + this.ci(0), "Q1 = " + this.ci(.25), "Q2 = " + this.ci(.5), "Q3 = " + this.ci(.75), "max = " + this.ci(1)].join("\n");
+ };
+ c.prototype.push = function (a, b) {
+ b = b || 1;
+ a = Array.isArray(a) ? a : [a];
+ for (var f = 0; f < a.length; f++) {
+ this.SBa(a[f], b);
+ }
+ };
+ c.prototype.Jma = function (a) {
+ a = Array.isArray(a) ? a : [a];
+ for (var b = 0; b < a.length; b++) {
+ this.SBa(a[b].tf, a[b].n);
+ }
+ };
+ c.prototype.JV = function (a) {
+ var b;
+ if (!(this.n === this.Cja || !a && this.Rra && this.Rra > this.n / this.Cja)) {
+ b = 0;
+ this.yh.ee(function (a) {
+ a.Xs = b + a.n / 2;
+ b = a.MG = b + a.n;
+ });
+ this.n = this.Cja = b;
+ }
+ };
+ c.prototype.rob = function (a) {
+ var b,
+ f;
+ if (0 === this.size())
+ return null;
+ b = this.yh.lowerBound({
+ tf: a
+ });
+ f = null === b.data() ? b.uD() : b.data();
+ return f.tf === a || this.aH ? f : (b = b.uD()) && Math.abs(b.tf - a) < Math.abs(f.tf - a) ? b : f;
+ };
+ c.prototype.RF = function (a, b, f) {
+ a = {
+ tf: a,
+ n: b,
+ MG: f
+ };
+ this.yh.bo(a);
+ this.n += b;
+ return a;
+ };
+ c.prototype.pV = function (a, b, f) {
+ b !== a.tf && (a.tf += f * (b - a.tf) / (a.n + f));
+ a.MG += f;
+ a.Xs += f / 2;
+ a.n += f;
+ this.n += f;
+ };
+ c.prototype.SBa = function (a, b) {
+ var f,
+ c,
+ h;
+ f = this.yh.min();
+ c = this.yh.max();
+ h = this.rob(a);
+ h && h.tf === a ? this.pV(h, a, b) : h === f ? this.RF(a, b, 0) : h === c ? this.RF(a, b, this.n) : this.aH ? this.RF(a, b, h.MG) : (f = h.Xs / this.n, Math.floor(4 * this.n * this.XG * f * (1 - f)) - h.n >= b ? this.pV(h, a, b) : this.RF(a, b, h.MG));
+ this.JV(!1);
+ !this.aH && this.f7 && this.size() > this.f7 / this.XG && this.hv();
+ };
+ c.prototype.Meb = function (a) {
+ var b,
+ f;
+ this.yh.pl = l;
+ b = this.yh.upperBound({
+ Xs: a
+ });
+ this.yh.pl = k;
+ f = b.uD();
+ a = f && f.Xs === a ? f : b.next();
+ return [f, a];
+ };
+ c.prototype.ci = function (a) {
+ var b;
+ b = (Array.isArray(a) ? a : [a]).map(this.fab, this);
+ return Array.isArray(a) ? b : b[0];
+ };
+ c.prototype.fab = function (a) {
+ var b,
+ f;
+ if (0 !== this.size()) {
+ this.JV(!0);
+ this.yh.min();
+ this.yh.max();
+ a *= this.n;
+ b = this.Meb(a);
+ f = b[0];
+ b = b[1];
+ return b === f || null === f || null === b ? (f || b).tf : this.aH ? a <= f.MG ? f.tf : b.tf : f.tf + (a - f.Xs) * (b.tf - f.tf) / (b.Xs - f.Xs);
+ }
+ };
+ c.prototype.hv = function () {
+ var a;
+ if (!this.dHa) {
+ a = this.bn();
+ this.reset();
+ for (this.dHa = !0; 0 < a.length; ) {
+ this.Jma(a.splice(Math.floor(Math.random() * a.length), 1)[0]);
+ }
+ this.JV(!0);
+ this.dHa = !1;
+ }
+ };
+ r.prototype = Object.create(c.prototype);
+ r.prototype.constructor = r;
+ r.prototype.push = function (a) {
+ c.prototype.push.call(this, a);
+ this.hgb();
+ };
+ r.prototype.RF = function (a, b, f) {
+ this.v1 += 1;
+ c.prototype.RF.call(this, a, b, f);
+ };
+ r.prototype.pV = function (a, b, f) {
+ 1 === a.n && --this.v1;
+ c.prototype.pV.call(this, a, b, f);
+ };
+ r.prototype.hgb = function () {
+ !("auto" !== this.mode || this.size() < this.ylb) && this.v1 / this.size() > this.xlb && (this.mode = "cont", this.aH = !1, this.XG = this.config.XG || .01, this.hv());
+ };
+ d.P = {
+ TDigest: c,
+ Digest: r
+ };
+ }, function (d, b, a) {
+ var c,
+ k,
+ l;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.pK = void 0;
+ c = a(0);
+ d = a(80);
+ k = a(167);
+ l = a(168);
+ a = (function (a) {
+ function b(b, c, f, h, k, r, d) {
+ c = a.call(this, b, c, f, h, k, r, d) || this;
+ l.Rw.call(c, b, h);
+ return c;
+ }
+ c.__extends(b, a);
+ return b;
+ })(k.aA);
+ b.pK = a;
+ d(l.Rw.prototype, a.prototype);
+ }, function (d, b, a) {
+ var c;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.cA = void 0;
+ d = a(33);
+ a = a(110);
+ c = (function () {
+ function a(a, b) {
+ this.Jo = a;
+ this.uF = b.Qa;
+ this.Sr = b.jb;
+ }
+ Object.defineProperties(a.prototype, {
+ Qa: {
+ get: function () {
+ return void 0 !== this.uF ? this.uF : this.Jo.Qa;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ jb: {
+ get: function () {
+ return void 0 !== this.Sr ? this.Sr : this.Jo.jb;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ S: {
+ get: function () {
+ return this.Jo.S;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ hk: {
+ get: function () {
+ return this.Jo.hk;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ a.prototype.zR = function (a) {
+ this.Sr = a;
+ };
+ a.prototype.pda = function () {
+ this.Sr = void 0;
+ };
+ return a;
+ })();
+ b.cA = c;
+ d.Ve(a.dA, c);
+ d.Ve(a.$z, c);
+ }, function (d, b, a) {
+ var c,
+ k;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ c = a(0);
+ d = a(129);
+ k = a(234);
+ a = (function (a) {
+ function b() {
+ return null !== a && a.apply(this, arguments) || this;
+ }
+ c.__extends(b, a);
+ b.prototype.VTa = function () {
+ 15 !== this.M.Zf(4) || this.M.Zf(24);
+ };
+ b.prototype.parse = function (a) {
+ if (this.ovb(a) && 64 === a.QAb)
+ switch ((this.AB = this.NTa(), this.VTa(), this.M.Zf(4), this.Cnb = 5 === this.AB || 29 === this.AB ? 5 : -1, 0 < this.Cnb && (this.VTa(), this.AB = this.NTa(), 22 === this.AB && this.M.Zf(4)), this.AB)) {
+ case 1:
+ case 2:
+ case 3:
+ case 4:
+ case 6:
+ case 7:
+ case 17:
+ case 19:
+ case 20:
+ case 21:
+ case 22:
+ case 23:
+ (this.oKa = this.M.Zf(1), (this.blb = this.M.Zf(1)) && this.M.Zf(14), this.M.Zf(1), this.CZ = 3 === this.AB ? 256 : 23 === this.AB ? this.oKa ? 480 : 512 : this.oKa ? 960 : 1024);
+ }
+ this.skip();
+ return !0;
+ };
+ b.prototype.NTa = function () {
+ var a;
+ a = this.M.Zf(5);
+ 31 === a && (a = 32 + this.M.Zf(6));
+ return a;
+ };
+ b.prototype.ovb = function (a) {
+ return a.tag === k.Osa.tag;
+ };
+ b.tag = 5;
+ return b;
+ })(d.I5);
+ b.L1a = a;
+ }, function (d, b, a) {
+ var c;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ c = a(0);
+ d = (function (a) {
+ function b() {
+ return null !== a && a.apply(this, arguments) || this;
+ }
+ c.__extends(b, a);
+ b.prototype.parse = function () {
+ this.QAb = this.M.Ad();
+ this.M.Ad();
+ this.M.kh();
+ this.M.Ad();
+ this.io = this.M.Mb();
+ this.jeb = this.M.Mb();
+ this.xDa();
+ return !0;
+ };
+ b.tag = 4;
+ return b;
+ })(a(129).I5);
+ b.Osa = d;
+ }, function (d, b, a) {
+ var c;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ c = a(0);
+ d = (function (a) {
+ function b() {
+ return null !== a && a.apply(this, arguments) || this;
+ }
+ c.__extends(b, a);
+ b.prototype.parse = function () {
+ var a;
+ this.M.kh();
+ a = this.M.Ad();
+ this.EKb = !!(a & 128);
+ this.j7a = !!(a & 64);
+ this.a5a = !!(a & 32);
+ this.EKb && this.M.kh();
+ this.j7a && this.M.E2(this.M.Ad());
+ this.a5a && this.M.kh();
+ this.xDa();
+ return !0;
+ };
+ b.tag = 3;
+ return b;
+ })(a(129).I5);
+ b.uta = d;
+ }, function (d, b, a) {
+ var c;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ d = a(0);
+ d.__exportStar(a(129), b);
+ d.__exportStar(a(233), b);
+ d.__exportStar(a(232), b);
+ d.__exportStar(a(231), b);
+ d = a(232);
+ c = a(231);
+ a = a(233);
+ b.ZG = {
+ 3: a.uta,
+ 4: d.Osa,
+ 5: c.L1a
+ };
+ }, function (d, b, a) {
+ var c;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ c = a(0);
+ d = (function (a) {
+ function b() {
+ return null !== a && a.apply(this, arguments) || this;
+ }
+ c.__extends(b, a);
+ b.prototype.parse = function () {
+ this.M.offset += 6;
+ this.M.kh();
+ return !0;
+ };
+ return b;
+ })(a(28).cg);
+ b["default"] = d;
+ }, function (d, b) {
+ function a(a, b) {
+ return "number" !== typeof a || "number" !== typeof b ? !1 : a && b ? Math.abs(a * b / c(a, b)) : 0;
+ }
+ function c(a, b) {
+ var c;
+ a = Math.abs(a);
+ for (b = Math.abs(b); b; ) {
+ c = b;
+ b = a % b;
+ a = c;
+ }
+ return a;
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ d = (function () {
+ function b(a, b) {
+ "object" === typeof a ? (this.Ju = a.Ab, this.jm = a.S) : (this.Ju = a, this.jm = b);
+ }
+ b.LBb = function (a) {
+ return new b(1, a);
+ };
+ b.Jd = function (a) {
+ return new b(a, 1E3);
+ };
+ b.ypa = function (a, b) {
+ return Math.floor(1E3 * a / b);
+ };
+ b.Yka = function (a, b) {
+ return Math.floor(a * b / 1E3);
+ };
+ b.max = function () {
+ for (var a = [], b = 0; b < arguments.length; b++) {
+ a[b] = arguments[b];
+ }
+ return a.reduce(function (a, b) {
+ return a.greaterThan(b) ? a : b;
+ });
+ };
+ b.min = function () {
+ for (var a = [], b = 0; b < arguments.length; b++) {
+ a[b] = arguments[b];
+ }
+ return a.reduce(function (a, b) {
+ return a.lessThan(b) ? a : b;
+ });
+ };
+ b.pga = function (l, k) {
+ var h;
+ if (l.S === k.S)
+ return new b(c(l.Ab, k.Ab), l.S);
+ h = a(l.S, k.S);
+ return b.pga(l.ef(h), k.ef(h));
+ };
+ Object.defineProperties(b.prototype, {
+ Ab: {
+ get: function () {
+ return this.Ju;
+ },
+ enumerable: !0,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ S: {
+ get: function () {
+ return this.jm;
+ },
+ enumerable: !0,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ qa: {
+ get: function () {
+ return 1E3 * this.Ju / this.jm;
+ },
+ enumerable: !0,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ qh: {
+ get: function () {
+ return this.Ju / this.jm;
+ },
+ enumerable: !0,
+ configurable: !0
+ }
+ });
+ b.prototype.ef = function (a) {
+ a /= this.S;
+ return new b(Math.floor(this.Ab * a), Math.floor(this.S * a));
+ };
+ b.prototype.add = function (c) {
+ var l;
+ if (this.S === c.S)
+ return new b(this.Ab + c.Ab, this.S);
+ l = a(this.S, c.S);
+ return this.ef(l).add(c.ef(l));
+ };
+ b.prototype.Ib = function (a) {
+ return this.add(new b(-a.Ab, a.S));
+ };
+ b.prototype.u1 = function (a) {
+ return new b(this.Ab * a, this.S);
+ };
+ b.prototype.pv = function (b) {
+ var c;
+ if (this.S === b.S)
+ return this.Ab / b.Ab;
+ c = a(this.S, b.S);
+ return this.ef(c).pv(b.ef(c));
+ };
+ b.prototype.pMa = function (b) {
+ return a(this.S, b);
+ };
+ b.prototype.eUa = function () {
+ return new b(this.S, this.Ab);
+ };
+ b.prototype.compare = function (b, c) {
+ var h;
+ if (this.S === c.S)
+ return b(this.Ab, c.Ab);
+ h = a(this.S, c.S);
+ return b(this.ef(h).Ab, c.ef(h).Ab);
+ };
+ b.prototype.equal = function (a) {
+ return this.compare(function (a, b) {
+ return a === b;
+ }, a);
+ };
+ b.prototype.eD = function (a) {
+ return this.compare(function (a, b) {
+ return a !== b;
+ }, a);
+ };
+ b.prototype.lessThan = function (a) {
+ return this.compare(function (a, b) {
+ return a < b;
+ }, a);
+ };
+ b.prototype.greaterThan = function (a) {
+ return this.compare(function (a, b) {
+ return a > b;
+ }, a);
+ };
+ b.prototype.MC = function (a) {
+ return this.compare(function (a, b) {
+ return a <= b;
+ }, a);
+ };
+ b.prototype.Iy = function (a) {
+ return this.compare(function (a, b) {
+ return a >= b;
+ }, a);
+ };
+ b.prototype.toJSON = function () {
+ return {
+ ticks: this.Ab,
+ timescale: this.S
+ };
+ };
+ b.prototype.toString = function () {
+ return this.Ab + "/" + this.S;
+ };
+ b.Cc = new b(0, 1);
+ b.kw = new b(1, 1E3);
+ return b;
+ })();
+ b.fa = d;
+ }, function (d, b, a) {
+ var ia,
+ Y,
+ pa,
+ X,
+ O,
+ na,
+ ha,
+ P,
+ Ha,
+ ja,
+ ya,
+ za,
+ ma,
+ Ua,
+ z,
+ E,
+ ib,
+ Ba,
+ lb,
+ hb,
+ Jb,
+ Fa,
+ N,
+ mb,
+ da,
+ Rb,
+ R,
+ Q,
+ U,
+ W,
+ ca;
+ function c(a, b, f, c, h) {
+ X.call(this, a, b, f, c, h);
+ }
+ function k(a, b, f, c, h) {
+ X.call(this, a, b, f, c, h);
+ }
+ function l(a, b, f, c, h) {
+ X.call(this, a, b, f, c, h);
+ }
+ function r(a, b, f, c, h) {
+ X.call(this, a, b, f, c, h);
+ this.Coa = a.config.Coa;
+ this.Rd = this.sizes = void 0;
+ }
+ function h(a, b, f, c, h) {
+ X.call(this, a, b, f, c, h);
+ }
+ function p() {
+ for (var a = new DataView(this), b = "", f, c = 0; c < this.byteLength; c++) {
+ f = a.getUint8(c);
+ b += ("00" + f.toString(16)).slice(-2);
+ }
+ return b;
+ }
+ function m(a, b, f, c, h) {
+ X.call(this, a, b, f, c, h);
+ }
+ function f(a, b, f, c, h) {
+ X.call(this, a, b, f, c, h);
+ }
+ function u(a, b, f, c, h) {
+ X.call(this, a, b, f, c, h);
+ }
+ function w(a, b, f, c, h) {
+ X.call(this, a, b, f, c, h);
+ }
+ function A(a, b, f, c, h) {
+ X.call(this, a, b, f, c, h);
+ }
+ function g(a) {
+ function b(b, f, c, h, m) {
+ X.call(this, b, f, c, h, m);
+ this.WQa = a;
+ }
+ b.uc = !1;
+ b.prototype = new X();
+ b.prototype.constructor = b;
+ Object.defineProperties(b.prototype, {
+ Esa: {
+ get: function () {
+ return this.WQa;
+ }
+ }
+ });
+ b.prototype.parse = function () {
+ this.M.console.trace("renaming '" + this.type + "' to draft type '" + this.WQa + "'");
+ this.M.offset = this.startOffset + 4;
+ this.fb.BZa(this.Esa);
+ this.type = this.Esa;
+ return !0;
+ };
+ return b;
+ }
+ function C(a, b, f, c, h) {
+ X.call(this, a, b, f, c, h);
+ }
+ function M(a, b, f, c, h) {
+ X.call(this, a, b, f, c, h);
+ }
+ function H(a, b, f, c, h) {
+ X.call(this, a, b, f, c, h);
+ }
+ function G(a, b, f, c, h) {
+ X.call(this, a, b, f, c, h);
+ }
+ function T(a, b, f, c, h) {
+ X.call(this, a, b, f, c, h);
+ }
+ function S(a, b, f, c, h) {
+ X.call(this, a, b, f, c, h);
+ }
+ function n(a, b, f, c, h) {
+ X.call(this, a, b, f, c, h);
+ }
+ function q(a, b, f, c, h) {
+ X.call(this, a, b, f, c, h);
+ }
+ function B(a, b, f, c, h) {
+ X.call(this, a, b, f, c, h);
+ }
+ function V(a, b, f, c, h) {
+ X.call(this, a, b, f, c, h);
+ }
+ function t(a, b) {
+ a.forEach(function (a) {
+ b[a.Ye] = a;
+ });
+ }
+ ia = a(131).assert;
+ b = a(82);
+ Y = a(236).fa;
+ pa = a(419);
+ a(130);
+ a(74);
+ a(74);
+ a(74);
+ X = a(28).cg;
+ O = a(897)["default"];
+ na = a(896)["default"];
+ ha = a(895)["default"];
+ P = a(894)["default"];
+ Ha = a(893)["default"];
+ ja = a(892)["default"];
+ ya = a(891)["default"];
+ za = a(890)["default"];
+ ma = a(889)["default"];
+ a(235);
+ a(169);
+ Ua = a(418).LZa;
+ z = a(418).W1a;
+ E = a(888)["default"];
+ ib = a(887)["default"];
+ Ba = a(81)["default"];
+ lb = a(81).h_a;
+ hb = a(81).i_a;
+ Jb = a(81).j_a;
+ Fa = a(81).k_a;
+ N = a(886)["default"];
+ mb = a(885)["default"];
+ da = a(81).P2a;
+ Rb = a(81).K2a;
+ R = a(884)["default"];
+ Q = a(883)["default"];
+ U = a(882)["default"];
+ W = a(417)["default"];
+ ca = a(416)["default"];
+ a(129);
+ a(232);
+ a(231);
+ a(233);
+ a = a(881)["default"];
+ c.uc = !0;
+ c.prototype = new X();
+ c.prototype.constructor = c;
+ k.uc = !0;
+ k.prototype = new X();
+ k.prototype.constructor = k;
+ l.uc = !1;
+ l.prototype = new X();
+ l.prototype.constructor = l;
+ l.prototype.parse = function () {
+ var a;
+ this.$f();
+ 1 === this.version ? (this.M.tj(), this.M.tj(), this.S = this.M.Mb(), this.duration = this.M.tj()) : (this.M.Mb(), this.M.Mb(), this.S = this.M.Mb(), this.duration = this.M.Mb());
+ a = this.M.kh() & 32767;
+ this.language = String.fromCharCode(96 + (a >>> 10), 96 + (a >>> 5 & 31), 96 + (a & 31));
+ return !0;
+ };
+ r.uc = !1;
+ r.prototype = new X();
+ r.prototype.constructor = r;
+ r.prototype.cab = function () {
+ this.$f();
+ this.M.Mb();
+ this.S = this.M.Mb();
+ 0 === this.version ? (this.bfa = this.M.Mb(), this.Zfa = this.M.Mb()) : (this.bfa = this.M.tj(), this.Zfa = this.M.tj());
+ this.NGb = this.M.kh();
+ this.hUa = this.M.kh();
+ };
+ r.prototype.q8a = function (a, b) {
+ var f,
+ c,
+ h;
+ f = this.S;
+ a = a && a.S || f;
+ c = a / f;
+ f = this.M.D2(b, 12, !1);
+ h = 1 === c ? this.M.D2(b, 12, !1) : pa.from(Uint32Array, {
+ length: b
+ }, function () {
+ var a;
+ a = Math.round(this.M.Mb() * c);
+ this.M.offset += 8;
+ return a;
+ }, this);
+ this.ybb(b, h, f, a);
+ };
+ r.prototype.ybb = function (a, b, f, c) {
+ if (this.Coa) {
+ c = this.Coa * c / 1E3;
+ for (var h = 0, m = 1; m < a; m++) {
+ Math.abs(b[h] - c) > Math.abs(b[h] + b[m] - c) ? (b[h] += b[m], f[h] += f[m]) : (++h, h !== m && (b[h] = b[m], f[h] = f[m]));
+ }
+ ++h;
+ b = new Uint32Array(b.buffer.slice(0, 4 * h));
+ f = new Uint32Array(f.buffer.slice(0, 4 * h));
+ }
+ this.sizes = f;
+ this.Rd = b;
+ };
+ r.prototype.parse = function (a) {
+ var b,
+ f,
+ c,
+ h;
+ this.cab();
+ this.Wa = a.Wa;
+ b = this.S;
+ f = this.Wa && this.Wa.S || b;
+ c = this.hUa;
+ h = this.startOffset + this.length + this.Zfa;
+ b = new Y(this.bfa, b).ef(f).Ab;
+ this.$ = {
+ S: f,
+ jk: b,
+ offset: h
+ };
+ this.q8a(this.Wa, c);
+ this.$.Rd = this.Rd;
+ this.$.sizes = this.sizes;
+ a.Dt = this;
+ return !0;
+ };
+ h.uc = !1;
+ h.prototype = new X();
+ h.prototype.constructor = h;
+ h.prototype.parse = function () {
+ var a;
+ this.Wz = [];
+ this.OCb = [];
+ a = (this.length - 11) / 2;
+ this.M.Ad();
+ this.M.Ad();
+ this.M.Ad();
+ for (var b = 0; b < a; b++) {
+ this.Wz.push(this.M.Ad());
+ this.OCb.push(this.M.Ad());
+ }
+ return !0;
+ };
+ m.uc = !1;
+ m.prototype = new X();
+ m.prototype.constructor = m;
+ m.prototype.parse = function () {
+ this.$f();
+ this.M.offset += 4;
+ this.IOa = this.M.offset;
+ this.Qs = this.M.aFb();
+ this.Qs.toString = p;
+ return !0;
+ };
+ f.uc = !1;
+ f.prototype = new X();
+ f.prototype.constructor = f;
+ f.prototype.parse = function () {
+ this.$f();
+ this.Un = this.M.kh();
+ this.Jyb = this.M.D2(this.Un, void 0, !0);
+ return !0;
+ };
+ u.uc = !1;
+ u.prototype = new X();
+ u.prototype.constructor = u;
+ u.prototype.parse = function (a) {
+ var b,
+ f,
+ c,
+ h,
+ m,
+ p;
+ h = a.Dt;
+ ia(h);
+ a = a.Wa;
+ b = h.S;
+ h = h.hUa;
+ ia(a);
+ ia(b);
+ ia(h);
+ this.$f();
+ ia(2 > this.version);
+ this.Un = this.M.kh();
+ this.WI = new Uint16Array(h + 1);
+ f = a.pMa(b);
+ m = f / b;
+ p = a.ef(f).Ab;
+ if (0 === this.version)
+ for ((this.nJ = new Uint16Array(), this.ih = new Uint32Array(), a = b = 0); a <= h; ++a) {
+ if ((this.WI[a] = b, a < this.Un && (c = this.M.Ad(), 0 !== c)))
+ for (f = 0; f < c; (++f, ++b)) {
+ this.nJ[b] = Math.floor((this.M.Mb() + 1) * m) / p;
+ this.ih[b] = this.M.Mb();
+ }
+ }
+ else if (1 === this.version)
+ for ((f = this.M.ZEb(this.Un), this.M.offset += 4, this.ih = this.M.D2(this.Un, 10, !1), this.M.offset -= 8, this.nJ = pa.from(Uint16Array, {
+ length: this.Un
+ }, function () {
+ var a;
+ a = Math.floor((this.M.Mb() + 1) * m) / p;
+ this.M.offset += 6;
+ return a;
+ }, this), b = a = 0); a <= h; ++a) {
+ for (; b < f.length && f[b] < a; ) {
+ ++b;
+ }
+ this.WI[a] = b;
+ }
+ this.Di = {
+ WI: this.WI,
+ nJ: this.nJ,
+ ih: this.ih
+ };
+ return !0;
+ };
+ w.uc = !0;
+ w.prototype = Object.create(c.prototype);
+ w.prototype.constructor = w;
+ A.uc = !0;
+ A.prototype = Object.create(c.prototype);
+ A.prototype.constructor = A;
+ A.prototype.sH = function () {
+ var a;
+ a = this.qr("tfhd");
+ a && (this.Wu = a.HFa ? a.Wu : this.parent.startOffset);
+ return !0;
+ };
+ C.uc = !1;
+ C.prototype = new X();
+ C.prototype.constructor = C;
+ C.prototype.parse = function () {
+ var a,
+ l,
+ k,
+ f,
+ h;
+ a = this.M.offset;
+ this.$f();
+ if (1 === this.version) {
+ this.M.console.trace("translating vpcC box to draft equivalent");
+ this.M.offset += 2;
+ for (var b = this.M.offset, f = this.M.Ad(), c = this.M.Ad(), h = this.M.Ad(), m = this.M.Ad(), p = this.M.kh(), u = [], l = 0; l < p; ++l) {
+ u = this.M.Ad();
+ }
+ l = (f & 240) >>> 4;
+ k = (f & 14) >>> 1;
+ f = f & 1;
+ h = 16 === h ? 1 : 0;
+ c != m && this.M.console.warn("VP9: Has the VP9 spec for vpcC changed? colourPrimaries " + c + " and matrixCoefficients " + m + " should be the same value!");
+ m = 2;
+ switch (c) {
+ case 1:
+ m = 2;
+ break;
+ case 6:
+ m = 1;
+ break;
+ case 9:
+ m = 5;
+ break;
+ default:
+ this.M.console.warn("VP9: Unknown colourPrimaries " + c + "! Falling back to default color space VP9_COLOR_SPACE_BT709_6 (2)");
+ }
+ this.version = 0;
+ this.fb.I4(this.version, a);
+ this.fb.I4(l << 4 | m, b++);
+ this.fb.I4(k << 4 | h << 1 | f, b++);
+ p += 2;
+ u.push(0, 0);
+ this.fb.VOb(p);
+ b += 2;
+ u.forEach(function (a) {
+ this.fb.I4(a, b++);
+ });
+ }
+ return !0;
+ };
+ M.uc = !1;
+ M.prototype = new X();
+ M.prototype.constructor = M;
+ M.Ye = "tfhd";
+ Object.defineProperties(M.prototype, {
+ HFa: {
+ get: function () {
+ return this.qf & 1;
+ }
+ },
+ pHb: {
+ get: function () {
+ return this.qf & 2;
+ }
+ },
+ Skb: {
+ get: function () {
+ return this.qf & 8;
+ }
+ },
+ Vkb: {
+ get: function () {
+ return this.qf & 16;
+ }
+ },
+ Tkb: {
+ get: function () {
+ return this.qf & 32;
+ }
+ }
+ });
+ M.prototype.parse = function () {
+ this.$f();
+ this.Cpa = this.M.Mb();
+ this.Wu = this.HFa ? this.M.tj() : void 0;
+ this.pHb && this.M.Mb();
+ this.uY = this.Skb ? this.M.Mb() : void 0;
+ this.wY = this.Vkb ? this.M.Mb() : void 0;
+ this.vY = this.Tkb ? this.M.Mb() : void 0;
+ return !0;
+ };
+ H.uc = !1;
+ H.prototype = new X();
+ H.prototype.constructor = H;
+ H.prototype.parse = function () {
+ this.$f();
+ this.iN = 1 === this.version ? this.M.tj() : this.M.Mb();
+ return !0;
+ };
+ H.prototype.Sa = function (a) {
+ var b;
+ b = this.startOffset + 12;
+ this.iN += a;
+ 1 === this.version ? this.fb.WOb(this.iN, b) : this.fb.Qp(this.iN, b);
+ };
+ G.uc = !1;
+ G.prototype = new X();
+ G.prototype.constructor = G;
+ Object.defineProperties(G.prototype, {
+ OHa: {
+ get: function () {
+ return this.qf & 1;
+ }
+ },
+ cga: {
+ get: function () {
+ return this.qf & 4;
+ }
+ },
+ c3: {
+ get: function () {
+ return this.qf & 256;
+ }
+ },
+ d3: {
+ get: function () {
+ return this.qf & 512;
+ }
+ },
+ bVa: {
+ get: function () {
+ return this.qf & 1024;
+ }
+ },
+ Jna: {
+ get: function () {
+ return this.qf & 2048;
+ }
+ }
+ });
+ G.prototype.parse = function () {
+ this.$f();
+ this.RFa = this.M.offset;
+ this.ue = this.M.Mb();
+ this.mv = this.OHa ? this.M.Rma() : 0;
+ this.cga && this.M.Mb();
+ this.jR = (this.c3 ? 4 : 0) + (this.d3 ? 4 : 0) + (this.bVa ? 4 : 0) + (this.Jna ? 4 : 0);
+ this.rZ = this.M.offset;
+ ia(this.OHa, "Expected data offset to be present in Track Run");
+ ia(this.length - (this.M.offset - this.startOffset) === this.ue * this.jR, "Expected remaining data in box to be sample information");
+ return !0;
+ };
+ G.prototype.wM = function (a, b, f) {
+ var c,
+ h,
+ m;
+ c = this.c3 ? this.M.Mb() : a.uY;
+ h = this.d3 ? this.M.Mb() : a.wY;
+ a = this.bVa ? this.M.Mb() : a.vY;
+ m = 0 === this.version ? this.Jna ? this.M.Mb() : 0 : this.Jna ? this.M.Rma() : 0;
+ return {
+ oHb: m,
+ u0b: a,
+ S_b: f + m - (void 0 !== b ? b : m),
+ Bw: h,
+ kR: c
+ };
+ };
+ G.prototype.Sa = function (a, b, f, c, h, m, p) {
+ var u,
+ l,
+ k,
+ r;
+ u = 0;
+ l = 0;
+ this.fb.offset = this.rZ;
+ for (c = 0; c < h; ++c) {
+ r = this.wM(b, k, l);
+ 0 == c && (k = r.oHb);
+ u += r.Bw;
+ l += r.kR;
+ }
+ c = h;
+ h = this.M.offset;
+ r = this.wM(b, k, l);
+ this.CJ = c;
+ this.ZJb = l;
+ if (p) {
+ if ((this.fJ = this.mv + u, this.jr = 0, c === this.ue))
+ return !0;
+ } else if ((this.fJ = this.mv, this.jr = u, 0 === c))
+ return !0;
+ if (0 === c || c === this.ue)
+ return !1;
+ this.PY = !0;
+ if (p) {
+ this.jr += r.Bw;
+ for (p = c + 1; p < this.ue; ++p) {
+ r = this.wM(b, k, l);
+ this.jr += r.Bw;
+ }
+ this.fb.offset = this.RFa;
+ this.ue = c;
+ this.fb.Qp(this.ue);
+ this.fb.qqa(m);
+ this.cga && (this.M.offset += 4);
+ this.$k(this.length - (h - this.startOffset), h);
+ } else (b = h - this.rZ, this.fb.offset = this.RFa, this.ue -= c, this.fb.Qp(this.ue), this.mv += u, this.fb.qqa(m, this.mv), this.cga && (this.M.offset += 4), this.$k(b, this.fb.offset));
+ f.$k(this.jr, a.Wu + this.fJ);
+ return !0;
+ };
+ G.prototype.vGb = function (a, b, f, c, h, m) {
+ var u;
+ if (c) {
+ c = this.fJ;
+ for (var p = this.ue - 1; 0 <= p && this.ue - p <= h; --p) {
+ this.fb.offset = this.rZ + p * this.jR;
+ u = this.wM(b);
+ if (u.kR != m.duration) {
+ this.M.console.warn("Could not replace sample of duration " + u.kR + " with silence of duration " + m.duration);
+ break;
+ }
+ if (this.d3)
+ (this.fb.offset -= this.jR - (this.c3 ? 4 : 0), this.fb.Qp(m.Dw.byteLength));
+ else if (m.Dw.byteLength !== u.Bw) {
+ this.M.console.warn("Cannot replace sample with default size with silence of different size");
+ break;
+ }
+ c -= u.Bw;
+ f.O2(u.Bw, m.Dw, a.Wu + c);
+ }
+ } else
+ for ((c = this.fJ + this.jr, p = 0); p < this.ue && p < h; ++p) {
+ this.fb.offset = this.rZ + (p + this.CJ) * this.jR;
+ u = this.wM(b);
+ if (u.kR != m.duration) {
+ this.M.console.warn("Could not replace sample of duration " + u.kR + " with silence of duration " + m.duration);
+ break;
+ }
+ if (this.d3)
+ (this.fb.offset -= this.jR - (this.c3 ? 4 : 0), this.fb.Qp(m.Dw.byteLength));
+ else if (m.Dw.byteLength !== u.Bw) {
+ this.M.console.warn("Cannot replace sample with default size with silence of different size");
+ break;
+ }
+ f.O2(u.Bw, m.Dw, a.Wu + c);
+ c += u.Bw;
+ }
+ };
+ T.uc = !1;
+ T.prototype = Object.create(X.prototype);
+ T.prototype.constructor = T;
+ Object.defineProperties(T.prototype, {
+ EB: {
+ get: function () {
+ return this.qf & 1;
+ }
+ }
+ });
+ T.prototype.parse = function () {
+ this.$f();
+ this.EB && this.M.wz();
+ this.EB && this.M.Mb();
+ this.Ukb = this.M.Ad();
+ this.ue = this.M.Mb();
+ this.M.E2(this.ue);
+ return !0;
+ };
+ T.prototype.Sa = function (a, b) {
+ if (a && 0 === this.Ukb) {
+ a = b ? this.ue - a : a;
+ this.fb.offset = this.startOffset + 13 + (this.EB ? 8 : 0);
+ this.ue -= a;
+ this.fb.Qp(this.ue);
+ this.Hna = 0;
+ if (b)
+ this.fb.offset += this.ue;
+ else {
+ for (b = 0; b < a; ++b) {
+ this.Hna += this.fb.Ad();
+ }
+ this.fb.offset -= a;
+ }
+ this.$k(a, this.M.offset);
+ }
+ return !0;
+ };
+ S.uc = !1;
+ S.prototype = Object.create(X.prototype);
+ S.prototype.constructor = S;
+ Object.defineProperties(S.prototype, {
+ EB: {
+ get: function () {
+ return this.qf & 1;
+ }
+ }
+ });
+ S.prototype.parse = function () {
+ this.$f();
+ this.EB && this.M.wz();
+ this.EB && this.M.Mb();
+ this.Un = this.M.Mb();
+ ia(1 === this.Un, "Expected a single entry in Sample Auxiliary Information Offsets box");
+ this.mv = 0 === this.version ? this.M.Rma() : this.M.gFb();
+ return !0;
+ };
+ S.prototype.Sa = function (a, b) {
+ this.mv += a;
+ this.fb.offset = this.startOffset + 16 + (this.EB ? 8 : 0) + (0 === this.version ? 0 : 4);
+ this.fb.qqa(b, this.mv);
+ return !0;
+ };
+ n.uc = !1;
+ n.prototype = Object.create(X.prototype);
+ n.prototype.constructor = n;
+ Object.defineProperties(n.prototype, {
+ aSa: {
+ get: function () {
+ return this.qf & 1;
+ }
+ },
+ WNb: {
+ get: function () {
+ return this.qf & 2;
+ }
+ }
+ });
+ n.prototype.parse = function () {
+ this.$f();
+ this.aSa && (this.M.Mb(), this.rwb = this.M.E2(16));
+ this.ue = this.M.Mb();
+ return !0;
+ };
+ n.prototype.Sa = function (a, b) {
+ var f,
+ c;
+ f = b ? this.ue - a : a;
+ this.fb.offset = this.startOffset + 28 + (this.aSa ? 20 : 0);
+ this.ue -= f;
+ this.fb.Qp(this.ue);
+ a = this.fb.offset;
+ if (this.WNb)
+ for (f = b ? this.ue : f; 0 < f; --f) {
+ this.fb.offset += 8;
+ c = this.fb.kh();
+ this.fb.offset += 6 * c;
+ }
+ else
+ this.fb.offset += 8 * (b ? this.ue : f);
+ b ? this.$k(this.length - (this.M.offset - this.startOffset), this.M.offset) : this.$k(this.M.offset - a, a);
+ };
+ q.uc = !1;
+ q.prototype = Object.create(X.prototype);
+ q.prototype.constructor = q;
+ q.prototype.parse = function () {
+ this.$f();
+ return !0;
+ };
+ q.prototype.Sa = function (a, b, f) {
+ f ? this.$k(b - a, this.startOffset + 12 + a) : this.$k(a, this.startOffset + 12);
+ return !0;
+ };
+ B.uc = !1;
+ B.prototype = Object.create(X.prototype);
+ B.prototype.constructor = B;
+ B.prototype.parse = function () {
+ this.$f();
+ this.M.wz();
+ 1 === this.version && this.M.Mb();
+ this.Un = this.M.Mb();
+ this.lR = [];
+ for (var a = 0; a < this.Un; ++a) {
+ for (var b = this.M.Mb(), f = this.M.Mb(), c = 0; c < b; ++c) {
+ this.lR.push(f);
+ }
+ }
+ return !0;
+ };
+ B.prototype.Sa = function (a, b) {
+ this.lR = b ? this.lR.slice(0, a) : this.lR.slice(a);
+ a = this.lR.reduce(function (a, b) {
+ 0 !== a.length && a[a.length - 1].group === b || a.push({
+ group: b,
+ count: 0
+ });
+ ++a[a.length - 1].count;
+ return a;
+ }, []);
+ this.fb.offset = this.startOffset + 16 + (1 === this.version ? 4 : 0);
+ this.fb.Qp(a.length);
+ a.forEach((function (a) {
+ this.fb.Qp(a.count);
+ this.fb.Qp(a.group);
+ }).bind(this));
+ this.Un > a.length && this.$k(8 * (this.Un - a.length));
+ this.Un = a.length;
+ return !0;
+ };
+ V.uc = !1;
+ V.prototype = Object.create(X.prototype);
+ V.prototype.constructor = V;
+ Ba = {
+ Vc: {
+ moov: k,
+ trak: c,
+ mdia: c,
+ mdhd: l,
+ minf: c,
+ encv: Ba,
+ schi: c,
+ sidx: r,
+ sinf: c,
+ stbl: c,
+ tenc: m,
+ mvex: c,
+ moof: w,
+ traf: A,
+ tfhd: M,
+ trun: G,
+ sbgp: B,
+ sdtp: q,
+ saiz: T,
+ saio: S,
+ tfdt: H,
+ mdat: V,
+ vmaf: h
+ },
+ uMb: {
+ vpcC: C,
+ SmDm: g("smdm"),
+ CoLL: g("coll")
+ },
+ bYa: {
+ schm: N
+ },
+ Ina: {}
+ };
+ t([mb, ja, ya, za, da, Rb, O, P, W, ca, Ha, ma, na, ha, a], Ba.Vc);
+ t([Ua, E, lb, hb, Jb, Fa, z, ib, Q, R], Ba.Ina);
+ t([mb, N], Ba.bYa);
+ Ba.Vc[b.nxa] = m;
+ Ba.Vc[b.nU] = f;
+ Ba.Vc[b.mU] = u;
+ Ba.Vc[b.mxa] = n;
+ Ba.Ina[b.Y7] = U;
+ Ba.cg = X;
+ d.P = {
+ AI: Ba
+ };
+ }, function (d, b, a) {
+ var c,
+ k;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.iJa = b.mC = b.xm = b.mLa = b.h_ = void 0;
+ c = a(5);
+ k = a(170);
+ b.h_ = function (a, b) {
+ return !(1 !== a || !b.eH) || 0 === a;
+ };
+ b.mLa = function (a, b, c, p) {
+ a = a.ym(b, void 0, !0);
+ c && (a = Math.floor(a / p) * p);
+ return a;
+ };
+ b.xm = function (a, r, h, p, m, f) {
+ var u,
+ l,
+ d,
+ g;
+ k.Xl.$n(a);
+ c.assert(h.$, "findFirstFragment called without stream fragments");
+ u = h.$;
+ c.assert(p >= u.hi(0));
+ l = b.h_(a, r);
+ 0 === a && !f && r.Qo && !r.yB && h.Ni && (p = Math.max(h.$.hi(0), p + h.Ni.qa));
+ d = b.mLa(u, p, h.O.$Na(a), r.FI);
+ g = h.Hi(d);
+ if (g.oa < p)
+ return g;
+ l && ((l = g.mZ(p)) ? (0 < l.Um && g.ik({
+ start: l.Um
+ }), 0 !== a || r.Ika || (0 > l.Oc && g.ik({
+ start: l.Um
+ }), l.Oc < (r.Qo && !r.yB && h.Ni ? Math.floor(h.Ni.qa) : 0) && g.Zea())) : p >= g.oa && d < u.length - 1 && (g = h.Hi(d + 1)));
+ 1 === a && m && g.oa === m && d < u.length - 1 && (g = h.Hi(d + 1));
+ 0 === a && !g.Sa && (r.tP || r.JNa || r.qmb) && f && g.ik({});
+ g.CR(p);
+ return g;
+ };
+ b.mC = function (a, c, h, p, m, f, u) {
+ var l;
+ k.Xl.$n(a);
+ l = h.$;
+ void 0 === p && (p = l.oa);
+ if (m && (m = m.fob(h, p, a, c, f)))
+ return m;
+ m = l.Wa;
+ u = p ? p + b.iJa(a, m, c.zt, u) : l.pfa(l.length - 1);
+ l = l.ym(u, void 0, !0);
+ m = h.Hi(l);
+ 0 === l || m.T !== p || 1 !== a && c.zt || (--l, m = h.Hi(l));
+ b.h_(a, c) ? (u = 1 === a ? u : p, u < m.oa && ((f = m.nob(u)) && 0 !== f.Um ? m.ik({
+ end: f.Um
+ }) : 0 === a && (f || u < m.T) && 0 !== l ? m = h.Hi(l - 1) : 1 === a && f && 0 !== l && (m = h.Hi(l - 1))), 0 !== a || m.Sa || !c.tP && !c.INa || m.ik()) : 0 === a && !c.zt && p - m.T < m.duration / 2 && 0 !== l && (m = h.Hi(l - 1));
+ m.CR(p);
+ return m;
+ };
+ b.iJa = function (a, b, c, p) {
+ var h;
+ return 1 === a || p ? 0 : c ? null !== (h = null === b || void 0 === b ? void 0 : b.qa) && void 0 !== h ? h : 0 : b ? -b.qa : 0;
+ };
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r,
+ h,
+ p,
+ m,
+ f,
+ u,
+ w,
+ A,
+ g,
+ C;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.VS = void 0;
+ c = a(0);
+ k = a(18);
+ l = a(907);
+ d = a(83);
+ r = a(899);
+ h = a(874);
+ p = a(871);
+ m = a(226);
+ f = a(856);
+ u = a(16);
+ w = a(4);
+ A = a(5);
+ g = a(398);
+ a(225);
+ C = (function () {
+ return function (a) {
+ var b;
+ b = a.Zia;
+ a = a.i0;
+ this.SP = this.replace = b;
+ this.Kf = a;
+ };
+ })();
+ a = (function (a) {
+ function b(b) {
+ var f,
+ u,
+ d,
+ H,
+ A,
+ M,
+ G,
+ K,
+ n,
+ q,
+ t,
+ O,
+ na,
+ ha,
+ P,
+ Ha,
+ ja,
+ ya,
+ za,
+ ma,
+ Ua,
+ z,
+ E;
+ f = b.ma;
+ u = b.Za;
+ d = b.xa;
+ H = b.Wk;
+ A = b.nb;
+ M = b.xka;
+ G = b.ij;
+ K = b.qs;
+ n = b.config;
+ q = b.GR;
+ t = b.Yha;
+ O = b.GD;
+ na = b.HO;
+ ha = b.zb;
+ P = b.Mf;
+ Ha = b.DI;
+ b = b.vfa;
+ ja = a.call(this) || this;
+ ja.G_ = !1;
+ ja.wCa = [];
+ ja.NCa = [];
+ ja.vh = [];
+ ja.$G = [];
+ ja.rl = !1;
+ ja.ma = f;
+ ja.Za = u;
+ ja.xa = d;
+ ja.Wk = H;
+ ja.nb = A;
+ ja.config = n;
+ ja.console = new w.Console("ASEJS", "media|asejs", "<" + String(ja.ma) + ">");
+ ja.vab = new g.u9();
+ t && (f = t.Gq, ja.bf = new p.tua(ja, ja.console, ja.config, t.Ol, t.g_, f, t.e0, t.af, t.Pc, t.ng, t.My));
+ ja.Ly = new k.EventEmitter();
+ ja.HO = na;
+ ja.zb = ha;
+ ja.DI = Ha;
+ ja.Kl = new m.bU(d, ha, P, ja.config, null === b || void 0 === b ? void 0 : b.Ol);
+ b && (t = b.Ls, na = b.Dm, ha = b.YH, ja.ul = b.oh, ja.YH = ha, ja.Dm = na, ja.Ls = t, ja.Bh = new h.Kta(ja.Kl, ja.config, ja.jtb.bind(ja), ja.itb.bind(ja)));
+ q && (b = q.kD, t = q.ga, na = q.sy, ha = q.Mm, f = q.Gq, b && t ? (ja.FR = new l.Mza(b, {
+ ga: String(t),
+ sy: na,
+ Hyb: ja.config.uU.mx,
+ Veb: ja.config.uU.lv,
+ uda: ja.config.uda
+ }, ha), ja.Gq = f) : ha("SideChannel: pbcid/xid is missing."));
+ ja.Bh && ja.FR && ja.Bh.eJb(ja.FR);
+ ja.GD = O;
+ ja.Ie = new C(M);
+ ja.ij = G;
+ ya = [[], []];
+ za = [{}, {}
+ ];
+ ma = [0, 0];
+ Ua = !1;
+ z = ja.nb(0);
+ E = ja.nb(1);
+ ["audio_tracks", "video_tracks"].forEach(function (a, b) {
+ var f;
+ f = 0 === b;
+ f && !z || 1 === b && !E || d[a].forEach(function (a, h) {
+ a = new r.gra({
+ O: ja,
+ QC: a,
+ L: b,
+ Kf: M.i0,
+ qs: K,
+ jS: h,
+ tB: h + (f ? d.video_tracks.length : 0)
+ }, ja.config, ja.console);
+ ya[b].push(a);
+ za[b] = c.__assign(c.__assign({}, za[b]), a.HH());
+ a.io > ma[a.L] && (ma[a.L] = a.io);
+ Ua = Ua || a.B_;
+ });
+ });
+ ja.sV = ya;
+ ja.FKb = za;
+ ja.Uq = ma;
+ ja.B_ = Ua;
+ ja.tCa = ja.config && ja.config.lP && !!ja.config.lP.length && -1 !== ja.config.lP.indexOf(String(ja.G)) && ja.config.pia && !!ja.config.pia.length && void 0 !== ja.Hq(1, ja.config.pia[0]);
+ ja.L8a = ja.tCa && ja.config.TY;
+ return ja;
+ }
+ c.__extends(b, a);
+ Object.defineProperties(b.prototype, {
+ qg: {
+ get: function () {
+ return this.wCa;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ xyb: {
+ get: function () {
+ return this.NCa;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ G: {
+ get: function () {
+ return this.xa.movieId;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ qq: {
+ get: function () {
+ return this.xa.choiceMap;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ duration: {
+ get: function () {
+ return this.xa.duration;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ Ji: {
+ get: function () {
+ return this.rl;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ Zma: {
+ get: function () {
+ return this.vab;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ b.prototype.ic = function () {
+ this.close();
+ this.yc();
+ };
+ b.prototype.close = function () {
+ var a;
+ this.$G = [];
+ null === (a = this.Bh) || void 0 === a ? void 0 : a.ic();
+ this.Kl.ic();
+ this.rl = !0;
+ };
+ b.prototype.yc = function () {
+ this.bf && this.bf.yc();
+ };
+ b.prototype.Lv = function () {
+ return void 0 !== this.qq;
+ };
+ b.prototype.getTracks = function (a) {
+ return this.sV[a];
+ };
+ b.prototype.getTrackById = function (a) {
+ var b;
+ this.sV.some(function (f) {
+ return f.some(function (f) {
+ if (f.cb === a)
+ return (b = f, !0);
+ });
+ });
+ b || this.console.warn("getTrackById not found:", a, "length:", this.sV.length);
+ return b;
+ };
+ b.prototype.sMa = function (a, b) {
+ var f;
+ f = this.sV[a];
+ if (0 > b || b >= f.length)
+ this.console.warn("getTrackByIndex out of range:", b, "length:", f.length, "mediaType:", a);
+ else
+ return f[b];
+ };
+ b.prototype.Hq = function (a, b) {
+ return (a = this.HH(a)) && a[b];
+ };
+ b.prototype.HH = function (a) {
+ return this.FKb[a];
+ };
+ b.prototype.$Mb = function (a, b) {
+ this.wCa[a] = b;
+ b.stream.$ && this.GYa(a, b.stream.$);
+ };
+ b.prototype.$Ia = function (a) {
+ return void 0 === a || 1 === a ? this.L8a : !1;
+ };
+ b.prototype.$Na = function (a) {
+ return void 0 === a || 1 === a ? this.tCa : !1;
+ };
+ b.prototype.Zvb = function (a) {
+ var b,
+ f;
+ if (void 0 === a.s2 || void 0 === a.yma) {
+ b = this.Kl.Wga().filter(function (b) {
+ return void 0 !== b.pc[a.wa];
+ })[0];
+ f = b.children.filter(function (b) {
+ return b.xe.some(function (b) {
+ return b.stream.id === a.wa;
+ });
+ })[0];
+ a.s2 = b.id;
+ a.yma = f.id;
+ }
+ return {
+ hja: a.location === a.s2,
+ $vb: a.Ac === a.yma
+ };
+ };
+ b.prototype.B3 = function (a, b, f) {
+ void 0 !== b && void 0 !== f && (this.wUa(a.L, b), a.B3(b, f));
+ };
+ b.prototype.wUa = function (a, b) {
+ var f,
+ c;
+ c = this.config.cla;
+ ("location" === c || "video_location" === c && 1 === a) && this.zb.AR(b);
+ null === (f = this.HO) || void 0 === f ? void 0 : f.call(this).qBb(a, b);
+ };
+ b.prototype.oh = function (a, b, f, c, h) {
+ A.assert(this.ul, "Stream failure reporting can not be used on prefetch viewables.");
+ return this.ul(a, b, f, c, h);
+ };
+ b.prototype.Op = function () {
+ var a,
+ b,
+ f;
+ a = this;
+ b = [];
+ if (this.Ji)
+ return (this.console.error("updateRequestUrls, closed Viewable:", this.ma), !1);
+ u.We.forEach(function (f) {
+ a.nb(f) && a.sNb(f) && (f = a.eNb(f), 0 < f.length && b.push.apply(b, f));
+ });
+ f = this.aNb();
+ 0 < f.length && b.push.apply(b, f);
+ return this.KGb(b);
+ };
+ b.prototype.xm = function (a, b) {
+ var f;
+ f = this.getTracks(1)[0];
+ A.assert(f);
+ if (f.rP)
+ return f.xm(a, b);
+ };
+ b.prototype.sNb = function (a) {
+ var b,
+ f,
+ h,
+ u,
+ l;
+ if (this.Ji)
+ return (this.console.warn("updateStreamUrls ignored, viewable cleaned up"), !1);
+ if (!this.nb(a))
+ return (this.console.warn("updateStreamUrls ignored, streaming for mediaType type not enabled", a), !1);
+ h = !0;
+ try {
+ for (var m = c.__values(this.vh), p = m.next(); !p.done; p = m.next()) {
+ u = p.value.kb(a);
+ A.assert(u);
+ l = this.Kl.ZJ(this.ma, u.track.Qc);
+ l || u.ib("location selector failed to update streamList");
+ h = h && l;
+ }
+ } catch (ia) {
+ b = {
+ error: ia
+ };
+ }
+ finally {
+ try {
+ p && !p.done && (f = m["return"]) && f.call(m);
+ }
+ finally {
+ if (b)
+ throw b.error;
+ }
+ }
+ return h;
+ };
+ b.prototype.aNb = function () {
+ A.assert(this.bf, "Headers not available from prefetch viewables.");
+ return this.bf.Op();
+ };
+ b.prototype.eNb = function (a) {
+ var b,
+ f,
+ h,
+ u;
+ h = [];
+ if (this.Ji)
+ return (this.console.warn("updateStreamUrls ignored, viewable cleaned up"), h);
+ if (!this.nb(a))
+ return (this.console.warn("updateStreamUrls ignored, streaming for mediaType type not enabled", a), h);
+ try {
+ for (var m = c.__values(this.vh), p = m.next(); !p.done; p = m.next()) {
+ u = p.value.Op(a);
+ u.length && h.push.apply(h, u);
+ }
+ } catch (fa) {
+ b = {
+ error: fa
+ };
+ }
+ finally {
+ try {
+ p && !p.done && (f = m["return"]) && f.call(m);
+ }
+ finally {
+ if (b)
+ throw b.error;
+ }
+ }
+ return h;
+ };
+ b.prototype.KGb = function (a) {
+ var b,
+ f,
+ c;
+ b = this;
+ if (0 === a.length)
+ return !0;
+ f = 0;
+ c = [];
+ a.forEach(function (a) {
+ var h;
+ if (a.kc) {
+ h = a.O;
+ h.Za > b.Za && (c.push({
+ O: h,
+ track: a.stream.track
+ }), ++f);
+ }
+ });
+ c.forEach(function (a) {
+ var b;
+ b = a.track;
+ a.O.iJ([0 === b.L ? b : void 0, 1 === b.L ? b : void 0], void 0, b.L);
+ });
+ return f === a.length;
+ };
+ b.prototype.Rk = function () {
+ var a;
+ a = this;
+ this.Kl.Rk();
+ this.Bh && this.Bh.Rk();
+ this.FR && (A.assert(this.Gq), u.We.forEach(function (b) {
+ b = a.Gq(b);
+ a.FR.boa("rebuffer", b.Bja);
+ }));
+ };
+ b.prototype.qQ = function () {
+ this.Bh && this.Bh.qQ();
+ };
+ b.prototype.aqa = function (a, b) {
+ A.assert(this.bf, "Headers not available from prefetch viewables.");
+ this.bf.aqa(a, b);
+ };
+ b.prototype.A_ = function () {
+ A.assert(this.bf, "Headers not available from prefetch viewables.");
+ return this.bf.A_();
+ };
+ b.prototype.qda = function () {
+ A.assert(this.bf, "Headers not available from prefetch viewables.");
+ this.bf.qda();
+ };
+ b.prototype.zJ = function (a) {
+ A.assert(this.bf, "Headers not available from prefetch viewables.");
+ this.bf.zJ(a);
+ };
+ b.prototype.Opa = function () {
+ A.assert(this.bf, "Headers not available from prefetch viewables.");
+ return this.bf.Opa();
+ };
+ b.prototype.nj = function (a, b) {
+ A.assert(this.bf, "Headers not available from prefetch viewables.");
+ return this.bf.nj(a, b);
+ };
+ b.prototype.xHa = function (a, b, f) {
+ A.assert(this.bf, "Headers not available from prefetch viewables.");
+ this.bf.k4(a, b, f, !0);
+ };
+ b.prototype.gX = function (a, b, f) {
+ A.assert(this.bf, "Headers not available from prefetch viewables.");
+ return this.bf.gX(a, b, !!f);
+ };
+ b.prototype.JIb = function (a, b) {
+ this.$G.push({
+ stream: a,
+ usb: b
+ });
+ };
+ b.prototype.$O = function () {
+ var a;
+ a = this;
+ A.assert(this.Dm, "Streamables not available on prefetch viewables.");
+ return this.Dm() ? [] : this.$G.map(function (b) {
+ var f,
+ c;
+ f = b.stream;
+ c = b.usb;
+ c = c();
+ return {
+ qm: c.qm,
+ xs: c.xs,
+ Lp: c.Lp,
+ Xf: c.Xf,
+ DOa: function () {
+ var c;
+ c = f.gE();
+ a.$G = c ? a.$G.filter(function (a) {
+ return a.stream !== f;
+ }) : a.$G.filter(function (a) {
+ return a !== b;
+ });
+ return c;
+ }
+ };
+ });
+ };
+ b.prototype.gE = function (a) {
+ A.assert(this.bf, "Headers not available from prefetch viewables.");
+ return this.bf.gE(a);
+ };
+ b.prototype.Dba = function (a, b) {
+ A.assert(this.bf, "Headers not available from prefetch viewables.");
+ return this.bf.Dba(a, b);
+ };
+ b.prototype.yna = function (a) {
+ A.assert(this.bf, "Headers not available from prefetch viewables.");
+ return this.bf.yna(a);
+ };
+ b.prototype.iJ = function (a, b, f) {
+ A.assert(this.bf, "Headers not available from prefetch viewables.");
+ return this.bf.iJ(a, b, f);
+ };
+ b.prototype.ltb = function (a) {
+ var b,
+ f,
+ c,
+ h;
+ b = a.wa;
+ f = a.L;
+ this.GYa(f, a.stream.$);
+ b = this.Hq(f, b);
+ c = this.Lv() ? this.config.WPa : 0;
+ h = w.Ik()[f];
+ 1 === f && 0 < this.config.Ws && (h = Math.min(h, this.config.Ws));
+ b.zYa(h, c);
+ this.Ly.emit("onHeaderFragments", a);
+ };
+ b.prototype.jUa = function (a) {
+ this.vh.push(a);
+ };
+ b.prototype.sYa = function (a) {
+ a = this.vh.indexOf(a);
+ A.assert(-1 !== a, "Unexpected call to unregisterBranch, branch not registered with Viewable.");
+ this.vh.splice(a, 1);
+ };
+ b.prototype.T1 = function () {
+ var a;
+ null === (a = this.GD) || void 0 === a ? void 0 : a.oG();
+ };
+ b.prototype.nw = function (a) {
+ this.Ji ? this.console.warn("onloadstart ignored, viewable cleaned up, mediaRequest:", a) : void 0 !== a.location && this.wUa(a.L, a.location);
+ };
+ b.prototype.JI = function (a) {
+ A.assert(this.Bh, "Requests cannot be handled on prefetch viewables.");
+ this.Ji ? this.console.warn("onprogress ignored, viewable cleaned up, mediaRequest:", a) : this.Bh.p4({
+ timestamp: a.ed,
+ url: a.url
+ });
+ };
+ b.prototype.rj = function (a) {
+ var b;
+ null === (b = this.GD) || void 0 === b ? void 0 : b.M2();
+ A.assert(this.Bh && this.Dm && this.DI, "Requests cannot be handled on prefetch viewables.");
+ this.Ji ? this.console.warn("oncomplete ignored, viewable cleanuped, mediaRequest:", a) : this.Dm() || (this.Bh.p4({
+ timestamp: a.ed,
+ mediaRequest: a
+ }), this.DI(a));
+ };
+ b.prototype.wQ = function (a, b, f) {
+ var c;
+ f && (null === (c = this.GD) || void 0 === c ? void 0 : c.M2());
+ };
+ b.prototype.xQ = function (a) {
+ var b;
+ A.assert(this.Bh && this.ul, "Requests cannot be handled on prefetch viewables.");
+ if (this.Ji)
+ this.console.warn("onerror ignored, viewable cleaned up, mediaRequest:", a);
+ else {
+ b = a.Dh;
+ this.config.ftb && b === f.wk.zE.K6 && 0 < a.Qe && (b = f.wk.zE.n5);
+ this.Bh.Bp({
+ url: a.url
+ }, a.status, b, a.qj);
+ this.Op() || this.oh(a.qH || "unknown", "NFErr_MC_StreamingFailure", a.Dh, a.status, a.qj);
+ }
+ };
+ b.prototype.GYa = function (a, b) {
+ this.NCa[a] = b.oka;
+ };
+ b.prototype.jtb = function (a) {
+ var b,
+ f,
+ c;
+ A.assert(this.YH && this.ul, "Error handling not available on prefetch viewables.");
+ if (!this.rl) {
+ b = a.Ivb;
+ f = a.QBb;
+ c = a.RBb;
+ a = a.SBb;
+ this.console.warn("Streaming failure, isBuffering " + this.YH() + " is permanent: " + b + ", last error code: " + f + ", last http code: " + c + ", last native code: " + a);
+ b ? (this.console.warn(" > Permanent failure, done"), this.oh("Permanent failure", "NFErr_MC_StreamingFailure", f, c, a)) : this.YH() ? (this.console.warn(" > We are buffering, calling it!"), this.oh("Temporary failure while buffering", "NFErr_MC_StreamingFailure", a, c, a)) : (this.console.warn(" > Resetting failures"), this.Bh.V2());
+ }
+ };
+ b.prototype.itb = function () {
+ A.assert(this.Ls, "Error handling not available on prefetch viewables.");
+ this.rl || (this.Op(), this.Ls());
+ };
+ return b;
+ })(d.yr);
+ b.VS = a;
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Yyb = b.We = void 0;
+ b.We = [0, 1];
+ b.Yyb = function (a) {
+ return 0 === a ? "audio" : 1 === a ? "video" : "unknown";
+ };
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r,
+ h,
+ p,
+ m,
+ f,
+ u,
+ w,
+ A,
+ g,
+ C;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.QA = void 0;
+ c = a(0);
+ k = a(67);
+ l = a(12);
+ r = a(75);
+ h = a(6);
+ p = a(59);
+ m = a(17);
+ f = a(369);
+ u = a(15);
+ w = a(721);
+ A = a(13);
+ g = a(2);
+ (function (a) {
+ a[a.tU = 0] = "NOT_LOADED";
+ a[a.LOADING = 1] = "LOADING";
+ a[a.LOADED = 2] = "LOADED";
+ a[a.aL = 3] = "LOAD_FAILED";
+ })(C || (C = {}));
+ d = (function () {
+ function a(a, b, f, c, m, u, l, k, d, w, A, g, M, K, n, q) {
+ this.j = a;
+ this.cb = b;
+ this.DC = f;
+ this.vd = c;
+ this.qv = m;
+ this.Rea = u;
+ this.Al = l;
+ this.displayName = k;
+ this.cn = d;
+ this.WQ = w;
+ this.profile = A;
+ this.Xq = g;
+ this.hla = M;
+ this.Mob = K;
+ this.n0 = n;
+ this.Kq = q;
+ this.type = r.Qg.d4;
+ this.ur = void 0;
+ this.co = !(!A || A != p.ml.RE && A != p.ml.oU);
+ this.fh = {
+ bcp47: l,
+ trackId: b,
+ downloadableId: c,
+ isImageBased: this.co
+ };
+ this.log = h.Gg(a, "TimedTextTrack");
+ this.state = C.tU;
+ this.request = this.request.bind(this);
+ }
+ a.prototype.getEntries = function () {
+ var a;
+ a = this;
+ if (this.j.state.value === A.ob.CLOSED || this.j.state.value === A.ob.CLOSING)
+ return Promise.reject({
+ U: !1
+ });
+ if (this.co)
+ return this.Tub();
+ this.HIa || (this.HIa = this.GIa());
+ return this.HIa.then(function (b) {
+ return a.cCb(b);
+ });
+ };
+ a.prototype.Wc = function () {
+ return this.state;
+ };
+ a.prototype.o0 = function () {
+ return this.hla;
+ };
+ a.prototype.j0 = function () {
+ return this.Mob;
+ };
+ a.prototype.Ey = function (a, b) {
+ var f;
+ f = [];
+ try {
+ this.co ? f = this.pg && this.pg.Ey(a, b) || [] : this.entries && (f = this.entries.filter(function (f) {
+ var c;
+ c = U([f.startTime, f.endTime]);
+ f = c.next().value;
+ c = c.next().value;
+ return f >= a && f <= b || f <= a && a <= c;
+ }));
+ } catch (S) {
+ this.log.error("error in getSubtitles", S, {
+ start: a,
+ end: b,
+ isImageBased: this.co
+ });
+ }
+ return f;
+ };
+ a.prototype.qsb = function () {
+ var b;
+ if (!u.dc(this.T))
+ try {
+ this.T = this.co ? (b = this.Ey(0, a.e4a)[0]) && b.displayTime : (b = this.entries && this.entries[0]) && b.startTime;
+ } catch (G) {
+ this.log.error("exception in getStartPts", G);
+ }
+ return this.T;
+ };
+ a.prototype.D3 = function (a) {
+ return this.j.state.value === A.ob.CLOSING || this.j.state.value === A.ob.CLOSED ? (this.log.info("playback is closing, abort timed text retry", a), !1) : this.j.Bc.value !== this ? (this.log.info("timed text track was changed, abort timed text retry", a), !1) : !0;
+ };
+ a.prototype.Tub = function () {
+ var a,
+ b,
+ f,
+ c,
+ m,
+ p,
+ k,
+ r,
+ d;
+ a = this;
+ if (!this.CNa) {
+ this.state = C.LOADING;
+ b = {
+ feb: !1,
+ profile: this.profile,
+ g1: this.Xq.offset,
+ Mka: this.Xq.length,
+ Oc: this.j.bb.value || 0,
+ bufferSize: l.config.tub,
+ z0b: {
+ Ya: this.j.PZ()
+ }
+ };
+ f = h.Gg(this.j, "TimedTextTrack");
+ f.warn = f.trace.bind(f);
+ f.info = f.debug.bind(f);
+ c = w.EHa(this.j, f, this.request, this);
+ m = (this.Rea || []).filter(function (b) {
+ return (b.id in a.qv);
+ }).sort(function (a, b) {
+ return a.Yf - b.Yf;
+ }).map(function (a) {
+ return a.id;
+ });
+ p = 0;
+ k = {};
+ r = !0;
+ d = function (f, w) {
+ var H;
+ if (u.dc(f)) {
+ if (r || a.D3(a.Fq(a.uq, "", "image"))) {
+ r = !1;
+ a.Xq.url = a.qv[a.uq];
+ b.url = a.Xq.url;
+ k[f] = (k[f] || 0) + 1;
+ H = new h.gAa(c, b);
+ H.on("ready", function () {
+ a.pg = H;
+ w({
+ U: !0,
+ track: a
+ });
+ });
+ H.on("error", function (b) {
+ var c;
+ b = Object.assign({
+ U: !1
+ }, b);
+ c = a.Fq(a.uq, a.Xq.url, "image");
+ c.details = {
+ midxoffset: a.Xq.offset,
+ midxsize: a.Xq.length
+ };
+ c.errorstring = b.errorString;
+ k[f] <= l.config.CXa ? (a.oZ(c, !0, "retry with current cdn"), a.yca(k[f]).then(function (b) {
+ a.log.trace("retry timed text download after " + b, a.Fq(a.uq, "", "image"));
+ d(a.uq, w);
+ })) : (a.uq = m[p++], a.uq ? (a.oZ(c, !0, "retry with next cdn"), a.yca(k[f]).then(function (b) {
+ a.log.trace("retry timed text download after " + b, a.Fq(a.uq, "", "image"));
+ d(a.uq, w);
+ })) : (a.oZ(c, !1, "all cdns tried"), w({
+ U: !1,
+ Pzb: "all cdns failed for image subs",
+ track: a
+ })));
+ });
+ H.start();
+ } else
+ w({
+ U: !1,
+ hs: !0
+ });
+ } else (w({
+ U: !1,
+ Pzb: "cdnId is not defined for image subs downloadUrl"
+ }), a.oZ(a.Fq(0, "", "image"), !1, "cdnId is undefined"));
+ };
+ this.uq = m[p++];
+ this.CNa = new Promise(function (b, f) {
+ d(a.uq, function (c) {
+ c.U ? (a.log.info("Loaded image subtitle manager"), a.state = C.LOADED, b(c)) : (a.log.error("Unable to load image subtitles manager", c), a.state = C.aL, f(c));
+ });
+ });
+ }
+ return this.CNa;
+ };
+ a.prototype.oZ = function (a, b, f) {
+ a = Object.assign({}, a, {
+ x1b: b,
+ status: f
+ });
+ this.j.fireEvent(A.V.MJ, a);
+ this.log.warn("subtitleerror event", a);
+ };
+ a.prototype.request = function (a, b) {
+ var f;
+ f = this;
+ this.log.trace("Downloading", a);
+ a = {
+ url: a.url,
+ offset: a.offset,
+ length: a.size,
+ ur: this.ur,
+ responseType: k.jP,
+ headers: {},
+ tc: this.Bga(this.uq)
+ };
+ this.j.N_.download(a, function (a) {
+ f.log.trace("imgsub: request status " + a.U);
+ a.U ? b(null, new Uint8Array(a.content)) : b({
+ ja: a.ja,
+ Fe: a.Fe
+ });
+ });
+ };
+ a.prototype.Fq = function (a, b, f) {
+ return {
+ currentCdnId: a,
+ url: b,
+ profile: this.profile,
+ dlid: this.vd,
+ subtitletype: f,
+ bcp47: this.Al,
+ trackId: this.cb,
+ cdnCount: Object.keys(this.qv).length,
+ isImageBased: this.co
+ };
+ };
+ a.prototype.Bga = function (a) {
+ return (this.Rea || []).find(function (b) {
+ return b.id === a;
+ });
+ };
+ a.prototype.GIa = function () {
+ var h,
+ m;
+ function a(a) {
+ return c.__awaiter(h, void 0, void 0, function () {
+ var h,
+ p,
+ u,
+ l,
+ k;
+ function c() {
+ for (; ; ) {
+ switch (h) {
+ case 0:
+ u = f();
+ p = l.Fq(a.tc.id, a.url, "text");
+ p.errorstring = a.reason;
+ if (!u || !l.D3(p)) {
+ h = 1;
+ break;
+ }
+ h = -1;
+ return {
+ value: l.yca(m[u.id]).then(b),
+ done: !0
+ };
+ case 1:
+ return (h = -1, {
+ value: Promise.reject({
+ U: !1,
+ hs: !0
+ }),
+ done: !0
+ });
+ default:
+ return {
+ value: void 0,
+ done: !0
+ };
+ }
+ }
+ }
+ h = 0;
+ l = this;
+ k = {
+ next: function () {
+ return c();
+ },
+ "throw": function () {
+ return c();
+ },
+ "return": function () {
+ throw Error("Not yet implemented");
+ }
+ };
+ q();
+ k[Symbol.iterator] = function () {
+ return this;
+ };
+ return k;
+ });
+ }
+ function b() {
+ return c.__awaiter(h, void 0, void 0, function () {
+ var c,
+ h,
+ p,
+ u,
+ l;
+ function b() {
+ for (; ; ) {
+ switch (c) {
+ case 0:
+ h = (p = f()) && u.qv[p.id];
+ if (!p || !h) {
+ c = 1;
+ break;
+ }
+ m[p.id] = (m[p.id] || 0) + 1;
+ c = -1;
+ return {
+ value: u.Rlb(h, p)["catch"](a),
+ done: !0
+ };
+ case 1:
+ return (c = -1, {
+ value: Promise.reject({}),
+ done: !0
+ });
+ default:
+ return {
+ value: void 0,
+ done: !0
+ };
+ }
+ }
+ }
+ c = 0;
+ u = this;
+ l = {
+ next: function () {
+ return b();
+ },
+ "throw": function () {
+ return b();
+ },
+ "return": function () {
+ throw Error("Not yet implemented");
+ }
+ };
+ q();
+ l[Symbol.iterator] = function () {
+ return this;
+ };
+ return l;
+ });
+ }
+ function f() {
+ return (h.Rea || []).find(function (a) {
+ return !!((m[a.id] || 0) < l.config.CXa && h.qv[a.id]);
+ });
+ }
+ h = this;
+ this.state = C.LOADING;
+ m = {};
+ return b();
+ };
+ a.prototype.yca = function (a) {
+ return new Promise(function (b) {
+ var f;
+ f = 1E3 * Math.min(Math.pow(2, a - 1), 8);
+ setTimeout(function () {
+ return b(f);
+ }, f);
+ });
+ };
+ a.prototype.cCb = function (a) {
+ var b,
+ c;
+ b = this;
+ c = this.j.eK;
+ m.Ra(c);
+ return f.oSa(a, c.width / c.height, l.config.DXa, l.config.vpa).then(function (a) {
+ var f;
+ if (l.config.EXa) {
+ f = 0;
+ b.entries = a.map(function (a) {
+ return Object.assign({}, a, {
+ startTime: f,
+ endTime: f += l.config.EXa
+ });
+ });
+ } else
+ b.entries = a;
+ b.log.trace("Entries parsed", {
+ Length: a.length
+ }, b.fh);
+ b.state = C.LOADED;
+ return {
+ U: !0,
+ entries: b.entries,
+ track: b
+ };
+ })["catch"](function (a) {
+ b.log.error("Unable to parse timed text track", g.Vp(a), b.fh, {
+ url: a.url
+ });
+ b.state = C.aL;
+ a.reason = "parseerror";
+ a.track = b;
+ throw a;
+ });
+ };
+ a.prototype.Rlb = function (a, b) {
+ var f;
+ f = this;
+ this.log.trace("Downloading", b && ({
+ tc: b.id
+ }), this.Fq(b.id, a, "text"));
+ return new Promise(function (c, h) {
+ var m;
+ m = {
+ responseType: k.kia,
+ url: a,
+ track: f,
+ tc: b,
+ $B: "tt-" + f.Al
+ };
+ f.j.N_.download(m, function (a) {
+ a.U ? c(a.content) : (a.reason = "downloadfailed", a.url = m.url, a.track = f, a.tc = b, h(a));
+ });
+ });
+ };
+ a.e4a = 72E7;
+ a.C9 = C;
+ return a;
+ })();
+ b.QA = d;
+ }, function (d, b, a) {
+ var k;
+ function c() {}
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.cV = void 0;
+ k = a(9);
+ c.mha = function () {
+ var a;
+ a = k.Nr && k.Nr.height;
+ return a ? 1080 <= a ? 1080 : 720 : 720;
+ };
+ b.cV = c;
+ }, function (d) {
+ d.P = function (b, a) {
+ switch (b) {
+ case 0:
+ return function () {
+ return a.apply(this, arguments);
+ };
+ case 1:
+ return function (b) {
+ return a.apply(this, arguments);
+ };
+ case 2:
+ return function (b, k) {
+ return a.apply(this, arguments);
+ };
+ case 3:
+ return function (b, k, l) {
+ return a.apply(this, arguments);
+ };
+ case 4:
+ return function (b, k, l, r) {
+ return a.apply(this, arguments);
+ };
+ case 5:
+ return function (b, k, l, r, h) {
+ return a.apply(this, arguments);
+ };
+ case 6:
+ return function (b, k, l, r, h, p) {
+ return a.apply(this, arguments);
+ };
+ case 7:
+ return function (b, k, l, r, h, p, m) {
+ return a.apply(this, arguments);
+ };
+ case 8:
+ return function (b, k, l, r, h, p, m, f) {
+ return a.apply(this, arguments);
+ };
+ case 9:
+ return function (b, k, l, r, h, p, m, f, u) {
+ return a.apply(this, arguments);
+ };
+ case 10:
+ return function (b, k, l, r, h, p, m, f, u, d) {
+ return a.apply(this, arguments);
+ };
+ default:
+ throw Error("First argument to _arity must be a non-negative integer no greater than ten");
+ }
+ };
+ }, function (d, b, a) {
+ var l,
+ r,
+ h,
+ p;
+ function c(a, b, c) {
+ for (var f = c.next(); !f.done; ) {
+ if ((b = a["@@transducer/step"](b, f.value)) && b["@@transducer/reduced"]) {
+ b = b["@@transducer/value"];
+ break;
+ }
+ f = c.next();
+ }
+ return a["@@transducer/result"](b);
+ }
+ function k(a, b, c, p) {
+ return a["@@transducer/result"](c[p](h(a["@@transducer/step"], a), b));
+ }
+ l = a(984);
+ r = a(982);
+ h = a(981);
+ g();
+ g();
+ q();
+ p = "undefined" !== typeof Symbol ? Symbol.iterator : "@@iterator";
+ d.P = function (a, b, h) {
+ "function" === typeof a && (a = r(a));
+ if (l(h)) {
+ for (var f = 0, m = h.length; f < m; ) {
+ if ((b = a["@@transducer/step"](b, h[f])) && b["@@transducer/reduced"]) {
+ b = b["@@transducer/value"];
+ break;
+ }
+ f += 1;
+ }
+ return a["@@transducer/result"](b);
+ }
+ if ("function" === typeof h["fantasy-land/reduce"])
+ return k(a, b, h, "fantasy-land/reduce");
+ if (null != h[p])
+ return c(a, b, h[p]());
+ if ("function" === typeof h.next)
+ return c(a, b, h);
+ if ("function" === typeof h.reduce)
+ return k(a, b, h, "reduce");
+ throw new TypeError("reduce: list must be array or iterable");
+ };
+ }, function (d) {
+ d.P = function (b, a) {
+ return Object.prototype.hasOwnProperty.call(a, b);
+ };
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.BL = void 0;
+ b.BL = "TransportConfigSymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.ZS = void 0;
+ b.ZS = "BookmarkSymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.j6 = b.Ww = void 0;
+ d = b.Ww || (b.Ww = {});
+ d.k7a = "unknown";
+ d.Gqa = "absent";
+ d.Oya = "present";
+ d.Error = "error";
+ b.j6 = "ExternalDisplayLogHelperSymbol";
+ }, function (d, b, a) {
+ var c,
+ k,
+ l;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.hx = void 0;
+ c = a(30);
+ d = a(99);
+ k = a(141);
+ l = new d.qx();
+ b.hx = (function () {
+ function a() {
+ this.type = c.Ar.du;
+ }
+ a.Tda = function () {
+ return {
+ isTypeSupported: function (b) {
+ var c;
+ try {
+ if (-1 == b.toLowerCase().indexOf("codec"))
+ return t.MSMediaKeys.isTypeSupported(b, "video/mp4");
+ c = b.split("|");
+ return 1 === c.length ? t.MSMediaKeys.isTypeSupported(k.rb.Yp, b) : "probably" === a.epa(c[0], c[1]);
+ } catch (m) {
+ return !1;
+ }
+ }
+ };
+ };
+ a.fY = function (b, c, m) {
+ c = l.format(a.XJ, c);
+ if (0 === m.length)
+ return c;
+ m = l.format('features="{0}"', m.join());
+ return l.format("{0}|{1}{2}", b, c, m);
+ };
+ a.epa = function (a, b) {
+ var c;
+ try {
+ c = t.MSMediaKeys.isTypeSupportedWithFeatures ? t.MSMediaKeys.isTypeSupportedWithFeatures(a, b) : "";
+ } catch (f) {
+ c = "exception";
+ }
+ return c;
+ };
+ a.XJ = 'video/mp4;codecs="{0},mp4a";';
+ return a;
+ })();
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r,
+ h,
+ p;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.jT = b.q5 = void 0;
+ c = a(59);
+ k = a(135);
+ l = a(30);
+ d = a(99);
+ r = a(136);
+ h = a(456);
+ p = new d.qx().format;
+ a = (function () {
+ function a(b, c, h, m) {
+ var f;
+ f = k.Yl.call(this, b, c, h) || this;
+ f.cast = m;
+ f.type = l.Dj.p5;
+ b = a.b7a;
+ f.GS[l.Cd.hV] = r.Md.LK + "; " + b;
+ f.GS[l.Cd.$t] = r.Md.$t + "; " + b;
+ b = r.Md.G0a.find(function (b) {
+ return f.av(p(a.XJ, b));
+ });
+ f.GS[l.Cd.Xt] = b;
+ return f;
+ }
+ N(a, k.Yl);
+ a.Tda = function (b, c) {
+ return (c = a.OUa(c)) ? {
+ isTypeSupported: c
+ }
+ : b;
+ };
+ a.OUa = function (a) {
+ if ("undefined" !== typeof a)
+ return a.framework && a.framework.platform && a.framework.platform.canDisplayType ? a.framework.platform.canDisplayType : a.receiver && a.receiver.platform && a.receiver.platform.canDisplayType || a.__platform__ && a.__platform__.canDisplayType || void 0;
+ };
+ a.prototype.It = function (b) {
+ var f,
+ c;
+ f = this.cast.__platform__.display && this.cast.__platform__.display.getHdcpVersion;
+ if (this.config().RYa) {
+ c = {};
+ if (f)
+ return (c[l.oi.Ir] = "1.4", c[l.oi.sA] = "2.2", f().then(function (a) {
+ return a === c[b];
+ }));
+ f = this.JPa(b);
+ f = p(a.XJ, r.Md.LK) + " hdcp=" + f;
+ f = this.av.bind(this, f);
+ return Promise.resolve(f());
+ }
+ return Promise.resolve(!1);
+ };
+ a.prototype.wH = function (a) {
+ return this.GS[a];
+ };
+ a.prototype.EH = function () {
+ var a;
+ a = this;
+ return this.config().RYa ? this.It(l.oi.sA).then(function (b) {
+ return b ? Promise.resolve(l.oi.sA) : a.It(l.oi.Ir).then(function (a) {
+ return a ? Promise.resolve(l.oi.Ir) : Promise.resolve(void 0);
+ });
+ }).then(function (b) {
+ return a.UN(b);
+ }) : Promise.resolve(void 0);
+ };
+ a.prototype.UB = function () {
+ var b,
+ h;
+ b = k.Yl.prototype.UB.call(this);
+ h = a.TMa;
+ b[c.W.s6] = ["avc1.4D4028", "width=1920; height=1080; "];
+ b[c.W.t6] = ["hev1.2.6.L90.B0", h];
+ b[c.W.u6] = ["hev1.2.6.L93.B0", h];
+ b[c.W.v6] = ["hev1.2.6.L120.B0", h];
+ b[c.W.w6] = ["hev1.2.6.L123.B0", h];
+ b[c.W.x6] = ["hev1.2.6.L150.B0", "width=3840; height=2160; " + h];
+ b[c.W.y6] = ["hev1.2.6.L153.B0", "width=3840; height=2160; " + h];
+ b[c.W.NK] = ["hev1.2.6.L90.B0", h];
+ b[c.W.OK] = ["hev1.2.6.L93.B0", h];
+ b[c.W.EE] = ["hev1.2.6.L120.B0", h];
+ b[c.W.PK] = ["hev1.2.6.L123.B0", h];
+ b[c.W.HT] = ["hev1.2.6.L150.B0", "width=3840; height=2160; " + h];
+ b[c.W.IT] = ["hev1.2.6.L153.B0", "width=3840; height=2160; " + h];
+ b[c.W.E6] = "hev1.1.6.L90.B0";
+ b[c.W.F6] = "hev1.1.6.L93.B0";
+ b[c.W.G6] = "hev1.1.6.L120.B0";
+ b[c.W.H6] = "hev1.1.6.L123.B0";
+ b[c.W.I6] = ["hev1.1.6.L150.B0", "width=3840; height=2160; "];
+ b[c.W.J6] = ["hev1.1.6.L153.B0", "width=3840; height=2160; "];
+ b[c.W.A6] = "hev1.2.6.L90.B0";
+ b[c.W.B6] = "hev1.2.6.L93.B0";
+ b[c.W.C6] = "hev1.2.6.L120.B0";
+ b[c.W.D6] = "hev1.2.6.L123.B0";
+ b[c.W.FE] = ["hev1.2.6.L150.B0", "width=3840; height=2160; "];
+ b[c.W.GE] = ["hev1.2.6.L153.B0", "width=3840; height=2160; "];
+ b[c.W.LT] = "hev1.2.6.L90.B0";
+ b[c.W.NT] = "hev1.2.6.L93.B0";
+ b[c.W.PT] = "hev1.2.6.L120.B0";
+ b[c.W.RT] = "hev1.2.6.L123.B0";
+ b[c.W.ST] = ["hev1.2.6.L150.B0", "width=3840; height=2160; "];
+ b[c.W.TT] = ["hev1.2.6.L153.B0", "width=3840; height=2160; "];
+ return b;
+ };
+ a.prototype.VKa = function () {
+ return [h.sh.OS, h.sh.KK, h.sh.DE];
+ };
+ a.prototype.Jia = function () {
+ k.Yl.prototype.Jia.call(this);
+ !a.OUa(this.cast) && this.Rl.push(h.sh.$t);
+ };
+ a.TMa = "eotf=smpte2084";
+ a.TYb = "video/mp4;codecs={0}; " + a.TMa;
+ a.b7a = "width=3840; height=2160; ";
+ return a;
+ })();
+ b.q5 = a;
+ b.jT = "CastSDKSymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Q8 = b.a7 = void 0;
+ b.a7 = "IsTypeSupportedProviderFactorySymbol";
+ b.Q8 = "PlatformIsTypeSupportedSymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.eV = b.X9 = void 0;
+ b.X9 = "ThroughputTrackerSymbol";
+ b.eV = "ThroughputTrackerFactorySymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.EU = void 0;
+ b.EU = "PboPlaydataFactorySymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.YU = void 0;
+ b.YU = "SegmentManagerFactorySymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.iU = void 0;
+ b.iU = "MomentObserverFactory";
+ }, function (d, b, a) {
+ var k,
+ l,
+ r;
+ function c(a, b, c, f) {
+ this.va = a;
+ this.Yu = b;
+ this.Ul = c;
+ this.rm = void 0 === f ? "General" : f;
+ this.yda = {};
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.LE = void 0;
+ k = a(7);
+ l = a(469);
+ r = a(1046);
+ c.prototype.Jba = function (a, b) {
+ this.yda[a] = b;
+ };
+ c.prototype.fatal = function (a, b) {
+ for (var c = [], f = 1; f < arguments.length; ++f) {
+ c[f - 1] = arguments[f];
+ }
+ this.Xx(k.pi.r2a, a, r.KB(this.Yu, this.xH(c)));
+ };
+ c.prototype.error = function (a, b) {
+ for (var c = [], f = 1; f < arguments.length; ++f) {
+ c[f - 1] = arguments[f];
+ }
+ this.Xx(k.pi.ERROR, a, r.KB(this.Yu, this.xH(c)));
+ };
+ c.prototype.warn = function (a, b) {
+ for (var c = [], f = 1; f < arguments.length; ++f) {
+ c[f - 1] = arguments[f];
+ }
+ this.Xx(k.pi.q$, a, r.KB(this.Yu, this.xH(c)));
+ };
+ c.prototype.info = function (a, b) {
+ for (var c = [], f = 1; f < arguments.length; ++f) {
+ c[f - 1] = arguments[f];
+ }
+ this.Xx(k.pi.S6, a, r.KB(this.Yu, this.xH(c)));
+ };
+ c.prototype.trace = function (a, b) {
+ for (var c = [], f = 1; f < arguments.length; ++f) {
+ c[f - 1] = arguments[f];
+ }
+ this.Xx(k.pi.lAa, a, r.KB(this.Yu, this.xH(c)));
+ };
+ c.prototype.debug = function (a, b) {
+ for (var c = 1; c < arguments.length; ++c) { ;
+ }
+ };
+ c.prototype.log = function (a, b) {
+ for (var c = 1; c < arguments.length; ++c) { ;
+ }
+ this.debug.apply(this, arguments);
+ };
+ c.prototype.write = function (a, b, c) {
+ for (var f = [], h = 2; h < arguments.length; ++h) {
+ f[h - 2] = arguments[h];
+ }
+ this.Xx(a, b, r.KB(this.Yu, this.xH(f)));
+ };
+ c.prototype.toString = function () {
+ return JSON.stringify(this);
+ };
+ c.prototype.toJSON = function () {
+ return {
+ category: this.rm
+ };
+ };
+ c.prototype.Yda = function (a) {
+ return new c(this.va, this.Yu, this.Ul, a);
+ };
+ c.prototype.Xx = function (a, b, c) {
+ a = new l.q7(a, this.rm, this.va.Yb(), b, c);
+ b = U(this.Ul.Ul);
+ for (c = b.next(); !c.done; c = b.next()) {
+ c = c.value;
+ c(a);
+ }
+ };
+ c.prototype.xH = function (a) {
+ return 0 < Object.keys(this.yda).length ? [].concat([this.yda], ca(a)) : a;
+ };
+ b.LE = c;
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.f6 = b.vx = void 0;
+ b.vx = "_ANY_";
+ b.f6 = "EnricherSymbol";
+ }, function (d) {
+ var m,
+ f,
+ u,
+ w,
+ A,
+ g;
+ function b() {
+ throw Error("setTimeout has not been defined");
+ }
+ function a() {
+ throw Error("clearTimeout has not been defined");
+ }
+ function c(a) {
+ if (m === setTimeout)
+ return setTimeout(a, 0);
+ if ((m === b || !m) && setTimeout)
+ return (m = setTimeout, setTimeout(a, 0));
+ try {
+ return m(a, 0);
+ } catch (M) {
+ try {
+ return m.call(null, a, 0);
+ } catch (H) {
+ return m.call(this, a, 0);
+ }
+ }
+ }
+ function k(b) {
+ if (f === clearTimeout)
+ clearTimeout(b);
+ else if (f !== a && f || !clearTimeout)
+ try {
+ f(b);
+ } catch (M) {
+ try {
+ f.call(null, b);
+ } catch (H) {
+ f.call(this, b);
+ }
+ }
+ else (f = clearTimeout, clearTimeout(b));
+ }
+ function l() {
+ w && A && (w = !1, A.length ? u = A.concat(u) : g = -1, u.length && r());
+ }
+ function r() {
+ var a;
+ if (!w) {
+ a = c(l);
+ w = !0;
+ for (var b = u.length; b; ) {
+ A = u;
+ for (u = []; ++g < b; ) {
+ A && A[g].Bz();
+ }
+ g = -1;
+ b = u.length;
+ }
+ A = null;
+ w = !1;
+ k(a);
+ }
+ }
+ function h(a, b) {
+ this.dpb = a;
+ this.Hn = b;
+ }
+ function p() {}
+ d = d.P = {};
+ try {
+ m = "function" === typeof setTimeout ? setTimeout : b;
+ } catch (C) {
+ m = b;
+ }
+ try {
+ f = "function" === typeof clearTimeout ? clearTimeout : a;
+ } catch (C) {
+ f = a;
+ }
+ u = [];
+ w = !1;
+ g = -1;
+ d.ZQa = function (a) {
+ var b;
+ b = Array(arguments.length - 1);
+ if (1 < arguments.length)
+ for (var f = 1; f < arguments.length; f++) {
+ b[f - 1] = arguments[f];
+ }
+ u.push(new h(a, b));
+ 1 !== u.length || w || c(r);
+ };
+ h.prototype.Bz = function () {
+ this.dpb.apply(null, this.Hn);
+ };
+ d.title = "browser";
+ d.RWb = !0;
+ d.knb = {};
+ d.zWb = [];
+ d.version = "";
+ d.p1b = {};
+ d.on = p;
+ d.addListener = p;
+ d.once = p;
+ d.HI = p;
+ d.removeListener = p;
+ d.removeAllListeners = p;
+ d.emit = p;
+ d.mTa = p;
+ d.bEb = p;
+ d.listeners = function () {
+ return [];
+ };
+ d.MWb = function () {
+ throw Error("process.binding is not supported");
+ };
+ d.wXb = function () {
+ return "/";
+ };
+ d.jXb = function () {
+ throw Error("process.chdir is not supported");
+ };
+ d.f1b = function () {
+ return 0;
+ };
+ }, function (d, b, a) {
+ var c,
+ k,
+ l;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.XS = void 0;
+ c = a(0);
+ k = a(1);
+ l = {
+ 0: 0,
+ 1: 1,
+ 2: 2,
+ 3: 3,
+ 4: 4,
+ 5: 5,
+ 6: 6,
+ 7: 7,
+ 8: 8,
+ 9: 9,
+ A: 10,
+ B: 11,
+ C: 12,
+ D: 13,
+ E: 14,
+ F: 15,
+ a: 10,
+ b: 11,
+ c: 12,
+ d: 13,
+ e: 14,
+ f: 15
+ };
+ d = (function () {
+ var b;
+ function a() {}
+ a.prototype.decode = function (a) {
+ for (var b = new Uint8Array(a.length / 2), f = 0; f < b.length; f++) {
+ b[f] = this.MXa(a.substr(2 * f, 2));
+ }
+ return b;
+ };
+ a.prototype.encode = function (a) {
+ var h,
+ b;
+ for (var b = "", f = a.length, c = 0; c < f; c++) {
+ h = a[c];
+ b = b + (("0123456789ABCDEF")[h >>> 4] + ("0123456789ABCDEF")[h & 15]);
+ }
+ return b;
+ };
+ a.prototype.zv = function (a, b) {
+ var f;
+ f = "";
+ for (b <<= 1; b--; ) {
+ f = (("0123456789ABCDEF")[a & 15] || "0") + f;
+ a >>>= 4;
+ }
+ return f;
+ };
+ a.prototype.MXa = function (a) {
+ var b;
+ b = a.length;
+ if (7 < b)
+ throw Error("hex to long");
+ for (var f = 0, c = 0; c < b; c++) {
+ f = 16 * f + l[a[c]];
+ }
+ return f;
+ };
+ b = a;
+ return b = c.__decorate([k.N()], b);
+ })();
+ b.XS = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r,
+ h,
+ p,
+ m,
+ f,
+ u,
+ w,
+ A;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.ku = void 0;
+ c = a(0);
+ k = a(1);
+ l = a(53);
+ r = a(2);
+ h = a(31);
+ p = a(21);
+ m = a(89);
+ f = a(25);
+ u = a(42);
+ w = a(52);
+ A = a(100);
+ d = (function () {
+ var b,
+ d;
+ function a(a, b, f, c, h, m) {
+ this.gQ = a;
+ this.is = b;
+ this.Fc = f;
+ this.md = c;
+ this.Se = h;
+ this.Ng = m;
+ l.Hm(this, "nav");
+ }
+ a.prototype.Dy = function () {
+ if (this.eb)
+ return this.eb.sessionId;
+ };
+ a.prototype.CGb = function (a, b) {
+ return this.gQ.requestMediaKeySystemAccess(a, b);
+ };
+ a.prototype.Fjb = function (a) {
+ return a.createMediaKeys();
+ };
+ a.prototype.Nn = function (a, b) {
+ this.eb = a.createSession(b);
+ };
+ a.prototype.Svb = function () {
+ return !!this.eb;
+ };
+ a.prototype.dJb = function (a, b) {
+ return this.is.cX(a.setServerCertificate) ? a.setServerCertificate(b) : Promise.resolve();
+ };
+ a.prototype.qga = function (a, b) {
+ return this.eb ? this.eb.generateRequest(a, b[0]) : Promise.reject(new m.Sf(r.J.pta, r.I.HK, void 0, "Unable to generate a license request, key session is not valid"));
+ };
+ a.prototype.update = function (a) {
+ return this.eb ? this.eb.update(a[0]) : Promise.reject(new m.Sf(r.J.yE, r.I.HK, void 0, "Unable to update the EME with a response, key session is not valid"));
+ };
+ a.prototype.load = function (a) {
+ return this.eb ? this.eb.load(a) : Promise.reject(new m.Sf(r.J.e2a, r.I.HK, void 0, "Unable to load a key session, key session is not valid"));
+ };
+ a.prototype.close = function () {
+ var a;
+ if (!this.eb)
+ return Promise.reject(new m.Sf(r.J.X1a, r.I.HK, void 0, "Unable to close a key session, key session is not valid"));
+ a = Promise.resolve();
+ this.Dy() && (a = this.eb.close());
+ this.eb = void 0;
+ return a;
+ };
+ a.prototype.remove = function () {
+ return this.eb ? this.eb.remove() : Promise.reject(new m.Sf(r.J.tta, r.I.HK, void 0, "Unable to remove a key session, key session is not valid"));
+ };
+ a.prototype.hJ = function () {
+ return Promise.reject(new m.Sf(r.J.wT, void 0, "Unable to renew a key session, not supported"));
+ };
+ a.prototype.pcb = function (a) {
+ if (!this.eb)
+ throw ReferenceError("Unable to add message handler, key session is not valid");
+ this.eb.addEventListener(b.yta, a);
+ };
+ a.prototype.jcb = function (a) {
+ if (!this.eb)
+ throw ReferenceError("Unable to add key status handler, key session is not valid");
+ this.eb.addEventListener(b.xta, a);
+ };
+ a.prototype.dcb = function (a) {
+ if (!this.eb)
+ throw ReferenceError("Unable to add error handler, key session is not valid");
+ this.eb.addEventListener(b.wta, a);
+ };
+ a.prototype.hGb = function (a) {
+ if (!this.eb)
+ throw ReferenceError("Unable to remove message handler, key session is not valid");
+ this.eb.removeEventListener(b.yta, a);
+ };
+ a.prototype.eGb = function (a) {
+ if (!this.eb)
+ throw ReferenceError("Unable to remove key status handler, key session is not valid");
+ this.eb.removeEventListener(b.xta, a);
+ };
+ a.prototype.cGb = function (a) {
+ if (!this.eb)
+ throw ReferenceError("Unable to remove error handler, key session is not valid");
+ this.eb.removeEventListener(b.wta, a);
+ };
+ d = b = a;
+ d.yta = "message";
+ d.xta = "keystatuseschange";
+ d.wta = "error";
+ return d = b = c.__decorate([k.N(), c.__param(0, k.l(h.AA)), c.__param(1, k.l(p.Zd)), c.__param(2, k.l(u.Ui)), c.__param(3, k.l(f.hf)), c.__param(4, k.l(w.Zl)), c.__param(5, k.l(A.tx))], d);
+ })();
+ b.ku = d;
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.jta = b.gx = b.Jr = void 0;
+ b.Jr = 'video/mp4; codecs="avc1.640028"';
+ b.gx = 'audio/mp4; codecs="mp4a.40.5"';
+ b.jta = "DrmTraitsSymbol";
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r;
+ c = this && this.__extends || (function (a, b) {
+ function c() {
+ this.constructor = a;
+ }
+ for (var f in b) {
+ b.hasOwnProperty(f) && (a[f] = b[f]);
+ }
+ a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c());
+ });
+ d = a(20);
+ k = a(494);
+ l = a(179);
+ r = a(263);
+ a = (function (a) {
+ function b(b, f) {
+ a.call(this);
+ this.Hn = b;
+ (this.ya = f) || 1 !== b.length || (this.yu = !0, this.value = b[0]);
+ }
+ c(b, a);
+ b.create = function (a, f) {
+ return new b(a, f);
+ };
+ b.of = function () {
+ var c;
+ for (var a = [], f = 0; f < arguments.length; f++) {
+ a[f - 0] = arguments[f];
+ }
+ f = a[a.length - 1];
+ r.q0(f) ? a.pop() : f = null;
+ c = a.length;
+ return 1 < c ? new b(a, f) : 1 === c ? new k.zza(a[0], f) : new l.yT(f);
+ };
+ b.zc = function (a) {
+ var b,
+ c,
+ h;
+ b = a.Hn;
+ c = a.index;
+ h = a.xj;
+ c >= a.count ? h.complete() : (h.next(b[c]), h.closed || (a.index = c + 1, this.Pc(a)));
+ };
+ b.prototype.im = function (a) {
+ var f,
+ c,
+ h;
+ f = this.Hn;
+ c = f.length;
+ h = this.ya;
+ if (h)
+ return h.Pc(b.zc, 0, {
+ Hn: f,
+ index: 0,
+ count: c,
+ xj: a
+ });
+ for (h = 0; h < c && !a.closed; h++) {
+ a.next(f[h]);
+ }
+ a.complete();
+ };
+ return b;
+ })(d.sb);
+ b.R4 = a;
+ }, function (d, b) {
+ b.q0 = function (a) {
+ return a && "function" === typeof a.Pc;
+ };
+ }, function (d, b, a) {
+ function c(a) {
+ var b,
+ h;
+ b = a.Symbol;
+ if ("function" === typeof b)
+ return (b.iterator || (b.iterator = b("iterator polyfill")), b.iterator);
+ if ((b = a.Set) && "function" === typeof new b()["@@iterator"])
+ return "@@iterator";
+ if (a = a.Map)
+ for (var b = Object.getOwnPropertyNames(a.prototype), c = 0; c < b.length; ++c) {
+ h = b[c];
+ if ("entries" !== h && "size" !== h && a.prototype[h] === a.prototype.entries)
+ return h;
+ }
+ return "@@iterator";
+ }
+ d = a(86);
+ b.S0b = c;
+ b.iterator = c(d.root);
+ b.$Ob = b.iterator;
+ }, function (d, b, a) {
+ function c(a) {
+ var b;
+ b = a.Symbol;
+ "function" === typeof b ? b.observable ? a = b.observable : (a = b("observable"), b.observable = a) : a = "@@observable";
+ return a;
+ }
+ d = a(86);
+ b.MYb = c;
+ b.observable = c(d.root);
+ b.aPb = b.observable;
+ }, function (d, b, a) {
+ d = a(86).root.Symbol;
+ b.JD = "function" === typeof d && "function" === typeof d["for"] ? d["for"]("rxSubscriber") : "@@rxSubscriber";
+ b.bPb = b.JD;
+ }, function (d, b) {
+ b.empty = {
+ closed: !0,
+ next: function () {},
+ error: function (a) {
+ throw a;
+ },
+ complete: function () {}
+ };
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.tT = void 0;
+ b.tT = "DrmServiceLogblobBuilderSymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.iT = void 0;
+ b.iT = "CachedDrmDataSymbol";
+ }, function (d, b, a) {
+ var k,
+ l;
+ function c(a) {
+ a ? (this.active = !1, this.nga(a)) : this.active = !0;
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.eta = b.sT = void 0;
+ k = a(0);
+ l = a(1);
+ c.prototype.nga = function (a) {
+ this.Rb = a.keySessionData ? a.keySessionData.map(function (a) {
+ return {
+ id: a.id,
+ Vy: a.licenseContextId,
+ fI: a.licenseId
+ };
+ }) : [];
+ this.ga = a.xid;
+ this.G = a.movieId;
+ };
+ c.prototype.Mt = function () {
+ return JSON.parse(JSON.stringify({
+ keySessionData: this.Rb ? this.Rb.map(function (a) {
+ return {
+ id: a.id,
+ licenseContextId: a.Vy,
+ licenseId: a.fI
+ };
+ }) : [],
+ xid: this.ga,
+ movieId: this.G
+ }));
+ };
+ b.sT = c;
+ d = (function () {
+ var b;
+ function a() {}
+ a.prototype.create = function () {
+ return new c();
+ };
+ a.prototype.load = function (a) {
+ return new c(a);
+ };
+ b = a;
+ return b = k.__decorate([l.N()], b);
+ })();
+ b.eta = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r,
+ h,
+ p,
+ m,
+ f,
+ u,
+ w,
+ A,
+ g,
+ C;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.fH = b.eme = void 0;
+ d = a(1);
+ c = a(120);
+ k = a(512);
+ l = a(270);
+ r = a(269);
+ h = a(1162);
+ p = a(1161);
+ m = a(101);
+ f = a(119);
+ u = a(1160);
+ w = a(184);
+ A = a(1159);
+ g = a(268);
+ C = a(1158);
+ b.eme = new d.Kc(function (a) {
+ a(k.R5).to(l.eta).Z();
+ a(r.iT).to(h.Sra).Z();
+ a(c.GK).hS(p.zTa);
+ a(g.tT).to(C.gta).Z();
+ a(m.cu).Jw(function (a) {
+ b.fH.parent = a.hb;
+ return b.fH.get(m.cu);
+ });
+ a(f.xA).zf(function () {
+ return function () {
+ return new u.wwa();
+ };
+ });
+ a(w.vK).to(A.Ura).Z;
+ });
+ b.fH = new d.mT({
+ SD: !0
+ });
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.yL = void 0;
+ b.yL = "StringUtilsSymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.GU = void 0;
+ b.GU = "PlatformEmeSymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.fA = void 0;
+ b.fA = (function () {
+ function a() {}
+ a.V5a = "PSK";
+ a.l4a = "MGK";
+ a.FSb = "MGK_WITH_FALLBACK";
+ a.ESb = "MGK_JWE";
+ a.U3a = "JWEJS_RSA";
+ a.e7 = "JWK_RSA";
+ a.vSb = "JWK_RSAES";
+ return a;
+ })();
+ }, function (d, b, a) {
+ var c;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ c = a(276);
+ a(516);
+ d = (function () {
+ function a(a) {
+ this.Pb = a;
+ }
+ a.prototype.when = function (a) {
+ this.Pb.QB = a;
+ return new c.YS(this.Pb);
+ };
+ a.prototype.IS = function () {
+ this.Pb.QB = function (a) {
+ return null !== a.target && !a.target.Tia() && !a.target.cja();
+ };
+ return new c.YS(this.Pb);
+ };
+ return a;
+ })();
+ b.f5 = d;
+ }, function (d, b, a) {
+ var c;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ c = a(275);
+ d = (function () {
+ function a(a) {
+ this.Pb = a;
+ }
+ a.prototype.et = function (a) {
+ this.Pb.et = a;
+ return new c.f5(this.Pb);
+ };
+ return a;
+ })();
+ b.YS = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r,
+ h,
+ p;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.jc = void 0;
+ d = a(1);
+ c = a(91);
+ k = a(1166);
+ l = a(271);
+ r = a(1157);
+ h = a(1149);
+ p = a(1075);
+ a = a(568);
+ b.jc = new d.mT({
+ SD: !0
+ });
+ p.bPa(b.jc);
+ b.jc.load(k.platform);
+ b.jc.load(r.config);
+ l.fH.load(h.SIa);
+ b.jc.load(a.VEa);
+ b.jc.load(a.profile);
+ b.jc.bind(c.X6).ji(b.jc);
+ }, function (d, b, a) {
+ var l,
+ r,
+ h,
+ p,
+ m,
+ f,
+ u,
+ w,
+ A;
+ function c(a) {
+ var b;
+ b = [];
+ u(a, w, function (a, f, c, h) {
+ b[b.length] = c ? u(h, A, "$1") : f || a;
+ });
+ return b;
+ }
+ function k() {
+ throw new l();
+ }
+ l = TypeError;
+ r = Object.getOwnPropertyDescriptor;
+ if (r)
+ try {
+ r({}, "");
+ } catch (K) {
+ r = null;
+ }
+ b = r ? (function () {
+ try {
+ return (arguments.callee, k);
+ } catch (K) {
+ try {
+ return r(arguments, "callee").get;
+ } catch (C) {
+ return k;
+ }
+ }
+ })() : k;
+ h = a(1197)();
+ p = Object.getPrototypeOf || (function (a) {
+ return a.__proto__;
+ });
+ m = "undefined" === typeof Uint8Array ? void 0 : p(Uint8Array);
+ g();
+ q();
+ g();
+ g();
+ g();
+ q();
+ g();
+ q();
+ g();
+ q();
+ g();
+ q();
+ g();
+ g();
+ f = {
+ "%Array%": Array,
+ "%ArrayBuffer%": "undefined" === typeof ArrayBuffer ? void 0 : ArrayBuffer,
+ "%ArrayBufferPrototype%": "undefined" === typeof ArrayBuffer ? void 0 : ArrayBuffer.prototype,
+ "%ArrayIteratorPrototype%": h ? p([][Symbol.iterator]()) : void 0,
+ "%ArrayPrototype%": Array.prototype,
+ "%ArrayProto_entries%": Array.prototype.entries,
+ "%ArrayProto_forEach%": Array.prototype.forEach,
+ "%ArrayProto_keys%": Array.prototype.keys,
+ "%ArrayProto_values%": Array.prototype.values,
+ "%AsyncFromSyncIteratorPrototype%": void 0,
+ "%AsyncFunction%": void 0,
+ "%AsyncFunctionPrototype%": void 0,
+ "%AsyncGenerator%": void 0,
+ "%AsyncGeneratorFunction%": void 0,
+ "%AsyncGeneratorPrototype%": void 0,
+ "%AsyncIteratorPrototype%": void 0,
+ "%Atomics%": "undefined" === typeof Atomics ? void 0 : Atomics,
+ "%Boolean%": Boolean,
+ "%BooleanPrototype%": Boolean.prototype,
+ "%DataView%": "undefined" === typeof DataView ? void 0 : DataView,
+ "%DataViewPrototype%": "undefined" === typeof DataView ? void 0 : DataView.prototype,
+ "%Date%": Date,
+ "%DatePrototype%": Date.prototype,
+ "%decodeURI%": decodeURI,
+ "%decodeURIComponent%": decodeURIComponent,
+ "%encodeURI%": encodeURI,
+ "%encodeURIComponent%": encodeURIComponent,
+ "%Error%": Error,
+ "%ErrorPrototype%": Error.prototype,
+ "%eval%": eval,
+ "%EvalError%": EvalError,
+ "%EvalErrorPrototype%": EvalError.prototype,
+ "%Float32Array%": "undefined" === typeof Float32Array ? void 0 : Float32Array,
+ "%Float32ArrayPrototype%": "undefined" === typeof Float32Array ? void 0 : Float32Array.prototype,
+ "%Float64Array%": "undefined" === typeof Float64Array ? void 0 : Float64Array,
+ "%Float64ArrayPrototype%": "undefined" === typeof Float64Array ? void 0 : Float64Array.prototype,
+ "%Function%": Function,
+ "%FunctionPrototype%": Function.prototype,
+ "%Generator%": void 0,
+ "%GeneratorFunction%": void 0,
+ "%GeneratorPrototype%": void 0,
+ "%Int8Array%": "undefined" === typeof Int8Array ? void 0 : Int8Array,
+ "%Int8ArrayPrototype%": "undefined" === typeof Int8Array ? void 0 : Int8Array.prototype,
+ "%Int16Array%": "undefined" === typeof Int16Array ? void 0 : Int16Array,
+ "%Int16ArrayPrototype%": "undefined" === typeof Int16Array ? void 0 : Int8Array.prototype,
+ "%Int32Array%": "undefined" === typeof Int32Array ? void 0 : Int32Array,
+ "%Int32ArrayPrototype%": "undefined" === typeof Int32Array ? void 0 : Int32Array.prototype,
+ "%isFinite%": isFinite,
+ "%isNaN%": isNaN,
+ "%IteratorPrototype%": h ? p(p([][Symbol.iterator]())) : void 0,
+ "%JSON%": "object" === typeof JSON ? JSON : void 0,
+ "%JSONParse%": "object" === typeof JSON ? JSON.parse : void 0,
+ "%Map%": "undefined" === typeof Map ? void 0 : Map,
+ "%MapIteratorPrototype%": "undefined" !== typeof Map && h ? p(new Map()[Symbol.iterator]()) : void 0,
+ "%MapPrototype%": "undefined" === typeof Map ? void 0 : Map.prototype,
+ "%Math%": Math,
+ "%Number%": Number,
+ "%NumberPrototype%": Number.prototype,
+ "%Object%": Object,
+ "%ObjectPrototype%": Object.prototype,
+ "%ObjProto_toString%": Object.prototype.toString,
+ "%ObjProto_valueOf%": Object.prototype.valueOf,
+ "%parseFloat%": parseFloat,
+ "%parseInt%": parseInt,
+ "%Promise%": "undefined" === typeof Promise ? void 0 : Promise,
+ "%PromisePrototype%": "undefined" === typeof Promise ? void 0 : Promise.prototype,
+ "%PromiseProto_then%": "undefined" === typeof Promise ? void 0 : Promise.prototype.then,
+ "%Promise_all%": "undefined" === typeof Promise ? void 0 : Promise.all,
+ "%Promise_reject%": "undefined" === typeof Promise ? void 0 : Promise.reject,
+ "%Promise_resolve%": "undefined" === typeof Promise ? void 0 : Promise.resolve,
+ "%Proxy%": "undefined" === typeof Proxy ? void 0 : Proxy,
+ "%RangeError%": RangeError,
+ "%RangeErrorPrototype%": RangeError.prototype,
+ "%ReferenceError%": ReferenceError,
+ "%ReferenceErrorPrototype%": ReferenceError.prototype,
+ "%Reflect%": "undefined" === typeof Reflect ? void 0 : Reflect,
+ "%RegExp%": RegExp,
+ "%RegExpPrototype%": RegExp.prototype,
+ "%Set%": "undefined" === typeof Set ? void 0 : Set,
+ "%SetIteratorPrototype%": "undefined" !== typeof Set && h ? p(new Set()[Symbol.iterator]()) : void 0,
+ "%SetPrototype%": "undefined" === typeof Set ? void 0 : Set.prototype,
+ "%SharedArrayBuffer%": "undefined" === typeof SharedArrayBuffer ? void 0 : SharedArrayBuffer,
+ "%SharedArrayBufferPrototype%": "undefined" === typeof SharedArrayBuffer ? void 0 : SharedArrayBuffer.prototype,
+ "%String%": String,
+ "%StringIteratorPrototype%": h ? p(("")[Symbol.iterator]()) : void 0,
+ "%StringPrototype%": String.prototype,
+ "%Symbol%": h ? Symbol : void 0,
+ "%SymbolPrototype%": h ? Symbol.prototype : void 0,
+ "%SyntaxError%": SyntaxError,
+ "%SyntaxErrorPrototype%": SyntaxError.prototype,
+ "%ThrowTypeError%": b,
+ "%TypedArray%": m,
+ "%TypedArrayPrototype%": m ? m.prototype : void 0,
+ "%TypeError%": l,
+ "%TypeErrorPrototype%": l.prototype,
+ "%Uint8Array%": "undefined" === typeof Uint8Array ? void 0 : Uint8Array,
+ "%Uint8ArrayPrototype%": "undefined" === typeof Uint8Array ? void 0 : Uint8Array.prototype,
+ "%Uint8ClampedArray%": "undefined" === typeof Uint8ClampedArray ? void 0 : Uint8ClampedArray,
+ "%Uint8ClampedArrayPrototype%": "undefined" === typeof Uint8ClampedArray ? void 0 : Uint8ClampedArray.prototype,
+ "%Uint16Array%": "undefined" === typeof Uint16Array ? void 0 : Uint16Array,
+ "%Uint16ArrayPrototype%": "undefined" === typeof Uint16Array ? void 0 : Uint16Array.prototype,
+ "%Uint32Array%": "undefined" === typeof Uint32Array ? void 0 : Uint32Array,
+ "%Uint32ArrayPrototype%": "undefined" === typeof Uint32Array ? void 0 : Uint32Array.prototype,
+ "%URIError%": URIError,
+ "%URIErrorPrototype%": URIError.prototype,
+ "%WeakMap%": "undefined" === typeof WeakMap ? void 0 : WeakMap,
+ "%WeakMapPrototype%": "undefined" === typeof WeakMap ? void 0 : WeakMap.prototype,
+ "%WeakSet%": "undefined" === typeof WeakSet ? void 0 : WeakSet,
+ "%WeakSetPrototype%": "undefined" === typeof WeakSet ? void 0 : WeakSet.prototype
+ };
+ u = a(279).call(Function.call, String.prototype.replace);
+ w = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
+ A = /\\(\\)?/g;
+ d.P = function (a, b) {
+ var h,
+ m,
+ u;
+ if ("string" !== typeof a || 0 === a.length)
+ throw new TypeError("intrinsic name must be a non-empty string");
+ if (1 < arguments.length && "boolean" !== typeof b)
+ throw new TypeError('"allowMissing" argument must be a boolean');
+ h = c(a);
+ m = "%" + (0 < h.length ? h[0] : "") + "%";
+ if (!((m in f)))
+ throw new SyntaxError("intrinsic " + m + " does not exist!");
+ if ("undefined" === typeof f[m] && !b)
+ throw new l("intrinsic " + m + " exists, but is not available. Please file an issue!");
+ m = f[m];
+ for (var p = 1; p < h.length; p += 1) {
+ if (null != m)
+ if (r && p + 1 >= h.length) {
+ u = r(m, h[p]);
+ if (!(b || (h[p]in m)))
+ throw new l("base intrinsic for " + a + " exists, but the property is not available.");
+ m = u ? u.get || u.value : m[h[p]];
+ } else
+ m = m[h[p]];
+ }
+ return m;
+ };
+ }, function (d, b, a) {
+ b = a(1200);
+ d.P = Function.prototype.bind || b;
+ }, function (d, b, a) {
+ var r;
+ function c(a, b, c, f, u, l, k) {
+ this.xS = f;
+ this.KZa = a;
+ this.bRa = b;
+ this.Tka = c;
+ this.cwb = l;
+ this.Cz = k;
+ this.split = u;
+ }
+ function k() {
+ this.H = {};
+ this.H["0"] = new c("1", "2", "1", "14", "-0.0000100136", 0, 0);
+ this.H["1"] = new c("3", "4", "3", "20", "-0.0000100136", 0, 0);
+ this.H["3"] = new c("7", "8", "7", "10", "1.5", 0, 0);
+ this.H["7"] = new c("15", "16", "15", "9", "4.5", 0, 0);
+ this.H["15"] = new c("31", "32", "31", "2", "5.5", 0, 0);
+ this.H["31"] = new c("63", "64", "63", "29", "-0.0000100136", 0, 0);
+ this.H["63"] = new c("123", "124", "123", "24", "-0.0000100136", 0, 0);
+ this.H["123"] = new c("123", "124", "123", "0", "0", 1, .207298);
+ this.H["124"] = new c("123", "124", "123", "0", "0", 1, .49076);
+ this.H["64"] = new c("125", "126", "125", "4", "40.5", 0, 0);
+ this.H["125"] = new c("125", "126", "125", "0", "0", 1, - .00157835);
+ this.H["126"] = new c("125", "126", "125", "0", "0", 1, .934205);
+ this.H["32"] = new c("65", "66", "65", "135", "5.5", 0, 0);
+ this.H["65"] = new c("127", "128", "128", "4", "1272.5", 0, 0);
+ this.H["127"] = new c("127", "128", "128", "0", "0", 1, - .510333);
+ this.H["128"] = new c("127", "128", "128", "0", "0", 1, .18363);
+ this.H["66"] = new c("129", "130", "129", "24", "-0.0000100136", 0, 0);
+ this.H["129"] = new c("129", "130", "129", "0", "0", 1, - .0464542);
+ this.H["130"] = new c("129", "130", "129", "0", "0", 1, .458833);
+ this.H["16"] = new c("33", "34", "34", "10", "2.00001", 0, 0);
+ this.H["33"] = new c("67", "68", "67", "0", "29.5", 0, 0);
+ this.H["67"] = new c("131", "132", "131", "2", "39.5", 0, 0);
+ this.H["131"] = new c("131", "132", "131", "0", "0", 1, - .37577);
+ this.H["132"] = new c("131", "132", "131", "0", "0", 1, .512087);
+ this.H["68"] = new c("133", "134", "134", "140", "1.5", 0, 0);
+ this.H["133"] = new c("133", "134", "134", "0", "0", 1, .321272);
+ this.H["134"] = new c("133", "134", "134", "0", "0", 1, - .675396);
+ this.H["34"] = new c("69", "70", "70", "2", "24.5", 0, 0);
+ this.H["69"] = new c("135", "136", "136", "9", "28.5", 0, 0);
+ this.H["135"] = new c("135", "136", "136", "0", "0", 1, - .0573845);
+ this.H["136"] = new c("135", "136", "136", "0", "0", 1, - .507455);
+ this.H["70"] = new c("137", "138", "137", "45", "-0.0000100136", 0, 0);
+ this.H["137"] = new c("137", "138", "137", "0", "0", 1, - .503909);
+ this.H["138"] = new c("137", "138", "137", "0", "0", 1, .450886);
+ this.H["8"] = new c("17", "18", "17", "4", "44189.5", 0, 0);
+ this.H["17"] = new c("35", "36", "35", "2", "21.5", 0, 0);
+ this.H["35"] = new c("71", "72", "72", "0", "19.5", 0, 0);
+ this.H["71"] = new c("139", "140", "140", "9", "2.5", 0, 0);
+ this.H["139"] = new c("139", "140", "140", "0", "0", 1, .00403497);
+ this.H["140"] = new c("139", "140", "140", "0", "0", 1, - .312656);
+ this.H["72"] = new c("141", "142", "141", "135", "96", 0, 0);
+ this.H["141"] = new c("141", "142", "141", "0", "0", 1, - .465786);
+ this.H["142"] = new c("141", "142", "141", "0", "0", 1, .159633);
+ this.H["36"] = new c("73", "74", "73", "130", "89.5", 0, 0);
+ this.H["73"] = new c("143", "144", "144", "10", "4.5", 0, 0);
+ this.H["143"] = new c("143", "144", "144", "0", "0", 1, - .76265);
+ this.H["144"] = new c("143", "144", "144", "0", "0", 1, - .580804);
+ this.H["74"] = new c("145", "146", "146", "10", "16.5", 0, 0);
+ this.H["145"] = new c("145", "146", "146", "0", "0", 1, .296357);
+ this.H["146"] = new c("145", "146", "146", "0", "0", 1, - .691659);
+ this.H["18"] = new c("37", "38", "38", "9", "1.5", 0, 0);
+ this.H["37"] = new c("37", "38", "38", "0", "0", 1, .993951);
+ this.H["38"] = new c("75", "76", "75", "0", "19", 0, 0);
+ this.H["75"] = new c("147", "148", "147", "39", "-0.0000100136", 0, 0);
+ this.H["147"] = new c("147", "148", "147", "0", "0", 1, - .346535);
+ this.H["148"] = new c("147", "148", "147", "0", "0", 1, - .995745);
+ this.H["76"] = new c("147", "148", "147", "0", "0", 1, - .99978);
+ this.H["4"] = new c("9", "10", "9", "5", "4.5", 0, 0);
+ this.H["9"] = new c("19", "20", "19", "2", "4.5", 0, 0);
+ this.H["19"] = new c("39", "40", "39", "140", "7.5", 0, 0);
+ this.H["39"] = new c("77", "78", "78", "134", "6.5", 0, 0);
+ this.H["77"] = new c("149", "150", "150", "7", "11.5", 0, 0);
+ this.H["149"] = new c("149", "150", "150", "0", "0", 1, .729843);
+ this.H["150"] = new c("149", "150", "150", "0", "0", 1, .383857);
+ this.H["78"] = new c("151", "152", "151", "133", "4.5", 0, 0);
+ this.H["151"] = new c("151", "152", "151", "0", "0", 1, .39017);
+ this.H["152"] = new c("151", "152", "151", "0", "0", 1, .0434342);
+ this.H["40"] = new c("79", "80", "79", "133", "3.5", 0, 0);
+ this.H["79"] = new c("153", "154", "154", "8", "4.5", 0, 0);
+ this.H["153"] = new c("153", "154", "154", "0", "0", 1, - .99536);
+ this.H["154"] = new c("153", "154", "154", "0", "0", 1, - .00943396);
+ this.H["80"] = new c("155", "156", "155", "125", "-0.0000100136", 0, 0);
+ this.H["155"] = new c("155", "156", "155", "0", "0", 1, .266272);
+ this.H["156"] = new c("155", "156", "155", "0", "0", 1, .959904);
+ this.H["20"] = new c("41", "42", "42", "10", "65.5", 0, 0);
+ this.H["41"] = new c("81", "82", "82", "7", "10.5", 0, 0);
+ this.H["81"] = new c("157", "158", "158", "2", "37.5", 0, 0);
+ this.H["157"] = new c("157", "158", "158", "0", "0", 1, - .701873);
+ this.H["158"] = new c("157", "158", "158", "0", "0", 1, .224649);
+ this.H["82"] = new c("159", "160", "159", "133", "9.5", 0, 0);
+ this.H["159"] = new c("159", "160", "159", "0", "0", 1, .0955181);
+ this.H["160"] = new c("159", "160", "159", "0", "0", 1, - .58962);
+ this.H["42"] = new c("83", "84", "83", "39", "-0.0000100136", 0, 0);
+ this.H["83"] = new c("161", "162", "161", "135", "31", 0, 0);
+ this.H["161"] = new c("161", "162", "161", "0", "0", 1, - .229692);
+ this.H["162"] = new c("161", "162", "161", "0", "0", 1, .88595);
+ this.H["84"] = new c("163", "164", "164", "1", "13.5", 0, 0);
+ this.H["163"] = new c("163", "164", "164", "0", "0", 1, - .992157);
+ this.H["164"] = new c("163", "164", "164", "0", "0", 1, .922159);
+ this.H["10"] = new c("21", "22", "22", "4", "486", 0, 0);
+ this.H["21"] = new c("43", "44", "44", "133", "4.5", 0, 0);
+ this.H["43"] = new c("85", "86", "86", "10", "4.5", 0, 0);
+ this.H["85"] = new c("165", "166", "166", "4", "158.5", 0, 0);
+ this.H["165"] = new c("165", "166", "166", "0", "0", 1, - .127778);
+ this.H["166"] = new c("165", "166", "166", "0", "0", 1, .955189);
+ this.H["86"] = new c("165", "166", "166", "0", "0", 1, - .994012);
+ this.H["44"] = new c("87", "88", "88", "1", "3.5", 0, 0);
+ this.H["87"] = new c("167", "168", "168", "135", "7", 0, 0);
+ this.H["167"] = new c("167", "168", "168", "0", "0", 1, - .997015);
+ this.H["168"] = new c("167", "168", "168", "0", "0", 1, .400821);
+ this.H["88"] = new c("169", "170", "169", "130", "36", 0, 0);
+ this.H["169"] = new c("169", "170", "169", "0", "0", 1, - .898638);
+ this.H["170"] = new c("169", "170", "169", "0", "0", 1, .56129);
+ this.H["22"] = new c("45", "46", "45", "9", "2.5", 0, 0);
+ this.H["45"] = new c("89", "90", "90", "9", "1.5", 0, 0);
+ this.H["89"] = new c("171", "172", "171", "10", "10.5", 0, 0);
+ this.H["171"] = new c("171", "172", "171", "0", "0", 1, .573986);
+ this.H["172"] = new c("171", "172", "171", "0", "0", 1, - .627266);
+ this.H["90"] = new c("173", "174", "173", "31", "-0.0000100136", 0, 0);
+ this.H["173"] = new c("173", "174", "173", "0", "0", 1, .925273);
+ this.H["174"] = new c("173", "174", "173", "0", "0", 1, - .994805);
+ this.H["46"] = new c("91", "92", "91", "136", "5.5", 0, 0);
+ this.H["91"] = new c("175", "176", "175", "10", "10.5", 0, 0);
+ this.H["175"] = new c("175", "176", "175", "0", "0", 1, .548352);
+ this.H["176"] = new c("175", "176", "175", "0", "0", 1, - .879195);
+ this.H["92"] = new c("177", "178", "178", "8", "14.5", 0, 0);
+ this.H["177"] = new c("177", "178", "178", "0", "0", 1, .457305);
+ this.H["178"] = new c("177", "178", "178", "0", "0", 1, - .998992);
+ this.H["2"] = new c("5", "6", "5", "10", "2.5", 0, 0);
+ this.H["5"] = new c("11", "12", "11", "9", "4.5", 0, 0);
+ this.H["11"] = new c("23", "24", "24", "10", "4.00001", 0, 0);
+ this.H["23"] = new c("47", "48", "48", "133", "5.5", 0, 0);
+ this.H["47"] = new c("93", "94", "93", "3", "13.5", 0, 0);
+ this.H["93"] = new c("179", "180", "179", "138", "15.5", 0, 0);
+ this.H["179"] = new c("179", "180", "179", "0", "0", 1, .658398);
+ this.H["180"] = new c("179", "180", "179", "0", "0", 1, - .927007);
+ this.H["94"] = new c("181", "182", "182", "3", "15.5", 0, 0);
+ this.H["181"] = new c("181", "182", "182", "0", "0", 1, - .111351);
+ this.H["182"] = new c("181", "182", "182", "0", "0", 1, - .99827);
+ this.H["48"] = new c("95", "96", "95", "7", "167", 0, 0);
+ this.H["95"] = new c("183", "184", "183", "132", "36.5", 0, 0);
+ this.H["183"] = new c("183", "184", "183", "0", "0", 1, .895161);
+ this.H["184"] = new c("183", "184", "183", "0", "0", 1, - .765217);
+ this.H["96"] = new c("185", "186", "186", "137", "6.00001", 0, 0);
+ this.H["185"] = new c("185", "186", "186", "0", "0", 1, - .851095);
+ this.H["186"] = new c("185", "186", "186", "0", "0", 1, .674286);
+ this.H["24"] = new c("49", "50", "49", "137", "5.5", 0, 0);
+ this.H["49"] = new c("97", "98", "97", "5", "23.5", 0, 0);
+ this.H["97"] = new c("187", "188", "187", "3", "28.5", 0, 0);
+ this.H["187"] = new c("187", "188", "187", "0", "0", 1, .951654);
+ this.H["188"] = new c("187", "188", "187", "0", "0", 1, - .993808);
+ this.H["98"] = new c("187", "188", "187", "0", "0", 1, - .99705);
+ this.H["50"] = new c("187", "188", "187", "0", "0", 1, - .997525);
+ this.H["12"] = new c("25", "26", "25", "8", "8.5", 0, 0);
+ this.H["25"] = new c("51", "52", "52", "10", "4.00001", 0, 0);
+ this.H["51"] = new c("99", "100", "100", "133", "5.5", 0, 0);
+ this.H["99"] = new c("189", "190", "190", "7", "40.5", 0, 0);
+ this.H["189"] = new c("189", "190", "190", "0", "0", 1, .151839);
+ this.H["190"] = new c("189", "190", "190", "0", "0", 1, - .855517);
+ this.H["100"] = new c("191", "192", "192", "133", "14.5", 0, 0);
+ this.H["191"] = new c("191", "192", "192", "0", "0", 1, .86223);
+ this.H["192"] = new c("191", "192", "192", "0", "0", 1, .544394);
+ this.H["52"] = new c("101", "102", "101", "135", "47.5", 0, 0);
+ this.H["101"] = new c("193", "194", "194", "4", "24.5", 0, 0);
+ this.H["193"] = new c("193", "194", "194", "0", "0", 1, .946185);
+ this.H["194"] = new c("193", "194", "194", "0", "0", 1, .811859);
+ this.H["102"] = new c("193", "194", "194", "0", "0", 1, - .991561);
+ this.H["26"] = new c("53", "54", "54", "132", "6.5", 0, 0);
+ this.H["53"] = new c("103", "104", "103", "131", "85", 0, 0);
+ this.H["103"] = new c("195", "196", "196", "134", "16.5", 0, 0);
+ this.H["195"] = new c("195", "196", "196", "0", "0", 1, .0473538);
+ this.H["196"] = new c("195", "196", "196", "0", "0", 1, - .999401);
+ this.H["104"] = new c("197", "198", "198", "8", "15.5", 0, 0);
+ this.H["197"] = new c("197", "198", "198", "0", "0", 1, .816129);
+ this.H["198"] = new c("197", "198", "198", "0", "0", 1, - .99322);
+ this.H["54"] = new c("105", "106", "105", "133", "3.5", 0, 0);
+ this.H["105"] = new c("105", "106", "105", "0", "0", 1, - .998783);
+ this.H["106"] = new c("199", "200", "199", "39", "-0.0000100136", 0, 0);
+ this.H["199"] = new c("199", "200", "199", "0", "0", 1, .528588);
+ this.H["200"] = new c("199", "200", "199", "0", "0", 1, - .998599);
+ this.H["6"] = new c("13", "14", "14", "10", "7.5", 0, 0);
+ this.H["13"] = new c("27", "28", "28", "133", "7.5", 0, 0);
+ this.H["27"] = new c("55", "56", "56", "10", "4.5", 0, 0);
+ this.H["55"] = new c("107", "108", "107", "3", "3.5", 0, 0);
+ this.H["107"] = new c("201", "202", "201", "4", "17.5", 0, 0);
+ this.H["201"] = new c("201", "202", "201", "0", "0", 1, - .379512);
+ this.H["202"] = new c("201", "202", "201", "0", "0", 1, .15165);
+ this.H["108"] = new c("203", "204", "203", "57", "-0.0000100136", 0, 0);
+ this.H["203"] = new c("203", "204", "203", "0", "0", 1, - .884606);
+ this.H["204"] = new c("203", "204", "203", "0", "0", 1, .265406);
+ this.H["56"] = new c("109", "110", "109", "136", "6.5", 0, 0);
+ this.H["109"] = new c("205", "206", "205", "4", "157.5", 0, 0);
+ this.H["205"] = new c("205", "206", "205", "0", "0", 1, - .0142737);
+ this.H["206"] = new c("205", "206", "205", "0", "0", 1, .691279);
+ this.H["110"] = new c("205", "206", "205", "0", "0", 1, - .998086);
+ this.H["28"] = new c("57", "58", "58", "138", "11.5", 0, 0);
+ this.H["57"] = new c("111", "112", "112", "2", "6.5", 0, 0);
+ this.H["111"] = new c("207", "208", "208", "7", "67.5", 0, 0);
+ this.H["207"] = new c("207", "208", "208", "0", "0", 1, .763925);
+ this.H["208"] = new c("207", "208", "208", "0", "0", 1, - .309645);
+ this.H["112"] = new c("209", "210", "209", "40", "-0.0000100136", 0, 0);
+ this.H["209"] = new c("209", "210", "209", "0", "0", 1, - .306635);
+ this.H["210"] = new c("209", "210", "209", "0", "0", 1, .556696);
+ this.H["58"] = new c("113", "114", "113", "138", "50.5", 0, 0);
+ this.H["113"] = new c("211", "212", "212", "8", "25.5", 0, 0);
+ this.H["211"] = new c("211", "212", "212", "0", "0", 1, .508234);
+ this.H["212"] = new c("211", "212", "212", "0", "0", 1, .793551);
+ this.H["114"] = new c("211", "212", "212", "0", "0", 1, - .998438);
+ this.H["14"] = new c("29", "30", "29", "134", "27.5", 0, 0);
+ this.H["29"] = new c("59", "60", "60", "7", "17.5", 0, 0);
+ this.H["59"] = new c("115", "116", "115", "135", "5.5", 0, 0);
+ this.H["115"] = new c("213", "214", "214", "137", "5.5", 0, 0);
+ this.H["213"] = new c("213", "214", "214", "0", "0", 1, .401747);
+ this.H["214"] = new c("213", "214", "214", "0", "0", 1, .0367503);
+ this.H["116"] = new c("215", "216", "216", "8", "5.5", 0, 0);
+ this.H["215"] = new c("215", "216", "216", "0", "0", 1, - .0241984);
+ this.H["216"] = new c("215", "216", "216", "0", "0", 1, - .999046);
+ this.H["60"] = new c("117", "118", "117", "0", "12.5", 0, 0);
+ this.H["117"] = new c("217", "218", "218", "132", "5.5", 0, 0);
+ this.H["217"] = new c("217", "218", "218", "0", "0", 1, - .997294);
+ this.H["218"] = new c("217", "218", "218", "0", "0", 1, .210398);
+ this.H["118"] = new c("219", "220", "219", "137", "1.5", 0, 0);
+ this.H["219"] = new c("219", "220", "219", "0", "0", 1, - .55763);
+ this.H["220"] = new c("219", "220", "219", "0", "0", 1, .074493);
+ this.H["30"] = new c("61", "62", "62", "133", "42.5", 0, 0);
+ this.H["61"] = new c("119", "120", "119", "135", "5.5", 0, 0);
+ this.H["119"] = new c("221", "222", "222", "4", "473.5", 0, 0);
+ this.H["221"] = new c("221", "222", "222", "0", "0", 1, - .920213);
+ this.H["222"] = new c("221", "222", "222", "0", "0", 1, - .17615);
+ this.H["120"] = new c("223", "224", "224", "5", "144", 0, 0);
+ this.H["223"] = new c("223", "224", "224", "0", "0", 1, - .954295);
+ this.H["224"] = new c("223", "224", "224", "0", "0", 1, - .382538);
+ this.H["62"] = new c("121", "122", "121", "133", "50", 0, 0);
+ this.H["121"] = new c("225", "226", "226", "10", "18.5", 0, 0);
+ this.H["225"] = new c("225", "226", "226", "0", "0", 1, - .0731343);
+ this.H["226"] = new c("225", "226", "226", "0", "0", 1, .755454);
+ this.H["122"] = new c("227", "228", "228", "0", "30", 0, 0);
+ this.H["227"] = new c("227", "228", "228", "0", "0", 1, .25);
+ this.H["228"] = new c("227", "228", "228", "0", "0", 1, - .997101);
+ }
+ function l(a, b, c, f, u, l) {
+ this.b3 = u;
+ this.UX = l;
+ }
+ b = a(309);
+ r = a(187);
+ a = {};
+ a.Odb = new(function () {
+ this.Z8a = r();
+ this.o = 0;
+ this.update = function () {
+ this.o = r() - this.Z8a;
+ };
+ this.getValue = function () {
+ return this.o;
+ };
+ this.type = "num";
+ })();
+ a.Twb = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = "becauseYouAdded" === c.Da[a].context || null;
+ };
+ this.type = "cat";
+ })();
+ a.Uwb = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = "becauseYouLiked" === c.Da[a].context || null;
+ };
+ this.type = "cat";
+ })();
+ a.Wwb = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = "billboard" === c.Da[a].context || null;
+ };
+ this.type = "cat";
+ })();
+ a.Xwb = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = "continueWatching" === c.Da[a].context || null;
+ };
+ this.type = "cat";
+ })();
+ a.Vwb = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = "bigRow" === c.Da[a].context || null;
+ };
+ this.type = "cat";
+ })();
+ a.Ywb = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = "genre" === c.Da[a].context || null;
+ };
+ this.type = "cat";
+ })();
+ a.Zwb = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = "netflixOriginals" === c.Da[a].context || null;
+ };
+ this.type = "cat";
+ })();
+ a.$wb = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = "newRelease" === c.Da[a].context || null;
+ };
+ this.type = "cat";
+ })();
+ a.axb = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = "popularTitles" === c.Da[a].context || null;
+ };
+ this.type = "cat";
+ })();
+ a.bxb = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = "queue" === c.Da[a].context || null;
+ };
+ this.type = "cat";
+ })();
+ a.cxb = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = "recentlyAdded" === c.Da[a].context || null;
+ };
+ this.type = "cat";
+ })();
+ a.dxb = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = "similars" === c.Da[a].context || null;
+ };
+ this.type = "cat";
+ })();
+ a.fxb = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = "trendingNow" === c.Da[a].context || null;
+ };
+ this.type = "cat";
+ })();
+ a.gxb = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = "ultraHD" === c.Da[a].context || null;
+ };
+ this.type = "cat";
+ })();
+ a.hxb = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = "watchAgain" === c.Da[a].context || null;
+ };
+ this.type = "cat";
+ })();
+ a.exb = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = "topTen" === c.Da[a].context || null;
+ };
+ this.type = "cat";
+ })();
+ a.yeb = new(function () {
+ this.update = function (a) {
+ for (var b in a.Da) {
+ if ("becauseYouAdded" === a.Da[b].context) {
+ this.o = Math.max(a.Da[b].list.length, this.o);
+ break;
+ }
+ }
+ };
+ this.getValue = function () {
+ return this.o;
+ };
+ this.type = "num";
+ this.o = 0;
+ })();
+ a.zeb = new(function () {
+ this.update = function (a) {
+ for (var b in a.Da) {
+ if ("becauseYouLiked" === a.Da[b].context) {
+ this.o = Math.max(a.Da[b].list.length, this.o);
+ break;
+ }
+ }
+ };
+ this.getValue = function () {
+ return this.o;
+ };
+ this.type = "num";
+ this.o = 0;
+ })();
+ a.Deb = new(function () {
+ this.update = function (a) {
+ for (var b in a.Da) {
+ if ("billboard" === a.Da[b].context) {
+ this.o = Math.max(a.Da[b].list.length, this.o);
+ break;
+ }
+ }
+ };
+ this.getValue = function () {
+ return this.o;
+ };
+ this.type = "num";
+ this.o = 0;
+ })();
+ a.ohb = new(function () {
+ this.update = function (a) {
+ for (var b in a.Da) {
+ if ("continueWatching" === a.Da[b].context) {
+ this.o = Math.max(a.Da[b].list.length, this.o);
+ break;
+ }
+ }
+ };
+ this.getValue = function () {
+ return this.o;
+ };
+ this.type = "num";
+ this.o = 0;
+ })();
+ a.Ceb = new(function () {
+ this.update = function (a) {
+ for (var b in a.Da) {
+ if ("bigRow" === a.Da[b].context) {
+ this.o = Math.max(a.Da[b].list.length, this.o);
+ break;
+ }
+ }
+ };
+ this.getValue = function () {
+ return this.o;
+ };
+ this.type = "num";
+ this.o = 0;
+ })();
+ a.jpb = new(function () {
+ this.update = function (a) {
+ for (var b in a.Da) {
+ if ("genre" === a.Da[b].context) {
+ this.o = Math.max(a.Da[b].list.length, this.o);
+ break;
+ }
+ }
+ };
+ this.getValue = function () {
+ return this.o;
+ };
+ this.type = "num";
+ this.o = 0;
+ })();
+ a.bAb = new(function () {
+ this.update = function (a) {
+ for (var b in a.Da) {
+ if ("netflixOriginals" === a.Da[b].context) {
+ this.o = Math.max(a.Da[b].list.length, this.o);
+ break;
+ }
+ }
+ };
+ this.getValue = function () {
+ return this.o;
+ };
+ this.type = "num";
+ this.o = 0;
+ })();
+ a.dAb = new(function () {
+ this.update = function (a) {
+ for (var b in a.Da) {
+ if ("newRelease" === a.Da[b].context) {
+ this.o = Math.max(a.Da[b].list.length, this.o);
+ break;
+ }
+ }
+ };
+ this.getValue = function () {
+ return this.o;
+ };
+ this.type = "num";
+ this.o = 0;
+ })();
+ a.DDb = new(function () {
+ this.update = function (a) {
+ for (var b in a.Da) {
+ if ("popularTitles" === a.Da[b].context) {
+ this.o = Math.max(a.Da[b].list.length, this.o);
+ break;
+ }
+ }
+ };
+ this.getValue = function () {
+ return this.o;
+ };
+ this.type = "num";
+ this.o = 0;
+ })();
+ a.Zk = new(function () {
+ this.update = function (a) {
+ for (var b in a.Da) {
+ if ("queue" === a.Da[b].context) {
+ this.o = Math.max(a.Da[b].list.length, this.o);
+ break;
+ }
+ }
+ };
+ this.getValue = function () {
+ return this.o;
+ };
+ this.type = "num";
+ this.o = 0;
+ })();
+ a.qFb = new(function () {
+ this.update = function (a) {
+ for (var b in a.Da) {
+ if ("recentlyAdded" === a.Da[b].context) {
+ this.o = Math.max(a.Da[b].list.length, this.o);
+ break;
+ }
+ }
+ };
+ this.getValue = function () {
+ return this.o;
+ };
+ this.type = "num";
+ this.o = 0;
+ })();
+ a.UJb = new(function () {
+ this.update = function (a) {
+ for (var b in a.Da) {
+ if ("similars" === a.Da[b].context) {
+ this.o = Math.max(a.Da[b].list.length, this.o);
+ break;
+ }
+ }
+ };
+ this.getValue = function () {
+ return this.o;
+ };
+ this.type = "num";
+ this.o = 0;
+ })();
+ a.wMb = new(function () {
+ this.update = function (a) {
+ for (var b in a.Da) {
+ if ("trendingNow" === a.Da[b].context) {
+ this.o = Math.max(a.Da[b].list.length, this.o);
+ break;
+ }
+ }
+ };
+ this.getValue = function () {
+ return this.o;
+ };
+ this.type = "num";
+ this.o = 0;
+ })();
+ a.NMb = new(function () {
+ this.update = function (a) {
+ for (var b in a.Da) {
+ if ("ultraHD" === a.Da[b].context) {
+ this.o = Math.max(a.Da[b].list.length, this.o);
+ break;
+ }
+ }
+ };
+ this.getValue = function () {
+ return this.o;
+ };
+ this.type = "num";
+ this.o = 0;
+ })();
+ a.IOb = new(function () {
+ this.update = function (a) {
+ for (var b in a.Da) {
+ if ("watchAgain" === a.Da[b].context) {
+ this.o = Math.max(a.Da[b].list.length, this.o);
+ break;
+ }
+ }
+ };
+ this.getValue = function () {
+ return this.o;
+ };
+ this.type = "num";
+ this.o = 0;
+ })();
+ a.hMb = new(function () {
+ this.update = function (a) {
+ for (var b in a.Da) {
+ if ("topTen" === a.Da[b].context) {
+ this.o = Math.max(a.Da[b].list.length, this.o);
+ break;
+ }
+ }
+ };
+ this.getValue = function () {
+ return this.o;
+ };
+ this.type = "num";
+ this.o = 0;
+ })();
+ a.zhb = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = "AR" === c.Ga || null;
+ };
+ this.type = "cat";
+ })();
+ a.Ahb = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = "AT" === c.Ga || null;
+ };
+ this.type = "cat";
+ })();
+ a.Bhb = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = "AU" === c.Ga || null;
+ };
+ this.type = "cat";
+ })();
+ a.Chb = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = "AZ" === c.Ga || null;
+ };
+ this.type = "cat";
+ })();
+ a.Dhb = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = "BB" === c.Ga || null;
+ };
+ this.type = "cat";
+ })();
+ a.Ehb = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = "BE" === c.Ga || null;
+ };
+ this.type = "cat";
+ })();
+ a.Fhb = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = "BO" === c.Ga || null;
+ };
+ this.type = "cat";
+ })();
+ a.Ghb = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = "BR" === c.Ga || null;
+ };
+ this.type = "cat";
+ })();
+ a.Hhb = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = "BS" === c.Ga || null;
+ };
+ this.type = "cat";
+ })();
+ a.Ihb = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = "CA" === c.Ga || null;
+ };
+ this.type = "cat";
+ })();
+ a.Jhb = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = "CH" === c.Ga || null;
+ };
+ this.type = "cat";
+ })();
+ a.Khb = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = "CL" === c.Ga || null;
+ };
+ this.type = "cat";
+ })();
+ a.Lhb = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = "CO" === c.Ga || null;
+ };
+ this.type = "cat";
+ })();
+ a.Mhb = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = "CR" === c.Ga || null;
+ };
+ this.type = "cat";
+ })();
+ a.Nhb = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = "CW" === c.Ga || null;
+ };
+ this.type = "cat";
+ })();
+ a.Ohb = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = "DE" === c.Ga || null;
+ };
+ this.type = "cat";
+ })();
+ a.Phb = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = "DK" === c.Ga || null;
+ };
+ this.type = "cat";
+ })();
+ a.Qhb = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = "DM" === c.Ga || null;
+ };
+ this.type = "cat";
+ })();
+ a.Rhb = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = "DO" === c.Ga || null;
+ };
+ this.type = "cat";
+ })();
+ a.Shb = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = "EC" === c.Ga || null;
+ };
+ this.type = "cat";
+ })();
+ a.Thb = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = "EE" === c.Ga || null;
+ };
+ this.type = "cat";
+ })();
+ a.Uhb = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = "EG" === c.Ga || null;
+ };
+ this.type = "cat";
+ })();
+ a.Vhb = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = "ES" === c.Ga || null;
+ };
+ this.type = "cat";
+ })();
+ a.Whb = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = "FI" === c.Ga || null;
+ };
+ this.type = "cat";
+ })();
+ a.Xhb = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = "FR" === c.Ga || null;
+ };
+ this.type = "cat";
+ })();
+ a.Yhb = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = "GB" === c.Ga || null;
+ };
+ this.type = "cat";
+ })();
+ a.Zhb = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = "GF" === c.Ga || null;
+ };
+ this.type = "cat";
+ })();
+ a.$hb = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = "GP" === c.Ga || null;
+ };
+ this.type = "cat";
+ })();
+ a.aib = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = "GT" === c.Ga || null;
+ };
+ this.type = "cat";
+ })();
+ a.bib = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = "HK" === c.Ga || null;
+ };
+ this.type = "cat";
+ })();
+ a.cib = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = "HN" === c.Ga || null;
+ };
+ this.type = "cat";
+ })();
+ a.dib = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = "HR" === c.Ga || null;
+ };
+ this.type = "cat";
+ })();
+ a.eib = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = "HU" === c.Ga || null;
+ };
+ this.type = "cat";
+ })();
+ a.fib = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = "ID" === c.Ga || null;
+ };
+ this.type = "cat";
+ })();
+ a.gib = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = "IE" === c.Ga || null;
+ };
+ this.type = "cat";
+ })();
+ a.hib = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = "IL" === c.Ga || null;
+ };
+ this.type = "cat";
+ })();
+ a.iib = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = "IN" === c.Ga || null;
+ };
+ this.type = "cat";
+ })();
+ a.jib = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = "IT" === c.Ga || null;
+ };
+ this.type = "cat";
+ })();
+ a.kib = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = "JE" === c.Ga || null;
+ };
+ this.type = "cat";
+ })();
+ a.lib = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = "JM" === c.Ga || null;
+ };
+ this.type = "cat";
+ })();
+ a.mib = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = "JP" === c.Ga || null;
+ };
+ this.type = "cat";
+ })();
+ a.nib = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = "KE" === c.Ga || null;
+ };
+ this.type = "cat";
+ })();
+ a.oib = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = "KN" === c.Ga || null;
+ };
+ this.type = "cat";
+ })();
+ a.pib = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = "KR" === c.Ga || null;
+ };
+ this.type = "cat";
+ })();
+ a.qib = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = "LU" === c.Ga || null;
+ };
+ this.type = "cat";
+ })();
+ a.rib = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = "MK" === c.Ga || null;
+ };
+ this.type = "cat";
+ })();
+ a.sib = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = "MU" === c.Ga || null;
+ };
+ this.type = "cat";
+ })();
+ a.tib = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = "MX" === c.Ga || null;
+ };
+ this.type = "cat";
+ })();
+ a.uib = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = "MY" === c.Ga || null;
+ };
+ this.type = "cat";
+ })();
+ a.vib = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = "NI" === c.Ga || null;
+ };
+ this.type = "cat";
+ })();
+ a.wib = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = "NL" === c.Ga || null;
+ };
+ this.type = "cat";
+ })();
+ a.xib = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = "NO" === c.Ga || null;
+ };
+ this.type = "cat";
+ })();
+ a.yib = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = "NZ" === c.Ga || null;
+ };
+ this.type = "cat";
+ })();
+ a.zib = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = "OM" === c.Ga || null;
+ };
+ this.type = "cat";
+ })();
+ a.Aib = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = "PA" === c.Ga || null;
+ };
+ this.type = "cat";
+ })();
+ a.Bib = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = "PE" === c.Ga || null;
+ };
+ this.type = "cat";
+ })();
+ a.Cib = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = "PF" === c.Ga || null;
+ };
+ this.type = "cat";
+ })();
+ a.Dib = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = "PH" === c.Ga || null;
+ };
+ this.type = "cat";
+ })();
+ a.Eib = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = "PK" === c.Ga || null;
+ };
+ this.type = "cat";
+ })();
+ a.Fib = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = "PL" === c.Ga || null;
+ };
+ this.type = "cat";
+ })();
+ a.Gib = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = "PT" === c.Ga || null;
+ };
+ this.type = "cat";
+ })();
+ a.Hib = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = "PY" === c.Ga || null;
+ };
+ this.type = "cat";
+ })();
+ a.Iib = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = "QA" === c.Ga || null;
+ };
+ this.type = "cat";
+ })();
+ a.Jib = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = "RO" === c.Ga || null;
+ };
+ this.type = "cat";
+ })();
+ a.Kib = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = "RS" === c.Ga || null;
+ };
+ this.type = "cat";
+ })();
+ a.Lib = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = "RU" === c.Ga || null;
+ };
+ this.type = "cat";
+ })();
+ a.Mib = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = "SA" === c.Ga || null;
+ };
+ this.type = "cat";
+ })();
+ a.Nib = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = "SE" === c.Ga || null;
+ };
+ this.type = "cat";
+ })();
+ a.Oib = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = "SG" === c.Ga || null;
+ };
+ this.type = "cat";
+ })();
+ a.Pib = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = "SV" === c.Ga || null;
+ };
+ this.type = "cat";
+ })();
+ a.Qib = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = "SX" === c.Ga || null;
+ };
+ this.type = "cat";
+ })();
+ a.Rib = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = "TH" === c.Ga || null;
+ };
+ this.type = "cat";
+ })();
+ a.Sib = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = "TR" === c.Ga || null;
+ };
+ this.type = "cat";
+ })();
+ a.Tib = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = "TT" === c.Ga || null;
+ };
+ this.type = "cat";
+ })();
+ a.Uib = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = "TW" === c.Ga || null;
+ };
+ this.type = "cat";
+ })();
+ a.Vib = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = "US" === c.Ga || null;
+ };
+ this.type = "cat";
+ })();
+ a.Wib = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = "UY" === c.Ga || null;
+ };
+ this.type = "cat";
+ })();
+ a.Xib = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = "VE" === c.Ga || null;
+ };
+ this.type = "cat";
+ })();
+ a.Yib = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = "ZA" === c.Ga || null;
+ };
+ this.type = "cat";
+ })();
+ a.uFb = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = 1 === c.mh || null;
+ };
+ this.type = "cat";
+ })();
+ a.vFb = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = 10 === c.mh || null;
+ };
+ this.type = "cat";
+ })();
+ a.wFb = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = 11 === c.mh || null;
+ };
+ this.type = "cat";
+ })();
+ a.xFb = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = 12 === c.mh || null;
+ };
+ this.type = "cat";
+ })();
+ a.yFb = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = 13 === c.mh || null;
+ };
+ this.type = "cat";
+ })();
+ a.zFb = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = 14 === c.mh || null;
+ };
+ this.type = "cat";
+ })();
+ a.AFb = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = 15 === c.mh || null;
+ };
+ this.type = "cat";
+ })();
+ a.BFb = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = 16 === c.mh || null;
+ };
+ this.type = "cat";
+ })();
+ a.CFb = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = 17 === c.mh || null;
+ };
+ this.type = "cat";
+ })();
+ a.DFb = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = 18 === c.mh || null;
+ };
+ this.type = "cat";
+ })();
+ a.EFb = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = 19 === c.mh || null;
+ };
+ this.type = "cat";
+ })();
+ a.FFb = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = 2 === c.mh || null;
+ };
+ this.type = "cat";
+ })();
+ a.GFb = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = 20 === c.mh || null;
+ };
+ this.type = "cat";
+ })();
+ a.HFb = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = 21 === c.mh || null;
+ };
+ this.type = "cat";
+ })();
+ a.IFb = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = 22 === c.mh || null;
+ };
+ this.type = "cat";
+ })();
+ a.JFb = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = 23 === c.mh || null;
+ };
+ this.type = "cat";
+ })();
+ a.KFb = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = 3 === c.mh || null;
+ };
+ this.type = "cat";
+ })();
+ a.LFb = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = 4 === c.mh || null;
+ };
+ this.type = "cat";
+ })();
+ a.MFb = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = 5 === c.mh || null;
+ };
+ this.type = "cat";
+ })();
+ a.NFb = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = 6 === c.mh || null;
+ };
+ this.type = "cat";
+ })();
+ a.OFb = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = 7 === c.mh || null;
+ };
+ this.type = "cat";
+ })();
+ a.PFb = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = 8 === c.mh || null;
+ };
+ this.type = "cat";
+ })();
+ a.QFb = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = 9 === c.mh || null;
+ };
+ this.type = "cat";
+ })();
+ a.aLb = new(function () {
+ this.update = function (a) {
+ "down" === a.direction && this.o++;
+ };
+ this.getValue = function () {
+ return this.o;
+ };
+ this.type = "num";
+ this.o = 0;
+ })();
+ a.cLb = new(function () {
+ this.update = function (a) {
+ "right" === a.direction && this.o++;
+ };
+ this.getValue = function () {
+ return this.o;
+ };
+ this.type = "num";
+ this.o = 0;
+ })();
+ a.bLb = new(function () {
+ this.update = function (a) {
+ "left" === a.direction && this.o++;
+ };
+ this.getValue = function () {
+ return this.o;
+ };
+ this.type = "num";
+ this.o = 0;
+ })();
+ a.dLb = new(function () {
+ this.update = function (a) {
+ "up" === a.direction && this.o++;
+ };
+ this.getValue = function () {
+ return this.o;
+ };
+ this.type = "num";
+ this.o = 0;
+ })();
+ a.Fyb = new(function () {
+ this.o = 0;
+ this.update = function (a) {
+ this.o = Math.max(this.o, a.rowIndex);
+ };
+ this.getValue = function () {
+ return this.o;
+ };
+ this.type = "num";
+ })();
+ a.Gyb = new(function () {
+ this.o = 0;
+ this.update = function (a) {
+ this.o = Math.max(this.o, a.xda);
+ };
+ this.getValue = function () {
+ return this.o;
+ };
+ this.type = "num";
+ })();
+ a.Nyb = new(function () {
+ this.TL = this.o = 0;
+ this.update = function (a) {
+ this.TL++;
+ this.o = 1 * (this.o + a.rowIndex) / this.TL;
+ };
+ this.getValue = function () {
+ return this.o;
+ };
+ this.type = "num";
+ })();
+ a.Oyb = new(function () {
+ this.TL = this.o = 0;
+ this.update = function (a) {
+ this.TL++;
+ return this.o = 1 * (this.o + a.xda) / this.TL;
+ };
+ this.getValue = function () {
+ return this.o;
+ };
+ this.type = "num";
+ })();
+ a.eEb = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = c.xda + b;
+ };
+ this.type = "num";
+ })();
+ a.fEb = new(function () {
+ this.getValue = function (a, b, c) {
+ return this.o = c.rowIndex + a;
+ };
+ this.type = "num";
+ })();
+ k.prototype.Cz = function (a) {
+ return this.HDa(this.H["0"].iVa(a), a);
+ };
+ k.prototype.HDa = function (a, b) {
+ return "string" == typeof a ? this.HDa(this.H[a].iVa(b), b) : a;
+ };
+ c.prototype.iVa = function (a) {
+ switch (this.cwb) {
+ case 0:
+ switch (a.Gd[this.xS].type) {
+ case "cat":
+ return null === a.Gd[this.xS].value ? this.bRa : "missing" == a.Gd[this.xS].value ? this.Tka : this.KZa;
+ case "num":
+ return null === a.Gd[this.xS].value ? this.Tka : a.Gd[this.xS].value < this.split ? this.KZa : this.bRa;
+ default:
+ return this.Tka;
+ }
+ case 1:
+ return this.Cz;
+ default:
+ return this.Cz;
+ }
+ };
+ b.declare({
+ eQ: ["modelSelector", "modelone"],
+ Jgb: ["colEpisodeList", 5],
+ Ytb: ["holdDuration", 15E3],
+ WUa: ["rowFirst", 2],
+ QGa: ["colFirst", 5],
+ YUa: ["rowScroll", 2],
+ RGa: ["colScroll", 6],
+ jHb: ["rowScrollHorizontal", 6],
+ FHb: ["searchTop", 3],
+ NHa: ["cwFirst", 2],
+ hP: ["horizontalItemsFocusedMode", 3],
+ ewb: ["itemsPerRank", 1],
+ Ayb: ["maxNumberPayloadsStored", 10],
+ aQa: ["maxNumberTitlesScheduled", 5],
+ dYb: ["enableDetailedLogging", !0],
+ h0b: ["rowStep", 20],
+ pXb: ["colStep", 15],
+ F_b: ["pageRows", 100],
+ E_b: ["pageColumns", 75],
+ jka: ["maskParamsList", new(function () {
+ var a,
+ b;
+ this.jka = [];
+ this.gk = {};
+ this.b3 = 20;
+ this.UX = 15;
+ for (a = 0; 100 > a; a++) {
+ for (b = 0; 75 > b; b++) {
+ (Math.floor(a / this.b3) + "_" + Math.floor(b / this.UX)in this.gk) || (this.gk[Math.floor(a / this.b3) + "_" + Math.floor(b / this.UX)] = 1, this.jka.push(new l(0, 0, 0, 0, Math.floor(a / this.b3), Math.floor(b / this.UX))));
+ }
+ }
+ })().jka],
+ H: ["nodes", new k().H],
+ mapping: ["mapping", {
+ Gyb: "0",
+ Oyb: "1",
+ Fyb: "2",
+ Nyb: "3",
+ Odb: "4",
+ dLb: "5",
+ bLb: "6",
+ cLb: "7",
+ aLb: "8",
+ fEb: "9",
+ eEb: "10",
+ Twb: "11",
+ Uwb: "12",
+ Wwb: "13",
+ Xwb: "14",
+ Vwb: "15",
+ Ywb: "16",
+ Zwb: "17",
+ $wb: "18",
+ axb: "19",
+ bxb: "20",
+ cxb: "21",
+ dxb: "22",
+ exb: "23",
+ fxb: "24",
+ gxb: "25",
+ hxb: "26",
+ uFb: "27",
+ vFb: "28",
+ wFb: "29",
+ xFb: "30",
+ yFb: "31",
+ zFb: "32",
+ AFb: "33",
+ BFb: "34",
+ CFb: "35",
+ DFb: "36",
+ EFb: "37",
+ FFb: "38",
+ GFb: "39",
+ HFb: "40",
+ IFb: "41",
+ JFb: "42",
+ KFb: "43",
+ LFb: "44",
+ MFb: "45",
+ NFb: "46",
+ OFb: "47",
+ PFb: "48",
+ QFb: "49",
+ zhb: "50",
+ Ahb: "51",
+ Bhb: "52",
+ Chb: "53",
+ Dhb: "54",
+ Ehb: "55",
+ Fhb: "56",
+ Ghb: "57",
+ Hhb: "58",
+ Ihb: "59",
+ Jhb: "60",
+ Khb: "61",
+ Lhb: "62",
+ Mhb: "63",
+ Nhb: "64",
+ Ohb: "65",
+ Phb: "66",
+ Qhb: "67",
+ Rhb: "68",
+ Shb: "69",
+ Thb: "70",
+ Uhb: "71",
+ Vhb: "72",
+ Whb: "73",
+ Xhb: "74",
+ Yhb: "75",
+ Zhb: "76",
+ $hb: "77",
+ aib: "78",
+ bib: "79",
+ cib: "80",
+ dib: "81",
+ eib: "82",
+ fib: "83",
+ gib: "84",
+ hib: "85",
+ iib: "86",
+ jib: "87",
+ kib: "88",
+ lib: "89",
+ mib: "90",
+ nib: "91",
+ oib: "92",
+ pib: "93",
+ qib: "94",
+ rib: "95",
+ sib: "96",
+ tib: "97",
+ uib: "98",
+ vib: "99",
+ wib: "100",
+ xib: "101",
+ yib: "102",
+ zib: "103",
+ Aib: "104",
+ Bib: "105",
+ Cib: "106",
+ Dib: "107",
+ Eib: "108",
+ Fib: "109",
+ Gib: "110",
+ Hib: "111",
+ Iib: "112",
+ Jib: "113",
+ Kib: "114",
+ Lib: "115",
+ Mib: "116",
+ Nib: "117",
+ Oib: "118",
+ Pib: "119",
+ Qib: "120",
+ Rib: "121",
+ Sib: "122",
+ Tib: "123",
+ Uib: "124",
+ Vib: "125",
+ Wib: "126",
+ Xib: "127",
+ Yib: "128",
+ IOb: "129",
+ qFb: "130",
+ UJb: "131",
+ Zk: "132",
+ ohb: "133",
+ jpb: "134",
+ wMb: "135",
+ hMb: "136",
+ Deb: "137",
+ dAb: "138",
+ NMb: "139",
+ DDb: "140",
+ yeb: "141",
+ Ceb: "142",
+ zeb: "143",
+ bAb: "144"
+ }
+ ],
+ Gd: ["features", a],
+ mWb: ["_modelName", "tree"],
+ dWb: ["_format", "xgboost"],
+ lWb: ["_itemsToKeep", 5],
+ kWb: ["_itemsThreshold", null],
+ YWb: ["cacheLimit", 20]
+ });
+ d.P = {
+ config: b,
+ FZb: l,
+ xXb: c
+ };
+ }, function (d, b, a) {
+ var k;
+ function c(a) {
+ for (var b = "", c = 0; c < a.length; c++) {
+ b += a[c].ma + "|";
+ }
+ return b;
+ }
+ k = a(186);
+ d.P = {
+ assert: function (a, b) {
+ if (!a)
+ throw Error("PlayPredictionModel assertion failed" + (b ? " : " + b : ""));
+ },
+ eZb: function (a, b, c) {
+ Array.prototype.splice.apply(a, [b, 0].concat(c));
+ },
+ Zpb: function (a) {
+ for (var b = [], c = 0; c < a.length; c++) {
+ if (a[c].context === k.$K.E0a) {
+ b = a[c].list;
+ break;
+ }
+ }
+ return b;
+ },
+ Hpb: function (a) {
+ for (var b = [], c = 0; c < a.length; c++) {
+ if (a[c].context === k.$K.x_a) {
+ b = a[c].list;
+ break;
+ }
+ }
+ return b;
+ },
+ plb: function (a, b) {
+ for (var h = 0, p, m, f, u = 0, l = a.length - 1; u < l; u++) {
+ p = c(a[u].list || []);
+ f = !1;
+ for (var k = 0, r = b.length; k < r; k++) {
+ if ((m = c(b[k].list || []), m == p)) {
+ f = !0;
+ break;
+ }
+ }
+ if (!1 === f) {
+ h = u;
+ break;
+ }
+ }
+ return h;
+ },
+ YAb: function (a, b, c) {
+ for (var h = [], m, f = 0; f < Math.min(b, a.length); f++) {
+ m = a[f].list || [];
+ h = h.concat(m.slice(0, c));
+ }
+ return h;
+ },
+ XAb: function (a, b) {
+ for (var c = [], p, m = 0; m < a.length && (p = a[m].list || [], p = p.slice(0, Math.min(p.length, b)), b -= p.length, c = c.concat(p), 0 !== b); m++) { ;
+ }
+ return c;
+ },
+ WAb: function (a, b, c) {
+ var h;
+ b < a.length && 0 <= b && (a = a[b].list || [], c < a.length && (h = a[c]));
+ return h;
+ },
+ OJa: function (a) {
+ for (var b = {}, c = a.length, p, m = 0; m < c; m++) {
+ p = a[m].list || [];
+ for (var f = 0; f < p.length; f++) {
+ if (p[f].property === k.IE.iL || p[f].property === k.IE.Asa) {
+ b.Oi = m;
+ b.Dk = f;
+ break;
+ }
+ }
+ }
+ void 0 === b.Oi && void 0 === b.Dk && (b.Oi = 0, b.Dk = 0);
+ return b;
+ }
+ };
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r,
+ h,
+ p,
+ m,
+ f,
+ u,
+ w,
+ A,
+ g,
+ C,
+ M;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.UXa = void 0;
+ c = a(67);
+ k = a(10);
+ l = a(12);
+ r = a(46);
+ h = a(39);
+ p = a(6);
+ m = a(2);
+ f = a(22);
+ u = a(68);
+ w = a(9);
+ A = a(118);
+ g = a(26);
+ C = a(31);
+ M = a(32);
+ b.UXa = (function () {
+ var d,
+ K,
+ n,
+ q;
+ function a(a) {
+ var c,
+ h,
+ m;
+ c = "info";
+ h = "";
+ m = p.ba.get(u.sx).DLa();
+ a.U || (c = "error", h += "&errorcode=" + (a.errorCode || ""), h += "&errorsubcode=" + (a.ja || ""));
+ h = "type=startup&sev=" + c + h + "&" + r.GI(f.yb({}, m, {
+ prefix: "m_"
+ }));
+ b("startup", h, d);
+ }
+ function b(a, b, m) {
+ m && K && l.config.WXa[a] && (a = n + "&jsoffms=" + h.zh() + "&do=" + w.Zi.onLine + "&" + b + "&" + r.GI(f.yb({}, q.Yc, {
+ prefix: "im_"
+ })), c.cf.download({
+ url: m,
+ mma: a,
+ withCredentials: !0,
+ headers: {
+ "Content-Type": "application/x-www-form-urlencoded"
+ },
+ $B: "track"
+ }, k.ff));
+ }
+ K = !1;
+ n = "";
+ p.Fh("TrackingLog");
+ q = p.ba.get(g.Cf);
+ q.register(m.J.Pua, function (b) {
+ var c,
+ m;
+ if (K = l.config.VXa && !!l.config.Fpa) {
+ d = p.ba.get(A.Yz).host + l.config.Fpa;
+ c = p.ba.get(M.aj);
+ m = p.ba.get(M.Xp);
+ n = "cat=cadplayback&dev=" + encodeURIComponent(c.Fea) + "&ep=" + encodeURIComponent(m.vta) + "&ver=" + encodeURIComponent("6.0025.038.031") + "&jssid=" + h.d7 + "&browserua=" + w.bm;
+ l.config.Jy && (n += "&groupname=" + encodeURIComponent(l.config.Jy));
+ l.config.iE && (n += "&uigroupname=" + encodeURIComponent(l.config.iE));
+ c = n;
+ m = p.ba.get(C.$E);
+ m = f.yb({}, m, {
+ prefix: "pi_"
+ });
+ m = "&" + r.GI(m);
+ n = c + m;
+ q.IP(a);
+ }
+ b(k.pd);
+ });
+ return b;
+ })();
+ }, function (d, b, a) {
+ var r;
+ function c(a, b, c) {
+ b = b || 0;
+ c = c || a.length;
+ for (var f, h = b, m, p, l, r = {}; h < b + c; ) {
+ f = a[h];
+ m = f & 7;
+ p = f >> 3;
+ l = k(a, h);
+ if (!l.count)
+ throw Error("Parsing error. bytes length is 0 for the tag " + f);
+ h += l.count + 1;
+ 2 == m && (h += l.value);
+ r[p] = {
+ mYb: p,
+ y1b: m,
+ value: l.value,
+ count: l.count,
+ start: l.start
+ };
+ }
+ return r;
+ }
+ function k(a, b) {
+ var c,
+ f,
+ h,
+ p,
+ l,
+ k,
+ d,
+ g;
+ c = b + 1;
+ f = a.length;
+ h = c;
+ p = 0;
+ l = {};
+ k = [];
+ g = 0;
+ if (c >= f)
+ throw Error("Invalid Range for Protobuf - start: " + c + " , len: " + f);
+ for (; h < f; ) {
+ p++;
+ c = a[h];
+ d = c & 127;
+ k.push(d);
+ if (!(c & 128))
+ break;
+ h++;
+ }
+ r.Ra(k.length);
+ for (a = k.length - 1; 0 <= a; a--) {
+ g <<= 7;
+ g |= k[a];
+ }
+ l.count = p;
+ l.value = g;
+ l.start = b + p + 1;
+ return l;
+ }
+ function l(a, b) {
+ if (a && (a = a[b]))
+ return a.value;
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Rrb = b.Qrb = b.Inb = b.Ovb = b.qOa = void 0;
+ r = a(17);
+ b.qOa = function (a) {
+ a = c(a);
+ if (1 == l(a, 1) && a[5] && a[5].value)
+ return !0;
+ };
+ b.Ovb = function (a) {
+ var b;
+ b = c(a);
+ if (2 == l(b, 1) && (a = c(a, b[2].start, b[2].value), l(a, 5)))
+ return !0;
+ };
+ b.Inb = c;
+ b.Qrb = k;
+ b.Rrb = l;
+ }, function (d) {
+ function b(a) {
+ return Object.keys(a).every(function (b) {
+ return "function" === typeof a[b];
+ });
+ }
+ d.P = function (a) {
+ var r,
+ h,
+ p;
+ function c(a, b, c) {
+ throw new TypeError(("undefined" !== typeof c.key ? "Types: expected " + c.key : "Types: expected argument " + c.index) + (" to be '" + a + "' but found '" + b + "'"));
+ }
+ function k(a, b, u) {
+ var f;
+ f = h[a];
+ "undefined" !== typeof f ? f(b) || c(a, b, u) : a !== typeof b && c(a, b, u);
+ }
+ function l(a, b) {
+ var c;
+ c = a.filter(function (a) {
+ return "object" !== typeof a && -1 === p.indexOf(a);
+ });
+ c = c.concat(a.filter(function (a) {
+ return "object" === typeof a;
+ }).reduce(function (a, b) {
+ return a.concat(Object.keys(b).map(function (a) {
+ return b[a];
+ }).filter(function (a) {
+ return -1 === p.indexOf(a);
+ }));
+ }, []));
+ if (0 < c.length)
+ throw Error(c.join(",") + " are invalid types");
+ return function () {
+ var c;
+ c = Array.prototype.slice.call(arguments);
+ if (c.length !== a.length)
+ throw new TypeError("Types: unexpected number of arguments");
+ a.forEach(function (a, b) {
+ var f;
+ f = c[b];
+ if ("string" === typeof a)
+ k(a, f, {
+ index: b
+ });
+ else if ("object" === typeof a)
+ Object.keys(a).forEach(function (b) {
+ k(a[b], f[b], {
+ key: b
+ });
+ });
+ else
+ throw Error("Types: unexpected type in type array");
+ });
+ return b.apply(this, c);
+ };
+ }
+ r = ("number boolean string object function symbol").split(" ");
+ h = {
+ array: function (a) {
+ return Array.isArray(a);
+ }
+ };
+ if ("undefined" !== typeof a) {
+ if ("object" !== typeof a || !b(a))
+ throw new TypeError("Types: extensions must be an object of type definitions");
+ Object.keys(a).forEach(function (b) {
+ if ("undefined" !== typeof h[b] || -1 < r.indexOf(b))
+ throw new TypeError("Types: attempting to override a built in type with " + b);
+ h[b] = a[b];
+ });
+ }
+ p = Object.keys(h).concat(r);
+ return l(["array", "function"], l);
+ };
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.aua = void 0;
+ b.aua = function (a) {
+ var l,
+ r,
+ h,
+ p;
+ function b() {
+ if (h)
+ for (var a; a = l.pop(); ) {
+ a(p);
+ }
+ }
+ function k(a) {
+ h = !0;
+ p = a;
+ b();
+ }
+ l = [];
+ return function (c) {
+ l.push(c);
+ r || (r = !0, a(k));
+ b();
+ };
+ };
+ }, function (d, b, a) {
+ var k;
+ function c(a, b, c, p) {
+ var h;
+ h = this;
+ this.oc = a;
+ this.jl = b;
+ this.mr = c;
+ this.Db = p;
+ this.q2 = new Map();
+ this.wJb();
+ this.Db.addListener(k.Cb.loaded, function () {
+ return h.tz();
+ });
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.dL = void 0;
+ k = a(13);
+ c.prototype.xMa = function (a, b) {
+ var c;
+ c = this;
+ return this.mr.transition(b).then(function () {
+ c.oc.ig = a;
+ });
+ };
+ c.prototype.close = function (a) {
+ return this.mr.close(a);
+ };
+ c.prototype.isReady = function () {
+ return this.mr.Vrb();
+ };
+ c.prototype.Zn = function () {
+ return this.mr.Zn();
+ };
+ c.prototype.Zh = function () {
+ return this.mr.Zh();
+ };
+ c.prototype.KQ = function (a) {
+ var b;
+ b = a.id;
+ this.q2.has(b) || this.q2.set(b, this.mr.kq(a));
+ return this.q2.get(b);
+ };
+ c.prototype.wJb = function () {
+ var a;
+ a = this;
+ this.mr.addListener(k.HA.sR, function () {
+ return a.Db.$b(k.HA.sR);
+ });
+ Object.keys(k.Cb).forEach(function (b) {
+ var c;
+ c = k.Cb[b];
+ a.mr.addListener(c, function (b) {
+ return a.Db.$b(c, b);
+ });
+ });
+ };
+ c.prototype.sQ = function () {
+ this.tz();
+ };
+ c.prototype.Fla = function (a) {
+ this.mr.nNb({
+ id: a,
+ G: this.oc.Gh(a).ma,
+ oj: this.oc.bMa(a)
+ });
+ };
+ c.prototype.tz = function () {
+ var a,
+ b,
+ c,
+ p,
+ m;
+ if (this.isReady()) {
+ c = this.oc.ig;
+ p = this.oc.tC(c);
+ if (p && !this.q2.has(p)) {
+ this.Fla(c);
+ p = this.oc.Gh(p);
+ m = null === (a = this.jl.KH(p.ma)) || void 0 === a ? void 0 : a.gb;
+ this.KQ({
+ id: this.oc.tC(c),
+ G: p.ma,
+ T: p.yf,
+ oj: null !== (b = null === m || void 0 === m ? void 0 : m.oj) && void 0 !== b ? b : p.jg,
+ gb: m
+ });
+ }
+ }
+ };
+ b.dL = c;
+ }, function (d, b, a) {
+ var k;
+ function c(a, b, c) {
+ var h;
+ h = this;
+ this.ek = a;
+ this.Of = b;
+ this.FQ = c;
+ this.addEventListener = function (a, b, c) {
+ return h.Of.addListener(a, h.WHa(a, b), c);
+ };
+ this.removeEventListener = function (a, b) {
+ return h.Of.removeListener(a, h.WHa(a, b));
+ };
+ this.getReady = function () {
+ return h.Of.isReady();
+ };
+ this.getXid = function () {
+ return h.mb().p_();
+ };
+ this.getMovieId = function () {
+ return h.mb().nrb();
+ };
+ this.getPlaygraphId = function () {
+ return h.mb().Krb();
+ };
+ this.getElement = function () {
+ return h.Of.Zn();
+ };
+ this.isPlaying = function () {
+ return h.mb().Sy();
+ };
+ this.isPaused = function () {
+ return h.mb().Hvb();
+ };
+ this.isMuted = function () {
+ return h.mb().Dvb();
+ };
+ this.isReady = function () {
+ return h.mb().isReady();
+ };
+ this.isBackground = function () {
+ return h.mb().ivb();
+ };
+ this.setBackground = function (a) {
+ return h.mb().HVa(a);
+ };
+ this.startInactivityMonitor = function () {
+ return h.mb().MR();
+ };
+ this.setTransitionTime = function (a) {
+ return h.mb().ZVa(a);
+ };
+ this.getDiagnostics = function () {
+ return h.mb().kqb();
+ };
+ this.getTextTrackList = function (a) {
+ return h.mb().nMa(a);
+ };
+ this.getTextTrack = function () {
+ return h.mb().mMa();
+ };
+ this.setTextTrack = function (a) {
+ return h.mb().YVa(a);
+ };
+ this.getVolume = function () {
+ return h.mb().Ysb();
+ };
+ this.isEnded = function () {
+ return h.mb().rvb();
+ };
+ this.getBusy = function () {
+ return h.mb().Eh();
+ };
+ this.getError = function () {
+ return h.mb().getError();
+ };
+ this.getCurrentTime = function () {
+ return h.mb().j.bb.value;
+ };
+ this.getBufferedTime = function () {
+ return h.mb().Lpb();
+ };
+ this.getSegmentTime = function () {
+ return h.mb().QZ();
+ };
+ this.getDuration = function () {
+ return h.mb().RKa();
+ };
+ this.getVideoSize = function () {
+ return h.mb().Vsb();
+ };
+ this.getAudioTrackList = function () {
+ return h.mb().upb();
+ };
+ this.getAudioTrack = function () {
+ return h.mb().tpb();
+ };
+ this.getTimedTextTrackList = function (a) {
+ return h.mb().nMa(a);
+ };
+ this.getTimedTextTrack = function () {
+ return h.mb().mMa();
+ };
+ this.getAdditionalLogInfo = function () {
+ return h.mb().npb();
+ };
+ this.getTrickPlayFrame = function (a) {
+ return h.mb().Isb(a);
+ };
+ this.getSessionSummary = function () {
+ return h.mb().aMa();
+ };
+ this.getTimedTextSettings = function () {
+ return h.mb().k_();
+ };
+ this.setMuted = function (a) {
+ return h.mb().UIb(a);
+ };
+ this.setVolume = function (a) {
+ return h.mb().qJb(a);
+ };
+ this.getPlaybackRate = function () {
+ return h.mb().Am();
+ };
+ this.setPlaybackRate = function (a) {
+ return h.mb().ZIb(a);
+ };
+ this.setAudioTrack = function (a) {
+ return h.mb().CIb(a);
+ };
+ this.setTimedTextTrack = function (a) {
+ return h.mb().YVa(a);
+ };
+ this.setTimedTextSettings = function (a) {
+ return h.mb().DR(a);
+ };
+ this.prepare = function () {
+ return h.mb().ww();
+ };
+ this.load = function () {
+ return h.mb().load();
+ };
+ this.close = function (a) {
+ return h.ZEa(h.Of.close(), a);
+ };
+ this.play = function () {
+ return h.mb().play();
+ };
+ this.pause = function () {
+ return h.mb().pause();
+ };
+ this.seek = function (a) {
+ return h.mb().seek(a);
+ };
+ this.engage = function (a, b) {
+ return h.ZEa(h.mb().uO(a), b);
+ };
+ this.induceError = function (a) {
+ return h.mb().Gub(a);
+ };
+ this.loadCustomTimedTextTrack = function (a, b, c, p) {
+ return h.mb().lxb(a, b, c, p);
+ };
+ this.tryRecoverFromStall = function () {
+ return h.mb().nS();
+ };
+ this.addEpisode = function (a) {
+ var b,
+ c;
+ h.log.info("Next episode added", a);
+ b = h.KPa(a.playbackParams);
+ c = ("startPts" in a) ? a.startPts : ("nextStartPts" in a) ? a.nextStartPts : b.T;
+ if (void 0 === c || 0 > c)
+ c = 0;
+ return h.Of.kq({
+ id: b.$j ? void 0 : h.FQ.HZ(a.movieId, c),
+ G: a.movieId,
+ T: c,
+ oj: ("endPts" in a) ? a.endPts : ("currentEndPts" in a) ? a.currentEndPts : b.oj,
+ gb: b,
+ xa: a.manifest,
+ ek: h.ek
+ });
+ };
+ this.playNextEpisode = function (a) {
+ a = void 0 === a ? {}
+ : a;
+ a = h.KPa(a);
+ h.log.info("Playing the next episode", a);
+ return h.Of.Lha(h.Of.UKa(), h.Of.RZ().Rj, a);
+ };
+ this.playSegment = function (a) {
+ return h.mb().fDb(a);
+ };
+ this.queueSegment = function (a) {
+ return h.mb().TEb(a);
+ };
+ this.updateNextSegmentWeights = function (a, b) {
+ return h.mb().Np(a, b);
+ };
+ this.getCropAspectRatio = function () {
+ return h.mb().Fga();
+ };
+ this.getCropAspectRatioXandY = function () {
+ return h.mb().aqb();
+ };
+ this.generateScreenshots = function (a) {
+ return h.mb().ipb(a);
+ };
+ this.getCurrentSegmentId = function () {
+ return h.Of.UKa();
+ };
+ this.getPlaygraphMap = function () {
+ return h.Of.Lrb();
+ };
+ this.setNextSegment = function (a) {
+ for (var b = [], c = 0; c < arguments.length; ++c) {
+ b[c - 0] = arguments[c];
+ }
+ b = b.map(function (a) {
+ return {
+ Ha: a.segmentId,
+ jQ: a.nextSegmentId
+ };
+ });
+ h.Of.PD.apply(h.Of, [].concat(ca(b)));
+ };
+ this.clearNextSegment = function (a) {
+ for (var b = [], c = 0; c < arguments.length; ++c) {
+ b[c - 0] = arguments[c];
+ }
+ return h.Of.ygb.apply(h.Of, [].concat(ca(b)));
+ };
+ this.updatePlaygraphMap = function (a) {
+ return h.Of.jNb(a);
+ };
+ this.goToNextSegment = function (a, b) {
+ return h.Of.Lha(a, b);
+ };
+ this.getPlaying = function () {
+ return h.isPlaying();
+ };
+ this.getPaused = function () {
+ return h.isPaused();
+ };
+ this.getMuted = function () {
+ return h.isMuted();
+ };
+ this.getEnded = function () {
+ return h.isEnded();
+ };
+ this.getTimedTextVisibility = function () {
+ return h.isTimedTextVisible();
+ };
+ this.isTimedTextVisible = function () {
+ return !!h.mb().k_().visibility;
+ };
+ this.setTimedTextVisibility = function (a) {
+ return h.setTimedTextVisible(a);
+ };
+ this.setTimedTextSize = function (a) {
+ return h.mb().DR({
+ size: a
+ });
+ };
+ this.setTimedTextBounds = function (a) {
+ return h.mb().DR({
+ bounds: a
+ });
+ };
+ this.setTimedTextMargins = function (a) {
+ return h.mb().DR({
+ margins: a
+ });
+ };
+ this.setTimedTextVisible = function (a) {
+ return h.mb().DR({
+ visibility: a
+ });
+ };
+ this.getCongestionInfo = function (a) {
+ a && a({
+ success: !1,
+ name: null,
+ isCongested: null
+ });
+ };
+ this.zfa = new Map();
+ this.log = k.Fh("VideoPlayer");
+ Object.defineProperty(this, "diagnostics", {
+ get: this.getDiagnostics
+ });
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.VAa = void 0;
+ k = a(6);
+ a(84);
+ c.prototype.mb = function () {
+ return this.Of.Zh();
+ };
+ c.prototype.WHa = function (a, b) {
+ var c;
+ this.zfa.has(a) || this.zfa.set(a, new Map());
+ c = this.zfa.get(a);
+ c.has(b) || c.set(b, this.Lkb(a, b));
+ return c.get(b);
+ };
+ c.prototype.Lkb = function (a, b) {
+ var c;
+ c = this;
+ return function (h) {
+ return b(Object.assign({}, h, {
+ type: a,
+ target: c
+ }));
+ };
+ };
+ c.prototype.ZEa = function (a, b) {
+ return b ? a.then(b, b) : a;
+ };
+ c.prototype.KPa = function (a) {
+ a = void 0 === a ? {}
+ : a;
+ return {
+ li: a.trackingId,
+ eN: a.authParams,
+ oo: a.sessionParams,
+ we: a.uiLabel,
+ Mea: a.disableTrackStickiness,
+ m4: a.uiPlayStartTime,
+ vZ: a.forceAudioTrackId,
+ wZ: a.forceTimedTextTrackId,
+ $j: a.isBranching,
+ mqa: a.vuiCommand,
+ playbackState: a.playbackState ? {
+ currentTime: a.playbackState.currentTime,
+ volume: a.playbackState.volume,
+ muted: a.playbackState.muted,
+ playbackRate: a.playbackState.playbackRate
+ }
+ : void 0,
+ jH: a.enableTrickPlay,
+ $ha: a.heartbeatCooldown,
+ p0: a.isPlaygraph,
+ I0: a.loadImmediately || !1,
+ ESa: a.pin,
+ IQ: a.preciseSeeking,
+ T: a.startPts,
+ oa: a.endPts,
+ oj: a.logicalEnd,
+ N2: a.renderTimedText,
+ yJa: a.extraManifestParams,
+ Uk: a.packageId,
+ uG: a.assetId,
+ Rdb: a.audioLanguages,
+ zLb: a.textLanguages
+ };
+ };
+ b.VAa = c;
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.i9 = void 0;
+ b.i9 = "PlaygraphVideoPlayerFactorySymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.h9 = void 0;
+ b.h9 = "PlaygraphPlaybackStrategyFactorySymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Do = void 0;
+ d = b.Do || (b.Do = {});
+ d[d.gL = 0] = "No";
+ d[d.x$ = 1] = "Yes";
+ d[d.qva = 2] = "Later";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.g9 = void 0;
+ b.g9 = "PlaygraphManagerFactorySymbol";
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r,
+ h,
+ p,
+ m;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.sK = void 0;
+ c = a(0);
+ k = a(2);
+ l = a(1);
+ r = a(15);
+ h = a(23);
+ p = a(6);
+ m = a(13);
+ d = (function () {
+ var b;
+ function a(a, b) {
+ this.ub = a;
+ this.j = b;
+ this.EP = [];
+ }
+ a.prototype.pZ = function (a) {
+ this.EP.forEach(function (b) {
+ return b(a);
+ });
+ };
+ a.prototype.sd = function (a, b, c) {
+ this.j.sd(a, b, c);
+ };
+ a.prototype.v_ = function (a) {
+ this.j.fireEvent(m.V.Zka, {
+ tGa: a
+ });
+ };
+ a.prototype.lcb = function (a) {
+ -1 === this.EP.indexOf(a) && this.EP.push(a);
+ };
+ a.prototype.fGb = function (a) {
+ a = this.EP.indexOf(a);
+ 0 <= a && this.EP.splice(a, 1);
+ };
+ a.prototype.uMa = function (a) {
+ var b,
+ c;
+ b = {};
+ r.dc(a.code) ? b.ja = k.h6(a.code) : b.ja = k.I.Df;
+ try {
+ c = a.message.match(/\((\d*)\)/)[1];
+ b.Fe = p.Dca(c, 4);
+ } catch (C) {}
+ b.ab = h.Fd(a);
+ return b;
+ };
+ b = a;
+ return b = c.__decorate([l.N()], b);
+ })();
+ b.sK = d;
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.G8 = void 0;
+ b.G8 = "PboManifestRequestTransformerSymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.IU = void 0;
+ b.IU = "PlaybackMilestoneStoreSymbol";
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r,
+ h,
+ p;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.yPa = void 0;
+ c = a(12);
+ k = a(10);
+ l = a(39);
+ d = a(2);
+ r = a(9);
+ h = a(15);
+ p = a(6);
+ a = a(26);
+ p.ba.get(a.Cf).register(d.J.Jua, function (a) {
+ var m,
+ p,
+ d,
+ g,
+ C;
+ function f() {
+ var a;
+ a = r.bu(l.zh() / d);
+ if (a != C) {
+ for (var b = r.hn(a - C, 30); b--; ) {
+ g.push(0);
+ }
+ (b = r.am(g.length - 31, 0)) && g.splice(0, b);
+ C = a;
+ }
+ g[g.length - 1]++;
+ }
+ m = c.config.Sxb;
+ p = -6 / (m - 2 - 2);
+ d = k.Bj;
+ g = [];
+ C = r.bu(l.zh() / d);
+ h.Xia(m) && (setInterval(f, 1E3 / m), b.yPa = {
+ Pqb: function () {
+ var c;
+ for (var a = [], b = g.length - 1; b--; ) {
+ c = g[b];
+ a.unshift(0 >= c ? 9 : 1 >= c ? 8 : c >= m - 1 ? 0 : r.Th((c - 2) * p + 7));
+ }
+ return a;
+ }
+ });
+ a(k.pd);
+ });
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r,
+ h;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Pta = void 0;
+ c = a(12);
+ k = a(55);
+ l = a(22);
+ r = a(2);
+ h = a(13);
+ b.Pta = function (a, b, f) {
+ function m(b) {
+ var h,
+ m;
+ h = b.error || b;
+ m = l.Fd(h);
+ f.error("uncaught exception", h, m);
+ (h = (h = h && h.stack) && c.config.rYa && c.config.PMb ? 0 <= h.indexOf(c.config.rYa) : void 0) && (b && b.stopImmediatePropagation && b.stopImmediatePropagation(), a.sd(r.J.g7a));
+ }
+ function p() {
+ k.Te.removeListener(k.s_, m);
+ a.removeEventListener(h.V.If, p);
+ a.removeEventListener(h.V.ko, p);
+ }
+ try {
+ k.Te.addListener(k.s_, m);
+ a.addEventListener(h.V.If, p);
+ c.config.rub && a.addEventListener(h.V.ko, p);
+ } catch (A) {
+ f.error("exception in exception handler ", A);
+ }
+ };
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.F9 = void 0;
+ b.F9 = "SeekManagerFactorySymbol";
+ }, function (d, b, a) {
+ var k,
+ l,
+ r,
+ h,
+ p,
+ m,
+ f,
+ u,
+ w,
+ g,
+ K,
+ C,
+ M,
+ H,
+ G,
+ T,
+ n,
+ q,
+ Z,
+ B,
+ V,
+ t,
+ ia,
+ Y;
+ function c(a) {
+ var b;
+ b = this;
+ this.j = a;
+ this.ub = this.j.ub;
+ this.log = u.Gg(this.j, "MediaPresenterASE");
+ this.y1 = this.pY = this.bb = 0;
+ this.la = this.ub.la;
+ this.ISa = this.CSa = this.bma = !1;
+ this.oLb = u.ba.get(B.PA)(Z.Gb(n.VU));
+ this.rG = void 0;
+ this.Vm = u.ba.get(t.F9)(this.j);
+ this.St = {};
+ this.lQa = {};
+ this.wMa = {};
+ this.uf = new Y.owa(this.j);
+ this.mLb = function () {
+ var a,
+ c,
+ h;
+ b.j.ZR = f.zh();
+ if (!b.Ji() && b.Jl) {
+ a = b.ub.XLa();
+ a || (b.GCb(), b.uf.Npa(b.bb));
+ b.j.paused.value || !b.uf.vea(b.bb) || !b.Oca() || a || b.Vm.Wia ? b.Fna() : b.bma || b.Gna();
+ b.FCb();
+ if (!b.ub.XLa()) {
+ a = b.ub.NO(!0);
+ c = b.j.Sb.value;
+ h = b.Vgb();
+ h === G.lb.Fr ? (b.bb = b.j.$q.ca(Z.ia), b.Fna()) : h !== G.lb.dg && b.gNb(a);
+ b.HYa();
+ b.uf.fda(b.bb);
+ b.j.Sb.set(h);
+ h !== G.lb.dg || c !== G.lb.Sc && c !== G.lb.$i || b.xBb();
+ }
+ }
+ };
+ this.cl = ia.yTa(this.mLb);
+ this.j.Bk = !1;
+ this.ub.addEventListener(q.ri.rWa, function () {
+ b.log.trace("sourceBuffers have been created. Initialize MediaPresenter.");
+ try {
+ b.Eb();
+ } catch (O) {
+ b.log.error("Exception while initializing", O);
+ b.sd(w.J.y5a);
+ }
+ });
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.xwa = void 0;
+ k = a(57);
+ l = a(10);
+ r = a(12);
+ h = a(56);
+ p = a(55);
+ m = a(46);
+ f = a(39);
+ u = a(6);
+ a(84);
+ w = a(2);
+ g = a(478);
+ K = a(17);
+ C = a(93);
+ M = a(23);
+ H = a(58);
+ G = a(13);
+ T = a(15);
+ n = a(171);
+ q = a(191);
+ Z = a(3);
+ B = a(98);
+ V = a(178);
+ t = a(297);
+ ia = a(629);
+ Y = a(628);
+ c.prototype.fLa = function () {
+ return this.ub.NO(!1);
+ };
+ c.prototype.rC = function () {
+ return this.ub.rC();
+ };
+ c.prototype.qC = function () {
+ return this.ub.qC();
+ };
+ c.prototype.MO = function () {
+ return this.ub.MO();
+ };
+ c.prototype.XZ = function () {
+ return this.ub.XZ();
+ };
+ c.prototype.Eb = function () {
+ var a;
+ a = this;
+ this.log.trace("Video element initializing");
+ this.ub.sourceBuffers.forEach(function (b) {
+ return a.uf.fJb(b);
+ });
+ this.Mub(this.j.Rv);
+ };
+ c.prototype.Mub = function (a) {
+ var f;
+ function b() {
+ function a(a) {
+ var b,
+ c;
+ a = void 0 === a ? !0 : a;
+ c = f.j.Hb && f.j.Hb.Tha();
+ f.j.Sb.value == G.lb.dg && f.j.state.value == G.ob.od && f.j.Jn.value == G.ye.od && f.j.el.value == G.ye.od && !f.j.Bk && c ? (a && f.rY.Qi(), f.rY.fC(), b = "ensureTimer") : (f.rY.Qi(), b = "stopTimer");
+ f.log.trace("Timer update: " + b, {
+ presentingState: G.lb[f.j.Sb.value],
+ playbackState: G.ob[f.j.state.value],
+ avBufferingState: G.ye[f.j.Jn.value],
+ textBufferingState: G.ye[f.j.el.value],
+ autoplayWasBlocked: f.j.Bk,
+ hasLicense: c,
+ restartTimer: a
+ });
+ }
+ r.config.VHa && (K.Ra(!f.rY), f.rY = u.ba.get(V.AL)(r.config.VHa, function () {
+ var a;
+ a = u.ba.get(g.H5).vlb(f.j);
+ f.sd(a.code, a);
+ }), f.j.Sb.addListener(function () {
+ return a();
+ }), f.j.Jn.addListener(function () {
+ return a();
+ }), f.j.el.addListener(function () {
+ return a();
+ }), f.j.state.addListener(function () {
+ return a();
+ }), f.j.addEventListener(G.V.UOa, function () {
+ return a();
+ }), f.j.addEventListener(G.V.Bk, function () {
+ return a();
+ }), f.j.addEventListener(G.V.wca, function () {
+ return a();
+ }), f.j.addEventListener(G.V.CD, function () {
+ return a(!0);
+ }), a());
+ }
+ function c() {
+ f.closed || (c = K.pra, f.ub.addEventListener(q.ri.pR, f.St[q.ri.pR] = function () {
+ return f.CBb();
+ }), f.ub.addEventListener(q.ri.ap, f.St[q.ri.ap] = function () {
+ return f.N1();
+ }), f.la.addEventListener("ended", f.St.ended = function () {
+ return f.lBb();
+ }), f.la.addEventListener("play", f.St.play = function () {
+ return f.tBb();
+ }), f.la.addEventListener("pause", f.St.pause = function () {
+ return f.rBb();
+ }), f.la.addEventListener("playing", f.St.playing = function () {
+ return f.vBb();
+ }), f.Jl = !0, f.j.rOa && (f.uf.Npa(f.bb), f.log.trace("Video element initialization complete"), f.j.kd("vi"), r.config.jIa ? setTimeout(function () {
+ f.vla = !0;
+ f.cl();
+ }, r.config.jIa) : f.vla = !0, b(), H.zc(function () {
+ return f.cl();
+ })));
+ }
+ f = this;
+ a ? this.log.trace("Waiting for needkey") : (this.log.warn("Movie is not DRM protected", {
+ MovieId: this.j.G
+ }), this.j.Hb.MY("" + this.j.G));
+ this.log.trace("Waiting for loadedmetadata");
+ this.ub.addEventListener(q.ri.YOa, function (a) {
+ a = a.ma;
+ f.j.kd("ld", a);
+ f.j.Hb.MY("" + a);
+ f.j.fireEvent(G.V.UOa);
+ });
+ m.xEa(this.la, "loadedmetadata", function () {
+ f.log.trace("Video element event: loadedmetadata");
+ f.j.kd("md");
+ });
+ p.Te.addListener(p.Hl, this.wMa[p.Hl] = function () {
+ return f.close();
+ }, l.DA);
+ this.j.addEventListener(G.V.If, function () {
+ return f.close();
+ }, l.DA);
+ this.j.addEventListener(G.V.aVa, function () {
+ return f.Gna();
+ });
+ this.j.addEventListener(G.V.rp, function () {
+ return f.pBb();
+ });
+ this.j.paused.addListener(function () {
+ return f.cl();
+ });
+ this.j.muted.addListener(function () {
+ return f.bqa();
+ });
+ this.j.volume.addListener(function () {
+ return f.bqa();
+ });
+ this.j.playbackRate.addListener(function () {
+ return f.r4();
+ });
+ this.j.Jn.addListener(function () {
+ return f.cl();
+ });
+ this.j.el.addListener(function () {
+ return f.cl();
+ });
+ this.bqa();
+ this.r4();
+ this.uf.x3(function () {
+ return f.a1();
+ });
+ this.a1();
+ H.zc(function () {
+ c();
+ });
+ };
+ c.prototype.oX = function (a) {
+ var b;
+ b = this;
+ this.uf.ddb(a);
+ this.Qfb(a).then(function () {
+ b.a1();
+ b.j.fireEvent(G.V.$0);
+ })["catch"](function (a) {
+ b.sd(w.J.C5a, {
+ ab: M.Fd(a)
+ });
+ });
+ };
+ c.prototype.fca = function (a, b, c) {
+ c = void 0 === c ? {}
+ : c;
+ this.a1();
+ this.uf.bdb(a, b, c);
+ this.CSa || a.type !== k.Hc.Yi.VIDEO || (this.Vm.Wia || this.seek(this.j.T, G.le.Yw), this.CSa = !0);
+ };
+ c.prototype.a1 = function () {
+ this.Jl ? this.cl() : r.config.cdb && this.uf.Npa(this.bb);
+ };
+ c.prototype.GAb = function () {
+ var a;
+ a = this.j.uC() || 0;
+ this.j.Ta.$j ? r.config.Reb && (a = Math.max(a - (this.ub.Vna + 1) - r.config.Una, this.j.Hb.YO().cc)) : (a -= r.config.NHb, a = Math.max(a, this.Vm.wja));
+ this.seek(a, G.le.fF);
+ };
+ c.prototype.I1 = function (a) {
+ var b;
+ b = this;
+ this.uf.hJb(a);
+ H.zc(function () {
+ return b.cl();
+ });
+ };
+ c.prototype.Uqb = function () {
+ return {
+ pY: this.pY,
+ y1: this.y1
+ };
+ };
+ c.prototype.Qfb = function (a) {
+ var b;
+ b = this.ub && this.ub.JLa();
+ return this.j.$q && void 0 === this.Tla && b && Infinity !== a.oVa && (a = a.oVa + a.Qm, a > this.j.$q.HQ(Z.ia) && (this.j.$q = Z.Gb(a)), a > b.HQ(Z.ia)) ? (this.Tla = b.scale(2), this.PEb()) : Promise.resolve();
+ };
+ c.prototype.PEb = function () {
+ var a;
+ a = this;
+ return new Promise(function (b, c) {
+ function f() {
+ return h().then(function (a) {
+ if (!1 === a)
+ return f();
+ });
+ }
+ function h() {
+ return new Promise(function (b) {
+ setTimeout(function () {
+ if (!a.uf.Eh())
+ try {
+ a.ub.TIb(a.Tla);
+ a.uf.gpa = !1;
+ a.Tla = void 0;
+ b(!0);
+ } catch (Ha) {
+ b(!1);
+ }
+ b(!1);
+ }, 0);
+ });
+ }
+ a.uf.gpa = !0;
+ f().then(function () {
+ b();
+ })["catch"](function (b) {
+ a.log.error("Unable to change the duration", b);
+ c(b);
+ });
+ });
+ };
+ c.prototype.FCb = function () {
+ var a;
+ a = this;
+ this.Vm.c2 && this.Oca() && this.uf.vea(this.bb) && (this.ub.seek(this.bb), this.Vm.c2 = !1, H.zc(function () {
+ return a.cl();
+ }));
+ };
+ c.prototype.gNb = function (a) {
+ var b;
+ if (a < this.bb) {
+ b = this.bb - a;
+ r.config.HCb && a && b > n.VU && (a = {
+ ElementTime: C.th(a),
+ MediaTime: C.th(this.bb)
+ }, b > n.$ya ? this.sd(w.J.O5a, {
+ ab: Object.assign({
+ Trace: this.ub.Dv()
+ }, a)
+ }) : this.log.warn("VIDEO.currentTime became smaller", a));
+ } else
+ this.bb = C.jn(a, 0, this.j.$q.ca(Z.ia));
+ };
+ c.prototype.Oca = function () {
+ return this.j.Jn.value === G.ye.od && this.j.el.value === G.ye.od;
+ };
+ c.prototype.Vgb = function () {
+ var a,
+ b,
+ c;
+ a = this;
+ b = this.j.Sb.value;
+ c = b;
+ this.Vm.Wia ? c = G.lb.dg : this.la && this.la.ended ? b === G.lb.Sc && (c = G.lb.Fr) : this.Oca() && this.uf.vea(this.bb) ? this.ub.wlb() ? c = this.la && this.la.paused ? G.lb.$i : G.lb.Sc : this.oLb.Pc(function () {
+ return a.nLb();
+ }) : c = this.j.$q ? this.j.HMa(this.bb, this.uf.oY()) ? G.lb.dg : G.lb.Fr : G.lb.dg;
+ return c;
+ };
+ c.prototype.xBb = function () {
+ var a;
+ if (this.j.Sb.value === G.lb.dg) {
+ a = this.uf.XLb() > this.uf.oY();
+ this.j.el.value !== G.ye.od ? this.j.Lj.value ? (this.j.fireEvent(G.V.Xu, {
+ cause: h.fya
+ }), this.log.warn("rebuffer due to timed text", this.j.Lj.value.fh)) : this.j.fireEvent(G.V.SJ) : a ? (this.pY++, this.j.fireEvent(G.V.Xu, {
+ cause: h.S8
+ })) : (this.y1++, this.j.fireEvent(G.V.Xu, {
+ cause: h.T8
+ }));
+ }
+ };
+ c.prototype.nLb = function () {
+ this.Ji() || (r.config.JAb && this.uf.IAb(), this.cl());
+ };
+ c.prototype.CBb = function () {
+ this.cl();
+ };
+ c.prototype.N1 = function () {
+ this.cl();
+ this.j.fireEvent(G.V.ap);
+ };
+ c.prototype.lBb = function () {
+ this.log.trace("Video element event: ended");
+ this.cl();
+ };
+ c.prototype.tBb = function () {
+ this.log.trace("Video element event: play");
+ this.cl();
+ };
+ c.prototype.rBb = function () {
+ this.log.trace("Video element event: pause");
+ this.cl();
+ };
+ c.prototype.vBb = function () {
+ this.log.trace("Video element event: playing");
+ this.cl();
+ };
+ c.prototype.bqa = function () {
+ this.Ji() || (this.la && this.la.volume !== this.j.volume.value && (this.la.volume = this.j.volume.value), this.la && this.la.muted !== this.j.muted.value && (this.la.muted = this.j.muted.value));
+ };
+ c.prototype.r4 = function () {
+ !this.Ji() && this.la && (this.la.playbackRate = this.j.playbackRate.value);
+ };
+ c.prototype.Gna = function () {
+ var a;
+ a = this;
+ this.Ji() || !T.dc(this.la) || this.la.ended || !this.vla || !this.dK && void 0 !== this.dK || (this.log.trace("Calling play on element"), Promise.resolve(this.la.play()).then(function () {
+ a.closed || (a.dK = !1, a.bma = !1, a.la.style.display = null, a.j.Bk = !1, a.j.fireEvent(G.V.wca, {
+ j: a.j
+ }));
+ })["catch"](function (b) {
+ "NotAllowedError" === b.name ? (a.log.warn("Playback is blocked by the browser settings", b), a.j.Bk = !0, a.closed || (a.bma = !0, a.la.style.display = "none", a.j.fireEvent(G.V.Bk, {
+ player: {
+ play: function () {
+ return a.Gna();
+ }
+ }
+ }))) : a.closed || (a.dK = !1, a.ISa || (a.ISa = !0, a.log.error("Play promise rejected", b)));
+ }));
+ };
+ c.prototype.pBb = function () {
+ this.Vm.wja = this.j.uC() || 0;
+ };
+ c.prototype.Fna = function () {
+ this.Ji() || !T.dc(this.la) || this.la.ended || !this.vla || this.dK && void 0 !== this.dK || (this.log.trace("Calling pause on element"), this.la.pause(), this.dK = !0);
+ };
+ c.prototype.HYa = function (a) {
+ this.j.bb.set(this.bb);
+ a && this.j.Fob();
+ };
+ c.prototype.seek = function (a, b, c, f) {
+ b = void 0 === b ? G.le.lu : b;
+ c = void 0 === c ? this.j.Ha : c;
+ f = void 0 === f ? !1 : f;
+ !this.Ji() && this.j.Hb && (this.j.fireEvent(G.V.CD, {
+ cause: b
+ }), this.Vm.AQ = {
+ time: a,
+ cause: b,
+ Ha: c,
+ Lob: f
+ }, this.j.Sb.set(G.lb.dg), this.cl());
+ };
+ c.prototype.GCb = function () {
+ var a,
+ b,
+ c,
+ f,
+ h,
+ m,
+ u,
+ p;
+ if (this.Vm.AQ && !this.uf.Eh()) {
+ a = this.Vm.AQ;
+ b = a.time;
+ c = a.cause;
+ f = a.Ha;
+ h = a.Lob;
+ a = this.j.Cv(f).G;
+ m = this.uf.Kpb();
+ m = this.Vm.rrb(b, c, f, h, m);
+ f = m.B1;
+ h = m.Gi;
+ u = m.qDb;
+ m = m.Fi;
+ this.uf.fda(this.bb);
+ p = this.bb;
+ b = C.th(b);
+ this.j.Po("SEEKING: Requested: (" + a + ":" + c + ":" + b + ") - Actual: (contentPts: " + h + "," + ("playerPts: " + u + ", newMediaTime: " + f + ")"));
+ this.log.info("Seeking", {
+ Requested: b,
+ Actual: C.th(f),
+ Cause: c,
+ Skip: m
+ });
+ c === G.le.Yw || m || (this.uf.HUa(), this.uf.aJb());
+ this.bb = f;
+ this.Vm.wja = h;
+ b = this.j.tg.value;
+ u = this.j.wf.value;
+ this.j.tg.set(null);
+ this.j.wf.set(null);
+ this.HYa(!0);
+ this.Vm.AQ = void 0;
+ this.Vm.c2 = !0;
+ this.j.fireEvent(G.V.Rm, {
+ wla: p,
+ B1: f,
+ Gi: h,
+ cause: c,
+ skip: m,
+ tg: b,
+ wf: u,
+ G: a
+ });
+ m && this.uf.skip(f);
+ }
+ };
+ c.prototype.sd = function (a, b, c) {
+ this.closed || this.j.sd(a, b, c);
+ };
+ c.prototype.close = function () {
+ if (!this.closed) {
+ this.log.info("Closing.");
+ this.uf.close();
+ this.ub.removeEventListener(q.ri.pR, this.lQa[q.ri.pR]);
+ this.ub.removeEventListener(q.ri.ap, this.lQa[q.ri.ap]);
+ this.la.removeEventListener("ended", this.St.ended);
+ this.la.removeEventListener("play", this.St.play);
+ this.la.removeEventListener("pause", this.St.pause);
+ this.la.removeEventListener("playing", this.St.playing);
+ p.Te.removeListener(p.Hl, this.wMa[p.Hl]);
+ this.closed = !0;
+ try {
+ r.config.Vzb && (this.la.volume = 0, this.la.muted = !0);
+ this.Fna();
+ this.ub.close();
+ } catch (pa) {}
+ this.la = void 0;
+ this.uf.HUa();
+ }
+ };
+ c.prototype.Ji = function () {
+ return this.closed ? !0 : T.dc(this.la) ? !1 : (this.log.error("MediaPresenter not closed and videoElement is not defined"), !0);
+ };
+ b.xwa = c;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r,
+ h,
+ p,
+ m,
+ f;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.hya = void 0;
+ c = a(10);
+ k = a(12);
+ l = a(39);
+ r = a(93);
+ h = a(9);
+ p = a(58);
+ m = a(15);
+ f = a(13);
+ b.hya = function (a) {
+ var g,
+ M,
+ H,
+ G,
+ T,
+ n;
+ function b() {
+ return a.state.value === f.ob.LOADING || a.state.value === f.ob.od && a.Sb.value === f.lb.dg;
+ }
+ function u() {
+ b() ? n || (n = setInterval(d, 100)) : n && (clearInterval(n), n = void 0, p.zc(d));
+ }
+ function d() {
+ var c,
+ u,
+ p,
+ d,
+ w,
+ A,
+ C,
+ K;
+ c = l.zh();
+ u = g.value;
+ p = u ? u.ei : 0;
+ w = a.state.value == f.ob.LOADING || b() && c - M > k.config.bfb;
+ w && a.state.value == f.ob.od ? (a.qm.value === f.ye.rza ? (C = p, A = !0) : (d = c + (a.Ll && a.Ll.$tb() || 0), H = H || c, G = G || H + k.config.uzb + 1, m.na(d) && (d = h.am(d, G), C = a.Ll ? a.Ll.CYb() : .99, C = h.Th(1E3 * r.jn((c - H) / (d - H), 0, C)) / 1E3)), C < p && (p - C < k.config.AEb / 100 ? (C = p, T = void 0) : T ? c - T > k.config.zEb ? (K = !0, T = void 0) : C = p : (T = c, C = p))) : T = G = H = void 0;
+ c = w ? {
+ M3: A,
+ ei: C,
+ BEb: K
+ }
+ : null;
+ (!c || !g || !u || m.na(c.ei) && !m.na(u.ei) || m.na(c.ei) && m.na(u.ei) && .01 < h.vA(c.ei - u.ei) || c.M3 !== u.M3) && g.set(c);
+ }
+ g = a.Qca;
+ M = 0;
+ a.state.addListener(function () {
+ u();
+ d();
+ }, c.wU);
+ a.Sb.addListener(function (a) {
+ if (a.oldValue !== f.lb.dg || a.newValue !== f.lb.dg)
+ M = l.zh();
+ u();
+ });
+ a.qm.addListener(function () {
+ u();
+ });
+ a.Jn.addListener(function () {
+ u();
+ });
+ a.el.addListener(function () {
+ u();
+ });
+ n || (n = setInterval(d, 100));
+ };
+ }, function (d, b, a) {
+ var p,
+ m,
+ f,
+ u;
+ function c(a, b, c, f, h) {
+ var m;
+ m = {};
+ "right" == a.horizontalAlignment ? m.right = 100 * (c - b.left - b.width - h) / c + "%" : m.left = 100 * (b.left - h) / c + "%";
+ "bottom" == a.verticalAlignment ? m.bottom = 100 * (f - b.top - b.height - h) / f + "%" : m.top = 100 * (b.top - h) / f + "%";
+ return m;
+ }
+ function k(a, b) {
+ var c;
+ if (a && b) {
+ 40 === b.x && 19 === b.y ? c = 4 / 3 / (40 / 19) : 52 === b.x && 19 === b.y && (c = 16 / 9 / (52 / 19));
+ if (c)
+ return a.width / a.fontSize / c;
+ }
+ }
+ function l(a, b, c, h, m) {
+ var u,
+ p;
+ u = a.style;
+ p = f.iP(a.text);
+ for (a = a.lineBreaks; a--; ) {
+ p = " " + p;
+ }
+ return r(p, u, b, c, h, m);
+ }
+ function r(a, b, c, f, l, d) {
+ var r;
+ r = b.characterStyle;
+ l = l[r];
+ f = b.characterSize * f.height / ((0 <= r.indexOf("MONOSPACE") ? k(l, b.cellResolution) || l.lineHeight : l.lineHeight) || 1);
+ f = 0 < d ? u.bu(f * d) : u.Th(f);
+ d = {
+ "font-size": f + "px",
+ "line-height": "normal",
+ "font-weight": "normal"
+ };
+ b.characterItalic && (d["font-style"] = "italic");
+ b.characterUnderline && (d["text-decoration"] = "underline");
+ b.characterColor && (d.color = b.characterColor);
+ b.backgroundColor && 0 !== b.backgroundOpacity && (d["background-color"] = h(b.backgroundColor, b.backgroundOpacity));
+ f = b.characterEdgeColor || "#000000";
+ switch (b.characterEdgeAttributes) {
+ case m.Y1:
+ d["text-shadow"] = f + " 0px 0px 7px";
+ break;
+ case m.Lla:
+ d["text-shadow"] = "-1px 0px " + f + ",0px 1px " + f + ",1px 0px " + f + ",0px -1px " + f;
+ break;
+ case m.kSa:
+ d["text-shadow"] = "-1px -1px white, 0px -1px white, -1px 0px white, 1px 1px black, 0px 1px black, 1px 0px black";
+ break;
+ case m.iSa:
+ d["text-shadow"] = "1px 1px white, 0px 1px white, 1px 0px white, -1px -1px black, 0px -1px black, -1px 0px black";
+ }
+ d = p.SB(d);
+ (c = c[b.characterStyle || "PROPORTIONAL_SANS_SERIF"]) && (d += ";" + c);
+ b = b.characterOpacity;
+ 0 < b && 1 > b && (a = '' + a + " ");
+ return '' + a + " ";
+ }
+ function h(a, b) {
+ a = a.substring(1);
+ a = parseInt(a, 16);
+ return "rgba(" + (a >> 16 & 255) + "," + (a >> 8 & 255) + "," + (a & 255) + "," + (void 0 !== b ? b : 1) + ")";
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.nJa = b.hnb = b.fnb = b.inb = b.gnb = b.oJa = b.pJa = b.tfa = void 0;
+ p = a(46);
+ m = a(210);
+ f = a(22);
+ u = a(9);
+ b.tfa = function (a, b, c, f, h) {
+ var m;
+ m = "";
+ a.textNodes.forEach(function (a) {
+ m += l(a, c, b, f, h);
+ });
+ return m;
+ };
+ b.pJa = function (a, b, h, m, p) {
+ var k,
+ l,
+ r,
+ w,
+ g;
+ k = "";
+ l = p.width;
+ p = p.height;
+ for (var d = b.length; d--; ) {
+ r = b[d];
+ w = a[d];
+ w = w && w.region;
+ g = "position:absolute;background:" + m + ";width:" + u.Th(r.width + 2 * h) + "px;height:" + u.Th(r.height + 2 * h) + "px;";
+ f.Ed(c(w, r, l, p, h), function (a, b) {
+ g += a + ":" + b + ";";
+ });
+ k += '
';
+ }
+ return k;
+ };
+ b.oJa = c;
+ b.gnb = k;
+ b.inb = l;
+ b.fnb = r;
+ b.hnb = h;
+ b.nJa = function (a) {
+ var b;
+ b = {
+ display: "block",
+ "white-space": "nowrap"
+ };
+ switch (a.region.horizontalAlignment) {
+ case "left":
+ b["text-align"] = "left";
+ break;
+ case "right":
+ b["text-align"] = "right";
+ break;
+ default:
+ b["text-align"] = "center";
+ }
+ return p.SB(b);
+ };
+ }, function (d, b, a) {
+ var c;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.pYa = void 0;
+ c = a(9);
+ b.pYa = function (a, b) {
+ function k(a, b, u) {
+ var d,
+ r,
+ g,
+ n;
+ if (a && 1 < a.length) {
+ for (var f = [], m = [], p = 0; p < a.length; p++) {
+ f[p] = 0;
+ m[p] = 0;
+ }
+ for (var k = !1, p = 0; p < a.length; p++) {
+ for (var l = p + 1; l < a.length; l++) {
+ r = a[p];
+ g = a[l];
+ if (0 > r.width || 0 > g.width || g.left > r.left + r.width || g.left + g.width < r.left || g.top > r.top + r.height ? 0 : g.top + g.height >= r.top) {
+ d = c.am(r.left, g.left);
+ n = c.am(r.top, g.top);
+ d = {
+ width: c.am(c.hn(r.left + r.width, g.left + g.width) - d, 0),
+ height: c.am(c.hn(r.top + r.height, g.top + g.height) - n, 0),
+ x: d,
+ y: n
+ };
+ } else
+ d = void 0;
+ if (d && 1 < d.width && 1 < d.height)
+ if ((n = d.width <= d.height, r = h(a[p]), g = h(a[l]), n && b || !n && !b))
+ (d = c.am(d.width / 2, .25), r.x <= g.x ? (m[p] -= d, m[l] += d) : (m[l] -= d, m[p] += d));
+ else if (n && !b || !n && b)
+ (r = c.am(d.height / 2, .25), f[p] -= r, f[l] += r);
+ }
+ }
+ for (p = 0; p < a.length; p++) {
+ if ( - .25 > m[p] && 0 <= a[p].left + m[p] || .25 < m[p] && a[p].left + a[p].width + m[p] <= u.width)
+ (a[p].left += m[p], k = !0);
+ if ( - .25 > f[p] && 0 <= a[p].top + f[p] || .25 < f[p] && a[p].top + a[p].height + f[p] <= u.height)
+ (a[p].top += f[p], k = !0);
+ }
+ return k;
+ }
+ }
+ function h(a) {
+ return {
+ x: a.left + a.width / 2,
+ y: a.top + a.height / 2
+ };
+ }
+ a = a.map(function (a) {
+ return {
+ top: a.top,
+ left: a.left,
+ width: a.width,
+ height: a.height
+ };
+ });
+ (function (a, b) {
+ a.forEach(function (a) {
+ 0 > a.left && a.left + a.width < b.width ? a.left += c.hn(-a.left, b.width - (a.left + a.width)) : a.left + a.width > b.width && 0 < a.left && (a.left -= c.hn(a.left + a.width - b.width, a.left));
+ 0 > a.top && a.top + a.height < b.height ? a.top += c.hn(-a.top, b.height - (a.top + a.height)) : a.top + a.height > b.height && 0 < a.top && (a.top -= c.hn(a.top + a.height - b.height, a.top));
+ });
+ })(a, b);
+ for (var p = 0; 50 > p && k(a, !0, b); p++) { ;
+ }
+ for (p = 0; 50 > p && k(a, !1, b); p++) { ;
+ }
+ return a;
+ };
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r,
+ h;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.vAa = void 0;
+ c = a(23);
+ k = a(301);
+ l = a(300);
+ r = a(9);
+ h = a(22);
+ d = (function () {
+ function a(a, b) {
+ this.dga = a;
+ this.dC = {
+ position: "absolute",
+ left: "0",
+ top: "0",
+ right: "0",
+ bottom: "0",
+ display: "block"
+ };
+ this.element = c.createElement("DIV", void 0, void 0, {
+ "class": "player-timedtext"
+ });
+ this.element.onselectstart = function () {
+ return !1;
+ };
+ this.MVa(b);
+ this.$Ja = this.Gqb(this.dga);
+ }
+ a.prototype.Zn = function () {
+ return this.element;
+ };
+ a.prototype.BIb = function (a) {
+ this.nca = a;
+ };
+ a.prototype.LIb = function (a) {
+ this.Ee = a;
+ this.gJ();
+ };
+ a.prototype.RIb = function (a) {
+ this.MVa(a);
+ this.gJ();
+ };
+ a.prototype.gJ = function () {
+ var b,
+ f,
+ h,
+ p,
+ d,
+ r,
+ g,
+ M,
+ H,
+ G,
+ T,
+ q,
+ Z,
+ B;
+ b = this;
+ f = this.Zn();
+ h = f.parentElement;
+ p = h && h.clientWidth || 0;
+ d = h && h.clientHeight || 0;
+ r = h = 0;
+ g = {
+ width: p,
+ height: d
+ };
+ if (0 < p && 0 < d && this.Ee) {
+ this.nca && (g = c.uH(p, d, this.nca), h = Math.round((p - g.width) / 2), r = Math.round((d - g.height) / 2));
+ M = this.xfb(g);
+ G = c.uH(M.width, M.height, this.nca);
+ M = (H = this.Ee.blocks) && H.map(function (f) {
+ var h;
+ h = l.tfa(f, G, b.dga, b.$Ja);
+ f = l.nJa(f) + ";position:absolute";
+ return c.createElement("div", f, h, a.z5);
+ });
+ }
+ Object.assign(this.dC, {
+ left: h + "px",
+ right: h + "px",
+ top: r + "px",
+ bottom: r + "px"
+ });
+ f.style.display = "none";
+ f.style.direction = this.dC.direction;
+ f.innerHTML = "";
+ if (M && M.length) {
+ p = g.width;
+ h = g.height;
+ T = g;
+ this.mN && (T = this.Pbb(g, this.mN, d, r));
+ this.dC.margin = this.up ? this.GX(g, "top") + "px " + this.GX(g, "right") + "px " + this.GX(g, "bottom") + "px " + this.GX(g, "left") + "px " : void 0;
+ M.forEach(function (a) {
+ return f.appendChild(a);
+ });
+ d = c.SB(this.dC);
+ f.style.cssText = d + ";visibility:hidden;z-index:-1";
+ for (var r = [], n = M.length - 1; 0 <= n; n--) {
+ q = M[n];
+ Z = H[n];
+ B = this.dRa(q, Z, p, h);
+ B.width > p && (q.innerHTML = l.tfa(Z, g, this.dga, this.$Ja, p / B.width), B = this.dRa(q, Z, p, h));
+ r[n] = B;
+ }
+ r = k.pYa(r, T);
+ if (n = H && H[0] && H[0].textNodes && H[0].textNodes[0] && H[0].textNodes[0].style)
+ (T = n.windowColor, n = n.windowOpacity, T && 0 < n && (g = l.pJa(H, r, Math.round(h / 50), T, g), g = c.createElement("div", "position:absolute;left:0;top:0;right:0;bottom:0;opacity:" + n, g, a.z5), f.insertBefore(g, f.firstChild)));
+ f.style.display = "none";
+ for (g = r.length - 1; 0 <= g; g--) {
+ T = M[g].style;
+ n = l.oJa(H[g].region, r[g], p, h, 0);
+ Object.assign(T, n);
+ }
+ f.style.cssText = d;
+ }
+ };
+ a.prototype.uoa = function (a) {
+ this.mN = a;
+ this.gJ();
+ };
+ a.prototype.Fha = function () {
+ return this.mN;
+ };
+ a.prototype.voa = function (a) {
+ this.up = a;
+ this.gJ();
+ };
+ a.prototype.Gha = function () {
+ return this.up;
+ };
+ a.prototype.Hha = function () {
+ return "block" === this.dC.display;
+ };
+ a.prototype.woa = function (a) {
+ var b;
+ b = a ? "block" : "none";
+ this.element.style.display = b;
+ this.dC.display = b;
+ a && this.gJ();
+ };
+ a.prototype.Gqb = function (a) {
+ var b,
+ c;
+ b = this;
+ c = {};
+ h.Ed(a, function (a, f) {
+ c[a] = b.Pyb(f);
+ });
+ return c;
+ };
+ a.prototype.MVa = function (a) {
+ this.dC.direction = "boolean" === typeof a ? a ? "ltr" : "rtl" : "inherit";
+ };
+ a.prototype.GX = function (a, b) {
+ if (this.up) {
+ if ("left" === b || "right" === b)
+ return a.width * (this.up[b] || 0);
+ if ("top" === b || "bottom" === b)
+ return a.height * (this.up[b] || 0);
+ }
+ return 0;
+ };
+ a.prototype.xfb = function (a) {
+ return this.up ? {
+ height: a.height * (1 - (this.up.top || 0) - (this.up.bottom || 0)),
+ width: a.width * (1 - (this.up.left || 0) - (this.up.right || 0))
+ }
+ : a;
+ };
+ a.prototype.Pyb = function (b) {
+ var f;
+ b = c.createElement("DIV", "display:block;position:fixed;z-index:-1;visibility:hidden;font-size:1000px;" + b + ";", "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", a.z5);
+ r.Ae.body.appendChild(b);
+ f = {
+ fontSize: 1E3,
+ height: b.clientHeight,
+ width: b.clientWidth / 52,
+ lineHeight: b.clientHeight / 1E3
+ };
+ r.Ae.body.removeChild(b);
+ return f;
+ };
+ a.prototype.dRa = function (a, b, c, h) {
+ var f,
+ m,
+ u,
+ p,
+ k;
+ f = b.region;
+ m = (f.marginTop || 0) * h;
+ u = (f.marginBottom || 0) * h;
+ p = (f.marginLeft || 0) * c;
+ k = (f.marginRight || 0) * c;
+ b = a.clientWidth || 1;
+ a = a.clientHeight || 1;
+ switch (f.verticalAlignment) {
+ case "top":
+ h = m;
+ break;
+ case "center":
+ h = (m + h - u - a) / 2;
+ break;
+ default:
+ h = h - u - a;
+ }
+ switch (f.horizontalAlignment) {
+ case "left":
+ c = p;
+ break;
+ case "right":
+ c = c - k - b;
+ break;
+ default:
+ c = (p + c - k - b) / 2;
+ }
+ return {
+ top: h,
+ left: c,
+ width: b,
+ height: a
+ };
+ };
+ a.prototype.Pbb = function (a, b, c, h) {
+ return {
+ height: c - Math.max(h, b.bottom || 0) - Math.max(h, b.top || 0),
+ width: a.width
+ };
+ };
+ a.z5 = {
+ "class": "player-timedtext-text-container"
+ };
+ return a;
+ })();
+ b.vAa = d;
+ }, function (d, b, a) {
+ var k,
+ l,
+ r,
+ h,
+ p,
+ m,
+ f;
+ function c(a) {
+ var b,
+ c,
+ m,
+ u;
+ b = this;
+ this.j = a;
+ this.TN = void 0;
+ this.eaa = r.createElement("DIV", "position:absolute;left:0;top:50%;right:0;bottom:0;text-align:center;color:#040;font-size:11px;font-family:monospace", void 0, {
+ "class": "player-streams"
+ });
+ this.W$ = r.createElement("DIV", "display:inline-block;background-color:rgba(255,255,255,0.86);border:3px solid #fff;padding:5px;margin-top:-90px");
+ this.N$ = r.createElement("DIV", "width:100%;text-align:center");
+ this.P7a = this.Z$("Audio Bitrate");
+ this.yba = this.Z$("Video Bitrate");
+ this.R$ = this.Z$("CDN");
+ this.qM = {};
+ this.r_ = h.ba.get(p.kl);
+ this.eaa.appendChild(this.W$);
+ this.W$.appendChild(this.N$);
+ c = r.createElement("BUTTON", void 0, "Override");
+ c.addEventListener("click", this.H7a.bind(this), !1);
+ this.N$.appendChild(c);
+ c = r.createElement("BUTTON", void 0, "Reset");
+ c.addEventListener("click", this.Lab.bind(this), !1);
+ this.N$.appendChild(c);
+ m = this.$$a.bind(this);
+ l.Te.addListener(l.Hy, m);
+ a.addEventListener(f.V.rp, function () {
+ b.qM = {};
+ });
+ a.addEventListener(f.V.If, function () {
+ l.Te.removeListener(l.Hy, m);
+ });
+ u = this.xab.bind(this);
+ a.tc.forEach(function (a) {
+ a.addListener(u);
+ });
+ a.rd.addListener(u);
+ a.wg.addListener(u);
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.oya = void 0;
+ k = a(57);
+ l = a(55);
+ r = a(23);
+ h = a(6);
+ p = a(34);
+ m = a(104);
+ f = a(13);
+ c.prototype.show = function () {
+ this.KM || (this.BDa(), this.j.Rf.appendChild(this.eaa), this.KM = !0);
+ };
+ c.prototype.ip = function () {
+ this.KM && (this.j.Rf.removeChild(this.eaa), this.KM = !1);
+ };
+ c.prototype.toggle = function () {
+ this.KM ? this.ip() : this.show();
+ };
+ c.prototype.vYa = function () {
+ var c,
+ f,
+ h;
+ function a(a, b, c) {
+ var f,
+ h,
+ m;
+ m = [];
+ b.filter(function (b) {
+ return b.hg === a;
+ }).forEach(function (a) {
+ 0 <= c.indexOf(a) ? (void 0 === f ? f = a.R : h = a.R, void 0 === h && (h = a.R)) : void 0 !== f && void 0 !== h && (m.push({
+ min: f,
+ max: h
+ }), f = h = void 0);
+ });
+ void 0 !== f && void 0 !== h && (m.push({
+ min: f,
+ max: h
+ }), f = h = void 0);
+ return m;
+ }
+ function b(a, b, c) {
+ var f;
+ f = [];
+ b.filter(function (b) {
+ return b.hg === a;
+ }).forEach(function (a) {
+ -1 === c.indexOf(a) && f.push({
+ stream: {
+ bitrate: a.R
+ },
+ disallowedBy: ["manual"]
+ });
+ });
+ return f;
+ }
+ c = this.j.my();
+ f = this.j.wC().sort(function (a, b) {
+ return a.R - b.R;
+ });
+ h = f.reduce(function (a, b) {
+ 0 > a.indexOf(b.hg) && a.push(b.hg);
+ return a;
+ }, []).map(function (h) {
+ return {
+ profile: h,
+ ranges: a(h, f, c),
+ disallowed: b(h, f, c)
+ };
+ });
+ this.j.Hb.Cw(h, this.j.G);
+ };
+ c.prototype.H7a = function () {
+ var c,
+ f,
+ a,
+ b;
+ this.qM = {};
+ for (var a = this.yba.options, b = a.length; b--; ) {
+ c = a[b];
+ c.selected && (this.qM[c.value] = 1);
+ }
+ this.TN = this.o8a.bind(this);
+ this.vYa();
+ if (a = this.j.Nj) {
+ f = this.R$.value;
+ a = a.filter(function (a) {
+ return a.id == f;
+ })[0];
+ b = this.j.tc[k.Hc.Na.VIDEO].value;
+ a && a != b && (a.rGa = {
+ testreason: "streammanager",
+ selreason: "userselection"
+ }, this.j.tc[k.Hc.Na.VIDEO].set(a));
+ }
+ this.ip();
+ };
+ c.prototype.Lab = function () {
+ this.TN = void 0;
+ this.j.$Va(this.j.G);
+ this.ip();
+ };
+ c.prototype.o8a = function () {
+ var a;
+ a = this;
+ return this.j.wC().filter(function (b) {
+ return a.qM[b.R];
+ });
+ };
+ c.prototype.BDa = function () {
+ var a,
+ b,
+ c,
+ f;
+ a = this;
+ b = this.j.rd.value;
+ c = this.j.wg.value;
+ f = this.j.Nj;
+ b && (f = f.slice(), f.sort(function (a, b) {
+ return a.Yf - b.Yf;
+ }), this.hba(this.P7a, b.pc.map(function (b) {
+ return {
+ value: b.R,
+ caption: b.R,
+ selected: b == a.j.zl.value
+ };
+ })));
+ c && (this.hba(this.yba, c.pc.map(function (b) {
+ var c,
+ f;
+ c = a.j.WP.Ct(b);
+ b = b.R;
+ f = "" + b;
+ c && (f += " (" + c.join("|") + ")");
+ return {
+ value: b,
+ caption: f,
+ selected: a.TN ? a.qM[b] : !c
+ };
+ })), this.yba.removeAttribute("disabled"));
+ f && (this.hba(this.R$, f.map(function (b) {
+ return {
+ value: b.id,
+ caption: "[" + b.id + "] " + b.name,
+ selected: b == a.j.tc[k.Hc.Na.VIDEO].value
+ };
+ })), this.R$.removeAttribute("disabled"));
+ };
+ c.prototype.xab = function () {
+ this.KM && this.BDa();
+ };
+ c.prototype.Z$ = function (a) {
+ var b,
+ c;
+ b = r.createElement("DIV", "display:inline-block;vertical-align:top;margin:5px;");
+ a = r.createElement("DIV", void 0, a);
+ c = r.createElement("select", "width:120px;height:180px", void 0, {
+ disabled: "disabled",
+ multiple: "multiple"
+ });
+ b.appendChild(a);
+ b.appendChild(c);
+ this.W$.appendChild(b);
+ return c;
+ };
+ c.prototype.hba = function (a, b) {
+ a.innerHTML = "";
+ b.forEach(function (b) {
+ var c;
+ c = {
+ title: b.caption
+ };
+ b.selected && (c.selected = "selected");
+ c = r.createElement("option", void 0, b.caption, c);
+ c.value = b.value;
+ a.appendChild(c);
+ });
+ };
+ c.prototype.$$a = function (a) {
+ a.ctrlKey && a.altKey && a.shiftKey && a.keyCode == m.Hr.n6a && this.toggle();
+ };
+ b.oya = c;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r,
+ h,
+ p,
+ m,
+ f,
+ u;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.ava = void 0;
+ c = a(12);
+ k = a(39);
+ l = a(2);
+ r = a(190);
+ h = a(9);
+ p = a(15);
+ m = a(13);
+ f = a(6);
+ u = a(178);
+ b.ava = function (a) {
+ var d,
+ w,
+ g,
+ H;
+ function b() {
+ a.state.value !== m.ob.od || a.Sb.value !== m.lb.$i && a.Sb.value !== m.lb.Fr ? w.Qi() : w.fC();
+ }
+ d = c.config.uCb;
+ if (!a.HC() && d) {
+ w = f.ba.get(u.AL)(d, function () {
+ a.fireEvent(m.V.RH, l.J.yU);
+ });
+ a.Sb.addListener(b);
+ a.state.addListener(b);
+ if (c.config.uia) {
+ H = k.zh();
+ g = new r.t9(c.config.uia, function () {
+ var b,
+ f;
+ b = k.zh();
+ f = b - H;
+ f > d && (a.fireEvent(m.V.RH, l.J.YT), g.sda());
+ f > 2 * c.config.uia && (a.wia = h.am(f, a.wia || 0));
+ H = b;
+ });
+ g.xoa();
+ }
+ a.addEventListener(m.V.If, function () {
+ w.Qi();
+ p.dc(g) && g.sda();
+ });
+ }
+ };
+ }, function (d, b, a) {
+ var c,
+ k;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.xua = void 0;
+ c = a(13);
+ k = a(67);
+ b.xua = function (a) {
+ function b(b) {
+ a.fireEvent(c.V.ty, {
+ response: b,
+ G: a.ha.G
+ });
+ }
+ return {
+ download: function (c, p) {
+ c.j = a;
+ c = k.cf.download(c, p);
+ c.Iba(b);
+ return c;
+ }
+ };
+ };
+ }, function (d, b, a) {
+ var c;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.yAa = void 0;
+ c = a(23);
+ d = (function () {
+ function a(a, b) {
+ var c;
+ c = this;
+ this.KLa = a;
+ this.DRa = b;
+ this.wpa = !1;
+ this.jw = function () {
+ c.yj = void 0;
+ c.update();
+ };
+ }
+ a.prototype.update = function (a) {
+ var b,
+ h,
+ p;
+ b = this.KLa();
+ if (this.LYa !== b) {
+ c.dc(b) && c.dc(this.duration) && b < this.duration && this.entries && (p = this.XQa || this.entries[Math.floor(b * this.NLb)] || this.entries[0]);
+ if (p) {
+ for (; p && p.endTime < b; ) {
+ p = p.next;
+ }
+ for (; p && p.previous && p.previous.endTime >= b; ) {
+ p = p.previous;
+ }
+ }
+ p && (p.startTime <= b && b <= p.endTime ? (h = p, this.FYa(p.endTime - b)) : this.FYa(p.startTime - b));
+ this.XQa = p;
+ this.LYa = b;
+ this.Hba !== h && (this.Hba = h, !a && this.DRa && this.DRa());
+ }
+ };
+ a.prototype.start = function () {
+ this.wpa = !0;
+ this.update();
+ };
+ a.prototype.NVa = function (a) {
+ this.XQa = this.Hba = this.LYa = void 0;
+ this.duration = (this.entries = a) && Math.max.apply(Math, [].concat(ca(a.map(function (a) {
+ return a.endTime;
+ })))) || 0;
+ this.NLb = a && a.length / this.duration || 0;
+ this.update();
+ };
+ a.prototype.stop = function () {
+ this.wpa = !1;
+ this.Qi();
+ };
+ a.prototype.lpb = function () {
+ this.update(!0);
+ return this.Hba;
+ };
+ a.prototype.FYa = function (b) {
+ this.Qi();
+ this.wpa && 0 < b && (this.yj = setTimeout(this.jw, b + a.N4a));
+ };
+ a.prototype.Qi = function () {
+ this.yj && (clearTimeout(this.yj), this.yj = void 0);
+ };
+ a.N4a = 10;
+ return a;
+ })();
+ b.yAa = d;
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.l7 = void 0;
+ b.l7 = "LicenseBrokerFactorySymbol";
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r,
+ h;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.ps = void 0;
+ c = a(10);
+ k = a(12);
+ d = a(2);
+ l = a(6);
+ r = a(23);
+ h = a(9);
+ a = a(26);
+ l.ba.get(a.Cf).register(d.J.Fua, function (a) {
+ var f,
+ u,
+ p;
+ function m() {
+ p && clearTimeout(p);
+ a(c.pd);
+ m = r.ff;
+ }
+ f = l.Fh("BatteryManager");
+ b.ps = {
+ n0a: "chargingchange",
+ yLa: function () {
+ return u ? u.level : null;
+ },
+ Dga: function () {
+ return u ? u.charging : null;
+ },
+ addEventListener: function (a, b) {
+ u && u.addEventListener(a, b);
+ },
+ removeEventListener: function (a, b) {
+ u && u.removeEventListener(a, b);
+ }
+ };
+ if (k.config.BN) {
+ p = setTimeout(m, k.config.Fpb);
+ try {
+ h.Zi.getBattery().then(function (a) {
+ u = a;
+ m();
+ })["catch"](function (a) {
+ f.error("getBattery promise rejected", a);
+ m();
+ });
+ } catch (A) {
+ f.error("exception on getBattery api call", A);
+ m();
+ }
+ } else
+ m();
+ });
+ }, function (d, b, a) {
+ var m,
+ f,
+ u,
+ w,
+ g,
+ K,
+ C,
+ M;
+ function c(a) {
+ return a.split(",").reduce(function (a, b) {
+ var c;
+ c = b.split("=");
+ b = c[0];
+ c = c.slice(1).join("=");
+ b && b.length && (a[b] = c || !0);
+ return a;
+ }, {});
+ }
+ function k(a) {
+ return a && "object" === typeof a ? JSON.stringify(a) : "string" === typeof a ? '"' + a + '"' : "" + a;
+ }
+ function l(a, b, f) {
+ var h;
+ if ("string" === typeof a)
+ return l.call(this, c(a), b, f);
+ h = 0;
+ Object.keys(a).forEach(function (c) {
+ var u,
+ p,
+ l;
+ u = g[c];
+ p = a[c];
+ if (u) {
+ if (l = K[c] || M[typeof m[u]])
+ try {
+ p = l(p);
+ } catch (fa) {
+ f && f.error("Failed to convert value '" + p + "' for config '" + c + "' : " + fa.toString());
+ return;
+ }
+ l = w[u];
+ this[u] = p;
+ w[u] !== l && (f && f.debug("Config changed for '" + c + "' from " + k(l) + " (" + typeof l + ") to " + k(p) + " (" + typeof p + ")"), ++h);
+ } else
+ b ? (u = (u = C[c]) ? u.filter(function (a) {
+ return a[0] !== this;
+ }, this) : [], u.push([this, p]), C[c] = u) : f && f.error("Attempt to change undeclared config option '" + c + "'");
+ }, this);
+ h && w.emit("changed");
+ return h;
+ }
+ function r() {
+ return Object.keys(g).reduce(function (a, b) {
+ var c,
+ f;
+ c = g[b];
+ f = a[c];
+ f ? (f.push(b), a[c] = f.sort(function (a, b) {
+ return b.length - a.length;
+ })) : a[c] = [b];
+ return a;
+ }, {});
+ }
+ function h(a, b) {
+ return a.hasOwnProperty(b) ? k(a[b]) : void 0;
+ }
+ function p(a, b) {
+ return "undefined" === typeof a ? b : a;
+ }
+ b = a(60);
+ a = a(106).EventEmitter;
+ m = {};
+ f = Object.create(m);
+ u = Object.create(f);
+ w = Object.create(u);
+ g = {};
+ K = {};
+ C = {};
+ w.declare = function (a) {
+ Object.keys(a).forEach(function (b) {
+ var c,
+ f,
+ h,
+ u;
+ c = a[b];
+ f = c[0];
+ h = c[1];
+ u = c[2];
+ if (m.hasOwnProperty(b))
+ throw Error("The local configuraion key '" + b + "' is already in use");
+ "string" === typeof f && (f = [f]);
+ f.forEach(function (a) {
+ var c;
+ if (g.hasOwnProperty(a))
+ throw Error("The configuration value '" + a + "' has been declared more than once");
+ m.hasOwnProperty(b) || ("function" === typeof h && (h = h()), m[b] = h);
+ g[a] = b;
+ "function" === typeof u && (K[a] = u);
+ if (c = C[a])
+ (c.forEach(function (b) {
+ var c,
+ f;
+ c = b[0];
+ f = {};
+ f[a] = b[1];
+ l.call(c, f, !1);
+ }), delete C[a]);
+ });
+ });
+ return w;
+ };
+ M = {
+ object: function (a) {
+ return "object" == typeof a ? a : JSON.parse("" + a);
+ },
+ "boolean": function (a) {
+ return "boolean" == typeof a ? a : !("0" === "" + a || "false" === ("" + a).toLowerCase());
+ },
+ number: function (a) {
+ if ("number" == typeof a)
+ return a;
+ a = parseFloat("" + a);
+ if (isNaN(a))
+ throw Error("parseFloat returned NaN");
+ return a;
+ }
+ };
+ w.set = l.bind(f);
+ w.MI = l.bind(u);
+ w.dump = function (a, b) {
+ var l,
+ d,
+ H,
+ A;
+ function c() {
+ A && a && a.log("===========================================");
+ }
+ l = Object.keys(C).sort();
+ d = {};
+ H = r();
+ b = p(b, !0);
+ Object.keys(g).sort().forEach(function (l) {
+ var r,
+ C,
+ M;
+ l = g[l];
+ !d[l] && (d[l] = !0, C = h(f, l), M = h(u, l), b || "undefined" !== typeof C || "undefined" !== typeof M) && (r = H[l].join(","), r += " = " + k(w[l]) + " (" + typeof w[l] + ") [", r += p(M, "") + ",", r += p(C, "") + ",", r += h(m, l) + "]", A || (A = !0, a && a.log("Current config values"), c()), a && a.log(r));
+ });
+ (b || l.length) && a && a.log(" :", l);
+ c();
+ };
+ w.$o = function (a) {
+ var b,
+ c;
+ b = {};
+ c = {};
+ Object.keys(g).forEach(function (a) {
+ a = g[a];
+ c[a] || (c[a] = !0, b[a] = w[a]);
+ });
+ a && l.call(b, a);
+ return b;
+ };
+ w.DSa = function () {
+ var a;
+ a = r();
+ return Object.getOwnPropertyNames(f).reduce(function (b, c) {
+ b[a[c][0]] = f[c];
+ return b;
+ }, {});
+ };
+ w.reset = function () {
+ Object.keys(f).forEach(function (a) {
+ delete f[a];
+ });
+ };
+ w.zn = {};
+ b(a, w);
+ d.P = Object.freeze(w);
+ }, function (d, b, a) {
+ var k,
+ l,
+ r,
+ h,
+ p;
+ function c(a) {
+ var b;
+ k.Fh("MediaSourceASE").trace("Inside MediaSourceASE");
+ b = a.$ga();
+ this.readyState = p.vc.CLOSED;
+ this.sourceBuffers = b.sourceBuffers;
+ this.addSourceBuffer = function (a) {
+ return b.addSourceBuffer(a);
+ };
+ this.jX = function (a) {
+ return b.jX(a);
+ };
+ this.removeSourceBuffer = function (a) {
+ return b.removeSourceBuffer(a);
+ };
+ this.vq = function (a) {
+ return b.vq(a);
+ };
+ this.sourceId = h++;
+ this.duration = void 0;
+ b.zIb(this.sourceId);
+ this.readyState = p.vc.OPEN;
+ this.gc = l.ba.get(r.hf).YC(p.gc, {});
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Awa = void 0;
+ k = a(6);
+ l = a(6);
+ r = a(25);
+ h = 0;
+ Object.defineProperty(c.prototype, "duration", {
+ get: function () {
+ return this.Fj;
+ },
+ set: function (a) {
+ var b;
+ this.Fj = a || Infinity;
+ b = Math.floor(1E3 * a) || Infinity;
+ this.sourceBuffers.forEach(function (a) {
+ a.Fj = b;
+ });
+ }
+ });
+ p = {
+ vc: {
+ CLOSED: 0,
+ OPEN: 1,
+ Fr: 2,
+ name: ["CLOSED", "OPEN", "ENDED"]
+ },
+ gc: {
+ OGa: !0,
+ NQa: !0
+ }
+ };
+ b.Awa = Object.assign(c, p);
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.LWa = void 0;
+ c = a(312);
+ k = a(6);
+ l = a(448);
+ r = a(25);
+ b.LWa = function (a) {
+ a({
+ U: !0,
+ storage: new c.k7(k.ba.get(l.m7), k.ba.get(r.hf))
+ });
+ };
+ }, function (d, b) {
+ function a(a, b) {
+ this.ls = a;
+ this.ad = b;
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.k7 = void 0;
+ a.prototype.load = function (b, k) {
+ var c;
+ c = this;
+ this.ls.load(b).then(function (b) {
+ k && k(a.XWa(b));
+ })["catch"](function (a) {
+ k && k(c.wfa(b, a));
+ });
+ };
+ a.prototype.save = function (b, k, l, d) {
+ var c;
+ c = this;
+ this.ls.save(b, k, l).then(function () {
+ d && d(a.XWa({
+ key: b,
+ value: k
+ }));
+ })["catch"](function (a) {
+ d && d(c.wfa(b, a));
+ });
+ };
+ a.prototype.remove = function (a, b) {
+ var c;
+ c = this;
+ this.ls.remove(a).then(function () {
+ b && b({
+ U: !0,
+ S3: a
+ });
+ })["catch"](function (k) {
+ b && b(c.wfa(a, k));
+ });
+ };
+ a.XWa = function (a) {
+ return {
+ U: !0,
+ data: a.value,
+ S3: a.key
+ };
+ };
+ a.prototype.wfa = function (a, b) {
+ return {
+ U: !1,
+ S3: a,
+ ja: b.ja,
+ ab: b.cause ? this.ad.Fd(b.cause) : void 0
+ };
+ };
+ b.k7 = a;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r,
+ h;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.KWa = void 0;
+ c = a(6);
+ k = a(70);
+ l = a(25);
+ r = a(312);
+ h = a(446);
+ b.KWa = function (a) {
+ c.ba.get(k.xr).create().then(function (b) {
+ a({
+ U: !0,
+ storage: new r.k7(b, c.ba.get(l.hf)),
+ bp: c.ba.get(h.N5)
+ });
+ })["catch"](function (b) {
+ a(b);
+ });
+ };
+ }, function (d, b, a) {
+ var c,
+ k,
+ l;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.MWa = void 0;
+ c = a(10);
+ k = a(6);
+ l = a(2);
+ a(22);
+ b.MWa = function (a) {
+ var b;
+ k.Fh("Storage");
+ b = {};
+ a({
+ U: !0,
+ storage: {
+ load: function (a, c) {
+ b.hasOwnProperty(a) ? c({
+ U: !0,
+ data: b[a],
+ S3: a
+ }) : c({
+ ja: l.I.px
+ });
+ },
+ save: function (a, c, f, h) {
+ f && b.hasOwnProperty(a) ? h({
+ U: !1
+ }) : (b[a] = c, h && h({
+ U: !0,
+ S3: a
+ }));
+ },
+ remove: function (a, h) {
+ delete b[a];
+ h && h(c.pd);
+ }
+ }
+ });
+ };
+ }, function (d, b, a) {
+ var k,
+ l,
+ r,
+ h,
+ p,
+ m,
+ f,
+ u,
+ w,
+ g,
+ K,
+ C,
+ M,
+ H,
+ G,
+ T,
+ n,
+ q,
+ Z,
+ B,
+ V,
+ fa,
+ ia,
+ Y,
+ pa,
+ X,
+ O,
+ na,
+ ha,
+ P,
+ Ha,
+ ja,
+ ya,
+ za,
+ ma,
+ Ua,
+ z,
+ E,
+ ib;
+ function c(a, b, c, f, h, m, p, l, d, A, M, T, S, q, aa, X, ja, P, ha, za, Ha, z, gb, E, $a, ib, N, R) {
+ var da,
+ Fa,
+ hb,
+ Rb;
+ function Ba(a) {
+ a.newValue !== ma.lb.dg && a.newValue !== ma.lb.$i && (da.Sb.removeListener(Ba), da.UH = da.Aa.t3, da.Db.$b(ma.V.ko));
+ }
+ function lb(a) {
+ a.newValue !== ma.lb.dg && (da.Sb.removeListener(lb), da.PSa = da.Aa.$e.ca(V.ia));
+ }
+ da = this;
+ this.OH = h;
+ this.va = p;
+ this.vG = l;
+ this.Aa = d;
+ this.fka = A;
+ this.gka = S;
+ this.O0 = q;
+ this.Jc = aa;
+ this.Mi = X;
+ this.di = ja;
+ this.dy = P;
+ this.cma = ha;
+ this.eka = za;
+ this.Kpa = Ha;
+ this.eh = z;
+ this.ad = gb;
+ this.ama = E;
+ this.Vk = $a;
+ this.R2 = ib;
+ this.rG = N;
+ this.MX = R;
+ this.WSa = [];
+ this.UI = {};
+ this.rd = new g.Rc(null);
+ this.wg = new g.Rc(null);
+ this.Bc = new g.Rc(null);
+ this.Lj = new g.Rc(null);
+ this.Kt = new g.Rc(void 0);
+ this.Bf = new g.Rc(null);
+ this.zl = new g.Rc(null);
+ this.bb = new g.Rc(void 0);
+ this.playbackRate = new g.Rc(1);
+ this.Upa = function (a) {
+ return da.rd.set(a.newValue);
+ };
+ this.yNb = function (a) {
+ return da.wg.set(a.newValue);
+ };
+ this.vNb = function (a) {
+ return da.Bc.set(a.newValue);
+ };
+ this.VMb = function (a) {
+ return da.Lj.set(a.newValue);
+ };
+ this.uNb = function (a) {
+ return da.Kt.set(a.newValue);
+ };
+ this.xNb = function (a) {
+ return da.Bf.set(a.newValue);
+ };
+ this.WMb = function (a) {
+ return da.zl.set(a.newValue);
+ };
+ this.lNb = function (a) {
+ return da.wf.set(a.newValue);
+ };
+ this.kNb = function (a) {
+ return da.tg.set(a.newValue);
+ };
+ this.fNb = function (a) {
+ return da.bb.set(a.newValue);
+ };
+ this.r4 = function (a) {
+ return da.playbackRate.set(a.newValue);
+ };
+ this.ho = {};
+ this.xna = this.Bpa = 0;
+ this.Db = new C.Xi();
+ this.CS = {};
+ this.EWa = !1;
+ this.state = new g.Rc(ma.ob.UE);
+ this.br = new g.Rc(!1);
+ this.paused = new g.Rc(!1);
+ this.muted = new g.Rc(!1);
+ this.volume = new g.Rc(K.config.Rkb / 100);
+ this.Sb = new g.Rc(ma.lb.dg);
+ this.qm = new g.Rc(ma.ye.Xd);
+ this.Jn = new g.Rc(ma.ye.Xd);
+ this.el = new g.Rc(ma.ye.Xd);
+ this.tg = new g.Rc(null);
+ this.wf = new g.Rc(null);
+ this.Qca = new g.Rc(null);
+ this.N_ = u.xua(this);
+ this.Z0 = [];
+ this.tc = [];
+ this.Fca = {};
+ this.pO = this.YIa = !1;
+ this.HKb = this.Ia = this.Lh = -1;
+ this.uha = function (a, b) {
+ a = void 0 === a ? null : a;
+ return na.na(a) ? b && !da.Cv(b).xa ? a : da.Hb ? da.Hb.As(void 0, a, b) : a : null;
+ };
+ this.FRa = function () {
+ da.Roa();
+ };
+ this.ETa = this.OH.TB();
+ this.WB = a;
+ this.addEventListener = this.Db.addListener;
+ this.removeEventListener = this.Db.removeListener;
+ this.fireEvent = this.Db.$b;
+ h = K.config.Ap && this.Jc() ? this.Jc().p_(a) : void 0;
+ this.Pba({
+ ma: a,
+ Ha: f,
+ Ta: c || ({})
+ }, h, b);
+ this.log = B.Gg(this);
+ this.Hea = m(this);
+ this.reb = M(this);
+ this.Rf = ya.createElement("DIV", w.r9, void 0, {
+ id: this.G
+ });
+ this.Lub();
+ Fa = T(V.qh(1));
+ this.te = this.log.Yda("Playback");
+ this.cDb = r.bya(this);
+ G.aF.Lzb = this;
+ G.aF.$fa || (G.aF.$fa = this);
+ this.te.info("Playback created", this.fh);
+ this.N0 ? this.te.info("Playback selected for trace playback info logging") : this.te.trace("Playback not selected for trace playback info logging");
+ K.config.Ap && this.Jc() && (this.Jc().stb(this.G), this.addEventListener(ma.V.ko, function () {
+ da.Jc().ttb(da.G);
+ da.Bc.addListener(function () {
+ da.Jc().CMa();
+ });
+ da.rd.addListener(function () {
+ da.Jc().CMa();
+ });
+ }), this.addEventListener(ma.V.If, function () {
+ da.Jc().rtb(da.G);
+ }));
+ this.state.addListener(function (a) {
+ da.te.info("Playback state changed", {
+ From: a.oldValue,
+ To: a.newValue
+ });
+ Y.Ra(a.newValue > a.oldValue);
+ });
+ H.Te.addListener(H.Hl, this.FRa, w.wU);
+ this.bb.addListener(function () {
+ Fa.Pc(function () {
+ return da.SJa();
+ });
+ });
+ Rb = !1;
+ this.paused.addListener(function (a) {
+ var b;
+ b = da.Hb;
+ !a.lla && b && (!0 === a.newValue ? b.paused && b.paused() : b.sS && b.sS());
+ a.newValue || (Rb = !1);
+ da.te.info("Paused changed", {
+ From: a.oldValue,
+ To: a.newValue,
+ MediaTime: pa.th(da.bb.value)
+ });
+ });
+ this.Sb.addListener(function (a) {
+ da.te.info("PresentingState changed", {
+ From: a.oldValue,
+ To: a.newValue,
+ MediaTime: pa.th(da.bb.value)
+ }, da.mI());
+ });
+ this.Sb.addListener(function () {
+ da.br.set(da.Sb.value === ma.lb.Sc);
+ });
+ this.qm.addListener(function (a) {
+ da.te.info("BufferingState changed", {
+ From: a.oldValue,
+ To: a.newValue,
+ MediaTime: pa.th(da.bb.value)
+ }, da.mI());
+ });
+ this.Jn.addListener(function (a) {
+ da.te.info("AV BufferingState changed", {
+ From: a.oldValue,
+ To: a.newValue,
+ MediaTime: pa.th(da.bb.value)
+ }, da.mI());
+ });
+ this.el.addListener(function (a) {
+ da.te.info("Text BufferingState changed", {
+ From: a.oldValue,
+ To: a.newValue,
+ MediaTime: pa.th(da.bb.value)
+ }, da.mI());
+ });
+ this.rd.addListener(function (a) {
+ Y.Ra(a.newValue);
+ da.te.info("AudioTrack changed", a.newValue && ({
+ ToBcp47: a.newValue.Al,
+ To: a.newValue.cb
+ }), a.oldValue && ({
+ FromBcp47: a.oldValue.Al,
+ From: a.oldValue.cb
+ }), {
+ MediaTime: pa.th(da.bb.value)
+ });
+ });
+ this.wg.addListener(function () {
+ for (var a = da.wC(), b = a.length, c = 0; c < b; c++) {
+ a[c].lower = a[c - 1];
+ a[c].Stb = a[c + 1];
+ }
+ });
+ this.Bc.addListener(function (a) {
+ da.te.info("TimedTextTrack changed", a.newValue ? {
+ ToBcp47: a.newValue.Al,
+ To: a.newValue.cb
+ }
+ : {
+ To: "none"
+ }, a.oldValue ? {
+ FromBcp47: a.oldValue.Al,
+ From: a.oldValue.cb
+ }
+ : {
+ From: "none"
+ }, {
+ MediaTime: pa.th(da.bb.value)
+ });
+ });
+ this.tc[k.Hc.Na.AUDIO] = new g.Rc(null);
+ this.tc[k.Hc.Na.VIDEO] = new g.Rc(null);
+ this.Sb.addListener(lb, w.DA);
+ this.Sb.addListener(Ba);
+ this.addEventListener(ma.V.ko, function () {
+ var a,
+ b,
+ c,
+ f;
+ da.EWa = !0;
+ da.jKb = da.Xca();
+ da.kd("start");
+ a = da.wf.value;
+ b = t._cad_global.prefetchEvents;
+ if (b) {
+ c = V.Gb(da.ao ? da.ao.audio : 0);
+ f = V.Gb(da.ao ? da.ao.video : 0);
+ b.Pm(da.G, da.ga, "notcached" !== da.$u, "notcached" !== da.iy, !!da.ao, c, f);
+ }
+ da.Z_ = a.stream.R;
+ });
+ Z.hya(this);
+ G.ln.push(this);
+ K.config.cR && (this.i2 = this.ama(this), this.k2 = new n.oya(this));
+ G.X8.forEach(function (a) {
+ a(da);
+ });
+ this.zcb = function (a) {
+ da.addEventListener(ma.V.CD, function (b) {
+ b = b.cause;
+ b !== ma.le.Yw && b !== ma.le.KA && a.stop();
+ });
+ da.addEventListener(ma.V.Rm, function (b) {
+ var c,
+ f,
+ h,
+ m,
+ u,
+ p;
+ da.R2.Rm(b);
+ c = b.cause;
+ f = b.skip;
+ h = b.B1;
+ m = b.wla;
+ u = b.G;
+ b = b.Gi;
+ da.ha.Om.BAb(m, h);
+ if (c !== ma.le.KA && (K.config.Eob && c === ma.le.fF && da.qo.xN(), c !== ma.le.Yw))
+ if (f) {
+ if (a.Fi(h)) {
+ da.te.trace("Repositioned. Skipping from " + m + " to " + h);
+ c = function (a) {
+ da.log.error("streamingSession.skipped threw an exception", a);
+ a = Ua.Dc.EZ(fa.J.UZa, a);
+ da.lo(a.code, a);
+ };
+ try {
+ a.Vl(h).then(function (b) {
+ b.VH || (da.Jn.set(ma.ye.od), a.play());
+ })["catch"](c);
+ } catch (nc) {
+ c(nc);
+ }
+ } else
+ da.log.error("can skip returned false");
+ } else {
+ da.te.trace("Repositioned. Seeking from " + m + " to " + h);
+ try {
+ p = da.Bm(u).Ha;
+ a.Dz(b, da.xLa(p), p);
+ } catch (nc) {
+ da.log.error("streamingSession.seekByContentPts threw an exception", nc);
+ h = Ua.Dc.EZ(fa.J.SZa, nc);
+ da.lo(h.code, h);
+ }
+ }
+ });
+ a.addEventListener("maxPosition", function (a) {
+ var b,
+ c;
+ b = V.Gb(a.maxPts);
+ c = V.Gb(a.maxSeekPts);
+ if (a = da.uw[a.index])
+ (a.zs = b, a.Eyb = c);
+ da.$q || (da.$q = b);
+ });
+ a.addEventListener("segmentStarting", function (a) {
+ da.fireEvent(ma.V.UHb, a);
+ });
+ a.addEventListener("lastSegmentPts", function (a) {
+ da.fireEvent(ma.V.QHb, a);
+ });
+ a.addEventListener("segmentPresenting", function (a) {
+ da.fireEvent(ma.V.k3, a);
+ });
+ a.addEventListener("segmentAborted", function (a) {
+ da.fireEvent(ma.V.OHb, a);
+ });
+ a.addEventListener("manifestPresenting", function (a) {
+ da.IPa({
+ G: parseInt(a.movieId),
+ r2: a.previousMovieId ? parseInt(a.previousMovieId) : void 0,
+ FC: !1
+ });
+ });
+ a.addEventListener("error", function (a) {
+ "NFErr_MC_StreamingFailure" === a.error && (da.te.trace("receiving an unrecoverable streaming error: " + JSON.stringify(a)), da.te.trace("StreamingFailure, buffer status:" + JSON.stringify(da.mI())), O.zc(function () {
+ da.sd(fa.J.TZa, {
+ ja: a.nativeCode,
+ ab: a.errormsg,
+ kj: a.httpCode,
+ w1: a.networkErrorCode
+ });
+ }));
+ });
+ a.addEventListener("maxvideobitratechanged", function (a) {
+ da.Z0.push(a);
+ });
+ a.addEventListener("bufferingStarted", function () {
+ da.Jn.set(ma.ye.Xd);
+ });
+ a.addEventListener("locationSelected", function (a) {
+ da.fireEvent(ma.V.Ss, a);
+ });
+ a.addEventListener("serverSwitch", function (a) {
+ var b;
+ da.fireEvent(ma.V.wJ, a);
+ "video" === a.mediatype ? b = k.Hc.Na.VIDEO : "audio" === a.mediatype && (b = k.Hc.Na.AUDIO);
+ na.dc(b) && da.GIb(a.server, b);
+ });
+ a.addEventListener("bufferingComplete", function (b) {
+ da.te.trace("Buffering complete", {
+ Cause: "ASE Buffering complete",
+ evt: b
+ }, da.mI());
+ da.Vo = b;
+ da.Jn.set(ma.ye.od);
+ hb || (hb = !0, da.kd("pb"));
+ a.play();
+ });
+ a.addEventListener("audioTrackSwitchStarted", function () {
+ a.ERa();
+ K.config.sCb && !da.paused.value && (Rb = !0, da.paused.set(!0, {
+ lla: !0
+ }));
+ });
+ a.addEventListener("audioTrackSwitchComplete", function () {
+ da.paused.value && Rb && (Rb = !1, da.paused.set(!1, {
+ lla: !0
+ }));
+ da.pj.GAb();
+ });
+ a.addEventListener("asereportenabled", function () {
+ da.pO = !0;
+ });
+ a.addEventListener("asereport", function (a) {
+ da.fireEvent(ma.V.tG, a);
+ });
+ a.addEventListener("aseexception", function (a) {
+ da.fireEvent(ma.V.sG, a);
+ });
+ a.addEventListener("hindsightreport", function (a) {
+ var b,
+ c;
+ b = na.na(da.rf) ? 0 : da.rf;
+ c = a.report;
+ c && c.length && c.forEach(function (a) {
+ a.bst -= b;
+ a.pst -= b;
+ void 0 === a.nd && a.tput && (a.tput.ts -= b);
+ });
+ da.fia = {
+ AGb: c,
+ aub: a.hptwbr,
+ eNa: a.htwbr,
+ b2: a.pbtwbr
+ };
+ a.rr && (da.fia.ZUa = a.rr);
+ a.ra && (da.fia.XEb = a.ra);
+ });
+ a.addEventListener("streamingstat", function (a) {
+ var b;
+ b = a.bt;
+ da.Ia = a.location.bandwidth;
+ da.Lh = a.location.httpResponseTime;
+ da.HKb = a.stat.streamingBitrate;
+ b && (void 0 === da.IB && (da.IB = {
+ interval: K.config.HB,
+ startTime: b.startTime,
+ Tu: [],
+ Nw: []
+ }), da.IB.Tu = da.IB.Tu.concat(b.Tu), da.IB.Nw = da.IB.Nw.concat(b.Nw));
+ a.psdConservCount && (da.CTa = a.psdConservCount);
+ });
+ a.addEventListener("headerCacheDataHit", function (a) {
+ a.movieId === "" + da.G && (da.ao = a);
+ });
+ a.addEventListener("startEvent", function (a) {
+ t._cad_global.prefetchEvents && "adoptHcdEnd" === a.event && t._cad_global.prefetchEvents.wN(ia.Ne.qk.MEDIA, da.G);
+ });
+ a.addEventListener("requestComplete", function (a) {
+ var b;
+ b = (a = a && a.mediaRequest) && a.JG && a.JG.cadmiumResponse;
+ b && da.fireEvent(ma.V.ty, {
+ response: b,
+ G: da.Cv(a.Ha).G
+ });
+ });
+ a.addEventListener("streamSelected", function (a) {
+ var b,
+ c;
+ a.mediaType === k.Hc.Na.VIDEO ? (c = da.OMa(a.streamId), b = da.Bf) : a.mediaType === k.Hc.Na.AUDIO && (c = da.FMa(a.streamId), b = da.zl);
+ c && b ? b.set(c, {
+ CGa: a.movieTime,
+ meb: a.bandwidth
+ }) : da.te.error("not matching stream for streamSelected event", {
+ streamId: a.streamId
+ });
+ });
+ a.addEventListener("logdata", function (a) {
+ var b,
+ c;
+ if ("string" === typeof a.target && "object" === typeof a.fields) {
+ b = da.ho[a.target];
+ c = na.na(da.rf) ? da.rf : 0;
+ b || (b = da.ho[a.target] = {});
+ Object.keys(a.fields).forEach(function (f) {
+ var h,
+ m,
+ u,
+ p;
+ h = a.fields[f];
+ if ("object" !== typeof h || null === h)
+ b[f] = h;
+ else {
+ m = h.type;
+ if ("count" === m)
+ (void 0 === b[f] && (b[f] = 0), ++b[f]);
+ else if (void 0 !== h.value) {
+ if ("array" === m) {
+ m = b[f];
+ u = h.adjust;
+ p = h.value;
+ m || (m = b[f] = []);
+ u && 0 < u.length && u.forEach(function (a) {
+ p[a] -= c || 0;
+ });
+ m.push(p);
+ } else
+ "sum" === m ? (void 0 === b[f] && (b[f] = 0), b[f] += h.value) : b[f] = h.value;
+ } else
+ b[f] = h;
+ }
+ });
+ }
+ });
+ };
+ this.playbackRate.addListener(function () {
+ var a;
+ null === (a = da.Hb) || void 0 === a ? void 0 : a.OSa();
+ });
+ this.rd.addListener(function (a) {
+ var b,
+ c,
+ f,
+ h;
+ if (da.Hb)
+ if (a.ny && a.ny.NEa)
+ da.te.trace("Not processing already applied track", null === (b = a.newValue) || void 0 === b ? void 0 : b.cb);
+ else {
+ h = a.newValue;
+ da.Hb.eXa({
+ BB: h.DC,
+ toJSON: function () {
+ return h.fh;
+ }
+ }) ? da.te.trace("ASE accepted the audio track switch", null === (f = a.newValue) || void 0 === f ? void 0 : f.cb) : (da.te.trace("ASE rejected the audio track switch", null === (c = a.newValue) || void 0 === c ? void 0 : c.cb), a.oldValue.DC !== h.DC && da.rd.set(a.oldValue, {
+ NEa: !0
+ }));
+ }
+ });
+ this.addEventListener(ma.V.Xu, function (a) {
+ a.cause == G.T8 && (da.qm.set(ma.ye.Xd), da.Hb.qYa(da.pj.fLa()));
+ });
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.jya = void 0;
+ k = a(57);
+ l = a(198);
+ r = a(197);
+ h = a(125);
+ p = a(308);
+ m = a(634);
+ f = a(633);
+ u = a(305);
+ w = a(10);
+ g = a(193);
+ K = a(12);
+ C = a(66);
+ M = a(304);
+ H = a(55);
+ G = a(56);
+ T = a(78);
+ n = a(303);
+ q = a(630);
+ Z = a(299);
+ B = a(6);
+ V = a(3);
+ fa = a(2);
+ ia = a(121);
+ Y = a(17);
+ pa = a(93);
+ X = a(22);
+ O = a(58);
+ na = a(15);
+ ha = a(124);
+ P = a(298);
+ Ha = a(113);
+ ja = a(191);
+ ya = a(23);
+ za = a(103);
+ ma = a(13);
+ Ua = a(48);
+ z = a(196);
+ E = a(296);
+ ib = a(133);
+ c.prototype.kd = function (a, b) {
+ b = void 0 === b ? this.WB : b;
+ this.UI[b].kd(a);
+ };
+ c.prototype.Iv = function (a) {
+ this.ha.Iv(a);
+ };
+ c.prototype.Lub = function () {
+ var a;
+ a = this;
+ this.rd.addListener(function (b) {
+ return a.ha.rd.set(b.newValue);
+ });
+ this.wg.addListener(function (b) {
+ return a.ha.wg.set(b.newValue);
+ });
+ this.Bc.addListener(function (b) {
+ return a.ha.Bc.set(b.newValue);
+ });
+ this.Lj.addListener(function (b) {
+ return a.ha.Lj.set(b.newValue);
+ });
+ this.Kt.addListener(function (b) {
+ return a.ha.Kt.set(b.newValue);
+ });
+ this.Bf.addListener(function (b) {
+ return a.ha.Bf.set(b.newValue);
+ });
+ this.zl.addListener(function (b) {
+ return a.ha.zl.set(b.newValue);
+ });
+ this.wf.addListener(function (b) {
+ return a.ha.wf.set(b.newValue);
+ });
+ this.tg.addListener(function (b) {
+ return a.ha.tg.set(b.newValue);
+ });
+ this.bb.addListener(function (b) {
+ return a.ha.bb.set(b.newValue);
+ });
+ this.playbackRate.addListener(function (b) {
+ return a.ha.playbackRate.set(b.newValue);
+ });
+ this.VUa();
+ };
+ c.prototype.VUa = function () {
+ this.ha !== this.$na && (this.ha.bb.set(this.bb.value), this.ha.playbackRate.set(this.playbackRate.value), this.wr(function (a) {
+ return a.rd;
+ }, this.Upa), this.wr(function (a) {
+ return a.wg;
+ }, this.yNb), this.wr(function (a) {
+ return a.Kt;
+ }, this.uNb), this.wr(function (a) {
+ return a.Bc;
+ }, this.vNb), this.wr(function (a) {
+ return a.Lj;
+ }, this.VMb), this.wr(function (a) {
+ return a.Bf;
+ }, this.xNb), this.wr(function (a) {
+ return a.zl;
+ }, this.WMb), this.wr(function (a) {
+ return a.tg;
+ }, this.kNb), this.wr(function (a) {
+ return a.wf;
+ }, this.lNb), this.wr(function (a) {
+ return a.bb;
+ }, this.fNb), this.wr(function (a) {
+ return a.playbackRate;
+ }, this.r4), this.Bc.set(this.ha.Bc.value), this.rd.set(this.ha.rd.value, {
+ NEa: !0
+ }), this.wg.set(this.ha.wg.value), this.Lj.set(this.ha.Lj.value), this.Kt.set(this.ha.Kt.value), this.Bf.set(this.ha.Bf.value), this.zl.set(this.ha.zl.value), this.$na = this.ha);
+ };
+ c.prototype.wr = function (a, b) {
+ this.$na && a(this.$na).removeListener(b);
+ a(this.ha).addListener(b);
+ };
+ c.prototype.load = function (a) {
+ var b,
+ c;
+ b = this;
+ this.load = function () {};
+ this.YSa = a;
+ if (this.state.value == ma.ob.UE) {
+ this.te.info("Playback loading", this);
+ this.wAb();
+ this.kd("asl_load_start");
+ a = this.vG;
+ c = a.endTime;
+ na.dc(a.startTime) ? na.dc(c) ? this.kd("asl_ended") : this.kd("asl_in_progress") : this.kd("asl_not_started");
+ this.vG.IP(function (a) {
+ b.kd("asl_load_complete");
+ a.U ? b.kjb() : b.lo(a.errorCode || fa.J.Dua, a);
+ });
+ }
+ };
+ c.prototype.FDb = function () {
+ var a;
+ try {
+ if (this.state.value === ma.ob.LOADING) {
+ a = {
+ width: 1,
+ height: 1,
+ Vba: 1
+ };
+ this.wC().forEach(function (b) {
+ a.width * a.height < b.width * b.height && (a.width = b.width, a.height = b.height, a.Vba = b.Vba);
+ });
+ this.eK = a;
+ this.GB = this.dy.FEa({
+ kE: V.Gb(this.T),
+ G: this.G,
+ DQ: this.zs,
+ Ta: this.Ta
+ }).ca(V.ia);
+ this.jca();
+ this.ckb();
+ }
+ } catch (lb) {
+ this.lo(fa.J.w3a, {
+ ja: fa.I.Df,
+ ab: X.Fd(lb)
+ });
+ }
+ };
+ c.prototype.Pba = function (a, b, c) {
+ var f,
+ h,
+ m;
+ b = void 0 === b ? this.OH.TB() : b;
+ c = void 0 === c ? this.va.Yb() : c;
+ f = !!K.config.dZa && !(b % K.config.dZa);
+ h = a.ma;
+ m = a.Ha;
+ a = a.Ta;
+ b = this.cma(G.aF.index++, h, m, a, b, c, f, this.ha, this.uha);
+ this.UI[h] = b;
+ 1 < this.uw.length && (b.qp = this.O0.create(this, b, !1));
+ b.WP = new T.Cwa(this, b);
+ return h;
+ };
+ c.prototype.xLa = function (a) {
+ return a ? void 0 : 0;
+ };
+ c.prototype.Bm = function (a) {
+ return this.UI[a];
+ };
+ c.prototype.Cv = function (a) {
+ return this.uw.find(function (b) {
+ return b.Ha === a;
+ }) || this.ha;
+ };
+ c.prototype.Irb = function (a) {
+ return this.uw.find(function (b) {
+ var c,
+ f;
+ return (null === (f = null === (c = b.Jf) || void 0 === c ? void 0 : c.He) || void 0 === f ? void 0 : f.sessionId) === a;
+ }) || this.ha;
+ };
+ c.prototype.REb = function (a, b) {
+ var c,
+ f;
+ b = void 0 === b ? !0 : b;
+ c = this;
+ f = this.Bm(a);
+ return this.uVa(f).then(function (a) {
+ var h;
+ if (!c.Hb)
+ throw new Ua.Dc(fa.J.o8, fa.I.MZa);
+ c.tTa(a, f);
+ a = [f.mc.$Ha, f.mc.fIa];
+ h = !1;
+ try {
+ h = !!c.Hb.rEa(f.xa.Wf, {
+ lMb: a,
+ replace: !1,
+ T: f.Ta.T,
+ oa: f.Ta.oa,
+ sD: !0,
+ ij: !f.Rv,
+ BFa: b,
+ qs: c.bea(f.G),
+ oub: !0
+ }, f.Ha);
+ } catch (mb) {
+ throw Ua.Dc.EZ(fa.J.o8, mb);
+ }
+ if (!h)
+ throw new Ua.Dc(fa.J.o8, fa.I.NZa);
+ return f.Rv ? c.ub.ak.zUa(f) : Promise.resolve();
+ })["catch"](function (a) {
+ c.log.error("queueManifest failed", a);
+ throw c.Mi(a.code, a);
+ });
+ };
+ c.prototype.wpb = function () {
+ if (na.na(this.Yc.ats) && na.na(this.Yc.at))
+ return this.Yc.at - this.Yc.ats;
+ };
+ c.prototype.HKa = function () {
+ var a,
+ b;
+ a = this.AS();
+ b = this.$M();
+ return Math.min(a, b);
+ };
+ c.prototype.MR = function () {
+ this.background || (this.te.info("Starting inactivity monitor for movie " + this.G), new M.ava(this));
+ };
+ c.prototype.close = function (a) {
+ a && (this.state.value == ma.ob.CLOSED ? a() : this.addEventListener(ma.V.closed, function () {
+ a();
+ }));
+ this.Roa();
+ };
+ c.prototype.sd = function (a, b, c, f) {
+ a = this.Mi(a, b, c);
+ this.NB(a, f);
+ };
+ c.prototype.NB = function (a, b) {
+ var c,
+ f,
+ h;
+ c = this;
+ if (this.state.value == ma.ob.UE)
+ this.lj || (this.lj = a, this.load());
+ else {
+ b && (this.state.value == ma.ob.CLOSED ? b() : this.addEventListener(ma.V.closed, function () {
+ b();
+ }));
+ f = function () {
+ c.Roa(a);
+ };
+ h = K.config.iIa && a && K.config.iIa[a.errorCode];
+ na.Qv(h) && (h = X.Ud(h));
+ this.te.error("Fatal playback error", {
+ Error: "" + a,
+ HandleDelay: "" + h
+ });
+ 0 <= h ? setTimeout(f, h) : f();
+ }
+ };
+ c.prototype.nS = function () {
+ this.Db.$b(ma.V.nS);
+ };
+ c.prototype.Po = function (a, b) {
+ b = void 0 === b ? this.Ha : b;
+ this.WSa.push(this.va.Yb().ca(V.ia) + "-" + b + "-" + a);
+ };
+ c.prototype.Fob = function () {
+ this.SJa();
+ };
+ c.prototype.jha = function () {
+ var a;
+ a = this.Hb;
+ return a && (a = a.YO().id, void 0 !== a) ? a : null;
+ };
+ c.prototype.uC = function () {
+ return void 0 !== this.ha.ZX && void 0 === this.Hb ? this.ha.ZX : this.uha(this.bb.value, this.Ha);
+ };
+ c.prototype.iha = function () {
+ var a;
+ a = this.uha(this.pj.fLa());
+ return null === a ? null : Math.min(this.zs.ca(V.ia), Math.max(0, a));
+ };
+ c.prototype.PZ = function () {
+ var a,
+ b;
+ return null === (b = null === (a = this.xa) || void 0 === a ? void 0 : a.Wf.qq) || void 0 === b ? void 0 : b.Ya;
+ };
+ c.prototype.iNb = function (a) {
+ this.Ta = Ha.Lka(this.Ta, a);
+ this.jca();
+ };
+ c.prototype.wC = function (a) {
+ a = void 0 === a ? this.G : a;
+ return (a = this.Bm(a).wg) && a.value ? a.value.pc : [];
+ };
+ c.prototype.ztb = function (a) {
+ for (var b = U(this.uw), c = b.next(); !c.done; c = b.next()) {
+ if (c = (c = c.value.Nj) && c.find(function (b) {
+ return b.id === a;
+ }))
+ return c;
+ }
+ };
+ c.prototype.TDb = function (a) {
+ a = void 0 === a ? this.ha : a;
+ a.Bc.value ? this.ro.QDb(a.Bc.value) : Promise.resolve();
+ };
+ c.prototype.FMa = function (a) {
+ for (var b = U(this.uw), c = b.next(); !c.done; c = b.next()) {
+ for (var c = U(c.value.In), f = c.next(); !f.done; f = c.next()) {
+ if (f = f.value.pc.find(function (b) {
+ return b.vd === a;
+ }))
+ return f;
+ }
+ }
+ };
+ c.prototype.OMa = function (a) {
+ for (var b = U(this.uw), c = b.next(); !c.done; c = b.next()) {
+ for (var c = U(c.value.dn), f = c.next(); !f.done; f = c.next()) {
+ if (f = (f = f.value) && f.pc.find(function (b) {
+ return b.vd === a;
+ }))
+ return f;
+ }
+ }
+ };
+ c.prototype.my = function () {
+ var a,
+ b,
+ c;
+ return null !== (c = null === (b = null === (a = this.k2) || void 0 === a ? void 0 : a.TN) || void 0 === b ? void 0 : b.call(a)) && void 0 !== c ? c : this.wHa().Qc;
+ };
+ c.prototype.$Va = function (a) {
+ var b;
+ this.Hb && this.Bm(a) && ((null === (b = this.k2) || void 0 === b ? 0 : b.TN) ? this.k2.vYa() : (b = this.bea(a), this.Hb.Cw(b, a)));
+ };
+ c.prototype.Xvb = function () {
+ return "trailer" === this.we;
+ };
+ c.prototype.QNa = function () {
+ return !!this.we && 0 <= this.we.indexOf("billboard");
+ };
+ c.prototype.awb = function () {
+ return !!this.we && 0 <= this.we.indexOf("video-merch");
+ };
+ c.prototype.Bvb = function () {
+ return !!this.we && 0 <= this.we.indexOf("mini-modal");
+ };
+ c.prototype.HC = function () {
+ return this.Xvb() || this.QNa() || this.awb() || this.Bvb();
+ };
+ c.prototype.Fga = function () {
+ var h;
+ if (this.dn) {
+ for (var a, b = 0; b < this.dn.length; b++) {
+ for (var c = this.dn[b], f = 0; f < c.pc.length; f++) {
+ h = c.pc[f];
+ na.na(h.cea) && na.na(h.jY) && na.na(h.iY) && na.na(h.hY) && (0 < h.cea || 0 < h.jY) && (h = h.hY / h.iY, a = na.na(a) ? Math.min(a, h) : h);
+ }
+ }
+ return a;
+ }
+ };
+ c.prototype.bsb = function () {
+ return {
+ tr: this.Bpa,
+ rt: this.xna
+ };
+ };
+ c.prototype.Bv = function (a) {
+ return this.ho[a];
+ };
+ c.prototype.nfb = function () {
+ return this.gl ? this.va.Yb().ca(V.ia) - this.gl : this.Aa.$e.ca(V.ia) - this.KZ();
+ };
+ c.prototype.Xca = function () {
+ var a;
+ if (this.gl)
+ return this.va.Yb().ca(V.ia) - this.gl;
+ a = this.va.LC;
+ return this.PSa - (this.ek.ca(V.ia) + a.ca(V.ia));
+ };
+ c.prototype.sfb = function () {
+ return this.gl ? this.va.Yb().ca(V.ia) - this.gl : this.PSa - this.KZ();
+ };
+ c.prototype.oAb = function (a) {
+ var b,
+ c;
+ b = this.rf;
+ c = {};
+ X.Ed(a, function (a, f) {
+ c[a] = f.map(function (a) {
+ return a - b;
+ });
+ });
+ return c;
+ };
+ c.prototype.Gpb = function () {
+ var a,
+ b;
+ a = this.rf;
+ b = {};
+ X.Ed(this.Fca, function (c, f) {
+ b[c] = f.map(function (b) {
+ return b - a;
+ });
+ });
+ return p.ps ? {
+ level: p.ps.yLa(),
+ charging: p.ps.Dga(),
+ statuses: b
+ }
+ : null;
+ };
+ c.prototype.n_ = function () {
+ this.RJa();
+ return this.CS;
+ };
+ c.prototype.KZ = function () {
+ var a;
+ a = this.Ta.m4;
+ a = na.na(a) ? a : this.ek.ca(V.ia) + this.va.LC.ca(V.ia);
+ Y.Ra(na.Pv(a));
+ return a;
+ };
+ c.prototype.pha = function () {
+ return this.va.Yb().ca(V.ia) - this.ek.ca(V.ia);
+ };
+ c.prototype.nJb = function () {
+ this.CS.HasRA = !0;
+ };
+ c.prototype.EOb = function () {
+ this.PJb = !0;
+ };
+ c.prototype.H1 = function () {
+ this.lUa();
+ };
+ c.prototype.AS = function () {
+ var a;
+ a = this.sX();
+ return a && a.vbuflmsec || 0;
+ };
+ c.prototype.$M = function () {
+ var a;
+ a = this.sX();
+ return a && a.abuflmsec || 0;
+ };
+ c.prototype.iqa = function () {
+ var a;
+ a = this.sX();
+ return a && a.vbuflbytes || 0;
+ };
+ c.prototype.oca = function () {
+ var a;
+ a = this.sX();
+ return a && a.abuflbytes || 0;
+ };
+ c.prototype.uVa = function (a) {
+ var b,
+ c,
+ f,
+ h;
+ a = void 0 === a ? this.ha : a;
+ b = this;
+ c = K.config.z2.enabled ? za.vk.q9 : this.HC() ? za.vk.XU : za.vk.cm;
+ c = {
+ ga: a.ga,
+ Ta: a.Ta,
+ ma: a.G,
+ xv: c
+ };
+ f = a.G !== this.ha.G;
+ h = this.va.Yb().ca(V.ia);
+ return this.eka.Ge(this.log, c).then(function (a) {
+ var c;
+ c = b.va.Yb().ca(V.ia);
+ f && (a.zz = h, a.ED = c);
+ return a;
+ })["catch"](function (a) {
+ b.log.error("PBO manifest failed", a);
+ return Promise.reject(a);
+ });
+ };
+ c.prototype.tTa = function (a, b) {
+ b = void 0 === b ? this : b;
+ b.xa = a;
+ a = this.fka.create(this).Nla(a);
+ b.mc = a;
+ b.wg.set(a.zea);
+ b.rd.set(a.sY);
+ b.Bc.set(a.yea);
+ };
+ c.prototype.dKa = function (a, b) {
+ this.IPa({
+ G: a,
+ r2: this.WB,
+ FC: void 0 === b ? !1 : b
+ });
+ };
+ c.prototype.atb = function (a, b) {
+ this.Bm(a.ma) || this.Pba(a);
+ this.dKa(a.ma, !0);
+ this.NB(b);
+ };
+ c.prototype.HMa = function (a, b) {
+ if (!this.di.w4)
+ return !0;
+ a = this.$q.ca(V.ia) - a;
+ return 0 > a || a > b;
+ };
+ c.prototype.IPa = function (a) {
+ var b,
+ c;
+ if (a.r2) {
+ if (a.G === this.WB)
+ return;
+ b = this.Bm(a.G);
+ c = b.xa;
+ c && na.dc(c.zz) && na.dc(c.ED) && b.Iv({
+ pr_ats: c.zz,
+ pr_at: c.ED
+ });
+ this.fireEvent(ma.V.iI, {
+ G: this.WB
+ });
+ this.WB = a.G;
+ this.jca();
+ a.FC || this.VUa();
+ this.UH = this.Aa.t3;
+ this.ha.gl || (this.ha.gl = this.va.Yb().ca(V.ia));
+ }
+ ("boolean" === typeof this.Ta.jH ? this.Ta.jH : K.config.jH) && !a.FC && this.Kpa.jH(this);
+ this.fireEvent(ma.V.rp, a);
+ };
+ c.prototype.kjb = function () {
+ try {
+ this.LN = new z.qsa(this);
+ this.qp = this.O0.create(this, this.ha, !0);
+ K.config.Ffb && new E.Pta(this, this.eh, this.log);
+ K.config.BN && this.BN(this);
+ this.hOb();
+ } catch (Ba) {
+ this.lo(fa.J.v3a, {
+ ja: fa.I.Df,
+ ab: X.Fd(Ba)
+ });
+ }
+ };
+ c.prototype.hOb = function () {
+ this.lj ? this.NB(this.lj) : na.Xia(this.G) ? this.bgb() : this.lo(fa.J.j3a, {
+ ab: "" + this.G
+ });
+ };
+ c.prototype.bgb = function () {
+ var a;
+ a = l.WD.GVa;
+ a ? a.U ? this.wda() : this.lo(fa.J.Xua, a) : (Y.Ra(!K.config.XY), this.Fba());
+ };
+ c.prototype.wda = function () {
+ var a;
+ a = this;
+ !this.background && K.config.wda ? G.W8(function () {
+ a.Fba();
+ }, this) : this.Fba();
+ };
+ c.prototype.Fba = function () {
+ var a;
+ a = this;
+ this.state.value == ma.ob.LOADING && (K.config.rfa && !this.HC() ? l.WD.uB(G.gya, function (b) {
+ b.U ? (a.L0 = b.L0, K.config.q3 ? a.fN() : a.eoa()) : a.lo(fa.J.Wua);
+ }, !0) : K.config.q3 ? this.fN() : this.eoa());
+ };
+ c.prototype.eoa = function () {
+ var a;
+ a = this;
+ this.state.value == ma.ob.LOADING && (this.kd("ic"), this.cDb.eIb(function (b) {
+ b.error && a.log.error("Error sending persisted playdata", fa.Vp(b));
+ try {
+ a.fN();
+ } catch (hb) {
+ a.log.error("playback.authorize threw an exception", hb);
+ a.lo(fa.J.d_a, {
+ ja: fa.I.Df,
+ ab: X.Fd(hb)
+ });
+ }
+ }));
+ };
+ c.prototype.fN = function () {
+ var a,
+ b;
+ a = this;
+ if (this.state.value == ma.ob.LOADING) {
+ this.log.info("Authorizing", this);
+ b = this.va.Yb().ca(V.ia);
+ this.kd("ats");
+ this.LN.fN(function (c) {
+ var f;
+ if (a.state.value == ma.ob.LOADING) {
+ a.kd("at");
+ f = a.xa;
+ a.Iv({
+ pr_ats: f && na.dc(f.zz) ? f.zz : b,
+ pr_at: f && na.dc(f.ED) ? f.ED : a.va.Yb().ca(V.ia)
+ });
+ c.U ? 0 < a.mc.Nj.length && a.mc.sY && a.mc.zea && a.mc.yea ? a.uEb() : a.lo(fa.J.d4a, a.gka(a.mc)) : a.lo(fa.J.MANIFEST, c);
+ }
+ });
+ }
+ };
+ c.prototype.uEb = function () {
+ var a;
+ a = this;
+ this.YSa ? (this.log.info("Processing post-authorize", this), this.YSa(this, function (b) {
+ b.U ? a.AYa() : a.lo(fa.J.A3a, b);
+ })) : this.AYa();
+ };
+ c.prototype.AYa = function () {
+ var b,
+ c,
+ f;
+ if (this.state.value == ma.ob.LOADING) {
+ b = {};
+ this.qo = h.yl;
+ K.config.Dob && this.qo.xN();
+ h.Uc.set(a(156)(K.config), !0, B.Fh("ASE"));
+ h.Uc.set({
+ maxNumberTitlesScheduled: K.config.bTa ? K.config.bTa.maxNumberTitlesScheduled : 1
+ }, !0, this.te);
+ K.config.xhb && 3E5 > this.xa.Wf.duration ? h.Uc.MI({
+ expandDownloadTime: !1
+ }, !0, this.te) : h.Uc.MI({
+ expandDownloadTime: h.Uc.DSa().expandDownloadTime
+ }, !0, this.te);
+ this.background || K.config.GDb && "postplay" === this.we ? h.Uc.MI({
+ initBitrateSelectorAlgorithm: "historical"
+ }, !0, this.te) : h.Uc.MI({
+ initBitrateSelectorAlgorithm: h.Uc.DSa().initBitrateSelectorAlgorithm
+ }, !0, this.te);
+ f = this.wg && this.wg.value && this.wg.value.pc;
+ f && f.length && (c = f[0].hg);
+ h.Uc.MI(K.Gda(this.Ta.$j, this.Ta.p0, c), !0, this.te);
+ b = this.ad.YC(b, K.Hda(this.we));
+ this.JKb = h.Uc.$o(b);
+ k.platform.events.emit("networkchange", this.mc.yIb);
+ this.FDb();
+ }
+ };
+ c.prototype.ckb = function () {
+ var a,
+ b,
+ c,
+ h,
+ u;
+ a = this;
+ try {
+ this.ub = new m.twa(this);
+ this.ub.open();
+ b = new Promise(function (b) {
+ a.ub.addEventListener(ja.ri.sWa, b);
+ });
+ this.pj = new P.xwa(this);
+ c = {
+ Kf: !1,
+ $J: K.config.$J,
+ v4: K.config.SY,
+ LP: !1,
+ ij: !this.Rv,
+ sD: !!this.Ta.p0,
+ oa: this.Ta.oa,
+ tOb: this.mc.sY.cn === ib.sn.NONE
+ };
+ h = {
+ oD: this.log,
+ Ll: this.Ll,
+ sessionId: this.G + "-" + this.ga,
+ ga: this.ga,
+ kD: this.Ek,
+ Ch: ha.Ah ? ha.Ah.Ch : void 0,
+ sy: 0 === K.config.jO || 0 !== this.ga % K.config.jO ? !1 : !0
+ };
+ this.YIa = h.sy;
+ u = this.Bm(this.G).Ha;
+ this.Hb = this.qo.Nn(this.xa.Wf, [this.mc.$Ha, this.mc.fIa], this.T, c, h, void 0, {
+ Sd: function () {
+ return a.bb.value;
+ },
+ Am: function () {
+ return a.playbackRate.value;
+ },
+ $ga: function () {
+ return a.ub;
+ }
+ }, this.JKb, this.bea(this.G), u);
+ this.zcb(this.Hb);
+ b.then(function () {
+ a.state.value !== ma.ob.CLOSING && a.state.value !== ma.ob.CLOSED && a.Hb.open();
+ });
+ this.bb.set(this.T);
+ this.ro = new f.wAa(this);
+ if ("boolean" === typeof this.Ta.N2 ? this.Ta.N2 : K.config.N2)
+ this.gS = new q.xAa(this);
+ this.MR();
+ G.Y8.forEach(function (b) {
+ b(a);
+ });
+ this.vAb();
+ } catch (Tc) {
+ this.lo(fa.J.x3a, {
+ ja: fa.I.Df,
+ ab: X.Fd(Tc)
+ });
+ }
+ };
+ c.prototype.wAb = function () {
+ Y.Ra(this.state.value == ma.ob.UE);
+ this.rf = this.va.Yb().ca(V.ia);
+ this.state.set(ma.ob.LOADING);
+ t._cad_global.prefetchEvents && t._cad_global.prefetchEvents.jDb(this.G);
+ };
+ c.prototype.lo = function (a, b) {
+ this.done || (this.done = !0, b instanceof Ua.Dc ? this.sd(b.code, b) : this.sd(a, b));
+ };
+ c.prototype.BN = function (a) {
+ var c,
+ f;
+ function b() {
+ var b,
+ f;
+ b = p.ps.Dga() + "";
+ f = a.Fca[b];
+ f || (f = a.Fca[b] = []);
+ f.push(c.va.Yb().ca(V.ia));
+ c.log.trace("charging change event", {
+ level: p.ps.yLa(),
+ charging: p.ps.Dga()
+ });
+ }
+ c = this;
+ f = p.ps.n0a;
+ p.ps.addEventListener(f, b);
+ a.addEventListener(ma.V.If, function () {
+ p.ps.removeEventListener(f, b);
+ });
+ };
+ c.prototype.Roa = function (a) {
+ var b;
+ b = this;
+ if (this.state.value == ma.ob.UE || this.state.value == ma.ob.LOADING || this.state.value == ma.ob.od) {
+ this.te.info("Playback closing", this, a ? {
+ ErrorCode: a.DY
+ }
+ : void 0);
+ this.Po("Closing");
+ H.Te.removeListener(H.Hl, this.FRa);
+ this.lj = a;
+ this.RJa();
+ this.Hb && this.Hb.flush();
+ try {
+ this.Db.$b(ma.V.If, {
+ movieId: this.WB
+ });
+ } catch (hb) {
+ this.te.error("Unable to fire playback closing event", hb);
+ }
+ this.state.set(ma.ob.CLOSING);
+ this.ha.ZX = this.uC();
+ this.RZa();
+ this.PJb || O.zc(function () {
+ return b.lUa();
+ });
+ }
+ };
+ c.prototype.SJa = function () {
+ var a;
+ a = this.bb.value;
+ this.Hwb != a && (this.Hwb = a, this.Db.$b(ma.V.ppa));
+ };
+ c.prototype.lUa = function () {
+ var a,
+ b;
+ a = this;
+ Y.Ra(this.state.value == ma.ob.CLOSING);
+ b = this.L0;
+ this.L0 = void 0;
+ b ? l.WD.release(b, function (b) {
+ Y.Ra(b.U);
+ a.Bda();
+ }) : this.Bda();
+ };
+ c.prototype.RZa = function () {
+ this.Hb && (this.Hb.close(), this.Hb.yc());
+ this.qo && this.lj && this.qo.xN();
+ delete this.Hb;
+ delete this.qo;
+ };
+ c.prototype.Bda = function () {
+ var a;
+ this.Bda = w.ff;
+ Y.Ra(this.state.value == ma.ob.CLOSING);
+ a = G.ln.indexOf(this);
+ Y.Ra(0 <= a);
+ G.ln.splice(a, 1);
+ this.state.set(ma.ob.CLOSED);
+ this.Db.$b(ma.V.closed, void 0, !0);
+ this.Db.Fg();
+ delete this.Jf;
+ this.ha.H1();
+ };
+ c.prototype.jca = function () {
+ this.Ta.playbackState && ("number" === typeof this.Ta.playbackState.volume && this.volume.set(pa.jn(this.Ta.playbackState.volume, 0, 1)), "boolean" === typeof this.Ta.playbackState.muted && this.muted.set(this.Ta.playbackState.muted), "number" === typeof this.Ta.playbackState.playbackRate && this.playbackRate.set(pa.jn(this.Ta.playbackState.playbackRate, 0, 2)));
+ };
+ c.prototype.RJa = function () {
+ this.Db.$b(ma.V.hWa, {
+ CS: this.CS
+ });
+ };
+ c.prototype.GIb = function (a, b) {
+ var c;
+ c = this.Nj.filter(function (b) {
+ return b.id === a;
+ })[0];
+ c && this.tc[b].set(c);
+ };
+ c.prototype.mI = function () {
+ return {
+ AudioBufferLength: this.$M(),
+ VideoBufferLength: this.AS()
+ };
+ };
+ c.prototype.sX = function () {
+ if (this.Hb)
+ return this.Hb.b0(!1);
+ };
+ c.prototype.vAb = function () {
+ this.state.value == ma.ob.LOADING && this.state.set(ma.ob.od);
+ };
+ c.prototype.wHa = function (a) {
+ var b,
+ c;
+ a = void 0 === a ? this.G : a;
+ b = void 0;
+ c = this.Bm(a);
+ a = this.wC(a).filter(function (a) {
+ var f;
+ f = c.WP.Ct(a);
+ f && (b = b || [], b.push({
+ stream: a,
+ CY: f
+ }));
+ return !f;
+ });
+ 0 === a.length && this.log.error("FilteredVideoStreamList is empty. Media stream filters are not setup correctly.");
+ for (var f = 0; f < a.length; f++) {
+ a[f].lower = a[f - 1];
+ a[f].Stb = a[f + 1];
+ }
+ return {
+ Qc: a,
+ Flb: b
+ };
+ };
+ c.prototype.bea = function (a) {
+ var b,
+ c,
+ f,
+ h,
+ m,
+ u,
+ p;
+ a = void 0 === a ? this.G : a;
+ b = this.wHa(a);
+ c = b.Qc;
+ f = b.Flb;
+ h = [];
+ this.wC(a).forEach(function (a) {
+ -1 == h.indexOf(a.hg) && h.push(a.hg);
+ });
+ m = null;
+ u = null;
+ c.forEach(function (a) {
+ null === m ? u = m = a.R : u < a.R ? u = a.R : m > a.R && (m = a.R);
+ });
+ p = [];
+ h.forEach(function (a) {
+ var b;
+ b = {
+ ranges: [],
+ profile: a
+ };
+ m && u && (b.ranges.push({
+ min: m,
+ max: u
+ }), f && (b.disallowed = f.filter(function (b) {
+ return b.stream.hg === a;
+ }).map(function (a) {
+ return {
+ stream: {
+ bitrate: a.stream.R
+ },
+ disallowedBy: a.CY
+ };
+ })), p.push(b));
+ });
+ return p;
+ };
+ wa.Object.defineProperties(c.prototype, {
+ uw: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ var a;
+ a = this;
+ return Object.keys(this.UI).map(function (b) {
+ return a.UI[b];
+ });
+ }
+ },
+ ha: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.UI[this.WB];
+ }
+ },
+ rOa: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return 1 === this.uw.length;
+ }
+ },
+ T: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return void 0 !== this.GB ? this.GB : this.uw[0].Ta.T || 0;
+ }
+ },
+ mc: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.ha.mc;
+ },
+ set: function (a) {
+ this.ha.mc = a;
+ }
+ },
+ vZ: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.ha.Ta.vZ;
+ }
+ },
+ wZ: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.ha.Ta.wZ;
+ }
+ },
+ index: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.ha.index;
+ }
+ },
+ Ha: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.ha.Ha;
+ }
+ },
+ Jf: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.ha.Jf;
+ },
+ set: function (a) {
+ this.ha.Jf = a;
+ }
+ },
+ gl: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.ha.gl;
+ },
+ set: function (a) {
+ this.ha.gl = a;
+ }
+ },
+ $u: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.ha.$u;
+ },
+ set: function (a) {
+ this.ha.$u = a;
+ }
+ },
+ iy: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.ha.iy;
+ },
+ set: function (a) {
+ this.ha.iy = a;
+ }
+ },
+ Z_: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.ha.Z_;
+ },
+ set: function (a) {
+ this.ha.Z_ = a;
+ }
+ },
+ xa: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.ha.xa;
+ },
+ set: function (a) {
+ this.ha.xa = a;
+ }
+ },
+ GB: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.ha.GB;
+ },
+ set: function (a) {
+ this.ha.GB = a;
+ }
+ },
+ ZR: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.ha.ZR;
+ },
+ set: function (a) {
+ this.ha.ZR = a;
+ }
+ },
+ Ta: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.ha.Ta;
+ },
+ set: function (a) {
+ this.ha.Ta = a;
+ }
+ },
+ qp: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.ha.qp;
+ },
+ set: function (a) {
+ this.ha.qp = a;
+ }
+ },
+ Om: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.ha.Om;
+ }
+ },
+ G: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.ha.G;
+ }
+ },
+ we: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.ha.we;
+ }
+ },
+ In: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.ha.In;
+ }
+ },
+ dn: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.ha.dn;
+ }
+ },
+ Lw: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.ha.Lw;
+ }
+ },
+ fl: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.ha.fl;
+ }
+ },
+ sg: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.ha.sg;
+ }
+ },
+ Rv: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.ha.Rv;
+ }
+ },
+ gr: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.ha.gr;
+ }
+ },
+ Hk: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.ha.Hk;
+ }
+ },
+ Nj: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.ha.Nj;
+ }
+ },
+ p2: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.ha.p2;
+ }
+ },
+ zs: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.ha.zs;
+ },
+ set: function (a) {
+ this.ha.zs = a;
+ }
+ },
+ ga: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.ha.ga;
+ }
+ },
+ li: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.ha.li;
+ }
+ },
+ ek: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.ha.ek;
+ }
+ },
+ UH: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.ha.UH;
+ },
+ set: function (a) {
+ this.ha.UH = a;
+ }
+ },
+ Ek: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.ha.Ek;
+ }
+ },
+ ND: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.ha.ND;
+ }
+ },
+ background: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.ha.background;
+ },
+ set: function (a) {
+ this.ha.background = a;
+ }
+ },
+ hea: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.ha.hea;
+ }
+ },
+ Yc: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.ha.Yc;
+ }
+ },
+ Ln: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.ha.Ln;
+ }
+ },
+ $ea: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.ha.$ea;
+ }
+ },
+ WP: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.ha.WP;
+ }
+ },
+ fh: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return {
+ MovieId: this.G,
+ TrackingId: this.li,
+ Xid: this.ga
+ };
+ }
+ }
+ });
+ b.jya = c;
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.x9 = void 0;
+ b.x9 = "RepositionTraceSymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.b9 = void 0;
+ b.b9 = "PlaybackInfoPanelFactorySymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.c9 = void 0;
+ b.c9 = "PlaybackSegmentDataFactorySymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.b5 = void 0;
+ b.b5 = "BandwidthMeterFactorySymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.tn = void 0;
+ d = b.tn || (b.tn = {});
+ d[d.tU = 0] = "NOT_LOADED";
+ d[d.LOADING = 1] = "LOADING";
+ d[d.LOADED = 2] = "LOADED";
+ d[d.aL = 3] = "LOAD_FAILED";
+ d[d.gxa = 4] = "PARSE_FAILED";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.f$ = void 0;
+ b.f$ = "TrickPlayManagerSymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.M8 = void 0;
+ b.M8 = "PboRequestFactorySymbol";
+ }, function (d, b, a) {
+ var m,
+ f;
+ function c(a) {
+ return !(!a || !a.lD && !a.pboc || !a.code && !a.code);
+ }
+ function k(a) {
+ return !(!a || !a.Nb);
+ }
+ function l(a) {
+ return !!(a instanceof Error);
+ }
+ function r(a) {
+ switch (a) {
+ case "ACCOUNT_ON_HOLD":
+ return f.I.f5a;
+ case "STREAM_QUOTA_EXCEEDED":
+ return f.I.j5a;
+ case "INSUFFICICENT_MATURITY":
+ return f.I.l5a;
+ case "TITLE_OUT_OF_WINDOW":
+ return f.I.r5a;
+ case "CHOICE_MAP_ERROR":
+ return f.I.i5a;
+ case "BadRequest":
+ return f.I.n5a;
+ case "Invalid_SemVer_Format":
+ return f.I.m5a;
+ case "RESTRICTED_TO_TESTERS":
+ return f.I.q5a;
+ case "AGE_VERIFICATION_REQUIRED":
+ return f.I.g5a;
+ case "BLACKLISTED_IP":
+ return f.I.h5a;
+ case "DEVICE_EOL_WARNING":
+ return f.I.l8;
+ case "DEVICE_EOL_FINAL":
+ return f.I.hxa;
+ case "INCORRECT_PIN":
+ return f.I.lxa;
+ case "MOBILE_ONLY":
+ return f.I.p5a;
+ case "MDX_CONTROLLER_CTICKET_INVALID":
+ return f.I.o5a;
+ case "VIEWABLE_RESTRICTED_BY_PROFILE":
+ return f.I.s5a;
+ case "RESET_DEVICE":
+ return f.I.kxa;
+ case "RELOAD_DEVICE":
+ return f.I.jxa;
+ case "EXIT_DEVICE":
+ return f.I.ixa;
+ default:
+ return f.I.bua;
+ }
+ }
+ function h(a, b) {
+ return new m.Dc(a, r(b.code), "BadRequest" === b.code ? f.XT.O_a : void 0, b.code, void 0, b.display, void 0, b.detail, b.display, b.bladeRunnerCode ? Number(b.bladeRunnerCode) : void 0, b.alert, b.alertTag);
+ }
+ function p(a, b) {
+ return new m.Dc(a, b.Nb, b.xd, void 0, b.ct, b.message, b.py, b.data);
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.$Fa = b.aGa = b.Uob = b.Yob = b.Gl = b.Xob = b.vP = b.lvb = b.kOa = void 0;
+ m = a(48);
+ f = a(2);
+ b.kOa = c;
+ b.lvb = k;
+ b.vP = l;
+ b.Xob = r;
+ b.Gl = function (a, b) {
+ return k(b) ? p(a, b) : c(b) ? h(a, b) : l(b) ? m.Dc.EZ(a, b) : new m.Dc(a, void 0, void 0, void 0, void 0, "Recieved an unexpected error type", void 0, b);
+ };
+ b.Yob = h;
+ b.Uob = p;
+ b.aGa = function (a, b, c, f, h) {
+ var m,
+ u,
+ p,
+ k;
+ m = b.CVa[c];
+ if (void 0 === m)
+ throw {
+ lD: !0,
+ code: "FAIL",
+ display: "Unable to build the URL for " + c + " because there was no configuration information",
+ detail: b
+ };
+ u = m.version;
+ if (void 0 === u)
+ throw {
+ lD: !0,
+ code: "FAIL",
+ display: "Unable to build the URL for " + c + " because there was no version information",
+ detail: b
+ };
+ p = b.XH && m.serviceNonMember ? m.serviceNonMember : m.service;
+ if (void 0 === p)
+ throw {
+ lD: !0,
+ code: "FAIL",
+ display: "Unable to build the URL for " + c + " because there was no service information",
+ detail: b
+ };
+ k = m.orgOverride;
+ if (void 0 === k && (k = b.TRa, void 0 === k))
+ throw {
+ lD: !0,
+ code: "FAIL",
+ display: "Unable to build the URL for " + c + " because there was no organization information",
+ detail: b
+ };
+ return m.isPlayApiDirect ? a.Erb(f) + "/" + k + "/" + p + "/" + u : a.wrb(f) + "/" + k + "/" + p + "/" + u + "/" + (void 0 === h ? "router" : h);
+ };
+ b.$Fa = function (a, b) {
+ var c;
+ c = {
+ "Content-Type": "text/plain"
+ };
+ b = b();
+ a.AEa && b && (c["X-Esn"] = b.Ch);
+ return c;
+ };
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.L9 = b.X7 = b.d$ = void 0;
+ b.d$ = "TransportFactorySymbol";
+ b.X7 = "MslTransportSymbol";
+ b.L9 = "SslTransportSymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.y8 = void 0;
+ b.y8 = "PboDispatcherSymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.N7 = void 0;
+ b.N7 = "MediaRequestConstructorFactorySymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.O7 = b.i8 = void 0;
+ b.i8 = "OpenConnectSideChannelSymbol";
+ b.O7 = "MediaRequestDownloaderSymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.M7 = void 0;
+ b.M7 = "MediaHttpSymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.j9 = void 0;
+ b.j9 = "PrefetchEventsConfigSymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.t$ = void 0;
+ b.t$ = "WindowUtilsSymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.e8 = void 0;
+ b.e8 = "NfCryptoSymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.p7 = void 0;
+ b.p7 = "LogDisplayConfigSymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.W5 = b.X5 = void 0;
+ b.X5 = "DxManagerSymbol";
+ b.W5 = "DxManagerProviderSymbol";
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r,
+ h,
+ p;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.zL = b.sE = b.Qra = b.Pra = b.Ora = void 0;
+ c = a(0);
+ k = a(1);
+ l = a(25);
+ r = a(21);
+ h = a(677);
+ p = a(9);
+ b.Ora = "position:fixed;left:0px;top:0px;right:0px;bottom:100px;z-index:1;background-color:rgba(255,255,255,.65)";
+ b.Pra = "position:fixed;left:100px;top:30px;right:100px;bottom:210px;z-index:9999;color:#000;overflow:auto;box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.2), 0 5px 5px 0 rgba(0, 0, 0, 0.24);background-color:rgba(255,255,255,.65);";
+ b.Qra = "position:fixed;left:100px;right:100px;height=30px;bottom:130px;z-index:9999;color:#000;overflow:auto;box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.2), 0 5px 5px 0 rgba(0, 0, 0, 0.24);background-color:rgba(255,255,255,.65);";
+ b.sE = "";
+ d = (function () {
+ var f;
+ function a(a, b, c) {
+ this.md = a;
+ this.is = b;
+ this.prefix = c;
+ this.NQ = this.fo = !1;
+ this.cGa = new h.DAa(b);
+ }
+ a.prototype.show = function () {
+ this.fo || (this.hhb(), this.KG && p.Ae.body.appendChild(this.KG), this.Rf && p.Ae.body.appendChild(this.Rf), this.lN && p.Ae.body.appendChild(this.lN), this.XD && p.Ae.getElementsByTagName("head")[0].appendChild(this.XD), this.fo = !0, this.refresh());
+ };
+ a.prototype.ip = function () {
+ this.fo && (this.Rf && p.Ae.body.removeChild(this.Rf), this.lN && p.Ae.body.removeChild(this.lN), this.KG && p.Ae.body.removeChild(this.KG), this.XD && p.Ae.getElementsByTagName("head")[0].removeChild(this.XD), this.XD = this.aS = this.KG = this.lN = this.Rf = void 0, this.fo = !1);
+ };
+ a.prototype.toggle = function () {
+ this.fo ? this.ip() : this.show();
+ };
+ a.prototype.fMb = function () {
+ (this.NQ = !this.NQ) || this.refresh();
+ };
+ a.prototype.Opb = function (a) {
+ return "table." + a + '-display-table {border-collapse:collapse;font-family:"Lucida Console", Monaco, monospace;font-size:small}' + ("table." + a + "-display-table tr:nth-child(2n+2) {background-color: #EAF3FF;}") + ("table." + a + "-display-table tr:nth-child(2n+3) {background-color: #fff;}") + ("table." + a + "-display-table tr:nth-child(0n+1) {background-color: lightgray;}") + ("table." + a + "-display-table, th, td {padding: 2px;text-align: left;vertical-align: top;border-right:solid 1px gray;border-left:solid 1px gray;}") + ("table." + a + "-display-table, th {border-top:solid 1px gray;border-bottom:solid 1px gray}") + ("span." + a + "-display-indexheader {margin-left:5px;}") + ("span." + a + "-display-indexvalue {margin-left:5px;}") + ("span." + a + "-display-keyheader {margin-left:5px;}") + ("span." + a + "-display-keyvalue {margin-left:5px;}") + ("span." + a + "-display-valueheader {margin-left:5px;}") + ("ul." + a + "-display-tree {margin-top: 0px;margin-bottom: 0px;margin-right: 5px;margin-left: -20px;}") + ("ul." + a + "-display-tree li {list-style-type: none; position: relative;}") + ("ul." + a + "-display-tree li ul {display: none;}") + ("ul." + a + "-display-tree li.open > ul {display: block;}") + ("ul." + a + "-display-tree li a {color: black;text-decoration: none;}") + ("ul." + a + "-display-tree li a:before {height: 1em;padding: 0 .1em;font-size: .8em;display: block;position: absolute;left: -1.3em;top: .2em;}") + ("ul." + a + "-display-tree li > a:not(:last-child):before {content: '+';}") + ("ul." + a + "-display-tree li.open > a:not(:last-child):before {content: '-';}") + ("div." + a + "-display-div {float:right;display:flex;align-items:center;height:30px;width:130px;margin:10px;background-color:#C6CCD2;transition: all 200ms ease-in-out 0s;border-radius:6px;font-weight:300;font-size:16px;border-style:none;}") + ("button." + a + "-display-btn {float:right;display:inline-block;height:30px;width:100px;padding:3px;margin:10px;background-color:#C6CCD2;transition: all 200ms ease-in-out 0s;border-radius:6px;font-weight:300;font-size:16px;border-style:none;}") + ("select." + a + "-display-select {float:right;display:inline-block;height:30px;width:100px;padding:3px;margin:10px;background-color:#C6CCD2;transition: all 200ms ease-in-out 0s;border-radius:6px;font-weight:300;font-size:16px;border-style:none;}") + ("ul." + a + "-display-item-inline {margin:0;padding:0}") + ("." + a + "-display-btn:hover, ." + a + "-display-btn:focus, ." + a + "-display-btn:active {background: none repeat scroll 0 0 #B8BFC7 !important; }") + ("button." + a + "-display-btn-inline {float:right;display:inline-block;height:20px;width:40px;background-color:#C6CCD2;transition: all 200ms ease-in-out 0s;border-radius:6px;font-weight:300;font-size:12px;border-style:none;padding:0;color:palevioletred;background:rgba(0,0,0,0)}") + ("." + a + "-display-btn-inline:hover, ." + a + "-display-btn-inline:focus, ." + a + "-display-btn-inline:active {background: none repeat scroll 0 0 #B8BFC7 !important; }");
+ };
+ a.prototype.hhb = function () {
+ var a;
+ a = this;
+ this.XD = p.Ae.createElement("style");
+ this.XD.type = "text/css";
+ this.XD.innerHTML = this.Opb(this.prefix);
+ this.lN = this.md.createElement("div", b.Ora, void 0, {
+ "class": this.prefix + "-display-blur"
+ });
+ this.Rf = this.md.createElement("div", b.Pra, void 0, {
+ "class": this.prefix + "-display"
+ });
+ this.KG = this.md.createElement("div", b.Qra, void 0, {
+ "class": this.prefix + "-display"
+ });
+ this.SKa().forEach(function (b) {
+ return a.KG.appendChild(b);
+ });
+ };
+ a.prototype.khb = function (a) {
+ a = this.md.createElement("div", "", a, {
+ "class": this.prefix + "-display-tree1"
+ });
+ for (var b = a.querySelectorAll("ul." + this.prefix + "-display-tree a:not(:last-child)"), c = 0; c < b.length; c++) {
+ b[c].addEventListener("click", function (a) {
+ var b,
+ c;
+ if (a = a.target.parentElement) {
+ b = a.classList;
+ if (b.contains("open")) {
+ b.remove("open");
+ try {
+ c = a.querySelectorAll(":scope .open");
+ for (a = 0; a < c.length; a++) {
+ c[a].classList.remove("open");
+ }
+ } catch (H) {}
+ } else
+ b.add("open");
+ }
+ });
+ }
+ return a;
+ };
+ a.prototype.refresh = function () {
+ var a;
+ a = this;
+ return !this.fo || this.NQ ? Promise.resolve() : this.iUa().then(function (b) {
+ if (b && (b = a.khb(b), a.Rf)) {
+ a.aS && (a.Rf.removeChild(a.aS), a.aS = void 0);
+ a.aS = b;
+ a.Rf.appendChild(a.aS);
+ b = a.Rf.querySelectorAll("button." + a.prefix + "-display-btn-inline");
+ for (var c = 0; c < b.length; ++c) {
+ b[c].addEventListener("click", a.XUa);
+ }
+ (b = a.Rf.querySelector("#" + a.prefix + "-display-close-btn")) && b.addEventListener("click", function () {
+ a.toggle();
+ });
+ }
+ });
+ };
+ f = a;
+ return f = c.__decorate([k.N(), c.__param(0, k.l(l.hf)), c.__param(1, k.l(r.Zd)), c.__param(2, k.mi())], f);
+ })();
+ b.zL = d;
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.V5 = void 0;
+ b.V5 = "DxDisplaySymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.A8 = b.AU = void 0;
+ b.AU = {
+ xP: "keepAlive",
+ splice: "splice"
+ };
+ b.A8 = "PboEventSenderSymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.d9 = void 0;
+ b.d9 = "PlaydataConfigSymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.x8 = void 0;
+ b.x8 = "PboCachedPlaydataSymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.C8 = void 0;
+ b.C8 = "PboLicenseRequestTransformerSymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.L8 = void 0;
+ b.L8 = "PboReleaseLicenseCommandSymbol";
+ }, function (d, b, a) {
+ var h,
+ p,
+ m,
+ f,
+ u,
+ g;
+ function c(a) {
+ var b;
+ a = new m.oT(a);
+ if (1481462272 != a.Xa())
+ throw Error("Invalid header");
+ b = {
+ XMR: {
+ Version: a.Xa(),
+ RightsID: a.Qf(16)
+ }
+ };
+ k(a, b.XMR, a.buffer.length);
+ return b;
+ }
+ function k(a, b, c) {
+ var f,
+ h,
+ m,
+ p,
+ u;
+ for (; a.position < c; ) {
+ f = a.Tb();
+ h = a.Xa();
+ h = h - 8;
+ switch (f) {
+ case 1:
+ m = "OuterContainer";
+ break;
+ case 2:
+ m = "GlobalPolicy";
+ break;
+ case 3:
+ m = "MinimumEnvironment";
+ break;
+ case 4:
+ m = "PlaybackPolicy";
+ break;
+ case 5:
+ m = "OutputProtection";
+ break;
+ case 6:
+ m = "UplinkKID";
+ break;
+ case 7:
+ m = "ExplicitAnalogVideoOutputProtectionContainer";
+ break;
+ case 8:
+ m = "AnalogVideoOutputConfiguration";
+ break;
+ case 9:
+ m = "KeyMaterial";
+ break;
+ case 10:
+ m = "ContentKey";
+ break;
+ case 11:
+ m = "Signature";
+ break;
+ case 12:
+ m = "DeviceIdentification";
+ break;
+ case 13:
+ m = "Settings";
+ break;
+ case 18:
+ m = "ExpirationRestriction";
+ break;
+ case 42:
+ m = "ECCKey";
+ break;
+ case 48:
+ m = "ExpirationAfterFirstPlayRestriction";
+ break;
+ case 50:
+ m = "PlayReadyRevocationInformationVersion";
+ break;
+ case 51:
+ m = "EmbeddedLicenseSettings";
+ break;
+ case 52:
+ m = "SecurityLevel";
+ break;
+ case 54:
+ m = "PlayEnabler";
+ break;
+ case 57:
+ m = "PlayEnablerType";
+ break;
+ case 85:
+ m = "RealTimeExpirationRestriction";
+ break;
+ default:
+ m = "Other";
+ }
+ p = {
+ Type: l(f)
+ };
+ u = b[m];
+ u ? g.isArray(u) ? u.push(p) : (b[m] = [], b[m].push(u), b[m].push(p)) : b[m] = p;
+ switch (f) {
+ case 1:
+ case 2:
+ case 4:
+ case 7:
+ case 9:
+ case 54:
+ k(a, p, a.position + h);
+ break;
+ case 5:
+ p.Reserved1 = a.Tb();
+ p.MinimumUncompressedDigitalVideoOutputProtectionLevel = a.Tb();
+ p.MinimumAnalogVideoOutputProtectionLevel = a.Tb();
+ p.Reserved2 = a.Tb();
+ p.MinimumUncompressedDigitalAudioOutputProtectionLevel = a.Tb();
+ break;
+ case 10:
+ p.Reserved = a.Qf(16);
+ p.SymmetricCipherType = a.Tb();
+ p.AsymmetricCipherType = a.Tb();
+ h = a.Tb();
+ p.EncryptedKeyLength = h;
+ f = a.Qf(h);
+ p.EncryptedKeyData = 10 >= h ? f : f.substring(0, 4) + "..." + f.substring(f.length - 4, f.length);
+ break;
+ case 11:
+ p.SignatureType = a.Qf(2);
+ h = a.Tb();
+ f = a.Qf(h);
+ p.SignatureData = 10 >= h ? f : f.substring(0, 4) + "..." + f.substring(f.length - 4, f.length);
+ break;
+ case 13:
+ p.Reserved = a.Tb();
+ break;
+ case 18:
+ p.BeginDate = a.Xa();
+ p.EndDate = a.Xa();
+ break;
+ case 42:
+ p.CurveType = a.Qf(2);
+ h = a.Tb();
+ f = a.Qf(h);
+ p.Key = 10 >= h ? f : f.substring(0, 4) + "..." + f.substring(f.length - 4, f.length);
+ break;
+ case 48:
+ p.ExpireAfterFirstPlay = a.Xa();
+ break;
+ case 50:
+ p.Sequence = a.Xa();
+ break;
+ case 51:
+ p.LicenseProcessingIndicator = a.Tb();
+ break;
+ case 52:
+ p.MinimumSecurityLevel = a.Tb();
+ break;
+ case 57:
+ p.PlayEnablerType = r(a.Qf(16));
+ break;
+ case 85:
+ break;
+ default:
+ p.OtherData = a.Qf(h);
+ }
+ }
+ }
+ function l(a) {
+ return "0x" + a.toString(16);
+ }
+ function r(a) {
+ return a.substring(6, 8) + a.substring(4, 6) + a.substring(2, 4) + a.substring(0, 2) + "-" + a.substring(10, 12) + a.substring(8, 10) + "-" + a.substring(14, 16) + a.substring(12, 14) + "-" + a.substring(16, 20) + "-" + a.substring(20, 32);
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Dkb = b.Ekb = b.Ckb = b.Bkb = b.Akb = void 0;
+ h = a(10);
+ p = a(6);
+ m = a(206);
+ f = a(127);
+ u = a(209);
+ g = a(15);
+ b.Akb = function (a, b, m) {
+ switch (b) {
+ case h.uT:
+ a && (a = p.GFa(a), u.tqa(a, function (a) {
+ a.U && (a = a.object) && (a = f.XKa(a, "Body", "AcquireLicenseResponse", "AcquireLicenseResult", "Response", "LicenseResponse", "Licenses", "License")) && (a = f.qSa(a)) && (a = p.pm(a)) && (a = c(a)) && m(a);
+ }));
+ }
+ };
+ b.Bkb = c;
+ b.Ckb = k;
+ b.Ekb = l;
+ b.Dkb = r;
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.v8 = void 0;
+ b.v8 = "PboAcquireLicenseCommandSymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.P6 = void 0;
+ b.P6 = "HttpRequesterSymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.o6 = void 0;
+ b.o6 = "FtlDataParserSymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.d8 = void 0;
+ b.d8 = "NetworkMonitorSymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.w$ = void 0;
+ b.w$ = "XhrFactorySymbol";
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r,
+ h,
+ p,
+ m,
+ f,
+ u,
+ g;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.$sa = void 0;
+ c = a(0);
+ k = a(154);
+ l = a(75);
+ r = a(22);
+ h = a(2);
+ p = a(17);
+ m = a(9);
+ f = a(15);
+ u = a(1);
+ g = a(14);
+ d = (function () {
+ var b;
+ function a(a) {
+ this.config = a;
+ }
+ a.prototype.construct = function (a, b) {
+ var c,
+ f,
+ h;
+ c = this;
+ f = {};
+ a.forEach(function (a) {
+ var b;
+ b = a.url;
+ f[b] || (f[b] = []);
+ f[b].push(a);
+ });
+ h = [];
+ r.Ed(f, function (a, f) {
+ h.push(c.Qsb(f, b));
+ });
+ return {
+ urls: h
+ };
+ };
+ a.prototype.Qsb = function (a, b) {
+ var c,
+ h,
+ m,
+ p;
+ c = this;
+ h = a[0];
+ m = {
+ url: h.url,
+ bitrate: h.R,
+ cdnid: f.df(h.tc) ? h.tc.id : h.tc,
+ dltype: h.Mlb,
+ id: h.vd
+ };
+ p = {};
+ a.forEach(function (a) {
+ var b;
+ b = c.svb(a) ? "fail" : "success";
+ p[b] || (p[b] = []);
+ p[b].push(a);
+ });
+ r.Ed(p, function (a, f) {
+ "fail" === a ? m.failures = c.Dqb(f, b) : "success" === a && (m.downloads = c.tqb(f, b));
+ });
+ return m;
+ };
+ a.prototype.tqb = function (a, b) {
+ var c,
+ f,
+ h;
+ c = this;
+ f = {};
+ a.forEach(function (a) {
+ var b;
+ b = a.Cgb;
+ f[b] || (f[b] = []);
+ f[b].push(a);
+ });
+ h = [];
+ r.Ed(f, function (a, f) {
+ var m;
+ m = [];
+ f.forEach(function (f) {
+ m.push(f);
+ c.hvb(f) && (h.push(c.$Ka(m, b, a)), m = []);
+ });
+ 0 < m.length && h.push(c.$Ka(m, b, a));
+ });
+ return h;
+ };
+ a.prototype.$Ka = function (a, b, c) {
+ var k;
+ for (var f = a.sort(function (a, b) {
+ return a.Ok.ph < b.Ok.ph ? -1 : a.Ok.ph > b.Ok.ph ? 1 : 0;
+ }), h = f[0].Ok, m = h.requestTime, p = h.ph, h = h.Tm, u = 1; u < a.length; u++) {
+ k = a[u].Ok;
+ k.requestTime < m && (m = k.requestTime);
+ k.ph < p && (p = k.ph);
+ k.Tm > h && (h = k.Tm);
+ }
+ u = this.Trb(f);
+ k = f[f.length - 1];
+ return {
+ time: m - b,
+ tcpid: c ? parseInt(c) : -1,
+ tresp: p - m,
+ first: u,
+ ranges: this.Urb(f, u),
+ dur: h - p,
+ trace: this.Dv(a),
+ status: this.i_(k)
+ };
+ };
+ a.prototype.Trb = function (a) {
+ var b;
+ b = 0;
+ a.forEach(function (a) {
+ a.hr && (b = m.hn(b, a.hr[0]));
+ });
+ return b;
+ };
+ a.prototype.Urb = function (a, b) {
+ var c;
+ c = [];
+ a.forEach(function (a) {
+ a.hr ? c.push([a.hr[0] - b, a.hr[1] - b]) : c.push([0, -1]);
+ });
+ return c;
+ };
+ a.prototype.Dv = function (a) {
+ var b,
+ c;
+ b = [];
+ a.forEach(function (a) {
+ var f;
+ a = a.Ok;
+ if (c) {
+ f = a.requestTime - c.Tm;
+ 0 < f && b.push([f, -2]);
+ f = m.am(c.Tm, a.requestTime);
+ f = a.ph - f;
+ 0 < f && b.push([f, -3]);
+ }
+ b.push([a.Tm - a.ph, a.RB || 0]);
+ c = a;
+ });
+ return b;
+ };
+ a.prototype.hvb = function (a) {
+ if (a.ja === h.I.Xw || a.ja === h.I.pA)
+ return !0;
+ };
+ a.prototype.i_ = function (a) {
+ if (a.U)
+ return "complete";
+ if (a.ja === h.I.Xw)
+ return "abort";
+ if (a.ja === h.I.pA)
+ return "stall";
+ p.Ra(!1, "download status should never be: other");
+ return "other";
+ };
+ a.prototype.Dqb = function (a, b) {
+ var c,
+ f;
+ c = this;
+ f = [];
+ a.forEach(function (a) {
+ var h;
+ h = a.Ok;
+ a = {
+ time: h.ph - b,
+ tresp: h.ph - h.requestTime,
+ dur: h.Tm - h.ph,
+ range: a.hr,
+ reason: c.Wrb(a),
+ httpcode: a.kj,
+ nwerr: k.gha(a.ja)
+ };
+ f.push(a);
+ });
+ return f;
+ };
+ a.prototype.Wrb = function (a) {
+ return a.kj || a.ja === h.I.UK ? "http" : a.ja === h.I.WK ? "timeout" : "network";
+ };
+ a.prototype.svb = function (a) {
+ return a.U || void 0 === a.U || a.ja === h.I.Xw || a.ja === h.I.pA ? !1 : !0;
+ };
+ a.prototype.thb = function (a) {
+ var b,
+ c,
+ f,
+ h,
+ m,
+ p;
+ b = a.request;
+ c = b.stream;
+ f = b.track;
+ h = b.url;
+ m = this.qqb(f, h);
+ switch (m) {
+ case l.Qg.audio:
+ case l.Qg.video:
+ p = b.stream.vd;
+ break;
+ case l.Qg.d4:
+ case l.Qg.Lpa:
+ p = f.vd;
+ }
+ a = {
+ R: c && c.R,
+ Mlb: m,
+ vd: p,
+ Ok: a.Ok,
+ tc: b.tc,
+ url: h,
+ Fe: a.Fe,
+ kj: a.kj,
+ ja: a.ja,
+ U: a.U,
+ Cgb: this.Fnb(a)
+ };
+ void 0 !== b.offset && void 0 != b.length && (a.hr = [b.offset, b.offset + b.length - 1]);
+ return a;
+ };
+ a.prototype.qqb = function (a, b) {
+ if (a)
+ return a.type;
+ if (0 <= b.indexOf("netflix.com")) {
+ if (0 <= b.indexOf("nccp"))
+ return "nccp";
+ if (0 <= b.indexOf("api"))
+ return "api";
+ }
+ return "other";
+ };
+ a.prototype.Fnb = function (a) {
+ if (a.headers && (a = a.headers["X-TCP-Info"] || a.headers["x-tcp-info"]))
+ return (a = a.split(";").filter(function (a) {
+ return 0 == a.indexOf("port=");
+ }).map(function (a) {
+ return a.split("=")[1];
+ })[0]) ? r.Ud(a) : a;
+ };
+ b = a;
+ return b = c.__decorate([u.N(), c.__param(0, u.l(g.fd))], b);
+ })();
+ b.$sa = d;
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.U7 = void 0;
+ b.U7 = "MilestonesEventBuilderSymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.P5 = void 0;
+ b.P5 = "DownloadReportBuilderSymbol";
+ }, function (d, b, a) {
+ var c;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.rT = void 0;
+ c = a(50);
+ b.rT = function (a, b) {
+ this.Ulb = a;
+ this.size = b.fOa() ? c.Cc : b;
+ };
+ }, function (d, b, a) {
+ var k,
+ l,
+ r,
+ h,
+ p,
+ m,
+ f,
+ u,
+ g,
+ A,
+ K,
+ C,
+ M,
+ H,
+ G,
+ T,
+ n,
+ q,
+ Z,
+ B,
+ V,
+ fa,
+ ia,
+ Y;
+ function c(a, b, c, f, h, k, d, w, S, B, Z, aa, ia, z, E, Ba, N, R, Q, Fa, U, mb) {
+ var O;
+ O = this;
+ this.j = a;
+ this.Wm = b;
+ this.xXa = f;
+ this.NX = h;
+ this.eh = k;
+ this.Cka = d;
+ this.Gfa = w;
+ this.bi = S;
+ this.ad = B;
+ this.JY = Z;
+ this.cf = aa;
+ this.config = ia;
+ this.Jc = z;
+ this.Aa = E;
+ this.va = Ba;
+ this.platform = N;
+ this.Nm = R;
+ this.OC = Q;
+ this.di = Fa;
+ this.Cq = U;
+ this.h1 = mb;
+ this.fS = [];
+ this.pzb = this.c0 = this.yUa = 0;
+ this.cH = [];
+ this.Qba = !1;
+ this.Uv = function (a, b) {
+ return function (c) {
+ var f;
+ f = b(c);
+ if ("number" !== typeof f)
+ throw Error("Event " + JSON.stringify(c) + " does not have movie Id");
+ f === O.G && a(c);
+ };
+ };
+ this.rp = this.Uv(function (a) {
+ O.xWa(a.FC);
+ }, function (a) {
+ return a.G;
+ });
+ this.iI = this.Uv(function () {
+ O.Ggb();
+ }, function (a) {
+ return a.G;
+ });
+ this.tWa = function (a) {
+ O.Ic(V.ze.dKb, !1, Y.Sh | Y.Og, {
+ speedold: Math.floor(1E3 * a.oldValue),
+ speed: Math.floor(1E3 * a.newValue)
+ });
+ };
+ this.SJ = function () {
+ O.Ic(V.ze.QLb, !1, Y.Sh | Y.Og, {
+ track: O.j.Bc.value.fh
+ });
+ };
+ this.FXa = function (a) {
+ a.newValue && O.Pm && (a = {
+ track: a.newValue.fh
+ }, O.AC(a, O.j.wf.value && O.j.wf.value.stream, O.j.tg.value && O.j.tg.value.stream), O.Ic(V.ze.RLb, !1, Y.Sh | Y.Og, a));
+ };
+ this.Ln = function (a) {
+ O.Ic(V.ze.Feb, !1, Y.Sh | Y.Og, a.newValue);
+ };
+ this.vIa = function () {
+ var a,
+ b,
+ c;
+ if (O.j.Nj)
+ try {
+ a = !1;
+ O.ga % O.config().jO && !O.j.pO && (a = !0, O.cH = O.cH.filter(function (a) {
+ return !a.U;
+ }));
+ if (0 < O.cH.length) {
+ b = O.JY.construct(O.cH, O.j.ek.ca(g.ia));
+ O.cH = [];
+ b.erroronly = a;
+ c = {};
+ u.Ed(b, function (a, b) {
+ c[a] = JSON.stringify(b);
+ });
+ O.Ic(V.ze.Klb, !1, Y.Og, c);
+ }
+ } catch (Sc) {
+ O.log.error("Exception in dlreport.", Sc);
+ }
+ };
+ this.f1 = function () {
+ var a,
+ b;
+ if (O.j.state.value == q.ob.od) {
+ a = O.NSa();
+ O.config().hna && (a.avtp = O.Qz.Cm().bE, O.j.qo && O.R_(a));
+ a.midplayseq = O.pzb++;
+ b = O.j.Sb.value;
+ a.prstate = b === q.lb.Sc ? "playing" : b === q.lb.$i ? "paused" : b === q.lb.Fr ? "ended" : "waiting";
+ O.config().jIb && O.WWa("midplay");
+ O.config().Ap && O.Jc() && O.Cia(a);
+ O.zia(a);
+ O.Aia(a);
+ O.Bia(a);
+ O.Ic(V.ze.f1, !1, Y.Sh | Y.Og | Y.Tw | Y.vL, a);
+ }
+ };
+ this.YAa = /-?l(\d\d)/i;
+ this.FIa = this.Uv(function (a) {
+ O.cH.push(O.JY.thb(a.response));
+ }, function (a) {
+ return a.G;
+ });
+ this.HY = this.Uv(function (a) {
+ var b,
+ c,
+ f,
+ h,
+ m,
+ k;
+ a = a.response;
+ b = a.request;
+ c = a.request.wp;
+ f = b.track;
+ if (f) {
+ h = !a.U && a.ja != A.I.Xw;
+ m = f.type;
+ k = a.Ok;
+ if (h || O.Wm.N0) {
+ c = {
+ dltype: m,
+ url1: b.url,
+ url2: a.url || "",
+ cdnid: b.tc && b.tc.id,
+ tresp: u.Wj(k.ph - k.requestTime),
+ brecv: u.fKa(k.RB),
+ trecv: u.Wj(k.Tm - k.ph),
+ sbr: c && c.R
+ };
+ a.hr && (c.range = a.hr);
+ switch (m) {
+ case p.Qg.audio:
+ c.adlid = b.stream.vd;
+ break;
+ case p.Qg.video:
+ c.vdlid = b.stream.vd;
+ break;
+ case p.Qg.d4:
+ c.ttdlid = f.vd;
+ }
+ (b = fa.gha(a.ja)) && (c.nwerr = b);
+ a.kj && (c.httperr = a.kj);
+ O.Ic(V.ze.HY, h, Y.Og, c);
+ }
+ }
+ }, function (a) {
+ return a.G;
+ });
+ this.Bk = function () {
+ O.Ic(V.ze.Geb, !1, Y.Sh | Y.Tw, {
+ browserua: T.bm
+ });
+ };
+ this.SGa = this.Uv(function (a) {
+ var b,
+ c,
+ f;
+ a = a.response;
+ b = a.Ok;
+ c = g.Gb(b.ph);
+ f = g.Gb(b.Tm);
+ b = C.da(b.RB || 0);
+ b.zOa() || b.fOa() || (c = new M.s9(c, f), O.Qz.eX(new H.rT(c, b)), a && a.request && a.request.wp && a.request.wp.Ob && O.NX.eX(new G.Zra(c, b, a.request.wp.Ob)));
+ }, function (a) {
+ return a.G;
+ });
+ this.tSa = function (a) {
+ var b;
+ b = a.newValue;
+ a.ny && a.ny.lla && b || b == O.tja || (O.pKb(O.tja, b), O.tja = b);
+ };
+ this.Xu = function (a) {
+ function b(a) {
+ var b;
+ if (O.j.ub && O.j.ub.sourceBuffers) {
+ b = O.j.ub.sourceBuffers.filter(function (b) {
+ return b.type === a;
+ }).pop();
+ if (b)
+ return {
+ busy: b.Eh(),
+ updating: b.updating(),
+ ranges: b.NZ()
+ };
+ }
+ }
+ O.mJ = "rebuffer";
+ a = {
+ cause: a.cause
+ };
+ a.cause && a.cause === r.S8 && (a.mediaTime = O.j.bb.value, a.buf_audio = b(l.dU), a.buf_video = b(l.NE));
+ O.Mia(O.fS[q.lb.Sc] || 0, O.fS[q.lb.$i] || 0, a);
+ O.kK = O.getTime();
+ n.zc(O.PX);
+ };
+ this.TXa = function (a) {
+ var b;
+ a = a.oldValue;
+ b = O.getTime();
+ a === q.lb.dg ? O.fS = [] : O.fS[a] = (O.fS[a] || 0) + (b - O.Ewb);
+ O.Ewb = b;
+ };
+ this.Rm = function (a) {
+ a.skip && (O.Vl = !0);
+ switch (a.cause) {
+ case q.le.lu:
+ case q.le.fF:
+ (O.mJ && O.kK ? O.hDb(O.getTime() - O.kK, O.mJ) : O.Pm || O.KSa(), O.mJ = "repos", O.ina(a.wla, a.tg, a.wf), O.kK = O.getTime(), n.zc(O.PX));
+ }
+ };
+ this.PX = function () {
+ var a;
+ if (O.kK && O.j.Sb.value !== q.lb.dg) {
+ a = O.getTime() - O.kK;
+ O.Ana(a, O.Vl);
+ O.pja && O.pja != O.j.rd.value && O.Udb();
+ O.kK = void 0;
+ O.mJ = void 0;
+ O.Vl = void 0;
+ }
+ };
+ this.gda = this.Uv(function () {
+ O.j.Sb.value === q.lb.Sc && (O.j.Sb.removeListener(O.gda), O.ko());
+ }, function () {
+ return O.j.G;
+ });
+ this.dN = function (a) {
+ O.xwb = O.getTime();
+ O.pja = a.oldValue;
+ };
+ this.ko = function () {
+ O.Pm || (O.Pm = !0, O.Q3(!1), O.Kub(), O.config().yNa && (O.X_ = t.setTimeout(function () {
+ O.eh.flush(!1)["catch"](function () {
+ return O.log.warn("failed to flush logbatcher on initialLogFlushTimeout");
+ });
+ O.X_ = void 0;
+ }, O.config().yNa)));
+ };
+ this.If = function () {
+ O.X_ && (t.clearTimeout(O.X_), O.X_ = void 0);
+ if (O.config().jO || O.config().YM)
+ (O.Sea && (t.clearInterval(O.Sea), O.Sea = void 0), O.vIa());
+ O.tYa && O.tYa();
+ O.Pm ? O.qfa(!!O.j.lj) : O.j.lj ? O.Q3(!0) : O.Wm.background || O.KSa();
+ O.IHb || (O.Ic = l.ff);
+ };
+ this.NGa = this.Uv(function () {
+ O.If();
+ }, function (a) {
+ return a.movieId;
+ });
+ this.jZa = function (a) {
+ a.oldValue && a.ny && a.ny.CGa && O.jda(a.oldValue, a.newValue, a.ny.CGa, a.ny.meb);
+ };
+ this.nTa = function (a) {
+ var b;
+ if (a.newValue) {
+ b = a.newValue.stream;
+ O.uja != b && (O.uja && O.rGb(O.uja, b, a.newValue.Yo.startTime), O.uja = b);
+ }
+ };
+ this.Ss = this.Uv(function (a) {
+ function b(a, b) {
+ var c;
+ if (!a || a.Nja !== b.location) {
+ c = {
+ Nja: b.location,
+ hPa: b.locationlv,
+ uIb: b.serverid,
+ MD: b.servername
+ };
+ O.Mfb(a, b);
+ return c;
+ }
+ }
+ if ("audio" === a.mediaType) {
+ if (a = b(O.wwb, a))
+ O.wwb = a;
+ } else if (a = b(O.yP, a))
+ O.yP = a;
+ }, function (a) {
+ return O.j.Cv(a.segmentId).G;
+ });
+ this.wJ = this.Uv(function (a) {
+ var b,
+ c;
+ b = a.mediatype;
+ c = a.reason;
+ "video" === b ? "serverswitchaway" === c ? (O.ii.summary.qZa++, O.ii.C0 = O.Aa.$e.ca(g.ia)) : "serverswitchback" === c && (O.ii.summary.rZa++, O.ii.C0 && (O.ii.summary.sZa.push(O.Aa.$e.ca(g.ia) - O.ii.C0), O.ii.C0 = void 0)) : "audio" === b && ("serverswitchaway" === c ? (O.ii.summary.iFa++, O.ii.w0 = O.Aa.$e.ca(g.ia)) : "serverswitchback" === c && (O.ii.summary.jFa++, O.ii.w0 && (O.ii.summary.kFa.push(O.Aa.$e.ca(g.ia) - O.ii.w0), O.ii.w0 = void 0)));
+ O.Ic(V.ze.wIb, !1, Y.Sh | Y.Og, {
+ mediatype: a.mediatype,
+ server: a.server,
+ selreason: a.reason,
+ location: a.location,
+ bitrate: a.bitrate,
+ confidence: a.confidence,
+ throughput: a.throughput,
+ oldserver: a.oldserver
+ });
+ }, function (a) {
+ return O.j.Cv(a.segmentId).G;
+ });
+ this.tG = function (a) {
+ O.Ic(V.ze.tdb, !1, Y.Og, {
+ strmsel: a.strmsel
+ });
+ };
+ this.sG = function (a) {
+ O.Ic(V.ze.sdb, !1, Y.Og, {
+ msg: a.msg
+ });
+ };
+ this.MJ = function (a) {
+ a = K.AJ(a);
+ a.details && (a.details = JSON.stringify(a.details));
+ O.Ic(V.ze.ZKb, !0, Y.Sh | Y.XE | Y.bT, a);
+ };
+ this.Qba = Fa.w4 || Fa.x4;
+ this.Qz = f();
+ this.log = m.Gg(a, "LogblobBuilder");
+ this.tja = a.paused.value;
+ this.G = b.G;
+ this.ga = this.Wm.ga;
+ this.ii = {
+ summary: {
+ qZa: 0,
+ rZa: 0,
+ sZa: [],
+ iFa: 0,
+ jFa: 0,
+ kFa: []
+ },
+ C0: void 0,
+ w0: void 0
+ };
+ this.Eb();
+ c && this.xWa();
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Lva = void 0;
+ k = a(57);
+ l = a(10);
+ r = a(56);
+ h = a(46);
+ p = a(75);
+ m = a(6);
+ f = a(17);
+ u = a(22);
+ g = a(3);
+ A = a(2);
+ K = a(23);
+ C = a(50);
+ M = a(363);
+ H = a(350);
+ G = a(704);
+ T = a(9);
+ n = a(58);
+ q = a(13);
+ Z = a(15);
+ B = a(703);
+ V = a(356);
+ fa = a(154);
+ ia = a(153);
+ c.prototype.Eb = function () {
+ this.j.addEventListener(q.V.rp, this.rp);
+ this.j.addEventListener(q.V.iI, this.iI);
+ this.j.addEventListener(q.V.Ss, this.Ss);
+ this.j.addEventListener(q.V.wJ, this.wJ);
+ this.j.addEventListener(q.V.If, this.NGa);
+ this.j.addEventListener(q.V.ty, this.HY, l.wU);
+ if (this.config().jO || this.config().YM)
+ (this.j.addEventListener(q.V.ty, this.FIa), this.Sea = t.setInterval(this.vIa, this.config().Tlb));
+ this.config().hna && this.j.addEventListener(q.V.ty, this.SGa);
+ };
+ c.prototype.xWa = function (a) {
+ this.EQa || (this.j.Sb.value !== q.lb.Sc || (void 0 === a ? 0 : a) ? this.j.Sb.addListener(this.gda) : this.ko(), this.j.Lj.addListener(this.FXa), this.j.rd.addListener(this.dN), this.j.paused.addListener(this.tSa), this.j.wf.addListener(this.nTa), this.j.Sb.addListener(this.PX), this.j.Sb.addListener(this.TXa), this.j.Bf.addListener(this.jZa), this.j.playbackRate.addListener(this.tWa), this.j.addEventListener(q.V.Bk, this.Bk), this.j.addEventListener(q.V.sG, this.sG), this.j.addEventListener(q.V.tG, this.tG), this.j.addEventListener(q.V.MJ, this.MJ), this.j.addEventListener(q.V.Xu, this.Xu), this.j.addEventListener(q.V.Rm, this.Rm), this.j.addEventListener(q.V.SJ, this.SJ), this.Wm.Ln && this.Wm.Ln.addListener(this.Ln), this.config().wj && (this.IHb = !0), this.EQa = !0);
+ };
+ c.prototype.Ggb = function () {
+ this.If();
+ this.EQa && (this.j.removeEventListener(q.V.rp, this.rp), this.j.removeEventListener(q.V.iI, this.iI), this.j.removeEventListener(q.V.Ss, this.Ss), this.j.removeEventListener(q.V.wJ, this.wJ), this.j.Lj.removeListener(this.FXa), this.j.rd.removeListener(this.dN), this.j.paused.removeListener(this.tSa), this.j.wf.removeListener(this.nTa), this.j.Sb.removeListener(this.PX), this.j.Sb.removeListener(this.gda), this.j.Sb.removeListener(this.TXa), this.j.Bf.removeListener(this.jZa), this.j.playbackRate.removeListener(this.tWa), this.j.removeEventListener(q.V.ty, this.HY), this.j.removeEventListener(q.V.If, this.NGa), this.j.removeEventListener(q.V.Bk, this.Bk), this.j.removeEventListener(q.V.sG, this.sG), this.j.removeEventListener(q.V.tG, this.tG), this.j.removeEventListener(q.V.MJ, this.MJ), this.j.removeEventListener(q.V.Xu, this.Xu), this.j.removeEventListener(q.V.Rm, this.Rm), this.j.removeEventListener(q.V.SJ, this.SJ), this.Wm.Ln && this.Wm.Ln.removeListener(this.Ln), this.j.removeEventListener(q.V.ty, this.FIa), this.j.removeEventListener(q.V.ty, this.SGa));
+ };
+ c.prototype.Q3 = function (a) {
+ var b,
+ c,
+ l,
+ d,
+ r,
+ w,
+ H,
+ A,
+ C,
+ M,
+ K,
+ G,
+ n,
+ S,
+ aa,
+ pa,
+ fa,
+ z,
+ E,
+ N,
+ R,
+ Q,
+ U,
+ W;
+ b = {};
+ try {
+ b = {
+ browserua: T.bm,
+ browserhref: location.href,
+ playdelaysdk: u.Wj(this.j.Xca()),
+ applicationPlaydelay: u.Wj(this.j.nfb()),
+ playdelay: u.Wj(this.j.sfb()),
+ trackid: this.j.li,
+ bookmark: u.Wj(this.j.GB || 0),
+ pbnum: this.j.index,
+ endianness: h.hLa()
+ };
+ this.config().Smb && (b.transitiontime = this.j.gl, b.uiplaystarttime = this.j.Ta.m4, b.playbackrequestedat = this.j.ek.ca(g.ia), b.clockgettime = this.getTime(), b.clockgetpreciseepoch = this.Aa.$e.ca(g.ia), b.clockgetpreciseappepoch = this.va.LC.ca(g.ia), b.absolutestarttime = this.j.KZ(), b.relativetime = this.j.pha());
+ this.JZ(b, "startplay");
+ } catch (wb) {
+ this.log.error("error in startplay log fields", wb);
+ }
+ this.j.Bk && (b.blocked = this.j.Bk);
+ b.configversion = this.config().version;
+ this.config().endpoint || (b.configendpoint = "error");
+ this.j.sg && (b.playbackcontextid = this.j.sg);
+ this.lNa(b);
+ if (this.config().E4 && this.j.Ta.mqa) {
+ for (var f = {}, m = Object.keys(this.j.Ta.mqa), p, k = m.length; k--; ) {
+ p = m[k];
+ f[p.toLowerCase()] = this.j.Ta.mqa[p];
+ }
+ b.vui = f;
+ }
+ Z.na(this.j.QFa) && (b.bookmarkact = u.Wj(this.j.QFa));
+ (f = this.j.Yc.at && this.j.Yc.ats ? this.j.Yc.at - this.j.Yc.ats : void 0) && (b.nccpat = f);
+ (f = this.j.Yc.lr && this.j.Yc.lc ? this.j.Yc.lr - this.j.Yc.lc : void 0) && (b.nccplt = f);
+ (f = this.Zlb()) && (b.downloadables = f);
+ t._cad_global.device && Z.dc(t._cad_global.device.xfa) && (b.esnSource = t._cad_global.device.xfa);
+ u.yb(b, this.Nm, {
+ prefix: "pi_"
+ });
+ (f = T.Zi && T.Zi.connection && T.Zi.connection.type) && (b.nettype = f);
+ this.j.Vo && this.j.Vo.initBitrate && (b.initvbitrate = this.j.Vo.initBitrate);
+ this.j.Vo && this.j.Vo.selector && (b.selector = this.j.Vo.selector);
+ b.fullDlreports = this.j.YIa;
+ if (this.j.state.value >= q.ob.od)
+ try {
+ l = this.j.my();
+ l && (this.io = h.Q4(l.map(function (a) {
+ return a.R;
+ })), this.dQa = h.Q4(l.map(function (a) {
+ return a.height;
+ })), c = 0 < l.length ? B.SPa(l, function (a) {
+ return a.R;
+ }) : void 0, b.maxbitrate = this.io, b.maxresheight = this.dQa);
+ } catch (wb) {
+ this.log.error("Exception computing max bitrate", wb);
+ }
+ try {
+ d = h.XO();
+ d && (b.pdltime = d);
+ } catch (wb) {}
+ try {
+ u.yb(b, this.j.Yc, {
+ prefix: "sm_"
+ });
+ u.yb(b, this.j.n_(), {
+ prefix: "vd_"
+ });
+ } catch (wb) {}
+ "undefined" !== typeof nrdp && nrdp.device && (b.firmware_version = nrdp.device.firmwareVersion);
+ a && this.j.gr && (b.pssh = this.j.gr);
+ if (this.config().Ap && this.Jc())
+ try {
+ l = {};
+ r = this.Jc().getStats(void 0, void 0, this.j.G);
+ w = this.j.KZ();
+ H = r.Oz.Sgb;
+ l.attempts = r.hTa || 0;
+ l.num_completed_tasks = H.length;
+ A = this.ad.Znb;
+ d = {};
+ C = ia.Oe.OJ;
+ M = ia.Oe.yq;
+ K = ia.Oe.LX;
+ G = ia.Oe.zN;
+ n = ia.Oe.KX;
+ r.Vj && (d.scheduled = r.Vj - w);
+ S = this.j.xa;
+ S && Z.na(S.zz) && (d.preauthsent = S.zz - this.j.rf, d.preauthreceived = S.ED - this.j.rf);
+ aa = H.filter(A("type", "manifest"));
+ l.mf_succ = aa.filter(A("status", C)).length;
+ l.mf_fail = aa.filter(A("status", M)).length;
+ pa = this.j.Yc;
+ Z.dc(pa.lg) && 0 > pa.lg && this.j.rf && (d.ldlsent = pa.lc, d.ldlreceived = pa.lr);
+ fa = H.filter(A("type", "ldl"));
+ l.ldl_succ = fa.filter(A("status", C)).length;
+ l.ldl_fail = fa.filter(A("status", M)).length;
+ r = !0;
+ z = "ui" === this.j.$u;
+ d.preauthreceived && 0 > d.preauthreceived || z || (r = !1);
+ this.config().iH || (r = !1);
+ E = fa.filter(A("status", K)).length;
+ N = fa.filter(A("status", G)).length;
+ R = fa.filter(A("status", n)).length;
+ this.config().iH && 0 === E + N + R && (!d.ldlreceived || 0 <= d.ldlreceived) && (r = !1);
+ if (this.config().SY) {
+ Q = this.j.ao && this.j.ao.stats;
+ if (Q) {
+ if ((Q.sZ && (d.headersent = Q.sZ - this.j.rf), Q.E0 && (d.headerreceived = Q.E0 - this.j.rf), Q.XI && (d.prebuffstarted = Q.XI - this.j.rf), Q.o2 && (d.prebuffcomplete = Q.o2 - this.j.rf), !d.prebuffcomplete || 0 <= d.prebuffcomplete))
+ r = !1;
+ } else
+ r = !1;
+ }
+ U = H.filter(A("type", "getHeadersAndMedia"));
+ l.hm_succ = U.filter(A("status", C)).length;
+ l.hm_fail = U.filter(A("status", M)).length;
+ u.yb(b, l, {
+ prefix: "pr_"
+ });
+ this.Cq.rO && (b.eventlist = this.h1.RLa(this.j));
+ b.prefetchCompleted = r;
+ this.Cia(b);
+ } catch (wb) {
+ this.log.warn("error in collecting video prepare data", wb);
+ }
+ b.avtp = this.Qz.Cm().bE;
+ this.j.qo && this.R_(b);
+ if (this.j.Bc.value)
+ try {
+ b.ttTrackFields = this.j.Bc.value.fh;
+ } catch (wb) {}
+ if (H = this.j.rd && this.j.rd.value && this.j.rd.value.pc) {
+ W = {};
+ H.forEach(function (a) {
+ W[a.hg] = void 0;
+ });
+ b.audioProfiles = Object.keys(W);
+ }
+ this.Dia(b);
+ this.j.xa && "boolean" === typeof this.j.xa.Wf.HC && (b.isSupplemental = this.j.xa.Wf.HC);
+ b.headerCacheHit = !!this.j.ao;
+ this.j.ao && (b.headerCacheDataAudio = this.j.ao.audio, b.headerCacheDataAudioFromMediaCache = this.j.ao.audioFromMediaCache, b.headerCacheDataVideo = this.j.ao.video, b.headerCacheDataVideoFromMediaCache = this.j.ao.videoFromMediaCache);
+ this.j.xa && (b.packageId = this.j.xa.Wf.Uk);
+ this.j.xa && this.j.xa.Wf.qq && (b.hasChoiceMap = !0);
+ this.config().cKa && (b.forceL3WidevineCdm = !0);
+ b.isNonMember = this.bi.XH;
+ this.qwb(c);
+ this.pwb();
+ this.jNa(this.j, b);
+ this.kNa(this.j, b);
+ this.BC(this.j, b);
+ this.Ny(this.j, b, this.Qba);
+ this.zia(b);
+ this.Aia(b);
+ this.Bia(b);
+ this.oNa(b);
+ this.iNa(b);
+ this.qNa(b);
+ this.pNa(b);
+ this.Ic(V.ze.Q3, a, Y.Sh | Y.XE | Y.Og | Y.vL | Y.Tw | Y.bT | Y.m6, b);
+ };
+ c.prototype.Ana = function (a, b) {
+ b = {
+ playdelay: u.Wj(a),
+ reason: this.mJ,
+ intrplayseq: this.c0 - 1,
+ skipped: b
+ };
+ this.BC(this.j, b);
+ this.Ic(V.ze.Ana, !1, Y.Sh | Y.XE | Y.Og, b);
+ "rebuffer" == this.mJ && this.j.Om.icb(Number(u.Wj(a)));
+ };
+ c.prototype.jda = function (a, b, c, f) {
+ a = {
+ moff: u.yv(c),
+ moffms: u.Wj(c),
+ vbitrate: b.R,
+ vbitrateold: a.R,
+ vdlid: b.vd,
+ vdlidold: a.vd,
+ vheight: b.height,
+ vheightold: a.height,
+ vwidth: b.width,
+ vwidthold: a.width,
+ bw: f
+ };
+ this.BC(this.j, a);
+ this.Ny(this.j, a);
+ this.Ic(V.ze.jda, !1, Y.Og, a);
+ };
+ c.prototype.rGb = function (a, b, c) {
+ a = {
+ moff: u.yv(c),
+ moffms: u.Wj(c),
+ vdlidold: a.vd,
+ vbitrateold: a.R
+ };
+ this.BC(this.j, a);
+ this.Ny(this.j, a);
+ this.AC(a, b, this.j.tg.value && this.j.tg.value.stream);
+ this.Ic(V.ze.sGb, !1, Y.Og, a);
+ };
+ c.prototype.KSa = function () {
+ var a,
+ b;
+ a = {
+ waittime: u.Wj(this.j.pha()),
+ abortedevent: "startplay",
+ browserua: T.bm,
+ browserhref: location.href,
+ trackid: this.j.li
+ };
+ this.JZ(a, "endplay");
+ this.Cq.rO && (a.eventlist = this.h1.RLa(this.j));
+ this.j.sg && (a.playbackcontextid = this.j.sg);
+ this.j.Vo && this.j.Vo.initBitrate && (a.initvbitrate = this.j.Vo.initBitrate);
+ try {
+ b = h.XO();
+ b && (a.pdltime = b);
+ u.yb(a, this.j.Yc, {
+ prefix: "sm_"
+ });
+ } catch (O) {}
+ this.xia(a, !0);
+ this.qNa(a);
+ this.Dia(a);
+ this.mNa(a);
+ this.AC(a, this.j.Bf.value, this.j.zl.value);
+ this.Ic(V.ze.QSa, !1, Y.Sh | Y.Og | Y.Tw | Y.vL, a);
+ };
+ c.prototype.hDb = function (a, b) {
+ a = {
+ waittime: u.Wj(a),
+ abortedevent: "resumeplay",
+ browserua: T.bm,
+ resumeplayreason: b
+ };
+ this.j.sg && (a.playbackcontextid = this.j.sg);
+ this.j.Vo && this.j.Vo.initBitrate && (a.initvbitrate = this.j.Vo.initBitrate);
+ this.AC(a, this.j.Bf.value, this.j.zl.value);
+ this.Ic(V.ze.QSa, !1, Y.Sh | Y.Og, a);
+ };
+ c.prototype.pKb = function (a, b) {
+ a = {
+ newstate: b ? "Paused" : "Playing",
+ oldstate: a ? "Paused" : "Playing"
+ };
+ this.BC(this.j, a);
+ this.Ny(this.j, a);
+ this.AC(a, this.j.wf.value && this.j.wf.value.stream, this.j.tg.value && this.j.tg.value.stream);
+ this.Ic(V.ze.rKb, !1, Y.Sh | Y.Og, a);
+ };
+ c.prototype.Mia = function (a, b, c) {
+ a = u.yb({
+ vdlid: this.j.Bf.value.vd,
+ playingms: a,
+ pausedms: b,
+ intrplayseq: this.c0++
+ }, c);
+ this.JZ(a, "intrplay");
+ b = this.j.tc[k.Hc.Na.VIDEO].value;
+ c = this.j.tc[k.Hc.Na.AUDIO].value;
+ a.cdnid = a.vcdnid = b && b.id;
+ a.acdnid = c && c.id;
+ a.locid = this.yP && this.yP.Nja;
+ a.loclv = this.yP && this.yP.hPa;
+ a.avtp = this.Qz.Cm().bE;
+ this.j.qo && (this.xia(a, !0), this.R_(a), this.nNa(a));
+ try {
+ u.yb(a, this.j.n_(), {
+ prefix: "vd_"
+ });
+ } catch (na) {}
+ this.BC(this.j, a);
+ this.Ny(this.j, a);
+ this.AC(a, this.j.wf.value && this.j.wf.value.stream, this.j.tg.value && this.j.tg.value.stream);
+ this.Ic(V.ze.Mia, !1, Y.Sh | Y.Og, a);
+ };
+ c.prototype.ina = function (a, b, c) {
+ a = {
+ moffold: u.yv(a),
+ reposseq: this.yUa++
+ };
+ this.Ny(this.j, a);
+ this.AC(a, c && c.stream, b && b.stream);
+ this.Ic(V.ze.ina, !1, Y.Sh | Y.Og, a);
+ };
+ c.prototype.Udb = function () {
+ this.Ic(V.ze.$db, !1, Y.Sh | Y.Og, {
+ switchdelay: u.Wj(this.getTime() - this.xwb),
+ newtrackinfo: this.j.rd.value.cb,
+ oldtrackinfo: this.pja.cb
+ });
+ };
+ c.prototype.Mfb = function (a, b) {
+ var c,
+ f,
+ h,
+ m;
+ c = b.serverid;
+ f = b.serverrtt;
+ h = b.serverbw;
+ m = {
+ locid: b.location,
+ loclv: b.locationlv,
+ selocaid: c,
+ selcdnid: c,
+ selocaname: b.servername
+ };
+ m.mediatype = b.mediatype;
+ m.selcdnrtt = f;
+ m.selcdnbw = h;
+ m.selreason = b.selreason || "unknown";
+ m.testreason = b.testreason;
+ m.fastselthreshold = b.fastselthreshold;
+ m.seldetail = b.seldetail;
+ m.cdnbwdata = JSON.stringify([{
+ id: c,
+ rtt: f,
+ bw: h
+ }
+ ]);
+ a && (m.oldlocid = a.Nja, m.oldloclv = a.hPa, m.oldocaid = a.uIb, m.oldocaname = a.MD);
+ this.Ic(V.ze.rGa, !1, Y.bT, m);
+ };
+ c.prototype.WWa = function (a) {
+ var b,
+ c;
+ b = {};
+ b.trigger = a;
+ try {
+ c = this.j.iha();
+ b.subtitleqoescore = this.j.ro.ysb(c);
+ b.metrics = JSON.stringify(this.j.ro.Bha(c));
+ } catch (na) {
+ this.log.error("error getting subtitle qoe data", na);
+ }
+ this.Ic(V.ze.$Kb, !1, Y.Sh | Y.Tw | Y.XE, b, "info");
+ };
+ c.prototype.transition = function (a) {
+ this.Ny(this.j, a);
+ this.Ic(V.ze.transition, !1, 0, a);
+ };
+ c.prototype.isb = function (a, b) {
+ if (a = a.PZ())
+ if (b = a[b])
+ return b.yf;
+ };
+ c.prototype.jNa = function (a, b) {
+ a.Ta.$j && (b.isBranching = !0);
+ };
+ c.prototype.kNa = function (a, b) {
+ b.cachedManifest = a.$u;
+ b.cachedLicense = a.iy;
+ b.usedldl = this.config().iH ? ("videopreparer" === a.iy).toString() : "not_capable";
+ };
+ c.prototype.BC = function (a, b) {
+ var c,
+ f;
+ if (this.config().Aub) {
+ c = a.jha();
+ f = a.ha.xa;
+ c && f && (b.segment = c, f = a.uC(), b.segmenttime = f, a = this.isb(a, c), null !== f && void 0 !== a && (b.segmentoffset = f - a));
+ }
+ };
+ c.prototype.Ny = function (a, b, c) {
+ b.pxid = a.ETa;
+ (void 0 === c ? 0 : c) && (b.playgraph_trace = a.WSa);
+ };
+ c.prototype.nNa = function (a) {
+ var b,
+ c;
+ b = this.j.fia;
+ c = b && b.AGb;
+ b && b.eNa && (a.htwbr = b.eNa, a.pbtwbr = b.b2, a.hptwbr = b.aub);
+ b && b.ZUa && (a.rr = b.ZUa, a.ra = b.XEb);
+ b && c && 0 < (c.length || 0) && (a.qe = JSON.stringify(c));
+ };
+ c.prototype.Dia = function (a) {
+ var b,
+ c,
+ f,
+ h,
+ m;
+ b = this;
+ c = this.j.wg && this.j.wg.value && this.j.wg.value.pc;
+ if (c) {
+ f = new Set();
+ h = new Set();
+ m = new Set();
+ c.forEach(function (a) {
+ a = a.hg;
+ f.add(a);
+ h.add(a.replace(b.YAa, ""));
+ (a = a.match(b.YAa)) && 0 < a.length && m.add(a[1]);
+ });
+ a.videoProfiles = [].concat(ca(f));
+ a.videoProfile = 0 === h.size ? "none" : [].concat(ca(h))[0];
+ a.videoProfileLevels = [].concat(ca(m));
+ }
+ };
+ c.prototype.mNa = function (a) {
+ var b,
+ c,
+ f;
+ try {
+ b = this.ad.createElement("canvas");
+ c = b.getContext("webgl") || b.getContext("experimental-webgl");
+ if (c) {
+ f = c.getExtension("WEBGL_debug_renderer_info");
+ f && (a.WebGLRenderer = c.getParameter(f.UNMASKED_RENDERER_WEBGL), a.WebGLVendor = c.getParameter(f.UNMASKED_VENDOR_WEBGL));
+ }
+ } catch (ha) {}
+ };
+ c.prototype.Bub = function (a) {
+ a.switchAwaySummary = {
+ vsa: this.ii.summary.qZa,
+ vsb: this.ii.summary.rZa,
+ vsbt: this.ii.summary.sZa,
+ asa: this.ii.summary.iFa,
+ asb: this.ii.summary.jFa,
+ asbt: this.ii.summary.kFa
+ };
+ };
+ c.prototype.qfa = function (a) {
+ var b,
+ c,
+ f,
+ h,
+ w;
+ b = this;
+ c = this.NSa();
+ this.JZ(c, "endplay");
+ c.browserua = T.bm;
+ this.j.Kw && "downloaded" === this.j.Kw.i_() && (c.trickplay_ms = this.j.mS.offset, c.trickplay_res = this.j.mS.FUa);
+ this.config().WYa && (c.rtinfo = this.j.bsb());
+ if (this.config().hna) {
+ f = this.Qz.Cm().bE;
+ void 0 !== c.avtp ? c.avtp_retired = f : c.avtp = f;
+ f = this.NX.Upb().map(function (a) {
+ return {
+ cdnid: a.ky,
+ avtp: a.bE,
+ tm: a.Tea
+ };
+ });
+ void 0 != c.cdnavtp ? c.cdnavtp_retired = f : c.cdnavtp = f;
+ this.j.qo && this.R_(c);
+ }
+ this.lNa(c);
+ c.endreason = a ? "error" : this.j.Sb.value === q.lb.Fr ? "ended" : "stopped";
+ f = this.Nm;
+ this.vub(f);
+ f && u.yb(c, f, {
+ prefix: "pi_"
+ });
+ f = this.j.lj;
+ a && f && A.Jta(f.errorCode) && (h = "info");
+ try {
+ u.yb(c, this.j.Yc, {
+ prefix: "sm_"
+ });
+ } catch ($a) {}
+ this.j.wia && (c.inactivityTime = this.j.wia);
+ this.xia(c, "info" !== h && a);
+ this.nNa(c);
+ if (this.j.IB) {
+ for (var f = this.j.IB, m = this.config().HB, p = this.j.rf, k = {
+ iv: m,
+ seg: []
+ }, l = function (a, b, c) {
+ return 0 === b || void 0 === c[b - 1] ? a : a - c[b - 1];
+ }, d = f.Tu.map(l), l = f.Nw.map(l), r, g = 0; g < d.length; g++) {
+ if (d[g] || l[g])
+ r ? (r.ams.push(d[g]), r.vms.push(l[g])) : r = {
+ ams: [f.Tu[g]],
+ vms: [f.Nw[g]],
+ soffms: f.startTime + g * m - p
+ };
+ g !== d.length - 1 && d[g] && l[g] || !r || (k.seg.push(r), r = void 0);
+ }
+ c.bt = JSON.stringify(k);
+ }
+ if (this.j.Z0 && 0 < this.j.Z0.length) {
+ w = [];
+ this.j.Z0.forEach(function (a) {
+ w.push({
+ soffms: a.time - b.j.rf,
+ maxvb: a.maxvb,
+ maxvb_old: a.maxvb_old,
+ spts: a.spts,
+ reason: a.reason
+ });
+ });
+ c.maxvbevents = w;
+ }
+ this.j.CTa && (c.psdConservCount = this.j.CTa);
+ a && this.mNa(c);
+ this.WWa("endplay");
+ this.config().Ap && this.Jc() && this.Cia(c);
+ c.isNonMember = this.bi.XH;
+ this.Dia(c);
+ this.jNa(this.j, c);
+ this.kNa(this.j, c);
+ this.BC(this.j, c);
+ this.Ny(this.j, c, this.Qba);
+ this.zia(c);
+ this.Aia(c);
+ this.Bia(c);
+ this.oNa(c);
+ this.wub(c);
+ this.iNa(c);
+ this.yub(c);
+ this.xub(c);
+ this.Bub(c);
+ this.pNa(c);
+ this.Ic(V.ze.qfa, a, Y.Sh | Y.XE | Y.Og | Y.Tw | Y.vL | Y.m6, c, h);
+ };
+ c.prototype.U8a = function (a) {
+ var b;
+ b = [];
+ return a ? Object.keys(a).map(function (a) {
+ return +a;
+ }) : b;
+ };
+ c.prototype.Zlb = function () {
+ var a,
+ b;
+ a = this;
+ if (this.j.dn && this.j.In) {
+ b = [];
+ this.j.dn.concat(this.j.In).forEach(function (c) {
+ c.pc.forEach(function (c) {
+ b.push({
+ dlid: c.vd,
+ type: c.type,
+ bitrate: c.R,
+ vmaf: c.Bb,
+ cdn_ids: a.U8a(c.qv)
+ });
+ });
+ });
+ return JSON.stringify(b);
+ }
+ };
+ c.prototype.Lfb = function () {
+ var b,
+ c,
+ h;
+ function a(a, b) {
+ var m,
+ p,
+ k;
+ m = a.cdnId;
+ p = h[m];
+ k = a.vmaf;
+ p || (p = {
+ cdnid: m,
+ dls: []
+ }, h[m] = p, c.push(p));
+ f.TG(a.bitrate);
+ f.TG(a.duration);
+ m = {
+ bitrate: a.bitrate,
+ tm: T.Th(a.duration)
+ };
+ k && (f.TG(a.vmaf), m.vf = k);
+ m[b] = u.Ud(a.downloadableId);
+ p.dls.push(m);
+ }
+ b = this.j.Om.vpb();
+ c = [];
+ h = {};
+ b.audio.forEach(function (b) {
+ a(b, "adlid");
+ });
+ b.video.forEach(function (b) {
+ a(b, "dlid");
+ });
+ return JSON.stringify(c);
+ };
+ c.prototype.NSa = function () {
+ var a,
+ b,
+ c,
+ h,
+ m,
+ p,
+ k,
+ l,
+ d,
+ w,
+ H;
+ a = this.j.Om;
+ b = {
+ totaltime: u.yv(a.aP()),
+ totalcontenttime: u.yv(a.rMa()),
+ cdndldist: this.Lfb(),
+ reposcount: this.yUa,
+ intrplaycount: this.c0
+ };
+ try {
+ c = {
+ numskip: 0,
+ numlowqual: 0
+ };
+ h = this.j.pj;
+ m = h.rC();
+ Z.na(m) && (b.totfr = m, c.numren = m);
+ m = h.qC();
+ Z.na(m) && (b.totdfr = m, c.numrendrop = m);
+ m = h.MO();
+ Z.na(m) && (b.totcfr = m, c.numrenerr = m);
+ m = h.XZ();
+ Z.na(m) && (b.totfdl = m);
+ b.playqualvideo = JSON.stringify(c);
+ p = this.j.Bf.value;
+ p && (b.videofr = p.DZ.toFixed(3));
+ k = a.BKa();
+ k && (b.abrdel = k);
+ l = a.Ltb() && a.Apb();
+ l && (b.tw_vmaf = l);
+ d = a.zpb();
+ d && u.yb(b, d);
+ b.rbfrs = this.c0;
+ b.maxbitrate = this.io;
+ b.maxresheight = this.dQa;
+ for (var r = this.j.wC(), g, a = 0; a < r.length; a++) {
+ w = r[a];
+ H = this.Wm.WP.Ct(w);
+ if (H) {
+ f.Ra(g);
+ b.maxbitrate = g ? g.R : 0;
+ b.maxresheight = g ? g.height : 0;
+ b.bitratefilters = H.join("|");
+ break;
+ }
+ g = w;
+ }
+ this.j.Kw && (b.trickplay = this.j.Kw.i_());
+ null !== this.j.ro.EFa && (b.avg_subt_delay = this.j.ro.EFa);
+ } catch ($a) {
+ this.log.error("Exception reading some of the endplay fields", $a);
+ }
+ u.yb(b, this.j.n_(), {
+ prefix: "vd_"
+ });
+ return b;
+ };
+ c.prototype.getTime = function () {
+ return this.va.Yb().ca(g.ia);
+ };
+ c.prototype.j3 = function (a) {
+ a.browserua = T.bm;
+ this.Ic(V.ze.MHb, !a.success, Y.Sh | Y.Tw, a);
+ this.Ic = l.ff;
+ };
+ c.prototype.Kub = function () {
+ var a,
+ b,
+ c;
+ a = this;
+ c = [];
+ this.config().nzb && (this.config().ozb.forEach(function (b) {
+ c.push(t.setTimeout(a.f1, b));
+ }), this.config().qQa && (b = t.setInterval(this.f1, this.config().qQa)), this.tYa = function () {
+ c.forEach(function (a) {
+ t.clearTimeout(a);
+ });
+ b && t.clearInterval(b);
+ });
+ };
+ c.prototype.Cia = function (a) {
+ var b;
+ try {
+ b = this.Jc().getStats();
+ a.pr_cache_size = JSON.stringify(b.cache);
+ a.pr_stats = JSON.stringify(b.rKa);
+ } catch (O) {}
+ };
+ c.prototype.zia = function (a) {
+ this.log.debug("httpstats", this.cf.ac);
+ u.yb(a, this.cf.ac, {
+ prefix: "http_"
+ });
+ };
+ c.prototype.xia = function (a, b) {
+ this.config().RHa && !(this.ga % this.config().RHa) && this.j.Hb && this.j.Hb.b0 && (a.ASEstats = JSON.stringify(this.j.Hb.b0(b)));
+ };
+ c.prototype.R_ = function (a) {
+ Object.assign(a, this.j.qo.zb.Esb());
+ };
+ c.prototype.Aia = function (a) {
+ var b;
+ try {
+ b = T.Mr.memory;
+ Z.yOa(b) && (a.totalJSHeapSize = b.totalJSHeapSize, a.usedJSHeapSize = b.usedJSHeapSize, a.jsHeapSizeLimit = b.jsHeapSizeLimit);
+ } catch (O) {}
+ };
+ c.prototype.Bia = function (a) {
+ var b,
+ c;
+ if (this.config().Nmb) {
+ c = null === (b = null === T.Zi || void 0 === T.Zi ? void 0 : T.Zi.connection) || void 0 === b ? void 0 : b.effectiveType;
+ b = null === T.Zi || void 0 === T.Zi ? void 0 : T.Zi.deviceMemory;
+ c && (a.effectiveType = c);
+ b && (a.deviceMemory = b);
+ }
+ };
+ c.prototype.oNa = function (a) {
+ var b;
+ b = this.j.Jf;
+ this.config().Efb && b && !this.config().Pp && (a.keystatuses = this.j.oAb(b.BYb()), this.log.trace("keystatuses", a.keystatuses));
+ };
+ c.prototype.iNa = function (a) {
+ try {
+ this.config().BN && (a.battery = this.j.Gpb(), this.log.trace("batterystatuses", a.battery));
+ } catch (X) {}
+ };
+ c.prototype.wub = function (a) {
+ this.j.qY && (a.dqec = this.j.qY);
+ };
+ c.prototype.vub = function (a) {
+ this.j.MX && u.yb(a, {
+ cast_interaction_counts: this.j.MX.OYb()
+ });
+ };
+ c.prototype.qNa = function (a) {
+ var b;
+ b = this.j.Ta.oo;
+ b && b.isUIAutoPlay && (a.isUIAutoPlay = !0);
+ };
+ c.prototype.pNa = function (a) {
+ var b,
+ c,
+ f;
+ if (null === (c = null === (b = this.j.Jf) || void 0 === b ? void 0 : b.Nf) || void 0 === c ? 0 : c.keySystem)
+ a.keysys = this.j.Jf.Nf.keySystem;
+ else if (null === (f = this.j.Jf) || void 0 === f ? 0 : f.Js)
+ a.keysys = this.j.Jf.Js();
+ };
+ c.prototype.xub = function (a) {
+ this.Ffa && (a.externaldisplay = this.Ffa.xO);
+ };
+ c.prototype.yub = function (a) {
+ this.Vz && this.Vz.gc && (a.media_capabilities_smooth = this.Vz.gc.bKb, a.media_capabilities_efficient = this.Vz.gc.HDb, a.media_capabilities_bitrate = this.Vz.gc.R, a.media_capabilities_height = this.Vz.gc.height, a.media_capabilities_width = this.Vz.gc.width);
+ };
+ c.prototype.AC = function (a, b, c) {
+ c && (a.adlid = c.vd, a.abitrate = c.R);
+ b && (a.vdlid = b.vd, a.vbitrate = b.R);
+ };
+ c.prototype.lNa = function (a) {
+ var b,
+ c;
+ if (this.j.MN) {
+ b = this.j.MN;
+ b.$X && (a.controllerESN = b.$X);
+ b.qhb && (a.controllerUiVer = b.qhb);
+ if (b.phb)
+ try {
+ c = JSON.parse(b.phb);
+ a.controllerGroupNames = c;
+ } catch (na) {
+ this.log.error("Exception parsing controller group names", na);
+ }
+ }
+ };
+ c.prototype.pwb = function () {
+ void 0 === this.Ffa && (this.Ffa = this.Gfa.Unb());
+ };
+ c.prototype.qwb = function (a) {
+ void 0 === this.Vz && void 0 !== a && (this.Vz = this.Cka.Lfa(a));
+ };
+ c.prototype.JZ = function (a, b) {
+ var c;
+ c = this.j.Bv(b);
+ c && Object.keys(c).forEach(function (b) {
+ a[b] = c[b];
+ });
+ };
+ c.prototype.Ic = function (a, b, c, f, h) {
+ this.acb(f, this.j, b, c);
+ a = this.OC.Mn(a, h || (b ? "error" : "info"), f, this.Wm);
+ this.eh.Ic(a);
+ };
+ c.prototype.acb = function (a, b, c, h) {
+ var m,
+ p,
+ l,
+ d,
+ r;
+ "undefined" !== typeof nrdp && nrdp.device && nrdp.device.deviceModel && (a.devmod = nrdp.device.deviceModel);
+ b.Ek && (a.pbcid = b.Ek);
+ h & Y.Sh && (f.Ra(!a || void 0 === a.moff), 0 <= b.bb.value && (a.moff = u.yv(b.bb.value), a.moffms = u.Wj(b.bb.value)));
+ if (h & Y.XE) {
+ m = b.tc[k.Hc.Na.VIDEO].value;
+ p = b.tc[k.Hc.Na.AUDIO].value;
+ l = b.tg.value;
+ d = b.wf.value;
+ m && (a.cdnid = m.id, a.cdnname = m.name);
+ p && (a.acdnid = p.id, a.acdnname = p.name);
+ l && (a.adlid = l.stream.vd, a.abitrate = l.stream.R);
+ d && (a.vdlid = d.stream.vd, a.vbitrate = d.stream.R, a.vheight = d.stream.height, a.vwidth = d.stream.width);
+ }
+ h & Y.Og && b.Hb && (a.abuflbytes = b.oca(), a.abuflmsec = b.$M(), a.vbuflbytes = b.iqa(), a.vbuflmsec = b.AS());
+ if (h & Y.vL) {
+ Object.assign(a, fa.sha());
+ try {
+ r = b.Rf.getBoundingClientRect();
+ a.rendersize = r.width + "x" + r.height;
+ a.renderpos = r.left + "x" + r.top;
+ } catch (za) {}
+ }
+ h & Y.Tw && (m = T.Zi.hardwareConcurrency, 0 <= m && (a.numcores = m), m = this.Wm.$ea) && (p = m.Bpb(), a.droppedFrames = JSON.stringify(p), m = m.UO(this.config().lmb), u.Ed(m, function (b, c) {
+ a["droppedFramesP" + b] = JSON.stringify(c);
+ }));
+ if (h & Y.bT)
+ try {
+ b.Nj && (a.cdninfo = JSON.stringify(b.Nj.map(function (a) {
+ return {
+ id: a.id,
+ nm: a.name,
+ rk: a.Yf,
+ wt: a.location.weight,
+ lv: a.location.level
+ };
+ })));
+ } catch (za) {}
+ c && h & Y.m6 && (f.Ra(b.lj), (c = b.lj) ? a = Object.assign(a, fa.hha(this.platform.iC, c)) : a.errorcode = A.J.nl, a.errorcode === this.platform.iC + A.J.pxa && (a.lastSyncWithVideoElement = this.getTime() - b.ZR));
+ };
+ b.Lva = c;
+ (function (a) {
+ a[a.Sh = 1] = "MOFF";
+ a[a.XE = 2] = "PRESENTEDSTREAMS";
+ a[a.Og = 4] = "BUFFER";
+ a[a.vL = 8] = "SCREEN";
+ a[a.Tw = 16] = "CPU";
+ a[a.bT = 32] = "CDN";
+ a[a.m6 = 64] = "FATALERROR";
+ })(Y || (Y = {}));
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.u7 = void 0;
+ b.u7 = "LogblobBuilderFactorySymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.O4 = void 0;
+ b.O4 = "AppLogSinkSymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.m$ = void 0;
+ b.m$ = "UuidProviderSymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.F8 = void 0;
+ b.F8 = "PboLogblobCommandSymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.ze = void 0;
+ d = b.ze || (b.ze = {});
+ d.Feb = "bitraterestriction";
+ d.rGa = "cdnsel";
+ d.jda = "chgstrm";
+ d.debug = "debug";
+ d.Klb = "dlreport";
+ d.qfa = "endplay";
+ d.Mia = "intrplay";
+ d.f1 = "midplay";
+ d.QSa = "playbackaborted";
+ d.sGb = "renderstrmswitch";
+ d.ina = "repos";
+ d.Ana = "resumeplay";
+ d.wIb = "serversel";
+ d.Q3 = "startplay";
+ d.rKb = "statechanged";
+ d.transition = "transition";
+ d.tdb = "asereport";
+ d.sdb = "aseexception";
+ d.$db = "audioswitch";
+ d.Geb = "blockedautoplay";
+ d.config = "config";
+ d.MXb = "destiny_prepare";
+ d.NXb = "destiny_start";
+ d.KXb = "destiny_events";
+ d.JXb = "destiny_cachestate";
+ d.LXb = "destiny_playback";
+ d.HY = "dlreq";
+ d.ww = "prepare";
+ d.tYb = "ftlProbeError";
+ d.MHb = "securestop";
+ d.ZKb = "subtitleerror";
+ d.$Kb = "subtitleqoe";
+ d.QLb = "timedtextrebuffer";
+ d.RLb = "timedtextswitch";
+ d.dKb = "speedchanged";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.R7 = void 0;
+ b.R7 = "MessageQueueSymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.v7 = void 0;
+ b.v7 = "LogblobSenderSymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.w8 = void 0;
+ b.w8 = "PboBindDeviceCommandSymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.w5 = void 0;
+ b.w5 = "CryptoKeysSymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.v5 = void 0;
+ b.v5 = "CryptoDeviceIdSymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.K5 = void 0;
+ b.K5 = "DeviceProviderSymbol";
+ }, function (d, b) {
+ function a(b, k, l) {
+ if (null != l) {
+ if (0 < l(b, k))
+ throw a.CHa(b, k);
+ } else if (b.Pj && 0 < b.Pj(k))
+ throw a.CHa(b, k);
+ this.start = b;
+ this.end = k;
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.s9 = void 0;
+ a.CHa = function (a, b) {
+ return new RangeError("end [" + b + "] must be >= start [" + a + "]");
+ };
+ b.s9 = a;
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.J5 = void 0;
+ b.J5 = "DeviceIdGeneratorSymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.jU = void 0;
+ b.jU = "MslReadyNotifierSymbol";
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.F0a = b.Tra = void 0;
+ c = a(10);
+ k = a(22);
+ l = a(15);
+ r = a(75);
+ b.Tra = function (a, b, c, f, u, d, r, g, C, M) {
+ var h,
+ m;
+ h = this;
+ m = {
+ Type: b,
+ Bitrate: f,
+ DownloadableId: c
+ };
+ k.yb(h, {
+ track: a,
+ type: b,
+ vd: c,
+ R: f,
+ Bb: u,
+ hg: g,
+ size: d,
+ qv: r,
+ hp: null,
+ rJb: function (a, b, c, f) {
+ if (l.dc(a) || l.dc(b))
+ (h.width = a, h.height = b, l.na(c) && l.na(f) && (h.Vba = c / f * a), m.Resolution = (h.width || "") + ":" + (h.height || ""));
+ },
+ HIb: function (a, b, c, f) {
+ l.dc(a) && l.dc(b) && l.dc(c) && l.dc(f) && (h.cea = a, h.jY = b, h.iY = c, h.hY = f);
+ },
+ DZ: C,
+ Nv: M,
+ fh: m,
+ toJSON: function () {
+ return m;
+ }
+ });
+ };
+ b.F0a = function (a, b, m, f, u) {
+ if (a == c.dU || a === r.Qg.audio)
+ return b;
+ if (a == c.NE || a === r.Qg.video)
+ return m;
+ if (a == r.Qg.d4)
+ return f;
+ if (a == r.Qg.Lpa)
+ return u;
+ };
+ }, function (d, b, a) {
+ var k;
+ function c(a) {
+ var l,
+ h,
+ p,
+ m,
+ f,
+ u,
+ d;
+ p = {};
+ p[k.mK] = a.localName;
+ m = {};
+ p[k.Si] = m;
+ f = [];
+ p[k.lK] = f;
+ u = a.attributes;
+ l = u.length;
+ for (h = 0; h < l; h++) {
+ d = u[h];
+ m[d.localName] = d.value;
+ }
+ a = a.childNodes;
+ l = a.length;
+ m = {};
+ for (h = 0; h < l; h++) {
+ switch ((u = a[h], u.nodeType)) {
+ case b.IZa:
+ u = c(u);
+ d = u[k.mK];
+ u[k.J4] = p;
+ f.push(u);
+ p[d] ? m[d][k.Xz] = u : p[d] = u;
+ m[d] = u;
+ break;
+ case b.JZa:
+ case b.GZa:
+ (u = u.text || u.nodeValue, f.push(u), p[k.Sp] || (p[k.Sp] = u));
+ }
+ }
+ return p;
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.HZa = b.GZa = b.JZa = b.YOb = b.IZa = b.ZOb = b.FZa = void 0;
+ k = a(127);
+ b.FZa = function (a) {
+ return c(a.nodeType == b.HZa ? a.documentElement : a);
+ };
+ b.ZOb = c;
+ b.IZa = 1;
+ b.YOb = 2;
+ b.JZa = 3;
+ b.GZa = 4;
+ b.HZa = 9;
+ }, function (d, b, a) {
+ var c,
+ k;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.EZa = void 0;
+ c = a(6);
+ k = a(15);
+ b.EZa = function (a) {
+ var b,
+ h;
+ if (k.Qv(a)) {
+ b = new DOMParser().parseFromString(a, "text/xml");
+ h = b.getElementsByTagName("parsererror");
+ if (h && h[0]) {
+ try {
+ c.log.error("parser error details", {
+ errornode: new XMLSerializer().serializeToString(h[0]),
+ xmlData: a.slice(0, 300),
+ fileSize: a.length
+ });
+ } catch (p) {}
+ throw Error("xml parser error");
+ }
+ return b;
+ }
+ throw Error("bad xml text");
+ };
+ }, function (d, b, a) {
+ var c,
+ k;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.oSa = void 0;
+ c = a(210);
+ k = a(209);
+ b.oSa = function (a, b, h, p) {
+ return new Promise(function (m, f) {
+ k.tqa(a, function (a) {
+ a.U ? c.fSa(a.object, b, h, p, function (a) {
+ a.U ? m(a.entries) : f(a);
+ }) : f(a);
+ });
+ });
+ };
+ }, function (d, b, a) {
+ var r,
+ h;
+ function c(a, b, c, h, k, d) {
+ return new l(a, b, c, h, k, d);
+ }
+ function k(a) {
+ return a && 0 <= a.indexOf(".__metadata__");
+ }
+ function l(a, b, c, h, k, l) {
+ this.partition = a;
+ this.lifespan = c;
+ this.resourceIndex = b;
+ this.size = h;
+ this.creationTime = k;
+ this.lastRefresh = l;
+ return this.QXa();
+ }
+ r = a(8);
+ h = a(108);
+ a(107);
+ new h.Console("MEDIACACHE", "media|asejs");
+ l.prototype.refresh = function () {
+ this.lastRefresh = h.time.now();
+ return this.QXa();
+ };
+ l.prototype.VVa = function (a) {
+ this.size = a;
+ };
+ l.prototype.eHa = function () {
+ var a;
+ a = h.time.now();
+ return (this.lastRefresh + 1E3 * this.lifespan - a) / 1E3;
+ };
+ l.prototype.QXa = function () {
+ this.lastMetadataUpdate = h.time.now();
+ return this;
+ };
+ l.prototype.constructor = l;
+ d.P = {
+ create: c,
+ mga: function (a) {
+ var b;
+ b = a;
+ "string" === typeof a && (b = JSON.parse(a));
+ if (b && b.partition && !r.X(b.lifespan) && b.resourceIndex && b.creationTime && b.lastRefresh)
+ return (a = c(b.partition, b.resourceIndex, b.lifespan, -1, b.creationTime, b.lastRefresh), b.lastMetadataUpdate && (a.lastMetadataUpdate = b.lastMetadataUpdate), !r.X(b.size) && 0 <= b.size && a.VVa(b.size), a.eHa(), a.convertToBinaryData = b.convertToBinaryData, a);
+ },
+ Uda: function (a) {
+ return a + ".__metadata__";
+ },
+ eZ: function (a) {
+ return k(a) ? a.slice(0, a.length - 13) : a;
+ },
+ WH: k
+ };
+ }, function (d, b, a) {
+ var K,
+ C,
+ M,
+ H,
+ G,
+ T,
+ n,
+ q,
+ Z,
+ B,
+ t,
+ fa,
+ ia;
+ function c() {}
+ function k(a, b) {
+ var f,
+ h,
+ p,
+ k;
+ f = K.Zb(b) ? b : c;
+ this.K = a || ({});
+ (function (a, b, c) {
+ this.yi[a].Od[b] = c;
+ }).bind(this);
+ (function (a, b) {
+ return this.yi[a].Od ? this.yi[a].Od[b] : void 0;
+ }).bind(this);
+ this.on = this.addEventListener = fa.addEventListener;
+ this.removeEventListener = fa.removeEventListener;
+ this.emit = this.Ka = a.eYb ? fa.Ka : c;
+ h = H.pjb(a);
+ p = this.K.dailyDiskCacheWriteLimit;
+ if (h) {
+ this.Ur = h;
+ k = u(a.zka || ia, H.nqb());
+ this.Lu = function (a) {
+ return K.X(k) || null === k || void 0 === this.yi[a] ? !1 : !K.X(k[a]);
+ };
+ k ? (this.yi = {}, b = C.Promise.all(Object.keys(k).map(function (b) {
+ return new C.Promise(function (c, f) {
+ var m;
+ m = k[b];
+ m.TYa = a.TYa;
+ new G(b, h, m, function (a, b) {
+ a ? f(a) : c(b);
+ }, p);
+ });
+ })).then((function (a) {
+ a.map((function (a) {
+ var b;
+ b = a.Kx;
+ this.yi[b] = a;
+ k[b].Tob = k[b].pq - a.Ku;
+ this.yi[b].on(G.Yd.REPLACE, (function (a) {
+ a = a || ({});
+ a.partition = b;
+ a.type = "save";
+ this.Ka("mediacache", a);
+ }).bind(this));
+ this.yi[b].on(G.Yd.bBa, (function (a) {
+ a = a || ({});
+ a.partition = b;
+ a.type = "save";
+ this.Ka("mediacache", a);
+ }).bind(this));
+ this.yi[b].on(G.Yd.ERROR, (function (a) {
+ a = a || ({});
+ a.partition = b;
+ a.type = G.Yd.ERROR;
+ this.Ka("mediacache-error", a);
+ }).bind(this));
+ }).bind(this));
+ return this;
+ }).bind(this)).then((function (a) {
+ m(h, C.storage.VE, Object.keys(k));
+ return a;
+ }).bind(this)).then((function (a) {
+ Object.keys(a.yi).map(function (b) {
+ a.yi[b].Lga().map(function (c) {
+ a["delete"](b, c);
+ });
+ });
+ a.Jl = !0;
+ f(null, a);
+ }).bind(this))["catch"]((function (a) {
+ M.error("Failed to initialize media cache ", a);
+ this.CC = B.Csa;
+ f(this.CC, this);
+ }).bind(this)), t.st(b)) : (this.CC = B.H3a, f(this.CC, this));
+ } else (this.CC = B.Csa, f(this.CC, this));
+ }
+ function l(a, b, c, f, h, m) {
+ var p;
+ p = m ? "mediacache-error" : "mediacache";
+ b = {
+ partition: c,
+ type: b,
+ resource: f,
+ time: C.time.now()
+ };
+ m && (b.error = m);
+ h && (K.na(h.duration) && (b.duration = h.duration), K.na(h.Zu) && (b.bytesRead = h.Zu));
+ try {
+ a.Ka(p, b);
+ } catch (Ha) {
+ M.warn("caught exception while emitting basic event", Ha);
+ }
+ }
+ function r(a, b, c, f, h) {
+ var m;
+ m = h ? "mediacache-error" : "mediacache";
+ b = {
+ partition: c,
+ type: b,
+ resources: f,
+ time: C.time.now()
+ };
+ h && (b.error = h);
+ try {
+ a.Ka(m, b);
+ } catch (P) {
+ M.warn("caught exception while emitting basic event", P);
+ }
+ }
+ function h(a) {
+ return !K.X(a) && !K.Pa(a) && K.na(a.lifespan);
+ }
+ function p(a) {
+ return !T.WH(a) && !q.yvb(a);
+ }
+ function m(a, b, f) {
+ a.query(b, "", function (h, m) {
+ h || Object.keys(m).filter(function (a) {
+ return 0 > f.indexOf(a.slice(0, a.indexOf(".")));
+ }).map(function (f) {
+ a.remove(b, f, c);
+ });
+ });
+ }
+ function f(a, b, c) {
+ var h,
+ m;
+ function f(b) {
+ a["delete"](h, function (f) {
+ f ? c(f) : (delete a.Od[m], f = Object.keys(b.resourceIndex), f = C.Promise.all(f.map(function (b) {
+ return new C.Promise(function (c, f) {
+ a["delete"](b, function (a) {
+ a ? f(a) : c(b);
+ });
+ });
+ })).then(function () {
+ c();
+ }, function (a) {
+ c(a);
+ }), t.st(f));
+ });
+ }
+ T.WH(b) ? (h = b, m = T.eZ(b)) : (h = T.Uda(b), m = b);
+ (b = a.Od[m]) ? f(b) : a.read(h, function (a, b) {
+ a ? c(a) : f(b);
+ });
+ }
+ function u(a, b) {
+ var c,
+ f,
+ h;
+ c = {};
+ f = a.partitions.reduce(function (a, b) {
+ return a + b.capacity;
+ }, 0);
+ h = b / f;
+ a.partitions.map(function (a) {
+ var b;
+ b = a.key;
+ c[b] = {};
+ c[b].pq = Math.floor(h * a.capacity);
+ c[b].mkb = a.dailyWriteFactor || 1;
+ c[b].D_b = a.owner;
+ c[b].rnb = a.evictionPolicy;
+ });
+ return c;
+ }
+ function g(a, b, c) {
+ if (c)
+ return q.Hlb(a, b).reduce(function (a, b) {
+ Object.keys(b).map(function (c) {
+ a[c] = b[c];
+ });
+ return a;
+ }, {});
+ c = {};
+ c[a] = b;
+ return c;
+ }
+ function A(a, b, c, f, h, m, p, u, k, l, d) {
+ return function (r, g) {
+ r ? K.isArray(r) ? (g = r.map(function (a) {
+ return a.error;
+ }), g.some(function (a) {
+ return a.code === B.rE.code;
+ }) && !g.some(function (a) {
+ return a.code === B.nV.code;
+ }) ? d(l, r, function () {
+ k.save(b, c, f, h, m, p);
+ }) : (l["delete"](u), delete l.Od[c], m({
+ error: r[0].error,
+ ht: r[0].ht,
+ type: r[0].type,
+ HEa: r
+ }))) : m({
+ error: r,
+ ht: b,
+ type: "save"
+ }) : (r = g.items.filter(function (b) {
+ return 0 <= Object.keys(a).indexOf(b.key);
+ }).reduce(function (a, b) {
+ return a + b.t0;
+ }, 0), l.Od[c].VVa(r), r = {
+ Tob: g.Xj,
+ yXb: g.QG,
+ fj: 0,
+ items: g
+ }, 0 < g.fj && (r.fj = g.fj), 0 < g.duration && (r.duration = g.duration), m(null, r));
+ };
+ }
+ K = a(8);
+ C = a(108);
+ M = new C.Console("MEDIACACHE", "media|asejs");
+ H = a(735);
+ G = a(734);
+ T = a(370);
+ n = a(107);
+ q = a(727);
+ Z = a(726);
+ B = a(212);
+ t = a(211);
+ fa = a(106).EventEmitter;
+ ia = {
+ G_b: []
+ };
+ k.prototype.xD = function (a, b, f) {
+ var h;
+ h = K.Zb(f) ? f : c;
+ this.Lu(a) ? this.yi[a].query(b, function (a, b) {
+ a ? (M.error("Failed to query resources", a), h([])) : h(b.filter(p));
+ }) : h([]);
+ };
+ k.prototype.read = function (a, b, f) {
+ var h,
+ m,
+ p,
+ u;
+ h = K.Zb(f) ? f : c;
+ if (this.Lu(a)) {
+ m = this.yi[a];
+ p = m.Od[b];
+ if (!T.WH(b) && this.K.Syb) {
+ u = (function (c) {
+ m.G2(Object.keys(c), (function (c, f, m) {
+ c ? h(B.dF.vo("Failed to read " + b, c)) : (l(this, "read", a, b, m), h(null, q.Xub(f)));
+ }).bind(this), c);
+ }).bind(this);
+ p ? u(p.resourceIndex) : this.dFb(a, b, function (a, c) {
+ a ? h(B.dF.vo("Failed to read " + b, a)) : u(c.resourceIndex);
+ });
+ } else
+ m.read(b, (function (c, f, m) {
+ c ? h(B.dF.vo("Failed to read " + b, c)) : (p && p.convertToBinaryData && (f = Z.rhb(f)), l(this, "read", a, b, m), h(null, f));
+ }).bind(this));
+ } else
+ h(B.$w);
+ };
+ k.prototype.G2 = function (a, b, f) {
+ var h,
+ m;
+ h = K.Zb(f) ? f : c;
+ if (this.Lu(a)) {
+ m = {};
+ b = C.Promise.all(b.map((function (b) {
+ return new C.Promise((function (c, f) {
+ this.read(a, b, function (a, h) {
+ a ? (h = {}, h[b] = a, f(h)) : (m[b] = h, c());
+ });
+ }).bind(this));
+ }).bind(this))).then(function () {
+ h(null, m);
+ }, function (a) {
+ h(a);
+ });
+ t.st(b);
+ } else
+ h(B.$w);
+ };
+ k.prototype.eVa = function (a, b, f) {
+ var h;
+ h = K.Zb(f) ? f : c;
+ this.Lu(a) ? "[object Object]" !== Object.prototype.toString.call(b) ? h(B.mV.vo("items must be a map of keys to objects")) : (f = new C.Promise((function (c) {
+ var f,
+ h;
+ f = this.yi[a].Lga();
+ h = Object.keys(b);
+ (f = f.filter(function (a) {
+ return -1 === h.indexOf(a);
+ })) && 0 < f.length ? this.kIa(a, f, function () {
+ c();
+ }) : c();
+ }).bind(this)).then((function () {
+ return C.Promise.all(Object.keys(b).map((function (c) {
+ return new C.Promise((function (f, h) {
+ this.save(a, c, b[c].mo, b[c].Kd, function (a, b) {
+ a ? (M.error("Received an error saving", c, a), h(a)) : f(b);
+ }, !0);
+ }).bind(this));
+ }).bind(this)));
+ }).bind(this)).then((function (c) {
+ var f,
+ m,
+ p;
+ try {
+ f = Number.MAX_VALUE;
+ m = Number.MAX_VALUE;
+ p = c.reduce(function (a, b) {
+ b.Xj && b.Xj < f && (f = b.Xj);
+ b.QG && b.QG < m && (m = b.QG);
+ f < Number.MAX_VALUE && (a.freeSize = f);
+ m < Number.MAX_VALUE && (a.dailyBytesRemaining = m);
+ K.na(b.fj) && (a.bytesWritten += b.fj);
+ K.na(b.duration) && (a.duration += b.duration);
+ return a;
+ }, {
+ partition: a,
+ type: "saveMultiple",
+ keys: Object.keys(b),
+ time: C.time.now(),
+ bytesWritten: 0,
+ duration: 0
+ });
+ this.Ka("mediacache", p);
+ h(null, p);
+ } catch (ja) {
+ h(err);
+ }
+ }).bind(this), (function (b) {
+ K.isArray(b.HEa) ? b.HEa.forEach((function (b) {
+ this.Ka("mediacache-error", {
+ partition: a,
+ type: "saveMultiple",
+ error: b.error,
+ resources: b.iR
+ });
+ }).bind(this)) : this.Ka("mediacache-error", {
+ partition: a,
+ type: "saveMultiple",
+ error: b
+ });
+ h(b);
+ }).bind(this)), t.st(f)) : (K.Zb(f) ? f : c)(B.$w);
+ };
+ k.prototype.save = function (a, b, f, m, p, u) {
+ var k,
+ d,
+ w,
+ H,
+ G,
+ q,
+ S,
+ aa,
+ t;
+ k = K.Zb(p) ? p : c;
+ if (this.Lu(a)) {
+ d = this.yi[a];
+ w = T.Uda(b);
+ p = d.Lga();
+ p = p.filter(function (a) {
+ return a !== b;
+ });
+ if (h(m)) {
+ H = g(b, f, this.K.Syb);
+ G = d.Od[b] || ({});
+ q = G.resourceIndex;
+ q && Object.keys(q).map(function (a) {
+ K.X(H[a]) && d["delete"](a);
+ });
+ m.convertToBinaryData && (f = Z.shb(H), H = g(b, f, !1));
+ q = C.time.now();
+ S = {};
+ S.partition = a;
+ S.resourceIndex = Object.keys(H).reduce(function (a, b) {
+ a[b] = n.Iha(H[b]);
+ return a;
+ }, {});
+ S.creationTime = G.creationTime || q;
+ S.lastRefresh = q;
+ S.lifespan = m.lifespan;
+ S.lastMetadataUpdate = q;
+ S.size = G.size;
+ S.convertToBinaryData = m.convertToBinaryData;
+ aa = (function (a, c, f) {
+ a.alb((function (h, m) {
+ h && M.error("Evicting", "Failed to delete some orphaned records", h);
+ m.Xma ? f() : (h = a.Aqb()) ? this["delete"](a.getName(), h, (function (h) {
+ h ? (u || (K.isArray(c) ? c.forEach((function (b) {
+ r(this, "save", a.getName, b.iR, b.error);
+ }).bind(this)) : l(this, "save", a.getName(), b, void 0, c)), k(c)) : f();
+ }).bind(this)) : k(B.rE);
+ }).bind(this));
+ }).bind(this);
+ t = (function () {
+ var a,
+ b,
+ c;
+ a = this.yi;
+ b = 0;
+ c = C.time.now();
+ if (!K.X(a))
+ for (var f in a) {
+ b += a[f].Npb(c);
+ }
+ return b;
+ }).bind(this);
+ this.kIa(a, p, (function () {
+ d.replace(w, S, (function (c, h) {
+ h ? (d.Od[b] = T.mga(S), d.uGb(H, A(H, a, b, f, m, k, u, w, this, d, aa), u, t)) : c.code === B.rE.code ? aa(d, c, (function () {
+ this.save(a, b, f, m, k, u);
+ }).bind(this)) : k(c);
+ }).bind(this), u, t);
+ }).bind(this));
+ } else
+ k(B.j4a);
+ } else
+ k(B.$w);
+ };
+ k.prototype["delete"] = function (a, b, h) {
+ var m;
+ m = K.Zb(h) ? h : c;
+ this.Lu(a) ? f(this.yi[a], b, (function (c) {
+ l(this, "delete", a, b, void 0, c);
+ m(c);
+ }).bind(this)) : m(B.$w);
+ };
+ k.prototype.kIa = function (a, b, h) {
+ var m,
+ p;
+ m = K.Zb(h) ? h : c;
+ if (this.Lu(a)) {
+ p = this.yi[a];
+ h = C.Promise.all(b.map((function (a) {
+ return new C.Promise((function (b) {
+ f(p, a, (function (c) {
+ b({
+ U: K.X(c),
+ error: c,
+ mo: a
+ });
+ }).bind(this));
+ }).bind(this));
+ }).bind(this))).then((function (b) {
+ var u,
+ k;
+ for (var c = [], f = [], h = [], p = 0; p < b.length; p++) {
+ u = b[p];
+ u.U ? c.push(u.mo) : u.error && f.push(u);
+ }
+ 0 < c.length && r(this, "delete", a, c);
+ 0 < f.length && (h = f.map(function (a) {
+ return a.mo;
+ }), b = t.yMa(f), k = b[0], b.forEach((function (b) {
+ M.error("Failed to delete resources ", b.error, b.iR);
+ r(this, "delete", a, b.iR, b.error);
+ }).bind(this)));
+ b = {};
+ b.e0b = c;
+ 0 < h.length && (b.f0b = h);
+ k ? m(k, b) : m(void 0, b);
+ }).bind(this), (function (c) {
+ r(this, "delete", a, b, c);
+ m(c);
+ }).bind(this));
+ t.st(h);
+ } else
+ m(B.$w);
+ };
+ k.prototype.clear = function (a, b) {
+ var f;
+ f = K.Zb(b) ? b : c;
+ this.Lu(a) ? this.yi[a].clear(function (a) {
+ f(a.filter(p));
+ }) : f(B.$w);
+ };
+ k.prototype.dFb = function (a, b, f) {
+ var h,
+ m;
+ h = K.Zb(f) ? f : c;
+ if (this.Lu(a)) {
+ f = T.Uda(b);
+ m = this.yi[a];
+ m.read(f, function (a, c) {
+ var f;
+ if (a)
+ h(B.k4a);
+ else {
+ f = T.mga(c) || ({});
+ m.PLa(Object.keys(f.wna), function (a) {
+ f.size = a;
+ (a = m.Od[b]) && (f.lastMetadataUpdate && a.lastMetadataUpdate && a.lastMetadataUpdate <= f.lastMetadataUpdate ? m.Od[b] = f : a.lastMetadataUpdate && (a.lastMetadataUpdate > f.lastMetadataUpdate || K.X(f.lastMetadataUpdate)) && (f = a));
+ h(null, f);
+ });
+ }
+ });
+ } else
+ h(B.$w);
+ };
+ k.prototype.Zpa = function (a) {
+ C.QH(a);
+ };
+ k.prototype.constructor = k;
+ d.P = k;
+ }, function (d, b, a) {
+ var r;
+ function c() {}
+ function k(a, b, c) {
+ void 0 === c && (c = !1);
+ r(a.length === b.length, "bitrates_kbps and durations_sec must be of the same length.");
+ r(1E-8 < l(a), "bitrate zero, won't be able to send anything.");
+ this.cy = a;
+ this.MIa = b;
+ this.repeat = c;
+ this.Fk = this.um = 0;
+ }
+ function l(a) {
+ return a.reduce(function (a, b) {
+ return a + b;
+ }, 0);
+ }
+ r = a(5).assert;
+ c.prototype = Error();
+ k.prototype.constructor = k;
+ k.prototype.$o = function () {
+ var a;
+ a = new k(this.cy, this.MIa, this.repeat);
+ a.um = this.um;
+ a.Fk = this.Fk;
+ return a;
+ };
+ k.prototype.Kha = function () {
+ return this.cy[this.um % this.cy.length];
+ };
+ k.prototype.Gy = function () {
+ return this.MIa[this.um % this.cy.length];
+ };
+ k.prototype.Wlb = function (a) {
+ r(0 < a, "expect x_sec > 0.0");
+ if (!(this.repeat || 0 <= this.um && this.um < this.cy.length))
+ throw new c();
+ r(this.Fk < this.Gy(), "expect this.cur_pos_sec_in_bin < this.get_curr_duration_sec()");
+ for (var b; ; ) {
+ b = this.Gy() - this.Fk;
+ b = a < b ? a : b;
+ a -= b;
+ this.Fk += b;
+ if (this.Fk < this.Gy())
+ break;
+ this.Fk -= this.Gy();
+ this.um += 1;
+ if (!this.repeat && this.um >= this.cy.length) {
+ if (0 < a)
+ throw new c();
+ break;
+ }
+ }
+ };
+ k.prototype.sSa = function (a) {
+ this.Wlb(a);
+ };
+ k.prototype.Xlb = function (a) {
+ r(0 < a, "expect y_kb > 0.0");
+ if (!(this.repeat || 0 <= this.um && this.um < this.cy.length))
+ throw new c();
+ r(this.Fk < this.Gy(), "expect this.cur_pos_sec_in_bin < this.get_curr_duration_sec()");
+ for (var b, h = 0; ; ) {
+ b = this.Gy() - this.Fk;
+ b = a < b * this.Kha() ? a / this.Kha() : b;
+ a -= this.Kha() * b;
+ h += b;
+ this.Fk += b;
+ if (this.Fk < this.Gy())
+ return h;
+ this.Fk -= this.Gy();
+ this.um += 1;
+ if (!this.repeat && this.um >= this.cy.length) {
+ if (0 < a)
+ throw new c();
+ return h;
+ }
+ }
+ };
+ d.P = {
+ Z6a: k,
+ $6a: c
+ };
+ }, function (d, b, a) {
+ var l;
+ function c(a, b, c) {
+ this.da = a;
+ this.Gp = b;
+ this.RQ = c;
+ }
+ function k(a, b) {
+ this.dka = b;
+ void 0 === b && (this.dka = !0);
+ this.hj = a;
+ this.M7a();
+ }
+ l = a(5).assert;
+ c.prototype.constructor = c;
+ c.prototype.Ev = function () {
+ return 8 * this.da / 1E3 / this.Gp;
+ };
+ k.prototype.constructor = k;
+ k.prototype.$o = function (a, b, c, m, f) {
+ void 0 === b && (b = 0);
+ void 0 === c && (c = a.LH());
+ void 0 === m && (m = 0);
+ void 0 === f && (f = a.hj.length);
+ for (var h = [], p, l = m; l < f; l++) {
+ m = [];
+ for (var d = b; d < c; d++) {
+ p = a.hj[l][d];
+ m.push(p);
+ }
+ h.push(m);
+ }
+ return new k(h, a.dka);
+ };
+ k.prototype.M7a = function () {
+ var a,
+ b;
+ a = this.hj[0].length;
+ for (b in this.hj.slice(1)) {
+ l(this.hj[b].length === a, "expect this.chunkss[chunksIndex].length === n but got " + this.hj[b].length + " and " + a);
+ }
+ this.dka && this.N7a();
+ this.O7a();
+ };
+ k.prototype.LH = function () {
+ return this.hj[0].length;
+ };
+ k.prototype.N7a = function () {
+ for (var a = 0; a < this.hj.length - 1; a++) {
+ for (var b = 0; b < this.LH(); b++) {
+ l(this.hj[a][b].da <= this.hj[a + 1][b].da, "Chunk size for epoch " + b + " is not monotonic");
+ }
+ }
+ };
+ k.prototype.O7a = function () {
+ for (var a = 0; a < this.hj.length - 1; a++) {
+ for (var b = 0; b < this.LH(); b++) {
+ l(1E-8 > Math.abs(this.hj[a][b].Gp - this.hj[a + 1][b].Gp), "Chunk duration for epoch " + b + " is not consistent");
+ }
+ }
+ };
+ k.prototype.Zsb = function () {
+ var a;
+ a = [];
+ this.hj[0].forEach(function (b) {
+ a.push(b.Gp);
+ });
+ return a;
+ };
+ d.P = {
+ H0a: c,
+ I0a: k
+ };
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r,
+ h,
+ p,
+ m,
+ f,
+ u,
+ g,
+ A;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.k5 = void 0;
+ c = a(8);
+ k = a(60);
+ l = a(4);
+ r = a(750);
+ h = a(16);
+ p = a(221);
+ m = a(11);
+ f = a(5);
+ u = a(27);
+ g = a(385);
+ A = a(376);
+ d = (function () {
+ function a(a, b, c, h, u, k, d, r, g, w) {
+ this.eb = a;
+ this.Wg = b;
+ this.u = c;
+ this.$F = h;
+ this.K = d;
+ this.QV = r;
+ this.kDa = g;
+ this.KO = w;
+ this.ib = this.u.warn.bind(this.u);
+ this.Kj = this.u.trace.bind(this.u);
+ this.Bg = this.u.log.bind(this.u);
+ this.vh = [];
+ this.Cn = {};
+ u.qq ? (f.assert(!u.Wk), this.L$ = !0, this.bab(u, u.qq, k)) : (this.fm = this.Y$(u.Wk || "", u, 0, void 0, void 0, {}, !0), this.fm.CI = !0, this.fm.oa = Infinity, this.TW = [this.fm]);
+ this.Lc = this.GV(this.fm, void 0, k);
+ this.Lc.active = !0;
+ a = m.Zy(l, this.u, "BranchQueue::");
+ this.ti = new p.WS(a);
+ this.ti.enqueue(this.Lc);
+ this.Yaa = this.gM = void 0;
+ }
+ a.rga = function (a) {
+ return "m" + a;
+ };
+ Object.defineProperties(a.prototype, {
+ Lv: {
+ get: function () {
+ return !!this.L$;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ Ji: {
+ get: function () {
+ return this.Lc.gj;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ Hh: {
+ get: function () {
+ return this.fm;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ ig: {
+ get: function () {
+ return this.Lc.aa.id;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ jkb: {
+ get: function () {
+ return this.Lc.O.Za;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ Xb: {
+ get: function () {
+ return this.Lc;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ xc: {
+ get: function () {
+ return this.vh;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ pe: {
+ get: function () {
+ return this.Lc.pe;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ Ff: {
+ get: function () {
+ return this.eb.Ff;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ Xk: {
+ get: function () {
+ return this.gM ? this.gM : this.xc[0];
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ a.prototype.ic = function () {
+ this.vh.forEach(function (a) {
+ a.Eg();
+ });
+ this.vh = [];
+ this.ti.clear();
+ };
+ a.prototype.Gh = function (a) {
+ return this.Cn[a];
+ };
+ a.prototype.ZLa = function () {
+ return this.ti.tLa();
+ };
+ a.prototype.YLa = function (a, b) {
+ var c;
+ c = this.Cn[a];
+ if (c)
+ return (a = c.Sj[b]) && a.weight;
+ this.ib("getSegmentWeight, unknown segment:", a);
+ };
+ a.prototype.hsb = function (a) {
+ var b;
+ b = this.Cn[a];
+ if (b)
+ return b.T;
+ this.ib("getSegmentStartPts, unknown segment:", a);
+ };
+ a.prototype.gsb = function (a) {
+ var b;
+ b = this.Cn[a];
+ if (!b)
+ this.ib("getSegmentDuration, unknown segment:", a);
+ else if (c.na(b.oa) && isFinite(b.oa) && c.na(b.T) && isFinite(b.T))
+ return b.oa - b.T;
+ };
+ a.prototype.L2 = function (a) {
+ var b;
+ b = -1;
+ this.vh.some(function (c, f) {
+ return c === a ? (b = f, !0) : !1;
+ });
+ -1 !== b ? this.vh.splice(b, 1) : this.ib("Unable to find branch:", a, "in branches array");
+ };
+ a.prototype.mfb = function (a, b) {
+ var c;
+ c = 0;
+ this.iCa(a).forEach(function (a) {
+ (a = a.Nc(b)) && (c += a.Zx);
+ });
+ return c;
+ };
+ a.prototype.LB = function (a, b) {
+ var c;
+ c = 0;
+ this.iCa(a).forEach(function (a) {
+ (a = a.Nc(b)) && (c += a.PB);
+ });
+ return c;
+ };
+ a.prototype.us = function (a, b, c) {
+ if (!a.nb(b))
+ return 0;
+ for (var f = a.kb(b), f = c ? f.Ub : f.rq; void 0 === f; ) {
+ if (!a.Pf)
+ return 0;
+ a = a.Pf;
+ f = a.kb(b);
+ f = c ? f.Ub : f.rq;
+ }
+ a = this.kDa.Sd();
+ return Math.max(f - a, 0);
+ };
+ a.prototype.YZ = function (a, b) {
+ var c;
+ if (void 0 !== this.K.SC) {
+ c = l.Ik()[b];
+ a = this.mfb(a, b);
+ return c - a;
+ }
+ };
+ a.prototype.Nfa = function (a) {
+ return this.vh.filter(function (b) {
+ if (b.O.Za === a)
+ return !0;
+ });
+ };
+ a.prototype.cob = function (a, b) {
+ return this.bCa(a, !1, b);
+ };
+ a.prototype.bob = function (a, b) {
+ return this.bCa(a, !0, b);
+ };
+ a.prototype.tGb = function (a, b, f) {
+ c.ee(this.vh, function (c) {
+ c.O === a && c.aWa(b, f);
+ });
+ c.ee(this.Cn, function (c) {
+ c.O === a && (c.O = b);
+ });
+ };
+ a.prototype.IUa = function () {
+ var a;
+ a = this;
+ c.ee(this.vh, function (b) {
+ var c;
+ c = a.eb.ng(b.O.Za);
+ b.n4(u.fa.Jd(c.Ts));
+ });
+ };
+ a.prototype.Cw = function (a) {
+ var b;
+ b = this;
+ c.ee(this.vh, function (c) {
+ c.kb(1).track.Qc.forEach(function (c) {
+ var f;
+ f = g.hca(c.hg, c.R, a, b.u);
+ k(f, c);
+ });
+ });
+ };
+ a.prototype.zq = function (a, b, c, f) {
+ var h;
+ for (; b; ) {
+ h = b.zq(a, c);
+ if (h)
+ return h;
+ if (f)
+ break;
+ b = b.Pf;
+ }
+ };
+ a.prototype.PHa = function (a) {
+ var b,
+ c;
+ b = this;
+ void 0 === a && (a = !1);
+ c = this.vh;
+ a && (c = c.filter(function (a) {
+ return a !== b.Lc;
+ }));
+ c.forEach(function (a) {
+ a.active = !1;
+ b.ti.remove(a);
+ });
+ a || this.ti.clear();
+ return c;
+ };
+ a.prototype.FEb = function () {
+ var a;
+ for (; 0 < this.vh.length; ) {
+ a = this.vh[0];
+ if (!a.active)
+ break;
+ if (a === this.Lc)
+ break;
+ if (!a.Itb())
+ break;
+ a.Eg();
+ this.vh.shift();
+ }
+ };
+ a.prototype.PQ = function (a, b, c, f, h) {
+ if (c > f) {
+ for (c -= f; a; ) {
+ a.PQ(b, c, h);
+ a = a.Pf;
+ }
+ return c;
+ }
+ };
+ a.prototype.DPa = function (a, b) {
+ for (var c = {
+ GN: null,
+ VI: null,
+ Zc: null,
+ dk: 0,
+ ki: 0,
+ $: []
+ }; a; ) {
+ a.f_(c, b);
+ a = a.Pf;
+ }
+ return c;
+ };
+ a.prototype.Fgb = function (a) {
+ var b,
+ c,
+ f;
+ b = this.Lc;
+ if (b.rPa)
+ c = b.rPa;
+ else {
+ f = this.Lc.pe;
+ c = this.GV(b.aa, b);
+ h.We.forEach(function (a) {
+ var f;
+ f = c.Nc(a);
+ f && (f.QD(0), f.A3(b.Nc(a).rg));
+ });
+ c.n4(u.fa.Jd(f + a));
+ b.rPa = c;
+ }
+ this.hF(c, b);
+ };
+ a.prototype.xcb = function (b, c, h) {
+ var m,
+ p;
+ f.assert(!b.Lv());
+ if (!this.L$) {
+ this.L$ = !0;
+ this.gM = this.Xk;
+ m = this.fm.id || a.rga(0);
+ this.fm.id = m;
+ this.Cn[m] = this.fm;
+ this.fm.oa = this.eb.Sqb().wLa();
+ this.fm.pz = !0;
+ }
+ p = void 0 !== b.Wk ? b.Wk : a.rga(b.Za);
+ b = this.Y$(p, b, c, h, void 0, {}, !0);
+ b.pz = !0;
+ this.TW.forEach(function (a) {
+ a.Sj = {};
+ a.Sj[p] = {
+ weight: 100
+ };
+ a.cO = p;
+ a.or = !1;
+ });
+ this.TW = [b];
+ };
+ a.prototype.ev = function (a, b) {
+ var c,
+ f,
+ h,
+ m;
+ c = this.Xk;
+ f = c.O3(b, this.eb.Y);
+ h = c.aa;
+ m = c.children[a];
+ if (b) {
+ if (!h.Sj[a])
+ return (this.Lc.ib("chooseNextSegment, invalid destination:", a, "for current segment:", h.id), !1);
+ if (c.jj)
+ return c.jj === a;
+ c.jj = a;
+ m && c.xZ && this.hF(m, c);
+ return !0;
+ }
+ if (void 0 !== c.jj)
+ return !1;
+ if (!m)
+ return (f.TQa = !0, !1);
+ f.TQa = !m.ida();
+ this.eb.dba(void 0, A.uL.hla);
+ c.xZ = void 0;
+ c.jj = a;
+ this.hF(m, c);
+ c.nfa();
+ this.eb.BM();
+ return !0;
+ };
+ a.prototype.Xtb = function (a, b) {
+ var f,
+ h,
+ m,
+ p;
+ f = this;
+ p = a.aa;
+ b && !a.jj && (a.jj = p.cO, a.O3(!0, this.eb.Y, !0));
+ a.children = Object.create(null);
+ c.ee(p.Sj, function (b, c) {
+ a.jj && c !== a.jj || (h = f.Cn[c], m = f.u8a(h, a), a.children[c] = m);
+ });
+ a.jj && (b = a.children[a.jj]) && this.hF(b, a);
+ a.xZ = !0;
+ };
+ a.prototype.iMb = function () {
+ var a;
+ a = 0;
+ c.ee(this.vh, function (b) {
+ h.We.forEach(function (c) {
+ b.nb(c) && (a += b.Nc(c).Ja.Oo);
+ });
+ });
+ return a;
+ };
+ a.prototype.lLb = function (a, b) {
+ var c,
+ f,
+ h;
+ c = this;
+ f = this.Y8a(a, b);
+ if (f) {
+ f !== this.Lc.aa ? (this.PHa(), h = this.GV(f, this.Lc, a), h.Pf = void 0, h.soa(void 0, void 0, !0), this.w7a(this.Lc), this.hF(h, this.Lc)) : (this.PHa(!0).forEach(function (a) {
+ a.Eg();
+ c.L2(a);
+ c.ti.remove(a);
+ }), this.Lc.Xpa(a, this.K.Z3));
+ f === this.Xk.aa && (this.Xk.Pt.shift(), h && (h.Pt = this.Xk.Pt, h.jj = this.Xk.jj));
+ this.Wg.nW(f, this.Lc.pe);
+ this.Lc.xZ = void 0;
+ } else
+ this.ib("findSegment no segment for manifestIndex:", b);
+ };
+ a.prototype.BPa = function (a, b) {
+ var c;
+ c = a.aa;
+ b || (b = c.cO);
+ m.Yna(c.id);
+ a.jj || (a.jj = b, a.O3(!0, this.eb.Y, !0));
+ (b = a.children[a.jj]) && this.hF(b, a);
+ };
+ a.prototype.KVa = function (a, b) {
+ if (this.Lc !== a) {
+ if (b)
+ for (b = this.Lc; b && b !== a; ) {
+ b.active = !1;
+ this.ti.remove(b);
+ b = b.Pf;
+ }
+ this.Lc = a;
+ }
+ };
+ a.prototype.sr = function (a, b) {
+ var c,
+ f,
+ p,
+ u,
+ k;
+ c = this;
+ if (this.Lv) {
+ f = this.K;
+ p = this.Xk;
+ u = p.aa;
+ k = m.Yna(u.id);
+ !p.jj && !u.or && p.Qb - b <= f.gz && (this.ib(k + "updatePts making fork decision at playerPts:", a, "contentPts:", b), this.BPa(p));
+ }
+ h.We.forEach(function (a) {
+ c.Lc.nb(a) && c.Ff[a].sr();
+ });
+ };
+ a.prototype.EAb = function (a, b) {
+ var c,
+ f;
+ if (this.Lv) {
+ c = this.gM;
+ if (!(this.K.qub && a && this.Yaa && a.T === this.Yaa || (a = a.Ja.Gc, c && a.aa.id === c.aa.id))) {
+ f = null === c || void 0 === c ? void 0 : c.Nc(1);
+ f = null === f || void 0 === f ? void 0 : f.rg;
+ this.Yaa = null === f || void 0 === f ? void 0 : f.T;
+ this.gM = a;
+ this.U7a(c);
+ c = c && c.Rgb(a);
+ this.Wg.H$a(a.aa, b, c);
+ }
+ }
+ };
+ a.prototype.jla = function (a, b, c) {
+ b.CI || (b.T = this.MLa(a, b.T, !0), c || (b.oa = this.MLa(a, b.oa, !1)), b.CI = !0, !1);
+ };
+ a.prototype.o4 = function (a, b) {
+ var f;
+ m.Yna(a);
+ f = this.Cn[a];
+ f ? c.ee(f.Sj, function (a, c) {
+ a.weight = b[c] || 0;
+ }) : this.ib("updateChoiceMapEntry, unknown segment:", a);
+ };
+ a.prototype.MLa = function (a, b, c) {
+ a = c ? a.MJa(b) : a.AO(b);
+ if (!a.length)
+ return b;
+ b = a[1];
+ return c ? b.T : b.oa;
+ };
+ a.prototype.ACa = function (a, b, c) {
+ var f;
+ f = b ? c.Qb : c.ie;
+ return (b ? c.l3 : c.gma) <= a && a < f;
+ };
+ a.prototype.bCa = function (a, b, f) {
+ var u;
+ for (var h = this.eb, m = this.Lc; m; ) {
+ if ((!c.na(f) || h.Pia(f, m.O.Za)) && this.ACa(a, b, m))
+ return m;
+ m = m.Pf;
+ }
+ if (b)
+ for (var m = Object.keys(this.Lc.children), p = 0; p < m.length; p++) {
+ u = this.Lc.children[m[p]];
+ if ((!c.na(f) || h.Pia(f, u.O.Za)) && this.ACa(a, b, u))
+ return u;
+ }
+ };
+ a.prototype.u8a = function (a, b) {
+ var c,
+ f;
+ c = this.GV(a, b);
+ f = c.soa(b, void 0, this.K.Vma);
+ h.We.forEach(function (a) {
+ var h,
+ m,
+ p;
+ if (c.nb(a)) {
+ h = c.Nc(a);
+ m = b.Nc(a);
+ p = f[a];
+ 1 === a && c.n4(u.fa.Jd(m.Ub + b.pe - p));
+ h.QD(p);
+ }
+ });
+ this.Wg.nW(a, c.pe);
+ return c;
+ };
+ a.prototype.w7a = function (a) {
+ for (var b = [a.aa.id]; a.Pf; ) {
+ a = a.Pf;
+ b.unshift(a.aa.id);
+ }
+ this.A$(a);
+ };
+ a.prototype.A$ = function (a) {
+ var b,
+ f;
+ b = this;
+ f = a.aa;
+ c.ee(a.children, function (a) {
+ a && b.A$(a);
+ });
+ this.ti.remove(a);
+ a.Eg();
+ this.L2(a);
+ this.Wg.E$a(f);
+ };
+ a.prototype.hF = function (a, b) {
+ var f,
+ h,
+ m,
+ p;
+ f = this;
+ h = b.aa;
+ b.O !== a.O && this.eb.LCa(a.O.Za);
+ a.active = !0;
+ this.ti.enqueue(a);
+ a.wG();
+ m = l.time.ea();
+ p = {};
+ c.ee(b.children, function (b) {
+ var c,
+ h;
+ if (b) {
+ if (b.zd) {
+ c = b.Nc(0);
+ h = b.Nc(1);
+ b.zd.pN = [c ? c.Zo.qa : 0, h ? h.Zo.qa : 0];
+ b.zd.amb = m - b.zd.W_;
+ b.zd.W_ = void 0;
+ p[b.aa.id] = b.zd;
+ }
+ b.aa.id !== a.aa.id && f.A$(b);
+ }
+ });
+ b.children = Object.create(null);
+ b.children[a.aa.id] = a;
+ b.qF = void 0;
+ this.KVa(a);
+ this.Wg.F$a(a.aa, p);
+ 1 < Object.keys(h.Sj).length && a.ida();
+ };
+ a.prototype.U7a = function (a) {
+ var b,
+ c;
+ if (a) {
+ b = l.time.ea();
+ c = a.Pt[0];
+ c && void 0 === c.xY ? c.xY = b - c.requestTime : c || (this.ib("missing metrics for branch:", a.aa.id), c = {
+ L3: a.aa.id,
+ h3: !0,
+ xY: 0,
+ zd: {}
+ }, a.Pt.unshift(c));
+ void 0 === c.startTime && (c.startTime = b);
+ }
+ };
+ a.prototype.Y8a = function (a, b) {
+ var h,
+ m,
+ u,
+ k;
+ f.assert(0 <= a);
+ for (var p in this.Cn) {
+ u = this.Cn[p];
+ if (this.eb.Pia(u.O.Za, b)) {
+ if (u.T <= a && (Infinity === u.oa || void 0 === u.oa || a < u.oa))
+ return u;
+ k = Math.min(Math.abs(a - u.T), Math.abs(a - u.oa));
+ if (c.X(h) || k < h)
+ (h = k, m = u);
+ }
+ }
+ return m;
+ };
+ a.prototype.Y$ = function (a, b, c, f, h, m, p, u, k) {
+ b = new r.Eza(a, b, c, f, h, m, p, u, void 0, k);
+ return this.Cn[a] = b;
+ };
+ a.prototype.bab = function (a, b, f) {
+ var h,
+ m,
+ p;
+ h = this;
+ this.fm = void 0;
+ this.TW = [];
+ m = null;
+ p = null;
+ c.ee(b.segments, function (b, u) {
+ var k,
+ l,
+ d,
+ r,
+ g;
+ k = b.startTimeMs;
+ l = b.endTimeMs;
+ d = {};
+ c.ee(b.next, function (a, c) {
+ d[c] = {
+ weight: a.weight || 0,
+ tMb: a.transitionHint || b.transitionHint,
+ ZXb: "number" === typeof a.earliestSkipRequestOffset ? a.earliestSkipRequestOffset : b.earliestSkipRequestOffset
+ };
+ });
+ r = b.defaultNext;
+ c.X(r) && (r = Object.keys(d)[0]);
+ g = c.X(r);
+ r = h.Y$(u, a, k, l, r, d, g, b.transitionDelayZones, b.transitionHint);
+ k <= f && (f < l || c.X(l)) ? h.fm = r : k > f && (!m || k < p) && (m = u, p = k);
+ g && h.TW.push(r);
+ });
+ this.fm || (this.fm = m ? this.Cn[m] : this.Cn[b.initialSegment]);
+ };
+ a.prototype.GV = function (a, b, c) {
+ var f,
+ h,
+ m,
+ p;
+ f = a.O;
+ h = this.eb.ng(f.Za);
+ m = h.Ts;
+ p = [];
+ [0, 1].forEach(function (a) {
+ f.nb(a) && p.push(h.Yn(a));
+ });
+ a = new A.sva(this.eb, this.K, this.Wg, this.u, this, this.QV, this.kDa, this.$F, a, p, m, b, c ? u.fa.Jd(c) : void 0, this.KO, this.eb.Ff, this.eb.as);
+ this.y7a(a);
+ this.vh.push(a);
+ return a;
+ };
+ a.prototype.y7a = function (a) {
+ var c;
+ function b(a) {
+ c.eb.emit(a.type, a);
+ }
+ c = this;
+ a.addListener("locationSelected", b);
+ a.addListener("logdata", b);
+ a.addListener("serverSwitch", b);
+ a.addListener("streamSelected", b);
+ a.addListener("lastSegmentPts", b);
+ a.addListener("managerdebugevent", b);
+ a.addListener("requestCreated", function (a) {
+ a = a.request;
+ c.eb.gba(a.L, a.T);
+ });
+ };
+ a.prototype.iCa = function (a) {
+ for (var b = [a]; a.Pf; ) {
+ a = a.Pf;
+ b.push(a);
+ }
+ return b;
+ };
+ return a;
+ })();
+ b.k5 = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r,
+ h,
+ p,
+ m,
+ f,
+ u,
+ g;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.aU = void 0;
+ c = a(0);
+ d = a(391);
+ k = a(161);
+ l = a(19);
+ r = a(238);
+ h = a(16);
+ p = a(4);
+ m = a(158);
+ f = a(5);
+ u = a(27);
+ g = a(752);
+ a = (function (a) {
+ function b(b, c, f, h, k, l, d, r, w, A, K, n, q) {
+ f = a.call(this, h, r, f, h, h, k, u.fa.Jd(l), d, K, n, q) || this;
+ f.eb = b;
+ f.Wg = c;
+ f.pf = w;
+ f.Ff = A;
+ f.Mca = 0;
+ f.qu = !1;
+ f.Qx.QYa = !1;
+ f.Rab = r;
+ f.YL = new g.tva(h, f.Ff, r, f.u, f.L, f.Wg, f.Ja, f.eb);
+ f.Gwb = p.time.ea();
+ f.ywb = void 0;
+ f.UC = r.Gia;
+ f.oTa = p.time.ea();
+ c = m["default"](r);
+ b = c.vw;
+ c = c.JQ;
+ f.NDb = 0 === f.L ? b : c;
+ f.ER(k);
+ return f;
+ }
+ c.__extends(b, a);
+ Object.defineProperties(b.prototype, {
+ Zx: {
+ get: function () {
+ return this.Ja.Zx;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ IG: {
+ get: function () {
+ return this.Ja.IG;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ PB: {
+ get: function () {
+ return this.Ja.PB;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ yz: {
+ get: function () {
+ return this.Ja.yz;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ Pg: {
+ get: function () {
+ return this.YL.Pg;
+ },
+ set: function (a) {
+ this.YL.Pg = a;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ gn: {
+ get: function () {
+ return this.YL.gn;
+ },
+ set: function (a) {
+ this.YL.gn = a;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ G0: {
+ get: function () {
+ return this.Lc;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ Sub: {
+ get: function () {
+ return this.vCa.qa;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ uJ: {
+ get: function () {
+ return this.PDa.uJ;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ nsb: {
+ get: function () {
+ return this.eb.aba;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ $g: {
+ get: function () {
+ return this.qu;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ JB: {
+ get: function () {
+ return this.yBa;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ b.prototype.reset = function () {
+ this.seeking = void 0;
+ this.connected = this.Pg = !1;
+ this.Qx.reset();
+ };
+ b.prototype.Eg = function () {
+ this.reset();
+ a.prototype.Eg.call(this);
+ };
+ b.prototype.mC = function (a, b) {
+ return r.mC(this.Yg.L, this.K, a, b, this.Lg, this.eb.Xyb, this.CM);
+ };
+ b.prototype.xm = function (a, b, c, f) {
+ return r.xm(this.Yg.L, this.K, a, b, c, f);
+ };
+ b.prototype.Vl = function (a) {
+ this.Ja.Vl(a);
+ this.UC = this.K.Gia;
+ };
+ b.prototype.wG = function () {
+ this.Ja.oS();
+ };
+ b.prototype.ER = function (a) {
+ var b,
+ c;
+ b = this.eb;
+ c = this.L;
+ f.assert(a.L === c);
+ f.assert(a.O === this.Gc.O);
+ this.Yg = a;
+ this.Gc.O.aqa(c, a.Qc);
+ 0 === c && (this.CM = k.$ba(this.Rab, a.Qc[0]));
+ b.s9a(this, a.QC);
+ this.pfb(a.Qc);
+ this.ag.ER(a);
+ this.Gc.O.qda();
+ this.Pg = !1;
+ };
+ b.prototype.Ofa = function (a) {
+ var b;
+ b = this.Gc.O.qg[this.L];
+ if (b && b.stream.ge && (a = b.stream.$.ym(a), -1 !== a))
+ return a;
+ };
+ b.prototype.QD = function (a) {
+ var b,
+ c,
+ f;
+ if (this.kg && this.kg.T === a)
+ (b = this.kg.index, c = a);
+ else {
+ f = this.Gc.O;
+ b = f.qg[this.L];
+ if (!b || !b.stream.ge) {
+ this.mD = a;
+ return;
+ }
+ c = b.stream.$;
+ this.kg = this.xm(b.stream, a, void 0, !1);
+ if (void 0 === this.kg) {
+ if ((b = c.length - 1, c = c.hi(b), this.ib("setStreamingPts out of range of fragments, pts:", a, "last startPts:", c, "fragment index:", b, "fastplay:", f.Ie.Kf), f.Ie.Kf)) {
+ this.mD = a;
+ return;
+ }
+ } else (b = this.kg.index, c = this.kg.T);
+ }
+ this.Pk = b;
+ this.PW = c;
+ this.mD = void 0;
+ };
+ b.prototype.lOb = function (a) {
+ var b,
+ c;
+ b = this.Yg.Hq(a);
+ c = "verifying streamId: " + a + " stream's track: " + (b ? b.wa : "unknown") + " currentTrack: " + this.Yg.cb;
+ return b ? !0 : (this.Wg.Qk(c), this.Wg.Qk("unknown streamId: " + a), !1);
+ };
+ b.prototype.pfb = function (a) {
+ this.Ttb = a.reduce(function (a, b) {
+ return b.Pq && b.R > a.R ? b : a;
+ }, a[0]);
+ };
+ b.prototype.A3 = function (a) {
+ this.rg = a;
+ };
+ b.prototype.$xb = function (a, b, c, f) {
+ this.iYa(a, b, f);
+ c && ++this.Mca;
+ this.eb.Bi();
+ };
+ b.prototype.nw = function (b) {
+ b.oa && b.T && (this.UC -= b.oa - b.T);
+ a.prototype.nw.call(this, b);
+ };
+ b.prototype.rj = function (a) {
+ this.BMa(a);
+ this.Bq(a);
+ };
+ b.prototype.dNb = function (a) {
+ var b;
+ b = p.time.ea();
+ this.UC += a * (b - this.oTa);
+ this.oTa = b;
+ };
+ b.prototype.QGb = function () {
+ this.UC = this.K.Gia;
+ };
+ b.prototype.FG = function (a) {
+ this.Ja.zGa();
+ this.Lg || this.YL.FG(a, this.Qb);
+ };
+ b.prototype.BMa = function (a) {
+ var b,
+ c,
+ f;
+ c = this.G0;
+ f = this.eb;
+ this.pf.RDa() || (this.Wg.L$a(a.L, a.O.Za, a.stream.track.tB, this.rq, this.Ha), null === (b = this.Lg) || void 0 === b ? void 0 : b.Dub(a), b = c.Y.Sd() || 0, f.$a.ru() || (c = c.kb(l.Na.VIDEO)) && !c.$g && c.D_ && f.$a.Aha(c), this.FG(b), this.eb.AMa(a), this.pf.EV(this) && this.pf.Bi());
+ };
+ b.prototype.Ila = function (a) {
+ this.eb.u_(a);
+ };
+ b.prototype.yGa = function (a, b, c, f, h, m) {
+ var p,
+ u;
+ p = this.K;
+ u = p.Li;
+ if (c >= p.Li && (p.pna && (u = c + 1E3), p.U2 && !this.connected))
+ return !1;
+ if (this.Lg)
+ return this.Lg.dv();
+ c = this.Pg && 0 === this.Ja.Pla && 0 === this.Ja.Rt;
+ return !c && f < u ? !1 : c ? m && 0 === f ? (this.ib("playlist mode with nothing buffered, waiting for next manifest"), !1) : !0 : this.cgb(a, b, h);
+ };
+ b.prototype.VIb = function (a) {
+ this.PW = a;
+ };
+ b.prototype.w3 = function (a) {
+ this.qu = !0;
+ this.yBa = a;
+ };
+ b.prototype.oda = function () {
+ this.qu = !1;
+ this.yBa = void 0;
+ };
+ b.prototype.cgb = function (a, b, c) {
+ if (this.$g || 0 === this.L)
+ return !0;
+ if (void 0 === this.Tv)
+ return !1;
+ b = this.a9a(b, a);
+ this.track.O.Kl.ZJ(this.track.O.ma, this.track.Qc);
+ this.Gw.rma([this.Tv], !1, b, this.NDb);
+ a = this.Gw.dv(b, a, c, this.Tv, this.Gc.O.Bh);
+ a.complete ? this.w3(a.reason) : (this.oda(), this.Yy = a.Yy, this.ei = a.ei);
+ return this.$g;
+ };
+ b.prototype.a9a = function (a, b) {
+ var c,
+ f,
+ m,
+ u,
+ k;
+ u = p.Ik()[this.L];
+ k = this.Ja.f_();
+ a = {
+ pq: u,
+ T: null !== (c = k.Zc) && void 0 !== c ? c : 0,
+ ud: a,
+ Ub: null !== (f = k.VI || a) && void 0 !== f ? f : 0,
+ Bl: null !== (m = k.GN || a) && void 0 !== m ? m : 0,
+ ki: k.ki,
+ dk: k.dk,
+ jga: k.$.length,
+ $: k.$
+ };
+ "number" !== typeof a.T ? (a.T = 0, a.Ub = 0) : b === h.Bd.Xd && a.ud !== a.T && (a.ud = a.T);
+ return a;
+ };
+ return b;
+ })(d.N8);
+ b.aU = a;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r,
+ h,
+ p,
+ m,
+ f,
+ u,
+ g,
+ A;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.sva = b.uL = void 0;
+ c = a(0);
+ d = a(18);
+ k = a(392);
+ l = a(16);
+ r = a(217);
+ h = a(27);
+ p = a(33);
+ m = a(8);
+ f = a(60);
+ u = a(4);
+ g = a(375);
+ (function (a) {
+ a[a.hKa = 0] = "forwards";
+ a[a.zca = 1] = "backwards";
+ a[a.hla = 2] = "none";
+ })(A = b.uL || (b.uL = {}));
+ a = (function (a) {
+ function b(b, c, f, m, p, u, k, l, d, r, w, A, K, C, n, q) {
+ var H,
+ M;
+ H = a.call(this, c, m, d.O, b, d, r, K, h.fa.Jd(w), k.Sd.bind(k), A, q, void 0, void 0, void 0, !0) || this;
+ H.eb = b;
+ H.Wg = f;
+ H.Fb = p;
+ H.QV = u;
+ H.Y = k;
+ H.$F = l;
+ H.Pf = A;
+ H.KO = C;
+ H.Ff = n;
+ H.dm = q;
+ H.active = !1;
+ H.qCa = [];
+ H.Xaa = 0;
+ H.children = Object.create(null);
+ H.Pt = [];
+ H.zd = void 0;
+ void 0 === K && (K = h.fa.Jd(d.T));
+ M = [H.K.uca, H.K.U3];
+ r.forEach(function (a) {
+ var f,
+ h;
+ f = a.L;
+ h = p.YZ.bind(p, H, f);
+ a = new g.aU(b, H.Wg, H.u, H, a, K.qa, M[f], c, H.QV, H.Ff, H.WV[f], null === A || void 0 === A ? void 0 : A.kb(f), h);
+ H.xh.JVa(f, a);
+ });
+ H.uM = H.xh.t2;
+ return H;
+ }
+ c.__extends(b, a);
+ Object.defineProperties(b.prototype, {
+ G: {
+ get: function () {
+ return this.O.G;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ Sl: {
+ get: function () {
+ var a,
+ b,
+ c,
+ f;
+ return [null !== (b = null === (a = this.kb(0)) || void 0 === a ? void 0 : a.Sl) && void 0 !== b ? b : 0, null !== (f = null === (c = this.kb(1)) || void 0 === c ? void 0 : c.Sl) && void 0 !== f ? f : 0];
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ Zo: {
+ get: function () {
+ var a,
+ b,
+ c,
+ f;
+ return [null !== (b = null === (a = this.kb(0)) || void 0 === a ? void 0 : a.Zo) && void 0 !== b ? b : {
+ qa: 0,
+ da: 0
+ }, null !== (f = null === (c = this.kb(1)) || void 0 === c ? void 0 : c.Zo) && void 0 !== f ? f : {
+ qa: 0,
+ da: 0
+ }
+ ];
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ l3: {
+ get: function () {
+ return this.aa.T;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ gma: {
+ get: function () {
+ return this.l3 + this.pe;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ Qb: {
+ get: function () {
+ return this.aa.oa;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ ie: {
+ get: function () {
+ return this.Qb + this.pe;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ nb: {
+ get: function () {
+ return this.O.nb;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ weight: {
+ get: function () {
+ return this.aa.weight;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ aa: {
+ get: function () {
+ return this.IDa;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ Je: {
+ get: function () {
+ return this.xh;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ b.prototype.Eg = function () {
+ this.gj || (this.active = !1, this.Pf && (delete this.Pf.children[this.aa.id], this.Pf = void 0), m.ee(this.children, function (a) {
+ a && a.Pf && (a.Pf = void 0);
+ }), this.children = Object.create(null), this.qF = void 0, a.prototype.Eg.call(this), this.xh.clear());
+ };
+ b.prototype.una = function (a, b) {
+ void 0 === b && (b = A.zca);
+ this.Je.forEach(function (b) {
+ (m.X(a) || b.L === a) && b.reset();
+ });
+ switch (b) {
+ case A.zca:
+ this.Pf && this.Pf.una(a, b);
+ break;
+ case A.hKa:
+ this.children && m.ee(this.children, function (c) {
+ c && c.una(a, b);
+ });
+ }
+ };
+ b.prototype.NNa = function (a) {
+ var b,
+ c,
+ f;
+ if (!this.active)
+ return !1;
+ b = this.Pf;
+ if (b) {
+ c = b.kb(a);
+ f = c.Ja.xSa;
+ if (0 !== f && (b.wG(a), f = c.Ja.xSa, 0 !== f))
+ return !1;
+ }
+ return !0;
+ };
+ b.prototype.Nc = function (a) {
+ return this.Je.kb(a);
+ };
+ b.prototype.Itb = function () {
+ return this.Je.every(function (a) {
+ return 0 === a.yz;
+ });
+ };
+ b.prototype.toJSON = function () {
+ return c.__assign(c.__assign({}, a.prototype.toJSON.call(this)), {
+ active: this.active,
+ playerStartPts: this.Zc,
+ playerEndPts: this.ie,
+ pipelines: this.Je,
+ previousBranch: this.Pf
+ });
+ };
+ b.prototype.aWa = function (a, b) {
+ this.O.sYa(this);
+ this.O = this.aa.O = a;
+ this.TVa(this.O);
+ this.O.jUa(this);
+ this.Je.forEach(function (a) {
+ var c;
+ c = b[a.L];
+ c && a.ER(c);
+ });
+ };
+ b.prototype.Jrb = function (a) {
+ return this.dm[a];
+ };
+ b.prototype.kb = function (a) {
+ return this.Je.kb(a);
+ };
+ b.prototype.Yrb = function (a) {
+ return this.kb(a).yz;
+ };
+ b.prototype.soa = function (a, b, c) {
+ var f,
+ h,
+ m,
+ p;
+ f = this;
+ h = this.aa;
+ a = this.HX(h.T, this.O, a, this.G === (a ? a.G : this.Fb.Xb.G));
+ m = a.$I;
+ p = a.wv;
+ void 0 === b && (b = [0, 1]);
+ 0 === p.length || b.forEach(function (a) {
+ var b,
+ m;
+ b = f.kb(a);
+ c && (b.kg = p[a]);
+ m = f.AO(h.oa);
+ b.A3(m[a]);
+ });
+ return m;
+ };
+ b.prototype.gUa = function (a, b) {
+ var c,
+ f,
+ h,
+ p;
+ c = this.eb;
+ f = this.kb(0);
+ void 0 === b && (b = f.Sub);
+ this.Pf && (h = this.Pf.Nc(0));
+ p = this.Fb.YZ.bind(this.Fb, this, 0);
+ c = new g.aU(c, this.Wg, this.u, this, a, b, f.uJ, this.K, this.QV, this.Ff, this.WV[0], h, p);
+ this.xh.replace(f, c);
+ this.uM = this.xh.t2;
+ this.soa(this.Pf, [0], !0);
+ c.QD(b);
+ f.Eg();
+ m.ee(this.children, function (b) {
+ b && b.gUa(a);
+ });
+ };
+ b.prototype.zq = function (a, b) {
+ if (b = this.kb(b))
+ return b.Ja.zq(a);
+ };
+ b.prototype.wG = function (a) {
+ void 0 === a ? this.Je.forEach(function (a) {
+ a.wG();
+ }) : this.kb(a).wG();
+ };
+ b.prototype.PQ = function (a, b, c) {
+ (a = this.kb(a)) && a.Ja.PQ(b, c);
+ };
+ b.prototype.f_ = function (a, b) {
+ (b = this.kb(b)) && b.Ja.f_(a);
+ };
+ b.prototype.lyb = function (a) {
+ this.qCa[a] = !0;
+ };
+ b.prototype.Xfb = function () {
+ var a;
+ a = this;
+ return [0, 1].every(function (b) {
+ return !a.nb(b) || a.qCa[b];
+ });
+ };
+ b.prototype.Vfb = function (a, b, c, f) {
+ var h,
+ m,
+ p,
+ k,
+ d,
+ g,
+ w,
+ A,
+ H;
+ h = this.K;
+ m = this.eb;
+ p = this.Y.Wc();
+ k = p === l.pa.Xd || p === l.pa.gf;
+ if (!k && void 0 === c)
+ return {
+ $g: !0
+ };
+ if (p === l.pa.gf && u.time.ea() < this.Xaa + h.Gzb)
+ return {
+ $g: !1
+ };
+ d = this.kb(0);
+ g = this.kb(1);
+ w = this.Fb.us(this, 0);
+ A = this.Fb.us(this, 1);
+ H = r.n2(p);
+ w = !d || d.yGa(H, this.Y.Sd(), b, w, this.Y.Am(), f);
+ A = !g || g.yGa(H, this.Y.Sd(), a, A, this.Y.Am(), f);
+ void 0 !== c && w && (c = c.cb, a = this.O.getTrackById(c), this.Q7a(c, a.jS), m.Uu = void 0);
+ if (w && A)
+ return (this.$F(), p === l.pa.gf && (this.Xaa = u.time.ea()), {
+ $g: !0,
+ nq: g ? g.JB : d.JB
+ });
+ w = this.zm(0);
+ A = this.zm(1);
+ if (k) {
+ m = !g || A > h.Li;
+ if ((!d || w > h.Li) && m && (d = this.KO(), d >= h.qz))
+ return (this.ib("buffering longer than limit: " + d + " >= " + h.qz + ", audio buffer: " + w + " ms, video buffer: " + A + " ms"), this.$F(), p === l.pa.gf && (this.Xaa = u.time.ea()), {
+ $g: !0,
+ nq: "prebufferTimeLimit"
+ });
+ this.Wg.n$a();
+ }
+ return {
+ $g: !1
+ };
+ };
+ b.prototype.ida = function (a, b) {
+ var c,
+ f,
+ h,
+ m,
+ p,
+ u;
+ c = this.K;
+ f = this.kb(0);
+ h = this.kb(1);
+ b ? (b = this.zm(0, a), a = this.zm(1, a)) : (b = this.Fb.us(this, 0, a), a = this.Fb.us(this, 1, a));
+ m = c.Li;
+ p = !this.nb(0) || f.Pg && 0 === f.Ja.qw && 0 === f.Ja.Rt;
+ f = !this.nb(1) || h.Pg && 0 === h.Ja.qw && 0 === h.Ja.Rt;
+ u = p && f;
+ c = !p && b < c.Li;
+ if (!u && (c || !f && a < m))
+ return !1;
+ if (h && h.$g || !this.nb(1))
+ return !0;
+ if (u)
+ if (this.eb.qW && 0 === b && 0 === a)
+ this.ib("playlist mode with nothing buffered, waiting for next manifest");
+ else
+ return !0;
+ return !1;
+ };
+ b.prototype.w3 = function (a, b) {
+ var c,
+ f;
+ c = this;
+ f = this.K;
+ this.Je.forEach(function (a) {
+ a.seeking = void 0;
+ });
+ a && f.ah && this.Je.forEach(function (a) {
+ var f;
+ if (a) {
+ f = c.Fb.LB(c, a.L);
+ a = "bufferingComplete: , mediaType: " + a.L + ", bufferLevelBytes: " + a.Zo.da + ", completedMs: " + a.IG + ", completedBytes: " + f + ", partials: " + a.Ja.qw + ", streamingPts: " + a.Ub + ", completeStreamingPts: " + a.rq + ", fragments: " + JSON.stringify(a.Ja.$) + ", toAppend: " + b(a.L);
+ c.Wg.Qk(a);
+ }
+ });
+ };
+ b.prototype.GKa = function () {
+ var a,
+ b;
+ a = !0;
+ b = {};
+ this.Je.Je.map(function (c) {
+ var f;
+ f = 1 === c.L ? "v" : "a";
+ c = c.Zo;
+ b[f + "buflmsec"] = c.qa;
+ b[f + "buflbytes"] = c.da;
+ a = a && 0 < c.qa;
+ });
+ return {
+ w_: a,
+ qN: b
+ };
+ };
+ b.prototype.O3 = function (a, b, c) {
+ var f,
+ h,
+ p;
+ f = this;
+ h = u.time.ea();
+ p = {};
+ m.ee(this.children, function (a) {
+ var b,
+ c;
+ if (a) {
+ a.zd ? (a.zd.amb = h - a.zd.W_, a.zd.W_ = void 0, b = a.zd.weight) : b = f.Fb.YLa(f.aa.id, a.aa.id);
+ c = a.GKa();
+ p[a.aa.id] = {
+ weight: b,
+ qN: c.qN,
+ w_: c.w_
+ };
+ }
+ });
+ c = {
+ requestTime: h,
+ h3: a,
+ Wkb: c,
+ L3: this.aa.id,
+ zd: p
+ };
+ a || (a = b.Sd(), c.FJ = a - (this.aa.T + this.pe), c.FJ = Math.max(0, c.FJ), c.xY = 0, c.startTime = h);
+ this.Pt.unshift(c);
+ return c;
+ };
+ b.prototype.Rgb = function (a) {
+ var b,
+ c;
+ b = this.Pt[0];
+ b.h3 && (b.FJ = this.Qb - this.aa.T, b.FJ = Math.max(0, b.FJ));
+ c = a.GKa();
+ b.ZXa = {};
+ f(c.qN, b.ZXa);
+ b.w_ = a.Zo.every(function (a) {
+ return 0 < a.qa;
+ });
+ this.Pt = [];
+ return b;
+ };
+ b.prototype.Vl = function (a) {
+ var b;
+ b = this.aa;
+ a -= this.pe;
+ if (b.T < a && a < b.oa)
+ this.Pt.shift();
+ else if (b = this.Pt[0])
+ b.Vl = !0;
+ };
+ b.prototype.HX = function (a, b, c, f) {
+ var h,
+ m,
+ p,
+ u;
+ h = this;
+ void 0 === b && (b = this.O);
+ m = !1;
+ if (c) {
+ m = !0;
+ p = c.kb(1).rg;
+ c = c.kb(0).rg;
+ if (!p || !c)
+ return {
+ $I: [],
+ wv: []
+ };
+ p = p.oa;
+ f || (p = void 0);
+ }
+ u = this.MJa(a, p, m, b);
+ b.Za === this.Fb.jkb && [1, 0].forEach(function (a) {
+ var b;
+ b = h.kb(a);
+ b && (b.kg = u[a]);
+ });
+ return {
+ $I: u.map(function (a) {
+ return a.T;
+ }),
+ wv: u
+ };
+ };
+ b.prototype.MJa = function (a, b, c, f) {
+ var h;
+ h = this;
+ void 0 === f && (f = this.O);
+ return this.dEa(f) ? [1, 0].map(function (m) {
+ if (!h.nb(m))
+ return {};
+ m = h.kb(m).xm(f.qg[m].stream, a, b, c);
+ a = m.T;
+ return m;
+ }).reverse() : [];
+ };
+ b.prototype.AO = function (a, b) {
+ var c;
+ c = this;
+ void 0 === b && (b = this.O);
+ return this.dEa(b) ? [1, 0].map(function (f) {
+ var m;
+ if (!c.nb(f))
+ return {};
+ m = b.qg[f].stream;
+ f = c.kb(f).mC(m, a);
+ a = c.K.Lg ? new h.fa(f.jb, m.Wa.S).qa : f.oa;
+ return f;
+ }).reverse() : [];
+ };
+ b.prototype.bNb = function (a, b) {
+ var c;
+ c = this.aa.oa;
+ c && c < b && (a = this.AO(c));
+ b = this.Nc(1);
+ c = this.Nc(0);
+ b && b.A3(a[1]);
+ c && c.A3(a[0]);
+ };
+ b.prototype.dEa = function (a) {
+ var b;
+ b = a.qg;
+ if (!b)
+ return !1;
+ a = b[1];
+ a = !this.nb(1) || a && a.stream.ge;
+ b = b[0];
+ b = !this.nb(0) || b && b.stream.ge;
+ return a && b ? !0 : !1;
+ };
+ b.prototype.Q7a = function (a, b) {
+ this.Wg.l$a(a, b);
+ };
+ return b;
+ })(k.j5);
+ b.sva = a;
+ p.Ve(d.EventEmitter, a);
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Pda = void 0;
+ b.Pda = function (a, b) {
+ var c;
+ if (!Array.isArray(a.nHa))
+ return a;
+ c = a.$o ? a.$o() : Object.create(a);
+ a.nHa.forEach(function (a) {
+ if (void 0 !== a.Dzb && b.duration >= a.Dzb && a.config)
+ for (var k in a.config) {
+ c[k] = a.config[k];
+ }
+ });
+ return c;
+ };
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r,
+ h,
+ p;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.uua = b.WT = void 0;
+ c = a(0);
+ k = a(8);
+ l = a(4);
+ r = a(764);
+ h = a(763);
+ p = (function () {
+ return function () {
+ this.xG = new h.pL(100);
+ this.z1 = new h.pL(100);
+ };
+ })();
+ d = (function () {
+ function a(a, b, c) {
+ var f,
+ h,
+ m;
+ this.K = b;
+ this.u = c;
+ this.HW = a;
+ f = this.lB = this.lF = this.kF = 0;
+ h = 0;
+ m = 0;
+ this.HW.length >= this.K.m1 && (this.HW.forEach(function (a) {
+ !(a = a.get().Gob) || k.X(a.avtp) || k.X(a.neuhd) || (f += a.avtp, h += 1 * a.neuhd, m++);
+ }), this.lB = m, this.kF = f / m, this.lF = h / m);
+ }
+ Object.defineProperties(a.prototype, {
+ CFa: {
+ get: function () {
+ return this.kF;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ DFa: {
+ get: function () {
+ return this.lF;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ xIb: {
+ get: function () {
+ return this.lB;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ a.prototype.l0 = function () {
+ return this.lB >= this.K.m1 && this.kF >= this.K.baselineHighAndStableThreshold.bwThreshold && this.lF < this.K.baselineHighAndStableThreshold.nethreshold;
+ };
+ return a;
+ })();
+ b.WT = d;
+ d = (function (a) {
+ function b(b, c, f) {
+ b = a.call(this, b, c, f) || this;
+ b.v$ = [];
+ b.Tnb = {};
+ b.sXa = [];
+ b.jv = new p();
+ b.HW.length >= b.K.m1 && (b.bEa("avtp", b.jv.xG), b.bEa("neuhd", b.jv.z1));
+ return b;
+ }
+ c.__extends(b, a);
+ b.prototype.l0 = function () {
+ var a;
+ this.Crb();
+ a = new r.Pva(this.u, this.sXa, this.Beb);
+ a.qma(this.v$);
+ a = a.ugb(this.K.H_.T_b);
+ return this.ONb && 1 === a && this.lB >= this.K.m1;
+ };
+ b.prototype.NO = function () {
+ var a,
+ b,
+ c,
+ f;
+ a = {};
+ b = l.time.now();
+ c = new Date(b);
+ f = c.getHours();
+ a.currentMonoTime = b;
+ a.currentTime = c.getTime();
+ a.currentHour = f;
+ return a;
+ };
+ b.prototype.ZKa = function (a, b, c) {
+ a = "avtp" === a ? this.kF : this.lF;
+ for (var f = b.IX(), h = 0, m = "skew" === c ? 3 : 4, p = 0; p < b.mf.length; p++) {
+ k.X(a) || k.X(f) || (h += Math.pow(b.mf[p] - a, m));
+ }
+ h /= b.mf.length;
+ return !k.X(f) && 0 < f ? h / Math.pow(f, m) - 3 * ("skew" === c ? 0 : 1) : NaN;
+ };
+ b.prototype.kLa = function (a, b, c) {
+ var f;
+ f = 0;
+ "lte" === c ? f = a.reduce(function (a, c) {
+ return c <= b ? a + 1 : a;
+ }, 0) / (1 * a.length) : "gte" === c && (f = a.reduce(function (a, c) {
+ return c >= b ? a + 1 : a;
+ }, 0) / (1 * a.length));
+ return f;
+ };
+ b.prototype.prb = function (a) {
+ var b,
+ c;
+ b = a.oq(25);
+ c = a.oq(50);
+ a = a.oq(75);
+ return k.X(b) || k.X(c) || k.X(a) ? NaN : 0 < c ? (a - b) / c : NaN;
+ };
+ b.prototype.Mpb = function (a, b) {
+ a = "avtp" === a ? this.kF : this.lF;
+ b = b.IX();
+ return !k.X(b) && !k.X(a) && (0 < b || 0 < a) && 0 < a ? (a - b) / (a + b) : NaN;
+ };
+ b.prototype.UO = function (a, b) {
+ a = a.oq(b);
+ return k.X(a) ? NaN : a;
+ };
+ b.prototype.normalize = function (a, b, c) {
+ return !isNaN(a) && 0 < c ? (a - b) / c : NaN;
+ };
+ b.prototype.Crb = function () {
+ var a,
+ b,
+ c,
+ f,
+ h,
+ m,
+ p,
+ l,
+ d,
+ r,
+ g,
+ n;
+ a = this;
+ b = this.K.H_.wPa.AZb;
+ c = this.K.H_.wPa.yZb;
+ f = this.K.H_.wPa.zZb;
+ l = [];
+ n = 0;
+ this.ONb = !Object.keys(b).some(function (u) {
+ var w;
+ g = NaN;
+ if (!(b.hasOwnProperty(u) && c.hasOwnProperty(u) && f.hasOwnProperty(u) && !k.X(a.jv) && a.jv.xG && a.jv.z1) || 1 > a.lB || "number" !== typeof b[u] || "number" !== typeof c[u] || "number" !== typeof f[u])
+ return !0;
+ h = b[u];
+ m = c[u];
+ p = f[u];
+ l = u.split("_", 2);
+ d = l[0];
+ r = l[1];
+ switch (d) {
+ case "avtp":
+ w = a.jv.xG;
+ break;
+ case "neuhd":
+ w = a.jv.z1;
+ break;
+ default:
+ w = void 0;
+ }
+ if ("avtp" === d || "neuhd" === d) {
+ if (w)
+ switch (r) {
+ case "last":
+ g = w.mf[a.lB - 1];
+ break;
+ case "mean":
+ g = "avtp" === d ? a.kF : a.lF;
+ break;
+ case "niqr":
+ g = a.prb(w);
+ break;
+ case "skew":
+ g = a.ZKa(d, w, "skew");
+ break;
+ case "kurtosis":
+ g = a.ZKa(d, w, "kurtosis");
+ break;
+ case "std":
+ g = w.IX();
+ break;
+ case "b":
+ g = a.Mpb(d, w);
+ break;
+ default:
+ -1 !== u.search("[p][1-9]?[1-9]") && (g = a.UO(w, Number(u.split("_p", 2)[1])));
+ }
+ } else
+ switch (u) {
+ case "fracAbove20Mbps":
+ w = a.jv.xG;
+ g = k.X(w) ? NaN : a.kLa(w.mf, 2E4, "gte");
+ break;
+ case "fracBelow20p":
+ w = a.jv.z1;
+ g = k.X(w) ? NaN : a.kLa(w.mf, .15, "lte");
+ break;
+ case "hour_current":
+ g = a.NO().currentHour;
+ break;
+ case "session_ct":
+ g = a.lB;
+ break;
+ case "intercept":
+ (g = h, a.Beb = g);
+ }
+ g = a.normalize(g, m, p);
+ if (isNaN(g))
+ return !0;
+ "intercept" !== u && (a.v$.push(g), a.sXa.push(h), a.Tnb[u] = n, n += 1);
+ });
+ };
+ b.prototype.bEa = function (a, b) {
+ this.HW.forEach(function (c) {
+ c = c.get().Gob;
+ !c || "avtp" !== a && "neuhd" !== a || k.X(c[a]) || b.iX(Number(c[a]));
+ });
+ };
+ return b;
+ })(d);
+ b.uua = d;
+ }, function (d) {
+ d.P = "4.1.1196";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.b$ = void 0;
+ d = (function () {
+ function a(a) {
+ this.FDa = a;
+ }
+ Object.defineProperties(a.prototype, {
+ VH: {
+ get: function () {
+ return this.B9a;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ result: {
+ get: function () {
+ return this.FDa;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ RUa: {
+ get: function () {
+ var a;
+ a = this;
+ return this.FDa.then(function () {
+ return a;
+ });
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ a.prototype.cancel = function () {
+ this.B9a = !0;
+ };
+ a.prototype.xla = function (a, b) {
+ var c;
+ c = this;
+ this.result.then(function (k) {
+ c.VH ? b && b(k) : a(k);
+ });
+ return this;
+ };
+ return a;
+ })();
+ b.b$ = d;
+ }, function (d, b) {
+ function a(a, b) {
+ var c;
+ c = {};
+ Object.keys(b).forEach(function (k) {
+ var h;
+ h = b[k];
+ c[k] = {
+ ma: a.viewableId,
+ yf: h.startTimeMs,
+ jg: h.endTimeMs || Infinity,
+ Rj: h.defaultNext || null,
+ ve: h.transitionHint,
+ i4: h.transitionDelayZones,
+ next: h.next
+ };
+ });
+ return c;
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Knb = b.Joa = b.lda = void 0;
+ b.lda = function (b) {
+ return {
+ Hh: b.initialSegment,
+ ve: b.transitionType,
+ Ya: a(b, b.segments)
+ };
+ };
+ b.Joa = function (a, b) {
+ var c;
+ return {
+ Hh: b,
+ ve: "lazy",
+ Ya: (c = {}, c[b] = {
+ ma: a,
+ yf: 0,
+ jg: Infinity,
+ Rj: null,
+ next: {}
+ }, c)
+ };
+ };
+ b.Knb = function (a, b) {
+ var c,
+ f,
+ u;
+ a = Math.max(a.duration - 3E4, 3E4);
+ for (var k = {}, h, p = 0, m = 0; m < a; m += 3E4) {
+ f = "s" + p++;
+ u = {
+ ma: b,
+ yf: m,
+ jg: m + 3E4 < a ? m + 3E4 : null
+ };
+ void 0 !== h && (h.next = (c = {}, c[f] = {
+ weight: 1
+ }, c), h.Rj = f);
+ h = k[f] = u;
+ }
+ return {
+ Hh: "s0",
+ Ya: k,
+ ve: "lazy"
+ };
+ };
+ }, function (d, b, a) {
+ var r,
+ h,
+ p,
+ m;
+ function c(a, b, c) {
+ this.cr = b;
+ this.Mj = c;
+ this.Gt = this.TH = this.b2 = this.vSa = this.uSa = this.EI = this.Qc = this.nDb = this.Mj = this.Oh = this.Ub = this.T = this.yS = this.cK = this.$ = this.GNa = this.CB = void 0;
+ }
+ function k(a, b, c) {
+ this.oa = b;
+ this.oOa = c;
+ this.cFa = this.pZa = this.Eba = this.cK = this.$v = this.Rn = void 0;
+ }
+ function l(a, b, h, m, k, d) {
+ var f;
+ f = new c(0, b, a.Mj);
+ a.forEach(function (a) {
+ var c,
+ h;
+ c = a.buffer;
+ h = c.$;
+ a.L === r.Na.AUDIO ? f.CB = h.length ? h[0].R : void 0 : a.L === r.Na.VIDEO && (f.GNa = h.length ? h[0].R : void 0, f.$ = h, f.cK = c.Bl - c.ud, f.yS = c.ki, f.T = c.ud, f.Ub = c.Ub, f.Oh = a.Iz, f.Mj = a.Mj, f.nDb = b - a.Mj, f.Qc = a.Qc.filter(function (a) {
+ return p(a, !0);
+ }), f.EI = h.filter(function (a) {
+ return f.T <= a.ut;
+ }).length);
+ });
+ this.Mg = f;
+ this.Sn = void 0;
+ this.THa = m;
+ this.Ica = k;
+ this.Tma = this.I2 = this.PRa = this.Nt = this.pG = this.JJa = this.uo = this.Qc = this.Sn = void 0;
+ this.Qcb = d;
+ this.jma = {};
+ }
+ r = a(19);
+ b = a(35);
+ h = b.assert;
+ p = b.GC;
+ m = a(16).pa;
+ c.prototype.constructor = c;
+ k.prototype.constructor = k;
+ l.prototype.constructor = l;
+ l.prototype.sH = function (a, b) {
+ var c,
+ f,
+ h,
+ p,
+ u,
+ d,
+ l,
+ g,
+ n,
+ q,
+ Z,
+ B,
+ t,
+ fa,
+ ia,
+ pa,
+ X,
+ O,
+ na,
+ ha,
+ P;
+ c = this.Mg;
+ f = [];
+ p = a[r.Na.VIDEO];
+ u = a[r.Na.AUDIO];
+ if (void 0 === p || void 0 === u)
+ return !1;
+ d = p.buffer;
+ l = u.buffer;
+ g = c.Qc.filter(function (a) {
+ return a.$Z();
+ });
+ if (void 0 === d || void 0 === l || void 0 === g || 0 === g.length)
+ return !1;
+ h = new k(0, p.ud, b === m.gf);
+ n = 0;
+ q = 0;
+ Z = 0;
+ B = 0;
+ fa = c.T;
+ a = a[r.Na.VIDEO].ud;
+ ia = c.$;
+ t = c.EI;
+ for (var Y = 0; Y < t; Y++) {
+ pa = ia[Y];
+ X = pa.offset;
+ O = pa.offset + pa.da - 1;
+ ha = pa.sv;
+ na = pa.yw;
+ P = na + ha;
+ pa && na <= a && P > fa && (ha = pa.sv, na = Math.min(ha, Math.min(a, P) - Math.max(na, fa) + 1), B += na, n += na / ha * (O - X + 1), q += pa.R * na, Z += pa.Bb * na);
+ }
+ c.uSa = n;
+ c.vSa = B;
+ c.b2 = 0 < B ? q / B : 0;
+ c.BCb = 0 < B ? Z / B : 0;
+ c.TH || (c.TH = 0, g.some(function (a, b) {
+ if (a.R === c.GNa)
+ return (c.TH = b, !0);
+ }));
+ g.forEach(function (a) {
+ var b,
+ m;
+ a = a.$Z();
+ b = [];
+ c.Gt || (c.Gt = a.ym(c.T, void 0, !0));
+ h.Rn || (h.Rn = a.ym(h.oa, void 0, !0), h.$v = a.length - 1);
+ c.Oh !== c.Gt + c.EI && (c.Oh = c.Gt + c.EI);
+ t = Math.min(h.$v, h.Rn + 1);
+ for (var p = c.Gt; p <= t; p++) {
+ m = a.get(p);
+ b[p] = m;
+ }
+ f.push(b);
+ });
+ b === m.gf && (h.cK = d.Bl - d.ud, h.Eba = l.Bl - l.ud, h.pZa = p.YTa, h.cFa = u.YTa);
+ this.Sn = h;
+ this.Qc = g;
+ this.uo = f;
+ return this.JJa = !0;
+ };
+ l.prototype.Bv = function () {
+ var a,
+ b,
+ c,
+ m,
+ p,
+ k,
+ d,
+ l,
+ r,
+ g,
+ n,
+ q,
+ B,
+ t,
+ fa;
+ if (this.ho)
+ return this.ho;
+ b = this.Nt;
+ a = this.Mg;
+ m = this.Sn;
+ p = this.Qc;
+ k = this.PRa;
+ q = this.Qcb;
+ h(void 0 !== b, "throughput object must be defined before retrieving the logdata from PlaySegment");
+ if (b.trace && 0 === b.trace.length || void 0 === b.timestamp)
+ (m.oOa ? (r = !1, d = !0) : m.Rn - a.Gt + 1 <= a.EI ? d = r = !0 : (r = !0, d = !1), l = !0);
+ if (k) {
+ g = k.Oy;
+ n = k.cZ;
+ for (var Z = 0; Z < q.length; Z++) {
+ c = q[Z];
+ (b = k[c]) && b.nQ && (d = !0);
+ }
+ }
+ a = {
+ bst: a.Mj,
+ pst: a.cr,
+ s: a.Gt,
+ e: m.Rn,
+ prebuf: a.EI,
+ brsi: a.Oh,
+ pbdlbytes: a.uSa,
+ pbdur: a.vSa,
+ pbtwbr: a.b2,
+ pbvmaf: a.BCb
+ };
+ l && (a.nt = l);
+ d && (a.nd = d);
+ g && (a.invalid = g);
+ n && (a.exception = n);
+ this.Tma && (a.rr = this.Tma);
+ this.I2 && (a.ra = this.I2);
+ if (!d && !g && !n && this.THa) {
+ a.bitrate = p.map(function (a) {
+ return a.R;
+ });
+ b = this.Nt;
+ c = b.trace;
+ B = [];
+ t = 0;
+ c.forEach(function (a) {
+ a = Number(a).toFixed(0);
+ B.push(a - t);
+ t = a;
+ });
+ a.tput = {
+ ts: b.timestamp,
+ trace: B,
+ bkms: b.So
+ };
+ }
+ if (d || l || g || n)
+ a.feasible = r;
+ else
+ for ((a.sols = {}, a.elapsed = k.QY, Z = 0); Z < q.length; Z++) {
+ c = q[Z];
+ b = k[c];
+ d = {};
+ if (b && b.Ft && (d.algelapsed = b.Pcb, d.maxHeapTotal = b.Vq, d.f = b && b.lp || !1, d.dltwbr = b.Llb, d.dlvmaf = b.wIa, d.dlvdur = b.Qea, d.dlvbytes = b.Pea, d.dlabytes = b.Nea, this.THa)) {
+ t = 0;
+ fa = [];
+ b.Ft.filter(function (a) {
+ return a;
+ }).map(function (a) {
+ return a.ld;
+ }).forEach(function (a) {
+ fa.push(a - t);
+ t = a;
+ });
+ d.strmsel = fa;
+ }
+ a.sols[c] = d;
+ }
+ return this.ho = a;
+ };
+ l.prototype.mob = function (a) {
+ var f;
+ if (void 0 !== this.jma[a])
+ return this.jma[a];
+ for (var b = this.uo[this.Mg.TH], c = 0; c < b.length; c++) {
+ f = b[c];
+ if (f && f.T <= a && f.T + f.duration > a)
+ return this.jma[a] = f;
+ }
+ throw Error("findPlayingFragment: missing");
+ };
+ d.P = l;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r,
+ h,
+ p,
+ m,
+ f,
+ u,
+ g,
+ A,
+ K,
+ C,
+ M;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.O6a = b.S7 = b.Q6a = b.Yza = void 0;
+ c = a(8);
+ k = a(4);
+ l = a(35).GC;
+ r = a(11).Zy;
+ h = a(382);
+ p = a(399);
+ m = a(240);
+ f = a(16);
+ u = a(5);
+ g = a(159);
+ A = a(217);
+ d = (function () {
+ function a(a, b, c, f, h, m, p, k, d, u, l) {
+ var r;
+ r = this;
+ this.u = a;
+ this.Ef = b;
+ this.K = c;
+ this.nb = f;
+ this.Y = h;
+ this.xJ = m;
+ this.zb = p;
+ this.Va = k;
+ this.pf = d;
+ this.nN = u;
+ this.Px = l;
+ this.NW = [];
+ this.oba = [];
+ this.RCa = [];
+ this.tBa = void 0;
+ [0, 1].forEach(function (a) {
+ r.nb(a) && (r.NW[a] = new M(r.u, a), r.oba[a] = new K(a), r.RCa[a] = new C(a));
+ });
+ this.eZa = new g.o$(this.u);
+ this.gK = g.RN(this.K, this.eZa);
+ this.tca = g.QN();
+ this.Cx = void 0;
+ }
+ Object.defineProperties(a.prototype, {
+ Ue: {
+ get: function () {
+ return this.NW;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ Fw: {
+ get: function () {
+ return this.oba;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ Ys: {
+ get: function () {
+ return this.RCa;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ Uu: {
+ get: function () {
+ return this.tBa;
+ },
+ set: function (a) {
+ this.tBa = a;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ a.prototype.Cw = function (a, b) {
+ this.eZa.Cw(a, b);
+ };
+ a.prototype.Q0 = function (a) {
+ var b,
+ f,
+ h,
+ m,
+ p;
+ b = this.K;
+ f = a.L;
+ h = k.Ik()[f];
+ b = b.LNb ? 0 === f ? b.aN : b.BS : 1 === f ? b.aN : b.BS;
+ m = this.Y.Wc();
+ p = this.Y.Sd();
+ f = this.nN.DPa(a.Ja.Gc, f);
+ h = {
+ pq: h,
+ T: f.Zc,
+ ud: p,
+ Ub: f.VI || p,
+ Bl: f.GN || p,
+ ki: f.ki,
+ dk: f.dk,
+ jga: f.$.length,
+ $: []
+ };
+ b = {
+ state: m,
+ Sy: this.Y.Sy(),
+ Iz: a.Pk,
+ buffer: h,
+ Vea: b,
+ qPa: !!this.xJ.LP,
+ pO: !!this.xJ.yt,
+ Oo: this.zb && this.zb.Oo,
+ $Q: a.nsb,
+ playbackRate: this.Y.Am()
+ };
+ void 0 === b.Iz && (b.Iz = a.Ofa(h.Ub));
+ h.$ = f.$;
+ c.na(h.T) ? a.seeking && h.ud != h.T && (h.ud = h.T) : (h.T = 0, h.Ub = 0);
+ this.Ef.agb(b);
+ this.Ef.wcb(b);
+ return b;
+ };
+ a.prototype.$fb = function (a, b, c) {
+ var k,
+ d;
+ a = this.NW[a];
+ for (var f = a.io, h = "manifest", m = 0, p = b.length - 1; 0 <= p; p--) {
+ k = b[p];
+ d = k.R;
+ if (l(k)) {
+ m = Math.max(m, d);
+ break;
+ } else
+ this.K.W3 && !k.Fs ? h = "bc" : k.Ps ? k.Ky && (h = "hf") : h = "av";
+ }
+ if (void 0 === f || m !== f) {
+ a.io = m;
+ if (this.Px.fp)
+ try {
+ this.Cx && this.otb();
+ } catch (Y) {
+ this.Va.Mm("Hindsight: Error when handling maxbitrate chagned: " + Y);
+ }
+ this.Va.zAb(f, m, h, c);
+ }
+ };
+ a.prototype.ksb = function (a) {
+ return this.Aha(a).ug;
+ };
+ a.prototype.Aha = function (a) {
+ var b,
+ h,
+ m,
+ k,
+ d,
+ l,
+ r,
+ g,
+ w,
+ H,
+ K,
+ C,
+ M,
+ G,
+ n,
+ q,
+ t;
+ b = this.K;
+ h = a.L;
+ m = 1 == h;
+ k = 0;
+ l = this.NW[h];
+ r = this.oba[h];
+ if (!l.al)
+ return {
+ ug: void 0
+ };
+ g = this.Q0(a);
+ w = a.ag;
+ H = w.Tv;
+ K = a.G0.O;
+ C = a.track.Qc;
+ if (!K.Kl.ZJ(K.ma, C))
+ return (a.jf("location selector did not find any urls"), {
+ ug: void 0
+ });
+ M = A.n2(g.state);
+ G = m ? this.gK : this.tca;
+ try {
+ n = G.Fl(C, M);
+ } catch (ya) {
+ this.u.error("StreamFilters: filterStreams: " + ya);
+ n = [C[0]];
+ }
+ 0 === n.length && (this.u.error("StreamFilters: empty list"), n = [C[0]]);
+ M = H ? H.ug : l.bga;
+ try {
+ if (H && (k = H.R, H && !H.track.equals(w.track))) {
+ q = p.Pfa(n, k) || 0;
+ d = n[q];
+ if (H.R !== d.R || 1 === h)
+ g.state = f.pa.Sg;
+ H = d;
+ M = C.indexOf(d);
+ }
+ } catch (ya) {
+ this.u.error("StreamFilters: track change: " + ya);
+ }
+ if (!m && (k = b.PJ, !(k && 0 < k.length) && M && C[M] && H && H.location === C[M].location))
+ return {
+ ug: M
+ };
+ try {
+ if ((t = a.Gw.o3(g, n, void 0, this.Ef.Mrb(h), l.al.config.kt, K.Bh), !t))
+ return (a.jf("stream selector did not find a stream"), {
+ ug: void 0
+ });
+ } catch (ya) {
+ this.u.error("StreamFilters: stream selector: " + ya);
+ t = {
+ ld: 0
+ };
+ }
+ t.ld = C.indexOf(n[t.ld]);
+ this.xJ.yt && this.xJ.yt.Acb(a.L, t, C);
+ m && this.$fb(h, n, a.Ub);
+ g = t.ld;
+ H = C[g];
+ n = H.R;
+ g != M && (m && b.gH && this.pf.jBa(a, n), m || this.Ef.yJ(n));
+ c.na(l.bga) || (l.bga = g);
+ a.$g || (t.$g ? (u.assert(void 0 !== t.AX), a.w3(t.AX), r.nq = t.AX) : (a.Yy = t.Yy, a.HD = t.HD, a.ei = t.ei));
+ this.ru();
+ if (m)
+ if (t.nv)
+ K.zJ(t.nv);
+ else if (!K.A_() && !b.nWa)
+ for (a = 0; a < C.length; ++a) {
+ if ((b = C[a], b.Pq && !K.nj(h, b.wa))) {
+ K.zJ([b.wa]);
+ break;
+ }
+ }
+ return {
+ wa: H.wa,
+ ug: g
+ };
+ };
+ a.prototype.ru = function () {
+ var a,
+ b,
+ c,
+ f,
+ h,
+ m;
+ c = this.Ue[0];
+ f = this.Ue[1];
+ h = this.Fw[1];
+ m = this.Fw[0];
+ c = this.nN.Xb.Vfb(null !== (a = null === f || void 0 === f ? void 0 : f.dr) && void 0 !== a ? a : 0, null !== (b = null === c || void 0 === c ? void 0 : c.dr) && void 0 !== b ? b : 0, this.Uu, this.xJ.sD);
+ c.nq && (this.xJ.il && h ? h.nq = c.nq : m && (m.nq = c.nq));
+ return c.$g;
+ };
+ a.prototype.Mfa = function (a, b) {
+ var c,
+ h,
+ p,
+ k;
+ c = this;
+ if (this.Cx) {
+ h = this.Cx;
+ p = this.Y.Sd();
+ k = [];
+ b && (p = b.oa);
+ m.We.forEach(function (b) {
+ var h,
+ m;
+ h = c.nN.Xb.Nc(b);
+ if (h) {
+ m = c.Q0(h);
+ m.L = b;
+ m.ud = p;
+ a === f.pa.gf && (m.YTa = h.Ja.cca(p));
+ k[b] = m;
+ }
+ });
+ h.JJa || h.sH(k, a) || this.rna();
+ return h;
+ }
+ };
+ a.prototype.otb = function () {
+ var a,
+ b,
+ c,
+ f;
+ a = this;
+ b = this.Cx;
+ c = this.K;
+ f = [];
+ b && (this.Mfa(void 0), b && !b.pG && this.Ef.Kma.yfa(b));
+ m.We.forEach(function (b) {
+ var c,
+ h;
+ c = a.nN.Xb.Nc(b);
+ if (c) {
+ h = a.Q0(c);
+ h.Mj = k.time.ea();
+ h.Qc = c.track.Qc;
+ h.L = b;
+ f[b] = h;
+ }
+ });
+ b = k.Ik();
+ b = {
+ Nbb: b[0],
+ zS: b[1],
+ pka: c.TC,
+ Wq: c.Wq
+ };
+ this.Cx = b = new h(f, k.time.ea(), void 0, this.Px.hH, b, c.gP);
+ };
+ a.prototype.rna = function () {
+ this.Cx = void 0;
+ };
+ a.prototype.hNb = function (a) {
+ var b,
+ c,
+ p,
+ d,
+ u;
+ b = this;
+ c = a.oldValue;
+ p = a.newValue;
+ d = this.Cx;
+ a = this.K;
+ p === f.pa.Sc && c !== f.pa.Sc ? (d && this.u.warn("override an existing play segment!"), u = [], m.We.forEach(function (a) {
+ var c,
+ f,
+ h;
+ c = b.nN.Xb.Nc(a);
+ if (c) {
+ f = b.Q0(c);
+ h = b.Ue[a];
+ h.Ooa ? (f.Mj = h.Ooa, h.Ooa = void 0) : f.Mj = h.Mj;
+ f.Qc = c.track.Qc;
+ f.L = a;
+ u[a] = f;
+ }
+ }), p = k.Ik(), p = {
+ Nbb: p[0],
+ zS: p[1],
+ pka: a.TC,
+ Wq: a.Wq
+ }, this.Cx = d = new h(u, k.time.ea(), c, this.Px.hH, p, a.gP)) : p !== f.pa.Sc && c === f.pa.Sc && d && (this.Mfa(p), d && !d.pG && this.Ef.Kma.yfa(d), this.rna());
+ };
+ return a;
+ })();
+ b.Yza = d;
+ K = (function () {
+ function a(a) {
+ this.L = a;
+ this.sN = this.gp = this.Kv = this.nq = this.kp = void 0;
+ }
+ a.prototype.oNb = function (a, b, c, f) {
+ this.kp = a ? a : this.kp;
+ this.nq = this.nq;
+ this.Kv = b ? b : this.Kv;
+ this.gp = c ? c : this.gp;
+ this.Nub = f ? f : this.Nub;
+ };
+ return a;
+ })();
+ b.Q6a = K;
+ C = (function () {
+ return function (a) {
+ this.L = a;
+ this.B0 = this.Bja = this.B0 = this.yja = this.KC = void 0;
+ };
+ })();
+ b.S7 = C;
+ M = (function () {
+ return function (a, b) {
+ this.L = b;
+ this.u = r(k, a, "[" + b + "]");
+ this.jf = this.u.error.bind(this.u);
+ this.ib = this.u.warn.bind(this.u);
+ this.Kj = this.u.trace.bind(this.u);
+ this.Bg = this.u.log.bind(this.u);
+ this.yF = this.u.debug.bind(this.u);
+ this.bga = this.Mj = this.mm = this.al = void 0;
+ this.GQ = this.dr = 0;
+ this.jK = !1;
+ this.io = void 0;
+ };
+ })();
+ b.O6a = M;
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.BA = void 0;
+ b.BA = {
+ Fl: function (a) {
+ return a;
+ }
+ };
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.hca = void 0;
+ b.hca = function (a, b, k) {
+ var c,
+ d;
+ c = !0;
+ k.forEach(function (h) {
+ var p;
+ if (c && a === h.profile) {
+ p = h.ranges;
+ c = void 0 === p ? b >= h.min && b <= h.max : p.some(function (a) {
+ return b >= a.min && b <= a.max;
+ });
+ !c && h.disallowed && h.disallowed.some(function (a) {
+ if (a.stream.bitrate === b)
+ return (d = a.disallowedBy, !0);
+ });
+ }
+ });
+ return {
+ inRange: c,
+ CY: d
+ };
+ };
+ }, function (d, b, a) {
+ var l,
+ r,
+ h,
+ p,
+ m,
+ f;
+ function c(a, b, c, h) {
+ p(!l.X(h), "Must have at least one selected stream");
+ return new f(h);
+ }
+ function k(a, b, c, h) {
+ p(!l.X(h), "Must have at least one selected stream");
+ return new f(h);
+ }
+ l = a(8);
+ b = a(35);
+ r = b.console;
+ h = b.debug;
+ p = b.assert;
+ m = b.GC;
+ f = b.Co;
+ d.P = {
+ STARTING: function (a, b, c) {
+ var k,
+ d,
+ u,
+ l;
+ function p(c, f) {
+ var m,
+ p,
+ k,
+ d;
+ m = c.id;
+ p = c.R;
+ k = c.Ia || 0;
+ d = !!k;
+ h && r.log("Checking feasibility of [" + f + "] " + m + " (" + p + " Kbps)");
+ if (!c.Pq)
+ return (h && !c.Ps && r.log(" Not available"), h && c.Ky && r.log(" Failed"), !1);
+ if (p > a.QP)
+ return (h && r.log(" Above maxInitAudioBitrate (" + a.QP + " Kbps)"), !1);
+ if (!(p * a.n1 / 8 < b.buffer.pq))
+ return (h && r.log(" audio buffer too small to handle this stream"), !1);
+ if (d) {
+ h && r.log(" Have throughput history = " + d + " : available throughput = " + k + " Kbps");
+ if (p * b.playbackRate < k / u)
+ return (h && r.log(" +FEASIBLE: bitrate less than available throughput"), !0);
+ h && r.log(" bitrate requires more than available throughput");
+ return !1;
+ }
+ c = a.bQ;
+ b.k0 && (c = Math.max(c, a.aQ));
+ if (p <= c)
+ return (h && r.log(" Bitrate is less than max of minInitAudioBitrate (" + a.bQ + " Kbps) " + (b.k0 ? " and also minHCInitAudioBitrate (" + a.aQ + " Kbps)" : "")), h && r.log(" +FEASIBLE: no throughput history and has minimum bitrate configured"), !0);
+ h && r.log(" No throughput history");
+ return !1;
+ }
+ k = new f();
+ u = a.AWb || 1;
+ for (l = c.length - 1; 0 <= l; --l) {
+ d = c[l];
+ if (p(d, l)) {
+ k.ld = l;
+ break;
+ }
+ m(d) && (k.ld = l);
+ }
+ return k;
+ },
+ BUFFERING: c,
+ REBUFFERING: c,
+ PLAYING: k,
+ PAUSED: k
+ };
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r,
+ h,
+ p,
+ m,
+ f,
+ u;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.uR = void 0;
+ c = a(45);
+ k = a(8);
+ l = a(73);
+ r = a(19);
+ d = a(35);
+ h = a(826);
+ p = a(16);
+ m = d.assert;
+ f = d.Co;
+ b.uR = u;
+ (function () {
+ var k00;
+ k00 = 2;
+ for (; k00 !== 5; ) {
+ switch (k00) {
+ case 2:
+ var e4P = "1S";
+ e4P += "IYbZr";
+ e4P += "NJC";
+ e4P += "p9";
+ b.uR = u = function (b, d, u, g, w, G) {
+ var m00,
+ ma,
+ z,
+ ja,
+ ya,
+ za,
+ gb,
+ E,
+ K,
+ C,
+ M,
+ n,
+ q,
+ t,
+ Y,
+ pa,
+ X,
+ O,
+ na,
+ ha,
+ P,
+ Ha;
+ m00 = 2;
+ function A(a, b, c) {
+ var n00;
+ n00 = 2;
+ for (; n00 !== 1; ) {
+ switch (n00) {
+ case 4:
+ return a.$ ? a.$.Sda(b, c) : 3;
+ break;
+ n00 = 1;
+ break;
+ case 2:
+ return a.$ ? a.$.Sda(b, c) : 0;
+ break;
+ }
+ }
+ }
+ for (; m00 !== 26; ) {
+ switch (m00) {
+ case 8:
+ return a.call(this, 0, 0, u);
+ break;
+ case 15:
+ m00 = (w = c.xl(u.slice(0, g).reverse(), function (a, b) {
+ var q00;
+ q00 = 2;
+ for (; q00 !== 1; ) {
+ switch (q00) {
+ case 2:
+ return H(a, u[Math.max(g - b - 2, 0)], C, gb, E, !0, d.playbackRate);
+ break;
+ }
+ }
+ })) && w.ug < ya.ug || !w ? 27 : 19;
+ break;
+ case 27:
+ w = ya;
+ m00 = 19;
+ break;
+ case 9:
+ m00 = (this.ag.MOa || r.JT.Sg) === r.JT.h7a || !w.Ia ? 8 : 7;
+ break;
+ case 12:
+ m00 = H(w, u[Math.max(g - 1, 0)], w, P, Ha, !1, d.playbackRate) ? 11 : 17;
+ break;
+ case 20:
+ w = c.xl(u.slice(g + 1, b.Moa && pa >= b.oqa ? u.length : g + 2), function (a, b) {
+ var p00;
+ p00 = 2;
+ for (; p00 !== 1; ) {
+ switch (p00) {
+ case 2:
+ return H(a, u[g + b], C, ma, z, !1, d.playbackRate);
+ break;
+ }
+ }
+ });
+ m00 = 19;
+ break;
+ case 10:
+ (ma = A(w, Y, b.dia), z = A(w, Y + ma, b.Yja));
+ m00 = 20;
+ break;
+ case 19:
+ K.no = w || C;
+ return K;
+ break;
+ case 7:
+ w.$ && w.$.length || (w.Yoa = !0);
+ (ja = l.Rh.Ujb(d.buffer.$), ya = d.buffer.pq);
+ 0 < b.Ws && (ya = Math.min(ya, b.Ws));
+ (za = ya - ja.da, ya = u[0]);
+ m00 = 12;
+ break;
+ case 16:
+ (gb = A(w, Y, b.cia), E = A(w, Y + gb, b.Xja));
+ m00 = 15;
+ break;
+ case 11:
+ m00 = g + 1 < u.length && pa > b.Wv && (void 0 === this.y0 || this.Aja && this.Aja > this.y0 || q - this.y0 > b.K0 && pa > b.$ja) ? 10 : 19;
+ break;
+ case 17:
+ m00 = w.$ && w.$.length ? 16 : 19;
+ break;
+ case 2:
+ var l4P = "Must have at l";
+ l4P += "east one selected";
+ l4P += " stre";
+ l4P += "am";
+ m(!k.X(g), l4P);
+ m00 = 1;
+ break;
+ case 1:
+ var g4P = "nu";
+ g4P += "mb";
+ g4P += "e";
+ g4P += "r";
+ var I4P = "n";
+ I4P += "um";
+ I4P += "b";
+ I4P += "er";
+ var d4P = "playe";
+ d4P += "r missing str";
+ d4P += "eamingIndex";
+ m(k.na(d.Iz), d4P);
+ m(I4P === typeof d.buffer.pq);
+ m(g4P === typeof d.Vea);
+ (K = new f(), C = w = u[g], M = d.buffer.T, n = d.buffer.ud, q = d.buffer.Ub, t = d.buffer.Bl, Y = d.Iz, pa = t - n, X = d.state === p.pa.Sc || d.state === p.pa.$i ? d.buffer.dk : 0, O = b.Y0, na = b.Xv ? b.Xv : 1E3, P = A(w, Y, b.bia), Ha = A(w, Y + P, b.Wja));
+ m00 = 9;
+ break;
+ }
+ }
+ function H(a, c, f, p, k, u, l) {
+ var o00,
+ g,
+ w,
+ A,
+ H,
+ C,
+ T,
+ S,
+ B,
+ Z,
+ aa,
+ V,
+ ia,
+ fa,
+ P,
+ r;
+ o00 = 2;
+ for (; o00 !== 43; ) {
+ switch (o00) {
+ case 30:
+ o00 = 0 < aa ? 29 : 28;
+ break;
+ case 1:
+ o00 = ha && !ha.iZ && ha.Ia >= r && ha.R <= a.R ? 5 : 4;
+ break;
+ case 32:
+ (fa = Math.min(aa, a.$.length - A), ia.push(a.$.BJ.subarray(A, A + fa)), aa -= fa, A += fa, A >= a.$.length && (A = 0));
+ o00 = 33;
+ break;
+ case 27:
+ o00 = !V || V < a.R * Z * b.aia || !fa ? 26 : 22;
+ break;
+ case 9:
+ o00 = g && !b.W3 ? 8 : 6;
+ break;
+ case 6:
+ o00 = r >= a.R * l * w ? 14 : 13;
+ break;
+ case 7:
+ return !0;
+ break;
+ case 28:
+ c = 0 < p || 0 < k ? h(f.concat(ia), H + p + k, u, g, l, C, w, H, H + p, B, T, V / Z, S, b.cQ, b.W3) : V > a.W0 ? {
+ result: !0,
+ MP: 0,
+ Fs: !0
+ }
+ : {
+ result: !1,
+ MP: 0,
+ Fs: !0
+ };
+ o00 = 25;
+ break;
+ case 35:
+ o00 = aa ? 34 : 44;
+ break;
+ case 33:
+ o00 = 0 < aa ? 32 : 31;
+ break;
+ case 34:
+ aa = p;
+ o00 = 33;
+ break;
+ case 44:
+ (p = Math.max(0, Math.min(p, a.$.length - A)), k = Math.max(0, Math.min(k, c.$.length - A - p)), 0 < p && ia.push(a.$.BJ.subarray(A, A + p)), 0 < k && ia.push(c.$.BJ.subarray(A + p, A + p + k)));
+ o00 = 28;
+ break;
+ case 26:
+ c = !1;
+ o00 = 25;
+ break;
+ case 13:
+ u = !b.Lda || a === f || a.Ac === f.Ac && G ? 0 : (f = a.qb) && f.Lh && f.Lh.Ca ? f.Lh.Ca + b.Ida * (f.Lh.Qh ? Math.sqrt(f.Lh.Qh) : 0) : 0;
+ f = ja;
+ a000.o4P(0);
+ u = a000.X4P(M, n, u);
+ o00 = 10;
+ break;
+ case 8:
+ o00 = r >= Math.max(a.W0 * l, a.R * l * w) && a.Fs ? 7 : 13;
+ break;
+ case 31:
+ aa = k;
+ o00 = 30;
+ break;
+ case 25:
+ c && c.result && (K.xZb = c.MP);
+ ha = {
+ iZ: c && c.result,
+ Ia: r,
+ R: a.R
+ };
+ return c && c.result;
+ break;
+ case 10:
+ var W4P = "Sec";
+ W4P += "ond";
+ W4P += " stream ";
+ W4P += "unde";
+ W4P += "fined";
+ var i4P = "F";
+ i4P += "irst ";
+ i4P += "stream unde";
+ i4P += "f";
+ i4P += "ined";
+ l = O;
+ (g = t - M, w = q - M, A = Y, H = ja.length, C = X, T = za, S = na, B = d.Vea, Z = d.playbackRate, aa = !!d.qPa);
+ m(a, i4P);
+ m(c, W4P);
+ o00 = 17;
+ break;
+ case 3:
+ o00 = !u || !g ? 9 : 13;
+ break;
+ case 14:
+ return !0;
+ break;
+ case 17:
+ (V = a.Ia, ia = g - u, fa = a.$ && a.$.length, P = c.$ && c.$.length);
+ m(f.length === H);
+ b.aka && (S = Math.min(S, ia));
+ o00 = 27;
+ break;
+ case 4:
+ u || g || (a.Yoa = !0);
+ o00 = 3;
+ break;
+ case 22:
+ P || (c = a);
+ ia = [];
+ o00 = 35;
+ break;
+ case 5:
+ return !1;
+ break;
+ case 29:
+ (fa = Math.min(aa, c.$.length - A), ia.push(c.$.BJ.subarray(A, A + fa)), aa -= fa, A += fa, A >= c.$.length && (A = 0));
+ o00 = 30;
+ break;
+ case 2:
+ (r = a.Ia || 0, g = a.$ && a.$.length, w = u ? b.Kfa : g ? b.hZ : b.Pnb);
+ o00 = 1;
+ break;
+ }
+ }
+ }
+ };
+ e4P;
+ k00 = 5;
+ break;
+ }
+ }
+ function a(a, b, c) {
+ var l00;
+ l00 = 2;
+ for (; l00 !== 4; ) {
+ switch (l00) {
+ case 2:
+ a = new f();
+ a.no = c[0];
+ return a;
+ break;
+ }
+ }
+ }
+ })();
+ }, function (d, b, a) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ a(0).__exportStar(a(830), b);
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.$U = void 0;
+ d = (function () {
+ function a(a) {
+ this.parent = a;
+ this.ld = null;
+ }
+ Object.defineProperties(a.prototype, {
+ MOa: {
+ get: function () {
+ var a,
+ b;
+ return null !== (a = this.Ptb) && void 0 !== a ? a : null === (b = this.parent) || void 0 === b ? void 0 : b.MOa;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ zP: {
+ get: function () {
+ var a,
+ b;
+ return null !== (a = this.rAb) && void 0 !== a ? a : null === (b = this.parent) || void 0 === b ? void 0 : b.zP;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ Tv: {
+ get: function () {
+ var a,
+ b;
+ return null !== (a = this.no) && void 0 !== a ? a : null === (b = this.parent) || void 0 === b ? void 0 : b.Tv;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ AP: {
+ get: function () {
+ var a;
+ return null === this.ld ? null === (a = this.parent) || void 0 === a ? void 0 : a.AP : this.ld;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ ROa: {
+ get: function () {
+ var a,
+ b;
+ return null !== (a = this.CKb) && void 0 !== a ? a : null === (b = this.parent) || void 0 === b ? void 0 : b.ROa;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ xja: {
+ get: function () {
+ var a,
+ b;
+ return null !== (a = this.DKb) && void 0 !== a ? a : null === (b = this.parent) || void 0 === b ? void 0 : b.xja;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ track: {
+ get: function () {
+ return this.$Hb;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ a.prototype.ic = function () {
+ this.parent = void 0;
+ };
+ a.prototype.OVa = function (a) {
+ this.Ptb = a;
+ };
+ a.prototype.WIb = function (a) {
+ this.rAb = a;
+ };
+ a.prototype.UVa = function (a) {
+ this.no = a;
+ };
+ a.prototype.toa = function (a) {
+ this.ld = a;
+ };
+ a.prototype.gJb = function (a) {
+ this.CKb = a;
+ };
+ a.prototype.WVa = function (a) {
+ this.DKb = a;
+ };
+ a.prototype.ER = function (a) {
+ this.$Hb = a;
+ };
+ return a;
+ })();
+ b.$U = d;
+ }, function (d, b, a) {
+ var c;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.M9 = void 0;
+ c = a(161);
+ a(27);
+ d = (function () {
+ function a(a, b) {
+ this.Lg = a;
+ this.console = b;
+ this.dB = Infinity;
+ this.RL = this.AW = 0;
+ }
+ a.zGb = function () {
+ this.tba = !0;
+ };
+ a.mXb = function () {
+ this.tba = !1;
+ };
+ a.prototype.fob = function (a, b, h, p, m) {
+ var f;
+ if (this.Lg) {
+ f = a.$;
+ if (f) {
+ if (1 === h)
+ (h = f.ym(this.Lg * a.Wa.qa, void 0, !0), f = a.Hi(h), f.ik({
+ start: 0,
+ end: this.Lg - h * f.NY.pv(a.Wa)
+ }), this.dB = this.Lg);
+ else {
+ void 0 !== p.vWa ? (b = p.vWa, h = b * a.Wa.qa) : (h = c.cha(p, m) + p.Sdb * a.Wa.qa, h = b + h, b = Math.ceil(h / a.Wa.qa));
+ h = f.ym(h, void 0, !0);
+ for (m = p = 0; m < h; ++m) {
+ f = a.Hi(m);
+ p += f.NY.pv(a.Wa);
+ }
+ p = b - p;
+ f = a.Hi(h);
+ f.ik({
+ end: p
+ });
+ this.dB = b;
+ }
+ f.NPa();
+ return f;
+ }
+ }
+ };
+ a.prototype.Dub = function (a) {
+ this.RL += a.EUa;
+ this.console.warn("StallAtFrameCount, adding frames: " + a.EUa, "total frames: " + this.RL, "needed frames: " + this.dB);
+ };
+ a.prototype.Etb = function () {
+ this.console.trace("stallAtFrameCount.hasEnoughRequestedFrames:", "requested: " + this.AW, "needed: " + this.dB);
+ return this.AW >= this.dB;
+ };
+ a.prototype.Dtb = function () {
+ return this.RL >= this.dB;
+ };
+ a.prototype.Eub = function (a, b) {
+ this.AW += this.rC(a, b);
+ };
+ a.prototype.dnb = function (a, b, c) {
+ a.EUa = this.rC(b, c);
+ };
+ a.prototype.rC = function (a, b) {
+ return a.NY.pv(b.Wa);
+ };
+ a.prototype.dv = function () {
+ if (!this.Dtb())
+ return !1;
+ if (a.tba)
+ return (this.console.warn("StallAtFrameCount underflow reported, bufferingComplete = false"), !1);
+ this.console.warn("StallAtFrameCount bufferingComplete = true:", this.RL + " >= " + this.dB);
+ return !0;
+ };
+ a.tba = !1;
+ return a;
+ })();
+ b.M9 = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r,
+ h,
+ p,
+ m,
+ f,
+ u,
+ g,
+ A,
+ K;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.N8 = void 0;
+ c = a(0);
+ k = a(840);
+ l = a(83);
+ r = a(238);
+ h = a(839);
+ p = a(390);
+ m = a(389);
+ f = a(388);
+ u = a(11);
+ g = a(5);
+ A = a(27);
+ K = a(4);
+ d = a(110);
+ a = a(33);
+ l = (function (a) {
+ function b(b, c, d, l, r, g, w, A, C, M, n, q) {
+ b = a.call(this, b) || this;
+ b.K = c;
+ b.Lc = r;
+ b.Yg = g;
+ b.vCa = w;
+ b.$8a = C;
+ b.c9a = n;
+ b.hB = q;
+ b.connected = !1;
+ b.aq = !1;
+ b.u = u.Zy(K, d, "[" + b.L + "]");
+ b.jf = b.u.error.bind(b.u);
+ b.ib = b.u.warn.bind(b.u);
+ b.Kj = b.u.trace.bind(b.u);
+ b.bWb = w;
+ b.PW = w.qa;
+ b.wQa = 1 === b.L ? c.q1 : c.j1;
+ b.uI = (1 === b.L ? c.xI : c.sI) || c.uI;
+ b.Zba = c.Zba;
+ b.ag = new m.$U(M ? M.ag : void 0);
+ b.ag.ER(g);
+ b.PDa = new f.aV(A, c, b.ag);
+ b.An = new k.$xa(b, l, b.K, b.u, b.L);
+ b.Qx = new h.jza(b, c, b.u, b.An, b.Lc, b.L, b.hB);
+ b.CM = !1;
+ c.Lg && (b.Lg = new p.M9(c.Lg, b.u));
+ return b;
+ }
+ c.__extends(b, a);
+ Object.defineProperties(b.prototype, {
+ L: {
+ get: function () {
+ return this.Yg.L;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ track: {
+ get: function () {
+ return this.Yg;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ Gc: {
+ get: function () {
+ return this.Lc;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ Ha: {
+ get: function () {
+ return this.Lc.aa.id;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ Ja: {
+ get: function () {
+ return this.Qx;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ Qc: {
+ get: function () {
+ return this.Yg.Qc;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ Zo: {
+ get: function () {
+ return this.Qx.Zo;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ Sl: {
+ get: function () {
+ return this.Qx.Sl;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ Ub: {
+ get: function () {
+ return this.PW;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ xs: {
+ get: function () {
+ var a,
+ b;
+ return null !== (b = null !== (a = this.Ja.xs) && void 0 !== a ? a : this.ot) && void 0 !== b ? b : this.Lp;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ rq: {
+ get: function () {
+ return this.Ja.rq;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ Cda: {
+ get: function () {
+ return this.Ja.Cda;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ vja: {
+ get: function () {
+ return !!this.rg && this.Pk > this.rg.index;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ wB: {
+ get: function () {
+ return this.vja && 0 === this.Qx.qw;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ Zx: {
+ get: function () {
+ return this.Ja.Zx;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ kkb: {
+ get: function () {
+ return this.Ja.$.NY;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ Gw: {
+ get: function () {
+ return this.PDa;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ Tv: {
+ get: function () {
+ return this.ag.Tv;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ S: {
+ get: function () {
+ var a,
+ b;
+ return null !== (b = null === (a = this.kg) || void 0 === a ? void 0 : a.S) && void 0 !== b ? b : 1;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ Qa: {
+ get: function () {
+ var a;
+ return null === (a = this.kg) || void 0 === a ? void 0 : a.Qa;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ jb: {
+ get: function () {
+ var a;
+ return null === (a = this.rg) || void 0 === a ? void 0 : a.jb;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ hk: {
+ get: function () {
+ return this.Gc.rs.ef(this.S).Ab;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ D_: {
+ get: function () {
+ return this.Ja.D_;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ Ht: {
+ get: function () {
+ return this.Ja.Ht;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ Voa: {
+ get: function () {
+ return this.Ja.Voa;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ b.prototype.NM = function () {
+ this.Qx.NM();
+ };
+ b.prototype.Eg = function () {
+ this.aq = !0;
+ this.Qx.Eg();
+ this.ag.ic();
+ };
+ b.prototype.toJSON = function () {
+ return {
+ started: this.Ht,
+ startOfSequence: this.Voa,
+ segmentId: this.Ha,
+ requestedBufferLevel: this.Sl,
+ viewableId: this.Lc.O.ma,
+ hasFragments: this.D_
+ };
+ };
+ b.prototype.Op = function () {
+ return this.Ja.Op();
+ };
+ b.prototype.roa = function (a, b) {
+ this.PW = a;
+ this.Pk = b;
+ };
+ b.prototype.ZO = function () {
+ return this.Ja.ZO();
+ };
+ b.prototype.nfa = function () {
+ this.Ja.close();
+ };
+ b.prototype.Nda = function (a) {
+ return (a = this.Ja.zq(a.qa)) ? a.complete : !1;
+ };
+ Object.defineProperties(b.prototype, {
+ weight: {
+ get: function () {
+ return this.Lc.weight;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ Lp: {
+ get: function () {
+ return void 0 === this.Yg.Wl || void 0 === this.Pk ? this.vCa.add(A.fa.Jd(this.Lc.pe)) : this.Yg.Wl.get(this.Pk).Cl.add(A.fa.Jd(this.Lc.pe));
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ b.prototype.HMb = function (a, b) {
+ var c;
+ g.assert(!this.aq, "pipeline.tryIssueRequest on disabled pipeline");
+ c = a.$Z();
+ return c ? this.iYa(a, c, b) : a.gE();
+ };
+ b.prototype.ENa = function (a, b) {
+ a && (this.kg = a);
+ b && (this.rg = b);
+ g.assert(this.kg);
+ g.assert(this.rg);
+ g.assert(void 0 === this.Pk);
+ this.roa(this.kg.cc, this.kg.index);
+ };
+ b.prototype.yoa = function () {
+ return r.h_(this.Yg.L, this.K);
+ };
+ b.prototype.bja = function () {
+ return this.WNa() ? !1 : this.Ry() ? !0 : this.track.Xzb;
+ };
+ b.prototype.Ry = function () {
+ return void 0 !== this.kg && void 0 !== this.rg;
+ };
+ b.prototype.WNa = function () {
+ return !!(this.aq || this.rg && this.Pk > this.rg.index);
+ };
+ Object.defineProperties(b.prototype, {
+ cEb: {
+ get: function () {
+ return this.K.U2 ? this.connected : !0;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ WBb: {
+ get: function () {
+ return void 0 !== this.Lg;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ XBb: {
+ get: function () {
+ var a;
+ return (null === (a = this.Lg) || void 0 === a ? 0 : a.dv()) ? {
+ complete: !0,
+ reason: "stall"
+ }
+ : {
+ complete: !1
+ };
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ b.prototype.rj = function (a) {
+ this.An.CAb(a);
+ this.Bq(a);
+ };
+ b.prototype.nw = function (a) {
+ a.kc || this.An.rRa(a.stream, a.T, a.cc);
+ this.An.yAb(this.Ha, a.stream, a.kc);
+ this.nC(a);
+ };
+ b.prototype.II = function (a) {
+ a.Wba || (this.connected = !0);
+ this.yy(a);
+ };
+ b.prototype.Iqb = function (a) {
+ var b,
+ c;
+ b = this.Ja.$;
+ if (0 === b.length)
+ return {
+ $: [],
+ Rla: 0,
+ dk: 0
+ };
+ c = b.tH(a.qa);
+ 0 > c && (c = void 0 === b.T || a.qa <= b.T ? 0 : b.length);
+ return {
+ $: b.XHb(c),
+ Rla: Math.max(0, b.Tgb - c),
+ dk: b.dk
+ };
+ };
+ b.prototype.iYa = function (a, b, c) {
+ var f,
+ h,
+ m,
+ p,
+ k,
+ d,
+ u;
+ p = this.Lc;
+ k = p.O;
+ d = this.L;
+ u = this.Pk;
+ if (u >= b.length)
+ return (this.ib("makeRequest nextFragmentIndex:", u, "past fragments length:", b.length), !1);
+ if (!this.kg || !this.rg)
+ return (this.ib("makeRequest delayed, first or last fragment not set", "first:", !!this.kg, "last:", !!this.rg), !1);
+ b = this.$8a.lLa(a, u, this, k.Lv());
+ if (!b)
+ return (this.ib("makeRequest unable to get valid fragment"), !1);
+ null === (f = this.Lg) || void 0 === f ? void 0 : f.Eub(b, a);
+ b.Rs && 1 === d && this.An.Raa(p.aa, b.oa);
+ b.SVa(p.rs);
+ f = null === (h = this.c9a) || void 0 === h ? void 0 : h.call(this);
+ this.K.SC && void 0 !== f && f < b.da && (b.SC = this.K.SC);
+ K.time.ea();
+ c = this.Ja.Sjb(p, b, c, a);
+ if (!c.ft()) {
+ this.ib("MediaRequest.open error: " + c.Dh + " native: " + c.qj);
+ if (7 === c.readyState)
+ return !1;
+ this.ib("makeRequest caught:", c.Dh);
+ k.oh("MediaRequest open failed (1)", "NFErr_MC_StreamingFailure");
+ return !1;
+ }
+ null === (m = this.Lg) || void 0 === m ? void 0 : m.dnb(c, b, a);
+ this.An.DAb(c);
+ this.roa(c.Qb, b.iQ);
+ this.WNa() && this.Ja.AIb();
+ return !0;
+ };
+ return b;
+ })(l.yr);
+ b.N8 = l;
+ a.Ve(d.$z, l);
+ a.Ve(d.dA, l);
+ }, function (d, b, a) {
+ var k,
+ l,
+ r,
+ h,
+ p,
+ m,
+ f,
+ u,
+ g,
+ A,
+ K,
+ C,
+ M,
+ H;
+ function c(a, b) {
+ return (1 === a.L ? 0 : 1) - (1 === b.L ? 0 : 1);
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.j5 = b.Y5a = void 0;
+ k = a(0);
+ l = a(18);
+ r = a(391);
+ h = a(83);
+ p = a(162);
+ m = a(817);
+ f = a(16);
+ u = a(816);
+ g = a(11);
+ A = a(5);
+ K = a(27);
+ C = a(4);
+ d = a(110);
+ M = a(33);
+ H = a(814);
+ b.Y5a = {
+ u1b: c
+ };
+ a = (function (a) {
+ function b(b, c, f, h, p, k, d, u, r, w, M, G, n, q, T) {
+ var S,
+ B;
+ B = a.call(this, f) || this;
+ B.K = b;
+ B.O = f;
+ B.RCb = h;
+ B.IDa = p;
+ B.wBa = u;
+ B.b9a = r;
+ B.parent = w;
+ B.dm = M;
+ B.wV = G;
+ B.hB = n;
+ B.YZ = q;
+ B.xh = new H.Yxa([]);
+ B.Waa = !1;
+ B.aX = 1;
+ B.aq = !1;
+ B.CCa = 0;
+ B.zBa = B.fBb.bind(B);
+ A.assert(f.ma === B.aa.ma || isNaN(f.ma) && isNaN(B.aa.ma));
+ B.O.jUa(B);
+ B.u = g.Zy(C, c, p.id && p.id.length ? "{" + p.id + "}" : "");
+ B.jf = B.u.error.bind(B.u);
+ B.ib = B.u.warn.bind(B.u);
+ B.Kj = B.u.trace.bind(B.u);
+ B.qP = null !== d && void 0 !== d ? d : K.fa.Jd(B.aa.T);
+ B.WV = [];
+ k.forEach(function (a) {
+ var b;
+ a = a.L;
+ b = B.O.$Na(a) ? new m.zua(B.K.FI) : new m.Vwa();
+ B.WV[a] = b;
+ });
+ T || B.zHa(k, B.qP);
+ B.Xpa(B.qP.qa, B.K.Z3);
+ B.events = new l.EventEmitter();
+ null === (S = B.wV) || void 0 === S ? void 0 : S.addListener(B.zBa);
+ return B;
+ }
+ k.__extends(b, a);
+ Object.defineProperties(b.prototype, {
+ gj: {
+ get: function () {
+ return this.aq;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ br: {
+ get: function () {
+ return this.Waa;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ weight: {
+ get: function () {
+ return this.aX;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ aa: {
+ get: function () {
+ return this.IDa;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ vja: {
+ get: function () {
+ return this.xh.every(function (a) {
+ return a.vja;
+ });
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ wB: {
+ get: function () {
+ return this.xh.every(function (a) {
+ return a.wB;
+ });
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ Zx: {
+ get: function () {
+ return this.VO().reduce(function (a, b) {
+ return a + b.Zx;
+ }, 0);
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ Ry: {
+ get: function () {
+ return this.VO().every(function (a) {
+ return a.Ry();
+ });
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ Ph: {
+ get: function () {
+ return this.VO().map(function (a) {
+ return a.track;
+ });
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ S: {
+ get: function () {
+ return this.uM.S;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ Qa: {
+ get: function () {
+ return this.uM.Qa;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ jb: {
+ get: function () {
+ return this.uM.jb;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ hk: {
+ get: function () {
+ return this.rs.ef(this.S).Ab;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ Hia: {
+ get: function () {
+ return this.qP.add(this.rs);
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ USa: {
+ get: function () {
+ return this.aa.kk.add(this.rs);
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ rDb: {
+ get: function () {
+ return this.aa.Cs.add(this.rs);
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ zNa: {
+ get: function () {
+ return this.Hia.qa;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ pe: {
+ get: function () {
+ return this.rs.qa;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ rs: {
+ get: function () {
+ return this.wBa;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ b.prototype.Eb = function () {
+ this.tNa();
+ };
+ b.prototype.n4 = function (a) {
+ this.rs.equal(a) || (this.wBa = a);
+ };
+ b.prototype.ZO = function (a) {
+ return (a = this.kb(a)) ? a.ZO() : p.eA.yqb();
+ };
+ b.prototype.nfa = function () {
+ this.VO().forEach(function (a) {
+ return a.nfa();
+ });
+ };
+ b.prototype.NM = function () {
+ this.xh.forEach(function (a) {
+ return a.NM();
+ });
+ };
+ b.prototype.Eg = function () {
+ var a,
+ b;
+ this.aq || (this.aq = !0, this.O.sYa(this), this.parent = void 0, null === (a = this.VF) || void 0 === a ? void 0 : a.yc(), this.VF = void 0, this.xh.forEach(function (a) {
+ a.Eg();
+ }), null === (b = this.wV) || void 0 === b ? void 0 : b.removeListener(this.zBa), this.events.removeAllListeners());
+ };
+ b.prototype.NNa = function () {
+ return !0;
+ };
+ b.prototype.kb = function (a) {
+ return this.xh.kb(a);
+ };
+ b.prototype.VO = function () {
+ var a;
+ void 0 === a && (a = c);
+ return this.xh.Je.slice().sort(a);
+ };
+ b.prototype.irb = function () {
+ return this.K.Ioa ? this.xh.Je.filter(function (a) {
+ return null === a || void 0 === a ? void 0 : a.bja();
+ }).sort(function (a, b) {
+ return a.Lp.Pj(b.Lp);
+ }).slice(0, 1) : this.xh.Je.filter(function (a) {
+ return null === a || void 0 === a ? void 0 : a.bja();
+ });
+ };
+ b.prototype.bha = function (a) {
+ a = this.kb(a);
+ if (null === a || void 0 === a ? 0 : a.bja())
+ return a;
+ };
+ b.prototype.zm = function (a, b) {
+ a = this.kb(a);
+ if (!a)
+ return 0;
+ if (b)
+ return a.Sl;
+ b = a.rq;
+ if (void 0 === b)
+ return 0;
+ a = this.b9a();
+ return b - a;
+ };
+ b.prototype.cMa = function (a) {
+ var b;
+ return (a = this.kb(a)) ? null !== (b = a.rq) && void 0 !== b ? b : 0 : 0;
+ };
+ b.prototype.C3 = function (a, b) {
+ var c;
+ this.zHa(a, null !== (c = null !== b && void 0 !== b ? b : this.Cl) && void 0 !== c ? c : this.qP);
+ this.tNa();
+ this.NM();
+ };
+ b.prototype.Xpa = function (a, b) {
+ this.Jub = a + b;
+ this.Pub = C.time.ea();
+ };
+ b.prototype.Op = function (a) {
+ a = this.kb(a);
+ A.assert(a);
+ return a.Op();
+ };
+ b.prototype.fBb = function (a) {
+ a = a.newValue;
+ a !== f.Bd.Xd && a !== f.Bd.gf || this.TF();
+ };
+ b.prototype.Nda = function (a) {
+ return this.xh.every(function (b) {
+ return b.Nda(a);
+ });
+ };
+ b.prototype.dqb = function (a) {
+ var b,
+ c;
+ return null !== (c = null === (b = this.xh.kb(a)) || void 0 === b ? void 0 : b.kkb) && void 0 !== c ? c : K.fa.Cc;
+ };
+ b.prototype.rj = function (a) {
+ this.aq || (a.Wba || A.assert(!a.kc), this.TF(), this.wB && this.X$a());
+ this.Bq(a);
+ };
+ b.prototype.JI = function (a) {
+ this.K.cJa && this.TF(!0);
+ this.oC(a);
+ };
+ b.prototype.II = function (a) {
+ this.K.cJa && this.TF(!0);
+ this.yy(a);
+ };
+ b.prototype.S$a = function (a, b) {
+ var c;
+ null === (c = this.VF) || void 0 === c ? void 0 : c.yc();
+ this.VF = void 0;
+ a && this.events.emit("branchNormalized", {
+ type: "branchNormalized",
+ segmentContentStart: this.aa.kk,
+ branchContentStart: this.Cl,
+ branchContentEnd: this.sq,
+ didNormalizeSegment: b
+ });
+ };
+ b.prototype.FJb = function (a) {
+ var b,
+ c;
+ return ((null === (b = this.wV) || void 0 === b ? void 0 : b.value) === f.Bd.Xd || (null === (c = this.wV) || void 0 === c ? void 0 : c.value) === f.Bd.gf) && (!a || this.CCa + this.K.Oka < C.time.ea());
+ };
+ b.prototype.TF = function (a) {
+ void 0 === a && (a = !1);
+ this.FJb(a) && (this.CCa = C.time.ea(), a = {
+ type: "checkBufferingProgress"
+ }, this.events.emit(a.type, a));
+ };
+ b.prototype.X$a = function () {
+ var a;
+ a = {
+ type: "branchStreamingComplete"
+ };
+ this.events.emit(a.type, a);
+ };
+ b.prototype.Jjb = function (a, b) {
+ var c,
+ f;
+ f = a.L;
+ return new r.N8(this, this.K, this.u, this.RCb, this, a, b, [this.K.uca, this.K.U3][f], this.WV[f], null === (c = this.parent) || void 0 === c ? void 0 : c.kb(f), this.YZ, this.hB);
+ };
+ b.prototype.zHa = function (a, b) {
+ var c,
+ f,
+ h,
+ m,
+ l,
+ r,
+ g,
+ w;
+ void 0 === b && (b = this.qP);
+ try {
+ for (var p = k.__values(a), d = p.next(); !d.done; d = p.next()) {
+ l = d.value;
+ r = l.L;
+ g = this.kb(r);
+ if ((null === g || void 0 === g ? void 0 : g.track) !== l) {
+ null === g || void 0 === g ? void 0 : g.Eg();
+ w = this.Jjb(l, b);
+ this.xh.JVa(r, w);
+ }
+ }
+ } catch (ha) {
+ c = {
+ error: ha
+ };
+ }
+ finally {
+ try {
+ d && !d.done && (f = p["return"]) && f.call(p);
+ }
+ finally {
+ if (c)
+ throw c.error;
+ }
+ }
+ this.xh = this.xh.filter(function (b) {
+ var c;
+ c = a.some(function (a) {
+ return a.L === b.L;
+ });
+ return null !== c && void 0 !== c ? c : b.Eg();
+ });
+ null === (h = this.VF) || void 0 === h ? void 0 : h.yc();
+ this.VF = new u.Zxa({
+ config: this.K,
+ O: this.O,
+ aa: this.aa,
+ Je: this.xh,
+ Cl: b,
+ sq: null !== (m = this.aa.Cs) && void 0 !== m ? m : void 0 !== this.aa.oa ? K.fa.Jd(this.aa.oa) : void 0,
+ splice: void 0 !== this.parent
+ });
+ this.uM = this.xh.t2;
+ };
+ b.prototype.tNa = function () {
+ var a;
+ null === (a = this.VF) || void 0 === a ? void 0 : a.Eb(this.S$a.bind(this));
+ };
+ b.prototype.toJSON = function () {
+ var a,
+ b;
+ return {
+ segment: this.aa.id,
+ branchOffset: this.pe,
+ viewableId: this.O.ma,
+ contentStartPts: null === (a = this.Cl) || void 0 === a ? void 0 : a.qa,
+ contentEndPts: null === (b = this.sq) || void 0 === b ? void 0 : b.qa
+ };
+ };
+ return b;
+ })(h.yr);
+ b.j5 = a;
+ M.Ve(d.dA, a);
+ M.Ve(d.$z, a);
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Qw = void 0;
+ d = b.Qw || (b.Qw = {});
+ d[d.CLOSED = 0] = "CLOSED";
+ d[d.OPEN = 1] = "OPEN";
+ }, function (d, b, a) {
+ var c,
+ k,
+ l;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.ar = b.xOa = void 0;
+ c = a(11);
+ k = a(5);
+ l = a(44);
+ b.xOa = function (a, b) {
+ a = a.Ya[b.Ha];
+ if (void 0 === a)
+ return !1;
+ if (void 0 === a.jg || null === a.jg)
+ throw Error("Cannot validate graph position without endTimeMs");
+ a = a.jg - a.yf;
+ return 0 <= b.offset.qa && b.offset.qa < a;
+ };
+ b.ar = function (a, b) {
+ var h,
+ m,
+ f,
+ d;
+ f = b.wb;
+ b = b.Rub;
+ d = f.je;
+ f = f.navigator;
+ d = f.Gh(null !== (h = null === b || void 0 === b ? void 0 : b.id) && void 0 !== h ? h : d.Hh);
+ h = null !== (m = null === b || void 0 === b ? void 0 : b.THb) && void 0 !== m ? m : d.kk;
+ if (!h.greaterThan(a))
+ for ((m = f.gwb(d), b = m.next()); !b.done; ) {
+ b = b.value;
+ f = b.Cs.Ib(b.kk);
+ d = h;
+ h = d.add(f);
+ if (h.greaterThan(a))
+ return (a = a.Ib(d), l.Oa && k.assert(a.Iy(c.fa.Cc) && a.lessThan(f)), {
+ Ha: b.id,
+ offset: a
+ });
+ b = m.next();
+ }
+ };
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r,
+ h,
+ p,
+ m;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.e9 = void 0;
+ c = a(0);
+ k = a(18);
+ l = a(11);
+ r = a(5);
+ h = a(16);
+ p = a(394);
+ m = a(95);
+ d = (function () {
+ function a() {
+ this.OI = [];
+ this.Jx = new l.iu(!1);
+ this.events = new k.EventEmitter();
+ }
+ Object.defineProperties(a.prototype, {
+ playbackRate: {
+ get: function () {
+ return this.Am();
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ lI: {
+ get: function () {
+ return this.Jx;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ Mz: {
+ get: function () {
+ return !1;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ Xf: {
+ get: function () {
+ return this.yH();
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ position: {
+ get: function () {
+ var a,
+ b;
+ a = this.Xf;
+ b = this.ar(a);
+ r.assert(b, "Could not find current branch for " + a.qa);
+ return b;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ a.prototype.vX = function () {
+ return void 0 !== this.wb ? !1 : !0;
+ };
+ a.prototype.ic = function () {};
+ a.prototype.yYa = function () {
+ var a,
+ b,
+ c,
+ f;
+ if (this.wb) {
+ f = null === (a = this.wb) || void 0 === a ? void 0 : a.zm(this.Xf);
+ a = m.Lf().get();
+ return {
+ totalabuflmsecs: f.OXa,
+ totalvbuflmsecs: f.PXa,
+ abuflbytes: 0,
+ vbuflbytes: 0,
+ currentBandwidth: null !== (c = Number(0 < a.Dd) && (null === (b = a.Ia) || void 0 === b ? void 0 : b.Ca)) && void 0 !== c ? c : 0
+ };
+ }
+ };
+ a.prototype.Mha = function (a) {
+ var b,
+ c,
+ f;
+ if (void 0 !== this.wb) {
+ if (0 === this.xc.length)
+ return a.offset;
+ b = this.xc.filter(function (b) {
+ return b.aa.id === a.Ha;
+ });
+ if (0 !== b.length) {
+ c = this.yH();
+ f = new l.fa(Infinity, 1);
+ b.forEach(function (b) {
+ b = b.USa.add(a.offset);
+ c.Kea(b).lessThan(c.Kea(f)) && (f = b);
+ });
+ return f;
+ }
+ }
+ };
+ a.prototype.ar = function (a) {
+ var b,
+ c;
+ b = this.EKa(a);
+ if (!b) {
+ if (void 0 === this.wb)
+ return;
+ c = this.xc[this.xc.length - 1];
+ return p.ar(a, {
+ wb: this.wb,
+ Rub: c && ({
+ id: c.aa.id,
+ THb: c.USa
+ })
+ });
+ }
+ c = b.aa;
+ b = c.kk.add(b.rs);
+ return {
+ Ha: c.id,
+ offset: a.Ib(b)
+ };
+ };
+ a.prototype.reset = function () {};
+ a.prototype.hR = function () {};
+ a.prototype.pause = function (a) {
+ void 0 === a && (a = h.We);
+ this.OI = null === a || void 0 === a ? void 0 : a.reduce(function (a, b) {
+ -1 === a.indexOf(b) && a.push(b);
+ return a;
+ }, this.OI);
+ };
+ a.prototype.resume = function (a) {
+ var b;
+ b = this;
+ void 0 === a && (a = h.We);
+ a.forEach(function (a) {
+ a = b.OI.indexOf(a);
+ -1 !== a && b.OI.splice(a, 1);
+ });
+ };
+ a.prototype.Gpa = function (a) {
+ var b;
+ r.assert(this.wb);
+ r.assert(a !== this);
+ this.IJ();
+ b = a.vX(this.wb, this);
+ b && (a.pause(this.OI), a.sfa.apply(a, c.__spread(this.xc)), this.Eea(this.wb));
+ return b;
+ };
+ a.prototype.yH = function () {
+ return this.sLa();
+ };
+ a.prototype.sLa = function () {
+ var a,
+ b,
+ f,
+ h;
+ h = this.xc;
+ if (h.length)
+ return (f = c.__read(h, 1)[0], r.assert(f), null !== (a = f.ot) && void 0 !== a ? a : f.Hia);
+ if (this.wb) {
+ if (this.wb.kk)
+ return this.wb.kk;
+ a = null === (b = this.wb) || void 0 === b ? void 0 : b.je.Hh;
+ a = null === (f = this.wb) || void 0 === f ? void 0 : f.je.Ya[a];
+ return l.fa.Jd(a.yf);
+ }
+ return l.fa.Cc;
+ };
+ a.prototype.Am = function () {
+ return 1;
+ };
+ a.prototype.EKa = function (a) {
+ var b;
+ if (0 !== this.xc.length) {
+ b = this.sLa();
+ return a.lessThan(b) ? this.xc[0] : l.QJa(this.xc, a);
+ }
+ };
+ return a;
+ })();
+ b.e9 = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r,
+ h,
+ p;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.n9 = void 0;
+ c = a(0);
+ k = a(18);
+ l = a(11);
+ r = a(44);
+ h = a(109);
+ p = l.fa.Jd(1E3);
+ d = (function () {
+ function a(a, b, c, h, m, d, r) {
+ var f,
+ u,
+ g;
+ f = this;
+ this.L = a;
+ this.console = b;
+ this.qd = c;
+ this.events = m;
+ this.Jm = [];
+ this.qCb = p.add(l.fa.Jd(null !== (g = null === (u = d.JR) || void 0 === u ? void 0 : u.qa) && void 0 !== g ? g : 0));
+ this.listeners = new k.Wi();
+ this.listeners.on(r.Aa, "clockReset", function () {
+ return f.Gla();
+ });
+ this.listeners.on(h, "requestAppended", function (a) {
+ return f.lI(a.request);
+ });
+ this.EM = !0;
+ this.oO = r.eY(function () {
+ return f.umb();
+ });
+ this.y2 = r.eY(function () {
+ return f.GEb();
+ });
+ }
+ a.prototype.Gla = function () {
+ this.EM = !0;
+ this.oO.Dp();
+ };
+ a.prototype.umb = function () {
+ var a,
+ b;
+ return c.__generator(this, function (c) {
+ switch (c.label) {
+ case 0:
+ (this.LQ = this.hAb(this.EM), a = this.YQa(), b = this.EM ? this.qd.Xf : null === a || void 0 === a ? void 0 : a.timestamp, c.label = 1);
+ case 1:
+ return a ? [4, h.Rr.HS(a.timestamp)] : [3, 3];
+ case 2:
+ return (c.Bt(), this.EM = !1, this.WIa(a, b), this.LQ++, a = this.YQa(), b = null === a || void 0 === a ? void 0 : a.timestamp, [3, 1]);
+ case 3:
+ return [2];
+ }
+ });
+ };
+ a.prototype.YQa = function () {
+ if (void 0 !== this.LQ)
+ return this.Jm[this.LQ];
+ };
+ a.prototype.hAb = function (a) {
+ void 0 === a && (a = !1);
+ for (var b = 0; b < this.Jm.length; b++) {
+ if (this.Jm[b].timestamp.Iy(this.qd.Xf))
+ return a && 0 < b ? b - 1 : b;
+ }
+ return Math.max(this.Jm.length - 1, 0);
+ };
+ a.prototype.GEb = function () {
+ var a,
+ b;
+ return c.__generator(this, function (f) {
+ switch (f.label) {
+ case 0:
+ if (!(1 < this.Jm.length))
+ return [3, 2];
+ a = c.__read(this.Jm, 2);
+ b = a[1];
+ return [4, h.Rr.HS(this.qCb.add(b.timestamp))];
+ case 1:
+ return (f.Bt(), this.Jm.shift(), this.LQ && this.LQ--, [3, 0]);
+ case 2:
+ return [2];
+ }
+ });
+ };
+ a.prototype.reset = function () {
+ this.Jm = [];
+ r.Oa && this.trace("reset");
+ this.EM = !0;
+ this.x0 = void 0;
+ this.y2.Dp();
+ this.oO.Dp();
+ };
+ a.prototype.close = function () {
+ this.oO.ic();
+ this.y2.ic();
+ this.listeners.clear();
+ };
+ a.prototype.Fi = function (a) {
+ var b;
+ r.Oa && this.trace("canSkip() " + a);
+ if (0 === this.Jm.length)
+ return (r.Oa && this.trace("canSkip false, no media sequence"), !1);
+ b = this.Jm[0];
+ return b.timestamp.greaterThan(a) ? (r.Oa && this.trace("canSkip false, before earliest item at " + b.timestamp), !1) : void 0 === this.x0 || this.x0.lessThan(a) ? (r.Oa && this.trace("canSkip false, later than last appended at " + this.x0), !1) : !0;
+ };
+ a.prototype.trace = function (a) {
+ r.Oa && this.console.trace("PresentationTracker [" + this.L + "]: " + a);
+ };
+ a.prototype.sEa = function (a, b, c) {
+ c && (this.x0 = c);
+ c = this.Jm.length ? this.Jm[this.Jm.length - 1] : void 0;
+ if (void 0 === c || c.Epa !== a)
+ (this.Jm.push({
+ Epa: a,
+ timestamp: b
+ }), this.oO.state === h.Zp.complete && this.oO.Dp(), this.y2.state === h.Zp.complete && this.y2.Dp());
+ };
+ return a;
+ })();
+ b.n9 = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r,
+ h,
+ p,
+ m;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.W4 = void 0;
+ c = a(0);
+ d = a(18);
+ k = a(44);
+ l = a(4);
+ r = a(11);
+ h = a(847);
+ p = a(162);
+ m = a(846);
+ a = (function (a) {
+ function b() {
+ var b;
+ b = null !== a && a.apply(this, arguments) || this;
+ b.CDa = 0;
+ b.cba = 0;
+ b.SL = 0;
+ b.V$ = 0;
+ return b;
+ }
+ c.__extends(b, a);
+ b.prototype.mna = function (b) {
+ var c,
+ f;
+ a.prototype.mna.call(this, b);
+ this.CDa++;
+ this.cba++;
+ this.UDa = l.time.ea();
+ this.BF || (this.BF = {
+ Qb: b.Qb,
+ cc: b.cc,
+ index: b.index
+ }, this.UV || (this.UV = this.BF));
+ c = this.fW;
+ f = !1;
+ c && 100 > Math.abs(c.Qb - b.cc) && (this.SL += b.Qb - c.Qb, this.V$++, f = !0);
+ f || (this.SL = b.sv, this.V$ = 1);
+ this.fW = b;
+ };
+ b.prototype.stop = function () {
+ a.prototype.stop.call(this);
+ this.SL = this.cba = 0;
+ this.BF = void 0;
+ };
+ b.prototype.uLa = function () {
+ var a,
+ b,
+ c,
+ f;
+ a = this.YF;
+ b = a.kY;
+ if (b) {
+ f = b.kb(this.De);
+ f && f.Ja && (c = f.Ja.oha());
+ return {
+ RM: c,
+ currentBranch: {
+ sId: b.aa && b.aa.id,
+ cancelled: b.gj
+ },
+ currentReceivedCount: a && a.ikb,
+ totalReceivedCount: this.CDa,
+ currentState: a && a.lkb || "Uninitialized",
+ lastRequestPushed: this.fW && ({
+ contentEndPts: this.fW.Qb,
+ fragmentIndex: this.fW.index
+ }),
+ tslp: this.UDa && l.time.ea() - this.UDa,
+ cpts: this.SL,
+ crq: this.V$,
+ rslp: this.cba,
+ firstRequestSSPushed: this.BF && ({
+ contentStartPts: this.BF.cc,
+ fragmentIndex: this.BF.index
+ }),
+ firstRequestPushed: this.UV && ({
+ contentStartPts: this.UV.cc,
+ fragmentIndex: this.UV.index
+ })
+ };
+ }
+ };
+ return b;
+ })((function (a) {
+ function b(b, c, f, p, k, d, u, g) {
+ var w;
+ w = a.call(this) || this;
+ w.$p = b;
+ w.De = c;
+ w.K = p;
+ w.u = k;
+ w.Jx = new r.iu(!1);
+ w.u = r.Zy(l, w.u, "AsePlayerBuffer:");
+ w.YF = new h.Cra(w.u, f, c);
+ w.resume();
+ d && u && g && (w.xma = new m.Pya(c, k, d, w.$p, d.events, u, g));
+ w.$p.on("requestAppended", function () {
+ w.Jx.set(!0);
+ w.emit("requestAppended");
+ });
+ return w;
+ }
+ c.__extends(b, a);
+ Object.defineProperties(b.prototype, {
+ lI: {
+ get: function () {
+ return this.Jx;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ Mz: {
+ get: function () {
+ return this.$p.Mz;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ L: {
+ get: function () {
+ return this.De;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ b.prototype.uLa = function () {};
+ b.prototype.resume = function () {
+ k.Oa && this.u.trace("resume");
+ this.Soa();
+ };
+ b.prototype.TNa = function (a) {
+ return this.$p.Uga() > a;
+ };
+ b.prototype.reset = function (a) {
+ var b;
+ void 0 === a && (a = !1);
+ k.Oa && this.u.trace("reset");
+ this.stop();
+ this.$p.reset(a);
+ this.Jx.set(!1);
+ a || (this.tV = void 0);
+ a || (null === (b = this.xma) || void 0 === b ? void 0 : b.reset());
+ };
+ b.prototype.Dp = function (a) {
+ void 0 === a && (a = !1);
+ this.reset(a);
+ this.Soa(!0);
+ };
+ b.prototype.stop = function () {
+ this.YF.HWa();
+ };
+ b.prototype.close = function () {
+ var a;
+ null === (a = this.xma) || void 0 === a ? void 0 : a.close();
+ };
+ b.prototype.ic = function () {
+ this.stop();
+ this.close();
+ };
+ b.prototype.yla = function () {
+ this.K.uZ && this.$p.aKa();
+ this.K.iK && this.$p.resume();
+ };
+ b.prototype.yob = function (a) {
+ this.$p.mRa(a, !0);
+ };
+ b.prototype.Fi = function (a) {
+ var b;
+ return !(null === (b = this.xma) || void 0 === b || !b.Fi(a));
+ };
+ b.prototype.Soa = function (a) {
+ if (!this.YF.mp || a)
+ (this.YF.aHb(), p.eA.fwb(this.YF, this.u0.bind(this)));
+ };
+ b.prototype.u0 = function (a) {
+ a.done || this.mna(a.value);
+ };
+ b.prototype.mna = function (a) {
+ this.$p.endOfStream ? k.Oa && this.u.error("Buffer manager has declared EOS, ignoring request", a.toString()) : (this.tV ? (this.tV.Bwb = a.Qb, this.tV.Dwb = a.ie) : this.tV = {
+ nYb: a.cc,
+ oYb: a.Zc,
+ Bwb: a.Qb,
+ Dwb: a.ie
+ }, this.$p.Ldb(a));
+ };
+ return b;
+ })(d.EventEmitter));
+ b.W4 = a;
+ }, function (d, b, a) {
+ var c,
+ k;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.u9 = void 0;
+ c = a(4).Promise;
+ d = (function () {
+ function a() {
+ var a;
+ a = this;
+ this.vW = [];
+ this.kGb = function (b) {
+ b = a.vW.indexOf(b);
+ 0 <= b && a.vW.splice(b, 1);
+ };
+ }
+ Object.defineProperties(a.prototype, {
+ $x: {
+ get: function () {
+ return 0 !== this.vW.length;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ a.prototype.add = function () {
+ var a;
+ a = new k(this.kGb);
+ this.vW.push(a);
+ return a;
+ };
+ a.prototype.yZa = function (a) {
+ var b;
+ b = this.add();
+ try {
+ return c.resolve(a()).then(function (a) {
+ b.release();
+ return a;
+ }, function (a) {
+ b.release();
+ return c.reject(a);
+ });
+ } catch (p) {
+ return (b.release(), c.reject(p));
+ }
+ };
+ return a;
+ })();
+ b.u9 = d;
+ k = (function () {
+ function a(a) {
+ this.wab = a;
+ }
+ a.prototype.release = function () {
+ this.wab(this);
+ };
+ return a;
+ })();
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Pfa = void 0;
+ b.Pfa = function (a, b) {
+ for (var c, d, r = a.length - 1; 0 <= r; --r) {
+ if ((d = a[r], d.Pq)) {
+ if (d.R <= b)
+ return r;
+ c = r;
+ }
+ }
+ return c;
+ };
+ }, function (d, b, a) {
+ var c;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.S4 = void 0;
+ c = a(0);
+ a(4);
+ a(5);
+ d = (function (a) {
+ function b(b, c, p, m, f) {
+ b = a.call(this, b, c, p, m, f) || this;
+ b.gCa = !1;
+ b.fCa = !1;
+ b.ZL = !1;
+ b.ta = [];
+ b.$r = !1;
+ b.dDa = !1;
+ b.xCa = !1;
+ b.bd = !1;
+ b.Dg = !1;
+ b.$d = !1;
+ b.gF = !1;
+ b.KF = void 0;
+ b.Vr = void 0;
+ return b;
+ }
+ c.__extends(b, a);
+ Object.defineProperties(b.prototype, {
+ Via: {
+ get: function () {
+ return this.$r && !this.ZL;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ active: {
+ get: function () {
+ return this.bd;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ dUa: {
+ get: function () {
+ return this.Dg;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ complete: {
+ get: function () {
+ return this.$d || (this.$d = this.ta.every(function (a) {
+ return a.complete;
+ }));
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ hs: {
+ get: function () {
+ return this.gF;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ ki: {
+ get: function () {
+ return this.ta.reduce(function (a, b) {
+ return a + b.ki;
+ }, 0);
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ Qe: {
+ get: function () {
+ return this.ta.reduce(function (a, b) {
+ return a + b.Qe;
+ }, 0);
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ ed: {
+ get: function () {
+ return this.KF || 0;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ url: {
+ get: function () {
+ return this.ta[0] && this.ta[0].url;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ readyState: {
+ get: function () {
+ return this.Cg || this.ta.reduce(function (a, b) {
+ return Math.min(a, b.readyState);
+ }, Infinity);
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ status: {
+ get: function () {
+ return this.Vr && this.Vr.status || 0;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ Dh: {
+ get: function () {
+ return this.Vr && this.Vr.Dh;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ qH: {
+ get: function () {
+ return this.Vr && this.Vr.qH;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ qj: {
+ get: function () {
+ return this.Vr && this.Vr.qj;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ eo: {
+ get: function () {
+ return !!this.ta.length && this.ta[0].eo;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ b.prototype.push = function (a) {
+ this.xCa && a.Eb(this.Ja);
+ this.ta.push(a);
+ this.$r && a.ft();
+ };
+ b.prototype.Eb = function (b) {
+ a.prototype.Eb.call(this, b);
+ this.ta.forEach(function (a) {
+ return a.Eb(b);
+ });
+ this.xCa = !0;
+ };
+ b.prototype.ft = function () {
+ this.dDa = !0;
+ (this.$r = this.ta.every(function (a) {
+ return a.ft();
+ })) && this.EO(this);
+ this.dDa = !1;
+ return this.$r;
+ };
+ b.prototype.yc = function () {
+ 7 !== this.readyState && 5 !== this.readyState && (this.u.warn("AseCompoundRequest: in-progress request should be aborted before cleanup", this), this.abort());
+ this.ta.forEach(function (a) {
+ return a.yc();
+ });
+ };
+ b.prototype.YR = function (a) {
+ this.Cg = this.Vr = void 0;
+ return this.ta.every(function (b) {
+ return 5 !== b.readyState && 7 !== b.readyState ? b.YR(a) : !0;
+ });
+ };
+ b.prototype.abort = function () {
+ var a,
+ b;
+ a = this.active;
+ this.Cg = 7;
+ this.gF = !0;
+ this.Dg = this.bd = !1;
+ b = this.ta.map(function (a) {
+ return a.abort();
+ }).every(function (a) {
+ return a;
+ });
+ this.yZ(this, a, this.Via);
+ return b;
+ };
+ b.prototype.getResponseHeader = function (a) {
+ var b;
+ b = null;
+ this.ta.some(function (c) {
+ return !!(b = c.getResponseHeader(a));
+ });
+ return b;
+ };
+ b.prototype.getAllResponseHeaders = function () {
+ var a;
+ a = null;
+ this.ta.some(function (b) {
+ return !!(a = b.getAllResponseHeaders());
+ });
+ return a;
+ };
+ b.prototype.T1 = function () {};
+ b.prototype.nw = function (a) {
+ this.bd || (this.bd = !0);
+ this.gCa || (this.gCa = !0, this.Pl = 0, this.KF = this.Ql = a.ed, this.nC(this));
+ };
+ b.prototype.II = function (a) {
+ this.Dg || (this.Dg = !0);
+ this.fCa || (this.fCa = !0, this.KF = a.ed, this.yy(this));
+ };
+ b.prototype.JI = function (a) {
+ this.KF = a.ed;
+ this.oC(this);
+ this.Pl = this.Qe;
+ this.Ql = a.ed;
+ };
+ b.prototype.rj = function (a) {
+ this.KF = a.ed;
+ this.complete ? (this.$d = !0, this.Cg = 5, this.Dg = this.bd = !1, this.ZL = !0, this.Bq(this)) : this.oC(this);
+ this.Pl = this.Qe;
+ this.Ql = a.ed;
+ };
+ b.prototype.xQ = function (a) {
+ this.KF = a.ed;
+ this.Vr = a;
+ this.Cg = 6;
+ this.zZ(this);
+ };
+ b.prototype.wQ = function () {};
+ b.prototype.Yj = function () {
+ return this.ta[0].Yj() + "-" + this.ta[this.ta.length - 1].Yj();
+ };
+ b.prototype.toString = function () {
+ return "Compound[" + this.ta.map(function (a) {
+ return a.toString();
+ }).join(",") + "]";
+ };
+ b.prototype.toJSON = function () {
+ return {
+ requests: this.ta
+ };
+ };
+ return b;
+ })(a(164).bA);
+ b.S4 = d;
+ }, function (d, b, a) {
+ var c,
+ k;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.US = void 0;
+ c = a(0);
+ k = a(5);
+ d = (function (a) {
+ function b(b, c, m) {
+ b = a.call(this, b, c) || this;
+ b.EJ = !1;
+ b.Es = !1;
+ b.BI = !1;
+ b.uy = !1;
+ b.Zk = void 0;
+ b.FF = c.Ii;
+ b.wn = c.Qla;
+ b.YBa = c.Uj;
+ b.u = m;
+ return b;
+ }
+ c.__extends(b, a);
+ Object.defineProperties(b.prototype, {
+ kc: {
+ get: function () {
+ return !0;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ Ii: {
+ get: function () {
+ return this.FF;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ Qla: {
+ get: function () {
+ return this.wn;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ Uj: {
+ get: function () {
+ return this.YBa;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ b.prototype.yc = function () {};
+ b.prototype.u4 = function () {};
+ b.prototype.Ncb = function (a) {
+ k.assert(this.Pd.wa === a.wa);
+ !a.ge && this.Pd.ge && a.bY(this.Pd);
+ !a.location && this.Pd.location && (a.location = this.Pd.location, a.Ac = this.Pd.Ac, a.MD = this.Pd.MD, a.url = this.Pd.url, a.qb = this.Pd.qb);
+ this.Pd = a;
+ };
+ b.prototype.toJSON = function () {
+ return c.__assign(c.__assign({}, a.prototype.toJSON.call(this)), {
+ isHeader: !0,
+ fragments: this.stream.$
+ });
+ };
+ return b;
+ })(a(168).Rw);
+ b.US = d;
+ }, function (d) {
+ (function () {
+ function b() {
+ var s00;
+ s00 = 2;
+ for (; s00 !== 5; ) {
+ switch (s00) {
+ case 2:
+ this.Ox = this.ec = 0;
+ this.Ua = this.ne = void 0;
+ s00 = 5;
+ break;
+ }
+ }
+ }
+ var r00;
+ r00 = 2;
+ for (; r00 !== 8; ) {
+ switch (r00) {
+ case 2:
+ b.prototype.start = function (a) {
+ var t00;
+ t00 = 2;
+ for (; t00 !== 1; ) {
+ switch (t00) {
+ case 2:
+ this.ne ? a < this.ne ? (this.Ox += this.ne - a, this.ne = a) : a > this.Ua && (this.Ua = this.ne = a) : this.Ua = this.ne = a;
+ t00 = 1;
+ break;
+ }
+ }
+ };
+ b.prototype.stop = function (a) {
+ var u00;
+ u00 = 2;
+ for (; u00 !== 1; ) {
+ switch (u00) {
+ case 2:
+ this.Ua && a > this.Ua && (this.Ox += a - this.Ua, this.Ua = a);
+ u00 = 1;
+ break;
+ }
+ }
+ };
+ b.prototype.add = function (a, b, d) {
+ var v00;
+ v00 = 2;
+ for (; v00 !== 4; ) {
+ switch (v00) {
+ case 2:
+ this.start(b);
+ this.stop(d);
+ v00 = 5;
+ break;
+ case 5:
+ this.ec += a;
+ v00 = 4;
+ break;
+ }
+ }
+ };
+ b.prototype.get = function () {
+ var w00;
+ w00 = 2;
+ for (; w00 !== 1; ) {
+ switch (w00) {
+ case 2:
+ return {
+ Ca: this.Ox ? Math.floor(8 * this.ec / this.Ox) : null,
+ GY: this.Ox ? this.Ox : 0
+ };
+ break;
+ }
+ }
+ };
+ d.P = b;
+ r00 = 9;
+ break;
+ case 9:
+ var v4P = "1SIYbZ";
+ v4P += "rNJC";
+ v4P += "p";
+ v4P += "9";
+ v4P;
+ r00 = 8;
+ break;
+ }
+ }
+ })();
+ }, function (d, b, a) {
+ var k,
+ l;
+ function c(a) {
+ this.K = {
+ RP: a.maxc || 25,
+ Dda: a.c || .5,
+ pFb: a.rc || "none",
+ gtb: a.hl || 7200
+ };
+ this.AM();
+ this.uab = this.K.pFb;
+ this.aM = this.K.gtb;
+ this.H$ = Math.exp(Math.log(2) / this.aM);
+ this.H$ = Math.max(this.H$, 1);
+ this.IV = 1;
+ }
+ k = a(8);
+ l = a(228).TDigest;
+ new(a(4).Console)("ASEJS_NETWORK_HISTORY", "media|asejs");
+ c.prototype.Wc = function () {
+ var a;
+ if (0 === this.oe.size())
+ return null;
+ a = this.oe.ci([.25, .75]);
+ if (a[0] === a[1])
+ return null;
+ this.oe.size() > this.K.RP && this.oe.hv();
+ a = this.oe.bn(!1).reduce((function (a, b) {
+ k.na(b.tf) && k.na(b.n) && a.push({
+ mean: b.tf,
+ n: b.n / this.IV
+ });
+ return a;
+ }).bind(this), []);
+ return {
+ tdigest: JSON.stringify(a)
+ };
+ };
+ c.prototype.ke = function (a) {
+ var b;
+ if (k.Pa(a) || !k.has(a, "tdigest") || !k.Td(a.tdigest))
+ return !1;
+ try {
+ b = JSON.parse(a.tdigest);
+ } catch (p) {
+ return !1;
+ }
+ b.forEach(function (a) {
+ k.isFinite(a.n) || (a.n = 1);
+ });
+ a = b.map(function (a) {
+ return {
+ tf: a.mean,
+ n: a.n
+ };
+ });
+ this.IV = 1;
+ this.oe.Jma(a);
+ void 0 === this.oe.ci(0) && this.AM();
+ };
+ c.prototype.get = function () {
+ var a,
+ b;
+ a = this.oe;
+ b = a.ci([0, .1, .25, .5, .75, .9, 1]);
+ return {
+ min: b[0],
+ Jla: b[1],
+ Sk: b[2],
+ sj: b[3],
+ Tk: b[4],
+ Kla: b[5],
+ max: b[6],
+ yh: a.bn(!1)
+ };
+ };
+ c.Drb = function (a) {
+ var b;
+ b = new c({});
+ k.Pa(a) || k.X(a) || !k.isArray(a.yh) || (b.oe.Jma(a.yh), void 0 === b.oe.ci(0) && b.AM());
+ a = b.oe.ci([.25, .75]);
+ return a[0] === a[1] ? null : function (a) {
+ return b.oe.ci(a);
+ };
+ };
+ c.prototype.add = function (a) {
+ var b;
+ b = 1;
+ "ewma" === this.uab && (this.IV = b = this.IV * this.H$);
+ this.oe.push(a, b);
+ };
+ c.prototype.toString = function () {
+ return "TDigestHist(" + this.oe.summary() + ")";
+ };
+ c.prototype.AM = function () {
+ this.oe = new l(this.K.Dda, this.K.RP);
+ };
+ d.P = {
+ oAa: c
+ };
+ }, function (d, b, a) {
+ var k,
+ l;
+ function c(a) {
+ this.K = {
+ RP: a.maxc || 25,
+ Dda: a.c || .5,
+ NOb: a.w || 15E3,
+ So: a.b || 5E3
+ };
+ k.call(this, this.K.NOb, this.K.So);
+ this.AM();
+ }
+ k = a(165);
+ l = a(228).TDigest;
+ c.prototype = Object.create(k.prototype);
+ c.prototype.shift = function () {
+ var a;
+ a = this.mz(0);
+ k.prototype.shift.call(this);
+ null !== a && (this.oe.push(a, 1), this.No = !0);
+ return a;
+ };
+ c.prototype.flush = function () {
+ var a;
+ a = this.get();
+ this.oe.push(a, 1);
+ this.No = !0;
+ k.prototype.reset.call(this);
+ return a;
+ };
+ c.prototype.get = function () {
+ return this.lMa();
+ };
+ c.prototype.Bv = function () {
+ var a;
+ a = this.lMa();
+ return {
+ min: a.min,
+ p10: a.Jla,
+ p25: a.Sk,
+ p50: a.sj,
+ p75: a.Tk,
+ p90: a.Kla,
+ max: a.max,
+ centroidSize: a.Ofb,
+ sampleSize: a.KD,
+ centroids: a.yh
+ };
+ };
+ c.prototype.lMa = function () {
+ var a;
+ if (0 === this.oe.size())
+ return null;
+ a = this.oe.ci([0, .1, .25, .5, .75, .9, 1]);
+ if (a[2] === a[4])
+ return null;
+ if (this.No || !this.Be)
+ (this.No = !1, this.Be = {
+ min: a[0],
+ Jla: a[1],
+ Sk: a[2],
+ sj: a[3],
+ Tk: a[4],
+ Kla: a[5],
+ max: a[6],
+ ci: this.oe.ci.bind(this.oe),
+ Ofb: this.oe.size(),
+ KD: this.oe.n,
+ yh: this.Vpb(),
+ Bv: this.Bv.bind(this)
+ });
+ return this.Be;
+ };
+ c.prototype.Vpb = function () {
+ var a;
+ if (0 === this.oe.size())
+ return null;
+ if (!this.No && this.Be)
+ return this.Be.centroids;
+ a = this.oe.ci([.25, .75]);
+ if (a[0] === a[1])
+ return null;
+ this.oe.size() > this.K.RP && this.oe.hv();
+ a = this.oe.bn(!1).map(function (a) {
+ return {
+ mean: a.tf,
+ n: a.n
+ };
+ });
+ return JSON.stringify(a);
+ };
+ c.prototype.hMa = function () {
+ return this.oe.summary();
+ };
+ c.prototype.size = function () {
+ return this.oe.size();
+ };
+ c.prototype.toString = function () {
+ return "btdtput(" + this.kG + "," + this.Tc + "," + this.Ci + "): " + this.oe.summary();
+ };
+ c.prototype.AM = function () {
+ this.oe = new l(this.K.Dda, this.K.RP);
+ };
+ d.P = c;
+ }, function (d, b, a) {
+ var k,
+ l;
+ function c(a, b, c, m) {
+ k.call(this, c, m);
+ this.Zr = new l(a);
+ this.$9a = b;
+ }
+ k = a(165);
+ l = a(422);
+ c.prototype = Object.create(k.prototype);
+ c.prototype.shift = function () {
+ var a;
+ a = this.mz(0);
+ k.prototype.shift.call(this);
+ null !== a && this.Zr.iX(a);
+ return a;
+ };
+ c.prototype.flush = function () {
+ var a;
+ a = this.get();
+ this.Zr.iX(a);
+ k.prototype.reset.call(this);
+ return a;
+ };
+ c.prototype.get = function () {
+ var a;
+ a = this.UO();
+ return {
+ KD: this.FH(),
+ d2: a,
+ mQ: a.sj ? (a.Tk - a.Sk) / a.sj : void 0
+ };
+ };
+ c.prototype.FH = function () {
+ return this.Zr.FH();
+ };
+ c.prototype.UO = function () {
+ return this.Zr.FH() < this.$9a ? {
+ Sk: void 0,
+ sj: void 0,
+ Tk: void 0,
+ KD: void 0,
+ ci: void 0
+ }
+ : {
+ Sk: this.Zr.oq(25),
+ sj: this.Zr.oq(50),
+ Tk: this.Zr.oq(75),
+ KD: this.Zr.FH(),
+ ci: this.Zr.oq.bind(this.Zr)
+ };
+ };
+ c.prototype.toString = function () {
+ return "biqr(" + this.kG + "," + this.Tc + "," + this.Ci + ")";
+ };
+ d.P = c;
+ }, function (d, b, a) {
+ var r;
+ function c(a) {
+ this.reset();
+ this.XIb(a);
+ }
+ function k(a) {
+ this.setInterval(a);
+ this.reset();
+ }
+ function l(a) {
+ this.Ex = new k(a);
+ this.ae = 0;
+ this.Wb = null;
+ }
+ r = a(8);
+ c.prototype.XIb = function (a) {
+ this.jF = Math.pow(.5, 1 / a);
+ this.aM = a;
+ };
+ c.prototype.reset = function (a) {
+ a && a.Ca && r.na(a.Ca) ? a.Qh && r.na(a.Qh) ? (this.Tr = this.x9a, this.vn = a.Ca, this.yx = a.Qh + a.Ca * a.Ca) : (this.Tr = this.x9a, this.vn = a.Ca, this.yx = a.Ca * a.Ca) : this.yx = this.vn = this.Tr = 0;
+ };
+ c.prototype.add = function (a) {
+ var b;
+ if (r.na(a)) {
+ this.Tr++;
+ b = this.jF;
+ this.vn = b * this.vn + (1 - b) * a;
+ this.yx = b * this.yx + (1 - b) * a * a;
+ }
+ };
+ c.prototype.get = function () {
+ var a,
+ b,
+ c;
+ if (0 === this.Tr)
+ return {
+ Ca: 0,
+ Qh: 0
+ };
+ a = this.vn;
+ b = this.yx;
+ c = 1 - Math.pow(this.jF, this.Tr);
+ a = a / c;
+ b = b / c;
+ c = a * a;
+ return {
+ Ca: Math.floor(a),
+ Qh: Math.floor(b > c ? b - c : 0)
+ };
+ };
+ c.prototype.Wc = function () {
+ return 0 === this.Tr ? null : {
+ a: Number(this.vn.toPrecision(6)),
+ s: Number(this.yx.toPrecision(6)),
+ n: this.Tr
+ };
+ };
+ c.prototype.ke = function (a) {
+ if (r.Pa(a) || !r.has(a, "a") || !r.has(a, "s") || !r.isFinite(a.a) || !r.isFinite(a.s))
+ return (this.yx = this.vn = this.Tr = 0, !1);
+ this.vn = a.a;
+ this.yx = a.s;
+ r.has(a, "n") && r.na(a.n) ? this.Tr = a.n : this.Tr = 16 * this.aM;
+ return !0;
+ };
+ k.prototype.setInterval = function (a) {
+ this.aM = a;
+ this.jF = -Math.log(.5) / a;
+ };
+ k.prototype.reset = function (a) {
+ this.Ua = this.ne = null;
+ a && r.isFinite(a.Ca) ? this.vn = a.Ca : this.vn = 0;
+ };
+ k.prototype.start = function (a) {
+ r.Pa(this.ne) && (this.Ua = this.ne = a);
+ };
+ k.prototype.add = function (a, b, c) {
+ var f,
+ h;
+ r.Pa(this.ne) && (this.Ua = this.ne = b);
+ this.ne = Math.min(this.ne, b);
+ b = Math.max(c - b, 1);
+ f = this.jF;
+ h = c > this.Ua ? c : this.Ua;
+ this.vn = this.vn * (h > this.Ua ? Math.exp(-f * (h - this.Ua)) : 1) + 8 * a / b * (1 - Math.exp(-f * b)) * (c > h ? Math.exp(-f * (h - c)) : 1);
+ this.Ua = h;
+ };
+ k.prototype.get = function (a) {
+ var b;
+ a = Math.max(a, this.Ua);
+ b = this.vn * Math.exp(-this.jF * (a - this.Ua));
+ a = 1 - Math.exp(-this.jF * (a - this.ne));
+ 0 < a && (b /= a);
+ return {
+ Ca: Math.floor(b)
+ };
+ };
+ k.prototype.toString = function () {
+ return "ewmav(" + this.aM + ")";
+ };
+ l.prototype.setInterval = function (a) {
+ this.Ex.setInterval(a);
+ };
+ l.prototype.reset = function (a) {
+ this.Ex.reset(a);
+ this.ae = 0;
+ this.Wb = null;
+ };
+ l.prototype.start = function (a) {
+ !r.Pa(this.Wb) && a > this.Wb && (this.ae += a - this.Wb, this.Wb = null);
+ this.Ex.start(a - this.ae);
+ };
+ l.prototype.add = function (a, b, c) {
+ !r.Pa(this.Wb) && c > this.Wb && (this.ae += b > this.Wb ? b - this.Wb : 0, this.Wb = null);
+ this.Ex.add(a, b - this.ae, c - this.ae);
+ };
+ l.prototype.stop = function (a) {
+ this.Wb = Math.max(r.Pa(this.Ex.Ua) ? 0 : this.Ex.Ua + this.ae, r.Pa(this.Wb) ? a : Math.min(this.Wb, a));
+ };
+ l.prototype.get = function (a) {
+ return this.Ex.get((r.Pa(this.Wb) ? a : this.Wb) - this.ae);
+ };
+ l.prototype.toString = function () {
+ return this.Ex.toString();
+ };
+ d.P = {
+ P1a: c,
+ CQb: k,
+ N1a: l
+ };
+ }, function (d, b, a) {
+ d.P = {
+ iYb: a(406),
+ I0b: a(227),
+ kQb: a(867),
+ jQb: a(405),
+ lQb: a(404),
+ Xta: a(864)
+ };
+ }, function (d) {
+ function b() {}
+ function a(a) {
+ this.XDa = a;
+ this.un = [];
+ this.Hf = null;
+ }
+ b.prototype.clear = function () {
+ this.ce = null;
+ this.size = 0;
+ };
+ b.prototype.find = function (a) {
+ var c;
+ for (var b = this.ce; null !== b; ) {
+ c = this.pl(a, b.data);
+ if (0 === c)
+ return b.data;
+ b = b.og(0 < c);
+ }
+ return null;
+ };
+ b.prototype.lowerBound = function (a) {
+ var h;
+ for (var b = this.ce, c = this.iterator(), d = this.pl; null !== b; ) {
+ h = d(a, b.data);
+ if (0 === h)
+ return (c.Hf = b, c);
+ c.un.push(b);
+ b = b.og(0 < h);
+ }
+ for (h = c.un.length - 1; 0 <= h; --h) {
+ if ((b = c.un[h], 0 > d(a, b.data)))
+ return (c.Hf = b, c.un.length = h, c);
+ }
+ c.un.length = 0;
+ return c;
+ };
+ b.prototype.upperBound = function (a) {
+ for (var b = this.lowerBound(a), c = this.pl; null !== b.data() && 0 === c(b.data(), a); ) {
+ b.next();
+ }
+ return b;
+ };
+ b.prototype.min = function () {
+ var a;
+ a = this.ce;
+ if (null === a)
+ return null;
+ for (; null !== a.left; ) {
+ a = a.left;
+ }
+ return a.data;
+ };
+ b.prototype.max = function () {
+ var a;
+ a = this.ce;
+ if (null === a)
+ return null;
+ for (; null !== a.right; ) {
+ a = a.right;
+ }
+ return a.data;
+ };
+ b.prototype.iterator = function () {
+ return new a(this);
+ };
+ b.prototype.ee = function (a) {
+ for (var b = this.iterator(), c; null !== (c = b.next()); ) {
+ a(c);
+ }
+ };
+ a.prototype.data = function () {
+ return null !== this.Hf ? this.Hf.data : null;
+ };
+ a.prototype.next = function () {
+ var a;
+ if (null === this.Hf) {
+ a = this.XDa.ce;
+ null !== a && this.SCa(a);
+ } else if (null === this.Hf.right) {
+ do {
+ if ((a = this.Hf, this.un.length))
+ this.Hf = this.un.pop();
+ else {
+ this.Hf = null;
+ break;
+ }
+ } while (this.Hf.right === a);
+ } else (this.un.push(this.Hf), this.SCa(this.Hf.right));
+ return null !== this.Hf ? this.Hf.data : null;
+ };
+ a.prototype.uD = function () {
+ var a;
+ if (null === this.Hf) {
+ a = this.XDa.ce;
+ null !== a && this.QCa(a);
+ } else if (null === this.Hf.left) {
+ do {
+ if ((a = this.Hf, this.un.length))
+ this.Hf = this.un.pop();
+ else {
+ this.Hf = null;
+ break;
+ }
+ } while (this.Hf.left === a);
+ } else (this.un.push(this.Hf), this.QCa(this.Hf.left));
+ return null !== this.Hf ? this.Hf.data : null;
+ };
+ a.prototype.SCa = function (a) {
+ for (; null !== a.left; ) {
+ this.un.push(a);
+ a = a.left;
+ }
+ this.Hf = a;
+ };
+ a.prototype.QCa = function (a) {
+ for (; null !== a.right; ) {
+ this.un.push(a);
+ a = a.right;
+ }
+ this.Hf = a;
+ };
+ d.P = b;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r,
+ h,
+ p,
+ m,
+ f,
+ u,
+ g;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.V4 = void 0;
+ c = a(0);
+ k = a(96);
+ l = a(19);
+ r = a(4);
+ d = a(18);
+ h = a(11);
+ p = a(33);
+ m = a(5);
+ f = a(229);
+ u = a(401);
+ a = a(400);
+ g = r.MediaSource;
+ a = (function (a) {
+ function b(b, c, f, h, m, p, d) {
+ c = a.call(this, b, h, m, c, d) || this;
+ u.US.call(c, b, h, d);
+ c.Zk = f;
+ c.track = f.track;
+ c.Es = !!h.Es;
+ c.BI = !!h.BI;
+ c.uy = !!h.uy;
+ c.PBb = h.da;
+ c.EJ = !!h.EJ;
+ c.zaa = (p ? "(cache)" : "") + c.wa + " header";
+ c.dG(b.url || h.url, h.offset, h.da);
+ return c;
+ }
+ c.__extends(b, a);
+ Object.defineProperties(b.prototype, {
+ kc: {
+ get: function () {
+ return !0;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ a2: {
+ get: function () {
+ return this.dab;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ b.prototype.yc = function () {
+ var b;
+ if (!this.complete) {
+ b = {
+ type: "headerRequestCancelled",
+ request: this
+ };
+ this.emit(b.type, b);
+ }
+ a.prototype.yc.call(this);
+ };
+ b.prototype.EO = function (b) {
+ this.stream.zla();
+ a.prototype.EO.call(this, b);
+ };
+ b.prototype.rj = function (b) {
+ this.wn = this.wn ? h.ys(this.wn, b.response) : b.response;
+ b.bR();
+ this.aab() ? a.prototype.rj.call(this, b) : this.oBa ? (this.dG(b.url, b.offset + b.da, this.oBa), a.prototype.rj.call(this, b)) : this.zZ(this);
+ };
+ b.prototype.dG = function (a, b, c) {
+ a = new f.pK(this.stream, this.track, this.zaa + " (" + this.ta.length + ")", {
+ offset: b,
+ da: c,
+ url: a,
+ location: this.location,
+ Ob: this.Ob,
+ responseType: 0
+ }, this, this.Uc, this.u);
+ this.push(a);
+ this.ec = this.ta.reduce(function (a, b) {
+ return a + b.da;
+ }, 0);
+ };
+ b.prototype.aab = function () {
+ var a,
+ c,
+ f;
+ a = this.Uc;
+ c = new k.jx(b.Mzb, this.stream, this.wn, ["sidx"], this.L === l.Na.VIDEO && a.eH || this.L === l.Na.AUDIO, {
+ F0b: this.stream.track.Yea,
+ pSa: void 0 === this.Wa,
+ aYa: !g.gc || !g.gc.OGa,
+ Ipa: a.Ipa,
+ Qo: a.Qo,
+ aK: this.Uc.aK,
+ fHb: !0,
+ K3: !g.gc || !g.gc.NQa
+ });
+ f = c.parse({
+ Wa: this.Wa
+ });
+ this.XNb = a.aK && c.Htb;
+ f.lz ? (m.assert(f.Ii), this.FF = f.Ii, this.dab = f.a2, this.YBa = !!f.WY, void 0 === this.Wa && void 0 === f.Wa && this.u.error("No frame duration available for " + this.wa), c = f.Wa ? new h.fa(f.Wa) : this.Wa, this.stream.O1(f.Ii, f.S, c, f.$, f.yI, f.Di, a.RI && a.RI.enabled ? f.Wz : void 0), this.wn = void 0) : this.oBa = f.Gcb || 0;
+ return !!f.lz;
+ };
+ b.Mzb = new r.Console("MP4", "media|asejs");
+ return b;
+ })(a.S4);
+ b.V4 = a;
+ p.Ve(u.US, a, !1, !1);
+ p.Ve(d.EventEmitter, a);
+ }, function (d, b, a) {
+ var c,
+ k;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.I9 = void 0;
+ c = a(0);
+ k = a(96);
+ a(5);
+ a(35);
+ d = (function () {
+ function a(a, b, c, m) {
+ this.S = c;
+ this.Rd = a;
+ this.sizes = b;
+ this.length = Math.min(a.length, b.length);
+ this.ec = m;
+ }
+ Object.defineProperties(a.prototype, {
+ da: {
+ get: function () {
+ return void 0 !== this.ec ? this.ec : this.ec = this.O$();
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ a.prototype.subarray = function (b, c) {
+ return new a(this.Rd.subarray(b, c), this.sizes.subarray(b, c), this.S);
+ };
+ a.prototype.concat = function () {
+ var h,
+ b,
+ p,
+ m;
+ for (var b = [], h = 0; h < arguments.length; h++) {
+ b[h] = arguments[h];
+ }
+ h = [this];
+ b = h.concat.apply(h, c.__spread(b));
+ h = b.reduce(function (a, b) {
+ return a + b.length;
+ }, 0);
+ p = new Uint32Array(h);
+ m = new Uint32Array(h);
+ h = b.reduce(function (a, b) {
+ return a || b.S;
+ }, void 0);
+ b.reduce(function (a, b) {
+ k.h$.set(p, b.Rd, a);
+ k.h$.set(m, b.sizes, a);
+ return a + b.length;
+ }, 0);
+ return new a(p, m, h);
+ };
+ a.prototype.O$ = function () {
+ for (var a = this.sizes, b = this.length, c = 0, m = 0; m < b; ++m) {
+ c += a[m];
+ }
+ return c;
+ };
+ return a;
+ })();
+ b.I9 = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ c = a(413);
+ k = a(237);
+ l = a(412);
+ d = (function () {
+ function a(a, b, c) {
+ this.console = a;
+ this.stream = b;
+ this.view = c instanceof ArrayBuffer ? new DataView(c) : new DataView(c.data, c.offset, c.length);
+ }
+ a.prototype.parse = function (a) {
+ var b;
+ b = new l.Ssa(this.view.byteLength);
+ this.Jh = new c.i5(k.AI.Vc, b, this.view, this.console, {
+ Ola: !0
+ });
+ a = this.Jh.parse(a);
+ this.Vc = this.Jh.Vc;
+ return a.done;
+ };
+ return a;
+ })();
+ b.cL = d;
+ }, function (d, b, a) {
+ var k;
+ function c(a, b) {
+ a = b.indexOf(a);
+ -1 !== a && b.splice(a, 1);
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ k = a(82);
+ d = (function () {
+ function a(a) {
+ this.endOffset = a;
+ this.done = !1;
+ }
+ a.prototype.iKa = function () {
+ return this.done;
+ };
+ a.prototype.CIa = function (a, b, c) {
+ return this.done = b + c >= this.endOffset;
+ };
+ return a;
+ })();
+ b.Ssa = d;
+ d = (function () {
+ function a(a, b, c, m) {
+ void 0 === b && (b = []);
+ void 0 === c && (c = []);
+ void 0 === m && (m = !1);
+ this.kr = a;
+ this.zY = b;
+ this.oXa = c;
+ this.rSa = m;
+ this.done = !1;
+ this.gk = {};
+ }
+ a.prototype.iKa = function (b, c, p) {
+ -1 !== a.Mtb.indexOf(b) && (this.gk[b] = {
+ offset: c,
+ size: p
+ });
+ if (-1 !== this.oXa.indexOf(b)) {
+ if ((this.gk[b] = {
+ offset: c,
+ size: p
+ }, this.rSa))
+ this.endOffset = c + p;
+ else
+ return (this.endOffset = c, this.done = !0);
+ } else
+ this.kr && -1 !== this.kr.indexOf(b) ? (b = 1 < this.kr.length ? 4096 : 0, this.endOffset = Math.max(c + p + b, this.endOffset || 0)) : -1 !== this.zY.indexOf(b) && (b = this.kr ? 4096 : 0, this.endOffset = Math.max(c + p + b, this.endOffset || 0));
+ return this.done;
+ };
+ a.prototype.CIa = function (a, b, p, m) {
+ var f;
+ f = this;
+ if (-1 !== this.oXa.indexOf(a))
+ return this.done = !0;
+ a === k.Z7 && this.RVa(m.gk);
+ a === k.a8 && this.RVa(m.gk);
+ this.kr && c(a, this.kr);
+ c(a, this.zY);
+ return this.kr && 0 === this.kr.length && !this.zY.some(function (a) {
+ return f.gk[a];
+ }) ? this.done = !0 : this.done;
+ };
+ a.prototype.RVa = function (a) {
+ var b;
+ b = this;
+ this.gk = a;
+ this.endOffset = (this.kr || []).concat(this.zY).reduce(function (a, c) {
+ return b.gk[c] ? (c = b.gk[c], Math.max(c.offset + (c.size || 4096), a)) : a;
+ }, this.endOffset || 0);
+ };
+ a.Mtb = ["moov", "sidx"];
+ return a;
+ })();
+ b.Q2a = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ c = a(0);
+ k = a(28);
+ l = a(74);
+ d = (function (a) {
+ function b(b, c, f, h, d) {
+ f = a.call(this, f, h, d) || this;
+ f.Neb = b;
+ f.KJ = c;
+ f.Vc = {};
+ return f;
+ }
+ c.__extends(b, a);
+ b.prototype.parse = function (a) {
+ var b,
+ c,
+ h,
+ p,
+ d,
+ k;
+ this.offset = 0;
+ b = [];
+ for (a = a || ({}); this.offset < this.view.byteLength && !(8 > this.view.byteLength - this.offset); ) {
+ c = this.offset;
+ h = this.Mb();
+ if (0 === h)
+ return {
+ done: !1,
+ offset: this.offset,
+ error: "Invalid zero-length box"
+ };
+ p = l.Ax(this.Mb());
+ if (null === p)
+ return {
+ done: !1,
+ offset: this.offset,
+ error: "Invalid box type"
+ };
+ if ("uuid" === p) {
+ if (16 > this.view.byteLength - this.offset)
+ break;
+ p = this.H2();
+ }
+ if (0 === b.length && this.KJ.iKa(p, c, h))
+ break;
+ if (c + h > this.view.byteLength)
+ break;
+ d = this.Neb[p];
+ k = void 0;
+ if (d) {
+ if ((k = new d(this, p, c, h, b[0]), (b[0] || this).SM(k), k.parse(a)))
+ this.config.Ola && d.uc ? b.unshift(k) : this.offset = c + h;
+ else
+ return {
+ done: !1,
+ offset: this.offset,
+ error: "parse error in " + p + " box"
+ };
+ } else
+ this.offset = c + h;
+ for (; b.length && this.offset > b[0].byteOffset + b[0].jD - 8; ) {
+ k = b.shift();
+ if (!k.sH(a))
+ return {
+ done: !1,
+ offset: this.offset,
+ error: "finalize error in " + k.type + " box"
+ };
+ this.offset = k.byteOffset + k.jD;
+ }
+ if (0 === b.length && this.KJ.CIa(p, c, h, k))
+ break;
+ }
+ return !this.KJ.done && (a = this.KJ.endOffset ? this.KJ.endOffset - this.view.byteLength : 4096, 0 < a) ? {
+ done: !1,
+ offset: this.offset,
+ SQa: a
+ }
+ : {
+ done: !0,
+ offset: Math.min(this.KJ.endOffset || Infinity, this.offset)
+ };
+ };
+ b.prototype.SM = function (a) {
+ k.cg.SM(this, a);
+ };
+ return b;
+ })(a(878).n7a);
+ b.i5 = d;
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.concat = function () {
+ var a,
+ b,
+ d;
+ for (var a = [], b = 0; b < arguments.length; b++) {
+ a[b] = arguments[b];
+ }
+ a = Array.prototype.concat.apply([], a);
+ b = a.reduce(function (a, b) {
+ return a + b.byteLength;
+ }, 0);
+ d = new Uint8Array(b);
+ a.reduce(function (a, b) {
+ d.set(new Uint8Array(b), a);
+ return a + b.byteLength;
+ }, 0);
+ return d.buffer;
+ };
+ }, function (d) {
+ var b,
+ a,
+ c,
+ k;
+ b = {
+ name: "heaac-2-dash reset sample",
+ profile: 53,
+ Xo: 2,
+ sampleRate: 24E3,
+ duration: 1024,
+ Dw: new Uint8Array([33, 17, 69, 0, 20, 80, 1, 70, 157, 188, 0, 0, 8, 28, 0, 0, 0, 14]).buffer
+ };
+ a = {
+ name: "heaac-2-dase standard sample",
+ profile: 53,
+ Xo: 2,
+ sampleRate: 24E3,
+ duration: 1024,
+ Dw: new Uint8Array([33, 17, 69, 0, 20, 80, 1, 70, 240, 77, 251, 1, 60, 8, 64, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 14, 0, 14]).buffer
+ };
+ c = {
+ name: "ddplus-5.1-dash standard sample",
+ profile: 54,
+ Xo: 6,
+ sampleRate: 48E3,
+ duration: 1536,
+ Dw: new Uint8Array([11, 119, 1, 127, 63, 134, 255, 225, 6, 32, 0, 32, 0, 66, 10, 65, 0, 135, 216, 68, 3, 254, 202, 2, 88, 163, 1, 16, 177, 64, 146, 32, 160, 75, 20, 80, 37, 136, 35, 227, 36, 160, 152, 156, 165, 37, 38, 41, 37, 73, 74, 9, 201, 146, 130, 114, 82, 116, 160, 152, 152, 150, 136, 58, 125, 89, 245, 39, 207, 159, 63, 116, 150, 147, 242, 73, 95, 165, 171, 175, 253, 215, 126, 82, 21, 55, 188, 8, 165, 126, 249, 242, 100, 175, 255, 249, 73, 42, 255, 253, 215, 124, 246, 156, 23, 239, 108, 36, 134, 249, 211, 228, 181, 255, 246, 253, 205, 119, 176, 179, 86, 126, 166, 27, 231, 175, 225, 58, 255, 222, 170, 110, 127, 249, 215, 41, 232, 146, 73, 183, 0, 88, 211, 192, 0, 0, 31, 7, 178, 116, 62, 122, 114, 245, 8, 233, 196, 71, 223, 196, 18, 59, 202, 113, 248, 103, 242, 80, 250, 118, 15, 1, 60, 79, 251, 46, 14, 8, 9, 37, 4, 14, 183, 67, 131, 195, 103, 241, 250, 32, 124, 81, 61, 76, 9, 40, 161, 2, 1, 16, 64, 114, 219, 225, 217, 172, 140, 44, 12, 64, 147, 49, 210, 195, 206, 12, 52, 186, 196, 0, 107, 134, 202, 4, 9, 216, 72, 67, 11, 127, 185, 13, 125, 124, 124, 194, 90, 203, 69, 1, 209, 8, 129, 183, 36, 196, 101, 7, 248, 73, 181, 38, 181, 30, 232, 124, 27, 18, 222, 207, 92, 251, 85, 227, 78, 0, 70, 196, 59, 0, 207, 194, 0, 252, 226, 209, 111, 144, 239, 111, 148, 54, 39, 28, 176, 248, 160, 58, 88, 113, 9, 76, 65, 57, 180, 96, 82, 224, 115, 52, 208, 161, 184, 86, 120, 211, 212, 168, 13, 52, 217, 124, 121, 189, 237, 163, 53, 72, 52, 157, 245, 160, 110, 16, 182, 219, 180, 152, 180, 136, 47, 23, 151, 198, 192, 20, 62, 220, 249, 107, 82, 0, 0, 0, 234, 22, 24, 202, 252, 104, 154, 198, 95, 7, 98, 110, 113, 104, 187, 197, 110, 105, 201, 123, 18, 61, 45, 233, 135, 20, 0, 151, 155, 45, 131, 75, 174, 9, 228, 53, 214, 32, 19, 131, 131, 87, 146, 156, 22, 16, 160, 0, 0, 5, 169, 31, 241, 155, 119, 242, 21, 168, 176, 225, 35, 130, 186, 60, 97, 189, 244, 57, 5, 158, 124, 200, 224, 156, 74, 33, 48, 12, 75, 235, 252, 25, 83, 61, 12, 178, 134, 75, 92, 124, 56, 71, 63, 232, 35, 142, 23, 11, 179, 154, 25, 17, 254, 160, 55, 0, 28, 144, 253, 91, 117, 102, 221, 190, 135, 231, 10, 70, 30, 23, 176, 0, 0, 1, 176, 4, 8, 133, 150, 0, 255, 79, 159, 83, 83, 77, 46, 180, 197, 95, 161, 141, 13, 44, 47, 253, 61, 176, 86, 148, 52, 201, 148, 194, 126, 246, 155, 165, 78, 181, 18, 73, 32, 28, 45, 70, 221, 101, 80, 78, 20, 6, 206, 130, 30, 219, 0, 30, 251, 237, 127, 232, 113, 255, 107, 248, 25, 147, 2, 185, 140, 224, 224, 189, 152, 101, 89, 28, 152, 47, 182, 88, 216, 198, 90, 3, 213, 0, 64, 150, 89, 96, 5, 18, 73, 32, 18, 105, 56, 170, 112, 129, 132, 77, 233, 15, 190, 8, 58, 109, 254, 217, 232, 164, 181, 91, 34, 227, 8, 27, 140, 83, 141, 186, 71, 175, 110, 91, 83, 37, 82, 15, 247, 58, 112, 134, 42, 42, 18, 3, 0, 8, 18, 196, 44, 5, 18, 73, 32, 25, 234, 135, 27, 145, 161, 76, 95, 163, 44, 124, 140, 151, 13, 189, 174, 93, 108, 80, 63, 112, 61, 88, 28, 46, 219, 213, 65, 40, 74, 243, 69, 108, 141, 37, 80, 21, 72, 191, 2, 50, 88, 122, 3, 0, 0, 10, 36, 146, 64, 54, 170, 52, 196, 80, 163, 79, 142, 148, 81, 36, 46, 131, 66, 255, 221, 26, 128, 73, 23, 103, 49, 192, 55, 30, 59, 219, 161, 166, 249, 122, 141, 88, 62, 36, 228, 107, 116, 158, 14, 252, 92, 103, 226, 0, 0, 20, 73, 36, 128, 113, 105, 27, 109, 199, 165, 26, 100, 240, 30, 8, 113, 124, 175, 175, 166, 144, 115, 74, 138, 80, 24, 32, 117, 28, 206, 194, 21, 85, 40, 218, 254, 177, 100, 37, 127, 63, 131, 208, 68, 250, 76, 169, 40, 0, 0, 0, 0, 0, 0, 0, 95, 208, 40, 5]).buffer
+ };
+ k = {
+ name: "ddplus-2.0-dash standard sample",
+ profile: 57,
+ Xo: 2,
+ sampleRate: 48E3,
+ duration: 1536,
+ Dw: new Uint8Array([11, 119, 0, 191, 52, 134, 255, 224, 4, 32, 24, 132, 33, 46, 136, 15, 236, 128, 165, 150, 32, 161, 69, 16, 65, 66, 33, 0, 160, 224, 136, 32, 48, 40, 56, 176, 233, 159, 62, 203, 176, 139, 218, 213, 221, 58, 124, 249, 83, 239, 245, 26, 179, 232, 106, 97, 174, 75, 74, 149, 104, 85, 223, 38, 74, 253, 242, 95, 253, 47, 117, 10, 116, 228, 206, 145, 61, 126, 153, 83, 169, 201, 146, 214, 124, 251, 202, 125, 62, 3, 184, 113, 105, 44, 145, 91, 107, 58, 206, 87, 7, 170, 74, 27, 187, 48, 217, 65, 241, 1, 161, 157, 113, 91, 21, 163, 111, 51, 104, 115, 118, 123, 44, 77, 110, 247, 112, 43, 8, 73, 76, 172, 73, 150, 207, 95, 153, 3, 182, 105, 124, 66, 2, 0, 118, 237, 94, 135, 88, 83, 124, 41, 205, 76, 76, 109, 131, 40, 166, 169, 150, 166, 233, 51, 26, 43, 143, 131, 162, 201, 227, 35, 146, 30, 46, 75, 41, 1, 28, 21, 124, 91, 11, 74, 112, 106, 170, 137, 88, 102, 81, 122, 90, 108, 154, 41, 64, 72, 81, 74, 40, 176, 29, 246, 45, 81, 141, 178, 47, 68, 210, 113, 129, 217, 48, 217, 176, 77, 157, 147, 211, 28, 106, 174, 210, 66, 110, 190, 228, 106, 249, 236, 107, 188, 90, 91, 41, 31, 191, 71, 149, 201, 40, 136, 209, 138, 100, 91, 53, 25, 18, 245, 27, 148, 208, 18, 20, 81, 70, 24, 7, 147, 116, 48, 233, 47, 145, 81, 32, 242, 74, 51, 50, 138, 85, 186, 6, 202, 227, 8, 169, 201, 206, 77, 68, 201, 80, 186, 57, 179, 90, 232, 234, 208, 230, 109, 96, 154, 4, 249, 38, 86, 153, 185, 81, 45, 38, 146, 243, 73, 117, 105, 140, 5, 34, 48, 227, 11, 10, 32, 130, 14, 49, 4, 40, 131, 127, 229, 199, 232, 95, 78, 126, 229, 243, 175, 254, 117, 124, 233, 83, 154, 239, 93, 63, 195, 190, 120, 247, 107, 232, 10, 68, 177, 11, 22, 24, 32, 66, 4, 99, 231, 207, 159, 7, 124, 241, 174, 215, 192, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 84, 40, 187, 227]).buffer
+ };
+ d.P = {
+ standard: {
+ "heaac-2-dash": a,
+ "heaac-2hq-dash": a,
+ "ddplus-5.1-dash": c,
+ "ddplus-5.1hq-dash": c,
+ "ddplus-2.0-dash": k
+ },
+ reset: {
+ "heaac-2-dash": b,
+ "heaac-2hq-dash": b
+ },
+ "heaac-2-dash": b,
+ "heaac-2-dash-alt": a,
+ "ddplus-5.1-dash": c,
+ "ddplus-2.0-dash": k
+ };
+ }, function (d, b, a) {
+ var c,
+ k;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ c = a(0);
+ d = a(82);
+ a = a(28);
+ k = d.a8;
+ a = (function (a) {
+ function b() {
+ return null !== a && a.apply(this, arguments) || this;
+ }
+ c.__extends(b, a);
+ b.prototype.parse = function () {
+ var a,
+ f,
+ d;
+ this.$f();
+ 1 <= this.version && (this.HJa = this.M.H2());
+ a = this.M.Mb();
+ this.gk = {};
+ for (var b = this.startOffset + this.length, c = 0; c < a; ++c) {
+ f = this.M.wz();
+ "uuid" === f && (f = this.M.H2());
+ d = this.M.tj();
+ this.gk[f] = {
+ offset: b,
+ size: d
+ };
+ b += d;
+ }
+ return !0;
+ };
+ b.Ye = k;
+ b.uc = !1;
+ return b;
+ })(a.cg);
+ b["default"] = a;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ c = a(0);
+ k = a(82);
+ d = a(28);
+ l = k.Z7;
+ d = (function (a) {
+ function b() {
+ return null !== a && a.apply(this, arguments) || this;
+ }
+ c.__extends(b, a);
+ b.prototype.parse = function () {
+ this.$f();
+ this.fileSize = this.M.tj();
+ this.S = this.M.tj();
+ this.duration = this.M.tj(!1, !0);
+ this.BRa = this.M.tj();
+ this.M.tj();
+ this.aBb = this.M.tj();
+ this.jAb = this.M.Mb();
+ this.CRa = this.M.tj();
+ this.VJa = this.M.Mb();
+ this.HJa = this.M.H2();
+ this.gk = {
+ moof: {
+ offset: this.BRa
+ },
+ sidx: {
+ offset: this.CRa,
+ size: this.VJa
+ }
+ };
+ this.gk[k.Owa] = {
+ offset: this.aBb,
+ size: this.jAb
+ };
+ this.M.offset - this.startOffset <= this.length - 24 && (this.$Ab = this.M.tj(), this.aAb = this.M.Mb(), this.ZAb = this.M.tj(), this.$zb = this.M.Mb(), this.gk[k.nU] = {
+ offset: this.$Ab,
+ size: this.aAb
+ }, this.gk[k.mU] = {
+ offset: this.ZAb,
+ size: this.$zb
+ });
+ return !0;
+ };
+ b.Ye = l;
+ b.uc = !1;
+ return b;
+ })(d.cg);
+ b["default"] = d;
+ }, function (d, b, a) {
+ var c;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ c = a(0);
+ d = (function (a) {
+ function b() {
+ var b;
+ b = null !== a && a.apply(this, arguments) || this;
+ b.CZ = 1536;
+ return b;
+ }
+ c.__extends(b, a);
+ b.uc = !0;
+ return b;
+ })(a(169)["default"]);
+ b["default"] = d;
+ a = (function (a) {
+ function b() {
+ return null !== a && a.apply(this, arguments) || this;
+ }
+ c.__extends(b, a);
+ b.Ye = "ac-3";
+ return b;
+ })(d);
+ b.LZa = a;
+ d = (function (a) {
+ function b() {
+ return null !== a && a.apply(this, arguments) || this;
+ }
+ c.__extends(b, a);
+ b.Ye = "ec-3";
+ return b;
+ })(d);
+ b.W1a = d;
+ }, function (d) {
+ var b;
+ b = (function () {
+ var a;
+ a = new Uint32Array([0, 0]);
+ a.set(new Uint32Array([16843009]), 1);
+ return 0 !== a[0];
+ })() ? function (a, b, d) {
+ new Uint8Array(a.buffer, a.byteOffset, a.byteLength).set(new Uint8Array(b.buffer, b.byteOffset, b.byteLength), d * a.byteLength / a.length);
+ }
+ : function (a, b, d) {
+ a.set(b, d);
+ };
+ d.P = {
+ from: function (a, b, d, l) {
+ a = new a(b.length);
+ for (var c = "function" === typeof d, h = 0; h < b.length; ++h) {
+ a[h] = c ? d.call(l, b[h], h, b) : b[h];
+ }
+ return a;
+ },
+ set: b
+ };
+ }, function (d, b, a) {
+ var c,
+ k,
+ l;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.era = void 0;
+ c = a(898);
+ k = a(27);
+ a(5);
+ l = a(73);
+ d = (function () {
+ function a(a, b, c) {
+ this.K = b;
+ this.u = c;
+ this.Yg = a.track;
+ this.hbb = a.ug;
+ this.Zv = a.Zv;
+ this.C9a = -1 === this.profile.indexOf("none");
+ this.FF = this.Fa = void 0;
+ b = a.Ps;
+ this.Ps = void 0 === b ? !0 : b;
+ this.CY = a.CY;
+ this.CF = void 0;
+ this.OCa = this.Gf = 0;
+ this.url = this.MD = this.Ac = this.Ip = this.Mja = this.location = this.Ia = this.qb = void 0;
+ this.Ky = !1;
+ this.hja = this.se = void 0;
+ a = this.K && "object" === typeof this.K.wTa && this.K.wTa[this.profile];
+ "object" === typeof a && (a = a[this.R]) && (this.WF = new k.fa(a.ticks, a.timescale));
+ }
+ Object.defineProperties(a.prototype, {
+ ge: {
+ get: function () {
+ return !!this.Fa;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ O: {
+ get: function () {
+ return this.Yg.O;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ ma: {
+ get: function () {
+ return this.O.ma;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ G: {
+ get: function () {
+ return this.Yg.G;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ L: {
+ get: function () {
+ return this.Yg.L;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ Wa: {
+ get: function () {
+ return this.Yg.Wa;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ S: {
+ get: function () {
+ return this.Yg.S;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ zI: {
+ get: function () {
+ return this.Yg.zI;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ cb: {
+ get: function () {
+ return this.Yg.cb;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ track: {
+ get: function () {
+ return this.Yg;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ ug: {
+ get: function () {
+ return this.hbb;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ wa: {
+ get: function () {
+ return this.Zv.downloadable_id;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ id: {
+ get: function () {
+ return this.wa;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ Nv: {
+ get: function () {
+ return this.C9a;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ R: {
+ get: function () {
+ return this.Zv.bitrate;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ Bb: {
+ get: function () {
+ return this.Zv.vmaf || void 0;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ SGb: {
+ get: function () {
+ return this.Zv.res_w || void 0;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ vna: {
+ get: function () {
+ return this.Zv.res_h || void 0;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ profile: {
+ get: function () {
+ return this.Zv.content_profile;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ hg: {
+ get: function () {
+ return this.profile;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ Dt: {
+ get: function () {
+ return this.Zv.sidx;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ Ni: {
+ get: function () {
+ return this.WF;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ $: {
+ get: function () {
+ return this.Fa;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ W0: {
+ get: function () {
+ return this.Fa && this.Fa.W0;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ lga: {
+ get: function () {
+ return this.Yg.lga;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ kga: {
+ get: function () {
+ return this.Yg.kga;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ T: {
+ get: function () {
+ return 0;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ Fs: {
+ get: function () {
+ return void 0 !== this.CF ? this.CF : this.aja();
+ },
+ set: function (a) {
+ this.CF = a;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ Pq: {
+ get: function () {
+ return this.Ps && !this.Ky;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ Ii: {
+ get: function () {
+ return this.FF;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ a.prototype.nj = function () {
+ return this.O.nj(this.L, this.wa);
+ };
+ a.prototype.$Z = function () {
+ var a;
+ a = this.nj();
+ return a && a.stream.$;
+ };
+ a.prototype.gE = function () {
+ return this.O.gE(this);
+ };
+ a.prototype.zla = function () {
+ this.track.zla();
+ };
+ a.prototype.O1 = function (a, b, m, f, d, k, l) {
+ f && void 0 !== f.jk && (this.track.ge || void 0 !== f.Rd && f.Rd.length) && void 0 !== f.offset && void 0 !== f.sizes && f.sizes.length ? (this.K.Qo && this.Ni && 0 === f.jk && (f.jk += this.Ni.ef(f.S).Ab), this.FF = a, this.ge || (this.track.O1(this, b, m, f, k), this.Fa = new c.aAa(this.track.Wl, f, d, k, l, this.G), this.track.mBb(this))) : f ? this.u.error("AseStream.onHeaderReceived: fragmentsData was missing data:" + (void 0 !== f.jk) + "," + this.track.ge + "," + this.track.Yea + "," + (void 0 !== f.Rd) + "," + !(!f.Rd || !f.Rd.length) + "," + (void 0 !== f.offset) + "," + (void 0 !== f.sizes) + "," + !(!f.sizes || !f.sizes.length)) : this.u.error("AseStream.onHeaderReceived: fragmentsData was undefined.");
+ };
+ a.prototype.bY = function (a) {
+ this.ge || (this.track.uhb(a.track), this.Fa = a.$, this.FF = a.Ii);
+ };
+ a.prototype.Hi = function (a) {
+ return new l.Rh(this, this.$.get(a));
+ };
+ a.prototype.jLa = function (a) {
+ var b;
+ b = this.Hi(a.index);
+ a.Sa && (b.ik(a.Sa), b.CR(a.Hw));
+ return b;
+ };
+ a.prototype.zYa = function (a, b) {
+ this.Gf = a;
+ this.OCa = b;
+ };
+ a.prototype.zgb = function () {
+ this.Ia = this.qb = this.Ac = this.location = this.url = void 0;
+ };
+ a.prototype.toJSON = function () {
+ return {
+ movieId: this.G,
+ mediaType: this.L,
+ streamId: this.wa,
+ bitrate: this.R,
+ streamIndex: this.ug,
+ isAvailable: this.Ps,
+ fittable: this.Fs,
+ vmaf: this.Bb,
+ resolutionWidth: this.SGb,
+ resolutionHeight: this.vna
+ };
+ };
+ a.prototype.toString = function () {
+ return (0 === this.L ? "a" : "v") + ":" + this.wa + ":" + this.R;
+ };
+ a.prototype.aja = function () {
+ var a;
+ if (!this.ge)
+ return !0;
+ if (this.track.eia >= this.R)
+ return this.CF = !0;
+ if (this.track.uPa <= this.R)
+ return this.CF = !1;
+ a = this.Fa.aja(this.K.cQ, this.Gf, this.OCa);
+ if (a) {
+ if (!this.track.Yea || this.Nv)
+ this.track.eia = this.R;
+ } else
+ this.track.uPa = this.R;
+ return this.CF = a;
+ };
+ return a;
+ })();
+ b.era = d;
+ }, function (d, b, a) {
+ var k,
+ l,
+ r,
+ h;
+ function c(a) {
+ return function () {
+ for (var b = Array(this.length), c = 0; c < this.length; ++c) {
+ b[c] = a.call(this, c);
+ }
+ return b;
+ };
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.odb = b.NP = b.Z9 = b.AAa = void 0;
+ k = a(5);
+ d = a(4);
+ l = a(27);
+ r = new d.Console("FRAGMENTS", "media|asejs");
+ h = (function () {
+ function a(a, b) {
+ this.qc = a;
+ this.Gj = b;
+ }
+ Object.defineProperties(a.prototype, {
+ index: {
+ get: function () {
+ return this.Gj;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ Cl: {
+ get: function () {
+ return new l.fa(this.Qa, this.S);
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ Qa: {
+ get: function () {
+ return this.qc.KW + this.qc.Ux[this.Gj];
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ jb: {
+ get: function () {
+ return this.Qa + this.qc.Ho[this.Gj];
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ cp: {
+ get: function () {
+ return this.qc.Ho[this.Gj];
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ Wa: {
+ get: function () {
+ return this.qc.Wa;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ S: {
+ get: function () {
+ return this.qc.S;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ T: {
+ get: function () {
+ return Math.floor(1E3 * this.Qa / this.S);
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ oa: {
+ get: function () {
+ return Math.floor(1E3 * (this.Qa + this.cp) / this.S);
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ duration: {
+ get: function () {
+ return this.oa - this.T;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ a.prototype.toJSON = function () {
+ return {
+ startPts: 1E3 * this.Qa / this.Wa.S,
+ endPts: 1E3 * this.jb / this.Wa.S,
+ duration: 1E3 * this.cp / this.Wa.S,
+ index: this.index
+ };
+ };
+ return a;
+ })();
+ b.AAa = h;
+ a = (function () {
+ function a(a, b, c, h) {
+ this.L = a;
+ this.length = c.Rd.length;
+ this.jm = c.S;
+ this.Ho = c.Rd;
+ this.lX = h && h.WI;
+ this.DEa = h && h.nJ;
+ this.DF = b;
+ this.Spa = this.Tpa = this.MCa = void 0;
+ this.KW = c.jk;
+ this.Ux = new Uint32Array(this.length + 1);
+ if (this.length) {
+ for (b = a = 0; b < this.length; ++b) {
+ this.Ux[b] = a;
+ a += this.Ho[b];
+ }
+ this.Ux[b] = a;
+ this.G$ = Math.floor((this.oa - this.T) / this.length);
+ }
+ }
+ Object.defineProperties(a.prototype, {
+ jk: {
+ get: function () {
+ return this.DWa(0);
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ ofa: {
+ get: function () {
+ return this.DWa(this.length);
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ T: {
+ get: function () {
+ return this.hi(0);
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ oa: {
+ get: function () {
+ return this.hi(this.length);
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ Cs: {
+ get: function () {
+ return new l.fa(this.ofa, this.S);
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ oka: {
+ get: function () {
+ return this.MCa || this.a8a();
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ Wa: {
+ get: function () {
+ return this.DF;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ S: {
+ get: function () {
+ return this.jm;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ a.prototype.DWa = function (a) {
+ return this.KW + this.Ux[a];
+ };
+ a.prototype.hi = function (a) {
+ return Math.floor(1E3 * (this.KW + this.Ux[a]) / this.S);
+ };
+ a.prototype.pfa = function (a) {
+ return this.hi(a + 1);
+ };
+ a.prototype.Rd = function (a) {
+ return this.pfa(a) - this.hi(a);
+ };
+ a.prototype.get = function (a) {
+ return new h(this, a);
+ };
+ a.prototype.ym = function (a, b, c) {
+ if (0 === this.length || a < this.hi(0))
+ return -1;
+ a = Math.max(a, b || 0);
+ for (var f = 0, h = this.length - 1, m, d; h >= f; ) {
+ if ((m = f + (h - f >> 1), d = this.hi(m), a < d))
+ h = m - 1;
+ else if (a >= d + this.Rd(m))
+ f = m + 1;
+ else {
+ for (; b && m < this.length && this.hi(m) < b; ) {
+ ++m;
+ }
+ return m < this.length ? m : c ? this.length - 1 : -1;
+ }
+ }
+ return c ? this.length - 1 : -1;
+ };
+ a.prototype.lZ = function (a, b, c) {
+ a = this.ym(a, b, c);
+ return 0 <= a ? this.get(a) : void 0;
+ };
+ a.prototype.Sda = function (a, b) {
+ var c,
+ f;
+ c = Math.floor(b * this.S / 1E3);
+ b = Math.min(a + Math.ceil(b / this.G$), this.length);
+ f = this.Ux[b] - this.Ux[a];
+ if (f > c) {
+ for (; f >= c; ) {
+ --b;
+ f -= this.Ho[b];
+ }
+ return b - a + 1;
+ }
+ for (; f < c && b <= this.length; ) {
+ f += this.Ho[b];
+ ++b;
+ }
+ return b - a;
+ };
+ a.prototype.subarray = function (b, c) {
+ k.assert(void 0 === b || 0 <= b && b < this.length);
+ k.assert(void 0 === c || c > b && c <= this.length);
+ return new a(this.L, this.Wa, {
+ S: this.S,
+ jk: this.KW + this.Ux[b],
+ Rd: this.Ho.subarray(b, c)
+ }, this.lX && ({
+ WI: this.lX.subarray(b, c + 1),
+ nJ: this.DEa
+ }));
+ };
+ a.prototype.forEach = function (a) {
+ for (var b = 0; b < this.length; ++b) {
+ a(this.get(b), b, this);
+ }
+ };
+ a.prototype.map = function (a) {
+ for (var b = [], c = 0; c < this.length; ++c) {
+ b.push(a(this.get(c), c, this));
+ }
+ return b;
+ };
+ a.prototype.reduce = function (a, b) {
+ for (var c = 0; c < this.length; ++c) {
+ b = a(b, this.get(c), c, this);
+ }
+ return b;
+ };
+ a.prototype.toJSON = function () {
+ return {
+ length: this.length,
+ averageFragmentDuration: this.G$
+ };
+ };
+ a.prototype.dump = function () {
+ var b;
+ r.trace("TrackFragments: " + this.length + ", averageFragmentDuration: " + this.G$ + "ms");
+ for (var a = 0; a < this.length; ++a) {
+ b = this.get(a);
+ r.trace("TrackFragments: " + a + ": [" + b.T + "-" + b.oa + "]");
+ }
+ };
+ a.prototype.a8a = function () {
+ for (var a = 0, b = 0; b < this.length; b++) {
+ a = Math.max(this.Ho[b], a);
+ }
+ return this.MCa = a;
+ };
+ return a;
+ })();
+ b.Z9 = a;
+ b.NP = c;
+ a.prototype.CWa = c(a.prototype.hi);
+ b.odb = function (a) {
+ return "[" + Array(a.length).map(function (b, c) {
+ return a[c].toString();
+ }).join(",") + "]";
+ };
+ }, function (d) {
+ function b(a) {
+ this.Jaa = a;
+ this.mf = [];
+ this.No = !1;
+ this.nB = void 0;
+ this.zi = {};
+ }
+ b.prototype.iX = function (a) {
+ this.mf.length === this.Jaa && this.mf.shift();
+ Array.isArray(a) ? this.mf = this.mf.concat(a) : this.mf.push(a);
+ this.No = !0;
+ };
+ b.prototype.FH = function () {
+ return this.mf.length;
+ };
+ b.prototype.Wca = function () {
+ var a;
+ a = this.mf;
+ return 0 < a.length ? a.reduce(function (a, b) {
+ return a + b;
+ }, 0) / this.mf.length : void 0;
+ };
+ b.prototype.IX = function () {
+ var a,
+ b;
+ a = this.mf;
+ if (0 < a.length) {
+ b = this.Wca();
+ a = a.reduce(function (a, b) {
+ return a + b * b;
+ }, 0) / a.length;
+ return Math.sqrt(a - b * b);
+ }
+ };
+ b.prototype.oq = function (a) {
+ var b,
+ d,
+ l;
+ if (this.No || void 0 === this.nB)
+ (this.nB = this.mf.slice(0).sort(function (a, b) {
+ return a - b;
+ }), this.zi = {}, this.No = !1);
+ if (void 0 === this.zi[a]) {
+ b = this.nB;
+ d = Math.floor(a / 100 * (b.length - 1) + 1) - 1;
+ l = (a / 100 * (b.length - 1) + 1) % 1;
+ this.zi[a] = d === b.length - 1 ? b[d] : b[d] + l * (b[d + 1] - b[d]);
+ }
+ return this.zi[a];
+ };
+ d.P = b;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.SO = void 0;
+ c = a(909);
+ k = a(4);
+ b.SO = function () {
+ var a;
+ if (!l) {
+ a = new k.Console("ASEJS", "media|asejs");
+ l = new c.Hqa(a);
+ }
+ return l;
+ };
+ }, function (d, b, a) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ d = a(0);
+ d.__exportStar(a(956), b);
+ d.__exportStar(a(955), b);
+ d.__exportStar(a(954), b);
+ d.__exportStar(a(953), b);
+ d.__exportStar(a(952), b);
+ d.__exportStar(a(951), b);
+ d.__exportStar(a(950), b);
+ d.__exportStar(a(949), b);
+ d.__exportStar(a(948), b);
+ d.__exportStar(a(947), b);
+ d.__exportStar(a(946), b);
+ d.__exportStar(a(945), b);
+ d.__exportStar(a(941), b);
+ d.__exportStar(a(940), b);
+ d.__exportStar(a(939), b);
+ d.__exportStar(a(240), b);
+ d.__exportStar(a(938), b);
+ d.__exportStar(a(937), b);
+ d.__exportStar(a(936), b);
+ d.__exportStar(a(935), b);
+ d.__exportStar(a(934), b);
+ d.__exportStar(a(933), b);
+ d.__exportStar(a(932), b);
+ d.__exportStar(a(931), b);
+ d.__exportStar(a(930), b);
+ d.__exportStar(a(929), b);
+ d.__exportStar(a(928), b);
+ d.__exportStar(a(927), b);
+ d.__exportStar(a(926), b);
+ d.__exportStar(a(925), b);
+ d.__exportStar(a(924), b);
+ d.__exportStar(a(923), b);
+ d.__exportStar(a(922), b);
+ d.__exportStar(a(917), b);
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.C7 = void 0;
+ b.C7 = "ManifestEnricherSymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.D8 = b.E8 = void 0;
+ b.E8 = "PboLinksManagerSymbol";
+ b.D8 = "PboLinksManagerFactorySymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.G7 = void 0;
+ b.G7 = "ManifestTransformerSymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.H7 = void 0;
+ b.H7 = "ManifestVerifyErrorFactorySymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.e$ = void 0;
+ b.e$ = "TrickPlayFactorySymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.a$ = void 0;
+ b.a$ = "TrackStreamFactorySymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.f9 = void 0;
+ b.f9 = "PlayerTextTrackFactorySymbol";
+ }, function (d, b) {
+ function a(a, b) {
+ this.log = a;
+ this.h4 = b;
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.bL = void 0;
+ a.prototype.YXa = function (a, b) {
+ var c;
+ c = this;
+ if (!a)
+ return (this.log.warn("There are no media streams for " + b.type + " track - " + b.cb), []);
+ a = a.map(function (a) {
+ var h;
+ h = c.h4(b, b.type, a.Uea, a.R, a.Bb, a.size, c.rqb(a.xe), a.KN, a.Sob / a.Rob, a.Nv);
+ h.rJb(a.MGb, a.LGb, a.UCb, a.TCb);
+ h.HIb(a.fkb, a.gkb, a.ekb, a.dkb);
+ b.Hk && (h.Hk = b.Hk);
+ a.KN && (h.hg = a.KN);
+ return h;
+ });
+ a.sort(function (a, b) {
+ return a.R - b.R;
+ });
+ return a;
+ };
+ a.prototype.rqb = function (a) {
+ return a.reduce(function (a, b) {
+ a[b.qGa] = b.url;
+ return a;
+ }, {});
+ };
+ b.bL = a;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l;
+ c = a(243);
+ k = a(112);
+ b = a(51);
+ l = a(976);
+ a = b(function (a, b) {
+ return 1 === a ? k(b) : c(a, l(a, [], b));
+ });
+ d.P = a;
+ }, function (d) {
+ d.P = function (b, a) {
+ for (var c = 0, d = a.length, l = Array(d); c < d; ) {
+ l[c] = b(a[c]);
+ c += 1;
+ }
+ return l;
+ };
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r,
+ h;
+ b = a(112);
+ c = a(245);
+ k = a(979);
+ l = !({
+ toString: null
+ }).propertyIsEnumerable("toString");
+ r = ("constructor valueOf isPrototypeOf toString propertyIsEnumerable hasOwnProperty toLocaleString").split(" ");
+ h = (function () {
+ return arguments.propertyIsEnumerable("length");
+ })();
+ a = b("function" !== typeof Object.keys || h ? function (a) {
+ var b,
+ f,
+ d,
+ p;
+ if (Object(a) !== a)
+ return [];
+ d = [];
+ f = h && k(a);
+ for (b in a) {
+ !c(b, a) || f && "length" === b || (d[d.length] = b);
+ }
+ if (l)
+ for (f = r.length - 1; 0 <= f; ) {
+ b = r[f];
+ if (p = c(b, a)) {
+ a: {
+ for (p = 0; p < d.length; ) {
+ if (d[p] === b) {
+ p = !0;
+ break a;
+ }
+ p += 1;
+ }
+ p = !1;
+ }
+ p = !p;
+ }
+ p && (d[d.length] = b);
+ --f;
+ }
+ return d;
+ }
+ : function (a) {
+ return Object(a) !== a ? [] : Object.keys(a);
+ });
+ d.P = a;
+ }, function (d) {
+ d.P = {
+ Eb: function () {
+ return this.NS["@@transducer/init"]();
+ },
+ result: function (b) {
+ return this.NS["@@transducer/result"](b);
+ }
+ };
+ }, function (d) {
+ d.P = Array.isArray || (function (b) {
+ return null != b && 0 <= b.length && "[object Array]" === Object.prototype.toString.call(b);
+ });
+ }, function (d, b, a) {
+ var c,
+ k;
+ c = a(437);
+ k = a(986);
+ d.P = function (a, b, h) {
+ return function () {
+ var d,
+ m;
+ if (0 === arguments.length)
+ return h();
+ d = Array.prototype.slice.call(arguments, 0);
+ m = d.pop();
+ if (!c(m)) {
+ for (var f = 0; f < a.length; ) {
+ if ("function" === typeof m[a[f]])
+ return m[a[f]].apply(m, d);
+ f += 1;
+ }
+ if (k(m))
+ return b.apply(null, d)(m);
+ }
+ return h.apply(this, arguments);
+ };
+ };
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r,
+ h,
+ p;
+ b = a(51);
+ c = a(438);
+ k = a(985);
+ l = a(440);
+ r = a(244);
+ h = a(980);
+ p = a(435);
+ a = b(c(["filter"], h, function (a, b) {
+ return l(b) ? r(function (c, f) {
+ a(b[f]) && (c[f] = b[f]);
+ return c;
+ }, {}, p(b)) : k(a, b);
+ }));
+ d.P = a;
+ }, function (d) {
+ d.P = function (b) {
+ return "[object Object]" === Object.prototype.toString.call(b);
+ };
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.E7 = void 0;
+ b.E7 = "ManifestProviderConfigSymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.F7 = void 0;
+ b.F7 = "ManifestParserFactorySymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.m5 = void 0;
+ b.m5 = "CDMAttestedDescriptorProvider";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.g5 = void 0;
+ b.g5 = "BookmarkConfigParserSymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.h5 = void 0;
+ b.h5 = "BookmarkConfigSymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.N5 = void 0;
+ b.N5 = "DiskStorageRegistrySymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Q7 = void 0;
+ b.Q7 = "MemoryStorageSymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.m7 = void 0;
+ b.m7 = "LocalStorageSymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.u5 = void 0;
+ b.u5 = "CorruptedStorageValidatorConfigSymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.ZU = void 0;
+ b.ZU = "Storage";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.ZK = void 0;
+ b.ZK = "IndexedDBConfigSymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.m9 = void 0;
+ b.m9 = "PresentationAPISymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.J7 = void 0;
+ b.J7 = "MediaCapabilitiesLogHelperSymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.K7 = void 0;
+ b.K7 = "MediaCapabilitiesSymbol";
+ }, function (d, b, a) {
+ var c,
+ k,
+ l;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.qT = void 0;
+ c = a(30);
+ k = a(457);
+ l = a(59);
+ a(136);
+ new(a(99).qx)();
+ d = (function () {
+ function a(a, b) {
+ var h;
+ h = k.wK.call(this, a, b, c.Lr.Audio) || this;
+ h.config = a;
+ h.Hka = b;
+ h.type = c.Ar.Uw;
+ return h;
+ }
+ N(a, k.wK);
+ a.prototype.SR = function () {
+ return Promise.resolve(!1);
+ };
+ a.prototype.UB = function () {
+ var a;
+ a = {};
+ a[l.xg.QK] = "mp4a.40.2";
+ a[l.xg.F2a] = "mp4a.40.2";
+ a[l.xg.z6] = "mp4a.40.5";
+ a[l.xg.RK] = "mp4a.40.2";
+ a[l.xg.oV] = "mp4a.40.42";
+ this.config().ffa && (a[l.xg.xK] = "ec-3");
+ this.config().efa && (a[l.xg.y5] = "ec-3");
+ this.config().qO && (a[l.xg.yK] = "ec-3");
+ return a;
+ };
+ a.prototype.TLa = function () {
+ return this.config().bN;
+ };
+ a.XJ = "audio/mp4;codecs={0};";
+ return a;
+ })();
+ b.qT = d;
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.sh = void 0;
+ b.sh = (function () {
+ function a() {}
+ a.jua = /^hevc-main/;
+ a.iua = /^hevc-hdr-|hevc-dv/;
+ a.$t = /^hevc-hdr-/;
+ a.Xt = /^hevc-dv/;
+ a.CE = /-h264mpl/;
+ a.KK = /-h264mpl30/;
+ a.DE = /-h264mpl31/;
+ a.pE = /-h264hpl/;
+ a.ux = /^vp9-/;
+ a.Ti = /^av1-/;
+ a.OS = /^heaac-2-/;
+ a.dSb = /^heaac-2hq-dash/;
+ a.oV = /^xheaac-dash/;
+ a.N0a = /ddplus-2/;
+ a.O0a = /ddplus-5/;
+ a.P0a = /ddplus-atmos/;
+ return a;
+ })();
+ }, function (d, b, a) {
+ var k,
+ l,
+ r;
+ function c(a, b, c) {
+ this.config = a;
+ this.Hka = b;
+ this.L = c;
+ this.Jka = {};
+ this.Jka[k.Lr.Audio] = "audio";
+ this.Jka[k.Lr.UAa] = "video";
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.wK = void 0;
+ k = a(30);
+ d = a(99);
+ l = a(456);
+ r = new d.qx().format;
+ c.prototype.jMa = function () {
+ return this.rlb(this.TLa());
+ };
+ c.prototype.av = function (a) {
+ return this.Hka.isTypeSupported(a);
+ };
+ c.prototype.VKa = function () {
+ return [l.sh.OS, l.sh.CE];
+ };
+ c.prototype.Jia = function () {
+ this.Rl = [];
+ this.fr = [];
+ this.config().ZRa && this.fr.push(l.sh.jua);
+ this.config().YRa && this.fr.push(l.sh.iua);
+ this.config().W1 && this.fr.push(l.sh.pE);
+ this.config().$Ra && this.fr.push(l.sh.ux);
+ this.config().XRa && this.fr.push(l.sh.Ti);
+ this.fr = this.fr.concat(this.VKa());
+ !this.config().Tmb && this.Rl.push(l.sh.oV);
+ !this.config().ffa && this.Rl.push(l.sh.N0a);
+ !this.config().efa && this.Rl.push(l.sh.O0a);
+ !this.config().qO && this.Rl.push(l.sh.P0a);
+ !this.config().Lmb && this.Rl.push(/prk$/);
+ this.config().ZRa || this.config().Bmb || this.Rl.push(l.sh.jua);
+ this.config().YRa || this.config().hfa || this.Rl.push(l.sh.iua);
+ this.config().W1 || this.config().dfa || this.Rl.push(l.sh.pE);
+ this.config().$Ra || this.config().Rmb || this.Rl.push(l.sh.ux);
+ this.config().XRa || this.config().wmb || this.Rl.push(l.sh.Ti);
+ };
+ c.prototype.jZ = function (a) {
+ var b;
+ b = this;
+ a = a.filter(function (a) {
+ for (var c = U(b.fr), h = c.next(); !h.done; h = c.next()) {
+ if (h.value.test(a))
+ return !0;
+ }
+ c = U(b.Rl);
+ for (h = c.next(); !h.done; h = c.next()) {
+ if (h.value.test(a))
+ return !1;
+ }
+ a = b.Fma[a];
+ h = "";
+ if (a)
+ return (Array.isArray(a) && (h = 1 < a.length ? " " + a[1] : "", a = a[0]), a = r("{0}/mp4;codecs={1};{2}", b.Jka[b.L], a, h), b.av(a));
+ });
+ return Promise.resolve(a);
+ };
+ c.prototype.rlb = function (a) {
+ var b;
+ b = {};
+ this.Jia();
+ return this.jZ(a).then(function (a) {
+ return a.map(function (a) {
+ return b[a] = 1;
+ });
+ }).then(function () {
+ return Object.keys(b);
+ });
+ };
+ wa.Object.defineProperties(c.prototype, {
+ Fma: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ this.qDa || (this.qDa = this.UB());
+ return this.qDa;
+ }
+ }
+ });
+ b.wK = c;
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.X4 = void 0;
+ b.X4 = {
+ "playready-oggvorbis-2-piff": "OGG_VORBIS",
+ "playready-oggvorbis-2-dash": "OGG_VORBIS",
+ "heaac-2-piff": "AAC",
+ "heaac-2-dash": "AAC",
+ "heaac-2hq-dash": "AAC",
+ "heaac-5.1-dash": "AAC",
+ "playready-heaac-2-dash": "AAC",
+ "heaac-2-elem": "AAC",
+ "heaac-2-m2ts": "AAC",
+ "xheaac-dash": "XHEAAC",
+ "ddplus-5.1-piff": "DDPLUS",
+ "ddplus-2.0-dash": "DDPLUS",
+ "ddplus-5.1-dash": "DDPLUS",
+ "ddplus-atmos-dash": "DDPLUS",
+ "dd-5.1-elem": "DD",
+ "dd-5.1-m2ts": "DD"
+ };
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.o5 = void 0;
+ b.o5 = "CapabilityDetectorFactorySymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.k6 = void 0;
+ b.k6 = "ExtraPlatformInfoProviderSymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.r5 = void 0;
+ b.r5 = "CdnThroughputTracker";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.W9 = void 0;
+ b.W9 = "ThroughputTrackerConfigSymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.B8 = void 0;
+ b.B8 = "PboGenerateScreenshotsCommandSymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.M5 = void 0;
+ b.M5 = "DiagnosticsFactorySymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.c$ = void 0;
+ b.c$ = "TransitionLoggerSymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.p$ = void 0;
+ b.p$ = "VideoPlayerFactorySymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.a9 = void 0;
+ b.a9 = "PlaybackFactorySymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.G9 = void 0;
+ b.G9 = "SegmentConfigFactorySymbol";
+ }, function (d, b, a) {
+ var k;
+ function c(a, b, c, d, m, f) {
+ this.level = a;
+ this.rm = b;
+ this.timestamp = c;
+ this.message = d;
+ this.Hd = m;
+ this.index = void 0 === f ? 0 : f;
+ this.X3a = {
+ 0: "F",
+ 1: "E",
+ 2: "W",
+ 3: "I",
+ 4: "T",
+ 5: "D"
+ };
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.q7 = void 0;
+ k = a(3);
+ c.prototype.e4 = function (a, b) {
+ var c;
+ c = "" + this.message;
+ this.Hd.forEach(function (h) {
+ c += h.eE(a, b);
+ });
+ return (this.timestamp.ca(k.ia) / 1E3).toFixed(3) + "|" + this.index + "|" + (this.X3a[this.level] || this.level) + "|" + this.rm + "| " + c;
+ };
+ b.q7 = c;
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.E5 = void 0;
+ b.E5 = "DebouncerFactorySymbol";
+ }, function (d, b, a) {
+ var c,
+ k,
+ l;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.AE = b.Ota = void 0;
+ c = a(0);
+ k = a(481);
+ l = a(1);
+ d = (function () {
+ var b;
+ function a() {}
+ a.prototype.create = function () {
+ return new k.Xi();
+ };
+ b = a;
+ return b = c.__decorate([l.N()], b);
+ })();
+ b.Ota = d;
+ b.AE = "EventSourceFactorySymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.AE = void 0;
+ b.AE = "EventSourceFactorySymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.gU = void 0;
+ b.gU = "MediaElementHelpersSymbol";
+ }, function (d, b, a) {
+ var k,
+ l,
+ r,
+ h;
+ function c(a, b, c, h, d, k, g) {
+ this.debug = a;
+ this.config = b;
+ this.platform = c;
+ this.b1 = h;
+ this.debug.assert(d && d != l.J.nl, "There should always be a specific error code");
+ this.errorCode = d || l.J.nl;
+ k && r.df(k) ? (this.ja = k.ja || k.Nb, this.Fe = k.Fe || k.xd, this.ufa = k.ufa || k.wm, this.ab = k.ab || k.py, this.aC = k.Vn, this.mH = k.mH || k.LQa || k.ct, this.wO = k.wO || k.data, k.VP && (this.VP = k.VP), this.kj = k.kj, this.method = k.method, this.w1 = k.w1, this.alert = k.alert, this.Yba = k.Yba, this.debug.assert(!this.kj || this.kj == this.Fe)) : (this.ja = k, this.Fe = g);
+ this.stack = [this.errorCode];
+ this.ja ? this.stack.push(this.ja) : this.Fe && this.stack.push(l.I.nl);
+ this.Fe && this.stack.push(this.Fe);
+ this.DY = this.platform.iC + this.stack.join("-");
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.tya = void 0;
+ k = a(10);
+ l = a(2);
+ r = a(23);
+ h = a(15);
+ a(22);
+ c.prototype.toString = function () {
+ var a;
+ a = "[PlayerError #" + this.DY + "]";
+ this.ab && (a += " " + this.ab);
+ this.aC && (a += " (CustomMessage: " + this.aC + ")");
+ return a;
+ };
+ c.prototype.zpa = function () {
+ var a,
+ b;
+ this.aC && (a = ["streaming_error"]);
+ a || this.b1.Eq() !== k.uT || ("80080017" == this.Fe && (a = ["admin_mode_not_supported", "platform_error"]), "8004CD12" === this.Fe && (a = ["pause_timeout"]));
+ a || this.b1.Eq() !== k.U5 || this.errorCode !== l.J.ota && this.errorCode !== l.J.vT || (a = ["no_cdm", "platform_error", "plugin_error"]);
+ this.Uvb() && (a = ["received_soad"]);
+ b = this.Spb();
+ b && (a = [b], this.aC = void 0);
+ if (!a)
+ switch (this.errorCode) {
+ case l.J.yU:
+ case l.J.YT:
+ case l.J.c_a:
+ case l.J.qxa:
+ a = ["pause_timeout"];
+ break;
+ case l.J.Wua:
+ case l.J.Xua:
+ a = this.ja ? ["platform_error"] : ["multiple_tabs"];
+ break;
+ case l.J.b4a:
+ case l.J.K6a:
+ case l.J.z3a:
+ case l.J.y3a:
+ case l.J.B3a:
+ a = ["should_signout_and_signin"];
+ break;
+ case l.J.T6:
+ case l.J.txa:
+ case l.J.sxa:
+ case l.J.s8:
+ case l.J.oxa:
+ a = ["platform_error", "plugin_error"];
+ break;
+ case l.J.q8:
+ a = ["no_cdm", "platform_error", "plugin_error"];
+ break;
+ case l.J.jL:
+ a = this.ja ? ["platform_error", "plugin_error"] : ["no_cdm", "platform_error", "plugin_error"];
+ break;
+ case l.J.yE:
+ case l.J.lx:
+ case l.J.r8:
+ switch (this.Fe) {
+ case "FFFFD000":
+ a = ["device_needs_service", "platform_error"];
+ break;
+ case "48444350":
+ a = ["unsupported_output", "platform_error"];
+ break;
+ case "00000024":
+ a = ["private_mode"];
+ }
+ break;
+ case l.J.rxa:
+ case l.J.p8:
+ a = ["unsupported_output"];
+ }
+ !a && l.Mta(this.ja) && (a = this.ja == l.I.VK ? ["geo"] : ["internet_connection_problem"]);
+ a || this.errorCode !== l.J.vT || this.ja !== l.I.Df || "S" !== this.platform.iC || (a = ["private_mode"]);
+ if (!a)
+ switch (this.UWa(this.ja)) {
+ case l.I.r$:
+ a = ["should_upgrade"];
+ break;
+ case l.I.kxa:
+ a = ["should_reset_device"];
+ break;
+ case l.I.jxa:
+ a = ["should_reload_device"];
+ break;
+ case l.I.ixa:
+ a = ["should_exit_device"];
+ break;
+ case l.I.L4a:
+ case l.I.awa:
+ a = ["should_signout_and_signin"];
+ break;
+ case l.I.M4a:
+ a = ["internet_connection_problem"];
+ break;
+ case l.I.Bsa:
+ a = ["platform_error", "plugin_error"];
+ break;
+ case l.I.A5:
+ case l.I.Bua:
+ case l.I.Cua:
+ a = ["private_mode"];
+ }
+ a = a || [];
+ a.push(this.platform.iC + this.errorCode);
+ if (this.ja)
+ switch (this.UWa(this.ja)) {
+ case l.I.lxa:
+ a.push("incorrect_pin");
+ break;
+ default:
+ a.push("" + this.ja);
+ }
+ a = {
+ display: {
+ code: this.DY,
+ text: this.aC
+ },
+ messageIdList: a,
+ alert: this.alert,
+ alertTag: this.Yba
+ };
+ if (this.mH || this.LQa)
+ a.mslErrorCode = this.mH || this.LQa || this.ct;
+ return a;
+ };
+ c.prototype.UWa = function (a) {
+ var b;
+ b = parseInt(a, 10);
+ return isNaN(b) ? a : b;
+ };
+ c.prototype.Uvb = function () {
+ var a;
+ a = h.na(this.Fe) ? this.Fe.toString() : h.Td(this.Fe) ? this.Fe : "";
+ return this.mH === l.kU.i$ && (a.endsWith("2018") || a.endsWith("2020"));
+ };
+ c.prototype.Spb = function () {
+ if (this.errorCode === l.J.cx && (this.ja === l.I.l8 || this.ja === l.I.hxa))
+ return this.Tpb(this.ja === l.I.l8);
+ };
+ c.prototype.Tpb = function (a) {
+ var b,
+ c,
+ h;
+ b = (this.config().browserInfo || ({})).os || ({});
+ c = b.name;
+ h = (b.version || "").split(".");
+ b = parseInt(h && h[0]);
+ h = parseInt(h && h[1]);
+ switch (c) {
+ case "Windows":
+ return 6 > b || 6 === b && 1 > h ? a ? "cdm_not_supported_warning_switch_windows" : "cdm_not_supported_switch_windows" : a ? "cdm_not_supported_warning_update" : "cdm_not_supported_update";
+ case "Mac OS X":
+ return 10 > b || 10 === b && 10 > h ? a ? "cdm_not_supported_warning_switch_mac" : "cdm_not_supported_switch_mac" : a ? "cdm_not_supported_warning_update" : "cdm_not_supported_update";
+ default:
+ return a ? "cdm_not_supported_warning_other" : "cdm_not_supported_other";
+ }
+ };
+ b.tya = c;
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.j$ = void 0;
+ b.j$ = "UrlFactorySymbol";
+ }, function (d, b, a) {
+ var c,
+ k;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.o9 = void 0;
+ c = a(0);
+ k = a(1);
+ d = (function () {
+ var b;
+ function a(a) {
+ this.F9a = void 0 === a ? !1 : a;
+ this.ce = {
+ 0: []
+ };
+ }
+ a.prototype.add = function (a, b) {
+ var c;
+ b = void 0 === b ? 0 : b;
+ c = this.ce[b];
+ c ? this.F9a && -1 !== c.indexOf(a) || c.push(a) : this.ce[b] = [a];
+ };
+ a.prototype.remove = function (a, b) {
+ this.Du(a, void 0 === b ? 0 : b);
+ };
+ a.prototype.removeAll = function (a) {
+ this.Du(a);
+ };
+ a.prototype.Aq = function () {
+ var a;
+ a = this;
+ return Object.keys(this.ce).sort().reduce(function (b, c) {
+ return b.concat(a.ce[c]);
+ }, []);
+ };
+ a.prototype.Du = function (a, b) {
+ var c;
+ c = this;
+ Object.keys(this.ce).forEach(function (f) {
+ var h;
+ if (void 0 === b || b === parseInt(f)) {
+ f = c.ce[f];
+ -1 < (h = f.indexOf(a)) && f.splice(h, 1);
+ }
+ });
+ };
+ b = a;
+ return b = c.__decorate([k.N()], b);
+ })();
+ b.o9 = d;
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.W7 = b.J4a = void 0;
+ b.J4a = function () {};
+ b.W7 = "MseConfigSymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.H5 = void 0;
+ b.H5 = "DecoderTimeoutPathologistSymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.x5 = void 0;
+ b.x5 = "CsvEncoderSymbol";
+ }, function (d, b, a) {
+ (function (c) {
+ var Y,
+ pa,
+ X,
+ O,
+ na,
+ ha;
+ function d(a, c) {
+ var f;
+ f = {
+ Wna: [],
+ mk: r
+ };
+ 3 <= arguments.length && (f.depth = arguments[2]);
+ 4 <= arguments.length && (f.HG = arguments[3]);
+ C(c) ? f.Boa = c : c && b.T8a(f, c);
+ G(f.Boa) && (f.Boa = !1);
+ G(f.depth) && (f.depth = 2);
+ G(f.HG) && (f.HG = !1);
+ G(f.MHa) && (f.MHa = !0);
+ f.HG && (f.mk = l);
+ return p(f, a, f.depth);
+ }
+ function l(a, b) {
+ return (b = d.QKb[b]) ? "\u001b[" + d.HG[b][0] + "m" + a + "\u001b[" + d.HG[b][1] + "m" : a;
+ }
+ function r(a) {
+ return a;
+ }
+ function h(a) {
+ var b;
+ b = {};
+ a.forEach(function (a) {
+ b[a] = !0;
+ });
+ return b;
+ }
+ function p(a, c, d) {
+ var k,
+ l,
+ r,
+ g,
+ C;
+ if (a.MHa && c && B(c.uP) && c.uP !== b.uP && (!c.constructor || c.constructor.prototype !== c)) {
+ k = c.uP(d, a);
+ H(k) || (k = p(a, k, d));
+ return k;
+ }
+ if (k = m(a, c))
+ return k;
+ l = Object.keys(c);
+ r = h(l);
+ a.Boa && (l = Object.getOwnPropertyNames(c));
+ if (Z(c) && (0 <= l.indexOf("message") || 0 <= l.indexOf("description")))
+ return f(c);
+ if (0 === l.length) {
+ if (B(c))
+ return a.mk("[Function" + (c.name ? ": " + c.name : "") + "]", "special");
+ if (n(c))
+ return a.mk(RegExp.prototype.toString.call(c), "regexp");
+ if (aa(c))
+ return a.mk(Date.prototype.toString.call(c), "date");
+ if (Z(c))
+ return f(c);
+ }
+ k = "";
+ g = !1;
+ C = ["{", "}"];
+ K(c) && (g = !0, C = ["[", "]"]);
+ B(c) && (k = " [Function" + (c.name ? ": " + c.name : "") + "]");
+ n(c) && (k = " " + RegExp.prototype.toString.call(c));
+ aa(c) && (k = " " + Date.prototype.toUTCString.call(c));
+ Z(c) && (k = " " + f(c));
+ if (0 === l.length && (!g || 0 == c.length))
+ return C[0] + k + C[1];
+ if (0 > d)
+ return n(c) ? a.mk(RegExp.prototype.toString.call(c), "regexp") : a.mk("[Object]", "special");
+ a.Wna.push(c);
+ l = g ? u(a, c, d, r, l) : l.map(function (b) {
+ return w(a, c, d, r, b, g);
+ });
+ a.Wna.pop();
+ return A(l, k, C);
+ }
+ function m(a, b) {
+ if (G(b))
+ return a.mk("undefined", "undefined");
+ if (H(b))
+ return (b = "'" + JSON.stringify(b).replace(/^"|"$/g, "").replace(/'/g, "\\'").replace(/\\"/g, '"') + "'", a.mk(b, "string"));
+ if (M(b))
+ return a.mk("" + b, "number");
+ if (C(b))
+ return a.mk("" + b, "boolean");
+ if (null === b)
+ return a.mk("null", "null");
+ }
+ function f(a) {
+ return "[" + Error.prototype.toString.call(a) + "]";
+ }
+ function u(a, b, c, f, h) {
+ for (var m = [], d = 0, k = b.length; d < k; ++d) {
+ Object.prototype.hasOwnProperty.call(b, String(d)) ? m.push(w(a, b, c, f, String(d), !0)) : m.push("");
+ }
+ h.forEach(function (h) {
+ h.match(/^\d+$/) || m.push(w(a, b, c, f, h, !0));
+ });
+ return m;
+ }
+ function w(a, b, c, f, h, m) {
+ var d,
+ k;
+ b = Object.getOwnPropertyDescriptor(b, h) || ({
+ value: b[h]
+ });
+ b.get ? k = b.set ? a.mk("[Getter/Setter]", "special") : a.mk("[Getter]", "special") : b.set && (k = a.mk("[Setter]", "special"));
+ Object.prototype.hasOwnProperty.call(f, h) || (d = "[" + h + "]");
+ k || (0 > a.Wna.indexOf(b.value) ? (k = null === c ? p(a, b.value, null) : p(a, b.value, c - 1), -1 < k.indexOf("\n") && (k = m ? k.split("\n").map(function (a) {
+ return " " + a;
+ }).join("\n").substr(2) : "\n" + k.split("\n").map(function (a) {
+ return " " + a;
+ }).join("\n"))) : k = a.mk("[Circular]", "special"));
+ if (G(d)) {
+ if (m && h.match(/^\d+$/))
+ return k;
+ d = JSON.stringify("" + h);
+ d.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/) ? (d = d.substr(1, d.length - 2), d = a.mk(d, "name")) : (d = d.replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'"), d = a.mk(d, "string"));
+ }
+ return d + ": " + k;
+ }
+ function A(a, b, c) {
+ var f;
+ f = 0;
+ return 60 < a.reduce(function (a, b) {
+ f++;
+ 0 <= b.indexOf("\n") && f++;
+ return a + b.replace(/\u001b\[\d\d?m/g, "").length + 1;
+ }, 0) ? c[0] + ("" === b ? "" : b + "\n ") + " " + a.join(",\n ") + " " + c[1] : c[0] + b + " " + a.join(", ") + " " + c[1];
+ }
+ function K(a) {
+ return Array.isArray(a);
+ }
+ function C(a) {
+ return "boolean" === typeof a;
+ }
+ function M(a) {
+ return "number" === typeof a;
+ }
+ function H(a) {
+ return "string" === typeof a;
+ }
+ function G(a) {
+ return void 0 === a;
+ }
+ function n(a) {
+ return q(a) && "[object RegExp]" === Object.prototype.toString.call(a);
+ }
+ function q(a) {
+ return "object" === typeof a && null !== a;
+ }
+ function aa(a) {
+ return q(a) && "[object Date]" === Object.prototype.toString.call(a);
+ }
+ function Z(a) {
+ return q(a) && ("[object Error]" === Object.prototype.toString.call(a) || a instanceof Error);
+ }
+ function B(a) {
+ return "function" === typeof a;
+ }
+ function t(a) {
+ return 10 > a ? "0" + a.toString(10) : a.toString(10);
+ }
+ function fa() {
+ var a,
+ b;
+ a = new Date();
+ b = [t(a.getHours()), t(a.getMinutes()), t(a.getSeconds())].join(":");
+ return [a.getDate(), na[a.getMonth()], b].join(" ");
+ }
+ function ia(a, b) {
+ var c;
+ if (!a) {
+ c = Error("Promise was rejected with a falsy value");
+ c.reason = a;
+ a = c;
+ }
+ return b(a);
+ }
+ Y = Object.GYb || (function (a) {
+ for (var b = Object.keys(a), c = {}, f = 0; f < b.length; f++) {
+ c[b[f]] = Object.getOwnPropertyDescriptor(a, b[f]);
+ }
+ return c;
+ });
+ pa = /%[sdj%]/g;
+ b.format = function (a) {
+ if (!H(a)) {
+ for (var b = [], c = 0; c < arguments.length; c++) {
+ b.push(d(arguments[c]));
+ }
+ return b.join(" ");
+ }
+ for (var c = 1, f = arguments, h = f.length, b = String(a).replace(pa, function (a) {
+ if ("%%" === a)
+ return "%";
+ if (c >= h)
+ return a;
+ switch (a) {
+ case "%s":
+ return String(f[c++]);
+ case "%d":
+ return Number(f[c++]);
+ case "%j":
+ try {
+ return JSON.stringify(f[c++]);
+ } catch (gb) {
+ return "[Circular]";
+ }
+ default:
+ return a;
+ }
+ }), m = f[c]; c < h; m = f[++c]) {
+ b = null !== m && q(m) ? b + (" " + d(m)) : b + (" " + m);
+ }
+ return b;
+ };
+ b.clb = function (a, f) {
+ var h;
+ if ("undefined" !== typeof c && !0 === c.r_b)
+ return a;
+ if ("undefined" === typeof c)
+ return function () {
+ return b.clb(a, f).apply(this, arguments);
+ };
+ h = !1;
+ return function () {
+ if (!h) {
+ if (c.X0b)
+ throw Error(f);
+ c.Z0b ? console.trace(f) : console.error(f);
+ h = !0;
+ }
+ return a.apply(this, arguments);
+ };
+ };
+ X = {};
+ b.EXb = function (a) {
+ var f;
+ G(O) && (O = c.knb.hTb || "");
+ a = a.toUpperCase();
+ if (!X[a])
+ if (new RegExp("\\b" + a + "\\b", "i").test(O)) {
+ f = c.L_b;
+ X[a] = function () {
+ var c;
+ c = b.format.apply(b, arguments);
+ console.error("%s %d: %s", a, f, c);
+ };
+ } else
+ X[a] = function () {};
+ return X[a];
+ };
+ b.uP = d;
+ d.HG = {
+ bold: [1, 22],
+ italic: [3, 23],
+ underline: [4, 24],
+ inverse: [7, 27],
+ white: [37, 39],
+ grey: [90, 39],
+ black: [30, 39],
+ blue: [34, 39],
+ cyan: [36, 39],
+ green: [32, 39],
+ magenta: [35, 39],
+ red: [31, 39],
+ yellow: [33, 39]
+ };
+ d.QKb = {
+ special: "cyan",
+ number: "yellow",
+ "boolean": "yellow",
+ undefined: "grey",
+ "null": "bold",
+ string: "green",
+ date: "magenta",
+ regexp: "red"
+ };
+ b.isArray = K;
+ b.jvb = C;
+ b.Pa = function (a) {
+ return null === a;
+ };
+ b.kZb = function (a) {
+ return null == a;
+ };
+ b.na = M;
+ b.Td = H;
+ b.nZb = function (a) {
+ return "symbol" === typeof a;
+ };
+ b.X = G;
+ b.pOa = n;
+ b.df = q;
+ b.f0 = aa;
+ b.vP = Z;
+ b.Zb = B;
+ b.lOa = function (a) {
+ return null === a || "boolean" === typeof a || "number" === typeof a || "string" === typeof a || "symbol" === typeof a || "undefined" === typeof a;
+ };
+ b.isBuffer = a(1066);
+ na = ("Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec").split(" ");
+ b.log = function () {
+ console.log("%s - %s", fa(), b.format.apply(b, arguments));
+ };
+ b.Hub = a(1065);
+ b.T8a = function (a, b) {
+ if (b && q(b))
+ for (var c = Object.keys(b), f = c.length; f--; ) {
+ a[c[f]] = b[c[f]];
+ }
+ };
+ g();
+ g();
+ ha = "undefined" !== typeof Symbol ? Symbol("util.promisify.custom") : void 0;
+ b.CEb = function (a) {
+ function b() {
+ for (var b, c, f = new Promise(function (a, f) {
+ b = a;
+ c = f;
+ }), h = [], m = 0; m < arguments.length; m++) {
+ h.push(arguments[m]);
+ }
+ h.push(function (a, f) {
+ a ? c(a) : b(f);
+ });
+ try {
+ a.apply(this, h);
+ } catch (gb) {
+ c(gb);
+ }
+ return f;
+ }
+ if ("function" !== typeof a)
+ throw new TypeError('The "original" argument must be of type Function');
+ if (ha && a[ha]) {
+ b = a[ha];
+ if ("function" !== typeof b)
+ throw new TypeError('The "util.promisify.custom" argument must be of type Function');
+ Object.defineProperty(b, ha, {
+ value: b,
+ enumerable: !1,
+ writable: !1,
+ configurable: !0
+ });
+ return b;
+ }
+ Object.setPrototypeOf(b, Object.getPrototypeOf(a));
+ ha && Object.defineProperty(b, ha, {
+ value: b,
+ enumerable: !1,
+ writable: !1,
+ configurable: !0
+ });
+ return Object.defineProperties(b, Y(a));
+ };
+ b.CEb.vXb = ha;
+ b.cXb = function (a) {
+ function b() {
+ var m,
+ d;
+ function b() {
+ return m.apply(d, arguments);
+ }
+ for (var f = [], h = 0; h < arguments.length; h++) {
+ f.push(arguments[h]);
+ }
+ m = f.pop();
+ if ("function" !== typeof m)
+ throw new TypeError("The last argument must be of type Function");
+ d = this;
+ a.apply(this, f).then(function (a) {
+ c.ZQa(b, null, a);
+ }, function (a) {
+ c.ZQa(ia, a, b);
+ });
+ }
+ if ("function" !== typeof a)
+ throw new TypeError('The "original" argument must be of type Function');
+ Object.setPrototypeOf(b, Object.getPrototypeOf(a));
+ Object.defineProperties(b, Y(a));
+ return b;
+ };
+ }).call(this, a(258));
+ }, function (d, b, a) {
+ var c,
+ k;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Xi = void 0;
+ c = a(0);
+ k = a(1);
+ d = (function () {
+ var b,
+ h;
+ function a() {
+ this.Wn = {};
+ this.id = "$es$" + b.ON++;
+ }
+ a.prototype.addListener = function (a, b, c) {
+ var f,
+ h;
+ f = "$netflix$player$order" + this.id + "$" + a;
+ if (this.Wn) {
+ h = this.Wn[a] ? this.Wn[a].slice() : [];
+ c && (b[f] = c);
+ 0 > h.indexOf(b) && (h.push(b), h.sort(function (a, b) {
+ return (a[f] || 0) - (b[f] || 0);
+ }));
+ this.Wn[a] = h;
+ }
+ };
+ a.prototype.removeListener = function (a, b) {
+ if (this.Wn && this.Wn[a]) {
+ for (var c = this.Wn[a].slice(), h; 0 <= (h = c.indexOf(b)); ) {
+ c.splice(h, 1);
+ }
+ this.Wn[a] = c;
+ }
+ };
+ a.prototype.$b = function (a, b, c) {
+ var f;
+ if (this.Wn) {
+ f = this.Kga(a);
+ for (a = {
+ Zj: 0
+ }; a.Zj < f.length; (a = {
+ Zj: a.Zj
+ }, a.Zj++)) {
+ c ? (function (a) {
+ return function () {
+ var c;
+ c = f[a.Zj];
+ setTimeout(function () {
+ c(b);
+ }, 0);
+ };
+ })(a)() : f[a.Zj].call(this, b);
+ }
+ }
+ };
+ a.prototype.Fg = function () {
+ this.Wn = void 0;
+ };
+ a.prototype.on = function (a, b, c) {
+ this.addListener(a, b, c);
+ };
+ a.prototype.Kga = function (a) {
+ return this.Wn && (this.Wn[a] || (this.Wn[a] = []));
+ };
+ h = b = a;
+ h.ON = 0;
+ return h = b = c.__decorate([k.N()], h);
+ })();
+ b.Xi = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r,
+ h;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.l$ = void 0;
+ c = a(0);
+ k = a(1);
+ a(2);
+ l = a(21);
+ r = a(90);
+ h = a(9);
+ d = (function () {
+ var b;
+ function a(a, b) {
+ this.is = a;
+ this.Vh = b;
+ }
+ a.prototype.YC = function (a, b, c) {
+ var f,
+ h,
+ m,
+ d;
+ f = this;
+ if (b)
+ if (c) {
+ h = c.hI;
+ m = c.prefix;
+ d = c.lw;
+ this.uv(b, function (b, c) {
+ if (!d || f.is.de(c))
+ a[(m || "") + (h ? b.toLowerCase() : b)] = c;
+ });
+ } else
+ this.uv(b, function (b, c) {
+ a[b] = c;
+ });
+ return a;
+ };
+ a.prototype.uv = function (a, b) {
+ for (var c in a) {
+ a.hasOwnProperty(c) && b(c, a[c]);
+ }
+ };
+ a.prototype.ws = function (a, b) {
+ if (a.length == b.length) {
+ for (var c = a.length; c--; ) {
+ if (a[c] != b[c])
+ return !1;
+ }
+ return !0;
+ }
+ return !1;
+ };
+ a.prototype.mHa = function (a, b) {
+ if (a.length != b.length)
+ return !1;
+ a.sort();
+ b.sort();
+ for (var c = a.length; c--; ) {
+ if (a[c] !== b[c])
+ return !1;
+ }
+ return !0;
+ };
+ a.prototype.Fd = function (a) {
+ var b,
+ c,
+ f;
+ if (a) {
+ b = a.stack;
+ c = a.number;
+ f = a.message;
+ f || (f = "" + a);
+ b ? (a = "" + b, 0 !== a.indexOf(f) && (a = f + "\n" + a)) : a = f;
+ c && (a += "\nnumber:" + c);
+ return a;
+ }
+ };
+ a.prototype.getFunctionName = function (a) {
+ return (a = (/function (.{1,})\(/).exec(a.toString())) && 1 < a.length ? a[1] : "";
+ };
+ a.prototype.Ega = function (a) {
+ return this.getFunctionName(a.constructor);
+ };
+ a.prototype.tla = function (a) {
+ var b,
+ c;
+ b = this;
+ c = "";
+ this.is.Qu(a) || this.is.PEa(a) ? c = Array.prototype.reduce.call(a, function (a, b) {
+ return a + (32 <= b && 128 > b ? String.fromCharCode(b) : ".");
+ }, "") : this.is.En(a) ? c = a : this.uv(a, function (a, f) {
+ c += (c ? ", " : "") + "{" + a + ": " + (b.is.cX(f) ? b.getFunctionName(f) || "function" : f) + "}";
+ });
+ return "[" + this.Ega(a) + " " + c + "]";
+ };
+ a.prototype.createElement = function (a, b, c, m) {
+ var f;
+ f = h.Ae.createElement(a);
+ b && (f.style.cssText = b);
+ c && (f.innerHTML = c);
+ m && this.uv(m, function (a, b) {
+ f.setAttribute(a, b);
+ });
+ return f;
+ };
+ a.prototype.Znb = function (a, b) {
+ return function (c) {
+ return c[a] === b;
+ };
+ };
+ a.prototype.zQ = function (a) {
+ var b;
+ b = {};
+ (a || "").split("&").forEach(function (a) {
+ var c;
+ a = a.trim();
+ c = a.indexOf("=");
+ 0 <= c ? b[decodeURIComponent(a.substr(0, c)).toLowerCase()] = decodeURIComponent(a.substr(c + 1)) : b[a.toLowerCase()] = void 0;
+ });
+ return b;
+ };
+ b = a;
+ return b = c.__decorate([k.N(), c.__param(0, k.l(l.Zd)), c.__param(1, k.l(r.Ut))], b);
+ })();
+ b.l$ = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r,
+ h,
+ p,
+ m,
+ f;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.c5 = void 0;
+ c = a(0);
+ k = a(1);
+ d = Array.prototype.slice;
+ l = d.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/");
+ d = d.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_");
+ r = {};
+ h = {};
+ p = {};
+ m = {};
+ f = /\s+/g;
+ [l, d].forEach(function (a) {
+ var c;
+ for (var b = a.length; b--; ) {
+ c = a[b];
+ r[c] = b << 18;
+ h[c] = b << 12;
+ p[c] = b << 6;
+ m[c] = b;
+ }
+ });
+ d = (function () {
+ var b,
+ d;
+ function a() {}
+ a.prototype.encode = function (a) {
+ return b.jfa(a, l, "=");
+ };
+ a.prototype.decode = function (a) {
+ return b.uea(a);
+ };
+ a.uea = function (a) {
+ var b,
+ c,
+ d;
+ a = a.replace(f, "");
+ b = a.length;
+ c = a.charAt(b - 1);
+ "=" !== c && "." !== c || b--;
+ c = a.charAt(b - 1);
+ "=" !== c && "." !== c || b--;
+ c = 3 * (b >> 2);
+ d = 0;
+ switch (b % 4) {
+ case 2:
+ d = 1;
+ break;
+ case 3:
+ d = 2;
+ break;
+ case 1:
+ throw Error("bad base64");
+ }
+ for (var b = new Uint8Array(c + d), k = 0, l = 0, u; l < c; ) {
+ u = r[a[k++]] + h[a[k++]] + p[a[k++]] + m[a[k++]];
+ if (!(0 <= u && 16777215 >= u))
+ throw Error("bad base64");
+ b[l++] = u >>> 16;
+ b[l++] = u >>> 8 & 255;
+ b[l++] = u & 255;
+ }
+ if (0 < d && (u = r[a[k++]] + h[a[k++]], b[l++] = u >>> 16, 1 < d && (u += p[a[k++]], b[l++] = u >>> 8 & 255), !(0 <= u && 16776960 >= u && 0 === (u & (1 < d ? 255 : 65535)))))
+ throw Error("bad base64");
+ return b;
+ };
+ a.jfa = function (a, b, c) {
+ for (var f = "", h = 0, m = a.length, d = m - 2, k; h < d; ) {
+ k = (a[h++] << 16) + (a[h++] << 8) + a[h++];
+ if (!(0 <= k && 16777215 >= k))
+ throw Error("not bytes");
+ f += b[k >>> 18] + b[k >>> 12 & 63] + b[k >>> 6 & 63] + b[k & 63];
+ }
+ if (h == d) {
+ k = (a[h++] << 8) + a[h++];
+ if (!(0 <= k && 65535 >= k))
+ throw Error("not bytes");
+ f += b[k >>> 10] + b[k >>> 4 & 63] + b[k << 2 & 63] + c;
+ } else if (h == m - 1) {
+ k = a[h++];
+ if (!(0 <= k && 255 >= k))
+ throw Error("not bytes");
+ f += b[k >>> 2] + b[k << 4 & 63] + c + c;
+ }
+ return f;
+ };
+ d = b = a;
+ return d = b = c.__decorate([k.N()], d);
+ })();
+ b.c5 = d;
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.h8 = void 0;
+ b.h8 = "OneWayCounterFactorySymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.t5 = void 0;
+ b.t5 = "ClockConfigSymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.yo = void 0;
+ d = b.yo || (b.yo = {});
+ d.dqa = "usable";
+ d.ynb = "expired";
+ d.YFb = "released";
+ d.VRa = "output-restricted";
+ d.VBb = "output-downscaled";
+ d.GWa = "status-pending";
+ d.Yub = "internal-error";
+ }, function (d, b) {
+ var a;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.KIa = b.Up = void 0;
+ (function (a) {
+ a[a.XOa = 0] = "licenseStarted";
+ a[a.$Ta = 1] = "receivedLicenseChallenge";
+ a[a.ZTa = 2] = "receivedLicense";
+ a[a.aUa = 3] = "receivedRenewalChallengeComplete";
+ a[a.bUa = 4] = "receivedRenewalLicenseComplete";
+ a[a.cUa = 5] = "receivedRenewalLicenseFailed";
+ a[a.nFb = 6] = "receivedIndivChallengeComplete";
+ a[a.oFb = 7] = "receivedIndivLicenseComplete";
+ a[a.qEa = 8] = "addLicenseComplete";
+ a[a.uEa = 9] = "addRenewalLicenseComplete";
+ a[a.vEa = 10] = "addRenewalLicenseFailed";
+ })(a = b.Up || (b.Up = {}));
+ b.KIa = function (b) {
+ switch (b) {
+ case a.XOa:
+ return "lg";
+ case a.$Ta:
+ return "lc";
+ case a.ZTa:
+ return "lr";
+ case a.aUa:
+ return "renew_lc";
+ case a.bUa:
+ return "renew_lr";
+ case a.cUa:
+ return "renew_lr_failed";
+ case a.nFb:
+ return "ilc";
+ case a.oFb:
+ return "ilr";
+ case a.qEa:
+ return "ld";
+ case a.uEa:
+ return "renew_ld";
+ case a.vEa:
+ return "renew_ld_failed";
+ default:
+ return "unknown";
+ }
+ };
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r,
+ h,
+ p,
+ m,
+ f,
+ u,
+ g,
+ A,
+ K,
+ C,
+ M,
+ H,
+ G,
+ n,
+ q,
+ aa,
+ Z,
+ B;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Eta = b.z7 = b.A7 = void 0;
+ c = a(0);
+ k = a(1);
+ l = a(138);
+ r = a(3);
+ h = a(2);
+ p = a(24);
+ m = a(7);
+ f = a(42);
+ u = a(36);
+ g = a(52);
+ A = a(88);
+ K = a(487);
+ d = a(486);
+ C = a(140);
+ M = a(261);
+ H = a(1078);
+ G = a(89);
+ n = a(1077);
+ q = a(61);
+ aa = a(48);
+ (function (a) {
+ a[a.QMb = 0] = "unknown";
+ a[a.create = 1] = "create";
+ a[a.load = 2] = "load";
+ a[a.Ig = 3] = "license";
+ a[a.BD = 4] = "renewal";
+ a[a.stop = 5] = "stop";
+ a[a.closed = 6] = "closed";
+ })(Z || (Z = {}));
+ b.A7 = "license-request";
+ b.z7 = "license-renewal";
+ B = {
+ usable: {
+ status: d.yo.dqa
+ },
+ expired: {
+ status: d.yo.ynb,
+ error: h.J.qxa
+ },
+ released: {
+ status: d.yo.YFb
+ },
+ "output-not-allowed": {
+ status: d.yo.VRa,
+ error: h.J.rxa
+ },
+ "output-restricted": {
+ status: d.yo.VRa,
+ error: h.J.p8
+ },
+ "output-downscaled": {
+ status: d.yo.VBb
+ },
+ "status-pending": {
+ status: d.yo.GWa
+ },
+ "internal-error": {
+ status: d.yo.Yub,
+ error: h.J.D5a
+ }
+ };
+ a = (function () {
+ var d;
+ function a(a, c, f, m, d, k, p, u, g) {
+ var w;
+ w = this;
+ this.va = c;
+ this.Vu = f;
+ this.config = m;
+ this.gg = d;
+ this.pk = k;
+ this.Qn = p;
+ this.ya = u;
+ this.Yk = g;
+ this.onMessage = function (a) {
+ var c,
+ f,
+ m,
+ d;
+ c = w.pk.Qda(a);
+ f = c.dw;
+ m = c.e1;
+ d = c.sessionId;
+ w.Sv = w.Sv || c.Sv;
+ w.v3(d);
+ w.Py = w.pk.Py(c);
+ w.log.trace("Received " + a.type + " event", {
+ sessionId: d,
+ messageType: m,
+ keyIds: w.Sv,
+ isIntermediateChallenge: w.Py
+ });
+ m === b.z7 && (w.log.trace("Received a renewal request"), w.ai = A.Aj.cm, w.Jg = Z.BD);
+ w.Jg !== Z.Ig || w.Py || (w.Eja = {
+ Qn: w.Qn,
+ data: f
+ }, w.Gn(K.Up.$Ta));
+ w.Jg === Z.BD && w.Gn(K.Up.aUa);
+ if (w.GP) {
+ if (w.Rha(f)) {
+ w.Qq(new aa.Dc(h.J.b2a));
+ return;
+ }
+ w.GP.next({
+ Xh: f,
+ uGa: m,
+ ai: w.ai
+ });
+ w.ai !== A.Aj.cm || w.Py || (w.GP.complete(), w.GP = void 0);
+ }
+ w.Jg === Z.stop && (w.Qi.Ifb(), w.config.wj && w.mR && (w.mR.next({
+ Xh: f
+ }), w.mR.complete(), w.mR = void 0));
+ };
+ this.JRa = function (a) {
+ var b,
+ c,
+ d,
+ k,
+ p,
+ l;
+ b = a.target.keyStatuses;
+ w.v3(a.target.sessionId);
+ w.log.trace("Received event: " + a.type, {
+ keySystem: a.target.keySystem
+ });
+ try {
+ for (var f = U(b), m = f.next(); !m.done; m = f.next()) {
+ d = U(m.value);
+ k = d.next().value;
+ p = d.next().value;
+ w.log.trace("key status: " + p);
+ l = B[p];
+ w.oja.next({
+ Qs: new Uint8Array(k),
+ value: l.status
+ });
+ w.FC(l.error) && (c = new G.Sf(l.error), w.ija(c));
+ }
+ } catch (hb) {
+ c = new G.Sf(h.J.E5a);
+ c.iO(hb);
+ }
+ c ? w.jja(c) : (w.pk.VX() || w.COa(), w.ai !== A.Aj.dx || w.pk.vca() || (w.log.info("Kicking off license renewal", {
+ timeout: w.config.Wy
+ }), setTimeout(function () {
+ w.hJ();
+ }, w.config.Wy.ca(r.ia))));
+ };
+ this.iw = function (a) {
+ var b;
+ b = w.pk.tq(a);
+ w.log.error("Received event: " + a.type, b);
+ w.Qq(b);
+ w.jja(b);
+ w.mj || w.Em || w.ija(b);
+ };
+ this.Qq = function (a) {
+ w.mj && w.close().subscribe(void 0, function (b) {
+ w.log.error("EmeSession closed with an error.", w.pk.tq(b));
+ w.mj && (w.mj.error(a), w.mj = void 0);
+ }, function () {
+ w.log.trace("Issuing a generate challenge error");
+ w.mj && (w.mj.error(a), w.mj = void 0);
+ });
+ };
+ this.BOa = function () {
+ w.mj && (w.mj.complete(), w.mj = void 0);
+ };
+ this.jja = function (a) {
+ w.Em && (w.log.error("Failed to add license", a), w.close().subscribe(void 0, function (b) {
+ w.log.error("EmeSession closed with an error.", w.pk.tq(b));
+ w.Jg === Z.BD && w.Gn(K.Up.vEa);
+ w.mj = void 0;
+ w.Em && (w.Em.error(a), w.Em = void 0);
+ }, function () {
+ w.log.trace("Issuing a license error");
+ w.mj = void 0;
+ w.Em && (w.Em.error(a), w.Em = void 0);
+ }));
+ };
+ this.COa = function () {
+ w.Em && (w.log.info("Successfully added license"), w.Jg === Z.Ig ? w.Gn(K.Up.qEa) : w.Jg === Z.BD && w.Gn(K.Up.uEa), w.Em.complete(), w.Em = void 0);
+ };
+ this.ija = function (a) {
+ w.wq && w.close().subscribe(void 0, function (b) {
+ w.log.error("EmeSession closed with an error.", w.pk.tq(b));
+ w.mj = void 0;
+ w.Em = void 0;
+ w.wq && (w.wq.next(a), w.wq.complete(), w.wq = void 0);
+ }, function () {
+ w.log.trace("Issuing a CDM error");
+ w.mj = void 0;
+ w.Em = void 0;
+ w.wq && (w.wq.next(a), w.wq.complete(), w.wq = void 0);
+ });
+ };
+ this.Gn = function (a) {
+ w.Yc.push({
+ time: w.va.Yb(),
+ qzb: a
+ });
+ };
+ this.log = a.xb("EmeSession");
+ this.GP = new l.pn();
+ this.config.wj && (this.mR = new l.pn());
+ this.oja = new l.k6a();
+ this.wq = new l.pn();
+ this.Jg = Z.QMb;
+ this.Yc = [];
+ }
+ a.prototype.Js = function () {
+ return this.context.he;
+ };
+ a.prototype.Dy = function () {
+ return this.sessionId;
+ };
+ a.prototype.close = function () {
+ var a;
+ a = this;
+ this.oja.complete();
+ this.Jg = Z.closed;
+ this.Yc = [];
+ return this.gg.Svb() ? (this.log.trace("Closing the session"), this.gg.hGb(this.onMessage), this.gg.eGb(this.JRa), this.gg.cGb(this.iw), this.Nf = void 0, l.sb.create(function (b) {
+ a.Yk.Sm(a.config.SEa, a.gg.close()).then(function () {
+ a.log.info("Closed the session");
+ b.complete();
+ })["catch"](function (c) {
+ a.log.error("Close failed", c);
+ c = a.pk.tq(c);
+ c.code = h.J.I5a;
+ b.error(c);
+ });
+ })) : l.sb.empty();
+ };
+ a.prototype.nja = function () {
+ return this.oja.lca();
+ };
+ a.prototype.nH = function () {
+ return this.wq ? this.wq.lca() : void 0;
+ };
+ a.prototype.Eq = function () {
+ return this.Qn;
+ };
+ a.prototype.Tha = function () {
+ return void 0 !== this.Nk;
+ };
+ a.prototype.Nn = function (a, b, c, f) {
+ var m;
+ m = this;
+ this.ai = f;
+ this.Jg = Z.create;
+ this.context = a;
+ this.Gn(K.Up.XOa);
+ return l.sb.create(function (a) {
+ (c.LMa() ? Promise.resolve() : m.Yk.Sm(m.config.TEa, m.gg.Fjb(b)).then(function (a) {
+ m.log.trace("Created media keys");
+ c.OD(a);
+ return m.fdb(a);
+ })).then(function () {
+ m.Nf = c.Nf;
+ try {
+ m.gg.Nn(m.Nf, m.pk.xha(f));
+ m.gg.pcb(m.onMessage);
+ m.gg.jcb(m.JRa);
+ m.gg.dcb(m.iw);
+ m.v3(m.gg.Dy());
+ a.next(m);
+ a.complete();
+ } catch (ha) {
+ a.error(new G.Sf(h.J.Y1a, h.I.Df, void 0, "Unable to create a persisted key session", ha));
+ }
+ })["catch"](function (b) {
+ b.code && b.Nb ? a.error(b) : a.error(new G.Sf(h.J.vT, b instanceof q.rn ? h.I.IK : h.I.Df, void 0, "Unable to create MediaKeys. " + b.message, b));
+ });
+ });
+ };
+ a.prototype.YIb = function (a) {
+ this.jh = a;
+ this.log.Jba("xid", a.ga);
+ };
+ a.prototype.sxb = function (a) {
+ var b;
+ b = this;
+ this.Jg = Z.load;
+ this.Rb = a.Rb;
+ this.WFb = {
+ ga: a.ga
+ };
+ return l.sb.Hs(this.gg.load(a.Rb[0].id).then(function () {
+ return b;
+ }));
+ };
+ a.prototype.GZ = function (a) {
+ var b;
+ b = this;
+ this.Jg = Z.Ig;
+ this.log.trace("Generating a license challenge");
+ this.mj = new l.pn();
+ if (!a)
+ return this.SX(new G.Sf(h.J.qta, h.I.a6));
+ if (this.Rha(a))
+ return this.SX(new G.Sf(h.J.qta, h.I.Y5));
+ this.Yk.Sm(this.config.UEa, this.gg.qga("cenc", a)).then(function () {
+ b.v3(b.gg.Dy());
+ })["catch"](function (a) {
+ var c;
+ c = new G.Sf(h.J.pta, a instanceof q.rn ? h.I.IK : h.I.Df);
+ c.message = "Unable to generate request.";
+ c.iO(a);
+ b.log.error("Unable to generate a license request", c);
+ b.Qq(c);
+ });
+ this.log.trace("Returning the challenge subject");
+ return this.mj;
+ };
+ a.prototype.pEa = function (a) {
+ var b;
+ b = this;
+ this.Rb = a.Rb;
+ a = a.Nk.map(function (a) {
+ return a.data;
+ });
+ this.Rha(a) ? (this.log.error("The license buffer is empty"), this.Qq(new G.Sf(h.J.rta, h.I.Y5))) : this.Py ? this.Yk.Sm(this.config.dca, this.gg.update(a, this.Sv)).then(function () {
+ b.log.trace("Successfully updated CDM with intermediate server response");
+ })["catch"](function (a) {
+ a = b.pk.tq(a);
+ a.code = h.J.yE;
+ a.message = "Unable to update the CDM intermediate challenge";
+ b.log.error("Unable to update the CDM intermediate challenge", a);
+ b.Qq(a);
+ }) : (this.Jg === Z.Ig && (this.Gn(K.Up.ZTa), this.Nk = a, this.BOa()), this.Jg === Z.BD && (this.Gn(K.Up.bUa), this.Nk = a, this.ica()));
+ };
+ a.prototype.mcb = function (a) {
+ this.Jg === Z.BD ? (this.Gn(K.Up.cUa), this.ija(a)) : this.Qq(a);
+ };
+ a.prototype.ica = function () {
+ var a,
+ b;
+ a = this;
+ if (!this.Nk)
+ return this.SX(new G.Sf(h.J.rta, h.I.a6));
+ this.Em = new l.pn();
+ b = this.Nk;
+ this.Nk = void 0;
+ this.Yk.Sm(this.config.dca, this.gg.update(b, this.Sv)).then(function () {
+ a.pk.VX() && a.COa();
+ })["catch"](function (b) {
+ b = a.pk.tq(b);
+ b.code = h.J.r8;
+ b.message = "Unable to update the EME";
+ a.log.error(b.message, b);
+ a.jja(b);
+ });
+ return this.Em;
+ };
+ a.prototype.eI = function () {
+ return this.GP;
+ };
+ a.prototype.uKa = function () {
+ var a;
+ a = this;
+ if (this.Jg === Z.Ig && this.ai === A.Aj.dx)
+ return l.sb.empty();
+ this.Jg = Z.stop;
+ this.log.trace("Generating a secure stop challenge");
+ this.mj = new l.pn();
+ this.Qi = new n.Cta(this.va, this.config, this.ya, function (b) {
+ a.Qq(b);
+ }, "non-persisted");
+ this.Qi.Jfb();
+ this.gg.remove().then(function () {
+ a.log.trace("Call to 'remove' on key session succeeded");
+ })["catch"](function (b) {
+ var c;
+ c = a.pk.tq(b);
+ c.code = h.J.tta;
+ c.Nb = h.I.Df;
+ c.message = "Call to 'remove' on key session failed";
+ a.log.error("Call to 'remove' on key session failed", {
+ error: b
+ });
+ a.Qq(c);
+ });
+ return this.mj;
+ };
+ a.prototype.wEa = function (a) {
+ a && a.constructor !== Uint8Array ? this.Qq(a) : a ? 0 === a.length ? (this.log.error("The secure stop buffer is empty"), this.Qq(new G.Sf(h.J.sta, h.I.Y5))) : (this.log.trace("Secure stop is ready to apply"), this.i3 = a, this.Qi.tIb(), this.BOa()) : (this.log.error("The secure stop buffer is undefined"), this.Qq(new G.Sf(h.J.sta, h.I.a6)));
+ };
+ a.prototype.bFa = function () {
+ var a;
+ a = this;
+ if (!this.i3)
+ return l.sb.from([this]);
+ this.log.trace("Setting the secure stop data");
+ return l.sb.create(function (b) {
+ a.Qi.Kfb();
+ a.gg.update([a.i3]).then(function () {
+ a.Qi.oGa();
+ a.log.info("Successfully released the license and securely removed the key session");
+ b.next(a);
+ b.complete();
+ })["catch"](function (c) {
+ var f;
+ a.Qi.oGa();
+ f = a.pk.tq(c);
+ f.code = h.J.yE;
+ f.Nb = h.I.Df;
+ f.message = "Unable to update the EME with secure stop data";
+ a.log.error("Unable to update the EME", {
+ error: c
+ });
+ b.error(f);
+ });
+ });
+ };
+ a.prototype.fdb = function (a) {
+ var b,
+ c;
+ b = this;
+ c = this.pk.Cga();
+ return c ? (c = this.Vu.decode(c), this.Yk.Sm(this.config.WEa, this.gg.dJb(a, c)).then(function (a) {
+ b.log.trace("Set the server certificate", {
+ result: a
+ });
+ })) : Promise.resolve();
+ };
+ a.prototype.v3 = function (a) {
+ a && a !== this.sessionId && (this.sessionId && this.log.warn("sessionId changed from " + this.sessionId + " to " + a), this.sessionId = a, this.log.Jba("sessionId", a));
+ };
+ a.prototype.FC = function (a) {
+ return a === h.J.p8 ? this.config.WRa : !!a;
+ };
+ a.prototype.hJ = function () {
+ var a;
+ a = this;
+ this.log.trace("Initiating a renewal request");
+ this.ai = A.Aj.cm;
+ this.Jg = Z.BD;
+ this.pk.Lia(this.gg)["catch"](function () {
+ return a.SX(new aa.Dc(h.J.wT));
+ });
+ };
+ a.prototype.SX = function (a) {
+ var b;
+ b = this;
+ return l.sb.create(function (c) {
+ b.close().subscribe(void 0, function () {
+ c.error(a);
+ }, function () {
+ c.error(a);
+ });
+ });
+ };
+ a.prototype.Rha = function (a) {
+ return 0 === a.length || a.reduce(function (a, b) {
+ return a || 0 === b.length;
+ }, !1);
+ };
+ d = a;
+ return d = c.__decorate([k.N(), c.__param(0, k.l(m.Jb)), c.__param(1, k.l(p.Me)), c.__param(2, k.l(f.Ui)), c.__param(3, k.l(g.Zl)), c.__param(4, k.l(H.Ata)), c.__param(5, k.l(M.jta)), c.__param(6, k.l(C.lta)), c.__param(7, k.l(u.Tg)), c.__param(8, k.l(q.nx))], d);
+ })();
+ b.Eta = a;
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.l6 = b.aBa = void 0;
+ b.aBa = "CAUSwwUKvQIIAxIQ5US6QAvBDzfTtjb4tU/7QxiH8c+TBSKOAjCCAQoCggEBAObzvlu2hZRsapAPx4Aa4GUZj4/GjxgXUtBH4THSkM40x63wQeyVxlEEo1D/T1FkVM/S+tiKbJiIGaT0Yb5LTAHcJEhODB40TXlwPfcxBjJLfOkF3jP6wIlqbb6OPVkDi6KMTZ3EYL6BEFGfD1ag/LDsPxG6EZIn3k4S3ODcej6YSzG4TnGD0szj5m6uj/2azPZsWAlSNBRUejmP6Tiota7g5u6AWZz0MsgCiEvnxRHmTRee+LO6U4dswzF3Odr2XBPD/hIAtp0RX8JlcGazBS0GABMMo2qNfCiSiGdyl2xZJq4fq99LoVfCLNChkn1N2NIYLrStQHa35pgObvhwi7ECAwEAAToQdGVzdC5uZXRmbGl4LmNvbRKAA4TTLzJbDZaKfozb9vDv5qpW5A/DNL9gbnJJi/AIZB3QOW2veGmKT3xaKNQ4NSvo/EyfVlhc4ujd4QPrFgYztGLNrxeyRF0J8XzGOPsvv9Mc9uLHKfiZQuy21KZYWF7HNedJ4qpAe6gqZ6uq7Se7f2JbelzENX8rsTpppKvkgPRIKLspFwv0EJQLPWD1zjew2PjoGEwJYlKbSbHVcUNygplaGmPkUCBThDh7p/5Lx5ff2d/oPpIlFvhqntmfOfumt4i+ZL3fFaObvkjpQFVAajqmfipY0KAtiUYYJAJSbm2DnrqP7+DmO9hmRMm9uJkXC2MxbmeNtJHAHdbgKsqjLHDiqwk1JplFMoC9KNMp2pUNdX9TkcrtJoEDqIn3zX9p+itdt3a9mVFc7/ZL4xpraYdQvOwP5LmXj9galK3s+eQJ7bkX6cCi+2X+iBmCMx4R0XJ3/1gxiM5LiStibCnfInub1nNgJDojxFA3jH/IuUcblEf/5Y0s1SzokBnR8V0KbA==";
+ b.l6 = "MIIE2jCCA8KgAwIBAgIIBRGnbPd8z1YwDQYJKoZIhvcNAQEFBQAwfzELMAkGA1UEBhMCVVMxEzARBgNVBAoMCkFwcGxlIEluYy4xJjAkBgNVBAsMHUFwcGxlIENlcnRpZmljYXRpb24gQXV0aG9yaXR5MTMwMQYDVQQDDCpBcHBsZSBLZXkgU2VydmljZXMgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkwHhcNMTMwMzI3MjEyNjU2WhcNMTUwMzI4MjEyNjU2WjBjMQswCQYDVQQGEwJVUzEUMBIGA1UECgwLTmV0ZmxpeC5jb20xDDAKBgNVBAsMA0VEUzEwMC4GA1UEAwwnRlBTIEFwcGxpY2F0aW9uIENlcnRpZmljYXRlICgyMDEzIHYxLjApMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDfaIdDptThILsQcAbDMvT5FpK4JNn/BnHAY++rS9OFfhg5R4pV7CI+UMZeC64TFJJZciq6dX4/Vh7JDDULooAeZxlOLqJB4v+KDMpFS6VsRPweeMRSCE5rQffF5HoRKx682Kw4Ltv2PTxE3M16ktYCOxq+/7fxevMt3uII+2V0tQIDAQABo4IB+DCCAfQwHQYDVR0OBBYEFDuQUJCSl+l2UeybrEfNbUR1JcwSMAwGA1UdEwEB/wQCMAAwHwYDVR0jBBgwFoAUY+RHVMuFcVlGLIOszEQxZGcDLL4wgeIGA1UdIASB2jCB1zCB1AYJKoZIhvdjZAUBMIHGMIHDBggrBgEFBQcCAjCBtgyBs1JlbGlhbmNlIG9uIHRoaXMgY2VydGlmaWNhdGUgYnkgYW55IHBhcnR5IGFzc3VtZXMgYWNjZXB0YW5jZSBvZiB0aGUgdGhlbiBhcHBsaWNhYmxlIHN0YW5kYXJkIHRlcm1zIGFuZCBjb25kaXRpb25zIG9mIHVzZSwgY2VydGlmaWNhdGUgcG9saWN5IGFuZCBjZXJ0aWZpY2F0aW9uIHByYWN0aWNlIHN0YXRlbWVudHMuMDUGA1UdHwQuMCwwKqAooCaGJGh0dHA6Ly9jcmwuYXBwbGUuY29tL2tleXNlcnZpY2VzLmNybDAOBgNVHQ8BAf8EBAMCBSAwLQYLKoZIhvdjZAYNAQMBAf8EGwGcLBpLUU8iNtuBsGfgldUUE/I42u6RKyl8uzBJBgsqhkiG92NkBg0BBAEB/wQ3AV+LX+Xo3O4lI5WzFXfxVrna5jJD1GHioNsMHMKUv97Kx9dCozZVRhmiGdTREdjOptDoUjj2ODANBgkqhkiG9w0BAQUFAAOCAQEAmkGc6tT450ENeFTTmvhyTHfntjWyEpEvsvoubGpqPnbPXhYsaz6U1RuoLkf5q4BkaXVE0yekfKiPa5lOSIYOebyWgDkWBuJDPrQFw8QYreq5T/rteSNQnJS1lAbg5vyLzexLMH7kq47OlCAnUlrI20mvGM71RuU6HlKJIlWIVlId5JZQF2ae0/A6BVZWh35+bQu+iPI1PXjrTVYqtmrV6N+vV8UaHRdKV6rCD648iJebynWZj4Gbgzqw7AX4RE6UwiX0Rgz9ZMM5Vzfgrgk8KxOmsuaP8Kgqf5KWeH/LDa+ocftU7zGz1jO5L999JptFIatsdPyZXnA3xM+QjzBW8w==";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.d6 = void 0;
+ b.d6 = "EmeSessionFactorySymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.S5 = void 0;
+ b.S5 = "DrmProviderSymbol";
+ }, function (d, b, a) {
+ var l,
+ r;
+ function c(a) {
+ var b;
+ b = a.value;
+ a = a.xj;
+ a.closed || (a.next(b), a.complete());
+ }
+ function k(a) {
+ var b;
+ b = a.hC;
+ a = a.xj;
+ a.closed || a.error(b);
+ }
+ l = this && this.__extends || (function (a, b) {
+ function c() {
+ this.constructor = a;
+ }
+ for (var f in b) {
+ b.hasOwnProperty(f) && (a[f] = b[f]);
+ }
+ a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c());
+ });
+ r = a(86);
+ d = (function (a) {
+ function b(b, c) {
+ a.call(this);
+ this.qt = b;
+ this.ya = c;
+ }
+ l(b, a);
+ b.create = function (a, c) {
+ return new b(a, c);
+ };
+ b.prototype.im = function (a) {
+ var b,
+ h,
+ m;
+ b = this;
+ h = this.qt;
+ m = this.ya;
+ if (null == m)
+ this.yu ? a.closed || (a.next(this.value), a.complete()) : h.then(function (c) {
+ b.value = c;
+ b.yu = !0;
+ a.closed || (a.next(c), a.complete());
+ }, function (b) {
+ a.closed || a.error(b);
+ }).then(null, function (a) {
+ r.root.setTimeout(function () {
+ throw a;
+ });
+ });
+ else if (this.yu) {
+ if (!a.closed)
+ return m.Pc(c, 0, {
+ value: this.value,
+ xj: a
+ });
+ } else
+ h.then(function (f) {
+ b.value = f;
+ b.yu = !0;
+ a.closed || a.add(m.Pc(c, 0, {
+ value: f,
+ xj: a
+ }));
+ }, function (b) {
+ a.closed || a.add(m.Pc(k, 0, {
+ hC: b,
+ xj: a
+ }));
+ }).then(null, function (a) {
+ r.root.setTimeout(function () {
+ throw a;
+ });
+ });
+ };
+ return b;
+ })(a(20).sb);
+ b.Tya = d;
+ }, function (d, b, a) {
+ d = a(1103);
+ b.from = d.y2a.create;
+ }, function (d, b, a) {
+ var c;
+ c = this && this.__extends || (function (a, b) {
+ function c() {
+ this.constructor = a;
+ }
+ for (var h in b) {
+ b.hasOwnProperty(h) && (a[h] = b[h]);
+ }
+ a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c());
+ });
+ d = (function (a) {
+ function b(b, c) {
+ a.call(this);
+ this.value = b;
+ this.ya = c;
+ this.yu = !0;
+ c && (this.yu = !1);
+ }
+ c(b, a);
+ b.create = function (a, c) {
+ return new b(a, c);
+ };
+ b.zc = function (a) {
+ var b,
+ c;
+ b = a.value;
+ c = a.xj;
+ a.done ? c.complete() : (c.next(b), c.closed || (a.done = !0, this.Pc(a)));
+ };
+ b.prototype.im = function (a) {
+ var c,
+ d;
+ c = this.value;
+ d = this.ya;
+ if (d)
+ return d.Pc(b.zc, 0, {
+ done: !1,
+ value: c,
+ xj: a
+ });
+ a.next(c);
+ a.closed || a.complete();
+ };
+ return b;
+ })(a(20).sb);
+ b.zza = d;
+ }, function (d, b, a) {
+ d = a(262);
+ b.of = d.R4.of;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r;
+ c = this && this.__extends || (function (a, b) {
+ function c() {
+ this.constructor = a;
+ }
+ for (var f in b) {
+ b.hasOwnProperty(f) && (a[f] = b[f]);
+ }
+ a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c());
+ });
+ k = a(180);
+ d = a(181);
+ b.qI = function (a, b, c) {
+ void 0 === c && (c = Number.POSITIVE_INFINITY);
+ return function (f) {
+ "number" === typeof b && (c = b, b = null);
+ return f.Rq(new l(a, b, c));
+ };
+ };
+ l = (function () {
+ function a(a, b, c) {
+ void 0 === c && (c = Number.POSITIVE_INFINITY);
+ this.wD = a;
+ this.At = b;
+ this.Eda = c;
+ }
+ a.prototype.call = function (a, b) {
+ return b.subscribe(new r(a, this.wD, this.At, this.Eda));
+ };
+ return a;
+ })();
+ b.PSb = l;
+ r = (function (a) {
+ function b(b, c, h, d) {
+ void 0 === d && (d = Number.POSITIVE_INFINITY);
+ a.call(this, b);
+ this.wD = c;
+ this.At = h;
+ this.Eda = d;
+ this.GMa = !1;
+ this.buffer = [];
+ this.index = this.active = 0;
+ }
+ c(b, a);
+ b.prototype.tl = function (a) {
+ this.active < this.Eda ? this.tbb(a) : this.buffer.push(a);
+ };
+ b.prototype.tbb = function (a) {
+ var b,
+ c;
+ c = this.index++;
+ try {
+ b = this.wD(a, c);
+ } catch (w) {
+ this.destination.error(w);
+ return;
+ }
+ this.active++;
+ this.A9a(b, a, c);
+ };
+ b.prototype.A9a = function (a, b, c) {
+ this.add(k.Y3(this, a, b, c));
+ };
+ b.prototype.$d = function () {
+ this.GMa = !0;
+ 0 === this.active && 0 === this.buffer.length && this.destination.complete();
+ };
+ b.prototype.K1 = function (a, b, c, h) {
+ this.At ? this.D$a(a, b, c, h) : this.destination.next(b);
+ };
+ b.prototype.D$a = function (a, b, c, h) {
+ var f;
+ try {
+ f = this.At(a, b, c, h);
+ } catch (K) {
+ this.destination.error(K);
+ return;
+ }
+ this.destination.next(f);
+ };
+ b.prototype.dt = function (a) {
+ var b;
+ b = this.buffer;
+ this.remove(a);
+ this.active--;
+ 0 < b.length ? this.tl(b.shift()) : 0 === this.active && this.GMa && this.destination.complete();
+ };
+ return b;
+ })(d.xU);
+ b.QSb = r;
+ }, function (d, b, a) {
+ var c,
+ k;
+ c = a(496);
+ k = a(1119);
+ b.VC = function (a) {
+ void 0 === a && (a = Number.POSITIVE_INFINITY);
+ return c.qI(k.jub, null, a);
+ };
+ }, function (d, b) {
+ b.mOa = function (a) {
+ return a && "function" !== typeof a.subscribe && "function" === typeof a.then;
+ };
+ }, function (d, b) {
+ b.ONa = function (a) {
+ return a && "number" === typeof a.length;
+ };
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r,
+ h;
+ c = this && this.__extends || (function (a, b) {
+ function c() {
+ this.constructor = a;
+ }
+ for (var h in b) {
+ b.hasOwnProperty(h) && (a[h] = b[h]);
+ }
+ a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c());
+ });
+ d = a(69);
+ k = a(1136);
+ b.x_b = function (a, b) {
+ void 0 === b && (b = 0);
+ return function (c) {
+ return c.Rq(new l(a, b));
+ };
+ };
+ l = (function () {
+ function a(a, b) {
+ void 0 === b && (b = 0);
+ this.ya = a;
+ this.Dl = b;
+ }
+ a.prototype.call = function (a, b) {
+ return b.subscribe(new r(a, this.ya, this.Dl));
+ };
+ return a;
+ })();
+ b.KTb = l;
+ r = (function (a) {
+ function b(b, c, h) {
+ void 0 === h && (h = 0);
+ a.call(this, b);
+ this.ya = c;
+ this.Dl = h;
+ }
+ c(b, a);
+ b.zc = function (a) {
+ a.notification.observe(a.destination);
+ this.unsubscribe();
+ };
+ b.prototype.Mna = function (a) {
+ this.add(this.ya.Pc(b.zc, this.Dl, new h(a, this.destination)));
+ };
+ b.prototype.tl = function (a) {
+ this.Mna(k.Notification.Ijb(a));
+ };
+ b.prototype.jf = function (a) {
+ this.Mna(k.Notification.tjb(a));
+ };
+ b.prototype.$d = function () {
+ this.Mna(k.Notification.ijb());
+ };
+ return b;
+ })(d.qn);
+ b.dxa = r;
+ h = (function () {
+ return function (a, b) {
+ this.notification = a;
+ this.destination = b;
+ };
+ })();
+ b.JTb = h;
+ }, function (d, b, a) {
+ var c;
+ c = this && this.__extends || (function (a, b) {
+ function c() {
+ this.constructor = a;
+ }
+ for (var h in b) {
+ b.hasOwnProperty(h) && (a[h] = b[h]);
+ }
+ a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c());
+ });
+ d = (function (a) {
+ function b() {
+ a.apply(this, arguments);
+ this.Fn = [];
+ this.active = !1;
+ }
+ c(b, a);
+ b.prototype.flush = function (a) {
+ var b,
+ c;
+ b = this.Fn;
+ if (this.active)
+ b.push(a);
+ else {
+ this.active = !0;
+ do {
+ if (c = a.Ge(a.state, a.Dl))
+ break;
+ } while (a = b.shift());
+ this.active = !1;
+ if (c) {
+ for (; a = b.shift(); ) {
+ a.unsubscribe();
+ }
+ throw c;
+ }
+ }
+ };
+ return b;
+ })(a(1137).L6a);
+ b.mra = d;
+ }, function (d, b, a) {
+ var c,
+ k;
+ c = this && this.__extends || (function (a, b) {
+ function c() {
+ this.constructor = a;
+ }
+ for (var d in b) {
+ b.hasOwnProperty(d) && (a[d] = b[d]);
+ }
+ a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c());
+ });
+ k = a(86);
+ d = (function (a) {
+ function b(b, c) {
+ a.call(this, b, c);
+ this.ya = b;
+ this.jt = !1;
+ this.pqa = c;
+ }
+ c(b, a);
+ b.prototype.Pc = function (a, b) {
+ var c;
+ void 0 === b && (b = 0);
+ if (this.closed)
+ return this;
+ this.state = a;
+ this.jt = !0;
+ a = this.id;
+ c = this.ya;
+ null != a && (this.id = this.Yma(a, b));
+ this.Dl = b;
+ this.id = this.id || this.jna(c, this.id, b);
+ return this;
+ };
+ b.prototype.jna = function (a, b, c) {
+ void 0 === c && (c = 0);
+ return k.root.setInterval(a.flush.bind(a, this), c);
+ };
+ b.prototype.Yma = function (a, b) {
+ void 0 === b && (b = 0);
+ return null !== b && this.Dl === b && !1 === this.jt ? a : (k.root.clearInterval(a), void 0);
+ };
+ b.prototype.Ge = function (a) {
+ if (this.closed)
+ return Error("executing a cancelled action");
+ this.jt = !1;
+ if (a = this.$Ba(a))
+ return a;
+ !1 === this.jt && null != this.id && (this.id = this.Yma(this.id, null));
+ };
+ b.prototype.$Ba = function (a) {
+ var b,
+ c;
+ b = !1;
+ c = void 0;
+ try {
+ this.pqa(a);
+ } catch (f) {
+ b = !0;
+ c = !!f && f || Error(f);
+ }
+ if (b)
+ return (this.unsubscribe(), c);
+ };
+ b.prototype.uba = function () {
+ var a,
+ b,
+ c;
+ a = this.id;
+ b = this.ya.Fn;
+ c = b.indexOf(this);
+ this.state = this.pqa = null;
+ this.jt = !1;
+ this.ya = null;
+ -1 !== c && b.splice(c, 1);
+ null != a && (this.id = this.Yma(a, null));
+ this.Dl = null;
+ };
+ return b;
+ })(a(1139).n_a);
+ b.jra = d;
+ }, function (d, b, a) {
+ var c;
+ c = this && this.__extends || (function (a, b) {
+ function c() {
+ this.constructor = a;
+ }
+ for (var h in b) {
+ b.hasOwnProperty(h) && (a[h] = b[h]);
+ }
+ a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c());
+ });
+ d = (function (a) {
+ function b(b, c) {
+ a.call(this);
+ this.QR = b;
+ this.xj = c;
+ this.closed = !1;
+ }
+ c(b, a);
+ b.prototype.unsubscribe = function () {
+ var a,
+ b;
+ if (!this.closed) {
+ this.closed = !0;
+ a = this.QR;
+ b = a.hw;
+ this.QR = null;
+ !b || 0 === b.length || a.Hg || a.closed || (a = b.indexOf(this.xj), -1 !== a && b.splice(a, 1));
+ }
+ };
+ return b;
+ })(a(117).rx);
+ b.fAa = d;
+ }, function (d, b) {
+ var a;
+ a = this && this.__extends || (function (a, b) {
+ function c() {
+ this.constructor = a;
+ }
+ for (var d in b) {
+ b.hasOwnProperty(d) && (a[d] = b[d]);
+ }
+ a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c());
+ });
+ d = (function (b) {
+ function c() {
+ var a;
+ a = b.call(this, "object unsubscribed");
+ this.name = a.name = "ObjectUnsubscribedError";
+ this.stack = a.stack;
+ this.message = a.message;
+ }
+ a(c, b);
+ return c;
+ })(Error);
+ b.WE = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r,
+ h,
+ p,
+ m,
+ f;
+ c = this && this.__extends || (function (a, b) {
+ function c() {
+ this.constructor = a;
+ }
+ for (var f in b) {
+ b.hasOwnProperty(f) && (a[f] = b[f]);
+ }
+ a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c());
+ });
+ k = a(20);
+ d = a(69);
+ l = a(117);
+ r = a(504);
+ h = a(503);
+ p = a(266);
+ m = (function (a) {
+ function b(b) {
+ a.call(this, b);
+ this.destination = b;
+ }
+ c(b, a);
+ return b;
+ })(d.qn);
+ b.yVb = m;
+ a = (function (a) {
+ function b() {
+ a.call(this);
+ this.hw = [];
+ this.eP = this.Hg = this.closed = !1;
+ this.rpa = null;
+ }
+ c(b, a);
+ b.prototype[p.JD] = function () {
+ return new m(this);
+ };
+ b.prototype.Rq = function (a) {
+ var b;
+ b = new f(this, this);
+ b.KI = a;
+ return b;
+ };
+ b.prototype.next = function (a) {
+ if (this.closed)
+ throw new r.WE();
+ if (!this.Hg)
+ for (var b = this.hw, c = b.length, b = b.slice(), f = 0; f < c; f++) {
+ b[f].next(a);
+ }
+ };
+ b.prototype.error = function (a) {
+ if (this.closed)
+ throw new r.WE();
+ this.eP = !0;
+ this.rpa = a;
+ this.Hg = !0;
+ for (var b = this.hw, c = b.length, b = b.slice(), f = 0; f < c; f++) {
+ b[f].error(a);
+ }
+ this.hw.length = 0;
+ };
+ b.prototype.complete = function () {
+ if (this.closed)
+ throw new r.WE();
+ this.Hg = !0;
+ for (var a = this.hw, b = a.length, a = a.slice(), c = 0; c < b; c++) {
+ a[c].complete();
+ }
+ this.hw.length = 0;
+ };
+ b.prototype.unsubscribe = function () {
+ this.closed = this.Hg = !0;
+ this.hw = null;
+ };
+ b.prototype.sba = function (b) {
+ if (this.closed)
+ throw new r.WE();
+ return a.prototype.sba.call(this, b);
+ };
+ b.prototype.im = function (a) {
+ if (this.closed)
+ throw new r.WE();
+ if (this.eP)
+ return (a.error(this.rpa), l.rx.EMPTY);
+ if (this.Hg)
+ return (a.complete(), l.rx.EMPTY);
+ this.hw.push(a);
+ return new h.fAa(this, a);
+ };
+ b.prototype.lca = function () {
+ var a;
+ a = new k.sb();
+ a.source = this;
+ return a;
+ };
+ b.create = function (a, b) {
+ return new f(a, b);
+ };
+ return b;
+ })(k.sb);
+ b.pn = a;
+ f = (function (a) {
+ function b(b, c) {
+ a.call(this);
+ this.destination = b;
+ this.source = c;
+ }
+ c(b, a);
+ b.prototype.next = function (a) {
+ var b;
+ b = this.destination;
+ b && b.next && b.next(a);
+ };
+ b.prototype.error = function (a) {
+ var b;
+ b = this.destination;
+ b && b.error && this.destination.error(a);
+ };
+ b.prototype.complete = function () {
+ var a;
+ a = this.destination;
+ a && a.complete && this.destination.complete();
+ };
+ b.prototype.im = function (a) {
+ return this.source ? this.source.subscribe(a) : l.rx.EMPTY;
+ };
+ return b;
+ })(a);
+ b.JPb = f;
+ }, function (d, b) {
+ b.vy = {
+ e: {}
+ };
+ }, function (d, b) {
+ b.df = function (a) {
+ return null != a && "object" === typeof a;
+ };
+ }, function (d, b) {
+ b.Zb = function (a) {
+ return "function" === typeof a;
+ };
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.c8 = void 0;
+ b.c8 = "NetworkMonitorConfigSymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.MU = void 0;
+ b.MU = "QueryStringDataProviderSymbol";
+ }, function (d, b, a) {
+ var k,
+ l;
+ function c(a, b, c, m, f) {
+ this.version = a;
+ this.SI = b;
+ this.OWa = c;
+ this.lk = m;
+ this.Mt = f;
+ this.ss = [];
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.V6 = void 0;
+ k = a(2);
+ l = a(48);
+ c.prototype.load = function (a) {
+ return this.jxb(a);
+ };
+ c.prototype.add = function (a) {
+ this.ss.push(a);
+ return this.Vla();
+ };
+ c.prototype.remove = function (a, b) {
+ a = this.KKa(this.Dq(a, b));
+ return 0 <= a ? (this.ss.splice(a, 1), this.Vla()) : Promise.resolve();
+ };
+ c.prototype.update = function (a, b) {
+ b = this.KKa(this.Dq(a, b));
+ return 0 <= b ? (this.ss[b] = a, this.Vla()) : Promise.resolve();
+ };
+ c.prototype.jxb = function (a) {
+ var b;
+ b = this;
+ this.cPa || (this.cPa = new Promise(function (c, h) {
+ function f(a) {
+ b.Zkb().then(function () {
+ h(a);
+ })["catch"](function () {
+ h(a);
+ });
+ }
+ b.zha().then(function (a) {
+ b.storage = a;
+ return b.storage.load(b.SI);
+ }).then(function (h) {
+ var m;
+ h = h.value;
+ try {
+ m = a(h);
+ b.version = m.version;
+ b.ss = m.data;
+ c();
+ } catch (A) {
+ f(A);
+ }
+ })["catch"](function (a) {
+ a.ja !== k.I.px ? h(a) : c();
+ });
+ }));
+ return this.cPa;
+ };
+ c.prototype.Vla = function () {
+ var a,
+ b,
+ c,
+ m,
+ f;
+ a = this;
+ if (!this.OWa)
+ return Promise.resolve();
+ if (this.T3) {
+ m = new Promise(function (a, f) {
+ b = a;
+ c = f;
+ });
+ f = function () {
+ a.T3 = m;
+ a.NWa().then(function () {
+ b();
+ })["catch"](function (a) {
+ c(a);
+ });
+ };
+ this.T3.then(f)["catch"](f);
+ return m;
+ }
+ return this.T3 = this.NWa();
+ };
+ c.prototype.NWa = function () {
+ var a,
+ b;
+ a = this;
+ b = this.Mt();
+ return new Promise(function (h, m) {
+ a.zha().then(function (c) {
+ return c.save(a.SI, b, !1);
+ }).then(function () {
+ h();
+ })["catch"](function (a) {
+ m(c.aMb(k.J.w5a, a));
+ });
+ });
+ };
+ c.prototype.Zkb = function () {
+ var a;
+ a = this;
+ return this.OWa ? new Promise(function (b, c) {
+ a.zha().then(function (b) {
+ return b.remove(a.SI);
+ }).then(function () {
+ b();
+ })["catch"](function (a) {
+ c(a);
+ });
+ }) : Promise.resolve();
+ };
+ c.prototype.zha = function () {
+ return this.storage ? Promise.resolve(this.storage) : this.lk.create();
+ };
+ c.prototype.Dq = function (a, b) {
+ for (var c = 0; c < this.ss.length; ++c) {
+ if (b(this.ss[c], a))
+ return this.ss[c];
+ }
+ };
+ c.prototype.KKa = function (a) {
+ return a ? this.ss.indexOf(a) : -1;
+ };
+ c.aMb = function (a, b) {
+ var c;
+ if (b.ja && b.cause)
+ return new l.Dc(a, b.ja, void 0, void 0, void 0, void 0, void 0, b.cause);
+ if (void 0 !== b.Nb) {
+ c = (b.message ? b.message + " " : "") + "";
+ b.code = a;
+ b.message = "" === c ? void 0 : c;
+ return b;
+ }
+ return b instanceof Error ? new l.Dc(a, k.I.Df, void 0, void 0, void 0, void 0, b.stack, b) : new l.Dc(a, k.I.nl, void 0, void 0, void 0, void 0, void 0, b);
+ };
+ b.V6 = c;
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.R5 = void 0;
+ b.R5 = "DrmDataFactorySymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.$S = void 0;
+ b.$S = "BrowserInfoSymbol";
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.P8 = void 0;
+ b.P8 = "PlatformConfigOverridesSymbol";
+ }, function (d, b, a) {
+ var l;
+ function c(a, b) {
+ this.Af = b;
+ this.Yv = Math.floor(a);
+ this.display = this.Yv + " " + this.Af.name;
+ }
+ function k(a, b, c) {
+ this.Af = a;
+ this.name = b;
+ this.Kn = c ? c : this;
+ l.Hm(this, "base");
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Wp = b.DL = void 0;
+ l = a(53);
+ k.prototype.vO = function (a) {
+ return this.Af == a.Af;
+ };
+ k.prototype.toJSON = function () {
+ return this.name;
+ };
+ b.DL = k;
+ c.prototype.ca = function (a) {
+ return this.Af.vO(a) ? this.Yv : Math.floor(this.Yv * this.Af.Af / a.Af);
+ };
+ c.prototype.HQ = function (a) {
+ return this.Af.vO(a) ? this.Yv : this.Yv * this.Af.Af / a.Af;
+ };
+ c.prototype.to = function (a) {
+ return new c(this.ca(a), a);
+ };
+ c.prototype.toString = function () {
+ return this.display;
+ };
+ c.prototype.toJSON = function () {
+ return {
+ magnitude: this.Yv,
+ units: this.Af.name
+ };
+ };
+ c.prototype.add = function (a) {
+ return this.UGa(a);
+ };
+ c.prototype.Ib = function (a) {
+ return this.UGa(a, function (a) {
+ return -a;
+ });
+ };
+ c.prototype.scale = function (a) {
+ return new c(this.ca(this.Af.Kn) * a, this.Af.Kn);
+ };
+ c.prototype.Pj = function (a) {
+ return this.ca(this.Af.Kn) - a.ca(this.Af.Kn);
+ };
+ c.prototype.vO = function (a) {
+ return 0 == this.Pj(a);
+ };
+ c.prototype.zOa = function () {
+ return 0 == this.Yv;
+ };
+ c.prototype.fOa = function () {
+ return 0 > this.Yv;
+ };
+ c.prototype.Lvb = function () {
+ return 0 < this.Yv;
+ };
+ c.prototype.UGa = function (a, b) {
+ b = void 0 === b ? function (a) {
+ return a;
+ }
+ : b;
+ return new c(this.ca(this.Af.Kn) + b(a.ca(this.Af.Kn)), this.Af.Kn);
+ };
+ b.Wp = c;
+ }, function (d, b, a) {
+ var l;
+ function c(a) {
+ return function (b) {
+ function c(c) {
+ return null !== c && null !== c.target && c.target.kka(a)(b);
+ }
+ c.pQa = new l.Metadata(a, b);
+ return c;
+ };
+ }
+ function k(a, b) {
+ a = a.pw;
+ return null !== a ? b(a) ? !0 : k(a, b) : !1;
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ d = a(38);
+ l = a(64);
+ b.eYa = k;
+ b.iXa = c;
+ b.QQa = c(d.kx);
+ b.mYa = function (a) {
+ return function (b) {
+ var c;
+ return null !== b ? (c = b.jN[0], "string" === typeof a ? c.xf === a : a === b.jN[0].Mk) : !1;
+ };
+ };
+ }, function (d, b, a) {
+ var c,
+ k;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ c = a(276);
+ k = a(275);
+ d = (function () {
+ function a(a) {
+ this.Pb = a;
+ this.OL = new k.f5(this.Pb);
+ this.I$ = new c.YS(this.Pb);
+ }
+ a.prototype.when = function (a) {
+ return this.OL.when(a);
+ };
+ a.prototype.IS = function () {
+ return this.OL.IS();
+ };
+ a.prototype.et = function (a) {
+ return this.I$.et(a);
+ };
+ return a;
+ })();
+ b.gA = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ c = a(38);
+ k = a(102);
+ l = a(64);
+ r = a(1185);
+ d = (function () {
+ function a(a, b, f, h) {
+ this.id = k.id();
+ this.type = a;
+ this.xf = f;
+ this.name = new r.b6a(b || "");
+ this.Kd = [];
+ a = null;
+ "string" === typeof h ? a = new l.Metadata(c.kx, h) : h instanceof l.Metadata && (a = h);
+ null !== a && this.Kd.push(a);
+ }
+ a.prototype.NMa = function (a) {
+ for (var b = 0, c = this.Kd; b < c.length; b++) {
+ if (c[b].key === a)
+ return !0;
+ }
+ return !1;
+ };
+ a.prototype.isArray = function () {
+ return this.NMa(c.uA);
+ };
+ a.prototype.ryb = function (a) {
+ return this.kka(c.uA)(a);
+ };
+ a.prototype.Tia = function () {
+ return this.NMa(c.kx);
+ };
+ a.prototype.cja = function () {
+ return this.Kd.some(function (a) {
+ return a.key !== c.YK && a.key !== c.uA && a.key !== c.lU && a.key !== c.CL && a.key !== c.kx;
+ });
+ };
+ a.prototype.hOa = function () {
+ return this.kka(c.$wa)(!0);
+ };
+ a.prototype.qrb = function () {
+ return this.Tia() ? this.Kd.filter(function (a) {
+ return a.key === c.kx;
+ })[0] : null;
+ };
+ a.prototype.gqb = function () {
+ return this.cja() ? this.Kd.filter(function (a) {
+ return a.key !== c.YK && a.key !== c.uA && a.key !== c.lU && a.key !== c.CL && a.key !== c.kx;
+ }) : null;
+ };
+ a.prototype.kka = function (a) {
+ var b;
+ b = this;
+ return function (c) {
+ var m;
+ for (var f = 0, h = b.Kd; f < h.length; f++) {
+ m = h[f];
+ if (m.key === a && m.value === c)
+ return !0;
+ }
+ return !1;
+ };
+ };
+ return a;
+ })();
+ b.dV = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ c = a(54);
+ k = a(38);
+ l = a(64);
+ r = a(92);
+ d = (function () {
+ function a(a) {
+ this.i8a = a;
+ }
+ a.prototype.UMb = function () {
+ return this.i8a();
+ };
+ return a;
+ })();
+ b.j7 = d;
+ b.l = function (a) {
+ return function (b, h, f) {
+ var m;
+ if (void 0 === a)
+ throw Error(c.f7a(b.name));
+ m = new l.Metadata(k.YK, a);
+ "number" === typeof f ? r.$D(b, h, f, m) : r.bS(b, h, m);
+ };
+ };
+ }, function (d, b, a) {
+ var c;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ c = a(54);
+ b.sOa = function (a) {
+ return a instanceof RangeError || a.message === c.C6a;
+ };
+ }, function (d, b, a) {
+ var c;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ c = a(38);
+ d = (function () {
+ function a() {}
+ a.prototype.QKa = function (a) {
+ var b;
+ b = Reflect.getMetadata(c.k8, a);
+ a = Reflect.getMetadata(c.iAa, a);
+ return {
+ YGa: b,
+ ZNb: a || ({})
+ };
+ };
+ a.prototype.Prb = function (a) {
+ return Reflect.getMetadata(c.jAa, a) || [];
+ };
+ return a;
+ })();
+ b.T7 = d;
+ }, function (d, b, a) {
+ var c;
+ c = a(523);
+ d.P = function () {
+ return "function" === typeof Object.values ? Object.values : c;
+ };
+ }, function (d, b, a) {
+ var c,
+ k,
+ l;
+ c = a(1201);
+ k = a(1199);
+ l = a(1195)("Object.prototype.propertyIsEnumerable");
+ d.P = function (a) {
+ var b,
+ d;
+ a = k(a);
+ b = [];
+ for (d in a) {
+ c(a, d) && l(a, d) && b.push(a[d]);
+ }
+ return b;
+ };
+ }, function (d) {
+ var b;
+ b = Object.prototype.toString;
+ d.P = function (a) {
+ var c,
+ d;
+ c = b.call(a);
+ d = "[object Arguments]" === c;
+ d || (d = "[object Array]" !== c && null !== a && "object" === typeof a && "number" === typeof a.length && 0 <= a.length && "[object Function]" === b.call(a.callee));
+ return d;
+ };
+ }, function (d, b, a) {
+ var k,
+ l,
+ r,
+ h,
+ p,
+ m;
+ function c(a, b) {
+ var c,
+ f,
+ u,
+ g,
+ H,
+ G;
+ c = 2 < arguments.length ? arguments[2] : {};
+ f = k(b);
+ l && (f = h.call(f, Object.getOwnPropertySymbols(b)));
+ for (var d = 0; d < f.length; d += 1) {
+ u = a;
+ g = f[d];
+ H = b[f[d]];
+ G = c[f[d]];
+ if (!((g in u)) || "function" === typeof G && "[object Function]" === r.call(G) && G())
+ m ? p(u, g, {
+ configurable: !0,
+ enumerable: !1,
+ value: H,
+ writable: !0
+ }) : u[g] = H;
+ }
+ }
+ k = a(1203);
+ g();
+ g();
+ l = "function" === typeof Symbol && "symbol" === typeof Symbol("foo");
+ r = Object.prototype.toString;
+ h = Array.prototype.concat;
+ p = Object.defineProperty;
+ m = p && (function () {
+ var a;
+ a = {};
+ try {
+ p(a, "x", {
+ enumerable: !1,
+ value: a
+ });
+ for (var b in a) {
+ return !1;
+ }
+ return a.x === a;
+ } catch (w) {
+ return !1;
+ }
+ })();
+ c.R0b = !!m;
+ d.P = c;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r,
+ h,
+ p,
+ m;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ c = a(125);
+ k = a(10);
+ d = a(2);
+ l = a(6);
+ r = a(121);
+ h = a(63);
+ b = a(26);
+ p = a(150);
+ l.ba.get(b.Cf).register(d.J.Lua, function (a) {
+ var b,
+ f;
+ b = t._cad_global.videoPreparer;
+ f = t._cad_global.playerPredictionModel;
+ b && t._cad_global.playerPredictionModel && (m = l.ba.get(r.k9).create(f, b.SDb.bind(b)), t._cad_global.prefetchEvents = m, b.Wh.on("deletedCacheItem", function (a) {
+ m.wN(h.sk.mL[a.type], parseInt(a.movieId, 10), a.reason);
+ }), c.yl.addEventListener("cacheEvict", function (a) {
+ m.wN(r.Ne.qk.SK, a.movieId, "ase_cacheEvict");
+ m.wN(r.Ne.qk.MEDIA, a.movieId, "ase_cacheEvict");
+ }), c.yl.addEventListener("flushedBytes", function () {
+ c.yl.yN().forEach(function (a) {
+ m.wN(r.Ne.qk.MEDIA, a.G, "ase_flushedBytes");
+ }, this);
+ }), b.Mp.addEventListener(p.Pr.mXa, function (a) {
+ m.gfb(h.sk.mL[a.type], a.G);
+ }), b.Mp.addEventListener(p.Pr.kXa, function (a) {
+ m.dfb(h.sk.mL[a.type], a.G, a.reason);
+ }), b.Mp.addEventListener(p.Pr.lXa, function (a) {
+ m.ffb(h.sk.mL[a.type], a.G, a.reason);
+ }), b.Mp.addEventListener(p.Pr.nXa, function (a) {
+ m.ifb(h.sk.mL[a.type], a.G, a.reason);
+ }));
+ a(k.pd);
+ });
+ }, function (d, b, a) {
+ var l,
+ r,
+ h,
+ p,
+ m,
+ f,
+ u,
+ g,
+ A,
+ K;
+ function c(a, b) {
+ this.Oi = a;
+ this.Dk = b;
+ }
+ function k(a) {
+ this.u = a;
+ this.reset();
+ }
+ l = a(187);
+ r = a(186);
+ b = a(281);
+ h = a(280).config;
+ p = b.Zpb;
+ m = b.Hpb;
+ f = b.plb;
+ u = b.YAb;
+ g = b.XAb;
+ A = b.WAb;
+ K = b.OJa;
+ k.prototype.constructor = k;
+ k.prototype.reset = function () {
+ this.nDa = void 0;
+ this.cj = [];
+ this.$Ca = this.aDa = !1;
+ };
+ k.prototype.update = function (a, b) {
+ var c;
+ this.cj && (this.cj = this.cj.filter(this.IJb, this));
+ if (!1 === this.aDa) {
+ c = p(a.Da).slice(0, h.NHa);
+ 0 < c.length && (this.ZC(c, r.Wt.Cj), this.aDa = !0, this.cj = this.jE(c.concat(this.cj)));
+ }
+ !1 === this.$Ca && (c = m(a.Da).slice(0, h.NHa), 0 < c.length && (this.ZC(c, r.Wt.Cj), this.$Ca = !0, this.cj = this.jE(c.concat(this.cj))));
+ switch (b) {
+ case r.Tt.Rta:
+ b = this.ktb(a);
+ break;
+ case r.Tt.mza:
+ b = this.utb(a);
+ break;
+ case r.Tt.UU:
+ b = this.vtb(a);
+ break;
+ case r.Tt.iL:
+ b = this.qtb(a);
+ break;
+ default:
+ b = this.htb(a);
+ }
+ this.nDa = a;
+ return b;
+ };
+ k.prototype.ktb = function (a) {
+ a = u(a.Da, h.WUa, h.QGa);
+ this.ZC(a, r.Wt.Cj);
+ return this.cj = this.jE(this.cj.concat(a));
+ };
+ k.prototype.utb = function (a) {
+ var b,
+ c;
+ this.u.log("handleScrollHorizontal");
+ b = a.Da;
+ a = u(b, h.YUa, h.RGa);
+ c = f(b, this.nDa.Da);
+ b = b[c].list.slice(0, h.jHb);
+ b.concat(a);
+ this.ZC(b, r.Wt.T9);
+ return this.jE(b.concat(this.cj));
+ };
+ k.prototype.ZC = function (a, b) {
+ a.forEach(function (a) {
+ if (void 0 === a.hy || a.hy < b)
+ a.hy = b;
+ void 0 === a.RJ && (a.RJ = l());
+ void 0 === a.Vj && (a.Vj = l());
+ });
+ };
+ k.prototype.vtb = function (a) {
+ this.u.log("handleSearch");
+ a = g(a.Da, h.FHb);
+ this.ZC(a, r.Wt.pza);
+ this.cj = a.concat(this.cj);
+ return this.cj = this.jE(this.cj);
+ };
+ k.prototype.qtb = function (a) {
+ var b,
+ f,
+ d,
+ m,
+ k;
+ this.u.log("handlePlayFocus: ", h.hP);
+ b = a.direction;
+ f = a.Da;
+ a = [];
+ d = K(f);
+ if (void 0 !== d.Oi)
+ switch ((a.push(d), b)) {
+ case r.Kr.aza:
+ for (b = 1; b < h.hP; b++) {
+ a.push(new c(d.Oi, d.Dk + b));
+ }
+ a.push(new c(d.Oi - 1, d.Dk));
+ a.push(new c(d.Oi + 1, d.Dk));
+ break;
+ case r.Kr.ova:
+ for (b = 1; b < h.hP; b++) {
+ a.push(new c(d.Oi, d.Dk - b));
+ }
+ a.push(new c(d.Oi - 1, d.Dk));
+ a.push(new c(d.Oi + 1, d.Dk));
+ break;
+ case r.Kr.i7a:
+ a.push(new c(d.Oi - 1, d.Dk));
+ for (b = 1; b <= h.hP / 2; b++) {
+ a.push(new c(d.Oi, d.Dk + b));
+ a.push(new c(d.Oi, d.Dk - b));
+ }
+ break;
+ case r.Kr.F1a:
+ for ((a.push(new c(d.Oi + 1, d.Dk)), b = 1); b <= h.hP / 2; b++) {
+ a.push(new c(d.Oi, d.Dk + b));
+ a.push(new c(d.Oi, d.Dk - b));
+ }
+ }
+ m = [];
+ a.forEach(function (a) {
+ k = A(f, a.Oi, a.Dk);
+ void 0 !== k && m.push(k);
+ });
+ this.ZC(m, r.Wt.T9);
+ return this.jE(m.concat(this.cj));
+ };
+ k.prototype.htb = function (a) {
+ this.u.log("ModelOne: handleDefaultCase");
+ a = u(a.Da, h.YUa, h.RGa);
+ this.ZC(a, r.Wt.T9);
+ return this.jE(a.concat(this.cj));
+ };
+ k.prototype.IJb = function (a) {
+ return a.hy == r.Wt.Cj | a.hy == r.Wt.pza & l() - a.RJ < h.Ytb;
+ };
+ k.prototype.jE = function (a) {
+ var b,
+ c,
+ f,
+ h,
+ d,
+ m,
+ k;
+ b = [];
+ c = {};
+ m = 0;
+ k = a.length;
+ for (d = 0; d < k; d++) {
+ f = a[d].ma;
+ h = a[d];
+ !1 === (f in c) ? (b.push(h), c[f] = m, m++) : (f = b[c[f]], h.Vj < f.Vj && (f.Vj = h.Vj), h.hy > f.hy && (f.hy = h.hy), h.RJ > f.RJ && (f.RJ = h.RJ));
+ }
+ return b;
+ };
+ d.P = k;
+ }, function (d, b, a) {
+ var r,
+ h,
+ p,
+ m,
+ f,
+ u,
+ g;
+ function c(a, b, c, f, h, d) {
+ this.G = this.ma = a;
+ this.Ld = b;
+ this.Oc = c;
+ d && d.we && (this.we = d.we);
+ void 0 !== f && (this.nD = f);
+ this.Vj = h;
+ this.gb = d;
+ }
+ function k(a, b, c, f, h) {
+ p(void 0 !== f, "video preparer is null");
+ p(void 0 !== h, "ui preparer is null");
+ this.u = b || console;
+ this.u = b;
+ this.Kb = c;
+ this.Cbb = f;
+ this.vbb = h;
+ this.lDa = u.oma;
+ this.fG = [];
+ this.xba = !1;
+ this.Go = 0;
+ new g().on(u, "changed", l, this);
+ this.reset();
+ }
+ function l() {
+ this.u.log("config changed");
+ u.oma && (this.lDa = u.oma);
+ u.eQ !== this.PF && (this.reset(), this.wGb());
+ }
+ r = a(187);
+ h = a(186);
+ b = a(281);
+ p = b.assert;
+ m = b.OJa;
+ f = a(527);
+ u = a(280).config;
+ g = a(106).Wi;
+ u.declare({
+ oma: ["ppmConfig", {
+ iQb: {
+ yRa: 0,
+ xRa: 2,
+ vRa: 0,
+ wRa: 5,
+ bWa: 0
+ },
+ rVb: {
+ yRa: 0,
+ xRa: 1,
+ vRa: 0,
+ wRa: 3,
+ bWa: 1E3
+ },
+ xQb: {
+ yRa: 0,
+ xRa: 1,
+ vRa: 0,
+ wRa: 3,
+ bWa: 1E3
+ }
+ }
+ ]
+ });
+ k.prototype.constructor = k;
+ k.prototype.reset = function () {
+ this.maa = !0;
+ this.PF = u.eQ;
+ this.u.log("create model: " + u.eQ, u.WUa, u.QGa);
+ switch (u.eQ) {
+ case "modelone":
+ this.PF = new f(this.u);
+ break;
+ default:
+ this.PF = new f(this.u);
+ }
+ };
+ k.prototype.wGb = function () {
+ var b,
+ c;
+ if (!1 === this.xba) {
+ this.xba = !0;
+ for (var a = 0; a < this.fG.length; a++) {
+ this.u.log("PlayPredictionModel replay: ", JSON.stringify(this.fG[a]));
+ b = this.qHa(this.fG[a]);
+ c = this.wKa(b);
+ this.PF.update(b, c);
+ this.maa = !1;
+ }
+ this.fG = [];
+ }
+ };
+ k.prototype.update = function (a) {
+ var b,
+ c,
+ f;
+ this.u.log("PlayPredictionModel update: ", JSON.stringify(a));
+ if (a && a.Da && a.Da[0]) {
+ !1 === this.xba && this.fG.length < u.Ayb && this.fG.push(a);
+ b = this.qHa(a);
+ c = this.wKa(b);
+ this.u.log("actionType", c);
+ b = "mlmodel" == u.eQ ? this.PF.update(a, c) : this.PF.update(b, c);
+ b = this.hpb(b, u.ewb || 1);
+ this.u.log("PlayPredictionModel.prototype.update() - returnedList: ", JSON.stringify(b));
+ 0 === this.Go && (this.Go = r(), this.Kb && this.Kb.eR && this.Kb.eR({
+ AY: this.Go
+ }));
+ if (this.Kb && this.Kb.vUa) {
+ f = {
+ AY: this.Go,
+ offset: this.TZ(),
+ eTa: []
+ };
+ b.forEach(function (a) {
+ f.eTa.push({
+ pr: a.ma
+ });
+ });
+ f.$Sa = JSON.stringify(a);
+ f.aTa = JSON.stringify(b);
+ this.Kb.vUa(f);
+ }
+ this.Cbb.ww(b);
+ this.vbb.ww(b);
+ this.maa = !1;
+ }
+ };
+ k.prototype.OGb = function () {
+ this.Go = 0;
+ };
+ k.prototype.TZ = function () {
+ return r() - this.Go;
+ };
+ k.prototype.eR = function () {
+ this.Go = r();
+ this.Kb && this.Kb.eR && this.Kb.eR({
+ AY: this.Go
+ });
+ };
+ k.prototype.qHa = function (a) {
+ var b,
+ c,
+ f,
+ d,
+ m;
+ b = {};
+ d = a.Da || [];
+ m = (function (a) {
+ var d,
+ m;
+ d = {};
+ c = h.$K.name.indexOf(a.context);
+ d.context = 0 <= c ? c : h.$K.hu;
+ d.rowIndex = a.rowIndex;
+ d.requestId = a.requestId;
+ d.list = [];
+ f = a.list || [];
+ f.forEach((function (a) {
+ m = {
+ ma: a.ma,
+ Oc: a.Oc,
+ index: a.index,
+ nD: a.nD,
+ YI: a.YI,
+ list: a.list,
+ gb: a.gb
+ };
+ void 0 !== a.property && (c = h.IE.name.indexOf(a.property), m.property = 0 <= c ? c : h.IE.hu);
+ d.list.push(m);
+ }).bind(this));
+ b.Da.push(d);
+ }).bind(this);
+ void 0 !== a.direction && (c = h.Kr.name.indexOf(a.direction), b.direction = 0 <= c ? c : h.Kr.hu);
+ void 0 !== a.CO && (b.rYb = a.CO.rowIndex, b.qYb = a.CO.Lgb);
+ b.CO = a.CO;
+ b.Da = [];
+ d.forEach(m);
+ return b;
+ };
+ k.prototype.wKa = function (a) {
+ var b,
+ c,
+ f;
+ b = a.direction || h.Kr.hu;
+ c = a.CO;
+ f = a.Da || [];
+ !0 === this.maa ? a = h.Tt.Rta : !0 === f.some(this.Jtb) ? (a = h.Tt.iL, this.P2(f, b, c)) : a = f[0].context === h.$K.UU ? h.Tt.UU : b === h.Kr.aza || b === h.Kr.ova ? h.Tt.mza : h.Tt.hu;
+ return a;
+ };
+ k.prototype.Jtb = function (a) {
+ return (a.list || []).some(function (a) {
+ return a.property === h.IE.iL || a.property === h.IE.Asa;
+ });
+ };
+ k.prototype.P2 = function (a, b, c) {
+ var f,
+ d;
+ this.u.log("reportPlayFocusEvent: ", b, c);
+ f = {};
+ d = m(a);
+ this.Kb && this.Kb.P2 && (f.hYb = r(), f.direction = h.Kr.name[b], c && (f.rowIndex = c.rowIndex, f.xda = c.Lgb), void 0 !== d.Oi && (f.requestId = a[d.Oi].requestId), this.Kb.P2 && this.Kb.P2(f));
+ };
+ k.prototype.hpb = function (a, b) {
+ for (var c = a.length, f = [], h, d, m, k, p = 0; p < c; p++) {
+ d = a[p];
+ h = Math.floor(p / b) + 1;
+ if (void 0 !== d.list) {
+ m = d.list;
+ k = m.length;
+ for (var l = 0; l < Math.min(u.Jgb, k) && !(m[l].Vj = d.Vj, this.tEa(m[l], h, f), f.length >= u.aQa); l++) { ;
+ }
+ } else
+ this.tEa(d, h, f);
+ if (f.length >= u.aQa)
+ break;
+ }
+ return f;
+ };
+ k.prototype.tEa = function (a, b, f) {
+ var d,
+ m;
+ function h(a) {
+ a.we && (a.gb || (a.gb = {}), a.gb.we = a.we);
+ return a.gb;
+ }
+ d = a.YI;
+ void 0 !== d && d instanceof Array ? d.forEach(function (d) {
+ void 0 !== d.ma && (m = h(d), f.push(new c(d.ma, b, d.Oc, d.nD, a.Vj, m)));
+ }) : void 0 !== d && void 0 !== d.ma && (d = a.YI, m = h(d), f.push(new c(d.ma, b, d.Oc, d.nD, a.Vj, m)));
+ void 0 !== a.ma && (m = h(a), f.push(new c(a.ma, b, a.Oc, a.nD, a.Vj, m)));
+ };
+ k.prototype.Ay = function (a) {
+ var b;
+ b = this.lDa;
+ return a ? b[a] : b;
+ };
+ d.P = k;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ c = a(12);
+ k = a(10);
+ d = a(2);
+ l = a(6);
+ b = a(26);
+ l.ba.get(b.Cf).register(d.J.Mua, function (b) {
+ var h,
+ d;
+ if (c.config.pDb) {
+ h = l.Fh("PlayerPredictionModel");
+ t._cad_global.videoPreparer || (h.error("videoPreparer is not defined"), b(k.pd));
+ d = a(528);
+ h.log = h.trace.bind(h);
+ r = new d({}, h, {
+ eR: function (a) {
+ t._cad_global.prefetchEvents.nlb(a.AY);
+ },
+ vUa: function (a) {
+ t._cad_global.prefetchEvents.UDb(a);
+ }
+ }, t._cad_global.videoPreparer, {
+ ww: function () {}
+ });
+ t._cad_global.playerPredictionModel = r;
+ h.info("ppm v2 initialized");
+ }
+ b(k.pd);
+ });
+ }, function (d) {
+ d.P = {
+ xy: {
+ xa: 12E5,
+ DP: 9E5,
+ Kd: 12E5
+ },
+ gy: {
+ xa: 10,
+ DP: 10,
+ Kd: 10
+ },
+ fy: {
+ xa: 10240,
+ DP: 10240,
+ Kd: 10240
+ }
+ };
+ }, function (d) {
+ function b(a) {
+ var b;
+ b = [];
+ return (function l(a) {
+ if (a && "object" === typeof a) {
+ if (-1 !== b.indexOf(a))
+ return !0;
+ b.push(a);
+ for (var c in a) {
+ if (a.hasOwnProperty(c) && l(a[c]))
+ return !0;
+ }
+ }
+ return !1;
+ })(a);
+ }
+ d.P = function (a, c) {
+ var l;
+ if (c && b(a))
+ return -1;
+ c = [];
+ a = [a];
+ for (var d = 0; a.length; ) {
+ l = a.pop();
+ if ("boolean" === typeof l)
+ d += 4;
+ else if ("string" === typeof l)
+ d += 2 * l.length;
+ else if ("number" === typeof l)
+ d += 8;
+ else if ("object" === typeof l && -1 === c.indexOf(l)) {
+ c.push(l);
+ for (var r in l) {
+ a.push(l[r]);
+ }
+ }
+ }
+ return d;
+ };
+ }, function (d, b, a) {
+ var h,
+ p;
+ function c() {
+ return Object.create(null);
+ }
+ function k(a) {
+ this.log = a.log;
+ this.Aa = a.Aa;
+ this.$C = c();
+ this.Promise = a.Promise;
+ this.hv = a.hv;
+ this.Rpa = a.Rpa;
+ this.Xc = a.Xc || !1;
+ this.xy = c();
+ this.gy = c();
+ this.fy = c();
+ this.$ab(a);
+ a.oH && (this.oH = a.oH, h(this.oH, k.prototype));
+ }
+ function l(a) {
+ return "undefined" !== typeof a;
+ }
+ function r(a) {
+ var h;
+ for (var b = 0, c = arguments.length; b < c; ) {
+ h = arguments[b++];
+ if (l(h))
+ return h;
+ }
+ }
+ h = a(60);
+ a(531);
+ p = a(530);
+ k.prototype.$ab = function (a) {
+ this.xy.manifest = r(a.Efa, p.xy.xa);
+ this.xy.ldl = r(a.Dfa, p.xy.DP);
+ this.xy.metadata = r(a.jYb, p.xy.Kd);
+ this.gy.manifest = r(a.Vca, p.gy.xa);
+ this.gy.ldl = r(a.Uca, p.gy.DP);
+ this.gy.metadata = r(a.bXb, p.gy.Kd);
+ this.fy.manifest = r(a.$Wb, p.fy.xa);
+ this.fy.ldl = r(a.ZWb, p.fy.DP);
+ this.fy.metadata = r(a.aXb, p.fy.Kd);
+ };
+ k.prototype.z_ = function (a, b, c) {
+ this.Gk("undefined" !== typeof a);
+ this.Gk("undefined" !== typeof b);
+ return !!this.cCa(a, b, c).value;
+ };
+ k.prototype.cCa = function (a, b, c) {
+ var f,
+ h;
+ f = {
+ value: null,
+ reason: "",
+ log: ""
+ };
+ h = this.$C[b];
+ if ("undefined" === typeof h)
+ return (f.log = "cache miss: no data exists for field:" + b, f.reason = "unavailable", f);
+ "undefined" === typeof h[a] ? (f.log = "cache miss: no data exists for movieId:" + a, f.reason = "unavailable") : (c = h[a][c ? c : "DEFAULTCAPS"]) && c.value ? this.h0(b, c.Yh) ? (f.log = "cache miss: " + b + " data expired for movieId:" + a, f.reason = "expired") : (f.log = this.Promise && c.value instanceof this.Promise ? "cache hit: " + b + " request in flight for movieId:" + a : "cache hit: " + b + " available for movieId:" + a, f.value = c.value) : (f.log = "cache miss: " + b + " data not available for movieId:" + a, f.reason = "unavailable");
+ return f;
+ };
+ k.prototype.getData = function (a, b, c) {
+ this.Gk("undefined" !== typeof a);
+ this.Gk("undefined" !== typeof b);
+ a = this.cCa(a, b, c);
+ this.log.trace(a.log);
+ return a.value ? this.Promise ? a.value instanceof this.Promise ? a.value : Promise.resolve(a.value) : this.Rpa ? JSON.parse(this.Rpa(a.value, "gzip", !1)) : a.value : this.Promise ? Promise.reject(a.reason) : a.reason;
+ };
+ k.prototype.setData = function (a, b, h, d, k) {
+ var f;
+ this.Gk("undefined" !== typeof a);
+ this.Gk("undefined" !== typeof b);
+ f = this.$C;
+ k = k ? k : "DEFAULTCAPS";
+ f[b] || (f[b] = c(), Object.defineProperty(f[b], "numEntries", {
+ enumerable: !1,
+ configurable: !0,
+ writable: !0,
+ value: 0
+ }), Object.defineProperty(f[b], "size", {
+ enumerable: !1,
+ configurable: !0,
+ writable: !0,
+ value: 0
+ }));
+ h = this.hv ? this.hv(JSON.stringify(h), "gzip", !0) : h;
+ f = f[b];
+ this.Q9a(a, b, k, f);
+ b = {
+ Yh: this.Aa.getTime(),
+ value: h,
+ size: 0,
+ type: b,
+ Dea: d
+ };
+ f[a] = f[a] || c();
+ f[a][k] = f[a][k] || c();
+ f[a][k] = b;
+ f.size += 0;
+ f.numEntries++;
+ this.oH && this.emit("addedCacheItem", b);
+ return b;
+ };
+ k.prototype.Q9a = function (a, b, c, h) {
+ var f,
+ d,
+ m,
+ k,
+ p,
+ l,
+ u,
+ r,
+ g;
+ f = this;
+ d = h.numEntries;
+ m = this.gy[b];
+ l = h[a] && h[a][c];
+ if (l && l.value)
+ (k = a, p = "promise_or_expired");
+ else if (d >= m) {
+ r = Number.POSITIVE_INFINITY;
+ Object.keys(h).every(function (a) {
+ var d;
+ d = h[a] && h[a][c];
+ d && d.value && f.h0(b, d.Yh) && (g = a);
+ d && d.value && d.Yh < r && (r = d.Yh, u = a);
+ return !0;
+ });
+ k = g || u;
+ p = "cache_full";
+ }
+ this.Xc && this.log.debug("makespace ", {
+ maxCount: m,
+ currentCount: h.numEntries,
+ field: b,
+ movieId: a,
+ movieToBeRemoved: k
+ });
+ k && (f.clearData(k, b, c, void 0, p), this.log.debug("removed from cache: ", k, b));
+ };
+ k.prototype.nda = function (a, b) {
+ var c,
+ f;
+ c = this;
+ c.Gk("undefined" !== typeof a);
+ f = a + "";
+ b.forEach(function (a) {
+ var b;
+ b = c.$C[a];
+ b && Object.keys(b).forEach(function (b) {
+ b != f && c.clearData(b, a, void 0, void 0, "clear_all");
+ });
+ });
+ };
+ k.prototype.clearData = function (a, b, c, h, d) {
+ var f;
+ this.Gk("undefined" !== typeof a);
+ this.Gk("undefined" !== typeof b);
+ f = this.$C[b];
+ b = f ? f[a] : void 0;
+ c = c ? c : "DEFAULTCAPS";
+ if (b && b[c]) {
+ f.size -= b[c].size;
+ f.numEntries--;
+ if (f = b && b[c])
+ (b[c] = void 0, !h && f.Dea && f.Dea());
+ this.oH && (a = {
+ creationTime: f.Yh,
+ destroyFn: f.Dea,
+ size: f.size,
+ type: f.type,
+ value: f.value,
+ reason: d,
+ movieId: a
+ }, this.emit("deletedCacheItem", a));
+ }
+ };
+ k.prototype.flush = function (a) {
+ var b;
+ this.Gk("undefined" !== typeof a);
+ b = this.$C;
+ b[a] = c();
+ b[a].numEntries = 0;
+ b[a].size = 0;
+ };
+ k.prototype.h0 = function (a, b) {
+ return this.Aa.getTime() - b > this.xy[a];
+ };
+ k.prototype.getStats = function (a, b, c) {
+ var f,
+ h,
+ d,
+ m,
+ k;
+ f = {};
+ h = this;
+ d = h.$C;
+ m = l(a) && l(b);
+ k = c || "DEFAULTCAPS";
+ Object.keys(d).forEach(function (c) {
+ var p,
+ u;
+ p = Object.keys(d[c]);
+ u = d[c];
+ p.forEach(function (d) {
+ !(d = u && u[d] && u[d][k]) || !l(d.value) || d.value instanceof this.Promise || (f[c] = (f[c] | 0) + 1, h.h0(d.type, d.Yh) && (f[c + "_expired"] = (f[c + "_expired"] | 0) + 1), m && d.Yh >= a && d.Yh < b && (f[c + "_delta"] = (f[c + "_delta"] | 0) + 1));
+ });
+ });
+ return f;
+ };
+ k.prototype.Wc = function (a) {
+ var b,
+ c,
+ h,
+ d;
+ b = [];
+ c = this;
+ h = c.$C;
+ d = a || "DEFAULTCAPS";
+ Object.keys(h).forEach(function (a) {
+ var f,
+ m;
+ f = Object.keys(h[a]);
+ m = h[a];
+ f.forEach(function (f) {
+ var h,
+ k;
+ h = m && m[f] && m[f][d];
+ h && l(h.value) && (k = c.h0(h.type, h.Yh) ? "expired" : h.value instanceof this.Promise ? "loading" : "cached", b.push({
+ movieId: f,
+ state: k,
+ type: a,
+ size: h.size
+ }));
+ });
+ });
+ return b;
+ };
+ k.prototype.qoa = function (a, b) {
+ this.Gk("undefined" !== typeof a);
+ this.Gk("undefined" !== typeof b);
+ this.fy[a] = b;
+ };
+ k.prototype.Gk = function (a) {
+ if (!a && (this.log.error("Debug Assert Failed for"), this.Xc))
+ throw Error("Debug Assert Failed ");
+ };
+ d.P = k;
+ }, function (d, b, a) {
+ var k,
+ l;
+ function c(a, b, c, d, f, u, g, A) {
+ this.G = a;
+ this.Ld = b;
+ this.type = c;
+ this.sm = d;
+ this.KCb = void 0 === f ? !1 : f;
+ this.Jg = u;
+ this.lRa = A;
+ this.id = ++l;
+ this.status = k.Oe.sm;
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.sL = void 0;
+ k = a(153);
+ l = 0;
+ c.prototype.Fq = function () {
+ var a;
+ a = {
+ id: this.id,
+ type: this.type,
+ created: this.sm,
+ status: this.status,
+ movieId: this.G
+ };
+ this.startTime && (a.startTime = this.startTime);
+ this.endTime && this.startTime && (a.duration = this.endTime - this.startTime, a.endTime = this.endTime);
+ return a;
+ };
+ c.prototype.dt = function (a) {
+ this.lRa && this.lRa(a);
+ };
+ b.sL = c;
+ }, function (d, b, a) {
+ var k,
+ l,
+ r,
+ h,
+ p,
+ m,
+ f,
+ u,
+ g,
+ A,
+ K;
+ function c(a) {
+ this.log = a.log;
+ this.Aa = a.Aa;
+ this.Xga = a.Xga;
+ this.b_ = a.b_;
+ this.a_ = a.a_;
+ this.DH = a.DH;
+ this.Vv = a.Vv;
+ this.dO = a.dO;
+ this.jc = a.jc;
+ this.config = this.jc.get(h.fd)();
+ this.fO = a.fO;
+ this.eO = a.eO;
+ this.sqa = a.sqa;
+ this.Bla = a.Bla;
+ this.Cla = a.Cla;
+ this.rQ = a.rQ;
+ this.Iga = a.Iga;
+ this.Xc = a.Xc || !1;
+ this.Aba = {};
+ this.lW = {};
+ this.LW = {
+ num_of_calls: 0,
+ num_of_movies: 0
+ };
+ this.hda = a.hda;
+ this.Wka = a.Wka;
+ this.rpb = a.rpb;
+ this.wga = a.wga;
+ this.Wh = new u({
+ log: this.log,
+ Aa: this.Aa,
+ Promise: Promise,
+ Xc: this.Xc,
+ Vca: a.Vca,
+ Uca: a.Uca,
+ Efa: a.Efa,
+ Dfa: a.Dfa,
+ oH: g
+ });
+ this.Mp = p.ba.get(m.l9);
+ this.Dq = this.Wh.getData.bind(this.Wh);
+ this.Ez = this.Wh.setData.bind(this.Wh);
+ this.x_ = this.Wh.z_.bind(this.Wh);
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.XAa = void 0;
+ d = a(185);
+ k = a(259);
+ l = a(482);
+ r = a(121);
+ h = a(14);
+ p = a(6);
+ m = a(150);
+ f = a(533);
+ u = a(532);
+ g = a(106).EventEmitter;
+ A = d.ax;
+ K = new l.l$(A, new k.XS());
+ b.XAa = c;
+ c.prototype.JKa = function (a) {
+ var b;
+ b = this.Wh.getData(a, "ldl");
+ this.Wh.clearData(a, "ldl", void 0, !0);
+ return b;
+ };
+ c.prototype.ww = function (a, b) {
+ var c,
+ f,
+ h;
+ c = this;
+ a = a.map(function (a) {
+ a.gb = a.gb || ({
+ eN: {
+ FSa: !1
+ },
+ li: 0
+ });
+ A.ZB(a.gb.li) || (a.gb.li = 0);
+ A.ZB(a.Oc) && (a.gb.T = a.Oc);
+ return a;
+ });
+ f = a.map(function (a) {
+ return c.KBa(a, b);
+ }).reduce(function (a, b) {
+ return a.concat(b);
+ }, []);
+ h = f.map(function (a) {
+ return a.G + "-" + a.type;
+ });
+ this.log.trace("prepare tasks", h);
+ this.Mp.yEa(f);
+ this.LW.num_of_calls++;
+ this.LW.num_of_movies += a.length;
+ };
+ c.prototype.ODb = function (a, b) {
+ var c,
+ f,
+ h;
+ c = this;
+ f = a.map(function (a) {
+ return a.G + "";
+ });
+ a = a.map(function (a) {
+ a.gb = a.gb || ({
+ eN: {
+ FSa: !1
+ },
+ li: 0
+ });
+ a.gb.Le = !0;
+ a.gb.GQa = f;
+ return c.KBa(a, b);
+ }).reduce(function (a, b) {
+ return a.concat(b);
+ }, []);
+ h = a.map(function (a) {
+ return a.G + "-" + a.type;
+ });
+ this.log.trace("predownload tasks", h);
+ this.Mp.yEa(a);
+ };
+ c.prototype.qNb = function (a, b) {
+ this.lW[a] || (this.lW[a] = {});
+ a = this.lW[a];
+ a.hTa = (a.hTa | 0) + 1;
+ a.Vj = b;
+ };
+ c.prototype.getStats = function (a, b, c) {
+ var f;
+ f = c && this.lW[c] || ({});
+ f.Oz = this.Mp.getStats(a, b, c);
+ f.cache = this.Wh.getStats(a, b);
+ f.rKa = K.YC(this.Iga(), this.LW);
+ return f || ({});
+ };
+ c.prototype.KBa = function (a, b) {
+ var c,
+ h,
+ d,
+ m,
+ k;
+ a.we && (a.gb.we = a.we);
+ c = [];
+ h = a.G;
+ d = !!a.gb.Le;
+ this.qNb(h, a.Vj);
+ if (this.Wh.z_(h, "manifest"))
+ this.log.trace("manifest exists in cache for " + h);
+ else {
+ k = new f.sL(h, a.Ld, "manifest", this.Aa.getTime(), d, this.Xga.bind(this, h, a), void 0, b);
+ m = k.id;
+ c.push(k);
+ }
+ this.b_ && (this.Wh.z_(h, "ldl") ? this.Xc && this.log.trace("ldl exists in cache for " + h) : (k = new f.sL(h, a.Ld, "ldl", this.Aa.getTime(), d, this.b_.bind(this, h, a), m, b), c.push(k)));
+ this.a_ && this.DH && this.hda() && (this.Wka(h) ? this.Xc && this.log.trace("headers/media exists in cache for " + h) : (h = new f.sL(a.G, a.Ld, "getHeaders", this.Aa.getTime(), d, this.a_.bind(this, a.G, a), m, b), c.push(h), a = new f.sL(a.G, a.Ld, "getMedia", this.Aa.getTime(), d, this.DH.bind(this, a.G, a), m, b), c.push(a)));
+ return c;
+ };
+ c.prototype.ttb = function (a) {
+ this.Cla(a);
+ };
+ c.prototype.stb = function (a) {
+ this.log.trace("task scheduler paused on playback created");
+ this.Mp.pause();
+ this.fO && this.Wh.nda(a, ["manifest"]);
+ this.eO && this.Wh.nda(a, ["ldl"]);
+ this.Bla(a);
+ };
+ c.prototype.CMa = function () {
+ this.log.info("track changed, clearing all manifests from cache");
+ this.Wh.nda("none", ["manifest"]);
+ };
+ c.prototype.rtb = function (a) {
+ var b;
+ b = this;
+ this.dO ? this.Wh.clearData(a, "manifest") : this.Wh.z_(a, "manifest") && this.Wh.getData(a, "manifest").then(function (c) {
+ c.isSupplemental || b.Wh.clearData(a, "manifest");
+ }, function (c) {
+ b.log.warn("Failed to get manifest for movieId [" + a + "] from cacheManager.", c);
+ });
+ this.tda(a);
+ this.rQ();
+ };
+ c.prototype.tda = function (a) {
+ this.Aba[a] = void 0;
+ };
+ c.prototype.p_ = function (a) {
+ return this.Aba[a];
+ };
+ c.prototype.IHa = function (a) {
+ return this.Aba[a] = this.sqa();
+ };
+ c.prototype.SDb = function () {
+ var a;
+ a = [];
+ a = this.Wh.Wc().map(function (a) {
+ return {
+ pr: parseInt(a.movieId, 10),
+ state: a.state,
+ Su: a.type,
+ size: a.size || void 0
+ };
+ });
+ this.wga().map(function (b) {
+ 2 === b.Lq ? a.push({
+ pr: b.G,
+ state: "cached",
+ Su: r.Ne.qk.SK,
+ size: void 0
+ }) : b.Bob && !b.Cwb && a.push({
+ pr: b.G,
+ state: "loading",
+ Su: r.Ne.qk.SK,
+ size: void 0
+ });
+ b.fZa && 0 < b.fZa && b.qFa && 0 < b.qFa ? a.push({
+ pr: b.G,
+ state: "cached",
+ Su: r.Ne.qk.MEDIA,
+ size: void 0
+ }) : b.KDb && !b.JDb && a.push({
+ pr: b.G,
+ state: "loading",
+ Su: r.Ne.qk.MEDIA,
+ size: void 0
+ });
+ });
+ return a;
+ };
+ c.prototype.QNa = function (a) {
+ return a && 0 <= a.indexOf("billboard");
+ };
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r,
+ h,
+ p,
+ m,
+ f,
+ u,
+ g,
+ A,
+ K,
+ C,
+ M,
+ H,
+ G,
+ n,
+ q,
+ aa,
+ Z,
+ B,
+ V,
+ fa,
+ ia,
+ Y,
+ pa;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ c = a(57);
+ k = a(125);
+ l = a(12);
+ r = a(10);
+ h = a(39);
+ d = a(2);
+ p = a(6);
+ m = a(21);
+ f = a(247);
+ u = a(3);
+ g = a(88);
+ A = a(120);
+ K = a(114);
+ C = a(63);
+ M = a(190);
+ H = a(23);
+ G = a(32);
+ n = a(534);
+ q = a(103);
+ aa = a(152);
+ Z = a(47);
+ B = a(62);
+ b = a(26);
+ V = a(119);
+ fa = a(172);
+ ia = a(273);
+ Y = a(153);
+ p.ba.get(b.Cf).register(d.J.Qua, function (a) {
+ var X,
+ ya,
+ za,
+ ma,
+ z,
+ E,
+ $a,
+ N,
+ Ba,
+ R,
+ Q,
+ U,
+ Fa,
+ W;
+ function b() {
+ var a,
+ b,
+ c;
+ if (l.config.Ap) {
+ a = {};
+ a.trigger = C.sk.S5a.u5a;
+ b = X.getTime();
+ c = pa.getStats(Fa, b);
+ a.startoffset = Fa;
+ Fa = a.endoffset = b;
+ a.cache = JSON.stringify(c.cache);
+ a.tasks = JSON.stringify(c.Oz);
+ a.general = JSON.stringify(c.rKa);
+ b = p.ba.get(Z.uk);
+ a = p.ba.get(B.zo).Mn("prepare", "info", a);
+ b.Ic(a);
+ }
+ }
+ function d(a, b, c) {
+ var f,
+ h;
+ h = a.Ow;
+ h && h.length && h[0].pc && h[0].pc.length && (f = h[0].pc[0].KN);
+ h = l.Hda(b.we);
+ f = l.Gda(!!a.qq, !1, f);
+ f = k.Uc.$o(Object.assign(Object.assign({}, h), f));
+ return {
+ G: c,
+ Ld: 0,
+ erb: function () {
+ return {
+ xa: a,
+ Kf: !1,
+ BB: a.eIa[0].BB
+ };
+ },
+ config: f,
+ Le: !!b.Le,
+ GQa: b.GQa
+ };
+ }
+ function w(a, b, c) {
+ pa.Dq(a, "ldl").then(function (a) {
+ c(null, a);
+ })["catch"](function (f) {
+ E.trace("ldl not available in cache", {
+ reason: f
+ });
+ pa.Dq(a, "manifest").then(function (f) {
+ var d,
+ m,
+ k,
+ u,
+ r;
+ function h(b) {
+ E.warn("ldl is now invalid", b);
+ r.close();
+ pa.Ez(a, "ldl", void 0);
+ pa.tda(a);
+ }
+ d = f.Wf;
+ if (pa.x_(a, "ldl"))
+ c({
+ status: Y.Oe.gj
+ });
+ else if (d.C_) {
+ if (l.config.yIa && $a && $a !== a && !b.force)
+ c({
+ status: Y.Oe.LX
+ });
+ else if (l.config.zIa && N && N !== a && !b.force)
+ c({
+ status: Y.Oe.zN
+ });
+ else {
+ $a && $a !== a && (Ba[a] = (Ba[a] | 0) + 1);
+ N && N !== a && (R[a] = (R[a] | 0) + 1);
+ m = d.Ow[0].ZI;
+ k = d.Ow[0].Xea;
+ u = (m ? m : [k]).map(function (a) {
+ return p.pm(a.bytes);
+ });
+ r = S({
+ rNa: "cenc",
+ TIa: E,
+ sC: function (b) {
+ var c;
+ c = [];
+ b.Xh.forEach(function (a) {
+ c.push({
+ sessionId: a.sessionId,
+ dataBase64: p.ns(a.data)
+ });
+ });
+ b = {
+ Xh: c,
+ KY: [d.Hk],
+ ai: C.sk.pHa(b.ai),
+ sg: d.sg,
+ ga: pa.IHa(a),
+ Ki: f.Ki
+ };
+ E.trace("xid created ", {
+ MovieId: a,
+ xid: b.ga
+ });
+ return ma.uB(b);
+ },
+ xKb: void 0,
+ lnb: h,
+ kd: void 0,
+ J1: H.ff,
+ Aa: z
+ });
+ pa.Ez(a, "ldl", r, function () {
+ r.close();
+ });
+ return r.create(l.config.he).then(function () {
+ return r.Ig(g.Aj.dx, u, !0);
+ }).then(function () {
+ c(null, r);
+ })["catch"](function (a) {
+ h(a);
+ c(a);
+ });
+ }
+ } else
+ c({
+ status: Y.Oe.KX
+ });
+ })["catch"](function (a) {
+ E.warn("Manifest not available for ldl request", a);
+ c({
+ status: Y.Oe.gj
+ });
+ });
+ });
+ }
+ function T(a, b, c) {
+ pa.Dq(a, "ldl").then(function (a) {
+ c(null, a);
+ })["catch"](function (f) {
+ E.trace("ldl not available in cache", {
+ reason: f
+ });
+ pa.Dq(a, "manifest").then(function (f) {
+ var d,
+ m,
+ k,
+ u,
+ r;
+ function h(b, c) {
+ E.warn(b + " LDL is now invalid.", c);
+ pa.Ez(a, "ldl", void 0);
+ pa.tda(a);
+ }
+ d = f.Wf;
+ if (pa.x_(a, "ldl"))
+ c({
+ status: Y.Oe.gj
+ });
+ else if (d.C_) {
+ if (l.config.yIa && $a && $a !== a && !b.force)
+ c({
+ status: Y.Oe.LX
+ });
+ else if (l.config.zIa && N && N !== a && !b.force)
+ c({
+ status: Y.Oe.zN
+ });
+ else {
+ $a && $a !== a && (Ba[a] = (Ba[a] | 0) + 1);
+ N && N !== a && (R[a] = (R[a] | 0) + 1);
+ m = d.Ow[0].ZI;
+ k = d.Ow[0].Xea;
+ u = (m ? m : [k]).map(function (a) {
+ return p.pm(a.bytes);
+ });
+ r = p.ba.get(A.GK)().then(function (b) {
+ var c;
+ c = {
+ type: g.Aj.dx,
+ T_: u,
+ context: {
+ he: l.config.he
+ },
+ jh: {
+ G: a,
+ ga: pa.IHa(a),
+ sg: d.sg,
+ Hk: d.Hk,
+ Ki: f.Ki
+ }
+ };
+ return b.ww(c, p.ba.get(V.xA)());
+ }).then(function (a) {
+ c(null, a);
+ return a;
+ })["catch"](function (a) {
+ h("Unable to prepare an EME session.", a);
+ });
+ pa.Ez(a, "ldl", r, function () {
+ try {
+ r.then(function (a) {
+ a.close().subscribe(void 0, function (a) {
+ h("Unable to cleanup LDL session, unable to close the session.", a);
+ });
+ })["catch"](function (a) {
+ h("Unable to cleanup LDL session, Unable to get the session.", a);
+ });
+ } catch (Za) {
+ h("Unable to cleanup LDL session, unexpected exception.", Za);
+ }
+ });
+ }
+ } else
+ c({
+ status: Y.Oe.KX
+ });
+ })["catch"](function (a) {
+ E.warn("Manifest not available for ldl request", a);
+ c({
+ status: Y.Oe.gj
+ });
+ });
+ });
+ }
+ function S(a) {
+ var b,
+ c,
+ f;
+ b = p.ba.get(G.Xp);
+ c = new b.kA(a.TIa, a.sC, a.xKb, {
+ Xc: !1,
+ bh: !1
+ });
+ f = p.ba.get(K.OA);
+ return b.mA(a.TIa, a.rNa, a.kd, {
+ Xc: !1,
+ bh: !1,
+ ZH: l.config.wj,
+ pJ: {
+ d1: l.config.mVa,
+ OX: l.config.Tna
+ },
+ vj: c,
+ x2: l.config.Gma,
+ la: void 0,
+ Uz: l.config.gfa,
+ onerror: a.lnb,
+ J1: a.J1,
+ Aa: a.Aa,
+ j2: !1,
+ rFa: f.PN([]),
+ gZa: f.WN([]),
+ SH: l.config.SH
+ });
+ }
+ X = {
+ getTime: h.zh,
+ xYb: h.EN
+ };
+ ya = p.ba.get(m.Zd);
+ za = p.ba.get(q.CU);
+ ma = p.ba.get(aa.KE);
+ z = X;
+ E = p.Fh("VideoPreparer");
+ Ba = {};
+ R = {};
+ Q = p.ba.get(G.Xp);
+ if (!Q.mA || !Q.kA) {
+ U = p.ba.get(ia.GU)();
+ Q.mA = U.tb;
+ Q.kA = U.request;
+ }
+ E.info("instance created");
+ pa = new n.XAa({
+ log: E,
+ Aa: X,
+ sqa: h.KGa,
+ Xga: function (a, b, c) {
+ var h;
+ function f() {
+ var b;
+ ya.xB(h) || (h = {
+ trackingId: h
+ });
+ b = {
+ Ta: h,
+ ma: a,
+ xv: q.vk.t8
+ };
+ E.trace("manifest request", {
+ movieId: a
+ });
+ return za.Ge(E, b);
+ }
+ h = b.gb;
+ E.trace("getManifest", {
+ movieId: a
+ });
+ l.config.Obb && h && h.xa && !pa.x_(a, "manifest") && (!h.xa.clientGenesis || Date.now() - h.xa.clientGenesis < l.config.jTa) ? (b = p.ba.get(fa.OE).create(h.xa), b.zz = X.getTime(), b.ED = X.getTime(), pa.Ez(a, "manifest", b), c(null, b)) : pa.Dq(a, "manifest").then(function (a) {
+ c(null, a);
+ })["catch"](function () {
+ var b,
+ h;
+ E.trace("manifest not available in cache");
+ if (pa.x_(a, "manifest"))
+ c({
+ status: Y.Oe.gj
+ });
+ else {
+ b = X.getTime();
+ h = f();
+ pa.Ez(a, "manifest", h);
+ h.then(function (f) {
+ f.zz = b;
+ f.ED = X.getTime();
+ pa.Ez(a, "manifest", f);
+ c(null, f);
+ })["catch"](function (b) {
+ c(b);
+ pa.Ez(a, "manifest", void 0);
+ });
+ }
+ });
+ },
+ b_: l.config.iH ? l.config.Pp ? T : w : void 0,
+ a_: function (a, b, c) {
+ var f;
+ f = b.gb;
+ pa.Dq(a, "manifest").then(function (b) {
+ b = d(b.Wf, f, a);
+ k.yl.EX(b, function () {
+ c(null, {});
+ });
+ })["catch"](function (a) {
+ E.error("Exception in getHeaders", a);
+ c(a);
+ });
+ },
+ DH: function (a, b, c) {
+ var h;
+ h = b.gb;
+ pa.Dq(a, "manifest").then(function (l) {
+ var r,
+ g,
+ w;
+ r = l.Wf;
+ l = d(r, h, a);
+ g = r.duration;
+ r = p.ba.get(f.ZS).FEa({
+ kE: u.Gb(r.dy),
+ G: a,
+ DQ: u.Gb(g),
+ Ta: h
+ }).ca(u.ia);
+ p.ba.get(m.Zd).ks(h.T) && (r = h.T);
+ l.Oc = r;
+ if ($a != a || h.Le || b.force) {
+ w = function (b) {
+ b.movieId === a && b.stats && b.stats.prebuffcomplete && (k.yl.removeEventListener("prebuffstats", w), c(null, {}));
+ };
+ k.yl.addEventListener("prebuffstats", w);
+ k.yl.EX(l);
+ } else
+ c({
+ status: Y.Oe.zN
+ });
+ })["catch"](function (a) {
+ E.error("Exception in getMedia", a);
+ c(a);
+ });
+ },
+ Vv: function () {
+ return k.yl.Vv();
+ },
+ hda: function () {
+ return l.config.SY;
+ },
+ Wka: function (a) {
+ var b;
+ b = !1;
+ k.yl.yN().forEach(function (c) {
+ c.G == a && (b = !0);
+ });
+ return b;
+ },
+ wga: function () {
+ return k.yl.yN().map(function (a) {
+ var b,
+ f;
+ b = k.yl.Uja(a.G);
+ f = b[c.Hc.Yi.AUDIO] && b[c.Hc.Yi.AUDIO].data;
+ b = b[c.Hc.Yi.VIDEO] && b[c.Hc.Yi.VIDEO].data;
+ return {
+ G: a.G,
+ Lq: a.Lq,
+ qFa: f && f.length,
+ fZa: b && b.length,
+ Bob: ya.ks(a.ac.sZ),
+ Cwb: ya.ks(a.ac.E0),
+ KDb: ya.ks(a.ac.XI),
+ JDb: ya.ks(a.ac.o2)
+ };
+ });
+ },
+ Bla: function (a) {
+ $a = a;
+ },
+ Cla: function (a) {
+ W && (W.sda(), b());
+ N = a;
+ },
+ rQ: function () {
+ W && W.xoa();
+ N = $a = void 0;
+ },
+ Iga: function () {
+ return {
+ ldls_after_create: Ba,
+ ldls_after_start: R
+ };
+ },
+ dO: l.config.dO,
+ fO: l.config.fO,
+ eO: l.config.eO,
+ KNa: l.config.iTa,
+ Vca: l.config.XDb,
+ Uca: l.config.VDb,
+ Efa: l.config.jTa,
+ Dfa: l.config.WDb,
+ Xc: !1,
+ jc: p.ba
+ });
+ t._cad_global.videoPreparer = pa;
+ Q = l.config.JCb;
+ Fa = X.getTime();
+ Q && (W = new M.t9(Q, b), W.xoa());
+ a(r.pd);
+ });
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r,
+ h,
+ p,
+ m,
+ f,
+ u,
+ g,
+ A,
+ K;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ c = a(122);
+ k = a(124);
+ l = a(10);
+ r = a(46);
+ d = a(2);
+ h = a(6);
+ p = a(206);
+ m = a(17);
+ f = a(23);
+ u = a(9);
+ b = a(26);
+ g = a(39);
+ A = a(91);
+ K = a(134);
+ h.ba.get(b.Cf).register(d.J.Sua, function (a) {
+ function b(a, b) {
+ function c(a) {
+ a = new p.oT(h.pm(a));
+ a.Ke();
+ return {
+ Uy: a.MTa(),
+ Zmb: a.MTa()
+ };
+ }
+ return {
+ encrypt: function (b, c) {
+ var d;
+ b = f.Td(b) ? h.bK(b) : b;
+ d = u.gu.getRandomValues(new Uint8Array(16));
+ r.gD(u.On.encrypt({
+ name: "AES-CBC",
+ iv: d
+ }, a, b)).then(function (a) {
+ var b,
+ f;
+ a = new Uint8Array(a);
+ b = [];
+ f = new p.oT(b);
+ f.MS(2);
+ f.CZa(d);
+ f.CZa(a);
+ a = h.ns(b);
+ c({
+ success: !0,
+ encryptedDataAsn1Base64: a
+ });
+ }, function (a) {
+ m.Ra(!1, "Encrypt error: " + a);
+ c({
+ success: !1
+ });
+ });
+ },
+ decrypt: function (b, f) {
+ b = c(b);
+ r.gD(u.On.decrypt({
+ name: "AES-CBC",
+ iv: b.Uy
+ }, a, b.Zmb)).then(function (a) {
+ a = new Uint8Array(a);
+ f({
+ success: !0,
+ text: h.wS(a)
+ });
+ }, function (a) {
+ m.Ra(!1, "Decrypt error: " + a);
+ f({
+ success: !1
+ });
+ });
+ },
+ hmac: function (a, c) {
+ a = f.Td(a) ? h.bK(a) : a;
+ r.gD(u.On.sign({
+ name: "HMAC",
+ hash: {
+ name: "SHA-256"
+ }
+ }, b, a)).then(function (a) {
+ a = new Uint8Array(a);
+ c({
+ success: !0,
+ hmacBase64: h.ns(a)
+ });
+ }, function (a) {
+ m.Ra(!1, "Hmac error: " + a);
+ c({
+ success: !1
+ });
+ });
+ }
+ };
+ }
+ c.GL.ZM.mdx = {
+ getEsn: function () {
+ return k.Ah.Ch;
+ },
+ createCryptoContext: function (a) {
+ var b;
+ b = h.ba.get(A.cF);
+ h.ba.get(K.QE)().then(function (c) {
+ var d,
+ k;
+ d = c.fQ.getStateForMdx(b);
+ k = d.cryptoContext;
+ c = d.masterToken;
+ d = d.userIdToken;
+ c && d ? (m.Ra(k), c = ["1", h.ns(JSON.stringify(c.toJSON())), h.ns(JSON.stringify(d.toJSON()))].join(), a({
+ success: !0,
+ cryptoContext: {
+ cTicket: c,
+ encrypt: function (a, b) {
+ a = f.Td(a) ? h.bK(a) : a;
+ k.encrypt(a, {
+ result: function (a) {
+ a = h.ns(a);
+ b({
+ success: !0,
+ mslEncryptionEnvelopeBase64: a
+ });
+ },
+ timeout: function () {
+ b({
+ success: !1
+ });
+ },
+ error: function (a) {
+ m.Ra(!1, "Encrypt error: " + a);
+ b({
+ success: !1
+ });
+ }
+ });
+ },
+ decrypt: function (a, b) {
+ a = h.pm(a);
+ k.decrypt(a, {
+ result: function (a) {
+ b({
+ success: !0,
+ text: h.wS(a)
+ });
+ },
+ timeout: function () {
+ b({
+ success: !1
+ });
+ },
+ error: function (a) {
+ m.Ra(!1, "Decrypt error: " + a);
+ b({
+ success: !1
+ });
+ }
+ });
+ },
+ hmac: function (a, b) {
+ a = f.Td(a) ? h.bK(a) : a;
+ k.sign(a, {
+ result: function (a) {
+ b({
+ success: !0,
+ hmacBase64: h.ns(a)
+ });
+ },
+ timeout: function () {
+ b({
+ success: !1
+ });
+ },
+ error: function (a) {
+ m.Ra(!1, "Hmac error: " + a);
+ b({
+ success: !1
+ });
+ }
+ });
+ }
+ }
+ })) : (m.Ra(!1, "Must login first"), a({
+ success: !1
+ }));
+ });
+ },
+ createCryptoContextFromSharedSecret: function (a, c) {
+ var f;
+ f = h.pm(a);
+ a = f.subarray(32, 48);
+ f = f.subarray(0, 32);
+ if (16 != a.length || 32 != f.length)
+ throw Error("Bad shared secret");
+ Promise.all([r.gD(u.On.importKey("raw", a, {
+ name: "AES-CBC"
+ }, !1, ["encrypt", "decrypt"])), r.gD(u.On.importKey("raw", f, {
+ name: "HMAC",
+ hash: {
+ name: "SHA-256"
+ }
+ }, !1, ["sign", "verify"]))]).then(function (a) {
+ c({
+ success: !0,
+ cryptoContext: b(a[0], a[1])
+ });
+ }, function () {
+ c({
+ success: !1
+ });
+ });
+ },
+ getServerEpoch: function () {
+ return g.vda();
+ }
+ };
+ a(l.pd);
+ });
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r,
+ h,
+ p,
+ m,
+ f,
+ u;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ d = a(122);
+ c = a(10);
+ k = a(12);
+ l = a(56);
+ b = a(7);
+ r = a(6);
+ h = a(47);
+ p = a(97);
+ m = a(17);
+ f = a(23);
+ u = a(9);
+ t.netflix = t.netflix || ({});
+ m.Ra(!t.netflix.player);
+ t.netflix.player = {
+ VideoSession: d.GL,
+ diag: {
+ togglePanel: function (a, b) {
+ var c;
+ c = [];
+ if (!k.config || k.config.cR) {
+ switch (a) {
+ case "info":
+ c = l.ln.map(function (a) {
+ return a.i2;
+ });
+ break;
+ case "streams":
+ c = l.ln.map(function (a) {
+ return a.k2;
+ });
+ break;
+ case "log":
+ c = [];
+ }
+ c.forEach(function (a) {
+ f.dc(b) ? b ? a.show() : a.ip() : a.toggle();
+ });
+ }
+ },
+ addLogMessageSink: function (a) {
+ r.ba.get(h.uk).addListener({
+ A0b: function () {},
+ bzb: function (b) {
+ a({
+ data: b.data
+ });
+ }
+ });
+ }
+ },
+ log: r.Fh("Ext"),
+ LogLevel: b.pi,
+ addLogSink: function (a, b) {
+ r.ba.get(p.tA).K2(a, b);
+ },
+ getVersion: function () {
+ return "6.0025.038.031";
+ },
+ isWidevineSupported: function (a) {
+ var f;
+ function b(a) {
+ return function (b, c) {
+ return c.contentType == a;
+ };
+ }
+ if ("function" !== typeof a)
+ throw Error("input param is not a function");
+ f = [{
+ distinctiveIdentifier: "not-allowed",
+ videoCapabilities: [{
+ contentType: c.Jr,
+ robustness: "SW_SECURE_DECODE"
+ }
+ ],
+ audioCapabilities: [{
+ contentType: c.gx,
+ robustness: "SW_SECURE_CRYPTO"
+ }
+ ]
+ }
+ ];
+ try {
+ u.Zi.requestMediaKeySystemAccess("com.widevine.alpha", f).then(function (f) {
+ var h;
+ h = f.getConfiguration();
+ f = h.videoCapabilities || [];
+ h = (h.audioCapabilities || []).reduce(b(c.gx), !1);
+ f = f.reduce(b(c.Jr), !1);
+ a(h && f);
+ })["catch"](function () {
+ a(!1);
+ });
+ } catch (C) {
+ a(!1);
+ }
+ }
+ };
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r,
+ h,
+ p,
+ m,
+ f,
+ u,
+ g;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ d = a(26);
+ b = a(2);
+ c = a(7);
+ k = a(32);
+ l = a(147);
+ r = a(10);
+ h = a(12);
+ p = a(6);
+ m = a(125);
+ f = a(56);
+ u = a(122);
+ g = a(195);
+ p.ba.get(d.Cf).register(b.J.Tua, function (a) {
+ var d,
+ w,
+ A;
+ function b(a, b) {
+ return void 0 === a || void 0 === b ? Promise.reject("Invalid email and/or password") : p.ba.get(g.zU).Ge(this.log, {}, {
+ RIa: a,
+ password: b
+ }).then(function () {});
+ }
+ if (h.config.znb) {
+ d = p.ba.get(l.oL);
+ w = p.ba.get(k.aj);
+ A = p.ba.get(c.Jb).xb("Test");
+ u.GL.ZM.test = {
+ pboRequests: d.vj.map(function (a) {
+ return JSON.parse(JSON.stringify(a));
+ }),
+ playbacks: f.ln,
+ getPlayback: function (a) {
+ return f.ln.find(function (b) {
+ return b.ga === a;
+ });
+ },
+ playgraphManager: {
+ isNextSegmentReady: function (a, b) {
+ var c,
+ h;
+ return void 0 !== (null === (h = null === (c = f.ln.find(function (b) {
+ return b.ga === a;
+ })) || void 0 === c ? void 0 : c.Hb) || void 0 === h ? void 0 : h.OZ(b));
+ }
+ },
+ aseManager: {
+ cacheDestroy: function () {
+ return m.yl.vN();
+ }
+ },
+ device: {
+ esn: t._cad_global.device.Ch,
+ esnPrefix: w.wy,
+ errorPrefix: w.iC
+ },
+ log: {
+ info: function (a, b) {
+ for (var c = [], f = 1; f < arguments.length; ++f) {
+ c[f - 1] = arguments[f];
+ }
+ return A.info(a, c);
+ },
+ error: function (a, b) {
+ for (var c = [], f = 1; f < arguments.length; ++f) {
+ c[f - 1] = arguments[f];
+ }
+ return A.error(a, c);
+ },
+ warn: function (a, b) {
+ for (var c = [], f = 1; f < arguments.length; ++f) {
+ c[f - 1] = arguments[f];
+ }
+ return A.warn(a, c);
+ },
+ trace: function (a, b) {
+ for (var c = [], f = 1; f < arguments.length; ++f) {
+ c[f - 1] = arguments[f];
+ }
+ return A.trace(a, c);
+ },
+ log: function (a, b) {
+ for (var c = [], f = 1; f < arguments.length; ++f) {
+ c[f - 1] = arguments[f];
+ }
+ return A.log(a, c);
+ },
+ debug: function (a, b) {
+ for (var c = [], f = 1; f < arguments.length; ++f) {
+ c[f - 1] = arguments[f];
+ }
+ return A.debug(a, c);
+ }
+ },
+ login: b
+ };
+ }
+ a(r.pd);
+ });
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r,
+ h,
+ p,
+ m,
+ f,
+ u,
+ g,
+ A;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ c = a(124);
+ k = a(122);
+ l = a(10);
+ r = a(12);
+ d = a(2);
+ h = a(6);
+ p = a(17);
+ m = a(22);
+ f = a(23);
+ u = a(15);
+ g = a(47);
+ A = a(62);
+ a = a(26);
+ h.ba.get(a.Cf).register(d.J.Rua, function (a) {
+ var b,
+ d;
+ b = h.Fh("NccpApi");
+ d = m.gFa(["info", "warn", "trace", "error"]);
+ k.GL.ZM.nccp = {
+ getEsn: function () {
+ return c.Ah.Ch;
+ },
+ getPreferredLanguages: function () {
+ return r.config.ep.sma;
+ },
+ setPreferredLanguages: function (a) {
+ p.Ra(u.isArray(a) && f.Qv(a[0]));
+ r.config.ep.sma = a;
+ },
+ queueLogblob: function (a, c, f) {
+ var m;
+ if (a && c)
+ if ((c = c.toLowerCase(), d[c])) {
+ m = h.ba.get(g.uk);
+ a = h.ba.get(A.zo).Mn(a, c, f);
+ m.Ic(a);
+ } else
+ b.warn("Invalid severity", {
+ severity: c
+ });
+ },
+ flushLogblobs: function () {
+ h.ba.get(g.uk).flush(!0);
+ }
+ };
+ a(l.pd);
+ });
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r,
+ h;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.jsa = void 0;
+ c = a(67);
+ k = a(46);
+ l = a(17);
+ r = a(22);
+ h = a(23);
+ b.jsa = function (a, b) {
+ l.Ra(a);
+ l.Ra(b);
+ l.UG(b.bnb, "endpointURL property is required");
+ l.Ra(b.Zg);
+ this.log = a;
+ this.TSa = b;
+ };
+ b.jsa.prototype.Ay = function () {
+ var a,
+ b,
+ f;
+ a = this;
+ a.log.trace("Downloading config data.");
+ b = {
+ browserInfo: JSON.stringify(a.TSa.Zg)
+ };
+ f = a.TSa.bnb + "?" + k.GI(b);
+ return new Promise(function (b, d) {
+ function m(b) {
+ var c;
+ try {
+ if (b.U) {
+ c = new Uint8Array(b.content);
+ return {
+ U: !0,
+ config: JSON.parse(String.fromCharCode.apply(null, c)).core.initParams
+ };
+ }
+ return {
+ U: !1,
+ message: "Unable to download the config. " + b.ab,
+ kP: b.kj
+ };
+ } catch (T) {
+ return (b = r.Fd(T), a.log.error("Unable to download the config. Received an exception parsing response", {
+ message: T.message,
+ exception: b,
+ url: f
+ }), {
+ U: !1,
+ ab: b,
+ message: "Unable to download the config. " + T.message
+ });
+ }
+ }
+ function k(b, c, f) {
+ return c > f ? (a.log.error("Config download failed, retry limit exceeded, giving up", h.yb({
+ Attempts: c - 1,
+ MaxRetries: f
+ }, b)), !1) : !0;
+ }
+ function l(a) {
+ return new Promise(function (b) {
+ setTimeout(function () {
+ b();
+ }, a);
+ });
+ }
+ function p(f, u, g) {
+ c.cf.download(f, function (c) {
+ var w;
+ c = m(c);
+ if (c.U)
+ b(c);
+ else {
+ a.log.warn("Config download failed, retrying", h.yb({
+ Attempt: u,
+ WaitTime: w,
+ MaxRetries: g
+ }, c));
+ if (k(c, u + 1, g))
+ return (w = r.Mma(1E3, 1E3 * Math.pow(2, Math.min(u - 1, g))), l(w).then(function () {
+ return p(f, u + 1, g);
+ }));
+ d(c);
+ }
+ });
+ }
+ return c.cf ? p({
+ url: f,
+ responseType: 3,
+ withCredentials: !0,
+ $B: "config-download"
+ }, 1, 3) : Promise.reject({
+ U: !1,
+ message: "Unable to download Config. There was no HTTP object supplied"
+ });
+ });
+ };
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ c = a(12);
+ k = a(10);
+ d = a(2);
+ l = a(6);
+ r = a(183);
+ a = a(26);
+ l.ba.get(a.Cf).register(d.J.Gua, function (a) {
+ c.config.cpb && l.ba.get(r.q6).start();
+ a(k.pd);
+ });
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r,
+ h,
+ p,
+ m,
+ f,
+ u,
+ g,
+ A,
+ K,
+ C,
+ M;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ c = a(154);
+ k = a(282);
+ d = a(56);
+ l = a(12);
+ r = a(55);
+ h = a(10);
+ p = a(46);
+ m = a(39);
+ f = a(22);
+ u = a(9);
+ g = a(6);
+ A = a(118);
+ K = a(13);
+ C = a(26);
+ M = a(32);
+ d.Z8(d.U8, function (a) {
+ var fa,
+ ia,
+ Y,
+ pa,
+ X,
+ O;
+ function b(c) {
+ c.newValue >= K.ob.LOADING && (a.state.removeListener(b), t("type=openplay&sev=info&locstor=" + u.qU(q())), Y = m.zh(), H());
+ }
+ function d() {
+ O("type=startplay&sev=info&outcome=success");
+ }
+ function w() {
+ var b,
+ h;
+ b = a.lj;
+ if (b) {
+ h = "type=startplay&sev=error&outcome=error";
+ b = c.hha(g.ba.get(M.aj).iC, b);
+ f.Ed(b, function (a, b) {
+ h += "&" + u.qU(a) + "=" + u.qU(b || "");
+ });
+ O(h);
+ } else
+ O("type=startplay&sev=info&outcome=abort");
+ }
+ function H() {
+ var a,
+ b;
+ a = pa.shift();
+ if (0 < a) {
+ b = u.am(a - (m.zh() - Y), 0);
+ ia = setTimeout(function () {
+ t("type=startstall&sev=info&kt=" + a);
+ H();
+ }, b);
+ }
+ }
+ function n() {
+ O("type=startplay&sev=info&outcome=unload");
+ }
+ function q() {
+ var a,
+ b,
+ c;
+ try {
+ b = "" + m.EN();
+ localStorage.setItem("player$test", b);
+ c = localStorage.getItem("player$test");
+ localStorage.removeItem("player$test");
+ a = b == c ? "success" : "mism";
+ } catch (Ha) {
+ a = "ex: " + Ha;
+ }
+ return a;
+ }
+ function t(b) {
+ b = X + "&soffms=" + a.pha() + "&" + b;
+ a.Yc && Object.keys(a.Yc).length && (b += "&" + p.GI(f.yb({}, a.Yc, {
+ prefix: "sm_"
+ })));
+ k.UXa("playback", b, fa);
+ }
+ fa = g.ba.get(A.Yz).host + l.config.Fpa;
+ if (l.config.VXa && fa && l.config.WXa.playback) {
+ pa = l.config.nMb.slice();
+ X = "xid=" + a.ga + "&pbi=" + a.index + "&uiLabel=" + (a.we || "");
+ a.state.addListener(b);
+ a.addEventListener(K.V.ko, d);
+ a.addEventListener(K.V.If, w);
+ r.Te.addListener(r.Hl, n, h.DA);
+ O = function (b) {
+ var c;
+ O = h.ff;
+ c = g.ba.get(C.Cf);
+ b += "&initstart=" + c.startTime + "&initend=" + c.endTime;
+ t(b);
+ clearTimeout(ia);
+ a.removeEventListener(K.V.ko, d);
+ a.removeEventListener(K.V.If, w);
+ r.Te.removeListener(r.Hl, n);
+ };
+ }
+ });
+ }, function (d, b, a) {
+ var c,
+ k;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ d = a(78);
+ c = a(12);
+ k = a(6);
+ d.yA(function (a, b) {
+ var h,
+ d,
+ m,
+ f;
+ h = {
+ "video-merch-bob-vertical": 480,
+ "video-merch-bob-horizontal": 384,
+ "video-merch-jaw": 720,
+ "show-as-a-row-bob-horizontal": 480,
+ "mini-modal-horizontal": 720
+ };
+ Object.assign(h, c.config.KMb);
+ d = h[b.we];
+ if (c.config.LMb && d) {
+ m = {};
+ f = k.Gg(a, "MediaStreamFilter");
+ return {
+ rH: "uiLabel",
+ Ct: function (a) {
+ if (a.lower && a.height > d)
+ return (m[a.height] || (m[a.height] = !0, f.warn("Restricting resolution due to uiLabel", {
+ MaxHeight: d,
+ streamHeight: a.height
+ }), b.Ln.set({
+ reason: "uiLabel",
+ height: a.height
+ })), !0);
+ }
+ };
+ }
+ });
+ }, function (d, b, a) {
+ var k;
+ function c(a, b, c, d) {
+ this.j = a;
+ this.Wm = b;
+ this.ka = c;
+ this.Fc = d;
+ this.log = this.ka.xb("KeyStatusStreamFilter", this.j);
+ this.r0 = !1;
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.nva = void 0;
+ k = a(486);
+ c.prototype.Ct = function (a) {
+ this.SKb();
+ if (a.lower && 1080 < a.height && !this.r0)
+ return (this.log.trace("stream restricted", {
+ height: a.height,
+ bitrate: a.R
+ }), !0);
+ this.log.debug("stream allowed", {
+ height: a.height,
+ bitrate: a.R
+ });
+ return !1;
+ };
+ c.prototype.zjb = function () {
+ var a,
+ b,
+ c;
+ b = {};
+ c = null === (a = this.Wm.wg.value) || void 0 === a ? void 0 : a.ZI;
+ null === c || void 0 === c ? void 0 : c.forEach(function (a) {
+ b[a.Qs] = a.MUa.height;
+ });
+ this.log.trace("KeyStatusMap", b);
+ return b;
+ };
+ c.prototype.fAb = function (a) {
+ var b;
+ b = this.nwb[this.Fc.encode(a.Qs)];
+ if (1080 < b)
+ switch (a.value) {
+ case k.yo.dqa:
+ this.r0 = !0;
+ break;
+ case k.yo.GWa:
+ this.r0 = !1;
+ break;
+ default:
+ (this.r0 = !1, this.log.error("Restricting resolution due to keyStatus", {
+ keyHeight: b,
+ keyStatus: a.value
+ }), this.Wm.Ln.set({
+ reason: "keyStatus",
+ height: b
+ }));
+ }
+ this.log.trace("keyStatus change", {
+ keyHeight: b,
+ keyStatus: a.value
+ });
+ };
+ c.prototype.SKb = function () {
+ var a,
+ b,
+ c;
+ a = this;
+ b = this.Wm.Jf;
+ c = b && b.nja;
+ !this.Wvb && c && (this.Wvb = !0, this.nwb = this.zjb(), b.nja().subscribe(function (b) {
+ return a.fAb(b);
+ }));
+ };
+ wa.Object.defineProperties(c.prototype, {
+ rH: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return "keyStatus";
+ }
+ }
+ });
+ b.nva = c;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ d = a(78);
+ c = a(12);
+ k = a(6);
+ l = a(544);
+ r = a(483);
+ d.yA(function (a, b) {
+ if (c.config.mwb)
+ return new l.nva(a, b, k.sf, new r.c5());
+ });
+ }, function (d, b, a) {
+ var k,
+ l,
+ r,
+ h;
+ function c(a) {
+ var c,
+ d;
+ function b(f) {
+ f = f.tGa;
+ a.removeEventListener(r.V.Zka, b);
+ try {
+ l.qOa(f.data[0]) && (d = !0, a.nJb());
+ c.trace("RA check", {
+ HasRA: d
+ });
+ } catch (A) {
+ c.error("RA check exception", A);
+ }
+ }
+ if (k.ba.get(h.aj).ZFb) {
+ c = k.Gg(a, "RAF");
+ a.addEventListener(r.V.Zka, b);
+ return {
+ rH: "ra",
+ Ct: function (a) {
+ if (!d && a.Nv)
+ return (a = a.hg, !(0 < a.toLowerCase().indexOf("l30") || 0 < a.toLowerCase().indexOf("l31")));
+ }
+ };
+ }
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.I4a = void 0;
+ d = a(78);
+ k = a(6);
+ l = a(283);
+ r = a(13);
+ h = a(32);
+ d.yA(c);
+ b.I4a = c;
+ }, function (d, b, a) {
+ var k,
+ l;
+ function c(a, b) {
+ var c,
+ h;
+ c = l.Gg(a, "MSS");
+ if (k.config.lzb)
+ return {
+ rH: "mss",
+ Ct: function (a) {
+ var f,
+ d;
+ if (a.lower && 2160 <= a.height)
+ a: {
+ for (f = a; f.lower; ) {
+ if (2160 > f.height && 1080 < f.height) {
+ f = !0;
+ break a;
+ }
+ if (1080 >= f.height)
+ break;
+ f = f.lower;
+ }
+ f = !1;
+ }
+ else
+ f = void 0;
+ if (f) {
+ if (void 0 === h) {
+ try {
+ d = t.MSMediaKeys;
+ h = d && d.isTypeSupportedWithFeatures ? "probably" === d.isTypeSupportedWithFeatures("com.microsoft.playready.software", 'video/mp4;codecs="avc1,mp4a";features="display-res-x=3840,display-res-y=2160,display-bpc=8"') : !1;
+ } catch (A) {
+ c.error("hasUltraHdDisplay exception");
+ h = !0;
+ }
+ h || (c.warn("Restricting resolution due screen size", {
+ MaxHeight: a.height
+ }), b.Ln.set({
+ reason: "microsoftScreenSize",
+ height: a.height
+ }));
+ }
+ return !h;
+ }
+ }
+ };
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.H4a = void 0;
+ d = a(78);
+ k = a(12);
+ l = a(6);
+ d.yA(c);
+ b.H4a = c;
+ }, function (d, b, a) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ a(78).yA(function () {
+ return {
+ rH: "op",
+ Ct: function () {}
+ };
+ });
+ }, function (d, b, a) {
+ var k,
+ l,
+ r,
+ h,
+ p,
+ m,
+ f,
+ u,
+ g;
+ function c(a, b) {
+ var w,
+ A,
+ K,
+ n,
+ q,
+ Z,
+ B,
+ V,
+ fa,
+ ia,
+ Y;
+ function c() {
+ var c;
+ c = a.Sb.value === u.lb.Sc && a.state.value === u.ob.od && a.G === b.G;
+ Y ? c || (clearInterval(Y), Z = Y = void 0) : c && (Y = t.setInterval(d, 1E3));
+ }
+ function d() {
+ var b,
+ c,
+ f,
+ d,
+ m,
+ k;
+ b = a.wf.value;
+ b = (b = b && b.stream) && b.height;
+ if (null !== b && 0 < b) {
+ c = h.zh();
+ f = a.pj.qC();
+ if (f) {
+ if (Z && 2E3 > c - Z.time && b === Z.height) {
+ d = f - Z.gmb;
+ m = A[b];
+ m || (A[b] = m = [], b > V && (q.push(b), r.RS(q)));
+ 0 < d && !(ia && ia < b) && (ia = b);
+ m.push(d);
+ m.length > B && m.shift();
+ (m = n[b]) || (n[b] = m = {});
+ k = m[d];
+ m[d] = k ? k + 1 : 1;
+ }
+ Z = {
+ time: c,
+ gmb: f,
+ height: b
+ };
+ a.i2 && a.i2.IIb(A);
+ }
+ }
+ }
+ w = p.Gg(a, "DFF");
+ A = {};
+ K = k.config.kmb;
+ n = {};
+ q = [];
+ B = k.config.imb;
+ V = k.config.jmb;
+ fa = l.Rva;
+ if (k.config.hmb)
+ return (b.$ea = {
+ Bpb: function () {
+ var a;
+ a = {};
+ n && q.forEach(function (b) {
+ var c,
+ f,
+ h;
+ c = n[b];
+ if (c) {
+ f = 0;
+ h = 0;
+ g.Ed(c, function (a, b) {
+ h += m.Ud(a);
+ f += b;
+ });
+ a[b] = h / f;
+ }
+ });
+ return a;
+ },
+ UO: function (a) {
+ var b;
+ b = {};
+ a.forEach(function (a) {
+ b[a] = {};
+ });
+ n && (r.RS(a), q.forEach(function (c) {
+ var h,
+ d,
+ m,
+ k;
+ h = n[c];
+ if (h) {
+ d = 0;
+ m = 0;
+ g.Ed(h, function (a, b) {
+ d += b;
+ });
+ k = Object.keys(h).map(Number);
+ r.RS(k);
+ for (var l = k.length - 1, p = k[l], u = a.length - 1; 0 <= u; u--) {
+ for (var w = a[u]; p >= w && 0 <= l; ) {
+ (p = h[p]) && (m += p);
+ p = k[--l];
+ }
+ b[w][c] = f.Th(m / d * 100);
+ }
+ }
+ }));
+ return b;
+ }
+ }, a.state.addListener(c), a.Sb.addListener(c), a.addEventListener(u.V.rp, c), {
+ rH: "df",
+ Ct: function (a) {
+ var c,
+ h,
+ d,
+ m;
+ if (a.lower && a.height > V) {
+ a = a.height;
+ a: {
+ if (ia) {
+ c = q.length;
+ for (var f = 0; f < c; f++) {
+ h = q[f];
+ if (h >= ia && h < fa) {
+ d = A[h];
+ if (m = d)
+ b: {
+ m = K.length;
+ for (var k = d.length, l = 0; l < m; l++) {
+ for (var p = K[l], u = p[0], p = p[1], r = 0; r < k; r++) {
+ if (d[r] >= p && 0 >= --u) {
+ m = !0;
+ break b;
+ }
+ }
+ }
+ m = !1;
+ }
+ if (m && fa != h) {
+ w.warn("Restricting resolution due to high number of dropped frames", {
+ MaxHeight: h
+ });
+ b.Ln.set({
+ reason: "droppedFrames",
+ height: h
+ });
+ c = fa = h;
+ break a;
+ }
+ }
+ }
+ ia = void 0;
+ }
+ c = fa;
+ }
+ a = a >= c;
+ } else
+ a = !1;
+ return a;
+ }
+ });
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.G4a = void 0;
+ d = a(78);
+ k = a(12);
+ l = a(10);
+ r = a(46);
+ h = a(39);
+ p = a(6);
+ m = a(23);
+ f = a(9);
+ u = a(13);
+ g = a(22);
+ d.yA(c);
+ b.G4a = c;
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r,
+ h,
+ p,
+ m,
+ f,
+ u,
+ g,
+ A,
+ K,
+ C,
+ M,
+ H;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ c = a(154);
+ k = a(10);
+ l = a(12);
+ r = a(56);
+ h = a(39);
+ d = a(2);
+ p = a(6);
+ m = a(68);
+ f = a(9);
+ u = a(58);
+ g = a(15);
+ A = a(47);
+ K = a(62);
+ a = a(26);
+ H = p.ba.get(a.Cf);
+ H.register(d.J.Iua, function (a) {
+ var d;
+ function b() {
+ var a,
+ b,
+ m,
+ k;
+ a = H.startTime;
+ b = {
+ browserua: f.bm,
+ browserhref: f.rU.href,
+ initstart: a,
+ initdelay: H.endTime - a
+ };
+ (a = f.Ae.documentMode) && (b.browserdm = "" + a);
+ "undefined" !== typeof t.nrdp && t.nrdp.device && (b.firmware_version = t.nrdp.device.firmwareVersion);
+ g.Qv(l.config.GJa) && (b.fesn = l.config.GJa);
+ Object.assign(b, c.sha());
+ m = f.Mr && f.Mr.timing;
+ m && l.config.Gxb.map(function (a) {
+ var c;
+ c = m[a];
+ c && (b["pt_" + a] = c - h.LGa());
+ });
+ k = d.DLa();
+ Object.keys(k).forEach(function (a) {
+ return b["m_" + a] = k[a];
+ });
+ a = M.Mn("startup", "info", b, r.aF.$fa);
+ C.Ic(a);
+ }
+ M = p.ba.get(K.zo);
+ C = p.ba.get(A.uk);
+ d = p.ba.get(m.sx);
+ H.IP(function () {
+ C.Eb();
+ u.zc(b);
+ });
+ a(k.pd);
+ });
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r,
+ h,
+ p,
+ m,
+ f,
+ u,
+ g,
+ A,
+ K,
+ C,
+ M,
+ H,
+ n,
+ q,
+ S,
+ aa;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ c = a(198);
+ k = a(124);
+ l = a(12);
+ r = a(10);
+ h = a(2);
+ p = a(17);
+ m = a(6);
+ f = a(68);
+ u = a(63);
+ g = a(70);
+ A = a(22);
+ K = a(9);
+ C = a(15);
+ M = a(46);
+ H = a(98);
+ n = a(3);
+ d = a(26);
+ q = a(365);
+ S = {};
+ aa = m.ba.get(d.Cf);
+ aa.register(h.J.Kua, function (a) {
+ var G,
+ T,
+ Z,
+ X,
+ O,
+ na,
+ ha,
+ P,
+ Ha,
+ ja,
+ ya,
+ za,
+ ma,
+ z;
+ function b(b) {
+ b && b.userList && l.config.GJb && (b.userList = []);
+ X({
+ esn: k.Ah.Ch,
+ esnPrefix: k.Ah.wy,
+ authenticationType: l.config.DB,
+ authenticationKeyNames: l.config.yFa,
+ systemKeyWrapFormat: l.config.qLb,
+ serverIdentityId: "MSL_TRUSTED_NETWORK_SERVER_KEY",
+ serverIdentityKeyData: ma,
+ storeState: b,
+ notifyMilestone: aa.kd.bind(aa),
+ log: ha,
+ ErrorSubCodes: {
+ MSL_REQUEST_TIMEOUT: h.I.B4a,
+ MSL_READ_TIMEOUT: h.I.A4a
+ }
+ }, {
+ result: function (a) {
+ d(a);
+ },
+ timeout: function () {
+ a({
+ ja: h.I.bwa
+ });
+ },
+ error: function (b) {
+ a(w(h.I.bwa, void 0, b));
+ }
+ });
+ }
+ function d(b) {
+ var f,
+ d,
+ k;
+ function c() {
+ za && m.ba.get(g.xr).create().then(function (a) {
+ return a.save(ja, d, !1);
+ })["catch"](function (a) {
+ ha.error("Error persisting msl store", h.Vp(a));
+ });
+ }
+ f = m.ba.get(H.PA)(n.Gb(100));
+ k = O.extend({
+ init: function (a) {
+ this.UCa = a;
+ },
+ getResponse: function (a, b, c) {
+ var f,
+ h;
+ b = this.UCa;
+ f = b.KQa.cf || f;
+ a = C.eja(a.body) ? m.wS(a.body) : a.body;
+ p.UG(a, "Msl should not be sending empty request");
+ a = {
+ url: b.url,
+ mma: a,
+ withCredentials: !0,
+ $B: "nq-" + b.method,
+ headers: b.headers
+ };
+ b = this.UCa.timeout;
+ a.YX = b;
+ a.gla = b;
+ h = f.download(a, function (a) {
+ try {
+ if (a.U)
+ c.result({
+ body: a.content
+ });
+ else if (400 === a.kj && a.ab)
+ c.result({
+ body: a.ab
+ });
+ else
+ throw A.yb(new na("HTTP error, SubCode: " + a.ja + (a.kj ? ", HttpCode: " + a.kj : "")), {
+ cadmiumResponse: a
+ });
+ } catch (Rb) {
+ c.error(Rb);
+ }
+ });
+ return {
+ abort: function () {
+ h.abort();
+ }
+ };
+ }
+ });
+ Ha && b.addEventHandler("shouldpersist", function (a) {
+ d = a.storeState;
+ f.Pc(c);
+ });
+ A.yb(S, {
+ dZb: function () {
+ ya = !0;
+ },
+ send: function (a) {
+ function c() {
+ var b,
+ c;
+ b = a.KQa;
+ c = {
+ method: a.method,
+ nonReplayable: a.lAb,
+ encrypted: a.Uj,
+ userId: a.$Nb,
+ body: a.body,
+ timeout: 2 * a.timeout,
+ url: new k(a),
+ allowTokenRefresh: za,
+ sendUserAuthIfRequired: z,
+ shouldSendUserAuthData: l.config.LJb
+ };
+ b.RIa ? (c.email = b.RIa, c.password = b.password || "") : b.gMb ? (c.token = b.gMb, c.mechanism = b.TZb, b.$ka && (c.netflixId = b.$ka, c.secureNetflixId = b.HHb), b.Ema && (c.profileGuid = b.Ema)) : b.$ka ? (c.netflixId = b.$ka, c.secureNetflixId = b.HHb) : b.Lyb ? (c.mdxControllerToken = b.Lyb, c.mdxPin = b.RZb, c.mdxNonce = b.QZb, c.mdxEncryptedPinB64 = b.PZb, c.mdxSignature = b.SZb) : ya || b.useNetflixUserAuthData ? c.useNetflixUserAuthData = !0 : b.Ema && (c.profileGuid = b.Ema);
+ return c;
+ }
+ return new Promise(function (a, f) {
+ var d;
+ d = c();
+ b.send(d).then(function (b) {
+ ya && (ya = !1);
+ a({
+ U: !0,
+ body: b.body
+ });
+ })["catch"](function (a) {
+ var c,
+ d;
+ if (a.error) {
+ c = a.error.cadmiumResponse && a.error.cadmiumResponse.ja ? a.error.cadmiumResponse.ja : b.isErrorReauth(a.error) ? h.I.awa : b.isErrorHeader(a.error) ? h.I.u4a : h.I.t4a;
+ d = b.getErrorCode(a.error);
+ f(w(c, d, a.error));
+ } else (ha.error("Unknown MSL error", a), a.Nb = a.subCode, f({
+ ja: a.Nb ? a.Nb : h.I.C4a
+ }));
+ });
+ });
+ },
+ fQ: b
+ });
+ a(r.pd);
+ m.ba.get(q.jU).Uzb(S);
+ }
+ function w(a, b, c) {
+ var f,
+ h,
+ d,
+ m;
+ m = {
+ ja: a,
+ mH: b
+ };
+ if (c) {
+ f = function (a) {
+ var b;
+ a = a || "" + c;
+ if (c.stack) {
+ b = "" + c.stack;
+ a = 0 <= b.indexOf(a) ? b : a + b;
+ }
+ return a;
+ };
+ if (d = c.cadmiumResponse) {
+ if (h = d.Fe && d.Fe.toString())
+ d.Fe = h;
+ d.ja = a;
+ d.mH = b;
+ d.ab = f(c.message);
+ d.error = {
+ Nb: a,
+ xd: h,
+ ct: b,
+ data: c.cause,
+ message: c.message
+ };
+ return d;
+ }
+ f = f(c.errorMessage);
+ h = A.Ud(c.internalCode) || A.Ud(c.error && c.error.internalCode);
+ d = void 0 !== c.nnb ? M.tla(c.nnb) : void 0;
+ }
+ f && (m.ab = f);
+ h && (m.Fe = h);
+ m.error = {
+ Nb: a,
+ xd: h.toString(),
+ ct: b,
+ data: d,
+ message: f
+ };
+ return m;
+ }
+ p.Ra(l.config);
+ G = m.ba.get(f.sx);
+ T = u.sk.si;
+ if (K.gu && K.On && K.On.unwrapKey) {
+ try {
+ Z = t.netflix.msl;
+ X = Z.createMslClient;
+ O = Z.IHttpLocation;
+ na = Z.MslIoException;
+ } catch (gb) {
+ a({
+ ja: h.I.v4a
+ });
+ return;
+ }
+ ha = m.Fh("Msl");
+ P = l.config.Qzb;
+ Ha = l.config.Szb;
+ ja = l.config.Ds ? "mslstoretest" : "mslstore";
+ Z = c.WD.GVa;
+ ya = l.config.zub;
+ za = !Z || Z.U;
+ ma = m.pm(l.config.Ds ? "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAm84o+RfF7KdJgbE6lggYAdUxOArfgCsGCq33+kwAK/Jmf3VnNo1NOGlRpLQUFAqYRqG29u4wl8fH0YCn0v8JNjrxPWP83Hf5Xdnh7dHHwHSMc0LxA2MyYlGzn3jOF5dG/3EUmUKPEjK/SKnxeKfNRKBWnm0K1rzCmMUpiZz1pxgEB/cIJow6FrDAt2Djt4L1u6sJ/FOy/zA1Hf4mZhytgabDfapxAzsks+HF9rMr3wXW5lSP6y2lM+gjjX/bjqMLJQ6iqDi6++7ScBh0oNHmgUxsSFE3aBRBaCL1kz0HOYJe26UqJqMLQ71SwvjgM+KnxZvKa1ZHzQ+7vFTwE7+yxwIDAQAB" : "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAlibeiUhffUDs6QqZiB+jXH/MNgITf7OOcMzuSv4G3JysWkc0aPbT3vkCVaxdjNtw50zo2Si8I24z3/ggS3wZaF//lJ/jgA70siIL6J8kBt8zy3x+tup4Dc0QZH0k1oxzQxM90FB5x+UP0hORqQEUYZCGZ9RbZ/WNV70TAmFkjmckutWN9DtR6WUdAQWr0HxsxI9R05nz5qU2530AfQ95h+WGZqnRoG0W6xO1X05scyscNQg0PNCy3nfKBG+E6uIl5JB4dpc9cgSNgkfAIeuPURhpD0jHkJ/+4ytpdsXAGmwYmoJcCSE1TJyYYoExuoaE8gLFeM01xXK5VINU7/eWjQIDAQAB");
+ z = !!l.config.hoa;
+ m.ba.get(g.xr).create().then(function (c) {
+ P ? c.remove(ja).then(function () {
+ b();
+ })["catch"](function (a) {
+ ha.error("Unable to delete MSL store", h.Vp(a));
+ b();
+ }) : Ha ? c.load(ja).then(function (a) {
+ G.mark(T.x4a);
+ b(a.value);
+ })["catch"](function (f) {
+ f.ja == h.I.px ? (G.mark(T.z4a), b()) : (ha.error("Error loading msl store", h.Vp(f)), G.mark(T.y4a), c.remove(ja).then(function () {
+ b();
+ })["catch"](function (b) {
+ a(b);
+ }));
+ }) : b();
+ })["catch"](function (b) {
+ ha.error("Error creating app storage while loading msl store", h.Vp(b));
+ a(b);
+ });
+ } else
+ a({
+ ja: h.I.w4a
+ });
+ });
+ }, function (d, b, a) {
+ var r,
+ h,
+ p,
+ m;
+ function c(a, b, c, d) {
+ var f,
+ u,
+ g;
+ r.Ra(m.df(a) && !m.isArray(a));
+ d = d || "";
+ f = "";
+ u = a.hasOwnProperty(p.Si) && a[p.Si];
+ u && h.Ed(u, function (a, b) {
+ f && (f += " ");
+ f += a + '="' + l(b) + '"';
+ });
+ c = (b ? b + ":" : "") + c;
+ u = d + "<" + c + (f ? " " + f : "");
+ g = a.hasOwnProperty(p.Sp) && a[p.Sp].trim && "" !== a[p.Sp].trim() && a[p.Sp];
+ if (g)
+ return u + ">" + l(g) + "" + c + ">";
+ a = k(a, b, d + " ");
+ return u + (a ? ">\n" + a + "\n" + d + "" + c + ">" : "/>");
+ }
+ function k(a, b, d) {
+ var f;
+ r.Ra(m.df(a) && !m.isArray(a));
+ d = d || "";
+ f = "";
+ h.Ed(a, function (a, k) {
+ var r;
+ if ("$" != a[0])
+ for (var p = h.NP(k), u = 0; u < p.length; u++) {
+ if ((k = p[u], f && (f += "\n"), m.df(k)))
+ f += c(k, b, a, d);
+ else {
+ r = (b ? b + ":" : "") + a;
+ f += d + "<" + r + ">" + l(k) + "" + r + ">";
+ }
+ }
+ });
+ return f;
+ }
+ function l(a) {
+ if (m.Td(a))
+ return h.iP(a);
+ if (m.na(a))
+ return (r.aO(a, "Convert non-integer numbers to string for xml serialization."), "" + a);
+ if (null === a || void 0 === a)
+ return "";
+ r.Ra(!1, "Invalid xml value.");
+ return "";
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.eMb = b.jwb = b.iwb = void 0;
+ r = a(17);
+ h = a(22);
+ p = a(127);
+ m = a(15);
+ b.iwb = c;
+ b.jwb = k;
+ b.eMb = l;
+ }, function (d, b, a) {
+ var c,
+ k;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ d = a(2);
+ c = a(6);
+ k = a(333);
+ a = a(26);
+ c.ba.get(a.Cf).register(d.J.Hua, function (a) {
+ c.ba.get(k.W5)().then(function () {
+ a({
+ U: !0
+ });
+ })["catch"](function (b) {
+ c.log.error("error in initializing indexedDb debug tool", b);
+ a({
+ U: !0
+ });
+ });
+ });
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r,
+ h,
+ p,
+ m,
+ f,
+ u;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ c = a(46);
+ k = a(10);
+ l = a(12);
+ r = a(2);
+ h = a(274);
+ p = a(32);
+ m = a(9);
+ f = a(6);
+ d = a(26);
+ u = f.ba.get(d.Cf);
+ u.register(r.J.Uua, function (a) {
+ m.On && m.On.generateKey && m.On.importKey && m.On.unwrapKey ? !f.ba.get(p.Xp).f1a && l.config.DB != h.fA.V5a && l.config.DB != h.fA.l4a || m.pU ? (u.kd("wcs"), c.gD(m.On.generateKey({
+ name: "AES-CBC",
+ length: 128
+ }, !0, ["encrypt", "decrypt"])).then(function () {
+ u.kd("wcdone");
+ a(k.pd);
+ }, function (b) {
+ var c;
+ b = "" + b;
+ 0 <= b.indexOf("missing crypto.subtle") ? c = r.I.r$ : 0 <= b.indexOf("timeout waiting for iframe to load") && (c = r.I.q7a);
+ a({
+ ja: c,
+ ab: b
+ });
+ })) : a({
+ ja: r.I.p7a
+ }) : a({
+ ja: r.I.r$
+ });
+ });
+ }, function (d, b, a) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ a(12);
+ a(10);
+ d = a(6);
+ a(97);
+ a(201);
+ a(2);
+ a(98);
+ a(3);
+ a = a(26);
+ d.ba.get(a.Cf);
+ }, function (d, b, a) {
+ var m,
+ f,
+ u,
+ g,
+ A;
+ function c(a) {
+ var c,
+ d;
+ f.UG(a);
+ if (u.Td(a) && b.Yua.test(a)) {
+ c = a.split(".");
+ if (4 === c.length) {
+ for (var h = 0; h < c.length; h++) {
+ d = u.Ud(c[h]);
+ if (0 > d || !A.Pv(d, 0, 255) || 1 !== c[h].length && 0 === c[h].indexOf("0"))
+ return;
+ }
+ return a;
+ }
+ }
+ }
+ function k(a) {
+ var b;
+ b = 0;
+ if (c(a) === a)
+ return (a = a.split("."), b += u.Ud(a[0]) << 24, b += u.Ud(a[1]) << 16, b += u.Ud(a[2]) << 8, b + u.Ud(a[3]));
+ }
+ function l(a) {
+ var c;
+ f.UG(a);
+ if (u.Td(a) && a.match(b.Zua)) {
+ c = a.split(":");
+ -1 !== c[c.length - 1].indexOf(".") && (a = r(c[c.length - 1]), c.pop(), c.push(a[0]), c.push(a[1]), a = c.join(":"));
+ a = a.split("::");
+ if (!(2 < a.length || 1 === a.length && 8 !== c.length) && (c = 1 < a.length ? h(a) : c, a = c.length, 8 === a)) {
+ for (; a--; ) {
+ if (!A.Pv(parseInt(c[a], 16), 0, m.Sva))
+ return;
+ }
+ return c.join(":");
+ }
+ }
+ }
+ function r(a) {
+ var b;
+ a = k(a) >>> 0;
+ b = [];
+ b.push((a >>> 16 & 65535).toString(16));
+ b.push((a & 65535).toString(16));
+ return b;
+ }
+ function h(a) {
+ var b,
+ c,
+ f;
+ b = a[0].split(":");
+ a = a[1].split(":");
+ 1 === b.length && "" === b[0] && (b = []);
+ 1 === a.length && "" === a[0] && (a = []);
+ c = 8 - (b.length + a.length);
+ if (1 > c)
+ return [];
+ for (f = 0; f < c; f++) {
+ b.push("0");
+ }
+ for (f = 0; f < a.length; f++) {
+ b.push(a[f]);
+ }
+ return b;
+ }
+ function p(a) {
+ return -1 << 32 - a;
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.K3a = b.P3a = b.M3a = b.L3a = b.O3a = b.J3a = b.N3a = b.qA = b.Zua = b.Yua = void 0;
+ m = a(10);
+ f = a(17);
+ u = a(23);
+ g = a(9);
+ A = a(15);
+ b.Yua = /^[0-9.]*$/;
+ b.Zua = /^([a-fA-F0-9]*:){2}[a-fA-F0-9:.]*$/;
+ b.qA = "0000000000000000";
+ b.N3a = c;
+ b.J3a = k;
+ b.O3a = l;
+ b.L3a = r;
+ b.M3a = h;
+ b.P3a = function (a, f, h) {
+ var d,
+ m,
+ u,
+ r;
+ d = c(a);
+ m = l(a);
+ u = c(f);
+ r = l(f);
+ if (!d && !m || !u && !r || d && !u || m && !r)
+ return !1;
+ if (a === d)
+ return (h = p(h), (k(a) & h) !== (k(f) & h) ? !1 : !0);
+ if (a === m) {
+ a = a.split(":");
+ f = f.split(":");
+ for (d = g.bu(h / b.qA.length); d--; ) {
+ if (a[d] !== f[d])
+ return !1;
+ }
+ h %= b.qA.length;
+ if (0 !== h)
+ for ((a = parseInt(a[d], 16).toString(2), f = parseInt(f[d], 16).toString(2), a = b.qA.substring(0, b.qA.length - a.length) + a, f = b.qA.substring(0, b.qA.length - f.length) + f, d = 0); d < h; d++) {
+ if (a[d] !== f[d])
+ return !1;
+ }
+ return !0;
+ }
+ return !1;
+ };
+ b.K3a = p;
+ }, function (d, b, a) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ d = a(6);
+ b = a(97);
+ a = a(201);
+ d.ba.get(b.tA).K2(a.w7.z0a, function (a) {
+ var b,
+ c;
+ b = a.level;
+ if (!t._cad_global.config || b <= t._cad_global.config.Kxb) {
+ a = a.e4();
+ c = t.console;
+ 1 >= b ? c.error(a) : 2 >= b ? c.warn(a) : c.log(a);
+ }
+ });
+ }, function (d, b, a) {
+ var c,
+ k;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.cOb = b.U6a = b.S6a = b.R6a = b.T6a = void 0;
+ c = a(23);
+ k = a(9);
+ b.T6a = function (a, b, c) {
+ for (c = (c - a.length) / b.length; 0 < c--; ) {
+ a += b;
+ }
+ return a;
+ };
+ b.R6a = function (a, b, h) {
+ h = c.Td(h) ? h : "...";
+ return a.length <= b ? a : a.substr(0, a.length - (a.length + h.length - b)) + h;
+ };
+ b.S6a = function (a, b) {
+ var d;
+ for (var c = 1; c < arguments.length; ++c) { ;
+ }
+ d = k.slice.call(arguments, 1);
+ return a.replace(/{(\d+)}/g, function (a, b) {
+ return "undefined" != typeof d[b] ? d[b] : a;
+ });
+ };
+ b.U6a = function (a) {
+ for (var b = a.length, c = new Uint16Array(b), d = 0; d < b; d++) {
+ c[d] = a.charCodeAt(d);
+ }
+ return c.buffer;
+ };
+ b.cOb = function (a) {
+ var b;
+ b = new Uint8Array(a.length);
+ Array.prototype.forEach.call(a, function (a, c) {
+ b[c] = a.charCodeAt(0);
+ });
+ return b;
+ };
+ }, function (d) {
+ function b(a, b) {
+ return a.id === b.id && a.displayTime + a.duration === b.displayTime;
+ }
+ function a(a) {
+ return a.duration;
+ }
+ function c(a, b) {
+ return a + b;
+ }
+ d.P = {
+ Mgb: function (a, b, c) {
+ for (var h = 0; h < a.length; h++) {
+ if (a[h] !== b[h])
+ return (c.error("indexId mismatch in sidx", {
+ sIndexId: a,
+ mIndexId: b
+ }), !1);
+ }
+ return !0;
+ },
+ aea: function (a, b, c) {
+ var h;
+ h = {};
+ h.displayTime = a.Tj;
+ h.duration = a.duration;
+ h.originX = a.U1;
+ h.originY = a.V1;
+ h.sizeX = a.I3;
+ h.sizeY = a.J3;
+ h.imageData = b;
+ h.id = a.Ns;
+ h.rootContainerExtentX = c.Z2;
+ h.rootContainerExtentY = c.a3;
+ return h;
+ },
+ pqb: function (a, b) {
+ return "o_" + a + "s_" + b;
+ },
+ cZa: function (a, b) {
+ b("P" == String.fromCharCode(a[1]));
+ b("N" == String.fromCharCode(a[2]));
+ b("G" == String.fromCharCode(a[3]));
+ },
+ dc: function (a) {
+ return "undefined" !== typeof a;
+ },
+ EHb: function (a, b) {
+ return a.some(function (a) {
+ return a.id === b;
+ });
+ },
+ nmb: function (d, l) {
+ return d.filter(b.bind(null, l)).map(a).reduce(c, 0);
+ },
+ QO: function (a, b) {
+ var c,
+ h;
+ c = Object.create({});
+ for (h in a) {
+ c[h] = a[h];
+ }
+ a instanceof Error && (c.message = a.message, c.stack = a.stack);
+ c.errorString = b;
+ return c;
+ },
+ assert: function (a, b) {
+ if (!a)
+ throw (b && b.error(Error("Assertion Failed").stack), Error("Assertion Failed"));
+ }
+ };
+ }, function (d) {
+ function b(a) {
+ this.buffer = a;
+ this.position = 0;
+ }
+ b.prototype = {
+ seek: function (a) {
+ this.position = a;
+ },
+ skip: function (a) {
+ this.position += a;
+ },
+ Jk: function () {
+ return this.buffer.length - this.position;
+ },
+ Ke: function () {
+ return this.buffer[this.position++];
+ },
+ Vd: function (a) {
+ var b;
+ b = this.position;
+ this.position += a;
+ a = this.buffer;
+ return a.subarray ? a.subarray(b, this.position) : a.slice(b, this.position);
+ },
+ $c: function (a) {
+ for (var b = 0; a--; ) {
+ b = 256 * b + this.buffer[this.position++];
+ }
+ return b;
+ },
+ vt: function (a) {
+ for (var b = ""; a--; ) {
+ b += String.fromCharCode(this.buffer[this.position++]);
+ }
+ return b;
+ },
+ Qma: function () {
+ for (var a = "", b; b = this.Ke(); ) {
+ a += String.fromCharCode(b);
+ }
+ return a;
+ },
+ Tb: function () {
+ return this.$c(2);
+ },
+ Xa: function () {
+ return this.$c(4);
+ },
+ Kg: function () {
+ return this.$c(8);
+ },
+ F2: function () {
+ return this.$c(2) / 256;
+ },
+ XQ: function () {
+ return this.$c(4) / 65536;
+ },
+ Qf: function (a) {
+ for (var b, d = ""; a--; ) {
+ b = this.Ke();
+ d += ("0123456789ABCDEF")[b >>> 4] + ("0123456789ABCDEF")[b & 15];
+ }
+ return d;
+ },
+ xz: function () {
+ return this.Qf(4) + "-" + this.Qf(2) + "-" + this.Qf(2) + "-" + this.Qf(2) + "-" + this.Qf(6);
+ },
+ YQ: function (a) {
+ for (var b = 0, d = 0; d < a; d++) {
+ b += this.Ke() << (d << 3);
+ }
+ return b;
+ },
+ zD: function () {
+ return this.YQ(4);
+ },
+ MS: function (a) {
+ this.buffer[this.position++] = a;
+ },
+ rqa: function (a, b) {
+ this.position += b;
+ for (var c = 1; c <= b; c++) {
+ this.buffer[this.position - c] = a & 255;
+ a = Math.floor(a / 256);
+ }
+ },
+ LS: function (a) {
+ for (var b = a.length, d = 0; d < b; d++) {
+ this.buffer[this.position++] = a[d];
+ }
+ },
+ nE: function (a, b) {
+ this.LS(a.Vd(b));
+ }
+ };
+ d.P = b;
+ }, function (d, b, a) {
+ var A,
+ K,
+ C;
+ function c(a, b, c) {
+ this.type = a;
+ this.size = b;
+ this.RB = c;
+ }
+ function k(a) {
+ var b,
+ f,
+ h,
+ d,
+ m;
+ a: {
+ b = a.position;
+ if (8 <= a.Jk()) {
+ f = a.Xa();
+ h = a.vt(4);
+ if (!K.test(h))
+ throw (a.seek(b), Error("mp4-badtype"));
+ if (1 == f) {
+ if (8 > a.Jk()) {
+ a.seek(b);
+ b = void 0;
+ break a;
+ }
+ f = a.Kg();
+ }
+ if (!(8 <= f))
+ throw (a.seek(b), Error("mp4-badsize"));
+ if ("uuid" == h) {
+ if (16 > a.Jk()) {
+ a.seek(b);
+ b = void 0;
+ break a;
+ }
+ h = a.xz();
+ }
+ b = {
+ type: h,
+ offset: b,
+ size: f,
+ RB: b + f - a.position
+ };
+ } else
+ b = void 0;
+ }
+ if (b && b.RB <= a.Jk()) {
+ d = b.type;
+ f = b.size;
+ m = b.RB;
+ h = new c(d, f, m);
+ d = C[d];
+ if (a.Jk() < m)
+ throw Error("mp4-shortcontent");
+ d ? (m = new A(a.Vd(m)), d(h, m)) : a.skip(m);
+ a.seek(b.offset);
+ h.raw = a.Vd(f);
+ return h;
+ }
+ }
+ function l(a, b) {
+ for (var c = [], f = {}, h, d; 0 < b.Jk(); ) {
+ h = k(b);
+ if (!h)
+ throw Error("mp4-badchildren");
+ d = h.type;
+ c.push(h);
+ f[d] || (f[d] = h);
+ }
+ a.children = c;
+ a.Wfa = f;
+ }
+ function r(a, b) {
+ a.version = b.$c(1);
+ a.qf = b.$c(3);
+ }
+ function h(a, b) {
+ b.skip(6);
+ a.nkb = b.Tb();
+ b.skip(8);
+ a.channelCount = b.Tb();
+ a.KD = b.Tb();
+ b.skip(4);
+ a.sampleRate = b.Tb();
+ b.skip(2);
+ l(a, b);
+ }
+ function p(a, b) {
+ var c;
+ b.skip(6);
+ a.nkb = b.Tb();
+ b.skip(16);
+ a.width = b.Tb();
+ a.height = b.Tb();
+ a.WYb = b.Xa();
+ a.q1b = b.Xa();
+ b.skip(4);
+ a.Qob = b.Tb();
+ c = b.Ke();
+ a.Ugb = b.vt(c);
+ b.skip(31 - c);
+ a.depth = b.Tb();
+ b.skip(2);
+ l(a, b);
+ }
+ function m(a, b) {
+ r(a, b);
+ a.FXb = b.$c(3);
+ a.GXb = b.Ke();
+ a.Qs = b.Vd(16);
+ }
+ function f(a, b) {
+ for (var c = [], f; b--; ) {
+ f = a.Tb();
+ c.push(a.Vd(f));
+ }
+ return c;
+ }
+ function u(a) {
+ var b;
+ b = a.Vd(2);
+ a = {
+ t0b: b[1] >> 1 & 7,
+ s0b: !!(b[1] & 1),
+ k0b: a.Tb()
+ };
+ g(a, (b[0] << 8 | b[1]) >> 4);
+ return a;
+ }
+ function g(a, b) {
+ a.l0b = b >> 4 & 3;
+ a.r0b = b >> 2 & 3;
+ a.o0b = b & 3;
+ return a;
+ }
+ A = a(561);
+ K = /^[a-zA-Z0-9-]{4,4}$/;
+ c.prototype.zH = function (a) {
+ var b,
+ c,
+ f,
+ h,
+ d;
+ b = this;
+ a = a.split("/");
+ for (h = 0; h < a.length && b; h++) {
+ f = a[h].split("|");
+ c = void 0;
+ for (d = 0; d < f.length && !c; d++) {
+ c = f[d];
+ c = b.Wfa && b.Wfa[c];
+ }
+ b = c;
+ }
+ return b;
+ };
+ c.prototype.toString = function () {
+ return "[" + this.type + "]";
+ };
+ C = {
+ ftyp: function (a, b) {
+ a.CZb = b.vt(4);
+ a.f_b = b.Xa();
+ for (a.Ngb = []; 4 <= b.Jk(); ) {
+ a.Ngb.push(b.vt(4));
+ }
+ },
+ moov: l,
+ sidx: function (a, b) {
+ r(a, b);
+ a.$_b = b.Xa();
+ a.spa = b.Xa();
+ a.bfa = 1 <= a.version ? b.Kg() : b.Xa();
+ a.Zfa = 1 <= a.version ? b.Kg() : b.Xa();
+ b.skip(2);
+ for (var c = b.Tb(), f = [], h, d; c--; ) {
+ h = b.Xa();
+ d = h >> 31;
+ if (0 !== d)
+ throw Error("mp4-badsdix");
+ h &= 2147483647;
+ d = b.Xa();
+ b.skip(4);
+ f.push({
+ size: h,
+ duration: d
+ });
+ }
+ a.a0b = f;
+ },
+ moof: l,
+ mvhd: function (a, b) {
+ var c;
+ r(a, b);
+ c = 1 <= a.version ? 8 : 4;
+ a.Yh = b.$c(c);
+ a.modificationTime = b.$c(c);
+ a.spa = b.Xa();
+ a.duration = b.$c(c);
+ a.C2 = b.XQ();
+ a.volume = b.F2();
+ b.skip(70);
+ a.q_b = b.Xa();
+ },
+ pssh: function (a, b) {
+ var c;
+ r(a, b);
+ a.cmb = b.xz();
+ c = b.Xa();
+ a.data = b.Vd(c);
+ },
+ trak: l,
+ mdia: l,
+ minf: l,
+ stbl: l,
+ stsd: function (a, b) {
+ r(a, b);
+ b.Xa();
+ l(a, b);
+ },
+ encv: p,
+ avc1: p,
+ hvcC: p,
+ hev1: p,
+ mp4a: h,
+ enca: h,
+ "ec-3": h,
+ avcC: function (a, b) {
+ a.version = b.Ke();
+ a.HWb = b.Ke();
+ a.V_b = b.Ke();
+ a.GWb = b.Ke();
+ a.tZb = (b.Ke() & 3) + 1;
+ a.C0b = f(b, b.Ke() & 31);
+ a.K_b = f(b, b.Ke());
+ },
+ pasp: function (a, b) {
+ a.QYb = b.Xa();
+ a.o1b = b.Xa();
+ },
+ sinf: l,
+ frma: function (a, b) {
+ a.AXb = b.vt(4);
+ },
+ schm: function (a, b) {
+ r(a, b);
+ a.zHb = b.vt(4);
+ a.w0b = b.Xa();
+ a.qf & 1 && (a.v0b = b.Qma());
+ },
+ schi: l,
+ tenc: m,
+ mvex: l,
+ trex: function (a, b) {
+ r(a, b);
+ a.cb = b.Xa();
+ a.Pkb = b.Xa();
+ a.WG = b.Xa();
+ a.dIa = b.Xa();
+ a.cIa = u(b);
+ },
+ traf: l,
+ tfhd: function (a, b) {
+ var c;
+ r(a, b);
+ a.cb = b.Xa();
+ c = a.qf;
+ c & 1 && (a.JWb = b.Kg());
+ c & 2 && (a.n0b = b.Xa());
+ c & 8 && (a.WG = b.Xa());
+ c & 16 && (a.dIa = b.Xa());
+ c & 32 && (a.cIa = u(b));
+ },
+ saio: function (a, b) {
+ r(a, b);
+ a.qf & 1 && (a.geb = b.Xa(), a.heb = b.Xa());
+ for (var c = 1 <= a.version ? 8 : 4, f = b.Xa(), h = []; f--; ) {
+ h.push(b.$c(c));
+ }
+ a.p0b = h;
+ },
+ mdat: function (a, b) {
+ a.data = b.Vd(b.Jk());
+ },
+ tkhd: function (a, b) {
+ var c;
+ r(a, b);
+ c = 1 <= a.version ? 8 : 4;
+ a.Yh = b.$c(c);
+ a.modificationTime = b.$c(c);
+ a.cb = b.Xa();
+ b.skip(4);
+ a.duration = b.$c(c);
+ b.skip(8);
+ a.Kwb = b.Tb();
+ a.Wcb = b.Tb();
+ a.volume = b.F2();
+ b.skip(2);
+ b.skip(36);
+ a.width = b.XQ();
+ a.height = b.XQ();
+ },
+ mdhd: function (a, b) {
+ var c;
+ r(a, b);
+ c = 1 <= a.version ? 8 : 4;
+ a.Yh = b.$c(c);
+ a.modificationTime = b.$c(c);
+ a.spa = b.Xa();
+ a.duration = b.$c(c);
+ c = b.Tb();
+ a.language = String.fromCharCode((c >> 10 & 31) + 96) + String.fromCharCode((c >> 5 & 31) + 96) + String.fromCharCode((c & 31) + 96);
+ b.skip(2);
+ },
+ mfhd: function (a, b) {
+ r(a, b);
+ a.B0b = b.Xa();
+ },
+ tfdt: function (a, b) {
+ r(a, b);
+ a.iN = b.$c(1 <= a.version ? 8 : 4);
+ 8 == b.Jk() && b.skip(8);
+ },
+ saiz: function (a, b) {
+ r(a, b);
+ a.qf & 1 && (a.geb = b.Xa(), a.heb = b.Xa());
+ for (var c = b.Ke(), f = b.Xa(), h = []; f--; ) {
+ h.push(c || b.Ke());
+ }
+ a.q0b = h;
+ },
+ trun: function (a, b) {
+ var c,
+ f;
+ r(a, b);
+ c = b.Xa();
+ f = a.qf;
+ f & 1 && (a.CXb = b.Xa());
+ f & 4 && (a.pYb = u(b));
+ for (var h = [], d; c--; ) {
+ d = {};
+ f & 256 && (d.duration = b.Xa());
+ f & 512 && (d.size = b.Xa());
+ f & 1024 && (d.qf = b.Xa());
+ f & 2048 && (d.rXb = b.Xa());
+ h.push(d);
+ }
+ a.Fp = h;
+ },
+ sdtp: function (a, b) {
+ r(a, b);
+ for (var c = []; 0 < b.Jk(); ) {
+ c.push(g({}, b.Ke()));
+ }
+ a.Fp = c;
+ },
+ "4E657466-6C69-7850-6966-665374726D21": function (a, b) {
+ r(a, b);
+ a.fileSize = b.Kg();
+ a.spa = b.Kg();
+ a.duration = b.Kg();
+ a.BRa = b.Kg();
+ a.G0b = b.Kg();
+ 1 <= a.version && (a.l_b = b.Kg(), a.m_b = b.Xa(), a.CRa = b.Kg(), a.VJa = b.Xa(), a.HJa = b.xz());
+ },
+ "A2394F52-5A9B-4F14-A244-6C427C648DF4": function (a, b) {
+ r(a, b);
+ a.qf & 1 && (a.yWb = b.$c(3), a.pZb = b.Ke(), a.rwb = b.xz());
+ a.j0b = b.Xa();
+ a.EWb = b.Vd(b.Jk());
+ },
+ "4E657466-6C69-7846-7261-6D6552617465": function (a, b) {
+ r(a, b);
+ a.M1 = b.Xa();
+ a.gO = b.Tb();
+ },
+ "8974DBCE-7BE7-4C51-84F9-7148F9882554": m,
+ "636F6D2E-6E65-7466-6C69-782E6974726B": l,
+ "636F6D2E-6E65-7466-6C69-782E68696E66": function (a, b) {
+ r(a, b);
+ a.uG = b.xz();
+ a.Yh = b.Kg();
+ a.G = b.Kg();
+ a.Uk = b.Kg();
+ a.Z2 = b.Tb();
+ a.a3 = b.Tb();
+ a.uwb = b.Vd(16);
+ a.YKb = b.Vd(16);
+ },
+ "636F6D2E-6E65-7466-6C69-782E76696E66": function (a, b) {
+ r(a, b);
+ a.WWb = b.Vd(b.Jk());
+ },
+ "636F6D2E-6E65-7466-6C69-782E6D696478": function (a, b) {
+ var c;
+ r(a, b);
+ a.SHb = b.Kg();
+ c = b.Xa();
+ a.Ya = [];
+ for (var f = 0; f < c; f++) {
+ a.Ya.push({
+ duration: b.Xa(),
+ size: b.Tb()
+ });
+ }
+ },
+ "636F6D2E-6E65-7466-6C69-782E69736567": l,
+ "636F6D2E-6E65-7466-6C69-782E73696478": function (a, b) {
+ var c;
+ r(a, b);
+ a.uG = b.xz();
+ a.duration = b.Xa();
+ c = b.Xa();
+ a.Fp = [];
+ for (var f = 0; f < c; f++) {
+ a.Fp.push({
+ Tj: b.Xa(),
+ duration: b.Xa(),
+ U1: b.Tb(),
+ V1: b.Tb(),
+ I3: b.Tb(),
+ J3: b.Tb(),
+ Ns: b.Kg(),
+ PH: b.Xa()
+ });
+ }
+ },
+ "636F6D2E-6E65-7466-6C69-782E73656E63": function (a, b) {
+ var c,
+ f,
+ d,
+ m;
+ r(a, b);
+ c = b.Xa();
+ f = b.Ke();
+ a.Fp = [];
+ for (var h = 0; h < c; h++) {
+ d = b.Ke();
+ m = d >> 6;
+ d = d & 63;
+ 0 != m && 0 === d && (d = f);
+ a.Fp.push({
+ hJa: m,
+ Uy: b.Vd(d)
+ });
+ }
+ }
+ };
+ d.P = {
+ Y_b: function (a, b) {
+ a = new A(a);
+ b && a.seek(b);
+ return k(a);
+ },
+ LTa: function (a, b) {
+ var c;
+ if (!a)
+ throw Error("mp4-badinput");
+ a = new A(a);
+ c = [];
+ for (b && a.seek(b); b = k(a); ) {
+ c.push(b);
+ }
+ return c;
+ }
+ };
+ }, function (d) {
+ function b(a) {
+ this.buffer = a;
+ this.position = 0;
+ }
+ b.prototype = {
+ seek: function (a) {
+ this.position = a;
+ },
+ skip: function (a) {
+ this.position += a;
+ },
+ Jk: function () {
+ return this.buffer.length - this.position;
+ },
+ Ke: function () {
+ return this.buffer[this.position++];
+ },
+ Vd: function (a) {
+ var b;
+ b = this.position;
+ this.position += a;
+ a = this.buffer;
+ return a.subarray ? a.subarray(b, this.position) : a.slice(b, this.position);
+ },
+ $c: function (a) {
+ for (var b = 0; a--; ) {
+ b = 256 * b + this.buffer[this.position++];
+ }
+ return b;
+ },
+ vt: function (a) {
+ for (var b = ""; a--; ) {
+ b += String.fromCharCode(this.buffer[this.position++]);
+ }
+ return b;
+ },
+ Qma: function () {
+ for (var a = "", b; b = this.Ke(); ) {
+ a += String.fromCharCode(b);
+ }
+ return a;
+ },
+ Tb: function () {
+ return this.$c(2);
+ },
+ Xa: function () {
+ return this.$c(4);
+ },
+ Kg: function () {
+ return this.$c(8);
+ },
+ F2: function () {
+ return this.$c(2) / 256;
+ },
+ XQ: function () {
+ return this.$c(4) / 65536;
+ },
+ Qf: function (a) {
+ for (var b, d = ""; a--; ) {
+ b = this.Ke();
+ d += ("0123456789ABCDEF")[b >>> 4] + ("0123456789ABCDEF")[b & 15];
+ }
+ return d;
+ },
+ xz: function () {
+ return this.Qf(4) + "-" + this.Qf(2) + "-" + this.Qf(2) + "-" + this.Qf(2) + "-" + this.Qf(6);
+ },
+ YQ: function (a) {
+ for (var b = 0, d = 0; d < a; d++) {
+ b += this.Ke() << (d << 3);
+ }
+ return b;
+ },
+ zD: function () {
+ return this.YQ(4);
+ },
+ MS: function (a) {
+ this.buffer[this.position++] = a;
+ },
+ rqa: function (a, b) {
+ this.position += b;
+ for (var c = 1; c <= b; c++) {
+ this.buffer[this.position - c] = a & 255;
+ a = Math.floor(a / 256);
+ }
+ },
+ LS: function (a) {
+ for (var b = a.length, d = 0; d < b; d++) {
+ this.buffer[this.position++] = a[d];
+ }
+ },
+ nE: function (a, b) {
+ this.LS(a.Vd(b));
+ }
+ };
+ d.P = b;
+ }, function (d, b, a) {
+ var t,
+ Z,
+ B,
+ V,
+ fa,
+ ia;
+ function c(a) {
+ t.call(this);
+ this.cqb = m;
+ this.wl = a.url;
+ this.zM = a.request;
+ this.tW = a.Oc || 0;
+ this.cW = a.Xc;
+ this.Kb = a.ka;
+ this.Ak = this.xi = null;
+ this.UL = {};
+ this.Bx = 0;
+ this.kM = a.bufferSize || 4194304;
+ this.Uaa = {};
+ this.eEa = a.version || 1;
+ a.key && (this.MBa = a.crypto, this.$A = this.MBa.importKey("raw", a.key, {
+ name: "AES-CTR"
+ }, !1, ["encrypt", "decrypt"]));
+ a.Xq ? this.xi = a.Xq : (this.ae = a.offset, this.aG = a.size);
+ }
+ function k() {}
+ function l() {}
+ function r(a, b) {
+ var c,
+ f,
+ d,
+ m,
+ p,
+ l,
+ u,
+ r;
+ if (a)
+ this.emit(fa.ERROR, V.QO(a, ia.m4a));
+ else
+ try {
+ if (2 === this.eEa) {
+ f = new k();
+ d = B.LTa(b)[0];
+ m = d.zH("636F6D2E-6E65-7466-6C69-782E68696E66");
+ p = d.zH("636F6D2E-6E65-7466-6C69-782E6D696478");
+ f.S_ = m.uG;
+ f.Yh = m.Yh;
+ f.Uk = m.Uk;
+ f.G = m.G;
+ f.Z2 = m.Z2;
+ f.a3 = m.a3;
+ f.language = m.uwb;
+ f.ALb = m.YKb;
+ f.startOffset = p.SHb;
+ l = [];
+ u = 0;
+ for (a = 0; a < p.Ya.length; a++) {
+ r = p.Ya[a];
+ b = {};
+ b.duration = r.duration;
+ b.size = r.size;
+ l.push(b);
+ u += b.duration;
+ }
+ f.entries = l;
+ f.endTime = u;
+ c = f;
+ } else {
+ l = new Z(b);
+ u = new k();
+ u.identifier = l.vt(4);
+ V.assert("midx" === u.identifier);
+ u.version = l.$c(4);
+ V.assert(0 === u.version);
+ u.S_ = l.Vd(36);
+ u.Yh = l.Kg();
+ u.Uk = l.Kg();
+ u.G = l.Kg();
+ u.Z2 = l.Tb();
+ u.a3 = l.Tb();
+ u.language = l.Vd(16);
+ u.ALb = l.Vd(16);
+ u.startOffset = l.Kg();
+ u.Tn = l.Tb();
+ f = [];
+ for (r = p = 0; r < u.Tn; r++) {
+ a = {};
+ a.duration = l.$c(4);
+ a.size = l.Tb();
+ f.push(a);
+ p += a.duration;
+ }
+ u.entries = f;
+ u.endTime = p;
+ c = u;
+ }
+ this.xi = c;
+ h.call(this);
+ } catch (za) {
+ this.emit(fa.ERROR, V.QO(za, ia.n4a));
+ }
+ }
+ function h() {
+ var a,
+ b;
+ a = this.xi;
+ b = a.startOffset;
+ (a = a.entries.reduce(function (a, b) {
+ return a + b.size;
+ }, 0)) ? (b = {
+ url: this.wl,
+ offset: b,
+ size: a
+ }, this.emit(fa.o4a, this.xi), this.zM(b, p.bind(this))) : this.emit(fa.ERROR, V.QO({}, ia.P4a));
+ }
+ function p(a, b) {
+ var c,
+ h,
+ d,
+ m;
+ c = this;
+ if (a)
+ c.emit(fa.ERROR, V.QO(a, ia.v6a));
+ else {
+ h = 0;
+ d = [];
+ m = 0;
+ try {
+ c.xi.entries.forEach(function (a) {
+ var f,
+ k,
+ p,
+ u,
+ r,
+ w,
+ A;
+ k = h;
+ p = c.xi.S_;
+ u = c.Kb;
+ if (2 === c.eEa) {
+ f = new l();
+ r = B.LTa(b);
+ f.entries = [];
+ f.images = [];
+ for (var g = 0; g < r.length; g++) {
+ for ((p = r[g], k = p.zH("636F6D2E-6E65-7466-6C69-782E73696478"), p = p.zH("636F6D2E-6E65-7466-6C69-782E73656E63"), u = 0); u < k.Fp.length; u++) {
+ w = {};
+ A = k.Fp[u];
+ w.Tj = A.Tj;
+ w.duration = A.duration;
+ w.U1 = A.U1;
+ w.V1 = A.V1;
+ w.I3 = A.I3;
+ w.J3 = A.J3;
+ w.Ns = A.Ns;
+ w.PH = A.PH;
+ if (A = p && p.Fp[u])
+ w.WY = {
+ Uy: A.Uy.slice(0),
+ mode: A.hJa
+ };
+ f.entries.push(w);
+ }
+ }
+ } else {
+ f = new Z(b);
+ r = new l();
+ g = 0;
+ f.position = k;
+ r.identifier = f.vt(4);
+ V.assert("sidx" === r.identifier);
+ r.S_ = f.Vd(36);
+ V.Mgb(r.S_, p, u);
+ r.duration = f.$c(4);
+ r.Tn = f.Tb();
+ r.entries = [];
+ for (r.images = []; g < r.Tn; ) {
+ k = {};
+ k.Tj = f.$c(4);
+ k.duration = f.$c(4);
+ k.U1 = f.Tb();
+ k.V1 = f.Tb();
+ k.I3 = f.Tb();
+ k.J3 = f.Tb();
+ k.Ns = f.Kg();
+ k.PH = f.$c(4);
+ g++;
+ r.entries.push(k);
+ }
+ f = r;
+ }
+ d.push(f);
+ a.Doa = f;
+ f.Nma = m;
+ f.UQ = m + a.duration;
+ m = f.UQ;
+ r = f.entries;
+ r.length && (f.startTime = r[0].Tj, f.endTime = r[r.length - 1].Tj + r[r.length - 1].duration);
+ h += a.size;
+ });
+ } catch (P) {
+ c.emit(fa.ERROR, V.QO(P, ia.w6a));
+ return;
+ }
+ c.Ak = d;
+ c.emit(fa.x6a, this.Ak);
+ a = f.call(c, c.tW, 2);
+ a.length ? K.call(c, a, c.tW, function (a) {
+ a && c.Kb.error("initial sidx download failed");
+ c.emit(fa.Xya);
+ }) : c.emit(fa.Xya);
+ }
+ }
+ function m(a) {
+ var b,
+ c,
+ h,
+ d,
+ m;
+ b = f.call(this, a, 2);
+ c = (c = this.xi) ? c.endTime : void 0;
+ if (a > c)
+ return [];
+ h = this.UL.Dt;
+ d = this.UL.index;
+ c = [];
+ d = V.dc(d) && this.Ak[d + 1];
+ if (!(d && d.entries.length || h && !(a > h.endTime)))
+ return [];
+ b.length && K.call(this, b, a);
+ h && h.images.length && (c = g(h, a, [], this.xi));
+ d && d.images.length && (b = g(d, a, c, this.xi), c.push.apply(c, b));
+ b = A(c);
+ if (this.Ak && 0 != this.Ak.length) {
+ c = this.Ak[Math.floor(a / 6E4)];
+ if (!(c.Nma <= a && a <= c.UQ))
+ a: {
+ c = this.Ak.length;
+ if (!this.mnb) {
+ this.mnb = !0;
+ b: {
+ try {
+ m = String.fromCharCode.apply(String, this.xi.language);
+ break b;
+ } catch (P) {}
+ m = "";
+ }
+ this.Kb.error("bruteforce search for ", {
+ movieId: this.xi.G,
+ packageId: this.xi.Uk,
+ lang: m
+ });
+ }
+ for (m = 0; m < c; m++) {
+ if ((h = this.Ak[m], h.Nma <= a && a <= h.UQ)) {
+ c = h;
+ break a;
+ }
+ }
+ c = void 0;
+ }
+ m = c;
+ } else
+ m = void 0;
+ if (c = m && 0 < m.entries.length && 0 === m.images.length)
+ a: {
+ c = m.entries.length;
+ for (d = 0; d < c; d++) {
+ if ((h = m.entries[d], h.Tj <= a && h.Tj + h.duration >= a)) {
+ c = !0;
+ break a;
+ }
+ }
+ c = !1;
+ }
+ return c ? null : b;
+ }
+ function f(a, b) {
+ var c,
+ d;
+ c = [];
+ if (a = u.call(this, a))
+ this.UL = a;
+ else
+ return (this.UL = {}, c);
+ for (var f = 0, h = this.Ak ? this.Ak.length : 0; f < b && a.index + f < h; ) {
+ d = this.Ak[a.index + f];
+ d && !d.images.length && c.push(d);
+ f++;
+ }
+ return c;
+ }
+ function u(a) {
+ var b,
+ c,
+ f,
+ h,
+ d,
+ m,
+ k;
+ c = this.UL;
+ f = c.Dt;
+ h = c.index;
+ d = this.Ak;
+ this.Gk(V.dc(a));
+ f && (0 === h && a <= f.startTime ? (k = !0, b = c) : a >= f.startTime && a <= f.endTime ? (k = !0, b = c) : (m = d[h - 1], d = d[h + 1], m && a > m.endTime && a <= f.startTime ? (k = !0, b = c) : d && a >= f.endTime && a <= d.endTime && (k = !0, b = {
+ Dt: d,
+ index: h + 1
+ })));
+ if (!k)
+ for ((c = this.xi.entries, f = c.length, h = 0); h < f; h++) {
+ if ((m = c[h].Doa, a <= m.startTime || a > m.startTime && a <= m.endTime)) {
+ b = {
+ Dt: c[h].Doa,
+ index: h
+ };
+ break;
+ }
+ }
+ return b;
+ }
+ function g(a, b, c, f) {
+ var h,
+ d,
+ m,
+ k,
+ p,
+ l;
+ h = a.entries;
+ d = h.length;
+ m = [];
+ p = 0;
+ if (!h.length)
+ return m;
+ for (; p < d; ) {
+ k = h[p];
+ if (k.Tj <= b)
+ k.Tj + k.duration >= b && m.push(V.aea(k, a.images[p].data, f));
+ else {
+ l = m.length && m[m.length - 1] || c.length && c[c.length - 1];
+ if (l && l.Tj > b && l.Tj !== k.Tj)
+ break;
+ l.Ns !== k.Ns && m.push(V.aea(k, a.images[p].data, f));
+ }
+ p++;
+ }
+ return m;
+ }
+ function A(a) {
+ return a.map(function (b, c) {
+ b.duration += V.nmb(a.slice(c + 1), b);
+ return b;
+ }).reduce(function (a, b) {
+ V.EHb(a, b.id) || a.push(b);
+ return a;
+ }, []);
+ }
+ function K(a, b, c) {
+ var f,
+ h,
+ d,
+ m,
+ k,
+ p;
+ f = this;
+ h = a[0];
+ d = a[a.length - 1];
+ 0 < h.entries.length && (m = h.entries[0].Ns, k = h.entries[h.entries.length - 1]);
+ 0 < d.entries.length && (V.dc(m) || (m = d.entries[0].Ns), k = d.entries[d.entries.length - 1]);
+ if (m) {
+ h = k.Ns + k.PH - m;
+ p = V.pqb(m, h);
+ f.Uaa[p] || (f.Uaa[p] = !0, C.call(f, a, b), f.zM({
+ url: f.wl,
+ offset: m,
+ size: h
+ }, function (b, h) {
+ var d,
+ k,
+ l,
+ u;
+ setTimeout(function () {
+ delete f.Uaa[p];
+ }, 1E3);
+ if (b)
+ c && c(b);
+ else {
+ d = new Z(h);
+ k = 0;
+ u = [];
+ a.forEach(function (a) {
+ a.entries.forEach(function (b, c) {
+ var h,
+ p;
+ d.position = b.Ns - m;
+ h = {
+ data: d.Vd(b.PH)
+ };
+ p = b.WY;
+ p && (h.Uy = p.Uy, h.hJa = p.mode, l = !0, u.push(h));
+ a.images[c] = h;
+ !b.WY && V.cZa(a.images[c].data, f.Gk.bind(f));
+ k += a.images[c].data.length;
+ });
+ });
+ f.Bx += k;
+ l ? f.$A.then(function (a) {
+ return S.call(f, u, a);
+ }).then(function () {
+ c && c(null);
+ })["catch"](function (a) {
+ f.Kb.error("decrypterror", a);
+ c && c({
+ U: !1
+ });
+ }) : c && c(null);
+ }
+ }));
+ } else
+ c && c(null);
+ }
+ function C(a, b) {
+ var d,
+ m,
+ k,
+ p,
+ l,
+ r;
+ function c() {
+ return {
+ pts: b,
+ hasEnoughSpace: d.Bx + m <= d.kM,
+ required: m,
+ currentSize: d.Bx,
+ max: d.kM,
+ currentIndex: u.call(d, b).index,
+ sidxWithImages: H.call(d),
+ newSidxes: a.map(function (a) {
+ return d.Ak.indexOf(a);
+ })
+ };
+ }
+ function f(a, b) {
+ d.cW && !a && d.Kb.info("not done in iteration", b);
+ }
+ function h(a) {
+ var b,
+ c,
+ f;
+ b = d.Ak[a];
+ c = b.images && b.images.length;
+ if (0 < c) {
+ f = n([b]);
+ b.images = [];
+ d.Bx -= f;
+ d.cW && d.Kb.info("cleaning up space from sidx", {
+ index: a,
+ start: b.startTime,
+ size: f,
+ images: c
+ });
+ if (d.Bx + m <= d.kM)
+ return !0;
+ }
+ }
+ d = this;
+ m = n(a);
+ d.Kb.info("make space start:", c());
+ if (!(d.Bx + m <= d.kM)) {
+ k = u.call(d, b).index;
+ p = !1;
+ l = 0;
+ r = d.Ak.length - 1;
+ if (0 > k) {
+ d.Kb.error("inconsistent sidx index");
+ return;
+ }
+ for (; !p && l < k - 2; ) {
+ p = h(l);
+ l++;
+ }
+ for (f(p, 1); !p && r > k + 2; ) {
+ p = h(r);
+ r--;
+ }
+ for (f(p, 2); !p && l < k; ) {
+ p = h(l);
+ l++;
+ }
+ for (f(p, 3); !p && r > k; ) {
+ p = h(r);
+ r--;
+ }
+ f(p, 4);
+ p || d.Kb.error("could not make enough space", {
+ maxBuffer: this.kM
+ });
+ }
+ d.Kb.info("make space end", c());
+ }
+ function n(a) {
+ return a.reduce(function (a, b) {
+ return a + b.entries.reduce(function (a, b) {
+ return b.PH + a;
+ }, 0);
+ }, 0);
+ }
+ function H() {
+ var a;
+ a = [];
+ this.xi && this.xi.entries && this.xi.entries.reduce(function (b, c, f) {
+ var h;
+ c = c.Doa;
+ h = 0;
+ c && c.images.length && (a.push(f), h = c.images.reduce(function (a, b) {
+ return a + b.data.length;
+ }, 0));
+ return b + h;
+ }, 0);
+ return a.join(", ");
+ }
+ function G(a, b) {
+ return a && a.Nma <= b && a.UQ >= b;
+ }
+ function q(a, b) {
+ var c,
+ f,
+ h,
+ d,
+ m,
+ k;
+ c = this;
+ f = c.xi;
+ h = c.Ak;
+ d = h && h.length;
+ if (a > b || 0 > a)
+ throw Error("invalid range startPts: " + a + ", endPts: " + b);
+ if (f && h) {
+ if (0 === d)
+ return [];
+ f = h[0].duration;
+ if (V.dc(f) && 0 < f)
+ (f = Math.floor(a / f), m = f < d && G(h[f], a) ? h[f] : void 0);
+ else
+ for ((c.cW && c.Kb.warn("duration not defined, so use brute force to get starting sidx"), f = 0); f < d; f++) {
+ k = h[f];
+ if (G(k, a)) {
+ m = k;
+ break;
+ }
+ }
+ if (V.dc(m)) {
+ m = [];
+ for (var p = function (c) {
+ var f;
+ f = c.Tj <= a && a <= c.Tj + c.duration;
+ return a <= c.Tj && c.Tj <= b || f;
+ }; f < d; ) {
+ k = h[f];
+ m = m.concat(k.entries.filter(p));
+ if (b < k.UQ)
+ break;
+ f++;
+ }
+ m = m.map(function (a) {
+ return V.aea(a, null, c.xi);
+ });
+ return A(m);
+ }
+ }
+ }
+ function S(a, b) {
+ var f,
+ h;
+ function c(a, b) {
+ var c,
+ f;
+ c = this;
+ f = new Uint8Array(16);
+ f.set(a.Uy);
+ return c.MBa.decrypt({
+ name: "AES-CTR",
+ counter: f,
+ length: 128
+ }, b, a.data).then(function (b) {
+ a.data.set(new Uint8Array(b));
+ V.cZa(a.data, c.Gk.bind(c));
+ });
+ }
+ f = this;
+ try {
+ h = [];
+ a.forEach(function (a) {
+ a.Uy && (a = c.call(f, a, b), h.push(a));
+ });
+ return (void 0).all(h);
+ } catch (ha) {
+ return (f.Kb.error("decrypterror", ha), (void 0).reject(ha));
+ }
+ }
+ t = a(132).EventEmitter;
+ Z = a(563);
+ B = a(562);
+ V = a(560);
+ fa = c.events = {
+ o4a: "midxready",
+ x6a: "sidxready",
+ Xya: "ready",
+ ERROR: "error"
+ };
+ ia = c.fYb = {
+ m4a: "midxdownloaderror",
+ n4a: "midxparseerror",
+ P4a: "nosidxfoundinmidx",
+ v6a: "sidxdownloaderror",
+ w6a: "sidxparseerror"
+ };
+ c.prototype = Object.create(t.prototype);
+ c.prototype.constructor = c;
+ c.prototype.start = function () {
+ var a;
+ if (this.xi)
+ (this.Kb.warn("midx was prefectched and provided"), h.call(this));
+ else {
+ a = {
+ url: this.wl,
+ offset: this.ae,
+ size: this.aG,
+ responseType: "binary"
+ };
+ this.Kb.warn("downloading midx...");
+ this.zM(a, r.bind(this));
+ }
+ };
+ c.prototype.close = function () {};
+ c.prototype.Gk = function (a) {
+ this.cW && V.assert(a, this.Kb);
+ };
+ c.prototype.Ey = function (a, b) {
+ return q.call(this, a, b);
+ };
+ c.prototype.Cha = function (a, b) {
+ return (a = this.Ey(a, b)) ? a.length : a;
+ };
+ d.P = c;
+ }, function (d, b, a) {
+ var l;
+ function c(a, b) {
+ return b.reduce(k.bind(this, a), []);
+ }
+ function k(a, b, c) {
+ var h,
+ f;
+ h = c.displayTime - a;
+ a = c.displayTime + c.duration - a;
+ f = 0 < b.length ? b[0].timeout : Infinity;
+ return 0 < h && h < f ? [{
+ timeout: h,
+ type: "showsubtitle",
+ Ee: c
+ }
+ ] : h === f ? b.concat([{
+ timeout: h,
+ type: "showsubtitle",
+ Ee: c
+ }
+ ]) : 0 < a && a < f ? [{
+ timeout: a,
+ type: "removesubtitle",
+ Ee: c
+ }
+ ] : a === f ? b.concat([{
+ timeout: a,
+ type: "removesubtitle",
+ Ee: c
+ }
+ ]) : b;
+ }
+ l = a(132).EventEmitter;
+ b = a(284)({});
+ a = function h(a, b, c) {
+ if (!(this instanceof h))
+ return new h(a, b, c);
+ l.call(this);
+ this.vu = a;
+ this.j9a = b;
+ this.Gu = {};
+ this.bG = {};
+ this.Kb = c || console;
+ this.uV = !1;
+ };
+ a.prototype = Object.create(l.prototype);
+ a.prototype.stop = function () {
+ var a;
+ a = this;
+ clearTimeout(a.vl);
+ Object.keys(a.Gu).forEach(function (b) {
+ a.emit("removesubtitle", a.Gu[b]);
+ });
+ a.Gu = {};
+ };
+ a.prototype.pause = function () {
+ clearTimeout(this.vl);
+ };
+ a.prototype.sr = function (a, b) {
+ var h,
+ f;
+ h = this;
+ f = h.vu();
+ clearTimeout(this.vl);
+ a = h.j9a(f);
+ null !== a && h.uV && (h.uV = !1, h.emit("bufferingComplete"));
+ b = "number" === typeof b ? b : 0;
+ Object.keys(h.Gu).forEach(function (a) {
+ a = h.Gu[a];
+ a.displayTime <= f && f < a.displayTime + a.duration || (delete h.Gu[a.id], h.emit("removesubtitle", a));
+ });
+ Object.keys(h.bG).forEach(function (a) {
+ a = h.bG[a];
+ f >= a.displayTime + a.duration && delete h.bG[a.id];
+ });
+ null !== a && 0 < a.length ? (b = a.length, h.Kb.info("found " + b + " entries for pts " + f), a.forEach(function (a) {
+ a.displayTime <= f && f < a.displayTime + a.duration && !h.Gu[a.id] && (h.emit("showsubtitle", a), h.Gu[a.id] = a, delete h.bG[a.id]);
+ }), b = a[a.length - 1], h.Gu[b.id] || h.bG[b.id] || (h.emit("stagesubtitle", b), h.bG[b.id] = b), b = c(f, a), 0 < b.length ? h.DW(b[0].timeout) : h.DW(2E4)) : null === a ? (a = 250 * Math.pow(2, b), 2E3 < a && (a = 2E3), h.Kb.warn("checking buffer again in " + a + "ms"), h.uV || (h.uV = !0, h.emit("underflow")), h.DW(a, b + 1)) : h.DW(2E4);
+ };
+ a.prototype.DW = function (a, b) {
+ var c;
+ c = this;
+ c.Kb.trace("Scheduling pts check.");
+ c.vl = setTimeout(function () {
+ c.sr(c.vu(), b);
+ }, a);
+ };
+ d.P = b(["function", "function", "object"], a);
+ }, function (d, b, a) {
+ var h,
+ p,
+ m;
+ function c(a) {
+ var b;
+ b = 1;
+ "dfxp-ls-sdh" === this.sW && (b = a.PWb.length);
+ this.Kb.info("show subtitle called at " + this.vu() + " for displayTime " + a.displayTime);
+ this.emit("showsubtitle", a);
+ this.Hx[this.Hx.length - 1].E3 += b;
+ }
+ function k(a) {
+ this.Kb.info("remove subtitle called at " + this.vu() + " for remove time " + (a.displayTime + a.duration));
+ this.emit("removesubtitle", a);
+ }
+ function l() {
+ this.Kb.info("underflow fired by the subtitle timer");
+ this.emit("underflow");
+ }
+ function r() {
+ this.Kb.info("bufferingComplete fired by the subtitle timer");
+ this.emit("bufferingComplete");
+ }
+ h = a(132).EventEmitter;
+ p = a(565);
+ b = a(284)();
+ m = a(564);
+ a = function u(a, b) {
+ var d,
+ g;
+ d = this;
+ g = a.Xc || !1;
+ if (!(d instanceof u))
+ return new u(a, b);
+ h.call(d);
+ d.Kb = a.ka || console;
+ d.zM = a.request;
+ d.vu = a.ULa;
+ d.vl = null;
+ d.Bu = !0;
+ d.Hx = [];
+ d.sW = b.profile;
+ d.wl = b.url;
+ d.tW = b.Oc;
+ d.jab = b.PDb;
+ d.B8a = b.vm;
+ a = {
+ url: d.wl,
+ request: d.zM,
+ Oc: d.tW,
+ xml: b.xml,
+ PDb: d.jab,
+ vm: d.B8a,
+ ka: d.Kb,
+ Xc: g,
+ bufferSize: b.bufferSize,
+ crypto: b.crypto,
+ key: b.key,
+ Xq: b.Xq
+ };
+ if ("nflx-cmisc" === d.sW)
+ (a.offset = b.g1, a.size = b.Mka, d.Pd = new m(a));
+ else if ("nflx-cmisc-enc" === d.sW)
+ (a.version = 2, a.offset = b.g1, a.size = b.Mka, d.Pd = new m(a));
+ else
+ throw Error("SubtitleManager: " + d.sW + " is an unsupported profile");
+ d.Pd.on("ready", function () {
+ var a,
+ h;
+ a = !!b.feb;
+ d.Kb.info("ready event fired by subtitle stream");
+ d.emit("ready");
+ h = d.Pd.cqb.bind(d.Pd);
+ d.vl = new p(d.vu, h, d.Kb);
+ d.vl.on("showsubtitle", c.bind(d));
+ d.vl.on("removesubtitle", k.bind(d));
+ d.vl.on("underflow", l.bind(d));
+ d.vl.on("bufferingComplete", r.bind(d));
+ a && (d.Kb.info("autostarting subtitles"), setTimeout(function () {
+ d.sr(d.vu());
+ }, 10));
+ });
+ d.Pd.on("error", d.emit.bind(d, "error"));
+ };
+ a.prototype = Object.create(h.prototype);
+ a.prototype.start = function () {
+ this.Pd.start();
+ };
+ a.prototype.sr = function (a) {
+ this.Bu && (this.Bu = !1, this.Kb.info("creating a new subtitle interval at " + a), this.Hx.push({
+ T: a,
+ E3: 0
+ }));
+ null !== this.vl && this.vl.sr(a);
+ };
+ a.prototype.stop = function () {
+ var a;
+ this.vu();
+ this.Kb.info("stop called");
+ this.Bu || this.pause();
+ this.Pd.removeAllListeners(["ready"]);
+ null !== this.vl && this.vl.stop();
+ a = this.Hx.reduce(function (a, b) {
+ a.iWa += b.E3;
+ a.xq += b.xJa;
+ a.avb.push(b);
+ return a;
+ }, {
+ iWa: 0,
+ xq: 0,
+ avb: []
+ });
+ "object" === typeof this.Pd && this.Pd.close();
+ this.Kb.info("metrics: " + JSON.stringify(a));
+ return a;
+ };
+ a.prototype.pause = function () {
+ var a,
+ b;
+ a = this.vu();
+ if (this.Bu)
+ this.Kb.warn("pause called on subtitle manager, but it was already paused!");
+ else {
+ this.Kb.info("pause called at " + a);
+ this.Bu = !0;
+ this.Kb.info("ending subtitle interval at " + a);
+ b = this.Hx[this.Hx.length - 1];
+ b.oa = a;
+ b.oa < b.T && (this.Kb.warn("correcting for interval where endPts is smaller than startPts"), b.T = 0 < b.oa ? b.oa - 1 : 0);
+ b.xJa = this.Pd.Cha(b.T, b.oa);
+ this.Kb.info("showed " + b.E3 + " during this interval");
+ this.Kb.info("expected " + b.xJa + " for this interval");
+ }
+ null !== this.vl && this.vl.pause();
+ };
+ a.prototype.Ey = function (a, b) {
+ return this.Pd.Ey(a, b);
+ };
+ a.prototype.Cha = function (a, b) {
+ return this.Pd.Cha(a, b);
+ };
+ a = b([{
+ request: "function",
+ ULa: "function",
+ ka: "object"
+ }, "object"], a);
+ d.P = a;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r,
+ h,
+ p,
+ m;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Lqa = void 0;
+ c = a(0);
+ k = a(1);
+ l = a(34);
+ r = a(41);
+ h = a(40);
+ p = a(29);
+ m = a(246);
+ d = (function () {
+ var b;
+ function a(a, b, c, f) {
+ a = h.me.call(this, a, void 0 === f ? "AppInfoConfigImpl" : f) || this;
+ a.config = b;
+ a.j4 = c;
+ return a;
+ }
+ N(a, h.me);
+ a.prototype.wrb = function (a) {
+ return "" + this.kJa + (this.j4.Aoa(a) ? "/msl_v1" : "");
+ };
+ a.prototype.Erb = function (a) {
+ return "" + this.host + (this.j4.Aoa(a) ? "/msl" : "") + "/playapi";
+ };
+ wa.Object.defineProperties(a.prototype, {
+ endpoint: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.host + "/api";
+ }
+ },
+ kJa: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.host + "/nq";
+ }
+ },
+ host: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ var a;
+ switch (this.config.lH) {
+ case l.Zt.N6a:
+ a = "www.stage";
+ break;
+ case l.Zt.pAa:
+ a = "www-qa.test";
+ break;
+ case l.Zt.hva:
+ a = "www-int.test";
+ break;
+ default:
+ a = "www";
+ }
+ return "https://" + a + ".netflix.com";
+ }
+ },
+ KFa: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return "pbo_manifests";
+ }
+ }
+ });
+ b = a;
+ c.__decorate([r.config(r.string, "apiEndpoint")], b.prototype, "endpoint", null);
+ c.__decorate([r.config(r.string, "nqEndpoint")], b.prototype, "kJa", null);
+ c.__decorate([r.config(r.string, "bindService")], b.prototype, "KFa", null);
+ return b = c.__decorate([k.N(), c.__param(0, k.l(p.bj)), c.__param(1, k.l(l.kl)), c.__param(2, k.l(m.BL)), c.__param(3, k.l(p.iA)), c.__param(3, k.optional())], b);
+ })();
+ b.Lqa = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.profile = b.VEa = void 0;
+ c = a(567);
+ k = a(118);
+ d = a(1);
+ l = a(91);
+ r = a(14);
+ b.VEa = new d.Kc(function (a) {
+ a(k.Yz).to(c.Lqa).Z();
+ });
+ b.profile = new d.Kc(function (a) {
+ a(l.cF).Jw(function (a) {
+ return (a = a.hb.get(r.fd)()) && a.Ds ? "browsertest" : "browser";
+ });
+ });
+ }, function (d, b, a) {
+ var c,
+ k,
+ l;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.pTa = void 0;
+ c = a(2);
+ k = [c.J.n3a, c.J.Pua, c.J.Nua, c.J.Oua, c.J.Uua, c.J.Jua, c.J.Hua, c.J.T6, c.J.Vua, c.J.Kua, c.J.k3a, c.J.l3a, c.J.Iua, c.J.Zw, c.J.Eua, c.J.Gua, c.J.Rua, c.J.Sua, c.J.Tua, c.J.o3a, c.J.q3a, c.J.u3a, c.J.s3a, c.J.r3a, c.J.p3a, c.J.t3a, c.J.Qua, c.J.Mua, c.J.Lua, c.J.Fua];
+ (function (a) {
+ a.W4a = function (a) {
+ var f;
+ for (var b = {}, h = 0; h < a.length; h++) {
+ f = a[h];
+ if (b[f.errorCode])
+ return {
+ errorCode: f.errorCode,
+ ja: c.I.VZa
+ };
+ b[f.errorCode] = 1;
+ }
+ };
+ a.X4a = function (a) {
+ var h;
+ for (var b = 0; b < a.length; b++) {
+ h = a[b];
+ if (-1 === k.indexOf(h.errorCode))
+ return {
+ errorCode: h.errorCode,
+ ja: c.I.WZa
+ };
+ }
+ };
+ })(l || (l = {}));
+ b.pTa = function (a) {
+ return new Promise(function (b, c) {
+ var h;
+ h = l.X4a(a);
+ h && c(h);
+ (h = l.W4a(a)) && c(h);
+ b(a.sort(function (a, b) {
+ return k.indexOf(a.errorCode) - k.indexOf(b.errorCode);
+ }));
+ });
+ };
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r,
+ h,
+ p,
+ m,
+ f,
+ u,
+ g,
+ A,
+ K,
+ C,
+ n;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.kra = void 0;
+ c = a(0);
+ k = a(68);
+ l = a(2);
+ r = a(569);
+ h = a(63);
+ p = a(1);
+ m = a(7);
+ f = a(14);
+ u = a(61);
+ g = a(3);
+ A = a(87);
+ K = a(285);
+ C = a(24);
+ n = a(10);
+ d = (function () {
+ var b;
+ function a(a, b, c, f, h, d) {
+ var m;
+ m = this;
+ this.zj = a;
+ this.config = c;
+ this.Yk = f;
+ this.debug = h;
+ this.va = d;
+ this.JXa = [];
+ this.Yc = {};
+ this.log = b.xb("loadAsync");
+ this.Xxb = K.aua(function (a) {
+ m.SFb = !0;
+ m.startTime = m.va.Yb().ca(g.ia);
+ m.load(m.JXa).then(function () {
+ m.endTime = m.va.Yb().ca(g.ia);
+ a(n.pd);
+ })["catch"](function (b) {
+ m.endTime = m.va.Yb().ca(g.ia);
+ a(b);
+ });
+ });
+ }
+ a.prototype.IP = function (a) {
+ this.Xxb(a);
+ };
+ a.prototype.register = function (a, b) {
+ this.debug.assert(!this.SFb);
+ this.JXa.push({
+ oxb: this.zfb(b),
+ errorCode: a
+ });
+ };
+ a.prototype.kd = function (a) {
+ this.debug.assert(void 0 === this.Yc[a]);
+ this.Yc[a] = this.va.Yb().ca(g.ia);
+ };
+ a.prototype.load = function (a) {
+ var b;
+ b = this;
+ return r.pTa(a).then(function (a) {
+ b.zj.mark(h.sk.si.a_a);
+ return a.reduce(function (a, c) {
+ return a.then(function () {
+ return b.kxb(c);
+ });
+ }, Promise.resolve()).then(function () {
+ b.zj.mark(h.sk.si.ZZa);
+ });
+ });
+ };
+ a.prototype.kxb = function (a) {
+ var b,
+ c;
+ b = this;
+ c = a.oxb;
+ return this.Yk.Sm(g.Gb(this.config().Hdb), c())["catch"](function (c) {
+ b.log.error("Failed to load component " + a.errorCode, c);
+ b.zj.mark(h.sk.si.$Za);
+ if (c instanceof u.rn)
+ throw {
+ ja: l.I.YZa,
+ errorCode: a.errorCode
+ };
+ c.errorCode = c.errorCode || a.errorCode;
+ c.ja = c.ja || l.I.XZa;
+ throw c;
+ });
+ };
+ a.prototype.zfb = function (a) {
+ return function () {
+ return new Promise(function (b, c) {
+ a(function (a) {
+ a.U ? b() : c(a);
+ });
+ });
+ };
+ };
+ b = a;
+ return b = c.__decorate([p.N(), c.__param(0, p.l(k.sx)), c.__param(1, p.l(m.Jb)), c.__param(2, p.l(f.fd)), c.__param(3, p.l(u.nx)), c.__param(4, p.l(A.Dr)), c.__param(5, p.l(C.Me))], b);
+ })();
+ b.kra = d;
+ }, function (d, b, a) {
+ var c,
+ k;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.pFa = void 0;
+ d = a(1);
+ c = a(570);
+ k = a(26);
+ b.pFa = new d.Kc(function (a) {
+ a(k.Cf).to(c.kra).Z();
+ });
+ }, function (d, b, a) {
+ var k,
+ l,
+ r,
+ h,
+ p,
+ m,
+ f;
+ function c(a, b, c, f, h, d, m, k, l, g) {
+ var u;
+ u = p.dL.call(this, b, c, l, g) || this;
+ u.di = a;
+ u.ka = f;
+ u.Mi = h;
+ u.va = d;
+ u.vDb = m;
+ u.BO = !1;
+ u.wma = Promise.resolve();
+ u.BQa = k.Wda({
+ lha: function () {
+ return r.Gb(100);
+ }
+ }, function () {
+ return u.Zh().QZ() || 0;
+ });
+ return u;
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Sza = void 0;
+ k = a(13);
+ l = a(189);
+ r = a(3);
+ h = a(2);
+ p = a(286);
+ m = a(290);
+ f = a(113);
+ N(c, p.dL);
+ c.prototype.sQ = function () {
+ this.tz();
+ };
+ c.prototype.Fla = function () {};
+ c.prototype.xMa = function (a, b) {
+ var c,
+ d,
+ m,
+ p;
+ c = this.oc.Gh(a);
+ if (this.di.x4 && this.oc.ha.ma === c.ma)
+ return Promise.resolve(this.Zh().seek(c.yf, k.le.lu, void 0));
+ d = this.jl.KH(c.ma);
+ b = f.Lka(d.gb, b);
+ m = this.Zh().Ks();
+ if (d.state !== l.Eo.O5)
+ return (d = d.state === l.Eo.Error ? d.error : this.Mi(h.J.x5a, {
+ ab: a
+ }), m.atb({
+ ma: c.ma,
+ Ha: a,
+ Ta: b
+ }, d), m.Po("Transition " + this.oc.ig + "->" + a + " error " + d.aC), Promise.reject());
+ c = m.Hb;
+ if (!c)
+ throw (this.ka.debug("No streaming session. Aborting transition"), Error("No streaming session"));
+ this.ka.debug("going to next segment: " + this.oc.ig + " -> " + a);
+ m.Po("Transition " + this.oc.ig + "->" + a);
+ p = m.Cv(a);
+ p.gl = this.va.Yb().ca(r.ia);
+ p.Ta = b;
+ return (void 0 !== c.OZ(a) ? this.btb(a, p.G) : this.oR(a, p.G)).then(function () {
+ m.dKa(p.G);
+ });
+ };
+ c.prototype.oR = function (a, b) {
+ var c;
+ c = this.oc.fk.Ya[a].yf;
+ this.ka.debug("Segment is not pre-buffered - performing a regular seek");
+ this.Zh().Ks().Po("NO DATA " + a + ", SEEKING " + c + ", viewableId: " + b);
+ return Promise.resolve(this.Zh().seek(c, k.le.lu, a, !0));
+ };
+ c.prototype.btb = function (a, b) {
+ var c,
+ f,
+ h,
+ d,
+ m;
+ c = this;
+ f = this.Zh().Ks();
+ h = f.Hb;
+ if (!h)
+ throw Error("No streaming session");
+ d = new Promise(function (a) {
+ function b() {
+ c.ka.debug("Stopped ASE");
+ h.removeEventListener("stop", b);
+ a();
+ }
+ h.addEventListener("stop", b);
+ });
+ m = new Promise(function (a) {
+ function b() {
+ c.ka.debug("Repositioned");
+ f.removeEventListener(k.V.Rm, b);
+ a();
+ }
+ function d() {
+ c.ka.debug("Repositioning");
+ f.removeEventListener(k.V.CD, d);
+ h.stop();
+ }
+ f.addEventListener(k.V.CD, d);
+ f.addEventListener(k.V.Rm, b);
+ });
+ d = Promise.all([d, m]).then(function () {
+ if (!h.ev(a, !1, !0))
+ return (f.Po("Seek forced - ASE chooseNextSegment failed. Likely ASE entered panic mode and chose a default segment."), c.oR(a, b));
+ f.fireEvent(k.V.D1, {
+ ig: c.oc.ig,
+ jQ: a
+ });
+ });
+ m = h.NN(void 0, this.oc.fk.Ya[a].yf, a);
+ this.ka.debug("Calling seek on internal player to " + m);
+ this.Zh().seek(m, k.le.KA, a, !0);
+ return d;
+ };
+ c.prototype.KQ = function (a) {
+ if (!this.BO)
+ return (this.BO = !0, p.dL.prototype.KQ.call(this, a));
+ this.tz();
+ this.wma = this.Zh().Ks().Sb.when(function (a) {
+ return a !== k.lb.dg;
+ }).then(function () {});
+ return this.jl.KH(a.G).hFb;
+ };
+ c.prototype.tz = function () {
+ var a,
+ b;
+ a = this;
+ if (this.isReady()) {
+ this.BQa.cancel();
+ b = this.vDb.JJb();
+ b.result === m.Do.qva ? this.BQa.observe(b.Gi, function () {
+ a.tz();
+ }) : b.result === m.Do.x$ && this.ZDb(b.mZa);
+ }
+ };
+ c.prototype.ZDb = function (a) {
+ var c,
+ f,
+ h,
+ d,
+ m,
+ p,
+ l;
+ function b(a) {
+ a.G === m && (c.oc.ig = f, c.tz(), d.removeEventListener(k.V.rp, b), c.Db.$b(k.HA.sR));
+ }
+ c = this;
+ f = a.Ha;
+ h = this.oc.Gh(f);
+ d = this.Zh().Ks();
+ a = Object.assign(this.jl.KH(a.ma).gb || ({}), {
+ T: h.yf,
+ oa: h.jg,
+ $j: !1,
+ m4: Date.now(),
+ p0: !0
+ });
+ m = d.Pba({
+ ma: h.ma,
+ Ha: f,
+ Ta: a
+ });
+ p = d.Bm(m);
+ this.ka.debug("Creating new playback xid: " + p.ga + ", movieId: " + p.G);
+ d.addEventListener(k.V.rp, b);
+ l = "pauseAtStart" !== h.ve;
+ this.jl.OIb(h.ma);
+ d.Po("queueManifest", p.Ha);
+ this.wma = a = this.wma.then(function () {
+ return d.REb(m, l);
+ }).then(function () {
+ d.Po("queueManifest done", p.Ha);
+ c.jl.LVa(h.ma);
+ d.TDb(p);
+ })["catch"](function (a) {
+ d.Po("queueManifest error " + a.aC, p.Ha);
+ c.jl.NIb(h.ma, a);
+ throw a;
+ });
+ a.then(function () {
+ return c.tz();
+ });
+ };
+ b.Sza = c;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r,
+ h,
+ p,
+ m,
+ f,
+ u,
+ g,
+ A,
+ K;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Bya = void 0;
+ c = a(0);
+ k = a(1);
+ l = a(115);
+ r = a(24);
+ h = a(126);
+ p = a(572);
+ m = a(468);
+ f = a(254);
+ u = a(14);
+ g = a(286);
+ A = a(255);
+ K = a(31);
+ d = (function () {
+ var b;
+ function a(a, b, c, f, h, d, m, k) {
+ this.va = a;
+ this.Mi = b;
+ this.RHb = f;
+ this.di = d;
+ this.hz = m;
+ this.Nm = k;
+ this.PHb = c.Ay(!1, "6.0025.038.031", a.id, k, h);
+ }
+ a.prototype.create = function (a, b, c, f, h) {
+ var d,
+ m;
+ d = this.RHb.Djb(this.PHb);
+ m = this.di.w4 || this.di.YYa && 1 < Object.keys(a.fk.Ya).length;
+ c.debug("Using " + (m ? "single" : "multiple") + " player playback strategy");
+ return m ? new p.Sza(this.di, a, b, c, this.Mi, this.va, f, this.hz, d, h) : new g.dL(a, b, d, h);
+ };
+ b = a;
+ return b = c.__decorate([k.N(), c.__param(0, k.l(r.Me)), c.__param(1, k.l(l.GA)), c.__param(2, k.l(m.G9)), c.__param(3, k.l(f.YU)), c.__param(4, k.l(u.fd)), c.__param(5, k.l(h.bF)), c.__param(6, k.l(A.iU)), c.__param(7, k.l(K.$E))], b);
+ })();
+ b.Bya = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r,
+ h,
+ p;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.vya = void 0;
+ c = a(0);
+ k = a(1);
+ l = a(40);
+ r = a(29);
+ h = a(41);
+ p = a(3);
+ d = (function () {
+ var b;
+ function a(a) {
+ return l.me.call(this, a, "PlaygraphConfigImpl") || this;
+ }
+ N(a, l.me);
+ wa.Object.defineProperties(a.prototype, {
+ lTa: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return 2;
+ }
+ },
+ kTa: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return p.dQ(3);
+ }
+ },
+ w4: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return !1;
+ }
+ },
+ x4: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return !1;
+ }
+ },
+ YYa: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return !0;
+ }
+ }
+ });
+ b = a;
+ c.__decorate([h.config(h.Mw, "prepareSegmentsUpfront")], b.prototype, "lTa", null);
+ c.__decorate([h.config(h.hh, "prepareSegmentsDuration")], b.prototype, "kTa", null);
+ c.__decorate([h.config(h.jd, "usePlaygraphForPostPlay")], b.prototype, "w4", null);
+ c.__decorate([h.config(h.jd, "usePlaygraphForSkipSegment")], b.prototype, "x4", null);
+ c.__decorate([h.config(h.jd, "useSinglePlayerPlayback")], b.prototype, "YYa", null);
+ return b = c.__decorate([k.N(), c.__param(0, k.l(r.bj))], b);
+ })();
+ b.vya = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.wya = void 0;
+ c = a(0);
+ k = a(1);
+ l = a(145);
+ d = (function () {
+ var b;
+ function a() {}
+ a.prototype.Ojb = function (a) {
+ var h,
+ d,
+ k;
+ for (var b = [], c = 0; c < arguments.length; ++c) {
+ b[c - 0] = arguments[c];
+ }
+ h = this;
+ if (0 === b.length)
+ throw Error("Empty playgraph");
+ d = new l.JU().ooa(this.HZ(b[0]));
+ b.reverse().forEach(function (a) {
+ var b;
+ b = h.HZ(a);
+ d.kq(b, Object.assign({
+ ma: a,
+ yf: 0
+ }, k ? {
+ Rj: k
+ }
+ : {}));
+ k = b;
+ });
+ return d.Ck();
+ };
+ a.prototype.HZ = function (a, b) {
+ return a + ":[startPts:" + (void 0 === b ? 0 : b) + "]";
+ };
+ a.prototype.edb = function (a, b) {
+ var c,
+ h,
+ d,
+ m;
+ c = void 0 === c ? this.HZ(b.G, b.T) : c;
+ h = void 0 === h ? "pauseAtStart" : h;
+ d = this.$qb(a);
+ m = new l.JU(a);
+ m.kq(c, {
+ ma: b.G,
+ yf: b.T || 0,
+ ve: h
+ });
+ a = a.Ya[d];
+ b = {};
+ m.kq(d, Object.assign({}, a, {
+ Rj: c,
+ next: Object.assign({}, a.next || ({}), (b[c] = {}, b))
+ }));
+ return m.Ck();
+ };
+ a.prototype.$qb = function (a) {
+ for (var b = a.Hh, c = b; c = a.Ya[c].Rj; ) {
+ b = c;
+ }
+ return b;
+ };
+ b = a;
+ return b = c.__decorate([k.N()], b);
+ })();
+ b.wya = d;
+ }, function (d, b, a) {
+ var c,
+ k;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Gya = void 0;
+ c = a(0);
+ k = a(1);
+ d = (function () {
+ var d;
+ function b() {}
+ b.prototype.create = function (b, c, d) {
+ return new(a(287).VAa)(b, c, d);
+ };
+ d = b;
+ return d = c.__decorate([k.N()], d);
+ })();
+ b.Gya = d;
+ }, function (d, b, a) {
+ var k,
+ l;
+ function c(a, b, c) {
+ this.di = a;
+ this.Of = b;
+ this.jl = c;
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Cya = void 0;
+ k = a(3);
+ l = a(290);
+ c.prototype.JJb = function () {
+ var a,
+ b,
+ c,
+ d,
+ f;
+ a = this.jl.$Qa;
+ if (!a)
+ return {
+ result: l.Do.gL
+ };
+ b = this.Of.oc;
+ if (b.ig === a.Ha)
+ return {
+ result: l.Do.x$,
+ mZa: a
+ };
+ c = this.fsb(b, b.ig, a.Ha);
+ if (!c)
+ return {
+ result: l.Do.gL
+ };
+ d = c.duration;
+ if (c.ov >= this.di.lTa)
+ return {
+ result: l.Do.gL
+ };
+ c = this.eLa(b.ig);
+ if (!c)
+ return {
+ result: l.Do.gL
+ };
+ b = this.Of.Zh().QZ() || 0;
+ c = Math.max(0, c - b);
+ d = c + d;
+ f = this.di.kTa.ca(k.ia);
+ if (d <= f)
+ return {
+ result: l.Do.x$,
+ mZa: a
+ };
+ a = d - f;
+ return c < a ? {
+ result: l.Do.gL
+ }
+ : {
+ result: l.Do.qva,
+ Gi: b + a
+ };
+ };
+ c.prototype.fsb = function (a, b, c) {
+ var d,
+ k,
+ f;
+ b = a.tC(b);
+ for (var h = 0, f = 0; b !== c && void 0 !== b; ) {
+ h++;
+ d = a.Gh(b);
+ k = this.eLa(b) || Infinity;
+ f = f + (k - d.yf);
+ b = a.tC(b);
+ }
+ return b ? {
+ ov: h,
+ duration: f
+ }
+ : void 0;
+ };
+ c.prototype.eLa = function (a) {
+ var b,
+ c;
+ b = this.Of.oc;
+ c = b.bMa(a);
+ if (void 0 !== c)
+ return c;
+ a = b.Gh(a);
+ if (a = this.Of.Bm(a.ma))
+ return a.zs.ca(k.ia);
+ };
+ b.Cya = c;
+ }, function (d, b, a) {
+ var k;
+ function c() {}
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.zya = void 0;
+ k = a(145);
+ c.prototype.qMb = function (a) {
+ var b;
+ if (!this.Tvb(a.Ya))
+ return a;
+ b = new k.JU().ooa(a.Hh);
+ Object.keys(a.Ya).forEach(function (c) {
+ c === a.Hh ? b.kq(c, Object.assign(Object.assign({}, a.Ya[c]), {
+ next: void 0,
+ jg: void 0,
+ Rj: void 0
+ })) : b.kq(c, a.Ya[c]);
+ });
+ return b.Ck();
+ };
+ c.prototype.Tvb = function (a) {
+ var b;
+ b = Object.keys(a).map(function (b) {
+ return a[b].ma;
+ });
+ return 1 === new Set(b).size;
+ };
+ b.zya = c;
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ d = (function () {
+ function a() {}
+ a.decode = function (b) {
+ return Object.assign({
+ initialSegment: b.Hh,
+ segments: a.Ikb(b.Ya)
+ }, void 0 !== b.ve ? {
+ transitionType: b.ve
+ }
+ : {});
+ };
+ a.encode = function (b) {
+ return Object.assign({
+ Hh: b.initialSegment,
+ Ya: a.Xmb(b.segments)
+ }, void 0 !== b.transitionType ? {
+ ve: b.transitionType
+ }
+ : {});
+ };
+ a.gZb = function (a) {
+ return void 0 !== a.Hh && void 0 !== a.Ya;
+ };
+ a.mZb = function (a) {
+ return void 0 !== a.ma && void 0 !== a.yf;
+ };
+ a.Xmb = function (b) {
+ return Object.keys(b).reduce(function (c, d) {
+ c[d] = a.Wmb(b[d]);
+ return c;
+ }, {});
+ };
+ a.Wmb = function (b) {
+ return Object.assign({
+ ma: b.viewableId,
+ yf: b.startTimeMs
+ }, b.endTimeMs ? {
+ jg: b.endTimeMs
+ }
+ : {}, b.defaultNext ? {
+ Rj: b.defaultNext
+ }
+ : {}, b.transitionType ? {
+ ve: b.transitionType
+ }
+ : {}, b.next ? {
+ next: a.Umb(b.next)
+ }
+ : {}, b.transitionDelayZones ? {
+ i4: b.transitionDelayZones
+ }
+ : {});
+ };
+ a.Umb = function (b) {
+ return Object.keys(b).reduce(function (c, d) {
+ c[d] = a.Vmb(b[d]);
+ return c;
+ }, {});
+ };
+ a.Vmb = function (a) {
+ return Object.assign({}, void 0 !== a.weight ? {
+ weight: a.weight
+ }
+ : {}, a.transitionType ? {
+ ve: a.transitionType
+ }
+ : {});
+ };
+ a.Ikb = function (b) {
+ return Object.keys(b).reduce(function (c, d) {
+ c[d] = a.Hkb(b[d]);
+ return c;
+ }, {});
+ };
+ a.Hkb = function (b) {
+ return Object.assign({
+ viewableId: b.ma,
+ startTimeMs: b.yf
+ }, b.jg ? {
+ endTimeMs: b.jg
+ }
+ : {}, b.Rj ? {
+ defaultNext: b.Rj
+ }
+ : {}, b.ve ? {
+ transitionType: b.ve
+ }
+ : {}, b.next ? {
+ next: a.Fkb(b.next)
+ }
+ : {}, b.i4 ? {
+ transitionDelayZones: b.i4
+ }
+ : {});
+ };
+ a.Fkb = function (b) {
+ return Object.keys(b).reduce(function (c, d) {
+ c[d] = a.Gkb(b[d]);
+ return c;
+ }, {});
+ };
+ a.Gkb = function (a) {
+ return Object.assign({}, void 0 !== a.weight ? {
+ weight: a.weight
+ }
+ : {}, a.ve ? {
+ transitionType: a.ve
+ }
+ : {});
+ };
+ return a;
+ })();
+ b.$5a = d;
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ d = (function () {
+ function a(a) {
+ a && (this.ooa(a.Hh), this.lJb(a.ve), this.cJb(a.Ya));
+ }
+ a.prototype.ooa = function (a) {
+ this.Hh = a;
+ return this;
+ };
+ a.prototype.lJb = function (a) {
+ this.ve = a;
+ };
+ a.prototype.kq = function (a, b) {
+ this.Ya || (this.Ya = {});
+ this.Ya[a] = this.XHa(b);
+ return this;
+ };
+ a.prototype.cJb = function (a) {
+ var b;
+ b = this;
+ this.Ya = {};
+ Object.keys(a).forEach(function (c) {
+ return b.kq(c, a[c]);
+ });
+ };
+ a.prototype.Ck = function () {
+ if (!this.Ya)
+ throw Error("Invalid playgraph - `segments` is not defined");
+ if (!this.Hh)
+ throw Error("Invalid playgraph - `initialSegment` is not defined");
+ if (!this.Ya[this.Hh])
+ throw Error("Invalid playgraph - `initialSegment` is not part of `segments`");
+ return Object.assign({
+ Hh: this.Hh,
+ Ya: this.Ya
+ }, this.ve ? {
+ ve: this.ve
+ }
+ : {});
+ };
+ a.prototype.XHa = function (a) {
+ var b;
+ b = this;
+ return a && "object" === typeof a ? Object.keys(a).reduce(function (c, d) {
+ c[d] = "object" === typeof a[d] ? b.XHa(a[d]) : a[d];
+ return c;
+ }, {}) : a;
+ };
+ return a;
+ })();
+ b.JU = d;
+ }, function (d, b, a) {
+ var k;
+ function c(a) {
+ this.mW = {};
+ this.Noa = {};
+ this.DYa = [];
+ this.mWa = [];
+ this.fk = a;
+ this.ig = a.Hh;
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Fya = void 0;
+ k = a(145);
+ c.prototype.PD = function (a) {
+ var d;
+ for (var b = [], c = 0; c < arguments.length; ++c) {
+ b[c - 0] = arguments[c];
+ }
+ d = this;
+ b.filter(function (a) {
+ return d.qR(a.Ha);
+ }).filter(function (a) {
+ a = a.jQ;
+ return !a || d.qR(a);
+ }).forEach(function (a) {
+ d.mW[a.Ha] = d.qla(a.jQ);
+ });
+ };
+ c.prototype.mFa = function (a) {
+ var b;
+ b = this;
+ a.filter(function (a) {
+ return b.qR(a);
+ }).forEach(function (a) {
+ b.mW[a] = b.qla(b.Gh(a).Rj);
+ });
+ };
+ c.prototype.Np = function (a, b) {
+ var c,
+ d,
+ m;
+ c = this.Gh(a);
+ if (c && c.next) {
+ d = new k.JU(this.fk);
+ m = Object.keys(c.next).reduce(function (a, h) {
+ a[h] = void 0 === b[h] ? c.next[h] : Object.assign({}, c.next[h], {
+ weight: b[h]
+ });
+ return a;
+ }, {});
+ m = Object.assign({}, c, {
+ next: m
+ });
+ d.kq(a, m);
+ this.fk = d.Ck();
+ }
+ };
+ c.prototype.qR = function (a, b) {
+ b = void 0 === b ? this.fk.Ya : b;
+ return (a in b);
+ };
+ c.prototype.tC = function (a) {
+ return this.mW[a];
+ };
+ c.prototype.Gh = function (a) {
+ return this.fk.Ya[a];
+ };
+ c.prototype.bMa = function (a) {
+ return void 0 === this.Noa[a] ? this.qla(this.Gh(a).jg) : this.Noa[a];
+ };
+ c.prototype.pNb = function (a, b) {
+ this.Noa[a] = b;
+ this.FAb(a);
+ };
+ c.prototype.UKb = function (a) {
+ this.DYa.push(a);
+ };
+ c.prototype.VKb = function (a) {
+ this.mWa.push(a);
+ };
+ c.prototype.HAb = function () {
+ var a;
+ a = this;
+ this.DYa.forEach(function (b) {
+ return b(a.fk);
+ });
+ };
+ c.prototype.FAb = function (a) {
+ this.mWa.forEach(function (b) {
+ return b(a);
+ });
+ };
+ c.prototype.qla = function (a) {
+ return null === a ? void 0 : a;
+ };
+ wa.Object.defineProperties(c.prototype, {
+ fk: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.iab;
+ },
+ set: function (a) {
+ if (this.ig && !this.qR(this.ig, a.Ya))
+ throw Error("Provided playgraphMap does not contain the current segmentId " + this.ig);
+ this.iab = a;
+ this.mW = {};
+ a = Object.keys(a.Ya);
+ this.mFa(a);
+ this.HAb();
+ }
+ },
+ ig: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.x8a;
+ },
+ set: function (a) {
+ if (!this.qR(a))
+ throw Error("Provided currentSegmentId " + a + " does not exist in the current playgraph");
+ this.x8a = a;
+ }
+ },
+ ha: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.Gh(this.ig);
+ }
+ }
+ });
+ b.Fya = c;
+ }, function (d, b, a) {
+ var k;
+ function c(a) {
+ this.je = a;
+ this.hK = {};
+ this.sQ();
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Hya = void 0;
+ k = a(189);
+ c.prototype.sQ = function () {
+ var a,
+ b;
+ a = this;
+ b = this.je.fk.Ya;
+ Object.keys(b).forEach(function (c) {
+ c = b[c].ma;
+ a.hK[c] || a.FNa(c);
+ });
+ this.q4();
+ };
+ c.prototype.KH = function (a) {
+ return this.hK[a];
+ };
+ c.prototype.OIb = function (a) {
+ this.d_(a).state = k.Eo.Wta;
+ this.q4();
+ };
+ c.prototype.NIb = function (a, b) {
+ a = this.d_(a);
+ a.state = k.Eo.Error;
+ a.error = b;
+ a.PUa(!1);
+ this.q4();
+ };
+ c.prototype.LVa = function (a) {
+ a = this.d_(a);
+ a.state = k.Eo.O5;
+ a.PUa(!0);
+ this.q4();
+ };
+ c.prototype.tcb = function (a, b) {
+ this.d_(a).gb = b;
+ };
+ c.prototype.d_ = function (a) {
+ var b;
+ return null !== (b = this.KH(a)) && void 0 !== b ? b : this.FNa(a);
+ };
+ c.prototype.FNa = function (a) {
+ var b,
+ c;
+ b = void 0;
+ c = new Promise(function (a, c) {
+ b = function (b) {
+ (b ? a : c)();
+ };
+ });
+ return this.hK[a] = {
+ state: k.Eo.Uwa,
+ hFb: c,
+ PUa: b
+ };
+ };
+ c.prototype.q4 = function () {
+ var b;
+ this.$Qa = void 0;
+ for (var a = this.je.ig; a = this.je.tC(a); ) {
+ b = this.o_(a);
+ if (this.hK[b].state === k.Eo.Error)
+ break;
+ if (this.hK[b].state === k.Eo.Wta)
+ break;
+ if (this.hK[b].state === k.Eo.Uwa) {
+ this.$Qa = {
+ ma: b,
+ Ha: a
+ };
+ break;
+ }
+ }
+ };
+ c.prototype.o_ = function (a) {
+ return this.je.fk.Ya[a].ma;
+ };
+ b.Hya = c;
+ }, function (d, b, a) {
+ var k,
+ l,
+ r,
+ h,
+ p,
+ m;
+ function c(a, b, c, d, k, l, g) {
+ this.FQ = d;
+ this.Hpa = l;
+ this.BO = !1;
+ k.x4 && (a = new p.zya().qMb(a));
+ this.oc = new h.Fya(a);
+ this.jl = new r.Hya(this.oc);
+ this.jl.LVa(this.oc.ha.ma);
+ this.log = b.xb("PlaygraphManager");
+ a = new m.Cya(k, this, this.jl);
+ this.Db = c.create();
+ this.tw = g.create(this.oc, this.jl, this.log, a, this.Db);
+ this.xJb();
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.yya = void 0;
+ k = a(13);
+ l = a(189);
+ r = a(582);
+ h = a(581);
+ p = a(578);
+ m = a(577);
+ c.prototype.RZ = function () {
+ return this.oc.ha;
+ };
+ c.prototype.UKa = function () {
+ return this.oc.ig;
+ };
+ c.prototype.Lrb = function () {
+ return this.oc.fk;
+ };
+ c.prototype.PD = function (a) {
+ for (var b = [], c = 0; c < arguments.length; ++c) {
+ b[c - 0] = arguments[c];
+ }
+ this.oc.PD.apply(this.oc, [].concat(ca(b)));
+ };
+ c.prototype.ygb = function (a) {
+ for (var b = [], c = 0; c < arguments.length; ++c) {
+ b[c - 0] = arguments[c];
+ }
+ this.oc.mFa(b);
+ };
+ c.prototype.jNb = function (a) {
+ this.oc.fk = a;
+ };
+ c.prototype.Np = function (a, b) {
+ this.oc.Np(a, b);
+ };
+ c.prototype.Lha = function (a, b, c) {
+ if (a !== this.oc.ig)
+ throw Error("Invalid currentSegmentId");
+ if (b !== this.oc.tC(a))
+ throw Error("Invalid nextSegmentId");
+ this.log.info("Transition initiated: " + a + " -> " + b);
+ return this.tw.xMa(b, c);
+ };
+ c.prototype.isReady = function () {
+ return this.tw.isReady();
+ };
+ c.prototype.addListener = function (a, b, c) {
+ this.Db.addListener(a, b, c);
+ };
+ c.prototype.removeListener = function (a, b) {
+ this.Db.removeListener(a, b);
+ };
+ c.prototype.Zn = function () {
+ return this.tw.Zn();
+ };
+ c.prototype.Zh = function () {
+ return this.tw.Zh();
+ };
+ c.prototype.kq = function (a) {
+ var b,
+ c;
+ b = this;
+ this.log.info("Adding segment - movieId: " + a.G + ", startPts: " + a.T + ", logicalEnd: " + ("" + a.oj));
+ if (!this.BO) {
+ c = this.tw.KQ(a);
+ this.Zh().Ks().addEventListener(k.V.k3, function (a) {
+ return b.Ela(a);
+ });
+ this.BO = !0;
+ return c;
+ }
+ if (c = Object.keys(this.oc.fk.Ya).find(function (c) {
+ return b.oc.fk.Ya[c].ma === a.G;
+ }))
+ return (a.oj && this.oc.pNb(c, a.oj), null);
+ this.jl.tcb(a.G, Object.assign({}, a.gb, a.T ? {
+ T: a.T
+ }
+ : {}, a.oj ? {
+ oj: a.oj
+ }
+ : {}));
+ this.oc.fk = this.FQ.edb(this.oc.fk, a);
+ this.Zh().Ks().Po("addSegment movieId: " + a.G + ", startPts: " + a.T + ", logicalEnd: " + a.oj);
+ return this.tw.KQ(a);
+ };
+ c.prototype.transition = function (a) {
+ var b;
+ b = this.oc.tC(this.oc.ig);
+ return b ? this.Lha(this.oc.ig, b, a) : (this.log.error("Next segment is not defined"), Promise.reject());
+ };
+ c.prototype.close = function (a) {
+ return this.tw.close(a);
+ };
+ c.prototype.Bm = function (a) {
+ if (this.jl.KH(a).state == l.Eo.O5)
+ return this.Zh().Ks().Bm(a);
+ };
+ c.prototype.xJb = function () {
+ var a;
+ a = this;
+ this.oc.UKb(function () {
+ a.jl.sQ();
+ a.tw.sQ();
+ });
+ this.oc.VKb(function (b) {
+ a.tw.Fla(b);
+ });
+ this.addListener(k.HA.sR, function () {
+ return a.DBb();
+ });
+ };
+ c.prototype.DBb = function () {
+ var a;
+ a = this.Zh().getError();
+ a ? this.Db.$b(k.Cb.Rca, a) : (this.Db.$b(k.Cb.sFa), this.Db.$b(k.Cb.dN), this.Db.$b(k.Cb.dE), this.Db.$b(k.Cb.UJ), this.Db.$b(k.Cb.lS), this.Db.$b(k.Cb.Rca));
+ };
+ c.prototype.Ela = function (a) {
+ var b,
+ c,
+ f;
+ b = a.metrics;
+ if (b) {
+ c = this.Zh().Ks();
+ f = c.Cv(a.segmentId);
+ b = c.Cv(b.srcsegment);
+ this.Hpa.wEb(a, f, b);
+ }
+ };
+ b.yya = c;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r,
+ h,
+ p,
+ m,
+ f,
+ u;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.xya = void 0;
+ c = a(0);
+ k = a(1);
+ l = a(583);
+ r = a(7);
+ h = a(126);
+ p = a(472);
+ m = a(289);
+ f = a(188);
+ u = a(465);
+ d = (function () {
+ var b;
+ function a(a, b, c, f, h, d) {
+ this.sf = a;
+ this.Afa = b;
+ this.di = c;
+ this.FQ = f;
+ this.Hpa = h;
+ this.uDb = d;
+ }
+ a.prototype.create = function (a) {
+ return new l.yya(a, this.sf, this.Afa, this.FQ, this.di, this.Hpa, this.uDb);
+ };
+ b = a;
+ return b = c.__decorate([k.N(), c.__param(0, k.l(r.Jb)), c.__param(1, k.l(p.AE)), c.__param(2, k.l(h.bF)), c.__param(3, k.l(f.rL)), c.__param(4, k.l(u.c$)), c.__param(5, k.l(m.h9))], b);
+ })();
+ b.xya = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r,
+ h,
+ p,
+ m,
+ f,
+ u,
+ g;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Of = void 0;
+ d = a(1);
+ c = a(291);
+ k = a(584);
+ l = a(288);
+ r = a(576);
+ h = a(188);
+ p = a(575);
+ m = a(574);
+ f = a(126);
+ u = a(289);
+ g = a(573);
+ b.Of = new d.Kc(function (a) {
+ a(c.g9).to(k.xya).Z();
+ a(l.i9).to(r.Gya).Z();
+ a(h.rL).to(p.wya).Z();
+ a(f.bF).to(m.vya).Z();
+ a(u.h9).to(g.Bya).Z();
+ });
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r,
+ h,
+ p,
+ m,
+ f,
+ u,
+ g,
+ A;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.uva = void 0;
+ c = a(0);
+ k = a(2);
+ l = a(6);
+ r = a(114);
+ h = a(46);
+ p = a(9);
+ m = a(1);
+ f = a(200);
+ u = a(32);
+ g = a(292);
+ A = a(88);
+ d = (function () {
+ var d;
+ function b(a, b, c, f) {
+ c = g.sK.call(this, c, f) || this;
+ c.config = a;
+ c.Jc = b;
+ c.log = l.Gg(c.j, "LegacyLicenseBroker");
+ c.he = c.config().he;
+ c.config().Gma ? h.nOa() ? c.y4 = !0 : c.log.error("Promise based eme requested but platform does not support it", {
+ browserua: p.bm
+ }) : c.y4 = !1;
+ return c;
+ }
+ N(b, g.sK);
+ b.prototype.vHa = function (a) {
+ var b;
+ b = void 0 === b ? this.j : b;
+ return new this.BQ.kA(a, function (a) {
+ return b.LN.sC(a);
+ }, function (a) {
+ return b.LN.release(a);
+ }, {
+ Xc: !1,
+ bh: !1
+ });
+ };
+ b.prototype.SN = function (b, c) {
+ var f,
+ h,
+ d,
+ m,
+ p,
+ u;
+ c = void 0 === c ? this.j : c;
+ f = this;
+ m = a(39).zh;
+ this.BQ.kA || this.sd(k.J.cx, k.I.Z1a);
+ d = l.Gg(c, "Eme");
+ h = this.vHa(d);
+ p = l.ba.get(r.OA);
+ u = p.PN(c.rd.value.pc);
+ p = p.WN(c.wg.value.pc);
+ return this.BQ.mA(d, b, function (a) {
+ return c.kd(a);
+ }, {
+ Xc: !1,
+ bh: !1,
+ ZH: this.config().wj,
+ pJ: {
+ d1: this.config().mVa,
+ OX: this.config().Tna
+ },
+ Aa: {
+ getTime: m
+ },
+ vj: h,
+ x2: !!this.y4,
+ la: this.ub.la,
+ Uz: this.config().gfa,
+ onerror: function (a, b, c) {
+ return f.sd(a, b, c);
+ },
+ J1: function (a) {
+ return f.v_(a);
+ },
+ j2: !0,
+ rFa: u,
+ gZa: p,
+ SH: this.config().SH
+ });
+ };
+ b.prototype.OD = function (a) {
+ var b;
+ b = this;
+ return this.y4 ? new Promise(function (c, f) {
+ if (b.ub.la)
+ b.ub.la.setMediaKeys(a).then(function () {
+ c();
+ })["catch"](function (a) {
+ var c;
+ c = b.uMa(a);
+ f({
+ U: !1,
+ code: k.J.kL,
+ Nb: c.ja,
+ xd: c.Fe,
+ ab: c.ab,
+ message: "Set media keys is a failure",
+ cause: a
+ });
+ });
+ else
+ return Promise.resolve();
+ }) : Promise.resolve();
+ };
+ b.prototype.rJa = function (a) {
+ return {
+ code: a.code,
+ subCode: a.Nb,
+ extCode: a.xd,
+ edgeCode: a.wm,
+ message: a.message,
+ errorDetails: a.ab,
+ errorData: a.wO,
+ state: a.state
+ };
+ };
+ b.prototype.poa = function (a, b, c) {
+ var h,
+ d,
+ m;
+ function f() {
+ d.hJ()["catch"](function (a) {
+ h.log.error("Unable to set the license", h.rJa(a));
+ a.cause && a.cause.ab && (a.ab = a.ab ? a.ab + a.cause.ab : a.cause.ab);
+ h.sd(a.code, a, a.xd);
+ });
+ }
+ c = void 0 === c ? this.j : c;
+ h = this;
+ d = c.Jf;
+ this.log.info("Setting the license");
+ m = b ? function () {
+ return Promise.resolve();
+ }
+ : function () {
+ return d.Ig(h.Vga(), a);
+ };
+ return (b ? function () {
+ return d.pX(h.ub.la);
+ }
+ : function () {
+ return d.create(h.he).then(function () {
+ return Promise.resolve();
+ });
+ })().then(function () {
+ return h.config().QVa ? h.OD(d.Nf) : Promise.resolve();
+ }).then(m).then(function () {
+ return h.config().QVa ? Promise.resolve() : h.OD(d.Nf);
+ }).then(function () {
+ h.log.info("license set");
+ h.pZ(c.G);
+ h.ub.uZa.then(function () {
+ h.config().Wy && (b || h.config().DO) && (h.uUa = t.setTimeout(f, h.config().Wy));
+ });
+ })["catch"](function (a) {
+ h.log.error("Unable to set the license", h.rJa(a));
+ a.cause && a.cause.ab && (a.ab = a.ab ? a.ab + a.cause.ab : a.cause.ab);
+ if (b)
+ throw Error(a && a.message ? a.message : "failed to set license");
+ h.sd(a.code, a, a.xd);
+ });
+ };
+ b.prototype.BSa = function () {
+ return Promise.resolve();
+ };
+ b.prototype.Ala = function (a) {
+ var c;
+ function b() {
+ var b;
+ c.j.Jf = c.SN(a.initDataType);
+ b = [];
+ c.j.gr.forEach(function (a) {
+ b.push(l.pm(a));
+ });
+ c.poa(b);
+ }
+ c = this;
+ this.log.trace("Received event: " + a.type);
+ this.FP || (this.FP = !0, this.BQ.mA ? this.j.gr ? this.config().iH && this.config().Ap && this.Jc() ? this.Jc().JKa(this.j.G).then(function (a) {
+ c.j.Jf = a;
+ return a.tZa.then(function () {
+ var b;
+ b = [];
+ c.j.gr.forEach(function (a) {
+ b.push(l.pm(a));
+ });
+ return c.poa(b, !0).then(function () {
+ var b;
+ if (a.oXb)
+ c.sd(k.J.d2a);
+ else {
+ b = l.Gg(c.j, "Eme");
+ a.mNb({
+ log: b,
+ kz: function (a) {
+ return c.j.kd(a);
+ }
+ }, {
+ vj: c.vHa(b),
+ onerror: function (a, b, f) {
+ return c.sd(a, b, f);
+ }
+ });
+ (b = a.Ula) && c.v_(b);
+ c.j.Iv(a.Yc || ({}));
+ c.j.iy = "videopreparer";
+ }
+ });
+ });
+ })["catch"](function (a) {
+ c.log.warn("eme not in cache", a);
+ b();
+ }) : b() : (this.log.error("Missing the PSSH on the video track, closing the player"), this.sd(k.J.G5a)) : this.sd(k.J.cx, k.I.$1a));
+ };
+ b.prototype.zUa = function (a) {
+ var b;
+ a = void 0 === a ? this.j : a;
+ a.Jf = this.SN("cenc");
+ b = [];
+ a.gr.forEach(function (a) {
+ b.push(l.pm(a));
+ });
+ return this.poa(b, !1, a);
+ };
+ b.prototype.Vga = function () {
+ return this.config().DO ? A.Aj.dx : A.Aj.cm;
+ };
+ wa.Object.defineProperties(b.prototype, {
+ BQ: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return l.ba.get(u.Xp);
+ }
+ },
+ cD: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.y4 ? "encrypted" : this.ub.c6 + "needkey";
+ }
+ }
+ });
+ d = b;
+ c.__decorate([f.CP], d.prototype, "BQ", null);
+ c.__decorate([f.CP], d.prototype, "cD", null);
+ return d = c.__decorate([m.N()], d);
+ })();
+ b.uva = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r,
+ h,
+ p,
+ m,
+ f,
+ u,
+ g,
+ A;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.xva = void 0;
+ c = a(0);
+ k = a(2);
+ l = a(6);
+ r = a(10);
+ h = a(487);
+ p = a(3);
+ m = a(1);
+ f = a(200);
+ u = a(292);
+ g = a(88);
+ A = a(13);
+ d = (function () {
+ var b;
+ function a(a, b, c, f, h, d, m) {
+ f = u.sK.call(this, f, h) || this;
+ f.config = a;
+ f.Se = b;
+ f.Jc = c;
+ f.cC = d;
+ f.Eka = m;
+ f.log = l.Gg(f.j, "LicenseBroker");
+ f.FP = new Set();
+ f.Dka = !1;
+ return f;
+ }
+ N(a, u.sK);
+ a.prototype.Ala = function () {
+ var a,
+ b,
+ c;
+ a = this;
+ c = this.j.ha;
+ this.FP.has(c.G) || (this.FP.add(c.G), ((null === (b = c.xa) || void 0 === b ? 0 : b.rv) ? this.gdb(c, c.xa.rv) : this.config.iH && this.Se.Ap && this.Jc() ? this.hdb(c) : Promise.reject())["catch"](function () {
+ return a.AUa(c);
+ }).then(function () {
+ return a.aFa(c);
+ })["catch"](function (b) {
+ return a.$Ea(c, b);
+ })["catch"](function (b) {
+ return a.sd(b.code, b, b.xd);
+ }));
+ };
+ a.prototype.hdb = function (a) {
+ var b;
+ b = this;
+ return this.Jc().JKa(a.G).then(function (c) {
+ return b.pX(c, a, "videopreparer");
+ })["catch"](function (a) {
+ b.log.warn("eme not in cache", a);
+ throw a;
+ });
+ };
+ a.prototype.gdb = function (a, b) {
+ var c;
+ c = this;
+ return this.cC().then(function (f) {
+ var h;
+ h = c.ALa(a);
+ f.DQa(h, b);
+ f.eI().subscribe(c.OKa(a));
+ return c.pX(b, a, "manifest");
+ });
+ };
+ a.prototype.pX = function (a, b, c) {
+ this.qTa(a, b);
+ b.iy = c;
+ this.Eka.OD(a.Nf);
+ return a.ica().Sz();
+ };
+ a.prototype.Nob = function (a) {
+ var b;
+ b = {};
+ a.forEach(function (a) {
+ b[h.KIa(a.qzb)] = a.time.ca(p.ia);
+ });
+ return b;
+ };
+ a.prototype.mtb = function (a, b) {
+ this.log.trace("Key status", {
+ viewable: a.G,
+ keyId: l.ns(b.Qs),
+ status: b.value
+ });
+ };
+ a.prototype.qTa = function (a, b) {
+ var c,
+ f,
+ h;
+ c = this;
+ b.Jf = a;
+ f = {
+ next: function (a) {
+ c.mtb(b, a);
+ },
+ error: r.ff,
+ complete: r.ff
+ };
+ h = {
+ next: function (a) {
+ c.sd(a.code, a, a.xd);
+ },
+ error: r.ff,
+ complete: r.ff
+ };
+ a.nja().subscribe(f);
+ (a = a.nH()) && a.subscribe(h);
+ };
+ a.prototype.aFa = function (a) {
+ var b;
+ this.log.info("Successfully applied license for xid: " + a.ga + ", viewable: " + a.G + ", segment: " + a.Ha);
+ b = a.Jf;
+ (null === b || void 0 === b ? 0 : b.Eja) && this.v_(b.Eja);
+ this.Iv(a);
+ this.Dka ? this.pZ(a.G) : this.OD(a);
+ };
+ a.prototype.$Ea = function (a, b) {
+ this.Iv(a);
+ throw b;
+ };
+ a.prototype.Iv = function (a) {
+ a.Jf && a.Iv(this.Nob(a.Jf.Yc));
+ };
+ a.prototype.OKa = function (a) {
+ var b;
+ b = this;
+ return {
+ next: function (c) {
+ b.FP.add(a.G);
+ b.v_(c);
+ },
+ error: r.ff,
+ complete: r.ff
+ };
+ };
+ a.prototype.ALa = function (a) {
+ return {
+ type: this.Vga(),
+ T_: a.gr.map(function (a) {
+ return l.pm(a);
+ }),
+ context: {
+ he: this.config.he,
+ la: this.ub.la
+ },
+ jh: {
+ G: a.G,
+ ga: a.ga,
+ sg: a.sg,
+ Hk: a.Hk,
+ Ki: a.xa.Ki
+ }
+ };
+ };
+ a.prototype.AUa = function (a) {
+ var b;
+ b = this;
+ return this.cC().then(function (c) {
+ var f;
+ f = b.ALa(a);
+ c.eI().subscribe(b.OKa(a));
+ return c.Ig(f, b.Eka).Gs(function (c) {
+ b.qTa(c, a);
+ b.j.fireEvent(A.V.HP, {
+ G: a.G
+ });
+ return c.ica();
+ }).Sz();
+ });
+ };
+ a.prototype.OD = function (a) {
+ var b;
+ b = this;
+ if (this.Dka)
+ this.log.trace("Media Keys already set");
+ else
+ try {
+ this.ub.la ? this.ub.la.setMediaKeys(a.Jf.Nf).then(function () {
+ b.pZ(a.G);
+ b.Dka = !0;
+ })["catch"](function (a) {
+ a = b.uMa(a);
+ b.sd(k.J.kL, a, a.Fe);
+ }) : this.pZ(a.G);
+ } catch (G) {
+ this.sd(k.J.kL, G, void 0);
+ }
+ };
+ a.prototype.BSa = function () {
+ var a,
+ b;
+ a = this;
+ b = this.j.ha.Jf;
+ return b ? this.cC().then(function (c) {
+ return c.yKb(b, a.Eka).Gs(function (a) {
+ return a.bFa();
+ }).Gs(function (b) {
+ a.log.trace("Fulfilled the last secure stop");
+ a.Se.wj && a.j.qp.j3({
+ success: !0,
+ persisted: !1
+ });
+ return b.close();
+ }).Sz()["catch"](function (b) {
+ a.log.error("Unable to get/add secure stop data", b);
+ a.Se.wj && a.j.qp.j3({
+ success: b.U,
+ ErrorCode: b.code,
+ ErrorSubCode: b.Nb,
+ ErrorExternalCode: b.xd,
+ ErrorEdgeCode: b.wm,
+ ErrorDetails: b.py
+ });
+ });
+ }) : Promise.resolve();
+ };
+ a.prototype.zUa = function (a) {
+ var b;
+ a = void 0 === a ? this.j : a;
+ b = this;
+ return this.AUa(a).then(function () {
+ return b.aFa(a);
+ })["catch"](function (c) {
+ return b.$Ea(a, c);
+ });
+ };
+ a.prototype.Vga = function () {
+ return this.Se.DO ? g.Aj.dx : g.Aj.cm;
+ };
+ wa.Object.defineProperties(a.prototype, {
+ cD: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return "encrypted";
+ }
+ },
+ he: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.config.he;
+ }
+ }
+ });
+ b = a;
+ c.__decorate([f.CP], b.prototype, "cD", null);
+ return b = c.__decorate([m.N()], b);
+ })();
+ b.xva = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r,
+ h,
+ p,
+ m,
+ f,
+ u;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.wva = void 0;
+ c = a(0);
+ k = a(1);
+ l = a(120);
+ r = a(587);
+ h = a(586);
+ p = a(52);
+ m = a(14);
+ f = a(119);
+ u = a(105);
+ d = (function () {
+ var b;
+ function a(a, b, c, f, h) {
+ this.cC = a;
+ this.Se = b;
+ this.config = c;
+ this.oI = f;
+ this.Jc = h;
+ }
+ a.prototype.create = function (a, b, c) {
+ return a ? new r.xva(this.config(), this.Se, this.Jc, b, c, this.cC, this.oI()) : new h.uva(this.config, this.Jc, b, c);
+ };
+ b = a;
+ return b = c.__decorate([k.N(), c.__param(0, k.l(l.GK)), c.__param(1, k.l(p.Zl)), c.__param(2, k.l(m.fd)), c.__param(3, k.l(f.xA)), c.__param(4, k.l(u.SA))], b);
+ })();
+ b.wva = d;
+ }, function (d, b, a) {
+ var c,
+ k;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.ak = void 0;
+ d = a(1);
+ c = a(307);
+ k = a(588);
+ b.ak = new d.Kc(function (a) {
+ a(c.l7).to(k.wva);
+ });
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r,
+ h,
+ p;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.CAa = void 0;
+ c = a(0);
+ k = a(1);
+ l = a(40);
+ r = a(29);
+ h = a(41);
+ p = a(34);
+ d = (function () {
+ var b;
+ function a(a) {
+ return l.me.call(this, a, "TransportConfigImpl") || this;
+ }
+ N(a, l.me);
+ a.prototype.Aoa = function (a) {
+ var b,
+ c;
+ b = this.gqa;
+ c = this.LEa;
+ switch (a) {
+ case p.eu.KU:
+ return b;
+ case p.eu.Jya:
+ return b && !c;
+ case p.eu.Y4a:
+ return !1;
+ }
+ };
+ wa.Object.defineProperties(a.prototype, {
+ gqa: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return !0;
+ }
+ },
+ LEa: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return !1;
+ }
+ }
+ });
+ b = a;
+ c.__decorate([h.config(h.jd, "usesMsl")], b.prototype, "gqa", null);
+ c.__decorate([h.config(h.jd, "allowRequestsWithoutMsl")], b.prototype, "LEa", null);
+ return b = c.__decorate([k.N(), c.__param(0, k.l(r.bj))], b);
+ })();
+ b.CAa = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r,
+ h,
+ p;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Vza = void 0;
+ c = a(0);
+ k = a(1);
+ l = a(3);
+ r = a(7);
+ h = a(147);
+ p = a(94);
+ d = (function () {
+ var b;
+ function a(a, b, c) {
+ this.receiver = b;
+ this.cf = c;
+ this.log = a.xb("SslTransport");
+ }
+ a.prototype.send = function (a, b) {
+ var c,
+ f;
+ c = this;
+ f = {
+ url: a.url.href,
+ $B: "nq-" + a.Oj,
+ mma: JSON.stringify(b),
+ YX: a.timeout.ca(l.ia),
+ headers: a.headers,
+ withCredentials: !0
+ };
+ return new Promise(function (a, b) {
+ c.cf.download(f, function (c) {
+ c.U ? a(c) : b(c);
+ });
+ }).then(function (f) {
+ f = {
+ status: "success",
+ body: f.content
+ };
+ c.receiver.aJ({
+ command: a.Oj,
+ inputs: b,
+ outputs: f
+ });
+ return f;
+ })["catch"](function (f) {
+ var h;
+ if (!f.error)
+ throw (f.Nb = f.ja || f.Nb, c.receiver.aJ({
+ command: a.Oj,
+ inputs: b,
+ outputs: f
+ }), f);
+ h = f.error;
+ h.Az = f.Az;
+ c.log.error("Error sending SSL request", {
+ subCode: h.Nb,
+ data: h.content,
+ message: h.message
+ });
+ c.receiver.aJ({
+ command: a.Oj,
+ inputs: b,
+ outputs: h
+ });
+ throw h;
+ });
+ };
+ a.prototype.Mda = function () {
+ return {};
+ };
+ b = a;
+ return b = c.__decorate([k.N(), c.__param(0, k.l(r.Jb)), c.__param(1, k.l(h.oL)), c.__param(2, k.l(p.ex))], b);
+ })();
+ b.Vza = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r,
+ h,
+ p,
+ m,
+ f;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Mwa = void 0;
+ c = a(0);
+ k = a(1);
+ l = a(7);
+ r = a(134);
+ h = a(3);
+ p = a(147);
+ m = a(91);
+ f = {
+ license: !0
+ };
+ d = (function () {
+ var b;
+ function a(a, b, c, f) {
+ var h;
+ h = this;
+ this.iz = b;
+ this.receiver = c;
+ this.profile = f;
+ this.log = a.xb("MslTransport");
+ this.iz().then(function (a) {
+ return h.JQa = a;
+ });
+ }
+ a.prototype.send = function (a, b) {
+ var c,
+ d;
+ c = this;
+ d = {
+ KQa: Object.assign({
+ cf: a.cf,
+ log: a.log,
+ profile: this.profile
+ }, a.Eeb),
+ method: a.Oj,
+ url: a.url.href,
+ body: JSON.stringify(b),
+ timeout: a.timeout.ca(h.ia),
+ $Nb: this.profile,
+ b0b: !f[a.Oj],
+ lAb: !!f[a.Oj],
+ Uj: !0,
+ X2: a.Bna,
+ headers: a.headers
+ };
+ return this.iz().then(function (f) {
+ return f.send(d).then(function (f) {
+ c.receiver.aJ({
+ command: a.Oj,
+ inputs: b,
+ outputs: f
+ });
+ return f;
+ })["catch"](function (f) {
+ var h;
+ if (!f.error)
+ throw (f.Nb = f.ja || f.Nb, c.receiver.aJ({
+ command: a.Oj,
+ inputs: b,
+ outputs: f
+ }), f);
+ h = f.error;
+ h.Az = f.Az;
+ c.log.error("Error sending MSL request", {
+ mslCode: h.ct,
+ subCode: h.Nb,
+ data: h.data,
+ message: h.message
+ });
+ c.receiver.aJ({
+ command: a.Oj,
+ inputs: b,
+ outputs: h
+ });
+ throw h;
+ });
+ });
+ };
+ a.prototype.Mda = function () {
+ var a;
+ return {
+ userTokens: null === (a = this.JQa) || void 0 === a ? void 0 : a.fQ.getUserIdTokenKeys()
+ };
+ };
+ b = a;
+ return b = c.__decorate([k.N(), c.__param(0, k.l(l.Jb)), c.__param(1, k.l(r.QE)), c.__param(2, k.l(p.oL)), c.__param(3, k.l(m.cF))], b);
+ })();
+ b.Mwa = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r,
+ h,
+ p;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.dYa = void 0;
+ d = a(1);
+ c = a(246);
+ k = a(324);
+ l = a(592);
+ r = a(591);
+ h = a(590);
+ p = a(34);
+ b.dYa = new d.Kc(function (a) {
+ a(c.BL).to(h.CAa).Z();
+ a(k.X7).to(l.Mwa);
+ a(k.L9).to(r.Vza);
+ a(k.d$).zf(function (a) {
+ return function (b) {
+ var f;
+ return a.hb.get(c.BL).Aoa(null !== (f = null === b || void 0 === b ? void 0 : b.Rzb) && void 0 !== f ? f : p.eu.KU) ? a.hb.get(k.X7) : a.hb.get(k.L9);
+ };
+ });
+ });
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r,
+ h,
+ p;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Xxa = void 0;
+ c = a(0);
+ k = a(1);
+ l = a(14);
+ r = a(32);
+ h = a(184);
+ p = a(30);
+ d = (function () {
+ var b;
+ function a(a, b, c, f) {
+ this.platform = a;
+ this.config = b;
+ this.AN = c;
+ this.Pn = f;
+ }
+ a.prototype.transform = function (a) {
+ var b,
+ c;
+ b = this;
+ c = a.Ta;
+ return Promise.all([this.Pn.iMa(), this.Pn.kMa(), this.AN.wha()]).then(function (f) {
+ var h,
+ d;
+ h = U(f);
+ f = h.next().value;
+ d = h.next().value;
+ h = h.next().value;
+ return [{
+ viewableId: a.ma,
+ packageId: c.Uk,
+ assetId: c.uG,
+ challenge: h.eda,
+ audioProfiles: f,
+ textProfiles: b.config().Lt,
+ trickplayProfiles: ["BIF240", "BIF320"],
+ videoProfiles: d,
+ audioLanguages: c.Rdb,
+ textLanguages: c.zLb
+ }, {
+ rv: null === h || void 0 === h ? void 0 : h.tb,
+ Oj: "studioManifest"
+ }
+ ];
+ });
+ };
+ b = a;
+ return b = c.__decorate([k.N(), c.__param(0, k.l(r.aj)), c.__param(1, k.l(l.fd)), c.__param(2, k.l(h.vK)), c.__param(3, k.l(p.Vw))], b);
+ })();
+ b.Xxa = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r,
+ h,
+ p,
+ m,
+ f,
+ u,
+ g,
+ A,
+ K,
+ C,
+ n,
+ H;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Kxa = void 0;
+ c = a(0);
+ k = a(1);
+ l = a(103);
+ r = a(14);
+ h = a(242);
+ p = a(443);
+ m = a(294);
+ f = a(101);
+ u = a(32);
+ g = a(37);
+ A = a(3);
+ K = a(184);
+ C = a(71);
+ n = a(473);
+ H = a(30);
+ d = (function () {
+ var b;
+ function a(a, b, c, f, h, d, m, k, p, l) {
+ this.bi = a;
+ this.platform = b;
+ this.config = c;
+ this.Hfb = f;
+ this.iDb = h;
+ this.Ml = d;
+ this.AN = m;
+ this.Aa = k;
+ this.b1 = p;
+ this.Pn = l;
+ }
+ a.prototype.transform = function (a) {
+ var b,
+ c,
+ f,
+ d,
+ m,
+ k,
+ p;
+ b = this;
+ c = a.Ta;
+ f = Object.assign({}, c.eN, c.oo);
+ d = {};
+ m = a.ma;
+ d[m] = {
+ unletterboxed: !!f.preferUnletterboxed
+ };
+ k = this.config().UNb ? 30 : 25;
+ p = this.config().Pp ? this.Ml.uqb() : Promise.resolve(this.b1.Eq());
+ return Promise.all([this.Pn.iMa(), this.Pn.kMa(), this.Pn.EH(), this.Pn.WO(), this.Rpb(a.ga), this.xqb(a), p]).then(function (p) {
+ var u,
+ r,
+ g,
+ w,
+ K,
+ C;
+ u = U(p);
+ r = u.next().value;
+ g = u.next().value;
+ w = u.next().value;
+ K = u.next().value;
+ C = u.next().value;
+ p = u.next().value;
+ u = u.next().value;
+ r = (r || []).concat(g || []).concat(b.config().Lt).concat(["BIF240", "BIF320"]).filter(Boolean);
+ g = K && void 0 !== K.SUPPORTS_SECURE_STOP ? !!K.SUPPORTS_SECURE_STOP : void 0;
+ K = K ? K.DEVICE_SECURITY_LEVEL : void 0;
+ if(useddplus) {
+ r.push("ddplus-2.0-dash");
+ r.push("ddplus-5.1-dash");
+ r.push("ddplus-5.1hq-dash");
+ r.push("ddplus-atmos-dash");
+ }
+ if(useallSub) {
+ f.showAllSubDubTracks = 1
+ }
+ w = {
+ type: "standard",
+ viewableId: m,
+ profiles: r,
+ flavor: a.xv,
+ drmType: u,
+ drmVersion: k,
+ usePsshBox: !0,
+ isBranching: !!a.Ta.$j,
+ useHttpsStreams: !0,
+ supportsUnequalizedDownloadables: b.config().jLb,
+ imageSubtitleHeight: h.cV.mha(),
+ uiVersion: b.bi.qS,
+ uiPlatform: b.bi.l4,
+ clientVersion: b.platform.version,
+ supportsPreReleasePin: b.config().ep.fLb,
+ supportsWatermark: b.config().ep.gLb,
+ showAllSubDubTracks: b.config().ep.QJb || !!f.showAllSubDubTracks,
+ packageId: b.Brb(c),
+ deviceSupportsSecureStop: g,
+ deviceSecurityLevel: K,
+ videoOutputInfo: w,
+ titleSpecificData: d,
+ preferAssistiveAudio: !!f.assistiveAudioPreferred,
+ preferredTextLocale: f.preferredTextLocale,
+ preferredAudioLocale: f.preferredAudioLocale,
+ isUIAutoPlay: !!f.isUIAutoPlay,
+ challenge: C,
+ isNonMember: b.bi.XH,
+ pin: c.ESa,
+ desiredVmaf: b.config().PNb ? b.config().llb : b.config().mlb
+ };
+ c.yJa && (w.extraParams = c.yJa);
+ C = {
+ Oj: p ? "licensedManifest" : "manifest",
+ rv: null === p || void 0 === p ? void 0 : p.tb
+ };
+ p && (p = {
+ drmSessionId: p.tb.Dy() || "session",
+ clientTime: b.Aa.t3.ca(A.ll),
+ challengeBase64: p.eda
+ }, w.challenges = {
+ "default": [p]
+ }, w.profileGroups = [{
+ name: "default",
+ profiles: r
+ }
+ ], w.licenseType = "standard");
+ b.bi.aJa && a.xv === l.vk.XU && (w.maxSupportedLanguages = 2);
+ return [w, C];
+ });
+ };
+ a.prototype.Brb = function (a) {
+ if (this.config().z2.enabled) {
+ if (void 0 !== a.Uk)
+ return a.Uk;
+ if (void 0 !== this.config().z2.Uk)
+ return Number(this.config().z2.Uk);
+ }
+ };
+ a.prototype.Rpb = function (a) {
+ var b;
+ b = this;
+ return this.Hfb.NKa().then(function (c) {
+ var f;
+ f = a && b.iDb.Hrb(a);
+ f && f.Gn("cad");
+ return c;
+ });
+ };
+ a.prototype.xqb = function (a) {
+ return (a.xv === l.vk.cm || a.xv === l.vk.q9) && this.config().Pp && this.bi.TGa ? this.AN.wha() : Promise.resolve(void 0);
+ };
+ b = a;
+ return b = c.__decorate([k.N(), c.__param(0, k.l(C.Or)), c.__param(1, k.l(u.aj)), c.__param(2, k.l(r.fd)), c.__param(3, k.l(p.m5)), c.__param(4, k.l(m.IU)), c.__param(5, k.l(f.cu)), c.__param(6, k.l(K.vK)), c.__param(7, k.l(g.ni)), c.__param(8, k.l(n.gU)), c.__param(9, k.l(H.Vw))], b);
+ })();
+ b.Kxa = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r,
+ h,
+ p;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Exa = void 0;
+ c = a(0);
+ k = a(1);
+ l = a(2);
+ r = a(43);
+ h = a(65);
+ p = a(49);
+ d = (function () {
+ var b;
+ function a(a) {
+ return h.rh.call(this, a, l.J.z2a, 2, r.uh.xa, r.Ag.Gr, "generateScreenshots") || this;
+ }
+ N(a, h.rh);
+ a.prototype.Ge = function (a, b) {
+ var c;
+ c = this;
+ return this.send(a, "/generateScreenshots", b).then(function (a) {
+ return a.result;
+ })["catch"](function (a) {
+ throw c.Gl(a);
+ });
+ };
+ a.prototype.Xn = function (a, b, c) {
+ var f;
+ f = this;
+ return this.send(a, b.RO("generateScreenshots").href, c).then(function (a) {
+ return a.result;
+ })["catch"](function (a) {
+ throw f.Gl(a);
+ });
+ };
+ b = a;
+ return b = c.__decorate([k.N(), c.__param(0, k.l(p.yk))], b);
+ })();
+ b.Exa = d;
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Oxa = void 0;
+ b.Oxa = "PboPingCommandSymbol";
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r,
+ h,
+ p;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Nxa = void 0;
+ c = a(0);
+ k = a(1);
+ l = a(2);
+ r = a(43);
+ h = a(65);
+ p = a(49);
+ d = (function () {
+ var b;
+ function a(a) {
+ return h.rh.call(this, a, l.J.v5a, 1, r.uh.ping, r.Ag.Gr, r.uh.ping) || this;
+ }
+ N(a, h.rh);
+ a.prototype.Ge = function (a, b, c) {
+ var f;
+ f = this;
+ return this.send(a, "/" + this.name, b, void 0, void 0, c).then(function (a) {
+ return a.result;
+ })["catch"](function (a) {
+ throw f.Gl(a);
+ });
+ };
+ a.prototype.Xn = function () {
+ return Promise.reject(Error("Links are unsupported with ping"));
+ };
+ b = a;
+ return b = c.__decorate([k.N(), c.__param(0, k.l(p.yk))], b);
+ })();
+ b.Nxa = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r,
+ h,
+ p;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.yxa = void 0;
+ c = a(0);
+ k = a(1);
+ l = a(2);
+ r = a(43);
+ h = a(65);
+ p = a(49);
+ d = (function () {
+ var b;
+ function a(a) {
+ return h.rh.call(this, a, l.J.A_a, 2, r.uh.bind, r.Ag.Gr, r.uh.bind) || this;
+ }
+ N(a, h.rh);
+ a.prototype.Ge = function (a, b, c) {
+ var f;
+ f = this;
+ return this.send(a, "/bindDevice", b, void 0, void 0, c).then(function (a) {
+ return a.result;
+ })["catch"](function (a) {
+ throw f.Gl(a);
+ });
+ };
+ a.prototype.Xn = function () {
+ return Promise.reject(Error("Links are unsupported with bindDevice"));
+ };
+ b = a;
+ return b = c.__decorate([k.N(), c.__param(0, k.l(p.yk))], b);
+ })();
+ b.yxa = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r,
+ h,
+ p;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Lxa = void 0;
+ c = a(0);
+ k = a(1);
+ l = a(2);
+ r = a(43);
+ h = a(65);
+ p = a(49);
+ d = (function () {
+ var b;
+ function a(a) {
+ return h.rh.call(this, a, l.J.d5a, 2, r.uh.bSa, r.Ag.Gr, r.uh.bSa) || this;
+ }
+ N(a, h.rh);
+ a.prototype.Ge = function (a, b, c) {
+ var f;
+ f = this;
+ return this.send(a, "/" + this.name, b, void 0, void 0, c).then(function (a) {
+ return a.result;
+ })["catch"](function (a) {
+ throw f.Gl(a);
+ });
+ };
+ a.prototype.Xn = function () {
+ return Promise.reject(Error("Links are unsupported with pair"));
+ };
+ b = a;
+ return b = c.__decorate([k.N(), c.__param(0, k.l(p.yk))], b);
+ })();
+ b.Lxa = d;
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Mxa = void 0;
+ b.Mxa = "PboPairCommandSymbol";
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r,
+ h,
+ p;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.xxa = void 0;
+ c = a(0);
+ k = a(1);
+ l = a(2);
+ r = a(43);
+ h = a(65);
+ p = a(49);
+ d = (function () {
+ var b;
+ function a(a) {
+ return h.rh.call(this, a, l.J.z_a, 2, r.uh.bind, r.Ag.Gr, r.uh.bind) || this;
+ }
+ N(a, h.rh);
+ a.prototype.Ge = function (a, b, c) {
+ var f;
+ f = this;
+ return this.send(a, "/" + this.name, b, void 0, void 0, c).then(function (a) {
+ return a.result;
+ })["catch"](function (a) {
+ throw f.Gl(a);
+ });
+ };
+ a.prototype.Xn = function () {
+ return Promise.reject(Error("Links are unsupported with bind"));
+ };
+ b = a;
+ return b = c.__decorate([k.N(), c.__param(0, k.l(p.yk))], b);
+ })();
+ b.xxa = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r,
+ h,
+ p,
+ m,
+ f,
+ u,
+ g,
+ A;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Axa = void 0;
+ c = a(0);
+ k = a(1);
+ l = a(118);
+ r = a(71);
+ h = a(322);
+ p = a(325);
+ m = a(116);
+ f = a(94);
+ u = a(475);
+ g = a(85);
+ A = a(72);
+ d = (function () {
+ function a(a, b, c, f, h, d, m, k, p) {
+ this.gg = a;
+ this.cf = b;
+ this.bi = c;
+ this.Ilb = f;
+ this.OH = h;
+ this.INb = d;
+ this.oea = m;
+ this.DGb = k;
+ this.qy = p;
+ }
+ return a = c.__decorate([k.N(), c.__param(0, k.l(l.Yz)), c.__param(1, k.l(f.ex)), c.__param(2, k.l(r.Or)), c.__param(3, k.l(p.y8)), c.__param(4, k.l(m.rA)), c.__param(5, k.l(u.j$)), c.__param(6, k.l(g.DK)), c.__param(7, k.l(h.M8)), c.__param(8, k.l(A.Er))], a);
+ })();
+ b.Axa = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r,
+ h,
+ p,
+ m;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Hta = void 0;
+ c = a(0);
+ k = a(1);
+ l = a(2);
+ r = a(123);
+ h = a(76);
+ p = a(49);
+ m = a(43);
+ d = (function () {
+ var b;
+ function a(a) {
+ return r.wo.call(this, a, l.J.f2a, h.$l.uO, 3, m.Ag.ME) || this;
+ }
+ N(a, r.wo);
+ a.prototype.CX = function (a) {
+ return Object.assign(Object.assign({}, r.wo.prototype.CX.call(this, a)), {
+ action: a.action
+ });
+ };
+ b = a;
+ return b = c.__decorate([k.N(), c.__param(0, k.l(p.yk))], b);
+ })();
+ b.Hta = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r,
+ h,
+ p,
+ m;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Uza = void 0;
+ c = a(0);
+ k = a(1);
+ l = a(2);
+ r = a(123);
+ h = a(76);
+ p = a(49);
+ m = a(43);
+ d = (function () {
+ var b;
+ function a(a) {
+ return r.wo.call(this, a, l.J.qza, h.$l.splice, 1, m.Ag.ME) || this;
+ }
+ N(a, r.wo);
+ b = a;
+ return b = c.__decorate([k.N(), c.__param(0, k.l(p.yk))], b);
+ })();
+ b.Uza = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r,
+ h,
+ p,
+ m;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.mva = void 0;
+ c = a(0);
+ k = a(1);
+ l = a(2);
+ r = a(123);
+ h = a(76);
+ p = a(49);
+ m = a(43);
+ d = (function () {
+ var b;
+ function a(a) {
+ return r.wo.call(this, a, l.J.g7, h.$l.xP, 1, m.Ag.ME) || this;
+ }
+ N(a, r.wo);
+ b = a;
+ return b = c.__decorate([k.N(), c.__param(0, k.l(p.yk))], b);
+ })();
+ b.mva = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r,
+ h,
+ p,
+ m;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.$za = void 0;
+ c = a(0);
+ k = a(1);
+ l = a(2);
+ r = a(123);
+ h = a(76);
+ p = a(49);
+ m = a(43);
+ d = (function () {
+ var b;
+ function a(a) {
+ return r.wo.call(this, a, l.J.sza, h.$l.stop, 3, m.Ag.P7) || this;
+ }
+ N(a, r.wo);
+ b = a;
+ return b = c.__decorate([k.N(), c.__param(0, k.l(p.yk))], b);
+ })();
+ b.$za = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r,
+ h,
+ p,
+ m;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Wza = void 0;
+ c = a(0);
+ k = a(1);
+ l = a(2);
+ r = a(123);
+ h = a(76);
+ p = a(49);
+ m = a(43);
+ d = (function () {
+ var b;
+ function a(a) {
+ return r.wo.call(this, a, l.J.D6a, h.$l.start, 3, m.Ag.Gr) || this;
+ }
+ N(a, r.wo);
+ b = a;
+ return b = c.__decorate([k.N(), c.__param(0, k.l(p.yk))], b);
+ })();
+ b.Wza = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Gxa = void 0;
+ c = a(0);
+ k = a(1);
+ l = a(25);
+ r = a(42);
+ d = (function () {
+ var b;
+ function a(a, b) {
+ this.md = a;
+ this.Vu = b;
+ }
+ a.prototype.XXa = function (a) {
+ var b,
+ c;
+ b = this;
+ c = a.map(function (a) {
+ return a.links.releaseLicense.href;
+ }).map(function (a) {
+ return b.md.zQ(a.substring(a.indexOf("?") + 1));
+ });
+ return {
+ U: !0,
+ Rb: a.map(function (a, b) {
+ return {
+ id: a.drmSessionId,
+ Vy: c[b].drmlicensecontextid,
+ fI: c[b].licenseid
+ };
+ }),
+ Nk: a.map(function (a) {
+ return {
+ data: b.Vu.decode(a.licenseResponseBase64),
+ sessionId: a.drmSessionId
+ };
+ })
+ };
+ };
+ a.prototype.sMb = function (a) {
+ return {
+ U: !0,
+ response: {
+ data: a.reduce(function (a, b) {
+ var c;
+ c = b.secureStopResponseBase64;
+ (b = b.drmSessionId) && c && (a[b] = c);
+ return a;
+ }, {})
+ }
+ };
+ };
+ b = a;
+ return b = c.__decorate([k.N(), c.__param(0, k.l(l.hf)), c.__param(1, k.l(r.Ui))], b);
+ })();
+ b.Gxa = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Fxa = void 0;
+ c = a(0);
+ k = a(1);
+ l = a(37);
+ r = a(3);
+ d = (function () {
+ var b;
+ function a(a) {
+ this.Aa = a;
+ }
+ a.prototype.oMb = function (a) {
+ var b;
+ b = this.Aa.$e.ca(r.ll);
+ return {
+ inputs: a.Xh.map(function (c) {
+ return {
+ drmSessionId: c.sessionId,
+ clientTime: b,
+ challengeBase64: c.dataBase64,
+ xid: a.ga.toString(),
+ mdxControllerEsn: a.TP
+ };
+ }),
+ Hja: "standard" === a.ai.toLowerCase() ? "license" : "ldl"
+ };
+ };
+ a.prototype.rMb = function (a) {
+ var b,
+ c,
+ h,
+ d;
+ b = this;
+ c = a.nR || ({});
+ h = [];
+ d = a.Rb.map(function (f) {
+ var d;
+ h.push(f.id);
+ d = c[f.id];
+ delete c[f.id];
+ return {
+ url: b.bGa(f.Vy, f.fI),
+ echo: "drmSessionId",
+ params: {
+ drmSessionId: f.id,
+ secureStop: d,
+ secureStopId: d ? f.fI : void 0,
+ xid: a.ga.toString()
+ }
+ };
+ });
+ Object.keys(c).forEach(function (f) {
+ d.push({
+ url: b.bGa(a.Rb[0].Vy),
+ echo: "drmSessionId",
+ params: {
+ drmSessionId: f,
+ secureStop: c[f],
+ secureStopId: void 0,
+ xid: a.ga.toString()
+ }
+ });
+ });
+ return d;
+ };
+ a.prototype.bGa = function (a, b) {
+ return "/releaseLicense?drmLicenseContextId=" + a + (b ? "&licenseId=" + b : "");
+ };
+ b = a;
+ return b = c.__decorate([k.N(), c.__param(0, k.l(l.ni))], b);
+ })();
+ b.Fxa = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r,
+ h,
+ p;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Vxa = void 0;
+ c = a(0);
+ k = a(1);
+ l = a(2);
+ r = a(43);
+ h = a(65);
+ p = a(49);
+ d = (function () {
+ var b;
+ function a(a) {
+ return h.rh.call(this, a, l.J.nza, 3, r.uh.Ig, r.Ag.P7, "release/license") || this;
+ }
+ N(a, h.rh);
+ a.prototype.Ge = function (a, b) {
+ var c;
+ c = this;
+ return this.send(a, "/bundle", b).then(function (a) {
+ a = a.result;
+ c.AGa(a);
+ return a;
+ })["catch"](function (a) {
+ throw c.Gl(a);
+ });
+ };
+ a.prototype.Xn = function () {
+ return Promise.reject(Error("Links are unsupported with release"));
+ };
+ b = a;
+ return b = c.__decorate([k.N(), c.__param(0, k.l(p.yk))], b);
+ })();
+ b.Vxa = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r,
+ h,
+ p;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.wxa = void 0;
+ c = a(0);
+ k = a(1);
+ l = a(2);
+ r = a(43);
+ h = a(65);
+ p = a(49);
+ d = (function () {
+ var b;
+ function a(a) {
+ return h.rh.call(this, a, l.J.cx, 3, r.uh.Ig, r.Ag.Gr, r.uh.Ig) || this;
+ }
+ N(a, h.rh);
+ a.prototype.Ge = function () {
+ return Promise.reject(Error("Links are required with acquire command"));
+ };
+ a.prototype.Xn = function (a, b, c) {
+ var f,
+ h;
+ f = this;
+ b = b.RO(c.Hja).href;
+ h = "license" === c.Hja ? r.Ag.Gr : r.Ag.ME;
+ this.zW = "ldl" === c.Hja ? "prefetch/license" : r.uh.Ig;
+ return this.send(a, b, c.inputs, "drmSessionId", h).then(function (a) {
+ a = a.result;
+ f.AGa(a);
+ f.Yfb(a);
+ return a;
+ })["catch"](function (a) {
+ throw f.Gl(a);
+ });
+ };
+ a.prototype.Yfb = function (a) {
+ a.forEach(function (a) {
+ if (!a.licenseResponseBase64)
+ throw Error("Received empty licenseResponseBase64");
+ });
+ };
+ b = a;
+ return b = c.__decorate([k.N(), c.__param(0, k.l(p.yk))], b);
+ })();
+ b.wxa = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r,
+ h,
+ p,
+ m,
+ f,
+ u,
+ g,
+ A,
+ n;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Jxa = void 0;
+ c = a(0);
+ k = a(103);
+ l = a(2);
+ r = a(43);
+ a(155);
+ h = a(65);
+ p = a(49);
+ m = a(32);
+ f = a(34);
+ u = a(172);
+ g = a(205);
+ A = a(1);
+ n = a(293);
+ d = (function () {
+ var b;
+ function a(a, b, c, f, d) {
+ a = h.rh.call(this, a, l.J.MANIFEST, 3, r.uh.xa, r.Ag.Gr, r.uh.xa) || this;
+ a.platform = b;
+ a.byb = c;
+ a.Pwb = f;
+ a.dyb = d;
+ return a;
+ }
+ N(a, h.rh);
+ a.prototype.Ge = function (a, b) {
+ var c;
+ c = this;
+ this.zW = b.xv === k.vk.t8 ? "prefetch/manifest" : r.uh.xa;
+ return this.dyb.transform(b).then(function (h) {
+ var d,
+ m;
+ h = U(h);
+ d = h.next().value;
+ m = h.next().value;
+ m.rv && (c.zW = "licensedManifest");
+ return c.send(a, m.Oj, d, void 0, c.Zrb(b.xv), void 0, b.xv === k.vk.XU ? f.eu.Jya : f.eu.KU).then(function (a) {
+ var b;
+ a = c.byb.create(a.result);
+ b = a.Wf.Ow.map(function (a) {
+ return a.Ig;
+ }).filter(Boolean);
+ m.rv && (0 < b.length ? (b = c.Pwb.XXa(b), m.rv.pEa(b), a.rv = m.rv) : m.rv.close().subscribe());
+ return a;
+ });
+ })["catch"](function (a) {
+ throw c.Gl(a);
+ });
+ };
+ a.prototype.Xn = function () {
+ return Promise.reject(Error("Links are not supported with manifest command"));
+ };
+ a.prototype.Zrb = function (a) {
+ switch (a) {
+ case k.vk.cm:
+ case k.vk.G1a:
+ return r.Ag.Gr;
+ case k.vk.q9:
+ case k.vk.XU:
+ return r.Ag.P7;
+ case k.vk.t8:
+ return r.Ag.ME;
+ }
+ };
+ b = a;
+ return b = c.__decorate([A.N(), c.__param(0, A.l(p.yk)), c.__param(1, A.l(m.aj)), c.__param(2, A.l(u.OE)), c.__param(3, A.l(g.BU)), c.__param(4, A.l(n.G8))], b);
+ })();
+ b.Jxa = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r,
+ h,
+ p;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Ixa = void 0;
+ c = a(0);
+ k = a(1);
+ l = a(2);
+ r = a(43);
+ h = a(65);
+ p = a(49);
+ d = (function () {
+ var b;
+ function a(a) {
+ return h.rh.call(this, a, l.J.a4a, 1, r.uh.lPa, r.Ag.ME, r.uh.lPa) || this;
+ }
+ N(a, h.rh);
+ a.prototype.Ge = function (a, b) {
+ var c;
+ c = this;
+ return this.send(a, "/" + this.name, b).then(function (a) {
+ return a.result;
+ })["catch"](function (a) {
+ throw c.Gl(a);
+ });
+ };
+ a.prototype.Xn = function () {
+ return Promise.reject(Error("Links are unsupported with logblobs"));
+ };
+ b = a;
+ return b = c.__decorate([k.N(), c.__param(0, k.l(p.yk))], b);
+ })();
+ b.Ixa = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r,
+ h,
+ p,
+ m,
+ f,
+ u,
+ g,
+ A,
+ n,
+ C,
+ q,
+ H,
+ G,
+ T,
+ t,
+ aa,
+ Z,
+ B,
+ V,
+ fa,
+ ia,
+ Y,
+ pa,
+ X,
+ O,
+ na,
+ ha,
+ P,
+ z,
+ ja,
+ ya,
+ za,
+ ma;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.VGa = void 0;
+ d = a(1);
+ c = a(355);
+ k = a(614);
+ l = a(103);
+ r = a(613);
+ h = a(342);
+ p = a(612);
+ m = a(340);
+ f = a(611);
+ u = a(339);
+ g = a(610);
+ A = a(205);
+ n = a(609);
+ C = a(76);
+ q = a(608);
+ H = a(607);
+ G = a(48);
+ T = a(2);
+ t = a(606);
+ aa = a(605);
+ Z = a(604);
+ B = a(49);
+ V = a(603);
+ fa = a(195);
+ ia = a(602);
+ Y = a(601);
+ pa = a(600);
+ X = a(359);
+ O = a(599);
+ na = a(598);
+ ha = a(597);
+ P = a(463);
+ z = a(596);
+ ja = a(71);
+ ya = a(293);
+ za = a(595);
+ ma = a(594);
+ b.VGa = new d.Kc(function (a) {
+ a(B.yk).to(V.Axa);
+ a(c.F8).to(k.Ixa);
+ a(fa.zU).to(ia.xxa);
+ a(X.w8).to(O.yxa);
+ a(Y.Mxa).to(pa.Lxa);
+ a(l.CU).to(r.Jxa);
+ a(ya.G8).Jw(function (a) {
+ var b;
+ b = a.hb.get(ja.Or);
+ return b && b.ZYa ? a.hb.resolve(ma.Xxa) : a.hb.resolve(za.Kxa);
+ });
+ a(h.v8).to(p.wxa);
+ a(m.L8).to(f.Vxa);
+ a(u.C8).to(g.Fxa);
+ a(A.BU).to(n.Gxa);
+ a(C.N9).to(q.Wza);
+ a(C.P9).to(H.$za);
+ a(C.h7).to(t.mva);
+ a(C.K9).to(aa.Uza);
+ a(C.e6).to(Z.Hta);
+ a(ha.Oxa).to(na.Nxa);
+ a(P.B8).to(z.Exa);
+ a(C.zT).zf(function (a) {
+ return function (b) {
+ switch (b) {
+ case C.$l.start:
+ return a.hb.get(C.N9);
+ case C.$l.stop:
+ return a.hb.get(C.P9);
+ case C.$l.xP:
+ return a.hb.get(C.h7);
+ case C.$l.splice:
+ return a.hb.get(C.K9);
+ case C.$l.uO:
+ return a.hb.get(C.e6);
+ }
+ throw new G.Dc(T.J.k5a, void 0, void 0, void 0, void 0, "The event key was invalid - " + b);
+ };
+ });
+ });
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r,
+ h,
+ p,
+ m,
+ f;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Hwa = void 0;
+ c = a(0);
+ k = a(1);
+ l = a(63);
+ r = a(68);
+ h = a(3);
+ p = a(67);
+ m = a(34);
+ f = {
+ start: {
+ video: l.za.hT,
+ audio: l.za.dT
+ },
+ end: {
+ video: l.za.gT,
+ audio: l.za.cT
+ }
+ };
+ d = (function () {
+ var b;
+ function a(a, b) {
+ var c;
+ c = this;
+ this.Vk = a;
+ this.Cq = b;
+ this.SXa = function (a) {
+ var b,
+ f,
+ h,
+ d,
+ m,
+ k;
+ b = c.jXa++;
+ f = a.request.$B || "dl";
+ h = c.qMa(f, "start");
+ if (h) {
+ d = a.request.wp.stream.O.Wk;
+ if (d && !c.FWa.has(d)) {
+ m = c.QLa(d);
+ k = a.hr;
+ c.Vk.mark(h, m, k ? f + "-" + k + "-" + b : f);
+ a.Iba(function () {
+ var a,
+ h;
+ a = c.qMa(f, "end");
+ h = k ? f + "-" + k + "-" + b : f;
+ a && c.Vk.mark(a, m, h);
+ });
+ }
+ }
+ };
+ this.jXa = 0;
+ this.FWa = new Set();
+ this.Zna = new Map();
+ b.rO && this.OOb();
+ }
+ a.prototype.RLa = function (a) {
+ var c,
+ f,
+ d,
+ m,
+ k,
+ p,
+ u,
+ r;
+ function b(b) {
+ return h.timestamp(c.EEa(h.timestamp(b), a, !0));
+ }
+ c = this;
+ f = new Set();
+ d = a.Yc;
+ m = a.jKb;
+ k = a.ga;
+ p = a.Ha;
+ u = this.Vk.FLa(k);
+ r = p && this.QLa(p);
+ r && u.push.apply(u, [].concat(ca(this.Vk.FLa(r))));
+ this.Vk.oUa(a.ga);
+ r && this.Vk.oUa(r);
+ p && this.FWa.add(p);
+ p = [];
+ ("pr_ats" in d) && p.push({
+ name: l.za.SU,
+ Jt: b(d.pr_ats),
+ ga: k,
+ Ek: "request-pre-manifest"
+ });
+ ("ats" in d) && p.push({
+ name: l.za.QU,
+ Jt: b(d.ats),
+ ga: k,
+ Ek: "request-manifest"
+ });
+ ("pr_at" in d) && p.push({
+ name: l.za.RU,
+ Jt: b(d.pr_at),
+ ga: k,
+ Ek: "request-pre-manifest"
+ });
+ ("at" in d) && p.push({
+ name: l.za.PU,
+ Jt: b(d.at),
+ ga: k,
+ Ek: "request-manifest"
+ });
+ ("lg" in d) && p.push({
+ name: l.za.OU,
+ Jt: b(d.lg),
+ ga: k,
+ Ek: "request-license"
+ });
+ ("lr" in d) && p.push({
+ name: l.za.NU,
+ Jt: b(d.lr),
+ ga: k,
+ Ek: "request-license"
+ });
+ ("tt_start" in d) && p.push({
+ name: l.za.fT,
+ Jt: b(d.tt_start),
+ ga: k,
+ Ek: "request-timed-text"
+ });
+ ("tt_comp" in d) && p.push({
+ name: l.za.eT,
+ Jt: b(d.tt_comp),
+ ga: k,
+ Ek: "request-timed-text"
+ });
+ return p.concat(u).map(function (b) {
+ return c.VLb(b, a);
+ }).filter(function (a) {
+ return a.timestamp <= m ? ("end" === a.step && f.add(a.eventId), !0) : !1;
+ }).filter(function (a) {
+ return "start" !== a.step || f.has(a.eventId) ? !0 : !1;
+ }).sort(function (a, b) {
+ return a.timestamp - b.timestamp;
+ });
+ };
+ a.prototype.Icb = function (a, b, c) {
+ return (void 0 === c ? 0 : c) ? a.ca(h.ia) + b.ek.ca(h.ia) : a.ca(h.ia) - b.ek.ca(h.ia);
+ };
+ a.prototype.EEa = function (a, b, c) {
+ c = void 0 === c ? !1 : c;
+ if (b.gl)
+ if (c)
+ a.ca(h.ia) + b.gl;
+ else
+ return a.ca(h.ia) - b.gl;
+ return this.Icb(a, b, c);
+ };
+ a.prototype.VLb = function (a, b) {
+ var c;
+ c = a.name;
+ return {
+ eventName: c,
+ eventId: a.Ek || c,
+ timestamp: this.EEa(a.Jt, b),
+ component: this.LO(c),
+ category: this.Qpb(c),
+ step: this.ssb(c)
+ };
+ };
+ a.prototype.LO = function (a) {
+ switch (a) {
+ case l.za.SU:
+ case l.za.RU:
+ case l.za.QU:
+ case l.za.PU:
+ return "manifest";
+ case l.za.OU:
+ case l.za.NU:
+ case l.za.B9:
+ case l.za.A9:
+ case l.za.CT:
+ case l.za.BT:
+ case l.za.N4:
+ case l.za.M4:
+ return "license";
+ case l.za.fT:
+ case l.za.eT:
+ case l.za.dT:
+ case l.za.cT:
+ case l.za.hT:
+ case l.za.gT:
+ case l.za.L4:
+ case l.za.K4:
+ return "buffering";
+ case l.za.n8:
+ case l.za.m8:
+ return "playback";
+ default:
+ return null;
+ }
+ };
+ a.prototype.Qpb = function (a) {
+ switch (a) {
+ case l.za.SU:
+ case l.za.RU:
+ case l.za.QU:
+ case l.za.PU:
+ return "aws";
+ case l.za.OU:
+ case l.za.NU:
+ return "mixed";
+ case l.za.n8:
+ case l.za.m8:
+ case l.za.B9:
+ case l.za.A9:
+ case l.za.CT:
+ case l.za.BT:
+ case l.za.N4:
+ case l.za.M4:
+ case l.za.L4:
+ case l.za.K4:
+ return "dev";
+ case l.za.fT:
+ case l.za.eT:
+ case l.za.dT:
+ case l.za.cT:
+ case l.za.hT:
+ case l.za.gT:
+ return "cdn";
+ default:
+ return null;
+ }
+ };
+ a.prototype.ssb = function (a) {
+ switch (a) {
+ case l.za.SU:
+ case l.za.n8:
+ case l.za.QU:
+ case l.za.OU:
+ case l.za.L4:
+ case l.za.fT:
+ case l.za.dT:
+ case l.za.hT:
+ case l.za.B9:
+ case l.za.CT:
+ case l.za.N4:
+ return "start";
+ case l.za.RU:
+ case l.za.m8:
+ case l.za.PU:
+ case l.za.NU:
+ case l.za.A9:
+ case l.za.BT:
+ case l.za.M4:
+ case l.za.K4:
+ case l.za.eT:
+ case l.za.cT:
+ case l.za.gT:
+ return "end";
+ default:
+ return null;
+ }
+ };
+ a.prototype.qMa = function (a, b) {
+ if ((a in f[b]))
+ return f[b][a];
+ };
+ a.prototype.TMb = function () {
+ p.cf.removeEventListener(p.K_, this.SXa);
+ };
+ a.prototype.OOb = function () {
+ this.TMb();
+ p.cf.addEventListener(p.K_, this.SXa);
+ };
+ a.prototype.QLa = function (a) {
+ var b;
+ if (this.Zna.has(a))
+ return this.Zna.get(a);
+ b = Date.now();
+ this.Zna.set(a, b);
+ return b;
+ };
+ b = a;
+ return b = c.__decorate([k.N(), c.__param(0, k.l(r.PE)), c.__param(1, k.l(m.kl))], b);
+ })();
+ b.Hwa = d;
+ }, function (d, b, a) {
+ var k;
+ function c(a, b, c, d) {
+ this.Iea = a;
+ this.debug = b;
+ this.va = c;
+ this.j = d;
+ this.X1 = [];
+ this.s1 = {};
+ this.Lea = {};
+ this.Rfa = !1;
+ this.jXa = 1;
+ this.qra = 7.8125;
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Xsa = void 0;
+ k = a(3);
+ a(13);
+ a(15);
+ a(67);
+ c.prototype.register = function (a, b) {
+ this.debug.assert(!(0 <= this.X1.indexOf(a)), "panel already registered");
+ this.s1[a] = b;
+ this.X1.push(a);
+ };
+ c.prototype.tRa = function (a) {
+ var b;
+ b = this;
+ this.Lea[a] = !0;
+ this.Rfa || (this.Rfa = !0, setTimeout(function () {
+ return b.vob();
+ }, 0));
+ };
+ c.prototype.lrb = function (a) {
+ return (a = this.s1[a]) ? a() : void 0;
+ };
+ c.prototype.ZZ = function () {
+ var a;
+ a = this.j.i2;
+ return a ? a.ZZ() : [];
+ };
+ c.prototype.addEventListener = function (a, b) {
+ this.Iea.addListener(a, b);
+ this.s1[a] && this.tRa(a);
+ };
+ c.prototype.removeEventListener = function (a, b) {
+ this.Iea.removeListener(a, b);
+ };
+ c.prototype.getTime = function () {
+ return this.va.Yb().ca(k.ia);
+ };
+ c.prototype.vob = function () {
+ this.Rfa = !1;
+ for (var a = this.X1.length, b; a--; ) {
+ b = this.X1[a];
+ this.Lea[b] && (this.Lea[b] = !1, this.Iea.$b(b + "changed", {
+ getModel: this.s1[b]
+ }));
+ }
+ };
+ b.Xsa = c;
+ }, function (d, b, a) {
+ var k,
+ l,
+ r,
+ h,
+ p,
+ m,
+ f;
+ function c(a, b, c, h, d, l, g, n, q, t) {
+ var u;
+ u = this;
+ this.BMb = a;
+ this.j = b;
+ this.id = c;
+ this.height = h;
+ this.width = d;
+ this.VCb = l;
+ this.WCb = g;
+ this.size = n;
+ this.Kq = q;
+ this.xe = t;
+ this.type = k.Qg.Lpa;
+ this.Aw = !0;
+ this.state = p.tn.tU;
+ this.fh = {};
+ this.wX = {};
+ this.vEb = function (a) {
+ if (a.U)
+ try {
+ u.data = u.BMb.parse(a.content);
+ u.state = p.tn.LOADED;
+ u.log.trace("TrickPlay parsed", {
+ Images: u.data.images.length
+ }, u.fh);
+ u.j.fireEvent(m.V.lS);
+ } catch (B) {
+ u.state = p.tn.gxa;
+ u.log.error("TrickPlay parse failed.", B);
+ }
+ else (u.state = p.tn.tU, u.log.error("TrickPlay download failed.", f.Vp(a), u.fh));
+ };
+ this.log = r.Gg(b, "TrickPlay");
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.EAa = void 0;
+ k = a(75);
+ l = a(12);
+ r = a(6);
+ h = a(67);
+ p = a(320);
+ m = a(13);
+ f = a(2);
+ c.prototype.Jqb = function (a) {
+ if (this.data && (this.Kq && (a += this.Kq), a = Math.floor(a / this.data.hp.GXa), 0 <= a && a < this.data.images.length))
+ return {
+ image: this.data.images[a],
+ time: a * this.data.hp.GXa,
+ height: this.height,
+ width: this.width,
+ pixelAspectHeight: this.VCb,
+ pixelAspectWidth: this.WCb
+ };
+ };
+ c.prototype.i_ = function () {
+ switch (this.state) {
+ case p.tn.LOADED:
+ return "downloaded";
+ case p.tn.LOADING:
+ return "loading";
+ case p.tn.aL:
+ return "downloadfailed";
+ case p.tn.gxa:
+ return "parsefailed";
+ default:
+ return "notstarted";
+ }
+ };
+ c.prototype.download = function () {
+ var a;
+ a = this.Psb();
+ a ? (this.state = p.tn.LOADING, this.Slb(a)) : this.Aw = !1;
+ };
+ c.prototype.Wc = function () {
+ return this.state;
+ };
+ c.prototype.Psb = function () {
+ var a,
+ b,
+ c;
+ a = this;
+ b = Object.keys(this.xe).find(function (b) {
+ return (a.wX[a.xe[b]] || 0) <= l.config.xMb;
+ });
+ if (b) {
+ c = this.xe[b];
+ (c in this.wX) ? this.wX[c]++ : this.wX[c] = 1;
+ return {
+ url: c,
+ ky: b
+ };
+ }
+ };
+ c.prototype.Slb = function (a) {
+ this.log.trace("Downloading", a.url, this.fh);
+ a = {
+ responseType: h.jP,
+ tc: this.Bga(a.ky),
+ url: a.url,
+ track: this
+ };
+ this.j.N_.download(a, this.vEb);
+ };
+ c.prototype.Bga = function (a) {
+ return this.j.Nj.find(function (b) {
+ return b && b.id === a;
+ });
+ };
+ b.EAa = c;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ r,
+ h;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.hza = void 0;
+ c = a(0);
+ k = a(13);
+ l = a(1);
+ r = a(24);
+ h = a(3);
+ d = (function () {
+ var b;
+ function a(a) {
+ this.va = a;
+ this.trace = [];
+ }
+ a.prototype.Rm = function (a) {
+ a.cause !== k.le.Yw && (this.trace.unshift({
+ time: this.va.Yb(),
+ event: a
+ }), 5 < this.trace.length && this.trace.pop());
+ };
+ a.prototype.hMa = function () {
+ var a,
+ b;
+ a = this;
+ if (0 === this.trace.length)
+ return {};
+ b = this.trace[0];
+ return {
+ timeSinceLastRepositionMs: this.AXa(b.time),
+ lastRepositionCause: this.MKa(b.event.cause),
+ repositionTrace: this.trace.map(function (b) {
+ return {
+ timeSince: a.AXa(b.time),
+ cause: a.MKa(b.event.cause),
+ newMediaTime: b.event.B1,
+ oldMediaTime: b.event.wla,
+ contentPts: b.event.Gi,
+ skip: b.event.skip
+ };
+ })
+ };
+ };
+ a.prototype.AXa = function (a) {
+ return this.va.Yb().Ib(a).ca(h.ia);
+ };
+ a.prototype.MKa = function (a) {
+ switch (a) {
+ case k.le.Yw:
+ return "initial";
+ case k.le.lu:
+ return "seek";
+ case k.le.KA:
+ return "segment_changed";
+ case k.le.fF:
+ return "track_changed";
+ }
+ };
+ b = a;
+ return b = c.__decorate([l.N(), c.__param(0, l.l(r.Me))], b);
+ })();
+ b.hza = d;
+ }, function (d, b, a) {
+ var k,
+ l,
+ r,
+ h,
+ p;
+ function c(a, b, c, h) {
+ this.ga = a;
+ this.HGb = b;
+ this.ka = c;
+ this.app = h;
+ this.Yc = {};
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.mya = void 0;
+ k = a(0);
+ l = a(1);
+ r = a(7);
+ h = a(24);
+ p = a(3);
+ d = (function () {
+ var b;
+ function a(a, b) {
+ this.sf = a;
+ this.app = b;
+ this.Kd = {};
+ this.ka = a.xb("PlaybackMilestoneStoreImpl");
+ }
+ a.prototype.RFb = function (a, b) {
+ this.Kd[a] && this.ka.warn("registerPlayback: xid " + a + " already registered, overriding");
+ b = (b ? b : this.app.Yb()).ca(p.ia);
+ this.ka.trace("registerPlayback: xid " + a + " at " + b);
+ this.Kd[a] = new c(a, b, this.ka, this.app);
+ return this.Kd[a];
+ };
+ a.prototype.Hrb = function (a) {
+ this.Kd[a] || this.ka.warn("getPlaybackMilestones: xid " + a + " is not registered");
+ return this.Kd[a];
+ };
+ a.prototype.jGb = function (a) {
+ this.ka.trace("removePlayback: xid " + a);
+ delete this.Kd[a];
+ };
+ b = a;
+ return b = k.__decorate([l.N(), k.__param(0, l.l(r.Jb)), k.__param(1, l.l(h.Me))], b);
+ })();
+ b.mya = d;
+ c.prototype.Gn = function (a, b) {
+ b = b ? b.ca(p.ia) : this.app.Yb().ca(p.ia) - this.HGb;
+ this.ka.trace("addMilestone: xid " + this.ga + " " + a + " at " + b);
+ this.Yc[a] = b;
+ };
+ }, function (d, b, a) {
+ var k,
+ l,
+ r,
+ h,
+ p,
+ m,
+ f,
+ u,
+ g,
+ A,
+ n,
+ C,
+ q,
+ H;
+ function c(a, b, c, f, d) {
+ var p;
+ p = this;
+ this.j = a;
+ this.Ah = b;
+ this.uS = c;
+ this.md = f;
+ this.qWa = d;
+ this.kea = {};
+ this.update = function () {
+ var a;
+ if (p.Zm.selectionStart == p.Zm.selectionEnd) {
+ a = "";
+ p.ZZ().forEach(function (b) {
+ a = a ? a + "\n" : "";
+ Object.keys(b).forEach(function (c) {
+ a += c + ": " + b[c] + "\n";
+ });
+ });
+ p.Zm.style.fontSize = h.jn(m.bu(p.element.clientHeight / 60), 8, 18) + "px";
+ p.Zm.value = a;
+ }
+ };
+ this.nBb = function () {
+ var a,
+ b;
+ if (p.j.pj) {
+ b = p.j.pj.qC();
+ b && (p.iea = b - (null !== (a = p.NXa) && void 0 !== a ? a : 0), p.NXa = b, p.tQ());
+ }
+ };
+ this.tQ = function () {
+ p.uS.Pc(p.update);
+ };
+ this.onkeydown = function (a) {
+ a.ctrlKey && a.altKey && a.shiftKey && (a.keyCode == g.Hr.K0a || a.keyCode == g.Hr.Q) && p.toggle();
+ };
+ this.MSa = [a.bb, a.tc[k.Hc.Na.AUDIO], a.tc[k.Hc.Na.VIDEO], a.tg, a.wf, a.zl, a.Bf, a.Lj, a.state, a.Jn, a.Sb, a.volume, a.muted];
+ this.element = this.md.createElement("div", "position:absolute;left:10px;top:10px;right:10px;bottom:10px", void 0, {
+ "class": "player-info"
+ });
+ this.Zm = this.md.createElement("textarea", "position:absolute;resize:none;box-sizing:border-box;width:100%;height:100%;padding:10px;background-color:rgba(0,0,0,0.4);color:#fff;font-size:12px;font-family:Arial;overflow:auto", void 0, {
+ readonly: "readonly"
+ });
+ this.element.appendChild(this.Zm);
+ this.controls = this.md.createElement("div", "position:absolute;top:2px;right:2px");
+ this.element.appendChild(this.controls);
+ b = this.md.createElement("button", void 0, "X");
+ b.addEventListener("click", function () {
+ return p.ip();
+ }, !1);
+ this.controls.appendChild(b);
+ r.Te.addListener(r.Hy, this.onkeydown);
+ a.addEventListener(u.V.If, function () {
+ r.Te.removeListener(r.Hy, p.onkeydown);
+ p.ip();
+ });
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.kya = void 0;
+ k = a(57);
+ l = a(56);
+ r = a(55);
+ h = a(93);
+ p = a(192);
+ m = a(9);
+ f = a(15);
+ u = a(13);
+ g = a(104);
+ A = a(3);
+ d = {};
+ n = (d[u.ob.UE] = "Not Loaded", d[u.ob.LOADING] = "Loading", d[u.ob.od] = "Normal", d[u.ob.CLOSING] = "Closing", d[u.ob.CLOSED] = "Closed", d);
+ d = {};
+ C = (d[u.ye.od] = "Normal", d[u.ye.Xd] = "Pre-buffering", d[u.ye.rza] = "Network stalled", d);
+ d = {};
+ q = (d[u.lb.dg] = "Waiting for decoder", d[u.lb.Sc] = "Playing", d[u.lb.$i] = "Paused", d[u.lb.Fr] = "Media ended", d);
+ H = [u.V.$0, u.V.seb];
+ c.prototype.IIb = function (a) {
+ this.kea.DFR = a;
+ };
+ c.prototype.show = function () {
+ var a;
+ a = this;
+ this.visible || (this.$ub = t.setInterval(this.nBb, 1E3), this.j.Rf.appendChild(this.element), this.MSa.forEach(function (b) {
+ b.addListener(a.tQ);
+ }), H.forEach(function (b) {
+ a.j.addEventListener(b, a.tQ);
+ }), this.visible = !0);
+ this.update();
+ };
+ c.prototype.ip = function () {
+ var a;
+ a = this;
+ this.visible && (clearInterval(this.$ub), this.NXa = this.iea = void 0, this.j.Rf.removeChild(this.element), this.MSa.forEach(function (b) {
+ b.removeListener(a.tQ);
+ }), H.forEach(function (b) {
+ a.j.removeEventListener(b, a.tQ);
+ }), this.uS.Pc(), this.visible = !1);
+ };
+ c.prototype.toggle = function () {
+ this.visible ? this.ip() : this.show();
+ };
+ c.prototype.ZZ = function () {
+ var b,
+ c,
+ d,
+ u,
+ r,
+ g,
+ w,
+ K,
+ H,
+ M,
+ t,
+ X,
+ O,
+ na,
+ ha,
+ P,
+ z,
+ ja,
+ ya,
+ za,
+ ma,
+ Ua,
+ E,
+ N,
+ R,
+ Ba,
+ Q,
+ U,
+ W,
+ Fa,
+ ca,
+ ea,
+ da,
+ la,
+ ga,
+ oa,
+ ra;
+ b = this;
+ M = [];
+ t = this.Ah();
+ M.push({
+ Version: "6.0025.038.031",
+ Esn: t ? t.Ch : "UNKNOWN",
+ PBCID: this.j.Ek,
+ UserAgent: m.bm
+ });
+ try {
+ X = {
+ MovieId: this.j.G,
+ TrackingId: this.j.li,
+ Xid: this.j.ga + " (" + l.ln.map(function (a) {
+ return a.ga;
+ }).join(", ") + ")",
+ Position: h.th(this.j.bb.value),
+ Duration: h.th(this.j.zs.ca(A.ia)),
+ PlayerDuration: h.th(this.j.$q.ca(A.ia)),
+ Volume: m.Th(100 * this.j.volume.value) + "%" + (this.j.muted.value ? " (Muted)" : "")
+ };
+ if (this.j.Ta.$j || this.j.Ta.p0)
+ (X["Segment Position"] = h.th(this.j.uC()), X.Segment = this.j.jha());
+ M.push(X);
+ } catch (Ib) {}
+ try {
+ O = this.j.Ll ? this.j.Ll.$tb() : void 0;
+ M.push({
+ "Player state": n[this.j.state.value],
+ "Buffering state": C[this.j.Jn.value] + (f.na(O) ? ", ETA:" + h.th(O) : ""),
+ "Rendering state": q[this.j.Sb.value]
+ });
+ } catch (Ib) {}
+ try {
+ na = this.j.iqa() + this.j.oca();
+ ha = this.j.tg.value;
+ P = null === ha || void 0 === ha ? void 0 : ha.stream;
+ z = this.j.wf.value;
+ ja = null === z || void 0 === z ? void 0 : z.stream;
+ ya = null !== (c = null === P || void 0 === P ? void 0 : P.R) && void 0 !== c ? c : "?";
+ za = ja ? ja.R + " (" + ja.width + "x" + ja.height + ")" : "?";
+ ma = null !== (d = null === ja || void 0 === ja ? void 0 : ja.Bb) && void 0 !== d ? d : "?";
+ Ua = null !== (r = null === (u = this.j.Bf.value) || void 0 === u ? void 0 : u.Bb) && void 0 !== r ? r : "?";
+ E = null !== (w = null === (g = this.j.zl.value) || void 0 === g ? void 0 : g.R) && void 0 !== w ? w : "?";
+ N = null !== (H = null === (K = this.j.Bf.value) || void 0 === K ? void 0 : K.R) && void 0 !== H ? H : "?";
+ R = this.j.tc[k.Hc.Na.VIDEO].value;
+ Ba = this.j.tc[k.Hc.Na.AUDIO].value;
+ M.push({
+ "Playing bitrate (a/v)": ya + " / " + za,
+ "Playing/Buffering vmaf": ma + "/" + Ua,
+ "Buffering bitrate (a/v)": E + " / " + N,
+ "Buffer size in Bytes (a/v)": this.j.oca() + " / " + this.j.iqa(),
+ "Buffer size in Bytes": "" + na,
+ "Buffer size in Seconds (a/v)": h.th(this.j.$M()) + " / " + h.th(this.j.AS()),
+ "Current CDN (a/v)": (Ba ? Ba.name + ", Id: " + Ba.id : "?") + " / " + (R ? R.name + ", Id: " + R.id : "?")
+ });
+ } catch (Ib) {}
+ try {
+ if (this.j.tg.value && this.j.wf.value) {
+ Q = this.j.tg.value.stream.track;
+ U = this.j.wf.value.stream;
+ W = this.j.Lj.value;
+ Fa = this.qWa.WN(this.j.wg.value ? this.j.wg.value.pc : []);
+ ca = this.qWa.PN(Q.pc);
+ ea = U.hg;
+ da = (/hevc/).test(ea) ? "hevc" : (/vp9/).test(ea) ? "vp9" : (/h264hpl/).test(ea) ? "avchigh" : "avc";
+ (/hdr/).test(ea) && (da += ", hdr");
+ (/dv/).test(ea) && (da += ", dv");
+ (/prk/).test(ea) && (da += ", prk");
+ M.push({
+ "Audio Track": Q.Al + ", Id: " + Q.cb + ", Channels: " + Q.Xo + ", Codec: " + ca,
+ "Video Track": "Codec: " + Fa + " (" + da + ")",
+ "Timed Text Track": W ? W.Al + ", Profile: " + W.profile + ", Id: " + W.cb : "none"
+ });
+ }
+ } catch (Ib) {}
+ try {
+ la = this.j.pj;
+ ga = this.j.Bf.value ? this.j.Bf.value.DZ : 0;
+ oa = a(295).yPa;
+ M.push({
+ Framerate: ga.toFixed(3),
+ "Current Dropped Frames": f.na(this.iea) ? this.iea : "",
+ "Total Frames": la.rC(),
+ "Total Dropped Frames": la.qC(),
+ "Total Corrupted Frames": la.MO(),
+ "Total Frame Delay": la.XZ(),
+ "Main Thread stall/sec": oa ? oa.Pqb().join(" ") : "DISABLED",
+ VideoDiag: p.bka(this.j.n_())
+ });
+ } catch (Ib) {}
+ try {
+ M.push({
+ Throughput: this.j.Ia + " kbps"
+ });
+ } catch (Ib) {}
+ ra = void 0;
+ try {
+ Object.keys(this.kea).forEach(function (a) {
+ ra = ra || ({});
+ ra[a] = JSON.stringify(b.kea[a]);
+ });
+ ra && M.push(ra);
+ } catch (Ib) {}
+ return M;
+ };
+ b.kya = c;
+ }, function (d, b, a) {
+ var k,
+ l,
+ r;
+ function c(a, b) {
+ this.config = a;
+ this.j = b;
+ this.AQ = void 0;
+ this.c2 = !1;
+ this.wja = 0;
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Cza = void 0;
+ k = a(13);
+ l = a(3);
+ r = a(93);
+ c.prototype.rrb = function (a, b, c, f, d) {
+ var h,
+ m,
+ p,
+ u;
+ c = void 0 === c ? this.j.Ha : c;
+ f = void 0 === f ? !1 : f;
+ h = b === k.le.KA;
+ m = this.j.xLa(c);
+ f = this.wfb(h ? a : this.tgb(a, c), f, c, m);
+ h ? (a = f, f = this.j.Hb.As(m, f, c)) : a = this.j.Hb.NN(m, f, c);
+ b === k.le.Yw && (this.j.QFa = f);
+ d = this.Fi(a, b, d);
+ p = (b === k.le.lu || b === k.le.fF) && !this.j.rOa;
+ p = (h = h || d || p) ? a : f;
+ if (this.j.$q) {
+ u = this.config().iD;
+ this.j.HMa(p, u) || b !== k.le.lu || (p = this.j.$q.ca(l.ia) - u - 1E3, h ? (a = p, f = this.j.Hb.As(m, p, c)) : (a = this.j.Hb.NN(m, p, c), f = p));
+ }
+ return {
+ B1: p,
+ Gi: f,
+ qDb: a,
+ Fi: d
+ };
+ };
+ c.prototype.wfb = function (a, b, c, f) {
+ a = this.Mvb() || b ? Math.round(a) : this.psb(a, c, f);
+ this.config().Una && (a += this.config().Una);
+ return a;
+ };
+ c.prototype.Fi = function (a, b, c) {
+ return this.config().Elb || b === k.le.Yw || b === k.le.KA || b === k.le.fF || !c || a < c.start.ca(l.ia) || a >= c.end.ca(l.ia) ? !1 : (b = this.j.Hb) && b.Fi(a) || !1;
+ };
+ c.prototype.Mvb = function () {
+ return this.j.Ta.$j ? !0 : "boolean" === typeof this.j.Ta.IQ ? this.j.Ta.IQ : navigator.hardwareConcurrency && 2 >= navigator.hardwareConcurrency ? this.config().IQ && this.config().LDb : this.config().IQ;
+ };
+ c.prototype.tgb = function (a, b) {
+ var c;
+ b = this.j.Cv(b);
+ c = b.zs;
+ b = (b.Eyb || c).ca(l.ia) - this.config().UOb;
+ return r.jn(a, 0, b);
+ };
+ c.prototype.psb = function (a, b, c) {
+ var f;
+ f = this.j.Ta.$j ? this.config().bYb : this.config().eH;
+ return this.j.Hb.kGa(a, c, f, b);
+ };
+ wa.Object.defineProperties(c.prototype, {
+ Wia: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.c2 || !!this.AQ;
+ }
+ }
+ });
+ b.Cza = c;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.HAa = void 0;
+ c = a(0);
+ k = a(206);
+ l = a(1);
+ d = (function () {
+ var b,
+ d;
+ function a() {}
+ a.prototype.parse = function (a) {
+ var b,
+ c;
+ if (!a)
+ throw Error("invalid array buffer");
+ b = new Uint8Array(a);
+ c = new k.oT(b);
+ a = this.dCb(c);
+ b = this.fCb(c, b, a);
+ return {
+ hp: a,
+ images: b
+ };
+ };
+ a.prototype.dCb = function (a) {
+ var c,
+ h,
+ d,
+ m;
+ if (a.Jk() < this.JGb())
+ throw Error("array buffer too short");
+ b.Qva.forEach(function (b) {
+ if (b != a.Ke())
+ throw Error("BIF has invalid magic.");
+ });
+ c = a.zD();
+ if (c > b.VERSION)
+ throw Error("BIF version in unsupported");
+ h = a.zD();
+ if (0 == h)
+ throw Error("BIF has no frames.");
+ d = a.zD();
+ m = a.Vd(b.Yya);
+ return {
+ version: c,
+ OAb: h,
+ GXa: d,
+ NGb: m
+ };
+ };
+ a.prototype.fCb = function (a, b, c) {
+ var d,
+ m;
+ for (var f = [], h = 0; h <= c.OAb; h++) {
+ m = {
+ timestamp: a.zD(),
+ offset: a.zD()
+ };
+ void 0 != d && f.push(b.subarray(d.offset, m.offset));
+ d = m;
+ }
+ return f;
+ };
+ a.prototype.JGb = function () {
+ return b.Qva.length + 4 + 4 + 4 + b.Yya;
+ };
+ d = b = a;
+ d.Qva = [137, 66, 73, 70, 13, 10, 26, 10];
+ d.VERSION = 0;
+ d.Yya = 44;
+ return d = b = c.__decorate([l.N()], d);
+ })();
+ b.HAa = d;
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.g$ = void 0;
+ b.g$ = "TrickPlayParserSymbol";
+ }, function (d, b, a) {
+ var k,
+ l;
+ function c(a, b, c, d, f, l, g, A, n, C, q) {
+ this.index = a;
+ this.G = b;
+ this.Ha = c;
+ this.Ta = d;
+ this.ga = f;
+ this.ek = l;
+ this.N0 = g;
+ this.mhb = n;
+ this.rQa = q;
+ this.rd = new k.Rc(null);
+ this.wg = new k.Rc(null);
+ this.Bc = new k.Rc(null);
+ this.Lj = new k.Rc(null);
+ this.Kt = new k.Rc(void 0);
+ this.Bf = new k.Rc(null);
+ this.zl = new k.Rc(null);
+ this.tg = new k.Rc(null);
+ this.wf = new k.Rc(null);
+ this.bb = new k.Rc(void 0);
+ this.playbackRate = new k.Rc(1);
+ this.Ln = new k.Rc(null);
+ this.$u = this.iy = "notcached";
+ this.background = !1;
+ A && (this.Bf.set(A.Bf.value), this.zl.set(A.zl.value));
+ this.Om = C(this);
+ this.Vk = this.rQa.RFb(this.ga, this.ek);
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.nya = void 0;
+ k = a(193);
+ l = a(3);
+ c.prototype.kd = function (a) {
+ this.Vk.Gn(a);
+ };
+ c.prototype.Iv = function (a) {
+ var b;
+ b = this;
+ Object.keys(a).forEach(function (c) {
+ b.Vk.Gn(c, l.Gb(a[c] - b.ek.ca(l.ia)));
+ });
+ };
+ c.prototype.H1 = function () {
+ this.rQa.jGb(this.ga);
+ };
+ wa.Object.defineProperties(c.prototype, {
+ we: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.Ta.we;
+ }
+ },
+ Hk: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.mc && this.mc.Hk;
+ }
+ },
+ In: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.mc && this.mc.In;
+ }
+ },
+ dn: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.mc && this.mc.dn;
+ }
+ },
+ Lw: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.mc && this.mc.Lw;
+ }
+ },
+ fl: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.mc && this.mc.fl;
+ }
+ },
+ sg: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.mc && this.mc.sg;
+ }
+ },
+ Rv: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.mc && this.mc.Rv;
+ }
+ },
+ gr: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.mc && this.mc.gr;
+ }
+ },
+ Nj: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.mc && this.mc.Nj;
+ }
+ },
+ p2: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.mc && this.mc.p2;
+ }
+ },
+ zs: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.U$ && 0 < this.U$.ca(l.ia) ? this.U$ : l.Gb(this.xa ? this.xa.Wf.duration : 0);
+ },
+ set: function (a) {
+ this.U$ = a;
+ }
+ },
+ li: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.Ta.li || 0;
+ }
+ },
+ hea: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return void 0 !== this.ZX ? this.ZX : void 0 === this.bb.value ? null : this.mhb(this.bb.value, this.Ha);
+ }
+ },
+ Ek: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ var a,
+ b;
+ return null === (b = null === (a = this.xa) || void 0 === a ? void 0 : a.Wf.pGa) || void 0 === b ? void 0 : b.kD;
+ }
+ },
+ ND: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ var a,
+ b;
+ return null === (b = null === (a = this.xa) || void 0 === a ? void 0 : a.Wf.pGa) || void 0 === b ? void 0 : b.ND;
+ }
+ },
+ Yc: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.Vk.Yc;
+ }
+ }
+ });
+ b.nya = c;
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.R8 = void 0;
+ b.R8 = "PlayTimeTrackerFactorySymbol";
+ }, function (d, b, a) {
+ var k,
+ l,
+ r,
+ h,
+ p,
+ m,
+ f,
+ u,
+ g;
+ function c() {}
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.eya = void 0;
+ k = a(0);
+ l = a(1);
+ r = a(7);
+ h = a(14);
+ p = a(91);
+ a(3);
+ m = a(21);
+ f = a(87);
+ u = a(10);
+ g = a(22);
+ c.prototype.encode = function (a) {
+ return {
+ key: a.key,
+ downloadableId: a.vd,
+ bitrate: a.R,
+ vmaf: a.Bb,
+ duration: a.duration,
+ metric: a.YP,
+ cdnId: a.ky
+ };
+ };
+ c.prototype.decode = function (a) {
+ return {
+ key: a.key,
+ vd: a.downloadableId,
+ R: a.bitrate,
+ Bb: a.vmaf,
+ duration: a.duration,
+ YP: a.metric,
+ ky: a.cdnId
+ };
+ };
+ d = (function () {
+ var b;
+ function a(a, b, c, f, h) {
+ var d;
+ d = this;
+ this.Kh = a;
+ this.config = c;
+ this.La = f;
+ this.debug = h;
+ this.m2 = [];
+ this.yp = [];
+ this.dma = [];
+ this.FB = {};
+ this.DIa = !1;
+ this.hN = {};
+ this.Nia = 0;
+ this.log = b.xb("PlayTimeTracker");
+ this.startTime = this.Kh.bb.value;
+ this.M0 = this.config().Mbb;
+ this.JS();
+ this.FB.abrdel = 0;
+ this.M0.forEach(function (a) {
+ a = "abrdel" + a;
+ d.hN[a] = 0;
+ d.FB[a] = 0;
+ });
+ }
+ a.prototype.aP = function () {
+ var a;
+ this.UD(this.Kh.bb.value);
+ a = 0;
+ this.yp.forEach(function (b) {
+ a += (b.endTime - b.startTime) / b.C2;
+ });
+ return Math.floor(a);
+ };
+ a.prototype.rMa = function () {
+ var a;
+ this.UD(this.Kh.bb.value);
+ a = 0;
+ this.yp.forEach(function (b) {
+ a += b.endTime - b.startTime;
+ });
+ this.debug.assert(a === Math.floor(a), "Value of totalContentPlayTime is not an integer.");
+ return Math.floor(a);
+ };
+ a.prototype.vpb = function () {
+ this.UD(this.Kh.bb.value);
+ return {
+ audio: this.PO(this.m2, this.aLa),
+ video: this.PO(this.yp, this.aLa)
+ };
+ };
+ a.prototype.Frb = function () {
+ var a;
+ a = {
+ total: this.aP(),
+ totalContentTime: this.rMa(),
+ audio: this.PO(this.m2, this.VZ),
+ video: this.PO(this.yp, this.VZ),
+ timedtext: this.PO(this.dma, this.VZ)
+ };
+ this.debug.assert(!(!a.audio || !a.video));
+ return a;
+ };
+ a.prototype.BKa = function () {
+ var a,
+ b;
+ this.UD(this.Kh.bb.value);
+ a = this.tga(this.yp, this.Ipb);
+ try {
+ b = this.CKa(a);
+ } catch (H) {
+ return (this.log.warn("Failed to calc average bitrate."), null);
+ }
+ this.FB.abrdel = Math.round(b);
+ return this.FB.abrdel;
+ };
+ a.prototype.Apb = function () {
+ var a,
+ b;
+ this.UD(this.Kh.bb.value);
+ a = this.tga(this.yp, this.Xsb);
+ try {
+ b = this.CKa(a);
+ } catch (H) {
+ return (this.log.warn("Failed to calc average vmaf."), null);
+ }
+ return Math.round(b);
+ };
+ a.prototype.zpb = function () {
+ var a,
+ b;
+ a = this;
+ if (!this.DIa) {
+ b = this.aP();
+ this.M0.forEach(function (c) {
+ var f,
+ h,
+ d;
+ if (0 === a.hN["abrdel" + c] && b > c * u.Bj) {
+ f = 0;
+ h = 0;
+ d = 0;
+ a.yp.some(function (a) {
+ f += a.stream.R * (a.endTime - a.startTime);
+ h += a.endTime - a.startTime;
+ d = a.stream.R;
+ if (h > c * u.Bj)
+ return !0;
+ });
+ f && (a.hN["abrdel" + c] = Math.round((f - d * (h - c * u.Bj)) / (c * u.Bj)));
+ }
+ });
+ 0 !== this.hN["abrdel" + this.M0[this.M0.length - 1]] && (this.DIa = !0);
+ g.Ed(this.hN, function (b, c) {
+ a.FB[b] = 0 === c ? a.FB.abrdel : c;
+ });
+ }
+ return this.FB;
+ };
+ a.prototype.icb = function (a) {
+ this.Nia += a;
+ };
+ a.prototype.Ltb = function () {
+ return !!(this.yp[0] && this.yp[0].stream && this.La.de(this.yp[0].stream.Bb));
+ };
+ a.prototype.JS = function () {
+ var a;
+ a = this;
+ this.Kh.tg.addListener(function (b) {
+ a.NG = a.vGa(a.NG, a.m2, b.newValue);
+ });
+ this.Kh.wf.addListener(function (b) {
+ a.PG = a.vGa(a.PG, a.yp, b.newValue);
+ });
+ this.Kh.playbackRate.addListener(function (b) {
+ a.UD(a.Kh.bb.value, b.oldValue);
+ });
+ this.Kh.Lj.addListener(this.bBb.bind(this));
+ };
+ a.prototype.BAb = function (a, b) {
+ this.UD(a);
+ this.startTime = b;
+ this.PG = this.NG = void 0;
+ this.OG && (this.OG.startTime = this.startTime);
+ };
+ a.prototype.bBb = function (a) {
+ this.QQ(this.OG, this.dma, this.Kh.bb.value);
+ this.OG = a.newValue ? {
+ track: a.newValue,
+ startTime: this.Kh.bb.value,
+ endTime: p.au
+ }
+ : void 0;
+ };
+ a.prototype.UD = function (a, b) {
+ b = void 0 === b ? this.Kh.playbackRate.value : b;
+ a && this.NG && this.PG && (a = Math.min(a, this.NG.endTime, this.PG.endTime), this.QQ(this.NG, this.m2, a, b), this.NG.startTime = a, this.QQ(this.PG, this.yp, a, b), this.PG.startTime = a, this.OG && (this.QQ(this.OG, this.dma, a, b), this.OG.startTime = a), this.startTime = a);
+ };
+ a.prototype.vGa = function (a, b, c) {
+ a && this.QQ(a, b, Math.min(a.endTime, this.Kh.bb.value));
+ if (c && c.stream)
+ return (a = c.Yo, b = c.stream, {
+ tc: c.tc,
+ track: b.track,
+ stream: b,
+ startTime: Math.max(a.startTime, this.startTime),
+ endTime: a.endTime
+ });
+ };
+ a.prototype.QQ = function (a, b, c, f) {
+ f = void 0 === f ? this.Kh.playbackRate.value : f;
+ a && c && c >= a.startTime && (a = {
+ tc: a.tc,
+ track: a.track,
+ stream: a.stream,
+ startTime: a.startTime,
+ endTime: c,
+ C2: f
+ }, (c = b[b.length - 1]) && c.track === a.track && c.stream === a.stream && c.tc === a.tc && c.endTime === a.startTime && c.C2 === a.C2 ? c.endTime = a.endTime : b.push(a));
+ };
+ a.prototype.tga = function (a, b) {
+ var c,
+ f;
+ c = this;
+ f = {};
+ return a.reduce(function (a, h) {
+ var d,
+ m,
+ k;
+ d = b.bind(c, h)();
+ m = d.key;
+ h = h.endTime - h.startTime;
+ k = f[m];
+ k ? k.duration += h : (delete d.key, k = d, k.duration = h, a.push(k), f[m] = k);
+ return a;
+ }, []);
+ };
+ a.prototype.PO = function (a, b) {
+ return this.tga(a, b).map(function (a) {
+ return new c().encode(a);
+ });
+ };
+ a.prototype.VZ = function (a) {
+ var b,
+ c,
+ f;
+ f = a.stream;
+ f ? (a = f.vd, b = f.R, c = f.Bb) : a = a.track.vd;
+ return {
+ key: a + "$" + (b || 0),
+ vd: a,
+ R: b,
+ Bb: c
+ };
+ };
+ a.prototype.aLa = function (a) {
+ var b;
+ b = this.VZ(a);
+ a = a.tc.id;
+ return Object.assign({}, b, {
+ key: b.key + "$" + a,
+ ky: a
+ });
+ };
+ a.prototype.Ipb = function (a) {
+ a = (a = a.stream) ? a.R : 0;
+ return {
+ key: a,
+ YP: a
+ };
+ };
+ a.prototype.Xsb = function (a) {
+ a = (a = a.stream) ? a.Bb : 0;
+ return {
+ key: a,
+ YP: a
+ };
+ };
+ a.prototype.CKa = function (a) {
+ var b,
+ c,
+ f;
+ b = this;
+ c = 0;
+ a.forEach(function (a) {
+ if (b.La.de(a.duration) && b.La.de(a.YP))
+ c += a.duration;
+ else
+ throw Error("Invalid arguments: missing duration and/or metric in segment.");
+ });
+ if (!c)
+ return 0;
+ f = 0;
+ a.forEach(function (a) {
+ f += a.YP * a.duration / c;
+ });
+ return f;
+ };
+ b = a;
+ return b = k.__decorate([l.N(), k.__param(1, l.l(r.Jb)), k.__param(2, l.l(h.fd)), k.__param(3, l.l(m.Zd)), k.__param(4, l.l(f.Dr))], b);
+ })();
+ b.eya = d;
+ }, function (d, b, a) {
+ var k,
+ l,
+ g,
+ h,
+ p,
+ m,
+ f,
+ u,
+ w,
+ A,
+ n;
+ function c(a) {
+ this.j = a;
+ this.gpa = !1;
+ this.log = h.Gg(this.j, "MediaAppendManager");
+ this.ub = this.j.ub;
+ this.la = this.ub.la;
+ this.FS = this.cN = !1;
+ this.audio = {
+ type: g.Qg.audio,
+ VG: [],
+ Nl: [],
+ QI: !1
+ };
+ this.video = {
+ type: g.Qg.video,
+ VG: [],
+ Nl: [],
+ QI: !1
+ };
+ a = {};
+ this.iS = (a[k.Hc.Yi.VIDEO] = this.video, a[k.Hc.Yi.AUDIO] = this.audio, a);
+ this.closed = !1;
+ this.az = l.config.az;
+ this.l1 = l.config.l1;
+ this.iD = l.gHa(!!this.j.Ta.$j).iD;
+ this.FFa = !0;
+ m.Ra(this.az > this.l1, "bad config");
+ m.Ra(this.az > this.iD, "bad config");
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.owa = void 0;
+ k = a(57);
+ l = a(12);
+ g = a(75);
+ h = a(6);
+ p = a(2);
+ m = a(17);
+ f = a(23);
+ u = a(13);
+ w = a(171);
+ A = a(3);
+ n = a(63);
+ c.prototype.IAb = function () {
+ this.audio.Pi && !this.audio.Pi.Eh() && this.audio.Pi.XEa(new Uint8Array([0, 0, 0, 8, 102, 114, 101, 101]));
+ };
+ c.prototype.aJb = function () {
+ this.audio.zoa = !0;
+ this.video.zoa = !0;
+ };
+ c.prototype.hJb = function (a) {
+ a === k.Hc.Yi.AUDIO ? this.cN = !0 : a === k.Hc.Yi.VIDEO && (this.FS = !0);
+ };
+ c.prototype.Eh = function () {
+ var a,
+ b;
+ return !(null === (a = this.audio.Pi) || void 0 === a || !a.Eh()) || !(null === (b = this.video.Pi) || void 0 === b || !b.Eh());
+ };
+ c.prototype.x3 = function (a) {
+ var b,
+ c;
+ null === (b = this.audio.Pi) || void 0 === b ? void 0 : b.x3(a);
+ null === (c = this.video.Pi) || void 0 === c ? void 0 : c.x3(a);
+ };
+ c.prototype.ddb = function (a) {
+ var b;
+ a.L === k.Hc.Yi.AUDIO ? this.cN = !1 : a.L === k.Hc.Yi.VIDEO && (this.FS = !1);
+ b = this.iS[a.L];
+ b ? b.Nl.push(a) : m.Ra(!1);
+ };
+ c.prototype.bdb = function (a, b, c) {
+ b = {
+ L: a.type,
+ Qy: !1,
+ response: b,
+ Yj: function () {
+ return "header";
+ },
+ get kc() {
+ return !this.Qy;
+ },
+ profile: c.profile
+ };
+ (a = this.iS[a.type]) ? a.Nl.push(b) : m.Ra(!1);
+ };
+ c.prototype.fJb = function (a) {
+ var b;
+ b = this.iS[a.type];
+ if (b)
+ try {
+ b.Pi = a;
+ } catch (H) {
+ this.sd(p.J.s8, {
+ ja: w.WZ(a.type),
+ ab: f.Fd(H)
+ });
+ }
+ };
+ c.prototype.close = function () {
+ this.closed = !0;
+ };
+ c.prototype.sd = function (a, b, c) {
+ this.closed || this.j.sd(a, b, c);
+ };
+ c.prototype.vea = function (a) {
+ return this.BIa(this.audio, a, this.oY()) && this.BIa(this.video, a, this.oY());
+ };
+ c.prototype.oY = function () {
+ return this.j.Sb.value === u.lb.dg ? this.iD : this.l1;
+ };
+ c.prototype.XLb = function () {
+ var a,
+ b;
+ a = this.video.Nl.filter(function (a) {
+ return !a.kc;
+ }).reduce(function (a, b) {
+ return a + b.sv;
+ }, 0);
+ b = this.audio.Nl.filter(function (a) {
+ return !a.kc;
+ }).reduce(function (a, b) {
+ return a + b.sv;
+ }, 0);
+ return Math.min(a, b);
+ };
+ c.prototype.BIa = function (a, b, c) {
+ var f;
+ f = a.wea;
+ f = f && f.Gka;
+ return !a.Pi || 0 === a.Nl.length && (a.type === g.Qg.audio && this.cN || a.type === g.Qg.video && this.FS) ? !0 : f && f.ut - b >= c || !1;
+ };
+ c.prototype.Npa = function (a) {
+ var b,
+ c;
+ this.gpa || (this.hYa(this.audio, a), this.hYa(this.video, a));
+ !(this.closed || !(0 === this.audio.Nl.length && this.cN || 0 === this.video.Nl.length && this.FS) || (null === (b = this.audio.Pi) || void 0 === b ? 0 : b.Eh()) || (null === (c = this.video.Pi) || void 0 === c ? 0 : c.Eh()) || this.kfa) && this.la.readyState > n.sk.kua.HAVE_NOTHING && (this.kfa = !0, this.ub.endOfStream());
+ };
+ c.prototype.hYa = function (a, b) {
+ var c,
+ f,
+ h;
+ if (!this.closed && a.Pi) {
+ c = a.Pi;
+ f = a.VG;
+ !c.Eh() && 0 < f.length && (a.wea = f[f.length - 1]);
+ if (a.zoa) {
+ if (c.Eh())
+ return;
+ a.zoa = !1;
+ h = this.ub.JLa().HQ(A.ll);
+ 0 < h && c.remove(0, h);
+ }
+ for (h = a.Nl[0]; h && h.response && (h.kc || h.yw - b <= this.az); ) {
+ if ((this.kfa = !1, this.IMb(h)))
+ (a.Nl.shift(), h = a.Nl[0]);
+ else
+ break;
+ }
+ !c.Eh() && 0 < f.length && (a.wea = f[f.length - 1]);
+ }
+ };
+ c.prototype.IMb = function (a) {
+ var b,
+ c,
+ f;
+ m.Ra(a && a.response);
+ b = a.response;
+ c = a.L;
+ f = this.iS[c];
+ if (!this.closed && f.Pi && !f.Pi.Eh()) {
+ try {
+ a.kc && a.profile && f.Pi.Rfb(a.profile);
+ this.log.trace("Feeding media segment to decoder", {
+ Bytes: b.byteLength
+ });
+ f.Pi.XEa(b, a);
+ a.kc || f.VG.push(this.njb(a));
+ l.config.Glb && !a.kc && a.DGa();
+ } catch (T) {
+ "QuotaExceededError" != T.name ? (this.log.error("Exception while appending media", a, T), this.sd(p.J.M5a, w.WZ(c))) : (this.j.qY = this.j.qY ? this.j.qY + 1 : 1, this.FFa = !1, f.QI = !0);
+ return;
+ }
+ return !0;
+ }
+ };
+ c.prototype.ejb = function (a) {
+ var b;
+ b = this.j.ztb(a.Ob);
+ b || (this.log.error("Could not find CDN", {
+ cdnId: a.Ob
+ }), b = {
+ id: a.Ob,
+ Kja: a.location
+ });
+ return b;
+ };
+ c.prototype.Vjb = function (a) {
+ var b,
+ c;
+ c = a.wa;
+ a.L === k.Hc.Yi.AUDIO ? b = this.j.FMa(c) : a.L === k.Hc.Yi.VIDEO && (b = this.j.OMa(c));
+ b || this.log.error("Could not find stream", {
+ stream: c
+ });
+ return b;
+ };
+ c.prototype.njb = function (a) {
+ var b;
+ b = this.Vjb(a);
+ return {
+ Gka: a,
+ stream: b,
+ Yo: {
+ startTime: Math.floor(a.yw),
+ endTime: Math.floor(a.ut)
+ },
+ tc: this.ejb(a)
+ };
+ };
+ c.prototype.fda = function (a) {
+ this.BGa(a, k.Hc.Yi.AUDIO);
+ this.BGa(a, k.Hc.Yi.VIDEO);
+ };
+ c.prototype.BGa = function (a, b) {
+ var c,
+ h,
+ d,
+ p,
+ u,
+ g,
+ r,
+ w,
+ A;
+ c = this;
+ h = a;
+ this.FFa && (h -= l.config.gR);
+ d = this.iS[b];
+ p = d.VG;
+ r = !1;
+ p.some(function (f, d) {
+ var p;
+ p = f.Gka;
+ if (a < p.yw)
+ return (m.Ra(!1, "decoder content does not contain media time"), !0);
+ h >= p.ut && (u = d);
+ if (a < p.ut)
+ return (g = d, d = b === k.Hc.Yi.AUDIO ? c.j.tg : c.j.wf, f !== d.value && (d.set(f), r = !0), !0);
+ });
+ if ((d.QI || r) && void 0 !== u && !this.kfa) {
+ if (u + 1 === g) {
+ if (0 === u)
+ return;
+ u--;
+ }
+ w = p[u].Gka.ut - 1;
+ if (0 < w) {
+ A = d.Pi;
+ A && !A.Eh() ? (A.remove(0, w / f.Bj), d.QI = !1, p.splice(0, u + 1)) : d.QI = !0;
+ }
+ }
+ };
+ c.prototype.HUa = function () {
+ [this.audio, this.video].forEach(function (a) {
+ a.VG = [];
+ a.wea = void 0;
+ a.Nl = [];
+ });
+ this.FS = this.cN = !1;
+ this.j.fireEvent(u.V.$0);
+ };
+ c.prototype.Jha = function () {
+ return [this.audio, this.video].filter(function (a) {
+ return a.Pi;
+ });
+ };
+ c.prototype.Kpb = function () {
+ var a,
+ b;
+ if (this.Eh())
+ m.Ra(!1, "should not be busy while checking buffer ranges");
+ else {
+ a = this.Jha().map(function (a) {
+ var b,
+ c,
+ f,
+ h,
+ d;
+ h = a.Nl.filter(function (a) {
+ return a.Qy;
+ });
+ d = a.Pi.buffered();
+ a = d.length ? Math.ceil(1E3 * d.start(0)) : void 0;
+ d = d.length ? Math.floor(1E3 * d.end(d.length - 1)) : void 0;
+ a = null !== a && void 0 !== a ? a : null === (b = h[0]) || void 0 === b ? void 0 : b.yw;
+ b = null !== (f = null === (c = h[h.length - 1]) || void 0 === c ? void 0 : c.ut) && void 0 !== f ? f : d;
+ if (void 0 !== a && void 0 !== b)
+ return {
+ start: a,
+ end: b
+ };
+ });
+ if (a.every(function (a) {
+ return a;
+ })) {
+ b = Math.max.apply(Math, [].concat(ca(a.map(function (a) {
+ return a.start;
+ }))));
+ a = Math.min.apply(Math, [].concat(ca(a.map(function (a) {
+ return a.end;
+ }))));
+ if (a > b)
+ return {
+ start: A.Gb(b),
+ end: A.Gb(a)
+ };
+ }
+ }
+ };
+ c.prototype.skip = function (a) {
+ m.Ra(!this.Eh(), "should not be busy while skipping");
+ this.Jha().forEach(function (a) {
+ a.QI = !0;
+ });
+ this.fda(a);
+ this.Jha().forEach(function (b) {
+ 0 < b.VG.length || (b.Nl = b.Nl.filter(function (b) {
+ return b.kc || b.ut > a ? !0 : !1;
+ }));
+ });
+ };
+ b.owa = c;
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.yTa = void 0;
+ b.yTa = function (a) {
+ var b,
+ d;
+ b = !1;
+ d = !1;
+ return function () {
+ if (b)
+ d = !0;
+ else
+ for (d = !0; d; ) {
+ d = !1;
+ b = !0;
+ a();
+ b = !1;
+ }
+ };
+ };
+ }, function (d, b, a) {
+ var k,
+ l,
+ g,
+ h,
+ p,
+ m;
+ function c(a) {
+ var b,
+ c;
+ b = this;
+ this.j = a;
+ this.jBb = function () {
+ var a;
+ g.Te.removeListener(g.t_, b.NRa);
+ a = b.jp.Zn();
+ a && a.parentNode && a.parentNode.removeChild(a);
+ };
+ this.Hla = function (a) {
+ b.jp.LIb(a.newValue);
+ };
+ this.IBb = function (a) {
+ b.jp.RIb(a.newValue ? a.newValue.n0 : void 0);
+ };
+ this.NRa = function () {
+ b.jp.gJ();
+ };
+ this.jp = new p.vAa(h.config.upa, a.Bc.value ? a.Bc.value.n0 : void 0);
+ c = a.eK;
+ l.Ra(.1 < c.width / c.height);
+ this.jp.BIb(c.width / c.height);
+ a.Rf.appendChild(this.jp.Zn());
+ a.Kt.addListener(this.Hla);
+ a.Bc.addListener(this.IBb);
+ a.addEventListener(m.V.If, this.jBb, k.DA);
+ g.Te.addListener(g.t_, this.NRa);
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.xAa = void 0;
+ k = a(10);
+ l = a(17);
+ g = a(55);
+ h = a(12);
+ p = a(302);
+ m = a(13);
+ c.prototype.woa = function (a) {
+ this.jp.woa(a);
+ };
+ c.prototype.Hha = function () {
+ return this.jp.Hha();
+ };
+ c.prototype.uoa = function (a) {
+ this.jp.uoa(a);
+ };
+ c.prototype.Fha = function () {
+ return this.jp.Fha();
+ };
+ c.prototype.voa = function (a) {
+ this.jp.voa(a);
+ };
+ c.prototype.Gha = function () {
+ return this.jp.Gha();
+ };
+ b.xAa = c;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ g,
+ h,
+ p,
+ m,
+ f,
+ u;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.uAa = void 0;
+ d = a(56);
+ c = a(12);
+ k = a(55);
+ l = a(6);
+ g = a(23);
+ h = a(241);
+ p = a(133);
+ m = a(67);
+ f = a(104);
+ u = a(13);
+ d.Z8(d.V8, function (a) {
+ var h;
+ function b(b) {
+ var c;
+ if (b.ctrlKey && b.altKey && b.shiftKey && b.keyCode == f.Hr.V6a) {
+ c = g.createElement("INPUT", void 0, void 0, {
+ type: "file"
+ });
+ c.addEventListener("change", function () {
+ var b,
+ f,
+ d;
+ b = c.files[0];
+ if (b) {
+ f = b.name;
+ h.info("Loading file", {
+ FileName: f
+ });
+ d = new FileReader();
+ d.readAsText(b);
+ d.addEventListener("load", function () {
+ return a.ro.Kba("nourl", f, {
+ content: d.result
+ });
+ });
+ }
+ });
+ c.click();
+ }
+ }
+ h = l.Gg(a, "TimedTextCustomTrack");
+ c.config.jea && (h.info("Loading url", {
+ Url: c.config.jea
+ }), a.ro.Kba(c.config.jea, "custom"));
+ k.Te.addListener(k.Hy, b);
+ a.addEventListener(u.V.If, function () {
+ k.Te.removeListener(k.Hy, b);
+ });
+ });
+ a = (function () {
+ function a(a, b, c, f, d) {
+ var m,
+ k;
+ a = h.QA.call(this, b, a, a, "1", {
+ 0: c
+ }, [{
+ id: 0,
+ name: "custom"
+ }
+ ], "xx", f || a, p.sn.YE, "primary", null !== (m = null === d || void 0 === d ? void 0 : d.profile) && void 0 !== m ? m : "custom", null !== (k = null === d || void 0 === d ? void 0 : d.midx) && void 0 !== k ? k : {}, !1, !1, null === d || void 0 === d ? void 0 : d.isLanguageLeftToRight) || this;
+ a.j = b;
+ a.url = c;
+ a.options = d;
+ a.ur = null === d || void 0 === d ? void 0 : d.useRangeHeader;
+ return a;
+ }
+ N(a, h.QA);
+ a.ljb = function (b, c, f, h) {
+ var d;
+ d = "custom" + a.Wub++;
+ return new a(d, b, c, f, h);
+ };
+ a.prototype.GIa = function () {
+ var a;
+ a = this;
+ return new Promise(function (b, c) {
+ var f,
+ h;
+ if (null === (f = a.options) || void 0 === f ? 0 : f.content)
+ b(a.options.content);
+ else if (a.url) {
+ h = {
+ responseType: m.kia,
+ url: a.url,
+ track: a,
+ tc: null,
+ $B: "tt-" + a.Al
+ };
+ a.j.N_.download(h, function (f) {
+ f.U ? b(f.content) : (f.reason = "downloadfailed", f.url = h.url, f.track = a, c(f));
+ });
+ }
+ });
+ };
+ a.Wub = 0;
+ return a;
+ })();
+ b.uAa = a;
+ }, function (d, b, a) {
+ var l;
+ function c(a, b, c) {
+ this.start = a;
+ this.track = b;
+ this.NJ = Array.isArray(c) ? c : [];
+ }
+ function k(a, b) {
+ this.log = a;
+ this.Uz = b;
+ this.Oma = [];
+ this.orphans = [];
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.hAa = void 0;
+ l = a(17);
+ k.prototype.Ubb = function (a, b) {
+ this.VQa(a, b, "activating");
+ };
+ k.prototype.pkb = function (a) {
+ this.mfa(a, "de-activating");
+ };
+ k.prototype.VQa = function (a, b, d) {
+ var h;
+ this.Qj && this.mfa(a, "close current for new");
+ h = [];
+ this.orphans.length && (h.push.apply(h, [].concat(ca(this.orphans))), this.orphans = []);
+ this.Qj = new c(a, b, h);
+ this.Uz && this.log.trace("new range: " + d, this.Qj);
+ };
+ k.prototype.mfa = function (a, b) {
+ this.Qj && (this.Qj.end = a, this.Oma.push(this.Qj), this.Uz && this.log.trace("end range: " + b, this.Qj || ({})), this.Qj = void 0);
+ };
+ k.prototype.KYa = function (a) {
+ this.Qj ? this.Qj.NJ.push(a) : this.orphans.push(a);
+ };
+ k.prototype.Bha = function (a) {
+ var b,
+ d;
+ b = this.Oma.slice(0);
+ if (this.Qj && "undefined" !== typeof a) {
+ d = new c(this.Qj.start, this.Qj.track, this.Qj.NJ);
+ d.end = a;
+ b.push(d);
+ }
+ a = b.reduce(function (a, b) {
+ var c,
+ f,
+ h,
+ d;
+ if (!b.track)
+ return a;
+ f = b.track.vd;
+ h = b.track.Ey(b.start, b.end);
+ if (!h)
+ return a;
+ d = new Set(b.NJ);
+ a[f] ? (b = a[f], b.expected += h.length, b.missed += h.length - d.size) : a[f] = {
+ dlid: f,
+ bcp47: b.track.Al,
+ profile: b.track.profile,
+ expected: h.length,
+ missed: h.length - d.size,
+ startPts: null !== (c = b.track.qsb()) && void 0 !== c ? c : 0
+ };
+ return a;
+ }, {});
+ a = Object.values(a);
+ this.Uz && this.log.trace("subtitleqoe:", JSON.stringify(a, null, "\t"));
+ return a;
+ };
+ k.prototype.esb = function (a) {
+ var b,
+ d,
+ k,
+ f;
+ b = this.Oma.slice(0);
+ d = 0;
+ k = 0;
+ this.Qj && "undefined" != typeof a && (f = new c(this.Qj.start, this.Qj.track, this.Qj.NJ), f.end = a, b.push(f));
+ b.forEach(function (a) {
+ var b,
+ c;
+ if (a.track) {
+ if (a.end < a.start) {
+ l.Ra("negative range", a);
+ a.Cz = 0;
+ return;
+ }
+ b = new Set(a.NJ);
+ c = a.track.Ey(a.start, a.end);
+ a.xq = c ? c.map(function (a) {
+ return a.id;
+ }) : [];
+ a.Cz = c ? 0 === c.length ? 100 : 100 * b.size / c.length : 0;
+ } else
+ a.Cz = 100;
+ b = a.end - a.start;
+ d += b;
+ k += a.Cz * b;
+ });
+ f = d ? Math.round(k / d) : 100;
+ this.log.trace("qoe score " + f + ", at pts: " + a);
+ this.Uz && (a = b.map(function (a) {
+ return {
+ start: a.start,
+ "end ": a.end,
+ duration: a.end - a.start,
+ score: Math.round(a.Cz),
+ lang: a.track ? a.track.Al : "none",
+ "actual ": a.NJ.join(" "),
+ expected: (a.xq || []).join(" ")
+ };
+ }), this.log.trace("score for each range: ", JSON.stringify(a, function (a, b) {
+ return b;
+ }, " ")));
+ return f;
+ };
+ b.hAa = k;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ g,
+ h,
+ p,
+ m,
+ f,
+ u,
+ w,
+ A,
+ n;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.wAa = void 0;
+ c = a(241);
+ k = a(306);
+ l = a(66);
+ g = a(12);
+ h = a(46);
+ p = a(6);
+ m = a(632);
+ f = a(2);
+ u = a(58);
+ w = a(15);
+ A = a(13);
+ n = a(631);
+ d = (function () {
+ var b;
+ function a(b) {
+ var h;
+ h = this;
+ this.j = b;
+ this.cpa = this.OQa = 0;
+ this.If = this.Pm = !1;
+ this.X2 = 0;
+ this.UJ = function () {
+ var a,
+ b;
+ h.W2();
+ h.YN && (h.log.info("Deactivating", h.YN), h.Jz.pkb(h.Sd()));
+ h.j.Lj.set(null);
+ h.cE.NVa(h.entries = void 0);
+ h.EGa();
+ a = h.j.Bc.value;
+ a && a.o0() && !a.j0() && (a = null);
+ if (a && h.j.Sb.value !== A.lb.dg) {
+ b = h.Sd();
+ h.Jz.Ubb(b, a);
+ }
+ a ? (h.log.info("Activating", a), h.j.el.set(a.Wc() === c.QA.C9.LOADED ? A.ye.od : A.ye.Xd), h.Pm || h.j.kd("tt_start"), a.getEntries().then(h.mG)["catch"](h.mG)) : h.j.el.set(A.ye.od);
+ h.YN = a;
+ h.YJ();
+ };
+ this.kpa = function () {
+ h.Pm && (h.cE.start(), h.j.Sb.value !== A.lb.Sc && h.cE.stop());
+ };
+ this.YJ = function () {
+ var b;
+ h.j.state.value === A.ob.od && h.j.Sb.value !== A.lb.dg && (h.entries ? b = h.cE.lpb() : h.j.Bc.value && (b = a.qKb[h.j.Bc.value.Wc()]));
+ b && w.dc(b.startTime) && (h.OQa++, h.cpa += h.cE.KLa() - b.startTime, h.EFa = Math.ceil(h.cpa / (h.OQa + 0)));
+ h.j.Kt.set(b);
+ };
+ this.Sd = function () {
+ var a;
+ a = h.j.iha();
+ h.YN && h.YN.Kq && (a += h.YN.Kq);
+ return a;
+ };
+ this.FBb = function (b) {
+ h.fireEvent(a.SJb, b);
+ b && b.id && h.Jz.KYa(b.id);
+ h.log.trace("showsubtitle", h.gMa(b));
+ };
+ this.zBb = function (b) {
+ h.fireEvent(a.qGb, b);
+ h.log.trace("removesubtitle", h.gMa(b));
+ };
+ this.Rk = function () {
+ h.log.warn("imagesubs buffer underflow", h.j.Bc.value.fh);
+ h.j.el.set(A.ye.Xd);
+ };
+ this.eBb = function () {
+ h.log.info("imagesubs buffering complete", h.j.Bc.value.fh);
+ h.j.el.set(A.ye.od);
+ };
+ this.N1 = function () {
+ h.Pm && h.pg && h.pg.sr(h.Sd());
+ };
+ this.KRa = function (a) {
+ h.pg && h.pg.PD && h.pg.PD(a.ig, a.jQ);
+ };
+ this.ORa = function (a) {
+ h.pg && h.pg.Np && h.pg.Np(a.Ha, a.ANb);
+ };
+ this.Q1 = function () {
+ h.Pm = !0;
+ u.zc(function () {
+ h.pg ? h.pg.sr(h.Sd()) : h.kpa();
+ h.YJ();
+ });
+ };
+ this.rQ = function () {
+ h.entries = void 0;
+ h.EGa();
+ h.cE.stop();
+ h.YJ();
+ h.If = !0;
+ h.W2();
+ };
+ this.Hla = function (a) {
+ (a = a.newValue) && w.dc(a.id) && h.Jz.KYa(a.id);
+ };
+ this.wBb = function (a) {
+ h.tNb(a.newValue, a.oldValue);
+ h.kpa();
+ };
+ this.mG = function (a) {
+ var b;
+ if (!h.If) {
+ b = a.track;
+ if (b === h.j.Bc.value)
+ try {
+ b.co ? h.Sbb(a) : h.Tbb(a);
+ } catch (aa) {
+ h.log.error("Error activating track:", aa, b);
+ return;
+ }
+ h.Pm || h.j.kd(a.U ? "tt_comp" : "tt_err");
+ a.U ? (g.config.$Ua ? setTimeout(function () {
+ h.j.el.set(A.ye.od);
+ }, g.config.$Ua) : h.j.el.set(A.ye.od), b.co || h.YJ()) : a.hs ? h.log.warn("aborted timed text track loading") : g.config.Qnb ? h.j.sd(f.J.C3a, {
+ ab: a.track ? a.track.fh : {}
+ }) : (h.log.error("ignore subtitle initialization error", a), h.j.el.set(A.ye.od));
+ }
+ };
+ this.Db = new l.Xi();
+ this.Jz = new m.hAa(p.Gg(b, "SubtitleTracker"), g.config.Qmb);
+ this.log = p.Gg(b, "TimedTextManager");
+ this.cE = new k.yAa(this.Sd, this.YJ);
+ this.j.Bc.addListener(this.UJ);
+ g.config.IDb ? (this.j.addEventListener(A.V.ko, this.Q1), this.UJ()) : (this.j.el.set(A.ye.od), this.j.addEventListener(A.V.ko, function () {
+ h.Pm = !0;
+ h.UJ();
+ }));
+ this.j.Sb.addListener(this.wBb);
+ this.j.addEventListener(A.V.ppa, this.kpa);
+ this.j.Kt.addListener(this.Hla);
+ this.j.addEventListener(A.V.If, this.rQ);
+ }
+ a.prototype.addEventListener = function (a, b, c) {
+ this.Db.addListener(a, b, c);
+ };
+ a.prototype.removeEventListener = function (a, b) {
+ this.Db.removeListener(a, b);
+ };
+ a.prototype.fireEvent = function (a, b, c) {
+ this.Db.$b(a, b, c);
+ };
+ a.prototype.Kba = function (a, b, c) {
+ var f;
+ f = n.uAa.ljb(this.j, a, b, c);
+ this.j.fl.push(f);
+ this.j.In.forEach(function (a) {
+ h.Pqa(a.fl, f);
+ });
+ this.j.Bc.set(f);
+ this.j.fireEvent(A.V.dE);
+ };
+ a.prototype.QDb = function (a) {
+ this.qna(a) ? a.getEntries().then(function () {}) : Promise.resolve();
+ };
+ a.prototype.ysb = function (a) {
+ return this.Jz.esb(a);
+ };
+ a.prototype.Bha = function (a) {
+ return this.Jz.Bha(a);
+ };
+ a.prototype.k_ = function () {
+ var a,
+ b;
+ a = this.j.gS;
+ b = g.config.DXa.characterSize;
+ b = {
+ size: g.config.vpa.characterSize || b
+ };
+ a && (b.visibility = a.Hha(), b.mN = a.Fha(), b.up = a.Gha());
+ return b;
+ };
+ a.prototype.jJb = function (a) {
+ g.config.vpa.characterSize = a;
+ a = this.j.Bc.value;
+ this.qna(a) && !a.co && a.getEntries().then(this.mG)["catch"](this.mG);
+ };
+ a.prototype.tNb = function (a, b) {
+ var c;
+ a === A.lb.Sc || a == A.lb.$i ? b !== A.lb.Sc && b !== A.lb.$i && ((b = this.j.Bc.value) && !this.qna(b) || this.Jz.VQa(this.Sd(), b || void 0, "presentingstate:" + a)) : a !== A.lb.dg && a !== A.lb.Fr || this.Jz.mfa(null !== (c = this.Sd()) && void 0 !== c ? c : void 0, "presentingstate:" + a);
+ };
+ a.prototype.W2 = function () {
+ this.X2 = 0;
+ clearTimeout(this.eHb);
+ };
+ a.prototype.EGa = function () {
+ this.pg && (this.pg.stop(), this.EPa("removeListener"));
+ this.pg = void 0;
+ };
+ a.prototype.EPa = function (a) {
+ this.pg && (this.pg[a]("showsubtitle", this.FBb), this.pg[a]("removesubtitle", this.zBb), this.pg[a]("underflow", this.Rk), this.pg[a]("bufferingComplete", this.eBb), "addListener" === a ? (this.j.addEventListener(A.V.ap, this.N1), this.j.addEventListener(A.V.D1, this.KRa), this.j.addEventListener(A.V.Np, this.ORa)) : (this.j.removeEventListener(A.V.ap, this.N1), this.j.removeEventListener(A.V.D1, this.KRa), this.j.removeEventListener(A.V.Np, this.ORa)));
+ };
+ a.prototype.gMa = function (a) {
+ return {
+ currentPts: this.Sd(),
+ displayTime: a.displayTime,
+ duration: a.duration,
+ id: a.id,
+ originX: a.originX,
+ originY: a.originY,
+ sizeX: a.sizeX,
+ sizeY: a.sizeY,
+ rootContainerExtentX: a.rootContainerExtentX,
+ rootContainerExtentY: a.rootContainerExtentY
+ };
+ };
+ a.prototype.Sbb = function (a) {
+ var b,
+ c;
+ b = this;
+ c = a.track;
+ if (!c || !c.co)
+ throw Error("Not an image base subtitle");
+ a.U ? (this.W2(), this.pg = c.pg, this.EPa("addListener"), this.log.info("Activated", c), this.j.Lj.set(c), this.Pm ? u.zc(function () {
+ b.pg.sr(b.Sd());
+ }) : this.pg.pause()) : this.SUa(c, a);
+ };
+ a.prototype.Tbb = function (a) {
+ var b,
+ c;
+ b = a.track;
+ c = a.entries;
+ if (!b || b.co)
+ throw Error("Not a valid text track");
+ c ? (this.W2(), this.cE.NVa(this.entries = c), this.log.info("Activated", b), this.j.Lj.set(b)) : this.SUa(b, f.Vp(a));
+ this.YJ();
+ };
+ a.prototype.SUa = function (a, b) {
+ var c,
+ f;
+ c = this;
+ f = this.X2 < g.config.Dyb;
+ f && (this.eHb = setTimeout(function () {
+ c.X2++;
+ a.getEntries().then(c.mG)["catch"](c.mG);
+ }, g.config.OLb));
+ this.log.error("Failed to activate" + ((null === a || void 0 === a ? 0 : a.co) ? " img subtitle" : ""), {
+ retry: f
+ }, b, a);
+ };
+ a.prototype.qna = function (a) {
+ return !(!a || a.o0() && !a.j0());
+ };
+ b = {};
+ a.qKb = (b[c.QA.C9.LOADING] = {
+ wZb: !0
+ }, b[c.QA.C9.aL] = {
+ yq: !0
+ }, b);
+ a.SJb = "showsubtitle";
+ a.qGb = "removesubtitle";
+ return a;
+ })();
+ b.wAa = d;
+ }, function (d, b, a) {
+ var p,
+ m,
+ f,
+ u,
+ w,
+ A,
+ n,
+ q,
+ M,
+ H,
+ G,
+ T,
+ S,
+ aa,
+ Z,
+ B,
+ V,
+ fa,
+ ia,
+ Y,
+ z,
+ X,
+ O,
+ na,
+ ha,
+ P;
+ function c() {
+ this.g4 = [];
+ this.jMb = 50;
+ }
+ function k(a) {
+ var b;
+ b = this;
+ this.j = a;
+ this.uZa = Promise.resolve();
+ this.c6 = t.WebKitMediaKeys || HTMLVideoElement.prototype.webkitGenerateKeyRequest ? "webkit" : HTMLVideoElement.prototype.msSetMediaKeys ? "ms" : "";
+ this.Tx = [];
+ this.gq = new w.Xi();
+ this.OBa = this.E$ = 0;
+ this.FV = [];
+ this.Bg = q.Gg(this.j, "MediaElementASE");
+ this.EDa = aa.ff;
+ this.aaa = !1;
+ this.Ot = new c();
+ this.km = {};
+ this.nCa = {};
+ this.rC = this.HV(function () {
+ var a;
+ if (b.la) {
+ a = b.YV();
+ return a ? a.totalVideoFrames : b.la.webkitDecodedFrameCount;
+ }
+ });
+ this.qC = this.HV(function () {
+ var a;
+ if (b.la) {
+ a = b.YV();
+ return a ? a.droppedVideoFrames : b.la.webkitDroppedFrameCount;
+ }
+ });
+ this.MO = this.HV(function () {
+ var a;
+ if (b.la) {
+ a = b.YV();
+ return a && a.corruptedVideoFrames;
+ }
+ });
+ this.XZ = this.HV(function () {
+ var a;
+ if (b.la) {
+ a = b.YV();
+ return a && B.Th(a.totalFrameDelay * aa.Bj);
+ }
+ });
+ this.HCa = function (a) {
+ return b.gq.$b(ia.ri.YOa, {
+ ma: a
+ });
+ };
+ this.ak = q.ba.get(fa.l7).create(u.config.Pp, this, this.j);
+ u.config.Wy && (this.uZa = new Promise(function (a) {
+ b.EDa = a;
+ b.j.addEventListener(X.V.If, a);
+ }));
+ this.Bg.trace("Created Media Element");
+ this.addEventListener = this.gq.addListener;
+ this.removeEventListener = this.gq.removeListener;
+ this.la = l(this.j.eK);
+ this.sourceBuffers = this.Tx;
+ }
+ function l(a) {
+ var b,
+ c;
+ b = q.ba.get(Y.t$).Xrb();
+ a = a.width / a.height * b.height;
+ c = (b.width - a) / 2;
+ return u.config.oJb ? aa.createElement("VIDEO", "position:absolute;width:" + a + "px;height:" + b.height + "px;left:" + c + "px;top:0px") : aa.createElement("VIDEO", "position:absolute;width:100%;height:100%");
+ }
+ function g(a) {
+ a.preventDefault();
+ return !1;
+ }
+ function h(a, b, c) {
+ var f,
+ h,
+ d;
+ f = a.target;
+ f = f && f.error;
+ h = a.errorCode;
+ d = f && f.code;
+ aa.dc(d) || (d = h && h.code);
+ h = f && f.msExtendedCode;
+ aa.dc(h) || (h = f && f.systemCode);
+ aa.dc(h) || (h = a.systemCode);
+ a = aa.yb({}, {
+ code: d,
+ systemCode: h,
+ trace: c
+ }, {
+ lw: !0
+ });
+ b = {
+ ja: b(d),
+ ab: Z.bka(a)
+ };
+ try {
+ f && f.message && (b.VP = f.message);
+ } catch (gb) {}
+ h = aa.Ud(h);
+ V.na(h) && (b.Fe = q.Dca(h, 4));
+ return b;
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.twa = void 0;
+ p = a(57);
+ m = a(194);
+ f = a(10);
+ u = a(12);
+ w = a(66);
+ A = a(55);
+ n = a(46);
+ q = a(6);
+ M = a(2);
+ H = a(17);
+ G = a(93);
+ T = a(484);
+ S = a(22);
+ aa = a(23);
+ Z = a(192);
+ B = a(9);
+ V = a(15);
+ fa = a(307);
+ ia = a(191);
+ Y = a(330);
+ z = a(3);
+ X = a(13);
+ O = a(178);
+ na = a(63);
+ ha = !!(B.TE && HTMLVideoElement && URL && HTMLVideoElement.prototype.play);
+ P = ha && (HTMLVideoElement.prototype.webkitGenerateKeyRequest || B.SE);
+ k.prototype.NO = function (a) {
+ try {
+ this.la && (this.OBa = this.la.currentTime);
+ } catch (ja) {
+ this.Bg.error("Exception while getting VIDEO.currentTime", ja);
+ a && this.tF(M.J.K5a, ja);
+ }
+ return B.Th(this.OBa * aa.Bj);
+ };
+ k.prototype.seek = function (a) {
+ var b;
+ H.Ra(!this.Bn);
+ this.ADa();
+ b = this.NO(!0);
+ if (!u.config.Tcb && B.vA(b - a) <= this.Vna)
+ (this.Bg.trace("Seek delta too small", {
+ currentTime: b,
+ seekTime: a,
+ min: this.Vna
+ }), this.Ot.trace("smallseek", a));
+ else {
+ this.Ot.trace("seek", a);
+ try {
+ this.Bg.trace("Setting video elements currentTime", {
+ From: G.th(b),
+ To: G.th(a)
+ });
+ this.Bn = {};
+ this.la.currentTime = a / aa.Bj;
+ this.gq.$b(ia.ri.ap);
+ } catch (ya) {
+ this.Bg.error("Exception while setting VIDEO.currentTime", ya);
+ this.tF(M.J.L5a, ya);
+ }
+ }
+ };
+ k.prototype.XLa = function () {
+ return !!this.Bn;
+ };
+ k.prototype.addSourceBuffer = function (a) {
+ var b,
+ c;
+ b = aa.Ud(this.E$.toString() + this.Tx.length.toString());
+ b = {
+ sourceId: this.E$,
+ BX: b
+ };
+ try {
+ c = new m.L7(this.j, a, this.lf, b, this.Bg);
+ this.Tx.push(c);
+ a == f.NE && c.Xfa && c.Xfa.addListener(this.EDa);
+ return c;
+ } catch (za) {
+ c = aa.Fd(za);
+ this.Bg.error("Unable to add source buffer.", {
+ error: c
+ });
+ this.j.sd(M.J.s8, {
+ ja: a === p.Hc.Yi.AUDIO ? aa.I.Zva : aa.I.$va,
+ ab: c
+ });
+ }
+ };
+ k.prototype.jX = function (a) {
+ var b;
+ b = this;
+ a.forEach(function (a) {
+ return b.addSourceBuffer(a);
+ });
+ this.gq.$b(ia.ri.rWa);
+ return !0;
+ };
+ k.prototype.removeSourceBuffer = function (a) {
+ this.Tx = this.Tx.filter(function (b) {
+ return !n.XGa(a, b);
+ });
+ this.lf.removeSourceBuffer(a);
+ };
+ k.prototype.endOfStream = function () {
+ this.Ot.trace("endofstream");
+ u.config.Yca && this.lf.endOfStream();
+ };
+ k.prototype.vq = function (a) {
+ this.Tx = [];
+ a && a.A_b();
+ return !0;
+ };
+ k.prototype.zIb = function (a) {
+ this.E$ = a;
+ };
+ k.prototype.JLa = function () {
+ if (this.lf)
+ return z.cTa(this.lf.duration);
+ };
+ k.prototype.TIb = function (a) {
+ this.lf && (this.Ot.trace("duration", a.HQ(z.ll)), this.lf.duration = a.HQ(z.ll));
+ };
+ k.prototype.wlb = function () {
+ var a;
+ if (!this.aaa && this.la && this.la.readyState >= na.sk.kua.HAVE_CURRENT_DATA) {
+ a = this.la.webkitDecodedFrameCount;
+ if (void 0 === a || 0 < a || u.config.LOb)
+ this.aaa = !0;
+ }
+ return this.aaa;
+ };
+ k.prototype.open = function () {
+ var a,
+ b,
+ c;
+ a = this;
+ this.j.addEventListener(X.V.hWa, function (b) {
+ return a.W$a(b);
+ });
+ if (ha) {
+ if (this.j.Rv) {
+ if (!P) {
+ this.sF(M.J.sxa);
+ return;
+ }
+ if (B.SE && B.SE.isTypeSupported && this.ak.he)
+ try {
+ if (!B.SE.isTypeSupported(this.ak.he, "video/mp4")) {
+ this.sbb(function (b) {
+ a.sF(M.J.jL, b);
+ });
+ return;
+ }
+ } catch (za) {
+ this.tF(M.J.jL, za);
+ return;
+ }
+ }
+ try {
+ this.lf = new B.TE();
+ } catch (za) {
+ this.tF(M.J.z5a, za);
+ return;
+ }
+ try {
+ this.wl = URL.createObjectURL(this.lf);
+ } catch (za) {
+ this.tF(M.J.A5a, za);
+ return;
+ }
+ try {
+ this.ak.lcb(this.HCa);
+ this.lf.addEventListener("sourceopen", function (b) {
+ return a.cDa(b);
+ });
+ this.lf.addEventListener(this.c6 + "sourceopen", function (b) {
+ return a.cDa(b);
+ });
+ this.la.addEventListener("error", this.km.error = function (b) {
+ return a.UF(b);
+ });
+ this.la.addEventListener("seeking", this.km.seeking = function () {
+ return a.V$a();
+ });
+ this.la.addEventListener("seeked", this.km.seeked = function () {
+ return a.U$a();
+ });
+ this.la.addEventListener("timeupdate", this.km.timeupdate = function () {
+ return a.Y$a();
+ });
+ this.la.addEventListener("loadstart", this.km.loadstart = function () {
+ return a.oM();
+ });
+ this.la.addEventListener("volumechange", this.km.volumechange = function (b) {
+ return a.Z$a(b);
+ });
+ this.la.addEventListener(this.ak.cD, this.km[this.ak.cD] = function (b) {
+ return a.T$a(b);
+ });
+ b = this.j.Rf;
+ c = b.lastChild;
+ c ? b.insertBefore(this.la, c) : b.appendChild(this.la);
+ u.config.tIa && this.la.addEventListener("contextmenu", g);
+ this.la.src = this.wl;
+ A.Te.addListener(A.MH, this.nCa[A.MH] = function () {
+ return a.bDa();
+ });
+ this.bDa();
+ } catch (za) {
+ this.tF(M.J.B5a, za);
+ }
+ } else
+ this.sF(M.J.txa);
+ };
+ k.prototype.close = function () {
+ var b;
+ function a() {
+ b.wl && (b.ADa(), A.Te.removeListener(A.MH, b.nCa[A.MH]), b.m8a());
+ }
+ b = this;
+ this.Ot.trace("close");
+ this.la.removeEventListener(this.ak.cD, this.km[this.ak.cD]);
+ this.la.removeEventListener("error", this.km.error);
+ this.la.removeEventListener("seeking", this.km.seeking);
+ this.la.removeEventListener("seeked", this.km.seeked);
+ this.la.removeEventListener("timeupdate", this.km.timeupdate);
+ this.la.removeEventListener("loadstart", this.km.loadstart);
+ this.la.removeEventListener("volumechange", this.km.volumechange);
+ this.ak.fGb(this.HCa);
+ u.config.Pp ? this.ak.BSa().then(function () {
+ return a();
+ }) : a();
+ this.ak.uUa && clearTimeout(this.ak.uUa);
+ };
+ k.prototype.Dv = function () {
+ return this.Ot.Dv();
+ };
+ k.prototype.T$a = function (a) {
+ return this.ak.Ala(a);
+ };
+ k.prototype.YV = function () {
+ if (this.la)
+ return this.la.getVideoPlaybackQuality && this.la.getVideoPlaybackQuality() || this.la.videoPlaybackQuality || this.la.playbackQuality;
+ };
+ k.prototype.bbb = function () {
+ var a;
+ a = this.j.lj;
+ return (a = a && a.errorCode) && 0 <= [M.J.yU, M.J.YT].indexOf(a);
+ };
+ k.prototype.m8a = function () {
+ var a;
+ a = !1;
+ u.config.hEb && this.bbb() && (a = !0);
+ u.config.Agb && !a && (this.la.removeAttribute("src"), this.la.load && this.la.load());
+ URL.revokeObjectURL(this.wl);
+ u.config.tIa && this.la.removeEventListener("contextmenu", g);
+ !a && this.la && this.j.Rf.removeChild(this.la);
+ this.la = this.lf = void 0;
+ this.wl = "";
+ };
+ k.prototype.bDa = function () {
+ !0 === B.Ae.hidden ? this.FV.forEach(function (a) {
+ a.refresh();
+ a.hKb();
+ }) : this.FV.forEach(function (a) {
+ a.refresh();
+ a.vKb();
+ });
+ };
+ k.prototype.HV = function (a) {
+ var b;
+ b = q.ba.get(T.h8)(a);
+ this.FV.push(b);
+ return function () {
+ b.refresh();
+ return b.$pb();
+ };
+ };
+ k.prototype.tF = function (a, b) {
+ var c,
+ f;
+ c = {
+ ja: aa.I.Df,
+ ab: aa.Fd(b)
+ };
+ try {
+ (f = b.message.match(/(?:[x\W\s]|^)([0-9a-f]{8})(?:[x\W\s]|$)/i)[1].toUpperCase()) && 8 == f.length && (c.Fe = f);
+ } catch (ma) {}
+ this.j.sd(a, c);
+ };
+ k.prototype.ADa = function () {
+ this.FV.forEach(function (a) {
+ a.refresh();
+ });
+ };
+ k.prototype.d9a = function () {
+ return this.la && this.la.msGraphicsTrustStatus;
+ };
+ k.prototype.sF = function (a, b) {
+ this.j.sd(a, b, void 0);
+ };
+ k.prototype.sbb = function (a) {
+ var c,
+ d,
+ k;
+ function b(c) {
+ b = aa.ff;
+ d.Qi();
+ a(c);
+ }
+ c = this;
+ d = q.ba.get(O.AL)(500, function () {
+ b();
+ });
+ d.fC();
+ try {
+ k = this.j.Bf.value.hp.g_b.children.filter(function (a) {
+ return "pssh" == a.type && a.cmb == f.ita;
+ })[0];
+ new B.SE(this.ak.he).createSession("video/mp4", k.raw, null).addEventListener(this.c6 + "keyerror", function (a) {
+ b(h(a, M.h6, c.Dv()));
+ });
+ } catch (Ua) {
+ b();
+ }
+ };
+ k.prototype.W$a = function (a) {
+ var b,
+ h,
+ d,
+ k,
+ m,
+ p,
+ l;
+ if (this.la) {
+ a = a.CS;
+ b = this.d9a();
+ b && (a.ConstrictionActive = b.constrictionActive, a.Status = b.status);
+ try {
+ a.readyState = "" + this.la.readyState;
+ a.currentTime = "" + this.la.currentTime;
+ a.pbRate = "" + this.la.playbackRate;
+ } catch (Ba) {}
+ for (var b = this.Tx.length, c; b--; ) {
+ c = this.Tx[b];
+ h = "";
+ c.type == f.dU ? h = "audio" : c.type == f.NE && (h = "video");
+ aa.yb(a, c.NZ(), {
+ prefix: h
+ });
+ u.config.Hmb && this.j.lj && f.NE == c.type && (h = aa.AJ(c.RZ()), 3E3 > (h.data && h.data.length) && (h.data = S.rHa(h.data).join(), aa.yb(a, h, {
+ prefix: c.type
+ })));
+ }
+ this.lf && (b = this.lf.duration) && !isNaN(b) && (a.duration = b.toFixed(4));
+ if (u.config.Dxb)
+ try {
+ d = this.j.Jf;
+ k = d && d.He;
+ if (k) {
+ m = k.expiration;
+ isNaN(m) || (a.exp = m);
+ p = k.keyStatuses.entries();
+ if (p.next) {
+ l = p.next().value;
+ l && (a.keyStatus = l[1]);
+ }
+ }
+ } catch (Ba) {}
+ }
+ };
+ k.prototype.cDa = function (a) {
+ this.dbb || (this.dbb = !0, this.gq.$b(ia.ri.sWa, a));
+ };
+ k.prototype.V$a = function () {
+ this.Ot.trace("seeking");
+ this.Bg.trace("Video element event: seeking");
+ this.Bn ? this.Bn.SAb = !0 : (this.Bg.error("unexpected seeking event"), u.config.Snb && this.sF(M.J.Q5a, {
+ ab: {
+ Trace: this.Dv()
+ }
+ }));
+ };
+ k.prototype.U$a = function () {
+ this.Ot.trace("seeked");
+ this.Bg.trace("Video element event: seeked");
+ this.Bn ? (H.Ra(this.Bn.SAb), this.Bn.RAb = !0, this.ZDa()) : (this.Bg.error("unexpected seeked event"), u.config.Rnb && this.sF(M.J.P5a, {
+ ab: {
+ Trace: this.Dv()
+ }
+ }));
+ };
+ k.prototype.Y$a = function () {
+ var a;
+ this.Ot.trace("timeupdate", null === (a = this.la) || void 0 === a ? void 0 : a.currentTime);
+ this.Bn && (this.Bn.UAb = !0, this.ZDa());
+ this.gq.$b(ia.ri.ap);
+ };
+ k.prototype.oM = function () {
+ this.Bg.trace("Video element event: loadstart");
+ };
+ k.prototype.Z$a = function (a) {
+ this.Bg.trace("Video element event:", a.type);
+ try {
+ this.j.volume.set(this.la.volume);
+ this.j.muted.set(this.la.muted);
+ } catch (ja) {
+ this.Bg.error("error updating volume", ja);
+ }
+ };
+ k.prototype.UF = function (a) {
+ this.sF(M.J.J5a, h(a, M.Nta, this.Dv()));
+ };
+ k.prototype.ZDa = function () {
+ this.Bn && this.Bn.RAb && this.Bn.UAb && (this.Ot.trace("seekcomplete"), this.Bn = void 0, this.gq.$b(ia.ri.pR));
+ };
+ wa.Object.defineProperties(k.prototype, {
+ Vna: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return u.config.aKb;
+ }
+ }
+ });
+ b.twa = k;
+ c.prototype.trace = function (a, b) {
+ this.g4.push([a, b]);
+ this.g4.length > this.jMb && this.g4.shift();
+ };
+ c.prototype.Dv = function () {
+ return this.g4;
+ };
+ }, function (d, b, a) {
+ var m,
+ f,
+ u,
+ w,
+ A,
+ n,
+ q,
+ M,
+ H,
+ G,
+ t,
+ S,
+ aa,
+ Z,
+ B,
+ V;
+ function c(a, b, c) {
+ this.rm = a;
+ this.Oha = b;
+ this.prefix = c;
+ a = G(a, b, c);
+ this.info = a.info.bind(a);
+ this.fatal = a.fatal.bind(a);
+ this.error = a.error.bind(a);
+ this.warn = a.warn.bind(a);
+ this.trace = a.trace.bind(a);
+ this.debug = a.debug.bind(a);
+ this.log = a.log.bind(a);
+ }
+ function k() {
+ this.oIa = m.bp.oIa.bind(m.bp);
+ this.dY = m.bp.dY.bind(m.bp);
+ this.bH = m.bp.bH;
+ this.VE = "NDA";
+ }
+ function l() {}
+ function g() {}
+ function h() {
+ return H ? H : "0.0.0.0";
+ }
+ function p(a) {
+ a({
+ URa: 0,
+ $R: 0,
+ YMa: 0,
+ FJa: 0
+ });
+ }
+ m = a(146);
+ k.prototype.set = function (a, b) {
+ w[a] = b;
+ A.save(a, b);
+ };
+ k.prototype.get = function (a, b) {
+ if (w.hasOwnProperty(a))
+ return w[a];
+ M.trace("key: " + a + ", is not available in storage cache and needs to be retrieved asynchronously");
+ A.load(a, function (c) {
+ c.U ? (w[a] = c.data, b && b(c.data)) : w[a] = void 0;
+ });
+ };
+ k.prototype.remove = function (a) {
+ A.remove(a);
+ };
+ k.prototype.clear = function () {
+ M.info("WARNING: Calling unimplemented function Storage.clear()");
+ };
+ l.prototype.now = function () {
+ return n();
+ };
+ l.prototype.ea = function () {
+ return q();
+ };
+ l.prototype.Uka = function (a) {
+ return a + n() - q();
+ };
+ l.prototype.pla = function (a) {
+ return a + q() - n();
+ };
+ b = a(106).EventEmitter;
+ a(60)(b, g.prototype);
+ c.prototype.DHa = function (a) {
+ var b;
+ b = [];
+ this.prefix && Array.isArray(this.prefix) ? b.push.apply(b, [].concat(ca(this.prefix))) : this.prefix && b.push(this.prefix);
+ b.push(a);
+ return new c(this.rm, this.Oha, b);
+ };
+ t = (function () {
+ var a;
+ a = Promise;
+ a.prototype.fail = Promise.prototype["catch"];
+ return a;
+ })();
+ d.P = function (a) {
+ f = a.oD;
+ G = a.Fh;
+ A = a.storage;
+ w = a.dI;
+ n = a.vrb;
+ q = a.getTime;
+ M = a.pdb;
+ S = a.wk;
+ V = a.Qr;
+ aa = a.wE;
+ Z = a.SourceBuffer;
+ B = a.MediaSource;
+ H = a.fZb;
+ u = a.my;
+ return {
+ name: "cadmium",
+ my: u,
+ oD: f,
+ storage: new k(),
+ Storage: k,
+ time: new l(),
+ events: new g(),
+ console: new c("JS-ASE", void 0, "default"),
+ Console: c,
+ options: {},
+ Promise: t,
+ wk: S,
+ wE: aa,
+ F4a: Z,
+ MediaSource: B,
+ Qr: V,
+ Km: {
+ name: h
+ },
+ memory: {
+ Nqb: p
+ },
+ Ik: a.Ik
+ };
+ };
+ }, function (d, b, a) {
+ var c,
+ k;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Sya = void 0;
+ c = a(6);
+ k = a(67);
+ b.Sya = (function () {
+ c.Fh("ProbeDownloader");
+ return {
+ FO: function (a) {
+ k.cf.nEb({
+ url: a.url,
+ kEb: a
+ });
+ }
+ };
+ })();
+ }, function (d, b, a) {
+ var k,
+ l,
+ g,
+ h,
+ p,
+ m,
+ f;
+ function c() {
+ var a;
+ a = new l.Xi();
+ this.addEventListener = a.addListener.bind(this);
+ this.removeEventListener = a.removeListener.bind(this);
+ this.emit = a.$b.bind(this);
+ this.yW = m++;
+ this.Bg = g.Fh("ProbeRequest");
+ this.oDa = k.Sya;
+ h.Ra(void 0 !== this.oDa);
+ this.Cg = b.Qr.vc.UNSENT;
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Qr = void 0;
+ k = a(636);
+ l = a(66);
+ g = a(6);
+ h = a(17);
+ p = a(23);
+ m = 0;
+ (function () {
+ function a() {
+ return JSON.stringify({
+ url: this.wl,
+ id: this.yW,
+ affected: this.qV,
+ readystate: this.Cg
+ });
+ }
+ p.yb(c.prototype, {
+ dt: function (a) {
+ a.affected = this.qV;
+ a.probed = {
+ requestId: this.yW,
+ url: this.wl,
+ Ob: this.DM,
+ groupId: this.ZV
+ };
+ this.emit(b.Qr.Yd.hL, a);
+ },
+ ola: function (a) {
+ this.gbb = a.httpcode;
+ a.affected = this.qV;
+ a.probed = {
+ requestId: this.yW,
+ url: this.wl,
+ Ob: this.DM,
+ groupId: this.ZV
+ };
+ this.emit(b.Qr.Yd.CA, a);
+ },
+ open: function (a, c, f, h) {
+ if (!a)
+ return !1;
+ this.wl = a;
+ this.qV = c;
+ this.DM = f;
+ this.Cg = b.Qr.vc.OPENED;
+ this.M9a = h;
+ this.oDa.FO(this);
+ return !0;
+ },
+ yc: function () {
+ return !0;
+ },
+ Yj: function () {
+ return this.yW;
+ },
+ toString: a,
+ toJSON: a
+ });
+ Object.defineProperties(c.prototype, {
+ readyState: {
+ get: function () {
+ return this.Cg;
+ },
+ set: function () {}
+ },
+ status: {
+ get: function () {
+ return this.gbb;
+ }
+ },
+ url: {
+ get: function () {
+ return this.wl;
+ }
+ },
+ xWb: {
+ get: function () {
+ return this.qV;
+ }
+ },
+ zxb: {
+ get: function () {
+ return this.M9a;
+ }
+ }
+ });
+ })();
+ (function (a) {
+ a.Yd = {
+ hL: "pr0",
+ CA: "pr1"
+ };
+ a.vc = {
+ UNSENT: 0,
+ OPENED: 1,
+ ox: 2,
+ DONE: 3,
+ JK: 4,
+ name: ["UNSENT", "OPENED", "SENT", "DONE", "FAILED"]
+ };
+ })(f || (f = {}));
+ b.Qr = Object.assign(c, f);
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Wra = b.Xra = void 0;
+ d = b.Xra || (b.Xra = {});
+ d[d.e5a = 0] = "PAUSE";
+ d[d.i6a = 1] = "RESUME";
+ d[d.rQb = 2] = "CAPTIONS_ON";
+ d[d.qQb = 3] = "CAPTIONS_OFF";
+ d[d.sQb = 4] = "CAPTION_LANGUAGE_CHANGED";
+ d[d.GPb = 5] = "AUDIO_LANGUAGE_CHANGED";
+ d[d.gTb = 6] = "NEXT_EP";
+ d[d.fUb = 7] = "PREV_EP";
+ d[d.lu = 8] = "SEEK";
+ d[d.sza = 9] = "STOP";
+ b.Wra = "CastInteractionTrackerSymbol";
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ g,
+ h,
+ p,
+ m,
+ f,
+ u,
+ w,
+ A,
+ n,
+ q,
+ M,
+ H,
+ G,
+ t,
+ S,
+ aa,
+ Z,
+ B,
+ V,
+ fa,
+ ia,
+ Y;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.iya = void 0;
+ c = a(0);
+ k = a(116);
+ l = a(1);
+ g = a(98);
+ h = a(26);
+ p = a(24);
+ m = a(37);
+ f = a(319);
+ u = a(442);
+ w = a(428);
+ A = a(352);
+ n = a(105);
+ q = a(115);
+ M = a(126);
+ H = a(84);
+ G = a(247);
+ t = a(318);
+ S = a(103);
+ aa = a(638);
+ Z = a(321);
+ B = a(47);
+ V = a(25);
+ fa = a(317);
+ ia = a(68);
+ Y = a(316);
+ d = (function () {
+ var d;
+ function b(a, b, c, f, h, d, k, m, p, l, u, g, r, w, A, n, K, q, H, C, M, G, B) {
+ this.OH = a;
+ this.vG = b;
+ this.va = c;
+ this.Aa = f;
+ this.teb = h;
+ this.opa = d;
+ this.fka = k;
+ this.gka = m;
+ this.O0 = p;
+ this.Jc = l;
+ this.Mi = u;
+ this.di = g;
+ this.dy = r;
+ this.cma = w;
+ this.eka = A;
+ this.Kpa = n;
+ this.eh = K;
+ this.Vk = q;
+ this.ad = H;
+ this.ama = C;
+ this.R2 = M;
+ this.MX = G;
+ this.rG = B;
+ }
+ b.prototype.create = function (b, c, f, h, d) {
+ return new(a(315).jya)(b, c, h, d, this.OH, f, this.va, this.vG, this.Aa, this.fka, this.teb, this.opa, this.gka, this.O0, this.Jc, this.Mi, this.di, this.dy, this.cma, this.eka, this.Kpa, this.eh, this.ad, this.ama, this.Vk, this.R2, void 0, this.MX);
+ };
+ d = b;
+ return d = c.__decorate([l.N(), c.__param(0, l.l(k.rA)), c.__param(1, l.l(h.Cf)), c.__param(2, l.l(p.Me)), c.__param(3, l.l(m.ni)), c.__param(4, l.l(f.b5)), c.__param(5, l.l(g.PA)), c.__param(6, l.l(u.F7)), c.__param(7, l.l(w.H7)), c.__param(8, l.l(A.u7)), c.__param(9, l.l(n.SA)), c.__param(10, l.l(q.GA)), c.__param(11, l.l(M.bF)), c.__param(12, l.l(G.ZS)), c.__param(13, l.l(t.c9)), c.__param(14, l.l(S.CU)), c.__param(15, l.l(Z.f$)), c.__param(16, l.l(B.uk)), c.__param(17, l.l(ia.PE)), c.__param(18, l.l(V.hf)), c.__param(19, l.l(fa.b9)), c.__param(20, l.l(Y.x9)), c.__param(21, l.l(aa.Wra)), c.__param(21, l.optional()), c.__param(22, l.l(H.oK)), c.__param(22, l.optional())], d);
+ })();
+ b.iya = d;
+ }, function (d, b) {
+ function a(a) {
+ this.j = a;
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.ura = void 0;
+ a.prototype.JYa = function () {
+ var a;
+ a = this.j.qo && this.j.qo.zb.get() || ({});
+ a.Lh && (this.j.Lh = a.Lh.Ca);
+ a.Ia && (this.j.Ia = a.Ia.Ca);
+ };
+ a.prototype.Cm = function () {
+ -1 === this.j.Ia && this.JYa();
+ return this.j.Ia;
+ };
+ a.prototype.ofb = function (a) {
+ -1 !== this.j.Lh && -1 !== this.j.Ia || this.JYa();
+ return -1 === this.j.Lh || -1 === this.j.Ia ? Number.MAX_VALUE : this.j.Lh + 8 * a / this.j.Ia;
+ };
+ b.ura = a;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ g,
+ h,
+ p,
+ m;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.GAa = void 0;
+ c = a(0);
+ k = a(13);
+ l = a(320);
+ g = a(24);
+ h = a(1);
+ p = a(3);
+ m = a(14);
+ d = (function () {
+ var b;
+ function a(a, b) {
+ this.app = a;
+ this.config = b;
+ }
+ a.prototype.jH = function (a) {
+ var b;
+ a.mS = {};
+ if (!a.HC() && a.Lw && 0 < a.Lw.length && (a.Kw = this.qLa(a), a.Kw)) {
+ b = this.vJb(a);
+ b() || (a.Sb.addListener(b), a.Bf.addListener(b));
+ }
+ };
+ a.prototype.vJb = function (a) {
+ var c;
+ function b() {
+ var f,
+ h;
+ if (!a.Bf.value || a.Sb.value === k.lb.dg)
+ return !1;
+ f = a.Kw;
+ h = f.Wc();
+ return h === l.tn.LOADING ? !1 : h !== l.tn.LOADED && f.Aw ? (f = c.Jsb(a)) ? (a.mS.offset = c.app.Yb().ca(p.ia), a.Kw = f, f.download(), !0) : !1 : (a.Sb.removeListener(b), a.Bf.removeListener(b), !1);
+ }
+ c = this;
+ return b;
+ };
+ a.prototype.Jsb = function (a) {
+ var b,
+ c;
+ b = this.config();
+ c = a.Om.aP() < b.zMb;
+ b = (a.Bf.value ? a.Bf.value.R : 0) > b.yMb;
+ return this.dsb(a, c && b);
+ };
+ a.prototype.dsb = function (a, b) {
+ if (b && (b = this.qLa(a), this.WLa(a, b.size)))
+ return (a.mS.FUa = "h", b);
+ b = this.drb(a);
+ if (this.WLa(a, b.size))
+ return (a.mS.FUa = "l", b);
+ };
+ a.prototype.WLa = function (a, b) {
+ var c,
+ f;
+ c = this.config();
+ f = Math.min(a.$M(), a.AS());
+ return a.reb.ofb(b) * (1 + .01 * c.Hcb[2]) < f * c.CMb;
+ };
+ a.prototype.qLa = function (a) {
+ return a.Lw[a.Lw.length - 1];
+ };
+ a.prototype.drb = function (a) {
+ return a.Lw[0];
+ };
+ b = a;
+ return b = c.__decorate([h.N(), c.__param(0, h.l(g.Me)), c.__param(1, h.l(m.fd))], b);
+ })();
+ b.GAa = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ g,
+ h,
+ p,
+ m,
+ f,
+ u,
+ w,
+ A,
+ n,
+ q,
+ M,
+ H,
+ G,
+ t,
+ S,
+ aa,
+ Z,
+ B,
+ V,
+ fa,
+ ia,
+ Y,
+ z,
+ X,
+ O,
+ na,
+ ha,
+ P,
+ E,
+ ja,
+ ya,
+ za,
+ ma;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.j = void 0;
+ d = a(1);
+ c = a(429);
+ k = a(321);
+ l = a(641);
+ g = a(319);
+ h = a(640);
+ p = a(464);
+ m = a(467);
+ f = a(639);
+ u = a(627);
+ w = a(14);
+ A = a(24);
+ n = a(87);
+ q = a(21);
+ M = a(7);
+ H = a(626);
+ G = a(318);
+ t = a(625);
+ S = a(3);
+ aa = a(624);
+ Z = a(623);
+ B = a(297);
+ V = a(622);
+ fa = a(85);
+ ia = a(317);
+ Y = a(621);
+ z = a(98);
+ X = a(25);
+ O = a(114);
+ na = a(72);
+ ha = a(348);
+ P = a(294);
+ E = a(620);
+ ja = a(68);
+ ya = a(34);
+ za = a(316);
+ ma = a(619);
+ b.j = new d.Kc(function (b) {
+ b(P.IU).to(E.mya).Z();
+ b(c.e$).zf(function (b) {
+ var c;
+ c = b.hb;
+ return function (b, f, h, d, k, m, p, l, u) {
+ return new(a(618).EAa)(c.get(aa.g$), b, f, h, d, k, m, p, l, u);
+ };
+ });
+ b(aa.g$).to(Z.HAa).Z();
+ b(k.f$).to(l.GAa).Z();
+ b(m.a9).to(f.iya).Z();
+ b(za.x9).to(ma.hza);
+ b(p.M5).zf(function (b) {
+ var c;
+ c = b.hb;
+ return function (b) {
+ return new(a(617).Xsa)(c.get(fa.L5), c.get(n.Dr), c.get(A.Me), b);
+ };
+ });
+ b(g.b5).zf(function () {
+ return function (a) {
+ return new h.ura(a);
+ };
+ });
+ b(H.R8).zf(function (a) {
+ var b;
+ b = a.hb;
+ return function (a) {
+ return new u.eya(a, b.get(M.Jb), b.get(w.fd), b.get(q.Zd), b.get(n.Dr));
+ };
+ });
+ b(G.c9).zf(function (a) {
+ var b;
+ b = a.hb;
+ return function (a, c, f, h, d, k, m, p, l) {
+ return new t.nya(a, c, f, h, d, k, m, p, l, b.get(H.R8), b.get(P.IU));
+ };
+ });
+ b(B.F9).zf(function (a) {
+ return function (b) {
+ var c;
+ c = a.hb.get(w.fd);
+ return new V.Cza(c, b);
+ };
+ });
+ b(ia.b9).zf(function (a) {
+ return function (b) {
+ var c,
+ f,
+ h,
+ d;
+ c = a.hb.get(na.Er);
+ f = a.hb.get(z.PA);
+ h = a.hb.get(X.hf);
+ d = a.hb.get(O.OA);
+ return new Y.kya(b, c, f(S.qh(1)), h, d);
+ };
+ });
+ b(ha.U7).Jw(function (b) {
+ return new(a(616).Hwa)(b.hb.get(ja.PE), b.hb.get(ya.kl));
+ }).Z();
+ });
+ }, function (d, b, a) {
+ var c,
+ k,
+ l;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Uxa = void 0;
+ c = a(0);
+ k = a(1);
+ l = a(138);
+ d = (function () {
+ var b;
+ function a() {
+ this.QR = new l.pn();
+ }
+ a.prototype.aJ = function (a) {
+ this.QR.next(a);
+ };
+ wa.Object.defineProperties(a.prototype, {
+ vj: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.QR;
+ }
+ }
+ });
+ b = a;
+ return b = c.__decorate([k.N()], b);
+ })();
+ b.Uxa = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ g;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Hxa = void 0;
+ c = a(0);
+ k = a(1);
+ l = a(7);
+ g = a(72);
+ d = (function () {
+ var b;
+ function a(a, b) {
+ this.qy = b;
+ this.log = a.xb("Pbo");
+ this.links = {};
+ }
+ a.prototype.Nba = function (a) {
+ a && (this.links = Object.assign(Object.assign({}, this.links), a));
+ };
+ a.prototype.RO = function (a) {
+ return this.links[a];
+ };
+ a.prototype.kcb = function (a) {
+ var b;
+ b = "playbackContextId=" + a.playbackContextId + "&esn=" + this.qy().Ch;
+ a = "drmContextId=" + a.drmContextId;
+ this.Nba({
+ events: {
+ rel: "events",
+ href: "/events?" + b
+ },
+ license: {
+ rel: "license",
+ href: "/license?licenseType=standard&" + b + "&" + a
+ },
+ ldl: {
+ rel: "ldl",
+ href: "/license?licenseType=limited&" + b + "&" + a
+ }
+ });
+ };
+ b = a;
+ return b = c.__decorate([k.N(), c.__param(0, k.l(l.Jb)), c.__param(1, k.l(g.Er))], b);
+ })();
+ b.Hxa = d;
+ }, function (d, b, a) {
+ var k,
+ l,
+ g;
+ function c(a, b, c, f, d, k, l) {
+ this.version = a;
+ this.url = b;
+ this.id = c;
+ this.languages = f;
+ this.gb = d;
+ this.omb = k;
+ this.Rzb = l;
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Wxa = void 0;
+ k = a(0);
+ l = a(1);
+ g = a(71);
+ d = (function () {
+ var b;
+ function a(a) {
+ this.bi = a;
+ }
+ a.prototype.create = function (a, b, h, d, k) {
+ return new c(this.bi.version, b, a, this.bi.languages, h, d, k);
+ };
+ b = a;
+ return b = k.__decorate([l.N(), k.__param(0, l.l(g.Or))], b);
+ })();
+ b.Wxa = d;
+ c.prototype.toJSON = function () {
+ return {
+ version: this.version,
+ url: this.url,
+ id: this.id,
+ languages: this.languages,
+ params: this.gb,
+ echo: this.omb
+ };
+ };
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ g,
+ h,
+ p,
+ m;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Bxa = void 0;
+ c = a(0);
+ k = a(1);
+ l = a(40);
+ g = a(29);
+ h = a(41);
+ p = a(14);
+ m = a(118);
+ d = (function () {
+ var b;
+ function a(a, b, c) {
+ a = l.me.call(this, a, "PboConfigImpl") || this;
+ a.config = b;
+ a.$cb = c;
+ return a;
+ }
+ N(a, l.me);
+ wa.Object.defineProperties(a.prototype, {
+ qS: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.config().ep.qS || "";
+ }
+ },
+ l4: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.config().ep.l4 || "";
+ }
+ },
+ version: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return 2;
+ }
+ },
+ TRa: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return "cadmium";
+ }
+ },
+ languages: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.config().ep.sma;
+ }
+ },
+ XH: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return !1;
+ }
+ },
+ Kyb: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return !0;
+ }
+ },
+ Myb: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return !0;
+ }
+ },
+ CVa: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return Object.assign({
+ logblob: {
+ service: "logblob",
+ isPlayApiDirect: !0,
+ version: "1"
+ },
+ manifest: {
+ service: "pbo_manifests",
+ serviceNonMember: "pbo_nonmember",
+ version: "^1.0.0"
+ },
+ license: {
+ service: "pbo_licenses",
+ serviceNonMember: "pbo_nonmember",
+ version: "^1.0.0"
+ },
+ events: {
+ service: "event",
+ isPlayApiDirect: !0,
+ version: "1"
+ },
+ bind: {
+ service: this.$cb.KFa,
+ serviceNonMember: "pbo_nonmember",
+ version: "^1.0.0"
+ },
+ pair: {
+ service: "pbo_mdx",
+ serviceNonMember: "pbo_nonmember",
+ version: "^1.0.0"
+ },
+ ping: {
+ service: "pbo_events",
+ serviceNonMember: "pbo_nonmember",
+ version: "^1.0.0"
+ },
+ config: {
+ service: "pbo_config",
+ version: "^1.0.0"
+ }
+ }, this.DVa);
+ }
+ },
+ DVa: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return {};
+ }
+ },
+ fUa: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return !1;
+ }
+ },
+ jia: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return 10;
+ }
+ },
+ AEa: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return !1;
+ }
+ },
+ TGa: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return !1;
+ }
+ },
+ ZYa: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return !1;
+ }
+ },
+ aJa: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return !0;
+ }
+ }
+ });
+ b = a;
+ c.__decorate([h.config(h.string, "uiVersion")], b.prototype, "qS", null);
+ c.__decorate([h.config(h.string, "uiPlatform")], b.prototype, "l4", null);
+ c.__decorate([h.config(h.Mw, "pboVersion")], b.prototype, "version", null);
+ c.__decorate([h.config(h.string, "pboOrganization")], b.prototype, "TRa", null);
+ c.__decorate([h.config(h.X3, "pboLanguages")], b.prototype, "languages", null);
+ c.__decorate([h.config(h.jd, "hasLimitedPlaybackFunctionality")], b.prototype, "XH", null);
+ c.__decorate([h.config(h.jd, "mdxBindUsingNodeQuark")], b.prototype, "Kyb", null);
+ c.__decorate([h.config(h.jd, "mdxPairUsingNodeQuark")], b.prototype, "Myb", null);
+ c.__decorate([h.config(h.object(), "pboCommands")], b.prototype, "CVa", null);
+ c.__decorate([h.config(h.object(), "pboCommandsOverride")], b.prototype, "DVa", null);
+ c.__decorate([h.config(h.jd, "pboRecordHistory")], b.prototype, "fUa", null);
+ c.__decorate([h.config(h.Mw, "pboHistorySize")], b.prototype, "jia", null);
+ c.__decorate([h.config(h.jd, "pboAddXEsnHeader")], b.prototype, "AEa", null);
+ c.__decorate([h.config(h.jd, "combineManifestAndLicense")], b.prototype, "TGa", null);
+ c.__decorate([h.config(h.jd, "pboUseStudioManifest")], b.prototype, "ZYa", null);
+ c.__decorate([h.config(h.jd, "pboEnableLeanManifest")], b.prototype, "aJa", null);
+ return b = c.__decorate([k.N(), c.__param(0, k.l(g.bj)), c.__param(1, k.l(p.fd)), c.__param(2, k.l(m.Yz))], b);
+ })();
+ b.Bxa = d;
+ }, function (d, b, a) {
+ var k;
+ function c() {}
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.z8 = void 0;
+ k = a(2);
+ c.Rvb = function (a) {
+ var b,
+ c;
+ b = a && a.code;
+ c = a && (a.ja || a.Nb);
+ a = a.xd !== k.XT.vxa;
+ c = !!c && c >= k.I.XK && c <= k.I.VK && a;
+ return !("RETRY" !== b && "FAIL" !== b) || c;
+ };
+ c.grb = function (a) {
+ var b,
+ c;
+ c = null === (b = null === a || void 0 === a ? void 0 : a.Az) || void 0 === b ? void 0 : b.maxRetries;
+ return "number" === typeof c ? c : "FAIL" === (null === a || void 0 === a ? void 0 : a.code) ? 1 : void 0;
+ };
+ b.z8 = c;
+ }, function (d, b, a) {
+ var l,
+ g,
+ h,
+ p,
+ m,
+ f,
+ u,
+ w,
+ A,
+ n,
+ q,
+ M,
+ H,
+ G,
+ t,
+ S;
+ function c(a) {
+ this.config = a;
+ this.fv = [];
+ }
+ function k(a, b, c) {
+ this.va = a;
+ this.WJ = b;
+ this.context = c;
+ this.startTime = this.va.Yb();
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Cxa = void 0;
+ l = a(0);
+ g = a(1);
+ h = a(3);
+ p = a(324);
+ m = a(7);
+ f = a(31);
+ u = a(24);
+ w = a(34);
+ A = a(137);
+ n = a(36);
+ q = a(323);
+ M = a(71);
+ H = a(85);
+ G = a(13);
+ t = a(43);
+ S = a(647);
+ d = (function () {
+ var b;
+ function a(a, b, f, h, d, k, m, p, l) {
+ this.cYa = b;
+ this.json = f;
+ this.va = h;
+ this.Cq = d;
+ this.Lma = k;
+ this.ya = m;
+ this.Db = l;
+ this.log = a.xb("Pbo");
+ p.fUa && (this.fv = new c(p));
+ this.WJ = this.cYa();
+ }
+ a.prototype.send = function (a, b) {
+ var c;
+ c = new k(this.va, this.WJ, a);
+ this.fv && this.fv.append(c);
+ return this.foa(a, b, c);
+ };
+ a.prototype.foa = function (a, b, c) {
+ var f;
+ f = this;
+ return new Promise(function (h, d) {
+ f.Aw(a, b).then(function (a) {
+ var b,
+ k;
+ f.iIb(a);
+ b = U(f.jOb(a));
+ k = b.next().value;
+ b = b.next().value;
+ k && (f.Hgb(c), h(a));
+ b && (f.PGa(c, b), d(b));
+ })["catch"](function (a) {
+ var b;
+ b = f.PGa(c, a);
+ a.ab && (a.ab = [a.ab, " ", b].join(""));
+ d(a);
+ });
+ });
+ };
+ a.prototype.iIb = function (a) {
+ (a = a.serverTime) && this.Db.$b(G.Z6.BVa, h.Gb(a));
+ };
+ a.prototype.jOb = function (a) {
+ var b;
+ b = a.result;
+ if (("deviceCommand" in a)) {
+ a = a.deviceCommand;
+ this.log.trace("Received device command '" + a + "'");
+ switch (a) {
+ case "reset":
+ b = "RESET_DEVICE";
+ break;
+ case "reload":
+ b = "RELOAD_DEVICE";
+ break;
+ case "exit":
+ b = "EXIT_DEVICE";
+ break;
+ default:
+ (b = "FAIL", this.log.error("Unhandled device command '" + a + "'"));
+ }
+ return [, {
+ code: b,
+ detail: {
+ message: "Server sent device action to '" + a + "' device"
+ }
+ }
+ ];
+ }
+ if (b)
+ return [b, void 0];
+ if (a.code)
+ return (this.log.error("Response did not contain a result or an error but did contain an error code", a), [, {
+ code: a.code,
+ detail: {
+ message: a.message
+ }
+ }
+ ]);
+ this.log.error("Response did not contain a result or an error", a);
+ return [, {
+ code: "FAIL",
+ detail: {
+ message: "Response did contain a result or an error"
+ }
+ }
+ ];
+ };
+ a.prototype.kCb = function (a) {
+ var b;
+ if (a) {
+ try {
+ b = this.json.parse(a);
+ } catch (fa) {
+ throw {
+ lD: !0,
+ code: "FAIL",
+ message: "Unable to parse the response body",
+ data: a
+ };
+ }
+ if (b.error)
+ throw b.error;
+ if (b.result)
+ return b;
+ throw {
+ lD: !0,
+ code: "FAIL",
+ message: "There is no result property on the response"
+ };
+ }
+ throw {
+ lD: !0,
+ code: "FAIL",
+ message: "There is no body property on the response"
+ };
+ };
+ a.prototype.Mdb = function (a, b, c) {
+ var f;
+ f = this;
+ this.wNb(b, a);
+ this.WJ = this.cYa(c);
+ return this.WJ.send(b, c).then(function (a) {
+ return {
+ Aw: !1,
+ result: f.kCb(a.body)
+ };
+ })["catch"](function (c) {
+ var h,
+ d;
+ d = (h = S.z8.grb(c)) ? Math.min(h, b.Bna) : b.Bna;
+ return f.D3(b, c, a, d) ? (h = f.vfb(c, a, d), f.log.warn("Method failed, retrying", Object.assign({
+ Method: b.Oj,
+ Attempt: a + 1,
+ WaitTime: h,
+ MaxRetries: d
+ }, f.tea(c))), Promise.resolve({
+ Aw: !0,
+ Dl: h,
+ error: c
+ })) : Promise.resolve({
+ Aw: !1,
+ error: c
+ });
+ });
+ };
+ a.prototype.wNb = function (a, b) {
+ var c;
+ c = a.url.searchParams;
+ c.set(t.TU.l6a, (b + 1).toString());
+ c.set(t.TU.Ag, a.lna.toString());
+ c.set(t.TU.m6a, a.kna);
+ };
+ a.prototype.Aw = function (a, b, c) {
+ var f;
+ c = void 0 === c ? 0 : c;
+ f = this;
+ return this.Mdb(c++, a, b).then(function (h) {
+ if (h.Aw)
+ return f.DOb(h.Dl).then(function () {
+ return f.Aw(a, b, c);
+ });
+ if (h.error)
+ throw h.error;
+ if (void 0 === h.result)
+ throw {
+ pboc: !1,
+ code: "FAIL",
+ detail: {
+ message: "The response was undefined"
+ }
+ };
+ return h.result;
+ });
+ };
+ a.prototype.D3 = function (a, b, c, f) {
+ var h;
+ h = this.Cq.TUa || S.z8.Rvb(b);
+ if (h && c < f)
+ return !0;
+ h ? this.log.error("Method failed, retry limit exceeded, giving up", Object.assign({
+ Method: a.Oj,
+ Attempt: c + 1,
+ MaxRetries: f
+ }, this.tea(b))) : this.log.error("Method failed with an error that is not retriable, giving up", Object.assign({
+ Method: a.Oj
+ }, this.tea(b)));
+ return !1;
+ };
+ a.prototype.vfb = function (a, b, c) {
+ return a && a.Az && void 0 !== a.Az.retryAfterSeconds ? h.qh(a.Az.retryAfterSeconds) : h.Gb(this.Lma.JTa(1E3 * (0 === b ? 1 : b), 1E3 * Math.pow(2, Math.min(b, c))));
+ };
+ a.prototype.DOb = function (a) {
+ var b;
+ b = this;
+ return new Promise(function (c) {
+ b.ya.Mh(a || h.Cc, c);
+ });
+ };
+ a.prototype.tea = function (a) {
+ return q.kOa(a) ? a : {
+ message: a.message,
+ subCode: a.Nb,
+ extCode: a.xd,
+ mslCode: a.ct,
+ data: a.data
+ };
+ };
+ a.prototype.Hgb = function (a) {
+ a.OJ();
+ };
+ a.prototype.PGa = function (a, b) {
+ var c;
+ a.yq(b);
+ if (this.fv)
+ try {
+ c = this.json.stringify(this.fv);
+ this.log.error("PBO command history", c);
+ return c;
+ } catch (ia) {}
+ return "";
+ };
+ b = a;
+ return b = l.__decorate([g.N(), l.__param(0, g.l(m.Jb)), l.__param(1, g.l(p.d$)), l.__param(2, g.l(f.bx)), l.__param(3, g.l(u.Me)), l.__param(4, g.l(w.kl)), l.__param(5, g.l(A.tL)), l.__param(6, g.l(n.Tg)), l.__param(7, g.l(M.Or)), l.__param(8, g.l(H.DT))], b);
+ })();
+ b.Cxa = d;
+ k.prototype.OJ = function () {
+ this.U = !0;
+ this.elapsedTime = this.va.Yb().Ib(this.startTime);
+ };
+ k.prototype.yq = function (a) {
+ this.U = !1;
+ this.elapsedTime = this.va.Yb().Ib(this.startTime);
+ this.RKb = a.Nb || a.subCode;
+ this.Bnb = a.xd || a.extCode;
+ };
+ k.prototype.toString = function () {
+ return JSON.stringify(this);
+ };
+ k.prototype.toJSON = function () {
+ var a;
+ a = Object.assign({
+ success: this.U,
+ method: this.context.Oj,
+ startTime: this.startTime.ca(h.ia),
+ elapsedTime: this.elapsedTime ? this.elapsedTime.ca(h.ia) : "in progress"
+ }, this.WJ.Mda());
+ return this.U ? a : Object.assign(Object.assign(Object.assign({}, a), this.WJ.Mda()), {
+ subcode: this.RKb,
+ extcode: this.Bnb
+ });
+ };
+ c.prototype.append = function (a) {
+ this.fv.push(a);
+ 0 < this.config.jia && this.fv.length > this.config.jia && this.fv.shift();
+ };
+ c.prototype.toJSON = function () {
+ return this.fv;
+ };
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ g,
+ h,
+ p,
+ m,
+ f,
+ u,
+ w;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.wSa = void 0;
+ d = a(1);
+ c = a(325);
+ k = a(648);
+ l = a(71);
+ g = a(646);
+ h = a(322);
+ p = a(645);
+ m = a(426);
+ f = a(644);
+ u = a(147);
+ w = a(643);
+ b.wSa = new d.Kc(function (a) {
+ a(l.Or).to(g.Bxa).Z();
+ a(c.y8).to(k.Cxa).Z();
+ a(m.E8).to(f.Hxa);
+ a(m.D8).zf(function (a) {
+ return function () {
+ return a.hb.get(m.E8);
+ };
+ });
+ a(h.M8).to(p.Wxa).Z();
+ a(u.oL).to(w.Uxa).Z();
+ });
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ g,
+ h,
+ p;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Kwa = void 0;
+ c = a(0);
+ k = a(41);
+ l = a(40);
+ g = a(1);
+ h = a(29);
+ p = a(3);
+ d = (function () {
+ var b;
+ function a(a) {
+ return l.me.call(this, a, "MseConfigImpl") || this;
+ }
+ N(a, l.me);
+ wa.Object.defineProperties(a.prototype, {
+ yQa: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return p.Gb(5E3);
+ }
+ },
+ RRa: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return p.Gb(1E3);
+ }
+ },
+ SRa: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return p.Gb(1E3);
+ }
+ }
+ });
+ b = a;
+ c.__decorate([k.config(k.hh, "minDecoderBufferMilliseconds")], b.prototype, "yQa", null);
+ c.__decorate([k.config(k.hh, "optimalDecoderBufferMilliseconds")], b.prototype, "RRa", null);
+ c.__decorate([k.config(k.hh, "optimalDecoderBufferMillisecondsBranching")], b.prototype, "SRa", null);
+ return b = c.__decorate([g.N(), c.__param(0, g.l(h.bj))], b);
+ })();
+ b.Kwa = d;
+ }, function (d, b, a) {
+ var c,
+ k;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.IQa = void 0;
+ d = a(1);
+ c = a(477);
+ k = a(650);
+ b.IQa = new d.Kc(function (a) {
+ a(c.W7).to(k.Kwa).Z();
+ });
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ g,
+ h,
+ p,
+ m,
+ f,
+ u,
+ w;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.ywa = void 0;
+ c = a(0);
+ k = a(1);
+ l = a(7);
+ g = a(14);
+ h = a(9);
+ p = a(21);
+ m = a(327);
+ f = a(66);
+ u = a(148);
+ w = a(116);
+ d = (function () {
+ function a(a, b, c, d, k, m) {
+ function p(h, p) {
+ this.track = h;
+ this.label = p;
+ this.Cg = u.Vb.vc.UNSENT;
+ this.Qe = 0;
+ this.Cp = [];
+ this.requestId = m.TB().toString();
+ this.La = c;
+ this.log = b.xb("MediaRequest");
+ this.config = a;
+ this.Db = new f.Xi();
+ "notification" === this.label ? this.config().eC && (this.Ll = d) : this.Ll = k;
+ }
+ function l(h, p) {
+ this.requestId = m.TB().toString();
+ this.La = c;
+ this.log = b.xb("MediaRequest");
+ this.config = a;
+ this.Db = new f.Xi();
+ this.label = p;
+ "notification" === this.label ? this.config().eC && (this.Ll = d) : this.Ll = k;
+ this.sP = this.tN = this.uN = void 0;
+ this.track = h;
+ this.DX = this.url = this.responseType = void 0;
+ this.Cg = u.Vb.vc.UNSENT;
+ this.qj = this.qH = this.Dh = this.status = void 0;
+ this.Pl = this.Qe = 0;
+ this.connect = this.Ufa = this.OB = this.Xy = this.rja = this.ed = this.Tfa = this.rf = this.ZF = void 0;
+ this.Cp = [];
+ this.sm = !1;
+ }
+ p.prototype.addEventListener = function (a, b, c) {
+ this.Db.addListener.call(this, a, b, c);
+ };
+ p.prototype.removeEventListener = function (a, b) {
+ this.Db.removeListener.call(this, a, b);
+ };
+ p.prototype.emit = function (a, b, c) {
+ this.Db.$b.call(this, a, b, c);
+ };
+ p.prototype.xAb = function (a) {
+ this.Cg === u.Vb.vc.OPENED && (this.sP = !0, this.rf = this.ed = a.timestamp, this.Cg = u.Vb.vc.ox, this.emit(u.Vb.Yd.Ywa, a));
+ };
+ p.prototype.nla = function (a) {
+ var b;
+ if (this.Cg < u.Vb.vc.IA) {
+ this.Cp = [];
+ b = a.timestamp - this.rf;
+ !this.kc && 0 < b && (this.connect = !0, this.Cp.push(b));
+ !0 === this.config().pub ? this.Tfa = a.timestamp : this.Tfa = this.ed = a.timestamp;
+ this.Cg = u.Vb.vc.IA;
+ this.emit(u.Vb.Yd.Xwa, a);
+ }
+ };
+ p.prototype.AAb = function (a) {
+ this.Cg === u.Vb.vc.IA && (this.rja = this.ed = a.timestamp, a.newBytes = a.bytesLoaded - this.Qe, this.Qe = a.bytesLoaded, this.La.de(this.rja) && this.emit(u.Vb.Yd.Zwa, a));
+ };
+ p.prototype.dt = function (a) {
+ -1 < [u.Vb.vc.ox, u.Vb.vc.IA].indexOf(this.Cg) && (this.sP = !1, this.ed = a.timestamp, this.Cg = u.Vb.vc.DONE, a.newBytes = this.ki - this.Qe, this.Qe = this.ki, this.La.de(this.OB) && (this.ed = this.OB, 0 === a.newBytes && (this.rja = this.OB)), this.La.de(this.Xy) && (this.rf = this.Xy), this.ZF = a.response, this.emit(u.Vb.Yd.hL, a));
+ };
+ p.prototype.sAb = function (a) {
+ this.sP = !1;
+ this.emit(u.Vb.Yd.b5a, a);
+ };
+ p.prototype.ola = function (a) {
+ this.ed = a.timestamp;
+ this.status = a.httpcode;
+ this.Dh = a.errorcode;
+ this.qH = u.Vb.zE.name[this.Dh];
+ this.qj = a.nativecode;
+ this.emit(u.Vb.Yd.CA, a);
+ this.sP = !1;
+ };
+ p.prototype.open = function (a, b, c, f, h, d, k) {
+ this.Ht = !1;
+ this.DX = b;
+ this.url = a;
+ this.responseType = c;
+ if (!this.url)
+ return !1;
+ this.Cg = u.Vb.vc.OPENED;
+ this.Ll.FO(this, b, k);
+ return !0;
+ };
+ p.prototype.yc = function () {
+ -1 !== [u.Vb.vc.OPENED, u.Vb.vc.ox, u.Vb.vc.IA].indexOf(this.Cg) && this.abort();
+ return !0;
+ };
+ p.prototype.DGa = function () {
+ this.ZF = void 0;
+ this.JG && (this.JG.response = void 0, this.JG.cadmiumResponse.content = void 0);
+ this.nia = void 0;
+ };
+ p.prototype.YR = function (a) {
+ this.url = a;
+ return !0;
+ };
+ p.prototype.abort = function () {
+ this.Cg = u.Vb.vc.nK;
+ this.Ll.sB(this);
+ return !0;
+ };
+ p.prototype.pause = function () {};
+ p.prototype.getResponseHeader = function () {
+ return null;
+ };
+ p.prototype.getAllResponseHeaders = function () {
+ return "";
+ };
+ p.prototype.bR = function () {};
+ p.prototype.Yj = function () {
+ return this.requestId;
+ };
+ p.prototype.toString = function () {
+ var a;
+ a = {
+ requestId: this.Yj(),
+ segmentId: this.Ha,
+ isHeader: this.kc,
+ ptsStart: this.yw,
+ ptsOffset: this.Qm,
+ responseType: this.responseType,
+ duration: this.sv,
+ readystate: this.Cg
+ };
+ this.stream && (a.bitrate = this.stream.R);
+ return JSON.stringify(a);
+ };
+ p.prototype.toJSON = function () {
+ return this.toString();
+ };
+ p.prototype.Gsb = function () {
+ var a,
+ b;
+ if (this.config().WYa && h.Mr && h.Mr.getEntriesByType && (!this.La.de(this.Xy) || !this.La.de(this.OB) && this.La.de(this.url))) {
+ a = "" + this.url.split("nflxvideo.net")[0].split("//").pop() + ("*nflxvideo.net/range/" + this.uN + "-" + this.tN + "*");
+ b = new RegExp(a);
+ a = h.Mr.getEntriesByType("resource").filter(function (a) {
+ return b.exec(a.name);
+ })[0];
+ this.La.de(a) && (0 < a.startTime && (this.Xy = a.startTime, 0 < a.requestStart && (this.Xy = Math.max(this.Xy, a.requestStart))), 0 < a.responseStart && (this.Ufa = a.responseStart), 0 < a.responseEnd && (this.OB = a.responseEnd));
+ }
+ };
+ p.prototype.Qvb = function () {
+ return this.La.de(this.Xy) && this.La.de(this.OB) && this.La.de(this.Ufa);
+ };
+ wa.Object.defineProperties(p.prototype, {
+ ki: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.DX.end - this.DX.start + 1;
+ }
+ },
+ byteLength: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.tN - this.uN + 1;
+ }
+ },
+ KMa: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return !!(this.response && 0 < this.response.byteLength);
+ }
+ },
+ kc: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return !this.Qy;
+ }
+ },
+ response: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.ZF;
+ }
+ },
+ readyState: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.Cg;
+ },
+ set: function () {}
+ }
+ });
+ Object.getOwnPropertyNames(p.prototype).forEach(function (a) {
+ Object.defineProperty(l.prototype, a, Object.getOwnPropertyDescriptor(p.prototype, a));
+ });
+ this.wk = Object.assign(l, u.Vb);
+ }
+ return a = c.__decorate([k.N(), c.__param(0, k.l(g.fd)), c.__param(1, k.l(l.Jb)), c.__param(2, k.l(p.Zd)), c.__param(3, k.l(m.i8)), c.__param(4, k.l(m.O7)), c.__param(5, k.l(w.rA))], a);
+ })();
+ b.ywa = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ g,
+ h,
+ p,
+ m,
+ f,
+ u,
+ w,
+ A,
+ n;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.zwa = void 0;
+ c = a(0);
+ k = a(57);
+ l = a(1);
+ g = a(7);
+ h = a(94);
+ p = a(328);
+ m = a(75);
+ f = a(148);
+ u = a(24);
+ w = a(3);
+ A = a(34);
+ n = a(14);
+ d = (function () {
+ var b;
+ function a(a, b, c, f, h, d) {
+ this.va = a;
+ this.Cq = b;
+ this.config = c;
+ this.cf = h;
+ this.Tyb = d;
+ this.log = f.xb("MediaRequestDownloader");
+ }
+ a.prototype.FO = function (a, b, c) {
+ var d,
+ p,
+ l;
+ function h() {
+ a.removeEventListener(f.Vb.Yd.CA, h);
+ a.zO ? a.zO++ : a.zO = 1;
+ a.zO >= d.config().Ifa.length && (a.zO = d.config().Ifa.length - 1);
+ setTimeout(function () {
+ d.FO(a, b, c);
+ }, d.config().Ifa[a.zO]);
+ }
+ d = this;
+ a.lZb = !0;
+ p = this.Tyb.download({
+ url: a.url,
+ responseType: this.cf.h6a.y_a,
+ withCredentials: !1,
+ $B: a.L === k.Hc.Na.AUDIO ? "audio" : "video",
+ offset: b.start,
+ length: a.ki,
+ track: {
+ type: a.L === k.Hc.Na.AUDIO ? m.Qg.audio : m.Qg.video
+ },
+ stream: {
+ vd: a.wa,
+ R: a.R
+ },
+ tc: a.Ob,
+ wp: a,
+ F3: c,
+ ur: this.Cq.ur
+ }, function (b) {
+ b.U && a.readyState !== f.Vb.vc.DONE && a.readyState !== f.Vb.vc.nK && (a.readyState !== f.Vb.vc.JK && a.readyState === f.Vb.vc.ox && (a.readyState = f.Vb.vc.IA, a.nla({
+ mediaRequest: a,
+ readyState: a.readyState,
+ timestamp: d.Av(),
+ connect: !1
+ })), a.readyState = f.Vb.vc.DONE, b = {
+ mediaRequest: a,
+ readyState: a.readyState,
+ timestamp: d.Av(),
+ cadmiumResponse: b,
+ response: b.content
+ }, a.JG = b, a.dt(b));
+ });
+ if (a.kc) {
+ l = {
+ mediaRequest: a,
+ readyState: a.readyState,
+ timestamp: this.Av(),
+ connect: !1
+ };
+ a.nla(l);
+ }
+ a.addEventListener(f.Vb.Yd.CA, h);
+ a.nia = p.abort;
+ };
+ a.prototype.sB = function (a) {
+ try {
+ a.nia();
+ } catch (G) {
+ this.log.warn("exception aborting request");
+ }
+ };
+ a.prototype.Av = function () {
+ return this.va.Yb().ca(w.ia);
+ };
+ b = a;
+ return b = c.__decorate([l.N(), c.__param(0, l.l(u.Me)), c.__param(1, l.l(A.kl)), c.__param(2, l.l(n.fd)), c.__param(3, l.l(g.Jb)), c.__param(4, l.l(h.ex)), c.__param(5, l.l(p.M7))], b);
+ })();
+ b.zwa = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ g;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.fxa = void 0;
+ c = a(0);
+ k = a(1);
+ l = a(7);
+ g = a(94);
+ d = (function () {
+ var b;
+ function a(a, b) {
+ this.cf = b;
+ this.log = a.xb("OpenConnectSideChannel");
+ }
+ a.prototype.FO = function (a, b, c) {
+ this.cf.TJb({
+ url: a.url,
+ AHb: c
+ });
+ };
+ a.prototype.sB = function (a) {
+ try {
+ a.nia();
+ } catch (f) {
+ this.log.warn("exception aborting request");
+ }
+ };
+ b = a;
+ return b = c.__decorate([k.N(), c.__param(0, k.l(l.Jb)), c.__param(1, k.l(g.ex))], b);
+ })();
+ b.fxa = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ g,
+ h,
+ p,
+ m,
+ f,
+ u,
+ w,
+ A;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.uwa = void 0;
+ c = a(0);
+ k = a(148);
+ l = a(84);
+ g = a(2);
+ h = a(7);
+ p = a(1);
+ m = a(94);
+ f = a(21);
+ u = a(24);
+ w = a(3);
+ A = a(14);
+ d = (function () {
+ var b;
+ function a(a, b, c, f, h, d) {
+ this.rG = a;
+ this.cf = c;
+ this.La = f;
+ this.va = h;
+ this.config = d;
+ this.log = b.xb("MediaHttp");
+ }
+ a.prototype.Av = function () {
+ return this.va.Yb().ca(w.ia);
+ };
+ a.prototype.nRa = function (a, b) {
+ a.xAb({
+ mediaRequest: a,
+ timestamp: b
+ });
+ };
+ a.prototype.IRa = function (a) {
+ var b;
+ b = a.mediaRequest.wp;
+ b.readyState = k.Vb.vc.IA;
+ a = a.connect ? a : {
+ timestamp: this.Av(),
+ connect: !1
+ };
+ a.mediaRequest = b;
+ a.readyState = b.readyState;
+ b.nla(a);
+ };
+ a.prototype.P1 = function (a) {
+ this.nRa(a.mediaRequest.wp, a.timestamp);
+ };
+ a.prototype.R1 = function (a) {
+ var b,
+ c;
+ b = a.mediaRequest.wp;
+ c = a.bytes;
+ "undefined" !== typeof b && (b.readyState === k.Vb.vc.ox && this.IRa(a), this.La.fg(c) && (a.mediaRequest = b, a.timestamp = this.Av(), c > b.Qe && (a.newBytes = c - b.Qe, a.bytesLoaded = c, b.AAb(a))));
+ };
+ a.prototype.iw = function (a) {
+ var b,
+ c,
+ f,
+ h;
+ b = a.mediaRequest;
+ c = a.errorcode;
+ f = a.httpcode;
+ h = k.Vb.zE;
+ if ("undefined" !== typeof b && (b = b.wp, "undefined" !== typeof b && b.readyState !== k.Vb.vc.JK))
+ if (c === g.I.Xw)
+ (b.readyState = k.Vb.vc.nK, a.mediaRequest = b, a.readyState = b.readyState, b.sAb(a));
+ else {
+ b.readyState = k.Vb.vc.JK;
+ switch (c) {
+ case g.I.XK:
+ f = h.n5;
+ break;
+ case g.I.O6:
+ f = h.L6;
+ break;
+ case g.I.UK:
+ f = 400 < f && 500 > f ? h.N6 : 500 <= f ? h.rua : h.L6;
+ break;
+ case g.I.VK:
+ f = h.M6;
+ break;
+ case g.I.TK:
+ f = h.Lra;
+ break;
+ case g.I.WK:
+ f = h.UT;
+ break;
+ case g.I.pA:
+ f = h.UT;
+ break;
+ case g.I.qua:
+ f = h.pua;
+ break;
+ case g.I.mua:
+ f = h.N6;
+ break;
+ case g.I.H1a:
+ f = h.M6;
+ break;
+ default:
+ f = h.UT;
+ }
+ a.mediaRequest = b;
+ a.readyState = b.readyState;
+ a.errorcode = f;
+ a.nativecode = c;
+ b.ola(a);
+ }
+ };
+ a.prototype.xla = function (a, b) {
+ var c,
+ f;
+ c = b.request.wp;
+ if (c)
+ if (b.U) {
+ if (a.j && c.readyState !== k.Vb.vc.DONE) {
+ switch (c.readyState) {
+ case k.Vb.vc.nK:
+ return;
+ case k.Vb.vc.ox:
+ this.IRa({
+ mediaRequest: b.request
+ });
+ }
+ c.readyState = k.Vb.vc.DONE;
+ if (!c.kc) {
+ f = {
+ mediaRequest: c,
+ readyState: c.readyState,
+ timestamp: this.Av(),
+ cadmiumResponse: b
+ };
+ a.j.Bpa += 1;
+ c.Gsb();
+ c.Qvb() && (a.j.xna += 1, b.Ok.ph = Math.ceil(c.Ufa), b.Ok.Tm = Math.ceil(c.OB), b.Ok.requestTime = Math.floor(c.Xy));
+ c.JG = f;
+ c.dt(f);
+ }
+ }
+ } else
+ c.readyState !== k.Vb.vc.nK && (a = {
+ mediaRequest: b.request,
+ timestamp: this.Av(),
+ errorcode: b.ja,
+ httpcode: b.kj
+ }, this.iw(a));
+ };
+ a.prototype.download = function (a, b) {
+ var c,
+ f;
+ c = this;
+ b = this.cf.download(a, b);
+ if (a.wp) {
+ f = a.wp;
+ -1 < [k.Vb.vc.OPENED, k.Vb.vc.JK].indexOf(f.readyState) && (f.readyState = k.Vb.vc.ox, this.config().Vyb ? b.SIb(function (a) {
+ c.P1(a);
+ }) : this.nRa(f, this.Av()));
+ }
+ b.Iba(function (b) {
+ c.xla(a, b);
+ });
+ b.$Ib(function (a) {
+ c.R1(a);
+ });
+ b.MIb(function (a) {
+ c.iw(a);
+ });
+ return b;
+ };
+ b = a;
+ return b = c.__decorate([p.N(), c.__param(0, p.l(l.oK)), c.__param(1, p.l(h.Jb)), c.__param(2, p.l(m.ex)), c.__param(3, p.l(f.Zd)), c.__param(4, p.l(u.Me)), c.__param(5, p.l(A.fd))], b);
+ })();
+ b.uwa = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ g,
+ h;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.ata = void 0;
+ c = a(0);
+ k = a(1);
+ l = a(7);
+ g = a(149);
+ h = a(132).EventEmitter;
+ d = (function () {
+ function a(a) {
+ function b(b, c) {
+ this.K = b;
+ this.ql = c;
+ this.fZ = !1;
+ this.emit = h.prototype.emit;
+ this.addListener = h.prototype.addListener;
+ this.on = h.prototype.on;
+ this.once = h.prototype.once;
+ this.removeListener = h.prototype.removeListener;
+ this.removeAllListeners = h.prototype.removeAllListeners;
+ this.listeners = h.prototype.listeners;
+ this.listenerCount = h.prototype.listenerCount;
+ h.call(this);
+ this.Bg = a.xb("DownloadTrack");
+ }
+ b.prototype.vq = function () {
+ this.VW = void 0;
+ this.emit("destroyed");
+ };
+ b.prototype.toString = function () {
+ return "id:" + this.VW + " config: " + JSON.stringify(this.K);
+ };
+ b.prototype.toJSON = function () {
+ return "Download Track id:" + this.VW + " config: " + JSON.stringify(this.K);
+ };
+ b.prototype.J2 = function (a) {
+ this.K.connections !== a.connections && (this.K = a);
+ };
+ b.prototype.eo = function () {
+ return 1 < this.K.connections ? !0 : !1;
+ };
+ wa.Object.defineProperties(b.prototype, {
+ cb: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.VW;
+ }
+ },
+ sm: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return void 0 === this.VW;
+ }
+ },
+ config: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.K;
+ }
+ },
+ oD: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.Bg;
+ }
+ },
+ Ll: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.ql.Ll;
+ }
+ }
+ });
+ this.wE = Object.assign(b, new g.bta());
+ }
+ return a = c.__decorate([k.N(), c.__param(0, k.l(l.Jb))], a);
+ })();
+ b.ata = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ g,
+ h,
+ p,
+ m,
+ f,
+ u;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.ej = void 0;
+ d = a(1);
+ c = a(149);
+ k = a(656);
+ l = a(328);
+ g = a(655);
+ h = a(327);
+ p = a(654);
+ m = a(653);
+ f = a(326);
+ u = a(652);
+ b.ej = new d.Kc(function (a) {
+ a(c.Q5).to(k.ata).Z();
+ a(l.M7).to(g.uwa).Z();
+ a(h.i8).to(p.fxa).Z();
+ a(h.O7).to(m.zwa).Z();
+ a(f.N7).to(u.ywa).Z();
+ });
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ g,
+ h,
+ p,
+ m,
+ f,
+ u,
+ w,
+ A;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Nya = void 0;
+ c = a(0);
+ k = a(1);
+ l = a(150);
+ g = a(7);
+ h = a(14);
+ p = a(153);
+ m = a(21);
+ f = a(24);
+ u = a(3);
+ w = a(66);
+ (function (a) {
+ a.$Db = "prepend";
+ a.append = "append";
+ a.kub = "ignore";
+ })(A || (A = {}));
+ d = (function () {
+ var b;
+ function a(a, b, c, f) {
+ this.is = c;
+ this.app = f;
+ this.log = a.xb("TaskScheduler");
+ this.Db = new w.Xi();
+ this.config = b();
+ this.lY = this.XN = 0;
+ this.Oz = [];
+ this.paused = !1;
+ this.P3 = [];
+ this.bHa = [];
+ this.KNa = this.config.iTa || A.append;
+ this.addEventListener = this.Db.addListener;
+ }
+ a.prototype.yEa = function (a) {
+ this.log.trace("adding tasks, number of tasks: " + a.length);
+ this.paused = !1;
+ this.Oz = this.Vub(a);
+ this.XN = 0;
+ this.lY += 1;
+ this.zc();
+ };
+ a.prototype.pause = function () {
+ this.paused = !0;
+ };
+ a.prototype.zc = function () {
+ var a,
+ b,
+ c;
+ a = this;
+ if (this.XN === this.Oz.length)
+ this.log.trace("all tasks completed");
+ else if (this.paused)
+ this.log.trace("in paused state", {
+ currentTaskIndex: this.XN,
+ numberOfTasks: this.Oz.length
+ });
+ else {
+ b = this.trb();
+ c = this.lY;
+ b.startTime = this.app.Yb().ca(u.ia);
+ b.status = p.Oe.Ht;
+ this.Db.$b(l.Pr.mXa, {
+ G: b.G,
+ type: b.type
+ });
+ this.P3.push(b);
+ b.Jg(function (f) {
+ b.endTime = a.app.Yb().ca(u.ia);
+ f ? 0 <= [p.Oe.gj, p.Oe.LX, p.Oe.zN, p.Oe.KX].indexOf(f.status) ? (b.status = f.status, a.Cma(b, l.Pr.kXa, "cancelled task")) : (b.status = p.Oe.yq, a.Cma(b, l.Pr.lXa, "task failed", f)) : (b.status = p.Oe.OJ, a.Cma(b, l.Pr.nXa, "task succeeded"));
+ a.bHa.push(b);
+ a.P3.splice(a.P3.indexOf(b), 1);
+ a.lY === c && (a.XN++, a.zc());
+ });
+ }
+ };
+ a.prototype.trb = function () {
+ return this.Oz[this.XN];
+ };
+ a.prototype.getStats = function (a, b, c) {
+ var f,
+ h,
+ d,
+ k;
+ f = this.bHa.map(function (a) {
+ return a.Fq();
+ });
+ h = this.P3.map(function (a) {
+ return a.Fq();
+ });
+ d = this.is.de(a) && this.is.de(b);
+ k = {};
+ if (this.is.de(c))
+ return (k.Sgb = f.filter(function (a) {
+ return a.movieId === c;
+ }), k);
+ f.concat(h).forEach(function (c) {
+ var f;
+ k[c.type + "_" + c.status] = (k[c.type + "_" + c.status] | 0) + 1;
+ f = c.status == p.Oe.Ht ? c.startTime : c.endTime;
+ d && f && f >= a && f < b && (k[c.type + "_" + c.status + "_delta"] = (k[c.type + "_" + c.status + "_delta"] | 0) + 1);
+ });
+ return k;
+ };
+ a.prototype.Cma = function (a, b, c, f) {
+ var h;
+ h = a.Fq();
+ f ? this.log.warn(c, h, f) : this.log.trace(c, h);
+ this.Db.$b(b, {
+ G: a.G,
+ type: a.type,
+ reason: a.status
+ });
+ a.dt(h);
+ };
+ a.prototype.Vub = function (a) {
+ var b,
+ c;
+ b = this.Oz.filter(function (a) {
+ return a.KCb && a.status === p.Oe.sm;
+ });
+ c = this.KNa;
+ return c === A.kub ? [].concat(a) : c === A.$Db ? b.concat(a) : a.concat(b);
+ };
+ b = a;
+ return b = c.__decorate([k.N(), c.__param(0, k.l(g.Jb)), c.__param(1, k.l(h.fd)), c.__param(2, k.l(m.Zd)), c.__param(3, k.l(f.Me))], b);
+ })();
+ b.Nya = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ g,
+ h,
+ p;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Kya = void 0;
+ c = a(0);
+ k = a(1);
+ l = a(40);
+ g = a(29);
+ h = a(41);
+ p = a(3);
+ d = (function () {
+ var b;
+ function a(a) {
+ return l.me.call(this, a, "PrefetchEventsConfigImpl") || this;
+ }
+ N(a, l.me);
+ wa.Object.defineProperties(a.prototype, {
+ vVa: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return !0;
+ }
+ },
+ Sja: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return p.dQ(5);
+ }
+ }
+ });
+ b = a;
+ c.__decorate([h.config(h.jd, "sendPrefetchEventLogs")], b.prototype, "vVa", null);
+ c.__decorate([h.config(h.hh, "logsInterval")], b.prototype, "Sja", null);
+ return b = c.__decorate([k.N(), c.__param(0, k.l(g.bj))], b);
+ })();
+ b.Kya = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ g;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.dya = void 0;
+ c = a(0);
+ k = a(1);
+ l = a(7);
+ g = a(21);
+ d = (function () {
+ var b;
+ function a(a, b) {
+ this.La = b;
+ this.ka = a.xb("PlayPredictionDeserializer");
+ }
+ a.prototype.klb = function (a) {
+ var b;
+ b = this;
+ try {
+ return {
+ direction: a.direction,
+ Lwb: a.layoutHasChanged,
+ iHb: a.rowInteractionIndex,
+ Da: a.lolomos.map(function (a) {
+ return b.glb(a);
+ })
+ };
+ } catch (u) {
+ this.ka.error("Failed to deserialize update Payload: ", {
+ payload: JSON.stringify(a)
+ });
+ }
+ };
+ a.prototype.glb = function (a) {
+ var b;
+ b = this;
+ return {
+ context: a.context,
+ list: a.list.map(function (a) {
+ return b.flb(a);
+ }),
+ requestId: a.requestId,
+ rowIndex: a.rowIndex,
+ kHb: a.rowSegment
+ };
+ };
+ a.prototype.flb = function (a) {
+ var b,
+ c;
+ b = {
+ Oc: a.pts,
+ property: a.property,
+ ma: a.viewableId,
+ index: a.index
+ };
+ c = a.preplay;
+ this.La.de(c) && (b.YI = this.jlb(c));
+ a = a.params;
+ this.La.de(a) && (b.gb = this.mIa(a));
+ return b;
+ };
+ a.prototype.jlb = function (a) {
+ var b;
+ b = {
+ Oc: a.pts,
+ ma: a.viewableId,
+ nD: a.pipelineNum,
+ index: a.index
+ };
+ a = a.params;
+ this.La.de(a) && (b.gb = this.mIa(a));
+ return b;
+ };
+ a.prototype.mIa = function (a) {
+ return {
+ we: a.uiLabel,
+ li: a.trackingId,
+ oo: a.sessionParams
+ };
+ };
+ a.prototype.nIa = function (a) {
+ var b;
+ b = this;
+ try {
+ return a.map(function (a) {
+ return b.hlb(a);
+ });
+ } catch (u) {
+ this.ka.error("Failed to deserialize uprepareList", {
+ prepareList: JSON.stringify(a)
+ });
+ }
+ };
+ a.prototype.hlb = function (a) {
+ var b,
+ c;
+ c = a.params;
+ this.La.de(c) && (b = this.ilb(c));
+ return {
+ G: a.movieId,
+ Ld: a.priority,
+ force: a.force,
+ gb: b,
+ we: a.uiLabel,
+ e1b: a.uiExpectedStartTime,
+ d1b: a.uiExpectedEndTime,
+ Vj: a.firstTimeAdded
+ };
+ };
+ a.prototype.ilb = function (a) {
+ var b,
+ c;
+ b = void 0;
+ c = a.sessionParams;
+ this.La.de(c) && (b = c);
+ return {
+ eN: this.elb(a.authParams),
+ oo: b,
+ li: a.trackingId,
+ T: a.startPts,
+ xa: a.manifest,
+ $j: a.isBranching
+ };
+ };
+ a.prototype.elb = function (a) {
+ return {
+ FSa: (a || ({})).pinCapableClient
+ };
+ };
+ a.prototype.lIb = function (a) {
+ var b,
+ c;
+ try {
+ b = "";
+ this.La.de(a.$Sa) && (b = JSON.stringify(this.oIb(JSON.parse(a.$Sa))));
+ c = "";
+ this.La.de(a.aTa) && (c = JSON.stringify(this.pIb(JSON.parse(a.aTa))));
+ return {
+ dest_id: a.AY,
+ offset: a.offset,
+ predictions: a.eTa.map(this.rIb, this),
+ ppm_input: b,
+ ppm_output: c,
+ prepare_type: a.R_b
+ };
+ } catch (w) {
+ this.ka.error("Failed to serialize serializeDestinyPrepareEvent", {
+ prepareList: JSON.stringify(a)
+ });
+ }
+ };
+ a.prototype.rIb = function (a) {
+ return {
+ title_id: a.pr
+ };
+ };
+ a.prototype.oIb = function (a) {
+ return {
+ direction: a.direction,
+ layoutHasChanged: a.Lwb,
+ rowInteractionIndex: a.iHb,
+ lolomos: a.Da.map(this.nIb, this)
+ };
+ };
+ a.prototype.nIb = function (a) {
+ return {
+ context: a.context,
+ list: a.list.map(this.mIb, this),
+ requestId: a.requestId,
+ rowIndex: a.rowIndex,
+ rowSegment: a.kHb
+ };
+ };
+ a.prototype.mIb = function (a) {
+ var b,
+ c;
+ this.La.de(a.YI) && (b = this.sIb(a.YI));
+ this.La.de(a.gb) && (c = this.joa(a.gb));
+ return {
+ preplay: b,
+ pts: a.Oc,
+ viewableId: a.ma,
+ params: c,
+ property: a.property,
+ index: a.index
+ };
+ };
+ a.prototype.sIb = function (a) {
+ var b;
+ this.La.de(a.gb) && (b = this.joa(a.gb));
+ return {
+ pts: a.Oc,
+ viewableId: a.ma,
+ params: b,
+ pipelineNum: a.nD,
+ index: a.index
+ };
+ };
+ a.prototype.joa = function (a) {
+ return {
+ uiLabel: a.we,
+ trackingId: a.li,
+ sessionParams: a.oo
+ };
+ };
+ a.prototype.pIb = function (a) {
+ return a.map(this.qIb, this);
+ };
+ a.prototype.qIb = function (a) {
+ var b;
+ this.La.de(a.gb) && (b = this.joa(a.gb));
+ return {
+ movieId: a.G,
+ priority: a.Ld,
+ params: b,
+ uiLabel: a.we,
+ firstTimeAdded: a.Vj,
+ viewableId: a.ma,
+ pts: a.Oc
+ };
+ };
+ b = a;
+ return b = c.__decorate([k.N(), c.__param(0, k.l(l.Jb)), c.__param(1, k.l(g.Zd))], b);
+ })();
+ b.dya = d;
+ }, function (d, b, a) {
+ var k,
+ l,
+ g,
+ h,
+ p,
+ m,
+ f,
+ u,
+ w,
+ A;
+ function c(a, b, c, f, h, d, k, m) {
+ this.eh = a;
+ this.WC = b;
+ this.ya = c;
+ this.nz = h;
+ this.config = d;
+ this.Aga = k;
+ this.$la = m;
+ this.B2 = [];
+ this.qja = [];
+ this.tma = {};
+ this.ka = f.xb("PrefetchEvents");
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Lya = void 0;
+ k = a(0);
+ l = a(121);
+ g = a(1);
+ h = a(3);
+ p = a(47);
+ m = a(62);
+ f = a(36);
+ u = a(7);
+ w = a(329);
+ A = a(199);
+ d = (function () {
+ var b;
+ function a(a, b, c, f, h, d) {
+ this.eh = a;
+ this.WC = b;
+ this.ya = c;
+ this.sf = f;
+ this.config = h;
+ this.$la = d;
+ }
+ a.prototype.create = function (a, b) {
+ return new c(this.eh, this.WC, this.ya, this.sf, a, this.config, b, this.$la);
+ };
+ b = a;
+ return b = k.__decorate([g.N(), k.__param(0, g.l(p.uk)), k.__param(1, g.l(m.zo)), k.__param(2, g.l(f.Tg)), k.__param(3, g.l(u.Jb)), k.__param(4, g.l(w.j9)), k.__param(5, g.l(A.HU))], b);
+ })();
+ b.Lya = d;
+ c.prototype.gfb = function (a, b) {
+ this.NC(l.Ne.lA.j0a, a, b, void 0, "");
+ };
+ c.prototype.ifb = function (a, b, c) {
+ this.NC(l.Ne.lA.k0a, a, b, void 0, c);
+ };
+ c.prototype.ffb = function (a, b, c) {
+ this.NC(l.Ne.lA.i0a, a, b, void 0, c);
+ };
+ c.prototype.dfb = function (a, b, c) {
+ this.NC(l.Ne.lA.g0a, a, b, void 0, c);
+ };
+ c.prototype.wN = function (a, b, c) {
+ this.NC(l.Ne.lA.h0a, a, b, void 0, c);
+ };
+ c.prototype.jDb = function (a) {
+ this.NC(l.Ne.lA.t5a, void 0, a);
+ };
+ c.prototype.Pm = function (a, b, c, f, h, d, k) {
+ this.dX() && (this.NC(l.Ne.lA.E6a, void 0, a), this.Hxb(a, b, c, f, h, d, k), this.ZJa(), this.iPa());
+ this.Nvb(a) && this.PGb();
+ };
+ c.prototype.nlb = function (a) {
+ a = {
+ dest_id: a,
+ cache: this.ioa(this.Aga())
+ };
+ this.wR("destiny_start", a);
+ };
+ c.prototype.UDb = function (a) {
+ (a = this.$la.lIb(a)) ? this.wR("destiny_prepare", a) : this.ka.error("failed to serialize prepare event");
+ };
+ c.prototype.ZJa = function () {
+ 0 < this.B2.length && this.dX() && (this.wR("destiny_events", {
+ dest_id: this.nz.Go,
+ events: this.B2
+ }), this.B2 = []);
+ this.g3 && (this.g3.cancel(), this.g3 = void 0);
+ this.mJa();
+ };
+ c.prototype.iPa = function () {
+ var a;
+ if (this.hfb() && this.dX()) {
+ a = this.Aga();
+ this.qja = a;
+ a = {
+ dest_id: this.nz.Go,
+ offset: this.nz.TZ(),
+ cache: this.ioa(a)
+ };
+ this.wR("destiny_cachestate", a);
+ }
+ this.f3 && (this.f3.cancel(), this.f3 = void 0);
+ this.lJa();
+ };
+ c.prototype.update = function (a) {
+ var b;
+ b = this;
+ a.Da.forEach(function (a) {
+ a.list.forEach(function (a) {
+ b.tma[a.ma] = !0;
+ });
+ });
+ };
+ c.prototype.Nvb = function (a) {
+ return this.tma[a];
+ };
+ c.prototype.hfb = function () {
+ var a,
+ b,
+ c;
+ a = this;
+ b = this.Aga();
+ if (b.length !== this.qja.length)
+ return !0;
+ c = !1;
+ b.forEach(function (b, f) {
+ try {
+ JSON.stringify(b) !== JSON.stringify(a.qja[f]) && (c = !0);
+ } catch (T) {
+ a.ka.error("Failed to stringify cachedTitle", T);
+ }
+ });
+ return c;
+ };
+ c.prototype.NC = function (a, b, c, f, h) {
+ this.dX() && (a = {
+ offset: this.nz.TZ(),
+ event_type: a,
+ title_id: c,
+ asset_type: b,
+ size: f,
+ reason: h
+ }, this.B2.push(a), this.mJa(), this.lJa());
+ };
+ c.prototype.mJa = function () {
+ this.g3 || (this.g3 = this.ya.Mh(this.config.Sja, this.ZJa.bind(this)));
+ };
+ c.prototype.lJa = function () {
+ this.f3 || (this.f3 = this.ya.Mh(this.config.Sja, this.iPa.bind(this)));
+ };
+ c.prototype.Hxb = function (a, b, c, f, d, k, m) {
+ var p;
+ p = [];
+ c && p.push({
+ pr: a,
+ Su: l.Ne.qk.xqa,
+ state: l.Ne.QS.aT
+ });
+ f && p.push({
+ pr: a,
+ Su: l.Ne.qk.cx,
+ state: l.Ne.QS.aT
+ });
+ d && p.push({
+ pr: a,
+ Su: l.Ne.qk.SK,
+ state: l.Ne.QS.aT
+ });
+ (0 < k.ca(h.ia) || 0 < m.ca(h.ia)) && p.push({
+ pr: a,
+ Su: l.Ne.qk.MEDIA,
+ state: l.Ne.QS.aT,
+ Zdb: k.ca(h.ia),
+ wOb: m.ca(h.ia)
+ });
+ a = {
+ dest_id: this.nz.Go,
+ offset: this.nz.TZ(),
+ xid: b,
+ cache: this.ioa(p)
+ };
+ this.wR("destiny_playback", a);
+ };
+ c.prototype.wR = function (a, b) {
+ this.config.vVa && (a = this.WC.Mn(a, "info", b), this.eh.Ic(a));
+ };
+ c.prototype.ioa = function (a) {
+ return a.map(function (a) {
+ return {
+ title_id: a.pr,
+ state: a.state,
+ asset_type: a.Su,
+ size: a.size,
+ audio_ms: a.Zdb,
+ video_ms: a.wOb
+ };
+ });
+ };
+ c.prototype.dX = function () {
+ return 0 !== this.nz.Go;
+ };
+ c.prototype.PGb = function () {
+ this.nz.OGb();
+ this.tma = {};
+ };
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ g,
+ h,
+ p,
+ m,
+ f,
+ u;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Jc = void 0;
+ d = a(1);
+ c = a(121);
+ k = a(661);
+ l = a(199);
+ g = a(660);
+ h = a(659);
+ p = a(329);
+ m = a(105);
+ f = a(150);
+ u = a(658);
+ b.Jc = new d.Kc(function (a) {
+ a(p.j9).to(h.Kya).Z();
+ a(c.k9).to(k.Lya).Z();
+ a(l.HU).to(g.dya).Z();
+ a(f.l9).to(u.Nya).Z();
+ a(m.SA).zf(function () {
+ return function () {
+ return t._cad_global.videoPreparer;
+ };
+ });
+ });
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ g,
+ h,
+ p;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.cBa = void 0;
+ c = a(0);
+ k = a(1);
+ l = a(9);
+ g = a(32);
+ h = a(200);
+ p = a(6);
+ d = (function () {
+ var b;
+ function a() {}
+ a.prototype.Xrb = function () {
+ var a;
+ a = t.devicePixelRatio || 1;
+ return {
+ width: this.Vaa.MQb || l.Nr.width * a,
+ height: this.Vaa.LQb || l.Nr.height * a
+ };
+ };
+ wa.Object.defineProperties(a.prototype, {
+ Vaa: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return p.ba.get(g.Xp);
+ }
+ }
+ });
+ b = a;
+ c.__decorate([h.CP], b.prototype, "Vaa", null);
+ return b = c.__decorate([k.N()], b);
+ })();
+ b.cBa = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.axa = void 0;
+ c = a(0);
+ k = a(1);
+ l = a(185);
+ d = (function () {
+ var b;
+ function a() {}
+ a.prototype.compare = function (a, b) {
+ var c;
+ c = [];
+ this.zda(a, b, "", c);
+ return c;
+ };
+ a.prototype.zda = function (a, b, c, h) {
+ var f;
+ f = this;
+ if (l.ax.Qu(a))
+ l.ax.Qu(b) && a.length === b.length ? a.forEach(function (d, k) {
+ f.zda(a[k], b[k], c + "[" + k + "]", h);
+ }) : h.push({
+ a: a,
+ b: b,
+ path: c
+ });
+ else if (l.ax.xB(a) && null != a) {
+ if (l.ax.xB(b) && null != b) {
+ for (var d in a) {
+ this.zda(a[d], b[d], c + "." + d, h);
+ }
+ for (var k in b) {
+ (k in a) || void 0 === b[k] || h.push({
+ a: void 0,
+ b: b[k],
+ path: c + "." + k
+ });
+ }
+ } else
+ h.push({
+ a: a,
+ b: b,
+ path: c
+ });
+ } else
+ a !== b && h.push({
+ a: a,
+ b: b,
+ path: c
+ });
+ };
+ b = a;
+ return b = c.__decorate([k.N()], b);
+ })();
+ b.axa = d;
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.bxa = void 0;
+ b.bxa = "ObjectComparerSymbol";
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ g;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Wya = void 0;
+ c = a(0);
+ k = a(53);
+ l = a(31);
+ g = a(1);
+ d = (function () {
+ var b,
+ d;
+ function a(a) {
+ this.location = a;
+ k.Hm(this, "location");
+ }
+ a.zQ = function (a) {
+ var c,
+ h,
+ d;
+ c = {};
+ if (0 < a.length) {
+ a = a.split("&");
+ for (var f = 0; f < a.length; f++) {
+ h = a[f].trim();
+ d = h.indexOf("=");
+ 0 <= d ? c[decodeURIComponent(h.substr(0, d).replace(b.uxa, "%20"))] = decodeURIComponent(h.substr(d + 1).replace(b.uxa, "%20")) : c[h.toLowerCase()] = "";
+ }
+ }
+ return c;
+ };
+ wa.Object.defineProperties(a.prototype, {
+ OEb: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.data ? this.data : this.data = b.zQ(this.GTa);
+ }
+ },
+ GTa: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ var a;
+ if (void 0 !== this.SQ)
+ return this.SQ;
+ this.SQ = this.location.search.substr(1);
+ a = this.SQ.indexOf("#");
+ 0 <= a && (this.SQ = this.GTa.substr(0, a));
+ return this.SQ;
+ }
+ }
+ });
+ d = b = a;
+ d.uxa = /[+]/g;
+ return d = b = c.__decorate([g.N(), c.__param(0, g.l(l.n7))], d);
+ })();
+ b.Wya = d;
+ }, function (d, b, a) {
+ var c,
+ k;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.LAa = void 0;
+ c = a(0);
+ k = a(1);
+ d = (function () {
+ var b;
+ function a() {}
+ a.prototype.vKa = function (a) {
+ var b;
+ b = this;
+ return a ? (a ^ 16 * Math.random() >> a / 4).toString(16) : ("10000000-1000-4000-8000-100000000000").replace(/[018]/g, function (a) {
+ return b.vKa(a);
+ });
+ };
+ b = a;
+ return b = c.__decorate([k.N()], b);
+ })();
+ b.LAa = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ g,
+ h,
+ p;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.eAa = void 0;
+ c = a(0);
+ k = a(53);
+ l = a(31);
+ g = a(1);
+ h = a(21);
+ p = a(139);
+ d = (function () {
+ var b,
+ d;
+ function a(a, b) {
+ this.is = a;
+ this.json = b;
+ k.Hm(this, "json");
+ }
+ a.prototype.STa = function (a) {
+ var c;
+ c = this;
+ return b.read(a, function (a) {
+ return parseInt(a);
+ }, function (a) {
+ return c.is.bca(a);
+ });
+ };
+ a.prototype.Pma = function (a) {
+ var c;
+ c = this;
+ return b.read(a, function (a) {
+ return "true" == a ? !0 : "false" == a ? !1 : void 0;
+ }, function (a) {
+ return c.is.LM(a);
+ });
+ };
+ a.prototype.Xa = function (a) {
+ var c;
+ c = this;
+ return b.read(a, function (a) {
+ return parseInt(a);
+ }, function (a) {
+ return c.is.ks(a);
+ });
+ };
+ a.prototype.bFb = function (a) {
+ var c;
+ c = this;
+ return b.read(a, function (a) {
+ return parseFloat(a);
+ }, function (a) {
+ return c.is.fg(a);
+ });
+ };
+ a.prototype.RTa = function (a, c) {
+ return b.read(a, function (a) {
+ return b.eob(a, c);
+ }, function (a) {
+ return void 0 !== a;
+ });
+ };
+ a.prototype.Sma = function (a, c) {
+ return b.read(a, function (a) {
+ return a;
+ }, function (a) {
+ return c ? c.test(a) : !0;
+ });
+ };
+ a.prototype.TTa = function (a) {
+ var c,
+ f;
+ c = void 0 === c ? function () {
+ return !0;
+ }
+ : c;
+ f = this;
+ try {
+ return b.read(a, function (a) {
+ return f.json.parse(decodeURIComponent(a));
+ }, function (a) {
+ return f.is.xB(a) && c(a);
+ });
+ } catch (C) {
+ return new p.kn();
+ }
+ };
+ a.prototype.Vd = function (a, c, f) {
+ var h,
+ d;
+ f = void 0 === f ? 1 : f;
+ h = this;
+ a = a.trim();
+ d = c instanceof Function ? c : this.Hjb(c, f);
+ c = a.indexOf("[");
+ f = a.lastIndexOf("]");
+ if (0 != c || f != a.length - 1)
+ return new p.kn();
+ a = a.substring(c + 1, f);
+ try {
+ return b.hCb(a).map(function (a) {
+ a = d(h, b.iOb(a));
+ if (a instanceof p.kn)
+ throw a;
+ return a;
+ });
+ } catch (H) {
+ return H instanceof p.kn ? H : new p.kn();
+ }
+ };
+ a.prototype.Hjb = function (a, c) {
+ var f;
+ c = void 0 === c ? 1 : c;
+ f = this;
+ return function (h, d) {
+ h = b.Arb(a);
+ return 1 < c ? f.Vd(d, a, c - 1) : h(f, d);
+ };
+ };
+ a.eob = function (a, b) {
+ var f;
+ for (var c in b) {
+ f = parseInt(c);
+ if (b[f] == a)
+ return f;
+ }
+ };
+ a.read = function (a, b, c) {
+ a = b(a);
+ return void 0 !== a && c(a) ? a : new p.kn();
+ };
+ a.Arb = function (a) {
+ switch (a) {
+ case "int":
+ return function (a, b) {
+ return a.STa(b);
+ };
+ case "bool":
+ return function (a, b) {
+ return a.Pma(b);
+ };
+ case "uint":
+ return function (a, b) {
+ return a.Xa(b);
+ };
+ case "float":
+ return function (a, b) {
+ return a.bFb(b);
+ };
+ case "string":
+ return function (a, b) {
+ return a.Sma(b);
+ };
+ case "object":
+ return function (a, b) {
+ return a.TTa(b);
+ };
+ }
+ };
+ a.hCb = function (a) {
+ var l;
+ for (var b = [["[", "]"]], c = [], f = 0, h = 0, d = 0, k = [], m = {}; h < a.length; (m = {
+ "char": m["char"]
+ }, ++h)) {
+ m["char"] = a.charAt(h);
+ l = void 0;
+ "," == m["char"] && 0 == d ? (c.push(a.substr(f, h - f)), f = h + 1) : (l = b.find((function (a) {
+ return function (b) {
+ return b[0] == a["char"];
+ };
+ })(m))) ? (++d, k.push(l)) : 0 < k.length && k[k.length - 1][1] == m["char"] && (--d, k.pop());
+ }
+ if (f != h)
+ c.push(a.substr(f, h - f));
+ else if (f == h && 0 < f)
+ throw new p.kn();
+ return c;
+ };
+ a.iOb = function (a) {
+ var b;
+ b = a.charAt(0);
+ if ('"' == b || "'" == b) {
+ if (a.charAt(a.length - 1) != b)
+ throw new p.kn();
+ return a.substring(1, a.length - 1);
+ }
+ return a;
+ };
+ d = b = a;
+ return d = b = c.__decorate([g.N(), c.__param(0, g.l(h.Zd)), c.__param(1, g.l(l.bx))], d);
+ })();
+ b.eAa = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ g,
+ h,
+ p,
+ m,
+ f,
+ u,
+ w;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.ad = void 0;
+ d = a(1);
+ c = a(668);
+ k = a(667);
+ l = a(666);
+ g = a(139);
+ h = a(510);
+ p = a(354);
+ m = a(665);
+ f = a(664);
+ u = a(330);
+ w = a(663);
+ b.ad = new d.Kc(function (a) {
+ a(g.bV).to(c.eAa).Z();
+ a(h.MU).to(l.Wya).Z();
+ a(p.m$).to(k.LAa).Z();
+ a(m.bxa).to(f.axa).Z();
+ a(u.t$).to(w.cBa).Z();
+ });
+ }, function (d, b, a) {
+ var c,
+ k,
+ l;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.usa = void 0;
+ c = a(0);
+ k = a(331);
+ l = a(1);
+ d = (function () {
+ var b;
+ function a(a) {
+ this.iAb = a;
+ }
+ a.prototype.YKa = function () {
+ var a;
+ a = this.iAb.getDeviceId();
+ return new Promise(function (b, c) {
+ a.oncomplete = function () {
+ b(a.result);
+ };
+ a.onerror = function () {
+ c(a.error);
+ };
+ });
+ };
+ b = a;
+ return b = c.__decorate([l.N(), c.__param(0, l.l(k.e8))], b);
+ })();
+ b.usa = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ g,
+ h;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.crypto = void 0;
+ d = a(1);
+ c = a(331);
+ k = a(360);
+ l = a(361);
+ g = a(670);
+ h = a(9);
+ b.crypto = new d.Kc(function (a) {
+ a(l.v5).to(g.usa).Z();
+ a(c.e8).ji(h.gu);
+ a(k.w5).ji(h.pU);
+ });
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ g,
+ h,
+ p,
+ m,
+ f,
+ u;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.T4a = void 0;
+ c = a(0);
+ k = a(1);
+ l = a(25);
+ g = a(21);
+ h = a(85);
+ p = a(155);
+ m = a(334);
+ f = a(104);
+ u = a(202);
+ d = (function () {
+ var b;
+ function a(a, b, c) {
+ var f;
+ f = m.zL.call(this, a, b, "network") || this;
+ f.oea = c;
+ f.FY = p.pT.E4a;
+ f.vyb = 30;
+ f.KBb = function (a) {
+ f.FY = a.target.value;
+ f.refresh();
+ };
+ f.hBb = function () {
+ f.data = {};
+ f.refresh();
+ };
+ f.XUa = function (a) {
+ var b,
+ c;
+ b = Number(a.target.id);
+ a = a.target.getAttribute("data-type");
+ b = f.data[f.FY][b].value;
+ c = JSON.stringify(b, null, 4);
+ "copy" === a ? u.kT.Rda(c) : "log" === a && console.log(b);
+ };
+ return f;
+ }
+ N(a, m.zL);
+ a.prototype.Eb = function () {
+ var a;
+ a = this;
+ if (this.Jl)
+ return Promise.resolve();
+ t.addEventListener("keydown", function (b) {
+ b.ctrlKey && b.altKey && b.shiftKey && b.keyCode == f.Hr.K4a && a.toggle();
+ });
+ this.data = {};
+ this.oea.addListener(p.G5.W5a, function (b) {
+ var c;
+ a.data[b.type] || (a.data[b.type] = []);
+ c = a.data[b.type];
+ c.length === a.vyb && c.shift();
+ c.push(b);
+ b.type === a.FY && a.refresh();
+ });
+ this.Jl = !0;
+ return Promise.resolve();
+ };
+ a.prototype.nj = function () {
+ return '";
+ };
+ a.prototype.rha = function (a, b, c) {
+ var f;
+ f = a.toString();
+ b = '"' + b + '" ';
+ c = this.cGa.Ck(c);
+ return '\n \n ' + f + ' \n ' + b + ' \n \n \n \n \n Copy\n \n \n Log\n \n
\n \n \n ';
+ };
+ a.prototype.Dha = function () {
+ for (var a = '' + this.nj(), b = this.data[this.FY] || [], c = 0; c < b.length; ++c) {
+ a += this.rha(c, b[c].name, b[c].value);
+ }
+ return a + "
";
+ };
+ a.prototype.SKa = function () {
+ var a;
+ a = this.md.createElement("button", m.sE, "Clear", {
+ "class": this.prefix + "-display-btn"
+ });
+ a.onclick = this.hBb;
+ return [a, this.Zjb(), this.Qjb()];
+ };
+ a.prototype.Zjb = function () {
+ var a;
+ a = this.md.createElement("select", m.sE, Object.keys(p.pT).reduce(function (a, b) {
+ b = p.pT[b];
+ return a + ('' + b + " ");
+ }, ""), {
+ "class": this.prefix + "-display-select"
+ });
+ a.onchange = this.KBb;
+ return a;
+ };
+ a.prototype.Qjb = function () {
+ var a,
+ b,
+ c,
+ f;
+ a = this;
+ b = this.md.createElement("input", "margin:3px;", void 0, {
+ id: "preventRefresh",
+ type: "checkbox",
+ title: "PreventRefresh"
+ });
+ b.checked = this.NQ;
+ b.onchange = function () {
+ return a.fMb();
+ };
+ c = this.md.createElement("label", void 0, "Prevent Refresh", {
+ "for": "preventRefresh"
+ });
+ f = this.md.createElement("div", void 0, void 0, {
+ "class": this.prefix + "-display-div"
+ });
+ f.appendChild(b);
+ f.appendChild(c);
+ return f;
+ };
+ a.prototype.iUa = function () {
+ return Promise.resolve(this.Dha());
+ };
+ b = a;
+ return b = c.__decorate([k.N(), c.__param(0, k.l(l.hf)), c.__param(1, k.l(g.Zd)), c.__param(2, k.l(h.DK))], b);
+ })();
+ b.T4a = d;
+ }, function (d, b, a) {
+ var k,
+ l,
+ g,
+ h,
+ p,
+ m,
+ f,
+ u,
+ w,
+ A,
+ n,
+ q,
+ M,
+ H,
+ G,
+ T,
+ S,
+ aa;
+ function c() {}
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Eva = void 0;
+ k = a(0);
+ l = a(1);
+ g = a(25);
+ h = a(98);
+ p = a(470);
+ m = a(36);
+ f = a(37);
+ u = a(3);
+ w = a(24);
+ A = a(72);
+ n = a(7);
+ q = a(97);
+ M = a(201);
+ H = a(332);
+ G = a(70);
+ T = a(104);
+ S = a(202);
+ c.download = function (a, b) {
+ return c.Eqb(a).then(function (a) {
+ return c.Csb(a, b.join("\r\n")).then(function (a) {
+ return c.Olb(a.filename, a.text);
+ });
+ });
+ };
+ c.Eqb = function (a) {
+ return new Promise(function (b, c) {
+ var f,
+ h,
+ d,
+ k,
+ m,
+ p,
+ l;
+ try {
+ f = new Date();
+ h = f.getDate().toString();
+ d = (f.getMonth() + 1).toString();
+ k = f.getFullYear().toString();
+ m = f.getHours().toString();
+ p = f.getMinutes().toString();
+ l = f.getSeconds().toString();
+ 1 === h.length && (h = "0" + h);
+ 1 === d.length && (d = "0" + d);
+ 1 === m.length && (m = "0" + m);
+ 1 === p.length && (p = "0" + p);
+ 1 === l.length && (l = "0" + l);
+ b(k + d + h + m + p + l + "." + a + ".log");
+ } catch (ha) {
+ c(ha);
+ }
+ });
+ };
+ c.Csb = function (a, b) {
+ return new Promise(function (c, f) {
+ try {
+ c({
+ filename: a,
+ text: URL.createObjectURL(new Blob([b], {
+ type: "text/plain"
+ }))
+ });
+ } catch (ia) {
+ f(ia);
+ }
+ });
+ };
+ c.Olb = function (a, b) {
+ var c;
+ try {
+ c = document.createElement("a");
+ c.setAttribute("href", b);
+ c.setAttribute("download", a);
+ c.style.display = "none";
+ document.body.appendChild(c);
+ c.click();
+ document.body.removeChild(c);
+ return Promise.resolve();
+ } catch (fa) {
+ return Promise.reject(fa);
+ }
+ };
+ aa = (function () {
+ function a(b) {
+ var c;
+ this.elements = [];
+ c = document.createElementNS(a.XR, "svg");
+ c.setAttribute("viewBox", b);
+ this.elements.push(c);
+ }
+ a.prototype.GJ = function () {
+ var b;
+ b = document.createElementNS(a.XR, "g");
+ b.setAttribute("stroke", "none");
+ b.setAttribute("stroke-width", (1).toString());
+ b.setAttribute("fill", "none");
+ b.setAttribute("fill-rule", "evenodd");
+ b.setAttribute("stroke-linecap", "round");
+ this.addElement(b);
+ return this;
+ };
+ a.prototype.HJ = function (b, c, f) {
+ var h;
+ h = document.createElementNS(a.XR, "path");
+ h.setAttribute("d", b);
+ c && h.setAttribute("fill", c);
+ f && h.setAttribute("fill-rule", f);
+ this.addElement(h);
+ return this;
+ };
+ a.prototype.NR = function (b, c, f, h, d) {
+ var k;
+ d = void 0 === d ? "#000000" : d;
+ k = document.createElementNS(a.XR, "rect");
+ k.setAttribute("x", b.toString());
+ k.setAttribute("y", c.toString());
+ k.setAttribute("height", f.toString());
+ k.setAttribute("width", h.toString());
+ d && k.setAttribute("fill", d);
+ this.addElement(k);
+ return this;
+ };
+ a.prototype.mKb = function () {
+ var b;
+ b = document.createElementNS(a.XR, "polygon");
+ b.setAttribute("points", "0 0 24 0 24 24 0 24");
+ b.setAttribute("transform", "translate(12.000000, 12.000000) scale(-1, 1) translate(-12.000000, -12.000000)");
+ this.addElement(b);
+ return this;
+ };
+ a.prototype.end = function () {
+ this.elements.pop();
+ return this;
+ };
+ a.prototype.Ck = function () {
+ if (1 < this.elements.length)
+ throw new RangeError("Some item wasn't terminated correctly");
+ if (0 === this.elements.length)
+ throw new RangeError("Too many items were terminated");
+ return this.elements[0];
+ };
+ a.prototype.addElement = function (a) {
+ if (0 === this.elements.length)
+ throw new RangeError("Too many items were terminated");
+ this.elements[this.elements.length - 1].appendChild(a);
+ this.elements.push(a);
+ };
+ wa.Object.defineProperties(a, {
+ background: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return "transparent";
+ }
+ },
+ XB: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return "#000000";
+ }
+ }
+ });
+ a.XR = "http://www.w3.org/2000/svg";
+ return a;
+ })();
+ d = (function () {
+ var b;
+ function a(a, b, f, h, d, k, m, p, l, g) {
+ var r;
+ r = this;
+ this.Aa = a;
+ this.app = b;
+ this.md = f;
+ this.ya = h;
+ this.Ul = d;
+ this.config = k;
+ this.qy = m;
+ this.opa = p;
+ this.rkb = l;
+ this.lk = g;
+ this.BLb = function () {
+ r.uS.Pc(function () {
+ r.update();
+ });
+ };
+ this.clear = function () {
+ r.entries = [];
+ r.update();
+ };
+ this.vQa = function () {
+ r.Wd.$H = !r.Wd.$H;
+ r.$y && r.fz && (r.Wd.$H ? (r.$y.style.display = "inline-block", r.fz.style.display = "none") : (r.fz.style.display = "inline-block", r.$y.style.display = "none"));
+ r.RD(!1);
+ };
+ this.Nxb = function (a) {
+ var b;
+ r.entries.push(a);
+ b = r.config.gI;
+ 0 <= b && r.entries.length > b && r.entries.shift();
+ void 0 === r.Wd.bv[a.rm] && (r.Wd.bv[a.rm] = !0, r.RD(!1));
+ r.Wd.fo && !r.rXa ? r.BLb() : r.uS.Pc();
+ };
+ this.Plb = function () {
+ c.download("all", r.entries.map(function (a) {
+ return a.e4(!1, !1);
+ }))["catch"](function (a) {
+ console.error("Unable to download all logs to the file", a);
+ });
+ };
+ this.Jl = !1;
+ this.Wd = {
+ fo: !1,
+ $H: !0,
+ EY: !0,
+ Qja: n.pi.S6,
+ bv: {}
+ };
+ this.uS = this.opa(u.qh(1));
+ this.$nb = this.rkb(u.Gb(250));
+ this.entries = [];
+ }
+ a.prototype.Eb = function () {
+ var a;
+ a = this;
+ this.Il || (this.Il = new Promise(function (b) {
+ t.addEventListener("keydown", function (b) {
+ b.ctrlKey && b.altKey && b.shiftKey && (b.keyCode == T.Hr.W3a ? a.toggle() : b.keyCode == T.Hr.E && S.kT.Rda(a.qy().Ch));
+ });
+ a.Ul.K2(M.w7.g1a, a.Nxb);
+ b();
+ }));
+ return this.Il;
+ };
+ a.prototype.show = function () {
+ document.body && (this.element || (this.jjb(), this.Jl = !0), !this.Wd.fo && this.element && (document.body.appendChild(this.element), this.Wd.fo = !0, this.update(!0)));
+ };
+ a.prototype.ip = function () {
+ this.Jl && this.Wd.fo && this.element && (document.body.removeChild(this.element), this.Wd.fo = !1);
+ };
+ a.prototype.toggle = function () {
+ this.Wd.fo ? this.ip() : this.show();
+ this.RD(!1);
+ };
+ a.prototype.jjb = function () {
+ var a,
+ b;
+ try {
+ a = this.createElement("div", "position:fixed;left:10px;top:30px;right:10px;z-index:10000;color:#000;bottom:10px;", void 0, {
+ "class": "player-log"
+ });
+ b = this.createElement("style");
+ b.type = "text/css";
+ b.appendChild(document.createTextNode("button:focus { outline: none; }"));
+ a.appendChild(b);
+ a.appendChild(this.Zm = this.Xjb());
+ a.appendChild(this.Yjb());
+ a.appendChild(this.cjb());
+ this.element = a;
+ } catch (ia) {
+ console.error("Unable to create the log console", ia);
+ }
+ };
+ a.prototype.Xjb = function () {
+ var a,
+ b;
+ a = this;
+ b = this.createElement("textarea", "position:absolute;resize:none;box-sizing:border-box;width:100%;height:100%;margin:0;color:#040;font-size:11px;font-family:monospace;overflow:scroll;background-color:rgba(255,255,255,0.6)");
+ b.setAttribute("wrap", "off");
+ b.setAttribute("readonly", "readonly");
+ b.addEventListener("focus", function () {
+ a.rXa = !0;
+ a.update();
+ a.Zm && (a.Zm.style.cssText = "position:absolute;resize:none;box-sizing:border-box;width:100%;height:100%;margin:0;color:#040;font-size:11px;font-family:monospace;overflow:scroll;background-color:rgba(255,255,255,0.86)");
+ });
+ b.addEventListener("blur", function () {
+ a.rXa = !1;
+ a.update();
+ a.Zm && (a.Zm.style.cssText = "position:absolute;resize:none;box-sizing:border-box;width:100%;height:100%;margin:0;color:#040;font-size:11px;font-family:monospace;overflow:scroll;background-color:rgba(255,255,255,0.6)");
+ });
+ return b;
+ };
+ a.prototype.Yjb = function () {
+ var a;
+ a = this.createElement("div", "float:right;opacity:0.8;background-color:white;display:flex;align-items:center;font-size:small;font-family:sans-serif");
+ a.appendChild(this.Bjb());
+ a.appendChild(this.ujb());
+ a.appendChild(this.ojb());
+ a.appendChild(this.$jb());
+ a.appendChild(this.gjb());
+ a.appendChild(this.Gjb());
+ a.appendChild(this.Ejb());
+ a.appendChild(this.qjb());
+ a.appendChild(this.hjb());
+ return a;
+ };
+ a.prototype.cjb = function () {
+ var a,
+ b,
+ c,
+ f,
+ h,
+ d;
+ a = this;
+ b = this.createElement("div", "float:right;opacity:0.8;background-color:white;font-size:small;font-family:sans-serif");
+ c = this.createElement("div", "padding:2px");
+ f = this.createElement("select", this.Is(22, 160, 1, 2), "Select categories ");
+ h = this.createElement("div", "height:500px;overflow-y:auto;display:none;border:1px #dadada solid");
+ b.appendChild(c);
+ b.appendChild(h);
+ c.appendChild(f);
+ c.addEventListener("mousedown", function (a) {
+ a.preventDefault();
+ });
+ d = !1;
+ c.addEventListener("click", function () {
+ d ? h.style.display = "none" : (h.innerHTML = "", ["all", "none"].concat(Object.keys(a.Wd.bv).sort()).forEach(function (b) {
+ h.appendChild(a.djb(b, c));
+ }), h.style.display = "block");
+ d = !d;
+ });
+ return b;
+ };
+ a.prototype.djb = function (a, b) {
+ var c,
+ f,
+ h;
+ c = this;
+ f = this.createElement("label", "display: block;margin:1px");
+ f.htmlFor = a;
+ h = this.createElement("input", "margin:1px");
+ h.type = "checkbox";
+ h.id = a;
+ h.checked = this.Wd.bv[a];
+ h.addEventListener("click", function () {
+ "all" === a || "none" === a ? (Object.keys(c.Wd.bv).forEach(function (b) {
+ c.Wd.bv[b] = "all" === a;
+ }), b.click()) : c.Wd.bv[a] = !c.Wd.bv[a];
+ c.RD(!0);
+ });
+ f.appendChild(h);
+ f.insertAdjacentText("beforeend", 18 < a.length ? a.slice(0, 15) + "..." : a);
+ return f;
+ };
+ a.prototype.Bjb = function () {
+ var a,
+ b;
+ a = this;
+ b = this.createElement("select", this.Is(22, NaN, 1, 2), 'Error ' + ('Warn ') + ('Info ') + ('Trace ') + ('Debug '));
+ b.value = this.Wd.Qja.toString();
+ b.addEventListener("change", function (b) {
+ a.Wd.Qja = parseInt(b.target.value);
+ a.RD(!0);
+ }, !1);
+ return b;
+ };
+ a.prototype.ujb = function () {
+ var b,
+ c;
+ function a(a) {
+ return b.$nb.Pc(function () {
+ var c;
+ c = a.target.value;
+ b.Wd.filter = c ? new RegExp(c) : void 0;
+ b.RD(!0);
+ });
+ }
+ b = this;
+ c = this.createElement("input", this.Is(14, 150, 1, 2));
+ c.value = this.Wd.filter ? this.Wd.filter.source : "";
+ c.title = "Filter (RegEx)";
+ c.placeholder = "Filter (RegEx)";
+ c.addEventListener("keydown", a, !1);
+ c.addEventListener("change", a, !1);
+ return c;
+ };
+ a.prototype.ojb = function () {
+ var a,
+ b,
+ c,
+ f;
+ a = this;
+ b = this.createElement("div", this.Is(NaN, NaN));
+ c = this.createElement("input", "vertical-align: middle;margin: 0px 2px 0px 0px;");
+ c.id = "details";
+ c.type = "checkbox";
+ c.title = "Details";
+ c.checked = this.Wd.EY;
+ c.addEventListener("change", function (b) {
+ a.Wd.EY = b.target.checked;
+ a.RD(!0);
+ }, !1);
+ f = this.createElement("label", "vertical-align: middle;margin: 0px 0px 0px 2px;");
+ f.setAttribute("for", "details");
+ f.innerHTML = "View details";
+ b.appendChild(c);
+ b.appendChild(f);
+ return b;
+ };
+ a.prototype.$jb = function () {
+ var a,
+ b,
+ c;
+ a = this;
+ b = this.createElement("button", this.Is());
+ c = new aa("0 0 24 24").GJ().mKb().end().HJ("M20,12.3279071 L21.9187618,10.9573629 L23.0812382,12.5848299 L19,15.5 L14.9187618,12.5848299 L16.0812382,10.9573629 L18,12.3279071 L18,12 C18,8.13 14.87,5 11,5 C7.13,5 4,8.13 4,12 C4,15.87 7.13,19 11,19 C12.93,19 14.68,18.21 15.94,16.94 L17.36,18.36 C15.73,19.99 13.49,21 11,21 C6.03,21 2,16.97 2,12 C2,7.03 6.03,3 11,3 C15.97,3 20,7.03 20,12 L20,12.3279071 Z", aa.XB, "nonzero").end().end().Ck();
+ b.appendChild(c);
+ b.addEventListener("click", function () {
+ a.update();
+ }, !1);
+ b.setAttribute("title", "Refresh the log console");
+ return b;
+ };
+ a.prototype.gjb = function () {
+ var a,
+ b;
+ a = this.createElement("button", this.Is());
+ b = new aa("0 0 24 24").GJ().NR(0, 0, 24, 24, aa.background).end().HJ("M19,4 L15.5,4 L14.5,3 L9.5,3 L8.5,4 L5,4 L5,6 L19,6 L19,4 Z M6,19 C6,20.1 6.9,21 8,21 L16,21 C17.1,21 18,20.1 18,19 L18,7 L6,7 L6,19 Z", aa.XB).end().end().Ck();
+ a.appendChild(b);
+ a.addEventListener("click", this.clear, !1);
+ a.setAttribute("title", "Remove all log messages");
+ return a;
+ };
+ a.prototype.Gjb = function () {
+ var a;
+ this.fz = this.createElement("button", this.Is());
+ this.fz.style.display = this.Wd.$H ? "none" : "inline-block";
+ a = new aa("0 0 24 24").GJ().NR(0, 0, 24, 24, aa.background).end().HJ("M3,3 L21,3 L21,21 L3,21 L3,3 Z M5,5 L5,19 L19,19 L19,5 L5,5 Z M6,6 L18,6 L18,12 L6,12 L6,6 Z", aa.XB, "nonzero").end().end().Ck();
+ this.fz.addEventListener("click", this.vQa, !1);
+ this.fz.appendChild(a);
+ this.fz.setAttribute("title", "Shrink the log console");
+ return this.fz;
+ };
+ a.prototype.Ejb = function () {
+ var a;
+ this.$y = this.createElement("button", this.Is());
+ this.$y.style.display = this.Wd.$H ? "inline-block" : "none";
+ a = new aa("0 0 24 24").GJ().NR(4, 4, 16, 16, aa.background).end().HJ("M5,5 L5,19 L19,19 L19,5 L5,5 Z M3,3 L21,3 L21,21 L3,21 L3,3 Z", aa.XB, "nonzero").end().end().Ck();
+ this.$y.addEventListener("click", this.vQa, !1);
+ this.$y.appendChild(a);
+ this.$y.setAttribute("title", "Expand the log console");
+ return this.$y;
+ };
+ a.prototype.qjb = function () {
+ var a,
+ b;
+ a = this.createElement("button", this.Is());
+ b = new aa("0 0 26 26").GJ().NR(0, 0, 24, 24, aa.background).end().HJ("M20,20 L20,22 L4,22 L4,20 L20,20 Z M7.8,12.85 L12,16 L16.2,12.85 L17.4,14.45 L12,18.5 L6.6,14.45 L7.8,12.85 Z M7.8,7.85 L12,11 L16.2,7.85 L17.4,9.45 L12,13.5 L6.6,9.45 L7.8,7.85 Z M7.8,2.85 L12,6 L16.2,2.85 L17.4,4.45 L12,8.5 L6.6,4.45 L7.8,2.85 Z", aa.XB, "nonzero").end().end().Ck();
+ a.appendChild(b);
+ a.addEventListener("click", this.Plb, !1);
+ a.setAttribute("title", "Download all log messages");
+ return a;
+ };
+ a.prototype.hjb = function () {
+ var a,
+ b,
+ c;
+ a = this;
+ b = this.createElement("button", this.Is());
+ c = new aa("0 0 24 24").GJ().NR(0, 0, 24, 24, aa.background).end().HJ("M12,10.5857864 L19.2928932,3.29289322 L20.7071068,4.70710678 L13.4142136,12 L20.7071068,19.2928932 L19.2928932,20.7071068 L12,13.4142136 L4.70710678,20.7071068 L3.29289322,19.2928932 L10.5857864,12 L3.29289322,4.70710678 L4.70710678,3.29289322 L12,10.5857864 Z", aa.XB, "nonzero").end().end().Ck();
+ b.appendChild(c);
+ b.addEventListener("click", function () {
+ a.toggle();
+ }, !1);
+ b.setAttribute("title", "Close the log console");
+ return b;
+ };
+ a.prototype.RD = function (a) {
+ (void 0 === a ? 0 : a) && this.update(!1);
+ };
+ a.prototype.update = function (a) {
+ var b;
+ a = void 0 === a ? !1 : a;
+ b = this;
+ this.element && this.config.cR && Promise.resolve(this.$eb() + this.Fqb().join("\r\n")).then(function (c) {
+ b.element && b.Zm && (b.Zm.value = c, b.element.style.cssText = b.Wd.$H ? "position:fixed;left:10px;top:30px;right:10px;z-index:10000;color:#000;height:30%;" : "position:fixed;left:10px;top:30px;right:10px;z-index:10000;color:#000;bottom:10px;", a && b.ya.Mh(u.Cc, function () {
+ b.Zm.scrollTop = b.Zm.scrollHeight;
+ }));
+ })["catch"](function (a) {
+ console.error("Unable to update the log console", a);
+ });
+ };
+ a.prototype.Fqb = function () {
+ var a,
+ b;
+ a = this;
+ b = [];
+ this.entries.forEach(function (c) {
+ (c.level || c.level) <= a.Wd.Qja && a.Wd.bv[c.rm] && (c = c.e4(!a.Wd.EY, !a.Wd.EY), a.Wd.filter && !a.Wd.filter.test(c) || b.push(c));
+ });
+ return b;
+ };
+ a.prototype.$eb = function () {
+ var a;
+ a = this.qy();
+ return "Version: 6.0025.038.031 \n" + ((a ? "Esn: " + a.Ch : "") + "\n") + ("JsSid: " + this.app.id + ", Epoch: " + this.Aa.$e.ca(u.ll) + ", Start: " + this.app.LC.ca(u.ll) + ", TimeZone: " + new Date().getTimezoneOffset() + "\n") + ("Href: " + location.href + "\n") + ("UserAgent: " + navigator.userAgent + "\n") + "--------------------------------------------------------------------------------\n";
+ };
+ a.prototype.createElement = function (a, b, c, f) {
+ return this.md.createElement(a, b, c, f);
+ };
+ a.prototype.Is = function (a, b, c, f) {
+ a = void 0 === a ? 26 : a;
+ b = void 0 === b ? 26 : b;
+ return "display:inline-block;border:" + (void 0 === c ? 0 : c) + "px solid " + aa.XB + ";padding:3px;" + (isNaN(a) ? "" : "height:" + a + "px") + ";" + (isNaN(b) ? "" : "width:" + b + "px") + ";margin:0px 3px;background-color:transparent;" + (f ? "border-radius:" + f + "px;" : "");
+ };
+ b = a;
+ b.AKb = "logDxDisplay";
+ return b = k.__decorate([l.N(), k.__param(0, l.l(f.ni)), k.__param(1, l.l(w.Me)), k.__param(2, l.l(g.hf)), k.__param(3, l.l(m.Tg)), k.__param(4, l.l(q.tA)), k.__param(5, l.l(H.p7)), k.__param(6, l.l(A.Er)), k.__param(7, l.l(h.PA)), k.__param(8, l.l(p.E5)), k.__param(9, l.l(G.xr))], b);
+ })();
+ b.Eva = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ g,
+ h,
+ p;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Dva = void 0;
+ c = a(0);
+ k = a(1);
+ l = a(41);
+ g = a(40);
+ h = a(29);
+ p = a(142);
+ d = (function () {
+ var b;
+ function a(a, b) {
+ a = g.me.call(this, a, "LogDisplayConfigImpl") || this;
+ a.vm = b;
+ return a;
+ }
+ N(a, g.me);
+ wa.Object.defineProperties(a.prototype, {
+ cR: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return !0;
+ }
+ },
+ gI: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.vm.gI;
+ }
+ },
+ kPa: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return -1;
+ }
+ }
+ });
+ b = a;
+ c.__decorate([l.config(l.jd, "renderDomDiagnostics")], b.prototype, "cR", null);
+ c.__decorate([l.config(l.a0, "logDisplayMaxEntryCount")], b.prototype, "gI", null);
+ c.__decorate([l.config(l.a0, "logDisplayAutoshowLevel")], b.prototype, "kPa", null);
+ return b = c.__decorate([k.N(), c.__param(0, k.l(h.bj)), c.__param(1, k.l(p.ZE))], b);
+ })();
+ b.Dva = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Qqa = void 0;
+ c = a(0);
+ k = a(1);
+ a(3);
+ l = a(84);
+ d = (function () {
+ var b;
+ function a() {
+ this.Xna = "";
+ this.nZa = [[], []];
+ this.$ = [[], []];
+ }
+ a.prototype.downloadRequest = function (a) {
+ var b;
+ "" === this.Xna && (this.Xna = a.Ha);
+ if (!a.kc) {
+ b = this.YLb(a);
+ this.$[a.L].push(b);
+ this.nZa[a.L].forEach(function (a) {
+ a.vWb(b);
+ });
+ }
+ };
+ a.prototype.YLb = function (a) {
+ return {
+ id: a.Yj(),
+ Ha: a.Ha,
+ L: a.L,
+ Gi: a.Gi,
+ startTime: a.yw,
+ endTime: a.ut,
+ offset: a.Qm,
+ uN: a.uN,
+ tN: a.tN,
+ duration: a.sv,
+ R: a.R,
+ state: l.U4.IIa,
+ br: !1,
+ cZb: !1,
+ KMa: !1,
+ UXb: l.T4.waiting
+ };
+ };
+ a.prototype.update = function (a) {
+ this.nZa[a.L].forEach(function (b) {
+ b.i1b(a);
+ });
+ };
+ wa.Object.defineProperties(a.prototype, {
+ Ha: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.Xna;
+ }
+ }
+ });
+ b = a;
+ return b = c.__decorate([k.N()], b);
+ })();
+ b.Qqa = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.mta = void 0;
+ c = a(0);
+ k = a(1);
+ l = a(335);
+ d = (function () {
+ var b;
+ function a(a) {
+ this.Jlb = a;
+ }
+ a.prototype.Eb = function () {
+ var a;
+ a = this;
+ this.Il || (this.Il = new Promise(function (b, c) {
+ var f;
+ f = [];
+ a.Jlb.forEach(function (a) {
+ f.push(a.Eb());
+ });
+ Promise.all(f).then(function () {
+ b();
+ })["catch"](function (a) {
+ c(a);
+ });
+ }));
+ return this.Il;
+ };
+ b = a;
+ return b = c.__decorate([k.N(), c.__param(0, k.aD(l.V5))], b);
+ })();
+ b.mta = d;
+ }, function (d, b) {
+ function a(a) {
+ this.is = a;
+ this.lwb = "#881391";
+ this.KKb = "#C41A16";
+ this.Leb = this.NAb = "#1C00CF";
+ this.bvb = "#D79BDB";
+ this.RMb = this.KAb = "#808080";
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.DAa = void 0;
+ a.prototype.Ck = function (a) {
+ return this.getValue("~~NONAME~~", a);
+ };
+ a.prototype.Cy = function (a, b) {
+ return '' + a + ": ";
+ };
+ a.prototype.xKa = function (a, b) {
+ b = b || "";
+ a = "" + ('' + this.Cy(a) + "Array[" + b.length + "] ");
+ a += "";
+ for (var c = 0; c < b.length; ++c) {
+ a += this.getValue(c.toString(), b[c]);
+ }
+ a += this.getValue("length", b.length, !0);
+ return a + " ";
+ };
+ a.prototype.NLa = function (a, b) {
+ var c,
+ d,
+ h;
+ c = this;
+ if (b instanceof CryptoKey)
+ return this.bqb(a, b);
+ d = Object.keys(b);
+ h = "";
+ h = h + ('' + ("~~NONAME~~" !== a ? this.Cy(a) : "") + "Object ");
+ h = h + "";
+ d.forEach(function (a) {
+ h = a.startsWith("$") ? h + c.getValue(a, "REMOVED") : h + c.getValue(a, b[a]);
+ });
+ h += " ";
+ return h += " ";
+ };
+ a.prototype.bqb = function (a, b) {
+ a = "" + ('' + this.Cy(a) + "CryptoKey ");
+ a = a + "" + this.NLa("algorithm", b.algorithm);
+ a += this.DKa("extractable", b.extractable);
+ a += this.fMa("type", b.type);
+ a += this.xKa("usages", b.usages);
+ return a + " ";
+ };
+ a.prototype.yrb = function (a, b, d) {
+ return '' + this.Cy(a, void 0 === d ? !1 : d) + ('' + b.toString() + " ") + " ";
+ };
+ a.prototype.DKa = function (a, b, d) {
+ return '' + this.Cy(a, void 0 === d ? !1 : d) + ('' + b.toString() + " ") + " ";
+ };
+ a.prototype.fMa = function (a, b, d) {
+ 128 < b.length && (b = b.substr(0, 128) + "...");
+ return '' + this.Cy(a, void 0 === d ? !1 : d) + ('"' + b + '" ') + " ";
+ };
+ a.prototype.xrb = function (a) {
+ return '' + this.Cy(a) + ('null ') + " ";
+ };
+ a.prototype.Osb = function (a, b) {
+ b = "undefined" === typeof b ? "" : b.toString();
+ 255 < b.length && (b = b.substr(0, 255) + "...");
+ return '' + this.Cy(a) + ('' + b + " ") + " ";
+ };
+ a.prototype.getValue = function (a, b, d) {
+ d = void 0 === d ? !1 : d;
+ return null === b ? "" + this.xrb(a) : this.is.Qu(b) ? "" + this.xKa(a, b) : this.is.xB(b) ? "" + this.NLa(a, b) : this.is.En(b) ? "" + this.fMa(a, b, d) : this.is.fg(b) ? "" + this.yrb(a, b, d) : this.is.LM(b) ? "" + this.DKa(a, b, d) : "" + this.Osb(a, b);
+ };
+ b.DAa = a;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ g,
+ h,
+ p,
+ m,
+ f;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.R3a = void 0;
+ c = a(0);
+ k = a(1);
+ l = a(25);
+ g = a(21);
+ h = a(175);
+ p = a(334);
+ m = a(104);
+ f = a(202);
+ d = (function () {
+ var b;
+ function a(a, b, c) {
+ var f;
+ f = p.zL.call(this, a, b, "idb") || this;
+ f.lk = c;
+ f.XUa = function (a) {
+ f.$kb(a.target.id).then(function () {
+ return f.refresh();
+ });
+ };
+ f.iBb = function () {
+ f.wgb().then(function () {
+ return f.refresh();
+ });
+ };
+ f.yBb = function () {
+ f.refresh();
+ };
+ f.kBb = function () {
+ f.vhb();
+ };
+ return f;
+ }
+ N(a, p.zL);
+ a.prototype.Eb = function () {
+ var a;
+ a = this;
+ if (this.Jl)
+ return Promise.resolve();
+ t.addEventListener("keydown", function (b) {
+ b.ctrlKey && b.altKey && b.shiftKey && b.keyCode == m.Hr.S2a && a.toggle();
+ });
+ return this.lk.create().then(function (b) {
+ a.storage = b;
+ a.Jl = !0;
+ });
+ };
+ a.prototype.nj = function () {
+ return '";
+ };
+ a.prototype.rha = function (a, b, c) {
+ var f;
+ a = a.toString();
+ f = '"' + b + '" ';
+ c = this.cGa.Ck({
+ name: b,
+ data: c
+ });
+ return "" + ('' + a + " ") + ('' + f + " ") + (' ") + (' ') + " ";
+ };
+ a.prototype.Dha = function (a) {
+ for (var b = '' + this.nj(), c = Object.keys(a), f = 0; f < c.length; ++f) {
+ b += this.rha(f, c[f], a[c[f]]);
+ }
+ return b + "
";
+ };
+ a.prototype.SKa = function () {
+ var a,
+ b,
+ c;
+ a = this.md.createElement("button", p.sE, "Clear", {
+ "class": this.prefix + "-display-btn"
+ });
+ b = this.md.createElement("button", p.sE, "Refresh", {
+ "class": this.prefix + "-display-btn"
+ });
+ c = this.md.createElement("button", p.sE, "Copy", {
+ "class": this.prefix + "-display-btn"
+ });
+ a.onclick = this.iBb;
+ b.onclick = this.yBb;
+ c.onclick = this.kBb;
+ return [a, b, c];
+ };
+ a.prototype.pxb = function () {
+ var a;
+ a = this;
+ return this.storage.loadAll().then(function (b) {
+ a.gNa = b.reduce(function (a, b) {
+ a[b.key] = b.value;
+ return a;
+ }, {});
+ return a.gNa;
+ });
+ };
+ a.prototype.$kb = function (a) {
+ return this.storage.remove(a);
+ };
+ a.prototype.wgb = function () {
+ return this.storage.removeAll();
+ };
+ a.prototype.iUa = function () {
+ var a;
+ a = this;
+ return this.pxb().then(function (b) {
+ return a.Dha(b);
+ });
+ };
+ a.prototype.vhb = function () {
+ var a;
+ a = JSON.stringify(this.gNa, null, 4);
+ f.kT.Rda(a);
+ };
+ b = a;
+ return b = c.__decorate([k.N(), c.__param(0, k.l(l.hf)), c.__param(1, k.l(g.Zd)), c.__param(2, k.l(h.$T))], b);
+ })();
+ b.R3a = d;
+ }, function (d, b, a) {
+ var k,
+ l,
+ g,
+ h,
+ p,
+ m,
+ f,
+ u;
+ function c(a) {
+ return function () {
+ return new Promise(function (b, c) {
+ var f;
+ f = a.hb.get(l.X5);
+ f.Eb().then(function () {
+ b(f);
+ })["catch"](function (a) {
+ c(a);
+ });
+ });
+ };
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.NIa = void 0;
+ d = a(1);
+ k = a(335);
+ a(678);
+ l = a(333);
+ g = a(676);
+ h = a(84);
+ p = a(675);
+ m = a(332);
+ f = a(674);
+ u = a(673);
+ a(672);
+ b.NIa = new d.Kc(function (a) {
+ a(m.p7).to(f.Dva).Z();
+ a(k.V5).to(u.Eva);
+ a(h.oK).to(p.Qqa).Z();
+ a(l.X5).to(g.mta).Z();
+ a(l.W5).hS(c);
+ });
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ g,
+ h;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Txa = b.Qxa = b.Pxa = void 0;
+ c = a(0);
+ k = a(1);
+ l = a(203);
+ g = a(48);
+ h = a(2);
+ d = (function () {
+ var b;
+ function a(a) {
+ this.ACb = a;
+ }
+ a.prototype.vr = function (a) {
+ a.map(this.ACb.vr);
+ };
+ b = a;
+ return b = c.__decorate([k.N(), c.__param(0, k.l(l.K8))], b);
+ })();
+ b.Pxa = d;
+ d = (function () {
+ var b;
+ function a(a) {
+ this.yCb = a;
+ }
+ a.prototype.vr = function (a) {
+ this.yCb.vr(a.data);
+ };
+ b = a;
+ return b = c.__decorate([k.N(), c.__param(0, k.l(l.H8))], b);
+ })();
+ b.Qxa = d;
+ d = (function () {
+ var b;
+ function a() {}
+ a.prototype.vr = function (a) {
+ var b;
+ a.ga && "string" === typeof a.ga ? a.href && "string" === typeof a.href ? a.profileId && "string" === typeof a.profileId || (b = "ProfileId value is corrupted.") : b = "Href value is corrupted." : b = "Xid value is corrupted.";
+ if (b)
+ throw new g.Dc(h.J.Zw, h.I.Sw, void 0, void 0, void 0, b, void 0, a.ga);
+ };
+ b = a;
+ return b = c.__decorate([k.N()], b);
+ })();
+ b.Txa = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ g;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Dxa = void 0;
+ c = a(0);
+ k = a(76);
+ l = a(7);
+ g = a(1);
+ d = (function () {
+ var b;
+ function a(a, b) {
+ this.FN = b;
+ this.log = a.xb("PboEventSenderImpl");
+ }
+ a.prototype.goa = function (a, b) {
+ var c;
+ c = this.FN(k.$l.start);
+ return this.vJa(c, a, b);
+ };
+ a.prototype.yVa = function (a) {
+ var b;
+ b = this;
+ return this.FN(k.$l.stop).Ge(this.log, a).then(function () {})["catch"](function (a) {
+ b.log.error("PBO stop event failed", a);
+ throw a;
+ });
+ };
+ a.prototype.vR = function (a, b, c) {
+ a = this.FN(a);
+ return this.vJa(a, b, c);
+ };
+ a.prototype.vJa = function (a, b, c) {
+ var f;
+ f = this;
+ return a.Xn(this.log, b.xa.Ki, c).then(function () {})["catch"](function (a) {
+ f.log.error("PBO event failed", a);
+ throw a;
+ });
+ };
+ b = a;
+ return b = c.__decorate([g.N(), c.__param(0, g.l(l.Jb)), c.__param(1, g.l(k.zT))], b);
+ })();
+ b.Dxa = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ g,
+ h,
+ p,
+ m;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.pya = void 0;
+ c = a(0);
+ k = a(1);
+ l = a(40);
+ g = a(29);
+ h = a(41);
+ p = a(3);
+ m = a(34);
+ d = (function () {
+ var b;
+ function a(a, b) {
+ a = l.me.call(this, a, "PlaydataConfigImpl") || this;
+ a.config = b;
+ return a;
+ }
+ N(a, l.me);
+ wa.Object.defineProperties(a.prototype, {
+ SI: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.config.Ds ? "unsentplaydatatest" : "unsentplaydata";
+ }
+ },
+ doa: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return !0;
+ }
+ },
+ tVa: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return p.Gb(1E4);
+ }
+ },
+ Wla: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return p.Gb(4E3);
+ }
+ },
+ FOa: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return p.dQ(1);
+ }
+ },
+ GOa: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return p.qh(30);
+ }
+ }
+ });
+ b = a;
+ c.__decorate([h.config(h.string, "playdataPersistKey")], b.prototype, "SI", null);
+ c.__decorate([h.config(h.jd, "sendPersistedPlaydata")], b.prototype, "doa", null);
+ c.__decorate([h.config(h.hh, "playdataSendDelayMilliseconds")], b.prototype, "tVa", null);
+ c.__decorate([h.config(h.hh, "playdataPersistIntervalMilliseconds")], b.prototype, "Wla", null);
+ c.__decorate([h.config(h.hh, "heartbeatCooldown")], b.prototype, "FOa", null);
+ c.__decorate([h.config(h.hh, "keepAliveWindow")], b.prototype, "GOa", null);
+ return b = c.__decorate([k.N(), c.__param(0, k.l(g.bj)), c.__param(1, k.l(m.kl))], b);
+ })();
+ b.pya = d;
+ }, function (d, b, a) {
+ var l,
+ g,
+ h,
+ p,
+ m,
+ f,
+ u,
+ w,
+ A,
+ n,
+ q,
+ M,
+ H,
+ G,
+ t;
+ function c(a, b) {
+ this.config = a;
+ this.Aa = b;
+ }
+ function k(a, b, c, f, h, d) {
+ this.log = a;
+ this.ya = b;
+ this.Kh = c;
+ this.Zq = f;
+ this.Qt = h;
+ this.dDb = d;
+ this.CJa = this.gj = !1;
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Sxa = b.X5a = void 0;
+ l = a(0);
+ g = a(1);
+ h = a(3);
+ p = a(7);
+ m = a(36);
+ f = a(253);
+ u = a(338);
+ w = a(13);
+ A = a(337);
+ n = a(2);
+ q = a(204);
+ M = a(336);
+ H = a(113);
+ G = a(37);
+ t = a(115);
+ k.prototype.t1 = function (a, b) {
+ var f;
+ function c() {
+ var a;
+ a = f.Zq.create(f.Kh);
+ f.Qt.$pa(a)["catch"](function (a) {
+ var b;
+ b = f.CJa ? p.pi.q$ : p.pi.ERROR;
+ f.CJa = !0;
+ f.log.write(b, "Unable to save playdata changes to IDB", a);
+ });
+ }
+ f = this;
+ this.log.trace("Adding initial playdata", b);
+ this.Qt.ucb(b).then(function () {
+ f.log.trace("Scheduling monitor", {
+ interval: a
+ });
+ f.Ep = f.ya.Lna(a, c);
+ })["catch"](function (h) {
+ f.log.error("Unable to add playdata", {
+ error: h,
+ playdata: new q.DU().encode(b)
+ });
+ f.Ep = f.ya.Lna(a, c);
+ });
+ };
+ k.prototype.stop = function (a) {
+ var b,
+ c;
+ b = this;
+ if (this.gj)
+ return Promise.resolve();
+ this.Ep && this.Ep.cancel();
+ c = this.Zq.create(this.Kh);
+ return this.Qt.$pa(c)["catch"](function (a) {
+ b.log.error("Unable to update playdata changes during stop", a);
+ }).then(function () {
+ if (a) {
+ if (b.Kh.background)
+ return (b.log.trace("Playback is currently in the background and never played, not sending the playdata", c), Promise.resolve());
+ b.log.trace("Sending final playdata to the server", c);
+ return b.dDb.yVa(c);
+ }
+ b.log.trace("Currently configured to not send play data, not sending the data to the server");
+ }).then(function () {
+ if (a)
+ return (b.log.trace("Removing playdata from the persisted store", c), b.Qt.pUa(c));
+ b.log.trace("Currently configured to not send play data, not removing the play data from IDB");
+ }).then(function () {
+ b.log.info("Successfully stopped the playback", c.G);
+ })["catch"](function (a) {
+ b.log.error("Unable to remove playdata changes", a);
+ throw a;
+ });
+ };
+ k.prototype.cancel = function () {
+ this.gj = !0;
+ this.Ep && this.Ep.cancel();
+ this.Qt.$pa(this.Zq.create(this.Kh));
+ };
+ wa.Object.defineProperties(c.prototype, {
+ Afb: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ var a;
+ a = this.Aa.$e;
+ return !this.JC || 0 <= a.Ib(this.JC).Pj(this.config.GOa) ? (this.JC = a, !0) : !1;
+ }
+ }
+ });
+ b.X5a = c;
+ d = (function () {
+ var b;
+ function a(a, b, f, h, d, k, m, p) {
+ this.config = a;
+ this.ya = f;
+ this.Qt = h;
+ this.Zq = d;
+ this.l2 = k;
+ this.Mi = m;
+ this.JC = Promise.resolve();
+ this.closed = !1;
+ this.log = b.xb("PlaydataServices");
+ this.pD = [];
+ this.active = new Set();
+ this.cHb = new c(a, p);
+ }
+ a.prototype.Eb = function () {
+ var a;
+ a = this;
+ this.Il || (this.log.trace("Starting playdata services"), this.Il = this.Qt.eFb().then(function () {
+ return a;
+ })["catch"](function (b) {
+ a.log.error("Unable to read the playdata, it will be deleted and not sent to the server", b);
+ return a;
+ }));
+ return this.Il;
+ };
+ a.prototype.close = function () {
+ this.closed = !0;
+ this.pD.forEach(function (a) {
+ a.t1.cancel();
+ });
+ };
+ a.prototype.send = function (a) {
+ var b;
+ if (this.closed)
+ return Promise.resolve();
+ b = this.config;
+ return b.SI && b.doa ? this.bIb(a) : Promise.resolve();
+ };
+ a.prototype.N3 = function (a) {
+ this.closed || this.kKb(a);
+ };
+ a.prototype.IWa = function (a) {
+ var b,
+ c,
+ f;
+ b = this;
+ if (this.closed)
+ return Promise.resolve();
+ c = this.Zq.create(a);
+ this.active["delete"](c.ga);
+ a = U(H.ht(function (a) {
+ return a.key === c.ga;
+ }, this.pD));
+ f = a.next().value;
+ this.pD = a.next().value;
+ return Promise.all(f.map(function (a) {
+ a.JWa = !0;
+ return a.t1.stop(b.config.doa);
+ })).then(function () {});
+ };
+ a.prototype.Q1 = function (a, b) {
+ var c,
+ f;
+ c = this;
+ f = a.ha;
+ this.zWa(f, b);
+ this.goa(f, a.MN)["catch"](function (a) {
+ c.log.error("Start command failed", {
+ playdata: a.qD,
+ error: a.hC
+ });
+ });
+ this.iKb(a);
+ };
+ a.prototype.kKb = function (a) {
+ var b;
+ b = this;
+ a.addEventListener(w.V.rp, function (c) {
+ var f;
+ if (void 0 !== c.r2) {
+ f = a.Bm(c.r2);
+ b.IWa(f);
+ c.FC || new Promise(function (b) {
+ var c;
+ if (a.br.value)
+ b();
+ else {
+ c = function (f) {
+ f.newValue && (b(), a.br.removeListener(c));
+ };
+ a.br.addListener(c);
+ }
+ }).then(function () {
+ return b.Q1(a, "online");
+ });
+ }
+ });
+ a.addEventListener(w.V.ko, function () {
+ b.Q1(a, "online");
+ });
+ a.background || a.addEventListener(w.V.HP, function (c) {
+ c = a.Bm(c.G);
+ b.zWa(c, "online");
+ });
+ a.addEventListener(w.V.If, function () {
+ b.wKb();
+ });
+ a.addEventListener(w.V.$Ya, function () {
+ b.hIb(a.ha)["catch"](function (b) {
+ (b = b.ema) && a.NB(b);
+ });
+ });
+ a.Bc.addListener(function () {
+ a.Ta.Mea ? b.log.trace("stickiness is disabled for timedtext") : b.xVa(a.ha);
+ });
+ a.rd.addListener(function () {
+ a.Ta.Mea ? b.log.trace("stickiness is disabled for audio") : b.xVa(a.ha)["catch"](function (b) {
+ (b = b.ema) && a.NB(b);
+ });
+ });
+ };
+ a.prototype.zWa = function (a, b) {
+ var c,
+ f;
+ a.kd("pdb");
+ if (this.config.Wla.Lvb()) {
+ c = this.Zq.create(a);
+ f = c.ga;
+ this.pD.some(function (a) {
+ return a.key === f;
+ }) ? this.log.trace("Already collecting " + b + " playdata, ignoring", c) : (this.log.info("Starting to collect " + b + " playdata", c), this.active.add(f), this.pD.push({
+ key: f,
+ t1: this.mrb(a, c),
+ Ht: !1,
+ JWa: !1
+ }));
+ }
+ };
+ a.prototype.bIb = function (a) {
+ var b,
+ c,
+ f,
+ h;
+ b = this;
+ c = this.Qt.qD.filter(function (a) {
+ return !b.active.has(a.ga);
+ });
+ f = void 0;
+ h = void 0;
+ a && Infinity === a ? f = c : (c = U(H.ht(function (b) {
+ return b.G === a;
+ }, c)), f = c.next().value, h = c.next().value);
+ h && 0 < h.length && this.ya.Mh(this.config.tVa, function () {
+ b.wVa(h);
+ });
+ return f && 0 !== f.length ? this.wVa(f) : Promise.resolve();
+ };
+ a.prototype.wVa = function (a) {
+ var c;
+ function b(a) {
+ return c.l2.yVa(a).then(function () {
+ return c.iGb(a);
+ });
+ }
+ c = this;
+ return a.reduce(function (a, c) {
+ return a.then(function () {
+ return b(c);
+ });
+ }, Promise.resolve());
+ };
+ a.prototype.iGb = function (a) {
+ var b;
+ b = this;
+ return this.Qt.pUa(a).then(function () {})["catch"](function (a) {
+ b.log.error("Unble to complete the stop lifecycle event", a);
+ throw a;
+ });
+ };
+ a.prototype.mrb = function (a, b) {
+ a = new k(this.log, this.ya, a, this.Zq, this.Qt, this.l2);
+ a.t1(this.config.Wla, b);
+ return a;
+ };
+ a.prototype.goa = function (a, b) {
+ var c,
+ f;
+ c = this;
+ f = this.Zq.vjb(a, b);
+ return this.l2.goa(a, f).then(function () {
+ c.pD.filter(function (b) {
+ return b.key === a.ga.toString();
+ }).forEach(function (a) {
+ a.Ht = !0;
+ });
+ })["catch"](function (a) {
+ throw {
+ qD: f,
+ hC: a
+ };
+ });
+ };
+ a.prototype.hIb = function (a) {
+ return this.cHb.Afb ? this.vR(M.AU.xP, a, n.J.g7) : Promise.resolve();
+ };
+ a.prototype.xVa = function (a) {
+ return this.vR(M.AU.splice, a, n.J.qza);
+ };
+ a.prototype.vR = function (a, b, c) {
+ var h;
+ function f(a) {
+ var b;
+ b = h.pD.filter(function (b) {
+ return b.key === a.ga.toString();
+ });
+ return 0 === b.length ? !0 : b.reduce(function (a, b) {
+ return a || b.JWa || !b.Ht;
+ }, !1);
+ }
+ h = this;
+ return f(b) ? this.JC : this.JC = this.JC["catch"](function () {
+ return Promise.resolve();
+ }).then(function () {
+ var c;
+ if (f(b))
+ return Promise.resolve();
+ c = h.Zq.create(b);
+ return h.l2.vR(a, b, c);
+ }).then(function (a) {
+ return a;
+ })["catch"](function (f) {
+ var d;
+ h.log.error("Failed to send event", {
+ eventKey: a,
+ xid: b.ga,
+ error: f
+ });
+ f.Vn ? d = h.Mi(c, f) : f.ct === n.kU.i$ && (d = h.Mi(c, f));
+ throw {
+ hC: f,
+ ema: d
+ };
+ });
+ };
+ a.prototype.iKb = function (a) {
+ this.KJb(a) && this.Toa(this.Yqb(a.ha), a);
+ };
+ a.prototype.Toa = function (a, b) {
+ var c;
+ c = this;
+ this.rda();
+ this.lja = this.ya.Mh(a, function () {
+ c.rda();
+ c.vR(M.AU.xP, b.ha, n.J.g7).then(function () {
+ c.Toa(a, b);
+ })["catch"](function (f) {
+ var h;
+ h = f.hC;
+ (f = f.ema) && b.NB(f);
+ h.ct === n.kU.i$ && c.Toa(a, b);
+ });
+ });
+ };
+ a.prototype.wKb = function () {
+ this.rda();
+ };
+ a.prototype.KJb = function (a) {
+ return a.state.value == w.ob.od;
+ };
+ a.prototype.rda = function () {
+ this.lja && (this.lja.cancel(), this.lja = void 0);
+ };
+ a.prototype.Yqb = function (a) {
+ return a.Ta.$ha ? h.Gb(a.Ta.$ha) : this.config.FOa;
+ };
+ b = a;
+ return b = l.__decorate([g.N(), l.__param(0, g.l(A.d9)), l.__param(1, g.l(p.Jb)), l.__param(2, g.l(m.Tg)), l.__param(3, g.l(u.x8)), l.__param(4, g.l(f.EU)), l.__param(5, g.l(M.A8)), l.__param(6, g.l(t.GA)), l.__param(7, g.l(G.ni))], b);
+ })();
+ b.Sxa = d;
+ }, function (d, b, a) {
+ var l,
+ g,
+ h,
+ p,
+ m,
+ f,
+ u,
+ w,
+ A,
+ n,
+ q;
+ function c() {}
+ function k() {}
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.zxa = void 0;
+ l = a(0);
+ g = a(1);
+ h = a(14);
+ p = a(2);
+ m = a(21);
+ f = a(48);
+ u = a(511);
+ w = a(70);
+ A = a(72);
+ n = a(204);
+ q = a(203);
+ d = (function () {
+ var b;
+ function a(a, b, h, d, k) {
+ var m;
+ m = this;
+ this.is = a;
+ this.lk = b;
+ this.config = h;
+ this.qy = d;
+ this.zCb = k;
+ this.Mt = function () {
+ return new c().encode({
+ version: m.version,
+ data: m.qD
+ });
+ };
+ this.CNb = function (a) {
+ a = m.BNb(a);
+ m.zCb.vr(a);
+ return a;
+ };
+ this.BNb = function (a) {
+ if (m.is.lm(a))
+ return m.FNb(a);
+ if (void 0 != a.version && m.is.fg(a.version) && 1 == a.version)
+ return m.GNb(a);
+ if (void 0 != a.version && m.is.fg(a.version) && 2 == a.version)
+ return new c().decode(a);
+ if (a.version && m.is.fg(a.version))
+ throw new f.Dc(p.J.Zw, p.I.Ira, void 0, void 0, void 0, "Version number is not supported. Version: " + a.version, void 0, a);
+ throw new f.Dc(p.J.Zw, p.I.Sw, void 0, void 0, void 0, "The format of the playdata is inconsistent with what is expected.", void 0, a);
+ };
+ this.Jp = new u.V6(2, this.config().RSa, "" !== this.config().RSa && 0 < this.config().mDb, this.lk, this.Mt);
+ }
+ a.prototype.eFb = function () {
+ return this.Jp.load(this.CNb)["catch"](function (a) {
+ throw new f.Dc(p.J.Zw, a.ja || a.Nb, void 0, void 0, void 0, "Unable to load persisted playdata.", void 0, a);
+ });
+ };
+ a.prototype.ucb = function (a) {
+ return this.Jp.add(a);
+ };
+ a.prototype.pUa = function (a) {
+ return this.Jp.remove(a, function (a, b) {
+ return a.ga === b.ga;
+ });
+ };
+ a.prototype.$pa = function (a) {
+ return this.Jp.update(a, function (a, b) {
+ return a.ga === b.ga;
+ });
+ };
+ a.prototype.toString = function () {
+ return JSON.stringify(this.Mt(), null, " ");
+ };
+ a.prototype.MYa = function (a) {
+ return a ? "/events?playbackContextId=" + a + "&esn=" + this.qy().Ch : "";
+ };
+ a.prototype.cqa = function (a) {
+ return a.map(function (a) {
+ return {
+ vd: a.downloadableId,
+ duration: a.duration
+ };
+ });
+ };
+ a.prototype.NYa = function (a) {
+ var b;
+ return a ? {
+ total: a.playTimes.total,
+ fE: null !== (b = a.playTimes.totalContentTime) && void 0 !== b ? b : a.playTimes.total,
+ audio: this.cqa(a.playTimes.audio || []),
+ video: this.cqa(a.playTimes.video || []),
+ text: this.cqa(a.playTimes.timedtext || [])
+ }
+ : {
+ total: 0,
+ fE: 0,
+ audio: [],
+ video: [],
+ text: []
+ };
+ };
+ a.prototype.FNb = function (a) {
+ var b,
+ c,
+ h;
+ b = this;
+ a = JSON.parse(a);
+ c = {
+ type: "online",
+ href: this.MYa(a.playbackContextId),
+ ga: a.xid ? a.xid.toString() : "",
+ G: a.movieId,
+ position: a.position,
+ DN: a.timestamp,
+ yR: a.playback ? 1E3 * a.playback.startEpoch : -1,
+ nI: a.mediaId,
+ CQ: this.NYa(a.playback),
+ cb: "",
+ oo: {},
+ profileId: a.accountKey
+ };
+ h = JSON.stringify({
+ keySessionIds: a.keySessionIds,
+ movieId: a.movieId,
+ xid: a.xid,
+ licenseContextId: a.licenseContextId,
+ profileId: a.profileId
+ });
+ this.lk.create().then(function (a) {
+ a.save(b.config().mO, h, !1);
+ });
+ if ("" === c.href || "" === c.ga)
+ throw new f.Dc(p.J.Zw, p.I.Sw);
+ return {
+ version: 2,
+ data: [c]
+ };
+ };
+ a.prototype.GNb = function (a) {
+ var b;
+ b = this;
+ if (!a.playdata || !this.is.Qu(a.playdata))
+ throw new f.Dc(p.J.Zw, p.I.Sw, void 0, void 0, void 0, "The version 1 playdata is corrupted.", void 0, a);
+ return {
+ version: 2,
+ data: (function (a) {
+ return a.map(function (a) {
+ return {
+ type: a.type,
+ href: b.MYa(a.playbackContextId),
+ ga: a.xid ? a.xid.toString() : "",
+ G: a.movieId,
+ position: a.position,
+ DN: a.timestamp,
+ yR: a.playback ? 1E3 * a.playback.startEpoch : -1,
+ nI: a.mediaId,
+ CQ: b.NYa(a.playback),
+ cb: "",
+ oo: {},
+ profileId: a.profileId
+ };
+ });
+ })(a.playdata)
+ };
+ };
+ wa.Object.defineProperties(a.prototype, {
+ version: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.Jp.version;
+ }
+ },
+ qD: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.Jp.ss;
+ }
+ }
+ });
+ b = a;
+ return b = l.__decorate([g.N(), l.__param(0, g.l(m.Zd)), l.__param(1, g.l(w.xr)), l.__param(2, g.l(h.fd)), l.__param(3, g.l(A.Er)), l.__param(4, g.l(q.I8))], b);
+ })();
+ b.zxa = d;
+ k.prototype.encode = function (a) {
+ var b;
+ b = new n.DU();
+ return a.map(b.encode);
+ };
+ k.prototype.decode = function (a) {
+ var b;
+ b = new n.DU();
+ return a.map(b.decode);
+ };
+ c.prototype.encode = function (a) {
+ return {
+ version: a.version,
+ data: new k().encode(a.data)
+ };
+ };
+ c.prototype.decode = function (a) {
+ return {
+ version: a.version,
+ data: new k().decode(a.data)
+ };
+ };
+ }, function (d, b, a) {
+ var k,
+ l,
+ g,
+ h,
+ p,
+ m,
+ f,
+ u,
+ w,
+ A,
+ n,
+ q;
+ function c(a) {
+ return function () {
+ return a.hb.get(k.J8).Eb();
+ };
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.qD = void 0;
+ d = a(1);
+ k = a(151);
+ l = a(253);
+ g = a(204);
+ h = a(338);
+ p = a(684);
+ m = a(683);
+ f = a(337);
+ u = a(682);
+ w = a(336);
+ A = a(681);
+ n = a(203);
+ q = a(680);
+ b.qD = new d.Kc(function (a) {
+ a(f.d9).to(u.pya).Z();
+ a(l.EU).to(g.Rxa).Z();
+ a(h.x8).to(p.zxa).Z();
+ a(k.J8).to(m.Sxa).Z();
+ a(k.nL).hS(c);
+ a(w.A8).to(A.Dxa).Z().IS();
+ a(n.K8).to(q.Txa).Z();
+ a(n.H8).to(q.Pxa).Z();
+ a(n.I8).to(q.Qxa).Z();
+ });
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ g,
+ h,
+ p,
+ m;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.yva = void 0;
+ c = a(0);
+ k = a(1);
+ l = a(7);
+ g = a(342);
+ a(341);
+ h = a(340);
+ p = a(339);
+ m = a(205);
+ d = (function () {
+ var b;
+ function a(a, b, c, f, h) {
+ this.Rbb = a;
+ this.VFb = b;
+ this.DUa = f;
+ this.QUa = h;
+ this.ka = c.xb("LicenseProviderImpl");
+ }
+ a.prototype.uB = function (a) {
+ var b,
+ c;
+ b = this;
+ c = this.DUa.oMb(a);
+ return this.Rbb.Xn(this.ka, a.Ki, c).then(function (a) {
+ a.map(function (a) {
+ return a.Owb;
+ });
+ return b.QUa.XXa(a);
+ })["catch"](function (a) {
+ b.ka.error("PBO license failed", a);
+ return Promise.reject(a);
+ });
+ };
+ a.prototype.release = function (a) {
+ var b;
+ b = this;
+ a = this.DUa.rMb(a);
+ return this.VFb.Ge(this.ka, a).then(function (a) {
+ return b.QUa.sMb(a);
+ })["catch"](function (a) {
+ b.ka.error("PBO release license failed", a);
+ return Promise.reject(a);
+ });
+ };
+ b = a;
+ return b = c.__decorate([k.N(), c.__param(0, k.l(g.v8)), c.__param(1, k.l(h.L8)), c.__param(2, k.l(l.Jb)), c.__param(3, k.l(p.C8)), c.__param(4, k.l(m.BU))], b);
+ })();
+ b.yva = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ g,
+ h,
+ p,
+ m,
+ f,
+ u;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.fta = void 0;
+ c = a(0);
+ k = a(1);
+ l = a(25);
+ g = a(42);
+ h = a(100);
+ p = a(140);
+ m = a(88);
+ f = a(489);
+ u = a(152);
+ d = (function () {
+ var b;
+ function a(a, b, c, f) {
+ this.md = a;
+ this.Vu = b;
+ this.dOb = c;
+ this.H0 = f;
+ }
+ a.prototype.Ig = function (a) {
+ var b;
+ b = this;
+ return this.md.ws(a.Xh[0].data[0], [8, 4]) ? Promise.resolve({
+ Rb: [{
+ id: "ddd",
+ Vy: "cert",
+ fI: void 0
+ }
+ ],
+ Nk: [{
+ sessionId: "ddd",
+ data: new Uint8Array(this.Vu.decode(f.aBa))
+ }
+ ]
+ }) : this.md.ws(a.Xh[0].data[0], this.dOb.decode("certificate")) ? Promise.resolve({
+ Rb: [{
+ id: "ddd",
+ Vy: "cert",
+ fI: void 0
+ }
+ ],
+ Nk: [{
+ sessionId: "ddd",
+ data: new Uint8Array(this.Vu.decode(f.l6))
+ }
+ ]
+ }) : this.H0.uB(this.Vob(a)).then(function (a) {
+ return b.Wob(a);
+ });
+ };
+ a.prototype.release = function (a) {
+ var b;
+ b = this;
+ return this.H0.release(this.Zob(a)).then(function (c) {
+ return b.$ob(c, a);
+ });
+ };
+ a.prototype.Vob = function (a) {
+ var b,
+ c;
+ b = this;
+ c = a.Xh.map(function (a) {
+ return a.data.map(function (c) {
+ return {
+ sessionId: a.sessionId,
+ dataBase64: b.Vu.encode(c)
+ };
+ });
+ });
+ return {
+ ga: a.ga,
+ sg: a.sg,
+ KY: a.KY,
+ ai: m.Fja(a.ai),
+ Qn: p.en[a.Qn],
+ Xh: c.reduce(function (a, b) {
+ return a.concat(b);
+ }, []),
+ TP: a.TP,
+ Ki: a.Ki
+ };
+ };
+ a.prototype.Zob = function (a) {
+ var b;
+ b = {};
+ a.Xh && a.Rb[0].id && (b[a.Rb[0].id] = this.Vu.encode(a.Xh[0]));
+ return a && a.Xh ? {
+ ga: a.ga,
+ Rb: a.Rb,
+ nR: b
+ }
+ : {
+ ga: a.ga,
+ Rb: a.Rb
+ };
+ };
+ a.prototype.Wob = function (a) {
+ return {
+ Rb: a.Rb,
+ Nk: a.Nk
+ };
+ };
+ a.prototype.$ob = function (a, b) {
+ return a && a.response && a.response.data && b.Rb[0].id && (a = a.response.data[b.Rb[0].id]) ? {
+ response: this.Vu.decode(a)
+ }
+ : {};
+ };
+ b = a;
+ return b = c.__decorate([k.N(), c.__param(0, k.l(l.hf)), c.__param(1, k.l(g.Ui)), c.__param(2, k.l(h.tx)), c.__param(3, k.l(u.KE))], b);
+ })();
+ b.fta = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ g;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.ATa = void 0;
+ d = a(1);
+ c = a(491);
+ k = a(687);
+ l = a(152);
+ g = a(686);
+ b.ATa = new d.Kc(function (a) {
+ a(c.S5).to(k.fta).Z();
+ a(l.KE).to(g.yva).Z();
+ });
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Yxb = b.CPa = b.Wxb = void 0;
+ b.Wxb = function (a) {
+ return a;
+ };
+ b.CPa = function (a) {
+ return a;
+ };
+ b.Yxb = function (a) {
+ return Object.assign({}, a);
+ };
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ g,
+ h,
+ p,
+ m,
+ f,
+ u;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.yua = void 0;
+ c = a(0);
+ k = a(53);
+ l = a(689);
+ g = a(50);
+ h = a(31);
+ p = a(37);
+ m = a(1);
+ f = a(346);
+ u = a(3);
+ d = (function () {
+ var b,
+ d;
+ function a(a, b, c) {
+ this.Aa = a;
+ this.XOb = b;
+ this.performance = c;
+ k.Hm(this, "performance");
+ }
+ a.prototype.get = function (a, c, f) {
+ var h;
+ h = this;
+ return new Promise(function (d, k) {
+ var m,
+ p,
+ l;
+ try {
+ m = h.XOb.create();
+ ("withCredentials" in m) || k(Error("Missing CORS support"));
+ m.open("GET", a, !0);
+ c && (m.withCredentials = !0);
+ f && (m.timeout = f.ca(u.ia));
+ p = h.Aa.$e;
+ l = void 0;
+ m.onreadystatechange = function () {
+ var c;
+ switch (m.readyState) {
+ case XMLHttpRequest.HEADERS_RECEIVED:
+ l = h.Aa.$e.Ib(p);
+ break;
+ case XMLHttpRequest.DONE:
+ (c = h.Aa.$e.Ib(p), c = {
+ body: m.responseText,
+ status: m.status,
+ headers: b.eCb(m.getAllResponseHeaders()),
+ zd: h.jrb(a, g.da(m.responseText.length), c, l)
+ });
+ d(c);
+ }
+ };
+ m.send();
+ } catch (V) {
+ k(V);
+ }
+ });
+ };
+ a.eCb = function (a) {
+ var b,
+ f,
+ h;
+ b = {};
+ a = a.split("\r\n");
+ for (var c = 0; c < a.length; c++) {
+ f = a[c];
+ h = f.indexOf(": ");
+ 0 < h && (b[f.substring(0, h).toLowerCase()] = f.substring(h + 2));
+ }
+ return b;
+ };
+ a.prototype.jrb = function (a, b, c, f) {
+ b = {
+ size: b,
+ duration: c,
+ tpa: f
+ };
+ if (!this.performance || !this.performance.getEntriesByName)
+ return b;
+ c = this.performance.getEntriesByName(a);
+ if (0 == c.length && (c = this.performance.getEntriesByName(a + "/"), 0 == c.length))
+ return b;
+ a = c[c.length - 1];
+ b = l.CPa(b);
+ a.Jkb && (b.size = g.da(a.Jkb));
+ 0 < a.duration ? b.duration = u.timestamp(a.duration) : 0 < a.startTime && 0 < a.responseEnd && (b.duration = u.timestamp(a.responseEnd - a.startTime));
+ 0 < a.requestStart && (b.xIa = u.timestamp(a.domainLookupEnd - a.domainLookupStart), b.mpa = u.timestamp(a.connectEnd - a.connectStart), b.tpa = u.timestamp(a.responseStart - a.startTime), 0 === a.secureConnectionStart ? b.xpa = u.timestamp(0) : void 0 !== a.secureConnectionStart && (c = a.connectEnd - a.secureConnectionStart, b.xpa = u.timestamp(c), b.mpa = u.timestamp(a.connectEnd - a.connectStart - c)));
+ return b;
+ };
+ d = b = a;
+ return d = b = c.__decorate([m.N(), c.__param(0, m.l(p.ni)), c.__param(1, m.l(f.w$)), c.__param(2, m.l(h.FU)), c.__param(2, m.optional())], d);
+ })();
+ b.yua = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ g,
+ h,
+ p;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Yta = void 0;
+ c = a(0);
+ k = a(1);
+ l = a(53);
+ g = a(31);
+ h = a(3);
+ p = a(21);
+ d = (function () {
+ var b;
+ function a(a, b) {
+ this.is = a;
+ this.json = b;
+ l.Hm(this, "json");
+ }
+ a.prototype.parse = function (a) {
+ var c;
+ a = this.json.parse(a);
+ if (!this.is.Cba(a))
+ throw Error("FtlProbe: param: not an object");
+ if (a.next && !this.is.MM(a.next))
+ throw Error("FtlProbe: param.next: not a positive integer");
+ if (!this.is.MM(a.pulses))
+ throw Error("FtlProbe: param.pulses: not a positive integer");
+ if (a.pulse_delays && !this.is.Qu(a.pulse_delays))
+ throw Error("FtlProbe: param.pulse_delays: not an array");
+ if (!this.is.MM(a.pulse_timeout))
+ throw Error("FtlProbe: param.pulse_timeout: not a positive integer");
+ if (!this.is.Qu(a.urls))
+ throw Error("FtlProbe: param.urls: not an array");
+ if (!this.is.lm(a.logblob))
+ throw Error("FtlProbe: param.logblob: not a string");
+ if (!this.is.xB(a.ctx))
+ throw Error("FtlProbe: param.ctx: not an object");
+ for (var b = 0; b < a.urls.length; ++b) {
+ c = a.urls[b];
+ if (!this.is.Cba(c))
+ throw Error("FtlProbe: param.urls[" + b + "]: not an object");
+ if (!this.is.En(c.name))
+ throw Error("FtlProbe: param.urls[" + b + "].name: not a string");
+ if (!this.is.En(c.url))
+ throw Error("FtlProbe: param.urls[" + b + "].url: not a string");
+ }
+ return {
+ KEb: a.pulses,
+ DTa: a.pulse_delays ? a.pulse_delays.map(h.Gb) : [],
+ JEb: h.Gb(a.pulse_timeout),
+ EOa: a.next ? h.Gb(a.next) : void 0,
+ xe: a.urls,
+ Rja: a.logblob,
+ context: a.ctx
+ };
+ };
+ b = a;
+ return b = c.__decorate([k.N(), c.__param(0, k.l(p.Zd)), c.__param(1, k.l(g.bx))], b);
+ })();
+ b.Yta = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ g,
+ h,
+ p;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.dza = void 0;
+ c = a(0);
+ k = a(1);
+ l = a(50);
+ g = a(3);
+ h = a(47);
+ p = a(62);
+ d = (function () {
+ var b,
+ d;
+ function a(a, b) {
+ this.eh = a;
+ this.WC = b;
+ }
+ a.prototype.dR = function (a) {
+ a = this.WC.Mn("ftlProbeError", "info", b.SOb({
+ url: a.url,
+ sc: a.status,
+ pf_err: a.Yla
+ }, a));
+ this.eh.Ic(a);
+ };
+ a.SOb = function (a, c) {
+ c.zd && (c = c.zd, b.js(a, "d", c.duration), b.js(a, "dns", c.xIa), b.js(a, "tcp", c.mpa), b.js(a, "tls", c.xpa), b.js(a, "ttfb", c.tpa), a.sz = c.size.ca(l.Cr));
+ return a;
+ };
+ a.js = function (a, b, c) {
+ c && (a[b] = c.ca(g.ia));
+ return a;
+ };
+ d = b = a;
+ return d = b = c.__decorate([k.N(), c.__param(0, k.l(h.uk)), c.__param(1, k.l(p.zo))], d);
+ })();
+ b.dza = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ g,
+ h,
+ p;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.eza = void 0;
+ c = a(0);
+ k = a(1);
+ l = a(50);
+ g = a(3);
+ h = a(47);
+ p = a(62);
+ d = (function () {
+ var b,
+ d;
+ function a(a, b) {
+ this.eh = a;
+ this.WC = b;
+ }
+ a.prototype.dR = function (a) {
+ a = this.WC.Mn(a.Rja, "info", {
+ ctx: a.context,
+ data: a.data.map(function (a) {
+ return {
+ name: a.name,
+ url: a.url,
+ data: a.data.map(function (a) {
+ return b.TOb({
+ d: a.zd.duration.ca(g.ia),
+ sc: a.status,
+ sz: a.zd.size.ca(l.Cr),
+ via: a.oOb,
+ cip: a.ngb,
+ err: a.hC
+ }, a);
+ })
+ };
+ })
+ });
+ this.eh.Ic(a);
+ };
+ a.TOb = function (a, c) {
+ b.js(a, "dns", c.zd.xIa);
+ b.js(a, "tcp", c.zd.mpa);
+ b.js(a, "tls", c.zd.xpa);
+ b.js(a, "ttfb", c.zd.tpa);
+ return a;
+ };
+ a.js = function (a, b, c) {
+ c && (a[b] = c.ca(g.ia));
+ return a;
+ };
+ d = b = a;
+ return d = b = c.__decorate([k.N(), c.__param(0, k.l(h.uk)), c.__param(1, k.l(p.zo))], d);
+ })();
+ b.eza = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ g,
+ h,
+ p,
+ m,
+ f;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.$ta = void 0;
+ c = a(0);
+ k = a(1);
+ l = a(3);
+ g = a(36);
+ h = a(7);
+ p = a(344);
+ m = a(343);
+ f = a(183);
+ d = (function () {
+ var b,
+ d;
+ function a(a, b, c, f, h, d, k) {
+ this.config = a;
+ this.dNa = b;
+ this.ya = c;
+ this.Jh = f;
+ this.yGb = h;
+ this.fna = d;
+ this.hwb = 0;
+ this.ka = k.xb("FTL");
+ }
+ a.prototype.start = function () {
+ this.config.enabled && !this.Ep && (this.Ep = this.ya.Mh(this.config.wWa, this.Bz.bind(this)));
+ };
+ a.prototype.stop = function () {
+ this.Ep && (this.Ep.cancel(), this.Ep = void 0);
+ };
+ a.prototype.Bz = function () {
+ var a,
+ b;
+ a = this;
+ b = "" + this.config.endpoint + (-1 === this.config.endpoint.indexOf("?") ? "?" : "&") + "iter=" + this.hwb++;
+ this.zsb(b).then(function (b) {
+ return Promise.all(b.xe.map(function (c) {
+ return a.ytb(b, c.url, c.name);
+ })).then(function (c) {
+ 0 < c.length && a.yGb.dR({
+ data: c,
+ context: b.context,
+ Rja: b.Rja
+ });
+ }).then(function () {
+ return b;
+ });
+ }).then(function (b) {
+ a.Ep && (b.EOa ? a.Ep = a.ya.Mh(b.EOa, a.Bz.bind(a)) : a.stop());
+ })["catch"](function (b) {
+ return a.ka.error("FTL run failed", b);
+ });
+ };
+ a.prototype.zsb = function (a) {
+ var b;
+ b = this;
+ return this.dNa.get(a, !1).then(function (c) {
+ var f;
+ if (200 != c.status || null == c.body)
+ return (b.fna.dR({
+ url: a,
+ status: c.status,
+ Yla: "FTL API request failed",
+ zd: c.zd
+ }), Promise.reject(Error("FTL API request failed: " + c.status)));
+ f = b.Jh.parse(c.body);
+ return f instanceof Error ? (b.fna.dR({
+ url: a,
+ status: 4,
+ Yla: "FTL Probe API JSON parsing error",
+ zd: c.zd
+ }), Promise.reject(f)) : Promise.resolve(f);
+ })["catch"](function (c) {
+ c instanceof Error && (b.fna.dR({
+ url: a,
+ status: 0,
+ Yla: c.message
+ }), b.ka.error("FTL API call failed", c.message));
+ return Promise.reject(c);
+ });
+ };
+ a.prototype.ytb = function (a, c, f) {
+ var h;
+ h = this;
+ return new Promise(function (d, k) {
+ var A;
+ for (var m, p, g, u = [], r = {}, w = 0; w < a.KEb; (r = {
+ Dl: r.Dl,
+ Ima: r.Ima
+ }, ++w)) {
+ r.Dl = w < a.DTa.length ? a.DTa[w] : l.Cc;
+ r.Ima = "" + c + (-1 === c.indexOf("?") ? "?" : "&") + "pulse=" + (w + 1);
+ A = (function (c) {
+ return function () {
+ return new Promise(function (f, d) {
+ h.ya.Mh(c.Dl, function () {
+ b.oEb(h.dNa, c.Ima, a.JEb).then(function (a) {
+ function b(a, b, c) {
+ a || (a = c.headers[b]);
+ return a;
+ }
+ m = b(m, "via", a);
+ p = b(p, "x-ftl-probe-data", a);
+ g = b(g, "x-ftl-error", a);
+ f({
+ status: a.status,
+ zd: a.zd,
+ oOb: m || "",
+ ngb: p || "",
+ hC: g || ""
+ });
+ })["catch"](function (a) {
+ d(a);
+ });
+ });
+ });
+ };
+ })(r);
+ u.push(0 < w ? u[w - 1].then(A) : A());
+ }
+ Promise.all(u).then(function (a) {
+ d({
+ url: c,
+ name: f,
+ data: a
+ });
+ })["catch"](function (a) {
+ k(a);
+ });
+ });
+ };
+ a.oEb = function (a, b, c) {
+ return a.get(b, !1, c).then(function (a) {
+ return Object.assign({}, a);
+ });
+ };
+ d = b = a;
+ return d = b = c.__decorate([k.N(), c.__param(0, k.l(f.p6)), c.__param(1, k.l(m.P6)), c.__param(2, k.l(g.Tg)), c.__param(3, k.l(p.o6)), c.__param(4, k.l(f.w9)), c.__param(5, k.l(f.v9)), c.__param(6, k.l(h.Jb))], d);
+ })();
+ b.$ta = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ g,
+ h,
+ p,
+ m,
+ f;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.pKa = void 0;
+ d = a(1);
+ c = a(694);
+ k = a(693);
+ l = a(692);
+ g = a(691);
+ h = a(690);
+ p = a(344);
+ m = a(343);
+ f = a(183);
+ b.pKa = new d.Kc(function (a) {
+ a(f.q6).to(c.$ta).Z();
+ a(f.w9).to(k.eza).Z();
+ a(f.v9).to(l.dza).Z();
+ a(p.o6).to(g.Yta).Z();
+ a(m.P6).to(h.yua).Z();
+ });
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ d = (function () {
+ function a(a) {
+ this.ls = a;
+ }
+ a.prototype.mQ = function () {
+ var a,
+ b,
+ d;
+ a = this.ls.Vqb();
+ b = this.ls.Wqb();
+ d = this.ls.Xqb();
+ if ("number" === typeof a && "number" === typeof b && "number" === typeof d)
+ return (d - a) / b;
+ };
+ return a;
+ })();
+ b.V4a = d;
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ d = (function () {
+ function a(a, b) {
+ this.ls = a;
+ this.mQ = b;
+ }
+ a.prototype.noa = function (a) {
+ return this.ls.noa(a);
+ };
+ a.prototype.Cm = function () {
+ return this.ls.Cm();
+ };
+ a.prototype.urb = function () {
+ return this.mQ.mQ();
+ };
+ return a;
+ })();
+ b.U4a = d;
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ d = (function () {
+ function a(a) {
+ this.ePa = a;
+ }
+ a.prototype.noa = function (a) {
+ try {
+ this.ePa.setItem("gtp", JSON.stringify(a));
+ } catch (k) {
+ return !1;
+ }
+ return !0;
+ };
+ a.prototype.oLa = function () {
+ var a;
+ try {
+ a = this.ePa.getItem("gtp");
+ if (a)
+ return JSON.parse(a);
+ } catch (k) {}
+ };
+ a.prototype.Cm = function () {
+ var a;
+ a = this.oLa();
+ if (a && a.tp)
+ return a.tp.a;
+ };
+ a.prototype.Vqb = function () {
+ var a;
+ a = this.Sga();
+ if (a)
+ return a.p25;
+ };
+ a.prototype.Wqb = function () {
+ var a;
+ a = this.Sga();
+ if (a)
+ return a.p50;
+ };
+ a.prototype.Xqb = function () {
+ var a;
+ a = this.Sga();
+ if (a)
+ return a.p75;
+ };
+ a.prototype.Sga = function () {
+ var a;
+ a = this.oLa();
+ if (a && (a = a.iqr))
+ return a;
+ };
+ return a;
+ })();
+ b.P4 = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ c = a(698);
+ k = a(697);
+ l = a(696);
+ b["default"] = function (a) {
+ var b;
+ a = new c.P4(a);
+ b = new l.V4a(a);
+ return new k.U4a(a, b);
+ };
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ g,
+ h;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Swa = void 0;
+ c = a(0);
+ k = a(509);
+ l = a(1);
+ g = a(176);
+ h = a(345);
+ d = (function () {
+ var b;
+ function a(a, b, c) {
+ this.config = a;
+ this.yxb = b;
+ this.zb = c;
+ }
+ a.prototype.Vda = function () {
+ if (this.config.SYa)
+ return this.zb(this.yxb());
+ };
+ b = a;
+ return b = c.__decorate([l.N(), c.__param(0, l.l(k.c8)), c.__param(1, l.l(g.b8)), c.__param(2, l.l(h.d8))], b);
+ })();
+ b.Swa = d;
+ }, function (d, b, a) {
+ var c,
+ k;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.fBa = void 0;
+ c = a(0);
+ k = a(1);
+ d = (function () {
+ var b;
+ function a() {}
+ a.prototype.create = function () {
+ return new XMLHttpRequest();
+ };
+ b = a;
+ return b = c.__decorate([k.N()], b);
+ })();
+ b.fBa = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ g,
+ h,
+ p,
+ m;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.UQa = void 0;
+ d = a(1);
+ c = a(701);
+ k = a(94);
+ l = a(346);
+ g = a(700);
+ h = a(207);
+ p = a(345);
+ m = a(699);
+ b.UQa = new d.Kc(function (a) {
+ a(l.w$).to(c.fBa).Z();
+ a(k.ex).Jw(function () {
+ return t._cad_global.http;
+ });
+ a(h.fL).to(g.Swa).Z();
+ a(p.d8).ji(m["default"]);
+ });
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.SPa = void 0;
+ b.SPa = function (a, b) {
+ var h,
+ p;
+ if (0 !== a.length) {
+ if (1 === a.length)
+ return a[0];
+ for (var c = a[0], d = b(c), g = 1; g < a.length; g++) {
+ h = a[g];
+ p = b(h);
+ p > d && (c = h, d = p);
+ }
+ return c;
+ }
+ };
+ }, function (d, b, a) {
+ var k;
+ function c(a, b, c) {
+ a = k.rT.call(this, a, b) || this;
+ a.ky = c;
+ return a;
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Zra = void 0;
+ k = a(350);
+ N(c, k.rT);
+ b.Zra = c;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ g,
+ h,
+ p,
+ m,
+ f,
+ u,
+ w,
+ A,
+ n,
+ q,
+ M,
+ H,
+ G,
+ t,
+ S,
+ aa,
+ Z,
+ B,
+ V;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Kva = void 0;
+ c = a(0);
+ k = a(252);
+ l = a(461);
+ g = a(47);
+ h = a(25);
+ p = a(453);
+ m = a(248);
+ f = a(71);
+ u = a(1);
+ w = a(351);
+ A = a(349);
+ n = a(94);
+ q = a(14);
+ M = a(37);
+ H = a(24);
+ G = a(32);
+ t = a(62);
+ S = a(105);
+ aa = a(126);
+ Z = a(31);
+ B = a(34);
+ V = a(348);
+ d = (function () {
+ var b;
+ function a(a, b, c, f, h, d, k, m, p, l, g, u, r, w, A, n, q, K, H) {
+ this.xXa = a;
+ this.NX = b;
+ this.eh = c;
+ this.Cka = f;
+ this.Gfa = h;
+ this.bi = d;
+ this.ad = k;
+ this.JY = m;
+ this.cf = p;
+ this.config = l;
+ this.Jc = g;
+ this.Aa = u;
+ this.va = r;
+ this.platform = w;
+ this.Nm = A;
+ this.OC = n;
+ this.di = q;
+ this.Cq = K;
+ this.h1 = H;
+ }
+ a.prototype.create = function (a, b, c) {
+ return new w.Lva(a, b, c, this.xXa, this.NX, this.eh, this.Cka, this.Gfa, this.bi, this.ad, this.JY, this.cf, this.config, this.Jc, this.Aa, this.va, this.platform, this.Nm, this.OC, this.di, this.Cq, this.h1);
+ };
+ b = a;
+ return b = c.__decorate([u.N(), c.__param(0, u.l(k.eV)), c.__param(1, u.l(l.r5)), c.__param(2, u.l(g.uk)), c.__param(3, u.l(p.J7)), c.__param(4, u.l(m.j6)), c.__param(5, u.l(f.Or)), c.__param(6, u.l(h.hf)), c.__param(7, u.l(A.P5)), c.__param(8, u.l(n.ex)), c.__param(9, u.l(q.fd)), c.__param(10, u.l(S.SA)), c.__param(11, u.l(M.ni)), c.__param(12, u.l(H.Me)), c.__param(13, u.l(G.aj)), c.__param(14, u.l(Z.$E)), c.__param(15, u.l(t.zo)), c.__param(16, u.l(aa.bF)), c.__param(17, u.l(B.kl)), c.__param(18, u.l(V.U7))], b);
+ })();
+ b.Kva = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ g;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Iva = void 0;
+ c = a(0);
+ k = a(1);
+ l = a(50);
+ g = a(72);
+ d = (function () {
+ var b;
+ function a(a) {
+ this.Ah = a;
+ }
+ a.prototype.Fxb = function () {
+ var a;
+ a = this.Ah() ? this.Ah().Ch.length : 40;
+ return l.da(a + 33);
+ };
+ b = a;
+ return b = c.__decorate([k.N(), c.__param(0, k.l(g.Er))], b);
+ })();
+ b.Iva = d;
+ }, function (d, b, a) {
+ var k,
+ l,
+ g,
+ h,
+ p,
+ m,
+ f,
+ u,
+ w,
+ A;
+ function c(a, b, c, f, h, d, k, m, l, g) {
+ this.platform = b;
+ this.fea = c;
+ this.type = f;
+ this.severity = h;
+ this.timestamp = d;
+ this.data = k;
+ this.va = m;
+ this.data.type = f;
+ this.data.sev = h;
+ this.data.devmod = this.platform.Fea;
+ this.data.clver = this.platform.version;
+ a && a.Zg && (a.Zg.os && (this.data.osplatform = a.Zg.os.name, this.data.osver = a.Zg.os.version), this.data.browsername = a.Zg.name, this.data.browserver = a.Zg.version);
+ a.dja && (this.data.tester = !0);
+ a.Jy && !this.data.groupname && (this.data.groupname = a.Jy);
+ a.CG && (this.data.groupname = this.data.groupname ? this.data.groupname + "|" + a.CG : a.CG);
+ a.iE && (this.data.uigroupname = a.iE);
+ this.data.uigroupname && (this.data.groupname = this.data.groupname ? this.data.groupname + ("|" + this.data.uigroupname) : this.data.uigroupname);
+ this.data.appLogSeqNum = this.va.crb();
+ this.data.uniqueLogId = l.vKa();
+ this.data.appId = this.va.id;
+ g && (a = this.va.Yb(), this.data.soffms = a.Ib(g.ek).ca(p.ia), this.data.mid = this.data.mid || g.G, this.data.lvpi = g.N0, this.data.uiLabel = g.we, f = "startup" === f ? "playbackxid" : "xid", this.data[f] = "xid" === f && this.data.xid || g.ga, g.ND && (f = g.ND, (g = g.ND.split(".")) && 1 < g.length && "S" !== g[0][0] && (f = "SABTest" + g[0] + ".Cell" + g[1]), this.data.groupname = this.data.groupname ? this.data.groupname + "|" + f : f));
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Hva = void 0;
+ k = a(0);
+ l = a(50);
+ g = a(1);
+ h = a(37);
+ p = a(3);
+ m = a(479);
+ f = a(34);
+ u = a(24);
+ w = a(354);
+ A = a(32);
+ d = (function () {
+ var b;
+ function a(a, b, c, f, h, d) {
+ this.Aa = a;
+ this.fea = b;
+ this.config = c;
+ this.va = f;
+ this.fOb = h;
+ this.platform = d;
+ }
+ a.prototype.Mn = function (a, b, f, h) {
+ return new c(this.config, this.platform, this.fea, a, b, this.Aa.$e, f, this.va, this.fOb, h);
+ };
+ b = a;
+ return b = k.__decorate([g.N(), k.__param(0, g.l(h.ni)), k.__param(1, g.l(m.x5)), k.__param(2, g.l(f.kl)), k.__param(3, g.l(u.Me)), k.__param(4, g.l(w.m$)), k.__param(5, g.l(A.aj))], b);
+ })();
+ b.Hva = d;
+ wa.Object.defineProperties(c.prototype, {
+ size: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ this.gGa || (this.gGa = l.da(this.fea.encode(this.data).length));
+ return this.gGa;
+ }
+ }
+ });
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ g,
+ h,
+ p,
+ m,
+ f;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Bva = void 0;
+ c = a(0);
+ k = a(50);
+ l = a(3);
+ g = a(1);
+ h = a(14);
+ p = a(41);
+ m = a(40);
+ f = a(29);
+ d = (function () {
+ var b;
+ function a(a, b) {
+ a = m.me.call(this, a, "PboConfigImpl") || this;
+ a.config = b;
+ a.wyb = k.da(5E5);
+ a.dIb = l.dQ(1);
+ a.YPa = k.da(1E6);
+ return a;
+ }
+ N(a, m.me);
+ wa.Object.defineProperties(a.prototype, {
+ Mba: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.config().Mba;
+ }
+ },
+ gWa: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return [];
+ }
+ },
+ fWa: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return ["MslTransport", "Pbo", "LogblobSender"];
+ }
+ }
+ });
+ b = a;
+ c.__decorate([p.config(p.object(), "shedLogblobTypes")], b.prototype, "gWa", null);
+ c.__decorate([p.config(p.Hn("string"), "shedDebugTypes")], b.prototype, "fWa", null);
+ return b = c.__decorate([g.N(), c.__param(0, g.l(f.bj)), c.__param(1, g.l(h.fd))], b);
+ })();
+ b.Bva = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ g;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Jva = void 0;
+ c = a(0);
+ k = a(1);
+ l = a(208);
+ g = a(50);
+ d = (function () {
+ var b;
+ function a(a) {
+ this.config = a;
+ }
+ a.prototype.measure = function (a) {
+ var b;
+ b = this;
+ return a.map(function (a) {
+ return a.size.add(b.config.Fxb());
+ }).reduce(function (a, b) {
+ return a.add(b);
+ }, g.da(0));
+ };
+ b = a;
+ return b = c.__decorate([k.N(), c.__param(0, k.l(l.s7))], b);
+ })();
+ b.Jva = d;
+ }, function (d, b, a) {
+ var k,
+ l,
+ g,
+ h,
+ p,
+ m,
+ f,
+ u,
+ w,
+ A,
+ n,
+ q;
+ function c() {
+ this.entries = [];
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Mva = void 0;
+ k = a(0);
+ l = a(1);
+ g = a(53);
+ h = a(31);
+ p = a(3);
+ m = a(25);
+ f = a(24);
+ u = a(32);
+ w = a(72);
+ A = a(7);
+ n = a(355);
+ q = a(71);
+ d = (function () {
+ var b;
+ function a(a, b, c, f, h, d, k, m) {
+ this.va = a;
+ this.platform = c;
+ this.Ah = f;
+ this.json = h;
+ this.md = d;
+ this.bi = k;
+ this.Mxb = m;
+ g.Hm(this, "json");
+ this.ka = b.xb("LogblobSender");
+ }
+ a.prototype.send = function (a) {
+ var b;
+ b = this;
+ return new Promise(function (f, h) {
+ var d;
+ try {
+ d = a.reduce(function (a, c) {
+ a.entries.push(b.Cjb(c));
+ return a;
+ }, new c());
+ f(b.gpb(d));
+ } catch (B) {
+ b.ka.error(B.message);
+ h(B);
+ }
+ }).then(function (a) {
+ return b.foa(a);
+ });
+ };
+ a.prototype.Cjb = function (a) {
+ return this.md.YC(this.md.YC({}, a.data), {
+ esn: this.Ah().Ch,
+ sev: a.severity,
+ type: a.type,
+ lver: this.platform.Lxb,
+ jssid: this.va.id,
+ devmod: this.platform.Fea,
+ jsoffms: a.timestamp.Ib(this.va.LC).ca(p.ia),
+ clienttime: a.timestamp.ca(p.ia),
+ client_utc: a.timestamp.ca(p.ll),
+ uiver: this.bi.qS
+ });
+ };
+ a.prototype.gpb = function (a) {
+ var b;
+ b = this;
+ try {
+ return this.json.stringify(a);
+ } catch (Z) {
+ for (var c = {}, f = 0; f < a.entries.length; (c = {
+ PR: c.PR,
+ Ee: c.Ee
+ }, ++f)) {
+ c.Ee = Object.assign({}, a.entries[f]);
+ try {
+ this.json.stringify(c.Ee);
+ } catch (B) {
+ c.PR = void 0;
+ this.md.uv(c.Ee, (function (a) {
+ return function (c, f) {
+ try {
+ b.json.stringify(f);
+ } catch (Y) {
+ a.PR = Y.message;
+ a.Ee[c] = a.PR;
+ }
+ };
+ })(c));
+ c.Ee.stringifyException = c.PR;
+ c.Ee.originalType = c.Ee.type;
+ c.Ee.type = "debug";
+ c.Ee.sev = "error";
+ }
+ }
+ return this.json.stringify(a);
+ }
+ };
+ a.prototype.foa = function (a) {
+ var b;
+ b = this;
+ return this.Mxb.Ge(this.ka, {
+ logblobs: a
+ }).then(function () {})["catch"](function (a) {
+ b.ka.error("PBO logblob failed", a);
+ return Promise.reject(a);
+ });
+ };
+ b = a;
+ return b = k.__decorate([l.N(), k.__param(0, l.l(f.Me)), k.__param(1, l.l(A.Jb)), k.__param(2, l.l(u.aj)), k.__param(3, l.l(w.Er)), k.__param(4, l.l(h.bx)), k.__param(5, l.l(m.hf)), k.__param(6, l.l(q.Or)), k.__param(7, l.l(n.F8))], b);
+ })();
+ b.Mva = d;
+ }, function (d, b, a) {
+ var k,
+ l,
+ g,
+ h,
+ p,
+ m,
+ f,
+ u;
+ function c(a) {
+ this.aG = h.Cc;
+ this.Laa = [];
+ this.fM = this.$V = !1;
+ this.sBa = 0;
+ a && (this.aG = a.size, this.Laa = a.dw, a instanceof c && (this.sBa = a.Ndb + 1));
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Fwa = void 0;
+ k = a(0);
+ l = a(1);
+ g = a(53);
+ h = a(50);
+ p = a(208);
+ m = a(7);
+ f = a(31);
+ u = a(47);
+ d = (function () {
+ var b;
+ function a(a, b, c, f) {
+ this.czb = a;
+ this.config = b;
+ this.sf = c;
+ this.json = f;
+ g.Hm(this, "json");
+ this.ka = this.sf.xb("MessageQueue");
+ this.mq = [];
+ }
+ a.prototype.Oba = function (a) {
+ var b,
+ c;
+ 0 === this.mq.length && this.mq.push(this.Jga());
+ if (a = this.csb(a)) {
+ b = this.czb.measure([a]);
+ c = this.mq[this.mq.length - 1];
+ 0 < c.size.add(b).Pj(this.config.YPa) && (c = this.Jga(), this.mq.push(c));
+ c.Oba(a);
+ }
+ };
+ a.prototype.Epb = function () {
+ var a;
+ a = this.mq.filter(function (a) {
+ return a.Cfb;
+ });
+ this.mq.push(this.Jga());
+ a.forEach(function (a) {
+ return a.myb();
+ });
+ return a;
+ };
+ a.prototype.Xbb = function (a) {
+ a.Mv || this.mq.unshift(new c(a));
+ };
+ a.prototype.bGb = function (a) {
+ a = this.mq.indexOf(a);
+ 0 <= a && this.mq.splice(a, 1);
+ };
+ a.prototype.csb = function (a) {
+ try {
+ return {
+ data: this.json.parse(this.json.stringify(a.data)),
+ severity: a.severity,
+ size: a.size,
+ timestamp: a.timestamp,
+ type: a.type
+ };
+ } catch (H) {
+ var b,
+ c;
+ b = {};
+ c = a.data.debugMessage;
+ c && "string" === typeof c && (b.originalDebugMessage = c);
+ (a = a.data.debugCategory) && "string" === typeof a && (b.originalDebugCategory = a);
+ this.ka.error("JSON.stringify error: " + H.message, b);
+ }
+ };
+ a.prototype.Jga = function () {
+ return new c();
+ };
+ wa.Object.defineProperties(a.prototype, {
+ size: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.mq.reduce(function (a, b) {
+ return a.add(b.size);
+ }, h.Cc);
+ }
+ }
+ });
+ b = a;
+ return b = k.__decorate([l.N(), k.__param(0, l.l(p.t7)), k.__param(1, l.l(u.cU)), k.__param(2, l.l(m.Jb)), k.__param(3, l.l(f.bx))], b);
+ })();
+ b.Fwa = d;
+ c.prototype.OJ = function () {
+ this.$V = !1;
+ this.fM = !0;
+ };
+ c.prototype.yq = function () {
+ this.$V = !1;
+ };
+ c.prototype.Oba = function (a) {
+ this.Laa.push(a);
+ this.aG = this.aG.add(a.size);
+ };
+ c.prototype.myb = function () {
+ this.$V = !0;
+ };
+ wa.Object.defineProperties(c.prototype, {
+ Ndb: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.sBa;
+ }
+ },
+ size: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.aG;
+ }
+ },
+ dw: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.Laa;
+ }
+ },
+ Cfb: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return 0 < this.dw.length && !1 === this.$V;
+ }
+ },
+ Mv: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.fM;
+ }
+ }
+ });
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ g,
+ h,
+ p,
+ m,
+ f,
+ u,
+ w,
+ A,
+ n;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Cva = void 0;
+ c = a(0);
+ k = a(1);
+ l = a(53);
+ g = a(31);
+ h = a(358);
+ p = a(36);
+ m = a(7);
+ f = a(47);
+ u = a(357);
+ w = a(2);
+ A = a(85);
+ a(155);
+ n = a(356);
+ d = (function () {
+ var b;
+ function a(a, b, c, f, h, d, k) {
+ this.config = a;
+ this.json = b;
+ this.ya = c;
+ this.Cxb = f;
+ this.XP = d;
+ this.oea = k;
+ this.m0 = this.Jl = !1;
+ this.listeners = [];
+ l.Hm(this, "json");
+ this.ka = h.xb("LogBatcher");
+ }
+ a.prototype.Eb = function () {
+ this.Jl = !0;
+ };
+ a.prototype.Ic = function (a) {
+ var b;
+ b = this;
+ this.MJb(a) || (0 < a.size.Pj(this.config.wyb) ? this.ka.error("Logblob is too large, dropping from the queue", {
+ logblobType: a.type,
+ logblobSize: a.size.toString()
+ }) : (this.listeners.forEach(function (b) {
+ return b.bzb(a);
+ }), this.XP.Oba(a), this.ya.Pc(function () {
+ b.uob();
+ })));
+ };
+ a.prototype.flush = function (a) {
+ var b;
+ a = void 0 === a ? !1 : a;
+ b = this;
+ return this.m0 ? (this.ka.trace("LogBatcher is in error state, ignoring flush"), Promise.reject()) : new Promise(function (c, f) {
+ b.ka.trace("Flushing", m.FK);
+ b.Qi();
+ b.ya.Pc(function () {
+ b.coa(a).then(function () {
+ c();
+ })["catch"](function (a) {
+ f(a);
+ });
+ });
+ });
+ };
+ a.prototype.addListener = function (a) {
+ this.listeners.push(a);
+ };
+ a.prototype.removeListener = function (a) {
+ a = this.listeners.indexOf(a);
+ 0 <= a && this.listeners.splice(a, 1);
+ };
+ a.prototype.coa = function (a) {
+ var b,
+ c;
+ a = void 0 === a ? !1 : a;
+ b = this;
+ if (!this.Jl)
+ return (this.ka.trace("LogBatcher is not initialized"), Promise.resolve());
+ if (this.m0)
+ return (this.ka.trace("LogBatcher is in error state, ignoring sendLogMessages"), Promise.resolve());
+ c = this.XP.Epb();
+ if (0 === c.length && !a)
+ return (this.ka.trace("No logblobs to send"), Promise.resolve());
+ this.Qi();
+ this.listeners.forEach(function () {});
+ a = Promise.resolve();
+ for (var f = {}, h = U(c), d = h.next(); !d.done; (f = {
+ Eca: f.Eca
+ }, d = h.next())) {
+ f.Eca = d.value;
+ a = a.then((function (a) {
+ return function () {
+ return b.cIb(a.Eca);
+ };
+ })(f));
+ }
+ return a.then(function () {
+ return b.fC();
+ })["catch"](function (a) {
+ c.filter(function (a) {
+ return !a.Mv;
+ }).forEach(function (a) {
+ return a.yq();
+ });
+ b.fC();
+ throw Error("Send failure. " + a);
+ });
+ };
+ a.prototype.cIb = function (a) {
+ var b;
+ b = this;
+ this.ka.trace("Sending batch: " + a.size, m.FK);
+ return Promise.resolve(this.XP.bGb(a)).then(function () {
+ return b.Cxb.send(a.dw);
+ }).then(function () {
+ return a.OJ();
+ })["catch"](function (c) {
+ b.ka.warn("Failed to send batch of logblobs.", c, m.FK);
+ a.yq();
+ b.BJb(c) && b.XP.Xbb(a);
+ b.NJb(c) && (b.m0 = !0);
+ throw c;
+ });
+ };
+ a.prototype.BJb = function (a) {
+ return a.xd === w.XT.vxa ? !1 : this.config.Mba;
+ };
+ a.prototype.NJb = function (a) {
+ return a.Nb === w.I.bua || a.Nb === w.I.TK || a.Nb === w.I.XK ? !0 : !1;
+ };
+ a.prototype.uob = function () {
+ var a;
+ a = this;
+ 0 < this.XP.size.Pj(this.config.YPa) ? this.coa()["catch"](function (b) {
+ return a.ka.warn("Failed to send log messages on size threshold. " + b);
+ }) : this.fC();
+ };
+ a.prototype.Qi = function () {
+ this.IC && (this.IC.cancel(), this.IC = void 0);
+ };
+ a.prototype.fC = function () {
+ this.IC || (this.IC = this.ya.Mh(this.config.dIb, this.jw.bind(this)));
+ };
+ a.prototype.jw = function () {
+ var a;
+ a = this;
+ this.m0 = !1;
+ this.Qi();
+ this.coa()["catch"](function (b) {
+ return a.ka.warn("Failed to send log messages on timer. " + b);
+ });
+ };
+ a.prototype.stringify = function (a) {
+ var b;
+ b = "";
+ try {
+ b = this.json.stringify(a.data, void 0, " ");
+ } catch (T) {}
+ return b;
+ };
+ a.prototype.MJb = function (a) {
+ return 0 <= this.config.gWa.indexOf(a.type) ? !0 : a.type === n.ze.debug ? 0 <= this.config.fWa.indexOf(a.data.debugCategory) : !1;
+ };
+ b = a;
+ return b = c.__decorate([k.N(), c.__param(0, k.l(f.cU)), c.__param(1, k.l(g.bx)), c.__param(2, k.l(p.Tg)), c.__param(3, k.l(h.v7)), c.__param(4, k.l(m.Jb)), c.__param(5, k.l(u.R7)), c.__param(6, k.l(A.DK))], b);
+ })();
+ b.Cva = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ g,
+ h,
+ p,
+ m;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Mqa = void 0;
+ c = a(0);
+ k = a(1);
+ l = a(14);
+ g = a(97);
+ h = a(47);
+ p = a(62);
+ m = a(7);
+ d = (function () {
+ var b,
+ d;
+ function a(a, c, f, h) {
+ var d;
+ d = this;
+ this.Oxb = a;
+ this.OC = c;
+ this.config = h;
+ this.Wma = [];
+ this.Oxb.K2(b.OZa, this.ntb.bind(this));
+ f().then(function (a) {
+ var b;
+ b = h().ep.Iob;
+ d.zyb = b ? m.pi[b.toUpperCase()] : m.pi.ERROR;
+ d.eh = a;
+ d.gIb();
+ });
+ }
+ a.prototype.ntb = function (a, b) {
+ this.eh ? this.HTa(a, b) : this.Wma.push([a, b]);
+ };
+ a.prototype.gIb = function () {
+ var a,
+ b;
+ a = this;
+ b = this.Wma;
+ this.Wma = [];
+ b.forEach(function (b) {
+ a.HTa(b[0], b[1]);
+ });
+ };
+ a.prototype.HTa = function (a, b) {
+ var c;
+ if (this.eh && this.EJb(a)) {
+ c = {
+ debugMessage: a.message,
+ debugCategory: a.rm
+ };
+ a.Hd.forEach(function (a) {
+ return c = Object.assign(Object.assign({}, c), a.value);
+ });
+ c = Object.assign(Object.assign({}, c), {
+ prefix: "debug"
+ });
+ a = this.OC.Mn("debug", m.pi[a.level].toLowerCase(), c, b);
+ this.eh.Ic(a);
+ }
+ };
+ a.prototype.EJb = function (a) {
+ var b;
+ b = this.zyb;
+ return void 0 !== b && a.level <= b && !a.Hd.find(function (a) {
+ return a.vO(m.FK);
+ });
+ };
+ d = b = a;
+ d.OZa = "adaptorAll";
+ return d = b = c.__decorate([k.N(), c.__param(0, k.l(g.tA)), c.__param(1, k.l(p.zo)), c.__param(2, k.l(h.o7)), c.__param(3, k.l(l.fd))], d);
+ })();
+ b.Mqa = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ g,
+ h,
+ p,
+ m,
+ f,
+ u,
+ w,
+ A,
+ n,
+ q,
+ M,
+ H,
+ G,
+ t,
+ S,
+ aa,
+ Z,
+ B,
+ V;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.mPa = void 0;
+ d = a(1);
+ c = a(134);
+ k = a(713);
+ l = a(712);
+ g = a(711);
+ h = a(710);
+ p = a(709);
+ m = a(14);
+ f = a(708);
+ u = a(707);
+ w = a(706);
+ A = a(36);
+ n = a(72);
+ q = a(353);
+ M = a(357);
+ H = a(358);
+ G = a(62);
+ t = a(208);
+ S = a(47);
+ aa = a(352);
+ Z = a(705);
+ B = a(349);
+ V = a(347);
+ b.mPa = new d.Kc(function (a) {
+ a(S.uk).to(l.Cva).Z();
+ a(M.R7).to(g.Fwa).Z();
+ a(H.v7).to(h.Mva).Z();
+ a(t.t7).to(p.Jva).Z();
+ a(S.cU).to(f.Bva).Z();
+ a(G.zo).to(u.Hva).Z();
+ a(t.s7).to(w.Iva).Z();
+ a(aa.u7).to(Z.Kva).Z();
+ a(B.P5).to(V.$sa).Z();
+ a(q.O4).to(k.Mqa).Z();
+ a(S.o7).hS(function (a) {
+ return function () {
+ return a.hb.get(c.QE)().then(function (b) {
+ return new Promise(function (c) {
+ var h,
+ d,
+ k;
+ function f() {
+ d() && k() && b.fQ ? c(a.hb.get(S.uk)) : h.Pc(f);
+ }
+ h = a.hb.get(A.Tg);
+ d = a.hb.get(m.fd);
+ k = a.hb.get(n.Er);
+ h.Pc(f);
+ });
+ });
+ };
+ });
+ });
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Vsa = void 0;
+ b.Vsa = function (a, b, d, l) {
+ this.Ch = a;
+ this.wy = b;
+ this.xfa = l;
+ };
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ g,
+ h,
+ p,
+ m,
+ f,
+ u,
+ w,
+ A,
+ n,
+ q,
+ M;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Wsa = void 0;
+ c = a(0);
+ k = a(2);
+ l = a(21);
+ g = a(715);
+ h = a(7);
+ p = a(364);
+ m = a(42);
+ f = a(87);
+ u = a(25);
+ w = a(1);
+ A = a(70);
+ n = a(361);
+ q = a(360);
+ M = a(359);
+ d = (function () {
+ var b;
+ function a(a, b, c, f, h, d, k, m, p, l) {
+ this.pIa = a;
+ this.lk = b;
+ this.La = f;
+ this.eea = h;
+ this.Fc = d;
+ this.debug = k;
+ this.eOb = m;
+ this.dea = p;
+ this.xCb = l;
+ this.b6 = /^(SDK-|SLW32-|SLW64-|SLMAC-|WWW-BROWSE-|.{10})([A-Z0-9-=]{4,})$/;
+ this.log = c.xb("Device");
+ }
+ a.prototype.zJa = function (a) {
+ try {
+ return a.match(this.b6)[2];
+ } catch (S) {}
+ };
+ a.prototype.BJa = function (a) {
+ try {
+ return a.match(this.b6)[1];
+ } catch (S) {}
+ };
+ a.prototype.create = function (a) {
+ var b;
+ b = this;
+ return new Promise(function (c, f) {
+ b.lk.create().then(function (h) {
+ var m,
+ p,
+ l,
+ u,
+ r,
+ w;
+ function d(h) {
+ b.La.lm(h) && b.La.lm(m) ? (p = new g.Vsa(h, m, void 0, l, a.Gea || "cadmium"), c(p)) : f({
+ ja: k.I.Bsa
+ });
+ }
+ m = a.wy;
+ if (a.Gga)
+ (l = "bind_device", b.xCb.Ge(b.log, {}).then(function (a) {
+ d(a.esn);
+ })["catch"](function (a) {
+ f(a);
+ }));
+ else if (a.FZ) {
+ r = a.Ch;
+ if (b.La.lm(r)) {
+ w = b.BJa(r);
+ w != a.wy && b.log.error("esn prefix from ui is different", {
+ ui: w,
+ cad: a.wy,
+ ua: a.userAgent
+ });
+ } else
+ a.Oja && b.log.error("esn from ui is missing");
+ h.load(a.qIa).then(function (a) {
+ u = a.value;
+ b.La.lm(u) && (b.La.lm(r) ? (a = b.zJa(r), l = a === u ? "storage_matched_esn_in_config" : "storage_did_not_match_esn_in_config") : l = "storage_esn_not_in_config", d(m + u));
+ })["catch"](function (c) {
+ var g;
+ function p() {
+ h.save(a.qIa, g, !1).then(function () {
+ d(m + g);
+ })["catch"](function (a) {
+ f(a);
+ });
+ }
+ c.ja === k.I.px ? (b.La.lm(a.Ch) ? (g = b.zJa(a.Ch), b.La.lm(g) ? l = "config_since_not_in_storage" : (l = "generated_since_invalid_in_config_and_not_in_storage", b.log.error("invalid esn passed from UI", a.Ch), g = b.pIa.sKa())) : (l = "generated_since_not_in_config_and_storage", g = b.pIa.sKa()), p()) : f(c);
+ });
+ } else
+ a.ulb && b.eea && b.eea.getKeyByName ? b.eea.getKeyByName(a.aeb).then(function (a) {
+ a = a.id;
+ if (b.La.En(a))
+ (a = String.fromCharCode.apply(void 0, b.Fc.decode(a)), b.debug.assert("" != a), m = b.BJa(a), d(a));
+ else
+ throw "ESN from getKeyByName is not a string";
+ })["catch"](function (a) {
+ f({
+ ja: k.I.A5,
+ ab: b.eOb.Fd(a)
+ });
+ }) : a.tlb && b.dea && b.dea.YKa ? b.dea.YKa().then(function (a) {
+ var c;
+ a = String.fromCharCode.apply(void 0, a);
+ c = m + a;
+ b.debug.assert(b.b6.test(a));
+ d(c);
+ })["catch"](function () {
+ f({
+ ja: k.I.A5
+ });
+ }) : d();
+ })["catch"](function (a) {
+ f(a);
+ });
+ });
+ };
+ b = a;
+ return b = c.__decorate([w.N(), c.__param(0, w.l(p.J5)), c.__param(1, w.l(A.xr)), c.__param(2, w.l(h.Jb)), c.__param(3, w.l(l.Zd)), c.__param(4, w.l(q.w5)), c.__param(5, w.l(m.Ui)), c.__param(6, w.l(f.Dr)), c.__param(7, w.l(u.hf)), c.__param(8, w.l(n.v5)), c.__param(9, w.l(M.w8))], b);
+ })();
+ b.Wsa = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ g,
+ h,
+ p,
+ m;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Usa = void 0;
+ c = a(0);
+ k = a(37);
+ l = a(3);
+ g = a(137);
+ h = a(363);
+ p = a(53);
+ m = a(1);
+ d = (function () {
+ var b;
+ function a(a, b) {
+ this.Aa = a;
+ this.Lma = b;
+ }
+ a.prototype.sKa = function () {
+ for (var a = "", b = this.Aa.$e.ca(l.ia), c = 6; c--; ) {
+ a = ("0123456789ACDEFGHJKLMNPQRTUVWXYZ")[b % 32] + a;
+ b = Math.floor(b / 32);
+ }
+ for (; 30 > a.length; ) {
+ a += ("0123456789ACDEFGHJKLMNPQRTUVWXYZ")[this.Lma.JTa(new h.s9(0, 31, p.ARa))];
+ }
+ return a;
+ };
+ b = a;
+ return b = c.__decorate([m.N(), c.__param(0, m.l(k.ni)), c.__param(1, m.l(g.tL))], b);
+ })();
+ b.Usa = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ g,
+ h;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Ah = void 0;
+ d = a(1);
+ c = a(72);
+ k = a(364);
+ l = a(717);
+ g = a(362);
+ h = a(716);
+ b.Ah = new d.Kc(function (a) {
+ a(c.Er).zf(function () {
+ return function () {
+ return t._cad_global.device;
+ };
+ });
+ a(g.K5).to(h.Wsa).Z();
+ a(k.J5).to(l.Usa).Z();
+ });
+ }, function (d, b, a) {
+ var c,
+ k;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Lwa = void 0;
+ c = a(0);
+ k = a(1);
+ d = (function () {
+ var b;
+ function a() {
+ var a;
+ a = this;
+ this.ready = !1;
+ this.Tzb = new Promise(function (b) {
+ a.VGb = b;
+ });
+ }
+ a.prototype.Uzb = function (a) {
+ this.ready || (this.VGb(a), this.ready = !0);
+ };
+ a.prototype.isReady = function () {
+ return this.ready;
+ };
+ b = a;
+ return b = c.__decorate([k.N()], b);
+ })();
+ b.Lwa = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.iz = void 0;
+ d = a(1);
+ c = a(365);
+ k = a(719);
+ l = a(134);
+ b.iz = new d.Kc(function (a) {
+ a(c.jU).to(k.Lwa).Z();
+ a(l.QE).hS(function (a) {
+ return function () {
+ return a.hb.get(c.jU).Tzb;
+ };
+ });
+ });
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.EHa = void 0;
+ b.EHa = function (a, b, d, l) {
+ return {
+ ULa: function () {
+ var b;
+ b = a.iha();
+ l.Kq && (b += l.Kq);
+ return b;
+ },
+ ka: b,
+ request: d,
+ Xc: !1
+ };
+ };
+ }, function (d, b, a) {
+ var c,
+ k,
+ l;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.ix = b.cL = b.jx = b.PP = b.Nza = void 0;
+ c = a(0);
+ k = a(96);
+ Object.defineProperty(b, "Mp4FragmentParser", {
+ enumerable: !0,
+ get: function () {
+ return k.cL;
+ }
+ });
+ Object.defineProperty(b, "Mp4FragmentSlicer", {
+ enumerable: !0,
+ get: function () {
+ return k.ix;
+ }
+ });
+ Object.defineProperty(b, "makeMdatHeader", {
+ enumerable: !0,
+ get: function () {
+ return k.PP;
+ }
+ });
+ Object.defineProperty(b, "SidxBox", {
+ enumerable: !0,
+ get: function () {
+ return k.Nza;
+ }
+ });
+ l = a(4);
+ d = (function (a) {
+ function b(c, h, f, d, k) {
+ return a.call(this, b.console, c, h, f, d, k) || this;
+ }
+ c.__extends(b, a);
+ Object.defineProperties(b, {
+ console: {
+ get: function () {
+ return this.u || (this.u = new l.Console("MP4", "media|asejs"));
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ return b;
+ })(k.jx);
+ b.jx = d;
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.vm = b.kHa = void 0;
+ b.kHa = {
+ $s: ["minInitVideoBitrate", -Infinity],
+ Pka: ["minHCInitVideoBitrate", -Infinity],
+ aw: ["maxInitVideoBitrate", Infinity],
+ bQ: ["minInitAudioBitrate", -Infinity],
+ aQ: ["minHCInitAudioBitrate", -Infinity],
+ QP: ["maxInitAudioBitrate", Infinity],
+ i1: ["minAcceptableVideoBitrate", -Infinity],
+ ZP: ["minAcceptableVMAF", 0],
+ rzb: ["minAcceptableVMAFRebufferScalingFactor", 0],
+ Nka: ["minAllowedVideoBitrate", -Infinity],
+ syb: ["maxAllowedVideoBitrate", Infinity],
+ XC: ["minAllowedVmaf", -Infinity],
+ PPa: ["maxAllowedVmaf", Infinity],
+ LJ: ["streamFilteringRules", {
+ enabled: !1,
+ profiles: ["playready-h264mpl40-dash"],
+ action: "keepLowest"
+ }
+ ],
+ fJa: ["enableResolutionVMAFStreamFilter", !1],
+ NUa: ["resolutionVMAFCappingRuleList", []],
+ hNa: ["ignoreUserFilterOnEmptyResult", !0],
+ cQ: ["minRequiredBuffer", 2E4],
+ n1: ["minRequiredAudioBuffer", 0],
+ Li: ["minPrebufSize", 5800],
+ Oka: ["minCheckBufferingCompleteInterval", 200],
+ cJa: ["enableMoreFrequentBufferingCompleteCheck", !1],
+ Gzb: ["minimumBufferingCompleteInterval", 1E4],
+ pna: ["requireDownloadDataAtBuffering", !1],
+ U2: ["requireSetupConnectionDuringBuffering", !1],
+ Uma: ["rebufferingFactor", 1],
+ vp: ["maxBufferingTime", 2E3],
+ eqa: ["useMaxPrebufSize", !0],
+ cz: ["maxPrebufSize", 4E4],
+ tka: ["maxRebufSize", Infinity],
+ Onb: ["fastRebufferRecoveryThreshold", Infinity],
+ Nnb: ["fastRebufferRecoverBwThrehold", 3E3],
+ V_: ["initialBitrateSelectionCurve", null],
+ uNa: ["initSelectionLowerBound", -Infinity],
+ vNa: ["initSelectionUpperBound", Infinity],
+ b4: ["throughputPercentForAudio", 15],
+ Aca: ["bandwidthMargin", 0],
+ Cca: ["bandwidthMarginCurve", [{
+ m: 20,
+ b: 15E3
+ }, {
+ m: 17,
+ b: 3E4
+ }, {
+ m: 10,
+ b: 6E4
+ }, {
+ m: 5,
+ b: 12E4
+ }
+ ]],
+ peb: ["bandwidthMarginCurveAudio", {
+ min: .7135376,
+ max: .85,
+ cv: 76376,
+ scale: 18862.4,
+ gamma: 3.0569
+ }
+ ],
+ Bca: ["bandwidthMarginContinuous", !1],
+ qeb: ["bandwidthMarginForAudio", !0],
+ hpa: ["switchConfigBasedOnInSessionTput", !0],
+ Jda: ["conservBandwidthMargin", 20],
+ IN: ["conservBandwidthMarginTputThreshold", 6E3],
+ Kda: ["conservBandwidthMarginCurve", [{
+ m: 25,
+ b: 15E3
+ }, {
+ m: 20,
+ b: 3E4
+ }, {
+ m: 15,
+ b: 6E4
+ }, {
+ m: 10,
+ b: 12E4
+ }, {
+ m: 5,
+ b: 24E4
+ }
+ ]],
+ dXa: ["switchAlgoBasedOnHistIQR", !1],
+ Nz: ["switchConfigBasedOnThroughputHistory", "iqr"],
+ ska: ["maxPlayerStateToSwitchConfig", -1],
+ Vja: ["lowEndMarkingCriteria", "iqr"],
+ U6: ["IQRThreshold", .5],
+ iia: ["histIQRCalcToUse", "simple"],
+ lq: ["bandwidthManifold", {
+ curves: [{
+ min: .05,
+ max: .82,
+ cv: 7E4,
+ scale: 178E3,
+ gamma: 1.16
+ }, {
+ min: 0,
+ max: .03,
+ cv: 15E4,
+ scale: 16E4,
+ gamma: 3.7
+ }
+ ],
+ threshold: 14778,
+ gamma: 2.1,
+ niqrcurve: {
+ min: 1,
+ max: 1,
+ center: 2,
+ scale: 2,
+ gamma: 1
+ },
+ filter: "throughput-sw",
+ niqrfilter: "throughput-iqr",
+ simpleScaling: !0
+ }
+ ],
+ Vs: ["maxTotalBufferLevelPerSession", 0],
+ $Ma: ["highWatermarkLevel", 3E4],
+ LXa: ["toStableThreshold", 3E4],
+ f4: ["toUnstableThreshold", 0],
+ Moa: ["skipBitrateInUpswitch", !1],
+ oqa: ["watermarkLevelForSkipStart", 8E3],
+ bia: ["highStreamRetentionWindow", 9E4],
+ Wja: ["lowStreamTransitionWindow", 51E4],
+ dia: ["highStreamRetentionWindowUp", 5E5],
+ Yja: ["lowStreamTransitionWindowUp", 1E5],
+ cia: ["highStreamRetentionWindowDown", 6E5],
+ Xja: ["lowStreamTransitionWindowDown", 0],
+ aia: ["highStreamInfeasibleBitrateFactor", .5],
+ Wv: ["lowestBufForUpswitch", 9E3],
+ K0: ["lockPeriodAfterDownswitch", 15E3],
+ $ja: ["lowWatermarkLevel", 15E3],
+ Xv: [["lowestWaterMarkLevel", "lowestWatermarkLevel"], 3E4],
+ aka: ["lowestWaterMarkLevelBufferRelaxed", !1],
+ Fka: ["mediaRate", 1.5],
+ Y0: ["maxTrailingBufferLen", 15E3],
+ aN: ["audioBufferTargetAvailableSize", 262144],
+ BS: ["videoBufferTargetAvailableSize", 1048576],
+ fQa: ["maxVideoTrailingBufferSize", 8388608],
+ RPa: ["maxAudioTrailingBufferSize", 393216],
+ hZ: ["fastUpswitchFactor", 3],
+ Pnb: ["fastUpswitchFactorWithoutHeaders", 3],
+ Kfa: ["fastDownswitchFactor", 3],
+ Wq: ["maxMediaBufferAllowed", 27E4],
+ c_b: ["minMediaBufferLen", 1E4],
+ Ws: ["maxMediaBufferAllowedInBytes", 0],
+ Hoa: ["simulatePartialBlocks", !0],
+ jWa: ["simulateBufferFull", !0],
+ Lda: ["considerConnectTime", !0],
+ Ida: ["connectTimeMultiplier", 1],
+ sPa: ["lowGradeModeEnterThreshold", 12E4],
+ tPa: ["lowGradeModeExitThreshold", 9E4],
+ UPa: ["maxDomainFailureWaitDuration", 3E4],
+ QPa: ["maxAttemptsOnFailure", 18],
+ wJa: ["exhaustAllLocationsForFailure", !0],
+ $Pa: ["maxNetworkErrorsDuringBuffering", 20],
+ lka: ["maxBufferingTimeAllowedWithNetworkError", 6E4],
+ EJa: ["fastDomainSelectionBwThreshold", 2E3],
+ vXa: ["throughputProbingEnterThreshold", 4E4],
+ wXa: ["throughputProbingExitThreshold", 34E3],
+ fPa: ["locationProbingTimeout", 1E4],
+ IJa: ["finalLocationSelectionBwThreshold", 1E4],
+ tXa: ["throughputHighConfidenceLevel", .75],
+ uXa: ["throughputLowConfidenceLevel", .4],
+ Lja: ["locationStatisticsUpdateInterval", 6E4],
+ Axb: ["locationSelectorPersistFailures", !0],
+ dJa: ["enablePerfBasedLocationSwitch", !1],
+ MZb: ["maxRateMaxFragmentGroups", 4500],
+ Zla: ["pipelineScheduleTimeoutMs", 2],
+ cw: ["maxPartialBuffersAtBufferingStart", 2],
+ Qka: ["minPendingBufferLen", 3E3],
+ bz: ["maxPendingBufferLen", 6E3],
+ Kmb: ["enableNginxRateLimit", !1],
+ F1: ["nginxSendingRate", 4E4],
+ Omb: ["enableRequestPacingToken", !1],
+ Wyb: ["mediaRequestPacingSpeed", 2],
+ Gia: ["initialMediaRequestToken", 2E4],
+ R0: ["maxActiveRequestsSABCell100", 2],
+ V0: ["maxPendingBufferLenSABCell100", 500],
+ GUa: ["resetActiveRequestsAtSessionInit", !0],
+ ymb: ["enableCprAudio", !1],
+ zmb: ["enableCprVideo", !1],
+ uda: ["clientPacingParams", {
+ minRequiredBuffer: 3E4,
+ rateDiscountFactors: [2, 2, 3]
+ }
+ ],
+ uka: ["maxStreamingSkew", 2E3],
+ tyb: ["maxBufferOccupancyForSkewCheck", Infinity],
+ KNb: ["useBufferOccupancySkipBack", !0],
+ rka: ["maxPendingBufferPercentage", 10],
+ TC: ["maxRequestsInBuffer", 120],
+ F_: ["headerRequestSize", 4096],
+ Ntb: ["headerCacheEstimateHeaderSize", !1],
+ dla: ["neverWipeHeaderCache", !1],
+ XYa: ["useSidxInfoFromManifestForHeaderRequestSize", !1],
+ gZ: ["fastPlayHeaderRequestSize", 0],
+ SC: ["maxRequestSize", 0],
+ vI: ["minRequestSize", 65536],
+ $P: ["minBufferLenForHeaderDownloading", 1E4],
+ nWa: ["smartHeaderPreDownloading", !1],
+ B_b: ["onlyAllowPtsUpdatePolling", !1],
+ yzb: ["minVideoBufferPoolSizeForSkipbackBuffer", 33554432],
+ gR: ["reserveForSkipbackBufferMs", 15E3],
+ rla: ["numExtraFragmentsAllowed", 2],
+ xp: ["pipelineEnabled", !0],
+ kI: ["maxParallelConnections", 3],
+ SNb: ["usePipelineForAudio", !1],
+ RNb: ["usePipelineDetectionForAudio", !1],
+ oWa: ["socketReceiveBufferSize", 0],
+ xX: ["audioSocketReceiveBufferSize", 32768],
+ fK: ["videoSocketReceiveBufferSize", 65536],
+ VYa: ["usePipelineDetectionForVideo", !1],
+ Czb: ["minVideoSocketReceiveBufferSize", 65536],
+ Zha: ["headersSocketReceiveBufferSize", 32768],
+ zJb: ["shareDownloadTracks", !0],
+ Rka: ["minTimeBetweenHeaderRequests", void 0],
+ s4: ["updatePtsIntervalMs", 1E3],
+ Lca: ["bufferTraceDenominator", 0],
+ HB: ["bufferLevelNotifyIntervalMs", 2E3],
+ XIa: ["enableAbortTesting", !1],
+ jEa: ["abortRequestFrequency", 8],
+ $oa: ["streamingStatusIntervalMs", 2E3],
+ qz: ["prebufferTimeLimit", 6E4],
+ k1: ["minBufferLevelForTrackSwitch", 2E3],
+ Mmb: ["enablePenaltyForLongConnectTime", !1],
+ Sla: ["penaltyFactorForLongConnectTime", 2],
+ Tja: ["longConnectTimeThreshold", 200],
+ Tba: ["additionalBufferingLongConnectTime", 2E3],
+ Uba: ["additionalBufferingPerFailure", 8E3],
+ ZQ: ["rebufferCheckDuration", 6E4],
+ bJa: ["enableLookaheadHints", !1],
+ oPa: ["lookaheadFragments", 2],
+ eC: ["enableOCSideChannel", !0],
+ Ama: ["probeRequestTimeoutMilliseconds", 3E4],
+ U_b: ["probeRequestConnectTimeoutMilliseconds", 8E3],
+ uU: ["OCSCBufferQuantizationConfig", {
+ lv: 5,
+ mx: 240
+ }
+ ],
+ BYa: ["updateDrmRequestOnNetworkFailure", !0],
+ TPa: ["maxDiffAudioVideoEndPtsMs", 1E3],
+ GZb: ["maxAudioFragmentOverlapMs", 80],
+ Xkb: ["deferAseHeaderCache", !1],
+ hIa: ["deferAseScheduling", !1],
+ JLb: ["timeBeforeEndOfStreamBufferMark", 6E3],
+ nka: ["maxFastPlayBufferInMs", 2E4],
+ mka: ["maxFastPlayBitThreshold", 2E8],
+ uyb: ["maxBufferingCompleteBufferInMs", Infinity],
+ j1: ["minAudioMediaRequestSizeBytes", 0],
+ q1: ["minVideoMediaRequestSizeBytes", 0],
+ sI: ["minAudioMediaRequestDuration", 0],
+ xI: ["minVideoMediaRequestDuration", 0],
+ uI: ["minMediaRequestDuration", 0],
+ Zba: ["allowFirstRequestAggregation", !1],
+ tzb: ["minAudioMediaRequestDurationCache", 0],
+ Bzb: ["minVideoMediaRequestDurationCache", 0],
+ Jmb: ["enableMultiFragmentRequest", !1],
+ $J: [["useHeaderCache", "usehc"], !0],
+ v4: [["useHeaderCacheData", "usehcd"], !0],
+ bO: ["defaultHeaderCacheSize", 4],
+ xea: ["defaultHeaderCacheDataCount", 4],
+ tY: ["defaultHeaderCacheDataPrefetchMs", 0],
+ Vha: ["headerCacheMaxPendingData", 6],
+ Wha: ["headerCachePriorityLimit", 5],
+ UMa: ["headerCacheAdoptBothAV", !1],
+ TNb: ["usePipelineForBranchedAudio", !0],
+ jgb: ["childBranchBatchedAmount", 1E4],
+ gz: ["minimumTimeBeforeBranchDecision", 2E3],
+ Cyb: ["maxRequestsToAttachOnBranchActivation", void 0],
+ zQa: ["minimumJustInTimeBufferLevel", 3E3],
+ Fmb: ["enableJustInTimeAppends", !1],
+ ZIa: ["enableDelayedSeamless", !1],
+ QWb: ["branchEndPtsIntervalMs", 250],
+ qub: ["ignorePtsJustBeforeCurrentSegment", !1],
+ WPa: ["maxFragsForFittableOnBranching", 300],
+ tCb: ["pausePlaylistAtEnd", !0],
+ Wbb: ["adaptiveParallelTimeoutMs", 1E3],
+ gH: ["enableAdaptiveParallelStreaming", !1],
+ Kca: ["bufferThresholdToSwitchToSingleConnMs", 45E3],
+ Jca: ["bufferThresholdToSwitchToParallelConnMs", 35E3],
+ vmb: ["enableAPSForBranching", !1],
+ G4: ["waitForPendingConnAdaptation", !1],
+ bla: ["networkFailureResetWaitMs", 2E3],
+ ala: ["networkFailureAbandonMs", 6E4],
+ X0: ["maxThrottledNetworkFailures", 5],
+ a4: ["throttledNetworkFailureThresholdMs", 200],
+ Zja: ["lowThroughputThreshold", 400],
+ Bfa: ["excludeSessionWithoutHistoryFromLowThroughputThreshold", !1],
+ ILb: ["timeAtEachBitrateRoundRobin", 1E4],
+ hHb: ["roundRobinDirection", "forward"],
+ ftb: ["hackForHttpsErrorCodes", !1],
+ gub: ["httpsConnectErrorAsPerm", !1],
+ HQa: ["mp4ParsingInNative", !1],
+ ah: ["enableManagerDebugTraces", !1],
+ GPa: ["managerDebugMessageInterval", 1E3],
+ FPa: ["managerDebugMessageCount", 20],
+ pRa: ["notifyManifestCacheEom", !0],
+ tO: ["enableUsingHeaderCount", !1],
+ pWa: ["sourceBufferInOrderAppend", !0],
+ zt: ["requireAudioStreamToEncompassVideo", !1],
+ JEa: ["allowAudioToStreamPastVideo", !1],
+ sHa: ["countGapInBuffer", !1],
+ KEa: ["allowCallToStreamSelector", !1],
+ VFa: ["bufferThresholdForAbort", 2E4],
+ U3: ["ase_stream_selector", "optimized"],
+ uca: ["audiostreamSelectorAlgorithm", "selectaudioadaptive"],
+ Eia: ["initBitrateSelectorAlgorithm", "default"],
+ Nca: ["bufferingSelectorAlgorithm", "default"],
+ SHa: ["ase_ls_failure_simulation", ""],
+ nea: ["ase_dump_fragments", !1],
+ pea: ["ase_location_history", 0],
+ qea: ["ase_throughput", 0],
+ UHa: ["ase_simulate_verbose", !1],
+ Lg: ["stallAtFrameCount", void 0],
+ vWa: ["stallAtFrameCountAudio", void 0],
+ ika: ["marginPredictor", "simple"],
+ JNb: ["useBackupUnderflowTimer", !0],
+ l1b: ["useManifestDrmHeader", !0],
+ m1b: ["useOnlyManifestDrmHeader", !0],
+ cla: ["networkMeasurementGranularity", "video_location"],
+ cAb: ["netIntrStoreWindow", 36E3],
+ o_b: ["minNetIntrDuration", 8E3],
+ W8a: ["fastHistoricBandwidthExpirationTime", 10368E3],
+ w9a: ["bandwidthExpirationTime", 5184E3],
+ V8a: ["failureExpirationTime", 86400],
+ hDa: ["historyTimeOfDayGranularity", 4],
+ R8a: ["expandDownloadTime", !0],
+ c$a: ["minimumMeasurementTime", 500],
+ b$a: ["minimumMeasurementBytes", 131072],
+ lab: ["throughputMeasurementTimeout", 2E3],
+ kab: ["initThroughputMeasureDataSize", 262144],
+ N9a: ["historicBandwidthUpdateInterval", 2E3],
+ a$a: ["minimumBufferToStopProbing", 1E4],
+ tWb: ["throughputPredictor", "ewma"],
+ Rna: ["secondThroughputEstimator", "slidingwindow"],
+ kVa: ["secondThroughputMeasureWindowInMs", 3E5],
+ sWb: ["throughputMeasureWindow", 5E3],
+ uWb: ["throughputWarmupTime", 5E3],
+ rWb: ["throughputIQRMeasureWindow", 1E3],
+ YVb: ["IQRBucketizerWindow", 15E3],
+ XPa: ["maxIQRSamples", 100],
+ uQa: ["minIQRSamples", 5],
+ oWb: ["connectTimeHalflife", 10],
+ hWb: ["responseTimeHalflife", 10],
+ gWb: ["historicThroughputHalflife", 14400],
+ fWb: ["historicResponseTimeHalflife", 100],
+ eWb: ["historicHttpResponseTimeHalflife", 100],
+ vua: ["HistoricalTDigestConfig", {
+ maxc: 25,
+ rc: "ewma",
+ c: .5,
+ hl: 7200
+ }
+ ],
+ VCa: ["minReportedNetIntrDuration", 4E3],
+ qWb: ["throughputBucketMs", 500],
+ aWb: ["bucketHoltWintersWindow", 2E3],
+ K8a: ["enableFilters", ("throughput-ewma throughput-sw throughput-iqr throughput-tdigest avtp entropy").split(" ")],
+ S8a: ["experimentalFilter", ["throughput-wssl"]],
+ kaa: ["filterDefinitionOverrides", {}
+ ],
+ z8a: ["defaultFilter", "throughput-ewma"],
+ Sab: ["secondaryFilter", "throughput-sw"],
+ zF: ["defaultFilterDefinitions", {
+ "throughput-ewma": {
+ type: "discontiguous-ewma",
+ mw: 5E3
+ },
+ "throughput-sw": {
+ type: "slidingwindow",
+ mw: 3E5
+ },
+ "throughput-wssl": {
+ type: "wssl",
+ mw: 5E3,
+ max_n: 20
+ },
+ "throughput-iqr": {
+ type: "iqr",
+ mx: 100,
+ mn: 5,
+ bw: 15E3,
+ iv: 1E3
+ },
+ "throughput-iqr-history": {
+ type: "iqr-history"
+ },
+ "throughput-location-history": {
+ type: "discrete-ewma",
+ hl: 14400
+ },
+ "respconn-location-history": {
+ type: "discrete-ewma",
+ hl: 100
+ },
+ "throughput-tdigest": {
+ type: "tdigest",
+ maxc: 25,
+ c: .5,
+ b: 1E3,
+ w: 15E3,
+ mn: 6
+ },
+ "throughput-tdigest-history": {
+ type: "tdigest-history",
+ maxc: 25,
+ rc: "ewma",
+ c: .5,
+ hl: 7200
+ },
+ "respconn-ewma": {
+ type: "discrete-ewma",
+ hl: 10
+ },
+ avtp: {
+ type: "avtp"
+ },
+ entropy: {
+ type: "entropy",
+ mw: 2E3,
+ sw: 6E4,
+ mins: 1,
+ "in": "none",
+ hdl: [150, 230, 352, 539, 825, 1264, 1936, 2966, 4543, 6958],
+ uhdl: [150, 230, 352, 539, 825, 1264, 1936, 2966, 4543, 6958, 10657, 16322, 25E3]
+ }
+ }
+ ],
+ TY: ["enableHudsonFieldTest", !1],
+ VY: ["enableWsslEstimate", !1],
+ wka: ["maxWsslRequestSize", 131072],
+ vka: ["maxWsslRequestRatio", .2],
+ DZa: ["wsslAggregationMethod", "max"],
+ lP: ["hudsonTitles", ["81127954", "70125931", "80158148"]],
+ pia: ["hudsonStreams", ("2076313785 2076314053 2076314493 2076314871 2076314922 2076315208 2076315730 2076316089 2076316293 2076316728").split(" ")],
+ qka: ["maxPartialBuffersAtHudson", 1],
+ FI: ["numberOfChunksPerSegment", 4],
+ Z3: ["targetContentLatency", 1E4],
+ lpa: ["targetLongContentLatency", 3E4],
+ r1: ["minimumTimeDelay", 1],
+ sO: ["enableSessionHistoryReport", !0],
+ cfa: ["earlyStageEstimatePeriod", 1E4],
+ SOa: ["lateStageEstimatePeriod", 3E4],
+ U0: ["maxNumSessionHistoryStored", 10],
+ o1: ["minSessionHistoryDuration", 3E5],
+ Qtb: ["highAndStableModelName", "baseline"],
+ ifa: ["enableHighAndStablePredictor", !1],
+ m1: ["minNumSessionHistory", 5],
+ KWb: ["baselineHighAndStableThreshold", {
+ bwThreshold: 2E4,
+ nethreshold: .15
+ }
+ ],
+ H_: ["highAndStableLRModelParams", {
+ probThresh: .5,
+ lrParams: {
+ lrMeans: {
+ avtp_b: .6717527000068912,
+ avtp_kurtosis: - .32272653860208733,
+ avtp_last: 18162.25923773571,
+ avtp_mean: 18374.85489469472,
+ avtp_niqr: .36157000863524086,
+ avtp_p1: 15217.082220651864,
+ avtp_p25: 16255.438250827538,
+ avtp_p50: 18018.48498809834,
+ avtp_p75: 20633.64785646099,
+ avtp_p99: 23493.017531706773,
+ avtp_skew: - .15988915479533752,
+ avtp_std: 3494.2469335662795,
+ fracAbove20Mbps: .36069774394324833,
+ fracBelow20p: .44509094302767843,
+ hour_current: 14.88892246562775,
+ intercept: 0,
+ neuhd_b: .19944416382669086,
+ neuhd_kurtosis: - .3831651109303816,
+ neuhd_last: .18607356003210967,
+ neuhd_mean: .18446011173649746,
+ neuhd_p1: .08973105578594363,
+ neuhd_p25: .11425784546899986,
+ neuhd_p50: .16178032426296476,
+ neuhd_p75: .24808260501822446,
+ neuhd_p99: .3802747624363075,
+ neuhd_skew: .5015094291572232,
+ neuhd_std: .11460618864890261,
+ session_ct: 9.244559018608745
+ },
+ lrStd: {
+ avtp_b: .2163710864106512,
+ avtp_kurtosis: 1.3411069011423224,
+ avtp_last: 15614.28989483334,
+ avtp_mean: 15019.534079778174,
+ avtp_niqr: 1.5102894334298487,
+ avtp_p1: 13558.687640161155,
+ avtp_p25: 14056.082157854784,
+ avtp_p50: 14989.029847375388,
+ avtp_p75: 16706.411995109334,
+ avtp_p99: 19150.29672591333,
+ avtp_skew: .8845810368911663,
+ avtp_std: 3980.545705351505,
+ fracAbove20Mbps: .43529176129377334,
+ fracBelow20p: .3274979541369119,
+ hour_current: 5.5716567906096826,
+ intercept: 1,
+ neuhd_b: 2.3749059625699656,
+ neuhd_kurtosis: 1.2291306781983045,
+ neuhd_last: .16618636811434156,
+ neuhd_mean: .10880818013405419,
+ neuhd_p1: .11470893745650394,
+ neuhd_p25: .11090914485422533,
+ neuhd_p50: .11733552791484116,
+ neuhd_p75: .1358051961745428,
+ neuhd_p99: .18492685125890918,
+ neuhd_skew: .7361251697238183,
+ neuhd_std: .07376059312467607,
+ session_ct: 1.9982003410777347
+ },
+ lrWeights: {
+ avtp_b: - .4168110388005385,
+ avtp_kurtosis: - .008309418872795704,
+ avtp_last: .9636719412610095,
+ avtp_mean: .4596368266505147,
+ avtp_niqr: .004794244204030071,
+ avtp_p1: .04179963884288828,
+ avtp_p25: - .05971214541667236,
+ avtp_p50: - .06609686988077124,
+ avtp_p75: - .021163989843701936,
+ avtp_p99: - .5012233043639935,
+ avtp_skew: .04960520099458782,
+ avtp_std: - .04377297768250326,
+ fracAbove20Mbps: 1.4353872225089277,
+ fracBelow20p: .536611494372919,
+ hour_current: - .02151363764568746,
+ intercept: -2.454070409461966,
+ neuhd_b: - .010631811493285886,
+ neuhd_kurtosis: .0392239159548721,
+ neuhd_last: - .26007106077057324,
+ neuhd_mean: - .14989131456288793,
+ neuhd_p1: .03395316119601572,
+ neuhd_p25: - .03267433155107594,
+ neuhd_p50: .016260475942198947,
+ neuhd_p75: .09080546760249925,
+ neuhd_p99: .07570542703705993,
+ neuhd_skew: - .0072781558054514205,
+ neuhd_std: - .06708762681381578,
+ session_ct: .010263062689577421
+ }
+ }
+ }
+ ],
+ Rtb: ["highAndStableParams", {
+ minRequiredBuffer: 1E4,
+ bandwidthMarginCurve: [{
+ m: 10,
+ b: 15E3
+ }, {
+ m: 5,
+ b: 3E4
+ }, {
+ m: 0,
+ b: 12E4
+ }
+ ]
+ }
+ ],
+ fX: ["addHeaderDataToNetworkMonitor", !0],
+ Uoa: ["startMonitorOnLoadStart", !1],
+ gna: ["reportFailedRequestsToNetworkMonitor", !1],
+ f2: ["periodicHistoryPersistMs", 0],
+ e3: ["saveVideoBitrateMs", 0],
+ hQ: ["needMinimumNetworkConfidence", !0],
+ Gca: ["biasTowardHistoricalThroughput", !1],
+ Exb: ["logMemoryUsage", !1],
+ VMa: ["headerCacheTruncateHeaderAfterParsing", !0],
+ er: ["probeServerWhenError", !0],
+ Pu: ["allowSwitchback", !0],
+ vD: ["probeDetailDenominator", 100],
+ T0: ["maxDelayToReportFailure", 300],
+ UM: ["allowParallelStreaming", !1],
+ Uyb: ["mediaPrefetchDisabled", !1],
+ tQa: ["minBufferLevelToAllowPrefetch", 5E3],
+ eH: ["editVideoFragments", !1],
+ aYb: ["editAudioFragments", !0],
+ BHb: ["seamlessAudio", !1],
+ CHb: ["seamlessAudioProfiles", []],
+ DHb: ["seamlessAudioProfilesAndTitles", {}
+ ],
+ Pna: ["seamlessAudioMaximumSyncError", void 0],
+ Qna: ["seamlessAudioMinimumSyncError", void 0],
+ tP: ["insertSilentFrames", 0],
+ JNa: ["insertSilentFramesOnExit", void 0],
+ INa: ["insertSilentFramesOnEntry", void 0],
+ HNa: ["insertSilentFramesForProfile", void 0],
+ Job: ["forceDiscontinuityAtTransition", !0],
+ Lz: ["supportAudioResetOnDiscontinuity", void 0],
+ Kz: ["supportAudioEasingOnDiscontinuity", void 0],
+ ms: ["audioCodecResetForProfiles", []],
+ qmb: ["editCompleteFragments", !0],
+ Ezb: ["minimumAudioFramesPerFragment", 1],
+ yB: ["applyProfileTimestampOffset", !1],
+ Qo: ["applyProfileStreamingOffset", !0],
+ wTa: ["profileTimestampOffsets", {
+ "heaac-2-dash": {
+ 64: {
+ ticks: -3268,
+ timescale: 48E3
+ },
+ 96: {
+ ticks: -3352,
+ timescale: 48E3
+ }
+ },
+ "heaac-2hq-dash": {
+ 128: {
+ ticks: -3352,
+ timescale: 48E3
+ }
+ }
+ }
+ ],
+ MNb: ["useDpiAssumedAacEncoderDelay", !0],
+ Ika: ["mediaSourceSupportsNegativePts", !1],
+ tI: ["minAudioPtsGap", void 0],
+ Sdb: ["audioOverlapGuardSampleCount", 2],
+ eJa: ["enableRecordJSBridgePerf", !1],
+ c7: ["JSBridgeTDigestConfig", {
+ maxc: 25,
+ c: .5
+ }
+ ],
+ GLb: ["throughputThresholdSelectorParam", 0],
+ HNb: ["upswitchDuringBufferingFactor", 2],
+ Ucb: ["allowUpswitchDuringBuffering", !1],
+ nHa: ["contentOverrides", void 0],
+ Oda: ["contentProfileOverrides", void 0],
+ hia: ["hindsightDenominator", 0],
+ gia: ["hindsightDebugDenominator", 0],
+ gP: ["hindsightAlgorithmsEnabled", ["htwbr"]],
+ I_: ["hindsightParam", {
+ numB: Infinity,
+ bSizeMs: 1E3,
+ fillS: "last",
+ fillHl: 1E3
+ }
+ ],
+ YEa: ["appendMediaRequestOnComplete", !1],
+ iK: ["waitForDrmToAppendMedia", !1],
+ uZ: ["forceAppendHeadersAfterDrm", !1],
+ dJ: ["reappendRequestsOnSkip", !1],
+ sea: ["declareBufferingCompleteAtSegmentEnd", !1],
+ Us: ["maxActiveRequestsPerSession", void 0],
+ Gja: ["limitAudioDiscountByMaxAudioBitrate", !1],
+ eca: ["appendFirstHeaderOnComplete", !0],
+ W3: ["strictBufferCapacityCheck", !1],
+ YM: ["aseReportDenominator", 0],
+ mca: ["aseReportIntervalMs", 3E5],
+ Ipa: ["translateToVp9Draft", !1],
+ PJ: ["switchableAudioProfiles", []],
+ Tdb: ["audioProfilesOverride", [{
+ profiles: ["ddplus-5.1-dash", "ddplus-5.1hq-dash"],
+ override: {
+ maxInitAudioBitrate: 256,
+ audioBwFactor: 5.02
+ }
+ }, {
+ profiles: ["ddplus-atmos-dash"],
+ override: {
+ maxInitAudioBitrate: 448
+ }
+ }
+ ]],
+ fXa: ["switchableAudioProfilesOverride", [{
+ profiles: ["ddplus-5.1-dash", "ddplus-5.1hq-dash"],
+ override: {
+ maxInitAudioBitrate: 192
+ }
+ }, {
+ profiles: ["ddplus-atmos-dash"],
+ override: {
+ minInitAudioBitrate: 448,
+ maxInitAudioBitrate: 448,
+ minAudioBitrate: 448
+ }
+ }
+ ]],
+ Vdb: ["audioSwitchConfig", {
+ upSwitchFactor: 5.02,
+ downSwitchFactor: 3.76,
+ lowestBufForUpswitch: 16E3,
+ lockPeriodAfterDownswitch: 16E3
+ }
+ ],
+ eQa: ["maxStartingVideoVMAF", 110],
+ wI: ["minStartingVideoVMAF", 1],
+ PM: ["activateSelectStartingVMAF", !1],
+ n3: ["selectStartingVMAFTDigest", -1],
+ rJ: ["selectStartingVMAFMethod", "fallback"],
+ qVa: ["selectStartingVMAFMethodCurve", {
+ log_p50: [6.0537, - .8612],
+ log_p40: [5.41, - .7576],
+ log_p20: [4.22, - .867],
+ sigmoid_1: [11.0925, -8.0793]
+ }
+ ],
+ RI: ["perFragmentVMAFConfig", {
+ enabled: !1,
+ simulatedFallback: !1,
+ fallbackBound: 12
+ }
+ ],
+ Dlb: ["disablePtsStartsEvent", !0],
+ Vma: ["recordFirstFragmentOnSubBranchCreate", !0],
+ iQa: ["mediaCacheConvertToBinaryData", !1],
+ Aka: ["mediaCacheSaveOneObject", !1],
+ OPa: ["markRequestActiveOnFirstByte", !1],
+ OY: ["earlyAppendSingleChildBranch", !0],
+ aK: ["useNativeDataViewMethods", !0],
+ aca: ["alwaysNotifyEOSForPlaygraph", !1],
+ LNb: ["useCorrectDrainingAmounts", !0],
+ UY: ["enableNewAse", !1],
+ mE: ["useNewApi", !1],
+ Hea: ["aseDiagnostics", [{
+ HN: "queue-audit",
+ enabled: !1
+ }
+ ]],
+ tDb: ["playgraphImmediateTransitionDistance", 3E3],
+ Oeb: ["branchDistanceThreshold", 6E4],
+ S0: ["maxAllowedOutstandingRequests", 4],
+ p1: ["minStreamableConcurrencyWindow", 3E3],
+ V3: ["streamableConcurrencyFactor", .3],
+ rN: ["bufferingConcurrencyWindow", 7800],
+ Ioa: ["singleStreamablePerBranch", !0],
+ RDb: ["prefetchBudgetInBytes", 0]
+ };
+ b.vm = b.kHa;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Sqa = void 0;
+ c = a(0);
+ k = a(11);
+ d = a(33);
+ l = a(73);
+ a = (function (a) {
+ function b(b, c, f, h, d, k) {
+ h = a.call(this, b, c, h, d, k) || this;
+ c.da = f.byteLength;
+ l.Rh.call(h, b, c);
+ h.ZF = f;
+ h.$7a = c.da;
+ return h;
+ }
+ c.__extends(b, a);
+ Object.defineProperties(b.prototype, {
+ kc: {
+ get: function () {
+ return !1;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ eo: {
+ get: function () {
+ return !1;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ ed: {
+ get: function () {
+ return 0;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ status: {
+ get: function () {
+ return 0;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ qj: {
+ get: function () {
+ return 0;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ Dh: {
+ get: function () {},
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ complete: {
+ get: function () {
+ return !0;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ response: {
+ get: function () {
+ return this.ZF;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ vxb: {
+ get: function () {
+ return !0;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ readyState: {
+ get: function () {},
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ Qe: {
+ get: function () {
+ return this.$7a;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ b.prototype.EC = function () {
+ return !0;
+ };
+ b.prototype.qG = function (a) {
+ this.Ei = a.appendBuffer(this.response, k.Gm(this));
+ return {
+ U: this.Ei
+ };
+ };
+ b.prototype.Yj = function () {
+ return -1;
+ };
+ b.prototype.abort = function () {
+ return !0;
+ };
+ b.prototype.yc = function () {};
+ b.prototype.YR = function () {
+ return !1;
+ };
+ return b;
+ })(a(164).bA);
+ b.Sqa = a;
+ d.Ve(l.Rh, a);
+ }, function (d, b, a) {
+ var k,
+ l,
+ g,
+ h,
+ p;
+ function c(a) {
+ return {
+ mediaType: a.L,
+ streamId: a.wa,
+ movieId: a.G,
+ bitrate: a.R,
+ location: a.location,
+ serverId: a.Ob,
+ saveToDisk: !0,
+ offset: a.offset,
+ bytes: a.da,
+ timescale: a.S,
+ frameDuration: a.stream.Wa && a.stream.Wa.Ab,
+ encrypted: a.Uj,
+ initSegments: 1 < a.Ii.length ? a.Ii.map(function (a) {
+ return {
+ fi: a.pC,
+ s: a.data.byteLength,
+ e: !!a.Uj
+ };
+ }) : void 0
+ };
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Ria = b.Sia = b.ZNa = b.eha = b.nLa = b.pLa = b.aha = b.fha = b.dha = b.uga = b.vga = b.Uva = void 0;
+ k = a(8);
+ l = a(724);
+ g = a(401);
+ h = a(11);
+ p = a(27);
+ b.Uva = {
+ eU: "movieEntry",
+ J2a: "header",
+ B7: "metadata",
+ i3a: "headerData",
+ fSb: "headerMetadata",
+ w2a: "sizes",
+ v2a: "durations",
+ Tta: "fragments",
+ r4a: "response",
+ tk: "billboard",
+ fx: {
+ lifespan: 259200
+ }
+ };
+ b.vga = function (a, b, c) {
+ var f,
+ h;
+ f = b.headerData;
+ c && b.sizes instanceof ArrayBuffer && b.durations instanceof ArrayBuffer && (h = {
+ jk: c.startTicks,
+ offset: c.offset,
+ S: c.timescale,
+ sizes: new Uint32Array(b.sizes),
+ Rd: new Uint32Array(b.durations)
+ });
+ return {
+ kc: !0,
+ L: a.mediaType,
+ G: a.movieId,
+ wa: a.streamId,
+ R: a.bitrate,
+ location: a.location,
+ Ob: a.serverId,
+ da: a.bytes,
+ offset: a.offset,
+ Xha: f,
+ U_: a.initSegments,
+ Uj: a.encrypted,
+ S: a.timescale,
+ Wa: a.frameDuration,
+ Le: a.saveToDisk,
+ $: h
+ };
+ };
+ b.uga = function (a, b) {
+ var c,
+ f,
+ h;
+ b = b.response;
+ c = a.startTicks;
+ f = a.durationTicks;
+ void 0 !== c && void 0 !== f && (h = c + f);
+ return {
+ kc: !1,
+ L: a.mediaType,
+ G: a.movieId,
+ wa: a.streamId,
+ R: a.bitrate,
+ location: a.location,
+ Ob: a.serverId,
+ da: a.bytes,
+ offset: a.offset,
+ response: b,
+ S: a.timescale,
+ Qa: a.startTicks,
+ cp: f,
+ Le: a.saveToDisk,
+ jb: h
+ };
+ };
+ b.dha = function (a) {
+ return {
+ Ld: a.priority,
+ G: a.movieId,
+ headers: {},
+ Lq: 0,
+ RG: 0,
+ E_: 0,
+ Le: a.saveToDisk,
+ ac: a.stats,
+ gp: a.firstSelectedStreamBitrate,
+ kp: a.initSelectionReason,
+ Mq: a.histDiscountedThroughputValue,
+ Lk: a.histTdigest,
+ Kk: a.histAge,
+ mm: void 0
+ };
+ };
+ b.fha = function (a, b, c, h, d) {
+ var f,
+ m;
+ f = {
+ headers: {},
+ data: {}
+ };
+ h.forEach(function (h) {
+ var k,
+ m,
+ w;
+ k = h.L;
+ k = d && d.Hq(k, h.wa);
+ m = [];
+ if (h.kc)
+ if (!Array.isArray(h.U_) || 2 > h.U_.length)
+ m.push({
+ pC: 0,
+ data: h.Xha
+ });
+ else
+ for (var u = 0, r = 0; r < h.U_.length; ++r) {
+ w = h.U_[r];
+ m.push({
+ pC: w.fi,
+ data: h.Xha.slice(u, u + w.s),
+ Uj: w.e
+ });
+ u += w.s;
+ }
+ k ? (h.$ && k.O1(m, h.S, h.Wa ? new p.fa(h.Wa, h.S) : void 0, h.$), h.kc && k && k.ge ? (void 0 === f.headers && (f.headers = {}), f.headers[h.wa] = new g.US(k, {
+ da: h.da,
+ offset: h.offset,
+ Ii: m,
+ Uj: h.Uj
+ }, b)) : h.response instanceof ArrayBuffer && void 0 !== k.$ && void 0 !== h.Qa && void 0 !== h.S && void 0 !== h.jb && (m = k.$.lZ(new p.fa(h.Qa, h.S).qa), void 0 !== m && (k = new l.Sqa(k, {
+ S: h.S,
+ Qa: h.Qa,
+ jb: h.jb,
+ index: m.index,
+ offset: h.offset,
+ da: h.da
+ }, h.response, c, a, b), void 0 === f.data && (f.data = {}), f.data[h.wa] || (f.data[h.wa] = []), f.data[h.wa].push(k)))) : b.warn("Failed to load data from disk because the AseStream was missing from the stream map streamId: " + h.wa + " movieId: " + h.G);
+ });
+ if (!k.X(f.data)) {
+ m = f.data;
+ Object.keys(m).forEach(function (a) {
+ m[a].sort(function (a, b) {
+ return a.Qa - b.Qa;
+ });
+ });
+ }
+ return f;
+ };
+ b.aha = function (a) {
+ return {
+ mediaType: a.L,
+ streamId: a.wa,
+ movieId: a.G,
+ bitrate: a.R,
+ location: a.location,
+ serverId: a.Ob,
+ saveToDisk: !0,
+ offset: a.offset,
+ bytes: a.da,
+ timescale: a.S,
+ startTicks: a.Qa,
+ durationTicks: a.cp
+ };
+ };
+ b.pLa = c;
+ b.nLa = function (a) {
+ var b,
+ d,
+ k,
+ m;
+ b = c(a);
+ a.stream.ge && a.stream && a.stream.$ && (d = {
+ timescale: a.stream.$.S,
+ startTicks: a.stream.$.jk,
+ offset: a.stream.$.ih(0)
+ }, m = a.stream.$.BJ, k = m.sizes.buffer, m = m.Rd.buffer);
+ return {
+ mediaType: b.mediaType,
+ streamId: b.streamId,
+ movieId: b.movieId,
+ bitrate: b.bitrate,
+ location: b.location,
+ serverId: b.serverId,
+ saveToDisk: !0,
+ offset: b.offset,
+ bytes: b.bytes,
+ timescale: b.timescale,
+ frameDuration: b.frameDuration,
+ headerData: h.ys(a.Ii.map(function (a) {
+ return a.data;
+ })),
+ initSegments: b.initSegments,
+ encrypted: a.Uj,
+ fragments: d,
+ sizes: k,
+ durations: m
+ };
+ };
+ b.eha = function (a) {
+ return {
+ priority: a.Ld,
+ movieId: a.G,
+ saveToDisk: a.Le,
+ firstSelectedStreamBitrate: a.gp,
+ initSelectionReason: a.kp,
+ histDiscountedThroughputValue: a.Mq,
+ histTdigest: a.Lk,
+ histAge: a.Kk
+ };
+ };
+ b.ZNa = function (a) {
+ return !k.has(a, "startTicks");
+ };
+ b.Sia = function (a) {
+ return !a.Xha || !a.S || !a.$ || void 0 === a.$.jk || void 0 === a.$.offset || void 0 === a.$.Rd || !a.$.Rd.length || void 0 === a.$.sizes || !a.$.sizes.length;
+ };
+ b.Ria = function (a) {
+ return void 0 === a.da || void 0 === a.offset || void 0 === a.S || void 0 === a.Qa || void 0 === a.cp;
+ };
+ }, function (d, b, a) {
+ var g,
+ h;
+ function c(a, b, f) {
+ Object.keys(a).forEach(function (h) {
+ var d,
+ k;
+ if (g.df(a[h]))
+ if (a[h].d0) {
+ d = a[h];
+ k = f + d.offset;
+ a[h] = b.slice(k, k + d.byteLength);
+ } else
+ a[h] = c(a[h], b, f);
+ });
+ return a;
+ }
+ function k(a, b, c) {
+ Object.keys(a).forEach(function (f) {
+ var h;
+ if (g.d0(a[f])) {
+ h = a[f];
+ b.push(h);
+ a[f] = {
+ d0: !0,
+ offset: c.gea,
+ byteLength: h.byteLength
+ };
+ c.gea += h.byteLength;
+ } else
+ g.df(a[f]) && k(a[f], b, c);
+ });
+ return a;
+ }
+ function l() {
+ var a,
+ b,
+ c;
+ a = Array.prototype.concat.apply([], arguments);
+ b = a.reduce(function (a, b) {
+ return a + b.byteLength;
+ }, 0);
+ c = new Uint8Array(b);
+ a.reduce(function (a, b) {
+ c.set(new Uint8Array(b), a);
+ return a + b.byteLength;
+ }, 0);
+ return c.buffer;
+ }
+ g = a(107);
+ h = a(60);
+ d.P = {
+ shb: function (a) {
+ var b,
+ c,
+ d;
+ b = h(a, {});
+ a = [];
+ b = k(b, a, {
+ gea: 0
+ });
+ b = JSON.stringify(b);
+ c = new ArrayBuffer(b.length + 4);
+ d = new DataView(c);
+ d.setUint32(0, b.length);
+ for (var p = 4, g = 0, r = b.length; g < r; g++) {
+ d.setUint8(p, b.charCodeAt(g));
+ p++;
+ }
+ a = [c].concat(a);
+ return l.apply(null, a);
+ },
+ rhb: function (a) {
+ var b;
+ b = new DataView(a, 0, 4).getInt32(0);
+ for (var f = new Uint8Array(a, 4, b), h = "", d = 0; d < f.byteLength; d++) {
+ h += String.fromCharCode(f[d]);
+ }
+ b = 4 + b;
+ h = JSON.parse(h);
+ return c(h, a, b);
+ }
+ };
+ }, function (d, b, a) {
+ var l;
+ function c(a, b) {
+ return a.length > b.length ? 1 : b.length > a.length ? -1 : 0;
+ }
+ function k(a, b) {
+ var c,
+ h,
+ f;
+ c = [];
+ if (l.df(b)) {
+ h = {};
+ f = {};
+ f[a] = h;
+ c.push(f);
+ c = Object.keys(b).reduce(function (c, f) {
+ var d,
+ m,
+ p;
+ d = b[f];
+ p = {};
+ l.d0(d) ? (m = a + ".__embed__." + f, p[m] = d, c.push(p)) : l.df(d) ? (m = a + ".__sub__." + f, d = k(m, d), h[f] = d[0][m], c = c.concat(d.slice(1))) : h[f] = d;
+ return c;
+ }, c);
+ } else (f = {}, f[a] = b, c.push(f));
+ return c;
+ }
+ l = a(107);
+ d.P = {
+ Hlb: k,
+ Xub: function (a) {
+ var b,
+ q;
+ b = Object.keys(a).map(function (a) {
+ return a.split(".");
+ });
+ b.sort(c);
+ for (var d = b[0], k = d.length, d = a[d.join(".")], f = 1; f < b.length; f++) {
+ for (var l = !1, g = !1, r = d, n = k; n < b[f].length; n++) {
+ q = b[f][n];
+ switch (q) {
+ case "__metadata__":
+ break;
+ case "__sub__":
+ g = !0;
+ break;
+ case "__embed__":
+ l = !0;
+ break;
+ default:
+ g ? (r = r[q], g = !1) : l && (r[q] = a[b[f].join(".")], l = !1);
+ }
+ }
+ }
+ return d;
+ },
+ yvb: function (a) {
+ return a && (0 <= a.indexOf("__sub__") || 0 <= a.indexOf("__embed__"));
+ }
+ };
+ }, function (d, b, a) {
+ function c(a) {
+ return a;
+ }
+ function k() {
+ return c;
+ }
+ a(8);
+ d.P = {
+ OO: k,
+ vha: k
+ };
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ g;
+ c = a(8);
+ k = a(107);
+ l = {};
+ l[k.Ao.jA] = function (a) {
+ return a;
+ };
+ l[k.Ao.WU] = function (a) {
+ a = a || new ArrayBuffer(0);
+ return String.fromCharCode.apply(null, new Uint8Array(a));
+ };
+ l[k.Ao.OBJECT] = function (a) {
+ var b;
+ b = a || new ArrayBuffer(0);
+ a = "";
+ for (var b = new Uint8Array(b), c = 0; c < b.byteLength; c++) {
+ a += String.fromCharCode(b[c]);
+ }
+ return JSON.parse(a);
+ };
+ g = {};
+ g[k.Ao.jA] = function (a) {
+ return a;
+ };
+ g[k.Ao.WU] = function (a) {
+ for (var b = new ArrayBuffer(a.length), c = new Uint8Array(b), f = 0, h = a.length; f < h; f++) {
+ c[f] = a.charCodeAt(f);
+ }
+ return b;
+ };
+ g[k.Ao.OBJECT] = function (a) {
+ return c.X(a) || c.Pa(a) ? a : g[k.Ao.WU](JSON.stringify(a));
+ };
+ d.P = {
+ OO: function (a) {
+ return l[a] || l[k.Ao.jA];
+ },
+ vha: function (a) {
+ return g[a] || g[k.Ao.jA];
+ }
+ };
+ }, function (d) {
+ function b(a, b, d, g) {
+ a.trace(":", d, ":", g);
+ b(g);
+ }
+ function a(a) {
+ this.listeners = [];
+ this.console = a;
+ }
+ a.prototype.constructor = a;
+ a.prototype.addEventListener = function (a, d, l, g) {
+ l = g ? l.bind(g) : l;
+ g = !1;
+ if (a) {
+ this.console && (l = b.bind(null, this.console, l, d));
+ if ("function" === typeof a.addEventListener)
+ g = a.addEventListener(d, l);
+ else if ("function" === typeof a.addListener)
+ g = a.addListener(d, l);
+ else
+ throw Error("Emitter does not have a function to add listeners for '" + d + "'");
+ this.listeners.push([a, d, l]);
+ }
+ return g;
+ };
+ a.prototype.on = a.prototype.addEventListener;
+ a.prototype.clear = function () {
+ var a;
+ a = this.listeners.length;
+ this.listeners.forEach(function (a) {
+ var b,
+ c;
+ b = a[0];
+ c = a[1];
+ a = a[2];
+ "function" === typeof b.removeEventListener ? b.removeEventListener(c, a) : "function" === typeof b.removeListener && b.removeListener(c, a);
+ });
+ this.listeners = [];
+ this.console && this.console.trace("removed", a, "listener(s)");
+ };
+ d.P = a;
+ }, function (d) {
+ function b(a, b) {
+ var c;
+ if (void 0 === b || "function" !== typeof b || "string" !== typeof a)
+ throw new TypeError("EventEmitter: addEventListener requires a string and a function as arguments");
+ if (void 0 === this.zn)
+ return (this.zn = {}, this.zn[a] = [b], !0);
+ c = this.zn[a];
+ return void 0 === c ? (this.zn[a] = [b], !0) : 0 > c.indexOf(b) ? (c.push(b), !0) : !1;
+ }
+ function a(a, b) {
+ a = this.zn ? this.zn[a] : void 0;
+ if (!a)
+ return !1;
+ a.forEach(function (a) {
+ a(b);
+ });
+ return !0;
+ }
+ d.P = {
+ addEventListener: b,
+ on: b,
+ removeEventListener: function (a, b) {
+ var c;
+ if (void 0 === b || "function" !== typeof b || "string" !== typeof a)
+ throw new TypeError("EventEmitter: removeEventListener requires a string and a function as arguments");
+ if (void 0 === this.zn)
+ return !1;
+ c = this.zn[a];
+ if (void 0 === c)
+ return !1;
+ b = c.indexOf(b);
+ if (0 > b)
+ return !1;
+ if (1 === c.length)
+ return (delete this.zn[a], !0);
+ c.splice(b, 1);
+ return !0;
+ },
+ Ka: a,
+ emit: a,
+ removeAllListeners: function (a) {
+ this.zn && (void 0 === a ? delete this.zn : delete this.zn[a]);
+ return this;
+ }
+ };
+ }, function (d) {
+ function b(a) {
+ if (!(this instanceof b))
+ return new b(a);
+ if ("undefined" === typeof a)
+ this.pl = function (a, b) {
+ return a <= b;
+ };
+ else {
+ if ("function" !== typeof a)
+ throw Error("heap comparator must be a function");
+ this.pl = a;
+ }
+ this.yn = [];
+ }
+ function a(b, d) {
+ var k,
+ h,
+ p,
+ m,
+ f,
+ l,
+ g;
+ k = b.yn;
+ h = b.pl;
+ p = 2 * d + 1;
+ m = 2 * d + 2;
+ f = k[d];
+ l = k[p];
+ g = k[m];
+ l && h(l.Ld, f.Ld) && (!g || h(l.Ld, g.Ld)) ? (c(k, d, p), a(b, p)) : g && h(g.Ld, f.Ld) && (c(k, d, m), a(b, m));
+ }
+ function c(a, b, c) {
+ var h;
+ h = a[b];
+ a[b] = a[c];
+ a[c] = h;
+ }
+ b.prototype.clear = function () {
+ this.yn = [];
+ };
+ b.prototype.bo = function (a, b) {
+ this.yn.push({
+ Ld: a,
+ value: b
+ });
+ a = this.yn;
+ b = this.pl;
+ for (var d = a.length - 1, h = 0 === d ? null : Math.floor((d - 1) / 2); null !== h && b(a[d].Ld, a[h].Ld); ) {
+ c(a, d, h);
+ d = h;
+ h = 0 === d ? null : Math.floor((d - 1) / 2);
+ }
+ };
+ b.prototype.remove = function () {
+ var b;
+ if (0 !== this.yn.length) {
+ b = this.yn[0];
+ c(this.yn, 0, this.yn.length - 1);
+ this.yn.pop();
+ a(this, 0);
+ return b.value;
+ }
+ };
+ b.prototype.mz = function () {
+ if (0 !== this.yn.length)
+ return this.yn[0].value;
+ };
+ b.prototype.enqueue = b.prototype.bo;
+ b.prototype.YG = b.prototype.remove;
+ b.prototype.g0 = function () {
+ return 0 === this.yn.length;
+ };
+ b.prototype.bn = function () {
+ return this.yn.map(function (a) {
+ return a.value;
+ });
+ };
+ d.P = b;
+ }, function (d, b, a) {
+ var k,
+ l,
+ g,
+ h,
+ p,
+ m,
+ f,
+ u;
+ function c(a, b, d) {
+ var t,
+ Z;
+ function r(a, b, c, f) {
+ a.info.call(a, (function (a, h) {
+ var d;
+ if (a)
+ f(a);
+ else {
+ try {
+ d = h.values[this.context].entries[b][c].size;
+ } catch (O) {
+ d = -1;
+ }
+ -1 < d ? f(null, d) : this.vr(function (a, b) {
+ a ? f(a) : (b[c] && (d = b[c].size), f(null, d));
+ });
+ }
+ }).bind(a));
+ }
+ function w(a, b, h, d, k, m, g) {
+ var u;
+ m ? m.Fn || (m.Fn = {}) : m = {
+ Fn: {}
+ };
+ t(d);
+ u = l.time.now();
+ d = new f(function (c, f) {
+ a.create(l.storage.VE, b, h, function (a, b) {
+ a ? f(a) : c(b);
+ });
+ }).then(function (f) {
+ f.U ? r(a, l.storage.VE, b, function (a, h) {
+ a ? g(a) : (Z(h), t(h), m.Fn[c.PS.b7] = {
+ U: !0,
+ time: k,
+ fj: h,
+ Ty: b,
+ KTa: f,
+ duration: l.time.now() - u
+ }, m.Xj = f.Xj, g(null, m));
+ }) : (m.Fn[c.PS.b7] = {
+ U: !1,
+ Ty: b,
+ error: f.error
+ }, g(null, m));
+ }, function (a) {
+ g(a);
+ });
+ p.st(d);
+ }
+ function n(a, b, c, f, h, d) {
+ f.bo(c.time, c);
+ for (var k = c.time - 864E5, m = f.mz(); m && !isNaN(m.time) && m.time < k; ) {
+ m = f.YG();
+ t(0 - (m.da || 0));
+ m = f.mz();
+ }
+ f = f.bn().map(function (a) {
+ return a.time + ";" + a.da;
+ });
+ w(a, b, Array.prototype.join.call(f, "|"), c.da, c.time, h, d);
+ }
+ function A(a, b, f, h, d, k, p, u, w) {
+ var A;
+ A = l.time.now();
+ a.create(f, h, d, function (d, q) {
+ var K;
+ if (d)
+ m.error("Failed to replace item", h, d);
+ else if (q.U) {
+ K = q.Xj;
+ r(a, f, h, function (f, d) {
+ var m,
+ g;
+ if (f)
+ w(f);
+ else {
+ f = {
+ time: u,
+ da: d || 0
+ };
+ m = {
+ Xj: K,
+ Fn: {}
+ };
+ g = l.time.now() - A;
+ m.Fn[c.PS.REPLACE] = {
+ U: !0,
+ time: u,
+ fj: d,
+ Ty: h,
+ KTa: q,
+ duration: g
+ };
+ k ? n(a, b, f, p, m, w) : (t(d), w(null, m));
+ }
+ });
+ } else
+ w(g.mV.vo(q.error || "Failed to create item"));
+ });
+ }
+ function q(a, b, f, h, d, k, p, u, w) {
+ var A;
+ A = l.time.now();
+ a.append(f, h, d, function (d, q) {
+ var K;
+ if (d)
+ (m.error("Failed to save item " + h, d), w(d));
+ else if (q.U) {
+ K = q.Xj;
+ r(a, f, h, function (f, d) {
+ var m,
+ g;
+ if (f)
+ w(f);
+ else {
+ f = {
+ time: u,
+ da: d || 0
+ };
+ m = {
+ Xj: K,
+ Fn: {}
+ };
+ g = l.time.now() - A;
+ m.Fn[c.PS.o6a] = {
+ U: !0,
+ time: u,
+ fj: d,
+ Ty: h,
+ KTa: q,
+ duration: g
+ };
+ k ? n(a, b, f, p, m, w) : (t(d), w(null, m));
+ }
+ });
+ } else
+ w(g.mV.vo(q.error || "Failed to save item"));
+ });
+ }
+ function K(a, b) {
+ a && k.Zb(a.remove) && a.Ej.valid && a.remove(l.storage.VE, b.JF, function (c, f) {
+ if (c)
+ m.error("Failed to delete old journal key", c);
+ else
+ try {
+ f && (k.X(f.error) || f.error.some(function (a) {
+ return "NFErr_FileNotFound" === a.gYb;
+ })) && n(a, b.JF, {
+ time: 0,
+ da: 0
+ }, b.yM, 0, function () {});
+ } catch (Y) {}
+ });
+ }
+ if (!a.Ej.valid)
+ return u;
+ this.PBa = k.X(b) || k.Pa(b) ? 0 : b;
+ this.baa = a;
+ this.yaa = this.PL = 0;
+ this.yM = new h();
+ this.eab = d || "default";
+ this.JF = this.eab + ".NRDCACHEJOURNALKEY";
+ t = (function (a) {
+ isNaN(a) || (this.PL += a);
+ return this.PL;
+ }).bind(this);
+ Z = (function (a) {
+ isNaN(a) || (this.yaa += a);
+ return this.yaa;
+ }).bind(this);
+ this.Tga = function () {
+ return this.JF;
+ };
+ this.save = function (a, b, c, f) {
+ var h;
+ h = l.time.now();
+ q(this.baa, this.JF, a, b, c, 0 <= this.PBa, this.yM, h, f);
+ };
+ this.replace = function (a, b, c, f) {
+ var h;
+ h = l.time.now();
+ A(this.baa, this.JF, a, b, c, 0 <= this.PBa, this.yM, h, f);
+ };
+ this.IKa = function (a) {
+ var b,
+ h;
+ b = this.PL;
+ a -= 864E5;
+ for (var c = this.yM.bn(), f = 0; f < c.length; f++) {
+ h = c[f];
+ h.time < a && !isNaN(h.da) && (b -= h.da);
+ }
+ return b;
+ };
+ (function (a) {
+ var b;
+ b = a.baa;
+ a.PL = 0;
+ b.read(l.storage.VE, a.JF, 0, -1, function (c, f) {
+ var h,
+ d,
+ k,
+ g;
+ h = [];
+ d = 0;
+ k = !0;
+ if (c)
+ m.error("Failed to compile records", c);
+ else if (f.U) {
+ c = String.fromCharCode.apply(null, new Uint8Array(f.value));
+ c = String.prototype.split.call(c, "|");
+ f = c.reduce(function (a, b) {
+ return a + (b.length + 40);
+ }, 0);
+ t(f);
+ h = c.map(function (a) {
+ a = a.split(";");
+ return {
+ time: Number(a[0]),
+ da: Number(a[1])
+ };
+ });
+ try {
+ if (!isNaN(h.reduce(function (a, b) {
+ return a + b.da;
+ }, 0)))
+ for (var k = !1, p = l.time.now() - 864E5; d < h.length; d++) {
+ g = h[d];
+ g.time < p || (a.yM.bo(g.time, g), t(g.da));
+ }
+ } catch (ha) {}
+ }
+ k && K(b, a);
+ });
+ })(this);
+ }
+ k = a(8);
+ l = a(108);
+ g = a(212);
+ h = a(732);
+ b = a(60);
+ p = a(211);
+ m = new l.Console("DISKWRITEMANAGER", "media|asejs");
+ f = l.Promise;
+ b({
+ PS: {
+ o6a: "saveitem",
+ REPLACE: "replaceitem",
+ b7: "journalupdate"
+ }
+ }, c);
+ u = {
+ save: function (a, b, c, f) {
+ f(g.Vva);
+ },
+ replace: function (a, b, c, f) {
+ f(g.Vva);
+ },
+ Tga: function () {
+ return "";
+ },
+ IKa: function () {
+ return 0;
+ }
+ };
+ c.prototype.constructor = c;
+ d.P = {
+ create: function (a, b, f) {
+ return new c(a, b, f);
+ },
+ tTb: u
+ };
+ }, function (d, b, a) {
+ var p,
+ m,
+ f,
+ u,
+ w,
+ n,
+ q,
+ C,
+ t;
+ function c() {}
+ function k(b, f, h, d, u) {
+ var r;
+ r = p.Zb(d) ? d : c;
+ this.Kx = b;
+ this.Gf = h.pq;
+ this.Ku = 0;
+ this.P8a = h.rnb || "NONE";
+ this.tu = p.X(u) || p.Pa(u) ? 0 : u;
+ this.Od = {};
+ this.bq = h.UZb || m.storage.VE;
+ this.Ur = f;
+ this.lG = w.create(this.Ur, h.mkb * this.tu, this.Kx);
+ this.on = this.addEventListener = t.addEventListener;
+ this.removeEventListener = t.removeEventListener;
+ this.emit = this.Ka = t.Ka;
+ this.pCa = g(this, k.Yd.REPLACE);
+ this.t9a = g(this, k.Yd.bBa);
+ this.kB;
+ this.kB = h.TYa ? a(729) : a(728);
+ this.Ur.query(this.bq, this.jo(""), (function (a, b) {
+ var c;
+ if (a)
+ r(a);
+ else {
+ c = this.lG.Tga();
+ a = Object.keys(b).filter(function (a) {
+ return a !== c && n.WH(a);
+ }).map(this.Mpa.bind(this));
+ this.G2(a, (function (a, c) {
+ Object.keys(c).map((function (a) {
+ var f,
+ h;
+ f = c[a];
+ this.Od[n.eZ(a)] = f;
+ if (f.wna && 1 < Object.keys(f.wna).length) {
+ h = 0;
+ Object.keys(f.wna).forEach((function (a) {
+ b[this.jo(a)] && p.na(b[this.jo(a)].size) && (h += b[this.jo(a)].size);
+ }).bind(this));
+ a = n.eZ(a);
+ this.Od[a].size = h;
+ } else (a = n.eZ(a), b[this.jo(a)] && (this.Od[a].size = b[this.jo(a)].size));
+ }).bind(this));
+ l(this.Ur, this.bq, this.Kx, (function (a, b) {
+ this.Ku = b;
+ a ? r(a) : r(null, this);
+ }).bind(this));
+ }).bind(this));
+ }
+ }).bind(this));
+ }
+ function l(a, b, f, h) {
+ var d;
+ d = p.Zb(h) ? h : c;
+ a.query(b, f, function (a, b) {
+ a ? d(a) : (a = Object.keys(b).reduce(function (a, c) {
+ return a + (b[c].size || 0);
+ }, 0), d(null, a));
+ });
+ }
+ function g(a, b) {
+ return function (c, f, h, d, g) {
+ return function (u, r) {
+ var w;
+ if (u)
+ (f || a.Ka(k.Yd.ERROR, {
+ itemKey: c,
+ error: u
+ }), h(u));
+ else {
+ w = {
+ fj: 0,
+ duration: 0,
+ items: [],
+ time: m.time.now()
+ };
+ Object.keys(r.Fn).map(function (b) {
+ var c;
+ c = r.Fn[b];
+ b = {
+ key: a.Mpa(c.Ty),
+ Jg: b
+ };
+ c.U ? (w.fj += c.fj, b.t0 = c.fj, p.na(c.duration) && (w.duration += c.duration)) : b.error = c.error;
+ w.items.push(b);
+ });
+ u = p.Zb(d) ? d() : 0;
+ 0 < g && (w.QG = g - u);
+ l(a.Ur, a.bq, a.Kx, function (c, d) {
+ c ? h(c) : (a.Ku = d, w.Xj = a.Gf - d, f || a.Ka(b, C.PKa(w)), h(null, w));
+ });
+ }
+ };
+ };
+ }
+ function h(a, b) {
+ return 0 < b && a >= b ? !0 : !1;
+ }
+ p = a(8);
+ m = a(108);
+ f = a(212);
+ b = a(60);
+ u = new m.Console("MEDIACACHE", "media|asejs");
+ w = a(733);
+ n = a(370);
+ q = a(107);
+ C = a(211);
+ t = a(106).EventEmitter;
+ b({
+ Yd: {
+ bBa: "writeitem",
+ REPLACE: "replaceitem",
+ b7: "journalupdate",
+ ERROR: "mediacache-error"
+ }
+ }, k);
+ k.prototype.getName = function () {
+ return this.Kx;
+ };
+ k.prototype.Mpa = function (a) {
+ return a.slice(this.Kx.length + 1);
+ };
+ k.prototype.Lga = function () {
+ return Object.keys(this.Od).filter((function (a) {
+ a = n.mga(this.Od[a]);
+ return void 0 === a || 0 >= a.eHa();
+ }).bind(this));
+ };
+ k.prototype.zrb = function () {
+ return Object.keys(this.Od).reduce((function (a, b) {
+ var c;
+ c = this.Od[b];
+ return c && c.creationTime < a.creationTime ? {
+ resourceKey: b,
+ creationTime: c.creationTime
+ }
+ : a;
+ }).bind(this), {
+ resourceKey: null,
+ creationTime: m.time.now()
+ }).d0b;
+ };
+ k.prototype.Aqb = function () {
+ var a;
+ switch (this.P8a) {
+ case "FIFO":
+ a = this.zrb();
+ }
+ return a;
+ };
+ k.prototype.alb = function (a) {
+ var b;
+ b = p.Zb(a) ? a : c;
+ this.vLa((function (c) {
+ var f,
+ h,
+ d;
+ f = this.Od;
+ h = Object.keys(f).reduce(function (a, b) {
+ b = f[b];
+ b.resourceIndex && Object.keys(b.resourceIndex).forEach(function (b) {
+ a.push(b);
+ });
+ return a;
+ }, []);
+ if ((c = c.filter(function (a) {
+ return !n.WH(a) && 0 > h.indexOf(a);
+ })) && 0 < c.length) {
+ d = this;
+ c = m.Promise.all(c.map(function (a) {
+ return new m.Promise(function (b, c) {
+ d["delete"](a, function (a) {
+ a ? c(a) : b();
+ });
+ });
+ })).then(function () {
+ b(void 0, {
+ Xma: !0
+ });
+ }, function (a) {
+ b(a, {
+ Xma: !1
+ });
+ });
+ C.st(c);
+ } else
+ a(void 0, {
+ Xma: !1
+ });
+ }).bind(this));
+ };
+ k.prototype.fFb = function (a, b, h) {
+ var d,
+ k;
+ d = p.Zb(b) ? b : c;
+ b = this.jo(a);
+ k = m.time.now();
+ this.Ur.read(this.bq, b, 0, -1, (function (b, c) {
+ var l;
+ if (b)
+ d(b);
+ else if (c && c.U && c.value) {
+ p.Zb(h) || (h = this.kB.OO(q.Ao.jA), n.WH(a) ? h = this.kB.OO(q.Ao.OBJECT) : (b = this.Od[a], !p.X(b) && p.na(b.resourceIndex[a]) ? (b = b.resourceIndex[a], p.X(b) && (b = q.Ao.jA), h = this.kB.OO(b)) : u.warn("Metadata is undefined or does not contain a resource format for key", a, ":", b)));
+ try {
+ l = h(c.value);
+ } catch (fa) {
+ return d(f.dF.vo(fa.message));
+ }
+ c = {
+ duration: m.time.now() - k
+ };
+ this.Od[a] && p.na(this.Od[a].size) && (c.Zu = p.na(this.Od[a].size) ? this.Od[a].size : 0);
+ d(null, l, c);
+ } else
+ d(f.dF.vo(c.error));
+ }).bind(this));
+ };
+ k.prototype.read = function (a, b, c) {
+ this.fFb(a, b, c);
+ };
+ k.prototype.G2 = function (a, b, h) {
+ var d,
+ k,
+ l;
+ d = p.Zb(b) ? b : c;
+ if ("[object Array]" !== Object.prototype.toString.call(a))
+ d(f.dF.vo("item keys must be an array"));
+ else {
+ k = {};
+ l = [];
+ a = m.Promise.all(a.map((function (a) {
+ return new m.Promise((function (b, c) {
+ var f;
+ h && !p.X(h[a]) && (f = this.kB.OO(h[a]));
+ this.read(a, function (f, h, d) {
+ f ? (h = {}, h[a] = f, c(h)) : (k[a] = h, l.push({
+ duration: d.duration,
+ Zu: d.Zu
+ }), b());
+ }, f);
+ }).bind(this));
+ }).bind(this))).then(function () {
+ var a;
+ a = {};
+ 0 < l.length && (a = l.reduce(function (a, b) {
+ p.na(b.duration) && (a.duration += b.duration);
+ p.na(b.Zu) && (a.Zu += b.Zu);
+ return a;
+ }, {
+ duration: 0,
+ Zu: 0
+ }));
+ d(null, k, a);
+ }, function (a) {
+ d(a);
+ });
+ C.st(a);
+ }
+ };
+ k.prototype.write = function (a, b, d, k, m) {
+ var l,
+ g,
+ u;
+ d = p.Zb(d) ? d : c;
+ l = this.jo(a);
+ g = "function" === typeof m ? m() : 0;
+ u = q.Iha(b);
+ u = this.kB.vha(u)(b);
+ u.byteLength + this.Ku >= this.Gf ? d(f.rE) : h(u.byteLength + g, this.tu) ? d(f.nV) : this.lG.save(this.bq, l, b, this.t9a(a, k, d, m, this.tu), u.byteLength);
+ };
+ k.prototype.replace = function (a, b, d, k, m) {
+ var l,
+ g,
+ r,
+ w;
+ l = p.Zb(d) ? d : c;
+ g = this.jo(a);
+ r = 0;
+ "function" === typeof m && (r = m());
+ d = q.Iha(b);
+ w = this.kB.vha(d)(b);
+ d = (this.Od[a] || ({})).size || 0;
+ 0 >= d && this.Od[a] ? this.PLa([a], (function (c) {
+ u.trace("Replacing key", a, "which exists:", !!this.Od[a], this.Od[a] ? this.Od[a] : void 0, "and has size", c, "with", b, "with size", w.byteLength, "plus _used", this.Ku, "vs capacity", this.Gf);
+ w.byteLength - c + this.Ku >= this.Gf ? l(f.rE) : h(w.byteLength - c + r, this.tu) ? l(f.nV) : this.lG.replace(this.bq, g, b, this.pCa(a, k, l, m, this.tu), w.byteLength);
+ }).bind(this)) : (u.trace("Replacing key", a, "which exists:", !!this.Od[a], this.Od[a] ? this.Od[a] : void 0, "and has size", d, "with", b, "with size", w.byteLength, "plus _used", this.Ku, "vs capacity", this.Gf), w.byteLength - d + this.Ku >= this.Gf ? l(f.rE) : h(w.byteLength - d + r, this.tu) ? l(f.nV) : this.lG.replace(this.bq, g, b, this.pCa(a, k, l, m, this.tu), w.byteLength));
+ };
+ k.prototype.uGb = function (a, b, h, d) {
+ var l;
+ l = p.Zb(b) ? b : c;
+ "[object Object]" !== Object.prototype.toString.call(a) ? l(f.mV.vo("items must be a map of keys to objects")) : (b = m.Promise.all(Object.keys(a).map((function (b) {
+ return new m.Promise((function (c) {
+ this.replace(b, a[b], function (a, f) {
+ a ? c({
+ error: a,
+ mo: b
+ }) : c(f);
+ }, !0, d);
+ }).bind(this));
+ }).bind(this))).then((function (a) {
+ var b,
+ c,
+ f,
+ g;
+ try {
+ b = Number.MAX_VALUE;
+ c = a.reduce(function (a, c) {
+ c.error || (a.fj += c.fj, p.na(c.duration) && (a.duration += c.duration), !p.X(c.Xj) && c.Xj < b && (b = c.Xj), c.items.map(function (b) {
+ a.items.push({
+ key: b.key,
+ Jg: b.Jg,
+ t0: b.t0,
+ Jxb: b.Jxb,
+ duration: b.duration
+ });
+ }), b < Number.MAX_VALUE && (a.Xj = b));
+ return a;
+ }, {
+ fj: 0,
+ items: [],
+ time: m.time.now(),
+ duration: 0
+ });
+ 0 < this.tu && (c.QG = this.tu - d());
+ f = a.filter(function (a) {
+ return !p.X(a.error);
+ });
+ g = C.yMa(f);
+ h || (g ? g.forEach((function (a) {
+ this.Ka(k.Yd.ERROR, a);
+ }).bind(this)) : this.Ka(k.Yd.REPLACE, C.PKa(c)));
+ l(g, c);
+ } catch (Y) {
+ l(Y);
+ }
+ }).bind(this), (function (a) {
+ h || this.Ka(k.Yd.ERROR, a);
+ l(a);
+ }).bind(this)), C.st(b));
+ };
+ k.prototype["delete"] = function (a, b) {
+ var h;
+ h = p.Zb(b) ? b : c;
+ this.Ur.remove(this.bq, this.jo(a), (function (a, b) {
+ a ? h(a) : b && b.U ? l(this.Ur, this.bq, this.jo(""), (function (a, b) {
+ a ? h(a) : (this.Ku = b, h());
+ }).bind(this)) : h(f.d1a.vo(b.error));
+ }).bind(this));
+ };
+ k.prototype.vLa = function (a) {
+ this.query("", function (b, c) {
+ b ? (u.error("Failed to get keys", b), a([])) : a(c);
+ });
+ };
+ k.prototype.query = function (a, b) {
+ var f,
+ h;
+ f = p.Zb(b) ? b : c;
+ h = this.lG.Tga();
+ this.Ur.query(this.bq, this.jo(a), (function (a, b) {
+ a ? f(a) : f(null, Object.keys(b).filter(function (a) {
+ return a !== h;
+ }).map(this.Mpa.bind(this)));
+ }).bind(this));
+ };
+ k.prototype.jo = function (a) {
+ return this.Kx + "." + a;
+ };
+ k.prototype.clear = function (a) {
+ var b;
+ b = p.Zb(a) ? a : c;
+ this.vLa((function (a) {
+ var c;
+ c = m.Promise.all(a.map((function (a) {
+ return new m.Promise((function (b) {
+ a && this["delete"](a, function () {
+ b();
+ });
+ }).bind(this));
+ }).bind(this))).then(function () {
+ b(a);
+ }, (function (a) {
+ this.Ka(k.Yd.ERROR, a);
+ b([], a);
+ }).bind(this));
+ C.st(c);
+ }).bind(this));
+ };
+ k.prototype.PLa = function (a, b) {
+ var f,
+ h;
+ f = p.Zb(b) ? b : c;
+ h = (a || []).map((function (a) {
+ return this.jo(a);
+ }).bind(this));
+ this.Ur.query(this.bq, this.Kx, (function (b, c) {
+ b ? (u.error("failed to get persisted size for keyset ", a, b), f(0)) : (b = Object.keys(c).filter(function (a) {
+ return 0 <= h.indexOf(a);
+ }).reduce(function (a, b) {
+ return a + (c[b].size || 0);
+ }, 0), f(b));
+ }).bind(this));
+ };
+ k.prototype.Npb = function (a) {
+ return this.lG.IKa(a);
+ };
+ k.prototype.constructor = k;
+ d.P = k;
+ }, function (d, b, a) {
+ var k,
+ l,
+ g,
+ h,
+ p;
+ function c(a) {
+ this.Ej = a;
+ this.context = a.context;
+ this.kRa = "NULLCONTEXT" === a.context ? !0 : !1;
+ }
+ k = a(8);
+ l = a(108);
+ g = new l.Console("DISKCACHE", "media|asejs");
+ h = {
+ context: "NULLCONTEXT",
+ read: function (a, b, c, h, d) {
+ d("MediaCache is not supported");
+ },
+ remove: function (a, b, c) {
+ c("MediaCache is not supported");
+ },
+ create: function (a, b, c, h) {
+ h("MediaCache is not supported");
+ },
+ append: function (a, b, c, h) {
+ h("MediaCache is not supported");
+ },
+ query: function (a, b, c) {
+ c([]);
+ }
+ };
+ c.prototype.rB = function () {
+ var a,
+ b,
+ c;
+ a = Array.prototype.slice.call(arguments);
+ b = a[0];
+ c = a[a.length - 1];
+ a = a.slice(1, a.length - 1);
+ a.push(function (a) {
+ c(null, a);
+ });
+ try {
+ if (this.kRa)
+ throw Error("Media Cache not supported");
+ b.apply(this.Ej, a);
+ } catch (w) {
+ c(w);
+ }
+ };
+ c.prototype.query = function (a, b, c, h) {
+ try {
+ if (this.kRa)
+ throw Error("Media Cache not supported");
+ this.Ej.query(a, b, function (a) {
+ c(null, a);
+ }, h);
+ } catch (A) {
+ c(A);
+ }
+ };
+ c.prototype.read = function (a, b, c, h, d) {
+ this.rB(this.Ej.read, a, b, c, h, d);
+ };
+ c.prototype.remove = function (a, b, c) {
+ this.rB(this.Ej.remove, a, b, c);
+ };
+ c.prototype.create = function (a, b, c, h) {
+ this.rB(this.Ej.create, a, b, c, h);
+ };
+ c.prototype.append = function (a, b, c, h) {
+ this.rB(this.Ej.append, a, b, c, h);
+ };
+ c.prototype.info = function (a) {
+ this.rB(this.Ej.info, a);
+ };
+ c.prototype.vr = function (a) {
+ this.rB(this.Ej.vr, a);
+ };
+ c.prototype.flush = function (a) {
+ this.rB(this.Ej.flush, a);
+ };
+ c.prototype.clear = function () {
+ this.Ej.clear();
+ };
+ d.P = {
+ pjb: function (a) {
+ var b,
+ d,
+ m,
+ r,
+ n;
+ b = a.SXb || "NRDMEDIADISKCACHE";
+ p = a.ry || 0;
+ 0 !== p || k.X(l.options) || k.X(l.options.pI) || (p = l.options.pI);
+ a = p;
+ try {
+ r = l.storage.bH;
+ if (!r || !k.df(r))
+ throw (g.warn("Failed to get disk store contexts from platform"), "Platform does not support disk store");
+ if (m = r[b])
+ (g.warn("Disk store exists, returning"), d = new c(m));
+ else {
+ if (k.X(l.storage) || !k.Zb(l.storage.dY) || l.options && 0 === l.options.pI)
+ throw (g.warn("Platform doesn't support creating disk store contexts"), "Platform doesn't support creating disk store contexts");
+ g.warn("Disk store context doesn't exist, creating with size " + a);
+ n = l.storage.dY({
+ context: b,
+ size: a,
+ encrypted: !0,
+ signed: !0
+ });
+ if (!n || !n.valid)
+ throw "Failed to create disk store context";
+ d = new c(n);
+ }
+ } catch (C) {
+ g.warn("Exception creating disk store context - returning NullContext (noops)", C);
+ d = new c(h);
+ }
+ return d;
+ },
+ nqb: function () {
+ return p;
+ },
+ YQb: c
+ };
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ g,
+ h;
+ c = a(8);
+ l = [];
+ h = !1;
+ d.P = {
+ $_: function (b, d, f) {
+ var m;
+ if (h)
+ c.Zb(f) && (k.Jl || k.CC ? setTimeout(function () {
+ f(k);
+ }, 0) : l.push(f));
+ else {
+ h = !0;
+ m = a(108);
+ m.QH(b);
+ g = new m.Console("MEDIACACHE", "media|asejs");
+ k = new(a(371))(d, function (a) {
+ a && g.warn("Failed to initialize MediaCache", a);
+ c.Zb(f) && setTimeout(function () {
+ f(k);
+ }, 0);
+ l.map(function (a) {
+ setTimeout(function () {
+ a(k);
+ }, 0);
+ });
+ });
+ }
+ return k;
+ },
+ sYb: function (b, h) {
+ k = new(a(371))(b, function (a, b) {
+ a && g.warn("Failed to initialize MediaCache", a);
+ c.Zb(h) && setTimeout(function () {
+ h(b);
+ }, 0);
+ });
+ }
+ };
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ g,
+ h,
+ p,
+ m,
+ f;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.rwa = void 0;
+ c = a(0);
+ k = a(18);
+ a(5);
+ l = a(736);
+ g = a(8);
+ h = a(219);
+ p = a(11);
+ d = a(33);
+ m = a(725);
+ f = m.Uva;
+ a = (function () {
+ function a(a, b, c) {
+ var y00;
+ y00 = 2;
+ for (; y00 !== 13; ) {
+ switch (y00) {
+ case 2:
+ var h4P = "m";
+ h4P += "edi";
+ h4P += "a|ase";
+ h4P += "js";
+ var Q4P = "ME";
+ Q4P += "DIACAC";
+ Q4P += "H";
+ Q4P += "E";
+ this.u = new b.Console(Q4P, h4P);
+ this.wba = (a.Tz || a.fqa) && 0 < (a.ry || (b.options || ({})).pI || 0);
+ this.M8a = a.Imb ? a.Imb : !1;
+ this.Io = a.Aka ? a.Aka : !1;
+ this.U9a = a.iQa ? a.iQa : !1;
+ this.K = a;
+ this.hm = b;
+ y00 = 7;
+ break;
+ case 7:
+ this.Pe = c;
+ y00 = 6;
+ break;
+ case 6:
+ var q4P = "1SI";
+ q4P += "YbZr";
+ q4P += "N";
+ q4P += "JCp";
+ q4P += "9";
+ var O4P = "Medi";
+ O4P += "a cache has not been ";
+ O4P += "i";
+ O4P += "ni";
+ O4P += "tiaized";
+ this.Yr = Promise.reject(O4P);
+ q4P;
+ y00 = 13;
+ break;
+ }
+ }
+ }
+ var x00;
+ x00 = 2;
+ for (; x00 !== 27; ) {
+ switch (x00) {
+ case 3:
+ a.prototype.tHb = function (a, b) {
+ var T00,
+ c;
+ T00 = 2;
+ for (; T00 !== 5; ) {
+ switch (T00) {
+ case 2:
+ c = m.eha(a);
+ this.wi.save(f.tk, [f.eU, a.G].join("."), c, f.fx, function () {
+ var U00;
+ U00 = 2;
+ for (; U00 !== 1; ) {
+ switch (U00) {
+ case 2:
+ b();
+ U00 = 1;
+ break;
+ case 4:
+ b();
+ U00 = 9;
+ break;
+ U00 = 1;
+ break;
+ }
+ }
+ });
+ T00 = 5;
+ break;
+ }
+ }
+ };
+ a.prototype.sHb = function (a, b) {
+ var V00,
+ k,
+ u,
+ c,
+ h,
+ d,
+ l;
+ V00 = 2;
+ for (; V00 !== 14; ) {
+ switch (V00) {
+ case 3:
+ (k = {
+ timescale: a.stream.$.S,
+ startTicks: a.stream.$.jk,
+ offset: a.stream.$.ih(0)
+ }, u = a.stream.$.BJ);
+ l[h + "." + f.Tta] = {
+ mo: k,
+ Kd: f.fx
+ };
+ l[h + "." + f.w2a] = {
+ mo: u.sizes.buffer,
+ Kd: f.fx
+ };
+ V00 = 7;
+ break;
+ case 2:
+ (c = this, h = [a.G, a.wa, f.J2a].join("."), d = this.hm.time.ea(), k = m.pLa(a), l = {});
+ l[h + "." + f.B7] = {
+ mo: k,
+ Kd: f.fx
+ };
+ l[h + "." + f.i3a] = {
+ mo: p.ys(a.Ii.map(function (a) {
+ var W00;
+ W00 = 2;
+ for (; W00 !== 1; ) {
+ switch (W00) {
+ case 2:
+ return a.data;
+ break;
+ }
+ }
+ })),
+ Kd: f.fx
+ };
+ V00 = 4;
+ break;
+ case 4:
+ V00 = a.stream.ge && !g.X(a.stream.$) ? 3 : 6;
+ break;
+ case 7:
+ l[h + "." + f.v2a] = {
+ mo: u.Rd.buffer,
+ Kd: f.fx
+ };
+ V00 = 6;
+ break;
+ case 6:
+ this.wi.eVa(f.tk, l, function (f) {
+ var X00;
+ X00 = 2;
+ for (; X00 !== 5; ) {
+ switch (X00) {
+ case 1:
+ b();
+ X00 = 5;
+ break;
+ case 2:
+ f || (f = c.hm.time.ea() - d, a.bk && (g.X(a.bk.ac.so) && (a.bk.ac.so = 0), a.bk.ac.so += f));
+ X00 = 1;
+ break;
+ case 9:
+ b();
+ X00 = 8;
+ break;
+ X00 = 5;
+ break;
+ }
+ }
+ });
+ V00 = 14;
+ break;
+ }
+ }
+ };
+ x00 = 8;
+ break;
+ case 8:
+ a.prototype.rHb = function (a, b, c) {
+ var Y00,
+ k,
+ p,
+ l,
+ h,
+ d;
+ Y00 = 2;
+ for (; Y00 !== 14; ) {
+ switch (Y00) {
+ case 5:
+ (k = this.hm.time.ea(), p = [a.G, a.wa, a.cc].join("."));
+ a = m.aha(a);
+ l = {};
+ l[p + "." + f.B7] = {
+ mo: a,
+ Kd: f.fx
+ };
+ Y00 = 8;
+ break;
+ case 2:
+ (h = this, d = a.response);
+ Y00 = 1;
+ break;
+ case 1:
+ Y00 = d instanceof ArrayBuffer ? 5 : 6;
+ break;
+ case 8:
+ g.X(d) || (l[p + "." + f.r4a] = {
+ mo: d,
+ Kd: f.fx
+ });
+ this.wi.eVa(f.tk, l, function (a) {
+ var Z00;
+ Z00 = 2;
+ for (; Z00 !== 5; ) {
+ switch (Z00) {
+ case 2:
+ var z4P = "Failed";
+ z4P += " to save fragme";
+ z4P += "nt";
+ a ? h.u.warn(z4P, a) : (a = h.hm.time.ea() - k, g.X(b.ac.so) && (b.ac.so = 0), b.ac.so += a);
+ c();
+ Z00 = 5;
+ break;
+ }
+ }
+ });
+ Y00 = 14;
+ break;
+ case 6:
+ var E4P = "Unable to save fragment because ";
+ E4P += "re";
+ E4P += "sponse is not an ArrayBuffer";
+ c(Error(E4P));
+ Y00 = 14;
+ break;
+ }
+ }
+ };
+ a.prototype.uHb = function (a) {
+ var a10,
+ b,
+ d,
+ k,
+ p,
+ l,
+ u,
+ r,
+ w,
+ q,
+ t,
+ c10,
+ ia,
+ Y,
+ V,
+ z,
+ d10,
+ E,
+ X,
+ O,
+ na,
+ e10,
+ f10,
+ g10,
+ h10,
+ i10,
+ j10,
+ n;
+ a10 = 2;
+ for (; a10 !== 10; ) {
+ switch (a10) {
+ case 2:
+ (l = this, u = this.hm.time.ea(), r = {}, w = m.eha(a));
+ r.movieEntry = w;
+ a10 = 5;
+ break;
+ case 14:
+ r.data = w;
+ a10 = 13;
+ break;
+ case 5:
+ a10 = a.headers ? 4 : 8;
+ break;
+ case 9:
+ r.headers = n;
+ a10 = 8;
+ break;
+ case 8:
+ a10 = a && a.data ? 7 : 13;
+ break;
+ case 7:
+ (w = {}, q = a.data, t = Object.keys(a.data));
+ try {
+ c10 = 2;
+ for (; c10 !== 7; ) {
+ switch (c10) {
+ case 1:
+ c10 = !z.done ? 5 : 7;
+ break;
+ case 5:
+ (ia = z.value, Y = q[ia], t = {});
+ c10 = 4;
+ break;
+ case 2:
+ (V = c.__values(t), z = V.next());
+ c10 = 1;
+ break;
+ case 4:
+ c10 = Y ? 3 : 8;
+ break;
+ case 3:
+ try {
+ d10 = 2;
+ for (; d10 !== 7; ) {
+ switch (d10) {
+ case 4:
+ d10 = O instanceof h.TS && O.response instanceof ArrayBuffer && !g.X(O.cc) ? 3 : 8;
+ break;
+ case 1:
+ d10 = !X.done ? 5 : 7;
+ break;
+ case 2:
+ (E = (k = void 0, c.__values(Y)), X = E.next());
+ d10 = 1;
+ break;
+ case 5:
+ O = X.value;
+ d10 = 4;
+ break;
+ case 3:
+ na = m.aha(O);
+ d10 = 9;
+ break;
+ case 9:
+ t[O.cc] = {
+ mediaType: na.mediaType,
+ streamId: na.streamId,
+ movieId: na.movieId,
+ bitrate: na.bitrate,
+ location: na.location,
+ serverId: na.serverId,
+ saveToDisk: na.saveToDisk,
+ offset: na.offset,
+ bytes: na.bytes,
+ timescale: na.timescale,
+ startTicks: na.startTicks,
+ durationTicks: na.durationTicks,
+ response: O.response
+ };
+ d10 = 8;
+ break;
+ case 8:
+ X = E.next();
+ d10 = 1;
+ break;
+ }
+ }
+ } catch (ha) {
+ k = {
+ error: ha
+ };
+ }
+ finally {
+ e10 = 2;
+ for (; e10 !== 1; ) {
+ switch (e10) {
+ case 2:
+ try {
+ f10 = 2;
+ for (; f10 !== 1; ) {
+ switch (f10) {
+ case 2:
+ var P4P = "re";
+ P4P += "t";
+ P4P += "urn";
+ X && !X.done && (p = E[P4P]) && p.call(E);
+ f10 = 1;
+ break;
+ }
+ }
+ }
+ finally {
+ g10 = 2;
+ for (; g10 !== 5; ) {
+ switch (g10) {
+ case 2:
+ g10 = k ? 1 : 5;
+ break;
+ case 1:
+ throw k.error;
+ g10 = 5;
+ break;
+ case 9:
+ throw k.error;
+ g10 = 3;
+ break;
+ g10 = 5;
+ break;
+ }
+ }
+ }
+ e10 = 1;
+ break;
+ }
+ }
+ }
+ c10 = 9;
+ break;
+ case 9:
+ w[ia] = t;
+ c10 = 8;
+ break;
+ case 8:
+ z = V.next();
+ c10 = 1;
+ break;
+ }
+ }
+ } catch (ha) {
+ b = {
+ error: ha
+ };
+ }
+ finally {
+ h10 = 2;
+ for (; h10 !== 1; ) {
+ switch (h10) {
+ case 2:
+ try {
+ i10 = 2;
+ for (; i10 !== 1; ) {
+ switch (i10) {
+ case 2:
+ var U4P = "re";
+ U4P += "t";
+ U4P += "u";
+ U4P += "r";
+ U4P += "n";
+ z && !z.done && (d = V[U4P]) && d.call(V);
+ i10 = 1;
+ break;
+ }
+ }
+ }
+ finally {
+ j10 = 2;
+ for (; j10 !== 5; ) {
+ switch (j10) {
+ case 9:
+ throw b.error;
+ j10 = 9;
+ break;
+ j10 = 5;
+ break;
+ case 1:
+ throw b.error;
+ j10 = 5;
+ break;
+ case 2:
+ j10 = b ? 1 : 5;
+ break;
+ case 3:
+ j10 = b ? 5 : 4;
+ break;
+ j10 = b ? 1 : 5;
+ break;
+ }
+ }
+ }
+ h10 = 1;
+ break;
+ }
+ }
+ }
+ a10 = 14;
+ break;
+ case 4:
+ n = {};
+ Object.keys(a.headers).forEach(function (b) {
+ var b10,
+ c;
+ b10 = 2;
+ for (; b10 !== 5; ) {
+ switch (b10) {
+ case 2:
+ c = m.nLa(a.headers[b]);
+ n[b] = c;
+ b10 = 5;
+ break;
+ }
+ }
+ });
+ a10 = 9;
+ break;
+ case 13:
+ b = {
+ lifespan: 259200
+ };
+ this.U9a && (b.convertToBinaryData = !0);
+ this.wi.save(f.tk, a.G, r, b, function (a) {
+ var k10;
+ k10 = 2;
+ for (; k10 !== 1; ) {
+ switch (k10) {
+ case 2:
+ var C4P = "s";
+ C4P += "avetodi";
+ C4P += "sk";
+ a || l.vJ(C4P, {
+ fVa: l.hm.time.ea() - u
+ });
+ k10 = 1;
+ break;
+ }
+ }
+ });
+ a10 = 10;
+ break;
+ }
+ }
+ };
+ a.prototype.eOa = function (a) {
+ var l10;
+ l10 = 2;
+ for (; l10 !== 1; ) {
+ switch (l10) {
+ case 2:
+ return !(g.X(a) || g.Pa(a) || g.X(a.ac) || g.Pa(a.ac) || g.X(a.G) || g.Pa(a.G) || g.X(a.Ld) || g.Pa(a.Ld));
+ break;
+ }
+ }
+ };
+ a.prototype.Qxb = function (a) {
+ var m10,
+ b,
+ c;
+ m10 = 2;
+ for (; m10 !== 5; ) {
+ switch (m10) {
+ case 2:
+ (b = this, c = g.X(a) ? "" : a.toString());
+ return new Promise(function (a) {
+ var n10,
+ o10;
+ n10 = 2;
+ for (; n10 !== 4; ) {
+ switch (n10) {
+ case 2:
+ n10 = g.X(b.wi) ? 1 : 5;
+ break;
+ case 8:
+ a();
+ n10 = 0;
+ break;
+ n10 = 4;
+ break;
+ case 9:
+ n10 = g.X(b.wi) ? 4 : 6;
+ break;
+ n10 = g.X(b.wi) ? 1 : 5;
+ break;
+ case 1:
+ a();
+ n10 = 4;
+ break;
+ case 5:
+ try {
+ o10 = 2;
+ for (; o10 !== 1; ) {
+ switch (o10) {
+ case 2:
+ b.wi.xD(f.tk, "", function (b) {
+ var q10;
+ q10 = 2;
+ for (; q10 !== 5; ) {
+ switch (q10) {
+ case 2:
+ b = b.filter(function (a) {
+ var r10;
+ r10 = 2;
+ for (; r10 !== 5; ) {
+ switch (r10) {
+ case 2:
+ var p4P = "mov";
+ p4P += "ieEntr";
+ p4P += "y";
+ a = a.split(".");
+ return c && (c === a[0] || p4P === a[0] && c === a[1]);
+ break;
+ }
+ }
+ }).reduce(function (a, b) {
+ var s10,
+ c;
+ s10 = 2;
+ for (; s10 !== 4; ) {
+ switch (s10) {
+ case 2:
+ var S4P = "mov";
+ S4P += "i";
+ S4P += "e";
+ S4P += "Entr";
+ S4P += "y";
+ c = b.split(".");
+ S4P !== c[0] && (b = c[1], c = c[2], g.X(a[b]) && (a[b] = {}), g.X(a[b][c]) && (a[b][c] = !0));
+ return a;
+ break;
+ }
+ }
+ }, {});
+ a(b);
+ q10 = 5;
+ break;
+ }
+ }
+ });
+ o10 = 1;
+ break;
+ }
+ }
+ } catch (M) {
+ a();
+ }
+ n10 = 4;
+ break;
+ }
+ }
+ });
+ break;
+ }
+ }
+ };
+ x00 = 13;
+ break;
+ case 13:
+ a.prototype.qxb = function (a, b) {
+ var t10,
+ c;
+ t10 = 2;
+ for (; t10 !== 5; ) {
+ switch (t10) {
+ case 2:
+ c = this;
+ return b && b.headers && b.headers && 0 < Object.keys(b.headers).length && b.data ? new Promise(function (a) {
+ var u10,
+ f,
+ c;
+ u10 = 2;
+ for (; u10 !== 8; ) {
+ switch (u10) {
+ case 4:
+ f = b.data;
+ u10 = 3;
+ break;
+ case 9:
+ return a(c);
+ break;
+ case 2:
+ c = {};
+ b.headers && Object.keys(b.headers).forEach(function (a) {
+ var v10;
+ v10 = 2;
+ for (; v10 !== 5; ) {
+ switch (v10) {
+ case 2:
+ c[a] || (c[a] = {});
+ c[a].header = !0;
+ v10 = 5;
+ break;
+ }
+ }
+ });
+ u10 = 5;
+ break;
+ case 5:
+ u10 = b.data ? 4 : 9;
+ break;
+ case 3:
+ Object.keys(f).forEach(function (a) {
+ var w10;
+ w10 = 2;
+ for (; w10 !== 5; ) {
+ switch (w10) {
+ case 2:
+ c[a] || (c[a] = {});
+ f[a].forEach(function (b) {
+ var x10;
+ x10 = 2;
+ for (; x10 !== 1; ) {
+ switch (x10) {
+ case 2:
+ g.X(b.cc) || (c[a][b.cc] = !0);
+ x10 = 1;
+ break;
+ }
+ }
+ });
+ w10 = 5;
+ break;
+ }
+ }
+ });
+ u10 = 9;
+ break;
+ }
+ }
+ }) : this.zCa(a).then(function (b) {
+ var y10;
+ y10 = 2;
+ for (; y10 !== 5; ) {
+ switch (y10) {
+ case 1:
+ return new Promise(function (b) {
+ var z10;
+ z10 = 2;
+ for (; z10 !== 1; ) {
+ switch (z10) {
+ case 2:
+ c.wi.read(f.tk, a, function (c, f) {
+ var A10,
+ h,
+ d;
+ A10 = 2;
+ for (; A10 !== 5; ) {
+ switch (A10) {
+ case 2:
+ A10 = c ? 1 : 4;
+ break;
+ case 1:
+ b();
+ A10 = 5;
+ break;
+ case 9:
+ (h = f[a], d = {});
+ h.headers && Object.keys(h.headers).forEach(function (a) {
+ var B10;
+ B10 = 2;
+ for (; B10 !== 5; ) {
+ switch (B10) {
+ case 2:
+ d[a] || (d[a] = {});
+ d[a].header = !0;
+ B10 = 5;
+ break;
+ }
+ }
+ });
+ h.data && Object.keys(h.data).forEach(function (a) {
+ var C10;
+ C10 = 2;
+ for (; C10 !== 5; ) {
+ switch (C10) {
+ case 2:
+ d[a] || (d[a] = {});
+ Object.keys(h.data[a]).forEach(function (b) {
+ var D10;
+ D10 = 2;
+ for (; D10 !== 1; ) {
+ switch (D10) {
+ case 2:
+ d[a][b] = !0;
+ D10 = 1;
+ break;
+ }
+ }
+ });
+ C10 = 5;
+ break;
+ }
+ }
+ });
+ b(d);
+ A10 = 5;
+ break;
+ case 4:
+ A10 = g.X(f) ? 3 : 9;
+ break;
+ case 3:
+ b(void 0);
+ A10 = 5;
+ break;
+ }
+ }
+ });
+ z10 = 1;
+ break;
+ }
+ }
+ });
+ break;
+ case 2:
+ y10 = b ? 1 : 5;
+ break;
+ case 3:
+ y10 = b ? 2 : 4;
+ break;
+ y10 = b ? 1 : 5;
+ break;
+ }
+ }
+ });
+ break;
+ }
+ }
+ };
+ x00 = 12;
+ break;
+ case 2:
+ a.prototype.Eb = function (a, b) {
+ var z00,
+ c;
+ z00 = 2;
+ for (; z00 !== 5; ) {
+ switch (z00) {
+ case 2:
+ var w4P = "Media cache is ";
+ w4P += "disab";
+ w4P += "led";
+ c = this;
+ return this.Yr = this.wba ? new Promise(function (f, h) {
+ var A00;
+ A00 = 2;
+ for (; A00 !== 1; ) {
+ switch (A00) {
+ case 2:
+ (void 0 !== b && null !== b ? b.$_ : function (a) {
+ var B00;
+ B00 = 2;
+ for (; B00 !== 1; ) {
+ switch (B00) {
+ case 2:
+ return l.$_(c.hm, c.K, a);
+ break;
+ }
+ }
+ })(function (b) {
+ var C00,
+ d;
+ C00 = 2;
+ for (; C00 !== 4; ) {
+ switch (C00) {
+ case 2:
+ c.wi = b;
+ C00 = 1;
+ break;
+ case 9:
+ c.wi = b;
+ C00 = 5;
+ break;
+ C00 = 1;
+ break;
+ case 1:
+ var L4P = "M";
+ L4P += "edi";
+ L4P += "a cache d";
+ L4P += "id not initi";
+ L4P += "alize";
+ d = b.Jl;
+ (b = b.CC) ? h(b) : d ? (c.yJb(a), f()) : h(Error(L4P));
+ C00 = 4;
+ break;
+ }
+ }
+ });
+ A00 = 1;
+ break;
+ }
+ }
+ }) : Promise.reject(w4P);
+ break;
+ }
+ }
+ };
+ a.prototype.rxb = function (a) {
+ var D00,
+ b,
+ c,
+ h;
+ D00 = 2;
+ for (; D00 !== 5; ) {
+ switch (D00) {
+ case 2:
+ (b = this, c = [f.eU, a].join("."), h = this.hm.time.ea());
+ return this.Yr.then(function () {
+ var E00;
+ E00 = 2;
+ for (; E00 !== 1; ) {
+ switch (E00) {
+ case 2:
+ return new Promise(function (d) {
+ var F00;
+ F00 = 2;
+ for (; F00 !== 1; ) {
+ switch (F00) {
+ case 2:
+ b.wi.xD(f.tk, c, function (c) {
+ var G00,
+ k;
+ G00 = 2;
+ for (; G00 !== 3; ) {
+ switch (G00) {
+ case 8:
+ G00 = -c && 8 < c.length ? 5 : 2;
+ break;
+ G00 = !c || 0 >= c.length ? 1 : 5;
+ break;
+ case 2:
+ G00 = !c || 0 >= c.length ? 1 : 5;
+ break;
+ case 1:
+ var D4P = "m";
+ D4P += "ediacache";
+ D4P += "lo";
+ D4P += "okup";
+ (d(), b.vJ(D4P, {
+ P0: b.hm.time.ea() - h,
+ mY: !1
+ }));
+ G00 = 3;
+ break;
+ case 5:
+ k = c[0];
+ b.wi.read(f.tk, k, function (c, f) {
+ var H00,
+ I00,
+ h,
+ p;
+ H00 = 2;
+ for (; H00 !== 13; ) {
+ switch (H00) {
+ case 9:
+ h = {
+ priority: f.priority,
+ movieId: f.movieId,
+ saveToDisk: f.saveToDisk,
+ firstSelectedStreamBitrate: f.firstSelectedStreamBitrate,
+ initSelectionReason: f.initSelectionReason,
+ histDiscountedThroughputValue: f.histDiscountedThroughput,
+ histTdigest: f.histTdigest,
+ histAge: f.histAge,
+ headerCount: f.headerCount,
+ dataRequestCount: f.dataRequestCount,
+ headerRequestCount: f.headerRequestCount,
+ stats: f.stats
+ };
+ H00 = 8;
+ break;
+ case 3:
+ try {
+ I00 = 2;
+ for (; I00 !== 1; ) {
+ switch (I00) {
+ case 2:
+ h = JSON.parse(String.fromCharCode.apply(null, new Uint8Array(f)));
+ I00 = 1;
+ break;
+ }
+ }
+ } catch (B) {}
+ H00 = 8;
+ break;
+ case 5:
+ H00 = !g.X(f) ? 4 : 8;
+ break;
+ case 2:
+ var r6P = " ";
+ r6P += "f";
+ r6P += "ailed";
+ var K4P = "Re";
+ K4P += "ading ";
+ K4P += "movie entr";
+ K4P += "y ";
+ c && b.u.warn(K4P + k + r6P, c);
+ H00 = 5;
+ break;
+ case 4:
+ H00 = f instanceof ArrayBuffer ? 3 : 9;
+ break;
+ case 8:
+ g.X(h) || (p = m.dha(h));
+ g.X(p) || g.Pa(p) || (p.ac = p.ac || ({}), p.headers = p.headers || ({}));
+ H00 = 14;
+ break;
+ case 14:
+ b.eOa(p) ? d(p) : (b.Pab(a), d());
+ H00 = 13;
+ break;
+ }
+ }
+ });
+ G00 = 3;
+ break;
+ }
+ }
+ });
+ F00 = 1;
+ break;
+ }
+ }
+ });
+ break;
+ }
+ }
+ });
+ break;
+ }
+ }
+ };
+ a.prototype.mxb = function (a, b, c) {
+ var J00,
+ h,
+ d;
+ J00 = 2;
+ for (; J00 !== 9; ) {
+ switch (J00) {
+ case 2:
+ h = this;
+ J00 = 1;
+ break;
+ case 5:
+ var u6P = "Me";
+ u6P += "dia cache i";
+ u6P += "s n";
+ u6P += "ot enabled";
+ return Promise.reject(u6P);
+ break;
+ case 14:
+ return Promise.reject("");
+ break;
+ J00 = 4;
+ break;
+ case 1:
+ J00 = !this.Yr ? 5 : 4;
+ break;
+ case 4:
+ d = this.hm.time.ea();
+ return this.Yr.then(function () {
+ var K00;
+ K00 = 2;
+ for (; K00 !== 1; ) {
+ switch (K00) {
+ case 2:
+ return new Promise(function (k) {
+ var L00;
+ L00 = 2;
+ for (; L00 !== 1; ) {
+ switch (L00) {
+ case 2:
+ h.wi.xD(f.tk, a, function (f) {
+ var M00;
+ M00 = 2;
+ for (; M00 !== 5; ) {
+ switch (M00) {
+ case 2:
+ f = f.reduce(function (a, b) {
+ var N00,
+ c;
+ N00 = 2;
+ for (; N00 !== 9; ) {
+ switch (N00) {
+ case 6:
+ var n6P = "drmHe";
+ n6P += "a";
+ n6P += "der";
+ n6P += ".__embed__";
+ N00 = ~3 == c.indexOf("") ? 8 : 2;
+ break;
+ N00 = -1 !== c.indexOf(n6P) ? 5 : 4;
+ break;
+ case 2:
+ c = b.substr(0, b.lastIndexOf("."));
+ N00 = 1;
+ break;
+ case 1:
+ var f6P = "d";
+ f6P += "rmH";
+ f6P += "eader.__emb";
+ f6P += "ed";
+ f6P += "__";
+ N00 = -1 !== c.indexOf(f6P) ? 5 : 4;
+ break;
+ case 5:
+ return a;
+ break;
+ case 14:
+ return a;
+ break;
+ N00 = 4;
+ break;
+ case 4:
+ a[c] ? a[c].push(b) : a[c] = [b];
+ return a;
+ break;
+ }
+ }
+ }, {});
+ h.LEb(f, b).then(function (b) {
+ var O00,
+ f,
+ m;
+ O00 = 2;
+ for (; O00 !== 8; ) {
+ switch (O00) {
+ case 2:
+ O00 = void 0 === c || void 0 === b ? 1 : 5;
+ break;
+ case 5:
+ var H6P = "media";
+ H6P += "cac";
+ H6P += "helook";
+ H6P += "up";
+ var T6P = "No c";
+ T6P += "onten";
+ T6P += "t data found for ";
+ (f = h.hm.time.ea() - d, m = !1);
+ g.X(b) || g.X(b.data) || !g.df(b.data) ? h.u.trace(T6P + a, c) : m = !0;
+ h.vJ(H6P, {
+ P0: f,
+ mY: m
+ });
+ k(b);
+ O00 = 8;
+ break;
+ case 1:
+ return k();
+ break;
+ }
+ }
+ }, function () {
+ var P00;
+ P00 = 2;
+ for (; P00 !== 1; ) {
+ switch (P00) {
+ case 2:
+ k();
+ P00 = 1;
+ break;
+ }
+ }
+ });
+ M00 = 5;
+ break;
+ }
+ }
+ });
+ L00 = 1;
+ break;
+ }
+ }
+ });
+ break;
+ }
+ }
+ });
+ break;
+ }
+ }
+ };
+ a.prototype.nxb = function (a, b) {
+ var Q00,
+ c,
+ f;
+ Q00 = 2;
+ for (; Q00 !== 5; ) {
+ switch (Q00) {
+ case 2:
+ (c = this, f = this.hm.time.ea());
+ return this.Yr.then(function () {
+ var R00;
+ R00 = 2;
+ for (; R00 !== 1; ) {
+ switch (R00) {
+ case 2:
+ return c.zCa(a);
+ break;
+ }
+ }
+ }).then(function (h) {
+ var S00;
+ S00 = 2;
+ for (; S00 !== 5; ) {
+ switch (S00) {
+ case 9:
+ S00 = h ? 7 : 2;
+ break;
+ S00 = h ? 1 : 4;
+ break;
+ case 2:
+ S00 = h ? 1 : 4;
+ break;
+ case 1:
+ return c.rab(a.toString(), b, f);
+ break;
+ case 4:
+ var B6P = "m";
+ B6P += "e";
+ B6P += "diacache";
+ B6P += "lookup";
+ c.vJ(B6P, {
+ P0: c.hm.time.ea() - f,
+ mY: !1
+ });
+ S00 = 5;
+ break;
+ }
+ }
+ });
+ break;
+ }
+ }
+ };
+ x00 = 3;
+ break;
+ case 10:
+ a.prototype.LEb = function (a, b) {
+ var K10,
+ c,
+ f;
+ K10 = 2;
+ for (; K10 !== 5; ) {
+ switch (K10) {
+ case 2:
+ (c = this, f = Object.keys(a).map(function (b) {
+ var L10;
+ L10 = 2;
+ for (; L10 !== 1; ) {
+ switch (L10) {
+ case 2:
+ return c.mjb(a[b]);
+ break;
+ }
+ }
+ }));
+ return Promise.all(f).then(function (a) {
+ var M10;
+ M10 = 2;
+ for (; M10 !== 5; ) {
+ switch (M10) {
+ case 2:
+ a.sort(function (a, b) {
+ var N10;
+ N10 = 2;
+ for (; N10 !== 1; ) {
+ switch (N10) {
+ case 2:
+ return a.kc === b.kc ? 0 : a.kc ? -1 : 1;
+ break;
+ }
+ }
+ });
+ return m.fha(c.K, c.u, c.Pe, a, b);
+ break;
+ }
+ }
+ });
+ break;
+ }
+ }
+ };
+ a.prototype.mjb = function (a) {
+ var O10,
+ b,
+ c,
+ h,
+ d;
+ O10 = 2;
+ for (; O10 !== 5; ) {
+ switch (O10) {
+ case 2:
+ (b = this, d = {});
+ return new Promise(function (k, p) {
+ var P10,
+ l;
+ P10 = 2;
+ for (; P10 !== 5; ) {
+ switch (P10) {
+ case 2:
+ b.wi.G2(f.tk, a, function (a, b) {
+ var Q10,
+ R10,
+ g;
+ Q10 = 2;
+ for (; Q10 !== 1; ) {
+ switch (Q10) {
+ case 2:
+ try {
+ R10 = 2;
+ for (; R10 !== 19; ) {
+ switch (R10) {
+ case 3:
+ R10 = c instanceof ArrayBuffer ? 9 : 7;
+ break;
+ case 5:
+ Object.keys(b).map(function (a) {
+ var S10,
+ k,
+ T10,
+ m;
+ S10 = 2;
+ for (; S10 !== 3; ) {
+ switch (S10) {
+ case 1:
+ S10 = k === f.B7 ? 5 : 4;
+ break;
+ case 2:
+ k = a.substr(a.lastIndexOf(".") + 1);
+ S10 = 1;
+ break;
+ case 5:
+ try {
+ T10 = 2;
+ for (; T10 !== 5; ) {
+ switch (T10) {
+ case 2:
+ m = new Uint8Array(b[a]);
+ h = JSON.parse(String.fromCharCode.apply(null, m));
+ T10 = 5;
+ break;
+ }
+ }
+ } catch (ia) {
+ h = b[a];
+ }
+ S10 = 3;
+ break;
+ case 4:
+ k === f.Tta ? c = b[a] : d[k] = b[a];
+ S10 = 3;
+ break;
+ }
+ }
+ });
+ R10 = 4;
+ break;
+ case 10:
+ var y6P = "Missing ";
+ y6P += "or invalid medi";
+ y6P += "a data part";
+ y6P += "s ";
+ y6P += "for stream ";
+ return (g = y6P + l.wa, p(g));
+ break;
+ case 1:
+ return p(a);
+ break;
+ case 12:
+ k(l);
+ R10 = 19;
+ break;
+ case 9:
+ var G6P = "Header";
+ G6P += " fragments was an arr";
+ G6P += "ay buffer, is invalid t";
+ G6P += "ype ";
+ g = G6P + l.wa;
+ R10 = 8;
+ break;
+ case 20:
+ l = m.uga(h, {
+ response: d.response
+ });
+ R10 = 6;
+ break;
+ case 8:
+ return p(g);
+ break;
+ case 6:
+ R10 = l.kc ? 14 : 11;
+ break;
+ case 13:
+ var J6P = "Mis";
+ J6P += "sing o";
+ J6P += "r invalid header data parts for stream ";
+ return (g = J6P + l.wa, p(g));
+ break;
+ case 2:
+ R10 = a || void 0 === b ? 1 : 5;
+ break;
+ case 4:
+ R10 = m.ZNa(h) ? 3 : 20;
+ break;
+ case 11:
+ R10 = m.Ria(l) ? 10 : 12;
+ break;
+ case 14:
+ R10 = m.Sia(l) ? 13 : 12;
+ break;
+ case 7:
+ l = m.vga(h, d, c);
+ R10 = 6;
+ break;
+ }
+ }
+ } catch (B) {
+ p(B);
+ }
+ Q10 = 1;
+ break;
+ }
+ }
+ });
+ P10 = 5;
+ break;
+ }
+ }
+ });
+ break;
+ }
+ }
+ };
+ a.prototype.rab = function (a, b, h) {
+ var U10,
+ d;
+ U10 = 2;
+ for (; U10 !== 5; ) {
+ switch (U10) {
+ case 2:
+ d = this;
+ return new Promise(function (k, p) {
+ var V10,
+ l;
+ V10 = 2;
+ for (; V10 !== 5; ) {
+ switch (V10) {
+ case 2:
+ d.wi.read(f.tk, a, function (f, u) {
+ var W10,
+ r,
+ w,
+ n,
+ A,
+ q,
+ K,
+ H,
+ b20,
+ ja,
+ ya,
+ G,
+ za,
+ c20,
+ ma,
+ E,
+ N,
+ Q,
+ d20,
+ e20,
+ f20,
+ g20,
+ h20,
+ i20,
+ X10,
+ S,
+ z,
+ t,
+ M,
+ T,
+ Y10,
+ Z10,
+ a20,
+ C;
+ W10 = 2;
+ for (; W10 !== 4; ) {
+ switch (W10) {
+ case 7:
+ W10 = C.movieEntry ? 6 : 15;
+ break;
+ case 16:
+ void 0 !== l && (l.bk = f);
+ W10 = 15;
+ break;
+ case 20:
+ r = C.data;
+ w = Object.keys(r);
+ W10 = 18;
+ break;
+ case 6:
+ f = m.dha(C.movieEntry);
+ u = [];
+ W10 = 13;
+ break;
+ case 5:
+ p(f);
+ W10 = 4;
+ break;
+ case 2:
+ W10 = 1;
+ break;
+ case 12:
+ H = Object.keys(C.headers);
+ W10 = 11;
+ break;
+ case 3:
+ W10 = g.X(u) ? 9 : 8;
+ break;
+ case 17:
+ l = m.fha(d.K, d.u, d.Pe, u, b);
+ W10 = 16;
+ break;
+ case 18:
+ try {
+ b20 = 2;
+ for (; b20 !== 9; ) {
+ switch (b20) {
+ case 2:
+ (ja = c.__values(w), ya = ja.next());
+ b20 = 1;
+ break;
+ case 5:
+ (G = ya.value, za = Object.keys(r[G]));
+ try {
+ c20 = 2;
+ for (; c20 !== 7; ) {
+ switch (c20) {
+ case 2:
+ (ma = (q = void 0, c.__values(za)), E = ma.next());
+ c20 = 1;
+ break;
+ case 3:
+ var k6P = "Mis";
+ k6P += "sing or invalid ";
+ k6P += "media data";
+ k6P += " ";
+ k6P += "parts for stream ";
+ return (S = k6P + Q.wa, p(S));
+ break;
+ case 1:
+ c20 = !E.done ? 5 : 7;
+ break;
+ case 9:
+ u.push(Q);
+ c20 = 8;
+ break;
+ case 4:
+ c20 = m.Ria(Q) ? 3 : 9;
+ break;
+ case 5:
+ (N = r[G][E.value], Q = m.uga(N, N));
+ c20 = 4;
+ break;
+ case 8:
+ E = ma.next();
+ c20 = 1;
+ break;
+ }
+ }
+ } catch (ib) {
+ q = {
+ error: ib
+ };
+ }
+ finally {
+ d20 = 2;
+ for (; d20 !== 1; ) {
+ switch (d20) {
+ case 2:
+ try {
+ e20 = 2;
+ for (; e20 !== 1; ) {
+ switch (e20) {
+ case 2:
+ var F6P = "r";
+ F6P += "e";
+ F6P += "t";
+ F6P += "urn";
+ E && !E.done && (K = ma[F6P]) && K.call(ma);
+ e20 = 1;
+ break;
+ }
+ }
+ }
+ finally {
+ f20 = 2;
+ for (; f20 !== 5; ) {
+ switch (f20) {
+ case 2:
+ f20 = q ? 1 : 5;
+ break;
+ case 1:
+ throw q.error;
+ f20 = 5;
+ break;
+ case 9:
+ throw q.error;
+ f20 = 6;
+ break;
+ f20 = 5;
+ break;
+ }
+ }
+ }
+ d20 = 1;
+ break;
+ }
+ }
+ }
+ b20 = 3;
+ break;
+ case 3:
+ ya = ja.next();
+ b20 = 1;
+ break;
+ case 1:
+ b20 = !ya.done ? 5 : 9;
+ break;
+ }
+ }
+ } catch (ib) {
+ n = {
+ error: ib
+ };
+ }
+ finally {
+ g20 = 2;
+ for (; g20 !== 1; ) {
+ switch (g20) {
+ case 2:
+ try {
+ h20 = 2;
+ for (; h20 !== 1; ) {
+ switch (h20) {
+ case 2:
+ var A6P = "r";
+ A6P += "e";
+ A6P += "tu";
+ A6P += "rn";
+ ya && !ya.done && (A = ja[A6P]) && A.call(ja);
+ h20 = 1;
+ break;
+ }
+ }
+ }
+ finally {
+ i20 = 2;
+ for (; i20 !== 5; ) {
+ switch (i20) {
+ case 1:
+ throw n.error;
+ i20 = 5;
+ break;
+ case 2:
+ i20 = n ? 1 : 5;
+ break;
+ }
+ }
+ }
+ g20 = 1;
+ break;
+ }
+ }
+ }
+ W10 = 17;
+ break;
+ case 10:
+ W10 = C.data ? 20 : 17;
+ break;
+ case 15:
+ var b6P = "me";
+ b6P += "di";
+ b6P += "acachelookup";
+ d.vJ(b6P, {
+ P0: d.hm.time.ea() - h,
+ mY: !0
+ });
+ k(l);
+ W10 = 4;
+ break;
+ case 11:
+ try {
+ X10 = 2;
+ for (; X10 !== 12; ) {
+ switch (X10) {
+ case 14:
+ u.push(z);
+ X10 = 13;
+ break;
+ case 3:
+ var a6P = "Header ";
+ a6P += "fragment";
+ a6P += "s was an arra";
+ a6P += "y buffer, is invali";
+ a6P += "d type ";
+ S = a6P + T.streamId;
+ X10 = 9;
+ break;
+ case 9:
+ return p(S);
+ break;
+ case 6:
+ var j6P = "Missing or i";
+ j6P += "n";
+ j6P += "vali";
+ j6P += "d header data parts fo";
+ j6P += "r stream ";
+ return (S = j6P + z.wa, p(S));
+ break;
+ case 7:
+ X10 = m.Sia(z) ? 6 : 14;
+ break;
+ case 13:
+ M = t.next();
+ X10 = 1;
+ break;
+ case 1:
+ X10 = !M.done ? 5 : 12;
+ break;
+ case 8:
+ z = m.vga(T, T, T.fragments);
+ X10 = 7;
+ break;
+ case 4:
+ X10 = T.fragments instanceof ArrayBuffer ? 3 : 8;
+ break;
+ case 2:
+ (t = c.__values(H), M = t.next());
+ X10 = 1;
+ break;
+ case 5:
+ (G = M.value, T = C.headers[G]);
+ X10 = 4;
+ break;
+ }
+ }
+ } catch (ib) {
+ r = {
+ error: ib
+ };
+ }
+ finally {
+ Y10 = 2;
+ for (; Y10 !== 1; ) {
+ switch (Y10) {
+ case 2:
+ try {
+ Z10 = 2;
+ for (; Z10 !== 1; ) {
+ switch (Z10) {
+ case 2:
+ var R6P = "r";
+ R6P += "et";
+ R6P += "urn";
+ M && !M.done && (w = t[R6P]) && w.call(t);
+ Z10 = 1;
+ break;
+ }
+ }
+ }
+ finally {
+ a20 = 2;
+ for (; a20 !== 5; ) {
+ switch (a20) {
+ case 2:
+ a20 = r ? 1 : 5;
+ break;
+ case 3:
+ a20 = r ? 2 : 7;
+ break;
+ a20 = r ? 1 : 5;
+ break;
+ case 1:
+ throw r.error;
+ a20 = 5;
+ break;
+ case 9:
+ throw r.error;
+ a20 = 2;
+ break;
+ a20 = 5;
+ break;
+ }
+ }
+ }
+ Y10 = 1;
+ break;
+ }
+ }
+ }
+ W10 = 10;
+ break;
+ case 9:
+ k();
+ W10 = 4;
+ break;
+ case 13:
+ W10 = C.headers ? 12 : 10;
+ break;
+ case 8:
+ C = u[a];
+ W10 = 7;
+ break;
+ case 1:
+ W10 = f ? 5 : 3;
+ break;
+ }
+ }
+ });
+ V10 = 5;
+ break;
+ }
+ }
+ });
+ break;
+ }
+ }
+ };
+ a.prototype.zCa = function (a) {
+ var j20,
+ b;
+ j20 = 2;
+ for (; j20 !== 5; ) {
+ switch (j20) {
+ case 2:
+ var c6P = "Media cach";
+ c6P += "e is n";
+ c6P += "ot enable";
+ c6P += "d";
+ b = this;
+ return this.Yr ? this.Yr.then(function () {
+ var k20;
+ k20 = 2;
+ for (; k20 !== 1; ) {
+ switch (k20) {
+ case 2:
+ return new Promise(function (c) {
+ var l20;
+ l20 = 2;
+ for (; l20 !== 1; ) {
+ switch (l20) {
+ case 2:
+ b.wi.xD(f.tk, a.toString(), function (b) {
+ var m20;
+ m20 = 2;
+ for (; m20 !== 1; ) {
+ switch (m20) {
+ case 2:
+ b && 0 !== b.length ? 1 === b.length && b[0] === a.toString() ? c(!0) : c(!1) : c(!1);
+ m20 = 1;
+ break;
+ }
+ }
+ });
+ l20 = 1;
+ break;
+ }
+ }
+ });
+ break;
+ }
+ }
+ }) : Promise.reject(c6P);
+ break;
+ }
+ }
+ };
+ x00 = 17;
+ break;
+ case 12:
+ a.prototype.orb = function () {
+ var E10,
+ a;
+ E10 = 2;
+ for (; E10 !== 5; ) {
+ switch (E10) {
+ case 2:
+ var V6P = "Me";
+ V6P += "d";
+ V6P += "ia";
+ V6P += " cache is not ";
+ V6P += "enabled";
+ a = this;
+ return this.Yr ? this.Yr.then(function () {
+ var F10;
+ F10 = 2;
+ for (; F10 !== 1; ) {
+ switch (F10) {
+ case 2:
+ return new Promise(function (b) {
+ var G10;
+ G10 = 2;
+ for (; G10 !== 1; ) {
+ switch (G10) {
+ case 2:
+ a.wi.xD(f.tk, f.eU, function (a) {
+ var H10,
+ c;
+ H10 = 2;
+ for (; H10 !== 9; ) {
+ switch (H10) {
+ case 1:
+ b([]);
+ H10 = 9;
+ break;
+ case 7:
+ H10 = -a && 1 > a.length ? 5 : 4;
+ break;
+ H10 = !a || 0 >= a.length ? 1 : 5;
+ break;
+ case 6:
+ b([]);
+ H10 = 4;
+ break;
+ H10 = 9;
+ break;
+ case 2:
+ H10 = !a || 0 >= a.length ? 1 : 5;
+ break;
+ case 5:
+ c = [];
+ a.forEach(function (a) {
+ var I10;
+ I10 = 2;
+ for (; I10 !== 1; ) {
+ switch (I10) {
+ case 2:
+ a && a.length && (a = a.split(".")) && 1 < a.length && c.push(a[1]);
+ I10 = 1;
+ break;
+ }
+ }
+ });
+ b(c);
+ H10 = 9;
+ break;
+ }
+ }
+ });
+ G10 = 1;
+ break;
+ }
+ }
+ });
+ break;
+ }
+ }
+ }) : Promise.reject(V6P);
+ break;
+ }
+ }
+ };
+ a.prototype.vJ = function (a, b) {
+ var J10,
+ c;
+ J10 = 2;
+ for (; J10 !== 9; ) {
+ switch (J10) {
+ case 2:
+ var o6P = "mediacac";
+ o6P += "h";
+ o6P += "e";
+ var X6P = "mediacac";
+ X6P += "helook";
+ X6P += "up";
+ var t6P = "s";
+ t6P += "av";
+ t6P += "e";
+ t6P += "todi";
+ t6P += "sk";
+ var x6P = "medi";
+ x6P += "acachest";
+ x6P += "ats";
+ c = {
+ type: x6P,
+ operation: a
+ };
+ t6P === a && (c.saveTime = b.fVa);
+ X6P === a && (c.lookupTime = b.P0, c.dataFound = b.mY);
+ c.oneObject = this.Io;
+ this.M8a && this.emit(o6P, c);
+ J10 = 9;
+ break;
+ }
+ }
+ };
+ x00 = 10;
+ break;
+ case 17:
+ a.prototype.Pab = function (a) {
+ var n20,
+ h,
+ d;
+ n20 = 2;
+ for (; n20 !== 4; ) {
+ switch (n20) {
+ case 2:
+ (h = this, d = a.toString());
+ this.wi.xD(f.tk, [f.eU, a].join("."), c);
+ this.wi.xD(f.tk, d, c);
+ n20 = 4;
+ break;
+ }
+ }
+ function c(a) {
+ var p20;
+ p20 = 2;
+ for (; p20 !== 1; ) {
+ switch (p20) {
+ case 2:
+ a.map(b);
+ p20 = 1;
+ break;
+ }
+ }
+ }
+ function b(a) {
+ var o20;
+ o20 = 2;
+ for (; o20 !== 1; ) {
+ switch (o20) {
+ case 2:
+ var s6P = "d";
+ s6P += "elet";
+ s6P += "e";
+ h.wi[s6P](f.tk, a);
+ o20 = 1;
+ break;
+ }
+ }
+ }
+ };
+ a.prototype.yJb = function (a) {
+ var q20,
+ b;
+ q20 = 2;
+ for (; q20 !== 4; ) {
+ switch (q20) {
+ case 2:
+ var m6P = "me";
+ m6P += "diacache-erro";
+ m6P += "r";
+ var M6P = "me";
+ M6P += "diacac";
+ M6P += "h";
+ M6P += "e";
+ b = new k.Wi();
+ b.on(this.wi, M6P, function (b) {
+ var r20;
+ r20 = 2;
+ for (; r20 !== 4; ) {
+ switch (r20) {
+ case 9:
+ r20 = b.keys && b.items ? 3 : 7;
+ break;
+ r20 = b.keys || b.items ? 1 : 5;
+ break;
+ case 5:
+ var Z6P = "media";
+ Z6P += "cac";
+ Z6P += "he";
+ a.emit(Z6P, b);
+ r20 = 4;
+ break;
+ case 2:
+ r20 = b.keys || b.items ? 1 : 5;
+ break;
+ case 1:
+ b.keys || b.items.map(function (a) {
+ var s20;
+ s20 = 2;
+ for (; s20 !== 1; ) {
+ switch (s20) {
+ case 4:
+ return a.key;
+ break;
+ s20 = 1;
+ break;
+ case 2:
+ return a.key;
+ break;
+ }
+ }
+ });
+ r20 = 5;
+ break;
+ case 7:
+ a.emit("", b);
+ r20 = 5;
+ break;
+ r20 = 4;
+ break;
+ }
+ }
+ });
+ b.on(this.wi, m6P, function (b) {
+ var t20;
+ t20 = 2;
+ for (; t20 !== 5; ) {
+ switch (t20) {
+ case 2:
+ var Y6P = "med";
+ Y6P += "iac";
+ Y6P += "ache";
+ var N6P = "e";
+ N6P += "r";
+ N6P += "r";
+ N6P += "o";
+ N6P += "r";
+ b.type = N6P;
+ a.emit(Y6P, b);
+ t20 = 5;
+ break;
+ }
+ }
+ });
+ q20 = 4;
+ break;
+ }
+ }
+ };
+ return a;
+ break;
+ }
+ }
+ })();
+ b.rwa = a;
+ d.Ve(k.EventEmitter, a);
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ g,
+ h,
+ p,
+ m,
+ f,
+ u,
+ w,
+ n,
+ q,
+ C,
+ t,
+ H,
+ G,
+ T,
+ S,
+ aa,
+ Z,
+ B,
+ V,
+ z,
+ ia,
+ Y;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.sua = void 0;
+ c = a(0);
+ d = a(18);
+ k = a(5);
+ l = a(8);
+ g = a(239);
+ h = a(219);
+ p = a(409);
+ m = a(83);
+ a(420);
+ f = a(377);
+ u = a(160);
+ w = a(19);
+ n = a(226);
+ q = a(737);
+ C = a(80);
+ t = a(16);
+ H = a(4);
+ G = a(158);
+ T = a(388);
+ S = a(389);
+ aa = H.Promise;
+ Z = new H.Console("HEADERCACHE", "media|asejs");
+ a = new H.Console("MEDIACACHE", "media|asejs");
+ B = H.wE;
+ V = Z.trace.bind(Z);
+ a.trace.bind(a);
+ z = Z.warn.bind(Z);
+ ia = Z.error.bind(Z);
+ Y = Z.info.bind(Z);
+ a = (function (a) {
+ var u20;
+ u20 = 2;
+ for (; u20 !== 49; ) {
+ switch (u20) {
+ case 40:
+ b.prototype.K9a = function (a, b) {
+ var F30,
+ f,
+ h,
+ c;
+ F30 = 2;
+ for (; F30 !== 8; ) {
+ switch (F30) {
+ case 5:
+ (f = void 0, h = !1);
+ this.kf.eOa(this.Be[a]) ? (f = aa.resolve(this.Be[a]), h = !0) : f = this.kf.rxb(a);
+ F30 = 3;
+ break;
+ case 1:
+ F30 = this.kf ? 5 : 9;
+ break;
+ case 3:
+ return f.then(function (f) {
+ var G30;
+ G30 = 2;
+ for (; G30 !== 1; ) {
+ switch (G30) {
+ case 2:
+ return !l.X(f) && c.kf ? c.kf.mxb(a, b, f).then(function (b) {
+ var H30;
+ H30 = 2;
+ for (; H30 !== 5; ) {
+ switch (H30) {
+ case 2:
+ b && (h || (c.Be[a] = f, ++c.zx, c.zV(), c.dj.push(f), c.dj.sort(c.u2)), c.mBa(a, b));
+ return c.Be[a];
+ break;
+ }
+ }
+ }) : aa.resolve(void 0);
+ break;
+ }
+ }
+ });
+ break;
+ case 2:
+ c = this;
+ F30 = 1;
+ break;
+ case 9:
+ var l6P = "Media cache is ";
+ l6P += "n";
+ l6P += "ot enabled";
+ return aa.reject(l6P);
+ break;
+ }
+ }
+ };
+ b.prototype.mBa = function (a, b) {
+ var I30,
+ c,
+ f,
+ h,
+ d;
+ I30 = 2;
+ for (; I30 !== 7; ) {
+ switch (I30) {
+ case 2:
+ c = this;
+ I30 = 1;
+ break;
+ case 1:
+ I30 = b ? 5 : 7;
+ break;
+ case 5:
+ (f = this.Be[a], h = b.headers);
+ f && h && Object.keys(h).forEach(function (a) {
+ var J30;
+ J30 = 2;
+ for (; J30 !== 1; ) {
+ switch (J30) {
+ case 2:
+ c.z7a(h[a], f);
+ J30 = 1;
+ break;
+ }
+ }
+ });
+ I30 = 3;
+ break;
+ case 3:
+ I30 = b.data ? 9 : 7;
+ break;
+ case 9:
+ d = b.data;
+ Object.keys(d).forEach(function (a) {
+ var K30,
+ c,
+ b;
+ K30 = 2;
+ for (; K30 !== 9; ) {
+ switch (K30) {
+ case 4:
+ c = f.data;
+ b.forEach(function (b) {
+ var L30;
+ L30 = 2;
+ for (; L30 !== 1; ) {
+ switch (L30) {
+ case 2:
+ c[a].push(b);
+ L30 = 1;
+ break;
+ }
+ }
+ });
+ K30 = 9;
+ break;
+ case 2:
+ b = d[a];
+ l.X(f.data) && (f.data = {});
+ l.X(f.data[a]) && (f.data[a] = []);
+ K30 = 4;
+ break;
+ }
+ }
+ });
+ I30 = 7;
+ break;
+ }
+ }
+ };
+ b.prototype.u2 = function (a, b) {
+ var M30;
+ M30 = 2;
+ for (; M30 !== 1; ) {
+ switch (M30) {
+ case 2:
+ return b.Ld - a.Ld;
+ break;
+ }
+ }
+ };
+ u20 = 37;
+ break;
+ case 22:
+ b.prototype.CV = function (a) {
+ var m30,
+ b;
+ m30 = 2;
+ for (; m30 !== 9; ) {
+ switch (m30) {
+ case 2:
+ var d6P = "saveto";
+ d6P += "d";
+ d6P += "isk";
+ this.kc(a) && delete this.dM[a.wa];
+ this.kc(a) || delete a.response;
+ a.yc();
+ b = this.Be[a.G] || a.bk;
+ b && 0 === b.E_ && 0 === b.RG && (this.Vab(b, a.ed), b.Le && this.kf && (b.ac.Ryb || (this.Io ? this.kf.uHb(b) : this.kf.vJ(d6P, {
+ fVa: b.ac.so
+ }))));
+ m30 = 9;
+ break;
+ }
+ }
+ };
+ b.prototype.Jab = function (a, b, c, f) {
+ var n30,
+ h;
+ n30 = 2;
+ for (; n30 !== 12; ) {
+ switch (n30) {
+ case 2:
+ h = this.X$(a, f);
+ h.BUa = b;
+ n30 = 5;
+ break;
+ case 9:
+ return aa.reject();
+ break;
+ case 3:
+ n30 = !h.ft() ? 9 : 8;
+ break;
+ case 5:
+ h.bk = c;
+ h.dz = a.dz;
+ n30 = 3;
+ break;
+ case 13:
+ return new aa(function (a) {
+ var o30;
+ o30 = 2;
+ for (; o30 !== 1; ) {
+ switch (o30) {
+ case 2:
+ h.fP = a;
+ o30 = 1;
+ break;
+ }
+ }
+ });
+ break;
+ case 8:
+ c.E_++;
+ this.dM[h.wa] = h;
+ n30 = 6;
+ break;
+ case 14:
+ h.fP = a.fP;
+ n30 = 12;
+ break;
+ case 6:
+ n30 = a.fP ? 14 : 13;
+ break;
+ }
+ }
+ };
+ b.prototype.V9a = function (a, b, c) {
+ var p30,
+ f,
+ h;
+ p30 = 2;
+ for (; p30 !== 8; ) {
+ switch (p30) {
+ case 5:
+ p30 = 0 < f ? 4 : 3;
+ break;
+ case 1:
+ b.Le && this.kf && (a.UP ? f = a.UP : a.ZPa && 0 < a.ZPa && (f = 2E3 * a.ZPa));
+ p30 = 5;
+ break;
+ case 2:
+ f = a.tY;
+ p30 = 1;
+ break;
+ case 4:
+ return function (a, b) {
+ var l4E = a000;
+ var q30;
+ q30 = 2;
+ for (; q30 !== 1; ) {
+ switch (q30) {
+ case 2:
+ l4E.s4P(1);
+ return l4E.X4P(b, f);
+ break;
+ case 4:
+ l4E.o4P(2);
+ return l4E.t4P(f, b);
+ break;
+ q30 = 1;
+ break;
+ }
+ }
+ };
+ break;
+ case 3:
+ h = c && c.length < a.xea ? c.length : a.xea;
+ return function (a) {
+ var r30;
+ r30 = 2;
+ for (; r30 !== 1; ) {
+ switch (r30) {
+ case 2:
+ a000.o4P(1);
+ return a000.X4P(a, h);
+ break;
+ }
+ }
+ };
+ break;
+ }
+ }
+ };
+ b.prototype.xW = function (a, b) {
+ var s30,
+ u,
+ r,
+ g,
+ m,
+ p,
+ k,
+ n,
+ d,
+ c,
+ f,
+ h;
+ s30 = 2;
+ for (; s30 !== 51; ) {
+ switch (s30) {
+ case 27:
+ u = g.mZ(b);
+ s30 = 26;
+ break;
+ case 43:
+ s30 = r < m.length && (g.da < n || g.duration < d) ? 42 : 40;
+ break;
+ case 15:
+ s30 = this.yoa(a.L, d) ? 27 : 25;
+ break;
+ case 30:
+ s30 = (void 0 === g && (g = a.stream.Hi(p)), void 0 !== g) ? 29 : 53;
+ break;
+ case 25:
+ var e6P = "ma";
+ e6P += "nagerdebu";
+ e6P += "gevent";
+ var W6P = ",";
+ W6P += " s";
+ W6P += "tartPts: ";
+ var i6P = ",";
+ i6P += " pts";
+ i6P += ": ";
+ var g6P = ", strea";
+ g6P += "m";
+ g6P += "I";
+ g6P += "d:";
+ g6P += " ";
+ var I6P = ", headerCach";
+ I6P += "e requestDa";
+ I6P += "ta: movieI";
+ I6P += "d: ";
+ d.ah && (b = "@" + H.time.ea() + I6P + c + g6P + f + i6P + b + W6P + g.T, this.emit(e6P, {
+ message: b
+ }));
+ s30 = 24;
+ break;
+ case 34:
+ u = h = 0;
+ r = g && g.L;
+ s30 = 32;
+ break;
+ case 24:
+ void 0 === k.data && (k.data = {});
+ void 0 === k.data[f] && (k.data[f] = []);
+ s30 = 21;
+ break;
+ case 5:
+ this.xF.push({
+ Otb: a,
+ Oc: b
+ });
+ s30 = 4;
+ break;
+ case 18:
+ g = a.stream.Hi(p);
+ s30 = 17;
+ break;
+ case 26:
+ u && (g.L === w.Na.AUDIO && !d.Ika && u.Oc < (d.Qo && !d.yB && h.Ni ? Math.floor(h.Ni.qa) : 0) && (++u.Um, u.Oc += g.Wa.qa), 0 < u.Um && g.ik({
+ start: u.Um
+ }));
+ s30 = 25;
+ break;
+ case 6:
+ s30 = void 0 === k.mm ? 14 : 12;
+ break;
+ case 11:
+ a.L === w.Na.AUDIO && d.Qo && !d.yB && h.Ni && (b = Math.max(h.$ && h.$.hi(0) || 0, b + h.Ni.qa));
+ (m = a.stream.$, p = m && m.ym(b));
+ s30 = 20;
+ break;
+ case 20:
+ s30 = -1 === p || void 0 === p ? 19 : 18;
+ break;
+ case 19:
+ var v6P = "no proper fragm";
+ v6P += "ent found ";
+ v6P += "to request data ";
+ v6P += "at pts";
+ ia(v6P, b);
+ s30 = 51;
+ break;
+ case 8:
+ s30 = k ? 7 : 51;
+ break;
+ case 29:
+ g.Le = a.Le;
+ s30 = 28;
+ break;
+ case 21:
+ b = k.data[f];
+ c = this.V9a(d, a, m);
+ s30 = 34;
+ break;
+ case 54:
+ g = void 0;
+ s30 = 53;
+ break;
+ case 16:
+ g.Le = a.Le;
+ s30 = 15;
+ break;
+ case 52:
+ k.yY && !l.X(k.mm) && (a = k.yY, delete k.yY, this.xW(a, k.mm));
+ s30 = 51;
+ break;
+ case 3:
+ this.xF.shift();
+ s30 = 4;
+ break;
+ case 4:
+ s30 = this.xF.length > d.Vha ? 3 : 51;
+ break;
+ case 14:
+ k.yY = a;
+ s30 = 13;
+ break;
+ case 9:
+ k = this.Be[c] || a.bk;
+ s30 = 8;
+ break;
+ case 44:
+ a000.s4P(3);
+ r = a000.t4P(1, p);
+ s30 = 43;
+ break;
+ case 7:
+ s30 = a.L === w.Na.AUDIO ? 6 : 11;
+ break;
+ case 28:
+ s30 = !l.X(m) && !g.Sa ? 44 : 40;
+ break;
+ case 53:
+ ++p;
+ s30 = 31;
+ break;
+ case 42:
+ (g.Xba(m.get(r)), g.iQ = r + 1, p = r);
+ s30 = 41;
+ break;
+ case 41:
+ ++r;
+ s30 = 43;
+ break;
+ case 13:
+ return;
+ break;
+ case 1:
+ s30 = this.NV ? 5 : 9;
+ break;
+ case 17:
+ s30 = !l.X(g) ? 16 : 24;
+ break;
+ case 31:
+ s30 = p < (m && m.length || 0) && !c(u, h) ? 30 : 52;
+ break;
+ case 40:
+ var Q6P = "u";
+ Q6P += "n";
+ Q6P += "de";
+ Q6P += "fined";
+ l.X(k.mm) && (k.mm = g.T);
+ g.Le && (g.responseType = 0);
+ a.Le && this.kf && a.dz && a.dz[f] && Q6P !== typeof g.T && a.dz[f][g.T] || (r = this.p8a(g, a.Uc), r.Le && (r.bk = a.bk), r.ft(), ++k.RG, b.push(r));
+ ++u;
+ h += g.duration;
+ s30 = 54;
+ break;
+ case 12:
+ b = k.mm;
+ s30 = 11;
+ break;
+ case 32:
+ (n = r === w.Na.VIDEO ? d.q1 : d.j1, d = r === w.Na.VIDEO ? d.Bzb : d.tzb);
+ s30 = 31;
+ break;
+ case 2:
+ (c = a.G, f = a.wa, h = a.stream, d = a.Uc);
+ s30 = 1;
+ break;
+ }
+ }
+ };
+ u20 = 33;
+ break;
+ case 10:
+ b.prototype.YJa = function () {
+ var M20,
+ c,
+ f,
+ h;
+ M20 = 2;
+ for (; M20 !== 4; ) {
+ switch (M20) {
+ case 2:
+ c = 0;
+ for (f in this.Be) {
+ h = this.Be[f];
+ if (h.data) {
+ for (var d in h.data) {
+ var O6P = "i";
+ O6P += "n e";
+ O6P += "n";
+ O6P += "t";
+ O6P += "ry:";
+ var h6P = "missing";
+ h6P += " headerEn";
+ h6P += "try ";
+ h6P += "for streamId:";
+ h.headers[d] || ia(h6P, d, O6P, h);
+ b(h, d);
+ h.data[d].forEach(a);
+ delete h.data[d];
+ }
+ delete h.data;
+ }
+ }
+ this.Dab(c);
+ M20 = 4;
+ break;
+ }
+ }
+ function b(a, b) {
+ var O20;
+ O20 = 2;
+ for (; O20 !== 1; ) {
+ switch (O20) {
+ case 2:
+ a && a.data && a.data[b].forEach(function (a) {
+ var P20;
+ P20 = 2;
+ for (; P20 !== 5; ) {
+ switch (P20) {
+ case 2:
+ a.abort();
+ c += a.Qe;
+ P20 = 5;
+ break;
+ }
+ }
+ });
+ O20 = 1;
+ break;
+ }
+ }
+ }
+ function a(a) {
+ var N20;
+ N20 = 2;
+ for (; N20 !== 1; ) {
+ switch (N20) {
+ case 4:
+ a.HGa();
+ N20 = 0;
+ break;
+ N20 = 1;
+ break;
+ case 2:
+ a.HGa();
+ N20 = 1;
+ break;
+ }
+ }
+ }
+ };
+ b.prototype.nw = function (a) {
+ var Q20,
+ b;
+ Q20 = 2;
+ for (; Q20 !== 5; ) {
+ switch (Q20) {
+ case 2:
+ b = this.Be[a.G];
+ b && (this.kc(a) ? l.X(b.ac.WMa) && !l.X(a.rf) && (b.ac.WMa = a.rf) : l.X(b.ac.XI) && !l.X(a.rf) && (b.ac.XI = a.rf));
+ Q20 = 5;
+ break;
+ }
+ }
+ };
+ b.prototype.rj = function (a) {
+ var R20;
+ R20 = 2;
+ for (; R20 !== 1; ) {
+ switch (R20) {
+ case 2:
+ this.kc(a) ? this.MBb(a) : this.NBb(a);
+ R20 = 1;
+ break;
+ }
+ }
+ };
+ b.prototype.xQ = function (a) {
+ var S20;
+ S20 = 2;
+ for (; S20 !== 5; ) {
+ switch (S20) {
+ case 2:
+ var q6P = "_";
+ q6P += "o";
+ q6P += "nEr";
+ q6P += "ror";
+ q6P += ": ";
+ z(q6P, a.toString());
+ this.CV(a);
+ S20 = 5;
+ break;
+ }
+ }
+ };
+ u20 = 17;
+ break;
+ case 17:
+ b.prototype.MBb = function (a) {
+ var T20,
+ b;
+ T20 = 2;
+ for (; T20 !== 9; ) {
+ switch (T20) {
+ case 3:
+ this.Kab(a, function () {
+ var U20;
+ U20 = 2;
+ for (; U20 !== 1; ) {
+ switch (U20) {
+ case 2:
+ l.X(a) || (l.X(a.bk) || a.bk.E_--, b.CV(a));
+ U20 = 1;
+ break;
+ }
+ }
+ });
+ T20 = 9;
+ break;
+ case 2:
+ b = this;
+ a.LLb = a.ed;
+ this.A7a(a);
+ l.X(a.fP) || a.fP(a.LLb);
+ T20 = 3;
+ break;
+ }
+ }
+ };
+ b.prototype.NBb = function (a) {
+ var V20,
+ b,
+ c,
+ f,
+ h;
+ V20 = 2;
+ for (; V20 !== 8; ) {
+ switch (V20) {
+ case 9:
+ (--f.RG, b.CV(a));
+ V20 = 8;
+ break;
+ case 5:
+ var C6P = "managerdebu";
+ C6P += "gev";
+ C6P += "ent";
+ var U6P = ",";
+ U6P += " re";
+ U6P += "main";
+ U6P += "in";
+ U6P += "g: ";
+ var P6P = ",";
+ P6P += " p";
+ P6P += "ts";
+ P6P += ":";
+ P6P += " ";
+ var E6P = ", streamI";
+ E6P += "d";
+ E6P += ": ";
+ var z6P = ", ";
+ z6P += "headerCache dataComplete: mo";
+ z6P += "vieId: ";
+ V20 = (this.gm.ah && (c = "@" + H.time.ea() + z6P + c + E6P + a.wa + P6P + a.T + U6P + (f.RG - 1), this.emit(C6P, {
+ message: c
+ })), a.Le && 0 === a.responseType && this.kf && !this.Io) ? 4 : 9;
+ break;
+ case 2:
+ (b = this, c = a.G, f = this.Be[c] || a.bk);
+ V20 = 1;
+ break;
+ case 1:
+ V20 = f ? 5 : 8;
+ break;
+ case 4:
+ h = H.time.now();
+ this.kf.rHb(a, f, function (c) {
+ var W20;
+ W20 = 2;
+ for (; W20 !== 4; ) {
+ switch (W20) {
+ case 2:
+ c || l.X(f) || (c = H.time.ea() - h, l.X(f.ac) && (f.ac = {}), l.X(f.ac.so) && (f.ac.so = 0), f.ac.so += c);
+ --f.RG;
+ b.CV(a);
+ W20 = 4;
+ break;
+ }
+ }
+ });
+ V20 = 8;
+ break;
+ }
+ }
+ };
+ b.prototype.LBa = function () {
+ var X20;
+ X20 = 2;
+ for (; X20 !== 1; ) {
+ switch (X20) {
+ case 2:
+ 0 === this.ds.length && (this.ds = [u.xo.Lf.VB(0, void 0, !1, !1, this.ql, this.gm), u.xo.Lf.VB(1, void 0, !1, !1, this.ql, this.gm)], this.ds.forEach(function (a) {
+ var Y20;
+ Y20 = 2;
+ for (; Y20 !== 1; ) {
+ switch (Y20) {
+ case 2:
+ return a.Eb();
+ break;
+ }
+ }
+ }), B.Ge());
+ X20 = 1;
+ break;
+ }
+ }
+ };
+ b.prototype.QBa = function () {
+ var Z20,
+ a;
+ Z20 = 2;
+ for (; Z20 !== 4; ) {
+ switch (Z20) {
+ case 2:
+ a = this.ds;
+ this.ds = [];
+ a.forEach(function (a) {
+ var a30;
+ a30 = 2;
+ for (; a30 !== 1; ) {
+ switch (a30) {
+ case 2:
+ u.xo.Lf.hO(a);
+ a30 = 1;
+ break;
+ case 4:
+ u.xo.Lf.hO(a);
+ a30 = 4;
+ break;
+ a30 = 1;
+ break;
+ }
+ }
+ });
+ Z20 = 4;
+ break;
+ }
+ }
+ };
+ u20 = 26;
+ break;
+ case 44:
+ b.prototype.Aab = function (a) {
+ var A30;
+ A30 = 2;
+ for (; A30 !== 5; ) {
+ switch (A30) {
+ case 2:
+ var p6P = "c";
+ p6P += "ac";
+ p6P += "he";
+ p6P += "Evi";
+ p6P += "ct";
+ a = {
+ type: p6P,
+ movieId: a
+ };
+ this.emit(a.type, a);
+ A30 = 5;
+ break;
+ }
+ }
+ };
+ b.prototype.Kab = function (a, b) {
+ var B30,
+ c;
+ B30 = 2;
+ for (; B30 !== 3; ) {
+ switch (B30) {
+ case 2:
+ c = a.Uc;
+ l.X(a.BUa) || this.xW(a, a.BUa);
+ !this.kf || !a.Le || this.Io || l.X(a.dz) || a.dz[a.wa] && a.dz[a.wa].header ? b() : this.kf.sHb(a, b);
+ c.v4 || 0 !== Object.keys(this.dM).length || this.QBa();
+ B30 = 3;
+ break;
+ }
+ }
+ };
+ b.prototype.Vab = function (a, b) {
+ var C30;
+ C30 = 2;
+ for (; C30 !== 4; ) {
+ switch (C30) {
+ case 2:
+ var S6P = "prebu";
+ S6P += "ff";
+ S6P += "s";
+ S6P += "ta";
+ S6P += "ts";
+ a.ac.o2 = b;
+ a = {
+ type: S6P,
+ movieId: a.G,
+ stats: {
+ prebuffstarted: a.ac.XI,
+ prebuffcomplete: a.ac.o2
+ }
+ };
+ C30 = 5;
+ break;
+ case 7:
+ this.emit(a.type, a);
+ C30 = 6;
+ break;
+ C30 = 4;
+ break;
+ case 5:
+ this.emit(a.type, a);
+ C30 = 4;
+ break;
+ }
+ }
+ };
+ b.prototype.L9a = function (a, b) {
+ var D30,
+ c;
+ D30 = 2;
+ for (; D30 !== 5; ) {
+ switch (D30) {
+ case 2:
+ var L6P = "Me";
+ L6P += "dia ";
+ L6P += "cache is n";
+ L6P += "ot enabl";
+ L6P += "ed";
+ c = this;
+ return this.kf ? this.kf.nxb(a, b).then(function (b) {
+ var E30;
+ E30 = 2;
+ for (; E30 !== 5; ) {
+ switch (E30) {
+ case 3:
+ E30 = b || b.bk ? 2 : 9;
+ break;
+ E30 = b && b.bk ? 1 : 5;
+ break;
+ case 2:
+ E30 = b && b.bk ? 1 : 5;
+ break;
+ case 1:
+ return (c.Be[a] = b.bk, ++c.zx, c.zV(), c.dj.push(b.bk), c.dj.sort(c.u2), c.mBa(a, b), c.cache[a]);
+ break;
+ }
+ }
+ }) : aa.reject(L6P);
+ break;
+ }
+ }
+ };
+ u20 = 40;
+ break;
+ case 29:
+ b.prototype.Bab = function (a) {
+ var y30;
+ y30 = 2;
+ for (; y30 !== 1; ) {
+ switch (y30) {
+ case 2:
+ var w6P = "disc";
+ w6P += "ardedByt";
+ w6P += "es";
+ 0 !== a && (a = {
+ type: w6P,
+ bytes: a
+ }, this.emit(a.type, a));
+ y30 = 1;
+ break;
+ }
+ }
+ };
+ b.prototype.Dab = function (a) {
+ var z30;
+ z30 = 2;
+ for (; z30 !== 1; ) {
+ switch (z30) {
+ case 2:
+ var D6P = "f";
+ D6P += "lu";
+ D6P += "shedBytes";
+ 0 !== a && (a = {
+ type: D6P,
+ bytes: a
+ }, this.emit(a.type, a));
+ z30 = 1;
+ break;
+ }
+ }
+ };
+ u20 = 44;
+ break;
+ case 4:
+ b.prototype.olb = function () {
+ var B20;
+ B20 = 2;
+ for (; B20 !== 5; ) {
+ switch (B20) {
+ case 2:
+ this.flush();
+ this.QBa();
+ B20 = 5;
+ break;
+ }
+ }
+ };
+ b.prototype.VM = function (a, b, c) {
+ var C20,
+ f,
+ h;
+ C20 = 2;
+ for (; C20 !== 9; ) {
+ switch (C20) {
+ case 1:
+ C20 = (f[b] = a) ? 5 : 4;
+ break;
+ case 5:
+ for (var d in f) {
+ f.hasOwnProperty(d) && !1 === f[d] && (h = !1);
+ }
+ C20 = 4;
+ break;
+ case 2:
+ (f = this.mB, h = a);
+ C20 = 1;
+ break;
+ case 4:
+ c && delete f[b];
+ h ? (this.NV = !1, this.P9a()) : this.NV = !0;
+ C20 = 9;
+ break;
+ }
+ }
+ };
+ b.prototype.YDb = function (a, b) {
+ var D20,
+ c,
+ f,
+ h,
+ d;
+ D20 = 2;
+ for (; D20 !== 15; ) {
+ switch (D20) {
+ case 3:
+ D20 = d.Uyb ? 9 : 8;
+ break;
+ case 9:
+ return aa.reject();
+ break;
+ case 10:
+ for (var m in c.headers) {
+ a = c.headers[m];
+ !l.X(a.url) && null !== a.url && (void 0 === c.data || void 0 === c.data[m] || c.data[m].length < d.xea) ? this.xW(a, h) : (l.X(a.url) || null === a.url) && void 0 !== c.data && void 0 !== c.data[m] && 0 < c.data[m].length && delete c.headers[m];
+ }
+ D20 = 20;
+ break;
+ case 7:
+ var r8P = "); ignor";
+ r8P += "ing prepare";
+ r8P += " f";
+ r8P += "or movieId: ";
+ var K6P = "PTS passed to HeaderCache.prepareP is not und";
+ K6P += "efined or a";
+ K6P += " positive number (";
+ return (ia(K6P + h + r8P + c), aa.reject());
+ break;
+ case 20:
+ return aa.resolve();
+ break;
+ case 16:
+ return this.Iab(a, b);
+ break;
+ case 18:
+ D20 = f > d.Wha || this.zx + 1 > this.lM && f > this.dj[0].Ld ? 17 : 16;
+ break;
+ case 17:
+ return aa.reject();
+ break;
+ case 12:
+ D20 = (c.Ld = f, this.dj.sort(this.u2), !l.X(h)) ? 11 : 20;
+ break;
+ case 6:
+ c = this.Be[c];
+ D20 = 14;
+ break;
+ case 11:
+ void 0 === c.data && (c.ac.XI = void 0);
+ D20 = 10;
+ break;
+ case 13:
+ D20 = !this.Io || !c.Le ? 12 : 20;
+ break;
+ case 19:
+ D20 = !b.Le || !this.kf || this.Io ? 18 : 16;
+ break;
+ case 4:
+ this.qoa(d.bO);
+ D20 = 3;
+ break;
+ case 2:
+ var u8P = "A conf";
+ u8P += "ig must be ";
+ u8P += "p";
+ u8P += "assed to p";
+ u8P += "repareP";
+ (c = b.G, f = b.Ld, h = b.Oc);
+ k.assert(b.config, u8P);
+ d = b.config;
+ D20 = 4;
+ break;
+ case 8:
+ D20 = !l.X(h) && (!l.na(h) || 0 > h) ? 7 : 6;
+ break;
+ case 14:
+ D20 = !l.X(c) && (2 <= c.Lq || !d.tO) ? 13 : 19;
+ break;
+ }
+ }
+ };
+ b.prototype.flush = function () {
+ var E20,
+ a;
+ E20 = 2;
+ for (; E20 !== 7; ) {
+ switch (E20) {
+ case 2:
+ this.YJa();
+ for (var b in this.dM) {
+ a = this.dM[b];
+ a.abort();
+ }
+ E20 = 4;
+ break;
+ case 9:
+ var f8P = "m";
+ f8P += "an";
+ f8P += "age";
+ f8P += "rdebug";
+ f8P += "event";
+ var n8P = ", he";
+ n8P += "ade";
+ n8P += "rCache flush: ";
+ this.dj = [];
+ this.gm.ah && (a = "@" + H.time.ea() + n8P, this.emit(f8P, {
+ message: a
+ }));
+ E20 = 7;
+ break;
+ case 4:
+ this.Be = Object.create(null);
+ this.zx = 0;
+ E20 = 9;
+ break;
+ }
+ }
+ };
+ b.prototype.list = function () {
+ var F20;
+ F20 = 2;
+ for (; F20 !== 1; ) {
+ switch (F20) {
+ case 2:
+ return this.dj;
+ break;
+ }
+ }
+ };
+ b.prototype.qoa = function (a) {
+ var G20;
+ G20 = 2;
+ for (; G20 !== 1; ) {
+ switch (G20) {
+ case 2:
+ this.lM !== a && (this.lM = a, this.zV());
+ G20 = 1;
+ break;
+ }
+ }
+ };
+ b.prototype.KP = function (a, b) {
+ var H20;
+ H20 = 2;
+ for (; H20 !== 4; ) {
+ switch (H20) {
+ case 1:
+ H20 = (b = a.headers[b]) ? 5 : 4;
+ break;
+ case 2:
+ H20 = (a = this.Be[a]) ? 1 : 4;
+ break;
+ case 5:
+ return b;
+ break;
+ }
+ }
+ };
+ u20 = 13;
+ break;
+ case 37:
+ b.prototype.sTa = function (a) {
+ var N30,
+ b,
+ c,
+ f;
+ N30 = 2;
+ for (; N30 !== 11; ) {
+ switch (N30) {
+ case 5:
+ for (c in a.data) {
+ f = a.data[c];
+ 0 < f.length && (b[f[0].L] = {
+ wa: c,
+ hp: a.headers[c],
+ data: f
+ });
+ }
+ b.mm = a.mm;
+ N30 = 3;
+ break;
+ case 1:
+ N30 = a && a.data ? 5 : 11;
+ break;
+ case 9:
+ b.ac = a.ac;
+ b.gp = a.gp;
+ b.kp = a.kp;
+ N30 = 6;
+ break;
+ case 3:
+ b.Lq = a.Lq;
+ N30 = 9;
+ break;
+ case 2:
+ b = {};
+ N30 = 1;
+ break;
+ case 13:
+ b.Lk = a.Lk;
+ return b;
+ break;
+ case 6:
+ b.Mq = a.Mq;
+ b.Kk = a.Kk;
+ N30 = 13;
+ break;
+ }
+ }
+ };
+ b.prototype.mGa = function (a, b, c, f, h, d) {
+ var O30;
+ O30 = 2;
+ for (; O30 !== 8; ) {
+ switch (O30) {
+ case 4:
+ return (c = c[b.ld], c.kp = b.reason, c.Mq = b.Ms, c.Utb = b.Kk, c.J_ = b.Lk, c);
+ break;
+ case 2:
+ O30 = b.location.ZJ(a, c) ? 1 : 9;
+ break;
+ case 1:
+ var T8P = "d";
+ T8P += "ef";
+ T8P += "ault";
+ a = G[T8P](h, d);
+ O30 = 5;
+ break;
+ case 5:
+ O30 = (b = b.stream[f ? 1 : 0].o3(b.Y, c, void 0, f ? a.JQ : a.vw)) ? 4 : 3;
+ break;
+ case 3:
+ var H8P = "select";
+ H8P += "Strea";
+ H8P += "m retur";
+ H8P += "ne";
+ H8P += "d null";
+ z(H8P);
+ O30 = 8;
+ break;
+ case 9:
+ var B8P = "up";
+ B8P += "dateStreamSelection ";
+ B8P += "returned null list";
+ z(B8P);
+ O30 = 8;
+ break;
+ }
+ }
+ };
+ b.prototype.eMa = function (a, b, c, f, h, d) {
+ var P30,
+ l,
+ k,
+ m,
+ p;
+ P30 = 2;
+ for (; P30 !== 7; ) {
+ switch (P30) {
+ case 4:
+ f && 0 !== m.length && (l = this.mGa(a, c, m, k, h, d)) && b.push(l);
+ l || (l = this.mGa(a, c, p, k, h, d)) && b.push(l);
+ P30 = 8;
+ break;
+ case 2:
+ (k = b.L === w.Na.VIDEO, m = [], p = []);
+ b.Qc.forEach(function (a) {
+ var Q30;
+ Q30 = 2;
+ for (; Q30 !== 1; ) {
+ switch (Q30) {
+ case 2:
+ (a.Nv ? p : m).push(a);
+ Q30 = 1;
+ break;
+ }
+ }
+ });
+ b = [];
+ P30 = 4;
+ break;
+ case 8:
+ return b;
+ break;
+ }
+ }
+ };
+ b.prototype.xsb = function (a, b, c, f, h, d, k) {
+ var R30,
+ n,
+ m,
+ p,
+ u,
+ r;
+ R30 = 2;
+ for (; R30 !== 18; ) {
+ switch (R30) {
+ case 14:
+ p.getTracks(0).some(function (a) {
+ var U30;
+ U30 = 2;
+ for (; U30 !== 1; ) {
+ switch (U30) {
+ case 2:
+ return a.cb === f ? (n = m.eMa(p.ma, a, b, h, d, u), !0) : !1;
+ break;
+ }
+ }
+ });
+ R30 = 12;
+ break;
+ case 2:
+ m = this;
+ void 0 === k && (k = []);
+ p = new g.VS({
+ ma: Number(c.movieId),
+ Za: 0,
+ xa: c,
+ Wk: void 0,
+ nb: function () {
+ var S30;
+ S30 = 2;
+ for (; S30 !== 1; ) {
+ switch (S30) {
+ case 4:
+ return -3;
+ break;
+ S30 = 1;
+ break;
+ case 2:
+ return !0;
+ break;
+ }
+ }
+ },
+ xka: {
+ i0: !!h,
+ Zia: !1
+ },
+ ij: !1,
+ qs: k,
+ config: d,
+ GR: void 0,
+ Yha: void 0,
+ HO: void 0,
+ zb: a.zb,
+ Mf: a.Mf,
+ DI: void 0,
+ vfa: void 0,
+ GD: void 0
+ });
+ R30 = 4;
+ break;
+ case 19:
+ return [].concat(r || []).concat(n || []);
+ break;
+ case 4:
+ p.ic();
+ u = p.Uq[0];
+ a = H.Ik();
+ R30 = 8;
+ break;
+ case 8:
+ b.Y.buffer.pq = a[w.Na.VIDEO];
+ p.getTracks(1).some(function (a) {
+ var T30;
+ T30 = 2;
+ for (; T30 !== 3; ) {
+ switch (T30) {
+ case 1:
+ return !1;
+ break;
+ case 2:
+ T30 = a.QC.stereo ? 1 : 5;
+ break;
+ case 7:
+ return +6;
+ break;
+ T30 = 5;
+ break;
+ case 5:
+ r = m.eMa(p.ma, a, b, h, d, u);
+ return !0;
+ break;
+ }
+ }
+ });
+ R30 = 14;
+ break;
+ case 10:
+ R30 = l.X(n) && f ? 20 : 19;
+ break;
+ case 11:
+ var y8P = "Unable to find audio nor video";
+ y8P += " tracks in ";
+ y8P += "manifest:";
+ z(y8P, f);
+ R30 = 18;
+ break;
+ case 12:
+ R30 = l.X(r) && l.X(n) ? 11 : 10;
+ break;
+ case 20:
+ var G8P = "Unab";
+ G8P += "le to find r";
+ G8P += "e";
+ G8P += "q";
+ G8P += "uested audio track in manifest:";
+ z(G8P, f);
+ R30 = 18;
+ break;
+ }
+ }
+ };
+ b.prototype.yoa = function (a, b) {
+ var V30;
+ V30 = 2;
+ for (; V30 !== 1; ) {
+ switch (V30) {
+ case 2:
+ return a === w.Na.VIDEO && b.eH || a === w.Na.AUDIO;
+ break;
+ }
+ }
+ };
+ b.prototype.kc = function (a) {
+ var W30;
+ W30 = 2;
+ for (; W30 !== 1; ) {
+ switch (W30) {
+ case 2:
+ return !!a.kc;
+ break;
+ }
+ }
+ };
+ return b;
+ break;
+ case 33:
+ b.prototype.A7a = function (a) {
+ var t30;
+ t30 = 2;
+ for (; t30 !== 1; ) {
+ switch (t30) {
+ case 4:
+ this.lBa(a, a.bk);
+ t30 = 2;
+ break;
+ t30 = 1;
+ break;
+ case 2:
+ this.lBa(a, a.bk);
+ t30 = 1;
+ break;
+ }
+ }
+ };
+ b.prototype.z7a = function (a, b) {
+ var u30;
+ u30 = 2;
+ for (; u30 !== 1; ) {
+ switch (u30) {
+ case 4:
+ this.lBa(a, b);
+ u30 = 6;
+ break;
+ u30 = 1;
+ break;
+ case 2:
+ this.lBa(a, b);
+ u30 = 1;
+ break;
+ }
+ }
+ };
+ b.prototype.lBa = function (a, b) {
+ var v30,
+ c;
+ v30 = 2;
+ for (; v30 !== 4; ) {
+ switch (v30) {
+ case 2:
+ c = a.wa;
+ v30 = 1;
+ break;
+ case 5:
+ (b.BEa || b.Le && !this.Io || (b.BEa = !0, ++this.zx), b.headers || (b.headers = {}), b.headers[c] = a, this.gm.tO && (b.Lq || (b.Lq = 0), ++b.Lq), this.zV());
+ v30 = 4;
+ break;
+ case 1:
+ v30 = (b = this.Be[a.G] || b) ? 5 : 4;
+ break;
+ }
+ }
+ };
+ b.prototype.zV = function () {
+ var w30,
+ b,
+ c,
+ f;
+ w30 = 2;
+ for (; w30 !== 12; ) {
+ switch (w30) {
+ case 1:
+ w30 = !(this.zx <= this.lM) ? 5 : 12;
+ break;
+ case 2:
+ f = 0;
+ w30 = 1;
+ break;
+ case 4:
+ w30 = (c = this.dj.shift()) ? 3 : 5;
+ break;
+ case 3:
+ b = c.G;
+ w30 = 9;
+ break;
+ case 5:
+ w30 = this.zx > this.lM ? 4 : 13;
+ break;
+ case 9:
+ w30 = c.data ? 8 : 7;
+ break;
+ case 8:
+ for (var h in c.data) {
+ c.data[h].forEach(a);
+ delete c.data[h];
+ }
+ w30 = 7;
+ break;
+ case 7:
+ delete this.Be[b];
+ --this.zx;
+ w30 = 14;
+ break;
+ case 14:
+ this.Aab(b);
+ w30 = 5;
+ break;
+ case 13:
+ this.Bab(f);
+ w30 = 12;
+ break;
+ }
+ }
+ function a(a) {
+ var x30;
+ x30 = 2;
+ for (; x30 !== 5; ) {
+ switch (x30) {
+ case 2:
+ a.abort();
+ f += a.Qe;
+ x30 = 5;
+ break;
+ }
+ }
+ }
+ };
+ u20 = 29;
+ break;
+ case 26:
+ b.prototype.P9a = function () {
+ var b30,
+ a;
+ b30 = 2;
+ for (; b30 !== 5; ) {
+ switch (b30) {
+ case 1:
+ !this.NV && 0 < this.xF.length && (this.xF.forEach(function (b) {
+ var c30;
+ c30 = 2;
+ for (; c30 !== 1; ) {
+ switch (c30) {
+ case 2:
+ a.xW(b.Otb, b.Oc);
+ c30 = 1;
+ break;
+ }
+ }
+ }), this.xF = []);
+ b30 = 5;
+ break;
+ case 2:
+ a = this;
+ b30 = 1;
+ break;
+ }
+ }
+ };
+ b.prototype.Iab = function (a, b) {
+ var d30,
+ c,
+ h,
+ d,
+ m,
+ p,
+ g,
+ u,
+ r,
+ A,
+ q,
+ K,
+ C,
+ H,
+ M;
+ d30 = 2;
+ for (; d30 !== 13; ) {
+ switch (d30) {
+ case 4:
+ d30 = !K ? 3 : 9;
+ break;
+ case 2:
+ var J8P = "A config must be p";
+ J8P += "assed to _req";
+ J8P += "uestHeader";
+ (c = this, h = b.G, d = b.Ld, m = b.Oc, p = b.Le, g = b.erb(), u = g.xa, r = g.Kf, g = g.BB);
+ k.assert(b.config, J8P);
+ (A = b.config, A = f.Pda(A, u), q = {
+ stream: [new T.aV(A.uca, A, new S.$U()), new T.aV(A.U3, A, new S.$U())],
+ location: new n.bU(u, a.zb, a.Mf, A, void 0),
+ Y: {
+ state: t.pa.Sg,
+ k0: !0,
+ $Q: 0,
+ playbackRate: 1,
+ buffer: {
+ pq: void 0,
+ T: 0,
+ ud: 0,
+ Ub: 0,
+ Bl: 0,
+ dk: 0,
+ $: [],
+ ki: void 0,
+ jga: void 0
+ }
+ }
+ }, K = this.xsb(a, q, u, g, r, A, b.qs));
+ d30 = 4;
+ break;
+ case 3:
+ return aa.reject();
+ break;
+ case 9:
+ C = this.Be[h];
+ C || (C = {
+ Ld: d,
+ G: h,
+ headers: Object.create(null),
+ Lq: 0,
+ E_: 0,
+ RG: 0,
+ data: void 0,
+ Le: p,
+ ac: {},
+ yY: void 0,
+ BEa: void 0
+ }, !C.Le || this.Io ? this.Be[h] = C : C.ac.so = 0, this.dj.push(C), this.dj.sort(this.u2));
+ H = [];
+ A.Ntb && (M = 2292 + 12 * Math.ceil(u.duration / 2E3));
+ d30 = 14;
+ break;
+ case 14:
+ return (p && this.kf ? this.Io ? this.kf.qxb(h, C) : this.kf.Qxb(h) : aa.resolve(void 0)).then(function (a) {
+ var e30;
+ e30 = 2;
+ for (; e30 !== 5; ) {
+ switch (e30) {
+ case 2:
+ K.forEach(function (b) {
+ var f30,
+ f;
+ f30 = 2;
+ for (; f30 !== 5; ) {
+ switch (f30) {
+ case 2:
+ f = M ? M : A.F_;
+ A.tO && C.headers[b.wa] || (l.X(C.gp) && b.L === w.Na.VIDEO && (C.gp = b.R, C.kp = b.kp, C.Mq = b.Mq, C.Kk = b.Utb, C.Lk = b.J_), r && b.L === w.Na.VIDEO && A.gZ ? f = A.gZ : A.XYa && b.Dt && (f = b.Dt.offset + b.Dt.size), b = {
+ stream: b,
+ url: b.url,
+ offset: 0,
+ da: f,
+ Le: p
+ }, p && (C.ac.Ryb = !l.X(a) && 0 < Object.keys(a).length, b.dz = a), b = c.Jab(b, m, C, A), H.push(b));
+ f30 = 5;
+ break;
+ }
+ }
+ });
+ return aa.all(H);
+ break;
+ }
+ }
+ }).then(function (a) {
+ var g30;
+ g30 = 2;
+ for (; g30 !== 1; ) {
+ switch (g30) {
+ case 2:
+ return new aa(function (b) {
+ var h30;
+ h30 = 2;
+ for (; h30 !== 1; ) {
+ switch (h30) {
+ case 2:
+ c.kf && p && !c.Io ? c.kf.tHb(C, function () {
+ var i30;
+ i30 = 2;
+ for (; i30 !== 1; ) {
+ switch (i30) {
+ case 2:
+ b(a);
+ i30 = 1;
+ break;
+ case 4:
+ b(a);
+ i30 = 4;
+ break;
+ i30 = 1;
+ break;
+ }
+ }
+ }) : b(a);
+ h30 = 1;
+ break;
+ }
+ }
+ });
+ break;
+ }
+ }
+ }).then(function (a) {
+ var j30;
+ j30 = 2;
+ for (; j30 !== 3; ) {
+ switch (j30) {
+ case 2:
+ a = Math.max.apply(Math, a);
+ C.ac.sZ = C.ac.WMa;
+ C.ac.E0 = a;
+ return {
+ firstheadersent: C.ac.sZ,
+ lastheadercomplete: C.ac.E0
+ };
+ break;
+ }
+ }
+ });
+ break;
+ }
+ }
+ };
+ b.prototype.X$ = function (a, b) {
+ var k30,
+ c;
+ k30 = 2;
+ for (; k30 !== 8; ) {
+ switch (k30) {
+ case 2:
+ c = a.stream.L;
+ 2 > this.ds.length && this.LBa();
+ b = new p.V4(a.stream, b, this.ds[c], a, this, !0, Z);
+ k30 = 4;
+ break;
+ case 4:
+ b.Le = a.Le;
+ b.af = this;
+ return b;
+ break;
+ }
+ }
+ };
+ b.prototype.p8a = function (a, b) {
+ var l30,
+ c;
+ l30 = 2;
+ for (; l30 !== 8; ) {
+ switch (l30) {
+ case 2:
+ c = a.stream.L;
+ 2 > this.ds.length && this.LBa();
+ b = h.TS.create(a.stream, b, this.ds[c].track, a, this, !0, Z);
+ b.Le = a.Le;
+ b.af = this;
+ return b;
+ break;
+ }
+ }
+ };
+ u20 = 22;
+ break;
+ case 13:
+ b.prototype.Pxb = function (a, b) {
+ var I20,
+ c,
+ f;
+ I20 = 2;
+ for (; I20 !== 5; ) {
+ switch (I20) {
+ case 2:
+ (c = this, f = this.pPa(a));
+ return f || !this.kf ? aa.resolve(f) : (this.Io ? this.L9a(a, b) : this.K9a(a, b)).then(function (a) {
+ var J20;
+ J20 = 2;
+ for (; J20 !== 1; ) {
+ switch (J20) {
+ case 2:
+ return c.sTa(a);
+ break;
+ }
+ }
+ });
+ break;
+ }
+ }
+ };
+ b.prototype.pPa = function (a) {
+ var K20;
+ K20 = 2;
+ for (; K20 !== 1; ) {
+ switch (K20) {
+ case 2:
+ return this.sTa(this.Be[a]);
+ break;
+ }
+ }
+ };
+ b.prototype.Vv = function () {
+ var L20;
+ L20 = 2;
+ for (; L20 !== 1; ) {
+ switch (L20) {
+ case 2:
+ var k8P = "Medi";
+ k8P += "a cache ";
+ k8P += "is n";
+ k8P += "ot enabled";
+ return this.kf ? this.kf.orb() : aa.reject(k8P);
+ break;
+ }
+ }
+ };
+ u20 = 10;
+ break;
+ case 2:
+ c.__extends(b, a);
+ Object.defineProperties(b.prototype, {
+ cache: {
+ get: function () {
+ var y20;
+ y20 = 2;
+ for (; y20 !== 1; ) {
+ switch (y20) {
+ case 2:
+ return this.Be;
+ break;
+ }
+ }
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ b.prototype.T2 = function () {
+ var z20;
+ z20 = 2;
+ for (; z20 !== 1; ) {
+ switch (z20) {
+ case 2:
+ return this.ds.map(function (a) {
+ var A20;
+ A20 = 2;
+ for (; A20 !== 1; ) {
+ switch (A20) {
+ case 4:
+ return a.T2();
+ break;
+ A20 = 1;
+ break;
+ case 2:
+ return a.T2();
+ break;
+ }
+ }
+ });
+ break;
+ }
+ }
+ };
+ u20 = 4;
+ break;
+ }
+ }
+ function b(b, c, f, h) {
+ var v20;
+ v20 = 2;
+ for (; v20 !== 25; ) {
+ switch (v20) {
+ case 4:
+ b.ib = z;
+ b.iWb = Y;
+ b.dM = Object.create(null);
+ b.gm = c;
+ b.Be = Object.create(null);
+ b.zx = 0;
+ b.dj = [];
+ v20 = 13;
+ break;
+ case 13:
+ b.lM = c.bO;
+ b.ds = [];
+ b.NV = !1;
+ v20 = 10;
+ break;
+ case 2:
+ b = a.call(this) || this;
+ b.Kj = V;
+ b.jf = ia;
+ v20 = 4;
+ break;
+ case 16:
+ var a8P = "1";
+ a8P += "SIYb";
+ a8P += "Z";
+ a8P += "rNJCp9";
+ var A8P = "c";
+ A8P += "at";
+ A8P += "c";
+ A8P += "h";
+ b.wba && (b.gm.ry || (c = (H.options || ({})).pI || 0, b.gm.set ? b.gm.set({
+ ry: c
+ }) : b.gm.ry = (H.options || ({})).pI || 0), b.kf = new q.rwa(b.gm, H, b), b.kf.Eb(b, h).then(function () {
+ var w20;
+ w20 = 2;
+ for (; w20 !== 1; ) {
+ switch (w20) {
+ case 4:
+ V("");
+ w20 = 5;
+ break;
+ w20 = 1;
+ break;
+ case 2:
+ var F8P = "Media ";
+ F8P += "cach";
+ F8P += "e i";
+ F8P += "nitialized";
+ V(F8P);
+ w20 = 1;
+ break;
+ }
+ }
+ })[A8P](function (a) {
+ var x20;
+ x20 = 2;
+ for (; x20 !== 1; ) {
+ switch (x20) {
+ case 2:
+ var b8P = "Media cache did n";
+ b8P += "ot initiali";
+ b8P += "ze";
+ ia(b8P, a);
+ x20 = 1;
+ break;
+ }
+ }
+ }));
+ b.ql = f;
+ a8P;
+ return b;
+ break;
+ case 19:
+ b.wba = (b.gm.Tz || b.gm.fqa) && 0 < (b.gm.ry || (H.options || ({})).pI || 0);
+ b.Io = b.gm.Aka;
+ b.kf = void 0;
+ v20 = 16;
+ break;
+ case 10:
+ b.xF = [];
+ b.mB = {};
+ v20 = 19;
+ break;
+ }
+ }
+ }
+ })(m.yr);
+ b.sua = a;
+ C(d.EventEmitter.prototype, a.prototype);
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ g,
+ h,
+ p;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Wwa = void 0;
+ c = a(8);
+ k = a(170);
+ l = a(19);
+ g = a(80);
+ h = a(4);
+ p = a(11);
+ a(5);
+ d = (function () {
+ var X30;
+ X30 = 2;
+ for (; X30 !== 39; ) {
+ switch (X30) {
+ case 18:
+ a.prototype.z$a = function (a, b) {
+ var q40,
+ c;
+ q40 = 2;
+ for (; q40 !== 3; ) {
+ switch (q40) {
+ case 2:
+ var R8P = "notify";
+ R8P += "ManifestS";
+ R8P += "elected: ";
+ var j8P = "manifestS";
+ j8P += "e";
+ j8P += "lec";
+ j8P += "te";
+ j8P += "d";
+ c = this.Ma.K;
+ a = {
+ type: j8P,
+ index: a,
+ replace: b.O.Ie.replace,
+ ptsStarts: b.$I,
+ streamingOffset: b.T + b.Ts
+ };
+ c.ah && (b = R8P + JSON.stringify(a), c.ah && this.Qk(b));
+ p.Ka(this.Ma, a.type, a);
+ q40 = 3;
+ break;
+ }
+ }
+ };
+ X30 = 17;
+ break;
+ case 29:
+ a.prototype.u$a = function (a) {
+ var I40,
+ b,
+ c,
+ f,
+ h,
+ d,
+ k,
+ m,
+ l,
+ g,
+ r,
+ n,
+ q,
+ t,
+ V,
+ z,
+ ia,
+ Y,
+ E,
+ X,
+ O;
+ I40 = 2;
+ for (; I40 !== 9; ) {
+ switch (I40) {
+ case 7:
+ I40 = a ? 4 : 10;
+ break;
+ I40 = a ? 1 : 9;
+ break;
+ case 2:
+ I40 = a ? 1 : 9;
+ break;
+ case 1:
+ var c8P = "hindsi";
+ c8P += "g";
+ c8P += "ht";
+ c8P += "r";
+ c8P += "eport";
+ (b = {
+ type: c8P
+ }, c = this.Ma.K.gP);
+ for (f in c) {
+ var X8P = "hv";
+ X8P += "m";
+ X8P += "af";
+ X8P += "d";
+ X8P += "p";
+ var t8P = "hvm";
+ t8P += "a";
+ t8P += "f";
+ t8P += "g";
+ t8P += "r";
+ var x8P = "h";
+ x8P += "v";
+ x8P += "ma";
+ x8P += "ftb";
+ var V8P = "ht";
+ V8P += "wb";
+ V8P += "r";
+ h = c[f];
+ d = 0;
+ k = 0;
+ m = 0;
+ l = 0;
+ g = 0;
+ r = 0;
+ n = void 0;
+ q = void 0;
+ t = !1;
+ V = -1;
+ z = -1;
+ ia = -1;
+ Y = -1;
+ E = -1;
+ X = -1;
+ for (O in a) {
+ q = a[O];
+ void 0 === q.nd && (n = (n = q.sols) && n[h]) && (t = !0, m += n.dlvdur, d += n.dltwbr * n.dlvdur, k += n.dlvmaf * n.dlvdur);
+ r += q.pbdur;
+ l += q.pbtwbr * q.pbdur;
+ g += q.pbvmaf * q.pbdur;
+ n = q.rr;
+ q = q.ra;
+ }
+ 0 < r && (V = 1 * l / r, Y = 1 * g / r);
+ t && (0 < m && (z = 1 * d / m, E = 1 * k / m), 0 < m + r && (ia = 1 * (d + l) / (m + r), X = 1 * (k + g) / (m + r)));
+ switch (h) {
+ case V8P:
+ b.htwbr = ia;
+ b.hptwbr = z;
+ b.pbtwbr = V;
+ n && (b.rr = n, b.ra = q);
+ break;
+ case x8P:
+ b.hvmaftb = X;
+ b.hpvmaftb = E;
+ b.pbvmaftb = Y;
+ n && (b.rrvmaftb = n, b.ravmaftb = q);
+ break;
+ case t8P:
+ b.hvmafgr = X;
+ b.hpvmafgr = E;
+ b.pbvmafgr = Y;
+ n && (b.rrvmafgr = n, b.ravmafgr = q);
+ break;
+ case X8P:
+ (b.hvmafdp = X, b.hpvmafdp = E, b.pbvmafdp = Y, n && (b.rrvmafdp = n, b.ravmafdp = q));
+ }
+ }
+ this.Ma.hH && (b.report = a);
+ p.Ka(this.Ma, b.type, b);
+ I40 = 9;
+ break;
+ }
+ }
+ };
+ a.prototype.q$a = function (a) {
+ var J40;
+ J40 = 2;
+ for (; J40 !== 5; ) {
+ switch (J40) {
+ case 2:
+ var o8P = "en";
+ o8P += "dOf";
+ o8P += "Stream";
+ a = {
+ type: o8P,
+ mediaType: a
+ };
+ p.Ka(this.Ma, a.type, a);
+ J40 = 5;
+ break;
+ }
+ }
+ };
+ a.prototype.Mm = function (a) {
+ var K40;
+ K40 = 2;
+ for (; K40 !== 1; ) {
+ switch (K40) {
+ case 2:
+ var M8P = "as";
+ M8P += "ee";
+ M8P += "xcepti";
+ M8P += "on";
+ var s8P = "as";
+ s8P += "eexceptio";
+ s8P += "n";
+ this.Ma.emit(s8P, {
+ type: M8P,
+ msg: a
+ });
+ K40 = 1;
+ break;
+ }
+ }
+ };
+ a.prototype.zAb = function (a, b, c, d) {
+ var L40;
+ L40 = 2;
+ for (; L40 !== 5; ) {
+ switch (L40) {
+ case 2:
+ var m8P = "m";
+ m8P += "axvideobi";
+ m8P += "tratechanged";
+ var Z8P = "m";
+ Z8P += "axvideobit";
+ Z8P += "rat";
+ Z8P += "echang";
+ Z8P += "ed";
+ a = {
+ type: Z8P,
+ time: h.time.ea(),
+ spts: d,
+ maxvb_old: a,
+ maxvb: b,
+ reason: c
+ };
+ this.Ma.emit(m8P, a);
+ L40 = 5;
+ break;
+ }
+ }
+ };
+ a.prototype.sRa = function () {
+ var M40,
+ a;
+ M40 = 2;
+ for (; M40 !== 3; ) {
+ switch (M40) {
+ case 2:
+ M40 = !this.kbb && this.Ma.K.pRa ? 1 : 3;
+ break;
+ case 1:
+ var N8P = "s";
+ N8P += "treame";
+ N8P += "rend";
+ this.kbb = !0;
+ a = {
+ type: N8P,
+ time: h.time.ea()
+ };
+ p.Ka(this.Ma, a.type, a);
+ M40 = 3;
+ break;
+ }
+ }
+ };
+ a.prototype.Qk = function (a) {
+ var N40;
+ N40 = 2;
+ for (; N40 !== 5; ) {
+ switch (N40) {
+ case 2:
+ var l8P = ",";
+ l8P += " ";
+ var Y8P = "m";
+ Y8P += "anage";
+ Y8P += "rde";
+ Y8P += "bugevent";
+ a = {
+ type: Y8P,
+ message: "@" + h.time.ea() + l8P + a
+ };
+ p.Ka(this.Ma, a.type, a);
+ N40 = 5;
+ break;
+ }
+ }
+ };
+ X30 = 40;
+ break;
+ case 25:
+ a.prototype.v$a = function (a, b) {
+ var w40;
+ w40 = 2;
+ for (; w40 !== 5; ) {
+ switch (w40) {
+ case 2:
+ var d8P = "initialA";
+ d8P += "u";
+ d8P += "dioTr";
+ d8P += "ack";
+ a = {
+ type: d8P,
+ trackId: b,
+ trackIndex: a
+ };
+ p.Ka(this.Ma, a.type, a);
+ w40 = 5;
+ break;
+ }
+ }
+ };
+ a.prototype.m$a = function (a, b) {
+ var x40;
+ x40 = 2;
+ for (; x40 !== 3; ) {
+ switch (x40) {
+ case 2:
+ var I8P = "audi";
+ I8P += "oTrack";
+ I8P += "Swi";
+ I8P += "tchSta";
+ I8P += "rted";
+ a = a.QC;
+ b = b.QC;
+ b = {
+ type: I8P,
+ oldLangCode: a.language,
+ oldNumChannels: a.channels,
+ newLangCode: b.language,
+ newNumChannels: b.channels,
+ sourceBufferReset: void 0
+ };
+ p.Ka(this.Ma, b.type, b);
+ x40 = 3;
+ break;
+ }
+ }
+ };
+ a.prototype.l$a = function (a, b) {
+ var y40,
+ c;
+ y40 = 2;
+ for (; y40 !== 5; ) {
+ switch (y40) {
+ case 2:
+ c = this;
+ setTimeout(function () {
+ var z40,
+ f;
+ z40 = 2;
+ for (; z40 !== 5; ) {
+ switch (z40) {
+ case 1:
+ p.Ka(c.Ma, f.type, f);
+ z40 = 5;
+ break;
+ case 2:
+ var g8P = "audioTrackSwi";
+ g8P += "t";
+ g8P += "chCompl";
+ g8P += "ete";
+ f = {
+ type: g8P,
+ trackId: a,
+ trackIndex: b
+ };
+ z40 = 1;
+ break;
+ }
+ }
+ }, 0);
+ y40 = 5;
+ break;
+ }
+ }
+ };
+ a.prototype.p$a = function (a) {
+ var A40,
+ b;
+ A40 = 2;
+ for (; A40 !== 4; ) {
+ switch (A40) {
+ case 2:
+ var i8P = "bufferingSt";
+ i8P += "art";
+ i8P += "ed";
+ b = {
+ type: i8P,
+ time: h.time.ea(),
+ percentage: a || 0
+ };
+ p.Ka(this.Ma, b.type, b);
+ this.Baa = a || 0;
+ A40 = 4;
+ break;
+ }
+ }
+ };
+ a.prototype.n$a = function () {
+ var B40,
+ a,
+ b,
+ c,
+ d,
+ k;
+ B40 = 2;
+ for (; B40 !== 5; ) {
+ switch (B40) {
+ case 2:
+ var W8P = "bu";
+ W8P += "ff";
+ W8P += "eri";
+ W8P += "ng";
+ (a = this.Ma.K, b = h.time.ea(), c = this.Ma.sa.Xb, d = this.Ma.il ? 1 : 0, k = c.kb(d), c = c.zm(d), a = Math.min(Math.max(Math.round(100 * (k.Yy ? (b - this.Ma.M$) / a.qz : k.ei ? k.ei : c / a.Li)), this.Baa), 99));
+ a != this.Baa && (b = {
+ type: W8P,
+ time: b,
+ percentage: a
+ }, p.Ka(this.Ma, b.type, b), this.Baa = a);
+ B40 = 5;
+ break;
+ }
+ }
+ };
+ X30 = 35;
+ break;
+ case 17:
+ a.prototype.x$a = function (a, b, c, h, d) {
+ var r40;
+ r40 = 2;
+ for (; r40 !== 4; ) {
+ switch (r40) {
+ case 2:
+ var e8P = "manifestP";
+ e8P += "res";
+ e8P += "ent";
+ e8P += "ing";
+ a = {
+ type: e8P,
+ index: a.Za,
+ pts: Math.floor(b),
+ movieId: a.G,
+ replace: a.Ie.replace,
+ contentOffset: c
+ };
+ null != h && null != d && (a.previousMovieId = h, a.previousIndex = d);
+ p.Ka(this.Ma, a.type, a);
+ r40 = 4;
+ break;
+ }
+ }
+ };
+ a.prototype.I$a = function (a, b, c, h) {
+ var s40,
+ f;
+ s40 = 2;
+ for (; s40 !== 3; ) {
+ switch (s40) {
+ case 2:
+ var v8P = "streamP";
+ v8P += "re";
+ v8P += "s";
+ v8P += "enting";
+ f = a.L;
+ k.Xl.$n(f);
+ a = {
+ type: v8P,
+ startPts: Math.floor(b),
+ contentStartPts: Math.floor(c),
+ mediaType: f,
+ manifestIndex: h,
+ trackIndex: a.track.tB,
+ streamIndex: a.ug
+ };
+ p.Ka(this.Ma, a.type, a);
+ s40 = 3;
+ break;
+ }
+ }
+ };
+ a.prototype.N$a = function (a) {
+ var t40;
+ t40 = 2;
+ for (; t40 !== 5; ) {
+ switch (t40) {
+ case 2:
+ var Q8P = "vid";
+ Q8P += "eoLoo";
+ Q8P += "ped";
+ a = {
+ type: Q8P,
+ offset: a
+ };
+ p.Ka(this.Ma, a.type, a);
+ t40 = 5;
+ break;
+ }
+ }
+ };
+ X30 = 27;
+ break;
+ case 35:
+ a.prototype.Qaa = function () {
+ var C40,
+ d,
+ k,
+ a,
+ b,
+ c;
+ C40 = 2;
+ for (; C40 !== 9; ) {
+ switch (C40) {
+ case 1:
+ var h8P = "bu";
+ h8P += "ffe";
+ h8P += "ringComp";
+ h8P += "lete";
+ this.YCa();
+ (d = this.Ma.il ? this.Ma.$a.Fw[l.Na.VIDEO] : this.Ma.$a.Fw[l.Na.AUDIO], k = d.sN, a = {
+ type: h8P,
+ time: h.time.ea(),
+ actualStartPts: k,
+ aBufferLevelMs: a.zm(0),
+ vBufferLevelMs: a.zm(1),
+ selector: c ? c.uJ : b.uJ,
+ initBitrate: d.gp,
+ skipbackBufferSizeBytes: this.Ma.Fb.TD
+ });
+ this.Ma.Ef.Wnb({
+ initSelReason: d.kp,
+ initSelectionPredictedDelay: d.Kv,
+ buffCompleteReason: d.nq,
+ hashindsight: this.Ma.fp,
+ hasasereport: !!this.Ma.yt
+ });
+ p.Ka(this.Ma, a.type, a);
+ C40 = 9;
+ break;
+ case 2:
+ (a = this.Ma.sa.Xb, b = a.kb(0), c = a.kb(1));
+ C40 = 1;
+ break;
+ }
+ }
+ };
+ a.prototype.YCa = function () {
+ var D40,
+ a,
+ b,
+ c,
+ h,
+ d,
+ k,
+ m;
+ D40 = 2;
+ for (; D40 !== 7; ) {
+ switch (D40) {
+ case 1:
+ D40 = !this.Ma.rl() ? 5 : 7;
+ break;
+ case 2:
+ a = this.Ma.K;
+ D40 = 1;
+ break;
+ case 5:
+ var O8P = "updateBuff";
+ O8P += "e";
+ O8P += "rLe";
+ O8P += "vel";
+ (b = this.Ma.sa.Xb, c = b.zm(0), h = b.zm(1));
+ this.Ma.Ef.$bb(c, h);
+ (d = this.Ma.Fb.zb.get(), d = d.Dd ? d.Ia.Ca : 0, k = this.Ma.sa, m = k.LB(b, 0), b = k.LB(b, 1), c = {
+ type: O8P,
+ abuflbytes: m,
+ vbuflbytes: b,
+ totalabuflmsecs: c,
+ totalvbuflmsecs: h,
+ currentBandwidth: d
+ });
+ D40 = 9;
+ break;
+ case 9:
+ h > a.tQa && this.Ma.Fb.af && this.Ma.Fb.af.VM(!0, this.Ma.ql.sessionId);
+ D40 = 8;
+ break;
+ case 8:
+ p.Ka(this.Ma, c.type, c);
+ D40 = 7;
+ break;
+ }
+ }
+ };
+ a.prototype.O9a = function (a) {
+ var E40,
+ b,
+ f,
+ d;
+ E40 = 2;
+ for (; E40 !== 7; ) {
+ switch (E40) {
+ case 4:
+ var P8P = ", os";
+ P8P += "Allocat";
+ P8P += "orDelt";
+ P8P += "a:";
+ P8P += " ";
+ var E8P = ",";
+ E8P += " jsHe";
+ E8P += "ap";
+ E8P += "Delta: ";
+ var z8P = ", f";
+ z8P += "ast";
+ z8P += "Ma";
+ z8P += "llo";
+ z8P += "cDelta: ";
+ var q8P = "m";
+ q8P += "em";
+ q8P += "o";
+ q8P += "ryUsage at";
+ q8P += " time: ";
+ (b = a.FJa - this.OF.FJa, f = a.YMa - this.OF.YMa, d = a.URa - this.OF.URa);
+ (4194304 < b || 4194304 < d) && this.u.warn(q8P + h.time.ea() + z8P + b + E8P + f + P8P + d);
+ E40 = 9;
+ break;
+ case 8:
+ this.OF = a;
+ E40 = 7;
+ break;
+ case 2:
+ E40 = !c.X(a) ? 1 : 7;
+ break;
+ case 9:
+ var C8P = ", ";
+ C8P += "sys";
+ C8P += "temDelt";
+ C8P += "a: ";
+ var U8P = "memoryUsag";
+ U8P += "e";
+ U8P += " at time: ";
+ c.na(a.$R) && c.na(this.OF.$R) && (b = a.$R - this.OF.$R, 4194304 < b && this.u.warn(U8P + h.time.ea(), C8P + b));
+ E40 = 8;
+ break;
+ case 5:
+ E40 = !c.X(this.OF) ? 4 : 8;
+ break;
+ case 1:
+ c.na(a.$R);
+ E40 = 5;
+ break;
+ }
+ }
+ };
+ a.prototype.M$a = function () {
+ var F40,
+ a;
+ F40 = 2;
+ for (; F40 !== 3; ) {
+ switch (F40) {
+ case 5:
+ this.Ma.Ef.Xnb(a);
+ p.Ka(this.Ma, a.type, a);
+ F40 = 3;
+ break;
+ case 2:
+ var p8P = "st";
+ p8P += "reamingsta";
+ p8P += "t";
+ this.Ma.K.Exb && h.memory.Nqb(this.O9a.bind(this));
+ a = {
+ type: p8P,
+ time: h.time.ea(),
+ playbackTime: this.Ma.Y.Sd()
+ };
+ F40 = 5;
+ break;
+ }
+ }
+ };
+ a.prototype.XCa = function () {
+ var G40,
+ a;
+ G40 = 2;
+ for (; G40 !== 4; ) {
+ switch (G40) {
+ case 2:
+ G40 = this.Ma.yt ? 1 : 4;
+ break;
+ case 1:
+ var S8P = "aser";
+ S8P += "e";
+ S8P += "por";
+ S8P += "t";
+ a = {
+ type: S8P
+ };
+ this.Ma.yt.Vnb(a) && p.Ka(this.Ma, a.type, a);
+ G40 = 4;
+ break;
+ }
+ }
+ };
+ a.prototype.k$a = function () {
+ var H40,
+ a;
+ H40 = 2;
+ for (; H40 !== 5; ) {
+ switch (H40) {
+ case 2:
+ var L8P = "ase";
+ L8P += "repo";
+ L8P += "rt";
+ L8P += "enab";
+ L8P += "led";
+ a = {
+ type: L8P
+ };
+ p.Ka(this.Ma, a.type, a);
+ H40 = 5;
+ break;
+ }
+ }
+ };
+ X30 = 29;
+ break;
+ case 6:
+ a.prototype.E$a = function (a) {
+ var h40,
+ b;
+ h40 = 2;
+ for (; h40 !== 5; ) {
+ switch (h40) {
+ case 2:
+ var w8P = "segment";
+ w8P += "Abort";
+ w8P += "e";
+ w8P += "d";
+ b = {
+ type: w8P,
+ segmentId: a.id
+ };
+ a.pz || p.Ka(this.Ma, b.type, b);
+ h40 = 5;
+ break;
+ }
+ }
+ };
+ a.prototype.l9a = function (a, b) {
+ var i40,
+ f,
+ d,
+ k;
+ i40 = 2;
+ for (; i40 !== 11; ) {
+ switch (i40) {
+ case 5:
+ var f9P = "s";
+ f9P += "eam";
+ f9P += "less";
+ var n9P = "r";
+ n9P += "es";
+ n9P += "e";
+ n9P += "t";
+ var u9P = "s";
+ u9P += "k";
+ u9P += "i";
+ u9P += "p";
+ var r9P = "l";
+ r9P += "o";
+ r9P += "n";
+ r9P += "g";
+ var K8P = "l";
+ K8P += "on";
+ K8P += "g";
+ var D8P = "s";
+ D8P += "e";
+ D8P += "am";
+ D8P += "le";
+ D8P += "ss";
+ f.atRequest.weight = d;
+ c.ee(b.zd, function (b, c) {
+ var j40;
+ j40 = 2;
+ for (; j40 !== 1; ) {
+ switch (j40) {
+ case 2:
+ c != a && (f.discard[c] = {
+ weight: b.weight
+ }, g(b.qN, f.discard[c]));
+ j40 = 1;
+ break;
+ }
+ }
+ });
+ d = b.h3 ? b.w_ ? D8P : K8P : b.TQa ? r9P : b.Vl ? u9P : n9P;
+ f.transitionType = d;
+ b.Wkb || (f.delayToTransition = b.xY);
+ d = f9P === d ? 0 : h.time.ea() - b.startTime;
+ i40 = 6;
+ break;
+ case 2:
+ (f = {
+ segment: a,
+ srcsegment: b.L3,
+ srcoffset: b.FJ,
+ seamlessRequested: b.h3,
+ atRequest: {},
+ discard: {}
+ }, k = b.zd[a]);
+ k ? (d = k.weight, g(k.qN, f.atRequest)) : d = this.Ma.sa.YLa(b.L3, a);
+ i40 = 5;
+ break;
+ case 6:
+ f.durationOfTransition = d;
+ f.atTransition = b.ZXa;
+ f.srcsegmentduration = this.Ma.sa.gsb(b.L3);
+ i40 = 12;
+ break;
+ case 12:
+ return f;
+ break;
+ }
+ }
+ };
+ a.prototype.H$a = function (a, b, c) {
+ var k40;
+ k40 = 2;
+ for (; k40 !== 4; ) {
+ switch (k40) {
+ case 2:
+ var T9P = "segme";
+ T9P += "ntPres";
+ T9P += "enting";
+ c = c ? this.l9a(a.id, c) : void 0;
+ a = {
+ type: T9P,
+ segmentId: a.id,
+ contentOffset: b,
+ metrics: c,
+ playlistSegment: a.pz,
+ manifestIndex: a.O.Za
+ };
+ p.Ka(this.Ma, a.type, a);
+ k40 = 4;
+ break;
+ }
+ }
+ };
+ a.prototype.F$a = function (a, b) {
+ var l40;
+ l40 = 2;
+ for (; l40 !== 5; ) {
+ switch (l40) {
+ case 2:
+ var H9P = "s";
+ H9P += "egmentAppe";
+ H9P += "nded";
+ b = {
+ type: H9P,
+ segmentId: a.id,
+ metrics: b
+ };
+ l40 = 1;
+ break;
+ case 1:
+ a.pz || p.Ka(this.Ma, b.type, b);
+ l40 = 5;
+ break;
+ }
+ }
+ };
+ a.prototype.G$a = function (a, b, c) {
+ var m40;
+ m40 = 2;
+ for (; m40 !== 5; ) {
+ switch (m40) {
+ case 2:
+ var B9P = "segmen";
+ B9P += "tC";
+ B9P += "omp";
+ B9P += "lete";
+ a = {
+ type: B9P,
+ mediaType: a,
+ manifestIndex: b,
+ segmentId: c.id
+ };
+ p.Ka(this.Ma, a.type, a);
+ m40 = 5;
+ break;
+ }
+ }
+ };
+ X30 = 10;
+ break;
+ case 10:
+ a.prototype.Raa = function (a, b) {
+ var n40;
+ n40 = 2;
+ for (; n40 !== 5; ) {
+ switch (n40) {
+ case 2:
+ var y9P = "lastS";
+ y9P += "egme";
+ y9P += "ntPts";
+ b = {
+ type: y9P,
+ segmentId: a.id,
+ pts: Math.floor(b)
+ };
+ a.pz || p.Ka(this.Ma, b.type, b);
+ n40 = 5;
+ break;
+ }
+ }
+ };
+ a.prototype.y$a = function (a, b, c, h, d) {
+ var o40;
+ o40 = 2;
+ for (; o40 !== 5; ) {
+ switch (o40) {
+ case 2:
+ var G9P = "man";
+ G9P += "ifestRa";
+ G9P += "nge";
+ a = {
+ type: G9P,
+ index: a,
+ manifestOffset: b,
+ startPts: Math.floor(c),
+ endPts: Math.floor(h),
+ maxPts: Math.floor(d)
+ };
+ p.Ka(this.Ma, a.type, a);
+ o40 = 5;
+ break;
+ }
+ }
+ };
+ a.prototype.ZCa = function (a) {
+ var p40;
+ p40 = 2;
+ for (; p40 !== 5; ) {
+ switch (p40) {
+ case 2:
+ var J9P = "ma";
+ J9P += "xBit";
+ J9P += "r";
+ J9P += "ates";
+ a = {
+ type: J9P,
+ audio: a[0],
+ video: a[1]
+ };
+ p.Ka(this.Ma, a.type, a);
+ p40 = 5;
+ break;
+ }
+ }
+ };
+ X30 = 18;
+ break;
+ case 27:
+ a.prototype.L$a = function (a, b, c, h, d) {
+ var u40;
+ u40 = 2;
+ for (; u40 !== 4; ) {
+ switch (u40) {
+ case 2:
+ var k9P = "updateStr";
+ k9P += "eami";
+ k9P += "ngPts";
+ b = {
+ type: k9P,
+ mediaType: a,
+ manifestIndex: b,
+ trackIndex: c,
+ movieTime: Math.floor(h),
+ segmentId: d
+ };
+ k.Xl.$n(a);
+ p.Ka(this.Ma, b.type, b);
+ u40 = 4;
+ break;
+ }
+ }
+ };
+ a.prototype.r$a = function (a) {
+ var v40;
+ v40 = 2;
+ for (; v40 !== 5; ) {
+ switch (v40) {
+ case 2:
+ var F9P = "first";
+ F9P += "Reques";
+ F9P += "tAppe";
+ F9P += "nded";
+ a = {
+ type: F9P,
+ manifestIndex: a.Ja.Gc.O.Za,
+ mediatype: a.L,
+ time: h.time.ea()
+ };
+ p.Ka(this.Ma, a.type, a);
+ v40 = 5;
+ break;
+ }
+ }
+ };
+ X30 = 25;
+ break;
+ case 40:
+ return a;
+ break;
+ case 7:
+ a.prototype.nW = function (a, b) {
+ var g40;
+ g40 = 2;
+ for (; g40 !== 5; ) {
+ switch (g40) {
+ case 2:
+ var A9P = "s";
+ A9P += "e";
+ A9P += "g";
+ A9P += "mentStar";
+ A9P += "ting";
+ b = {
+ type: A9P,
+ segmentId: a.id,
+ contentOffset: b,
+ maxBitrates: {
+ audio: a.O.Uq[0],
+ video: a.O.Uq[1]
+ }
+ };
+ g40 = 1;
+ break;
+ case 1:
+ a.pz || p.Ka(this.Ma, b.type, b);
+ g40 = 5;
+ break;
+ }
+ }
+ };
+ X30 = 6;
+ break;
+ case 3:
+ a.prototype.s$a = function (a, b, c, h, d) {
+ var d40,
+ f;
+ d40 = 2;
+ for (; d40 !== 3; ) {
+ switch (d40) {
+ case 2:
+ var b9P = "headerCacheData";
+ b9P += "Hi";
+ b9P += "t";
+ f = this.Ma.sCa;
+ this.Ma.sCa = void 0;
+ a = {
+ type: b9P,
+ movieId: a,
+ audio: b,
+ audioFromMediaCache: h,
+ video: c,
+ videoFromMediaCache: d,
+ actualStartPts: f && f.mm,
+ headerCount: f && f.Lq,
+ stats: f && f.ac
+ };
+ p.Ka(this.Ma, a.type, a);
+ d40 = 3;
+ break;
+ }
+ }
+ };
+ X30 = 9;
+ break;
+ case 9:
+ a.prototype.A$a = function (a, b, c, h) {
+ var e40;
+ e40 = 2;
+ for (; e40 !== 5; ) {
+ switch (e40) {
+ case 2:
+ var a9P = "maxPo";
+ a9P += "si";
+ a9P += "t";
+ a9P += "i";
+ a9P += "on";
+ a = {
+ type: a9P,
+ index: a,
+ endPts: b,
+ maxPts: c,
+ maxSeekPts: h
+ };
+ e40 = 1;
+ break;
+ case 1:
+ p.Ka(this.Ma, a.type, a);
+ e40 = 5;
+ break;
+ }
+ }
+ };
+ a.prototype.K$a = function (a, b, c, h, d, k) {
+ var f40;
+ f40 = 2;
+ for (; f40 !== 4; ) {
+ switch (f40) {
+ case 2:
+ var R9P = "no";
+ R9P += "tifyStreamin";
+ R9P += "gError: ";
+ var j9P = "er";
+ j9P += "ro";
+ j9P += "r";
+ a = {
+ type: j9P,
+ error: a,
+ errormsg: b,
+ networkErrorCode: c,
+ httpCode: h,
+ nativeCode: d,
+ manifestIndex: k
+ };
+ this.u.error(R9P + JSON.stringify(a));
+ p.Ka(this.Ma, a.type, a);
+ f40 = 4;
+ break;
+ }
+ }
+ };
+ X30 = 7;
+ break;
+ case 2:
+ a.prototype.zk = function (a) {
+ var Z30;
+ Z30 = 2;
+ for (; Z30 !== 5; ) {
+ switch (Z30) {
+ case 2:
+ var c9P = "st";
+ c9P += "artE";
+ c9P += "v";
+ c9P += "e";
+ c9P += "nt";
+ a = {
+ type: c9P,
+ event: a,
+ time: h.time.ea()
+ };
+ p.Ka(this.Ma, a.type, a);
+ Z30 = 5;
+ break;
+ }
+ }
+ };
+ a.prototype.B$a = function () {
+ var a40,
+ a;
+ a40 = 2;
+ for (; a40 !== 5; ) {
+ switch (a40) {
+ case 3:
+ a = {
+ type: ""
+ };
+ a40 = 2;
+ break;
+ a40 = 1;
+ break;
+ case 2:
+ var V9P = "o";
+ V9P += "pen";
+ V9P += "Complet";
+ V9P += "e";
+ a = {
+ type: V9P
+ };
+ a40 = 1;
+ break;
+ case 1:
+ p.Ka(this.Ma, a.type, a);
+ a40 = 5;
+ break;
+ }
+ }
+ };
+ a.prototype.C$a = function (a, b, c, h, d) {
+ var b40;
+ b40 = 2;
+ for (; b40 !== 1; ) {
+ switch (b40) {
+ case 2:
+ var x9P = "pts";
+ x9P += "St";
+ x9P += "arts";
+ this.Ma.K.Dlb || (a = {
+ type: x9P,
+ manifestIndex: a,
+ mediaType: b,
+ movieId: h,
+ streamId: c,
+ ptsStarts: d.CWa()
+ }, p.Ka(this.Ma, a.type, a));
+ b40 = 1;
+ break;
+ }
+ }
+ };
+ a.prototype.t$a = function (a, b) {
+ var c40;
+ c40 = 2;
+ for (; c40 !== 5; ) {
+ switch (c40) {
+ case 2:
+ var t9P = "hea";
+ t9P += "der";
+ t9P += "Cac";
+ t9P += "h";
+ t9P += "eHit";
+ a = {
+ type: t9P,
+ movieId: a,
+ streamId: b
+ };
+ p.Ka(this.Ma, a.type, a);
+ c40 = 5;
+ break;
+ }
+ }
+ };
+ X30 = 3;
+ break;
+ }
+ }
+ function a(a, b) {
+ var Y30;
+ Y30 = 2;
+ for (; Y30 !== 4; ) {
+ switch (Y30) {
+ case 2:
+ var X9P = "1SIYbZrN";
+ X9P += "J";
+ X9P += "Cp9";
+ this.Ma = a;
+ this.u = b;
+ X9P;
+ Y30 = 4;
+ break;
+ }
+ }
+ }
+ })();
+ b.Wwa = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ g;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.zva = void 0;
+ c = a(166);
+ k = a(16);
+ l = a(16);
+ g = a(11);
+ d = (function () {
+ var O40;
+ O40 = 2;
+ function a(a, b, c, h) {
+ var P40;
+ P40 = 2;
+ for (; P40 !== 8; ) {
+ switch (P40) {
+ case 2:
+ var o9P = "1SIYb";
+ o9P += "Zr";
+ o9P += "NJ";
+ o9P += "Cp9";
+ this.tb = a;
+ this.u = b;
+ this.nb = c;
+ this.Px = h;
+ this.fDa = this.pba = !1;
+ o9P;
+ P40 = 8;
+ break;
+ }
+ }
+ }
+ for (; O40 !== 6; ) {
+ switch (O40) {
+ case 7:
+ return a;
+ break;
+ case 2:
+ a.prototype.play = function () {
+ var Q40,
+ a;
+ Q40 = 2;
+ for (; Q40 !== 5; ) {
+ switch (Q40) {
+ case 2:
+ var Z9P = "p";
+ Z9P += "l";
+ Z9P += "a";
+ Z9P += "y";
+ var s9P = "play ";
+ s9P += "called after pi";
+ s9P += "pelines alrea";
+ s9P += "dy shutdown";
+ a = this;
+ this.rl() ? this.u.warn(s9P) : (this.tb.Y.ke(k.pa.Sc), this.tb.abb(), this.tb.$a.Ue.forEach(function (b) {
+ var R40;
+ R40 = 2;
+ for (; R40 !== 1; ) {
+ switch (R40) {
+ case 2:
+ var M9P = "play: not resu";
+ M9P += "ming bufferManager, audio track sw";
+ M9P += "itch in progress";
+ a.nb(b.L) && (b.jK ? b.ib(M9P) : (a.tb.Ff[b.L].resume(), a.tb.as[b.L].resume()));
+ R40 = 1;
+ break;
+ }
+ }
+ }), this.tb.JM(), this.tb.emit(Z9P));
+ Q40 = 5;
+ break;
+ }
+ }
+ };
+ a.prototype.stop = function () {
+ var S40,
+ h,
+ a,
+ b,
+ c;
+ S40 = 2;
+ for (; S40 !== 6; ) {
+ switch (S40) {
+ case 5:
+ this.tb.BV();
+ b || c || this.tb.sa.Xk.O3(!1, this.tb.Y);
+ h = this.tb.sa.Xb;
+ S40 = 9;
+ break;
+ case 9:
+ var m9P = "s";
+ m9P += "to";
+ m9P += "p";
+ l.We.forEach(function (a) {
+ var T40;
+ T40 = 2;
+ for (; T40 !== 5; ) {
+ switch (T40) {
+ case 2:
+ T40 = (a = h.Nc(a)) ? 1 : 5;
+ break;
+ case 3:
+ T40 = (a = h.Nc(a)) ? 8 : 4;
+ break;
+ T40 = (a = h.Nc(a)) ? 1 : 5;
+ break;
+ case 9:
+ a.Pg = ~5;
+ T40 = 6;
+ break;
+ T40 = 5;
+ break;
+ case 1:
+ a.Pg = !1;
+ T40 = 5;
+ break;
+ }
+ }
+ });
+ l.We.forEach(function (b) {
+ var U40;
+ U40 = 2;
+ for (; U40 !== 1; ) {
+ switch (U40) {
+ case 2:
+ (b = a.tb.Ff[b]) && b.pause();
+ U40 = 1;
+ break;
+ }
+ }
+ });
+ this.tb.emit(m9P);
+ S40 = 6;
+ break;
+ case 2:
+ (a = this, b = this.tb.Y.uOa(), c = this.tb.Y.Hg());
+ this.tb.Y.ke(k.pa.eF);
+ S40 = 5;
+ break;
+ }
+ }
+ };
+ a.prototype.suspend = function () {
+ var V40;
+ V40 = 2;
+ for (; V40 !== 1; ) {
+ switch (V40) {
+ case 2:
+ this.pba = !0;
+ V40 = 1;
+ break;
+ }
+ }
+ };
+ a.prototype.resume = function () {
+ var W40;
+ W40 = 2;
+ for (; W40 !== 5; ) {
+ switch (W40) {
+ case 2:
+ this.pba = !1;
+ this.tb.pf.Bi();
+ W40 = 5;
+ break;
+ }
+ }
+ };
+ a.prototype.close = function () {
+ var X40,
+ a;
+ X40 = 2;
+ for (; X40 !== 6; ) {
+ switch (X40) {
+ case 4:
+ var l9P = "e";
+ l9P += "nd";
+ l9P += "p";
+ l9P += "l";
+ l9P += "ay";
+ var Y9P = "l";
+ Y9P += "o";
+ Y9P += "gda";
+ Y9P += "t";
+ Y9P += "a";
+ var N9P = "c";
+ N9P += "los";
+ N9P += "e";
+ this.tb.emit(N9P);
+ a.eJa && (a = c.Vt.Lf().qb()) && (a = {
+ type: Y9P,
+ target: l9P,
+ fields: {
+ bridgestat: a
+ }
+ }, g.Ka(this.tb, a.type, a));
+ this.tb.Fb.af && this.tb.Fb.af.VM(!0, this.tb.ql.sessionId, !0);
+ X40 = 8;
+ break;
+ case 8:
+ this.tb.Va.sRa();
+ this.tb.sUa();
+ X40 = 6;
+ break;
+ case 2:
+ a = this.tb.K;
+ this.fDa = !0;
+ this.stop();
+ X40 = 4;
+ break;
+ }
+ }
+ };
+ a.prototype.flush = function () {
+ var Y40,
+ a,
+ b,
+ c,
+ h,
+ d,
+ l,
+ r,
+ Z40;
+ Y40 = 2;
+ for (; Y40 !== 17; ) {
+ switch (Y40) {
+ case 2:
+ (b = this.tb.K, c = this.tb.Fb.zb);
+ Y40 = 1;
+ break;
+ case 1:
+ Y40 = c ? 5 : 20;
+ break;
+ case 5:
+ (h = {}, d = c.get(), l = {});
+ d && d.avtp && d.avtp.Ca && (h.avtp = d.avtp.Ca, h.dltm = d.avtp.GY, l.avtp = h.avtp);
+ d && d.cdnavtp && (h.cdnavtp = d.cdnavtp, h.activecdnavtp = d.activecdnavtp);
+ c.flush();
+ (r = c.iLa(), c = c.kEa);
+ Y40 = 7;
+ break;
+ case 6:
+ for (var n in r) {
+ var g9P = "n";
+ g9P += "e";
+ var I9P = "n";
+ I9P += "e";
+ var d9P = "n";
+ d9P += "e";
+ r.hasOwnProperty(n) && (h[d9P + n] = Number(r[n]).toFixed(6), l[I9P + n] = 1 * h[g9P + n]);
+ }
+ Y40 = 14;
+ break;
+ case 10:
+ var h9P = "endpl";
+ h9P += "a";
+ h9P += "y";
+ var Q9P = "l";
+ Q9P += "og";
+ Q9P += "da";
+ Q9P += "t";
+ Q9P += "a";
+ var v9P = "throughpu";
+ v9P += "t";
+ v9P += "-sw";
+ var e9P = "throu";
+ e9P += "ghp";
+ e9P += "ut";
+ e9P += "-sw";
+ var W9P = "thr";
+ W9P += "ough";
+ W9P += "p";
+ W9P += "ut-";
+ W9P += "sw";
+ var i9P = "throu";
+ i9P += "ghput-";
+ i9P += "s";
+ i9P += "w";
+ b.sO && (d && d[i9P] && d[W9P].Ca && this.tb.Kp.ncb({
+ avtp: d[e9P].Ca,
+ variance: d[v9P].Qh
+ }), this.tb.Kp.gcb(l, null === (a = d.avtp) || void 0 === a ? void 0 : a.GY), a = this.tb.Kp.fqb(), b = this.tb.Kp.msb(), a && (a.n = b, a = {
+ type: Q9P,
+ target: h9P,
+ fields: {
+ ibef: a
+ }
+ }, g.Ka(this.tb, a.type, a), this.tb.Kp.save()));
+ Y40 = 20;
+ break;
+ case 14:
+ var q9P = "e";
+ q9P += "ndpla";
+ q9P += "y";
+ var O9P = "l";
+ O9P += "o";
+ O9P += "gdat";
+ O9P += "a";
+ c && c.length && (h.activeRequests = JSON.stringify(c));
+ this.tb.Qd.O.$Ia(1) && (h.enableHudson = !0);
+ h.aseApiVersion = this.tb.nX;
+ Object.keys(h).length && (h = {
+ type: O9P,
+ target: q9P,
+ fields: h
+ }, g.Ka(this.tb, h.type, h));
+ Y40 = 10;
+ break;
+ case 7:
+ Y40 = r ? 6 : 14;
+ break;
+ case 20:
+ this.tb.Va.XCa();
+ Y40 = 19;
+ break;
+ case 19:
+ Y40 = this.Px.fp ? 18 : 17;
+ break;
+ case 18:
+ try {
+ Z40 = 2;
+ for (; Z40 !== 1; ) {
+ switch (Z40) {
+ case 2:
+ this.tb.aZ(k.pa.eF);
+ Z40 = 1;
+ break;
+ }
+ }
+ } catch (M) {
+ var z9P = "Hindsight:";
+ z9P += " Error evaluating QoE at stoppin";
+ z9P += "g: ";
+ a000.s4P(3);
+ this.tb.Va.Mm(a000.X4P(M, z9P));
+ }
+ Y40 = 17;
+ break;
+ }
+ }
+ };
+ a.prototype.rl = function () {
+ var a50;
+ a50 = 2;
+ for (; a50 !== 1; ) {
+ switch (a50) {
+ case 4:
+ return this.fDa && this.tb.sa.Ji;
+ break;
+ a50 = 1;
+ break;
+ case 2:
+ return this.fDa || this.tb.sa.Ji;
+ break;
+ }
+ }
+ };
+ O40 = 7;
+ break;
+ }
+ }
+ })();
+ b.zva = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.dta = void 0;
+ c = a(8);
+ k = a(16);
+ l = a(4);
+ d = (function () {
+ var b50;
+ b50 = 2;
+ for (; b50 !== 18; ) {
+ switch (b50) {
+ case 2:
+ a.prototype.BV = function () {
+ var d50;
+ d50 = 2;
+ for (; d50 !== 1; ) {
+ switch (d50) {
+ case 2:
+ this.UA && (clearTimeout(this.UA), this.UA = void 0);
+ d50 = 1;
+ break;
+ }
+ }
+ };
+ a.prototype.WBa = function () {
+ var e50,
+ a,
+ b,
+ c,
+ f;
+ e50 = 2;
+ for (; e50 !== 6; ) {
+ switch (e50) {
+ case 2:
+ e50 = !this.Ba.op.pba && !this.Ba.rl() ? 1 : 6;
+ break;
+ case 1:
+ var E9P = "first";
+ E9P += "D";
+ E9P += "riveS";
+ E9P += "tream";
+ E9P += "ing";
+ void 0 === this.Ba.E8a && (this.Ba.E8a = !0, this.Ba.Va.zk(E9P));
+ (a = this.Ba.sa, b = a.Xb.Nc(0), c = a.Xb.Nc(1), f = !c || c.Pg);
+ (!b || b.Pg) && f && this.Ba.MF && a.Fgb(c ? c.Qb : b.Qb);
+ c = !c || c.gn;
+ b && !b.gn || !c || this.Ba.MF || (this.Ba.Fb.af && this.Ba.Fb.af.VM(!0, this.Ba.ql.sessionId), this.Ba.Va.sRa());
+ this.UBa(a.Xb);
+ this.rbb();
+ e50 = 6;
+ break;
+ }
+ }
+ };
+ a.prototype.RDa = function () {
+ var f50;
+ f50 = 2;
+ for (; f50 !== 1; ) {
+ switch (f50) {
+ case 2:
+ return this.Ba.rl() || this.Ba.Y.uOa() || this.Ba.Y.Hg() ? !0 : !1;
+ break;
+ }
+ }
+ };
+ b50 = 4;
+ break;
+ case 10:
+ a.prototype.Wfb = function (a) {
+ var A50,
+ b,
+ h,
+ f;
+ A50 = 2;
+ for (; A50 !== 4; ) {
+ switch (A50) {
+ case 2:
+ (b = this, h = this.Ba.sa, f = !0);
+ c.ee(a.aa.Sj, function (c, d) {
+ var B50,
+ k;
+ B50 = 2;
+ for (; B50 !== 7; ) {
+ switch (B50) {
+ case 1:
+ d = c.O;
+ c = d.qg[0];
+ k = d.qg[1];
+ B50 = 3;
+ break;
+ case 2:
+ B50 = (c = h.Gh(d)) ? 1 : 8;
+ break;
+ case 8:
+ var U9P = "i";
+ U9P += "n";
+ U9P += " ";
+ U9P += "d";
+ U9P += "ests:";
+ var P9P = "inva";
+ P9P += "l";
+ P9P += "id s";
+ P9P += "egment:";
+ a.ib(P9P, d, U9P, a.aa.Sj);
+ B50 = 7;
+ break;
+ case 3:
+ c && k && c.stream.ge && k.stream.ge || (f = !1);
+ b.Ba.Y.Ov(d) || (f = !1);
+ B50 = 7;
+ break;
+ }
+ }
+ });
+ return f;
+ break;
+ }
+ }
+ };
+ a.prototype.rbb = function () {
+ var C50,
+ a,
+ b,
+ c;
+ C50 = 2;
+ for (; C50 !== 5; ) {
+ switch (C50) {
+ case 2:
+ (a = this.Ba.K, b = this.Ba.sa, c = b.Xb);
+ this.Ba.Y.Ih() || b.us(c, 1) < a.$P || c.O.Opa();
+ C50 = 5;
+ break;
+ }
+ }
+ };
+ return a;
+ break;
+ case 14:
+ a.prototype.rNb = function (a, b, d) {
+ var v50;
+ v50 = 2;
+ for (; v50 !== 4; ) {
+ switch (v50) {
+ case 2:
+ b.B0 = a.Ac;
+ c.na(d.gp) || (d.oNb(a.Ip, a.Kv || -1, a.R, a.tR), c.X(a.tR) || this.Ba.Ef.PVa(a.tR, a.Kk, a.Lk));
+ a.url && (b.Bja = a.url);
+ v50 = 4;
+ break;
+ }
+ }
+ };
+ a.prototype.k8a = function (a, b) {
+ var w50,
+ c;
+ w50 = 2;
+ for (; w50 !== 5; ) {
+ switch (w50) {
+ case 2:
+ c = this.Ba.$a.Ys[a.L];
+ return this.Ba.iDa && b.Ac && c.B0 && b.Ac !== c.B0 && (0 < a.Ja.qw || 0 < a.Ja.Rt) ? !0 : !1;
+ break;
+ }
+ }
+ };
+ a.prototype.l8a = function (a, b) {
+ var x50,
+ t,
+ h,
+ f,
+ d,
+ g,
+ p,
+ r,
+ n,
+ q,
+ H;
+ x50 = 2;
+ for (; x50 !== 32; ) {
+ switch (x50) {
+ case 33:
+ return f.TY && a.Ja.qw >= f.qka || !g && 0 < f.Ws && 1 === d && r > f.Ws || 0 < f.Vs && !g && r + (b ? t : 0) > f.Vs || void 0 !== this.xBa && n > this.xBa || 1 === d && h.Ie.Kf && n > f.nka && (b = this.Ba.Fb.zb.get(), b.Dd && b.Ia && b.Ia.Ca * a.IG > f.mka) ? !1 : !0;
+ break;
+ case 3:
+ return !1;
+ break;
+ case 25:
+ return !1;
+ break;
+ case 35:
+ x50 = (p = 1, a.Mca < f.cw && (p = f.cw), a.Ja.qw >= p) ? 34 : 33;
+ break;
+ case 6:
+ h = this.Ba.Qd.O;
+ x50 = 14;
+ break;
+ case 7:
+ return !1;
+ break;
+ case 4:
+ x50 = (null === (h = a.Lg) || void 0 === h ? 0 : h.Etb()) ? 3 : 9;
+ break;
+ case 13:
+ x50 = r === k.pa.Sc && n > f.uyb && !h.Ie.Kf && !t || n && p > Math.max(n * f.rka / 100, f.Qka) ? 12 : 11;
+ break;
+ case 19:
+ x50 = this.Ba.Fb.fja ? 18 : 17;
+ break;
+ case 20:
+ x50 = b && (t = this.Ba.sa.LB(g, b.L), H = a.Ub - H, this.nb(b.L) && !b.Pg && H >= f.uka && q > f.Li) ? 19 : 26;
+ break;
+ case 18:
+ return !1;
+ break;
+ case 14:
+ t = this.Ba.Y.Ov(h);
+ x50 = 13;
+ break;
+ case 27:
+ return !1;
+ break;
+ case 34:
+ return !1;
+ break;
+ case 9:
+ p = a.Ja.Pla;
+ x50 = 8;
+ break;
+ case 12:
+ return !1;
+ break;
+ case 8:
+ x50 = p >= f.bz ? 7 : 6;
+ break;
+ case 26:
+ x50 = this.k9a(d) >= f.TC ? 25 : 24;
+ break;
+ case 24:
+ q = this.Ba.sa.iMb();
+ x50 = 23;
+ break;
+ case 22:
+ return !1;
+ break;
+ case 11:
+ r = this.Ba.sa.LB(g, d);
+ t = 0;
+ x50 = 20;
+ break;
+ case 21:
+ x50 = (g = this.Ba.Y.Ih()) ? 35 : 33;
+ break;
+ case 23:
+ x50 = !c.X(f.Us) && q >= f.Us || a.IG + p >= Math.max(f.Wq, this.Ba.Fb.Fz + f.rla * g.O.xyb[d]) ? 22 : 21;
+ break;
+ case 15:
+ x50 = void 0 === q || q < f.tyb ? 27 : 26;
+ break;
+ case 2:
+ var p9P = "floore";
+ p9P += "d t";
+ p9P += "o";
+ p9P += " ";
+ p9P += "0";
+ var C9P = "negative ";
+ C9P += "scheduledBufferL";
+ C9P += "e";
+ C9P += "vel:";
+ (f = this.Ba.K, d = a.L, g = a.G0, p = this.Ba.Y.Sd(), r = this.Ba.Y.Wc(), n = this.Ba.sa.us(g, d), q = a.Ub + g.pe - p);
+ 0 > q && (a.ib(C9P, q, p9P), q = 0);
+ H = b ? b.Ub : 0;
+ x50 = 4;
+ break;
+ case 17:
+ q = void 0;
+ b && (q = b.L, H = l.Ik()[q], q = f.KNb ? this.Ba.sa.DPa(g, q).ki / H : t / H);
+ x50 = 15;
+ break;
+ }
+ }
+ };
+ a.prototype.k9a = function (a) {
+ var y50;
+ y50 = 2;
+ for (; y50 !== 1; ) {
+ switch (y50) {
+ case 2:
+ return this.Ba.sa.xc.reduce(function (b, c) {
+ var z50;
+ z50 = 2;
+ for (; z50 !== 1; ) {
+ switch (z50) {
+ case 4:
+ return b - c.Yrb(a);
+ break;
+ z50 = 1;
+ break;
+ case 2:
+ return b + c.Yrb(a);
+ break;
+ }
+ }
+ }, 0);
+ break;
+ }
+ }
+ };
+ b50 = 10;
+ break;
+ case 4:
+ a.prototype.EV = function (a) {
+ var g50;
+ g50 = 2;
+ for (; g50 !== 1; ) {
+ switch (g50) {
+ case 2:
+ return this.RDa() || this.Ba.$a.Ue[a.L].jK || this.Ba.wx.$x ? !1 : !0;
+ break;
+ }
+ }
+ };
+ a.prototype.Bi = function () {
+ var h50,
+ a,
+ b;
+ h50 = 2;
+ for (; h50 !== 5; ) {
+ switch (h50) {
+ case 2:
+ (a = this, b = this.Ba.K);
+ !this.Ba.iDa || this.Ba.BW || this.Ba.OW || (this.Ba.BW = setTimeout(function () {
+ var i50;
+ i50 = 2;
+ for (; i50 !== 4; ) {
+ switch (i50) {
+ case 5:
+ a.WBa();
+ i50 = 4;
+ break;
+ case 2:
+ clearTimeout(a.Ba.BW);
+ a.Ba.BW = void 0;
+ i50 = 5;
+ break;
+ }
+ }
+ }, b.Zla), b.gH && this.Ba.il && (this.UA || (this.UA = setTimeout(function () {
+ var j50,
+ b;
+ j50 = 2;
+ for (; j50 !== 3; ) {
+ switch (j50) {
+ case 5:
+ b = a.Ba.sa.Xb.Nc(1);
+ b && a.jBa(b);
+ j50 = 3;
+ break;
+ case 2:
+ clearTimeout(a.UA);
+ a.UA = void 0;
+ j50 = 5;
+ break;
+ }
+ }
+ }, b.Wbb))));
+ h50 = 5;
+ break;
+ }
+ }
+ };
+ a.prototype.jBa = function (a, b) {
+ var k50,
+ d,
+ c,
+ f,
+ h;
+ k50 = 2;
+ for (; k50 !== 3; ) {
+ switch (k50) {
+ case 1:
+ k50 = f && h ? 5 : 3;
+ break;
+ case 5:
+ d = this.Ba.$a.Ue[c].al;
+ d && (this.Ba.Y.Ih() || this.Ba.Ef.Vbb(c, d, f.R, h.R, a.Ttb.R, b));
+ k50 = 3;
+ break;
+ case 2:
+ (c = a.L, f = this.Ba.$a.Ys[c].KC, h = a.ag.zP);
+ k50 = 1;
+ break;
+ }
+ }
+ };
+ a.prototype.UBa = function (a, b) {
+ var l50,
+ c,
+ f,
+ h,
+ d,
+ k;
+ l50 = 2;
+ for (; l50 !== 7; ) {
+ switch (l50) {
+ case 2:
+ (c = a.aa, f = a.Nc(1), h = a.Nc(0), d = !h || h.Pg, k = !f || f.Pg);
+ c.CI || this.Ba.sa.jla(a, c, a.O.Ie.Kf && 0 === a.O.Za);
+ l50 = 5;
+ break;
+ case 5:
+ l50 = !k || !d ? 4 : 9;
+ break;
+ case 3:
+ return;
+ break;
+ case 4:
+ l50 = (this.Ba.il && this.VBa(a, f, h), this.Ba.Ro && this.VBa(a, h, f), d = !h || h.Pg, k = !f || f.Pg, !k || !d) ? 3 : 9;
+ break;
+ case 9:
+ var S9P = "Still in buf";
+ S9P += "fering state while pipeline's are";
+ S9P += " done";
+ this.Ba.Y.Ih() && (this.u.warn(S9P), this.Ba.$a.ru());
+ b || c.or || a.O.Ie.Kf || !this.Wfb(a) || ((b = this.Ba.Y.Ih()) && this.Ba.K.sea && (this.Ba.jba(), b = !1), a.xZ || this.Ba.sa.Xtb(a, b), a.wG(), a.Xfb() && (b = Object.keys(a.children), this.Ba.K.OY && 1 === b.length && !a.children[b[0]].active && this.Ba.sa.BPa(a, b[0]), this.H8a(a, c)));
+ l50 = 7;
+ break;
+ }
+ }
+ };
+ a.prototype.H8a = function (a, b) {
+ var m50,
+ p,
+ g,
+ r,
+ n,
+ h,
+ f,
+ d,
+ k;
+ m50 = 2;
+ for (; m50 !== 25; ) {
+ switch (m50) {
+ case 16:
+ a.T$ = h.Sl;
+ m50 = 15;
+ break;
+ case 19:
+ h = g[0].Gc;
+ f = g[0].weight;
+ a.qF = h;
+ m50 = 16;
+ break;
+ case 20:
+ return;
+ break;
+ case 9:
+ (p = [], g = []);
+ c.ee(a.children, function (a, c) {
+ var n50;
+ n50 = 2;
+ for (; n50 !== 5; ) {
+ switch (n50) {
+ case 2:
+ c = b.Sj[c].weight;
+ 0 !== c && (c = {
+ weight: c,
+ Gc: a
+ }, a.ida(!0, !0) || g.push(c), p.push(c));
+ n50 = 5;
+ break;
+ }
+ }
+ });
+ 0 === g.length ? g = p : 2 < g.length && (g.sort(function (a, b) {
+ var o50;
+ o50 = 2;
+ for (; o50 !== 1; ) {
+ switch (o50) {
+ case 4:
+ return b.weight / a.weight;
+ break;
+ o50 = 1;
+ break;
+ case 2:
+ return b.weight - a.weight;
+ break;
+ }
+ }
+ }), g.length = 2);
+ m50 = 6;
+ break;
+ case 6:
+ m50 = 1 < g.length ? 14 : 11;
+ break;
+ case 14:
+ h = g.reduce(function (a, b) {
+ var q50;
+ q50 = 2;
+ for (; q50 !== 4; ) {
+ switch (q50) {
+ case 2:
+ b.Sl = b.Gc.Sl;
+ b.sQa = Math.min(b.Sl[0], b.Sl[1]);
+ return [a[0] + b.weight, a[1] + b.sQa];
+ break;
+ }
+ }
+ }, [0, 0]);
+ (r = h[0], n = h[1]);
+ m50 = 12;
+ break;
+ case 10:
+ var L9P = "No subbr";
+ L9P += "anch candidates t";
+ L9P += "o dr";
+ L9P += "ive";
+ this.u.warn(L9P);
+ m50 = 20;
+ break;
+ case 1:
+ m50 = this.Ba.Fb.oia && a.qF && a.T$ ? 5 : 3;
+ break;
+ case 2:
+ d = this.Ba.K;
+ m50 = 1;
+ break;
+ case 11:
+ m50 = 0 === g.length ? 10 : 19;
+ break;
+ case 12:
+ 0 !== r && 0 !== n ? (c.ee(g, function (a) {
+ var r50;
+ r50 = 2;
+ for (; r50 !== 4; ) {
+ switch (r50) {
+ case 2:
+ a.MOb = a.weight / r;
+ a.Web = a.sQa / n;
+ r50 = 5;
+ break;
+ case 5:
+ a.PYa = a.Web - a.MOb;
+ r50 = 4;
+ break;
+ }
+ }
+ }), g.sort(function (a, b) {
+ var s50;
+ s50 = 2;
+ for (; s50 !== 1; ) {
+ switch (s50) {
+ case 2:
+ return a.PYa - b.PYa;
+ break;
+ }
+ }
+ })) : g.sort(function (a, b) {
+ var t50;
+ t50 = 2;
+ for (; t50 !== 4; ) {
+ switch (t50) {
+ case 2:
+ a = Math.min.apply(null, a.Gc.Sl);
+ b = Math.min.apply(null, b.Gc.Sl);
+ a000.s4P(4);
+ return a000.t4P(a, b);
+ break;
+ }
+ }
+ });
+ m50 = 11;
+ break;
+ case 15:
+ h.zd || (h.zd = {
+ W_: l.time.ea(),
+ yz: 0
+ });
+ h.zd.weight = f;
+ this.UBa(h, !0);
+ m50 = 25;
+ break;
+ case 3:
+ m50 = !h ? 9 : 15;
+ break;
+ case 4:
+ Math.min(k[0] - a.T$[0], k[1] - a.T$[1]) >= d.jgb ? a.qF = void 0 : (h = a.qF, f = b.Sj[h.aa.id].weight);
+ m50 = 3;
+ break;
+ case 5:
+ k = a.qF.Sl;
+ m50 = 4;
+ break;
+ }
+ }
+ };
+ a.prototype.VBa = function (a, b, d) {
+ var u50,
+ f,
+ h,
+ g,
+ k,
+ m,
+ p;
+ u50 = 2;
+ for (; u50 !== 8; ) {
+ switch (u50) {
+ case 4:
+ u50 = k.al && (void 0 === b.mD || (b.QD(b.mD), void 0 === b.mD)) ? 3 : 8;
+ break;
+ case 1:
+ u50 = !b.Pg ? 5 : 8;
+ break;
+ case 2:
+ (f = this.Ba.K, h = b.L);
+ u50 = 1;
+ break;
+ case 3:
+ var D9P = "Sti";
+ D9P += "ll in buffering state while pipeline does not ha";
+ D9P += "ve vacancy";
+ var w9P = "drivePipeline, delaying audio";
+ w9P += " until video actualS";
+ w9P += "tartPts determi";
+ w9P += "ne";
+ w9P += "d";
+ g = this.Ba.Qd;
+ c.X(g.dD) || (f.zt && 0 === h && c.X(this.Ba.$a.Ue[1].mm) ? b.ib(w9P) : (c.X(b.Pk) && (b.Pk = b.kg ? b.kg.index : b.Ofa(b.Ub)), b.rg && b.Pk > b.rg.index ? a.O.Ie.Kf && c.X(g.oa) && c.X(a.Qb) || (b.Pg || this.Ba.JDa(b), a = this.Ba.Qd.O.Za, a < this.Ba.CH() - 1 && this.Ba.WW(a + 1)) : this.EV(b) && (f.Omb && !this.Ba.Y.Ih() && 0 >= b.UC ? b.dNb(f.Wyb) : this.l8a(b, d) ? (b.Gwb = l.time.ea(), d = this.Ba.$a.Aha(b), d = d.ug, c.X(d) || (d = b.track.Qc[d], this.k8a(b, d) || ((f = d.$Z()) ? (b.ywb = d.R, b.$xb(d, f, this.Ba.Y.Ih(), k.al), this.rNb(d, p, m), a.zd && ++a.zd.yz) : d.gE()))) : this.Ba.Y.Ih() && (b.Kj(D9P), this.Ba.$a.ru()))));
+ u50 = 8;
+ break;
+ case 5:
+ (k = this.Ba.$a.Ue[h], m = this.Ba.$a.Fw[h], p = this.Ba.$a.Ys[h]);
+ u50 = 4;
+ break;
+ }
+ }
+ };
+ b50 = 14;
+ break;
+ }
+ }
+ function a(a, b, c) {
+ var c50;
+ c50 = 2;
+ for (; c50 !== 9; ) {
+ switch (c50) {
+ case 2:
+ var K9P = "1S";
+ K9P += "IYbZ";
+ K9P += "rNJCp9";
+ this.Ba = a;
+ this.u = b;
+ this.nb = c;
+ K9P;
+ this.xBa = this.UA = void 0;
+ c50 = 9;
+ break;
+ }
+ }
+ }
+ })();
+ b.dta = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ g,
+ h,
+ p;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Dza = void 0;
+ c = a(8);
+ k = a(16);
+ l = a(16);
+ g = a(4);
+ h = a(380);
+ p = a(374);
+ d = (function () {
+ function a(a, b, c, h) {
+ var E50;
+ E50 = 2;
+ for (; E50 !== 9; ) {
+ switch (E50) {
+ case 3:
+ var r1P = "1SIYb";
+ r1P += "Z";
+ r1P += "rNJCp";
+ r1P += "9";
+ r1P;
+ E50 = 9;
+ break;
+ case 2:
+ this.Ea = a;
+ this.u = b;
+ this.nb = c;
+ this.Wg = h;
+ E50 = 3;
+ break;
+ }
+ }
+ }
+ var D50;
+ D50 = 2;
+ for (; D50 !== 13; ) {
+ switch (D50) {
+ case 4:
+ a.prototype.E9a = function (a) {
+ var L50;
+ L50 = 2;
+ for (; L50 !== 1; ) {
+ switch (L50) {
+ case 2:
+ return !!this.Ea.ng(a).XM;
+ break;
+ }
+ }
+ };
+ a.prototype.OM = function (a) {
+ var M50,
+ b;
+ M50 = 2;
+ for (; M50 !== 4; ) {
+ switch (M50) {
+ case 2:
+ b = this;
+ a = this.Ea.ng(a);
+ a.XM || (a.XM = !0, l.We.forEach(function (a) {
+ var N50;
+ N50 = 2;
+ for (; N50 !== 1; ) {
+ switch (N50) {
+ case 2:
+ b.Ea.Ff[a].resume();
+ N50 = 1;
+ break;
+ }
+ }
+ }), this.Ea.BM());
+ M50 = 4;
+ break;
+ }
+ }
+ };
+ a.prototype.oab = function (a, b) {
+ var O50,
+ c,
+ f,
+ h;
+ O50 = 2;
+ for (; O50 !== 8; ) {
+ switch (O50) {
+ case 2:
+ (c = this, h = a.L);
+ a.QD(b);
+ a.QGb();
+ O50 = 4;
+ break;
+ case 4:
+ O50 = (null === (f = this.Ea.Ug) || void 0 === f ? 0 : f.zC()) ? 3 : 9;
+ break;
+ case 3:
+ (this.Ea.Ug.vj.forEach(function (a) {
+ var P50;
+ P50 = 2;
+ for (; P50 !== 1; ) {
+ switch (P50) {
+ case 2:
+ c.Ea.sB(a, !1);
+ P50 = 1;
+ break;
+ }
+ }
+ }), this.Ea.Ug = void 0);
+ O50 = 9;
+ break;
+ case 9:
+ this.Ea.lO.zDa(h, a.Gc.O);
+ O50 = 8;
+ break;
+ }
+ }
+ };
+ a.prototype.iaa = function () {
+ var Q50,
+ a,
+ b;
+ Q50 = 2;
+ for (; Q50 !== 4; ) {
+ switch (Q50) {
+ case 9:
+ Q50 = this.Mx ? 0 : 2;
+ break;
+ Q50 = this.Mx ? 1 : 4;
+ break;
+ case 2:
+ Q50 = this.Mx ? 1 : 4;
+ break;
+ case 1:
+ (a = this.Mx.Gi, b = this.Mx.Za);
+ this.Ea.ng(b) && (this.Mx = void 0, this.Dz(a, b));
+ Q50 = 4;
+ break;
+ }
+ }
+ };
+ D50 = 7;
+ break;
+ case 7:
+ a.prototype.Vl = function (a) {
+ var R50,
+ c,
+ f,
+ d;
+ R50 = 2;
+ for (; R50 !== 6; ) {
+ switch (R50) {
+ case 3:
+ this.Ea.sa.Xk.Vl(a);
+ l.We.forEach(function (a) {
+ var T50,
+ f;
+ T50 = 2;
+ for (; T50 !== 9; ) {
+ switch (T50) {
+ case 2:
+ T50 = c.nb(a) ? 1 : 9;
+ break;
+ case 3:
+ b(c.Ea.sa.Xb, a);
+ T50 = 9;
+ break;
+ case 1:
+ var u1P = "skip: not resuming buffe";
+ u1P += "rManager, a";
+ u1P += "udio track switch in progress";
+ f = c.Ea.$a.Ue[a];
+ c.Ea.fp && (f.Ooa = g.time.ea());
+ d.dJ ? c.Ea.Ff[a].reset() : f.jK ? f.ib(u1P) : c.Ea.Ff[a].resume();
+ T50 = 3;
+ break;
+ case 7:
+ T50 = c.nb(a) ? 2 : 1;
+ break;
+ T50 = c.nb(a) ? 1 : 9;
+ break;
+ }
+ }
+ });
+ this.FCa = f = new h.b$(this.Ea.VD());
+ return f.xla(function () {
+ var U50;
+ U50 = 2;
+ for (; U50 !== 5; ) {
+ switch (U50) {
+ case 2:
+ c.Ea.Y.ke(k.pa.Sc);
+ c.Ea.JM();
+ U50 = 5;
+ break;
+ }
+ }
+ }).RUa;
+ break;
+ case 2:
+ c = this;
+ null === (f = this.FCa) || void 0 === f ? void 0 : f.cancel();
+ d = this.Ea.K;
+ this.Ea.Woa();
+ R50 = 3;
+ break;
+ }
+ }
+ function b(f, h) {
+ var S50;
+ S50 = 2;
+ for (; S50 !== 4; ) {
+ switch (S50) {
+ case 5:
+ (f.Vl(a), d.dJ && (f.gn = !1));
+ S50 = 4;
+ break;
+ case 2:
+ var n1P = "skip: unexpected beh";
+ n1P += "aviour - a ";
+ n1P += "non-presen";
+ n1P += "ting branch doesn't have a previou";
+ n1P += "s branch";
+ f !== c.Ea.sa.Xk && (f.Pf ? b(f.Pf, h) : c.u.error(n1P));
+ S50 = 1;
+ break;
+ case 1:
+ S50 = (f = f.Nc(h)) ? 5 : 4;
+ break;
+ }
+ }
+ }
+ };
+ a.prototype.Fi = function (a) {
+ var V50,
+ b,
+ c,
+ f;
+ V50 = 2;
+ for (; V50 !== 7; ) {
+ switch (V50) {
+ case 5:
+ V50 = a < (null !== (b = c.Zc) && void 0 !== b ? b : c.zNa) || a >= f ? 4 : 3;
+ break;
+ case 2:
+ c = this.Ea.sa.Xk;
+ f = 0 < Object.keys(c.aa && c.aa.Sj || ({})).length && !c.jj ? c.ie - this.Ea.K.gz : c.ie;
+ V50 = 5;
+ break;
+ case 4:
+ return !1;
+ break;
+ case 3:
+ b = this.Ea.zq(a, 0, !0);
+ a = this.Ea.zq(a, 1, !0);
+ return void 0 !== b && void 0 !== a && b.complete && a.complete;
+ break;
+ }
+ }
+ };
+ return a;
+ break;
+ case 2:
+ a.prototype.Dz = function (a, b) {
+ var F50,
+ f,
+ h,
+ d,
+ m,
+ g,
+ r,
+ u;
+ F50 = 2;
+ for (; F50 !== 50; ) {
+ switch (F50) {
+ case 7:
+ F50 = (d = this.Ea.ng(b)) ? 6 : 51;
+ break;
+ case 35:
+ var f1P = "s";
+ f1P += "eek";
+ f1P += "D";
+ f1P += "elaye";
+ f1P += "d";
+ this.Mx = {
+ Za: d.O.Za + 1,
+ Gi: a
+ };
+ this.Ea.emit(f1P);
+ F50 = 33;
+ break;
+ case 44:
+ l.We.forEach(function (a) {
+ var H50;
+ H50 = 2;
+ for (; H50 !== 1; ) {
+ switch (H50) {
+ case 2:
+ f.Ea.as[a].Dp(!0);
+ H50 = 1;
+ break;
+ }
+ }
+ });
+ F50 = 43;
+ break;
+ case 53:
+ this.Ea.BM();
+ F50 = 43;
+ break;
+ case 3:
+ var G1P = " player";
+ G1P += "St";
+ G1P += "at";
+ G1P += "e: ";
+ var y1P = " media";
+ y1P += ".currentP";
+ y1P += "ts: ";
+ var B1P = " curren";
+ B1P += "t ";
+ B1P += "mani";
+ B1P += "fes";
+ B1P += "t: ";
+ var H1P = " m";
+ H1P += "anifestInde";
+ H1P += "x:";
+ H1P += " ";
+ var T1P = "se";
+ T1P += "ek";
+ T1P += ":";
+ T1P += " ";
+ d.ah && this.Wg.Qk(T1P + a + H1P + b + B1P + this.Ea.Qd.O.Za + y1P + m + G1P + this.Ea.Y.Wc());
+ F50 = 9;
+ break;
+ case 52:
+ var J1P = "seekDela";
+ J1P += "ye";
+ J1P += "d";
+ (this.Mx = {
+ Za: b,
+ Gi: a
+ }, this.Ea.emit(J1P));
+ F50 = 50;
+ break;
+ case 19:
+ F50 = !this.Ea.GBa(b) ? 18 : 15;
+ break;
+ case 26:
+ m = this.Ea.sa.Xb.AO(d.oa || Infinity, d.O);
+ F50 = 25;
+ break;
+ case 20:
+ l.We.forEach(function (a) {
+ var G50;
+ G50 = 2;
+ for (; G50 !== 1; ) {
+ switch (G50) {
+ case 2:
+ (a = g.Nc(a)) && f.Ea.JDa(a);
+ G50 = 1;
+ break;
+ }
+ }
+ });
+ F50 = 19;
+ break;
+ case 43:
+ F50 = this.Ea.Y.tOa() ? 42 : 41;
+ break;
+ case 25:
+ F50 = m.length ? 24 : 52;
+ break;
+ case 15:
+ F50 = this.ev(p.k5.rga(b), !1, !0) ? 27 : 26;
+ break;
+ case 23:
+ F50 = a > m ? 22 : 31;
+ break;
+ case 2:
+ f = this;
+ null === (h = this.FCa) || void 0 === h ? void 0 : h.cancel();
+ (d = this.Ea.K, m = this.Ea.Y.Sd());
+ h = a;
+ F50 = 3;
+ break;
+ case 31:
+ this.Ea.Y.ke(k.pa.Sg);
+ this.Ea.Woa();
+ this.Ea.sa.lLb(a, b);
+ F50 = 28;
+ break;
+ case 9:
+ c.X(b) && (b = this.Ea.Qd.O.Za);
+ this.Ea.sa.IUa();
+ F50 = 7;
+ break;
+ case 21:
+ F50 = !this.Ea.WW(d.O.Za + 1) ? 35 : 31;
+ break;
+ case 32:
+ (a = m, h = a + this.Ea.sa.pe);
+ F50 = 31;
+ break;
+ case 13:
+ m = this.Ea.Qd;
+ F50 = 12;
+ break;
+ case 33:
+ return;
+ break;
+ case 11:
+ b < m.O.Za && d.O.Ie.replace && (d.O.Ie.replace = !1);
+ g = this.Ea.sa.Xb;
+ F50 = 20;
+ break;
+ case 41:
+ var F1P = "see";
+ F1P += "k";
+ F1P += "Fai";
+ F1P += "led";
+ var k1P = "after seeking, playerState";
+ k1P += " no longe";
+ k1P += "r";
+ k1P += " STARTING: ";
+ this.u.warn(k1P + this.Ea.Y.Wc());
+ this.Ea.emit(F1P);
+ F50 = 50;
+ break;
+ case 24:
+ m = this.Ea.Ro ? this.Ea.il ? Math.min(m[0].T, m[1].T) : m[0].T : m[1].T;
+ F50 = 23;
+ break;
+ case 6:
+ !d.O.Ie.SP && 0 < b && (h = this.Ea.NN(b, a));
+ this.Ea.Y.ke(k.pa.Bo);
+ F50 = 13;
+ break;
+ case 51:
+ var b1P = "s";
+ b1P += "e";
+ b1P += "e";
+ b1P += "kFai";
+ b1P += "led";
+ var A1P = "seek, ";
+ A1P += "no manifest a";
+ A1P += "t manifestIndex:";
+ (this.u.warn(A1P, b), this.Ea.emit(b1P));
+ F50 = 50;
+ break;
+ case 27:
+ return;
+ break;
+ case 16:
+ return;
+ break;
+ case 12:
+ F50 = b != m.O.Za ? 11 : 26;
+ break;
+ case 42:
+ var j1P = "s";
+ j1P += "e";
+ j1P += "e";
+ j1P += "k";
+ var a1P = "pts";
+ a1P += "change";
+ a1P += "d";
+ return (this.Ea.emit(a1P, h), this.Ea.emit(j1P), this.OM(b), a = m && this.Ea.$a.ru() ? 100 : 0, this.Ea.IW(1, a), this.Ea.Bi(), h);
+ break;
+ case 36:
+ r = this.Ea.sa.Xb;
+ l.We.forEach(function (a) {
+ var I50,
+ b;
+ I50 = 2;
+ for (; I50 !== 5; ) {
+ switch (I50) {
+ case 2:
+ b = r.Nc(a);
+ f.nb(a) && f.oab(b, u[a]);
+ I50 = 5;
+ break;
+ }
+ }
+ });
+ F50 = 53;
+ break;
+ case 22:
+ F50 = d.O.Ie.Kf ? 21 : 32;
+ break;
+ case 28:
+ F50 = (m = this.Ea.Qd.O.Za === b && !this.E9a(b) && a === d.T) ? 44 : 39;
+ break;
+ case 39:
+ this.Ea.dba();
+ u = this.Ea.sa.Xb.HX(a).$I;
+ d.ila();
+ F50 = 36;
+ break;
+ case 18:
+ var R1P = "se";
+ R1P += "ek";
+ R1P += "Del";
+ R1P += "ayed";
+ this.Mx = {
+ Za: b,
+ Gi: a
+ };
+ this.Ea.emit(R1P);
+ F50 = 16;
+ break;
+ }
+ }
+ };
+ a.prototype.seek = function (a, b) {
+ var J50,
+ f;
+ J50 = 2;
+ for (; J50 !== 9; ) {
+ switch (J50) {
+ case 4:
+ this.Ea.ng(b).O.Ie.SP || this.Ea.MF || (f = this.Ea.As(b, a));
+ return this.Dz(f, b);
+ break;
+ case 2:
+ f = a;
+ c.X(b) && (b = this.Ea.Qd.O.Za);
+ this.Ea.sa.IUa();
+ J50 = 4;
+ break;
+ }
+ }
+ };
+ a.prototype.ev = function (a, b, c) {
+ var K50,
+ f,
+ h;
+ K50 = 2;
+ for (; K50 !== 9; ) {
+ switch (K50) {
+ case 2:
+ h = this.Ea.sa.ev(a, b);
+ K50 = 1;
+ break;
+ case 5:
+ return h;
+ break;
+ case 14:
+ return h;
+ break;
+ K50 = 4;
+ break;
+ case 4:
+ var V1P = "s";
+ V1P += "e";
+ V1P += "e";
+ V1P += "k";
+ var c1P = "pt";
+ c1P += "schange";
+ c1P += "d";
+ h ? (this.Ea.Y.ke(k.pa.Bo), (a = this.Ea.sa.Xk.children[a]) && this.Ea.emit(c1P, null !== (f = a.Zc) && void 0 !== f ? f : a.zNa), this.Ea.Y.ke(k.pa.Sg), this.Ea.emit(V1P), a && this.OM(a.O.Za), this.Ea.IW(1), this.Ea.Bi(), this.Ea.$a.ru()) : c || (f = this.Ea.sa.hsb(a), this.Dz(f));
+ return h;
+ break;
+ case 1:
+ K50 = b ? 5 : 4;
+ break;
+ }
+ }
+ };
+ D50 = 4;
+ break;
+ }
+ }
+ })();
+ b.Dza = d;
+ }, function (d, b, a) {
+ var g,
+ h,
+ p;
+ function c(a, b, c) {
+ var f,
+ h;
+ a = Math.max(0, a);
+ f = [];
+ c.forEach(function (a) {
+ f.push(a[b].da);
+ });
+ c = f.filter(function (b) {
+ return b <= a;
+ });
+ if (0 < c.length)
+ (c = c[c.length - 1], h = f.lastIndexOf(c));
+ else
+ throw Error("selectStream infeasible");
+ return {
+ Hp: c,
+ ld: h
+ };
+ }
+ function k(a, b, c) {
+ b = Math.min(a.length - 1, b);
+ b = Math.max(0, b);
+ return a[b] * c * 1 / 8;
+ }
+ function l(a, b, c, h, d) {
+ var f,
+ k,
+ m,
+ g,
+ l,
+ u;
+ f = a.Mg;
+ k = c + f.T;
+ c = a.uo[f.TH];
+ a = a.Ica;
+ m = {
+ aZa: !0,
+ waitUntil: void 0,
+ MNa: !1
+ };
+ g = c.filter(function (a) {
+ return a && a.T <= k && a.T + a.duration > k;
+ })[0];
+ if (void 0 === g)
+ return {
+ MNa: !0
+ };
+ l = d - 1 - (g.index - 1);
+ h = f.yS + h;
+ u = 0;
+ u = g.index < f.Oh ? u + c.slice(f.Gt, g.index).reduce(function (a, b) {
+ return a + b.da;
+ }, 0) : u + f.yS;
+ u = u + b.slice(f.Oh, g.index).reduce(function (a, b) {
+ return a + b.Hp;
+ }, 0);
+ h -= u;
+ if (l >= a.pka || h >= a.zS)
+ for ((m.aZa = !1, g = g.index); g < d && (l >= a.pka || h >= a.zS); ) {
+ p.update("checkBufferVacancy loop");
+ m.waitUntil = c[g].T + c[g].duration - f.T;
+ h = g < f.Oh ? h - c[g].da : h - b[g].Hp;
+ --l;
+ g += 1;
+ }
+ return m;
+ }
+ g = a(5).assert;
+ h = new(a(4).Console)("ASEJS_QOE_EVAL", "media|asejs");
+ p = a(79).p9 || a(79);
+ d.P = {
+ xC: function (a) {
+ var b,
+ T,
+ S,
+ aa,
+ Z,
+ B,
+ V,
+ z,
+ ia,
+ Y,
+ E,
+ X,
+ O,
+ na;
+ p.z3("htwbr-" + (a.qJ ? "segvmaf" : "dlvmaf") + ": ");
+ for (var d = a.Mg, m = a.Sn, r = m.Rn, n = a.uo, q = !0, t = [], H, G = r = Math.min(m.$v, r); G >= d.Oh; G--) {
+ p.update("backward step");
+ b = a.uo[0][G].T - a.Mg.T;
+ G < r && (b = Math.min(t[G + 1].startTime, b));
+ m = n[0][G].da;
+ H = d.CB * n[0][G].duration * 1 / 8;
+ a: {
+ T = void 0;
+ B = m + H;
+ H = a.Nt;
+ V = d.cr;
+ z = H.trace;
+ ia = 1 * H.So;
+ S = b + V - H.timestamp;
+ aa = Math.floor(1 * S / ia);
+ Z = 0 + (S - aa * ia) / ia * k(z, aa, ia);
+ if (Z >= B)
+ T = S - 1 * B / Z * (S - aa * ia);
+ else
+ for (S = aa; Z < B; ) {
+ p.update("findDownloadStartTime loop");
+ --S;
+ if (0 > S) {
+ T = -1;
+ break a;
+ }
+ aa = k(z, S, ia);
+ if (Z + aa >= B) {
+ T = 1 * (B - Z) / aa * ia;
+ T = (S + 1) * ia - T;
+ break;
+ }
+ Z += aa;
+ }
+ T = T + H.timestamp - V;
+ }
+ if (0 > T) {
+ q = !1;
+ break;
+ }
+ t[G] = {
+ startTime: T,
+ endTime: b,
+ SG: b,
+ Hp: m,
+ ld: 0
+ };
+ }
+ b = {
+ lp: q,
+ Ft: t,
+ Oy: !1,
+ nQ: 0 === t.length
+ };
+ if (!1 === b.lp || !0 === b.nQ)
+ return b;
+ a: {
+ d = a.Mg;
+ r = a.Sn;
+ n = r.Rn;
+ q = a.uo;
+ m = t = 0;
+ b = b.Ft;
+ T = G = 0;
+ n = Math.min(r.$v, n);
+ for (V = d.Oh; V <= n; V++) {
+ p.update("forwardStep loop");
+ Z = b[V];
+ B = Z.ld;
+ H = q[B][V].duration;
+ ia = V === d.Oh ? 0 : b[V - 1].endTime;
+ B = l(a, b, ia, t, V);
+ if (B.MNa) {
+ b = {
+ lp: !1,
+ Oy: !0
+ };
+ break a;
+ }
+ B.aZa || (ia = B.waitUntil);
+ aa = Z.SG;
+ E = a.Nt;
+ Y = d.cr;
+ Z = 0;
+ B = E.trace;
+ z = 1 * E.So;
+ S = ia + Y - E.timestamp;
+ E = aa + Y - E.timestamp;
+ if (!(ia >= aa)) {
+ g(0 <= S);
+ g(0 <= E);
+ g(E >= S);
+ X = Math.floor(1 * S / z);
+ O = 1 * E / z;
+ if (X === Math.floor(O))
+ (S = (E - S) / z * k(B, X, z), g(0 <= S), Z += S);
+ else
+ for ((O = Math.ceil(O), Y = X, aa = O, X * z < S && (Y++, S = (Y * z - S) / z * k(B, X, z), g(0 <= S), Z += S), O * z > E && (aa--, S = (E - aa * z) / z * k(B, aa, z), g(0 <= S), Z += S), S = Y); S < aa; S++) {
+ Z += k(B, S, z);
+ }
+ }
+ z = d.CB * H * 1 / 8;
+ m += z;
+ B = c(Math.max(0, Z - z), V, q);
+ if (void 0 === B) {
+ b = {
+ lp: !1,
+ Oy: !0
+ };
+ break a;
+ }
+ Z = B.Hp;
+ B = B.ld;
+ z = Z + z;
+ Y = a.Nt;
+ aa = S = 0;
+ E = Y.trace;
+ X = Math.max(0, ia + d.cr - Y.timestamp);
+ Y = 1 * Y.So;
+ na = O = Math.max(0, Math.floor(1 * X / Y));
+ for (na * Y < X && (O += 1, X = na * Y + Y - X, na = X / Y * k(E, na, Y), S = z - aa < na ? S + (z - aa) / na * 1 * X : S + X, aa += na); aa < z; ) {
+ p.update("getDownloadTime");
+ X = k(E, O, Y);
+ S = z - aa < X ? S + (z - aa) / X * 1 * Y : S + Y;
+ aa += X;
+ O += 1;
+ }
+ z = S;
+ b[V].startTime = ia;
+ b[V].endTime = ia + z;
+ b[V].Hp = Z;
+ b[V].ld = B;
+ V <= r.Rn && (t += Z, T += H, G += H * a.Qc[B].R);
+ }
+ b = {
+ lp: !0,
+ Oy: !1,
+ Ft: b,
+ Llb: 0 < T ? 1 * G / T : 0,
+ Qea: T,
+ Pea: t,
+ Nea: m
+ };
+ }
+ b.Vq = p.Zga();
+ h.debug("Max heap used: " + Math.round(b.Vq / 1024 / 1024) + " MB");
+ return b;
+ }
+ };
+ }, function (d, b, a) {
+ var n,
+ q,
+ t,
+ M;
+ function c(a, b, c) {
+ this.LFa = this.n8a(a, b, c);
+ }
+ function k() {}
+ function g() {}
+ function r() {}
+ function h(a) {
+ this.lgb = a;
+ }
+ function p() {}
+ function m() {}
+ function f() {}
+ function u() {
+ this.Jea = {};
+ }
+ function w(a) {
+ return Array.apply(0, Array(a)).map(function (a, b) {
+ return b + 1;
+ });
+ }
+ n = a(5).assert;
+ b = a(213).Gra;
+ q = a(372).$6a;
+ t = a(213).e0a;
+ new(a(4).Console)("ASEJS_QOE_EVAL", "media|asejs");
+ M = a(79).p9 || a(79);
+ c.prototype.constructor = c;
+ c.prototype.n8a = function (a, b, c) {
+ n(a < b, "expect min_buffer_sec < max_buffer_sec but got " + a + " and " + b);
+ n(0 < c, "expect buffer_step_sec > 0. but got " + c);
+ for (var f = []; a < b; a += c) {
+ f.push(a);
+ }
+ f[f.length - 1] < b && f.push(b);
+ return f;
+ };
+ c.prototype.Fy = function (a) {
+ return this.m9a(a, this.LFa);
+ };
+ c.prototype.m9a = function (a, b) {
+ a = this.zlb(a, b);
+ if (0 === a)
+ throw new k();
+ if (a === b.length)
+ throw new g();
+ return a;
+ };
+ c.prototype.zlb = function (a, b) {
+ n(0 < b.length, "expect bins.length > 0 but got " + b.length);
+ if (a < b[0])
+ return 0;
+ if (a >= b[b.length - 1])
+ return b.length;
+ for (var c = 1; c < b.length; c++) {
+ if (b[c - 1] <= a && a < b[c])
+ return c;
+ }
+ n(!1, "expect not coming here in digitize()");
+ };
+ c.prototype.q_ = function () {
+ return w(this.LFa.length - 1);
+ };
+ k.prototype = Error();
+ g.prototype = Error();
+ r.prototype = Error();
+ h.prototype.constructor = h;
+ h.prototype.VERSION = "0.5";
+ h.prototype.a1a = -20;
+ h.prototype.$0a = 20;
+ h.prototype.Z0a = void 0;
+ h.prototype.U0a = new b(void 0);
+ h.prototype.W0a = 0;
+ h.prototype.V0a = 1;
+ h.prototype.c1a = !1;
+ h.prototype.Y0a = !0;
+ h.prototype.X0a = !0;
+ h.prototype.b1a = void 0;
+ h.prototype.S0a = !0;
+ h.prototype.T0a = 0;
+ h.prototype.Bz = function (a) {
+ n(void 0 !== a.BXa, "expect recipe.time_varying_bandwidth !== undefined");
+ return this.Oab(this.lgb, a.BXa, void 0 !== a.xQa ? a.xQa : this.a1a, void 0 !== a.hQa ? a.hQa : this.$0a, void 0 !== a.gQa ? a.gQa : this.Z0a, void 0 !== a.IFa ? a.IFa : this.U0a, void 0 !== a.jJa ? a.jJa : this.W0a, void 0 !== a.WFa ? a.WFa : this.V0a, void 0 !== a.$Jb ? a.$Jb : this.c1a, void 0 !== a.etb ? a.etb : this.Y0a, void 0 !== a.zMa ? a.zMa : this.X0a, void 0 !== a.FTa ? a.FTa : this.b1a, void 0 !== a.MEa ? a.MEa : this.S0a, void 0 !== a.vFa ? a.vFa : this.T0a);
+ };
+ h.prototype.Oab = function (a, b, h, d, l, w, A, K, C, ia, Y, z, E, O) {
+ var G,
+ B,
+ T,
+ Z,
+ S,
+ aa,
+ V,
+ Q,
+ ca,
+ ea,
+ da,
+ la,
+ ga,
+ oa,
+ ra,
+ wa,
+ ta,
+ qa,
+ xa,
+ Aa;
+ function H(a) {
+ return a[aa];
+ }
+ M.z3("dp: ");
+ n(h <= w.vg, "expect min_buffer_sec <= bgn_buffer_queue.total_remain_sec");
+ n(w.vg <= d, "expect bgn_buffer_queue.total_remain_sec <= max_buffer_sec");
+ n(h <= A, "expect min_buffer_sec <= end_buffer_sec");
+ n(A <= d, "expect end_buffer_sec <= max_buffer_sec");
+ void 0 !== l && n(w.nk <= l, "Need bgn_buffer_queue.total_remain_kb <= max_buffer_kb but has got " + w.nk + " and " + l);
+ G = new c(h, d, K);
+ K = new u();
+ B = 0;
+ T = w;
+ K.put([0, G.Fy(w.vg)], [B, T, void 0, void 0, b, void 0, void 0, void 0]);
+ Z = T = 0;
+ b = a.Zsb();
+ n(a.LH() == b.length, "expect chunk_map.get_n_epoch() == durations_sec.length");
+ aa = -1;
+ for (V in b) {
+ for (var aa = aa + 1, fa = !0, X = a.hj.map(H), pa = G.q_(), N = 0; N < pa.length; N++) {
+ Q = pa[N];
+ if (K.mja([aa, Q])) {
+ S = K.get([aa, Q]);
+ for (var R = S[0], U = S[1], W = S[4], Fa = 0; Fa < X.length; Fa++) {
+ b = X[Fa];
+ M.update("epoch-ibuf-chunk loop");
+ w = void 0 !== z ? z(b.RQ) : b.RQ;
+ ca = W.$o();
+ try {
+ S = this.Q8a(U, b, ca, O);
+ ea = S[0];
+ da = S[1];
+ la = S[2];
+ ga = S[3];
+ oa = S[4];
+ ra = S[5];
+ } catch (Za) {
+ if (Za instanceof q)
+ continue;
+ else if (Za instanceof k) {
+ T += 1;
+ continue;
+ } else
+ throw Za;
+ }
+ wa = B = !1;
+ try {
+ ta = G.Fy(ga.vg);
+ ia && G.Fy(ea);
+ Y && G.Fy(da);
+ if (void 0 !== l)
+ if (Y) {
+ if (la.nk > l)
+ throw new r();
+ } else if (ga.nk > l)
+ throw new r();
+ } catch (Za) {
+ if (Za instanceof k)
+ (ta = void 0, T += 1);
+ else if (Za instanceof g)
+ (E ? B = !0 : Z += 1, ta = void 0);
+ else if (Za instanceof r)
+ (E ? wa = B = !0 : Z += 1, ta = void 0);
+ else
+ throw Za;
+ }
+ try {
+ if (B && wa) {
+ n(void 0 !== l, "expect max_buffer_kb !== undefined");
+ xa = Y ? la.nk - l : ga.nk - l;
+ n(0 <= xa, "pause dlnd kb cannot be -ve but is " + xa);
+ try {
+ qa = ga.gDb(xa);
+ } catch (Za) {
+ if (Za instanceof t)
+ throw new k();
+ throw Za;
+ }
+ ca.sSa(qa);
+ oa += qa;
+ n(ga.vg < d, "expect cur_buffer_queue.total_remain_sec < max_buffer_sec");
+ ta = G.Fy(ga.vg);
+ } else if (B && !wa) {
+ qa = Y ? la.vg - d + 1E-8 : ga.vg - d + 1E-8;
+ n(0 <= qa, "pause dlnd kb cannot be -ve but is " + qa);
+ try {
+ ga.JSa(qa);
+ } catch (Za) {
+ if (Za instanceof t)
+ throw new k();
+ throw Za;
+ }
+ ca.sSa(qa);
+ oa += qa;
+ n(h <= ga.vg, "expect min_buffer_sec <= cur_buffer_queue.total_remain_sec");
+ n(ga.vg < d, "cur_buffer_queue.total_remain_sec < max_buffer_sec");
+ ta = G.Fy(ga.vg);
+ } else
+ qa = 0;
+ } catch (Za) {
+ if (Za instanceof k)
+ (ta = void 0, T += 1, qa = void 0);
+ else if (Za instanceof q)
+ continue;
+ else
+ throw Za;
+ }
+ B = K.mja([aa + 1, ta]) ? K.get([aa + 1, ta])[0] : -Infinity;
+ this.Abb(ga, ta, b, w, Q, aa + 1, B, K, R, Fa, ca, oa, ra, qa) && (fa = !1);
+ }
+ }
+ }
+ if (fa) {
+ --aa;
+ break;
+ }
+ }
+ try {
+ Aa = this.dCa(aa + 1, G.Fy(A), K, C, G);
+ } catch (Za) {
+ if (Za instanceof p)
+ try {
+ Aa = this.dCa(aa + 1, G.Fy(A), K, !C, G);
+ } catch (He) {
+ if (He instanceof p) {
+ if (T > Z)
+ throw new m();
+ throw new f();
+ }
+ throw He;
+ }
+ else
+ throw Za;
+ }
+ Q = Aa;
+ for (h = []; -1 < aa; aa--) {
+ S = K.get([aa + 1, Q]);
+ B = S[0];
+ T = S[1];
+ d = S[3];
+ l = S[5];
+ A = S[6];
+ C = S[7];
+ S = S[2];
+ b = a.hj[S][aa];
+ ia = b.Ev();
+ w = b.RQ;
+ h.unshift({
+ fNa: aa,
+ qia: S,
+ info: {
+ NWb: ia,
+ RQ: w,
+ VWb: T.vg,
+ UWb: T.nk,
+ cYb: l,
+ Ia: A,
+ H_b: C
+ }
+ });
+ Q = d;
+ }
+ return h;
+ };
+ h.prototype.dCa = function (a, b, c, f, h) {
+ var d,
+ k;
+ d = !1;
+ k = h.q_()[0];
+ for (h = h.q_()[h.q_().length - 1]; ; ) {
+ if (b < k || b > h) {
+ d = !0;
+ break;
+ }
+ if (c.mja([a, b]))
+ break;
+ else
+ b = f ? b - 1 : b + 1;
+ }
+ if (d)
+ throw new p();
+ return b;
+ };
+ h.prototype.Abb = function (a, b, c, f, h, d, k, m, g, l, p, u, r, w) {
+ c = g + f * c.Gp;
+ return void 0 !== b && c > k ? (m.put([d, b], [c, a, l, h, p, u, r, w]), !0) : !1;
+ };
+ h.prototype.Q8a = function (a, b, c, f) {
+ var h,
+ d,
+ m;
+ f = (b.Ev() + f) * b.Gp;
+ c = c.Xlb(f);
+ f /= c;
+ h = a.vg - c;
+ d = a.vg + b.Gp;
+ m = a.$o();
+ m.add(b, void 0);
+ a = a.$o();
+ a.add(b, void 0);
+ try {
+ a.JSa(c);
+ } catch (V) {
+ if (V instanceof t)
+ throw new k();
+ throw V;
+ }
+ return [h, d, m, a, c, f];
+ };
+ p.prototype = Error();
+ m.prototype = new p();
+ f.prototype = new p();
+ u.prototype = {
+ Ppa: function (a) {
+ return a.join(",");
+ },
+ put: function (a, b) {
+ this.Jea[this.Ppa(a)] = b;
+ },
+ get: function (a) {
+ return this.Jea[this.Ppa(a)];
+ },
+ mja: function (a) {
+ return (this.Ppa(a)in this.Jea);
+ }
+ };
+ d.P = {
+ V1a: h,
+ mQb: c,
+ MPb: k,
+ NPb: g
+ };
+ }, function (d) {
+ var c;
+ function b(b) {
+ this.Gf = a(b);
+ this.Uf = this.Ce = 0;
+ if (c(b)) {
+ for (var d = b.length, k = 0; k < d; ++k) {
+ this[k] = b[k];
+ }
+ this.Ce = d;
+ }
+ }
+ function a(a) {
+ if ("number" !== typeof a)
+ if (c(a))
+ a = a.length;
+ else
+ return 16;
+ a = Math.min(Math.max(16, a), 1073741824);
+ a = (a >>> 0) - 1;
+ a |= a >> 1;
+ a |= a >> 2;
+ a |= a >> 4;
+ a |= a >> 8;
+ return (a | a >> 16) + 1;
+ }
+ b.prototype.bn = function () {
+ for (var a = this.Ce, b = Array(a), c = this.Uf, h = this.Gf, d = 0; d < a; ++d) {
+ b[d] = this[c + d & h - 1];
+ }
+ return b;
+ };
+ b.prototype.push = function (a) {
+ var b,
+ c,
+ h,
+ k;
+ b = arguments.length;
+ c = this.Ce;
+ if (1 < b) {
+ h = this.Gf;
+ if (c + b > h) {
+ for (var d = 0; d < b; ++d) {
+ this.AV(c + 1);
+ k = this.Uf + c & this.Gf - 1;
+ this[k] = arguments[d];
+ c++;
+ this.Ce = c;
+ }
+ return c;
+ }
+ k = this.Uf;
+ for (d = 0; d < b; ++d) {
+ this[k + c & h - 1] = arguments[d];
+ k++;
+ }
+ this.Ce = c + b;
+ return c + b;
+ }
+ if (0 === b)
+ return c;
+ this.AV(c + 1);
+ d = this.Uf + c & this.Gf - 1;
+ this[d] = a;
+ this.Ce = c + 1;
+ return c + 1;
+ };
+ b.prototype.pop = function () {
+ var a,
+ b,
+ c;
+ a = this.Ce;
+ if (0 !== a) {
+ b = this.Uf + a - 1 & this.Gf - 1;
+ c = this[b];
+ this[b] = void 0;
+ this.Ce = a - 1;
+ return c;
+ }
+ };
+ b.prototype.shift = function () {
+ var a,
+ b,
+ c;
+ a = this.Ce;
+ if (0 !== a) {
+ b = this.Uf;
+ c = this[b];
+ this[b] = void 0;
+ this.Uf = b + 1 & this.Gf - 1;
+ this.Ce = a - 1;
+ return c;
+ }
+ };
+ b.prototype.unshift = function (a) {
+ var b,
+ c,
+ h,
+ k;
+ b = this.Ce;
+ c = arguments.length;
+ if (1 < c) {
+ h = this.Gf;
+ if (b + c > h) {
+ for (var d = c - 1; 0 <= d; d--) {
+ this.AV(b + 1);
+ h = this.Gf;
+ k = (this.Uf - 1 & h - 1 ^ h) - h;
+ this[k] = arguments[d];
+ b++;
+ this.Ce = b;
+ this.Uf = k;
+ }
+ return b;
+ }
+ k = this.Uf;
+ for (d = c - 1; 0 <= d; d--) {
+ k = (k - 1 & h - 1 ^ h) - h;
+ this[k] = arguments[d];
+ }
+ this.Uf = k;
+ this.Ce = b + c;
+ return b + c;
+ }
+ if (0 === c)
+ return b;
+ this.AV(b + 1);
+ h = this.Gf;
+ d = (this.Uf - 1 & h - 1 ^ h) - h;
+ this[d] = a;
+ this.Ce = b + 1;
+ this.Uf = d;
+ return b + 1;
+ };
+ b.prototype.DCb = function () {
+ var a;
+ a = this.Ce;
+ if (0 !== a)
+ return this[this.Uf + a - 1 & this.Gf - 1];
+ };
+ b.prototype.get = function (a) {
+ var b;
+ if (a === (a | 0)) {
+ b = this.Ce;
+ 0 > a && (a += b);
+ if (!(0 > a || a >= b))
+ return this[this.Uf + a & this.Gf - 1];
+ }
+ };
+ b.prototype.g0 = function () {
+ return 0 === this.Ce;
+ };
+ b.prototype.clear = function () {
+ for (var a = this.Ce, b = this.Uf, c = this.Gf, h = 0; h < a; ++h) {
+ this[b + h & c - 1] = void 0;
+ }
+ this.Uf = this.Ce = 0;
+ };
+ b.prototype.toString = function () {
+ return this.bn().toString();
+ };
+ b.prototype.valueOf = b.prototype.toString;
+ b.prototype.enqueue = b.prototype.push;
+ b.prototype.YG = b.prototype.shift;
+ b.prototype.toJSON = b.prototype.bn;
+ Object.defineProperty(b.prototype, "length", {
+ get: function () {
+ return this.Ce;
+ },
+ set: function () {
+ throw new RangeError("");
+ }
+ });
+ b.prototype.AV = function (b) {
+ this.Gf < b && this.Nab(a(1.5 * this.Gf + 16));
+ };
+ b.prototype.Nab = function (a) {
+ var b,
+ c;
+ b = this.Gf;
+ this.Gf = a;
+ a = this.Uf;
+ c = this.Ce;
+ if (a + c > b)
+ for ((a = a + c & b - 1, c = 0); c < a; ++c) {
+ this[c + b] = this[c + 0];
+ this[c + 0] = void 0;
+ }
+ };
+ c = Array.isArray;
+ d.P = b;
+ }, function (d, b, a) {
+ var t,
+ M,
+ H,
+ G,
+ T,
+ S,
+ aa,
+ Z,
+ B,
+ V,
+ z;
+ function c(a) {
+ var b,
+ c,
+ f;
+ c = a.Nt;
+ b = a.Mg;
+ f = a.Sn.oa - b.T;
+ c.timestamp > b.cr && V.error("expect playSegment.tput.timestamp <= playSegment.startState.playingStartTime but has " + c.timestamp + " and " + b.cr);
+ a = [];
+ for (var h, d = c.timestamp, k = 0; k < c.trace.length; k++) {
+ d >= b.cr && (a.push(c.trace[k]), h = c.trace[k]);
+ d += c.So;
+ f -= c.So;
+ }
+ for (; 0 < f; ) {
+ a.push(h);
+ f -= c.So;
+ }
+ b = c.So;
+ c = a.length;
+ if (0 === c)
+ c = [];
+ else {
+ for (b = [b / 1E3]; 2 * b.length <= c; ) {
+ b = b.concat(b);
+ }
+ b.length < c && (b = b.concat(b.slice(0, c - b.length)));
+ c = b;
+ }
+ return new S(a, c, !1);
+ }
+ function k(a, b) {
+ if (a.sp < b.sp)
+ return 1;
+ if (a.sp > b.sp)
+ return -1;
+ if (a.Tq > b.Tq)
+ return 1;
+ if (a.Tq < b.Tq)
+ return -1;
+ if (a.index > b.index)
+ return 1;
+ if (a.index < b.index)
+ return -1;
+ throw Error("Invalid frag comparison");
+ }
+ function g(a, b) {
+ if (a.sp < b.sp)
+ return 1;
+ if (a.sp > b.sp)
+ return -1;
+ if (a.Tq < b.Tq)
+ return 1;
+ if (a.Tq > b.Tq)
+ return -1;
+ if (a.index < b.index)
+ return 1;
+ if (a.index > b.index)
+ return -1;
+ throw Error("Invalid frag comparison");
+ }
+ function r(a, b, c) {
+ b = a.uo[b][c];
+ return b.da + a.Mg.CB * b.duration * 1 / 8;
+ }
+ function h(a) {
+ var l;
+ for (var b = a.Mg, c = b.Oh, f = a.Sn, h = f.Rn, d, k, m, g = [], f = h = Math.min(f.$v, h); f >= c; f--) {
+ z.update("backward step loop");
+ k = m = a.uo[0][f].T - a.Mg.T;
+ f < h && (t(void 0 !== g[f + 1], "expect solution[(fragIndex + 1)] !== undefined"), k = Math.min(g[f + 1].startTime, k));
+ d = r(a, 0, f);
+ l = q(d, k, a.Nt, b.cr);
+ if (0 > l)
+ throw Error("Infeasible: reason throughput at min bitrate");
+ d = {
+ startTime: l,
+ endTime: k,
+ SG: k,
+ Qlb: m,
+ Hp: d,
+ ld: 0
+ };
+ d.kKa = f;
+ g[f] = d;
+ }
+ b = 0;
+ for (f = c; f <= h; f++) {
+ b += g[f].Hp;
+ g[f].Oea = b;
+ }
+ if (!p(a, g, c, h))
+ throw Error("Infeasible: reason buffer capacity at min bitrate");
+ return {
+ lp: !0,
+ nQ: 0 == g.length,
+ Ft: g
+ };
+ }
+ function p(a, b, c, f) {
+ var h,
+ d,
+ k,
+ m,
+ g,
+ l,
+ p,
+ u,
+ r,
+ w;
+ for (; c <= f; c++) {
+ z.update("checkBuffer");
+ h = a;
+ d = b;
+ k = c;
+ z.update("check buffer vacancy");
+ m = h.Mg;
+ g = h.uo[m.TH];
+ l = h.Ica;
+ p = !0;
+ u = h.mob(Math.floor(d[k].startTime) + m.T);
+ r = m.yS + d[k].Oea;
+ w = 0;
+ h = 0;
+ if (u.index < m.Oh) {
+ for (var n = 0, q = m.Gt; q < u.index; q++) {
+ n += g[q].da;
+ }
+ w += n;
+ n = 0;
+ for (q = m.Gt; q < u.index; q++) {
+ n += g[q].duration;
+ }
+ h += n;
+ } else (w += m.yS, h += m.cK);
+ n = 0;
+ for (q = m.Oh; q < u.index; q++) {
+ n += d[q].Hp;
+ }
+ w += n;
+ n = 0;
+ for (q = m.Oh; q < u.index; q++) {
+ n += g[d[q].kKa].duration;
+ }
+ h += n;
+ u = r - w;
+ m = g[k].T + g[k].duration - m.T - h;
+ if (m >= l.Wq || u >= l.zS)
+ p = !1;
+ d[k].YFa = u;
+ d[k].ZFa = m;
+ if (!p)
+ return !1;
+ }
+ return !0;
+ }
+ function m(a) {
+ a = a.Mg.$;
+ for (var b = [], c, f = 0; f < a.length; f++) {
+ z.update("get prebuffered chunks loop");
+ c = a[f];
+ t(void 0 !== c.Bb, "expect frag.vmaf !== undefined");
+ c = new H(c.da, c.duration / 1E3, c.Bb);
+ b.push(c);
+ }
+ return b;
+ }
+ function f(a) {
+ for (var b = a.uo, c = a.Mg, f = a.Sn, h = f.Rn, d = a.Qc, k = [], m, h = Math.min(f.$v, h), g = 0; g < b.length; g++) {
+ for (var f = [], l = c.Oh; l <= h; l++) {
+ z.update("get chunk map from play segment");
+ m = b[g][l];
+ m = new H(m.da, m.duration / 1E3, a.qJ && void 0 !== m.Bb ? m.Bb : d[g].Bb);
+ f.push(m);
+ }
+ k.push(f);
+ }
+ return new G(k, !1);
+ }
+ function u(a, b) {
+ t(a.LH() >= b.length, "expect chunk_map.get_n_epoch() >= stream_choices.length");
+ for (var c = 0, f = 0, h, d, k = 0; k < b.length; k++) {
+ z.update("calculate twvmaf");
+ t(b[k].fNa === k, "expect stream_choices[idx].i_epoch === idx");
+ d = a.hj[b[k].qia][k];
+ h = d.RQ;
+ d = d.Gp;
+ c += h * d;
+ f += d;
+ }
+ return {
+ wIa: c / f,
+ Qea: 1E3 * f
+ };
+ }
+ function w(a, b, c) {
+ var f,
+ h;
+ t(a.LH() >= b.length, "expect chunk_map.get_n_epoch() >= stream_choices.length");
+ f = 0;
+ h = 0;
+ c = c.Mg.CB;
+ for (var d, k = 0; k < b.length; k++) {
+ z.update("calculate Bytes");
+ t(b[k].fNa === k, "expect stream_choices[idx].i_epoch === idx");
+ d = a.hj[b[k].qia][k];
+ f += d.da;
+ h += c * d.Gp * 1E3 / 8;
+ }
+ return {
+ Pea: f,
+ Nea: h
+ };
+ }
+ function n(a, b, c) {
+ b = Math.min(a.length - 1, b);
+ b = Math.max(0, b);
+ return a[b] * c * 1 / 8;
+ }
+ function q(a, b, c, f) {
+ var h,
+ d,
+ k,
+ m,
+ g;
+ h = c.trace;
+ d = 1 * c.So;
+ g = b + f - c.timestamp;
+ m = Math.floor(1 * g / d);
+ b = 0 + (g - m * d) / d * n(h, m, d);
+ if (b >= a)
+ k = g - 1 * a / b * (g - m * d);
+ else
+ for (g = m; b < a; ) {
+ z.update("find download start time");
+ --g;
+ if (0 > g)
+ return -1;
+ m = n(h, g, d);
+ if (b + m >= a) {
+ a = 1 * (a - b) / m * d;
+ k = (g + 1) * d - a;
+ break;
+ }
+ b += m;
+ }
+ return k + c.timestamp - f;
+ }
+ t = a(5).assert;
+ M = a(745);
+ H = a(373).H0a;
+ G = a(373).I0a;
+ T = a(744).V1a;
+ S = a(372).Z6a;
+ aa = a(213).Gra;
+ Z = a(222).hU;
+ B = a(60);
+ V = new(a(4).Console)("ASEJS_QOE_EVAL", "media|asejs");
+ z = a(79).p9 || a(79);
+ d.P = {
+ xC: function (a) {
+ var b,
+ c,
+ f,
+ d,
+ m,
+ l,
+ u,
+ w,
+ n,
+ A,
+ K,
+ C,
+ H,
+ G,
+ B,
+ T,
+ S,
+ aa,
+ fa,
+ E,
+ N,
+ U,
+ W,
+ ca,
+ ea,
+ la,
+ ga,
+ oa;
+ V.debug("greedy DEBUG false");
+ z.z3("greedy-" + (a.qJ ? "segvmaf" : "dlvmaf") + ": ");
+ try {
+ a.RC = [];
+ m = a.uo;
+ l = a.Mg;
+ u = a.Sn;
+ w = u.Rn;
+ n = a.Qc;
+ w = Math.min(u.$v, w);
+ for (S = l.Oh; S <= w; S++) {
+ aa = new M();
+ a.RC[S] = aa;
+ m[0][S].Sca = m[0][S].da;
+ for (T = 1; T < m.length; T++) {
+ m[T][S].Sca = m[T][S].da;
+ }
+ T = 0;
+ A = m[T][S];
+ A.sp = Infinity;
+ A.ug = T;
+ for (T = 1; T < m.length; T++) {
+ A = m[T][S];
+ A.ug = T;
+ K = aa.g0() ? m[0][S] : aa.DCb();
+ C = 8 * A.Sca / A.duration;
+ H = 8 * K.Sca / K.duration;
+ a.qJ && void 0 !== A.Bb ? (G = A.Bb, B = K.Bb) : (G = n[T].Bb, B = n[K.ug].Bb);
+ A.Tq = C - H;
+ A.sp = (G - B) / A.Tq;
+ isFinite(A.sp) && (0 < A.sp || T == m.length - 1) && 0 < A.Tq && aa.enqueue(A);
+ }
+ }
+ for (S = l.Oh; S <= w; S++) {
+ d = [];
+ f = [];
+ c = [];
+ for (var ia = a.RC[S].bn(), m = 0; m < ia.length; m++) {
+ A = ia[m];
+ d.push(A.Tq.toFixed(2));
+ a.qJ && void 0 !== A.Bb ? f.push(A.Bb) : f.push(n[A.ug].Bb);
+ c.push(A.sp.toFixed(4));
+ }
+ }
+ b = h(a);
+ if (b.nQ)
+ return b;
+ fa = a.Mg;
+ E = a.Sn;
+ N = E.Rn;
+ N = Math.min(E.$v, N);
+ c = [];
+ for (var Q = fa.Oh; Q <= N; Q++) {
+ a.RC[Q].g0() || c.push(a.RC[Q].YG());
+ }
+ for (var R = new Z(c, a.Vcb ? g : k); 0 < R.length; ) {
+ z.update("upgrade frags");
+ U = R.pop();
+ a: {
+ N = fa = void 0;
+ Q = a;
+ c = b;
+ f = U;
+ ca = Q.Mg;
+ ea = Q.Sn;
+ la = Math.min(ea.$v, ea.Rn);
+ ga = JSON.parse(JSON.stringify(c.Ft));
+ t(f && ga[f.index].ld < f.ug, "expect solution[targetFrag.index].selectedStreamIndex < targetFrag.streamIndex");
+ N = f.index;
+ fa = ga[N];
+ fa.ld = f.ug;
+ fa.Hp = r(Q, fa.ld, N);
+ fa.startTime = q(fa.Hp, fa.SG, Q.Nt, ca.cr);
+ ga[N] = fa;
+ if (0 > fa.startTime)
+ W = !1;
+ else {
+ for (N = f.index - 1; N >= ca.Oh; N--) {
+ fa = ga[N];
+ oa = ga[N + 1].startTime;
+ if (fa.SG <= oa)
+ break;
+ fa.SG = oa;
+ fa.startTime = q(fa.Hp, fa.SG, Q.Nt, ca.cr);
+ ga[N] = fa;
+ if (0 > fa.startTime) {
+ W = !1;
+ break a;
+ }
+ }
+ for (var qa = f.index + 1; qa <= la; qa++) {
+ ga[qa].Oea = ga[qa].Hp + (qa > Q.Mg.Oh ? ga[qa - 1].Oea : 0);
+ }
+ for (var ra = f.index + 1; ra <= la; ra++) {
+ if (ga[ra].startTime > ga[f.index].Qlb) {
+ la = ra - 1;
+ break;
+ }
+ }
+ p(Q, ga, f, Math.min(N + 1, f.index)) ? (c.Ft = ga, W = !0) : W = !1;
+ }
+ }
+ W && (a.RC[U.index].g0() || R.push(a.RC[U.index].YG()));
+ }
+ }
+ finally {
+ delete a.RC;
+ }
+ for (ea = ca = W = U = R = 0; ea < b.Ft.length; ea++) {
+ if (la = b.Ft[ea])
+ (ga = a.uo[la.ld][la.kKa], R += (ga.Bb ? ga.Bb : a.Qc[la.ld].Bb) * ga.duration, U += ga.duration, W += ga.da, ca += a.Mg.CB * ga.duration * 1 / 8);
+ }
+ b.wIa = 0 < U ? 1 * R / U : 0;
+ b.Qea = U;
+ b.Pea = W;
+ b.Nea = ca;
+ b.Vq = z.Zga();
+ V.debug("Max heap used: " + Math.round(b.Vq / 1024 / 1024) + " MB");
+ return b;
+ },
+ dp: function (a) {
+ var b,
+ d,
+ k,
+ g,
+ l,
+ p;
+ z.z3("dp-" + (a.qJ ? "segvmaf" : "dlvmaf") + ": ");
+ b = h(a);
+ if (!1 === b.lp || !0 === b.nQ)
+ return b;
+ d = f(a);
+ k = new T(d);
+ g = m(a);
+ g = {
+ BXa: c(a),
+ vFa: a.Mg.CB,
+ xQa: 0,
+ hQa: 240,
+ gQa: 8 * a.Ica.zS / 1E3,
+ WFa: .5,
+ IFa: new aa(g),
+ jJa: 0,
+ PYb: void 0,
+ zMa: void 0,
+ FTa: void 0,
+ MEa: !0
+ };
+ k = k.Bz(g);
+ g = u(d, k);
+ d = w(d, k, a);
+ l = [];
+ p = a.Mg.Oh;
+ k.forEach(function (a) {
+ l[p] = {
+ ld: a.qia
+ };
+ p++;
+ });
+ B(g, b);
+ B(d, b);
+ b.Ft = l;
+ b.Vq = z.Zga();
+ V.debug("Max heap used: " + Math.round(b.Vq / 1024 / 1024) + " MB");
+ return b;
+ }
+ };
+ }, function (d, b, a) {
+ var g,
+ r;
+ function c() {}
+ function k(a, b, c) {
+ return function (f) {
+ f.qJ = b;
+ c && (f.Vcb = c);
+ return a(f);
+ };
+ }
+ g = a(746);
+ r = a(743);
+ c.prototype.constructor = c;
+ c.prototype.create = function (a) {
+ switch (a) {
+ case "htwbr":
+ a = r.xC;
+ break;
+ case "hvmafgr":
+ a = g.xC;
+ break;
+ case "hvmafdp":
+ a = g.dp;
+ break;
+ case "hvmafgr-dlvmaf":
+ a = k(g.xC, !1);
+ break;
+ case "hvmafgr-segvmaf":
+ a = k(g.xC, !0);
+ break;
+ case "hvmafgr2-dlvmaf":
+ a = k(g.xC, !1, !0);
+ break;
+ case "hvmafgr2-segvmaf":
+ a = k(g.xC, !0, !0);
+ break;
+ case "hvmafdp-dlvmaf":
+ a = k(g.dp, !1);
+ break;
+ case "hvmafdp-segvmaf":
+ a = k(g.dp, !0);
+ break;
+ default:
+ throw Error("Unrecognized hindsight algorithm");
+ }
+ return a;
+ };
+ d.P = c;
+ }, function (d, b, a) {
+ var k,
+ g,
+ r;
+ function c(a, b, c, f) {
+ this.eb = a;
+ this.u = b;
+ this.jf = this.u.error.bind(this.u);
+ this.ib = this.u.warn.bind(this.u);
+ this.Kj = this.u.trace.bind(this.u);
+ this.Bg = this.u.log.bind(this.u);
+ this.F7a = new g();
+ this.K = f;
+ this.pW = [];
+ this.MW = void 0;
+ a = f.I_;
+ k.call(this, a.numB * a.bSizeMs, a.bSizeMs);
+ this.saa = !0;
+ }
+ a(19);
+ b = a(4);
+ k = a(165);
+ a(382);
+ g = a(747);
+ new b.Console("ASEJS_QOE_EVAL", "media|asejs");
+ r = a(79).p9 || a(79);
+ c.prototype = Object.create(k.prototype);
+ c.prototype.add = function (a, b, c) {
+ this.MW || (this.MW = b);
+ k.prototype.add.call(this, a, b, c);
+ };
+ c.prototype.Ppb = function () {
+ var a;
+ if (0 !== this.pW.length) {
+ a = [];
+ this.pW.forEach(function (b) {
+ b && b.pG && a.push(b.Bv());
+ });
+ return a;
+ }
+ };
+ c.prototype.yc = function () {
+ this.pW = [];
+ };
+ c.prototype.Dsb = function () {
+ var a,
+ b,
+ c;
+ a = this.get(this.K.I_.fillS);
+ if (0 === a[0] || null === a[0]) {
+ a.some(function (a, f) {
+ if (a)
+ return (b = a, c = f, !0);
+ });
+ if (b)
+ for (var f = 0; f < c; f++) {
+ a[f] = b;
+ }
+ }
+ a = {
+ trace: a,
+ timestamp: this.MW,
+ So: this.Tc
+ };
+ this.saa = !1;
+ k.prototype.reset.call(this);
+ this.saa = !0;
+ this.MW = void 0;
+ return a;
+ };
+ c.prototype.yfa = function (a) {
+ var b,
+ c,
+ f,
+ d,
+ h,
+ k;
+ if (a && !a.pG) {
+ c = a.Sn.oOa;
+ c && (a.Tma = this.cca(a), a.I2 = !1);
+ if ((b = this.Dsb()) && b.trace && b.trace.length) {
+ f = a.Mg.cr;
+ d = b.timestamp;
+ if (d > f) {
+ h = b.So;
+ k = b.trace[0];
+ f = Math.ceil(1 * (d - f) / h);
+ b.timestamp = d - f * h;
+ for (d = 0; d < f; d++) {
+ b.trace.splice(0, 0, k);
+ }
+ }
+ b.trace.length && b.trace.pop();
+ }
+ a.Nt = b;
+ b.trace && 0 === b.trace.length || void 0 === b.timestamp || (b = this.kfb(a), a.PRa = b, c && b && (a.I2 = b.lp), a.pG = !0, this.pW.push(a));
+ }
+ };
+ c.prototype.kfb = function (a) {
+ var h,
+ k,
+ g,
+ l;
+ function b(a) {
+ var f;
+ for (var b, c = 0; c < a.length; c++) {
+ f = a[c].reduce(function (a, b) {
+ return b.Bb ? a + 1 : a;
+ }, 0);
+ if (void 0 === b)
+ b = f;
+ else if (f !== b)
+ throw Error("length of per-fragment vmafs mismatch across streams [ceil(log2(delta))=" + Math.ceil(Math.log(f > b ? f - b : b - f) * Math.LOG2E) + "]");
+ }
+ }
+ for (var c = this.K.gP, f = {
+ lp: !1,
+ Oy: !1,
+ QY: 0
+ }, d = 0; d < c.length; d++) {
+ h = c[d];
+ k = this.F7a.create(h);
+ if (k) {
+ g = r.now();
+ l = {};
+ try {
+ b(a.uo);
+ l = k(a);
+ } catch (M) {
+ l.cZ = M;
+ }
+ l.Pcb = r.now() - g;
+ f[h] = l;
+ f.lp = f.lp || l.lp;
+ f.Oy = f.Oy || l.Oy;
+ f.cZ = f.cZ || l.cZ;
+ }
+ }
+ return f;
+ };
+ c.prototype.cca = function (a) {
+ var b;
+ a = a.Sn;
+ b = "";
+ 1E3 > a.cK && (b += a.pZa);
+ 1E3 > a.Eba && (b = b + ("" !== b ? "," : "") + a.cFa);
+ 1E3 <= a.cK && 1E3 <= a.Eba && (b = "media");
+ return b;
+ };
+ d.P = c;
+ }, function (d, b, a) {
+ var c,
+ k,
+ g,
+ r,
+ h,
+ p;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Kqa = void 0;
+ c = a(158);
+ k = a(748);
+ g = a(378);
+ r = a(8);
+ h = a(19);
+ p = a(4);
+ d = (function () {
+ var W50;
+ W50 = 2;
+ function a(a, b, d, m, l, r, n, q, t) {
+ var X50,
+ f,
+ Z50,
+ u,
+ w,
+ Y50;
+ X50 = 2;
+ for (; X50 !== 32; ) {
+ switch (X50) {
+ case 33:
+ l.G4 && (this.FW = this.EW = !1);
+ X50 = 32;
+ break;
+ case 8:
+ this.ib = this.u.warn.bind(this.u);
+ this.Kj = this.u.trace.bind(this.u);
+ this.K = l;
+ a000.s4P(5);
+ var Y31 = a000.t4P(7, 7000000);
+ this.JCa = 0 === Math.floor(Y31 * Math.random()) % l.Lca;
+ this.Mq = this.J_ = this.aNa = this.XX = this.np = void 0;
+ this.jpa = this.kWa = this.lWa = this.ipa = this.cSa = this.dSa = 0;
+ X50 = 11;
+ break;
+ case 34:
+ this.EF = new g.WT(n, l, this.u);
+ X50 = 23;
+ break;
+ case 18:
+ m = l.hQ ? h.Xe.nA : h.Xe.oA;
+ d && d.Dd >= m && d.Ia && f && this.z9a(d, b, f);
+ X50 = 16;
+ break;
+ case 11:
+ var x1P = "d";
+ x1P += "ef";
+ x1P += "au";
+ x1P += "lt";
+ this.rW = c[x1P](l, r);
+ b = this.lCa(d);
+ void 0 !== b && void 0 !== b.Sk && void 0 !== b.sj && void 0 !== b.Tk && (f = (b.Tk - b.Sk) / b.sj);
+ X50 = 18;
+ break;
+ case 22:
+ var t1P = "L";
+ t1P += "R";
+ X50 = Y50 === t1P ? 21 : 35;
+ break;
+ case 27:
+ this.vaa = !1;
+ X50 = 26;
+ break;
+ case 2:
+ this.u = b;
+ this.bc = m;
+ X50 = 5;
+ break;
+ case 21:
+ this.EF = new g.uua(n, l, this.u);
+ X50 = 23;
+ break;
+ case 24:
+ this.EF = new g.WT(n, l, this.u);
+ X50 = 23;
+ break;
+ case 5:
+ this.nb = q;
+ X50 = 4;
+ break;
+ case 15:
+ try {
+ Z50 = 2;
+ for (; Z50 !== 4; ) {
+ switch (Z50) {
+ case 2:
+ (u = p.Ik(), w = new k(a, this.u, {
+ bufferSize: u
+ }, l));
+ this.bc.fcb(w);
+ this.vDa = w;
+ Z50 = 4;
+ break;
+ }
+ }
+ } catch (Z) {
+ var X1P = "Hindsight: Error w";
+ X1P += "hen creating ";
+ X1P += "Qo";
+ X1P += "EEval";
+ X1P += "uator: ";
+ a000.o4P(3);
+ a.Va.Mm(a000.X4P(Z, X1P));
+ }
+ X50 = 27;
+ break;
+ case 25:
+ var o1P = "b";
+ o1P += "aselin";
+ o1P += "e";
+ Y50 = l.Qtb;
+ X50 = Y50 === o1P ? 24 : 22;
+ break;
+ case 35:
+ X50 = 34;
+ break;
+ case 16:
+ X50 = this.Px.fp ? 15 : 27;
+ break;
+ case 26:
+ X50 = n && 1 < n.length && l.ifa ? 25 : 33;
+ break;
+ case 23:
+ this.vaa = this.EF.l0();
+ X50 = 33;
+ break;
+ case 4:
+ var s1P = "1S";
+ s1P += "IYb";
+ s1P += "Z";
+ s1P += "rN";
+ s1P += "JCp9";
+ this.Px = t;
+ s1P;
+ this.eb = a;
+ X50 = 8;
+ break;
+ }
+ }
+ }
+ for (; W50 !== 27; ) {
+ switch (W50) {
+ case 4:
+ a.prototype.Vpa = function (a) {
+ var d60;
+ d60 = 2;
+ for (; d60 !== 5; ) {
+ switch (d60) {
+ case 2:
+ this.K = a;
+ this.rW.Vpa(a);
+ d60 = 5;
+ break;
+ }
+ }
+ };
+ a.prototype.waa = function (a, b, c, d) {
+ var e60,
+ f;
+ e60 = 2;
+ for (; e60 !== 7; ) {
+ switch (e60) {
+ case 2:
+ f = this.K;
+ e60 = 1;
+ break;
+ case 5:
+ e60 = void 0 !== d ? 4 : 3;
+ break;
+ case 4:
+ return b.Ia && c && r.na(d) && b.Ia.Ca < f.IN && d > f.U6;
+ break;
+ case 1:
+ var M1P = "i";
+ M1P += "q";
+ M1P += "r";
+ e60 = a === M1P ? 5 : 9;
+ break;
+ case 9:
+ var Z1P = "a";
+ Z1P += "v";
+ Z1P += "g";
+ e60 = a === Z1P ? 8 : 3;
+ break;
+ case 3:
+ return !1;
+ break;
+ case 8:
+ return b.Ia ? b.Ia.Ca < f.IN : !0;
+ break;
+ }
+ }
+ };
+ a.prototype.Mrb = function (a) {
+ var f60;
+ f60 = 2;
+ for (; f60 !== 1; ) {
+ switch (f60) {
+ case 2:
+ return 1 === a ? this.rW.JQ : this.rW.vw;
+ break;
+ }
+ }
+ };
+ a.prototype.yJ = function (a) {
+ var g60;
+ g60 = 2;
+ for (; g60 !== 1; ) {
+ switch (g60) {
+ case 2:
+ this.rW.yJ(a);
+ g60 = 1;
+ break;
+ }
+ }
+ };
+ a.prototype.Vbb = function (a, b, c, d, h, k) {
+ var h60,
+ f;
+ h60 = 2;
+ for (; h60 !== 5; ) {
+ switch (h60) {
+ case 2:
+ f = this.K;
+ f.G4 && this.gab(b) || !c || !d || !(c = k ? Math.min(c, d, k) : Math.min(c, d)) || (this.bc.get(), d = this.eb.sa, a = d.us(d.Xb, a), b.track.eo() && a > f.Kca && c === h ? (f.set ? (f.set({
+ pipelineEnabled: !0
+ }), f.set({
+ maxParallelConnections: 1
+ }), f.set({
+ maxActiveRequestsPerSession: 2
+ }), f.set({
+ maxPendingBufferLen: 500
+ })) : (f.xp = !0, f.kI = 1, f.Us = 2, f.bz = 500), b.track.J2({
+ type: b.track.config.type,
+ connections: 1,
+ openRange: !1,
+ pipeline: !0,
+ socketBufferSize: f.fK,
+ minRequestSize: f.vI
+ }), this.ipa++, f.G4 && (this.EW = !0)) : f.xp && !b.eo() && (a < f.Jca || c !== h) && (f.set ? (f.set({
+ pipelineEnabled: !0
+ }), f.set({
+ maxParallelConnections: 3
+ }), f.set({
+ maxActiveRequestsPerSession: 3
+ }), f.set({
+ maxPendingBufferLen: 12E3
+ })) : (f.xp = !0, f.kI = 3, f.Us = 3, f.bz = 12E3), b.track.J2({
+ type: b.config.type,
+ connections: 3,
+ openRange: !1,
+ pipeline: !0,
+ socketBufferSize: f.fK,
+ minRequestSize: f.vI
+ }), this.jpa++, f.G4 && (this.FW = !0)));
+ h60 = 5;
+ break;
+ }
+ }
+ };
+ W50 = 6;
+ break;
+ case 2:
+ Object.defineProperties(a.prototype, {
+ l0: {
+ get: function () {
+ var a60;
+ a60 = 2;
+ for (; a60 !== 1; ) {
+ switch (a60) {
+ case 2:
+ return this.vaa;
+ break;
+ }
+ }
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ Kma: {
+ get: function () {
+ var b60;
+ b60 = 2;
+ for (; b60 !== 1; ) {
+ switch (b60) {
+ case 2:
+ return this.vDa;
+ break;
+ }
+ }
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ a.prototype.PVa = function (a, b, c) {
+ var c60;
+ c60 = 2;
+ for (; c60 !== 4; ) {
+ switch (c60) {
+ case 2:
+ this.Mq = a;
+ r.X(b) || (this.aNa = b);
+ r.X(c) || (this.J_ = c);
+ c60 = 4;
+ break;
+ }
+ }
+ };
+ W50 = 4;
+ break;
+ case 6:
+ a.prototype.$bb = function (a, b) {
+ var i60,
+ c,
+ f,
+ d;
+ i60 = 2;
+ for (; i60 !== 7; ) {
+ switch (i60) {
+ case 9:
+ (this.ol.Tu[d] = a, this.ol.Nw[d] = b);
+ i60 = 8;
+ break;
+ case 2:
+ c = this.K;
+ i60 = 1;
+ break;
+ case 1:
+ i60 = this.JCa ? 5 : 7;
+ break;
+ case 3:
+ i60 = void 0 === f || c > f ? 9 : 8;
+ break;
+ case 8:
+ this.ol.sja = c;
+ i60 = 7;
+ break;
+ case 5:
+ void 0 === this.ol && (this.ol = {
+ startTime: p.time.ea(),
+ Tu: [],
+ Nw: [],
+ zja: void 0,
+ sja: void 0
+ });
+ (c = Math.floor((p.time.ea() - this.ol.startTime) / c.HB), f = this.ol.sja, d = this.ol.zja ? c - this.ol.zja - 1 : c);
+ i60 = 3;
+ break;
+ }
+ }
+ };
+ a.prototype.gBb = function () {
+ var j60,
+ a,
+ k60;
+ j60 = 2;
+ for (; j60 !== 4; ) {
+ switch (j60) {
+ case 9:
+ a = this.eb;
+ j60 = 9;
+ break;
+ j60 = 1;
+ break;
+ case 2:
+ a = this.eb;
+ j60 = 1;
+ break;
+ case 1:
+ j60 = this.Px.fp ? 5 : 4;
+ break;
+ case 8:
+ j60 = this.Px.fp ? 7 : 1;
+ break;
+ j60 = this.Px.fp ? 5 : 4;
+ break;
+ case 5:
+ try {
+ k60 = 2;
+ for (; k60 !== 1; ) {
+ switch (k60) {
+ case 2:
+ (this.bc.dGb(), this.vDa.yc());
+ k60 = 1;
+ break;
+ }
+ }
+ } catch (u) {
+ var m1P = "Hinds";
+ m1P += "ight: E";
+ m1P += "rror during cl";
+ m1P += "ean up: ";
+ a000.s4P(3);
+ a.Va.Mm(a000.X4P(u, m1P));
+ }
+ j60 = 4;
+ break;
+ }
+ }
+ };
+ a.prototype.sBb = function (a) {
+ var l60;
+ l60 = 2;
+ for (; l60 !== 1; ) {
+ switch (l60) {
+ case 2:
+ this.K.gH && a === h.Na.VIDEO && (this.jpa = this.ipa = this.kWa = this.lWa = this.cSa = this.dSa = 0);
+ l60 = 1;
+ break;
+ }
+ }
+ };
+ a.prototype.qBb = function (a, b) {
+ var m60;
+ m60 = 2;
+ for (; m60 !== 1; ) {
+ switch (m60) {
+ case 2:
+ a === h.Na.VIDEO && (this.sOb = b);
+ m60 = 1;
+ break;
+ }
+ }
+ };
+ a.prototype.agb = function (a) {
+ var n60,
+ b,
+ c,
+ f,
+ d,
+ k;
+ n60 = 2;
+ for (; n60 !== 8; ) {
+ switch (n60) {
+ case 1:
+ var N1P = "n";
+ N1P += "o";
+ N1P += "n";
+ N1P += "e";
+ n60 = N1P !== b.Nz && !0 !== this.np && a.state <= b.ska ? 5 : 8;
+ break;
+ case 2:
+ b = this.K;
+ n60 = 1;
+ break;
+ case 5:
+ var Y1P = "i";
+ Y1P += "q";
+ Y1P += "r";
+ c = this.bc.get();
+ Y1P === b.Nz && (f = this.lCa(c), void 0 !== f && void 0 !== f.Sk && void 0 !== f.sj && void 0 !== f.Tk && (d = (f.Tk - f.Sk) / f.sj));
+ k = b.hQ ? h.Xe.nA : h.Xe.oA;
+ c && c.Dd >= k && this.waa(b.Nz, c, f, d) && (this.np = !0, this.XX = a.state);
+ n60 = 8;
+ break;
+ }
+ }
+ };
+ a.prototype.wcb = function (a) {
+ var o60;
+ o60 = 2;
+ for (; o60 !== 1; ) {
+ switch (o60) {
+ case 2:
+ a.np = this.np;
+ o60 = 1;
+ break;
+ }
+ }
+ };
+ W50 = 20;
+ break;
+ case 20:
+ a.prototype.Wnb = function (a) {
+ var p60,
+ g,
+ b,
+ c,
+ f,
+ d,
+ k,
+ m,
+ l;
+ p60 = 2;
+ for (; p60 !== 15; ) {
+ switch (p60) {
+ case 12:
+ p60 = g ? 11 : 19;
+ break;
+ case 14:
+ b.histdiscbw = this.Mq;
+ g = this.J_;
+ p60 = 12;
+ break;
+ case 9:
+ b.actualbw = k;
+ b.isConserv = this.np;
+ b.ccs = this.XX;
+ b.isLowEnd = this.Avb;
+ p60 = 14;
+ break;
+ case 2:
+ var d1P = "start";
+ d1P += "pla";
+ d1P += "y";
+ var l1P = "lo";
+ l1P += "gdat";
+ l1P += "a";
+ (b = {}, c = this.K, f = this.eb, d = {
+ type: l1P,
+ target: d1P,
+ fields: {}
+ });
+ d.fields = b;
+ Object.keys(a).forEach(function (c) {
+ var q60;
+ q60 = 2;
+ for (; q60 !== 1; ) {
+ switch (q60) {
+ case 2:
+ b[c] = a[c];
+ q60 = 1;
+ break;
+ }
+ }
+ });
+ k = this.bc.get();
+ k && k.Ia && (k = k.Ia.Ca);
+ p60 = 9;
+ break;
+ case 11:
+ (m = function (a) {
+ var r60;
+ r60 = 2;
+ for (; r60 !== 1; ) {
+ switch (r60) {
+ case 2:
+ return r.na(a) ? Number(a).toFixed(2) : -1;
+ break;
+ }
+ }
+ }, k = [m(g.min || void 0), m(g.Jla || void 0), m(g.Sk || void 0), m(g.sj || void 0), m(g.Tk || void 0), m(g.Kla || void 0), m(g.max || void 0)], l = [], g = r.isArray(g.yh) && g.yh.reduce(function (a, b) {
+ var s60,
+ c;
+ s60 = 2;
+ for (; s60 !== 3; ) {
+ switch (s60) {
+ case 4:
+ return a;
+ break;
+ case 2:
+ c = m(b.tf || void 0);
+ b = m(b.n || void 0);
+ -1 < c && -1 < b && a.push({
+ mean: c,
+ n: b
+ });
+ s60 = 4;
+ break;
+ }
+ }
+ }, l));
+ b.histtdc = g;
+ p60 = 20;
+ break;
+ case 19:
+ b.histage = this.aNa;
+ c.ifa && this.EF && (b.ishighstable = this.vaa, b.avg_avtp = this.EF.CFa, b.avg_ne = Number(this.EF.DFa).toFixed(4));
+ f.Fb && (c = p.Ik(), b.maxAudioBufferAllowedBytes = c[h.Na.AUDIO], b.maxVideoBufferAllowedBytes = c[h.Na.VIDEO]);
+ f.emit(d.type, d);
+ p60 = 15;
+ break;
+ case 20:
+ b.histtd = k;
+ p60 = 19;
+ break;
+ }
+ }
+ };
+ a.prototype.Xnb = function (a) {
+ var t60,
+ k,
+ g,
+ m,
+ b,
+ c,
+ f,
+ d;
+ t60 = 2;
+ for (; t60 !== 6; ) {
+ switch (t60) {
+ case 1:
+ [h.Na.VIDEO, h.Na.AUDIO].forEach(function (a) {
+ var u60,
+ k;
+ u60 = 2;
+ for (; u60 !== 4; ) {
+ switch (u60) {
+ case 2:
+ u60 = b.nb(a) ? 1 : 4;
+ break;
+ case 1:
+ k = b.eb.dMa(a);
+ void 0 !== k && (a === h.Na.VIDEO && (c.gH && (k.parallelDownloadMs = b.dSa, k.parallelDownloadBytes = b.cSa, k.singleDownloadMs = b.lWa, k.singleDownloadBytes = b.kWa, k.switchFromParallelToSingle = b.ipa, k.switchFromSingleToParallel = b.jpa), f && f.Dd && f.Ia && (k.asetput = f.Ia, k.aseiqr = f.Oq, k.tdigest = f.Ri && f.Ri.Bv() || void 0), f && f.avtp && (k.avtp = f.avtp.Ca)), d.push(k));
+ u60 = 4;
+ break;
+ }
+ }
+ });
+ a.stat = d;
+ (k = 0, g = 0, m = 0);
+ t60 = 3;
+ break;
+ case 2:
+ (b = this, c = this.K, f = this.bc.get(), d = []);
+ t60 = 1;
+ break;
+ case 3:
+ var I1P = "n";
+ I1P += "o";
+ I1P += "n";
+ I1P += "e";
+ f.Dd && (k = f.Ia ? f.Ia.Ca : 0, g = f.Lh ? f.Lh.Ca : 0, m = f.Nq ? f.Nq.Ca : 0);
+ a.location = {
+ responseTime: g,
+ httpResponseTime: m,
+ bandwidth: k,
+ confidence: f.Dd,
+ name: this.sOb
+ };
+ this.JCa && (a.bt = {
+ startTime: this.ol.startTime,
+ audioMs: this.ol.Tu,
+ videoMs: this.ol.Nw
+ }, this.ol.Tu = [], this.ol.Nw = [], this.ol.zja = this.ol.sja);
+ I1P !== c.Nz && (a.isConserv = this.np, a.ccs = this.XX);
+ t60 = 6;
+ break;
+ }
+ }
+ };
+ a.prototype.gab = function (a) {
+ var v60,
+ b;
+ v60 = 2;
+ for (; v60 !== 6; ) {
+ switch (v60) {
+ case 1:
+ v60 = this.EW && a.eo() ? 5 : 4;
+ break;
+ case 3:
+ v60 = this.FW && b.xp && !a.eo() ? 9 : 8;
+ break;
+ case 5:
+ return !0;
+ break;
+ case 2:
+ b = this.K;
+ v60 = 1;
+ break;
+ case 9:
+ return !0;
+ break;
+ case 4:
+ this.EW && (this.EW = !1);
+ v60 = 3;
+ break;
+ case 7:
+ return !1;
+ break;
+ case 8:
+ this.FW && (this.FW = !1);
+ v60 = 7;
+ break;
+ }
+ }
+ };
+ W50 = 17;
+ break;
+ case 17:
+ a.prototype.lCa = function (a) {
+ var w60,
+ x60;
+ w60 = 2;
+ for (; w60 !== 4; ) {
+ switch (w60) {
+ case 12:
+ w60 = 10;
+ break;
+ w60 = 9;
+ break;
+ case 5:
+ return a;
+ break;
+ case 14:
+ return a;
+ break;
+ w60 = 4;
+ break;
+ case 3:
+ w60 = 9;
+ break;
+ case 1:
+ a = a.Ri;
+ w60 = 5;
+ break;
+ case 2:
+ var g1P = "td";
+ g1P += "i";
+ g1P += "ge";
+ g1P += "st";
+ x60 = this.K.iia;
+ w60 = x60 === g1P ? 1 : 3;
+ break;
+ case 9:
+ a = a.Oq && a.Oq.d2;
+ w60 = 5;
+ break;
+ }
+ }
+ };
+ a.prototype.z9a = function (a, b, c) {
+ var y60,
+ f;
+ y60 = 2;
+ for (; y60 !== 3; ) {
+ switch (y60) {
+ case 2:
+ f = this.K;
+ this.waa(f.Nz, a, b, c) ? this.np = !0 : this.np = !1;
+ this.XX = 0;
+ this.waa(f.Vja, a, b, c) && (this.Avb = !0);
+ y60 = 3;
+ break;
+ }
+ }
+ };
+ return a;
+ break;
+ }
+ }
+ })();
+ b.Kqa = d;
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Eza = void 0;
+ d = (function () {
+ function a(a, b, d, g, h, p, m, f, u, n) {
+ var c;
+ c = this;
+ this.id = a;
+ this.O = b;
+ this.T = d;
+ this.cO = h;
+ this.Sj = p;
+ this.or = m;
+ this.i4 = f;
+ this.Wk = u;
+ this.ve = n;
+ this.l_ = function (a) {
+ var b,
+ f;
+ return (null === (f = null === (b = c.Sj) || void 0 === b ? void 0 : b[a]) || void 0 === f ? void 0 : f.tMb) || c.ve;
+ };
+ this.oa = g || Infinity;
+ }
+ Object.defineProperties(a.prototype, {
+ ma: {
+ get: function () {
+ return this.O.ma;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ a.prototype.WKa = function () {
+ var a,
+ b,
+ d;
+ a = this;
+ d = Object.keys(this.Sj || ({})).filter(function (b) {
+ var c,
+ d;
+ return !(null === (d = null === (c = a.Sj) || void 0 === c ? void 0 : c[b]) || void 0 === d || !d.weight);
+ });
+ return d.length ? null !== (b = d.map(this.l_).reduce(function (a, b) {
+ return a === b ? b : void 0;
+ })) && void 0 !== b ? b : this.ve : this.ve;
+ };
+ a.prototype.toString = function () {
+ return "segmentId: " + this.id + " playlistSegmentId: " + this.Wk + " viewableId: " + this.O.ma + " pts: " + this.T + "-" + this.oa + " defaultKey: " + this.cO + " dests: " + JSON.stringify(this.Sj) + " terminal: " + !!this.or;
+ };
+ a.prototype.toJSON = function () {
+ return {
+ id: this.id,
+ viewable: this.O.ma,
+ "startPts:": this.T,
+ endPts: this.oa,
+ defaultKey: this.cO,
+ "dests:": this.Sj,
+ terminal: !!this.or,
+ playlistSegmentId: this.Wk
+ };
+ };
+ return a;
+ })();
+ b.Eza = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ g;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.rva = void 0;
+ c = a(0);
+ k = a(44);
+ d = a(397);
+ g = a(375);
+ a = (function (a) {
+ function b() {
+ return null !== a && a.apply(this, arguments) || this;
+ }
+ c.__extends(b, a);
+ b.prototype.Clb = function (b) {
+ a.prototype.u0.call(this, {
+ value: b
+ });
+ };
+ b.prototype.TNa = function () {
+ return !0;
+ };
+ b.prototype.Soa = function () {};
+ b.prototype.u0 = function (b) {
+ a.prototype.u0.call(this, b);
+ b.done && (b = this.YF.kY, k.Oa && this.u.trace("Requests drained", {
+ IWb: b && b.aa.id
+ }), (b = b && b.kb(this.De)) && b instanceof g.aU && b.FG(this.$p.Uga() || 0));
+ };
+ return b;
+ })(d.W4);
+ b.rva = a;
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.tva = void 0;
+ d = (function () {
+ function a(a, b, d, g, h, p, m, f) {
+ this.Gc = a;
+ this.UFa = b;
+ this.config = d;
+ this.console = g;
+ this.L = h;
+ this.Va = p;
+ this.Ja = m;
+ this.tb = f;
+ this.gn = this.Pg = !1;
+ }
+ a.prototype.FG = function (a, b) {
+ !this.Gc.aa.or || this.tb.MF || this.tb.qW && !this.config.aca || (a -= this.Gc.pe, this.Pg && !this.gn && a + this.config.JLb >= b && 0 === this.Ja.qw && 0 === this.Ja.Rt && 0 === this.Ja.QEb && (b = this.tb.Qd.O.Za, a = this.tb.CH(), b + 1 < a || (this.UFa[this.L].YWa || this.Va.q$a(this.L), this.gn = !0, this.UFa[this.L].I1())));
+ };
+ return a;
+ })();
+ b.tva = d;
+ }, function (d, b, a) {
+ var c;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Iqa = void 0;
+ c = a(44);
+ d = (function () {
+ function a(a) {
+ this.console = a;
+ this.fB = [];
+ this.Lx = [];
+ c.Oa && this.console.trace("Received pending adoption " + this.vj.length);
+ }
+ Object.defineProperties(a.prototype, {
+ length: {
+ get: function () {
+ return this.fB.length;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ vj: {
+ get: function () {
+ return this.Lx;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ a.prototype.nyb = function (a) {
+ a = this.Lx.indexOf(a);
+ -1 !== a && (c.Oa && this.console.trace("Marking request attached"), this.fB[a].PNa = !0, this.jYa(a));
+ };
+ a.prototype.oyb = function (a) {
+ a = this.Lx.indexOf(a);
+ -1 !== a && (c.Oa && this.console.trace("Marking request completed"), this.fB[a].Mv = !0, this.jYa(a));
+ };
+ a.prototype.pGb = function (a) {
+ var b,
+ c;
+ b = this;
+ c = [];
+ this.Lx.forEach(function (b, d) {
+ a(b) && c.unshift(d);
+ });
+ c.forEach(function (a) {
+ b.Lx.splice(a, 1);
+ b.fB.splice(a, 1);
+ });
+ };
+ a.prototype.push = function (a) {
+ this.Lx.push(a);
+ this.fB.push({
+ PNa: !1,
+ Mv: !1
+ });
+ c.Oa && this.console.trace("Pushing pending request, " + this.length + " total");
+ };
+ a.prototype.zC = function () {
+ return 0 < this.length;
+ };
+ a.prototype.jYa = function (a) {
+ var b;
+ b = this.fB[a];
+ b.PNa && b.Mv && (b = this.Lx[a], this.Lx.splice(a, 1), this.fB.splice(a, 1), c.Oa && this.console.trace("Removing request, " + this.length + " left"), 0 === this.length && c.Oa && this.console.trace("Removing last request, contentEndPts: " + b.Qb));
+ };
+ return a;
+ })();
+ b.Iqa = d;
+ }, function (d, b, a) {
+ var c;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.qya = void 0;
+ c = a(4).Promise;
+ d = (function () {
+ function a(a, b, c) {
+ var d;
+ this.qdb = a;
+ this.Qaa = b;
+ this.w8a = c;
+ this.haa = (d = {}, d[0] = !1, d[1] = !1, d);
+ this.reset();
+ }
+ a.prototype.dv = function () {
+ var a,
+ b;
+ a = this;
+ b = this.qdb.filter(function (b) {
+ return !b.TNa(a.w8a());
+ });
+ 0 === b.length && this.xaa ? this.o$a() : b.forEach(function (b) {
+ a.haa[b.L] || (b.once("requestAppended", function () {
+ a.haa[b.L] = !1;
+ a.dv();
+ }), a.haa[b.L] = !0);
+ });
+ };
+ a.prototype.reset = function () {
+ var a;
+ a = this;
+ this.xaa = !1;
+ new c(function (b) {
+ a.o$a = b;
+ }).then(function () {
+ return a.Qaa();
+ });
+ };
+ a.prototype.pyb = function () {
+ this.xaa || (this.xaa = !0, this.dv());
+ };
+ return a;
+ })();
+ b.qya = d;
+ }, function (d, b, a) {
+ var c,
+ k;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Wqa = void 0;
+ c = a(16);
+ k = a(11);
+ d = (function () {
+ function a(a) {
+ this.MB = a;
+ this.state = new k.iu(c.pa.Sg);
+ this.Nk = {};
+ }
+ a.prototype.Wc = function () {
+ return this.state.value;
+ };
+ a.prototype.ke = function (a) {
+ this.state.set(a);
+ };
+ a.prototype.addListener = function (a) {
+ this.state.addListener(a);
+ };
+ a.prototype.paused = function () {
+ this.state.value === c.pa.Sc && this.state.set(c.pa.$i);
+ };
+ a.prototype.sS = function () {
+ this.state.value === c.pa.$i && this.state.set(c.pa.Sc);
+ };
+ a.prototype.tOa = function () {
+ return this.state.value === c.pa.Sg;
+ };
+ a.prototype.Sy = function () {
+ return "function" === typeof this.MB.Sy ? this.MB.Sy() : this.state.value === c.pa.Sc;
+ };
+ a.prototype.Ih = function () {
+ return this.state.value === c.pa.Xd || this.state.value === c.pa.gf;
+ };
+ a.prototype.Hg = function () {
+ return this.state.value === c.pa.Bo;
+ };
+ a.prototype.uOa = function () {
+ return this.state.value === c.pa.eF;
+ };
+ a.prototype.Sd = function () {
+ return this.MB.Sd();
+ };
+ a.prototype.Am = function () {
+ return "function" === typeof this.MB.Am ? this.MB.Am() : 1;
+ };
+ a.prototype.$ga = function () {
+ return this.MB.$ga();
+ };
+ a.prototype.moa = function (a, b) {
+ this.Nk[a] = b;
+ };
+ a.prototype.Ov = function (a) {
+ return !!this.Nk[a.G] || a.ij;
+ };
+ return a;
+ })();
+ b.Wqa = d;
+ }, function (d, b, a) {
+ var c,
+ k;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.cta = void 0;
+ c = a(8);
+ k = a(160);
+ d = (function () {
+ var z60;
+ z60 = 2;
+ for (; z60 !== 7; ) {
+ switch (z60) {
+ case 3:
+ a.prototype.JBa = function (a, b, c, d, f) {
+ var I60,
+ h,
+ g;
+ I60 = 2;
+ for (; I60 !== 7; ) {
+ switch (I60) {
+ case 2:
+ var z1P = "transpo";
+ z1P += "rtr";
+ z1P += "e";
+ z1P += "port";
+ var Q1P = "e";
+ Q1P += "r";
+ Q1P += "r";
+ Q1P += "or";
+ var e1P = "ne";
+ e1P += "two";
+ e1P += "r";
+ e1P += "kfa";
+ e1P += "iling";
+ var i1P = "crea";
+ i1P += "t";
+ i1P += "ed";
+ (h = this, g = k.xo.Lf.VB(a, b, !0, c, d, f));
+ g.dh.on(g, i1P, function () {
+ var J60;
+ J60 = 2;
+ for (; J60 !== 5; ) {
+ switch (J60) {
+ case 2:
+ var W1P = "crea";
+ W1P += "teDlTr";
+ W1P += "ack";
+ W1P += "sEnd";
+ --h.jB;
+ 0 === h.jB && h.El.Va.zk(W1P);
+ J60 = 5;
+ break;
+ }
+ }
+ });
+ g.dh.on(g, e1P, function () {
+ var K60,
+ a;
+ K60 = 2;
+ for (; K60 !== 9; ) {
+ switch (K60) {
+ case 2:
+ var v1P = "re";
+ v1P += "portNetwork";
+ v1P += "Failing: ";
+ f.ah && h.Wg.Qk(v1P + g);
+ K60 = 1;
+ break;
+ case 1:
+ K60 = g.fZ ? 5 : 9;
+ break;
+ case 5:
+ a = h.El.Qd.O;
+ a.Bh && a.Bh.Bp(g.Jfa, void 0, g.Dh, g.qj);
+ a.Op();
+ K60 = 9;
+ break;
+ }
+ }
+ });
+ g.dh.on(g, Q1P, function () {
+ var L60;
+ L60 = 2;
+ for (; L60 !== 5; ) {
+ switch (L60) {
+ case 2:
+ var q1P = "NFErr_MC_StreamingFail";
+ q1P += "ur";
+ q1P += "e";
+ var O1P = "Dow";
+ O1P += "nl";
+ O1P += "oadTrac";
+ O1P += "k fata";
+ O1P += "l error";
+ var h1P = "DownloadTrack f";
+ h1P += "atal err";
+ h1P += "or";
+ f.ah && h.Wg.Qk(h1P);
+ h.El.ul(O1P, void 0, q1P, g.Dh, 0, g.qj);
+ L60 = 5;
+ break;
+ }
+ }
+ });
+ g.on(z1P, function (a) {
+ var M60;
+ M60 = 2;
+ for (; M60 !== 1; ) {
+ switch (M60) {
+ case 4:
+ h.El.emit("", a);
+ M60 = 5;
+ break;
+ M60 = 1;
+ break;
+ case 2:
+ var E1P = "t";
+ E1P += "ransport";
+ E1P += "report";
+ h.El.emit(E1P, a);
+ M60 = 1;
+ break;
+ }
+ }
+ });
+ g.Eb();
+ return g;
+ break;
+ }
+ }
+ };
+ a.prototype.C8a = function (a) {
+ var N60,
+ b;
+ N60 = 2;
+ for (; N60 !== 9; ) {
+ switch (N60) {
+ case 2:
+ a = this.El.$a.Ue[a];
+ b = a.al;
+ b.sm || --this.jB;
+ N60 = 4;
+ break;
+ case 4:
+ k.xo.Lf.hO(b);
+ a.al = void 0;
+ N60 = 9;
+ break;
+ }
+ }
+ };
+ return a;
+ break;
+ case 2:
+ a.prototype.r8a = function (a, b) {
+ var B60,
+ c,
+ d;
+ B60 = 2;
+ for (; B60 !== 8; ) {
+ switch (B60) {
+ case 5:
+ this.jB += a.length;
+ a = a.map(function (a) {
+ var C60;
+ C60 = 2;
+ for (; C60 !== 1; ) {
+ switch (C60) {
+ case 2:
+ return c.JBa(a, b.G, b.Lv(), c.El.ql, d);
+ break;
+ }
+ }
+ });
+ k.xo.Lf.Ge();
+ B60 = 9;
+ break;
+ case 2:
+ var P1P = "creat";
+ P1P += "eDl";
+ P1P += "Tracks";
+ P1P += "Start";
+ (c = this, d = this.El.K);
+ 0 === this.jB && this.El.Va.zk(P1P);
+ B60 = 5;
+ break;
+ case 9:
+ return a;
+ break;
+ }
+ }
+ };
+ a.prototype.D8a = function () {
+ var D60,
+ a,
+ b;
+ D60 = 2;
+ for (; D60 !== 3; ) {
+ switch (D60) {
+ case 2:
+ (a = this, b = []);
+ this.El.$a.Ue.forEach(function (a) {
+ var E60;
+ E60 = 2;
+ for (; E60 !== 5; ) {
+ switch (E60) {
+ case 2:
+ c.X(a.al) || b.push(a.al);
+ a.al = void 0;
+ E60 = 5;
+ break;
+ }
+ }
+ });
+ this.El.cM && (b.push(this.El.cM), this.El.cM = void 0);
+ b.forEach(function (b) {
+ var F60;
+ F60 = 2;
+ for (; F60 !== 5; ) {
+ switch (F60) {
+ case 2:
+ b.sm || --a.jB;
+ k.xo.Lf.hO(b);
+ F60 = 5;
+ break;
+ }
+ }
+ });
+ D60 = 3;
+ break;
+ }
+ }
+ };
+ a.prototype.y9a = function () {
+ var G60;
+ G60 = 2;
+ for (; G60 !== 1; ) {
+ switch (G60) {
+ case 2:
+ this.jB = 0;
+ G60 = 1;
+ break;
+ }
+ }
+ };
+ a.prototype.zDa = function (a, b) {
+ var H60,
+ c,
+ d;
+ H60 = 2;
+ for (; H60 !== 5; ) {
+ switch (H60) {
+ case 2:
+ (c = this.El.$a.Ue[a], d = c.al);
+ d && (d = b.Dba(a, d), this.C8a(a), c.al = this.JBa(a, b.G, b.Lv(), this.El.ql, this.El.K), b.yna(d));
+ H60 = 5;
+ break;
+ }
+ }
+ };
+ z60 = 3;
+ break;
+ }
+ }
+ function a(a, b, c) {
+ var A60;
+ A60 = 2;
+ for (; A60 !== 3; ) {
+ switch (A60) {
+ case 2:
+ var U1P = "1S";
+ U1P += "IYbZr";
+ U1P += "N";
+ U1P += "J";
+ U1P += "Cp9";
+ this.El = a;
+ this.u = b;
+ this.Wg = c;
+ U1P;
+ A60 = 3;
+ break;
+ }
+ }
+ }
+ })();
+ b.cta = d;
+ }, function (d, b, a) {
+ var c;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.psa = void 0;
+ c = a(377);
+ d = (function () {
+ var O60;
+ O60 = 2;
+ for (; O60 !== 3; ) {
+ switch (O60) {
+ case 2:
+ a.prototype.I7a = function (a, b) {
+ var Q60,
+ d;
+ Q60 = 2;
+ for (; Q60 !== 14; ) {
+ switch (Q60) {
+ case 5:
+ Q60 = d && d.streamingClientConfig && Object.keys(d.streamingClientConfig).length ? 4 : 3;
+ break;
+ case 9:
+ Q60 = !a ? 8 : 7;
+ break;
+ case 3:
+ a = a.cdnResponseData;
+ Q60 = 9;
+ break;
+ case 7:
+ var r2P = "using sab cell >= 100, pipel";
+ r2P += "ineEnabl";
+ r2P += "e";
+ r2P += "d: ";
+ var K1P = "using sab c";
+ K1P += "ell >= 200, pip";
+ K1P += "elineEnabled: ";
+ var D1P = ", a";
+ D1P += "llowS";
+ D1P += "wi";
+ D1P += "tchb";
+ D1P += "ack";
+ var w1P = ", pro";
+ w1P += "beDetail";
+ w1P += "Denomi";
+ w1P += "nat";
+ w1P += "or: ";
+ var L1P = "using sab cel";
+ L1P += "l >= 300, pro";
+ L1P += "beServerWhenError: ";
+ var S1P = ", allowSwit";
+ S1P += "ch";
+ S1P += "back";
+ var p1P = ", probeD";
+ p1P += "etai";
+ p1P += "lDenomina";
+ p1P += "tor: ";
+ var C1P = "using";
+ C1P += " sab cell >= ";
+ C1P += "400, probeServerWhenError: ";
+ (a = a.sessionABTestCell) && (a = a.split(".")) && 1 < a.length && (a = parseInt(a[1].replace(/cell/i, ""), 10), 400 <= a ? (b.set ? (b.set({
+ probeServerWhenError: !0
+ }), b.set({
+ probeDetailDenominator: 1
+ }), b.set({
+ allowSwitchback: !0
+ })) : (b.er = !0, b.vD = 1, b.Pu = !0), this.u.trace(C1P + b.er + p1P + b.vD + S1P + b.Pu)) : 300 <= a ? (b.set ? (b.set({
+ probeServerWhenError: !0
+ }), b.set({
+ probeDetailDenominator: 1
+ }), b.set({
+ allowSwitchback: !1
+ })) : (b.er = !0, b.vD = 1, b.Pu = !1), this.u.trace(L1P + b.er + w1P + b.vD + D1P + b.Pu)) : 200 <= a ? (b.set ? b.set({
+ pipelineEnabled: !1
+ }) : b.xp = !1, this.u.trace(K1P + b.xp)) : 100 <= a && (b.set ? (b.set({
+ pipelineEnabled: !0
+ }), b.set({
+ maxParallelConnections: 1
+ }), b.set({
+ maxActiveRequestsPerSession: b.R0
+ }), b.set({
+ maxPendingBufferLen: b.V0
+ })) : (b.xp = !0, b.kI = 1, b.Us = b.R0, b.bz = b.V0), this.u.trace(r2P + b.xp)));
+ return b;
+ break;
+ case 4:
+ var u2P = "a";
+ u2P += "p";
+ u2P += "plying manifest based";
+ u2P += " streamingCl";
+ u2P += "ientConfig";
+ return (a = d.streamingClientConfig, this.u.trace(u2P + JSON.stringify(a)), this.eDa(b, a));
+ break;
+ case 2:
+ b = c.Pda(b, a);
+ d = a.steeringAdditionalInfo;
+ Q60 = 5;
+ break;
+ case 8:
+ return b;
+ break;
+ }
+ }
+ };
+ a.prototype.K7a = function (a, b) {
+ var R60;
+ R60 = 2;
+ for (; R60 !== 9; ) {
+ switch (R60) {
+ case 6:
+ return b;
+ break;
+ R60 = 5;
+ break;
+ case 2:
+ R60 = !b.Oda || a === this.G9a ? 1 : 5;
+ break;
+ case 1:
+ return b;
+ break;
+ case 5:
+ this.G9a = a;
+ for (var c in b.Oda) {
+ new RegExp(c).test(a) && (b = this.eDa(b, b.Oda[c]));
+ }
+ return b;
+ break;
+ }
+ }
+ };
+ a.prototype.eDa = function (a, b) {
+ var S60,
+ c,
+ d,
+ k;
+ S60 = 2;
+ for (; S60 !== 4; ) {
+ switch (S60) {
+ case 2:
+ for (d in b) {
+ if (b.hasOwnProperty(d)) {
+ var n2P = "In";
+ n2P += "va";
+ n2P += "lid ke";
+ n2P += "y";
+ k = b[d];
+ a.set ? 0 === a.set((c = {}, c[d] = k, c)) && this.u.trace(n2P + d) : a[d] = k;
+ }
+ }
+ return a;
+ break;
+ }
+ }
+ };
+ O60 = 4;
+ break;
+ case 4:
+ return a;
+ break;
+ }
+ }
+ function a(a) {
+ var P60;
+ P60 = 2;
+ for (; P60 !== 5; ) {
+ switch (P60) {
+ case 2:
+ var f2P = "1";
+ f2P += "SIYbZr";
+ f2P += "NJCp9";
+ this.u = a;
+ f2P;
+ P60 = 5;
+ break;
+ }
+ }
+ }
+ })();
+ b.psa = d;
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.rLa = void 0;
+ b.rLa = function (a) {
+ var b,
+ d,
+ g;
+ b = Math.floor(1E6 * Math.random());
+ d = a.gia;
+ g = a.gP;
+ a = 0 === b % a.hia && 0 < g.length;
+ return {
+ fp: a,
+ hH: a && 0 === b % d
+ };
+ };
+ }, function (d, b, a) {
+ var k;
+ function c(a) {
+ this.Hu = void 0;
+ this.X9a = a;
+ this.eba = [];
+ this.Be = [];
+ }
+ k = a(35).GC;
+ c.prototype.reset = function (a) {
+ this.Hu = void 0;
+ this.eba = [];
+ a && (this.Be = []);
+ };
+ c.prototype.add = function (a, b) {
+ var c,
+ d;
+ c = b.filter(function (b, c) {
+ return k(b) || c === a.ld;
+ });
+ d = c.map(function (a) {
+ return a.R;
+ });
+ b = c.indexOf(b[a.ld]);
+ this.Hu && (this.Hu.length !== d.length || this.Hu.some(function (a, b) {
+ return a !== d[b];
+ })) && (c = this.TKa()) && (this.Be.push(c), this.reset(!1));
+ void 0 === this.Hu && (this.Hu = d);
+ this.eba.push([b, a.lYa, a.Ub, a.ZFa, a.YFa, a.MDb, a.TAb, a.oz, a.Oo, a.Gi, a.xLb - a.lYa]);
+ };
+ c.prototype.Ymb = function () {
+ for (var a = this.eba, b = [], c = [], d = 0; d < a.length; d++) {
+ for (var k = a[d], f = [], g = 0; g < k.length; g++) {
+ f.push(k[g] - (c[g] || 0));
+ }
+ b.push(f);
+ c = k;
+ }
+ return b;
+ };
+ c.prototype.TKa = function () {
+ var a;
+ a = this.Ymb();
+ if (0 !== a.length)
+ return {
+ dltype: this.X9a,
+ bitrates: this.Hu,
+ seltrace: a
+ };
+ };
+ c.prototype.get = function () {
+ var a,
+ b;
+ a = this.TKa();
+ b = this.Be;
+ a && b.push(a);
+ if (0 !== b.length)
+ return b;
+ };
+ d.P = c;
+ }, function (d, b, a) {
+ var c,
+ k;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.fza = void 0;
+ c = a(19);
+ k = a(759);
+ d = (function () {
+ function a() {
+ this.RW = [];
+ this.RW[c.Na.VIDEO] = new k(c.Na.VIDEO);
+ this.RW[c.Na.AUDIO] = new k(c.Na.AUDIO);
+ }
+ a.prototype.Acb = function (a, b, c) {
+ this.RW[a].add(b, c);
+ };
+ a.prototype.tsb = function () {
+ var a;
+ a = [];
+ this.RW.forEach(function (b) {
+ var c;
+ if (b) {
+ c = b.get();
+ c && 0 < c.length && c.forEach(function (b) {
+ a.push(b);
+ });
+ b.reset(!0);
+ }
+ });
+ return a;
+ };
+ a.prototype.Vnb = function (a) {
+ var b;
+ b = this.tsb();
+ a.strmsel = b;
+ return 0 < b.length;
+ };
+ return a;
+ })();
+ b.fza = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ g;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.D7 = void 0;
+ c = a(18);
+ k = a(11);
+ g = a(239);
+ d = (function () {
+ function a(a, b, c, f, d, k, g, l, r, n, q, t) {
+ void 0 === c && (c = 0);
+ this.dd = a;
+ this.GW = b;
+ this.T = c;
+ this.oa = f;
+ this.MZ = d;
+ this.ng = k;
+ this.CH = g;
+ this.config = l;
+ this.u = r;
+ this.Va = n;
+ this.Lnb = q;
+ this.dh = t;
+ this.Ts = 0;
+ }
+ a.create = function (b) {
+ var f,
+ l,
+ r,
+ n,
+ q,
+ t,
+ M,
+ H,
+ G,
+ T,
+ S,
+ aa,
+ Z,
+ B,
+ V;
+ function d(a) {
+ return H.$a.Ys[a];
+ }
+ function h(a) {
+ k.Ka(H, a.type, a);
+ }
+ f = b.Za;
+ l = b.xa;
+ r = b.sVa;
+ n = b.T;
+ q = b.oa;
+ t = b.Ls;
+ M = b.Va;
+ H = b.tb;
+ G = b.config;
+ T = b.u;
+ S = b.pf;
+ aa = b.Tl;
+ Z = b.af;
+ B = b.My;
+ V = new g.VS({
+ ma: Number(l.movieId),
+ Za: f,
+ xa: l,
+ Wk: b.Wk,
+ nb: b.nb,
+ xka: {
+ i0: b.Kf,
+ Zia: !!b.dOa
+ },
+ ij: b.ij,
+ qs: b.qs,
+ config: G,
+ GR: G.eC ? {
+ kD: H.ql.kD,
+ ga: H.ql.ga,
+ sy: H.ql.sy,
+ Mm: M.Mm.bind(M),
+ Gq: d
+ }
+ : void 0,
+ Yha: {
+ Pc: S.Bi.bind(S),
+ af: Z,
+ My: B,
+ Ol: h,
+ e0: function (a) {
+ return a === H.sa.Xb.O;
+ },
+ g_: function (a, b, c, f, d) {
+ a = H.$a.Ue[a];
+ return !b || c || f || d ? H.cM : a.al;
+ },
+ Gq: d,
+ ng: H.ng.bind(H)
+ },
+ DI: function (a) {
+ H.emit("requestComplete", {
+ timestamp: a.ed,
+ mediaRequest: a
+ });
+ },
+ HO: function () {
+ return H.Ef;
+ },
+ zb: H.Fb.zb,
+ Mf: H.Fb.Mf,
+ vfa: {
+ Ls: t,
+ oh: function (a, b, c, d, h) {
+ H.ul(a, f, b, c, d, h);
+ },
+ Dm: function () {
+ return H.OW;
+ },
+ YH: H.Y.Ih.bind(H.Y),
+ Ol: h
+ },
+ GD: void 0
+ });
+ b = new c.Wi();
+ b.addListener(V.Ly, "onHeaderFragments", function (a) {
+ var b,
+ c,
+ d,
+ h,
+ k;
+ b = a.L;
+ c = a.wa;
+ d = a.stream.$;
+ h = H.ng(f);
+ if (h) {
+ if (V.qg[b] && a !== V.qg[b])
+ a.Es && (h = V.qg[b], a = a.stream, k = h && h.stream, T.warn("first header received for non-current track (trackId " + a.cb + "streamId " + a.wa + "), expected track " + (k && k.cb) + ", stream " + (k && k.wa) + ", " + h));
+ else {
+ V.qg[b] = a;
+ a = H.sa.Xb;
+ if (0 === f) {
+ k = V.nb(1) ? a.kb(1).Ub : a.kb(0).Ub;
+ a.HX(k, V);
+ }
+ h.TQ = !1;
+ h.FX();
+ H.XW();
+ }
+ aa.iaa();
+ M.C$a(f, b, c, V.G, d);
+ S.Bi();
+ } else
+ T.warn("addFragments for stale manifestIndex:", f);
+ });
+ b.addListener(V.Ly, "onHeaderRequestComplete", function (a) {
+ var b,
+ c;
+ a.Uj ? H.XW() : a.uy && (T.warn("drm header header:", a.toString(), "but no headers seen, marking pipeline drmReady"), H.MY(a.G));
+ b = a.L;
+ c = Object.getOwnPropertyNames(B.Xr[b]);
+ H.Ff[b].mRa(a.stream, 1 === c.length && c[0] === a.wa);
+ S.WBa();
+ H.EGb();
+ });
+ b.addListener(V.Ly, "onHeaderFromCache", function (a) {
+ var b;
+ b = a.hp;
+ a = a.Aob;
+ b.Uj && H.XW();
+ a && M.t$a(b.G, b.wa);
+ });
+ return new a(V, r, n, q, function () {
+ return H.sa;
+ }, H.ng.bind(H), H.CH.bind(H), G, T, M, !1, b);
+ };
+ Object.defineProperties(a.prototype, {
+ O: {
+ get: function () {
+ return this.dd;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ Za: {
+ get: function () {
+ return this.O.Za;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ a.prototype.Yn = function (a) {
+ return this.dd.sMa(a, this.SZ(a));
+ };
+ a.prototype.SZ = function (a) {
+ return this.GW[a];
+ };
+ a.prototype.close = function () {
+ this.dh.clear();
+ this.O.close();
+ };
+ a.prototype.yc = function () {
+ this.dd.yc();
+ delete this.dd;
+ };
+ a.prototype.clone = function () {
+ return new a(this.O, this.GW, this.T, this.oa, this.MZ, this.ng, this.CH, this.config, this.u, this.Va, !0, this.dh);
+ };
+ a.prototype.Upa = function (a) {
+ this.u.trace("updateAudioTrack:", this.GW[0], "->", a);
+ this.GW[0] = a;
+ };
+ a.prototype.wLa = function () {
+ return void 0 !== this.dD ? this.dD : this.oa ? this.oa : this.dd.xa.duration;
+ };
+ a.prototype.yfb = function (a, b) {
+ var c,
+ f,
+ d,
+ h;
+ c = this.dd.qg[1];
+ if (c && c.stream.ge) {
+ if (this.wv && this.wv[1] && this.wv[1].T <= a && this.wv[1].oa > a)
+ return this.wv[1].Zc;
+ f = c.stream.$;
+ d = f.ym(a, void 0, !0);
+ h = void 0;
+ b && (a = c.stream.Hi(d).mZ(a)) && (h = a.Oc);
+ void 0 === h && (h = f.hi(d));
+ return h;
+ }
+ };
+ a.prototype.FX = function () {
+ var a,
+ b;
+ if (!this.TQ && this.MMa()) {
+ this.ila();
+ b = [0, 0];
+ 0 === this.Za || this.dd.Ie.SP || this.dd.Ie.replace || (a = this.ng(this.Za - 1), a = this.dd.G === a.dd.G, b = this.MZ().Xb, a = b.HX(this.T, this.O, b, a), b = a.$I);
+ this.T = b[1];
+ this.$I = b;
+ this.wv = a && a.wv;
+ this.jGa();
+ a = this.dd.nb(1) ? this.dd.qg[1].stream.$.oa : this.dd.qg[0].stream.$.oa;
+ this.Va.y$a(this.Za, this.Ts, this.T, this.dD, a);
+ this.TQ = !0;
+ for (a = this.Za + 1; a < this.CH(); ++a) {
+ b = this.ng(a);
+ b.TQ = !1;
+ b.FX();
+ }
+ }
+ };
+ a.prototype.jGa = function () {
+ var a;
+ if (0 === this.Za || this.dd.Ie.replace)
+ this.Ts = 0;
+ else {
+ a = this.ng(this.Za - 1);
+ this.Ts = a.Ts + a.wLa() - this.T;
+ }
+ };
+ a.prototype.ila = function () {
+ var a,
+ b,
+ c,
+ f,
+ d,
+ k,
+ g,
+ l;
+ if (this.MMa()) {
+ d = this.MZ().Xb;
+ k = this.oa || Infinity;
+ g = this.dd.nb(1);
+ l = d.AO(k, this.O);
+ this.dD = g ? l[1].oa : l[0].oa;
+ d = g ? this.dd.qg[1].stream.$.oa : this.dd.qg[0].stream.$.oa;
+ g = Math.min(null !== (b = null === (a = l[1]) || void 0 === a ? void 0 : a.oa) && void 0 !== b ? b : Infinity, null !== (f = null === (c = l[0]) || void 0 === c ? void 0 : c.oa) && void 0 !== f ? f : Infinity);
+ this.Va.A$a(this.Za, this.dD, d, g);
+ a = this.MZ().Nfa(this.Za);
+ 0 < a.length && a.forEach(function (a) {
+ a.bNb(l, k);
+ });
+ }
+ };
+ a.prototype.MMa = function () {
+ var a,
+ b,
+ c,
+ f;
+ a = this.dd.nb(0);
+ b = this.dd.nb(1);
+ c = this.dd.qg[0];
+ f = this.dd.qg[1];
+ c = c && c.stream.ge;
+ f = f && f.stream.ge;
+ return (!a || c) && (!b || f);
+ };
+ return a;
+ })();
+ b.D7 = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ g,
+ r,
+ h,
+ p,
+ m,
+ f,
+ u,
+ n,
+ q,
+ t,
+ C,
+ M,
+ H,
+ G,
+ T,
+ S,
+ aa,
+ Z,
+ B,
+ V,
+ z,
+ ia,
+ Y,
+ E,
+ X,
+ O,
+ na,
+ ha,
+ P,
+ N,
+ ja;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Kza = void 0;
+ c = a(18);
+ k = a(8);
+ g = a(170);
+ r = a(761);
+ h = a(225);
+ p = a(16);
+ m = a(240);
+ f = a(226);
+ u = a(220);
+ n = a(760);
+ q = a(758);
+ t = a(4);
+ C = t.Promise;
+ M = t.MediaSource;
+ H = a(11);
+ G = a(5);
+ T = a(166);
+ S = a(757);
+ aa = a(756);
+ Z = a(755);
+ B = a(398);
+ d = a(33);
+ V = a(754);
+ z = a(753);
+ ia = a(390);
+ Y = a(376);
+ E = a(751);
+ X = a(374);
+ O = a(749);
+ na = a(383);
+ ha = a(742);
+ P = a(741);
+ N = a(740);
+ ja = a(739);
+ a = (function () {
+ function a(a, b, d, h, k, g, m, l, p, u, w) {
+ var U60,
+ C,
+ M,
+ A,
+ V,
+ K;
+ U60 = 2;
+ for (; U60 !== 76; ) {
+ switch (U60) {
+ case 12:
+ var T2P = "b";
+ T2P += "ran";
+ T2P += "chi";
+ T2P += "n";
+ T2P += "g";
+ this.oHa = new S.psa(this.u);
+ (C = !(!b || !b.choiceMap || T2P !== b.choiceMap.type), M = C ? {
+ hH: !1,
+ fp: !1
+ }
+ : q.rLa(u));
+ this.hH = M.hH;
+ this.fp = M.fp;
+ this.op = new N.zva(this, this.u, this.nb.bind(this), M);
+ this.lbb = [!g.tOb, !g.CWb];
+ this.nb(0) && this.nb(1);
+ U60 = 16;
+ break;
+ case 16:
+ this.Fb = a;
+ this.ql = m;
+ this.K = u = this.oHa.I7a(b, u);
+ this.qW = g.sD;
+ this.cEa = !!g.$J;
+ this.Bbb = !!g.v4;
+ this.MF = g.LP;
+ U60 = 22;
+ break;
+ case 35:
+ this.JW = k || 0;
+ this.NF = 0;
+ this.F$ = l;
+ U60 = 32;
+ break;
+ case 22:
+ this.BW = void 0;
+ this.Y = new Z.Wqa(p);
+ U60 = 35;
+ break;
+ case 65:
+ this.Ef = new O.Kqa(this, this.u, a, this.Fb.zb, u, this.jI(), k, this.nb.bind(this), M);
+ U60 = 64;
+ break;
+ case 30:
+ this.eW = -1;
+ this.aba = 0;
+ this.Vf = new c.Wi();
+ this.Tl = new ha.Dza(this, this.u, this.nb.bind(this), K);
+ this.pf = new P.dta(this, this.u, this.nb.bind(this));
+ this.lO = new aa.cta(this, this.u, K);
+ U60 = 41;
+ break;
+ case 2:
+ A = this;
+ this.wx = new B.u9();
+ this.vBa = [];
+ this.My = {
+ Xr: [Object.create(null), Object.create(null)]
+ };
+ U60 = 3;
+ break;
+ case 61:
+ this.Ef.Vpa(this.K);
+ U60 = 60;
+ break;
+ case 52:
+ this.FVa = new f.bU(b, this.Fb.zb, this.Fb.Mf, this.K, void 0);
+ a = this.FVa.rsb();
+ k = null;
+ u.sO && (k = this.Fb.Kp.Fu);
+ T.Vt.Lf().reset();
+ U60 = 47;
+ break;
+ case 63:
+ u = u.Rtb;
+ for (var G in u) {
+ d = u[G];
+ u.hasOwnProperty(G) && d && (this.K[G] = d);
+ }
+ U60 = 61;
+ break;
+ case 37:
+ C && u.gH && !u.vmb && (u.set ? u.set({
+ enableAdaptiveParallelStreaming: !1
+ }) : u.gH = !1);
+ 0 === Math.floor(1E6 * Math.random()) % u.YM && (this.Hab = new n.fza());
+ this.as = [];
+ this.Ff = [];
+ U60 = 52;
+ break;
+ case 55:
+ V = this;
+ this.Y.addListener(function (a) {
+ var X60,
+ Y60;
+ X60 = 2;
+ for (; X60 !== 1; ) {
+ switch (X60) {
+ case 2:
+ try {
+ Y60 = 2;
+ for (; Y60 !== 1; ) {
+ switch (Y60) {
+ case 2:
+ V.$a.hNb.bind(V.$a)(a);
+ Y60 = 1;
+ break;
+ }
+ }
+ } catch (Ib) {
+ var H2P = "Hindsight: Error when addi";
+ H2P += "ng upd";
+ H2P += "atePlaySegmen";
+ H2P += "t Listener: ";
+ a000.o4P(3);
+ V.Va.Mm(a000.X4P(Ib, H2P));
+ }
+ X60 = 1;
+ break;
+ }
+ }
+ });
+ U60 = 76;
+ break;
+ case 38:
+ var B2P = "m";
+ B2P += "edia";
+ B2P += "ca";
+ B2P += "ch";
+ B2P += "e";
+ this.Vf.on(this.Fb.af, B2P, function (a) {
+ var W60;
+ W60 = 2;
+ for (; W60 !== 1; ) {
+ switch (W60) {
+ case 2:
+ var y2P = "m";
+ y2P += "e";
+ y2P += "diac";
+ y2P += "a";
+ y2P += "che";
+ H.Ka(A, y2P, a);
+ W60 = 1;
+ break;
+ }
+ }
+ });
+ U60 = 37;
+ break;
+ case 60:
+ G = b.O;
+ this.sa = new X.k5(this, this.Va, this.u, this.jba.bind(this), G, this.JW, this.K, this.pf, this.Y, this.KO.bind(this));
+ G = {
+ LP: this.LP,
+ yt: this.yt,
+ il: this.il,
+ sD: this.sD
+ };
+ this.$a = new na.Yza(this.u, this.Ef, this.K, this.nb.bind(this), this.Y, G, this.Fb.zb, this.Va, this.pf, this.sa, M);
+ U60 = 56;
+ break;
+ case 47:
+ b = r.D7.create({
+ Za: 0,
+ xa: b,
+ Wk: d,
+ sVa: h,
+ Kf: !!g.Kf,
+ dOa: !1,
+ ij: !!g.ij,
+ qs: w || this.vBa,
+ T: 0,
+ oa: g.oa,
+ Va: this.Va,
+ Ls: this.oCa.bind(this),
+ nb: this.nb.bind(this),
+ tb: this,
+ config: this.K,
+ u: this.u,
+ pf: this.pf,
+ Tl: this.Tl,
+ af: this.cEa ? this.Fb.af : void 0,
+ My: this.My
+ });
+ b.XM = !0;
+ this.Mc = [b];
+ U60 = 65;
+ break;
+ case 39:
+ U60 = (u.fqa || u.Tz) && this.Fb.af ? 38 : 37;
+ break;
+ case 3:
+ var k2P = "media";
+ k2P += "|ase";
+ k2P += "js";
+ var J2P = "A";
+ J2P += "S";
+ J2P += "E";
+ J2P += "J";
+ J2P += "S";
+ var G2P = "1S";
+ G2P += "IY";
+ G2P += "bZ";
+ G2P += "rNJCp9";
+ G2P;
+ this.u = new t.Console(J2P, k2P, "(" + m.sessionId + ")");
+ this.jf = this.u.error.bind(this.u);
+ U60 = 7;
+ break;
+ case 41:
+ U60 = u.ah && this.Fb.af ? 40 : 39;
+ break;
+ case 56:
+ U60 = this.fp ? 55 : 76;
+ break;
+ case 7:
+ this.ib = this.u.warn.bind(this.u);
+ this.Kj = this.u.trace.bind(this.u);
+ K = new ja.Wwa(this, this.u);
+ this.Va = K;
+ U60 = 12;
+ break;
+ case 32:
+ this.OW = !1;
+ this.cM = void 0;
+ U60 = 30;
+ break;
+ case 40:
+ var F2P = "m";
+ F2P += "anagerdebuge";
+ F2P += "vent";
+ this.Vf.on(this.Fb.af, F2P, function (a) {
+ var V60;
+ V60 = 2;
+ for (; V60 !== 1; ) {
+ switch (V60) {
+ case 2:
+ H.Ka(A, a.type, a);
+ V60 = 1;
+ break;
+ }
+ }
+ });
+ U60 = 39;
+ break;
+ case 64:
+ U60 = u.ifa && this.Ef.l0 ? 63 : 60;
+ break;
+ }
+ }
+ }
+ var T60;
+ T60 = 2;
+ for (; T60 !== 118; ) {
+ switch (T60) {
+ case 27:
+ a.prototype.Pia = function (a, b) {
+ var x70;
+ x70 = 2;
+ for (; x70 !== 9; ) {
+ switch (x70) {
+ case 7:
+ x70 = a == b ? 7 : 4;
+ break;
+ x70 = a === b ? 1 : 5;
+ break;
+ case 2:
+ x70 = a === b ? 1 : 5;
+ break;
+ case 1:
+ return !0;
+ break;
+ case 5:
+ a = this.Mc[a];
+ b = this.Mc[b];
+ return a.O.Ie.Kf && b.O.Ie.SP || b.O.Ie.Kf && a.O.Ie.SP;
+ break;
+ case 6:
+ return -1;
+ break;
+ x70 = 5;
+ break;
+ }
+ }
+ };
+ a.prototype.nha = function () {
+ var y70;
+ y70 = 2;
+ for (; y70 !== 1; ) {
+ switch (y70) {
+ case 2:
+ return this.sa.Xk.aa.id;
+ break;
+ case 4:
+ return this.sa.Xk.aa.id;
+ break;
+ y70 = 1;
+ break;
+ }
+ }
+ };
+ a.prototype.OZ = function (a) {
+ var z70;
+ z70 = 2;
+ for (; z70 !== 5; ) {
+ switch (z70) {
+ case 1:
+ return {
+ pe: a.pe,
+ Zc: a.gma,
+ ie: a.ie,
+ cc: a.l3,
+ Qb: a.Qb
+ };
+ break;
+ case 2:
+ z70 = (a = this.sa.Xk.children[a]) ? 1 : 5;
+ break;
+ }
+ }
+ };
+ a.prototype.YO = function () {
+ var A70,
+ a;
+ A70 = 2;
+ for (; A70 !== 5; ) {
+ switch (A70) {
+ case 2:
+ a = this.sa.Xk;
+ return {
+ id: a.aa.id,
+ pe: a.pe,
+ Zc: a.gma,
+ ie: a.ie,
+ cc: a.l3,
+ Qb: a.Qb
+ };
+ break;
+ }
+ }
+ };
+ a.prototype.o4 = function (a, b) {
+ var B70;
+ B70 = 2;
+ for (; B70 !== 1; ) {
+ switch (B70) {
+ case 2:
+ return this.sa.o4(a, b);
+ break;
+ case 4:
+ return this.sa.o4(a, b);
+ break;
+ B70 = 1;
+ break;
+ }
+ }
+ };
+ a.prototype.open = function () {
+ var C70,
+ a,
+ p,
+ b,
+ c,
+ f,
+ d,
+ h,
+ g,
+ m,
+ l;
+ C70 = 2;
+ for (; C70 !== 33; ) {
+ switch (C70) {
+ case 2:
+ a = this;
+ C70 = 1;
+ break;
+ case 5:
+ var b2P = "NFErr_M";
+ b2P += "C_St";
+ b2P += "reamingInitF";
+ b2P += "ailure";
+ var A2P = "start";
+ A2P += "Pts";
+ A2P += " must be a positive number, not ";
+ this.ul(A2P + this.JW, void 0, b2P);
+ C70 = 33;
+ break;
+ case 10:
+ C70 = 1 === l.readyState ? 20 : 34;
+ break;
+ case 16:
+ var a2P = "E";
+ a2P += "rr";
+ a2P += "o";
+ a2P += "r:";
+ throw (this.Kj(a2P, l.error), l.error);
+ C70 = 15;
+ break;
+ case 21:
+ var R2P = "s";
+ R2P += "tartp";
+ R2P += "lay";
+ var j2P = "lo";
+ j2P += "gdat";
+ j2P += "a";
+ c = {
+ type: j2P,
+ target: R2P,
+ fields: {
+ audiogapconfig: b.tI,
+ audiogapdpi: this.lf.gc && this.lf.gc.tI,
+ aseApiVersion: this.nX
+ }
+ };
+ C70 = 35;
+ break;
+ case 35:
+ this.emit(c.type, c);
+ C70 = 33;
+ break;
+ case 17:
+ C70 = !l.jX(d) ? 16 : 15;
+ break;
+ case 20:
+ var c2P = "c";
+ c2P += "reateMediaS";
+ c2P += "ou";
+ c2P += "rc";
+ c2P += "eEnd";
+ this.Va.zk(c2P);
+ l.gc || (l.gc = M.gc);
+ this.lf = l;
+ C70 = 17;
+ break;
+ case 15:
+ l.sourceBuffers.forEach(function (c) {
+ var E70,
+ f,
+ d;
+ E70 = 2;
+ for (; E70 !== 13; ) {
+ switch (E70) {
+ case 2:
+ var V2P = "h";
+ V2P += "ead";
+ V2P += "erA";
+ V2P += "pp";
+ V2P += "ended";
+ (f = c.L, d = a.$a.Ue[f]);
+ c = new u.l5(d.u, f, l, c, b, a.Y, a.ng.bind(a));
+ d = new E.rva(c, f, a.sa, a.K, d.u);
+ c.addListener(V2P, a.o9a.bind(a));
+ E70 = 3;
+ break;
+ case 3:
+ var s2P = "manag";
+ s2P += "erde";
+ s2P += "bugevent";
+ var o2P = "logda";
+ o2P += "t";
+ o2P += "a";
+ var t2P = "e";
+ t2P += "r";
+ t2P += "r";
+ t2P += "o";
+ t2P += "r";
+ var x2P = "req";
+ x2P += "ues";
+ x2P += "tAppende";
+ x2P += "d";
+ c.addListener(x2P, a.r9a.bind(a));
+ c.addListener(t2P, function (b) {
+ var F70;
+ F70 = 2;
+ for (; F70 !== 1; ) {
+ switch (F70) {
+ case 2:
+ var X2P = "NF";
+ X2P += "Err_MC";
+ X2P += "_S";
+ X2P += "treamingFail";
+ X2P += "ure";
+ a.ul(b.errorstr, void 0, X2P);
+ F70 = 1;
+ break;
+ }
+ }
+ });
+ c.addListener(o2P, function (b) {
+ var G70;
+ G70 = 2;
+ for (; G70 !== 1; ) {
+ switch (G70) {
+ case 2:
+ H.Ka(a, b.type, b);
+ G70 = 1;
+ break;
+ }
+ }
+ });
+ b.ah && c.addListener(s2P, function (b) {
+ var H70;
+ H70 = 2;
+ for (; H70 !== 1; ) {
+ switch (H70) {
+ case 2:
+ H.Ka(a, b.type, b);
+ H70 = 1;
+ break;
+ }
+ }
+ });
+ a.Ff[f] = c;
+ E70 = 14;
+ break;
+ case 14:
+ a.as[f] = d;
+ E70 = 13;
+ break;
+ }
+ }
+ });
+ this.qu = new V.qya(this.as, this.$F.bind(this), this.Y.Sd.bind(this.Y));
+ this.yt && this.Va.k$a();
+ c = this.GLa();
+ this.Va.ZCa(c);
+ p = function () {
+ var I70;
+ I70 = 2;
+ for (; I70 !== 5; ) {
+ switch (I70) {
+ case 2:
+ var M2P = "shutdown";
+ M2P += " detected b";
+ M2P += "efore s";
+ M2P += "tartR";
+ M2P += "equests";
+ a.Va.B$a();
+ a.rl() ? a.ib(M2P) : a.fbb();
+ I70 = 5;
+ break;
+ }
+ }
+ };
+ b.Xkb ? setTimeout(function () {
+ var J70;
+ J70 = 2;
+ for (; J70 !== 1; ) {
+ switch (J70) {
+ case 2:
+ a.FBa(f).then(p);
+ J70 = 1;
+ break;
+ }
+ }
+ }, 0) : this.FBa(f).then(function () {
+ var K70;
+ K70 = 2;
+ for (; K70 !== 1; ) {
+ switch (K70) {
+ case 2:
+ setTimeout(p, 0);
+ K70 = 1;
+ break;
+ }
+ }
+ });
+ C70 = 21;
+ break;
+ case 34:
+ var N2P = "NFE";
+ N2P += "rr_MC_StreamingI";
+ N2P += "nitFail";
+ N2P += "ur";
+ N2P += "e";
+ var m2P = "e";
+ m2P += "x";
+ m2P += "cept";
+ m2P += "ion in ";
+ m2P += "init";
+ var Z2P = "E";
+ Z2P += "rr";
+ Z2P += "or:";
+ (this.Kj(Z2P, l.error), this.ul(m2P, void 0, N2P));
+ C70 = 33;
+ break;
+ case 1:
+ C70 = !k.na(this.JW) || 0 > this.JW ? 5 : 4;
+ break;
+ case 4:
+ var Y2P = "h";
+ Y2P += "ea";
+ Y2P += "ders";
+ (b = this.K, c = this.Qd.O, f = c.G, d = [], h = [Y2P]);
+ this.il && (d.push(1), h.push(1));
+ this.Ro && (d.push(0), h.push(0));
+ this.lO.y9a();
+ C70 = 7;
+ break;
+ case 7:
+ var d2P = "creat";
+ d2P += "eMediaS";
+ d2P += "o";
+ d2P += "urce";
+ d2P += "Start";
+ g = b.UM;
+ this.Fb.af && this.Fb.af.VM(g, this.ql.sessionId);
+ m = this.lO.r8a(h, c);
+ h.forEach(function (b, c) {
+ var D70;
+ D70 = 2;
+ for (; D70 !== 1; ) {
+ switch (D70) {
+ case 2:
+ var l2P = "he";
+ l2P += "a";
+ l2P += "d";
+ l2P += "er";
+ l2P += "s";
+ l2P === b ? a.cM = m[c] : a.$a.Ue[b].al = m[c];
+ D70 = 1;
+ break;
+ }
+ }
+ });
+ this.Va.zk(d2P);
+ l = new M(this.Y.MB);
+ C70 = 10;
+ break;
+ }
+ }
+ };
+ Object.defineProperties(a.prototype, {
+ nX: {
+ get: function () {
+ var L70;
+ L70 = 2;
+ for (; L70 !== 1; ) {
+ switch (L70) {
+ case 4:
+ return "";
+ break;
+ L70 = 1;
+ break;
+ case 2:
+ var I2P = "1";
+ I2P += ".";
+ I2P += "0";
+ return I2P;
+ break;
+ }
+ }
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ a.prototype.oha = function () {};
+ a.prototype.flush = function () {
+ var M70;
+ M70 = 2;
+ for (; M70 !== 1; ) {
+ switch (M70) {
+ case 2:
+ this.op.flush();
+ M70 = 1;
+ break;
+ }
+ }
+ };
+ a.prototype.paused = function () {
+ var N70;
+ N70 = 2;
+ for (; N70 !== 1; ) {
+ switch (N70) {
+ case 2:
+ this.Y.paused();
+ N70 = 1;
+ break;
+ case 4:
+ this.Y.paused();
+ N70 = 9;
+ break;
+ N70 = 1;
+ break;
+ }
+ }
+ };
+ T60 = 32;
+ break;
+ case 87:
+ a.prototype.Mab = function (a) {
+ var v90,
+ b;
+ v90 = 2;
+ for (; v90 !== 3; ) {
+ switch (v90) {
+ case 2:
+ b = this.$a.Ue[a];
+ this.$a.Ys[a].yja = void 0;
+ b.dr = 0;
+ b.GQ = 0;
+ v90 = 3;
+ break;
+ }
+ }
+ };
+ a.prototype.gba = function (a, b) {
+ var w90,
+ c,
+ f,
+ d;
+ w90 = 2;
+ for (; w90 !== 8; ) {
+ switch (w90) {
+ case 5:
+ w90 = c.kb(a) ? 4 : 8;
+ break;
+ case 2:
+ c = this.sa.Xb;
+ w90 = 5;
+ break;
+ case 4:
+ var g2P = "ptsch";
+ g2P += "ang";
+ g2P += "ed";
+ (f = this.$a.Ue[a], d = this.$a.Fw[a]);
+ k.X(f.mm) && (f.mm = b, 1 === a && this.Ro && (a = this.$a.Ue[0], k.X(a.mm) && (c = c.kb(0), c.QD(b)), this.emit(g2P, b)));
+ k.X(d.sN) && (d.sN = b);
+ w90 = 8;
+ break;
+ }
+ }
+ };
+ a.prototype.AMa = function (a) {
+ var x90;
+ x90 = 2;
+ for (; x90 !== 1; ) {
+ switch (x90) {
+ case 2:
+ this.Ug && (this.Ug.oyb(a), this.wGa());
+ x90 = 1;
+ break;
+ }
+ }
+ };
+ a.prototype.u_ = function (a) {
+ var y90;
+ y90 = 2;
+ for (; y90 !== 1; ) {
+ switch (y90) {
+ case 2:
+ this.Ug && (this.Ug.nyb(a), this.wGa());
+ y90 = 1;
+ break;
+ }
+ }
+ };
+ a.prototype.wGa = function () {
+ var z90,
+ a;
+ z90 = 2;
+ for (; z90 !== 4; ) {
+ switch (z90) {
+ case 1:
+ var i2P = "a";
+ i2P += "ll";
+ i2P += "Comp";
+ i2P += "let";
+ i2P += "ed";
+ a = this.K;
+ this.Ug.zC() || (this.Ug = void 0, a.UM || this.wx.$x || this.YW(i2P));
+ z90 = 4;
+ break;
+ case 2:
+ z90 = this.Ug ? 1 : 4;
+ break;
+ }
+ }
+ };
+ a.prototype.JM = function () {
+ var A90,
+ a,
+ b,
+ c,
+ f,
+ d,
+ h,
+ g,
+ m;
+ A90 = 2;
+ for (; A90 !== 7; ) {
+ switch (A90) {
+ case 2:
+ (a = this, b = this.K, c = this.MQ, f = this.Mc[c], d = this.sa.Xb, h = this.Y.Sd() || 0, g = this.As(c, h), m = b.s4);
+ this.Fb.af && void 0 !== f.dD && f.dD - h <= b.tQa && this.Fb.af.VM(!0, this.ql.sessionId);
+ this.Y.Wc() === p.pa.Sc && ([1, 0].forEach(function (b) {
+ var B90,
+ n,
+ c,
+ f,
+ l,
+ p,
+ u,
+ r;
+ B90 = 2;
+ for (; B90 !== 33; ) {
+ switch (B90) {
+ case 7:
+ B90 = r ? 6 : 34;
+ break;
+ case 16:
+ a.Va.x$a(f, h, r.Qm, null !== n ? a.Mc[n].O.G : null, n);
+ B90 = 15;
+ break;
+ case 18:
+ a.eW = l;
+ n = 0 < l ? l - 1 : null;
+ B90 = 16;
+ break;
+ case 21:
+ a.pab(u, h);
+ a.sa.FEb();
+ B90 = 33;
+ break;
+ case 6:
+ u = r.ie - h;
+ u < m && (m = u);
+ p = a.$a.Ys[b];
+ f = r.O;
+ l = f.Za;
+ u = r.Ja;
+ B90 = 20;
+ break;
+ case 27:
+ a.MF && r.Qm != p.Fwb && a.Va.N$a(r.Qm);
+ B90 = 26;
+ break;
+ case 20:
+ B90 = !a.il || 1 === b ? 19 : 26;
+ break;
+ case 2:
+ B90 = a.nb(b) ? 1 : 33;
+ break;
+ case 19:
+ B90 = (a.sa.EAb(r, r.Qm), l > a.eW) ? 18 : 27;
+ break;
+ case 8:
+ (r = a.sa.zq(h, d, b)) && !r.Ei && (r = a.Ff[b].vwb);
+ B90 = 7;
+ break;
+ case 15:
+ g = a.As(l, h);
+ B90 = 26;
+ break;
+ case 1:
+ c = d.kb(b);
+ B90 = 5;
+ break;
+ case 26:
+ p.Fwb = r.Qm;
+ f = r.wa;
+ B90 = 24;
+ break;
+ case 4:
+ u = c.Ja;
+ c.FG(h);
+ B90 = 8;
+ break;
+ case 22:
+ k.X(r) || r == c.LSa || (c.LSa = r);
+ B90 = 21;
+ break;
+ case 34:
+ var W2P = "Unable to find request presenti";
+ W2P += "ng at player";
+ W2P += "Pt";
+ W2P += "s:";
+ c.ib(W2P, h);
+ B90 = 21;
+ break;
+ case 5:
+ B90 = c ? 4 : 33;
+ break;
+ case 24:
+ f != p.yja && (p.yja = f, b = a.Mc[l].O.Hq(b, f), l = a.As(l, r.Zc), a.Va.I$a(b, r.Zc, l, b.O.Za));
+ r = r.R;
+ B90 = 22;
+ break;
+ }
+ }
+ }), this.sa.sr(h, g));
+ A90 = 4;
+ break;
+ case 9:
+ this.Vx && clearTimeout(this.Vx);
+ this.Vx = setTimeout(this.JM.bind(this), m);
+ A90 = 7;
+ break;
+ case 4:
+ this.pf.Bi();
+ m = Math.max(m, 1);
+ A90 = 9;
+ break;
+ }
+ }
+ };
+ a.prototype.EV = function (a) {
+ var C90;
+ C90 = 2;
+ for (; C90 !== 1; ) {
+ switch (C90) {
+ case 4:
+ return this.pf.EV(a);
+ break;
+ C90 = 1;
+ break;
+ case 2:
+ return this.pf.EV(a);
+ break;
+ }
+ }
+ };
+ a.prototype.Bi = function () {
+ var D90;
+ D90 = 2;
+ for (; D90 !== 1; ) {
+ switch (D90) {
+ case 2:
+ return this.pf.Bi();
+ break;
+ }
+ }
+ };
+ a.prototype.sB = function (a, b) {
+ var E90,
+ c,
+ f,
+ d;
+ E90 = 2;
+ for (; E90 !== 13; ) {
+ switch (E90) {
+ case 2:
+ c = a.Ja;
+ E90 = 1;
+ break;
+ case 1:
+ E90 = !c ? 5 : 4;
+ break;
+ case 5:
+ var e2P = "abortRequest with no req";
+ e2P += "u";
+ e2P += "estManaga";
+ e2P += "er:";
+ return (this.ib(e2P, a), !1);
+ break;
+ case 4:
+ (f = a.L, d = a.abort());
+ a.yc();
+ a.Vf && a.Vf.clear();
+ E90 = 8;
+ break;
+ case 8:
+ c.S2(a);
+ this.Ff[f].S2(a);
+ !0 === b && this.pf.Bi();
+ E90 = 14;
+ break;
+ case 14:
+ return d;
+ break;
+ }
+ }
+ };
+ a.prototype.ebb = function (a) {
+ var F90,
+ b,
+ c;
+ F90 = 2;
+ for (; F90 !== 5; ) {
+ switch (F90) {
+ case 2:
+ var v2P = "no newAudioTrack ";
+ v2P += "s";
+ v2P += "et";
+ (b = a.L, c = this.$a.Ue[b]);
+ k.X(c.A1) ? a.ib(v2P) : (this.Ff[b].pause(), c.jK = !0, a = this.Qd.Yn(0), c = this.Qd.O.getTrackById(c.A1.cb), this.Va.m$a(a, c));
+ F90 = 5;
+ break;
+ }
+ }
+ };
+ T60 = 104;
+ break;
+ case 48:
+ a.prototype.MY = function (a, b) {
+ var r80,
+ c,
+ f,
+ d;
+ r80 = 2;
+ for (; r80 !== 7; ) {
+ switch (r80) {
+ case 2:
+ c = this.K;
+ r80 = 1;
+ break;
+ case 1:
+ r80 = !this.rl() ? 5 : 7;
+ break;
+ case 3:
+ var q2P = " read";
+ q2P += "y";
+ q2P += "State";
+ q2P += ": ";
+ var O2P = " for movie";
+ O2P += "I";
+ O2P += "d:";
+ O2P += " ";
+ var h2P = ",";
+ h2P += " ";
+ var Q2P = "dr";
+ Q2P += "m";
+ Q2P += "Ready at streaming pts: ";
+ c.ah && this.Va.Qk(Q2P + (f ? f.Ub : null) + h2P + (d ? d.Ub : null) + O2P + a + q2P + b);
+ a000.s4P(3);
+ this.Y.moa(a000.t4P("", a), b);
+ b && (this.Ff.forEach(function (a) {
+ var s80;
+ s80 = 2;
+ for (; s80 !== 5; ) {
+ switch (s80) {
+ case 2:
+ c.uZ && a.aKa();
+ c.iK && a.resume();
+ s80 = 5;
+ break;
+ }
+ }
+ }), c.iK && this.BM(), this.Qd.O.Ie.Kf && this.WW(this.Tl.Mx ? this.Tl.Mx.Za : this.NF + 1), this.Tl.iaa());
+ r80 = 7;
+ break;
+ case 5:
+ k.X(b) && (b = !0);
+ (f = this.sa.Xb.Nc(0), d = this.sa.Xb.Nc(1));
+ r80 = 3;
+ break;
+ }
+ }
+ };
+ a.prototype.Tha = function () {
+ var t80;
+ t80 = 2;
+ for (; t80 !== 1; ) {
+ switch (t80) {
+ case 2:
+ return this.Y.Ov(this.Qd.O);
+ break;
+ }
+ }
+ };
+ a.prototype.GBa = function (a) {
+ var u80,
+ b,
+ c,
+ f;
+ u80 = 2;
+ for (; u80 !== 14; ) {
+ switch (u80) {
+ case 2:
+ u80 = a >= this.Mc.length ? 1 : 5;
+ break;
+ case 5:
+ (b = this.sa.Xb.Nc(0), c = this.sa.Xb.Nc(1), b = !b || b.Pg, f = !c || c.Pg, c = this.Mc[a].O);
+ u80 = 4;
+ break;
+ case 1:
+ return !1;
+ break;
+ case 4:
+ u80 = !(a === this.NF + 1 && c.Ie.replace || b && f) || !this.Y.Ov(c) ? 3 : 9;
+ break;
+ case 3:
+ return !1;
+ break;
+ case 9:
+ a = c.qg[0];
+ b = c.qg[1];
+ b = !this.il || b && b.stream.ge;
+ return (!this.Ro || a && a.stream.ge) && b ? !0 : !1;
+ break;
+ }
+ }
+ };
+ a.prototype.XW = function () {
+ var v80;
+ v80 = 2;
+ for (; v80 !== 1; ) {
+ switch (v80) {
+ case 2:
+ this.WW(this.NF + 1);
+ v80 = 1;
+ break;
+ case 4:
+ this.WW(this.NF % 5);
+ v80 = 0;
+ break;
+ v80 = 1;
+ break;
+ }
+ }
+ };
+ a.prototype.WW = function (a) {
+ var w80,
+ b;
+ w80 = 2;
+ for (; w80 !== 6; ) {
+ switch (w80) {
+ case 4:
+ w80 = b.Lnb || !b.O.Ie.replace ? 3 : 9;
+ break;
+ case 1:
+ return !1;
+ break;
+ case 5:
+ b = this.Mc[a];
+ w80 = 4;
+ break;
+ case 3:
+ return !1;
+ break;
+ case 9:
+ this.mbb(a);
+ this.pf.Bi();
+ return !0;
+ break;
+ case 2:
+ w80 = !this.GBa(a) ? 1 : 5;
+ break;
+ }
+ }
+ };
+ a.prototype.mbb = function (a) {
+ var x80,
+ b,
+ c,
+ f,
+ d,
+ h;
+ x80 = 2;
+ for (; x80 !== 14; ) {
+ switch (x80) {
+ case 8:
+ b.ila();
+ this.Tl.iaa();
+ this.pf.Bi();
+ x80 = 14;
+ break;
+ case 2:
+ var P2P = ",";
+ P2P += " ";
+ var E2P = ", stream";
+ E2P += "i";
+ E2P += "ngPts:";
+ E2P += " ";
+ var z2P = "switchMani";
+ z2P += "fes";
+ z2P += "t mani";
+ z2P += "festIndex: ";
+ (b = this.Mc[a], c = this.sa.Xb, f = c.kb(0), f = f ? f.Ub : void 0, d = c.kb(1), d = d ? d.Ub : void 0);
+ this.K.ah && this.Va.Qk(z2P + a + E2P + f + P2P + d);
+ (f = this.Qd, d = f.O.Ie.Kf, h = []);
+ [1, 0].forEach(function (a) {
+ var y80;
+ y80 = 2;
+ for (; y80 !== 1; ) {
+ switch (y80) {
+ case 2:
+ b.O.nb(a) && (h[a] = b.Yn(a));
+ y80 = 1;
+ break;
+ }
+ }
+ });
+ d ? this.sa.tGb(f.O, b.O, h) : c.aWa(b.O, h);
+ this.LCa(a);
+ x80 = 8;
+ break;
+ }
+ }
+ };
+ a.prototype.ERa = function () {
+ var z80,
+ c,
+ f,
+ a,
+ b;
+ z80 = 2;
+ for (; z80 !== 6; ) {
+ switch (z80) {
+ case 5:
+ var U2P = "onAudioTrackSwitchStarted but curren";
+ U2P += "t play";
+ U2P += "ing request not found";
+ (c = this.Y.Sd(), f = this.$a.Ue[b.L]);
+ (a = this.sa.zq(c, a, 0)) ? b = a.Ja : (this.ib(U2P), b = b.Ja);
+ this.mab(b);
+ f.jK = !1;
+ z80 = 8;
+ break;
+ case 2:
+ (a = this.sa.Xb, b = a.kb(0));
+ z80 = 1;
+ break;
+ case 7:
+ var C2P = "onAudi";
+ C2P += "oTrackSwitchStarted";
+ C2P += " ignored, no audio pipeline";
+ this.ib(C2P);
+ z80 = 6;
+ break;
+ case 1:
+ z80 = b ? 5 : 7;
+ break;
+ case 8:
+ this.pf.Bi();
+ z80 = 6;
+ break;
+ }
+ }
+ };
+ a.prototype.eXa = function (a) {
+ var A80,
+ h,
+ d,
+ f,
+ c,
+ b;
+ A80 = 2;
+ for (; A80 !== 21; ) {
+ switch (A80) {
+ case 16:
+ var p2P = "s";
+ p2P += "wi";
+ p2P += "tchTracks can't find trackId";
+ p2P += ":";
+ return (this.ib(p2P, a), !1);
+ break;
+ case 12:
+ A80 = this.Y.Wc() === p.pa.Sc ? 11 : 19;
+ break;
+ case 17:
+ A80 = !d ? 16 : 15;
+ break;
+ case 20:
+ var S2P = "switchTracks ";
+ S2P += "rejected, bufferLe";
+ S2P += "vel";
+ S2P += "Ms";
+ return (this.ib(S2P, d, "<", b.k1), !1);
+ break;
+ case 15:
+ h = this.Qd.Yn(0).cb;
+ A80 = 27;
+ break;
+ case 19:
+ a = a.BB;
+ d = this.Qd.O.getTrackById(a);
+ A80 = 17;
+ break;
+ case 11:
+ d = this.sa.us(f, 1);
+ A80 = 10;
+ break;
+ case 1:
+ A80 = !this.Ro ? 5 : 4;
+ break;
+ case 25:
+ var w2P = " ";
+ w2P += "t";
+ w2P += "o";
+ w2P += ":";
+ w2P += " ";
+ var L2P = "switchTrac";
+ L2P += "ks c";
+ L2P += "urren";
+ L2P += "t";
+ L2P += ": ";
+ b.ah && this.Va.Qk(L2P + h + w2P + d.cb);
+ c.A1 = {
+ cb: a
+ };
+ this.ebb(f.kb(0));
+ return !0;
+ break;
+ case 9:
+ A80 = this.Y.Ih() ? 8 : 7;
+ break;
+ case 10:
+ A80 = d < b.k1 ? 20 : 19;
+ break;
+ case 26:
+ return !1;
+ break;
+ case 8:
+ var D2P = "switchTr";
+ D2P += "acks ";
+ D2P += "rejected, bu";
+ D2P += "ffering";
+ return (this.ib(D2P), !1);
+ break;
+ case 13:
+ f = this.sa.Xb;
+ A80 = 12;
+ break;
+ case 3:
+ var K2P = "switchTracks rejected, previ";
+ K2P += "ous";
+ K2P += " switch still i";
+ K2P += "n pro";
+ K2P += "gress: ";
+ return (this.ib(K2P + JSON.stringify(this.$a.Uu)), !1);
+ break;
+ case 27:
+ A80 = h === d.cb ? 26 : 25;
+ break;
+ case 4:
+ A80 = this.$a.Uu ? 3 : 9;
+ break;
+ case 14:
+ var r0E = "switchTrack";
+ r0E += "s rejected, pre";
+ r0E += "viou";
+ r0E += "s swit";
+ r0E += "ch still waiting to start";
+ return (this.ib(r0E), !1);
+ break;
+ case 7:
+ c = this.$a.Ue[0];
+ A80 = 6;
+ break;
+ case 5:
+ var u0E = "switchTracks ";
+ u0E += "rej";
+ u0E += "ected, audio disab";
+ u0E += "led";
+ return (this.ib(u0E), !1);
+ break;
+ case 2:
+ b = this.K;
+ A80 = 1;
+ break;
+ case 6:
+ A80 = c.jK ? 14 : 13;
+ break;
+ }
+ }
+ };
+ a.prototype.Cw = function (a, b) {
+ var B80;
+ B80 = 2;
+ for (; B80 !== 1; ) {
+ switch (B80) {
+ case 2:
+ this.$a.Cw(a, b);
+ B80 = 1;
+ break;
+ }
+ }
+ };
+ a.prototype.zq = function (a, b, c) {
+ var C80;
+ C80 = 2;
+ for (; C80 !== 1; ) {
+ switch (C80) {
+ case 2:
+ return this.sa.zq(a, this.sa.Xk, b, c);
+ break;
+ }
+ }
+ };
+ T60 = 59;
+ break;
+ case 13:
+ Object.defineProperties(a.prototype, {
+ yt: {
+ get: function () {
+ var j70;
+ j70 = 2;
+ for (; j70 !== 1; ) {
+ switch (j70) {
+ case 2:
+ return this.Hab;
+ break;
+ case 4:
+ return this.Hab;
+ break;
+ j70 = 1;
+ break;
+ }
+ }
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ LP: {
+ get: function () {
+ var k70;
+ k70 = 2;
+ for (; k70 !== 1; ) {
+ switch (k70) {
+ case 2:
+ return this.MF;
+ break;
+ }
+ }
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ sD: {
+ get: function () {
+ var l70;
+ l70 = 2;
+ for (; l70 !== 1; ) {
+ switch (l70) {
+ case 4:
+ return this.qW;
+ break;
+ l70 = 1;
+ break;
+ case 2:
+ return this.qW;
+ break;
+ }
+ }
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ a.prototype.nb = function (a) {
+ var m70;
+ m70 = 2;
+ for (; m70 !== 1; ) {
+ switch (m70) {
+ case 2:
+ return this.lbb[a];
+ break;
+ case 4:
+ return this.lbb[a];
+ break;
+ m70 = 1;
+ break;
+ }
+ }
+ };
+ a.prototype.KO = function () {
+ var n70;
+ n70 = 2;
+ for (; n70 !== 1; ) {
+ switch (n70) {
+ case 2:
+ return t.time.ea() - this.M$;
+ break;
+ }
+ }
+ };
+ a.prototype.GLa = function () {
+ var o70;
+ o70 = 2;
+ for (; o70 !== 1; ) {
+ switch (o70) {
+ case 2:
+ return (this.Mc || []).reduce(function (a, b) {
+ var p70,
+ c;
+ p70 = 2;
+ for (; p70 !== 4; ) {
+ switch (p70) {
+ case 2:
+ c = b.O;
+ m.We.forEach(function (b) {
+ var q70;
+ q70 = 2;
+ for (; q70 !== 1; ) {
+ switch (q70) {
+ case 2:
+ c.Uq[b] > a[b] && (a[b] = c.Uq[b]);
+ q70 = 1;
+ break;
+ }
+ }
+ });
+ p70 = 5;
+ break;
+ case 7:
+ return a;
+ break;
+ p70 = 4;
+ break;
+ case 5:
+ return a;
+ break;
+ }
+ }
+ }, [0, 0]);
+ break;
+ }
+ }
+ };
+ a.prototype.jI = function () {
+ var r70,
+ a;
+ r70 = 2;
+ for (; r70 !== 4; ) {
+ switch (r70) {
+ case 2:
+ a = 0;
+ k.forEach(this.Qd.O.xa.audio_tracks, function (b) {
+ var s70;
+ s70 = 2;
+ for (; s70 !== 1; ) {
+ switch (s70) {
+ case 2:
+ k.forEach(b.streams, function (b) {
+ var t70;
+ t70 = 2;
+ for (; t70 !== 1; ) {
+ switch (t70) {
+ case 2:
+ a = Math.max(a, b.bitrate);
+ t70 = 1;
+ break;
+ }
+ }
+ });
+ s70 = 1;
+ break;
+ }
+ }
+ });
+ return a;
+ break;
+ }
+ }
+ };
+ a.prototype.ng = function (a) {
+ var u70;
+ u70 = 2;
+ for (; u70 !== 1; ) {
+ switch (u70) {
+ case 2:
+ return this.Mc[a];
+ break;
+ }
+ }
+ };
+ a.prototype.Sqb = function () {
+ var v70,
+ a;
+ v70 = 2;
+ for (; v70 !== 5; ) {
+ switch (v70) {
+ case 2:
+ a = this.Mc[0];
+ return a.O.Ie.Kf ? this.Mc[1] : a;
+ break;
+ }
+ }
+ };
+ a.prototype.CH = function () {
+ var w70;
+ w70 = 2;
+ for (; w70 !== 1; ) {
+ switch (w70) {
+ case 2:
+ return this.Mc.length;
+ break;
+ }
+ }
+ };
+ T60 = 27;
+ break;
+ case 39:
+ a.prototype.play = function () {
+ var a80;
+ a80 = 2;
+ for (; a80 !== 1; ) {
+ switch (a80) {
+ case 2:
+ this.op.play();
+ a80 = 1;
+ break;
+ }
+ }
+ };
+ a.prototype.stop = function () {
+ var b80;
+ b80 = 2;
+ for (; b80 !== 1; ) {
+ switch (b80) {
+ case 4:
+ this.op.stop();
+ b80 = 2;
+ break;
+ b80 = 1;
+ break;
+ case 2:
+ this.op.stop();
+ b80 = 1;
+ break;
+ }
+ }
+ };
+ a.prototype.Dz = function (a, b, c) {
+ var c80;
+ c80 = 2;
+ for (; c80 !== 5; ) {
+ switch (c80) {
+ case 2:
+ c && (G.assert(void 0 === b), b = this.c_(c));
+ return this.Tl.Dz(a, b);
+ break;
+ }
+ }
+ };
+ a.prototype.seek = function (a, b) {
+ var d80;
+ d80 = 2;
+ for (; d80 !== 1; ) {
+ switch (d80) {
+ case 2:
+ return this.Tl.seek(a, b);
+ break;
+ }
+ }
+ };
+ a.prototype.qYa = function (a) {
+ var e80,
+ h80,
+ d,
+ h,
+ b,
+ c,
+ f;
+ e80 = 2;
+ for (; e80 !== 16; ) {
+ switch (e80) {
+ case 20:
+ try {
+ h80 = 2;
+ for (; h80 !== 1; ) {
+ switch (h80) {
+ case 4:
+ this.aZ(p.pa.Xd);
+ h80 = 0;
+ break;
+ h80 = 1;
+ break;
+ case 2:
+ this.aZ(p.pa.Xd);
+ h80 = 1;
+ break;
+ }
+ }
+ } catch (Ba) {
+ var n0E = "Hindsigh";
+ n0E += "t: Err";
+ n0E += "or when evaluating QoE at Buffering: ";
+ a000.o4P(3);
+ this.Va.Mm(a000.t4P(Ba, n0E));
+ }
+ e80 = 19;
+ break;
+ case 4:
+ d = c.Wq;
+ this.Ff.forEach(function (b) {
+ var f80;
+ f80 = 2;
+ for (; f80 !== 1; ) {
+ switch (f80) {
+ case 2:
+ d = Math.max(0, Math.min(d, b.Uga - a));
+ f80 = 1;
+ break;
+ }
+ }
+ });
+ this.aba += 1;
+ this.sa.Xb.Xpa(f, this.K.lpa);
+ e80 = 7;
+ break;
+ case 7:
+ var A0E = "und";
+ A0E += "erfl";
+ A0E += "o";
+ A0E += "w";
+ h = this.sa.Xb;
+ m.We.forEach(function (f) {
+ var g80,
+ k,
+ g,
+ d;
+ g80 = 2;
+ for (; g80 !== 14; ) {
+ switch (g80) {
+ case 1:
+ g80 = d ? 5 : 14;
+ break;
+ case 5:
+ g80 = 4;
+ break;
+ case 4:
+ g80 = c.ah ? 3 : 7;
+ break;
+ case 8:
+ var F0E = ", to";
+ F0E += "Appe";
+ F0E += "nd:";
+ F0E += " ";
+ var k0E = ",";
+ k0E += " fr";
+ k0E += "ag";
+ k0E += "me";
+ k0E += "nts: ";
+ var J0E = ", compl";
+ J0E += "eteS";
+ J0E += "treamingPts: ";
+ var G0E = ", streaming";
+ G0E += "Pt";
+ G0E += "s: ";
+ var y0E = ",";
+ y0E += " pa";
+ y0E += "r";
+ y0E += "tials: ";
+ var B0E = ", comp";
+ B0E += "le";
+ B0E += "te";
+ B0E += "dBytes: ";
+ var H0E = ", c";
+ H0E += "om";
+ H0E += "plet";
+ H0E += "ed";
+ H0E += "Ms: ";
+ var T0E = ", med";
+ T0E += "i";
+ T0E += "aT";
+ T0E += "y";
+ T0E += "pe: ";
+ var f0E = "underfl";
+ f0E += "o";
+ f0E += "w: ";
+ k = f0E + a + T0E + f + H0E + d.IG + B0E + g + y0E + d.Ja.qw + G0E + d.Ub + J0E + d.rq + k0E + JSON.stringify(d.Ja.$) + F0E + (k && k.s3());
+ g80 = 7;
+ break;
+ case 3:
+ k = b.Ff[f];
+ g = b.sa.LB(h, f);
+ g80 = 8;
+ break;
+ case 2:
+ d = h.Nc(f);
+ g80 = 1;
+ break;
+ case 7:
+ c.ah && b.Va.Qk(k);
+ d.oda();
+ g80 = 14;
+ break;
+ }
+ }
+ });
+ this.Qd.O.Rk();
+ this.emit(A0E);
+ this.IW(2);
+ this.pf.Bi();
+ e80 = 10;
+ break;
+ case 2:
+ var R0E = "branc";
+ R0E += "h";
+ R0E += "Offset:";
+ var j0E = "entry.manifest";
+ j0E += "Offs";
+ j0E += "et:";
+ var a0E = "content";
+ a0E += "P";
+ a0E += "ts";
+ a0E += ":";
+ var b0E = "underflo";
+ b0E += "w: going to BUFFERING a";
+ b0E += "t player pts:";
+ (b = this, c = this.K, f = this.As(this.MQ, a));
+ this.ib(b0E, a, a0E, f, j0E, this.Qd.Ts, R0E, this.sa.pe);
+ ia.M9.zGb();
+ e80 = 4;
+ break;
+ case 19:
+ f = this.Fb.zb.get();
+ f = f.Dd ? f.Ia.Ca : 0;
+ d > c.Onb && f > c.Nnb && this.jba();
+ e80 = 16;
+ break;
+ case 10:
+ e80 = this.fp ? 20 : 19;
+ break;
+ }
+ }
+ };
+ a.prototype.Vl = function (a) {
+ var i80;
+ i80 = 2;
+ for (; i80 !== 1; ) {
+ switch (i80) {
+ case 4:
+ return this.Tl.Vl(a);
+ break;
+ i80 = 1;
+ break;
+ case 2:
+ return this.Tl.Vl(a);
+ break;
+ }
+ }
+ };
+ a.prototype.ev = function (a, b, c) {
+ var j80;
+ j80 = 2;
+ for (; j80 !== 1; ) {
+ switch (j80) {
+ case 2:
+ return this.Tl.ev(a, b, c);
+ break;
+ case 4:
+ return this.Tl.ev(a, b, c);
+ break;
+ j80 = 1;
+ break;
+ }
+ }
+ };
+ a.prototype.LCa = function (a) {
+ var k80,
+ b;
+ k80 = 2;
+ for (; k80 !== 3; ) {
+ switch (k80) {
+ case 2:
+ this.NF = a;
+ b = this.Mc[a];
+ k80 = 5;
+ break;
+ case 5:
+ this.Va.z$a(a, b);
+ this.Va.ZCa(b.O.Uq);
+ k80 = 3;
+ break;
+ }
+ }
+ };
+ a.prototype.rEa = function (a, b, c) {
+ var l80,
+ g,
+ m,
+ l,
+ h,
+ f,
+ d,
+ p;
+ l80 = 2;
+ for (; l80 !== 32; ) {
+ switch (l80) {
+ case 14:
+ var c0E = "addManifest in fastplay but not drm manife";
+ c0E += "st, leaving s";
+ c0E += "pace for it";
+ b.replace && 1 !== h ? h = 1 : this.Qd.O.Ie.Kf && !b.replace && 1 === h && (this.ib(c0E), h = this.Mc[0].clone(), this.Mc.push(h), h = this.Mc.length);
+ (g = b.T || 0, m = b.oa);
+ a = r.D7.create({
+ Za: h,
+ xa: a,
+ Wk: c,
+ sVa: b.lMb || [this.Qd.SZ(0), this.Qd.SZ(1)],
+ Kf: !1,
+ dOa: !!b.replace,
+ ij: !!b.ij,
+ qs: b.qs || this.vBa,
+ T: g,
+ oa: m,
+ Va: this.Va,
+ Ls: this.oCa.bind(this),
+ nb: this.nb.bind(this),
+ tb: this,
+ config: this.K,
+ u: this.u,
+ pf: this.pf,
+ Tl: this.Tl,
+ af: this.cEa ? this.Fb.af : void 0,
+ My: this.My
+ });
+ l = a.O;
+ l80 = 10;
+ break;
+ case 4:
+ b || (b = {});
+ (h = this.sa.Xb.Nc(0), g = this.sa.Xb.Nc(1));
+ l80 = 9;
+ break;
+ case 22:
+ l80 = this.Ro && k.X(b) || this.il && k.X(c) ? 21 : 35;
+ break;
+ case 25:
+ var s0E = ",";
+ s0E += " ";
+ var o0E = ") lastStreamApp";
+ o0E += "end";
+ o0E += "e";
+ o0E += "d: (";
+ var X0E = ",";
+ X0E += " ";
+ var t0E = " streamC";
+ t0E += "o";
+ t0E += "u";
+ t0E += "nt: (";
+ var x0E = " player";
+ x0E += "St";
+ x0E += "ate: ";
+ var V0E = "addM";
+ V0E += "anifest";
+ V0E += ", cur";
+ V0E += "rentPts: ";
+ b = this.$a.Ys[0].KC;
+ c = this.$a.Ys[1].KC;
+ d.ah && this.Va.Qk(V0E + this.Y.Sd() + x0E + this.Y.Wc() + t0E + a.Yn(0).Qc.length + X0E + a.Yn(1).Qc.length + o0E + b + s0E + c + ")");
+ l80 = 22;
+ break;
+ case 7:
+ b.sD && (this.qW = !0);
+ h = this.Mc.length;
+ l80 = 14;
+ break;
+ case 9:
+ l80 = !b.oub && (this.Ro && h.gn || this.il && g.gn) ? 8 : 7;
+ break;
+ case 1:
+ l80 = this.rl() ? 5 : 4;
+ break;
+ case 35:
+ a.O.iJ([a.Yn(0), a.Yn(1)]);
+ this.XW();
+ return !0;
+ break;
+ case 17:
+ var M0E = "bool";
+ M0E += "e";
+ M0E += "an";
+ a.XM = M0E === typeof b.BFa ? b.BFa : !0;
+ this.Mc[h] && this.Mc[h].yc();
+ this.Mc[h] = a;
+ a.jGa();
+ b.replace || this.sa.xcb(l, g, m);
+ l80 = 25;
+ break;
+ case 8:
+ var Z0E = "addManifest";
+ Z0E += " ignored,";
+ Z0E += " pipelines a";
+ Z0E += "lready set";
+ Z0E += " EOS:";
+ this.ib(Z0E, h.gn, g.gn);
+ l80 = 32;
+ break;
+ case 5:
+ var m0E = "addManifest";
+ m0E += ": pipeli";
+ m0E += "nes already shutdown";
+ this.ib(m0E);
+ l80 = 32;
+ break;
+ case 2:
+ (f = this, d = this.K);
+ l80 = 1;
+ break;
+ case 10:
+ var Y0E = "vi";
+ Y0E += "deo_";
+ Y0E += "t";
+ Y0E += "racks";
+ var N0E = "audio_t";
+ N0E += "rac";
+ N0E += "ks";
+ c = [N0E, Y0E];
+ p = this.GLa();
+ b.replace && c.forEach(function (a, b) {
+ var m80,
+ c,
+ d;
+ m80 = 2;
+ for (; m80 !== 3; ) {
+ switch (m80) {
+ case 2:
+ c = l.HH(b);
+ m80 = 1;
+ break;
+ case 1:
+ m80 = c ? 5 : 3;
+ break;
+ case 5:
+ d = f.Mc[0].O;
+ Object.keys(c).forEach(function (a) {
+ var n80,
+ f;
+ n80 = 2;
+ for (; n80 !== 5; ) {
+ switch (n80) {
+ case 2:
+ f = d.Hq(b, a);
+ f && f.ge && (c[a].bY(f), a = l.Uq, a[b] > p[b] && (p[b] = a[b]));
+ n80 = 5;
+ break;
+ }
+ }
+ });
+ m80 = 3;
+ break;
+ }
+ }
+ });
+ c.forEach(function (a, b) {
+ var o80,
+ c;
+ o80 = 2;
+ for (; o80 !== 5; ) {
+ switch (o80) {
+ case 2:
+ c = l.HH(b);
+ c && Object.keys(c).forEach(function (a) {
+ var p80,
+ f;
+ p80 = 2;
+ for (; p80 !== 4; ) {
+ switch (p80) {
+ case 2:
+ f = t.Ik()[b];
+ p80 = 1;
+ break;
+ case 1:
+ 1 === b && 0 < d.Ws && (f = Math.min(f, d.Ws));
+ c[a].zYa(f, l.Lv() ? d.WPa : 0);
+ p80 = 4;
+ break;
+ }
+ }
+ });
+ o80 = 5;
+ break;
+ }
+ }
+ });
+ l80 = 17;
+ break;
+ case 21:
+ return !0;
+ break;
+ }
+ }
+ };
+ a.prototype.OM = function (a) {
+ var q80;
+ q80 = 2;
+ for (; q80 !== 1; ) {
+ switch (q80) {
+ case 2:
+ return this.Tl.OM(a);
+ break;
+ }
+ }
+ };
+ T60 = 48;
+ break;
+ case 2:
+ Object.defineProperties(a.prototype, {
+ addEventListener: {
+ get: function () {
+ var Z60;
+ Z60 = 2;
+ for (; Z60 !== 1; ) {
+ switch (Z60) {
+ case 2:
+ return this.addListener.bind(this);
+ break;
+ }
+ }
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ removeEventListener: {
+ get: function () {
+ var a70;
+ a70 = 2;
+ for (; a70 !== 1; ) {
+ switch (a70) {
+ case 4:
+ return this.removeListener.bind(this);
+ break;
+ a70 = 1;
+ break;
+ case 2:
+ return this.removeListener.bind(this);
+ break;
+ }
+ }
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ Xyb: {
+ get: function () {
+ var b70;
+ b70 = 2;
+ for (; b70 !== 1; ) {
+ switch (b70) {
+ case 2:
+ return this.lf.gc;
+ break;
+ case 4:
+ return this.lf.gc;
+ break;
+ b70 = 1;
+ break;
+ }
+ }
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ Ro: {
+ get: function () {
+ var c70;
+ c70 = 2;
+ for (; c70 !== 1; ) {
+ switch (c70) {
+ case 2:
+ return this.nb(0);
+ break;
+ }
+ }
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ il: {
+ get: function () {
+ var d70;
+ d70 = 2;
+ for (; d70 !== 1; ) {
+ switch (d70) {
+ case 2:
+ return this.nb(1);
+ break;
+ }
+ }
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ attributes: {
+ get: function () {
+ var e70;
+ e70 = 2;
+ for (; e70 !== 1; ) {
+ switch (e70) {
+ case 2:
+ return this.F$;
+ break;
+ case 4:
+ return this.F$;
+ break;
+ e70 = 1;
+ break;
+ }
+ }
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ dh: {
+ get: function () {
+ var f70;
+ f70 = 2;
+ for (; f70 !== 1; ) {
+ switch (f70) {
+ case 2:
+ return this.Vf;
+ break;
+ }
+ }
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ MQ: {
+ get: function () {
+ var g70;
+ g70 = 2;
+ for (; g70 !== 1; ) {
+ switch (g70) {
+ case 2:
+ return 0 <= this.eW ? this.eW : 0;
+ break;
+ }
+ }
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ Qd: {
+ get: function () {
+ var h70;
+ h70 = 2;
+ for (; h70 !== 1; ) {
+ switch (h70) {
+ case 2:
+ return this.Mc[this.NF];
+ break;
+ }
+ }
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ Kp: {
+ get: function () {
+ var i70;
+ i70 = 2;
+ for (; i70 !== 1; ) {
+ switch (i70) {
+ case 2:
+ return this.Fb.Kp;
+ break;
+ case 4:
+ return this.Fb.Kp;
+ break;
+ i70 = 1;
+ break;
+ }
+ }
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ T60 = 13;
+ break;
+ case 104:
+ a.prototype.mab = function (a) {
+ var G90,
+ b,
+ c,
+ f,
+ d,
+ h,
+ k,
+ g,
+ m;
+ G90 = 2;
+ for (; G90 !== 27; ) {
+ switch (G90) {
+ case 20:
+ c = this.NF;
+ G90 = 19;
+ break;
+ case 2:
+ (b = this, f = this.K);
+ a = a.Gc;
+ d = this.$a.Ue[0];
+ this.$a.Uu = d.A1;
+ (h = this.Qd, k = h.O.getTrackById(this.$a.Uu.cb), g = k.jS, m = this.Y.Sd() - a.pe);
+ G90 = 9;
+ break;
+ case 9:
+ G90 = (null === (c = this.Ug) || void 0 === c ? 0 : c.zC()) ? 8 : 7;
+ break;
+ case 8:
+ var l0E = "audio";
+ l0E += "S";
+ l0E += "witch";
+ (this.Ug.pGb(function (a) {
+ var H90;
+ H90 = 2;
+ for (; H90 !== 5; ) {
+ switch (H90) {
+ case 1:
+ return (b.sB(a, !1), !0);
+ break;
+ case 3:
+ H90 = 7 == a.L ? 2 : 6;
+ break;
+ H90 = 0 === a.L ? 1 : 5;
+ break;
+ case 2:
+ H90 = 0 === a.L ? 1 : 5;
+ break;
+ case 9:
+ return (b.sB(a, +9), -6);
+ break;
+ H90 = 5;
+ break;
+ }
+ }
+ }), this.Ug.zC() || (this.Ug = void 0, f.UM || this.wx.$x || this.YW(l0E)));
+ G90 = 7;
+ break;
+ case 7:
+ c = this.Fb.LZ(h.O.xa, [g], 0);
+ this.F$[0] = c[0];
+ this.lO.zDa(0, a.O);
+ d.A1 = void 0;
+ this.Ef.yJ(null);
+ G90 = 11;
+ break;
+ case 11:
+ this.dba(0, Y.uL.hKa, a);
+ this.sa.KVa(a, !0);
+ G90 = 20;
+ break;
+ case 19:
+ G90 = c < this.Mc.length ? 18 : 16;
+ break;
+ case 17:
+ ++c;
+ G90 = 19;
+ break;
+ case 16:
+ a.gUa(k, m);
+ this.VD(0);
+ G90 = 27;
+ break;
+ case 18:
+ this.qEb(c, g, m);
+ G90 = 17;
+ break;
+ }
+ }
+ };
+ a.prototype.qEb = function (a, b, c) {
+ var I90,
+ f;
+ I90 = 2;
+ for (; I90 !== 6; ) {
+ switch (I90) {
+ case 2:
+ g.Xl.$n(0);
+ a = this.Mc[a];
+ a.Upa(b);
+ I90 = 4;
+ break;
+ case 4:
+ I90 = a.O.G_ ? 3 : 7;
+ break;
+ case 3:
+ a.Yn(0).Qc.some(function (a) {
+ var J90;
+ J90 = 2;
+ for (; J90 !== 4; ) {
+ switch (J90) {
+ case 2:
+ f = a.nj();
+ J90 = 1;
+ break;
+ case 1:
+ J90 = !(f && f.stream && f.stream.$ && c < f.stream.$.hi(0)) ? 5 : 4;
+ break;
+ case 5:
+ return !!f;
+ break;
+ }
+ }
+ });
+ I90 = 8;
+ break;
+ case 7:
+ this.BM(0);
+ I90 = 6;
+ break;
+ case 8:
+ f ? (a.O.qg[0] = f, a.TQ = !1, f.stream.ge && a.FX()) : (a.O.qg[0] = void 0, a.TQ = !1, a.O.iJ([a.Yn(0)], !0, 0));
+ I90 = 7;
+ break;
+ }
+ }
+ };
+ a.prototype.pab = function (a, b) {
+ var K90,
+ c;
+ K90 = 2;
+ for (; K90 !== 4; ) {
+ switch (K90) {
+ case 2:
+ c = this.Ff[a.L];
+ a = this.sa.PQ(a.Gc, a.L, b, this.Fb.Fz || 0, function (a) {
+ var L90;
+ L90 = 2;
+ for (; L90 !== 1; ) {
+ switch (L90) {
+ case 4:
+ c.S2(a);
+ L90 = 8;
+ break;
+ L90 = 1;
+ break;
+ case 2:
+ c.S2(a);
+ L90 = 1;
+ break;
+ }
+ }
+ });
+ k.X(a) || this.pf.Bi();
+ K90 = 4;
+ break;
+ }
+ }
+ };
+ a.prototype.o9a = function (a) {
+ var M90,
+ b;
+ M90 = 2;
+ for (; M90 !== 9; ) {
+ switch (M90) {
+ case 2:
+ b = a.mediaType;
+ a = this.Mc[a.manifestIndex].O.Hq(b, a.streamId);
+ this.Zab(this.sa.Xb.kb(b), a);
+ this.K = this.oHa.K7a(a.hg, this.K);
+ M90 = 3;
+ break;
+ case 3:
+ this.Mc.forEach(function (a, b) {
+ var N90,
+ c;
+ N90 = 2;
+ for (; N90 !== 5; ) {
+ switch (N90) {
+ case 2:
+ c = a.O;
+ c.G_ || 0 === b || c.iJ([a.Yn(0), a.Yn(1)]);
+ N90 = 5;
+ break;
+ }
+ }
+ });
+ M90 = 9;
+ break;
+ }
+ }
+ };
+ a.prototype.r9a = function (a) {
+ var O90,
+ b,
+ c;
+ O90 = 2;
+ for (; O90 !== 8; ) {
+ switch (O90) {
+ case 2:
+ b = a.request;
+ a = a.mediaType;
+ O90 = 5;
+ break;
+ case 9:
+ b.Rs && this.Va.G$a(a, b.O.Za, c.aa);
+ O90 = 8;
+ break;
+ case 5:
+ c = b.Ja.Gc;
+ c.lyb(a);
+ b.qZ && this.Va.r$a(b);
+ O90 = 9;
+ break;
+ }
+ }
+ };
+ a.prototype.Zab = function (a, b) {
+ var P90;
+ P90 = 2;
+ for (; P90 !== 1; ) {
+ switch (P90) {
+ case 2:
+ this.$a.Ys[a.L].KC = {
+ id: b.wa,
+ index: b.ug,
+ R: b.R,
+ Ia: b.qb && b.qb.Dd && b.qb.Ia ? b.qb.Ia.Ca : 0,
+ location: b.location
+ };
+ P90 = 1;
+ break;
+ }
+ }
+ };
+ a.prototype.b0 = function (a) {
+ var Q90,
+ m,
+ l,
+ p,
+ b,
+ c,
+ f,
+ d,
+ h,
+ k,
+ g;
+ Q90 = 2;
+ for (; Q90 !== 11; ) {
+ switch (Q90) {
+ case 5:
+ (m = g.Xb, l = m.Nc(0), p = m.Nc(1));
+ h.vspts = null !== (b = null === p || void 0 === p ? void 0 : p.Ub) && void 0 !== b ? b : 0;
+ h.aspts = null !== (c = null === l || void 0 === l ? void 0 : l.Ub) && void 0 !== c ? c : 0;
+ h.vbuflbytes = null !== (f = null === p || void 0 === p ? void 0 : p.Zo.da) && void 0 !== f ? f : 0;
+ h.abuflbytes = null !== (d = null === l || void 0 === l ? void 0 : l.Zo.da) && void 0 !== d ? d : 0;
+ h.vbuflmsec = g.us(m, 1);
+ Q90 = 6;
+ break;
+ case 1:
+ Q90 = !g.Xb.gj ? 5 : 12;
+ break;
+ case 13:
+ a && k && (a = k[1], k = k[0], h.atoappend = null === a || void 0 === a ? void 0 : a.s3(), h.vtoappend = null === k || void 0 === k ? void 0 : k.s3());
+ Q90 = 12;
+ break;
+ case 6:
+ h.abuflmsec = g.us(m, 0);
+ Q90 = 14;
+ break;
+ case 14:
+ a && (h.a = null === l || void 0 === l ? void 0 : l.Ja.$.toJSON(), h.v = null === p || void 0 === p ? void 0 : p.Ja.$.toJSON());
+ Q90 = 13;
+ break;
+ case 12:
+ return h;
+ break;
+ case 2:
+ (h = {}, k = this.Ff, g = this.sa);
+ Q90 = 1;
+ break;
+ }
+ }
+ };
+ a.prototype.dMa = function (a) {
+ var R90,
+ f,
+ d,
+ h,
+ k,
+ g,
+ b,
+ c;
+ R90 = 2;
+ for (; R90 !== 3; ) {
+ switch (R90) {
+ case 7:
+ R90 = c ? 0 : 6;
+ break;
+ R90 = c ? 5 : 3;
+ break;
+ case 5:
+ (f = this.$a.Ys[a], d = this.sa.LB(b, a), f = f.KC ? f.KC.R : 0, h = c.Ja.Pla, k = this.sa.pe, g = t.Ik()[a]);
+ return {
+ type: a,
+ availableMediaBuffer: g - d,
+ completeBuffer: b.zm(a),
+ incompleteBuffer: h,
+ playbackBitrate: c.LSa,
+ streamingBitrate: f,
+ streamingTime: c.Ub + k,
+ usedMediaBuffer: d,
+ toappend: c.GOb
+ };
+ break;
+ case 1:
+ R90 = c ? 5 : 3;
+ break;
+ case 2:
+ (b = this.sa.Xb, c = b.kb(a));
+ R90 = 1;
+ break;
+ }
+ }
+ };
+ a.prototype.EGb = function () {
+ var S90,
+ a;
+ S90 = 2;
+ for (; S90 !== 5; ) {
+ switch (S90) {
+ case 2:
+ var d0E = "re";
+ d0E += "q";
+ d0E += "uest";
+ d0E += "GarbageCollectio";
+ d0E += "n";
+ a = {
+ type: d0E,
+ time: t.time.ea()
+ };
+ H.Ka(this, a.type, a);
+ S90 = 5;
+ break;
+ }
+ }
+ };
+ a.prototype.ul = function (a, b, c, f, d, h) {
+ var T90;
+ T90 = 2;
+ for (; T90 !== 1; ) {
+ switch (T90) {
+ case 2:
+ var I0E = "NFErr_";
+ I0E += "MC_Stre";
+ I0E += "a";
+ I0E += "mingFailure";
+ this.OW || (k.X(c) && (c = I0E), this.OW = !0, this.Va.K$a(c, a, f, d, h, void 0 !== b ? b : this.MQ));
+ T90 = 1;
+ break;
+ }
+ }
+ };
+ T60 = 94;
+ break;
+ case 59:
+ a.prototype.Fi = function (a) {
+ var D80;
+ D80 = 2;
+ for (; D80 !== 1; ) {
+ switch (D80) {
+ case 2:
+ return this.Tl.Fi(a);
+ break;
+ }
+ }
+ };
+ a.prototype.aZ = function (a, b) {
+ var E80,
+ c,
+ f,
+ F80;
+ E80 = 2;
+ for (; E80 !== 6; ) {
+ switch (E80) {
+ case 3:
+ E80 = b ? 9 : 8;
+ break;
+ case 2:
+ c = this.$a;
+ a = c.Mfa(a, b);
+ f = this.Ef.Kma;
+ a && !a.pG && f.yfa(a);
+ E80 = 3;
+ break;
+ case 9:
+ c.rna();
+ E80 = 6;
+ break;
+ case 8:
+ b = f.Ppb();
+ try {
+ F80 = 2;
+ for (; F80 !== 1; ) {
+ switch (F80) {
+ case 2:
+ this.Va.u$a(b);
+ F80 = 1;
+ break;
+ case 4:
+ this.Va.u$a(b);
+ F80 = 4;
+ break;
+ F80 = 1;
+ break;
+ }
+ }
+ } catch ($a) {
+ var i0E = "]";
+ i0E += " ";
+ i0E += "[";
+ var g0E = "exce";
+ g0E += "p";
+ g0E += "tion: [";
+ this.u.error(g0E + $a.message + i0E + $a.K0b + "]");
+ }
+ E80 = 6;
+ break;
+ }
+ }
+ };
+ a.prototype.kGa = function (a, b, c, f) {
+ var G80;
+ G80 = 2;
+ for (; G80 !== 4; ) {
+ switch (G80) {
+ case 2:
+ f && (G.assert(void 0 === b), b = this.c_(f));
+ a000.s4P(6);
+ G.assert(a000.t4P(b, 0));
+ return this.Mc[b].yfb(a, c || !1);
+ break;
+ }
+ }
+ };
+ a.prototype.As = function (a, b, c) {
+ var H80,
+ f;
+ H80 = 2;
+ for (; H80 !== 8; ) {
+ switch (H80) {
+ case 2:
+ c && (G.assert(void 0 === a), a = this.c_(c), G.assert(void 0 !== a));
+ void 0 === a && (a = this.MQ);
+ (c = this.sa.cob(b, a)) ? f = c.pe : (c = this.sa.Nfa(a), 0 < c.length && (c = c[0], f = c.pe));
+ H80 = 3;
+ break;
+ case 3:
+ k.na(f) || (f = this.Mc[a].Ts);
+ a000.s4P(4);
+ return a000.X4P(b, f);
+ break;
+ }
+ }
+ };
+ a.prototype.NN = function (a, b, c) {
+ var I80,
+ f;
+ I80 = 2;
+ for (; I80 !== 8; ) {
+ switch (I80) {
+ case 2:
+ c && (G.assert(void 0 === a), a = this.c_(c), G.assert(void 0 !== a));
+ void 0 === a && (a = this.MQ);
+ (c = this.sa.bob(b, a)) ? f = c.pe : (c = this.sa.Nfa(a), 0 < c.length && (c = c[0], f = c.pe));
+ k.na(f) || (f = this.Mc[a].Ts);
+ a000.s4P(3);
+ return a000.t4P(f, b);
+ break;
+ }
+ }
+ };
+ a.prototype.$F = function () {
+ var J80,
+ a;
+ J80 = 2;
+ for (; J80 !== 4; ) {
+ switch (J80) {
+ case 9:
+ a = this.Y.Ih();
+ J80 = 0;
+ break;
+ J80 = 1;
+ break;
+ case 8:
+ J80 = a && this.$a.Uu ? 0 : 5;
+ break;
+ J80 = a || this.$a.Uu ? 5 : 4;
+ break;
+ case 1:
+ J80 = a || this.$a.Uu ? 5 : 4;
+ break;
+ case 5:
+ (a && this.Va.Qaa(), this.JM(), this.Y.ke(p.pa.Sc), this.pf.Bi());
+ J80 = 4;
+ break;
+ case 2:
+ a = this.Y.Ih();
+ J80 = 1;
+ break;
+ }
+ }
+ };
+ a.prototype.jba = function () {
+ var K80,
+ a,
+ b;
+ K80 = 2;
+ for (; K80 !== 3; ) {
+ switch (K80) {
+ case 2:
+ (a = this, b = this.Y.Ih());
+ this.sa.Xb.w3(b, function (b) {
+ var L80;
+ L80 = 2;
+ for (; L80 !== 1; ) {
+ switch (L80) {
+ case 2:
+ return a.Ff[b] ? a.Ff[b].s3() : "";
+ break;
+ }
+ }
+ });
+ this.oF && (clearTimeout(this.oF), this.oF = void 0);
+ this.qu.pyb();
+ K80 = 3;
+ break;
+ }
+ }
+ };
+ a.prototype.JDa = function (a) {
+ var M80,
+ b,
+ N80;
+ M80 = 2;
+ for (; M80 !== 7; ) {
+ switch (M80) {
+ case 9:
+ M80 = this.fp && 1 === a.L ? 8 : 7;
+ break;
+ case 1:
+ a.gn = !1;
+ b = this.Y.Sd() || 0;
+ a.FG(b);
+ this.$a.ru();
+ M80 = 9;
+ break;
+ case 8:
+ try {
+ N80 = 2;
+ for (; N80 !== 1; ) {
+ switch (N80) {
+ case 2:
+ this.aZ(p.pa.eF, {
+ oa: a.Qb
+ });
+ N80 = 1;
+ break;
+ }
+ }
+ } catch (Ua) {
+ var W0E = "H";
+ W0E += "indsight: Err";
+ W0E += "or evaluating QoE at e";
+ W0E += "ndOfStre";
+ W0E += "am: ";
+ a000.o4P(3);
+ this.Va.Mm(a000.t4P(Ua, W0E));
+ }
+ M80 = 7;
+ break;
+ case 2:
+ a.Pg = !0;
+ M80 = 1;
+ break;
+ }
+ }
+ };
+ a.prototype.Cab = function () {
+ var O80,
+ a;
+ O80 = 2;
+ for (; O80 !== 5; ) {
+ switch (O80) {
+ case 2:
+ a = this.Fb.zb;
+ a && (a = a.get()) && a.avtp && this.Kp.bcb({
+ avtp: a.avtp.Ca
+ });
+ O80 = 5;
+ break;
+ }
+ }
+ };
+ a.prototype.fbb = function () {
+ var P80,
+ a,
+ b,
+ c;
+ P80 = 2;
+ for (; P80 !== 4; ) {
+ switch (P80) {
+ case 2:
+ var Q0E = "st";
+ Q0E += "artup, playerState no";
+ Q0E += " lo";
+ Q0E += "nger STARTING:";
+ var v0E = "fa";
+ v0E += "il";
+ v0E += "ed to s";
+ v0E += "tart a";
+ v0E += "udio pipeline";
+ var e0E = "failed t";
+ e0E += "o start video ";
+ e0E += "pip";
+ e0E += "eline";
+ this.Y.ke(p.pa.Sg);
+ (a = this.sa.Xb, b = a.Nc(0), c = a.Nc(1));
+ this.il && !this.ODa(c) ? this.ib(e0E) : this.Ro && !this.ODa(b) ? this.ib(v0E) : (this.iDa = !0, this.Mc[0].O.G_ = !0, b = this.$a.Ue[1], c = this.$a.Ue[0], (b && 0 < b.dr || c && 0 < c.dr) && this.Va.s$a(String(a.O.G), c ? c.dr : 0, b ? b.dr : 0, c ? c.GQ : 0, b ? b.GQ : 0), this.Y.tOa() ? (this.IW(0), this.Ro && (a = this.Qd.SZ(0), b = this.Qd.Yn(0).cb, this.Va.v$a(a, b))) : this.ib(Q0E, this.Y.Wc()));
+ P80 = 4;
+ break;
+ }
+ }
+ };
+ T60 = 72;
+ break;
+ case 94:
+ a.prototype.oCa = function () {
+ var U90;
+ U90 = 2;
+ for (; U90 !== 5; ) {
+ switch (U90) {
+ case 2:
+ var h0E = "N";
+ h0E += "etwork fail";
+ h0E += "ur";
+ h0E += "es rese";
+ h0E += "t!";
+ this.ib(h0E);
+ this.pf.Bi();
+ U90 = 5;
+ break;
+ }
+ }
+ };
+ a.prototype.s9a = function (a, b) {
+ var V90;
+ V90 = 2;
+ for (; V90 !== 5; ) {
+ switch (V90) {
+ case 2:
+ b = h.ILa(b);
+ this.F$[a.L] = b;
+ V90 = 5;
+ break;
+ }
+ }
+ };
+ Object.defineProperties(a.prototype, {
+ Uu: {
+ set: function (a) {
+ var W90;
+ W90 = 2;
+ for (; W90 !== 1; ) {
+ switch (W90) {
+ case 2:
+ this.$a.Uu = a;
+ W90 = 1;
+ break;
+ case 4:
+ this.$a.Uu = a;
+ W90 = 4;
+ break;
+ W90 = 1;
+ break;
+ }
+ }
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ a.prototype.c_ = function (a) {
+ var X90,
+ b;
+ X90 = 2;
+ for (; X90 !== 4; ) {
+ switch (X90) {
+ case 2:
+ this.Mc.some(function (c) {
+ var Y90;
+ Y90 = 2;
+ for (; Y90 !== 1; ) {
+ switch (Y90) {
+ case 2:
+ return c.O.Wk === a ? (b = c.O.Za, !0) : !1;
+ break;
+ }
+ }
+ });
+ X90 = 5;
+ break;
+ case 5:
+ return b;
+ break;
+ }
+ }
+ };
+ return a;
+ break;
+ case 32:
+ a.prototype.sS = function () {
+ var O70;
+ O70 = 2;
+ for (; O70 !== 1; ) {
+ switch (O70) {
+ case 2:
+ this.Y.sS();
+ O70 = 1;
+ break;
+ }
+ }
+ };
+ a.prototype.OSa = function () {};
+ a.prototype.close = function () {
+ var P70;
+ P70 = 2;
+ for (; P70 !== 4; ) {
+ switch (P70) {
+ case 2:
+ this.FVa.ic();
+ this.Mc.forEach(function (a) {
+ var Q70;
+ Q70 = 2;
+ for (; Q70 !== 1; ) {
+ switch (Q70) {
+ case 2:
+ a.close();
+ Q70 = 1;
+ break;
+ }
+ }
+ });
+ this.op.close();
+ P70 = 4;
+ break;
+ }
+ }
+ };
+ a.prototype.sUa = function () {
+ var R70;
+ R70 = 2;
+ for (; R70 !== 1; ) {
+ switch (R70) {
+ case 2:
+ this.Fb.yab(this);
+ R70 = 1;
+ break;
+ }
+ }
+ };
+ a.prototype.yc = function () {
+ var S70,
+ a;
+ S70 = 2;
+ for (; S70 !== 20; ) {
+ switch (S70) {
+ case 2:
+ this.Ef.gBb();
+ this.BV();
+ this.sa.ic();
+ this.lO.D8a();
+ null === (a = this.qu) || void 0 === a ? void 0 : a.reset();
+ S70 = 8;
+ break;
+ case 13:
+ this.Vf.clear();
+ a = this.lf;
+ this.lf = void 0;
+ S70 = 10;
+ break;
+ case 8:
+ this.as.forEach(function (a) {
+ var T70;
+ T70 = 2;
+ for (; T70 !== 1; ) {
+ switch (T70) {
+ case 2:
+ a.reset();
+ T70 = 1;
+ break;
+ }
+ }
+ });
+ this.Y.ke(p.pa.Bo);
+ this.Mc.forEach(function (a) {
+ var U70;
+ U70 = 2;
+ for (; U70 !== 1; ) {
+ switch (U70) {
+ case 4:
+ a.yc();
+ U70 = 0;
+ break;
+ U70 = 1;
+ break;
+ case 2:
+ a.yc();
+ U70 = 1;
+ break;
+ }
+ }
+ });
+ this.Mc = [];
+ S70 = 13;
+ break;
+ case 10:
+ var O0E = "Error o";
+ O0E += "n MediaSo";
+ O0E += "urc";
+ O0E += "e";
+ O0E += " destroy: ";
+ k.X(a) || a.vq() || this.ib(O0E, a.error);
+ S70 = 20;
+ break;
+ }
+ }
+ };
+ a.prototype.suspend = function () {
+ var V70;
+ V70 = 2;
+ for (; V70 !== 1; ) {
+ switch (V70) {
+ case 2:
+ this.op.suspend();
+ V70 = 1;
+ break;
+ }
+ }
+ };
+ a.prototype.resume = function () {
+ var W70;
+ W70 = 2;
+ for (; W70 !== 1; ) {
+ switch (W70) {
+ case 2:
+ this.op.resume();
+ W70 = 1;
+ break;
+ }
+ }
+ };
+ a.prototype.rl = function () {
+ var X70;
+ X70 = 2;
+ for (; X70 !== 1; ) {
+ switch (X70) {
+ case 2:
+ return this.op.rl();
+ break;
+ }
+ }
+ };
+ a.prototype.abb = function () {
+ var Y70,
+ a;
+ Y70 = 2;
+ for (; Y70 !== 8; ) {
+ switch (Y70) {
+ case 9:
+ this.yt && !this.rV && (this.rV = setInterval(this.Va.XCa.bind(this.Va), a.mca));
+ Y70 = 8;
+ break;
+ case 5:
+ this.Vx = setTimeout(this.JM.bind(this), a.s4);
+ this.pu || (this.pu = setInterval(this.Va.YCa.bind(this.Va), a.HB));
+ this.QW || (this.QW = setInterval(this.Va.M$a.bind(this.Va), a.$oa));
+ Y70 = 9;
+ break;
+ case 2:
+ a = this.K;
+ this.Vx && clearTimeout(this.Vx);
+ Y70 = 5;
+ break;
+ }
+ }
+ };
+ a.prototype.BV = function () {
+ var Z70;
+ Z70 = 2;
+ for (; Z70 !== 7; ) {
+ switch (Z70) {
+ case 2:
+ this.Vx && (clearTimeout(this.Vx), this.Vx = void 0);
+ this.pu && (clearInterval(this.pu), this.pu = void 0);
+ this.QW && (clearInterval(this.QW), this.QW = void 0);
+ this.rV && (clearInterval(this.rV), this.rV = void 0);
+ Z70 = 3;
+ break;
+ case 3:
+ this.oF && (clearTimeout(this.oF), this.oF = void 0);
+ this.daa && (clearTimeout(this.daa), this.daa = void 0);
+ this.pf.BV();
+ Z70 = 7;
+ break;
+ }
+ }
+ };
+ T60 = 39;
+ break;
+ case 72:
+ a.prototype.ODa = function (a) {
+ var Q80,
+ b,
+ c;
+ Q80 = 2;
+ for (; Q80 !== 14; ) {
+ switch (Q80) {
+ case 2:
+ (b = a.L, c = this.$a.ksb(a));
+ Q80 = 1;
+ break;
+ case 1:
+ Q80 = k.X(c) ? 5 : 4;
+ break;
+ case 3:
+ Q80 = a.nj() ? 9 : 8;
+ break;
+ case 5:
+ var z0E = "NFErr_MC_Stream";
+ z0E += "ing";
+ z0E += "Ini";
+ z0E += "tFai";
+ z0E += "lure";
+ var q0E = "st";
+ q0E += "ar";
+ q0E += "tPipeline";
+ q0E += " failed";
+ return (this.rl() || this.ul(q0E, a.Gc.O.Za, z0E), !1);
+ break;
+ case 8:
+ c = this.Qd.O;
+ a.O.xHa(a, {
+ offset: 0,
+ uy: !c.Ie.Kf && !c.ij && 1 === b,
+ Es: !this.$a.Ue[b].zob
+ });
+ return !0;
+ break;
+ case 9:
+ return !0;
+ break;
+ case 4:
+ a = a.track.Qc[c];
+ Q80 = 3;
+ break;
+ }
+ }
+ };
+ a.prototype.IW = function (a, b) {
+ var R80,
+ c,
+ f,
+ d,
+ h,
+ k;
+ R80 = 2;
+ for (; R80 !== 19; ) {
+ switch (R80) {
+ case 11:
+ f.sO && (this.daa = setTimeout(function () {
+ var T80;
+ T80 = 2;
+ for (; T80 !== 1; ) {
+ switch (T80) {
+ case 2:
+ c.Cab();
+ T80 = 1;
+ break;
+ }
+ }
+ }, f.cfa));
+ this.Y.Ih() && (this.oF = setTimeout(function () {
+ var U80;
+ U80 = 2;
+ for (; U80 !== 1; ) {
+ switch (U80) {
+ case 2:
+ c.$a.ru();
+ U80 = 1;
+ break;
+ case 4:
+ c.$a.ru();
+ U80 = 8;
+ break;
+ U80 = 1;
+ break;
+ }
+ }
+ }, f.qz));
+ this.pf.Bi();
+ R80 = 19;
+ break;
+ case 4:
+ var E0E = "st";
+ E0E += "artBuffe";
+ E0E += "ring";
+ this.Y.ke(2 === a ? p.pa.gf : p.pa.Xd);
+ this.Va.p$a(b);
+ this.qu.reset();
+ this.Qd.O.qQ();
+ this.emit(E0E);
+ R80 = 6;
+ break;
+ case 2:
+ (c = this, f = this.K, d = this.$a.Ue[0] || ({}), h = this.$a.Ue[1] || ({}), k = this.$a.Fw[1] || ({}));
+ (this.$a.Fw[0] || ({})).sN = void 0;
+ k.sN = void 0;
+ R80 = 4;
+ break;
+ case 6:
+ m.We.forEach(function (b) {
+ var S80;
+ S80 = 2;
+ for (; S80 !== 5; ) {
+ switch (S80) {
+ case 2:
+ S80 = (b = c.sa.Xb.Nc(b)) ? 1 : 5;
+ break;
+ case 1:
+ (b.Mca = 0, b.seeking = 0 === a || 1 === a, b.oda());
+ S80 = 5;
+ break;
+ }
+ }
+ });
+ this.M$ = t.time.ea();
+ d.Mj = h.Mj = this.M$;
+ 0 === a && (!this.il || 0 < h.dr) && (!this.Ro || 0 < d.dr) && this.$a.ru();
+ R80 = 11;
+ break;
+ }
+ }
+ };
+ a.prototype.YW = function (a) {
+ var V80,
+ b;
+ V80 = 2;
+ for (; V80 !== 3; ) {
+ switch (V80) {
+ case 2:
+ var U0E = "Adopting";
+ U0E += "Data still has";
+ U0E += " lo";
+ U0E += "c";
+ U0E += "k:";
+ var P0E = "w";
+ P0E += "ipe";
+ P0E += "Heade";
+ P0E += "rC";
+ P0E += "ache:";
+ a000.o4P(3);
+ a = a000.t4P(a, P0E);
+ this.wx.$x && this.jf(U0E + a);
+ b = this.K;
+ b.dla || (b.ah && this.Va.Qk(a), this.Fb.vN(), this.Ug && (this.Ug = void 0));
+ V80 = 3;
+ break;
+ }
+ }
+ };
+ a.prototype.FBa = function (a) {
+ var W80,
+ c,
+ f,
+ d,
+ h;
+ W80 = 2;
+ function b(a, b) {
+ var X80,
+ f,
+ d,
+ h,
+ g,
+ m,
+ l,
+ p;
+ X80 = 2;
+ for (; X80 !== 10; ) {
+ switch (X80) {
+ case 12:
+ b.gX(d.hp, !b.Ie.Kf && !b.ij && 1 === f, !0) && (void 0 !== a.mD && a.QD(a.mD), h = b.nj(f, g).stream.$.ym(a.Ub, void 0, !0), b = m.Hi(h), m = b.T, a.yoa() && (b = b.mZ(a.Ub)) && 0 < b.Oc && (m = b.Oc), a.Ub !== m && (a.roa(m, h), c.gba(f, m)), h = c.D7a(a, d.data).then(function () {
+ var Y80;
+ Y80 = 2;
+ for (; Y80 !== 1; ) {
+ switch (Y80) {
+ case 2:
+ return g;
+ break;
+ }
+ }
+ }), l.zob = !0, 0 === f && c.Ef.yJ(d.hp.R));
+ X80 = 11;
+ break;
+ case 9:
+ p.gp = b.gp;
+ X80 = 8;
+ break;
+ case 13:
+ b = c.Qd.O;
+ X80 = 12;
+ break;
+ case 1:
+ X80 = d ? 5 : 11;
+ break;
+ case 14:
+ var C0E = "adopt";
+ C0E += "Pipeline no header for ";
+ C0E += "streamI";
+ C0E += "d:";
+ return (a.jf(C0E, g), h);
+ break;
+ case 2:
+ (f = a.L, d = b[f], h = C.resolve(void 0));
+ X80 = 1;
+ break;
+ case 11:
+ return h;
+ break;
+ case 8:
+ X80 = !a.lOb(g) ? 7 : 6;
+ break;
+ case 6:
+ X80 = !d.hp ? 14 : 13;
+ break;
+ case 7:
+ return h;
+ break;
+ case 5:
+ (g = d.wa, m = d.hp.stream, l = c.$a.Ue[f], p = c.$a.Fw[f]);
+ k.X(b.Mq) || c.Ef.PVa(b.Mq, b.Kk, b.Lk);
+ p.kp = b.kp;
+ X80 = 9;
+ break;
+ }
+ }
+ }
+ for (; W80 !== 13; ) {
+ switch (W80) {
+ case 2:
+ var p0E = "Previous";
+ p0E += "ly adopted request lis";
+ p0E += "t still retai";
+ p0E += "ned was unexpected";
+ c = this;
+ (null === (f = this.Ug) || void 0 === f ? 0 : f.zC()) && this.jf(p0E);
+ this.Ug = void 0;
+ d = this.K;
+ W80 = 3;
+ break;
+ case 9:
+ return (this.Fb.Tca(), C.resolve());
+ break;
+ case 3:
+ W80 = !this.Bbb || !this.Fb.af ? 9 : 8;
+ break;
+ case 8:
+ var u3E = "ca";
+ u3E += "t";
+ u3E += "c";
+ u3E += "h";
+ var S0E = "chec";
+ S0E += "k";
+ S0E += "F";
+ S0E += "orHc";
+ S0E += "dStart";
+ this.Va.zk(S0E);
+ this.Mc.forEach(function (b) {
+ var Z80;
+ Z80 = 2;
+ for (; Z80 !== 1; ) {
+ switch (Z80) {
+ case 2:
+ b.O.G === a && (h = b);
+ Z80 = 1;
+ break;
+ }
+ }
+ });
+ return this.Fb.af.Pxb(a, h ? h.O : void 0).then(function (a) {
+ var a90,
+ f,
+ h;
+ a90 = 2;
+ for (; a90 !== 8; ) {
+ switch (a90) {
+ case 2:
+ var L0E = "check";
+ L0E += "F";
+ L0E += "orHc";
+ L0E += "dE";
+ L0E += "nd";
+ c.Va.zk(L0E);
+ a90 = 1;
+ break;
+ case 1:
+ a90 = k.X(a) ? 5 : 4;
+ break;
+ case 5:
+ var w0E = "he";
+ w0E += "aderC";
+ w0E += "acheDataNo";
+ w0E += "tFoun";
+ w0E += "d";
+ return (d.UM || c.wx.$x || c.YW(w0E), C.resolve());
+ break;
+ case 4:
+ var D0E = "adop";
+ D0E += "t";
+ D0E += "HcdS";
+ D0E += "tar";
+ D0E += "t";
+ (f = c.sa.Xb.Nc(0), h = c.sa.Xb.Nc(1));
+ c.Va.zk(D0E);
+ return c.wx.yZa(function () {
+ var b90,
+ k,
+ g;
+ b90 = 2;
+ for (; b90 !== 7; ) {
+ switch (b90) {
+ case 2:
+ k = C.resolve();
+ c.il && (k = b(h, a));
+ g = C.resolve();
+ !c.Ro || d.UMa && !k || (g = d.UMa ? k.then(function (c) {
+ var c90;
+ c90 = 2;
+ for (; c90 !== 1; ) {
+ switch (c90) {
+ case 2:
+ return c ? b(f, a) : C.resolve();
+ break;
+ }
+ }
+ }) : b(f, a));
+ b90 = 3;
+ break;
+ case 3:
+ var K0E = "ado";
+ K0E += "ptH";
+ K0E += "cdE";
+ K0E += "nd";
+ c.sCa = a;
+ c.Va.zk(K0E);
+ return C.all([k, g]);
+ break;
+ }
+ }
+ });
+ break;
+ }
+ }
+ }).then(function () {
+ var d90,
+ a;
+ d90 = 2;
+ for (; d90 !== 5; ) {
+ switch (d90) {
+ case 2:
+ var r3E = "adoptedComp";
+ r3E += "letedRequ";
+ r3E += "est";
+ r3E += "s";
+ d.UM || (null === (a = c.Ug) || void 0 === a ? 0 : a.zC()) || c.wx.$x || c.YW(r3E);
+ d90 = 5;
+ break;
+ }
+ }
+ })[u3E](function (a) {
+ var e90;
+ e90 = 2;
+ for (; e90 !== 1; ) {
+ switch (e90) {
+ case 2:
+ var n3E = "headerC";
+ n3E += "ache:look";
+ n3E += "upD";
+ n3E += "ataPromise caught error:";
+ c.ib(n3E, a);
+ e90 = 1;
+ break;
+ }
+ }
+ });
+ break;
+ }
+ }
+ };
+ a.prototype.D7a = function (a, b) {
+ var f90,
+ c,
+ f,
+ d,
+ h,
+ g,
+ m,
+ l;
+ f90 = 2;
+ for (; f90 !== 9; ) {
+ switch (f90) {
+ case 5:
+ return C.resolve();
+ break;
+ case 1:
+ f90 = 0 === b.length ? 5 : 4;
+ break;
+ case 2:
+ c = this;
+ f90 = 1;
+ break;
+ case 14:
+ return C.resolve();
+ break;
+ f90 = 4;
+ break;
+ case 4:
+ (f = a.G0, d = f.aa, h = Math.min(this.Mc[0].oa || Infinity, f.Qb || Infinity), g = a.L, m = this.$a.Ue[g]);
+ return this.wx.yZa(function () {
+ var g90,
+ p;
+ g90 = 2;
+ for (; g90 !== 3; ) {
+ switch (g90) {
+ case 5:
+ f();
+ g90 = 1;
+ break;
+ case 8:
+ p = [];
+ g90 = 9;
+ break;
+ g90 = 1;
+ break;
+ case 2:
+ p = [];
+ g90 = 1;
+ break;
+ case 7:
+ g90 = 3 <= b.length ? 4 : 0;
+ break;
+ g90 = 0 < b.length ? 5 : 4;
+ break;
+ case 1:
+ g90 = 0 < b.length ? 5 : 4;
+ break;
+ case 14:
+ return C.all(p);
+ break;
+ g90 = 3;
+ break;
+ case 6:
+ f();
+ g90 = 2;
+ break;
+ g90 = 1;
+ break;
+ case 4:
+ return C.all(p);
+ break;
+ }
+ }
+ function f() {
+ var h90,
+ f;
+ h90 = 2;
+ for (; h90 !== 5; ) {
+ switch (h90) {
+ case 2:
+ var T3E = "adoptData, n";
+ T3E += "ot adopting faile";
+ T3E += "d me";
+ T3E += "d";
+ T3E += "iaRequest:";
+ var f3E = "adoptData, not adoptin";
+ f3E += "g aborted ";
+ f3E += "mediaRequest:";
+ f = b.shift();
+ 7 === f.readyState ? a.ib(f3E, f.toString()) : 6 === f.readyState ? (a.ib(T3E, f.toString()), c.sB(f, !1)) : a.Ub >= f.cc && a.Ub < f.Qb && (a.Ub < h || !k.na(h)) ? (p.push(c.E7a(a, f).then(function () {
+ var i90;
+ i90 = 2;
+ for (; i90 !== 1; ) {
+ switch (i90) {
+ case 2:
+ f.complete && c.AMa(f);
+ i90 = 1;
+ break;
+ }
+ }
+ })), a.VIb(f.Qb), k.na(h) && a.Ub >= h && c.Va.Raa(d, f.Qb), 0 === g && c.Ef.yJ(f.R), f.complete ? (m.dr += f.duration, f.vxb && (m.GQ += f.duration), l = f) : (c.Ug || (c.Ug = new z.Iqa(c.u)), c.Ug.push(f))) : c.sB(f, !1);
+ h90 = 5;
+ break;
+ }
+ }
+ }
+ }).then(function () {
+ var j90,
+ b,
+ d;
+ j90 = 2;
+ for (; j90 !== 8; ) {
+ switch (j90) {
+ case 5:
+ j90 = l || (null === (b = c.Ug) || void 0 === b ? 0 : b.zC()) ? 4 : 8;
+ break;
+ case 2:
+ l && a.BMa(l);
+ j90 = 5;
+ break;
+ case 4:
+ b = c.Mc[f.O.Za];
+ d = a.Ofa(a.Ub);
+ void 0 !== d ? (a.Pk = d, a.kg = b.O.qg[g].stream.Hi(a.Pk)) : a.Pk = a.rg ? a.rg.index + 1 : a.Pk + 1;
+ j90 = 8;
+ break;
+ }
+ }
+ });
+ break;
+ }
+ }
+ };
+ a.prototype.E7a = function (a, b) {
+ var k90,
+ c,
+ f;
+ k90 = 2;
+ for (; k90 !== 3; ) {
+ switch (k90) {
+ case 2:
+ var G3E = "c";
+ G3E += "at";
+ G3E += "ch";
+ var y3E = ",";
+ y3E += " p";
+ y3E += "ts";
+ y3E += ": ";
+ var B3E = ", sta";
+ B3E += "t";
+ B3E += "e";
+ B3E += ":";
+ B3E += " ";
+ var H3E = "ad";
+ H3E += "opt";
+ H3E += "MediaR";
+ H3E += "equest";
+ H3E += ": type: ";
+ (c = this, f = a.L);
+ this.K.ah && this.Va.Qk(H3E + f + B3E + b.readyState + y3E + b.cc);
+ this.gba(f, b.cc);
+ return a.Ja.Ocb(b)[G3E](function (a) {
+ var l90;
+ l90 = 2;
+ for (; l90 !== 1; ) {
+ switch (l90) {
+ case 2:
+ var J3E = "Error";
+ J3E += " ad";
+ J3E += "o";
+ J3E += "pting requests";
+ c.jf(J3E, a);
+ l90 = 1;
+ break;
+ }
+ }
+ });
+ break;
+ }
+ }
+ };
+ a.prototype.dba = function (a, b, c) {
+ var m90,
+ f;
+ m90 = 2;
+ for (; m90 !== 9; ) {
+ switch (m90) {
+ case 2:
+ f = this;
+ void 0 === b && (b = Y.uL.zca);
+ (c || this.sa.Xb).una(a, b);
+ this.qu.reset();
+ (void 0 === a ? m.We : [a]).forEach(function (a) {
+ var n90;
+ n90 = 2;
+ for (; n90 !== 1; ) {
+ switch (n90) {
+ case 2:
+ f.nb(a) && (f.as[a].reset(), f.Mab(a), f.Ef.sBb(a));
+ n90 = 1;
+ break;
+ }
+ }
+ });
+ m90 = 9;
+ break;
+ }
+ }
+ };
+ a.prototype.Woa = function (a) {
+ var o90,
+ b;
+ o90 = 2;
+ for (; o90 !== 5; ) {
+ switch (o90) {
+ case 2:
+ b = this;
+ (void 0 === a ? m.We : [a]).forEach(function (a) {
+ var q90,
+ c;
+ q90 = 2;
+ for (; q90 !== 5; ) {
+ switch (q90) {
+ case 2:
+ null === (c = b.as[a]) || void 0 === c ? void 0 : c.stop();
+ q90 = 5;
+ break;
+ }
+ }
+ });
+ o90 = 5;
+ break;
+ }
+ }
+ };
+ a.prototype.VD = function (a) {
+ var r90,
+ b;
+ r90 = 2;
+ for (; r90 !== 4; ) {
+ switch (r90) {
+ case 2:
+ b = this;
+ (void 0 === a ? m.We : [a]).forEach(function (a) {
+ var s90,
+ c;
+ s90 = 2;
+ for (; s90 !== 5; ) {
+ switch (s90) {
+ case 2:
+ null === (c = b.as[a]) || void 0 === c ? void 0 : c.resume();
+ s90 = 5;
+ break;
+ }
+ }
+ });
+ return C.resolve();
+ break;
+ }
+ }
+ };
+ a.prototype.BM = function (a) {
+ var t90,
+ b,
+ c;
+ t90 = 2;
+ for (; t90 !== 3; ) {
+ switch (t90) {
+ case 2:
+ b = this;
+ a = void 0 === a ? m.We : [a];
+ null === (c = this.qu) || void 0 === c ? void 0 : c.reset();
+ a.forEach(function (a) {
+ var u90,
+ c;
+ u90 = 2;
+ for (; u90 !== 5; ) {
+ switch (u90) {
+ case 2:
+ null === (c = b.as[a]) || void 0 === c ? void 0 : c.resume();
+ u90 = 5;
+ break;
+ }
+ }
+ });
+ t90 = 3;
+ break;
+ }
+ }
+ };
+ T60 = 87;
+ break;
+ }
+ }
+ })();
+ b.Kza = a;
+ d.Ve(c.EventEmitter, a);
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.pL = void 0;
+ d = (function () {
+ function a(a) {
+ this.zi = {};
+ this.Jaa = a;
+ this.mf = [];
+ this.No = !1;
+ this.nB = void 0;
+ }
+ a.prototype.iX = function (a) {
+ this.mf.length === this.Jaa && this.mf.shift();
+ Array.isArray(a) ? this.mf = this.mf.concat(a) : this.mf.push(a);
+ this.No = !0;
+ };
+ a.prototype.FH = function () {
+ return this.mf.length;
+ };
+ a.prototype.Wca = function () {
+ var a;
+ a = this.mf;
+ return 0 < a.length ? a.reduce(function (a, b) {
+ return a + b;
+ }, 0) / this.mf.length : void 0;
+ };
+ a.prototype.IX = function () {
+ var a,
+ b;
+ a = this.mf;
+ b = this.Wca();
+ if (0 < a.length && "undefined" !== typeof b)
+ return (a = a.reduce(function (a, b) {
+ return a + b * b;
+ }, 0) / a.length, Math.sqrt(a - b * b));
+ };
+ a.prototype.oq = function (a) {
+ var b,
+ c,
+ d;
+ if (this.No || void 0 === this.nB)
+ (this.nB = this.mf.slice(0).sort(function (a, b) {
+ return a - b;
+ }), this.No = !1);
+ if (void 0 === this.zi[a]) {
+ b = this.nB;
+ c = Math.floor(a / 100 * (b.length - 1) + 1) - 1;
+ d = (a / 100 * (b.length - 1) + 1) % 1;
+ this.zi[a] = c === b.length - 1 ? b[c] : b[c] + d * (b[c + 1] - b[c]);
+ }
+ return this.zi[a];
+ };
+ return a;
+ })();
+ b.pL = d;
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Pva = void 0;
+ d = (function () {
+ function a(a, b, d) {
+ this.nbb = b;
+ this.S7a = d;
+ this.u = a;
+ }
+ a.prototype.qma = function (a) {
+ a = this.Uub(a, this.nbb) + this.S7a;
+ return this.Zaa = isNaN(a) ? NaN : this.Eoa(a);
+ };
+ a.prototype.ugb = function (a) {
+ return isNaN(this.Zaa) ? 0 : this.Zaa > a ? 1 : 0;
+ };
+ a.prototype.Uub = function (a, b) {
+ var c;
+ c = 0;
+ if (a.length !== b.length)
+ c = NaN;
+ else
+ for (var d = 0; d < a.length; d++) {
+ c += a[d] * b[d];
+ }
+ return c;
+ };
+ a.prototype.Eoa = function (a) {
+ return 1 / (1 + Math.exp(-a));
+ };
+ return a;
+ })();
+ b.Pva = d;
+ }, function (d, b, a) {
+ var g,
+ r;
+ function c() {
+ this.Au = this.WL = this.VV = this.hW = this.SV = null;
+ }
+ function k(a) {
+ this.K = a;
+ this.Fu = [];
+ this.Fo = new c();
+ this.iM();
+ }
+ g = a(8);
+ a(19);
+ a(11);
+ r = a(4);
+ new r.Console("ASEJS_SESSION_HISTORY", "media|asejs");
+ c.prototype.ke = function (a) {
+ var b;
+ b = !1;
+ a && g.has(a, "ens") && g.has(a, "lns") && g.has(a, "fns") && g.has(a, "d") && g.has(a, "t") && (this.SV = a.ens, this.hW = a.lns, this.VV = a.fns, this.WL = a.d, this.Au = a.t, b = !0);
+ return b;
+ };
+ c.prototype.Wc = function () {
+ var a;
+ if (g.Pa(this.SV) || g.Pa(this.hW) || g.Pa(this.VV) || g.Pa(this.WL) || g.Pa(this.Au))
+ return null;
+ a = {
+ d: this.WL,
+ t: this.Au
+ };
+ a.ens = this.SV;
+ a.lns = this.hW;
+ a.fns = this.VV;
+ return a;
+ };
+ c.prototype.get = function () {
+ var a,
+ b;
+ a = this.Wc();
+ if (a) {
+ b = new Date(this.Au);
+ a.dateint = 1E4 * b.getFullYear() + 100 * (b.getMonth() + 1) + b.getDate();
+ a.hour = b.getHours();
+ }
+ return a;
+ };
+ k.prototype.iM = function () {
+ var a;
+ a = r.storage.get("sth");
+ a && this.ke(a);
+ };
+ k.prototype.ke = function (a) {
+ var b,
+ d;
+ b = null;
+ d = this.K;
+ a.forEach(function (a) {
+ var f;
+ f = new c();
+ f.ke(a) ? (b = !0, this.Fu.push(f)) : g.Pa(b) && (b = !1);
+ }, this);
+ this.Fu = this.Fu.filter(function (a) {
+ return a.WL >= d.o1;
+ });
+ this.Fu.sort(function (a, b) {
+ return a.Au - b.Au;
+ });
+ return g.Pa(b) ? !0 : b;
+ };
+ k.prototype.paa = function () {
+ var a;
+ a = [];
+ this.Fu.forEach(function (b) {
+ a.push(b.Wc());
+ }, this);
+ return a;
+ };
+ k.prototype.save = function () {
+ var a,
+ b,
+ d;
+ a = this.paa();
+ b = this.K;
+ d = this.Fo.Wc();
+ d && d.d >= b.o1 && (a.push(d), this.Fu.push(this.Fo));
+ a.length > b.U0 && (a = a.slice(a.length - b.U0, a.length));
+ this.Fo = new c();
+ a && r.storage.set("sth", a);
+ };
+ k.prototype.reset = function () {
+ this.Fo = new c();
+ };
+ k.prototype.fqb = function () {
+ return this.Fo.get();
+ };
+ k.prototype.msb = function () {
+ return this.Fu.length + 1;
+ };
+ k.prototype.bcb = function (a) {
+ this.Fo.SV = a;
+ this.Fo.Au = r.time.ea();
+ };
+ k.prototype.ncb = function (a) {
+ this.Fo.hW = a;
+ this.Fo.Au = r.time.ea();
+ };
+ k.prototype.gcb = function (a, b) {
+ this.Fo.VV = a;
+ this.Fo.Au = r.time.ea();
+ this.Fo.WL = b;
+ };
+ d.P = k;
+ }, function (d, b, a) {
+ var k,
+ g,
+ r,
+ h;
+ function c(a) {
+ var b;
+ b = nrdp.Ah.J0b.match(/android-(\d*)/);
+ b ? 23 < b[1] ? (a.Lz = !1, a.Kz = !1, a.ms = void 0) : (b = nrdp.Ah.DUb.qXb.platform.M_b.match(/(\d*)\.(\d*).(\d*)/)) ? 6 < b[1] || 6 == b[1] && 1 < b[2] || 6 == b[1] && 1 == b[2] && 1 <= b[3] ? (a.Lz = !0, a.Kz = !1, a.ms = void 0) : (a.Lz = !1, a.Kz = !1, a.ms = []) : (a.Lz = !1, a.Kz = !1, a.ms = []) : (a.Lz = !1, a.Kz = !1, a.ms = []);
+ }
+ k = a(5).assert;
+ a(80);
+ g = a(4);
+ r = g.wk;
+ h = g.F4a;
+ d.P = function () {
+ var a,
+ b,
+ f;
+ new g.Console("ASEJSMONKEY", "media|asejs");
+ if (!g.wk.gc) {
+ a = function (a) {
+ this.W9a = a;
+ };
+ b = h.prototype.appendBuffer;
+ g.MediaSource.gc || (g.MediaSource.gc = {});
+ "undefined" !== typeof nrdp && nrdp.REa && (c(g.MediaSource.gc), g.MediaSource.gc.OGa = !1, g.MediaSource.gc.NQa = !1);
+ g.wk.gc = {
+ lJ: {
+ uqa: !0,
+ MA: !0,
+ Pwa: !0
+ }
+ };
+ Object.defineProperty(r.prototype, "_response", {
+ get: function () {
+ return this.jbb || this.y8a;
+ },
+ set: function (a) {
+ this.y8a = a;
+ }
+ });
+ f = r.prototype.open;
+ r.prototype.open = function (b, c, d, h, k, g, m) {
+ 1 === d && (this.jbb = new a(this));
+ return f.call(this, b, c, d, h, k, g, m);
+ };
+ r.prototype.bR = function () {
+ this.ZF = void 0;
+ };
+ h.prototype.appendBuffer = function (c) {
+ if (c instanceof ArrayBuffer)
+ return b.call(this, c);
+ if (c instanceof a)
+ return this.oX(c.W9a);
+ k(!1);
+ };
+ }
+ };
+ }, function (d, b, a) {
+ var c,
+ k,
+ g,
+ r,
+ h,
+ p,
+ m,
+ f,
+ u,
+ n,
+ q,
+ t,
+ C,
+ M,
+ H,
+ G,
+ T;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.vva = void 0;
+ c = a(0);
+ k = a(8);
+ g = a(19);
+ d = a(18);
+ r = a(766);
+ h = a(4);
+ p = h.Promise;
+ m = a(225);
+ f = a(224);
+ u = a(223);
+ n = a(765);
+ q = a(378);
+ t = a(5);
+ C = a(762);
+ M = a(738);
+ H = new h.Console("ASEJS", "media|asejs");
+ G = H.trace.bind(H);
+ T = H.warn.bind(H);
+ d = (function (b) {
+ var Z90;
+ Z90 = 2;
+ function d(c, f) {
+ var a01,
+ d;
+ a01 = 2;
+ for (; a01 !== 13; ) {
+ switch (a01) {
+ case 4:
+ var A3E = "1";
+ A3E += "SIYbZrN";
+ A3E += "J";
+ A3E += "C";
+ A3E += "p9";
+ var F3E = "D";
+ F3E += "E";
+ F3E += "B";
+ F3E += "U";
+ F3E += "G:";
+ var k3E = "nf-";
+ k3E += "a";
+ k3E += "se versio";
+ k3E += "n:";
+ c = a(379);
+ G(k3E, c, F3E, !1);
+ d.eM = !1;
+ d.jDa = !1;
+ d.mB = [];
+ A3E;
+ return d;
+ break;
+ case 2:
+ d = b.call(this) || this;
+ d.config = c;
+ d.Iw = f;
+ a01 = 4;
+ break;
+ }
+ }
+ }
+ for (; Z90 !== 29; ) {
+ switch (Z90) {
+ case 7:
+ Object.defineProperties(d.prototype, {
+ af: {
+ get: function () {
+ var h01;
+ h01 = 2;
+ for (; h01 !== 1; ) {
+ switch (h01) {
+ case 2:
+ return this.wh;
+ break;
+ }
+ }
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(d.prototype, {
+ Mf: {
+ get: function () {
+ var i01;
+ i01 = 2;
+ for (; i01 !== 1; ) {
+ switch (i01) {
+ case 2:
+ return this.DV.Mf;
+ break;
+ }
+ }
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(d.prototype, {
+ oia: {
+ get: function () {
+ var j01;
+ j01 = 2;
+ for (; j01 !== 1; ) {
+ switch (j01) {
+ case 2:
+ return this.jDa;
+ break;
+ }
+ }
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Z90 = 13;
+ break;
+ case 13:
+ d.prototype.Eb = function (a, b, c, d, h, g) {
+ var k01,
+ m,
+ l;
+ k01 = 2;
+ for (; k01 !== 11; ) {
+ switch (k01) {
+ case 14:
+ k01 = l.$J || l.v4 ? 13 : 12;
+ break;
+ case 3:
+ this.FM = d;
+ this.NDa = h;
+ r(l);
+ this.DV = f.tE.OLa(l, this.Iw);
+ k01 = 6;
+ break;
+ case 6:
+ this.fba = new n(l);
+ k01 = 14;
+ break;
+ case 13:
+ var c3E = "medi";
+ c3E += "ac";
+ c3E += "ach";
+ c3E += "e";
+ var R3E = "ca";
+ R3E += "cheE";
+ R3E += "vict";
+ var j3E = "fl";
+ j3E += "ushed";
+ j3E += "Byte";
+ j3E += "s";
+ var a3E = "disca";
+ a3E += "rdedByt";
+ a3E += "es";
+ var b3E = "p";
+ b3E += "rebuffst";
+ b3E += "ats";
+ (b = new M.sua(this, l, c, g), a = function (a) {
+ var l01;
+ l01 = 2;
+ for (; l01 !== 1; ) {
+ switch (l01) {
+ case 4:
+ m.emit(a.type, a);
+ l01 = 0;
+ break;
+ l01 = 1;
+ break;
+ case 2:
+ m.emit(a.type, a);
+ l01 = 1;
+ break;
+ }
+ }
+ }, b.addListener(b3E, a), b.addListener(a3E, a), b.addListener(j3E, a), b.addListener(R3E, a), (l.fqa || l.Tz) && b.addListener(c3E, function (a) {
+ var m01;
+ m01 = 2;
+ for (; m01 !== 1; ) {
+ switch (m01) {
+ case 2:
+ var V3E = "m";
+ V3E += "edia";
+ V3E += "c";
+ V3E += "ach";
+ V3E += "e";
+ m.emit(V3E, a);
+ m01 = 1;
+ break;
+ }
+ }
+ }), this.wh = b);
+ k01 = 12;
+ break;
+ case 2:
+ (m = this, l = this.config);
+ f.tE.reset();
+ 0 < l.Vs && (!k.X(a) && a > l.Vs && (a = l.Vs), b > l.Vs && (b = l.Vs));
+ k.X(a) && (this.QDa = b);
+ k01 = 3;
+ break;
+ case 12:
+ this.eM = !0;
+ k01 = 11;
+ break;
+ }
+ }
+ };
+ d.prototype.BR = function (a, b, c) {
+ var n01;
+ n01 = 2;
+ for (; n01 !== 4; ) {
+ switch (n01) {
+ case 2:
+ this.QDa = a;
+ this.FM = b || 0;
+ this.NDa = c || 0;
+ n01 = 4;
+ break;
+ }
+ }
+ };
+ d.prototype.g2 = function () {
+ var o01;
+ o01 = 2;
+ for (; o01 !== 1; ) {
+ switch (o01) {
+ case 2:
+ this.jDa = !0;
+ o01 = 1;
+ break;
+ }
+ }
+ };
+ d.prototype.Nn = function (a, b, c, f, d, m, l, p, u, r) {
+ var p01;
+ p01 = 2;
+ for (; p01 !== 4; ) {
+ switch (p01) {
+ case 1:
+ return (p = p || this.config, this.zb.reset(), this.Lm.oKb(), this.fba.reset(), void 0 === m && (m = this.LZ(a, b)), k.X(this.FM) && (h.Ik()[g.Na.VIDEO] <= p.yzb ? this.FM = 0 : this.FM = p.gR), a = new C.Kza(this, a, r, b, c, f, d, m, l, p, u), this.mB.push(a), a);
+ break;
+ case 2:
+ p01 = this.eM ? 1 : 5;
+ break;
+ case 5:
+ var x3E = "open: streamin";
+ x3E += "gM";
+ x3E += "anager ";
+ x3E += "not init";
+ x3E += "ted";
+ T(x3E);
+ p01 = 4;
+ break;
+ }
+ }
+ };
+ Z90 = 20;
+ break;
+ case 16:
+ d.prototype.XVa = function () {};
+ d.prototype.LZ = function (a, b, c) {
+ var u01;
+ u01 = 2;
+ for (; u01 !== 1; ) {
+ switch (u01) {
+ case 2:
+ return m.HLa(a, b, c);
+ break;
+ }
+ }
+ };
+ d.prototype.$La = function () {
+ var v01;
+ v01 = 2;
+ for (; v01 !== 4; ) {
+ switch (v01) {
+ case 9:
+ v01 = this.eM ? 2 : 2;
+ break;
+ v01 = this.eM ? 1 : 5;
+ break;
+ case 2:
+ v01 = this.eM ? 1 : 5;
+ break;
+ case 7:
+ T("");
+ v01 = 5;
+ break;
+ v01 = 4;
+ break;
+ case 1:
+ return this.zb.ppb();
+ break;
+ case 5:
+ var t3E = "getSessionStatistics: Streaming";
+ t3E += "Manager n";
+ t3E += "ot";
+ t3E += " initted";
+ T(t3E);
+ v01 = 4;
+ break;
+ }
+ }
+ };
+ d.prototype.FGa = function (a) {
+ var w01,
+ b;
+ w01 = 2;
+ for (; w01 !== 3; ) {
+ switch (w01) {
+ case 2:
+ b = this.Mf || new u(this.config, this.Iw);
+ b.qJa(a);
+ b.save();
+ this.zb && this.zb.reset();
+ w01 = 3;
+ break;
+ }
+ }
+ };
+ Z90 = 25;
+ break;
+ case 20:
+ d.prototype.KP = function (a, b) {
+ var q01;
+ q01 = 2;
+ for (; q01 !== 1; ) {
+ switch (q01) {
+ case 2:
+ return this.wh && (a = this.wh.KP(a, b)) ? a : !1;
+ break;
+ }
+ }
+ };
+ d.prototype.Uja = function (a) {
+ var r01;
+ r01 = 2;
+ for (; r01 !== 1; ) {
+ switch (r01) {
+ case 2:
+ return this.wh && (a = this.wh.pPa(a)) ? a : !1;
+ break;
+ }
+ }
+ };
+ d.prototype.Vv = function () {
+ var s01;
+ s01 = 2;
+ for (; s01 !== 1; ) {
+ switch (s01) {
+ case 2:
+ return this.wh ? this.wh.Vv() : p.resolve([]);
+ break;
+ }
+ }
+ };
+ d.prototype.yab = function (a) {
+ var t01,
+ b;
+ t01 = 2;
+ for (; t01 !== 4; ) {
+ switch (t01) {
+ case 2:
+ var X3E = "ca";
+ X3E += "n'";
+ X3E += "t find session in array, movieId:";
+ this.zb.AR(null);
+ b = this.mB.indexOf(a);
+ k.X(b) ? T(X3E, a.Qd.O.G) : (this.mB.splice(b, 1), 0 === this.mB.length && this.Lm.zKb(), this.Lm.save(), this.Mf.save());
+ t01 = 4;
+ break;
+ }
+ }
+ };
+ Z90 = 16;
+ break;
+ case 2:
+ c.__extends(d, b);
+ Object.defineProperties(d.prototype, {
+ zb: {
+ get: function () {
+ var b01;
+ b01 = 2;
+ for (; b01 !== 1; ) {
+ switch (b01) {
+ case 2:
+ return this.DV.zb;
+ break;
+ }
+ }
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(d.prototype, {
+ Lm: {
+ get: function () {
+ var c01;
+ c01 = 2;
+ for (; c01 !== 1; ) {
+ switch (c01) {
+ case 2:
+ return this.DV.Lm;
+ break;
+ case 4:
+ return this.DV.Lm;
+ break;
+ c01 = 1;
+ break;
+ }
+ }
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(d.prototype, {
+ Kp: {
+ get: function () {
+ var d01;
+ d01 = 2;
+ for (; d01 !== 1; ) {
+ switch (d01) {
+ case 2:
+ return this.fba;
+ break;
+ case 4:
+ return this.fba;
+ break;
+ d01 = 1;
+ break;
+ }
+ }
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(d.prototype, {
+ Fz: {
+ get: function () {
+ var e01;
+ e01 = 2;
+ for (; e01 !== 1; ) {
+ switch (e01) {
+ case 2:
+ return this.FM;
+ break;
+ }
+ }
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(d.prototype, {
+ fja: {
+ get: function () {
+ var f01;
+ f01 = 2;
+ for (; f01 !== 1; ) {
+ switch (f01) {
+ case 2:
+ return !k.X(this.QDa);
+ break;
+ }
+ }
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(d.prototype, {
+ TD: {
+ get: function () {
+ var g01;
+ g01 = 2;
+ for (; g01 !== 1; ) {
+ switch (g01) {
+ case 2:
+ return this.NDa;
+ break;
+ }
+ }
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Z90 = 7;
+ break;
+ case 25:
+ d.prototype.Zpa = function (a) {
+ var x01;
+ x01 = 2;
+ for (; x01 !== 1; ) {
+ switch (x01) {
+ case 2:
+ h.QH(a);
+ x01 = 1;
+ break;
+ case 4:
+ h.QH(a);
+ x01 = 0;
+ break;
+ x01 = 1;
+ break;
+ }
+ }
+ };
+ Z90 = 24;
+ break;
+ case 24:
+ d.prototype.EX = function (a, b) {
+ var y01;
+ y01 = 2;
+ for (; y01 !== 1; ) {
+ switch (y01) {
+ case 2:
+ var o3E = "ca";
+ o3E += "t";
+ o3E += "c";
+ o3E += "h";
+ this.wh && (a = this.wh.YDb(this, a), k.X(b) || a.then(b), a[o3E](function (a) {
+ var z01;
+ z01 = 2;
+ for (; z01 !== 1; ) {
+ switch (z01) {
+ case 2:
+ var s3E = "cachePrepa";
+ s3E += "re caught ";
+ s3E += "er";
+ s3E += "ror:";
+ G(s3E, a);
+ z01 = 1;
+ break;
+ }
+ }
+ }));
+ y01 = 1;
+ break;
+ }
+ }
+ };
+ d.prototype.xN = function () {
+ var A01,
+ a;
+ A01 = 2;
+ for (; A01 !== 5; ) {
+ switch (A01) {
+ case 2:
+ null === (a = this.wh) || void 0 === a ? void 0 : a.flush();
+ A01 = 5;
+ break;
+ }
+ }
+ };
+ d.prototype.Tca = function () {
+ var B01,
+ a;
+ B01 = 2;
+ for (; B01 !== 5; ) {
+ switch (B01) {
+ case 2:
+ null === (a = this.wh) || void 0 === a ? void 0 : a.YJa();
+ B01 = 5;
+ break;
+ }
+ }
+ };
+ d.prototype.yN = function () {
+ var C01;
+ C01 = 2;
+ for (; C01 !== 1; ) {
+ switch (C01) {
+ case 4:
+ return this.wh ? this.wh.list() : [];
+ break;
+ C01 = 1;
+ break;
+ case 2:
+ return this.wh ? this.wh.list() : [];
+ break;
+ }
+ }
+ };
+ d.prototype.fGa = function (a) {
+ var D01,
+ b;
+ D01 = 2;
+ for (; D01 !== 5; ) {
+ switch (D01) {
+ case 2:
+ null === (b = this.wh) || void 0 === b ? void 0 : b.qoa(a);
+ D01 = 5;
+ break;
+ }
+ }
+ };
+ Z90 = 34;
+ break;
+ case 34:
+ d.prototype.vN = function () {
+ var E01,
+ a;
+ E01 = 2;
+ for (; E01 !== 5; ) {
+ switch (E01) {
+ case 2:
+ null === (a = this.wh) || void 0 === a ? void 0 : a.olb();
+ E01 = 5;
+ break;
+ }
+ }
+ };
+ d.prototype.eGa = function () {
+ var F01;
+ F01 = 2;
+ for (; F01 !== 1; ) {
+ switch (F01) {
+ case 4:
+ return this.wh ? this.wh.T2() : 1;
+ break;
+ F01 = 1;
+ break;
+ case 2:
+ return this.wh ? this.wh.T2() : null;
+ break;
+ }
+ }
+ };
+ d.prototype.EVa = function () {
+ var G01,
+ a;
+ G01 = 2;
+ for (; G01 !== 3; ) {
+ switch (G01) {
+ case 1:
+ a = new q.WT(this.Kp.Fu, this.config, H);
+ G01 = 5;
+ break;
+ case 2:
+ G01 = this.eM ? 1 : 4;
+ break;
+ case 5:
+ return {
+ xG: a.CFa,
+ k_b: a.DFa,
+ D0b: a.xIb
+ };
+ break;
+ case 4:
+ var M3E = "sessionHisto";
+ M3E += "ryReport: ase-";
+ M3E += "manager";
+ M3E += " n";
+ M3E += "ot initted";
+ T(M3E);
+ G01 = 3;
+ break;
+ }
+ }
+ };
+ d.prototype.ic = function () {
+ var H01;
+ H01 = 2;
+ for (; H01 !== 6; ) {
+ switch (H01) {
+ case 8:
+ delete this.wh;
+ f.tE.reset();
+ H01 = 6;
+ break;
+ case 2:
+ var Z3E = "Att";
+ Z3E += "empted to destruct";
+ Z3E += " Manager ";
+ Z3E += "before al";
+ Z3E += "l Sessions removed";
+ t.assert(0 === this.mB.length, Z3E);
+ this.eM = !1;
+ delete this.DV;
+ delete this.fba;
+ delete this.Iw;
+ this.vN();
+ H01 = 8;
+ break;
+ }
+ }
+ };
+ Z90 = 30;
+ break;
+ case 30:
+ return d;
+ break;
+ }
+ }
+ })(d.EventEmitter);
+ b.vva = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ g;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.xFa = void 0;
+ c = a(18);
+ k = a(80);
+ g = a(11);
+ b.xFa = function (a) {
+ if (a.v7a)
+ return a;
+ k(c.EventEmitter.prototype, a);
+ Object.defineProperties(a, {
+ v7a: {
+ value: !0
+ },
+ iBa: {
+ set: function (a) {
+ this.isReady = a;
+ }
+ },
+ ud: {
+ get: function () {
+ return this.isReady ? new g.fa(this.Sd(), 1E3) : void 0;
+ }
+ },
+ playbackRate: {
+ get: function () {
+ return Math.max("function" === typeof this.Am ? this.Am() : 1, .01);
+ }
+ }
+ });
+ return a;
+ };
+ }, function (d, b, a) {
+ var k,
+ g;
+ function c(a, b, c) {
+ var d,
+ f;
+ d = Array.isArray(c) ? c[0] : c;
+ f = Array.isArray(c) ? c[1] : c;
+ b.on(d, function (b) {
+ a.emit(f, k.__assign(k.__assign({}, b), {
+ type: f
+ }));
+ });
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.VIa = b.RY = b.LPa = b.MPa = void 0;
+ k = a(0);
+ g = a(5);
+ b.MPa = function (a, b, d, m) {
+ ["buffering", ["debug", "managerdebugevent"], "endOfStream", "initialAudioTrack", "locationSelected", "logdata", "openComplete", "startEvent", ["streamerEnd", "streamerend"]].forEach(function (a) {
+ c(d, m.events, a);
+ });
+ m.events.on("bufferingStarted", function (a) {
+ d.RXa || d.emit("bufferingStarted", a);
+ });
+ m.events.on("bufferingComplete", function (a) {
+ d.RXa || d.EIb(a);
+ });
+ m.events.on("error", function (a) {
+ a = k.__assign(k.__assign({}, a), {
+ manifestIndex: 0
+ });
+ d.emit("error", a);
+ });
+ m.events.on("segmentComplete", function (a) {
+ d.emit("segmentComplete", {
+ type: "segmentComplete",
+ mediaType: a.mediaType,
+ manifestIndex: 0,
+ segmentId: a.segmentId
+ });
+ });
+ m.events.on("segmentNormalized", function (a) {
+ var b;
+ a = m.jsb(a.segmentId);
+ g.assert(a, "Segment should be normalized");
+ b = Math.floor(a.yOb.qa);
+ d.emit("maxPosition", {
+ type: "maxPosition",
+ index: 0,
+ endPts: b,
+ maxPts: b,
+ maxSeekPts: Math.floor(a.zOb.qa)
+ });
+ d.emit("manifestRange", {
+ type: "manifestRange",
+ index: 0,
+ manifestOffset: 0,
+ startPts: 0,
+ endPts: b,
+ maxPts: b
+ });
+ });
+ m.events.on("segmentStarting", function (a) {
+ d.emit("maxBitrates", {
+ type: "maxBitrates",
+ audio: a.maxBitrates.audio,
+ video: a.maxBitrates.video
+ });
+ d.emit("segmentStarting", a);
+ });
+ m.events.on("serverSwitch", function (a) {
+ d.emit("serverSwitch", {
+ type: "serverSwitch",
+ manifestIndex: 0,
+ segmentId: a.segmentId,
+ mediatype: a.mediatype,
+ server: a.server,
+ reason: a.reason,
+ location: a.location,
+ bitrate: a.bitrate,
+ confidence: a.confidence,
+ throughput: a.throughput,
+ oldserver: a.oldserver
+ });
+ });
+ m.events.on("streamSelected", function (a) {
+ var b;
+ b = m.cP(a.position);
+ d.emit("streamSelected", {
+ type: "streamSelected",
+ nativetime: a.nativetime,
+ mediaType: a.mediaType,
+ streamId: a.streamId,
+ manifestIndex: 0,
+ trackIndex: a.trackIndex,
+ streamIndex: a.streamIndex,
+ movieTime: b.JN.qa,
+ bandwidth: a.bandwidth,
+ longtermBw: a.longtermBw,
+ rebuffer: a.rebuffer
+ });
+ });
+ m.events.on("updateStreamingPts", function (a) {
+ d.emit("updateStreamingPts", {
+ type: "updateStreamingPts",
+ mediaType: a.mediaType,
+ manifestIndex: 0,
+ trackIndex: a.trackIndex,
+ segmentId: a.position.Ha,
+ movieTime: Math.floor(a.completePlayerStreamingTimestamp.qa)
+ });
+ });
+ };
+ b.LPa = function (a, b, d, k) {
+ [["debug", "managerdebugevent"], "segmentAppended", "startEvent", "logdata"].forEach(function (a) {
+ return c(b, d.events, a);
+ });
+ d.events.on("streamPresenting", function (a) {
+ var c,
+ f;
+ c = a.playerTimestamp.qa;
+ f = b.wb.cP(a.position);
+ void 0 === f ? k.warn("ShimSession cannot map streamPresenting: " + JSON.stringify(a)) : b.emit("streamPresenting", {
+ type: "streamPresenting",
+ startPts: Math.floor(c),
+ contentStartPts: Math.floor(f.JN.qa),
+ mediaType: a.mediaType,
+ manifestIndex: 0,
+ trackIndex: a.trackIndex,
+ streamIndex: a.streamIndex
+ });
+ });
+ d.events.on("segmentPresenting", function (a) {
+ var c,
+ f,
+ d;
+ c = b.wb.cP(a.position);
+ f = a.playerTimestamp.Ib(c.JN);
+ d = a.position.Ha;
+ b.sIa || (b.emit("manifestPresenting", {
+ type: "manifestPresenting",
+ index: 0,
+ pts: a.playerTimestamp.qa,
+ movieId: c.ma.toString(),
+ replace: !1,
+ contentOffset: f.qa
+ }), b.sIa = !0);
+ b.emit("segmentPresenting", {
+ type: "segmentPresenting",
+ segmentId: d,
+ contentOffset: f.qa,
+ metrics: void 0
+ });
+ });
+ d.events.on("ptsChanged", function (a) {
+ b.emit("ptschanged", a.qa);
+ });
+ };
+ b.RY = function (a, b, c, d) {
+ var f;
+ c = c.qa;
+ a.emit("logdata", {
+ type: "logdata",
+ target: "startplay",
+ fields: {
+ hasasereport: !1,
+ hashindsight: !1,
+ buffCompleteReason: b.reason,
+ actualbw: d,
+ initSelReason: null !== (f = b.initSelReason) && void 0 !== f ? f : "unknown",
+ bcVBufferLevelMs: b.vBufferLevelMs,
+ bcABufferLevelMs: b.aBufferLevelMs
+ }
+ });
+ a.emit("ptschanged", c);
+ a.emit("bufferingComplete", {
+ type: "bufferingComplete",
+ time: b.time,
+ actualStartPts: c,
+ aBufferLevelMs: b.aBufferLevelMs,
+ vBufferLevelMs: b.vBufferLevelMs,
+ selector: b.selector,
+ initBitrate: b.initBitrate,
+ skipbackBufferSizeBytes: b.skipbackBufferSizeBytes
+ });
+ };
+ b.VIa = function (a, b, c) {
+ a.emit("audioTrackSwitchComplete", {
+ type: "audioTrackSwitchComplete",
+ trackId: b.track_id,
+ trackIndex: c
+ });
+ };
+ }, function (d, b, a) {
+ var c;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Xza = void 0;
+ c = a(157);
+ d = (function () {
+ function a(a) {
+ a.events.on("streamSelection", this.HBb.bind(this));
+ }
+ a.prototype.HBb = function (a) {
+ 0 === a.mediaType && void 0 === this.xNa ? this.xNa = a : 1 === a.mediaType && void 0 === this.BNa && (this.BNa = a);
+ };
+ Object.defineProperties(a.prototype, {
+ HN: {
+ get: function () {
+ return "StartplayFieldsReporter";
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ enabled: {
+ get: function () {
+ return !0;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ a.prototype.GO = function (a) {
+ var b;
+ if (a.op === c.FA.N3)
+ return (a = null !== (b = this.BNa) && void 0 !== b ? b : this.xNa, {
+ histdiscbw: null === a || void 0 === a ? void 0 : a.selDiscBw,
+ histage: null === a || void 0 === a ? void 0 : a.histAge
+ });
+ };
+ return a;
+ })();
+ b.Xza = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ g;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.iza = void 0;
+ c = a(0);
+ k = a(44);
+ g = a(157);
+ d = (function () {
+ function a(a) {
+ this.qd = a;
+ }
+ Object.defineProperties(a.prototype, {
+ HN: {
+ get: function () {
+ return "queue-audit";
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ RQa: {
+ get: function () {
+ return "qaudit";
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ enabled: {
+ get: function () {
+ return k.Oa;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ a.prototype.GO = function (a) {
+ var b,
+ d,
+ f,
+ l;
+ if (a.op === g.FA.lfa && (a = this.qd.xga())) {
+ f = {};
+ try {
+ for (var h = c.__values(a.oDb), k = h.next(); !k.done; k = h.next()) {
+ l = k.value;
+ f[l.L] = this.iyb(l);
+ }
+ } catch (K) {
+ b = {
+ error: K
+ };
+ }
+ finally {
+ try {
+ k && !k.done && (d = h["return"]) && d.call(h);
+ }
+ finally {
+ if (b)
+ throw b.error;
+ }
+ }
+ return {
+ branchQueue: this.gyb(a.VEb),
+ playerIterator: f
+ };
+ }
+ };
+ a.prototype.iyb = function (a) {
+ return null === a || void 0 === a ? void 0 : a.uLa();
+ };
+ a.prototype.fyb = function (a) {
+ var b,
+ c,
+ f;
+ b = this;
+ if (a) {
+ c = a.aa;
+ f = {};
+ a.VO().forEach(function (a) {
+ f[a.L] = b.hyb(a);
+ });
+ return {
+ sId: null === c || void 0 === c ? void 0 : c.id,
+ cancelled: a.gj,
+ RM: f
+ };
+ }
+ return a;
+ };
+ a.prototype.hyb = function (a) {
+ if (a && a.Ja)
+ return a.Ja.oha();
+ };
+ a.prototype.gyb = function (a) {
+ var b;
+ b = this;
+ return a.map(function (a) {
+ return b.fyb(a);
+ });
+ };
+ return a;
+ })();
+ b.iza = d;
+ }, function (d, b, a) {
+ var c;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Fta = void 0;
+ c = a(157);
+ d = (function () {
+ function a(a) {
+ this.zb = a;
+ }
+ Object.defineProperties(a.prototype, {
+ HN: {
+ get: function () {
+ return "EndplayFieldsReporter";
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ enabled: {
+ get: function () {
+ return !0;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ a.prototype.GO = function (a) {
+ var b,
+ d;
+ if (a.op === c.FA.lfa && this.zb) {
+ a = {};
+ b = this.zb.get();
+ b && b.avtp && b.avtp.Ca && (a.avtp = b.avtp.Ca, a.dltm = b.avtp.GY);
+ b && b.cdnavtp && (a.cdnavtp = b.cdnavtp, a.activecdnavtp = b.activecdnavtp);
+ this.zb.flush();
+ b = this.zb.iLa();
+ d = this.zb.kEa;
+ if (b)
+ for (var k in b) {
+ b.hasOwnProperty(k) && (a["ne" + k] = Number(b[k]).toFixed(6));
+ }
+ d && d.length && (a.activeRequests = JSON.stringify(d));
+ return a;
+ }
+ };
+ return a;
+ })();
+ b.Fta = d;
+ }, function (d, b, a) {
+ var c;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Jqa = void 0;
+ c = a(0);
+ d = (function (a) {
+ function b(c, d) {
+ c = a.call(this, b.fpb(c, d)) || this;
+ c.N8a = d;
+ c.name = "AggregateError";
+ return c;
+ }
+ c.__extends(b, a);
+ b.fpb = function (a, b) {
+ return b.reduce(function (a, b) {
+ return a + "\n" + b;
+ }, a);
+ };
+ Object.defineProperties(b.prototype, {
+ nH: {
+ get: function () {
+ return this.N8a;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ return b;
+ })(Error);
+ b.Jqa = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ g,
+ r,
+ h,
+ p,
+ m,
+ f,
+ u,
+ n,
+ q,
+ t,
+ C,
+ M,
+ H,
+ G,
+ T;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Lza = void 0;
+ c = a(0);
+ k = a(18);
+ g = a(16);
+ r = a(393);
+ h = a(16);
+ p = a(11);
+ m = a(5);
+ f = a(27);
+ u = a(380);
+ n = a(8);
+ q = a(157);
+ t = a(772);
+ C = a(771);
+ M = a(770);
+ H = a(159);
+ G = a(769);
+ T = a(768);
+ d = (function (a) {
+ function b(b, c, f, d, g, l, u, r, n, w, A, t) {
+ var K;
+ K = a.call(this) || this;
+ K.console = b;
+ K.PC = c;
+ K.KCa = f;
+ K.wb = d;
+ K.hG = g;
+ K.Ew = l;
+ K.Y = w;
+ K.ANa = A;
+ K.config = t;
+ K.IF = !1;
+ K.$g = function () {
+ var a,
+ b,
+ c,
+ f;
+ null === (a = K.vV) || void 0 === a ? void 0 : a.clear();
+ a = K.Z7a;
+ m.assert(a);
+ f = null === (c = null === (b = K.PC.ej.zb.get()) || void 0 === b ? void 0 : b.Ia) || void 0 === c ? void 0 : c.Ca;
+ K.fYa("startplay", q.FA.N3);
+ G.RY(K, a, K.qd.Xf, f);
+ };
+ K.Ydb = function () {
+ m.assert(void 0 !== K.Rx);
+ G.VIa(K, K.KCa.audio_tracks[K.Rx], K.Rx);
+ K.Rx = void 0;
+ };
+ K.Vf = new k.Wi();
+ K.g$a = d.je.Ya[K.ANa].ma;
+ K.gB = new p.iu(h.pa.Sg);
+ K.gK = new H.o$(K.console);
+ b = K.wb.RN(K.gK);
+ f = K.wb.QN();
+ K.wb.iJb(f, b);
+ d.C3({
+ p3: function () {
+ return K.hG[0];
+ }
+ }, {
+ p3: function () {
+ return K.hG[1];
+ }
+ });
+ K.PXb = !1;
+ K.sIa = !1;
+ K.Q2 = new q.gza(t);
+ G.MPa(K.console, c, K, K.wb);
+ return K;
+ }
+ c.__extends(b, a);
+ Object.defineProperties(b.prototype, {
+ G: {
+ get: function () {
+ return this.g$a;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ dh: {
+ get: function () {
+ return this.Vf;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ Qd: {
+ get: function () {
+ return {
+ Qub: {
+ 1: {
+ $: {
+ oa: Infinity
+ }
+ }
+ }
+ };
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ addEventListener: {
+ get: function () {
+ return this.addListener.bind(this);
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ removeEventListener: {
+ get: function () {
+ return this.removeListener.bind(this);
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ RXa: {
+ get: function () {
+ return void 0 !== this.Rx;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ b.prototype.o4 = function () {
+ m.assert(!1);
+ };
+ b.prototype.open = function () {
+ var a;
+ if (!this.IF) {
+ this.IF = !0;
+ this.Q2.Rba(new t.Fta(this.PC.zb));
+ this.Q2.Rba(new M.Xza(this.wb));
+ this.wb.open();
+ this.emit("openComplete", {
+ type: "openComplete"
+ });
+ this.wb.nVa(this.Ew);
+ a = this.Zib(this.Y);
+ this.Q2.Rba(new C.iza(a));
+ this.qd = a;
+ G.LPa(this.PC, this, this.qd, this.console);
+ this.F4(this.$g);
+ this.wb.Jdb(a);
+ }
+ };
+ b.prototype.Zib = function (a) {
+ this.ck = T.xFa(a);
+ return this.PC.ej.vcb(this.ck, {
+ gz: this.config.gz
+ });
+ };
+ b.prototype.close = function () {
+ this.IF && (this.IF = !1);
+ };
+ Object.defineProperties(b.prototype, {
+ nX: {
+ get: function () {
+ return "1.5";
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ b.prototype.fYa = function (a, b) {
+ b = this.Q2.GO(b);
+ this.emit("logdata", {
+ type: "logdata",
+ target: a,
+ fields: c.__assign(c.__assign({}, b), {
+ aseApiVersion: this.nX
+ })
+ });
+ };
+ b.prototype.flush = function () {
+ this.fYa("endplay", q.FA.lfa);
+ this.wb.Eg();
+ this.PC.Mf.save();
+ this.PC.Lm.save();
+ };
+ b.prototype.paused = function () {
+ this.gB.value === h.pa.Sc && (this.gB.set(h.pa.$i), this.ck.emit("paused", {
+ type: "paused",
+ Oc: this.ck.ud
+ }));
+ };
+ b.prototype.sS = function () {
+ this.gB.value === h.pa.$i && (this.gB.set(h.pa.Sc), this.ck.emit("playing", {
+ type: "playing",
+ Oc: this.ck.ud
+ }));
+ };
+ b.prototype.yc = function () {
+ var a;
+ this.PC.lGb(this);
+ this.IF && this.close();
+ this.pu && (clearInterval(this.pu), this.pu = void 0);
+ null === (a = this.qd) || void 0 === a ? void 0 : a.ic();
+ };
+ b.prototype.suspend = function () {
+ m.assert(!1, "Not supported");
+ };
+ b.prototype.resume = function () {
+ m.assert(!1, "Not supported");
+ };
+ b.prototype.play = function () {
+ var a;
+ a = this;
+ this.wb.state !== r.Qw.CLOSED && (m.assert(this.qd), this.qd.resume(), this.ck.iBa = !0, this.gB.set(h.pa.Sc), this.ck.emit("playing", {
+ type: "playing",
+ Oc: this.ck.ud
+ }), this.emit("play"), this.pu || (this.pu = setInterval(function () {
+ return a.tAb();
+ }, this.config.HB)));
+ };
+ b.prototype.stop = function () {
+ this.gB.set(h.pa.eF);
+ m.assert(this.qd);
+ this.qd.pause();
+ this.ck.emit("paused", {
+ type: "paused",
+ Oc: this.ck.ud
+ });
+ this.ck.iBa = !1;
+ this.emit("stop");
+ };
+ b.prototype.MY = function (a, b) {
+ void 0 === b && (b = !0);
+ if (!this.qd)
+ return this.fail("Must call open prior to drmReady");
+ a = parseInt(a);
+ n.isFinite(a) && (b ? this.qd.moa(a) : this.qd.KIb(a));
+ };
+ b.prototype.Tha = function () {
+ return this.qd && this.qd.position ? this.qd.Ov(this.wb.je.Ya[this.nha()].ma) : !1;
+ };
+ b.prototype.qYa = function () {
+ this.gB.set(h.pa.gf);
+ this.ck.emit("underflow", {
+ type: "underflow",
+ Oc: this.ck.ud
+ });
+ this.F4(this.$g);
+ };
+ b.prototype.OSa = function () {
+ this.ck.emit("playbackRateChanged", {
+ type: "playbackRateChanged",
+ Oc: this.ck.ud
+ });
+ };
+ b.prototype.Vl = function () {
+ var a;
+ a = this.ck.Sd();
+ a = {
+ type: "skipped",
+ pts: f.fa.Jd(a)
+ };
+ this.ck.emit(a.type, a);
+ return new u.b$(Promise.resolve()).RUa;
+ };
+ b.prototype.kGa = function (a, b) {
+ var c;
+ b = this.tha(b || 0);
+ return null === (c = this.wb.xm(b, a)) || void 0 === c ? void 0 : c.cc;
+ };
+ b.prototype.As = function (a, b) {
+ var c;
+ c = new f.fa(b, 1E3);
+ return (c = this.wb.ar(c)) ? this.wb.je.Ya[c.Ha].yf + c.offset.qa : this.fail("convertPlayerPtsToContentPts failed to convert manifestIndex " + a + ", playerPts: " + b);
+ };
+ b.prototype.NN = function (a, b) {
+ var c;
+ c = this.tha(a || 0);
+ c = {
+ Ha: c,
+ offset: new f.fa(b - this.wb.je.Ya[c].yf, 1E3)
+ };
+ return (c = this.wb.Mha(c)) ? c.qa : this.fail("convertPtsToPlayerPts failed to convert manifestIndex " + a + ", playerPts: " + b);
+ };
+ b.prototype.b0 = function () {
+ var a,
+ b,
+ c;
+ b = {};
+ c = null === (a = this.qd) || void 0 === a ? void 0 : a.yYa();
+ c && (b.vbuflmsec = c.totalvbuflmsecs, b.abuflmsec = c.totalabuflmsecs, b.vbuflbytes = c.vbuflbytes, b.abuflbytes = c.abuflbytes);
+ return b;
+ };
+ b.prototype.g2 = function () {
+ return this.Zs("pipeliningDisabled");
+ };
+ b.prototype.nha = function () {
+ return this.IF ? this.qd.position.Ha : this.Ew.Ha;
+ };
+ b.prototype.OZ = function () {
+ return this.Zs("getChildBranchInfo");
+ };
+ b.prototype.YO = function () {
+ return {
+ id: this.nha(),
+ pe: 0,
+ Zc: 0,
+ ie: 0,
+ cc: 0,
+ Qb: 0
+ };
+ };
+ b.prototype.sUa = function () {
+ return this.Zs("removeSession");
+ };
+ b.prototype.Dz = function (a, b, c) {
+ void 0 === b && (b = 0);
+ b = null !== c && void 0 !== c ? c : this.tha(b);
+ a = {
+ Ha: b,
+ offset: f.fa.Jd(a - this.wb.je.Ya[b].yf)
+ };
+ this.wb.nVa(a);
+ m.assert(this.qd);
+ this.qd.resume();
+ this.F4(this.$g);
+ a = this.wb.dVa(a);
+ m.assert(a, "Valid position must be provided for seek");
+ return a.offset.qa;
+ };
+ b.prototype.seek = function (a, b) {
+ a = this.As(b, a);
+ return this.Dz(a, b);
+ };
+ b.prototype.ev = function () {
+ return this.Zs("chooseNextSegment");
+ };
+ b.prototype.rEa = function () {
+ return this.Zs("addManifest");
+ };
+ b.prototype.OM = function () {
+ return this.Zs("activateManifest");
+ };
+ b.prototype.ERa = function () {
+ this.EBa();
+ };
+ b.prototype.eXa = function (a) {
+ var b,
+ c,
+ f,
+ d,
+ h,
+ k;
+ f = a.BB;
+ if (void 0 !== this.Rx)
+ return !1;
+ a = this.KCa.audio_tracks;
+ if (!a.some(function (a, b) {
+ if (a.track_id === f)
+ return (d = a, h = b, !0);
+ }))return !1;
+ a = a[this.hG[0]];
+ this.Rx = h;
+ k = null === (b = this.qd) || void 0 === b ? void 0 : b.Mz;
+ k ? this.EBa() : (null === (c = this.qd) || void 0 === c ? void 0 : c.pause([0]), this.emit("audioTrackSwitchStarted", {
+ type: "audioTrackSwitchStarted",
+ oldLangCode: a.language,
+ oldNumChannels: a.channels,
+ newLangCode: d.language,
+ newNumChannels: d.channels,
+ sourceBufferReset: k
+ }));
+ return !0;
+ };
+ b.prototype.Cw = function (a, b) {
+ this.gK.Cw(a, b);
+ };
+ b.prototype.Fi = function (a) {
+ return this.qd ? this.qd.Fi(f.fa.Jd(a)) : !1;
+ };
+ b.prototype.aZ = function () {
+ return this.Zs("evaluateQoE");
+ };
+ b.prototype.Woa = function () {
+ return this.Zs("stopBuffering");
+ };
+ b.prototype.VD = function () {
+ return this.Zs("startBuffering");
+ };
+ b.prototype.dMa = function () {
+ return this.Zs("getStreamingStatistics");
+ };
+ b.prototype.fail = function (a) {
+ this.emit("error", {
+ type: "error",
+ error: "NFErr_MC_StreamingFailure",
+ errormsg: a,
+ manifestIndex: 0
+ });
+ };
+ b.prototype.tha = function (a) {
+ return 0 !== a ? this.fail("Unexpected manifestIndex: " + a + ", single viewable playback only supports manifestIndex: 0") : this.ANa;
+ };
+ b.prototype.tAb = function () {
+ var a,
+ b;
+ b = null === (a = this.qd) || void 0 === a ? void 0 : a.yYa();
+ b && this.emit("updateBufferLevel", {
+ type: "updateBufferLevel",
+ abuflbytes: b.vbuflbytes,
+ vbuflbytes: b.abuflbytes,
+ totalabuflmsecs: b.totalabuflmsecs,
+ totalvbuflmsecs: b.totalvbuflmsecs,
+ currentBandwidth: b.currentBandwidth
+ });
+ };
+ b.prototype.Zs = function (a) {
+ return this.fail("Method not implemented " + a);
+ };
+ b.prototype.EBa = function () {
+ var a;
+ a = this;
+ m.assert(void 0 !== this.Rx);
+ this.hG[0] = this.Rx;
+ this.wb.C3({
+ p3: function () {
+ return a.hG[0];
+ }
+ }, {
+ p3: function () {
+ return a.hG[1];
+ }
+ });
+ this.F4(this.Ydb);
+ };
+ b.prototype.EIb = function (a) {
+ this.Z7a = a;
+ };
+ b.prototype.F4 = function (a) {
+ var b,
+ c;
+ b = this;
+ null === (c = this.vV) || void 0 === c ? void 0 : c.clear();
+ this.vV = p.iu.JOb([this.wb.qm, this.qd.lI], [g.Bd.NA, !0], function (c) {
+ var f;
+ c && (null === (f = b.vV) || void 0 === f ? void 0 : f.clear(), b.vV = void 0, setTimeout(a, 0));
+ });
+ };
+ return b;
+ })(k.EventEmitter);
+ b.Lza = d;
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Dya = void 0;
+ d = (function () {
+ function a(a) {
+ var b;
+ b = this;
+ a = a.vs;
+ this.yC = function () {
+ b.vs();
+ };
+ this.vs = a;
+ }
+ a.prototype.hX = function (a) {
+ a.events.on("requestsPruned", this.yC);
+ };
+ a.prototype.AD = function (a) {
+ a.events.removeListener("requestsPruned", this.yC);
+ };
+ return a;
+ })();
+ b.Dya = d;
+ }, function (d, b, a) {
+ var c;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.O9 = void 0;
+ c = a(16);
+ d = (function () {
+ function a() {}
+ a.prototype.Fl = function (a, b) {
+ return b === c.Bd.NA ? [] : a;
+ };
+ return a;
+ })();
+ b.O9 = d;
+ }, function (d, b, a) {
+ var c;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.tsa = b.xsa = void 0;
+ c = a(776);
+ b.xsa = 625E3;
+ d = (function () {
+ function a(a) {
+ this.config = a;
+ }
+ a.prototype.ufb = function (a) {
+ var d,
+ h,
+ k,
+ g;
+ d = this;
+ h = this.config.bO;
+ k = (this.config.UP || this.config.tY) * b.xsa / 1E3;
+ g = Math.floor(a.$sb.Q_ / k);
+ return {
+ zp: a.QOb.sort(function (a, b) {
+ return b.Ld - a.Ld;
+ }).slice(0, h).map(function (a, b) {
+ return {
+ dwb: {
+ Q_: b > g - 1 ? 0 : k
+ },
+ Pw: a,
+ xDb: a.Ld,
+ di: a.key.je && a.key.config || d.config,
+ O0b: {
+ audio: [new c.O9()],
+ video: [new c.O9()]
+ }
+ };
+ })
+ };
+ };
+ return a;
+ })();
+ b.tsa = d;
+ }, function (d, b, a) {
+ var c,
+ k;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Rsa = void 0;
+ c = a(0);
+ k = a(5);
+ d = (function () {
+ function a() {}
+ a.o_ = function (a) {
+ var b,
+ c;
+ b = a.Ya;
+ a = a.Hh;
+ c = b[a].ma;
+ Object.keys(b).forEach(function (a) {
+ return k.assert(b[a].ma === c);
+ });
+ return b[a].ma;
+ };
+ a.prototype.lob = function (b, d) {
+ return c.__read(b.filter(function (b) {
+ return a.o_(d.je) === a.o_(b.je.je);
+ }), 1)[0];
+ };
+ return a;
+ })();
+ b.Rsa = d;
+ }, function (d, b, a) {
+ var c;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Qsa = void 0;
+ c = a(381);
+ d = (function () {
+ function a(a) {
+ this.xOb = a;
+ }
+ a.Ktb = function (a) {
+ return !!a.ma && "number" === typeof a.ma;
+ };
+ a.prototype.jyb = function (b) {
+ var d;
+ b = b.Pw.key;
+ if (a.Ktb(b)) {
+ b = b.ma;
+ d = this.xOb.zKa(b).xa;
+ return d.qq ? c.lda(d.qq) : c.Joa(b, "ps0");
+ }
+ return b.je;
+ };
+ return a;
+ })();
+ b.Qsa = d;
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.csa = void 0;
+ d = (function () {
+ function a() {}
+ a.evb = function (a, b) {
+ var h;
+ function c(a) {
+ return d(h++)(a, c);
+ }
+ function d(a) {
+ return a >= b.length ? function () {
+ throw Error("The last delegate in the chain should not invoke next() nextDelegateIndex " + a);
+ }
+ : b[a];
+ }
+ h = 0;
+ return c(a);
+ };
+ return a;
+ })();
+ b.csa = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ g,
+ r,
+ h,
+ p,
+ m;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Mya = void 0;
+ c = a(0);
+ k = a(780);
+ g = a(45);
+ r = a(5);
+ h = a(779);
+ p = a(778);
+ m = a(777);
+ d = (function () {
+ function a(a, b, c, f, d) {
+ void 0 === f && (f = new p.Rsa());
+ void 0 === d && (d = new h.Qsa(b));
+ this.YY = a;
+ this.rFb = f;
+ this.wDb = d;
+ this.zp = [];
+ this.gTa = [];
+ this.KS = [];
+ this.ycb(new m.tsa(c));
+ this.DIb({
+ Q_: c.RDb
+ });
+ }
+ a.prototype.ycb = function (a) {
+ this.gTa.unshift(a);
+ };
+ a.prototype.sJb = function (a) {
+ this.KS = a;
+ this.vTa();
+ };
+ a.prototype.ic = function () {
+ var a;
+ a = this;
+ this.zp.forEach(function (b) {
+ a.YY.AD(b.je);
+ });
+ this.zp = [];
+ };
+ a.prototype.DIb = function (a) {
+ this.oN = a;
+ this.vTa();
+ };
+ a.prototype.qgb = function (a, b) {
+ (a = this.rFb.lob(this.zp, {
+ je: a,
+ di: b
+ })) && this.fmb(a.context);
+ return null === a || void 0 === a ? void 0 : a.je;
+ };
+ a.prototype.pgb = function () {};
+ a.prototype.fmb = function (a) {
+ var b,
+ c;
+ b = !1;
+ void 0 === b && (b = !0);
+ c = g.xl(this.zp, function (b) {
+ return b.context === a;
+ });
+ c && (this.zp.splice(this.zp.indexOf(c), 1), this.KS = this.KS.filter(function (b) {
+ return b !== a.Pw;
+ }), b && this.YY.AD(c.je), this.sJb(this.KS.filter(function (a) {
+ return a.key !== c.context.Pw.key;
+ })));
+ };
+ a.prototype.vTa = function () {
+ var a,
+ b,
+ f,
+ d,
+ h;
+ a = this;
+ b = k.csa.evb({
+ QOb: this.KS,
+ $sb: this.oN
+ }, this.gTa.map(function (a) {
+ return a.ufb.bind(a);
+ })).zp;
+ f = g.zB(b, this.zp, function (a, b) {
+ return a.Pw.key === b.context.Pw.key;
+ });
+ d = g.zB(this.zp, b, function (a, b) {
+ return a.context.Pw.key === b.Pw.key;
+ });
+ h = g.zB(this.zp, d);
+ d.forEach(function (b) {
+ a.YY.AD(b.je);
+ });
+ h.forEach(function (a) {
+ var c;
+ c = g.xl(b, function (b) {
+ return b.Pw.key === a.context.Pw.key;
+ });
+ r.assert(c, "Couldn't find the requested item context");
+ a.je.xYa(c.dwb);
+ });
+ f = f.map(function (b) {
+ return a.Pjb(b);
+ });
+ this.zp = c.__spread(h, f);
+ };
+ a.prototype.Pjb = function (a) {
+ var b;
+ b = this.wDb.jyb(a);
+ b = this.YY.hX(b, a.xDb, a.di);
+ return {
+ context: a,
+ je: b
+ };
+ };
+ return a;
+ })();
+ b.Mya = d;
+ }, function (d, b, a) {
+ var c,
+ k;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.kza = void 0;
+ c = a(4);
+ k = a(5);
+ d = (function () {
+ var I01;
+ I01 = 2;
+ for (; I01 !== 3; ) {
+ switch (I01) {
+ case 2:
+ a.prototype.oG = function () {
+ var K01;
+ K01 = 2;
+ for (; K01 !== 5; ) {
+ switch (K01) {
+ case 2:
+ var m3E = "More than maxAl";
+ m3E += "lowedOutstandingRe";
+ m3E += "quests are outs";
+ m3E += "tand";
+ m3E += "ing";
+ this.oQ++;
+ k.assert(this.oQ <= this.config.S0, m3E);
+ K01 = 5;
+ break;
+ }
+ }
+ };
+ a.prototype.M2 = function () {
+ var L01,
+ a;
+ L01 = 2;
+ for (; L01 !== 3; ) {
+ switch (L01) {
+ case 2:
+ a = this;
+ this.oQ--;
+ L01 = 5;
+ break;
+ case 5:
+ var N3E = "Received";
+ N3E += " remove request when there are no requests outstand";
+ N3E += "ing";
+ k.assert(0 <= this.oQ, N3E);
+ setTimeout(function () {
+ var M01;
+ M01 = 2;
+ for (; M01 !== 1; ) {
+ switch (M01) {
+ case 2:
+ return a.vs();
+ break;
+ }
+ }
+ }, 0);
+ L01 = 3;
+ break;
+ }
+ }
+ };
+ a.prototype.vs = function () {
+ var N01,
+ a;
+ N01 = 2;
+ for (; N01 !== 5; ) {
+ switch (N01) {
+ case 1:
+ N01 = this.oQ < a && this.kja() ? 1 : 5;
+ break;
+ case 2:
+ a = this.config.S0;
+ N01 = 1;
+ break;
+ }
+ }
+ };
+ I01 = 4;
+ break;
+ case 14:
+ return a;
+ break;
+ I01 = 3;
+ break;
+ case 4:
+ return a;
+ break;
+ }
+ }
+ function a(a, b) {
+ var J01;
+ J01 = 2;
+ for (; J01 !== 9; ) {
+ switch (J01) {
+ case 2:
+ this.kja = a;
+ this.config = b;
+ this.oQ = 0;
+ J01 = 4;
+ break;
+ case 4:
+ var d3E = "1SIY";
+ d3E += "bZ";
+ d3E += "r";
+ d3E += "NJC";
+ d3E += "p9";
+ var l3E = "m";
+ l3E += "edia";
+ l3E += "|ase";
+ l3E += "j";
+ l3E += "s";
+ var Y3E = "A";
+ Y3E += "SEJS_REQUES";
+ Y3E += "T_PACE";
+ Y3E += "R";
+ this.console = new c.Console(Y3E, l3E);
+ d3E;
+ J01 = 9;
+ break;
+ }
+ }
+ }
+ })();
+ b.kza = d;
+ }, function (d, b) {
+ function a(a, b) {
+ return a.reduce(function (a, c) {
+ return a + c.dqb(b).qa;
+ }, 0);
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.iOa = void 0;
+ b.iOa = function (b, d, g) {
+ return a(b, g) > d.Wq;
+ };
+ }, function (d, b) {
+ function a(a) {
+ return a.reduce(function (a, b) {
+ return a + b.Zx;
+ }, 0);
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.jOa = void 0;
+ b.jOa = function (b) {
+ var c;
+ c = b.oN;
+ return a(b.xc) >= c.Q_;
+ };
+ }, function (d, b, a) {
+ var c;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Bra = void 0;
+ c = a(109);
+ d = (function () {
+ function a(a, b, c) {
+ this.Mp = a;
+ this.xzb = b;
+ this.cBb = c;
+ }
+ a.Jpb = function (a) {
+ var b;
+ return null !== (b = a.mt) && void 0 !== b ? b : a.rDb;
+ };
+ a.Hqb = function (a) {
+ var b,
+ c;
+ b = a.aa;
+ c = a.kQ;
+ a = a.E1;
+ if (b.Rj)
+ return b.Rj;
+ if (1 === c.length)
+ return c[0];
+ if (1 === a.length)
+ return a[0];
+ };
+ a.prototype.kMb = function (b) {
+ var d,
+ h,
+ k;
+ d = this;
+ null === (h = this.rea) || void 0 === h ? void 0 : h.ic();
+ h = a.Jpb(b).Ib(this.xzb);
+ k = b.aa;
+ k.or || (this.rea = this.Mp.Tjb(c.Rr.HS(h), function () {
+ d.cBb(k.id, a.Hqb(k));
+ }));
+ };
+ a.prototype.reset = function () {
+ var a;
+ null === (a = this.rea) || void 0 === a ? void 0 : a.ic();
+ this.rea = void 0;
+ };
+ return a;
+ })();
+ b.Bra = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ g;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Gza = void 0;
+ c = a(0);
+ k = a(27);
+ g = a(5);
+ d = (function () {
+ function a() {}
+ a.Wsb = function (a) {
+ var b,
+ d,
+ f;
+ if (a.Ry) {
+ a = c.__read(a.Ph, 2);
+ f = a[1];
+ a = null === (b = a[0].Wl) || void 0 === b ? void 0 : b.Cs;
+ b = null === (d = null === f || void 0 === f ? void 0 : f.Wl) || void 0 === d ? void 0 : d.Cs;
+ g.assert(a);
+ d = b ? k.fa.min(a, b) : a;
+ return {
+ yOb: a,
+ zOb: d
+ };
+ }
+ };
+ return a;
+ })();
+ b.Gza = d;
+ }, function (d, b, a) {
+ var c;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.uJa = void 0;
+ c = a(45);
+ b.uJa = function (a, b) {
+ var d;
+ d = [];
+ a = a.map(function (a) {
+ var h,
+ k;
+ h = b(a.O);
+ k = c.zB(h, a.Ph).map(function (a) {
+ return a.L;
+ });
+ d = c.hFa(d, k);
+ return {
+ Gc: a,
+ Ph: h
+ };
+ });
+ return {
+ Sfb: d,
+ Qeb: a
+ };
+ };
+ }, function (d, b, a) {
+ var c,
+ k,
+ g,
+ r;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Hra = void 0;
+ c = a(4);
+ k = a(16);
+ g = a(11);
+ r = a(5);
+ d = (function () {
+ function a(a, b, c, d) {
+ void 0 === d && (d = 500);
+ this.u = a;
+ this.config = b;
+ this.events = c;
+ this.Xeb = d;
+ this.Mj = 0;
+ this.state = new g.iu(k.Bd.Bo);
+ this.oz = new g.iu(k.pa.Sg);
+ }
+ Object.defineProperties(a.prototype, {
+ Ih: {
+ get: function () {
+ return this.state.value === k.Bd.Xd || this.state.value === k.Bd.gf;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ a.prototype.BBb = function () {
+ this.VD(void 0, !1);
+ };
+ a.prototype.Rk = function (a) {
+ this.VD(a, !0);
+ };
+ a.prototype.JBb = function (a) {
+ this.VD(a, !1);
+ };
+ a.prototype.FIb = function (a, b) {
+ r.assert(this.state.value === k.Bd.Xd && void 0 === this.Ew);
+ this.Ew = a;
+ b && this.events.emit("initialAudioTrack", {
+ type: "initialAudioTrack",
+ trackId: b.cb,
+ trackIndex: b.jS
+ });
+ };
+ a.prototype.QIb = function (a, b, c) {
+ r.assert(this.Ih);
+ this.Iia = null !== a && void 0 !== a ? a : this.Iia;
+ this.Fia = null !== b && void 0 !== b ? b : this.Fia;
+ void 0 === this.Y_ ? this.Y_ = c : void 0 !== (null === c || void 0 === c ? void 0 : c.reason) && (this.Y_.reason = c.reason);
+ };
+ a.prototype.$g = function (a, b, c) {
+ r.assert(this.Ih && void 0 !== this.Ew && void 0 === this.JB && void 0 === this.A4 && void 0 === this.bX);
+ this.JB = a;
+ this.A4 = b;
+ this.bX = c;
+ this.Uo = 100;
+ this.GGa();
+ this.RY();
+ this.set(k.Bd.NA);
+ this.bX = this.A4 = this.JB = this.Y_ = this.Fia = this.Iia = this.Ew = void 0;
+ };
+ a.prototype.stop = function () {
+ this.set(k.Bd.Bo);
+ this.GGa();
+ };
+ a.prototype.ggb = function (a, b, f, d) {
+ var h,
+ k,
+ g,
+ m,
+ l,
+ p;
+ r.assert(this.Ih);
+ m = f.bha(0);
+ f = f.bha(1);
+ l = c.time.ea() - this.Mj;
+ if (m || f) {
+ p = m ? d.QX(this.state.value, a, l, b, m) : {
+ complete: !0
+ };
+ a = f ? d.QX(this.state.value, a, l, b, f) : {
+ complete: !0
+ };
+ b = f ? a : p;
+ b.pOb = f ? a.AG : 0;
+ b.Pdb = m ? p.AG : 0;
+ p.complete && a.complete ? (b.complete = !0, this.$g(null !== (h = b.reason) && void 0 !== h ? h : "unknown", null !== (k = b.pOb) && void 0 !== k ? k : 0, null !== (g = b.Pdb) && void 0 !== g ? g : 0)) : (b.complete = !1, this.lfb(b));
+ }
+ };
+ a.prototype.lfb = function (a) {
+ var b,
+ f,
+ d;
+ d = a.ei;
+ a.Yy ? d = (c.time.ea() - this.Mj) / this.config.qz : d || (d = (null !== (b = a.AG) && void 0 !== b ? b : 0) / this.config.Li);
+ a = Math.min(Math.max(Math.round(100 * d), null !== (f = this.Uo) && void 0 !== f ? f : 0), 99);
+ a != this.Uo && (this.Uo = a);
+ };
+ a.prototype.VD = function (a, b) {
+ r.assert(!1 === b || void 0 !== a);
+ this.Ew = a;
+ this.Uo = 0;
+ this.G1 = void 0;
+ a = this.Ih;
+ this.Mj = c.time.ea();
+ this.set(b ? k.Bd.gf : k.Bd.Xd);
+ a || (this.smb(), this.mJb());
+ };
+ a.prototype.set = function (a) {
+ this.state.set(a);
+ switch (a) {
+ case k.Bd.Bo:
+ this.oz.set(k.pa.Bo);
+ break;
+ case k.Bd.Xd:
+ this.oz.set(k.pa.Xd);
+ break;
+ case k.Bd.gf:
+ this.oz.set(k.pa.gf);
+ break;
+ case k.Bd.NA:
+ this.oz.set(k.pa.Sc);
+ }
+ };
+ a.prototype.smb = function () {
+ r.assert(this.events && void 0 !== this.Uo);
+ this.G1 = this.Uo;
+ this.events.emit("bufferingStarted", {
+ type: "bufferingStarted",
+ time: c.time.ea(),
+ percentage: this.Uo
+ });
+ };
+ a.prototype.mJb = function () {
+ var a;
+ a = this;
+ this.mla = setInterval(function () {
+ return a.rmb();
+ }, this.Xeb);
+ };
+ a.prototype.GGa = function () {
+ this.mla && (clearInterval(this.mla), this.mla = void 0);
+ };
+ a.prototype.rmb = function () {
+ this.Ih && this.events && void 0 !== this.Uo && this.Uo !== this.G1 && this.events.emit("buffering", {
+ type: "buffering",
+ time: c.time.ea(),
+ percentage: this.Uo
+ }) && (this.G1 = this.Uo);
+ };
+ a.prototype.RY = function () {
+ var a;
+ r.assert(this.events && this.Ew && void 0 !== this.JB && void 0 !== this.bX && void 0 !== this.A4);
+ this.G1 = this.Uo;
+ this.events.emit("bufferingComplete", {
+ type: "bufferingComplete",
+ time: c.time.ea(),
+ actualStartPosition: this.Ew,
+ reason: this.JB,
+ aBufferLevelMs: this.bX,
+ vBufferLevelMs: this.A4,
+ selector: this.Iia,
+ initBitrate: this.Fia,
+ initSelReason: null === (a = this.Y_) || void 0 === a ? void 0 : a.reason,
+ skipbackBufferSizeBytes: this.H0b
+ });
+ };
+ return a;
+ })();
+ b.Hra = d;
+ }, function (d, b, a) {
+ var k,
+ g,
+ r,
+ h;
+ function c(a, b) {
+ return function (c, d) {
+ c = a(c, d);
+ b.push(c);
+ return c;
+ };
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.uya = void 0;
+ k = a(0);
+ g = a(11);
+ r = a(45);
+ h = a(5);
+ d = (function () {
+ function a() {
+ this.xc = new g.Nwa();
+ }
+ Object.defineProperties(a.prototype, {
+ size: {
+ get: function () {
+ return this.xc.size;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ a.prototype.reset = function () {
+ var a;
+ a = this.xc.values();
+ this.xc.clear();
+ a.forEach(function (a) {
+ return a.Eg();
+ });
+ };
+ a.prototype.JO = function (a) {
+ return this.xc.get(a);
+ };
+ a.prototype.Ybb = function (a) {
+ this.xc.set(a.aa.id, a);
+ };
+ a.prototype.L2 = function (a) {
+ return this.xc["delete"](a.aa.id, a);
+ };
+ a.prototype.forEach = function (a) {
+ var b;
+ b = this;
+ this.xc.forEach(function (c, f) {
+ return a(c, f, b);
+ });
+ };
+ a.prototype.reduce = function (a, b) {
+ var c;
+ c = this;
+ return this.xc.reduce(function (b, f, d) {
+ return a(b, f, d, c);
+ }, b);
+ };
+ a.prototype.map = function (a) {
+ var b;
+ b = this;
+ return this.xc.map(function (c, f) {
+ return a(c, f, b);
+ });
+ };
+ a.prototype.filter = function (a) {
+ var b;
+ b = this;
+ return this.xc.filter(function (c, f) {
+ return a(c, f, b);
+ });
+ };
+ a.prototype.XMb = function (a, b) {
+ var c,
+ f;
+ c = this;
+ a = this.qyb(a, b);
+ f = a.vLb;
+ a = a.kX;
+ b = r.Aq(this.xc.keys().map(function (a) {
+ return r.zB(c.xc.get(a), f);
+ }));
+ b.forEach(function (a) {
+ return c.L2(a);
+ });
+ a.forEach(function (a) {
+ return c.Ybb(a);
+ });
+ return {
+ kX: a,
+ ena: b
+ };
+ };
+ a.prototype.qyb = function (a, b) {
+ var f,
+ d,
+ g,
+ m;
+ f = this;
+ g = [];
+ m = c(b, g);
+ b = k.__read(a, 1)[0];
+ b = null !== (d = this.JO(b.Ha)[0]) && void 0 !== d ? d : m(b.Ha);
+ return {
+ vLb: a.slice(1).reduce(function (a, b) {
+ var c,
+ d,
+ k;
+ h.assert(b.dTa);
+ d = r.eFa(a, function (a) {
+ return a.aa.id === b.dTa;
+ });
+ k = null !== (c = r.zB(f.JO(b.Ha), a).filter(function (a) {
+ return a.parent === d;
+ })[0]) && void 0 !== c ? c : m(b.Ha, d);
+ a.push(k);
+ return a;
+ }, [b]),
+ kX: g
+ };
+ };
+ return a;
+ })();
+ b.uya = d;
+ }, function (d, b, a) {
+ var c,
+ k;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Ysa = void 0;
+ c = a(5);
+ k = a(222);
+ d = (function () {
+ function a(a, b) {
+ this.pmb = a;
+ this.Xcb = b;
+ this.lqa = !1;
+ this.zG = this.ey = 0;
+ }
+ a.prototype.AOb = function (a, b) {
+ var h,
+ f,
+ g,
+ l;
+ function d() {
+ var a,
+ c,
+ d;
+ a = l.pop();
+ c = f(a);
+ if (c.ey !== r.ey) {
+ c.ey = r.ey;
+ d = b(a, c.ov, c.pma).oZa;
+ g(a).forEach(function (b) {
+ var k,
+ g;
+ k = b.nOb;
+ g = f(k);
+ g.ey !== h.ey && (b = c.ov + b.weight, g.zG !== h.zG ? d && (g.zG = h.zG, g.ov = b, g.pma = a, l.push(k)) : b < g.ov && (g.ov = b, g.pma = a, l.iEb(k)));
+ });
+ }
+ }
+ h = this;
+ f = this.Xcb;
+ g = this.pmb;
+ c.assert(!this.lqa);
+ this.lqa = !0;
+ this.ey = this.ey + 1 | 0;
+ this.zG = this.zG + 1 | 0;
+ l = new k.hU([a], function (a, b) {
+ return f(a).ov - f(b).ov;
+ });
+ a = f(a);
+ a.ov = 0;
+ a.pma = void 0;
+ for (var r = this; !l.empty; ) {
+ d();
+ }
+ this.lqa = !1;
+ };
+ return a;
+ })();
+ b.Ysa = d;
+ }, function (d, b, a) {
+ var c;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.tfb = b.lHa = void 0;
+ c = a(790);
+ b.lHa = function (a, b) {
+ return new c.Ysa(function (c) {
+ return Object.keys(c.aa.next || ({})).map(function (d) {
+ return {
+ nOb: a.Gh(d),
+ weight: a.IMa(c, d) ? b : c.Cs ? c.Cs.Ib(c.kk).qa : Infinity
+ };
+ });
+ }, function (a) {
+ return a.Ycb;
+ });
+ };
+ b.tfb = function (a, b) {
+ var c,
+ d,
+ k,
+ g,
+ f;
+ c = Object.keys(a.Ya);
+ d = Object.keys(b.Ya);
+ k = d.filter(function (a) {
+ return -1 === c.indexOf(a);
+ });
+ g = c.filter(function (a) {
+ return -1 === d.indexOf(a);
+ });
+ f = c.filter(function (c) {
+ return -1 === d.indexOf(c) ? !1 : a.Ya[c].jg !== b.Ya[c].jg;
+ });
+ return {
+ kX: k,
+ ena: g,
+ gXb: f
+ };
+ };
+ }, function (d, b, a) {
+ var c;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Eya = void 0;
+ c = a(11);
+ d = (function () {
+ function a(a, b, d) {
+ var h;
+ h = this;
+ this.id = a;
+ this.aa = b;
+ this.ve = d;
+ this.Ycb = {};
+ this.WCa = !1;
+ this.l_ = function (a) {
+ var b,
+ c,
+ d;
+ return null !== (d = null === (c = null === (b = h.aa.next) || void 0 === b ? void 0 : b[a]) || void 0 === c ? void 0 : c.ve) && void 0 !== d ? d : h.ve;
+ };
+ this.nba = new c.fa(b.yf, 1E3);
+ this.faa = void 0 !== b.jg && null !== b.jg ? new c.fa(b.jg, 1E3) : c.fa.Os;
+ }
+ Object.defineProperties(a.prototype, {
+ ma: {
+ get: function () {
+ return this.aa.ma;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ CI: {
+ get: function () {
+ return this.WCa;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ kk: {
+ get: function () {
+ return this.nba;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ Cs: {
+ get: function () {
+ return this.faa;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ T: {
+ get: function () {
+ return this.nba.qa;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ oa: {
+ get: function () {
+ return this.faa.qa;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ pz: {
+ get: function () {
+ return !1;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ or: {
+ get: function () {
+ return this.kQ.length ? !this.aa.Rj && 0 === this.E1.length : !0;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ kQ: {
+ get: function () {
+ var a,
+ b;
+ return Object.keys(null !== (b = null === (a = this.aa) || void 0 === a ? void 0 : a.next) && void 0 !== b ? b : {});
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ E1: {
+ get: function () {
+ var a;
+ a = this;
+ return this.kQ.filter(function (b) {
+ var c,
+ d;
+ return !(null === (d = null === (c = a.aa.next) || void 0 === c ? void 0 : c[b]) || void 0 === d || !d.weight);
+ });
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ a.prototype.normalize = function (a, b) {
+ this.nba = a;
+ this.faa = b;
+ this.WCa = !0;
+ };
+ a.prototype.WKa = function () {
+ var a;
+ return this.E1.length ? null !== (a = this.E1.map(this.l_).reduce(function (a, b) {
+ return a === b ? b : void 0;
+ })) && void 0 !== a ? a : this.ve : this.ve;
+ };
+ return a;
+ })();
+ b.Eya = d;
+ }, function (d, b, a) {
+ var c,
+ k;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Aya = void 0;
+ c = a(0);
+ k = a(792);
+ d = (function () {
+ function a(a) {
+ this.je = a;
+ this.Ya = {};
+ }
+ a.xvb = function (a) {
+ return "immediate" === a || "delayedSeamless" === a;
+ };
+ a.prototype.Gh = function (a) {
+ var b,
+ c,
+ d;
+ c = this.Ya[a];
+ if (void 0 === c) {
+ c = this.je.Ya[a];
+ if (void 0 === c)
+ throw Error("Segment not found (" + a + ")");
+ d = null !== (b = c.ve) && void 0 !== b ? b : this.je.ve;
+ c = new k.Eya(a, c, d);
+ this.Ya[a] = c;
+ }
+ return c;
+ };
+ a.prototype.gwb = function (a) {
+ var b;
+ return c.__generator(this, function (c) {
+ switch (c.label) {
+ case 0:
+ return [4, a];
+ case 1:
+ (c.Bt(), b = a, c.label = 2);
+ case 2:
+ if (!b.aa.Rj)
+ return [3, 4];
+ b = this.Gh(b.aa.Rj);
+ return [4, b];
+ case 3:
+ return (c.Bt(), [3, 2]);
+ case 4:
+ return [2];
+ }
+ });
+ };
+ a.prototype.Hsb = function (a, b) {
+ var c,
+ d;
+ return null === (d = null === (c = a.aa.next) || void 0 === c ? void 0 : c[b]) || void 0 === d ? void 0 : d.weight;
+ };
+ a.prototype.IMa = function (b, c) {
+ return a.xvb(b.l_(c));
+ };
+ return a;
+ })();
+ b.Aya = d;
+ }, function (d, b) {
+ function a(a, b, d, g, h, p, m) {
+ if (m && -1 === b.indexOf(m.id) && !a.IMa(m, h.id) || 0 === (m && a.Hsb(m, h.id)) || -1 === b.indexOf(h.id) && p >= d)
+ return {
+ oZa: !1
+ };
+ g.push(m ? {
+ Ha: h.id,
+ dTa: m.id
+ }
+ : {
+ Ha: h.id
+ });
+ return {
+ oZa: !0
+ };
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.BOb = b.aR = void 0;
+ b.aR = function (b, d, g, r, h) {
+ var c,
+ k,
+ f;
+ k = [];
+ f = (null === (c = g.Cs) || void 0 === c ? void 0 : c.Ib(g.kk).qa) || 0;
+ d.AOb(g, function (c, d, g) {
+ return a(b, r, h.qa + f, k, c, d, g);
+ });
+ return k;
+ };
+ b.BOb = a;
+ }, function (d, b, a) {
+ var c,
+ k;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Qza = void 0;
+ c = a(0);
+ d = a(215);
+ k = a(214);
+ new(a(4).Console)("ASEJS_PREDICTOR", "media|asejs");
+ a = (function (a) {
+ function b(c, d) {
+ var P01,
+ h;
+ P01 = 2;
+ for (; P01 !== 9; ) {
+ switch (P01) {
+ case 3:
+ return h;
+ break;
+ case 12:
+ return h;
+ break;
+ P01 = 9;
+ break;
+ case 2:
+ var I3E = "1";
+ I3E += "SIYb";
+ I3E += "ZrNJCp9";
+ h = a.call(this, c, d) || this;
+ h.vw = function (a, b) {
+ var Q01;
+ Q01 = 2;
+ for (; Q01 !== 1; ) {
+ switch (Q01) {
+ case 4:
+ return k.vw(h.config, a, b);
+ break;
+ Q01 = 1;
+ break;
+ case 2:
+ return k.vw(h.config, a, b);
+ break;
+ }
+ }
+ };
+ h.JQ = function (a, c, d) {
+ var R01,
+ f;
+ R01 = 2;
+ for (; R01 !== 3; ) {
+ switch (R01) {
+ case 5:
+ a = a.Ia ? a.Ia.Ca * (100 - h.Cpb(c, f)) / 100 | 0 : 0;
+ return h.uIa(a, d);
+ break;
+ case 2:
+ d = null !== d && void 0 !== d ? d : h.jI;
+ f = b.OJb(a, h.config);
+ R01 = 5;
+ break;
+ }
+ }
+ };
+ I3E;
+ P01 = 3;
+ break;
+ }
+ }
+ }
+ var O01;
+ O01 = 2;
+ for (; O01 !== 3; ) {
+ switch (O01) {
+ case 2:
+ c.__extends(b, a);
+ b.OJb = function (a, b) {
+ var S01,
+ c,
+ f;
+ S01 = 2;
+ for (; S01 !== 4; ) {
+ switch (S01) {
+ case 2:
+ f = !!a.np;
+ b.hpa && (null === (c = a.Ia) || void 0 === c ? void 0 : c.Ca) < b.IN && (f = !0);
+ return f;
+ break;
+ }
+ }
+ };
+ b.prototype.Cpb = function (a, b) {
+ var T01,
+ c,
+ f;
+ T01 = 2;
+ for (; T01 !== 3; ) {
+ switch (T01) {
+ case 2:
+ (c = this.config, f = b ? c.Jda : c.Aca);
+ b = b ? c.Kda : c.Cca;
+ T01 = 5;
+ break;
+ case 5:
+ Array.isArray(b) && (f = k.sJa(b, a.Bl - a.ud, c.Bca));
+ return f;
+ break;
+ }
+ }
+ };
+ return b;
+ break;
+ }
+ }
+ })(d.tK);
+ b.Qza = a;
+ }, function (d, b, a) {
+ var c,
+ k,
+ g,
+ r,
+ h,
+ p,
+ m,
+ f;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.lwa = void 0;
+ c = a(0);
+ d = a(111);
+ k = a(215);
+ g = a(214);
+ a = a(4);
+ r = d.RX;
+ h = d.sgb;
+ p = d.tJa;
+ m = d.onb;
+ f = d.vHb;
+ new a.Console("ASEJS_PREDICTOR", "media|asejs");
+ a = (function (a) {
+ var U01;
+ U01 = 2;
+ for (; U01 !== 5; ) {
+ switch (U01) {
+ case 1:
+ return b;
+ break;
+ case 2:
+ c.__extends(b, a);
+ U01 = 1;
+ break;
+ }
+ }
+ function b(b, c) {
+ var V01,
+ d;
+ V01 = 2;
+ for (; V01 !== 12; ) {
+ switch (V01) {
+ case 3:
+ d.ueb = r(b.lq.threshold || 6E3, 1, 1E5);
+ d.oeb = r(b.lq.gamma || 1, .1, 10);
+ d.filter = b.lq.filter;
+ d.VJb = !!b.lq.simpleScaling;
+ V01 = 6;
+ break;
+ case 2:
+ d = a.call(this, b, c) || this;
+ d.vw = function (a, b) {
+ var W01;
+ W01 = 2;
+ for (; W01 !== 1; ) {
+ switch (W01) {
+ case 2:
+ return g.vw(d.config, a, b);
+ break;
+ }
+ }
+ };
+ d.JQ = function (a, b, c) {
+ var X01,
+ h,
+ k,
+ g,
+ l,
+ u,
+ r;
+ X01 = 2;
+ for (; X01 !== 13; ) {
+ switch (X01) {
+ case 9:
+ l = b.Bl - b.ud;
+ d.VJb ? (b = p(d.LHa, l, 1), l = p(d.KHa, l, 1), b = b * g + l * (1 - g)) : b = p(f(d.LHa, d.KHa, g), l, 1);
+ a = d.aRa && (null === (u = a[d.aRa]) || void 0 === u ? void 0 : u.mQ);
+ void 0 !== a && (u = m(d.kAb, a), b = Math.min(b * u, 1));
+ a000.o4P(7);
+ return d.uIa(a000.t4P(1, r, b), c);
+ break;
+ case 2:
+ c = null !== c && void 0 !== c ? c : d.jI;
+ r = null !== (k = null === (h = a.Ia) || void 0 === h ? void 0 : h.Ca) && void 0 !== k ? k : 0;
+ h = null !== (l = null === (g = a[d.filter]) || void 0 === g ? void 0 : g.Ca) && void 0 !== l ? l : r;
+ g = Math.pow(Math.max(1 - h / d.ueb, 0), d.oeb);
+ X01 = 9;
+ break;
+ }
+ }
+ };
+ Array.isArray(b.lq.curves) && (d.LHa = h(b.lq.curves[0], 0, 0, 1), d.KHa = h(b.lq.curves[1], 0, 0, 1));
+ V01 = 3;
+ break;
+ case 6:
+ var g3E = "1";
+ g3E += "SI";
+ g3E += "Y";
+ g3E += "bZrNJCp9";
+ b.lq.niqrfilter && b.lq.niqrcurve && (d.aRa = b.lq.niqrfilter, d.kAb = h(b.lq.niqrcurve, 1, 0, 4));
+ g3E;
+ V01 = 13;
+ break;
+ case 13:
+ return d;
+ break;
+ }
+ }
+ }
+ })(k.tK);
+ b.lwa = a;
+ }, function (d, b, a) {
+ var c,
+ k,
+ g,
+ r,
+ h;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.eua = void 0;
+ c = a(16);
+ k = a(95);
+ g = a(4);
+ r = a(158);
+ h = a(45);
+ d = (function () {
+ function a(a, b, c) {
+ this.config = a;
+ this.XJb = b;
+ this.navigator = c;
+ a = r["default"](this.config);
+ this.fTa = [a.vw, a.JQ];
+ }
+ a.prototype.ZHb = function (a, b, d, k, g) {
+ var f,
+ m,
+ l,
+ p,
+ u;
+ l = [];
+ if (!this.ASa(k.track))
+ return {
+ stream: m,
+ LR: l
+ };
+ m = k.ag.Tv;
+ p = g ? g.Fl(k.track.Qc, a) : k.track.Qc;
+ m && !m.track.equals(k.track) && (m = this.kob(m, p));
+ if (0 === k.L && m && !this.HJb(k, m))
+ return {
+ stream: m,
+ LR: l
+ };
+ a = this.Mjb(a === c.Bd.Xd ? c.pa.Xd : a === c.Bd.gf ? c.pa.gf : a === c.Bd.NA ? c.pa.Sc : c.pa.Sg, b, d, k);
+ a = k.Gw.o3(a, p, void 0, this.fTa[k.L], !0, k.track.O.Bh);
+ if (!a)
+ return {
+ stream: m,
+ LR: l
+ };
+ a.reason && (u = {
+ reason: a.reason,
+ tR: a.Ms,
+ Kv: a.Kv,
+ Kk: a.Kk,
+ Lk: a.Lk
+ });
+ m = p[a.ld];
+ k.ag.UVa(m);
+ if (null === (f = a.nv) || void 0 === f ? 0 : f.length)
+ l = a.nv.map(function (a) {
+ return h.xl(p, function (b) {
+ return b.id === a;
+ });
+ }).filter(h.kla);
+ return void 0 !== u ? {
+ stream: m,
+ LR: l,
+ aIb: u
+ }
+ : {
+ stream: m,
+ LR: l
+ };
+ };
+ a.prototype.QX = function (a, b, d, h, k) {
+ var f,
+ g;
+ if (a !== c.Bd.Xd && a !== c.Bd.gf)
+ return {
+ complete: !0
+ };
+ if (!k.cEb)
+ return {
+ complete: !1
+ };
+ if (k.WBb)
+ return k.XBb;
+ f = this.FKa(k, b);
+ g = k.ag.Tv;
+ b = f.Bl - f.ud;
+ if (b < this.config.Li || void 0 === g)
+ return {
+ complete: !1,
+ AG: b
+ };
+ if (0 === k.L)
+ return {
+ complete: !0,
+ AG: b
+ };
+ this.ASa(k.track);
+ k.Gw.rma([g], !1, f, this.fTa[k.L]);
+ a = k.Gw.dv(f, a, h, g, k.track.O.Bh);
+ if (!a.complete && d >= this.config.qz)
+ return {
+ complete: !0,
+ reason: "prebufferTimeLimit",
+ AG: b
+ };
+ a.AG = b;
+ return a;
+ };
+ a.prototype.kob = function (a, b) {
+ var c;
+ c = b[0];
+ b.filter(function (a) {
+ return a.Pq;
+ }).every(function (b) {
+ return b.R <= a.R ? c = b : !1;
+ });
+ return c;
+ };
+ a.prototype.HJb = function (a, b) {
+ return 0 < this.config.PJ.length ? !0 : (a = a.ag.bI) && a === b.location ? !1 : !0;
+ };
+ a.prototype.ASa = function (a) {
+ return a.O.Kl.ZJ(a.O.ma, a.Qc);
+ };
+ a.prototype.FKa = function (a, b) {
+ var n;
+ for (var c, f = b.Ib(this.XJb), d = [], h = a, k = b, m, l, p = 0, r = !0; h; ) {
+ n = h.Iqb(f);
+ if (0 === n.$.length)
+ break;
+ if (!r && !h.wB)
+ break;
+ k = n.$[0].ot;
+ void 0 === m && (m = n.$[n.$.length - 1].mt, l = n.Rla >= n.$.length ? m : n.$[n.Rla].ot);
+ d = n.$.concat(d);
+ p += n.dk;
+ h = this.navigator.parent(h);
+ r = !1;
+ }
+ return {
+ pq: g.Ik()[a.L],
+ T: Math.floor(k.qa),
+ ud: b.qa,
+ Ub: Math.floor(null !== (c = null === m || void 0 === m ? void 0 : m.qa) && void 0 !== c ? c : b.qa),
+ Bl: Math.floor(l ? l.qa : b.qa),
+ ki: d.reduce(function (a, b) {
+ return a + b.da;
+ }, 0),
+ dk: p,
+ jga: d.length,
+ $: d
+ };
+ };
+ a.prototype.Mjb = function (a, b, d, h) {
+ var f,
+ g,
+ m;
+ f = this.FKa(h, b);
+ g = 1 === h.L ? this.config.BS : this.config.aN;
+ m = k.Lf();
+ return {
+ state: a,
+ Sy: a === c.pa.Sc,
+ Iz: h.Pk,
+ playbackRate: d,
+ buffer: f,
+ Vea: g,
+ qPa: !1,
+ pO: !1,
+ Oo: null === m || void 0 === m ? void 0 : m.Oo,
+ L: h.L,
+ ud: b.qa,
+ np: !1,
+ k0: !1,
+ $Q: 0
+ };
+ };
+ return a;
+ })();
+ b.eua = d;
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.nQa = void 0;
+ b.nQa = function (a) {
+ var b;
+ b = {};
+ return function (c) {
+ (c in b) || (b[c] = a(c));
+ return b[c];
+ };
+ };
+ }, function (d, b, a) {
+ var c;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.RN = b.QN = void 0;
+ c = a(159);
+ b.QN = function (a, b) {
+ b && (null === a || void 0 === a ? 0 : a.hNa) && (b = new c.xL(b).ow(c.BA));
+ return new c.xL(c.Y4).and(null !== b && void 0 !== b ? b : c.BA).ow(c.x7).ow(c.y7);
+ };
+ b.RN = function (a, b) {
+ b && a.hNa && (b = new c.xL(b).ow(c.BA));
+ return new c.xL(c.Y4).and(new c.fra(a)).and(new c.dra(a)).and(new c.Tqa(a)).and(new c.hra(a)).and(a.fJa ? new c.cra(a) : c.BA).and(null !== b && void 0 !== b ? b : c.BA).ow(c.x7).ow(c.y7);
+ };
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.y7 = void 0;
+ b.y7 = {
+ Fl: function (a) {
+ return [a[0]];
+ }
+ };
+ }, function (d, b, a) {
+ var c;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.xL = void 0;
+ c = a(384);
+ d = (function () {
+ function a(a) {
+ this.filters = [];
+ this.and(a);
+ }
+ a.prototype.and = function (a) {
+ a !== c.BA && this.filters.push({
+ filter: a,
+ jHa: !0
+ });
+ return this;
+ };
+ a.prototype.ow = function (a) {
+ this.filters.push({
+ filter: a,
+ jHa: !1
+ });
+ return this;
+ };
+ a.prototype.Fl = function (a, b) {
+ return this.filters.reduce(function (c, d) {
+ d.jHa ? c = d.filter.Fl(c, b) : 0 === c.length && (c = d.filter.Fl(a, b));
+ return c;
+ }, a);
+ };
+ return a;
+ })();
+ b.xL = d;
+ }, function (d, b, a) {
+ var c;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.x7 = b.Y4 = void 0;
+ c = a(45);
+ b.Y4 = {
+ Fl: function (a) {
+ return a.filter(function (a) {
+ return a.Ps && !a.Ky;
+ });
+ }
+ };
+ b.x7 = {
+ Fl: function (a) {
+ return (a = c.xl(a, function (a) {
+ return !!a.Ps && !a.Ky;
+ })) ? [a] : [];
+ }
+ };
+ }, function (d, b, a) {
+ var c;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.cra = void 0;
+ c = a(45);
+ d = (function () {
+ function a(a) {
+ this.config = a;
+ }
+ a.prototype.Fl = function (a) {
+ var b,
+ d,
+ k,
+ g,
+ f,
+ l,
+ n,
+ q;
+ if (!this.config.fJa || 0 === this.config.NUa.length)
+ return a;
+ d = a.length;
+ k = null !== (b = a[d - 1].vna) && void 0 !== b ? b : 0;
+ g = c.xl(this.config.NUa, function (a) {
+ return a.c0b >= k && a.RGb <= k;
+ });
+ if (g) {
+ b = c.ay(a, function (a) {
+ return a.vna >= g.RGb;
+ });
+ f = a.slice(b, a.length);
+ l = c.ay(f, function (a) {
+ var b;
+ return (null !== (b = a.Bb) && void 0 !== b ? b : -Infinity) >= g.e_b;
+ });
+ n = c.ay(f, function (a) {
+ var b;
+ return (null !== (b = a.Bb) && void 0 !== b ? b : -Infinity) >= g.d_b && a.R < g.io;
+ });
+ f = c.dFa(f, function (a) {
+ return !a.Bb && a.R < g.HZb;
+ });
+ q = 0;
+ q = -2 < l + n ? b + Math.max(l, n) : -1 < f ? f + b : d - 1;
+ q = Math.min(d, q + 1);
+ return a.slice(0, q);
+ }
+ return a;
+ };
+ return a;
+ })();
+ b.cra = d;
+ }, function (d, b, a) {
+ var k;
+ function c(a, b) {
+ b = Math.max(a, b);
+ return isNaN(b) ? a || -Infinity : b;
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Tqa = void 0;
+ k = a(16);
+ d = (function () {
+ function a(a) {
+ this.config = a;
+ this.$Q = 0;
+ this.state = k.Bd.Bo;
+ this.AQa = c(a.Nka, a.i1);
+ this.Ska = c(a.XC, a.ZP);
+ }
+ a.prototype.Fl = function (a, b) {
+ var c;
+ c = this;
+ if (b !== this.state) {
+ this.state = b;
+ if (b === k.Bd.Xd)
+ return a;
+ b === k.Bd.gf && this.lFb();
+ }
+ return a.filter(function (a) {
+ return !(void 0 !== a.Bb && a.Bb < c.Ska || (void 0 === a.Bb || 0 > c.Ska) && a.R < c.AQa);
+ });
+ };
+ a.prototype.lFb = function () {
+ ++this.$Q;
+ this.Ska = c(this.config.XC, this.config.ZP - this.config.rzb * this.$Q);
+ this.AQa = this.config.Nka || -Infinity;
+ };
+ return a;
+ })();
+ b.Tqa = d;
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.dra = void 0;
+ d = (function () {
+ function a(a) {
+ this.config = a;
+ }
+ a.prototype.Fl = function (a) {
+ var b;
+ b = this.config;
+ return a.filter(function (a) {
+ return !(void 0 !== a.Bb && (a.Bb < b.XC || a.Bb > b.PPa) || (void 0 === a.Bb || 0 >= b.XC) && a.R < b.Nka || (void 0 === a.Bb || Infinity === b.PPa) && a.R > b.syb);
+ });
+ };
+ return a;
+ })();
+ b.dra = d;
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.hra = void 0;
+ d = (function () {
+ function a(a) {
+ var b;
+ b = this;
+ a.LJ && a.LJ.enabled && a.LJ.profiles && a.LJ.profiles.length && "keepLowest" === a.LJ.action && (this.HOa = {}, a.LJ.profiles.forEach(function (a) {
+ return b.HOa[a] = !0;
+ }));
+ }
+ a.prototype.Fl = function (a) {
+ var b,
+ c;
+ b = {};
+ c = this.HOa;
+ return void 0 === c ? a : a.filter(function (a) {
+ return !c[a.profile] || (b[a.profile] ? !1 : b[a.profile] = !0);
+ });
+ };
+ return a;
+ })();
+ b.hra = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ g;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.o$ = void 0;
+ c = a(44);
+ k = a(4);
+ g = a(385);
+ d = (function () {
+ function a(a) {
+ this.console = a;
+ this.aIa = [];
+ this.MFa = {};
+ this.rIa = !1;
+ }
+ a.prototype.Cw = function (a, b) {
+ this.aIa = a;
+ void 0 !== b ? this.MFa[b] = a : this.rIa || (this.console.error("StreamFilters: Bitrate filters received with undefined viewable id"), this.rIa = !0);
+ };
+ a.prototype.Fl = function (a) {
+ var b,
+ d,
+ f,
+ h,
+ l;
+ b = this;
+ if (0 === a.length)
+ return a;
+ h = a[0].ma;
+ if (void 0 === h)
+ return (this.console.error("StreamFilters: Stream has undefined viewable id"), a);
+ try {
+ null === (d = k.my) || void 0 === d ? void 0 : d.call(k, h);
+ } catch (A) {
+ return (this.console.error("StreamFilters: createFilteredVideoStreamList: " + A), a);
+ }
+ l = null !== (f = this.MFa[h]) && void 0 !== f ? f : this.aIa;
+ c.Oa && this.console.trace("VideoBitrateRangesFilter: filtering " + a.length + " streams with " + JSON.stringify(l));
+ a = a.filter(function (a) {
+ return g.hca(a.profile, a.R, l, b.console).inRange;
+ });
+ c.Oa && this.console.trace("VideoBitrateRangesFilter: ... " + a.length + " streams in range");
+ return a;
+ };
+ return a;
+ })();
+ b.o$ = d;
+ }, function (d, b, a) {
+ var c;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.fra = void 0;
+ c = a(16);
+ d = (function () {
+ function a(a) {
+ this.config = a;
+ }
+ a.prototype.Fl = function (a, b) {
+ return this.config.W3 || b !== c.Bd.NA ? a.filter(function (a) {
+ return a.Fs;
+ }) : a;
+ };
+ return a;
+ })();
+ b.fra = d;
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ }, function (d, b, a) {
+ var c,
+ k;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Zza = void 0;
+ d = a(18);
+ c = a(33);
+ k = a(27);
+ a = (function () {
+ function a(a) {
+ void 0 === a && (a = {
+ mp: !1,
+ currentTime: k.fa.Cc,
+ speed: 1
+ });
+ this.gd = {
+ mp: function () {
+ return "function" === typeof a.mp ? a.mp() : a.mp;
+ },
+ currentTime: function () {
+ return "function" === typeof a.currentTime ? a.currentTime() : a.currentTime;
+ },
+ speed: function () {
+ return "function" === typeof a.speed ? a.speed() : a.speed;
+ }
+ };
+ }
+ Object.defineProperties(a.prototype, {
+ mp: {
+ get: function () {
+ return this.gd.mp();
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ currentTime: {
+ get: function () {
+ return this.gd.currentTime();
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ speed: {
+ get: function () {
+ return this.gd.speed();
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ return a;
+ })();
+ b.Zza = a;
+ c.Ve(d.EventEmitter, a);
+ }, function (d, b, a) {
+ var c,
+ k,
+ g,
+ r;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.aya = void 0;
+ c = a(0);
+ k = a(5);
+ g = a(44);
+ r = a(810);
+ d = (function (a) {
+ function b(b) {
+ var c;
+ c = a.call(this) || this;
+ c.wb = b;
+ c.xc = [];
+ c.su = new r.Zza({
+ mp: !1,
+ currentTime: function () {
+ return c.Xf;
+ },
+ speed: 1
+ });
+ return c;
+ }
+ c.__extends(b, a);
+ Object.defineProperties(b.prototype, {
+ Aa: {
+ get: function () {
+ return this.su;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ b.prototype.vX = function (a, b) {
+ var c;
+ c = !this.wb;
+ c && (this.wb = a, this.$$ = null === b || void 0 === b ? void 0 : b.Xf);
+ return c;
+ };
+ b.prototype.GG = function () {
+ this.xc = [];
+ this.$$ = void 0;
+ };
+ b.prototype.Eea = function (a) {
+ g.Oa && k.assert(this.wb === a);
+ this.wb = void 0;
+ this.GG();
+ };
+ b.prototype.sfa = function () {
+ for (var a, b = [], d = 0; d < arguments.length; d++) {
+ b[d] = arguments[d];
+ }
+ (a = this.xc).push.apply(a, c.__spread(b));
+ };
+ b.prototype.yH = function () {
+ return this.$$ ? this.$$ : a.prototype.yH.call(this);
+ };
+ b.prototype.IJ = function () {};
+ return b;
+ })(a(395).e9);
+ b.aya = d;
+ }, function (d, b, a) {
+ var c,
+ k;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.lza = void 0;
+ c = a(0);
+ k = a(18);
+ d = (function (a) {
+ function b(b, c, d, f) {
+ var h;
+ h = a.call(this) || this;
+ h.u = b;
+ h.track = c;
+ h.sm = !1;
+ h.uaa = !1;
+ h.dh = new k.Wi();
+ h.dh.on(c, "networkfailing", function () {
+ h.emit("networkfailing");
+ });
+ h.dh.on(c, "error", function () {
+ h.u.warn("requestQueue got error");
+ h.emit("error");
+ });
+ if (d)
+ (h.sm = !0, setTimeout(function () {
+ return h.emit("created");
+ }, 0));
+ else
+ h.dh.on(c, "created", function () {
+ h.sm = !0;
+ h.emit("created");
+ });
+ h.uaa = f;
+ return h;
+ }
+ c.__extends(b, a);
+ Object.defineProperties(b.prototype, {
+ fZ: {
+ get: function () {
+ return this.track.fZ;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ Dh: {
+ get: function () {
+ return this.track.Dh;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ qj: {
+ get: function () {
+ return this.track.qj;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ Jfa: {
+ get: function () {
+ return this.track.Jfa;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ config: {
+ get: function () {
+ return this.track.config;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ b.prototype.Eb = function () {
+ var a,
+ b;
+ this.uaa || (null === (b = (a = this.track).Eb) || void 0 === b ? void 0 : b.call(a), this.uaa = !0);
+ };
+ b.prototype.eo = function () {
+ return this.track.eo();
+ };
+ b.prototype.T2 = function () {
+ return this.track.T2();
+ };
+ b.prototype.toString = function () {
+ return this.track.toString();
+ };
+ b.prototype.toJSON = function () {
+ return this.track;
+ };
+ b.prototype.vq = function () {
+ this.dh.clear();
+ };
+ return b;
+ })(k.EventEmitter);
+ b.lza = d;
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.cAa = void 0;
+ d = (function () {
+ function a(a, b) {
+ this.u = a;
+ this.eg = b;
+ this.Zoa = !1;
+ }
+ a.prototype.oh = function (a, b, d, g, h, p) {
+ this.Zoa || (this.Zoa = !0, a = {
+ type: "error",
+ error: null !== d && void 0 !== d ? d : "NFErr_MC_StreamingFailure",
+ errormsg: a,
+ networkErrorCode: g,
+ httpCode: h,
+ nativeCode: p,
+ viewableId: b
+ }, this.u.error("notifyStreamingError: " + JSON.stringify(a)), this.eg.emit("error", a));
+ };
+ a.prototype.Dm = function () {
+ return this.Zoa;
+ };
+ return a;
+ })();
+ b.cAa = d;
+ }, function (d, b, a) {
+ var c;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Yxa = void 0;
+ c = a(5);
+ d = (function () {
+ function a(a) {
+ var b;
+ b = this;
+ void 0 === a && (a = []);
+ this.Je = a;
+ a.forEach(function (a) {
+ return b.Ypa(a);
+ });
+ }
+ Object.defineProperties(a.prototype, {
+ length: {
+ get: function () {
+ return this.Je.length;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ t2: {
+ get: function () {
+ var a;
+ return null !== (a = this.jqa) && void 0 !== a ? a : this.rca;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ a.prototype.kb = function (a) {
+ return 1 === a ? this.jqa : this.rca;
+ };
+ a.prototype.every = function (a) {
+ return this.Je.every(a);
+ };
+ a.prototype.forEach = function (a) {
+ this.Je.forEach(a);
+ };
+ a.prototype.filter = function (b) {
+ return new a(this.Je.filter(b));
+ };
+ a.prototype.replace = function (a, b) {
+ var d;
+ d = this.Je.indexOf(a);
+ c.assert(-1 < d);
+ c.assert(a.L === b.L);
+ this.Je[d] = b;
+ this.Ypa(b);
+ };
+ a.prototype.JVa = function (a, b) {
+ (a = this.kb(a)) ? this.replace(a, b) : this.add(b);
+ };
+ a.prototype.add = function (a) {
+ this.Je.push(a);
+ this.Ypa(a);
+ };
+ a.prototype.clear = function () {
+ this.Je = [];
+ this.rca = this.jqa = void 0;
+ };
+ a.prototype.Ypa = function (a) {
+ 1 === a.L ? this.jqa = a : this.rca = a;
+ };
+ return a;
+ })();
+ b.Yxa = d;
+ }, function (d, b, a) {
+ var k,
+ g;
+ function c(a, b, c, d, f) {
+ var h,
+ k;
+ c = null !== (h = b.kg) && void 0 !== h ? h : b.track.xm(a, c.qa, void 0, f);
+ a = null !== (k = b.rg) && void 0 !== k ? k : b.track.mC(a, null === d || void 0 === d ? void 0 : d.qa, b.Lg);
+ return [!b.Ry(), c, a];
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.hRa = b.fRa = void 0;
+ k = a(0);
+ g = a(11);
+ b.fRa = function (a, b, d, m, f) {
+ var h,
+ l,
+ p,
+ r;
+ h = b.kb(0);
+ b = b.kb(1);
+ l = k.__read(b ? c(a, b, d, m, f) : [!1], 3);
+ p = l[0];
+ r = l[1];
+ l = l[2];
+ m = k.__read(h ? c(a, h, p && void 0 !== (null === r || void 0 === r ? void 0 : r.T) ? g.fa.Jd(r.T) : d, void 0 !== (null === l || void 0 === l ? void 0 : l.oa) ? g.fa.Jd(null === l || void 0 === l ? void 0 : l.oa) : m, f) : [!1], 3);
+ a = m[0];
+ d = m[1];
+ m = m[2];
+ a && (null === h || void 0 === h ? void 0 : h.ENa(d, m));
+ p && (null === b || void 0 === b ? void 0 : b.ENa(r, l));
+ return [a, p];
+ };
+ b.hRa = function (a, b, c) {
+ return b.track.xm(a, c.qa, void 0, !0).Cl;
+ };
+ }, function (d, b, a) {
+ var c,
+ k,
+ g,
+ r;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Zxa = void 0;
+ c = a(0);
+ k = a(11);
+ g = a(815);
+ r = a(5);
+ d = (function () {
+ function a(a) {
+ var b,
+ c,
+ d,
+ h,
+ k,
+ g,
+ l;
+ b = this;
+ c = a.config;
+ d = a.O;
+ h = a.Je;
+ k = a.aa;
+ g = a.Cl;
+ l = a.sq;
+ a = a.splice;
+ this.wNa = this.CN = !1;
+ this.xGa = function () {
+ b.CN || b.IEa() && b.eRa();
+ };
+ this.config = c;
+ this.Je = h;
+ this.O = d;
+ this.aa = k;
+ this.Cl = g;
+ this.sq = l;
+ this.splice = a;
+ }
+ a.prototype.Eb = function (a) {
+ if (this.CN)
+ throw Error("Cannot call init() after cleanup");
+ if (this.wNa)
+ throw Error("Cannot call init() twice");
+ this.wNa = !0;
+ this.LRa = a;
+ this.O.Ly.addListener("onHeaderFragments", this.xGa);
+ this.IEa() && this.eRa();
+ };
+ a.prototype.yc = function () {
+ this.CN || (this.CN = !0, this.LRa = void 0, this.O.Ly.removeListener("onHeaderFragments", this.xGa));
+ };
+ a.prototype.eRa = function () {
+ var a,
+ b,
+ c;
+ if (!this.CN) {
+ b = this.pAb();
+ c = !1;
+ this.aa && !this.aa.CI && (c = this.jla());
+ null === (a = this.LRa) || void 0 === a ? void 0 : a.call(this, b, c);
+ this.yc();
+ }
+ };
+ a.prototype.IEa = function () {
+ return this.Je.every(function (a) {
+ return a.track.ge;
+ });
+ };
+ a.prototype.pAb = function () {
+ var a,
+ b;
+ a = c.__read(g.fRa(this.config, this.Je, this.Cl, this.sq, this.splice), 2);
+ b = a[0];
+ return a[1] || void 0 === this.Je.kb(1) && b;
+ };
+ a.prototype.jla = function () {
+ var a,
+ b;
+ r.assert(this.aa);
+ r.assert(!this.aa.CI);
+ a = this.Je.t2;
+ b = g.hRa(this.config, a, this.aa.kk);
+ if (void 0 === b || void 0 === a.sq)
+ return !1;
+ a = this.sq && !this.sq.equal(k.fa.Os) ? a.sq : k.fa.Os;
+ this.aa.normalize(b, a);
+ return !0;
+ };
+ return a;
+ })();
+ b.Zxa = d;
+ }, function (d, b, a) {
+ var c,
+ k;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Vwa = b.zua = void 0;
+ c = a(44);
+ k = a(4);
+ d = (function () {
+ function a(a) {
+ this.FI = a;
+ }
+ a.prototype.lLa = function (a, b, d) {
+ var h;
+ h = a.$;
+ a = a.Hi(b);
+ a.iQ = b + 1;
+ if (!a.Sa)
+ for (++b; b < h.length && b < d.rg.index && (a.duration < d.uI || 0 !== b % this.FI); ++b) {
+ a.Xba(h.get(b));
+ a.iQ = b + 1;
+ c.Oa && d.Kj("getFragmentForHudsonRequest: extended fragment startPts:", a.T, "to duration:", a.duration, "size:", a.da, "index: ", b, "min request size in ms:", d.uI);
+ }
+ a.Jwb = d.Gc.Jub + (k.time.ea() - d.Gc.Pub);
+ c.Oa && d.Kj("getFragmentForHudsonRequest( " + b + ") returning: " + JSON.stringify(a));
+ return a;
+ };
+ return a;
+ })();
+ b.zua = d;
+ d = (function () {
+ function a() {}
+ a.prototype.lLa = function (a, b, d, k) {
+ var f,
+ h;
+ f = a.$;
+ h = b === d.kg.index;
+ b === d.rg.index ? (a = a.jLa(d.rg), a.CR(d.rg.Hw), a.NPa(), a.bJb(d.Gc.aa)) : h ? (a = a.jLa(d.kg), a.CR(d.kg.Hw)) : a = a.Hi(b);
+ a.iQ = b + 1;
+ if (!k && (d.Zba || !a.Sa))
+ for (++b; b < f.length && b < d.rg.index && (a.da < d.wQa || a.duration < d.uI); ++b) {
+ a.Xba(f.get(b));
+ a.iQ = b + 1;
+ c.Oa && d.Kj("getFragmentForRequest: extended fragment startPts:", a.T, "to duration:", a.duration, "size:", a.da, "min request size:", d.wQa, "min request duration:", d.uI, "edit:", a.Sa);
+ }
+ c.Oa && d.Kj("getFragmentForRequest( " + b + ") returning: " + JSON.stringify(a) + ", stream: " + JSON.stringify(a.stream));
+ return a;
+ };
+ return a;
+ })();
+ b.Vwa = d;
+ }, function (d, b, a) {
+ var k,
+ g,
+ r,
+ h,
+ p,
+ m;
+ function c(a, b, c) {
+ p = c;
+ m = c.map(function (a, b) {
+ return b;
+ });
+ if (null === h)
+ return (a = g(c), h = c[a].R, new r(a));
+ if (!c.length)
+ return null;
+ a = m.filter(function (a) {
+ return c[a].R == h;
+ })[0];
+ return void 0 === a ? (k.log("Defaulting to first stream due to unvalid bitrate requested: " + h), new r(m[0])) : new r(a);
+ }
+ b = a(35);
+ a = a(4);
+ k = b.console;
+ g = b.Sfa;
+ r = b.Co;
+ h = null;
+ p = null;
+ m = null;
+ a.Pfb && (a.Pfb.Gw = {
+ Eb: function () {
+ m = p = h = null;
+ },
+ o3: function (a) {
+ h = a;
+ },
+ KYb: function () {
+ return {
+ all: p,
+ dqa: m
+ };
+ }
+ });
+ d.P = {
+ STARTING: c,
+ BUFFERING: c,
+ REBUFFERING: c,
+ PLAYING: c,
+ PAUSED: c
+ };
+ }, function (d, b, a) {
+ (function () {
+ var Y01,
+ b;
+ Y01 = 2;
+ for (; Y01 !== 8; ) {
+ switch (Y01) {
+ case 2:
+ var Q3E = "1SIYbZ";
+ Q3E += "rN";
+ Q3E += "JCp9";
+ a(8);
+ a(19);
+ a(35);
+ b = a(16).Bd;
+ d.P = {
+ checkBuffering: function (a, c, d, h, g, m) {
+ function f(b) {
+ var a11;
+ a11 = 2;
+ for (; a11 !== 5; ) {
+ switch (a11) {
+ case 2:
+ b = h.$.lZ(a.ud + b, void 0, !0);
+ return (n - a.dk) / (n + (b.offset + b.da) - q);
+ break;
+ }
+ }
+ }
+ var Z01,
+ q,
+ t,
+ p,
+ k,
+ l,
+ r,
+ n;
+ Z01 = 2;
+ for (; Z01 !== 39; ) {
+ switch (Z01) {
+ case 43:
+ --m;
+ Z01 = 32;
+ break;
+ case 44:
+ t = l.offset;
+ Z01 = 43;
+ break;
+ case 8:
+ return {
+ complete: !1,
+ Yy: !0
+ };
+ break;
+ case 22:
+ var i3E = "hig";
+ i3E += "ht";
+ i3E += "p";
+ return {
+ complete: !0,
+ reason: i3E
+ };
+ break;
+ case 23:
+ Z01 = c > l * m.hZ ? 22 : 21;
+ break;
+ case 25:
+ q = h.$.ih(g);
+ Z01 = 24;
+ break;
+ case 24:
+ Z01 = k >= p ? 23 : 41;
+ break;
+ case 34:
+ (t = h.$.ih(m), p = 8 * q * d / c - a.ud);
+ Z01 = 33;
+ break;
+ case 7:
+ p = m.Li * (l ? m.Uma : 1);
+ m.Mmb && h.qb && h.qb.Lh && h.qb.Lh.Ca > m.Tja && (p += m.Tba + h.qb.Lh.Ca * m.Sla);
+ g && (p += g.gY * m.Uba);
+ p = r ? Math.min(r, p) : p;
+ Z01 = 12;
+ break;
+ case 16:
+ return (c < l && (p = Math.min(r, Math.max(m.ZQ * (l / c - 1), p))), {
+ complete: !1,
+ HD: p,
+ ei: 0
+ });
+ break;
+ case 41:
+ 0 < c && c < l && (p = Math.min(r, Math.max(m.ZQ * (l / c - 1), p)));
+ return {
+ complete: !1,
+ HD: p,
+ ei: f(p)
+ };
+ break;
+ case 2:
+ (k = a.Bl - a.ud, l = c === b.gf);
+ c = h.Ia || 0;
+ (p = 0, r = m.eqa && !l ? m.cz : m.tka, r = Math.min(m.Wq, r));
+ Z01 = 4;
+ break;
+ case 27:
+ Z01 = -1 === g ? 26 : 25;
+ break;
+ case 42:
+ var W3E = "n";
+ W3E += "ore";
+ W3E += "buff";
+ return {
+ complete: !0,
+ reason: W3E
+ };
+ break;
+ case 9:
+ Z01 = c <= m.Zja && (0 < c || !m.Bfa) ? 8 : 7;
+ break;
+ case 31:
+ l = h.$.get(m);
+ Z01 = 30;
+ break;
+ case 11:
+ return {
+ complete: !1,
+ HD: p
+ };
+ break;
+ case 32:
+ Z01 = m > g ? 31 : 42;
+ break;
+ case 3:
+ var e3E = "m";
+ e3E += "a";
+ e3E += "x";
+ e3E += "siz";
+ e3E += "e";
+ return {
+ complete: !0,
+ reason: e3E
+ };
+ break;
+ case 21:
+ p = h.$.Rd(g);
+ m = Math.min(g + Math.floor(m.ZQ / p), h.$.length - 1);
+ Z01 = 34;
+ break;
+ case 15:
+ g = h.$.ym(a.Ub);
+ Z01 = 27;
+ break;
+ case 17:
+ Z01 = !h.$ || !h.$.length ? 16 : 15;
+ break;
+ case 10:
+ n = 0;
+ a.$.forEach(function (b) {
+ var b11;
+ b11 = 2;
+ for (; b11 !== 1; ) {
+ switch (b11) {
+ case 2:
+ n += b.T + b.duration > a.ud ? b.da : 0;
+ b11 = 1;
+ break;
+ }
+ }
+ });
+ Z01 = 19;
+ break;
+ case 12:
+ Z01 = !c ? 11 : 10;
+ break;
+ case 28:
+ return (p = Math.min(r, k + t), {
+ complete: !1,
+ HD: p,
+ ei: f(p)
+ });
+ break;
+ case 30:
+ t = 8 * t * d / c - l.T - p;
+ Z01 = 29;
+ break;
+ case 19:
+ d = Math.max(d, 1);
+ l = d * h.R;
+ Z01 = 17;
+ break;
+ case 29:
+ Z01 = 0 < t ? 28 : 44;
+ break;
+ case 4:
+ Z01 = k >= r ? 3 : 9;
+ break;
+ case 26:
+ var v3E = "outo";
+ v3E += "f";
+ v3E += "range";
+ return {
+ complete: !0,
+ reason: v3E
+ };
+ break;
+ case 33:
+ --m;
+ Z01 = 32;
+ break;
+ }
+ }
+ }
+ };
+ Q3E;
+ Y01 = 8;
+ break;
+ }
+ }
+ })();
+ }, function (d, b, a) {
+ (function () {
+ function b(a, b, c, d) {
+ var d11,
+ f;
+ d11 = 2;
+ for (; d11 !== 12; ) {
+ switch (d11) {
+ case 4:
+ a000.o4P(8);
+ var b41 = a000.t4P(11, 19, 8, 1);
+ d = c.length - b41;
+ d11 = 3;
+ break;
+ case 6:
+ --d;
+ d11 = 3;
+ break;
+ case 2:
+ var O3E = "player missi";
+ O3E += "ng streamin";
+ O3E += "gIndex";
+ var h3E = "Mu";
+ h3E += "st have at leas";
+ h3E += "t one selecte";
+ h3E += "d strea";
+ h3E += "m";
+ r(!k.X(d), h3E);
+ r(k.na(b.Iz), O3E);
+ b = h(d);
+ d11 = 4;
+ break;
+ case 9:
+ f = c[d];
+ d11 = 8;
+ break;
+ case 3:
+ d11 = -1 < d ? 9 : 14;
+ break;
+ case 7:
+ return (b.ld = d, b);
+ break;
+ case 8:
+ d11 = f.qb && f.qb.Ia && f.R < f.qb.Ia.Ca - a.GLb ? 7 : 6;
+ break;
+ case 14:
+ b.ld = 0;
+ return b;
+ break;
+ }
+ }
+ }
+ var c11,
+ k,
+ g,
+ r,
+ h;
+ c11 = 2;
+ for (; c11 !== 7; ) {
+ switch (c11) {
+ case 2:
+ k = a(8);
+ a(19);
+ g = a(35);
+ c11 = 4;
+ break;
+ case 4:
+ a(4);
+ (r = g.assert, h = g.Co, g = a(216));
+ d.P = {
+ STARTING: g.STARTING,
+ BUFFERING: g.BUFFERING,
+ REBUFFERING: g.REBUFFERING,
+ PLAYING: b,
+ PAUSED: b
+ };
+ c11 = 8;
+ break;
+ case 8:
+ var q3E = "1";
+ q3E += "S";
+ q3E += "IYbZrNJCp9";
+ q3E;
+ c11 = 7;
+ break;
+ }
+ }
+ })();
+ }, function (d, b, a) {
+ var k;
+ function c(a, b, c) {
+ return new k(c.length - 1);
+ }
+ a(8);
+ k = a(35).Co;
+ d.P = {
+ STARTING: c,
+ BUFFERING: c,
+ REBUFFERING: c,
+ PLAYING: c,
+ PAUSED: c
+ };
+ }, function (d, b, a) {
+ var k;
+ function c() {
+ return new k(0);
+ }
+ a(8);
+ k = a(35).Co;
+ d.P = {
+ STARTING: c,
+ BUFFERING: c,
+ REBUFFERING: c,
+ PLAYING: c,
+ PAUSED: c
+ };
+ }, function (d, b, a) {
+ (function () {
+ var e11,
+ g,
+ r,
+ h,
+ p,
+ m,
+ f,
+ u,
+ n,
+ q,
+ t;
+ function b(a, b) {
+ var f11,
+ c;
+ f11 = 2;
+ for (; f11 !== 4; ) {
+ switch (f11) {
+ case 2:
+ c = void 0;
+ b.some(function (b) {
+ var g11,
+ f;
+ g11 = 2;
+ for (; g11 !== 4; ) {
+ switch (g11) {
+ case 2:
+ f = b.profiles;
+ (f = f && 0 <= f.indexOf(a)) && (c = b.override);
+ return f;
+ break;
+ }
+ }
+ });
+ return c;
+ break;
+ }
+ }
+ }
+ e11 = 2;
+ for (; e11 !== 4; ) {
+ switch (e11) {
+ case 2:
+ var U3E = "1SIY";
+ U3E += "bZ";
+ U3E += "r";
+ U3E += "NJC";
+ U3E += "p9";
+ (g = a(8), r = a(35), h = r.console, p = r.debug, m = r.assert, f = a(60), u = r.GC, n = r.Co, q = a(386), t = a(16).pa);
+ d.P = {
+ STARTING: function (a, c, d, k) {
+ var l11,
+ g,
+ m;
+ l11 = 2;
+ for (; l11 !== 6; ) {
+ switch (l11) {
+ case 3:
+ var E3E = " ";
+ E3E += "k";
+ E3E += "bps, p";
+ E3E += "rofile :";
+ var z3E = "selectAudioStr";
+ z3E += "eamSta";
+ z3E += "rting: selected";
+ z3E += " ";
+ z3E += "stream :";
+ a = q[t[t.Sg]](g, c, d, k);
+ d = d[a.ld];
+ p && h.log(z3E + d.R + E3E + d.hg);
+ return a;
+ break;
+ case 5:
+ l11 = (m = a && a.PJ && 0 <= a.PJ.indexOf(m)) ? 4 : 3;
+ break;
+ case 4:
+ var P3E = "selectAudioStreamStarting: ov";
+ P3E += "err";
+ P3E += "iding confi";
+ P3E += "g with ";
+ (g = {
+ minInitAudioBitrate: a.bQ,
+ minHCInitAudioBitrate: a.aQ,
+ maxInitAudioBitrate: a.QP,
+ minRequiredAudioBuffer: a.n1
+ }, p && h.log(P3E + JSON.stringify(m)), f(m, g));
+ l11 = 3;
+ break;
+ case 2:
+ g = a;
+ m = d[k || 0].hg;
+ l11 = 5;
+ break;
+ }
+ }
+ },
+ BUFFERING: k,
+ REBUFFERING: k,
+ PLAYING: k,
+ PAUSED: k
+ };
+ U3E;
+ e11 = 4;
+ break;
+ }
+ }
+ function k(a, b, c, f) {
+ var h11,
+ k,
+ l,
+ r,
+ q,
+ w,
+ A,
+ t,
+ K,
+ d,
+ C,
+ H;
+ h11 = 2;
+ for (; h11 !== 33; ) {
+ switch (h11) {
+ case 15:
+ h11 = b.Sy && K > t.Wv && (void 0 === H || Number(C) > H || q.Ub - H > t.K0) ? 27 : 23;
+ break;
+ case 3:
+ k = f;
+ a.fXa.some(function (f) {
+ var i11,
+ g,
+ m,
+ p,
+ u,
+ h,
+ k;
+ i11 = 2;
+ for (; i11 !== 9; ) {
+ switch (i11) {
+ case 5:
+ (g = (f = f.MI) && f.n1 || a.n1, m = f && f.YZb || -Infinity, p = f && f.jI || Infinity, u = b.buffer.pq);
+ i11 = 4;
+ break;
+ case 1:
+ i11 = k ? 5 : 3;
+ break;
+ case 2:
+ (h = f.profiles, k = h && 0 <= h.indexOf(d));
+ i11 = 1;
+ break;
+ case 3:
+ return k;
+ break;
+ case 4:
+ l = c.filter(function (a) {
+ var j11,
+ b;
+ j11 = 2;
+ for (; j11 !== 5; ) {
+ switch (j11) {
+ case 3:
+ b = a.R;
+ j11 = 2;
+ break;
+ j11 = 1;
+ break;
+ case 2:
+ b = a.R;
+ j11 = 1;
+ break;
+ case 1:
+ return b >= m && b <= p && 0 <= h.indexOf(a.hg) && b * g / 8 < u;
+ break;
+ }
+ }
+ }).map(function (a) {
+ var k11;
+ k11 = 2;
+ for (; k11 !== 1; ) {
+ switch (k11) {
+ case 2:
+ return a.ug;
+ break;
+ }
+ }
+ });
+ i11 = 3;
+ break;
+ }
+ }
+ });
+ h11 = 8;
+ break;
+ case 25:
+ h11 = (q = l[w], K = c[q], u(K) && A > t.uYa * K.R * b.playbackRate) ? 24 : 26;
+ break;
+ case 7:
+ (r = c[f], q = r.R, w = l.indexOf(f), A = r.Ia, t = a.Vdb);
+ h11 = 6;
+ break;
+ case 6:
+ h11 = 0 > w ? 14 : 13;
+ break;
+ case 19:
+ k = q;
+ h11 = 22;
+ break;
+ case 13:
+ h11 = w && A < t.EIa * q * b.playbackRate ? 12 : 17;
+ break;
+ case 23:
+ var L3E = "m";
+ L3E += "s";
+ var S3E = ", buffe";
+ S3E += "r ";
+ S3E += "lev";
+ S3E += "el";
+ S3E += " = ";
+ var p3E = ",";
+ p3E += " las";
+ p3E += "tUpswitch";
+ p3E += "Pts = ";
+ var C3E = " Upswitch not";
+ C3E += " all";
+ C3E += "owed. lastDow";
+ C3E += "nswitchPts = ";
+ p && h.log(C3E + H + p3E + C + S3E + K + L3E);
+ h11 = 22;
+ break;
+ case 10:
+ (q = l[w], K = c[q]);
+ h11 = 20;
+ break;
+ case 5:
+ h11 = !(a && a.PJ && 0 <= a.PJ.indexOf(d)) ? 4 : 3;
+ break;
+ case 2:
+ var w3E = "Must h";
+ w3E += "ave at lea";
+ w3E += "st o";
+ w3E += "ne selected stream";
+ m(!g.X(f), w3E);
+ d = c[f].hg;
+ h11 = 5;
+ break;
+ case 16:
+ (C = this.Aja, H = this.y0);
+ h11 = 15;
+ break;
+ case 4:
+ return new n(f);
+ break;
+ case 22:
+ var n7E = " ";
+ n7E += "k";
+ n7E += "b";
+ n7E += "p";
+ n7E += "s";
+ var u7E = " kbps";
+ u7E += ", t";
+ u7E += "o ";
+ var r7E = "switching ";
+ r7E += "audio fr";
+ r7E += "om ";
+ var K3E = "d";
+ K3E += "ow";
+ K3E += "n";
+ var D3E = "u";
+ D3E += "p";
+ A = c[k];
+ k !== f && p && h.log((k > f ? D3E : K3E) + r7E + r.R + u7E + A.R + n7E);
+ h11 = 35;
+ break;
+ case 8:
+ h11 = l && 1 < l.length ? 7 : 22;
+ break;
+ case 26:
+ h11 = ++w < l.length ? 25 : 22;
+ break;
+ case 12:
+ var H7E = " kb";
+ H7E += "ps, try to ";
+ H7E += "downswitch";
+ var T7E = " kbp";
+ T7E += "s";
+ T7E += " < ";
+ var f7E = "th";
+ f7E += "rou";
+ f7E += "ghput for a";
+ f7E += "ud";
+ f7E += "io ";
+ (p && h.log(f7E + A + T7E + t.EIa + "*" + q + H7E), --w);
+ h11 = 11;
+ break;
+ case 20:
+ h11 = u(K) && (0 == w || K.R * b.playbackRate * t.EIa < A) ? 19 : 18;
+ break;
+ case 18:
+ w--;
+ h11 = 11;
+ break;
+ case 11:
+ h11 = 0 <= w ? 10 : 22;
+ break;
+ case 17:
+ var G7E = " k";
+ G7E += "b";
+ G7E += "ps";
+ var y7E = " k";
+ y7E += "b";
+ y7E += "p";
+ y7E += "s";
+ y7E += " > ";
+ var B7E = "th";
+ B7E += "ro";
+ B7E += "ughput";
+ B7E += " for audio ";
+ h11 = w < l.length - 1 && A > t.uYa * q * b.playbackRate && (p && h.log(B7E + A + y7E + t.uYa + "*" + q + G7E), q = b.buffer, K = q.Bl - q.ud, r.$ && r.$.length) ? 16 : 22;
+ break;
+ case 24:
+ k = q;
+ h11 = 22;
+ break;
+ case 27:
+ var F7E = ", str";
+ F7E += "eam";
+ F7E += "in";
+ F7E += "gPts =";
+ F7E += " ";
+ var k7E = ", lastUpsw";
+ k7E += "itchPt";
+ k7E += "s";
+ k7E += " = ";
+ var J7E = " Upswitch";
+ J7E += " al";
+ J7E += "low";
+ J7E += "ed. lastDo";
+ J7E += "wnswitchPts = ";
+ p && h.log(J7E + H + k7E + C + F7E + q.Ub);
+ h11 = 26;
+ break;
+ case 35:
+ var j7E = "kb";
+ j7E += "ps, stream";
+ j7E += "ingP";
+ j7E += "ts :";
+ var a7E = ", a";
+ a7E += "udio t";
+ a7E += "hrou";
+ a7E += "g";
+ a7E += "hput:";
+ var b7E = " kbps, ";
+ b7E += "profi";
+ b7E += "le :";
+ var A7E = "selectAudioS";
+ A7E += "tr";
+ A7E += "ea";
+ A7E += "m: selected stre";
+ A7E += "am :";
+ p && h.log(A7E + A.R + b7E + d + a7E + A.Ia + j7E + b.buffer.Ub);
+ return new n(k);
+ break;
+ case 14:
+ k = 0;
+ h11 = 22;
+ break;
+ }
+ }
+ }
+ })();
+ }, function (d, b, a) {
+ var k,
+ g,
+ r,
+ h;
+ function c(a, b, c) {
+ var f,
+ d;
+ f = this.Caa;
+ b = b.buffer.Ub;
+ d = "forward" === a.hHb;
+ if (k.X(f))
+ return (f = d ? g(c) : g(c, c.length), this.Daa = b, this.Caa = f, new h(f));
+ r(c[f]) || (f = g(c, f), this.Daa = b, this.Caa = f);
+ if (0 > f)
+ return null;
+ if (b > this.Daa + a.ILb) {
+ a = c.map(function (a, b) {
+ return a.Pq ? b : null;
+ }).filter(function (a) {
+ return null !== a;
+ });
+ if (!a.length)
+ return null;
+ d ? f = (a.indexOf(f) + 1) % a.length : (f = a.indexOf(f) - 1, 0 > f && (f = a.length - 1));
+ this.Caa = a[f];
+ this.Daa = b;
+ return new h(a[f]);
+ }
+ return new h(f);
+ }
+ k = a(8);
+ b = a(35);
+ g = b.Sfa;
+ r = b.GC;
+ h = b.Co;
+ d.P = {
+ STARTING: c,
+ BUFFERING: c,
+ REBUFFERING: c,
+ PLAYING: c,
+ PAUSED: c
+ };
+ }, function (d, b, a) {
+ var c,
+ k,
+ g,
+ r,
+ h,
+ p,
+ m,
+ f,
+ u,
+ n;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.tvb = b.pVa = void 0;
+ c = a(45);
+ k = a(60);
+ g = a(8);
+ r = a(403);
+ h = a(4);
+ d = a(111);
+ a = a(35);
+ p = a.Ozb;
+ m = a.cfb;
+ f = a.RX;
+ u = a.Co;
+ n = d.Eoa;
+ a = (function () {
+ function w(a, b, c, f, d, h) {
+ var u11;
+ u11 = 2;
+ for (; u11 !== 5; ) {
+ switch (u11) {
+ case 2:
+ var V7E = "no_vali";
+ V7E += "d_";
+ V7E += "Bitra";
+ V7E += "te";
+ var c7E = "no_vali";
+ c7E += "d";
+ c7E += "_VMAF";
+ var R7E = "n";
+ R7E += "o";
+ R7E += "_valid_DelayTar";
+ R7E += "get";
+ a = c ? a.Bb >= h.wI && a.Bb <= h.eQa : a.R >= h.$s && a.R <= h.aw;
+ return (f = f < d && a) ? {
+ iZ: f
+ }
+ : {
+ iZ: f,
+ reason: a ? R7E : c ? c7E : V7E
+ };
+ break;
+ }
+ }
+ }
+ function d(a, b) {
+ var p11,
+ f,
+ d;
+ p11 = 2;
+ for (; p11 !== 13; ) {
+ switch (p11) {
+ case 1:
+ (f = a.V_, d = c.ay(f, function (a) {
+ var q11;
+ q11 = 2;
+ for (; q11 !== 1; ) {
+ switch (q11) {
+ case 2:
+ return b <= a.r;
+ break;
+ case 4:
+ return b > a.r;
+ break;
+ q11 = 1;
+ break;
+ }
+ }
+ }));
+ p11 = 5;
+ break;
+ case 9:
+ return f[f.length - 1].d;
+ break;
+ case 5:
+ p11 = 0 === d ? 4 : 3;
+ break;
+ case 2:
+ p11 = a.V_ ? 1 : 14;
+ break;
+ case 3:
+ p11 = -1 === d ? 9 : 8;
+ break;
+ case 4:
+ return f[0].d;
+ break;
+ case 8:
+ a000.s4P(4);
+ a = f[a000.X4P(d, 1)];
+ f = f[d];
+ p11 = 6;
+ break;
+ case 14:
+ return a.vp;
+ break;
+ case 6:
+ return Math.floor(a.d + (f.d - a.d) * (b - a.r) / (f.r - a.r));
+ break;
+ }
+ }
+ }
+ function t(a, f, h) {
+ var v11,
+ k,
+ g;
+ v11 = 2;
+ for (; v11 !== 4; ) {
+ switch (v11) {
+ case 2:
+ (k = new u(), g = Math.max(a.$s, a.i1, f.k0 ? a.Pka : -Infinity));
+ k.no = c.xl(h.filter(function (b) {
+ var w11;
+ w11 = 2;
+ for (; w11 !== 1; ) {
+ switch (w11) {
+ case 2:
+ return b.R <= a.aw;
+ break;
+ }
+ }
+ }).reverse(), function (c) {
+ var x11,
+ m,
+ h,
+ l;
+ x11 = 2;
+ for (; x11 !== 13; ) {
+ switch (x11) {
+ case 5:
+ c = c.R * f.playbackRate;
+ m = h.Ia;
+ x11 = 3;
+ break;
+ case 1:
+ x11 = c.R > g ? 5 : 14;
+ break;
+ case 2:
+ h = {
+ Ia: c.Ia,
+ om: c.qb && c.qb.om,
+ Ri: c.qb && c.qb.Ri
+ };
+ x11 = 1;
+ break;
+ case 3:
+ x11 = m ? 9 : 6;
+ break;
+ case 9:
+ l = d(a, c);
+ x11 = 8;
+ break;
+ case 7:
+ return h;
+ break;
+ case 8:
+ var x7E = "hist_bufft";
+ x7E += "i";
+ x7E += "me";
+ b(c, m, a) <= l ? (k.Ms = m, h && (k.Kk = h.om ? h.om : 0, k.Lk = h.om && h.Ri), k.reason = x7E, h = !0) : h = !1;
+ x11 = 7;
+ break;
+ case 6:
+ h = !1;
+ x11 = 7;
+ break;
+ case 14:
+ var o7E = "no_historica";
+ o7E += "l";
+ o7E += "_l";
+ o7E += "te_minbi";
+ o7E += "trate";
+ var X7E = "hist_tp";
+ X7E += "u";
+ X7E += "t_lt_minbitr";
+ X7E += "a";
+ X7E += "te";
+ var t7E = "l";
+ t7E += "t";
+ t7E += "_hist_lte_minbitrat";
+ t7E += "e";
+ (m = h.Ia, c.R * f.playbackRate <= m ? (k.Ms = m, h && (k.Kk = h.om ? h.om : 0, k.Lk = h.om ? h.Ri : void 0), k.reason = t7E, h = !0) : m ? (k.Ms = m, h && (k.Kk = h.om ? h.om : 0, k.Lk = h.om ? h.Ri : void 0), k.reason = X7E, h = !1) : (k.reason = o7E, h = !0));
+ x11 = 7;
+ break;
+ }
+ }
+ }) || h[0];
+ return k;
+ break;
+ }
+ }
+ }
+ var m11;
+ function q(c, f, d) {
+ var s11,
+ h,
+ k,
+ m,
+ p,
+ u,
+ r;
+ s11 = 2;
+ for (; s11 !== 13; ) {
+ switch (s11) {
+ case 2:
+ (h = !!c.wI && !!c.eQa && d.every(function (a) {
+ var t11;
+ t11 = 2;
+ for (; t11 !== 1; ) {
+ switch (t11) {
+ case 2:
+ return a.Bb && 110 >= a.Bb;
+ break;
+ case 4:
+ return a.Bb || 251 > a.Bb;
+ break;
+ t11 = 1;
+ break;
+ }
+ }
+ }), k = null, m = d.length - 1);
+ s11 = 1;
+ break;
+ case 1:
+ s11 = 0 <= m && (h ? d[m].Bb >= c.wI : d[m].R >= c.$s) ? 5 : 7;
+ break;
+ case 5:
+ (p = d[m], k = a(p, c), u = b(p.R * f.playbackRate, k.Ms, c), r = l(k.Ms, c), r = w(p, 0, h, u, r, c), p = r.iZ, r = r.reason);
+ k.Kv = u;
+ s11 = 3;
+ break;
+ case 9:
+ k.reason = r;
+ s11 = 8;
+ break;
+ case 8:
+ m--;
+ s11 = 1;
+ break;
+ case 7:
+ var s7E = "fallba";
+ s7E += "c";
+ s7E += "k_no_acceptable_stream";
+ g.Pa(k) && (k = a(d[0], c));
+ g.Pa(k) && (k = a(d[0], c), k.reason = s7E);
+ return k;
+ break;
+ case 3:
+ s11 = p ? 7 : 9;
+ break;
+ }
+ }
+ }
+ m11 = 2;
+ function S(a, b, f) {
+ var y11,
+ d;
+ y11 = 2;
+ for (; y11 !== 7; ) {
+ switch (y11) {
+ case 2:
+ var M7E = "v";
+ M7E += "b";
+ d = h.storage.get(M7E);
+ y11 = 1;
+ break;
+ case 5:
+ return a.PM ? q(a, b, f) : t(a, b, f);
+ break;
+ case 1:
+ var Z7E = "nu";
+ Z7E += "mb";
+ Z7E += "e";
+ Z7E += "r";
+ y11 = Z7E !== typeof d ? 5 : 4;
+ break;
+ case 4:
+ var m7E = "hist";
+ m7E += "_";
+ m7E += "bit";
+ m7E += "rat";
+ m7E += "e";
+ a = new u();
+ a.no = c.xl(f.slice().reverse(), function (a) {
+ var z11;
+ z11 = 2;
+ for (; z11 !== 1; ) {
+ switch (z11) {
+ case 2:
+ return a.R <= d;
+ break;
+ case 4:
+ return a.R > d;
+ break;
+ z11 = 1;
+ break;
+ }
+ }
+ }) || f[0];
+ a.reason = m7E;
+ return a;
+ break;
+ }
+ }
+ }
+ for (; m11 !== 5; ) {
+ switch (m11) {
+ case 2:
+ var N7E = "1";
+ N7E += "SIYbZrN";
+ N7E += "JCp9";
+ N7E;
+ return {
+ Uab: function (a, b, c) {
+ var A11;
+ A11 = 2;
+ for (; A11 !== 1; ) {
+ switch (A11) {
+ case 2:
+ var Y7E = "hi";
+ Y7E += "stor";
+ Y7E += "i";
+ Y7E += "ca";
+ Y7E += "l";
+ return Y7E === a.Eia ? S(a, b, c) : a.PM ? q(a, b, c) : t(a, b, c);
+ break;
+ }
+ }
+ },
+ D9a: w
+ };
+ break;
+ }
+ }
+ function b(a, b, c) {
+ var o11;
+ o11 = 2;
+ for (; o11 !== 5; ) {
+ switch (o11) {
+ case 2:
+ a = m(c.Li, a * c.Fka);
+ return p(a, b);
+ break;
+ }
+ }
+ }
+ function a(a, b) {
+ var n11,
+ c,
+ f;
+ n11 = 2;
+ for (; n11 !== 12; ) {
+ switch (n11) {
+ case 2:
+ c = new u();
+ c.no = a;
+ n11 = 5;
+ break;
+ case 8:
+ n11 = 7;
+ break;
+ case 5:
+ a = c.no.qb || ({});
+ c.Lk = a.om && a.Ri;
+ c.Kk = a.om ? a.om : 0;
+ a = k(c.Lk, {});
+ n11 = 8;
+ break;
+ case 7:
+ n11 = (f = g.na(b.n3) && 0 <= b.n3 && 100 >= b.n3 && !g.X(a) && !g.Pa(a)) ? 6 : 14;
+ break;
+ case 14:
+ var d7E = "hist_thr";
+ d7E += "ou";
+ d7E += "ghput";
+ var l7E = "h";
+ l7E += "ist_tdiges";
+ l7E += "t";
+ f ? (b = a.ci(b.n3 / 100) || c.no.Ia, c.Ms = b, c.reason = l7E) : c.no.Ia && (b = c.no.Ia, c.Ms = b, c.reason = d7E);
+ return c;
+ break;
+ case 6:
+ (f = r.oAa.Drb(a), g.Zb(f) ? (a.ci = f, f = !0) : f = !1);
+ n11 = 14;
+ break;
+ }
+ }
+ }
+ function l(a, b) {
+ var k4E = a000;
+ var r11,
+ c;
+ r11 = 2;
+ for (; r11 !== 9; ) {
+ switch (r11) {
+ case 7:
+ k4E.o4P(9);
+ var d41 = k4E.t4P(913, 17, 2);
+ k4E.s4P(5);
+ var e41 = k4E.t4P(10, 4160);
+ a = f(a, 6, d41) + e41;
+ r11 = 2;
+ break;
+ r11 = 1;
+ break;
+ case 4:
+ return (c = b.qVa[c]) && 2 === c.length ? 1E3 * (c[0] + c[1] * Math.log(1 + a)) : b.vp;
+ break;
+ case 5:
+ c = b.rJ;
+ r11 = 4;
+ break;
+ case 1:
+ var I7E = "l";
+ I7E += "o";
+ I7E += "g";
+ r11 = 0 === b.rJ.lastIndexOf(I7E, 0) ? 5 : 3;
+ break;
+ case 3:
+ var g7E = "s";
+ g7E += "i";
+ g7E += "g";
+ g7E += "mo";
+ g7E += "id";
+ return 0 === b.rJ.lastIndexOf(g7E, 0) ? (c = b.rJ, (c = b.qVa[c]) && 2 === c.length ? 1E3 * (c[0] + c[1] * n(a)) : b.vp) : b.vp;
+ break;
+ case 2:
+ k4E.s4P(10);
+ var f41 = k4E.X4P(2, 5882, 5886, 16);
+ k4E.o4P(11);
+ var g41 = k4E.t4P(981, 20, 6, 17, 2000240);
+ a = f(a, 0, f41) / g41;
+ r11 = 1;
+ break;
+ }
+ }
+ }
+ })();
+ d = a.D9a;
+ b.pVa = a.Uab;
+ b.tvb = d;
+ }, function (d, b, a) {
+ var c;
+ a(8);
+ c = a(35).console;
+ d.P = function (a, b, d, h, g, m, f, u, n, q, t, C, M, H, G) {
+ var J4E = a000;
+ var B11,
+ l,
+ p,
+ r,
+ w,
+ A,
+ K,
+ z,
+ k;
+ B11 = 2;
+ for (; B11 !== 38; ) {
+ switch (B11) {
+ case 27:
+ r = p[u];
+ w = l[u];
+ B11 = 25;
+ break;
+ case 43:
+ K = a;
+ B11 = 42;
+ break;
+ case 33:
+ J4E.s4P(12);
+ d += J4E.t4P(C, r, m, 0);
+ f += w;
+ B11 = 31;
+ break;
+ case 28:
+ ++u;
+ B11 = 44;
+ break;
+ case 40:
+ return {
+ result: !1,
+ MP: Math.min(a, h) / (k / 1E3),
+ Fs: !0
+ };
+ break;
+ case 22:
+ (d = g, t += p[z], ++z, a = l[z], g += a);
+ B11 = 23;
+ break;
+ case 34:
+ J4E.o4P(4);
+ a = J4E.t4P(f, d);
+ B11 = 33;
+ break;
+ case 29:
+ (t += p[z], ++z, g += l[z]);
+ B11 = 30;
+ break;
+ case 24:
+ K = Math.max(r, q);
+ B11 = 23;
+ break;
+ case 4:
+ (l = a.Rd, p = a.sizes, A = h - d);
+ h = Infinity;
+ (K = 0, z = 0);
+ B11 = 8;
+ break;
+ case 21:
+ B11 = !G && (a = f - d, a < H) ? 35 : 34;
+ break;
+ case 39:
+ return {
+ result: !0,
+ MP: h / (k / 1E3),
+ Fs: !0
+ };
+ break;
+ case 13:
+ var W7E = " ";
+ W7E += ">= fr";
+ W7E += "ag";
+ W7E += "mentsLeng";
+ W7E += "th: ";
+ var i7E = "Strea";
+ i7E += "ming";
+ i7E += "Index: ";
+ J4E.o4P(5);
+ m = J4E.t4P(1E3, k);
+ u >= b && c.error(i7E + u + W7E + b);
+ d += a;
+ 0 === f && (d = 0);
+ J4E.o4P(5);
+ d *= J4E.t4P(1E3, k);
+ J4E.o4P(5);
+ f *= J4E.X4P(1E3, k);
+ B11 = 18;
+ break;
+ case 15:
+ B11 = u < b ? 27 : 39;
+ break;
+ case 42:
+ h = Math.min(a, h);
+ B11 = 15;
+ break;
+ case 17:
+ J4E.s4P(5);
+ M *= J4E.t4P(1E3, k);
+ B11 = 16;
+ break;
+ case 18:
+ J4E.s4P(5);
+ H *= J4E.t4P(1E3, k);
+ B11 = 17;
+ break;
+ case 30:
+ B11 = g < d && z < u ? 29 : 28;
+ break;
+ case 25:
+ B11 = t < r ? 24 : 41;
+ break;
+ case 23:
+ B11 = t < K ? 22 : 21;
+ break;
+ case 16:
+ J4E.o4P(5);
+ A *= J4E.X4P(1E3, k);
+ B11 = 15;
+ break;
+ case 31:
+ t -= r;
+ B11 = 30;
+ break;
+ case 44:
+ B11 = u >= n && a > A ? 39 : 43;
+ break;
+ case 41:
+ B11 = (a = Math.max(f - d, 0), a < M && a < K) ? 40 : 33;
+ break;
+ case 8:
+ a = a.Rd[0];
+ J4E.s4P(13);
+ g = J4E.t4P(g, 1E3, a, k);
+ J4E.s4P(14);
+ a = J4E.t4P(8, m, C, 0);
+ J4E.s4P(15);
+ C = J4E.t4P(8, 0, C);
+ B11 = 13;
+ break;
+ case 2:
+ var e7E = "1SI";
+ e7E += "YbZrNJ";
+ e7E += "Cp9";
+ e7E;
+ k = a.S;
+ b = Math.min(a.length, b);
+ B11 = 4;
+ break;
+ case 35:
+ return {
+ result: !1,
+ MP: a / (k / 1E3),
+ Fs: !1
+ };
+ break;
+ }
+ }
+ };
+ }, function (d, b, a) {
+ var c,
+ k,
+ g,
+ r,
+ h,
+ p;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.m3 = void 0;
+ c = a(45);
+ k = a(8);
+ d = a(35);
+ g = a(387);
+ r = d.assert;
+ h = d.Co;
+ b.m3 = p;
+ (function () {
+ var C11;
+ C11 = 2;
+ for (; C11 !== 5; ) {
+ switch (C11) {
+ case 2:
+ var Q7E = "1";
+ Q7E += "SIYbZrN";
+ Q7E += "JCp9";
+ b.m3 = p = function (b, c, d, h, k, m) {
+ var F11;
+ F11 = 2;
+ for (; F11 !== 1; ) {
+ switch (F11) {
+ case 2:
+ var v7E = "p";
+ v7E += "la";
+ v7E += "y";
+ v7E += "ing";
+ return v7E === b.Nca ? g.uR.call(this, b, c, d, h, k, m) : a.call(this, b, c, d, h);
+ break;
+ }
+ }
+ };
+ Q7E;
+ C11 = 5;
+ break;
+ }
+ }
+ function a(a, b, d, g) {
+ var D11,
+ m,
+ l,
+ p,
+ u,
+ n;
+ D11 = 2;
+ function f(c) {
+ var E11,
+ f;
+ E11 = 2;
+ for (; E11 !== 8; ) {
+ switch (E11) {
+ case 1:
+ E11 = !f || (c.R > l ? a.HNb : 1) * c.R * b.playbackRate > f ? 5 : 4;
+ break;
+ case 2:
+ f = c.Ia;
+ E11 = 1;
+ break;
+ case 5:
+ return !1;
+ break;
+ case 4:
+ var h7E = "buff_";
+ h7E += "lt";
+ h7E += "_hist";
+ n = h7E;
+ u = f;
+ return !0;
+ break;
+ }
+ }
+ }
+ for (; D11 !== 7; ) {
+ switch (D11) {
+ case 2:
+ var z7E = "sel";
+ z7E += "ect_feasible_buf";
+ z7E += "feri";
+ z7E += "ng";
+ var q7E = "fallback_lowest_acceptable";
+ q7E += "_st";
+ q7E += "r";
+ q7E += "eam";
+ var O7E = "Must ha";
+ O7E += "ve ";
+ O7E += "at least one select";
+ O7E += "ed s";
+ O7E += "tream";
+ r(!k.X(g), O7E);
+ (m = d[g], l = m.R, p = m);
+ m.Ia && (m = c.xl(d.slice(0, Math.min(g + (a.Ucb ? 2 : 1), d.length)).reverse(), f), void 0 === m ? (m = d[0], n = q7E) : n = z7E, u = null === m || void 0 === m ? void 0 : m.Ia);
+ d = new h();
+ D11 = 3;
+ break;
+ case 3:
+ d.no = m;
+ p !== m && (d.reason = n, d.Ms = u);
+ D11 = 8;
+ break;
+ case 8:
+ return d;
+ break;
+ }
+ }
+ }
+ })();
+ }, function (d, b, a) {
+ var k;
+ function c(a, b, c) {
+ a = c.map(function (a, b) {
+ return a.Pq ? b : null;
+ }).filter(function (a) {
+ return null !== a;
+ });
+ return a.length ? new k(a[Math.floor(Math.random() * a.length)]) : null;
+ }
+ k = a(35).Co;
+ d.P = {
+ STARTING: c,
+ BUFFERING: c,
+ REBUFFERING: c,
+ PLAYING: c,
+ PAUSED: c
+ };
+ }, function (d, b, a) {
+ var k,
+ g,
+ r,
+ h;
+ function c(a, b, c, d) {
+ if (k.X(d))
+ a = g(c);
+ else if (r(c[d]))
+ a = d;
+ else if ((a = g(c, d), 0 > a))
+ return null;
+ return new h(a);
+ }
+ k = a(8);
+ b = a(35);
+ g = b.Sfa;
+ r = b.GC;
+ h = b.Co;
+ d.P = {
+ STARTING: c,
+ BUFFERING: c,
+ REBUFFERING: c,
+ PLAYING: c,
+ PAUSED: c
+ };
+ }, function (d, b, a) {
+ var c,
+ k,
+ g,
+ r,
+ h,
+ p,
+ m,
+ f,
+ u,
+ n;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.aV = void 0;
+ c = a(8);
+ k = a(19);
+ g = a(4);
+ r = a(45);
+ h = a(16);
+ p = a(217);
+ m = new g.Console("ASEJS_STREAM_SELECTOR", "media|asejs");
+ f = [h.pa[h.pa.Sg], h.pa[h.pa.Xd], h.pa[h.pa.gf], h.pa[h.pa.Sc], h.pa[h.pa.$i], "checkBuffering"];
+ u = {
+ first: a(829),
+ random: a(828),
+ optimized: a(216),
+ roundrobin: a(824),
+ selectaudio: a(386),
+ selectaudioadaptive: a(823),
+ "default": a(216),
+ lowest: a(822),
+ highest: a(821),
+ throughputthreshold: a(820),
+ checkdefault: a(819),
+ testscript: a(818)
+ };
+ n = {
+ STARTING: "default",
+ BUFFERING: "default",
+ REBUFFERING: "default",
+ PLAYING: "default",
+ PAUSED: "default",
+ checkBuffering: "checkdefault"
+ };
+ d = (function () {
+ var G11;
+ G11 = 2;
+ function a(a, b, c) {
+ var H11,
+ d;
+ H11 = 2;
+ for (; H11 !== 7; ) {
+ switch (H11) {
+ case 2:
+ d = this;
+ this.uJ = a;
+ this.K = b;
+ H11 = 4;
+ break;
+ case 4:
+ var E7E = "1";
+ E7E += "SIY";
+ E7E += "bZrNJCp";
+ E7E += "9";
+ this.ag = c;
+ E7E;
+ a = a || this.K.U3;
+ H11 = 8;
+ break;
+ case 8:
+ this.Ef = f.reduce(function (b, c) {
+ var I11;
+ I11 = 2;
+ for (; I11 !== 5; ) {
+ switch (I11) {
+ case 2:
+ b[c] = ((u[a] || u[n[c]])[c] || u[n[c]][c]).bind(d);
+ return b;
+ break;
+ }
+ }
+ }, {});
+ H11 = 7;
+ break;
+ }
+ }
+ }
+ for (; G11 !== 14; ) {
+ switch (G11) {
+ case 2:
+ a.prototype.o3 = function (a, b, f, d, l, u) {
+ var j4E = a000;
+ var J11,
+ C,
+ A,
+ t,
+ K,
+ w,
+ K11,
+ H,
+ n,
+ q;
+ J11 = 2;
+ for (; J11 !== 50; ) {
+ switch (J11) {
+ case 17:
+ J11 = C.no && (C.nv = [], b.forEach(function (a, b) {
+ var N11;
+ N11 = 2;
+ for (; N11 !== 4; ) {
+ switch (N11) {
+ case 2:
+ a === C.no && (C.ld = b);
+ a.Yoa && C.nv.push(a.wa);
+ a.Yoa = !1;
+ N11 = 4;
+ break;
+ }
+ }
+ }), !C.nv.length) ? 16 : 30;
+ break;
+ case 28:
+ this.ag.toa(C.ld);
+ q = b[C.ld];
+ C.reason && (q.Ip = C.reason, q.tR = C.Ms, q.Kv = C.Kv, q.Kk = C.Kk, q.Lk = C.Lk);
+ J11 = 42;
+ break;
+ case 24:
+ J11 = q < b.length ? 23 : 21;
+ break;
+ case 52:
+ J11 = 51;
+ break;
+ case 34:
+ J11 = 0 <= q ? 33 : 31;
+ break;
+ case 18:
+ C = this.Ef[h.pa[a.state]].call(this, q, a, b, w, d, !!l);
+ J11 = 17;
+ break;
+ case 35:
+ j4E.o4P(16);
+ var h41 = j4E.t4P(202, 7, 14, 15);
+ q = C.ld - h41;
+ J11 = 34;
+ break;
+ case 3:
+ (A = f.$, t = A.length);
+ J11 = 9;
+ break;
+ case 27:
+ d = !1;
+ J11 = 26;
+ break;
+ case 23:
+ A = b[q];
+ J11 = 22;
+ break;
+ case 20:
+ this.Eaa = this.Aaa = void 0;
+ J11 = 19;
+ break;
+ case 38:
+ J11 = K11 === h.pa.Xd ? 37 : 36;
+ break;
+ case 7:
+ J11 = !(0 <= w) ? 6 : 14;
+ break;
+ case 31:
+ d || (C.nv = void 0);
+ J11 = 30;
+ break;
+ case 54:
+ J11 = K11 === h.pa.Sc ? 18 : 53;
+ break;
+ case 25:
+ j4E.o4P(17);
+ var i41 = j4E.X4P(12, 193, 16);
+ q = C.ld + i41;
+ J11 = 24;
+ break;
+ case 19:
+ this.ag.OVa(k.JT.Sg);
+ J11 = 18;
+ break;
+ case 14:
+ c.X(w) && (w = this.ag.AP);
+ void 0 !== d && this.rma(b, !!a.np, a.buffer, d);
+ a.state === h.pa.Sg && c.na(w) && (a.state = h.pa.Xd);
+ a.state !== h.pa.Sg && void 0 === w && (a.state = h.pa.Sg);
+ J11 = 10;
+ break;
+ case 51:
+ var P7E = "St";
+ P7E += "ream selector called w";
+ P7E += "ith invalid player state ";
+ return (m.error(P7E + h.pa[a.state]), null);
+ break;
+ case 8:
+ (K = A[t - 1].wa, w = r.ay(b, function (a) {
+ var L11;
+ L11 = 2;
+ for (; L11 !== 1; ) {
+ switch (L11) {
+ case 4:
+ return a.wa != K;
+ break;
+ L11 = 1;
+ break;
+ case 2:
+ return a.wa === K;
+ break;
+ }
+ }
+ }));
+ J11 = 7;
+ break;
+ case 22:
+ A.$ && A.$.length || (d = !0, C.nv.push(A.wa));
+ J11 = 21;
+ break;
+ case 32:
+ A.$ && A.$.length || (d = !0, C.nv.push(A.wa));
+ J11 = 31;
+ break;
+ case 16:
+ l = f.Bl - f.ud;
+ A = void 0;
+ J11 = 27;
+ break;
+ case 30:
+ J11 = !C || null === C.ld ? 29 : 28;
+ break;
+ case 42:
+ var U7E = "play";
+ U7E += "i";
+ U7E += "ng";
+ c.na(w) && q.R < b[w].R && (this.Aaa = f.Ub);
+ a.state !== h.pa.Sc && a.state !== h.pa.$i ? (b = p.n2(a.state), u = this.dv(a.buffer, b, a.playbackRate, q, u), (C.$g = u.complete) ? C.AX = u.reason : (C.$g = !1, C.HD = u.HD, C.Yy = u.Yy, C.ei = u.ei)) : (C.$g = !0, C.AX = U7E);
+ a.pO && (C.Ub = f.Ub, u = a && a.Iz, b = q.$, C.Gi = b && void 0 !== u && !isNaN(u) && 0 <= u && u < b.length ? b.hi(u) : f.Ub, C.MDb = q.Ia || 0, C.TAb = q.qb && q.qb.Ia && q.qb.Ia.Ca || 0, C.ZFa = f.Bl - f.ud, C.YFa = f.ki, C.oz = a.state, C.Oo = a && a.Oo, C.lYa = n, C.xLb = g.time.ea());
+ return C;
+ break;
+ case 29:
+ return null;
+ break;
+ case 9:
+ J11 = 0 < t ? 8 : 14;
+ break;
+ case 26:
+ J11 = q.nWa && l > q.$P ? 25 : 31;
+ break;
+ case 10:
+ K11 = a.state;
+ J11 = K11 === h.pa.Sg ? 20 : 38;
+ break;
+ case 6:
+ (H = A[t - 1].R, w = r.ay(b, function (a) {
+ var M11;
+ M11 = 2;
+ for (; M11 !== 1; ) {
+ switch (M11) {
+ case 4:
+ return a.R >= H;
+ break;
+ M11 = 1;
+ break;
+ case 2:
+ return a.R > H;
+ break;
+ }
+ }
+ }), w = 0 < w ? w - 1 : 0 === w ? 0 : b.length - 1);
+ J11 = 14;
+ break;
+ case 2:
+ f = null === a || void 0 === a ? void 0 : a.buffer;
+ (n = g.time.ea(), q = this.K, w = this.ag.AP);
+ c.na(w) && a.state === h.pa.Sg && (this.ag.toa(void 0), w = void 0);
+ c.na(w) && w >= b.length && (this.ag.toa(void 0), w = void 0);
+ J11 = 3;
+ break;
+ case 37:
+ this.ag.OVa(k.JT.Sg);
+ J11 = 18;
+ break;
+ case 36:
+ J11 = K11 === h.pa.gf ? 37 : 54;
+ break;
+ case 33:
+ A = b[q];
+ J11 = 32;
+ break;
+ case 53:
+ J11 = K11 === h.pa.$i ? 18 : 52;
+ break;
+ case 21:
+ J11 = !d ? 35 : 31;
+ break;
+ }
+ }
+ };
+ a.prototype.dv = function (a, b, c, f, d) {
+ var O11;
+ O11 = 2;
+ for (; O11 !== 1; ) {
+ switch (O11) {
+ case 2:
+ return this.Ef.checkBuffering.call(this, a, b, c, f, d, this.K);
+ break;
+ }
+ }
+ };
+ a.prototype.GKb = function (a, b, f) {
+ var P11;
+ P11 = 2;
+ for (; P11 !== 1; ) {
+ switch (P11) {
+ case 2:
+ c.X(b) ? this.Aaa = this.Eaa = void 0 : b.R < f.R && (this.Eaa = a);
+ P11 = 1;
+ break;
+ }
+ }
+ };
+ G11 = 4;
+ break;
+ case 4:
+ a.prototype.rma = function (a, b, c, f) {
+ var Q11,
+ d,
+ h;
+ Q11 = 2;
+ for (; Q11 !== 5; ) {
+ switch (Q11) {
+ case 1:
+ this.tZ(a, function (a) {
+ var R11;
+ R11 = 2;
+ for (; R11 !== 1; ) {
+ switch (R11) {
+ case 2:
+ a.Pq && a.qb && a.qb.Dd ? (d !== a.qb && (d = a.qb, b && a.qb && (a.qb.np = !0), h = Math.floor(f(a.qb, c, a.track.O.Uq[0])), h = 0 === h ? 1 : h), a.Ia = h) : a.Ia = void 0;
+ R11 = 1;
+ break;
+ }
+ }
+ });
+ Q11 = 5;
+ break;
+ case 2:
+ Q11 = 1;
+ break;
+ }
+ }
+ };
+ a.prototype.tZ = function (a, b) {
+ var S11,
+ c;
+ S11 = 2;
+ for (; S11 !== 3; ) {
+ switch (S11) {
+ case 8:
+ c = a.length + 7;
+ S11 = 6;
+ break;
+ S11 = 1;
+ break;
+ case 2:
+ a000.s4P(5);
+ var k41 = a000.X4P(17, 17);
+ c = a.length - k41;
+ S11 = 1;
+ break;
+ case 1:
+ S11 = 0 <= c ? 5 : 3;
+ break;
+ case 7:
+ S11 = 1 > c ? 3 : 8;
+ break;
+ S11 = 0 <= c ? 5 : 3;
+ break;
+ case 4:
+ --c;
+ S11 = 1;
+ break;
+ case 14:
+ ++c;
+ S11 = 2;
+ break;
+ S11 = 1;
+ break;
+ case 5:
+ b(a[c], c, a);
+ S11 = 4;
+ break;
+ }
+ }
+ };
+ Object.defineProperties(a.prototype, {
+ y0: {
+ get: function () {
+ var T11;
+ T11 = 2;
+ for (; T11 !== 1; ) {
+ switch (T11) {
+ case 2:
+ return this.Aaa;
+ break;
+ }
+ }
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ Aja: {
+ get: function () {
+ var U11;
+ U11 = 2;
+ for (; U11 !== 1; ) {
+ switch (U11) {
+ case 4:
+ return this.Eaa;
+ break;
+ U11 = 1;
+ break;
+ case 2:
+ return this.Eaa;
+ break;
+ }
+ }
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ AP: {
+ get: function () {
+ var V11;
+ V11 = 2;
+ for (; V11 !== 1; ) {
+ switch (V11) {
+ case 2:
+ return this.ag.AP;
+ break;
+ case 4:
+ return this.ag.AP;
+ break;
+ V11 = 1;
+ break;
+ }
+ }
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ return a;
+ break;
+ }
+ }
+ })();
+ b.aV = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ g,
+ r,
+ h;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.ira = void 0;
+ c = a(0);
+ a(5);
+ d = a(33);
+ k = a(4);
+ g = a(95);
+ r = a(73);
+ a = a(167);
+ h = k.wk;
+ a = (function (a) {
+ function b(b, c, d, h, k, g, m) {
+ h.responseType = 0;
+ d = a.call(this, b, d, "", h, k, c, m) || this;
+ r.Rh.call(d, b, h);
+ d.vka = c.vka;
+ d.wka = c.wka;
+ d.Vfa = 0;
+ return d;
+ }
+ c.__extends(b, a);
+ b.prototype.Eb = function () {
+ this.bc || (this.bc = g.Lf());
+ };
+ b.prototype.ft = function () {
+ return h.prototype.open.call(this, this.IL, {
+ start: this.offset,
+ end: this.offset + Math.min(this.wka, Math.floor(this.vka * this.da)) - 1
+ }, this.HL, {}, void 0, void 0, void 0);
+ };
+ b.prototype.abort = function () {
+ return !0;
+ };
+ b.prototype.oM = function () {
+ var a;
+ a = this.ed || this.rf;
+ this.bd || (this.bd = !0, this.Vfa = a);
+ };
+ b.prototype.Saa = function () {
+ this.Vfa = this.ed;
+ };
+ b.prototype.Taa = function () {};
+ b.prototype.nM = function () {
+ var a;
+ a = this.ed;
+ this.bc && this.bc.Yx(this.Qe, this.Vfa, a, {
+ requestId: this.xn(),
+ re: this.Ob,
+ type: this.L,
+ oE: !0
+ });
+ this.Dg = this.bd = !1;
+ this.yc();
+ };
+ b.prototype.UF = function () {
+ this.Vf && this.Vf.clear();
+ };
+ return b;
+ })(a.aA);
+ b.ira = a;
+ d.Ve(r.Rh, a, !1);
+ }, function (d, b, a) {
+ var c,
+ k,
+ g,
+ r,
+ h,
+ p,
+ m;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Zqa = void 0;
+ c = a(0);
+ k = a(96);
+ g = a(5);
+ a(4);
+ r = a(11);
+ h = a(218);
+ p = a(73);
+ m = a(229);
+ d = (function (a) {
+ function b(c, f, d, h, k, g) {
+ f = a.call(this, c, h, k, f, g) || this;
+ f.G8a = d;
+ f.wn = void 0;
+ f.jaa = b.BE.INIT;
+ f.nWb = h.offset;
+ f.zaa = p.Rh.prototype.toString.call(f) + " multiple";
+ f.dG(c.url, h.offset, 8, 0);
+ return f;
+ }
+ c.__extends(b, a);
+ Object.defineProperties(b.prototype, {
+ data: {
+ get: function () {
+ return this.wn;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ b.prototype.rj = function (a) {
+ var c,
+ f;
+ this.wn = this.wn ? r.ys(this.wn, a.response) : a.response;
+ a.bR();
+ switch (this.jaa) {
+ case b.BE.INIT:
+ c = new DataView(this.wn);
+ f = c.getUint32(0);
+ c = c.getUint32(4);
+ k.Ax(c);
+ this.dG(a.url, a.offset + a.da, f, 0);
+ h.Zz.prototype.rj.call(this, a);
+ this.jaa = b.BE.Yva;
+ break;
+ case b.BE.Yva:
+ c = new DataView(this.wn);
+ f = c.getUint32(this.BBa - 8);
+ c = c.getUint32(this.BBa - 4);
+ k.Ax(c);
+ this.dG(a.url, a.offset + a.da, f - 8, 0);
+ this.jaa = b.BE.Tva;
+ h.Zz.prototype.rj.call(this, a);
+ break;
+ case b.BE.Tva:
+ h.Zz.prototype.rj.call(this, a);
+ break;
+ default:
+ g.assert(!1);
+ }
+ };
+ b.prototype.dG = function (a, b, c, f) {
+ a = new m.pK(this.stream, this.G8a, this.zaa + " (" + this.ta.length + ")", {
+ G: this.G,
+ L: this.L,
+ wa: this.wa,
+ R: this.R,
+ offset: b,
+ da: c,
+ url: a,
+ location: this.location,
+ Ob: this.Ob,
+ responseType: f
+ }, this, this.Uc, this.u);
+ this.push(a);
+ this.BBa = this.ta.reduce(function (a, b) {
+ return a + b.da;
+ }, 0);
+ };
+ b.BE = {
+ INIT: 0,
+ Yva: 1,
+ Tva: 2,
+ name: ["INIT", "MOOF", "MDAT"]
+ };
+ return b;
+ })(h.Zz);
+ b.Zqa = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ g,
+ r,
+ h,
+ p,
+ m,
+ f;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Vqa = void 0;
+ c = a(0);
+ a(5);
+ k = a(8);
+ d = a(33);
+ g = a(4);
+ r = a(95);
+ h = a(73);
+ p = a(167);
+ m = a(164);
+ f = g.wk;
+ a = (function (a) {
+ function b(b, c, d, k, g, m, l) {
+ var p;
+ p = this;
+ p = ["cache", "edit"].filter(function (a, b) {
+ return [m, k.Sa][b];
+ });
+ p = p.length ? "(" + p.join(",") + ")" : "";
+ void 0 === k.responseType && (k.responseType = f.gc && !f.gc.lJ.MA ? 0 : 1);
+ p = a.call(this, b, d, p, k, g, c, l) || this;
+ h.Rh.call(p, b, k);
+ p.GCa = k.Jwb;
+ p.Vf.on(p, f.Yd.HTb, p.R$a);
+ p.Vf.on(p, f.Yd.GTb, p.Q$a);
+ return p;
+ }
+ c.__extends(b, a);
+ b.prototype.Eb = function (a) {
+ m.bA.prototype.Eb.call(this, a);
+ this.bc || !this.Uc.fX && this.kc || (this.bc = r.Lf());
+ };
+ b.prototype.ft = function () {
+ var a;
+ a = {
+ start: this.offset,
+ end: this.offset + this.da - 1
+ };
+ void 0 !== this.cc && 0 <= this.cc && void 0 !== this.Qb && (this.IL = this.TCa(this.IL, !0), a = {
+ start: 0,
+ end: -1
+ });
+ return f.prototype.open.call(this, this.IL, a, this.HL, {}, void 0, void 0, this.gBa);
+ };
+ b.prototype.u4 = function () {
+ var a,
+ b,
+ c;
+ if (this.complete)
+ return 0;
+ a = this.CUa;
+ b = a.O;
+ if (!a.url)
+ return (this.u.warn("updateurl, missing url for streamId:", a.wa, "mediaRequest:", this, "stream:", a), 1);
+ c = this.TCa(a.url, !1);
+ return this.url === c || (b.B3(this, a.location, a.Ac), this.YR(c)) ? 0 : (this.u.warn("swapUrl failed: ", this.qH), 2);
+ };
+ b.prototype.oM = function () {
+ this.bd || (this.bd = !0, this.eo = this.track.eo(), this.nC(this), this.Pl = 0, this.Ql = this.ed);
+ };
+ b.prototype.Saa = function () {
+ var a;
+ a = this.ed;
+ this.yy(this);
+ this.Ql = a;
+ };
+ b.prototype.Taa = function () {
+ var a;
+ a = this.ed;
+ this.oC(this);
+ this.Ql = a;
+ this.Pl = this.Qe;
+ };
+ b.prototype.R$a = function () {
+ var a;
+ a = this.Awb;
+ this.Dg = !0;
+ this.bc && (this.bc.DD(a, {
+ requestId: this.xn(),
+ re: this.Ob,
+ type: this.L
+ }), this.bc.nna());
+ };
+ b.prototype.nM = function () {
+ var a;
+ a = this.ed;
+ this.bc && this.Dg && this.bc.FD(g.time.ea(), this.Dg, {
+ requestId: this.xn(),
+ re: this.Ob,
+ type: this.L
+ });
+ this.Dg = this.bd = !1;
+ this.Bq(this);
+ this.Ql = a;
+ this.Pl = this.Qe;
+ this.yc();
+ };
+ b.prototype.Q$a = function () {
+ this.bc && (this.bc.Yx(this.sZb, this.Awb, this.zwb, {
+ requestId: this.xn(),
+ re: this.Ob,
+ type: this.L
+ }), this.bc.FD(this.zwb, this.Dg, {
+ requestId: this.xn(),
+ re: this.Ob,
+ type: this.L
+ }));
+ this.Dg = !1;
+ };
+ b.prototype.CBa = function (a, b, c, f) {
+ return void 0 === a || void 0 === b || void 0 === c ? 0 : b < c ? 0 : a < c ? f : a - c;
+ };
+ Object.defineProperties(b.prototype, {
+ MLb: {
+ get: function () {
+ return k.X(this.cc) || 0 > this.cc || k.X(this.Qb) ? 0 : this.CBa(this.cc, this.Qb - 1, this.GCa, this.Uc.r1);
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ b.prototype.TCa = function (a, b) {
+ var c,
+ f;
+ if (k.X(this.cc) || 0 > this.cc || k.X(this.Qb))
+ return a;
+ c = [];
+ f = this.CBa(this.cc, this.Qb - 1, this.GCa, this.Uc.r1);
+ c.push("ptsRange/" + this.cc + "-" + (this.Qb - 1));
+ 0 < f && b && c.push("timeDelay/" + f);
+ a = a.split("?");
+ b = a[0];
+ for (var f = "", d = 0; d < c.length; d++) {
+ f += "/" + c[d];
+ }
+ return a[1] ? b + (f + "?" + a[1]) : b + f;
+ };
+ return b;
+ })(p.aA);
+ b.Vqa = a;
+ d.Ve(h.Rh, a, !1);
+ }, function (d, b, a) {
+ var c,
+ k,
+ g,
+ r;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.SS = void 0;
+ c = a(0);
+ k = a(5);
+ d = a(33);
+ g = a(230);
+ a = a(110);
+ r = (function () {
+ function a(b, c) {
+ this.Fa = [];
+ this.Vg = void 0;
+ this.ec = 0;
+ this.u = b;
+ c && c.length && (Array.isArray(c) ? (this.Fa = c.slice(), this.ML(0, this.Fa.length)) : c instanceof a && (this.Fa = c.Fa.slice(), this.ML(0, this.Fa.length)));
+ }
+ Object.defineProperties(a.prototype, {
+ length: {
+ get: function () {
+ return this.Fa.length;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ empty: {
+ get: function () {
+ return 0 === this.Fa.length;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ first: {
+ get: function () {
+ return this.Fa[0];
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ $h: {
+ get: function () {
+ return this.Fa[this.Fa.length - 1];
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ Qa: {
+ get: function () {
+ return this.first && this.first.Qa;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ jb: {
+ get: function () {
+ return this.$h && this.$h.jb;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ da: {
+ get: function () {
+ return this.ec;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ S: {
+ get: function () {
+ return this.first && this.first.S;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ hk: {
+ get: function () {
+ return this.first && this.first.hk;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ $: {
+ get: function () {
+ return this.Fa;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ a.prototype.get = function (a) {
+ 0 > a && (a += this.Fa.length);
+ return this.Fa[a];
+ };
+ a.prototype.push = function (a) {
+ this.Fa.push(a);
+ this.ML(this.Fa.length - 1);
+ return this.length;
+ };
+ a.prototype.unshift = function (a) {
+ this.Fa.unshift(a);
+ this.ML(0, 1);
+ return this.length;
+ };
+ a.prototype.pop = function () {
+ if (0 !== this.Fa.length)
+ return (this.bba(this.Fa.length - 1), this.Fa.pop());
+ };
+ a.prototype.shift = function () {
+ if (0 !== this.Fa.length)
+ return (this.bba(0), this.Fa.shift());
+ };
+ a.prototype.splice = function (a, b) {
+ for (var f, d = [], h = 2; h < arguments.length; h++) {
+ d[h - 2] = arguments[h];
+ }
+ 0 > a && (a += this.Fa.length);
+ 0 > a && (a = 0);
+ a > this.Fa.length && (a = this.Fa.length);
+ if (void 0 === b || 0 > b)
+ b = 0;
+ b = Math.min(b, this.Fa.length - a);
+ 0 < b && this.bba(a, a + b);
+ h = (f = this.Fa).splice.apply(f, c.__spread([a, b], d));
+ 0 < d.length && this.ML(a, a + arguments.length - 2);
+ return h;
+ };
+ a.prototype.slice = function (b, c) {
+ void 0 === b && (b = 0);
+ void 0 === c && (c = this.Fa.length);
+ 0 > b && (b += this.Fa.length);
+ if (b >= this.Fa.length)
+ return new a(this.u);
+ c > this.Fa.length && (c = this.Fa.length);
+ 0 > c && (c += this.Fa.length);
+ return new a(this.u, this.Fa.slice(b, c));
+ };
+ a.prototype.bo = function (a) {
+ if (0 === this.Fa.length || a.Qa >= this.jb)
+ this.push(a);
+ else if (a.jb <= this.Qa)
+ this.unshift(a);
+ else {
+ for (var b = 0, c = this.Fa.length - 1, d; b < c - 1; ) {
+ d = Math.floor((c + b) / 2);
+ k.assert(d !== c && d !== b);
+ a.Qa >= this.Fa[d].jb ? b = d : c = d;
+ }
+ k.assert(b !== c);
+ k.assert(this.Fa[b].jb <= a.Qa && this.Fa[c].Qa >= a.jb);
+ this.splice(c, 0, a);
+ }
+ };
+ a.prototype.remove = function (a) {
+ a = this.Fa.indexOf(a);
+ if (0 > a)
+ return !1;
+ this.splice(a, 1);
+ return !0;
+ };
+ a.prototype.concat = function () {
+ for (var b = [], c = 0; c < arguments.length; c++) {
+ b[c] = arguments[c];
+ }
+ b = b.map(function (a) {
+ return a.Fa;
+ });
+ return new a(this.u, Array.prototype.concat.apply(this.Fa, b));
+ };
+ a.prototype.forEach = function (a) {
+ var b;
+ b = this;
+ this.Fa.forEach(function (c, d) {
+ return a(c, d, b);
+ });
+ };
+ a.prototype.some = function (a) {
+ var b;
+ b = this;
+ return this.Fa.some(function (c, d) {
+ return a(c, d, b);
+ });
+ };
+ a.prototype.every = function (a) {
+ var b;
+ b = this;
+ return this.Fa.every(function (c, d) {
+ return a(c, d, b);
+ });
+ };
+ a.prototype.map = function (a) {
+ var b;
+ b = this;
+ return this.Fa.map(function (c, d) {
+ return a(c, d, b);
+ });
+ };
+ a.prototype.reduce = function (a, b) {
+ var c;
+ c = this;
+ return this.Fa.reduce(function (b, f, d) {
+ return a(b, f, d, c);
+ }, b);
+ };
+ a.prototype.indexOf = function (a) {
+ return this.Fa.indexOf(a);
+ };
+ a.prototype.find = function (a) {
+ var b,
+ c;
+ b = this;
+ return this.Fa.some(function (f, d) {
+ c = d;
+ return a(f, d, b);
+ }) ? this.Fa[c] : void 0;
+ };
+ a.prototype.findIndex = function (a) {
+ var b,
+ c;
+ b = this;
+ return this.Fa.some(function (f, d) {
+ c = d;
+ return a(f, d, b);
+ }) ? c : -1;
+ };
+ a.prototype.filter = function (b) {
+ var c;
+ c = this;
+ return new a(this.u, this.Fa.filter(function (a, d) {
+ return b(a, d, c);
+ }));
+ };
+ a.prototype.tZ = function (a) {
+ for (var b = this.Fa.length - 1; 0 <= b; --b) {
+ a(this.Fa[b], b, this);
+ }
+ };
+ a.prototype.Qoa = function (a) {
+ for (var b = this.Fa.length - 1; 0 <= b; --b) {
+ if (a(this.Fa[b], b, this))
+ return !0;
+ }
+ return !1;
+ };
+ a.prototype.tH = function (a) {
+ if (this.empty || a < this.Zc || a >= this.ie)
+ return -1;
+ for (var b = 0, c = this.Fa.length - 1, d; c > b; ) {
+ d = Math.floor((c + b) / 2);
+ if (a >= this.Fa[d].Zc && a < this.Fa[d].ie) {
+ c = d;
+ break;
+ }
+ a < this.Fa[d].ie ? c = d - 1 : b = d + 1;
+ }
+ return c;
+ };
+ a.prototype.NJa = function (a) {
+ a = this.tH(a);
+ return 0 <= a ? this.Fa[a] : void 0;
+ };
+ a.prototype.ZW = function (a) {
+ var b;
+ b = this.Fa[a].jb;
+ for (a += 1; a < this.Fa.length && b === this.Fa[a].Qa; ++a) {
+ b = this.Fa[a].jb;
+ }
+ a < this.Fa.length ? void 0 === this.Vg ? this.Vg = new g.cA(this, {
+ jb: b
+ }) : this.Vg.zR(b) : void 0 === this.Vg ? this.Vg = new g.cA(this, {}) : this.Vg.pda();
+ };
+ a.prototype.iF = function (a, b) {
+ for (var c = a; c < b; ++c) {
+ this.ec += this.Fa[c].da;
+ }
+ void 0 === this.Vg || 0 === a ? this.ZW(0) : this.Vg.jb === this.jb ? this.ZW(a - 1) : this.Fa[a].Qa === this.Vg.jb && this.ZW(a);
+ };
+ a.prototype.Du = function (a, b) {
+ var c;
+ if (0 === a)
+ (this.Vg = void 0, b < this.length && this.ZW(b));
+ else {
+ c = this.Vg;
+ c.jb > this.Fa[a - 1].jb && (b < this.length ? c.zR(this.Fa[a - 1].jb) : c.pda());
+ }
+ for (; a < b; ++a) {
+ this.ec -= this.Fa[a].da;
+ }
+ };
+ a.prototype.ML = function (a, b) {
+ void 0 === b && (b = a + 1);
+ this.iF(a, b);
+ };
+ a.prototype.bba = function (a, b) {
+ void 0 === b && (b = a + 1);
+ this.Du(a, b);
+ };
+ return a;
+ })();
+ b.SS = r;
+ d.Ve(a.dA, r);
+ d.Ve(a.$z, r);
+ }, function (d, b, a) {
+ var c;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.isa = void 0;
+ c = a(0);
+ a(5);
+ d = (function () {
+ function a(a, b) {
+ this.wc = a;
+ this.rF = b;
+ this.zu();
+ }
+ Object.defineProperties(a.prototype, {
+ length: {
+ get: function () {
+ return this.Ce;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ empty: {
+ get: function () {
+ return 0 === this.Ce;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ a.prototype.apb = function () {
+ return this.Uf && this.Uf.get(0);
+ };
+ a.prototype.leb = function () {
+ return this.mF && this.mF.get(this.mF.length - 1);
+ };
+ a.prototype.get = function (a) {
+ 0 > a && (a += this.length);
+ for (var b = 0; b < this.wc.length; ++b) {
+ if (this.Xg[b + 1] > a)
+ return this.wc[b].get(a - this.Xg[b]);
+ }
+ };
+ a.prototype.push = function (a) {
+ this.wc[this.rF(a)].push(a);
+ this.zu();
+ return this.Ce;
+ };
+ a.prototype.shift = function () {
+ var a;
+ if (this.Uf) {
+ a = this.Uf.shift();
+ this.zu();
+ return a;
+ }
+ };
+ a.prototype.pop = function () {
+ var a;
+ if (this.mF) {
+ a = this.mF.pop();
+ this.zu();
+ return a;
+ }
+ };
+ a.prototype.unshift = function (a) {
+ this.wc[this.rF(a)].unshift(a);
+ this.zu();
+ return this.Ce;
+ };
+ a.prototype.bo = function (a) {
+ var b;
+ b = this.rF(a);
+ this.wc[b].bo(a);
+ this.zu();
+ };
+ a.prototype.remove = function (a) {
+ var b;
+ b = this.wc.some(function (b) {
+ return b.remove(a);
+ });
+ b && this.zu();
+ return b;
+ };
+ a.prototype.splice = function (a, b) {
+ var n,
+ q,
+ t,
+ M;
+ for (var d, k = [], g = 2; g < arguments.length; g++) {
+ k[g - 2] = arguments[g];
+ }
+ for (var g = [], f, l = a + Math.max(0, b), r = 0; r < this.wc.length; ++r) {
+ n = this.wc[r];
+ q = this.Xg[r];
+ t = this.Xg[r + 1];
+ if (a < t) {
+ M = a - q;
+ q = Math.min(l - q, n.length);
+ void 0 === f && 0 < M && q < n.length ? Array.prototype.push.apply(g, n.splice.apply(n, c.__spread([M, q - M], k))) : (Array.prototype.push.apply(g, n.splice(M, q - M)), void 0 === f && (f = 0 < r && 0 === M ? r - 1 : r));
+ a = t;
+ if (a >= l)
+ break;
+ }
+ }
+ if (k.length && void 0 !== f) {
+ for (l = this.rF(k[0]); 0 < f && l < f && this.wc[f].empty; ) {
+ --f;
+ }
+ for (; k.length && l === f; ) {
+ this.wc[f].push(k.shift());
+ if (!k.length)
+ break;
+ l = this.rF(k[0]);
+ }
+ for (; k.length && ++f < this.wc.length && this.wc[f].empty; ) {
+ for (; k.length && l === f; ) {
+ this.wc[f].push(k.shift());
+ if (!k.length)
+ break;
+ l = this.rF(k[0]);
+ }
+ }
+ k.length && (d = this.wc[f]).splice.apply(d, c.__spread([0, 0], k));
+ }
+ this.zu();
+ return g;
+ };
+ a.prototype.find = function (a) {
+ var b,
+ c;
+ b = this;
+ return this.wc.some(function (d, h) {
+ c = d.find(b.Wx(a, h));
+ return void 0 !== c;
+ }) ? c : void 0;
+ };
+ a.prototype.findIndex = function (a) {
+ var c;
+ for (var b = 0; b < this.wc.length; ++b) {
+ c = this.wc[b].findIndex(this.Wx(a, b));
+ if (-1 !== c)
+ return c + this.Xg[b];
+ }
+ return -1;
+ };
+ a.prototype.indexOf = function (a) {
+ var c;
+ for (var b = 0; b < this.wc.length; ++b) {
+ c = this.wc[b].indexOf(a);
+ if (-1 !== c)
+ return c + this.Xg[b];
+ }
+ return -1;
+ };
+ a.prototype.map = function (a) {
+ var b,
+ c;
+ b = this;
+ c = this.wc.map(function (c, d) {
+ return c.map(b.Wx(a, d));
+ });
+ return Array.prototype.concat.apply([], c);
+ };
+ a.prototype.reduce = function (a, b) {
+ var c;
+ c = this;
+ return this.wc.reduce(function (b, d, f) {
+ return d.reduce(c.Hbb(a, f), b);
+ }, b);
+ };
+ a.prototype.forEach = function (a) {
+ var b;
+ b = this;
+ this.wc.forEach(function (c, d) {
+ c.forEach(b.Wx(a, d));
+ });
+ };
+ a.prototype.tZ = function (a) {
+ for (var b = this.wc.length - 1; 0 <= b; --b) {
+ this.wc[b].tZ(this.Wx(a, b));
+ }
+ };
+ a.prototype.some = function (a) {
+ var b;
+ b = this;
+ return this.wc.some(function (c, d) {
+ return c.some(b.Wx(a, d));
+ });
+ };
+ a.prototype.Qoa = function (a) {
+ for (var b = this.wc.length - 1; 0 <= b; --b) {
+ if (this.wc[b].Qoa(this.Wx(a, b)))
+ return !0;
+ }
+ return !1;
+ };
+ a.prototype.every = function (a) {
+ var b;
+ b = this;
+ return this.wc.every(function (c, d) {
+ return c.every(b.Wx(a, d));
+ });
+ };
+ a.prototype.Hob = function (a, b) {
+ var g,
+ l;
+ function c(b) {
+ return b.reduce(function (b, c, f, d) {
+ return void 0 === c ? b : void 0 === b ? f : 0 > a(c, d[b]) ? f : b;
+ }, void 0);
+ }
+ for (var d = this, k = this.wc.map(function () {
+ return 0;
+ }), f = this.wc.filter(function (a) {
+ return a.empty;
+ }).length; f < this.wc.length; ) {
+ g = k.map(function (a, b) {
+ return a < d.wc[b].length ? d.wc[b].get(a) : void 0;
+ });
+ l = c(g);
+ b(g[l], this.Xg[l] + k[l], this);
+ ++k[l];
+ k[l] === this.wc[l].length && ++f;
+ }
+ };
+ a.prototype.move = function (a) {
+ return this.remove(a) ? (this.bo(a), !0) : !1;
+ };
+ a.prototype.AJb = function () {
+ var a;
+ if (this.wc[1].length) {
+ a = this.wc[1].shift();
+ this.wc[0].push(a);
+ this.zu();
+ }
+ };
+ a.prototype.gob = function (a) {
+ for (var b = -1, c = 0; c < this.wc.length; ++c) {
+ if ((b = a(this.wc[c]), -1 !== b)) {
+ b += this.Xg[c];
+ break;
+ }
+ }
+ return b;
+ };
+ a.prototype.toJSON = function () {
+ return this.map(function (a) {
+ return a.toJSON();
+ });
+ };
+ a.prototype.zu = function () {
+ var b;
+ this.Ce = 0;
+ this.Xg = [0];
+ this.mF = this.Uf = void 0;
+ for (var a = 0; a < this.wc.length; ++a) {
+ b = this.wc[a];
+ this.Ce += b.length;
+ this.Xg.push(this.Xg[this.Xg.length - 1] + b.length);
+ !this.Uf && b.length && (this.Uf = b);
+ b.length && (this.mF = b);
+ }
+ };
+ a.prototype.Wx = function (a, b) {
+ var c,
+ d;
+ c = this;
+ d = this.Xg[b];
+ return function (b, f) {
+ return a(b, d + f, c);
+ };
+ };
+ a.prototype.Hbb = function (a, b) {
+ var c,
+ d;
+ c = this;
+ d = this.Xg[b];
+ return function (b, f, h) {
+ return a(b, f, d + h, c);
+ };
+ };
+ return a;
+ })();
+ b.isa = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ g,
+ r,
+ h,
+ p;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Uqa = void 0;
+ c = a(0);
+ a(5);
+ k = a(835);
+ d = a(33);
+ g = a(834);
+ r = a(110);
+ h = a(83);
+ p = a(230);
+ a = (function (a) {
+ function b(b, f) {
+ var d,
+ k;
+ k = this;
+ d = [new g.SS(b), new g.SS(b), new g.SS(b)];
+ k = a.call(this, d, function (a) {
+ return a.complete ? k.empty || a.Qa <= k.Pgb ? 0 : 1 : a.active ? 1 : 2;
+ }) || this;
+ d = c.__read(d, 3);
+ k.$d = d[0];
+ k.bd = d[1];
+ k.gs = d[2];
+ k.Ko = 0;
+ k.C$ = 0;
+ k.u = b;
+ h.yr.call(k, f);
+ return k;
+ }
+ c.__extends(b, a);
+ Object.defineProperties(b.prototype, {
+ da: {
+ get: function () {
+ return this.$d.da + this.bd.da + this.gs.da;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ SMb: {
+ get: function () {
+ return this.gs;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ active: {
+ get: function () {
+ return this.bd;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ complete: {
+ get: function () {
+ return this.$d;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ mFb: {
+ get: function () {
+ return this.Ko;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ PB: {
+ get: function () {
+ return this.$d.da;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ dk: {
+ get: function () {
+ return this.$d.da + this.bd.da - this.Ko;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ first: {
+ get: function () {
+ return this.apb();
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ $h: {
+ get: function () {
+ return this.leb();
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ afa: {
+ get: function () {
+ return !this.$d.empty || this.gs.empty || this.bd.empty ? this.first : this.bd.Qa < this.gs.Qa ? this.bd.first : this.gs.first;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ TOa: {
+ get: function () {
+ return this.gs.empty || this.bd.empty ? this.$h : this.bd.jb < this.gs.jb ? this.gs.$h : this.bd.$h;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ WJa: {
+ get: function () {
+ return this.gs.first;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ S: {
+ get: function () {
+ return this.first && this.first.S;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ Qa: {
+ get: function () {
+ return this.afa && this.afa.Qa;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ jb: {
+ get: function () {
+ return this.TOa && this.TOa.jb;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ hk: {
+ get: function () {
+ return this.first && this.first.hk;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ Ogb: {
+ get: function () {
+ return this.$d.duration;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ Cub: {
+ get: function () {
+ return this.Qb - this.ZGa || 0;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ Pgb: {
+ get: function () {
+ return this.$d.empty ? this.Qa : this.$d.jb;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ ZGa: {
+ get: function () {
+ return this.$d.empty ? this.cc : this.$d.Qb;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ $Ga: {
+ get: function () {
+ return this.$d.empty ? this.Zc : this.$d.ie;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ pCb: {
+ get: function () {
+ return this.bd.ie || this.$d.ie;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ Rt: {
+ get: function () {
+ return this.gs.length;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ Oo: {
+ get: function () {
+ return this.bd.length;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ Tgb: {
+ get: function () {
+ return this.$d.length;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ Bt: {
+ get: function () {
+ return this.$d.concat(this.bd);
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ b.prototype.iF = function (a) {
+ var b;
+ a.hs ? ++this.C$ : this.Ko += a.Qe || 0;
+ if (this.empty)
+ this.Vg = new p.cA(this, {});
+ else if (a.Qa !== this.jb)
+ if (a.Qa > this.Vg.jb)
+ this.Vg.zR(this.Vg.jb);
+ else if (a.Qa < this.Qa || a.Qa === this.Vg.jb) {
+ b = a.jb;
+ this.Hob(function (a, b) {
+ return a.Qa - b.Qa;
+ }, function (a) {
+ b = a.Qa === b ? a.jb : b;
+ });
+ b === Math.max(this.jb, a.jb) ? this.Vg.pda() : this.Vg.zR(b);
+ }
+ a.TVa(this);
+ };
+ b.prototype.Du = function (a) {
+ a.hs ? --this.C$ : this.Ko -= a.Qe;
+ this.empty ? this.Vg = void 0 : a.Qa !== this.jb && a.jb <= this.Vg.jb && a.Qa > this.Vg.Qa && this.Vg.zR(a.Qa);
+ a.HGa();
+ };
+ b.prototype.push = function (b) {
+ this.iF(b);
+ return a.prototype.push.call(this, b);
+ };
+ b.prototype.shift = function () {
+ var b;
+ b = a.prototype.shift.call(this);
+ b && this.Du(b);
+ return b;
+ };
+ b.prototype.pop = function () {
+ var b;
+ b = a.prototype.pop.call(this);
+ b && this.Du(b);
+ return b;
+ };
+ b.prototype.unshift = function (b) {
+ this.iF(b);
+ return a.prototype.unshift.call(this, b);
+ };
+ b.prototype.bo = function (b) {
+ this.iF(b);
+ a.prototype.bo.call(this, b);
+ };
+ b.prototype.remove = function (b) {
+ if (!a.prototype.remove.call(this, b))
+ return !1;
+ this.Du(b);
+ return !0;
+ };
+ b.prototype.splice = function (b, f) {
+ for (var d = [], h = 2; h < arguments.length; h++) {
+ d[h - 2] = arguments[h];
+ }
+ h = a.prototype.splice.apply(this, c.__spread([b, f], d));
+ d.forEach(this.iF.bind(this));
+ h.forEach(this.Du.bind(this));
+ return h;
+ };
+ b.prototype.EEb = function (a) {
+ var b;
+ b = this;
+ this.reduce(function (c, f, d) {
+ f.hs && (a && a(f, d, b), 0 === c.length || c[0].end !== d ? c.unshift({
+ start: d,
+ end: d + 1
+ }) : c[0].end += 1);
+ return c;
+ }, []).forEach(function (a) {
+ return b.splice(a.start, a.end - a.start);
+ });
+ };
+ b.prototype.tH = function (a) {
+ return this.gob(function (b) {
+ return b.tH(a);
+ });
+ };
+ b.prototype.NJa = function (a) {
+ a = this.tH(a);
+ return -1 !== a ? this.get(a) : void 0;
+ };
+ b.prototype.XHb = function (a) {
+ var c;
+ for (var b = []; a < this.length; ) {
+ c = this.get(a);
+ c && b.push(c);
+ a++;
+ }
+ return b;
+ };
+ b.prototype.nw = function (a) {
+ this.move(a);
+ this.nC(a);
+ };
+ b.prototype.JI = function (a) {
+ this.Ko += a.Qe - a.Pl;
+ this.oC(a);
+ };
+ b.prototype.rj = function (a) {
+ for (this.Ko += a.Qe - a.Pl; this.bd.first && this.bd.first.complete && (this.$d.empty ? this.bd.first === this.afa : this.bd.first.Qa === this.$d.jb); ) {
+ this.AJb();
+ }
+ this.Bq(a);
+ };
+ b.prototype.wQ = function (a, b, c) {
+ this.Ko -= a.Qe;
+ ++this.C$;
+ this.yZ(a, b, c);
+ };
+ return b;
+ })(k.isa);
+ b.Uqa = a;
+ d.Ve(h.yr, a, !1);
+ d.Ve(r.dA, a);
+ d.Ve(r.$z, a);
+ }, function (d, b, a) {
+ var c,
+ k,
+ g,
+ r,
+ h,
+ p;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.w_a = void 0;
+ c = a(96);
+ k = a(161);
+ g = a(19);
+ r = a(11);
+ a(5);
+ h = a(27);
+ p = a(4);
+ d = (function () {
+ var W11;
+ function a() {
+ var X11;
+ X11 = 2;
+ for (; X11 !== 1; ) {
+ switch (X11) {
+ case 2:
+ var C7E = "1SIYb";
+ C7E += "Zr";
+ C7E += "NJC";
+ C7E += "p9";
+ C7E;
+ X11 = 1;
+ break;
+ }
+ }
+ }
+ W11 = 2;
+ for (; W11 !== 13; ) {
+ switch (W11) {
+ case 4:
+ a.prototype.g8a = function (a) {
+ var c21;
+ c21 = 2;
+ for (; c21 !== 1; ) {
+ switch (c21) {
+ case 2:
+ var p7E = "on";
+ p7E += "E";
+ p7E += "n";
+ p7E += "tr";
+ p7E += "y";
+ return this.DBa(a, this.Uc.INa, p7E);
+ break;
+ }
+ }
+ };
+ a.prototype.h8a = function (a) {
+ var d21;
+ d21 = 2;
+ for (; d21 !== 1; ) {
+ switch (d21) {
+ case 2:
+ var S7E = "onEx";
+ S7E += "i";
+ S7E += "t";
+ return this.DBa(a, this.Uc.JNa, S7E);
+ break;
+ }
+ }
+ };
+ a.prototype.J7a = function (a, b, c) {
+ function f(a) {
+ var f21,
+ b,
+ c;
+ f21 = 2;
+ for (; f21 !== 4; ) {
+ switch (f21) {
+ case 2:
+ a = Math.floor(Math.min(u, a) / l.Ab);
+ (b = l.Ab * a, c = n - b);
+ return {
+ Fp: a,
+ cp: b,
+ uYb: c,
+ cRa: 0 < a && c < p / 1E3
+ };
+ break;
+ }
+ }
+ }
+ var e21,
+ d,
+ g,
+ m,
+ l,
+ p,
+ u,
+ r,
+ n,
+ q;
+ e21 = 2;
+ for (; e21 !== 12; ) {
+ switch (e21) {
+ case 2:
+ (g = this.Uc, m = !0);
+ d = !1;
+ a = k.cha(g, a);
+ (l = this.Wa, p = l.S, u = this.cp, r = b ? b.hma : this.SSa - 2 * l.Ab, n = r - this.mKa);
+ c = g.Job || c;
+ e21 = 8;
+ break;
+ case 8:
+ b && !c && (d = f(n), q = d.Fp, d = d.cRa);
+ d || (q = r - h.fa.Yka(a, p), q = new h.fa(q - this.mKa, p), b = f(g.Lg ? Infinity : Math.max(0, q.Ab)), q = b.Fp, (b = b.cRa) && 0 < q && !g.Lg && --q);
+ this.ik({
+ start: 0,
+ end: q
+ });
+ q < (g.Ezb || 1) && (m = !1);
+ e21 = 13;
+ break;
+ case 13:
+ return {
+ CJb: m,
+ Rxb: d
+ };
+ break;
+ }
+ }
+ };
+ a.prototype.qG = function (a, b, c, d, h, k) {
+ var g21,
+ f,
+ m;
+ g21 = 2;
+ for (; g21 !== 7; ) {
+ switch (g21) {
+ case 2:
+ m = this.Uc;
+ g21 = 1;
+ break;
+ case 5:
+ return {
+ U: !1
+ };
+ break;
+ case 4:
+ this.nKa ? a = a.appendBuffer(r.ys(this.QIa), r.Gm(this)) : this.Sa && !this.Rs ? (f = this.I8a(a, b, c, h, k), a = f.U, f = f.ho) : this.Sa && this.Rs ? (f = this.J8a(a, b, d, h, k), a = f.U, f = f.ho) : a = this.L === g.Na.AUDIO && m.zt && c && this.Hw && c.ie >= this.ie && this.Qb - this.Hw < this.Hw - this.cc ? !0 : a.appendBuffer(this.response, r.Gm(this));
+ this.Ei = !0;
+ this.bR();
+ g21 = 8;
+ break;
+ case 8:
+ return {
+ U: a,
+ ho: f
+ };
+ break;
+ case 1:
+ g21 = this.Ei ? 5 : 4;
+ break;
+ }
+ }
+ };
+ a.prototype.I8a = function (a, b, d, h, k) {
+ var h21,
+ f,
+ m,
+ l,
+ u;
+ h21 = 2;
+ for (; h21 !== 7; ) {
+ switch (h21) {
+ case 3:
+ var K7E = " f";
+ K7E += "ro";
+ K7E += "m ";
+ K7E += "[ ";
+ var D7E = "AseFragmentMedi";
+ D7E += "aR";
+ D7E += "equest: Fragment e";
+ D7E += "dit failed";
+ D7E += " for ";
+ var w7E = "media";
+ w7E += "|as";
+ w7E += "ejs";
+ var L7E = "M";
+ L7E += "P";
+ L7E += "4";
+ 0 >= this.duration && (u = !1, f = !0);
+ u && (this.Sa && (0 < this.Sa.start || m.Et) ? (f = new c.ix(new p.Console(L7E, w7E), this.stream, this.response), (b = f.nUa(this.Sa.start, this.zI, m.Et, m.tna)) ? (f = a.appendBuffer(r.ys(b.mg), r.Gm(this)), l = this.wW(m), this.oW(b.mg)) : (this.u.error(D7E + this.toString() + K7E + this.zy + "-" + this.BZ + "]"), f = !0)) : f = a.appendBuffer(this.response, r.Gm(this)));
+ return {
+ U: f,
+ ho: l
+ };
+ break;
+ case 2:
+ m = {
+ Et: 0
+ };
+ f = !1;
+ u = !0;
+ this.L === g.Na.AUDIO && d && (h ? k && this.Zea() : this.HBa(d) ? d.Sa && this.Sa && this.Sa.start !== d.Sa.end && this.ik({
+ start: d.Sa.end
+ }) : (m = this.g8a(b), d.ie === this.Zc && (m.Et = 0)));
+ h21 = 3;
+ break;
+ }
+ }
+ };
+ a.prototype.J8a = function (a, b, d, h, k) {
+ var i21,
+ f,
+ m,
+ l,
+ p;
+ i21 = 2;
+ for (; i21 !== 8; ) {
+ switch (i21) {
+ case 2:
+ var u5E = " from";
+ u5E += " [";
+ u5E += " ";
+ var r5E = "AseFragmentMediaRe";
+ r5E += "ques";
+ r5E += "t: Fra";
+ r5E += "gment edit failed fo";
+ r5E += "r ";
+ (f = this.Uc, l = {
+ Et: 0
+ });
+ m = !0;
+ this.L === g.Na.AUDIO && (h ? k && (this.emb(), m = 0 < this.Sa.end) : this.HBa(d) ? d.Sa && 0 !== d.Sa.start ? this.ik({
+ start: 0,
+ end: d.Sa.start
+ }) : m = !1 : (l = this.h8a(b), f.zt || (b = this.J7a(b, d, l.bKa), (m = b.CJb) && b.Rxb && !l.tna && (l.Et = 0))));
+ m && 0 === this.duration && (m = !1);
+ m ? this.Sa && this.Sa.end < this.vH || l.Et ? (m = new c.ix(this.u, this.stream, this.response), (m = m.tUa(this.Sa && this.Sa.end, this.S, l.Et, l.tna)) ? (a = a.appendBuffer(r.ys(m.mg), r.Gm(this)), p = this.wW(l), this.oW(m.mg)) : (this.u.error(r5E + this.toString() + u5E + this.zy + "-" + this.BZ + "]"), a = !0)) : a = a.appendBuffer(this.response, r.Gm(this)) : a = !0;
+ return {
+ U: a,
+ ho: p
+ };
+ break;
+ }
+ }
+ };
+ return a;
+ break;
+ case 2:
+ a.prototype.HBa = function (a) {
+ var Y11;
+ Y11 = 2;
+ for (; Y11 !== 1; ) {
+ switch (Y11) {
+ case 2:
+ return a && a.G === this.G && a.iga === this.iga ? !0 : !1;
+ break;
+ }
+ }
+ };
+ a.prototype.f8a = function (a) {
+ var Z11,
+ b,
+ c,
+ f;
+ Z11 = 2;
+ for (; Z11 !== 3; ) {
+ switch (Z11) {
+ case 2:
+ (b = this.Uc, c = void 0 !== b.Lz ? b.Lz : a && a.Lz, f = void 0 !== b.Kz ? b.Kz : a && a.Kz);
+ a = a && a.ms;
+ Array.isArray(a) && Array.isArray(b.ms) ? a = a.filter(function (a) {
+ var a21;
+ a21 = 2;
+ for (; a21 !== 1; ) {
+ switch (a21) {
+ case 2:
+ a000.o4P(4);
+ var l41 = a000.t4P(10, 11);
+ return l41 !== b.ms.indexOf(a);
+ break;
+ }
+ }
+ }) : Array.isArray(b.ms) ? a = b.ms : Array.isArray(a) || (a = []);
+ return -1 !== a.indexOf(this.profile) ? {
+ bKa: !!c,
+ KUa: !c,
+ Foa: !c || !f
+ }
+ : {
+ bKa: !1,
+ KUa: !1,
+ Foa: !f
+ };
+ break;
+ }
+ }
+ };
+ a.prototype.DBa = function (a, b, c) {
+ var b21,
+ f,
+ d,
+ h;
+ b21 = 2;
+ for (; b21 !== 14; ) {
+ switch (b21) {
+ case 2:
+ h = this.Uc;
+ a = this.f8a(a);
+ b21 = 5;
+ break;
+ case 5:
+ b21 = void 0 !== h.tP && null !== h.tP ? 4 : 6;
+ break;
+ case 4:
+ b21 = (f = (void 0 !== b ? b : h.tP) || 0, b = h.HNa && h.HNa[this.stream.profile]) ? 3 : 9;
+ break;
+ case 9:
+ a.Et = a.Foa ? void 0 !== f ? f : 1 : 0;
+ a.tna = void 0 !== d ? d : a.KUa;
+ return a;
+ break;
+ case 3:
+ var f5E = "d";
+ f5E += "efa";
+ f5E += "u";
+ f5E += "l";
+ f5E += "t";
+ var n5E = "defa";
+ n5E += "ul";
+ n5E += "t";
+ (d = b.name, f = void 0 !== b[c] ? b[c] : void 0 !== b[n5E] ? b[f5E] : f);
+ b21 = 9;
+ break;
+ case 6:
+ a.Foa = !1;
+ b21 = 9;
+ break;
+ }
+ }
+ };
+ W11 = 4;
+ break;
+ }
+ }
+ })();
+ b.w_a = d;
+ b["default"] = new d();
+ }, function (d, b, a) {
+ var c,
+ k,
+ g,
+ r,
+ h,
+ p,
+ m,
+ f,
+ u;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Rqa = void 0;
+ c = a(0);
+ k = a(19);
+ g = a(96);
+ d = a(4);
+ r = a(11);
+ h = a(5);
+ p = a(218);
+ m = a(73);
+ f = a(229);
+ u = d.wk;
+ a = (function (a) {
+ function b(b, c, d, h, g, l, p) {
+ var r,
+ n;
+ h = a.call(this, b, d, h, l, p) || this;
+ g = m.Rh.prototype.toString.call(h) + (g ? "(cache)" : "");
+ r = {
+ offset: d.offset,
+ da: d.Vka + 8,
+ responseType: 0
+ };
+ h.push(new f.pK(b, c, g + "(moof)", r, h, l, p));
+ r = {
+ offset: d.offset + r.da,
+ da: d.da - r.da,
+ responseType: u.gc && !u.gc.lJ.MA ? 0 : 1
+ };
+ if (h.L === k.Na.VIDEO && h.Sa) {
+ if (0 < h.Sa.start) {
+ if (n = h.PJa(h.Sa.start))
+ (r.offset = d.offset + n, r.da = d.da - n);
+ } else
+ h.Sa.end < h.vH && (n = h.PJa(h.Sa.end)) && (r.da -= d.da - n);
+ }
+ h.push(new f.pK(b, c, g + "(mdat)", r, h, l, p));
+ return h;
+ }
+ c.__extends(b, a);
+ b.prototype.qG = function (a) {
+ var b,
+ c,
+ f,
+ d,
+ k;
+ if (this.Ei)
+ return {
+ U: !0
+ };
+ if (!this.EC())
+ return {
+ U: !1
+ };
+ c = !1;
+ if (this.nKa)
+ (c = a.appendBuffer(r.ys(this.QIa), r.Gm(this)), f = this.Iyb);
+ else {
+ f = this.ta[0].response;
+ d = f.slice(0, f.byteLength - 8);
+ k = new DataView(f);
+ f = k.getUint32(d.byteLength);
+ h.assert("mdat" === g.Ax(k.getUint32(d.byteLength + 4)));
+ if (this.Sa && 0 < this.Sa.start) {
+ b = new g.ix(this.u, this.stream, d);
+ if (b = b.nUa(this.Sa.start, this.S))
+ (c = a.appendBuffer(r.ys(b.mg), r.Gm(this)), f -= b.jr, this.oW(b.mg, f));
+ b = this.wW();
+ } else if (this.Sa && this.Sa.end < this.vH) {
+ b = new g.ix(this.u, this.stream, d);
+ if (b = b.tUa(this.Sa.end, this.S))
+ (c = a.appendBuffer(r.ys(b.mg), r.Gm(this)), f -= b.jr, this.oW(b.mg, f));
+ b = this.wW();
+ } else
+ c = a.appendBuffer(d, r.Gm(this));
+ }
+ c && (c = a.appendBuffer(g.PP(f - 8), r.Gm(this))) && (c = a.appendBuffer(this.ta[1].response, r.Gm(this)));
+ this.Ei = c;
+ this.XFb();
+ return {
+ U: c,
+ ho: b
+ };
+ };
+ return b;
+ })(p.Zz);
+ b.Rqa = a;
+ }, function (d, b, a) {
+ var c,
+ k,
+ g,
+ r,
+ h,
+ p,
+ m,
+ f,
+ u,
+ n,
+ q,
+ t,
+ C;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.jza = void 0;
+ c = a(0);
+ k = a(219);
+ g = a(836);
+ r = a(833);
+ h = a(832);
+ d = a(83);
+ p = a(831);
+ m = a(5);
+ f = a(8);
+ u = a(4);
+ n = a(221);
+ q = a(11);
+ t = a(109);
+ C = u.Promise;
+ a = (function (a) {
+ function b(b, c, f, d, h, k, g) {
+ var m;
+ m = a.call(this, b) || this;
+ m.K = c;
+ m.u = f;
+ m.An = d;
+ m.Lc = h;
+ m.De = k;
+ m.QYa = !0;
+ m.Ai = new n.WS(m.u);
+ m.jf = m.u.error.bind(m.u);
+ m.ib = m.u.warn.bind(m.u);
+ m.Kj = m.u.trace.bind(m.u);
+ m.DDa();
+ m.cs = null === g || void 0 === g ? void 0 : g.eY(function () {
+ return m.FGb();
+ });
+ return m;
+ }
+ c.__extends(b, a);
+ Object.defineProperties(b.prototype, {
+ console: {
+ get: function () {
+ return this.u;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ L: {
+ get: function () {
+ return this.De;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ Gc: {
+ get: function () {
+ return this.Lc;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ Ht: {
+ get: function () {
+ return 0 < this.yz;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ Voa: {
+ get: function () {
+ return !this.AF;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ yz: {
+ get: function () {
+ return this.ta.length;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ Rt: {
+ get: function () {
+ return this.ta.Rt;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ QEb: {
+ get: function () {
+ return this.Ai.count;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ xs: {
+ get: function () {
+ return this.ta.complete.mt;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ rq: {
+ get: function () {
+ return this.ta.$Ga;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ Cda: {
+ get: function () {
+ return this.ta.ZGa;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ Sl: {
+ get: function () {
+ return void 0 === this.ta.Zc ? 0 : this.ta.ie - this.ta.Zc;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ Zo: {
+ get: function () {
+ return {
+ da: this.ta.PB,
+ qa: Math.max(this.ta.$Ga - this.ta.Zc, 0) || 0
+ };
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ IG: {
+ get: function () {
+ return this.ta.Ogb;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ PB: {
+ get: function () {
+ return this.ta.PB;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ Zx: {
+ get: function () {
+ return this.ta.da;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ qw: {
+ get: function () {
+ return this.h9a();
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ Pla: {
+ get: function () {
+ return this.ta.Cub;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ D_: {
+ get: function () {
+ return this.ta.length > this.ta.Rt;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ Oo: {
+ get: function () {
+ return this.ta.Oo;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ xSa: {
+ get: function () {
+ return this.ta.length - this.Jj;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ $: {
+ get: function () {
+ return this.ta;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ b.prototype.Eg = function () {
+ var a;
+ this.ta.forEach(function (a) {
+ a.abort();
+ a.yc();
+ });
+ this.DDa();
+ this.Ai.ZY();
+ null === (a = this.cs) || void 0 === a ? void 0 : a.ic();
+ };
+ b.prototype.reset = function () {
+ this.Eg();
+ this.Ai.sna();
+ };
+ b.prototype.close = function () {
+ this.Ai.ZY();
+ };
+ b.prototype.AIb = function () {
+ this.pBa = !0;
+ };
+ b.prototype.oha = function () {
+ return {
+ hasSentinel: void 0 !== this.Ai.count,
+ queueCount: this.Ai.count,
+ isComplete: this.Ai.Mv,
+ itemCount: this.Ai.aHa,
+ continuousEndPts: this.Ai.bn().reduce(function (a, b) {
+ return b && !b.done && (b = b.value, 100 > Math.abs(b.iga - a) || -1 === a) ? b.Oob : a;
+ }, -1),
+ sentinelItemCount: this.Ai.bn().filter(function (a) {
+ return a && a.done;
+ }).length,
+ processedCount: this.Ai.dlb,
+ rc: this.yz
+ };
+ };
+ b.prototype.Sjb = function (a, b, c, d) {
+ var g,
+ l,
+ n;
+ g = this.K;
+ f.X(d) || (b.location = d.location, b.Ob = d.Ac, b.koa = d.Ip);
+ l = a.O.FR;
+ if (l) {
+ n = 0 === this.De && g.ymb || 1 === this.De && g.zmb;
+ b.F3 = l.Mn({
+ pN: a.zm(this.De),
+ F1: g.Kmb ? g.F1 : void 0,
+ HXa: String(u.time.ea()),
+ cY: n ? a.O.Uq[this.De] : void 0
+ });
+ }
+ m.assert(!b.hp);
+ g.Jmb ? a = new h.Zqa(d, g, c.track, b, this.ta, this.u) : d.O.$Ia(this.De) ? (a = new r.Vqa(d, g, c.track, b, this.ta, !1, this.u), g.VY && 0 < a.MLb && (b = new p.ira(d, g, c.track, b, this.ta, !1, this.u), b.Eb(this), b.ft())) : a = k.TS.create(d, g, c.track, b, this.ta, !1, this.u);
+ a.Eb(this);
+ this.oG(a);
+ return a;
+ };
+ b.prototype.Ocb = function (a) {
+ var b;
+ a.Eb(this);
+ a.Wba = !0;
+ this.oG(a);
+ b = C.resolve();
+ a.complete ? (this.S$(a), this.An.rRa(a.stream, a.Zc, a.cc), b = this.oS(), this.Bq(a)) : (a.active && this.nC(a), a.dUa && this.yy(a));
+ return b;
+ };
+ b.prototype.oG = function (a) {
+ var b,
+ c;
+ this.ta.bo(a);
+ (null === (b = this.cs) || void 0 === b ? void 0 : b.state) === t.Zp.complete && (null === (c = this.cs) || void 0 === c ? void 0 : c.Dp());
+ this.S$(a);
+ a.Rs && (this.AF = !1);
+ };
+ b.prototype.ZO = function () {
+ return this.Ai.xpb();
+ };
+ b.prototype.zGa = function () {
+ this.Jj === this.ta.length && this.pBa && this.Ai.ZY();
+ };
+ b.prototype.oS = function () {
+ var a,
+ b,
+ c,
+ d,
+ m;
+ a = this;
+ c = C.resolve();
+ d = this.Lc;
+ if (!d.NNa(this.De) || this.Jj === this.ta.length)
+ return c;
+ for (var h = this.K.Cyb, k = 0, g = []; this.Jj < this.ta.length; ) {
+ if (b = this.ta.get(this.Jj)) {
+ if (this.ta.WJa && this.ta.WJa.Qa < b.Qa)
+ break;
+ if (!b.EC())
+ break;
+ g.push(b);
+ ++k;
+ f.na(this.Zc) || (this.Zc = b.Zc);
+ }
+ ++this.Jj;
+ if (!f.X(h) && k >= h)
+ break;
+ }
+ if (g.length) {
+ void 0 !== this.Ai.count && (this.jf("Request Manager count"), this.Ai.sna());
+ if (this.QYa)
+ c = C.all(g.map(function (b) {
+ return a.Ai.enqueue(b).then(function () {
+ return a.u_(b);
+ });
+ }));
+ else
+ for (b = 0; b < g.length; b++) {
+ try {
+ m = g[b];
+ d.Jrb(this.L).Clb(m);
+ this.u_(m);
+ } catch (ia) {
+ return (this.Jj -= g.length - b, C.reject(ia));
+ }
+ }
+ this.zGa();
+ }
+ return c;
+ };
+ b.prototype.u_ = function (a) {
+ this.gKa(a);
+ };
+ b.prototype.jFb = function (a) {
+ var d;
+ for (var b, c = 0; c < this.ta.length; ++c) {
+ d = this.ta.get(c);
+ d && a < d.ie && (f.X(b) && (b = c), d.Ei = !1);
+ }
+ f.X(b) || (this.Jj = b, this.Ai.sna());
+ return this.oS();
+ };
+ b.prototype.NM = function (a, b) {
+ var c,
+ d,
+ h;
+ c = this;
+ d = [];
+ if (0 !== this.ta.Rt) {
+ h = this.ta.pCb;
+ this.ta.SMb.Qoa(function (b) {
+ if (!f.X(a) && b.O.Za !== a || b.Rs || h > b.Zc)
+ return !0;
+ b.qZ && (c.AF = !1);
+ if (!c.B$(b))
+ return (c.ib("request abort failed:", b.toString()), !0);
+ d.unshift(b);
+ });
+ this.sDa();
+ d.length && "function" === typeof b && b(d);
+ }
+ };
+ b.prototype.S2 = function () {
+ this.sDa();
+ };
+ b.prototype.FGb = function () {
+ var a,
+ b,
+ f,
+ d,
+ h;
+ return c.__generator(this, function (c) {
+ switch (c.label) {
+ case 0:
+ c.label = 1;
+ case 1:
+ if (!this.ta.length)
+ return [3, 3];
+ a = this.ta.get(0);
+ b = q.fa.Jd(null !== (h = null === (d = this.K.JR) || void 0 === d ? void 0 : d.qa) && void 0 !== h ? h : 0);
+ f = b.add(a.mt);
+ return [4, t.Rr.HS(f)];
+ case 2:
+ return (c.Bt(), m.assert(a === this.ta.get(0)), a.Ei || this.B$(a), this.ta.splice(0, 1), 0 < this.Jj && this.Jj--, this.An.L1(), [3, 1]);
+ case 3:
+ return [2];
+ }
+ });
+ };
+ b.prototype.PQ = function (a, b) {
+ var c,
+ f,
+ d,
+ h,
+ k;
+ c = this;
+ f = this.K;
+ d = !1;
+ h = 0;
+ k = this.ta.some(function (k) {
+ if (a < k.ie)
+ return (d && c.S$(k), !0);
+ ++h;
+ k.Ei || (c.ib("pruning unappended request:", k && k.toString()), f.ah && c.An.Qk("prune pts:" + a + " unappended request:" + (k && k.toString())), k.qZ && (c.AF = !1, d = !0), c.B$(k, b) || c.jf("MediaRequest.abort error:", k.Dh));
+ });
+ 0 < h && (this.ta.splice(0, h), this.Jj -= Math.min(h, this.Jj), this.An.L1());
+ return k;
+ };
+ b.prototype.f_ = function (a) {
+ var b,
+ c,
+ d;
+ void 0 === a && (a = {
+ GN: null,
+ VI: null,
+ Zc: null,
+ dk: 0,
+ ki: 0,
+ $: []
+ });
+ b = this.K;
+ c = this.ta;
+ f.na(c.Zc) && (null === a.Zc || c.Zc < a.Zc) && (a.Zc = c.Zc);
+ d = this.rq;
+ void 0 !== d && null === a.GN && (a.GN = d);
+ d = c.ie;
+ void 0 !== d && (null === a.VI || d > a.VI) && (a.VI = d);
+ a.dk += c.dk;
+ a.ki = b.Hoa ? a.ki + c.mFb : a.ki + c.PB;
+ Array.prototype.unshift.apply(a.$, c.Bt.$);
+ return a;
+ };
+ b.prototype.zq = function (a) {
+ if (this.ta.length && (a = this.ta.NJa(a)))
+ return a;
+ };
+ b.prototype.Op = function () {
+ var a,
+ b;
+ a = this;
+ b = [];
+ this.ta.forEach(function (c) {
+ var f;
+ f = c.u4();
+ 1 === f ? b.push(c) : 2 === f && a.Gc.O.oh("swapUrl failure");
+ });
+ return b;
+ };
+ b.prototype.Vl = function (a) {
+ return this.K.dJ ? (this.Ai.clear(), this.jFb(a)) : C.resolve();
+ };
+ b.prototype.II = function (a) {
+ a.Qy && a.EC() && this.oS();
+ this.yy(a);
+ };
+ b.prototype.rj = function (a) {
+ a.Qy && !a.Ei && this.oS();
+ this.Bq(a);
+ };
+ b.prototype.cca = function (a) {
+ var b,
+ c,
+ f;
+ b = 1 === this.De ? "v_" : "a_";
+ c = this.ta;
+ f = c.tH(a);
+ a = 0 <= f ? c.get(f) : void 0;
+ return (c = 0 <= f && f + 1 < c.length ? c.get(f + 1) : void 0) && a ? a.ie !== c.Zc ? b + "rg" : a.complete && c.complete ? b + "uk" : b + "fd" : b + "rm";
+ };
+ b.prototype.h9a = function () {
+ return this.ta.Oo + this.ta.Rt;
+ };
+ b.prototype.DDa = function () {
+ var a,
+ b;
+ b = void 0 !== this.ta && 0 < this.ta.length;
+ this.ta = new g.Uqa(this.u, this);
+ this.Jj = 0;
+ this.Ai.clear();
+ this.Zc = null;
+ null === (a = this.cs) || void 0 === a ? void 0 : a.Dp();
+ this.pBa = this.AF = !1;
+ b && this.An.L1();
+ };
+ b.prototype.S$ = function (a) {
+ this.AF ? a.qZ = !1 : this.AF = a.qZ = !0;
+ };
+ b.prototype.B$ = function (a, b) {
+ if (!a.abort())
+ return !1;
+ "function" === typeof b && b(a);
+ return !0;
+ };
+ b.prototype.sDa = function () {
+ var a,
+ b,
+ c;
+ a = this;
+ if (0 !== this.ta.length) {
+ c = 0;
+ this.ta.EEb(function (b, f) {
+ f < a.Jj && ++c;
+ });
+ this.Jj -= c;
+ null === (b = this.cs) || void 0 === b ? void 0 : b.Dp();
+ this.An.L1();
+ }
+ };
+ return b;
+ })(d.yr);
+ b.jza = a;
+ }, function (d, b, a) {
+ var c,
+ k,
+ g,
+ r,
+ h;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.$xa = void 0;
+ c = a(19);
+ k = a(11);
+ g = a(27);
+ r = a(95);
+ h = a(4);
+ d = (function () {
+ function a(a, b, c, d, h) {
+ this.kt = a;
+ this.Bs = b;
+ this.K = c;
+ this.u = d;
+ this.De = h;
+ }
+ a.prototype.DAb = function (a) {
+ a = {
+ type: "requestCreated",
+ request: a
+ };
+ k.Ka(this.Bs, a.type, a);
+ };
+ a.prototype.CAb = function (a) {
+ var b;
+ b = a.Ja.Gc.aa;
+ a = {
+ type: "updateStreamingPts",
+ mediaType: a.L,
+ position: {
+ Ha: b.id,
+ offset: g.fa.Jd(this.kt.Cda - b.T)
+ },
+ completePlayerStreamingTimestamp: g.fa.Jd(this.kt.rq),
+ trackIndex: a.stream.track.tB
+ };
+ k.Ka(this.Bs, a.type, a);
+ };
+ a.prototype.rRa = function (a, b, c) {
+ var f,
+ d;
+ f = this.De;
+ d = this.kt.ag;
+ d.UVa(a);
+ 1 === f && this.K.e3 && (void 0 === d.xja ? d.WVa(h.time.ea()) : h.time.ea() - d.xja > this.K.e3 && (a.R !== d.ROa && (h.storage.set("vb", a.R), d.gJb(a.R)), d.WVa(h.time.ea())));
+ d.zP && d.zP === a || (this.kt.Gw.GKb(b, d.zP, a), d.WIb(a), b = 0, a.qb && a.qb.Dd && a.qb.Ia && (b = a.qb.Ia.Ca), d = {
+ Ha: this.kt.Gc.aa.id,
+ offset: g.fa.Jd(c - this.kt.Gc.aa.T)
+ }, a = {
+ type: "streamSelected",
+ nativetime: h.time.ea(),
+ mediaType: f,
+ streamId: a.id,
+ manifestIndex: a.O.Za,
+ trackIndex: a.track.tB,
+ streamIndex: a.ug,
+ movieTime: c,
+ bandwidth: b,
+ longtermBw: b,
+ rebuffer: 0,
+ position: d
+ }, k.Ka(this.Bs, a.type, a));
+ };
+ a.prototype.yAb = function (a, b, d) {
+ var f,
+ h,
+ g,
+ m,
+ l;
+ f = b.O;
+ h = f.Kl;
+ g = this.kt.ag;
+ m = f.Zvb(b);
+ l = m.hja;
+ m = m.$vb;
+ d && b.Ac && !g.BP ? (m = c.Rg.mu, b.Ip = c.Rg.name[m], this.qRa(f.Za, a, b.Ac, b.Ip, b.location, b.R), g.BP = b.Ac) : !d && b.Ac && b.Ac !== g.BP && (m = m ? void 0 === g.BP ? c.Rg.mu : h.tJ === c.Rg.u8 ? c.Rg.u6a : c.Rg.Z4 : c.Rg.t6a, b.Ip = c.Rg.name[m], this.qRa(f.Za, a, b.Ac, b.Ip, b.location, b.R), g.BP = b.Ac);
+ g.bI || (m = {
+ type: "logdata",
+ target: "startplay",
+ fields: {}
+ }, this.De === c.Na.AUDIO ? m.fields.alocid = b.location : this.De === c.Na.VIDEO && (m.fields.locid = b.location), k.Ka(this.Bs, m.type, m));
+ d && b.location && !g.bI ? (m = c.Rg.mu, b.Ip = c.Rg.name[m], this.oRa(f.Za, a, b.location, b.Mja, b.Ac, b.MD, b.Ip, b.pt), g.bI = b.location) : !d && b.location && b.location !== g.bI && (m = l ? void 0 === g.bI ? c.Rg.mu : h.tJ === c.Rg.u8 ? c.Rg.$3a : c.Rg.Z4 : c.Rg.Z3a, b.Ip = c.Rg.name[m], this.oRa(f.Za, a, b.location, b.Mja, b.Ac, b.MD, b.Ip, b.pt), b.pt = void 0, g.bI = b.location);
+ this.K.er || (b.OOa = b.location, b.POa = b.Ac);
+ };
+ a.prototype.L1 = function () {
+ var a;
+ a = {
+ type: "requestsPruned"
+ };
+ k.Ka(this.Bs, a.type, a);
+ };
+ a.prototype.qRa = function (a, b, d, h, g, l) {
+ var f,
+ m;
+ f = this.De === c.Na.VIDEO ? "video" : "audio";
+ m = r.Lf().get();
+ a = {
+ type: "serverSwitch",
+ manifestIndex: a,
+ segmentId: b,
+ mediatype: f,
+ server: d,
+ reason: h,
+ location: g,
+ bitrate: l,
+ confidence: m.Dd
+ };
+ m.Dd && (a.throughput = m.Ia.Ca);
+ this.kt.ag.BP && (a.oldserver = d);
+ k.Ka(this.Bs, a.type, a);
+ };
+ a.prototype.oRa = function (a, b, d, h, g, l, p, r) {
+ k.Ka(this.Bs, "locationSelected", {
+ type: "locationSelected",
+ manifestIndex: a,
+ segmentId: b,
+ mediatype: this.De === c.Na.VIDEO ? "video" : "audio",
+ location: d,
+ locationlv: h,
+ serverid: g,
+ servername: l,
+ selreason: p,
+ seldetail: r
+ });
+ };
+ a.prototype.Raa = function (a, b) {
+ b = {
+ type: "lastSegmentPts",
+ segmentId: a.id,
+ pts: Math.floor(b)
+ };
+ a.pz || k.Ka(this.Bs, b.type, b);
+ };
+ a.prototype.Qk = function (a) {
+ a = {
+ type: "managerdebugevent",
+ message: "@" + h.time.ea() + ", " + a
+ };
+ k.Ka(this.Bs, a.type, a);
+ };
+ return a;
+ })();
+ b.$xa = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ g,
+ r,
+ h,
+ p,
+ m,
+ f,
+ u,
+ n,
+ q,
+ t,
+ C,
+ M,
+ H,
+ G,
+ T,
+ S,
+ z,
+ Z,
+ B,
+ V,
+ E,
+ ia,
+ Y,
+ N,
+ X;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.ara = void 0;
+ c = a(0);
+ k = a(18);
+ g = a(393);
+ r = a(16);
+ h = a(11);
+ p = a(392);
+ m = a(813);
+ f = a(4);
+ u = a(5);
+ n = a(160);
+ q = a(811);
+ t = a(45);
+ C = a(109);
+ M = a(159);
+ H = a(798);
+ G = a(394);
+ T = a(797);
+ S = a(794);
+ z = a(793);
+ Z = a(791);
+ B = a(789);
+ V = a(788);
+ E = a(787);
+ ia = a(786);
+ Y = a(785);
+ N = a(784);
+ X = a(783);
+ d = (function () {
+ function a(a, b, c, d, l, p, u, r) {
+ var n;
+ n = this;
+ this.u = a;
+ this.je = b;
+ this.aX = c;
+ this.config = d;
+ this.X8a = p;
+ this.vs = u;
+ this.rgb = r;
+ this.RBa = !1;
+ this.gd = g.Qw.CLOSED;
+ this.naa = !0;
+ this.Hca = new k.Wi();
+ this.kqa = [];
+ this.navigator = new z.Aya(b);
+ this.ctb = Z.lHa(this.navigator, d.tDb);
+ this.xc = new B.uya();
+ this.Nha = new T.eua(this.config, h.fa.Jd(this.config.Y0), {
+ parent: this.wsb.bind(this)
+ });
+ this.events = new k.EventEmitter();
+ this.QWa = new m.cAa(a, this.events);
+ this.Wo = new V.Hra(a, d, this.events);
+ this.fR = [];
+ this.xYa({
+ Q_: d.Vs || Infinity
+ });
+ this.console = new f.Console("ASEJS_PLAYGRAPH", "asejs");
+ this.Y = new q.aya(this);
+ this.rD = new C.V9(this.Y.Aa);
+ this.SFa = new Y.Bra(this.rD, h.fa.Jd(d.gz), this.PD.bind(this));
+ this.TO = function (a) {
+ var b;
+ a = l(a);
+ b = a.O;
+ n.kqa.push(a.Mwb);
+ return b;
+ };
+ }
+ Object.defineProperties(a.prototype, {
+ state: {
+ get: function () {
+ return this.gd;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ weight: {
+ get: function () {
+ return this.aX;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ kk: {
+ get: function () {
+ var a,
+ b;
+ u.assert(this.RBa, "AsePlaygraph.startTimestamp accessed before seekStreaming");
+ b = null === (a = this.cG) || void 0 === a ? void 0 : a.position;
+ return b ? this.cP(b).JN : void 0;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ qm: {
+ get: function () {
+ return this.Wo.state;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ oz: {
+ get: function () {
+ return this.Wo.oz;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ a.prototype.open = function () {
+ this.naa = !0;
+ if (this.gd !== g.Qw.CLOSED)
+ return !1;
+ this.gd = g.Qw.OPEN;
+ return !0;
+ };
+ a.prototype.ic = function () {
+ this.gd !== g.Qw.CLOSED && (this.Eg(), this.kqa.forEach(function (a) {
+ return a.release();
+ }), this.kqa = [], this.gd = g.Qw.CLOSED);
+ };
+ a.prototype.C3 = function (a, b) {
+ var c,
+ f,
+ d;
+ c = this;
+ this.tFa = a;
+ this.kZa = b;
+ b = E.uJa(this.xc, this.rVa.bind(this));
+ a = b.Sfb;
+ b = b.Qeb;
+ if (0 === a.length)
+ return !0;
+ if (1 !== a.length || 0 !== a[0])
+ return !1;
+ f = this.Y.position;
+ this.Y.pause(a);
+ a.forEach(function (a) {
+ return c.Y.hR(a);
+ });
+ d = this.cP(f).JN;
+ b.forEach(function (a) {
+ var b;
+ b = a.Gc;
+ b.C3(a.Ph, f.Ha === b.aa.id ? d : void 0);
+ });
+ this.Wo.JBb(f);
+ this.Y.resume(a);
+ return !0;
+ };
+ a.prototype.QN = function (a) {
+ return M.QN(this.config, a);
+ };
+ a.prototype.RN = function (a) {
+ return M.RN(this.config, a);
+ };
+ a.prototype.PD = function () {};
+ a.prototype.iJb = function (a, b) {
+ this.tca = a;
+ this.gK = b;
+ };
+ a.prototype.nVa = function (a) {
+ G.xOa(this.je, a) ? (a = this.dVa(a), void 0 === a ? this.oh("Invalid seekPosition") : void 0 === this.tFa || void 0 === this.kZa ? this.oh("No track selectors available") : (this.Eg(), this.vgb(), this.cG = {
+ position: a,
+ Ry: !1
+ }, this.RBa = !0, this.Wo.BBb(), a = this.navigator.Gh(a.Ha), a = this.TO(a.ma), a.qQ(), this.tFb(a), this.aR())) : this.oh("Invalid seekPosition");
+ };
+ a.prototype.Eg = function () {
+ var a;
+ this.xc.reset();
+ this.fR.forEach(function (a) {
+ return n.xo.Lf.hO(a);
+ });
+ this.fR = [];
+ this.rD.ic();
+ this.Y.reset();
+ this.cG = void 0;
+ null === (a = this.Hca) || void 0 === a ? void 0 : a.clear();
+ };
+ a.prototype.Rk = function (a) {
+ var b;
+ b = this.navigator.Gh(a.Ha);
+ b = this.TO(b.ma);
+ b.Rk();
+ b.qQ();
+ this.Wo.Rk(a);
+ this.vs();
+ };
+ a.prototype.Jdb = function (a) {
+ this.Kdb(a);
+ };
+ a.prototype.Kdb = function (a) {
+ this.Y.Gpa(a) ? (this.Y = a, this.rD.lFa(this.Y.Aa)) : this.oh("player in use");
+ };
+ a.prototype.cP = function (a) {
+ var b;
+ b = this.navigator.Gh(a.Ha);
+ a = b.kk.add(a.offset);
+ return {
+ ma: b.ma,
+ JN: a
+ };
+ };
+ a.prototype.ar = function (a) {
+ return this.Y.ar(a);
+ };
+ a.prototype.Mha = function (a) {
+ return this.Y.Mha(a);
+ };
+ a.prototype.dVa = function (a) {
+ var b;
+ b = this.je.Ya[a.Ha];
+ if (void 0 !== b)
+ return null === b.jg || void 0 === b.jg ? {
+ Ha: a.Ha,
+ offset: h.fa.max(h.fa.Cc, a.offset)
+ }
+ : {
+ Ha: a.Ha,
+ offset: h.fa.max(h.fa.Cc, h.fa.min(a.offset, h.fa.Jd(b.jg - b.yf)))
+ };
+ };
+ a.prototype.xm = function (a, b) {
+ return this.X8a(this.je.Ya[a].ma, b);
+ };
+ a.prototype.zm = function (a) {
+ var b,
+ c;
+ this.xc.forEach(function (a) {
+ var f;
+ if (!a.wB || a.aa.or) {
+ f = a.cMa(0);
+ a = a.cMa(1);
+ if (!b || f < b)
+ b = f;
+ if (!c || a < c)
+ c = a;
+ }
+ });
+ return {
+ OXa: b ? b - a.qa : 0,
+ PXa: c ? c - a.qa : 0
+ };
+ };
+ a.prototype.$O = function () {
+ var a,
+ b;
+ a = this;
+ if (this.Dm() || N.jOa({
+ xc: this.xc,
+ oN: this.oN
+ }))
+ return [];
+ b = H.nQa(X.iOa.bind(void 0, this.xc, this.config));
+ return this.xc.reduce(function (f, d) {
+ var h,
+ k;
+ try {
+ for (var g = c.__values(d.irb().filter(function (a) {
+ return !b(a.L);
+ })), m = g.next(); !m.done; m = g.next()) {
+ f.push(a.Wjb(m.value));
+ }
+ } catch (Ua) {
+ h = {
+ error: Ua
+ };
+ }
+ finally {
+ try {
+ m && !m.done && (k = g["return"]) && k.call(g);
+ }
+ finally {
+ if (h)
+ throw h.error;
+ }
+ }
+ return f;
+ }, []);
+ };
+ a.prototype.jsb = function (a) {
+ if (a = c.__read(this.xc.JO(a), 1)[0])
+ return ia.Gza.Wsb(a);
+ };
+ a.prototype.wsb = function (a) {
+ var b,
+ c;
+ c = a.L;
+ return null === (b = a.Gc.parent) || void 0 === b ? void 0 : b.bha(c);
+ };
+ a.prototype.oh = function (a, b, c, f, d, h) {
+ this.QWa.oh(a, b, c, f, d, h);
+ };
+ a.prototype.xYa = function (a) {
+ this.oN = a;
+ };
+ a.prototype.Dm = function () {
+ return this.QWa.Dm();
+ };
+ a.prototype.zNb = function (a) {
+ a !== this.weight && (this.aX = a);
+ };
+ a.prototype.Zbb = function (a) {
+ var b;
+ if (null === (b = this.cG) || void 0 === b || !b.Ry)
+ if (void 0 !== a.Cl)
+ this.UJa(a);
+ else
+ this.Hca.on(a.events, "branchNormalized", this.UJa.bind(this, a));
+ this.SFa.kMb(a);
+ this.Y.sfa(a);
+ };
+ a.prototype.UJa = function (a) {
+ u.assert(a.Cl);
+ this.cG = {
+ position: {
+ Ha: a.aa.id,
+ offset: a.Cl.Ib(a.aa.kk)
+ },
+ Ry: !0
+ };
+ this.Wo.FIb(this.cG.position, a.Ph.filter(function (a) {
+ return 0 === a.L;
+ })[0]);
+ };
+ a.prototype.vgb = function () {
+ var a;
+ this.SFa.reset();
+ this.Y.GG();
+ this.cG = void 0;
+ null === (a = this.Hca) || void 0 === a ? void 0 : a.clear();
+ };
+ a.prototype.tmb = function (a, b) {
+ this.events.emit("streamSelection", {
+ type: "streamSelection",
+ mediaType: a.L,
+ selDiscBw: null === b || void 0 === b ? void 0 : b.tR,
+ histAge: null === b || void 0 === b ? void 0 : b.Kk
+ });
+ };
+ a.prototype.Wjb = function (a) {
+ var b;
+ b = this;
+ return {
+ qm: this.qm.value,
+ xs: a.xs,
+ Lp: a.Lp,
+ Xf: this.Xf,
+ DOa: function () {
+ var c,
+ f,
+ d,
+ h,
+ k,
+ g;
+ f = a.L;
+ d = b.Nha.ZHb(b.qm.value, b.Xf, b.Y.playbackRate, a, 0 === f ? b.tca : b.gK);
+ h = d.stream;
+ k = d.LR;
+ d = d.aIb;
+ if (!h)
+ return !1;
+ b.tmb(h, d);
+ g = 1;
+ if (null === (c = a.Gc) || void 0 === c ? 0 : c.Ph.every(function (a) {
+ return 0 === a.L;
+ }))
+ g = 0;
+ b.Wo.Ih && f === g && b.Wo.QIb(a.Gw.uJ, h.R, d);
+ b.zJ(k);
+ (c = a.HMb(h, b.fR[f])) && b.naa && (b.zk("firstDriveStreaming"), b.naa = !1);
+ return c;
+ }
+ };
+ };
+ a.prototype.zJ = function (a) {
+ var b;
+ b = this;
+ a.forEach(function (a) {
+ a.O.JIb(a, function () {
+ var a,
+ c,
+ f;
+ a = b.Wo.state.value;
+ c = b.Xf;
+ f = c.add(h.fa.Jd(b.config.$P));
+ return {
+ qm: a,
+ xs: f,
+ Lp: f,
+ Xf: c
+ };
+ });
+ });
+ };
+ Object.defineProperties(a.prototype, {
+ Xf: {
+ get: function () {
+ return this.Y.Xf;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ a.prototype.aR = function () {
+ var a,
+ b,
+ c,
+ f;
+ a = this;
+ b = this.Y.position;
+ c = this.navigator.Gh(b.Ha);
+ f = this.Xpb();
+ c = S.aR(this.navigator, this.ctb, c, f, h.fa.Jd(this.config.Oeb));
+ c = this.xc.XMb(c, function (c, f) {
+ var d;
+ d = a.navigator.Gh(c);
+ c = c === b.Ha ? d.kk.add(b.offset) : d.kk;
+ return a.ajb(d, c, f);
+ });
+ f = c.kX;
+ c.ena.forEach(function (a) {
+ return a.Eg();
+ });
+ f.forEach(function (b) {
+ return a.Iub(b);
+ });
+ this.Zfb();
+ this.vs();
+ };
+ a.prototype.Zfb = function () {
+ var a;
+ if (0 === this.kpb()) {
+ if (this.Wo.Ih) {
+ a = this.zm(this.Xf);
+ this.Wo.$g("complete", a.OXa, a.PXa);
+ }
+ this.J$a();
+ }
+ };
+ a.prototype.Xpb = function () {
+ return this.xc.filter(function (a) {
+ return a.wB;
+ }).map(function (a) {
+ return a.aa.id;
+ });
+ };
+ a.prototype.kpb = function () {
+ return this.xc.filter(function (a) {
+ return !a.wB;
+ }).length;
+ };
+ a.prototype.TF = function (a) {
+ this.Wo.ggb(this.Xf, this.Y.playbackRate, a, {
+ QX: this.Nha.QX.bind(this.Nha)
+ });
+ };
+ a.prototype.dBb = function (a, b) {
+ b.didNormalizeSegment && this.events.emit("segmentNormalized", {
+ type: "segmentNormalized",
+ segmentId: a.aa.id,
+ normalizedStart: b.segmentContentStart,
+ normalizedEnd: b.branchContentEnd
+ });
+ };
+ a.prototype.P$a = function () {
+ this.aR();
+ };
+ a.prototype.ajb = function (a, b, c) {
+ var f,
+ d,
+ k;
+ f = this;
+ d = h.fa.Cc;
+ c && c.mt && (d = c.mt.Ib(a.kk));
+ k = this.rgb(a, b);
+ if (k)
+ return (k.n4(d), k);
+ k = this.TO(a.ma);
+ return new p.j5(this.config, this.console, k, this.events, a, this.rVa(k), b, d, function () {
+ return f.Xf.qa;
+ }, c, [], this.qm, this.rD);
+ };
+ a.prototype.Iub = function (a) {
+ a.events.once("branchNormalized", this.dBb.bind(this, a));
+ a.events.on("branchStreamingComplete", this.P$a.bind(this, a));
+ a.events.on("checkBufferingProgress", this.TF.bind(this, a));
+ a.Eb();
+ this.nW(a.aa.id, a.O, a.rs);
+ this.Zbb(a);
+ };
+ a.prototype.tFb = function (a) {
+ var b,
+ c,
+ f,
+ d;
+ b = this;
+ c = a.G;
+ u.assert(0 === this.fR.length);
+ f = 0;
+ d = new k.Wi();
+ this.zk("createDlTracksStart");
+ this.fR = r.We.map(function (h) {
+ h = b.VB(h, c, a);
+ ++f;
+ d.on(h, "created", function () {
+ --f;
+ 0 === f && (b.zk("createDlTracksEnd"), d.clear());
+ });
+ return h;
+ });
+ };
+ a.prototype.VB = function (a, b, c) {
+ var f,
+ d;
+ f = this;
+ d = n.xo.Lf.VB(a, b, !0, !1, {}, this.config);
+ d.dh.on(d, "networkfailing", function () {
+ var a;
+ d.fZ && (null === (a = c.Bh) || void 0 === a ? void 0 : a.Bp(d.Jfa, void 0, d.Dh, d.qj));
+ c.Op();
+ });
+ d.dh.on(d, "error", function () {
+ f.oh("DownloadTrack fatal error", void 0, "NFErr_MC_StreamingFailure", d.Dh, 0, d.qj);
+ });
+ d.Eb();
+ return d;
+ };
+ a.prototype.rVa = function (a) {
+ return [[0, this.tFa, "audio_tracks"], [1, this.kZa, "video_tracks"]].map(function (b) {
+ var f,
+ d;
+ f = c.__read(b, 3);
+ b = f[0];
+ d = f[1];
+ f = f[2];
+ u.assert(d, "Expected mediaType " + b + " track selector to be defined");
+ d = d.p3(a.xa, a.xa[f]);
+ return void 0 !== d ? a.sMa(b, d) : void 0;
+ }).filter(t.kla);
+ };
+ a.prototype.nW = function (a, b, c) {
+ a = {
+ type: "segmentStarting",
+ segmentId: a,
+ contentOffset: c.qa,
+ maxBitrates: {
+ audio: b.Uq[0],
+ video: b.Uq[1]
+ }
+ };
+ this.events.emit(a.type, a);
+ };
+ a.prototype.J$a = function () {
+ var a;
+ a = {
+ type: "streamerEnd",
+ time: f.time.ea()
+ };
+ this.events.emit(a.type, a);
+ };
+ a.prototype.zk = function (a) {
+ a = {
+ type: "startEvent",
+ event: a,
+ time: f.time.ea()
+ };
+ this.events.emit(a.type, a);
+ };
+ return a;
+ })();
+ b.ara = d;
+ }, function (d, b, a) {
+ var c;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.rya = void 0;
+ c = a(18);
+ d = a(33);
+ a = (function () {
+ function a(a, b) {
+ var d;
+ d = this;
+ this.Y = a;
+ this.qd = b;
+ this.BCa = !1;
+ this.QF = new c.Wi();
+ this.QF.on(a, "paused", function () {
+ return d.S1();
+ });
+ this.QF.on(a, "playing", function () {
+ return d.S1(!0);
+ });
+ this.QF.on(a, "underflow", function () {
+ return d.S1();
+ });
+ this.QF.on(a, "skipped", function () {
+ return d.Gla();
+ });
+ this.QF.on(a, "playbackRateChanged", function () {
+ return d.uBb();
+ });
+ }
+ Object.defineProperties(a.prototype, {
+ currentTime: {
+ get: function () {
+ return this.qd.Xf;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ mp: {
+ get: function () {
+ return this.BCa;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ speed: {
+ get: function () {
+ var a;
+ return null !== (a = this.Y.playbackRate) && void 0 !== a ? a : 1;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ a.prototype.S1 = function (a) {
+ void 0 === a && (a = !1);
+ this.BCa = a;
+ this.emit("stopStart", {
+ type: "stopStart"
+ });
+ };
+ a.prototype.Gla = function () {
+ this.emit("clockReset", {
+ type: "clockReset"
+ });
+ };
+ a.prototype.uBb = function () {
+ this.emit("speedChanged", {
+ type: "speedChanged"
+ });
+ };
+ a.prototype.ic = function () {
+ this.S1();
+ this.QF.clear();
+ };
+ return a;
+ })();
+ b.rya = a;
+ d.Ve(c.EventEmitter, a);
+ }, function (d, b, a) {
+ var c,
+ k,
+ g,
+ r,
+ h;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Bza = void 0;
+ c = a(220);
+ k = a(161);
+ g = a(19);
+ r = a(27);
+ d = (function () {
+ function a(a, b) {
+ this.K = a;
+ this.u = b;
+ this.Naa = this.Iaa = this.ou = r.fa.Cc;
+ this.kW = this.jW = void 0;
+ this.Kj = this.u.trace.bind(this.u);
+ this.uRa = new h(a, b);
+ }
+ a.prototype.Ona = function (a, b, c, d, h, k, l, p, n, q) {
+ var f,
+ m,
+ u,
+ w,
+ A,
+ t,
+ K,
+ C;
+ f = !1;
+ a = a === g.Na.AUDIO && !!b.Sa && this.Qab(b.stream);
+ m = r.fa.Cc;
+ u = b.console;
+ if (a) {
+ w = b.stream.Wa;
+ A = this.e9a(b.profile, w);
+ t = this.f9a(b.profile, w);
+ K = b.Hw + b.Qm;
+ if (b.Rs)
+ (f = new r.fa(b.oa - K, 1E3), (f = this.ou.add(f).Iy(A)) || !l || this.L7a(b, l) || (n = l.Hw + l.Qm, b = new r.fa(K - (b.oa - w.qa), 1E3), n = new r.fa(n - l.T, 1E3), this.ou.Ib(b).add(n).Aeb(t, A) && (f = !0)));
+ else if (void 0 !== c) {
+ C = b.ot;
+ new r.fa(K - b.T, 1E3);
+ l = this.ou.add(c.Ib(C));
+ if (C.add(w).MC(c) || l.Iy(A))
+ (f = !0, C.add(w), l = l.Ib(w));
+ A = t.Ib(r.fa.kw);
+ l.eD(this.ou) && l.lessThan(A) ? (f = a = !1, this.uRa.reset(), this.ou = r.fa.Cc, A = d.add(h), n(A), u.error("Unexpected seamless audio sync " + l.toString() + " at content pts " + b.cc + " in stream " + b.stream.wa + " following " + k.Qb)) : (A = d.add(l).add(h), A = this.uRa.round(b, p, A, f), n(A), l.eD(this.ou) && (this.Iaa = r.fa.max(this.Iaa, l), this.Naa = r.fa.min(this.Naa, l), q(this.Iaa, this.Naa), m = l.Ib(this.ou), this.ou = l));
+ }
+ }
+ return {
+ Ona: a,
+ dmb: f,
+ Wdb: m
+ };
+ };
+ a.prototype.Qab = function (a) {
+ void 0 === this.CM && (this.CM = k.$ba(this.K, a));
+ return this.CM;
+ };
+ a.prototype.e9a = function (a, b) {
+ void 0 === this.jW && ("object" === typeof this.K.Pna && this.K.Pna[a] ? (a = new r.fa(this.K.Pna[a], 1E3).ef(b.S).add(new r.fa(1, b.S)), this.jW = r.fa.min(b, a)) : this.jW = b);
+ return this.jW;
+ };
+ a.prototype.f9a = function (a, b) {
+ var c;
+ if (void 0 === this.kW)
+ if ("object" === typeof this.K.Qna && this.K.Qna[a]) {
+ c = new r.fa(-Math.floor(b.qa / 2), b.S);
+ a = new r.fa(this.K.Qna[a], 1E3).ef(b.S).Ib(new r.fa(1, b.S));
+ this.kW = r.fa.max(c, a);
+ } else
+ this.kW = new r.fa(-12, 1E3);
+ return this.kW;
+ };
+ a.prototype.L7a = function (a, b) {
+ return a.cc <= b.cc && a.Qb >= b.cc && a.stream.track.equals(b.stream.track);
+ };
+ return a;
+ })();
+ b.Bza = d;
+ h = (function () {
+ function a(a, b) {
+ this.K = a;
+ this.u = b;
+ this.qB = 0;
+ }
+ a.prototype.round = function (a, b, c, d) {
+ this.K.zt || (a = this.c8a(a, c, d), b = b.Ib(a), b.Iy(r.fa.kw.u1(2)) ? (c = c.Ib(r.fa.kw), ++this.qB) : b.lessThan(r.fa.Cc) ? (c = c.add(r.fa.kw), --this.qB) : 0 < this.qB && b.lessThan(r.fa.kw) ? (c = c.add(r.fa.kw), --this.qB) : 0 > this.qB && b.greaterThan(r.fa.kw) && (c = c.Ib(r.fa.kw), ++this.qB));
+ return c;
+ };
+ a.prototype.reset = function () {
+ this.qB = 0;
+ };
+ a.prototype.c8a = function (a, b, d) {
+ var f;
+ f = a.Cl;
+ this.K.Qo && a.stream.Ni && (f = f.Ib(a.stream.Ni));
+ d && (f = f.add(a.stream.Wa));
+ return c.Xka(f).add(c.Xka(b));
+ };
+ return a;
+ })();
+ }, function (d, b, a) {
+ var c,
+ k,
+ g;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Jza = void 0;
+ c = a(0);
+ k = a(5);
+ g = a(44);
+ d = (function (a) {
+ function b() {
+ return null !== a && a.apply(this, arguments) || this;
+ }
+ c.__extends(b, a);
+ b.prototype.lI = function (a) {
+ var b,
+ c,
+ d;
+ c = a.ot;
+ a = a.mt;
+ k.assert(void 0 !== c);
+ d = null === (b = this.qd.ar(c)) || void 0 === b ? void 0 : b.Ha;
+ k.assert(void 0 !== d);
+ g.Oa && this.trace("segment " + d + " @ " + c.qa + "ms");
+ this.sEa(d, c, a);
+ };
+ b.prototype.WIa = function (a, b) {
+ var c,
+ d;
+ c = a.Epa;
+ d = this.qd.ar(b);
+ k.assert(void 0 !== d);
+ g.Oa && this.trace("emitSegmentPresentingEvent @ " + a.timestamp.qa + "ms for segment " + c);
+ this.events.emit("segmentPresenting", {
+ type: "segmentPresenting",
+ playerTimestamp: b,
+ position: d
+ });
+ };
+ return b;
+ })(a(396).n9);
+ b.Jza = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ g;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.bAa = void 0;
+ c = a(0);
+ k = a(5);
+ g = a(44);
+ d = (function (a) {
+ function b() {
+ return null !== a && a.apply(this, arguments) || this;
+ }
+ c.__extends(b, a);
+ b.prototype.lI = function (a) {
+ var b,
+ c;
+ b = a.stream;
+ c = a.ot;
+ a = a.mt;
+ k.assert(void 0 !== c);
+ g.Oa && this.trace("stream " + b.id + ", " + b.R + "kbit/s @ " + c.qa + "ms");
+ this.sEa(b, c, a);
+ };
+ b.prototype.WIa = function (a, b) {
+ var c,
+ d,
+ h;
+ d = a.Epa;
+ h = this.qd.ar(b);
+ k.assert(void 0 !== h);
+ g.Oa && this.trace("emitStreamPresentingEvent @ " + a.timestamp.qa + "ms for " + (null === d || void 0 === d ? void 0 : d.id) + ", " + ((null === d || void 0 === d ? void 0 : d.R) + "kbit/s"));
+ this.events.emit("streamPresenting", {
+ type: "streamPresenting",
+ mediaType: this.L,
+ playerTimestamp: b,
+ position: h,
+ trackIndex: null === (c = null === d || void 0 === d ? void 0 : d.track) || void 0 === c ? void 0 : c.tB,
+ streamIndex: null === d || void 0 === d ? void 0 : d.ug
+ });
+ };
+ return b;
+ })(a(396).n9);
+ b.bAa = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ g;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Pya = void 0;
+ c = a(0);
+ k = a(845);
+ g = a(844);
+ d = (function () {
+ function a(a, b, c, f, d, l, r) {
+ this.L = a;
+ this.qd = c;
+ this.events = d;
+ this.kS = [];
+ this.kS = [new k.bAa(a, b, c, f, d, l, r)];
+ 1 === this.L && this.kS.push(new g.Jza(a, b, c, f, d, l, r));
+ }
+ a.prototype.reset = function () {
+ this.kS.forEach(function (a) {
+ return a.reset();
+ });
+ };
+ a.prototype.close = function () {
+ this.kS.forEach(function (a) {
+ return a.close();
+ });
+ };
+ a.prototype.Fi = function (a) {
+ return c.__read(this.kS, 1)[0].Fi(a);
+ };
+ return a;
+ })();
+ b.Pya = d;
+ }, function (d, b, a) {
+ var c,
+ k;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Cra = void 0;
+ c = a(162);
+ k = a(44);
+ d = (function () {
+ function a(a, b, c) {
+ this.u = a;
+ this.V7a = b;
+ this.De = c;
+ this.KV = 0;
+ this.dW = !1;
+ k.Oa && a.trace("creating new iterator for " + this.De);
+ }
+ Object.defineProperties(a.prototype, {
+ ikb: {
+ get: function () {
+ return this.KV;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ kY: {
+ get: function () {
+ return this.NBa;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ mp: {
+ get: function () {
+ return this.dW;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ lkb: {
+ get: function () {
+ return this.Hj ? this.Hj.Mv ? "Complete" : this.Hj.Dma ? "WaitingForBranch" : "WaitingForRequest" : "Uninitialized";
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ a.prototype.next = function () {
+ var a,
+ b;
+ a = this;
+ b = this.Hj;
+ return b ? b.next().then(function (c) {
+ if (a.Hj !== b)
+ return {
+ done: !0
+ };
+ c.done || a.KV++;
+ return c;
+ }) : c.eA.Eha();
+ };
+ a.prototype.aHb = function () {
+ this.HWa();
+ this.sFb();
+ };
+ a.prototype.HWa = function () {
+ var a;
+ if (this.Hj) {
+ a = this.Hj;
+ a && a.Fg();
+ a && k.Oa && this.u.trace("Disposing iterator that was on branch", this.kY && this.kY.aa);
+ this.dW = !1;
+ this.Hj = void 0;
+ }
+ };
+ a.prototype.sFb = function () {
+ var a,
+ b,
+ d,
+ g;
+ a = this;
+ if (!this.dW) {
+ b = this.u;
+ d = this.V7a;
+ g = this.De;
+ this.KV = 0;
+ this.NBa = void 0;
+ this.Hj = c.Aq(c.map(d.ZLa(), function (c) {
+ var f;
+ a.NBa = c;
+ a.KV = 0;
+ k.Oa && b.trace("Received branch", c.aa);
+ f = c.ZO(g);
+ if (f)
+ return {
+ value: f
+ };
+ k.Oa && b.error("Skipping Branch", c.aa);
+ return {
+ value: []
+ };
+ }, b), b);
+ this.dW = !0;
+ }
+ };
+ return a;
+ })();
+ b.Cra = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ g,
+ r,
+ h,
+ p,
+ m,
+ f,
+ u;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.nra = void 0;
+ c = a(0);
+ k = a(18);
+ g = a(397);
+ r = a(4);
+ h = a(221);
+ a(16);
+ p = a(220);
+ m = a(11);
+ f = a(45);
+ u = a(109);
+ d = (function () {
+ function a(a, b, c, f, d, g, l, p, u) {
+ var r;
+ r = this;
+ this.wb = a;
+ this.Y = b;
+ this.u = c;
+ this.K = f;
+ this.sM = d;
+ this.eg = g;
+ this.ez = l;
+ this.rD = p;
+ this.Jx = u;
+ this.K$ = !1;
+ this.eCa = new m.Pza();
+ this.T7a = new k.Wi();
+ this.ti = new h.WS(this.u);
+ this.Ljb();
+ this.dm && (this.T9a = m.iu.vZa(this.dm.map(function (a) {
+ return a.lI;
+ }), function (a) {
+ return a.every(function (a) {
+ return a;
+ });
+ }, function (a) {
+ return r.Jx.set(a);
+ }));
+ this.cs = p.eY(function () {
+ return r.Peb();
+ });
+ }
+ a.prototype.Peb = function () {
+ var a,
+ b,
+ f,
+ d,
+ h,
+ k;
+ return c.__generator(this, function (g) {
+ switch (g.label) {
+ case 0:
+ if (!this.ti.aHa)
+ return [3, 2];
+ a = c.__read(this.ti.Apa(), 1);
+ b = a[0];
+ f = null !== (k = null === (h = this.sM.JR) || void 0 === h ? void 0 : h.qa) && void 0 !== k ? k : 0;
+ d = b.mt.add(m.fa.Jd(f));
+ return [4, u.Rr.HS(d)];
+ case 1:
+ return (g.Bt(), this.ti.remove(b), b.Eg(), [3, 0]);
+ case 2:
+ return [2];
+ }
+ });
+ };
+ Object.defineProperties(a.prototype, {
+ Mz: {
+ get: function () {
+ var a;
+ return !(null === (a = this.dm[0]) || void 0 === a || !a.Mz);
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ a.prototype.cnb = function (a) {
+ this.ti.enqueue(a);
+ this.cs.state === u.Zp.complete && this.cs.Dp();
+ a.aa.or && this.ti.ZY();
+ this.K$ || this.xob(a);
+ };
+ a.prototype.yla = function (a) {
+ this.dm.forEach(function (b) {
+ b.yla(a);
+ });
+ };
+ a.prototype.reset = function () {
+ this.dm.forEach(function (a) {
+ a.reset();
+ });
+ this.K$ = !1;
+ this.eCa.removeAllListeners();
+ };
+ a.prototype.hR = function (a) {
+ a = this.yKa(a);
+ null === a || void 0 === a ? void 0 : a.reset();
+ };
+ a.prototype.GG = function () {
+ this.ti.clear();
+ this.T7a.clear();
+ this.cs.Dp();
+ };
+ a.prototype.resume = function (a) {
+ this.dm.forEach(function (b) {
+ void 0 !== a && -1 === a.indexOf(b.L) || b.resume();
+ });
+ };
+ a.prototype.IJ = function (a) {
+ this.dm.forEach(function (b) {
+ return (void 0 === a || -1 !== a.indexOf(b.L)) && b.stop();
+ });
+ };
+ a.prototype.Rk = function () {
+ this.u.trace("attached-player: onUnderflow");
+ };
+ a.prototype.ZLa = function () {
+ return this.ti.tLa();
+ };
+ a.prototype.JO = function () {
+ return this.ti.Apa();
+ };
+ a.prototype.Ljb = function () {
+ var a,
+ b;
+ a = this;
+ this.zk("createMediaSourceStart");
+ b = new r.MediaSource(this.Y.Y);
+ b.gc || (b.gc = r.MediaSource.gc);
+ if (1 !== b.readyState)
+ this.ul("exception in init", "NFErr_MC_StreamingInitFailure");
+ else {
+ this.zk("createMediaSourceEnd");
+ this.lf = b;
+ if (!b.jX(this.ez))
+ throw (this.u.trace("Error:", b.error), this.ul("error creating source buffers", "NFErr_MC_StreamingInitFailure"), b.error);
+ this.dm = b.sourceBuffers.map(function (c) {
+ var f;
+ f = new p.l5(a.u, c.L, b, c, a.K, {
+ Sd: function () {
+ return a.Y.Xf.qa;
+ },
+ Ov: function (b) {
+ return a.Y.Ov(b.ma);
+ }
+ });
+ f.addListener("error", function (b) {
+ return a.ul(b.errorstr);
+ });
+ f.addListener("logdata", function (b) {
+ return a.eg.emit("logdata", b);
+ });
+ return new g.W4(f, c.L, a, a.K, a.u, a.Y, a.sM, a.rD);
+ });
+ }
+ };
+ a.prototype.ic = function () {
+ this.T9a.clear();
+ this.dm.forEach(function (a) {
+ return a.ic();
+ });
+ this.lf.vq();
+ this.GG();
+ this.cs.ic();
+ };
+ a.prototype.Fi = function (a) {
+ return this.dm.every(function (b) {
+ return b.Fi(a);
+ });
+ };
+ a.prototype.xga = function () {
+ return {
+ VEb: this.ti.Apa(),
+ oDb: this.dm
+ };
+ };
+ a.prototype.xob = function (a) {
+ var b;
+ b = this;
+ this.K$ = !0;
+ a.Ph.forEach(function (a) {
+ var c;
+ c = b.yKa(a.L);
+ if (void 0 !== c)
+ b.eCa.once(a.Yfa, function (a) {
+ return c.yob(a);
+ });
+ });
+ };
+ a.prototype.yKa = function (a) {
+ return f.xl(this.dm, function (b) {
+ return b.L === a;
+ });
+ };
+ a.prototype.zk = function (a) {
+ a = {
+ type: "startEvent",
+ event: a,
+ time: r.time.ea()
+ };
+ this.eg.emit(a.type, a);
+ };
+ a.prototype.ul = function (a, b) {
+ this.wb.oh(a, void 0, b);
+ };
+ return a;
+ })();
+ b.nra = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ g;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Rza = void 0;
+ c = a(0);
+ k = a(163);
+ g = a(128);
+ d = (function (a) {
+ function b(b, c) {
+ var f;
+ f = a.call(this) || this;
+ f.yHb = b;
+ f.Zca = c;
+ return f;
+ }
+ c.__extends(b, a);
+ b.prototype.C1 = function () {
+ return this.gd === k.Zp.jt ? this.yHb : g.Rr.nqa;
+ };
+ b.prototype.Ge = function () {
+ this.Zca();
+ };
+ return b;
+ })(k.U9);
+ b.Rza = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ g,
+ r,
+ h;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.kva = void 0;
+ c = a(0);
+ k = a(27);
+ g = a(5);
+ r = a(163);
+ h = a(128);
+ d = (function (a) {
+ function b(b) {
+ var c;
+ c = a.call(this) || this;
+ c.xHb = b;
+ c.reset();
+ return c;
+ }
+ c.__extends(b, a);
+ b.prototype.reset = function () {
+ var a,
+ b;
+ if (this.gd === r.Zp.Dna || this.gd === r.Zp.jt)
+ null === (b = null === (a = this.MV) || void 0 === a ? void 0 : a["return"]) || void 0 === b ? void 0 : b.call(a);
+ this.gd = r.Zp.jt;
+ this.MV = this.xHb();
+ this.Paa = h.Rr.FOb(k.fa.Cc);
+ };
+ b.prototype.Dp = function () {
+ this.reset();
+ g.assert(this.GM);
+ this.GM.bHb(this);
+ };
+ b.prototype.C1 = function () {
+ return this.Paa;
+ };
+ b.prototype.Ge = function () {
+ var a,
+ b,
+ c;
+ c = this.MV.next();
+ c.done ? (this.Paa = h.Rr.nqa, null === (b = (a = this.MV)["return"]) || void 0 === b ? void 0 : b.call(a)) : this.Paa = c.value;
+ };
+ b.prototype.ic = function () {
+ var b,
+ c;
+ null === (c = (b = this.MV)["return"]) || void 0 === c ? void 0 : c.call(b);
+ a.prototype.ic.call(this);
+ };
+ return b;
+ })(r.U9);
+ b.kva = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ g;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.cHa = void 0;
+ c = a(0);
+ k = a(44);
+ g = a(5);
+ b.cHa = function () {
+ for (var a = [], b = 0; b < arguments.length; b++) {
+ a[b] = arguments[b];
+ }
+ k.Oa && g.assert(a.length);
+ return function (b, d) {
+ var f,
+ h,
+ m,
+ l;
+ try {
+ for (var k = c.__values(a), g = k.next(); !g.done; g = k.next()) {
+ m = g.value;
+ l = m(b, d);
+ if (0 !== l)
+ return l;
+ }
+ } catch (M) {
+ f = {
+ error: M
+ };
+ }
+ finally {
+ try {
+ g && !g.done && (h = k["return"]) && h.call(k);
+ }
+ finally {
+ if (f)
+ throw f.error;
+ }
+ }
+ return 0;
+ };
+ };
+ }, function (d, b, a) {
+ var k,
+ g,
+ r,
+ h,
+ p,
+ m,
+ f,
+ u,
+ n,
+ q,
+ t;
+ function c(a, b, f, d) {
+ var h,
+ k;
+ p.assert(a.mp);
+ h = f.Ib(a.currentTime);
+ k = null !== d && void 0 !== d ? d : {
+ id: void 0
+ };
+ k.id = setTimeout(function () {
+ f.Ib(a.currentTime).MC(r.fa.Cc) ? b() : c(a, b, f, k);
+ }, Math.max(h.qa / a.speed, 0));
+ return k;
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.V9 = void 0;
+ k = a(0);
+ g = a(18);
+ r = a(27);
+ h = a(222);
+ p = a(5);
+ m = a(44);
+ f = a(851);
+ u = a(163);
+ n = a(850);
+ q = a(849);
+ t = a(128);
+ d = (function () {
+ function a(a, b) {
+ this.Aa = a;
+ this.console = b;
+ this.i$a = 0;
+ this.gd = {
+ lQ: r.fa.Os
+ };
+ this.bZ = new g.Wi();
+ this.iq = new h.hU([], f.cHa(function (a, b) {
+ return a.kJ.Pj(b.kJ);
+ }, function (a, b) {
+ return a.aE.id > b.aE.id ? 1 : a.aE.id < b.aE.id ? -1 : 0;
+ }));
+ this.lFa(a);
+ }
+ a.prototype.FHa = function (a, b) {
+ a = new(a.bind.apply(a, k.__spread([void 0], b)))();
+ a.id = this.i$a++;
+ a.Fdb(this);
+ this.Sba(a);
+ return a;
+ };
+ a.prototype.eY = function () {
+ for (var a = [], b = 0; b < arguments.length; b++) {
+ a[b] = arguments[b];
+ }
+ return this.FHa(n.kva, a);
+ };
+ a.prototype.Tjb = function () {
+ for (var a = [], b = 0; b < arguments.length; b++) {
+ a[b] = arguments[b];
+ }
+ return this.FHa(q.Rza, a);
+ };
+ a.prototype.lFa = function (a) {
+ var b;
+ b = this;
+ this.JJ();
+ this.bZ.clear();
+ this.Aa = a;
+ this.bZ.on(a, "stopStart", function () {
+ return b.eJ();
+ });
+ this.bZ.on(a, "clockReset", function () {
+ return b.GRa();
+ });
+ this.bZ.on(a, "speedChanged", function () {
+ return b.GBb();
+ });
+ this.GRa();
+ };
+ a.prototype.GBb = function () {
+ this.JJ();
+ this.eJ();
+ };
+ a.prototype.ic = function () {
+ this.JJ();
+ this.iq.clear();
+ };
+ a.prototype.GRa = function () {
+ var a,
+ b;
+ a = this;
+ b = this.iq.map(function (a) {
+ return a.aE;
+ });
+ this.JJ();
+ this.iq.clear();
+ b.forEach(function (b) {
+ return a.Sba(b, !1);
+ });
+ this.eJ();
+ };
+ a.prototype.Sba = function (a, b) {
+ var c;
+ void 0 === b && (b = !0);
+ c = this.IXa(a.C1());
+ this.iq.push({
+ aE: a,
+ kJ: c
+ });
+ b && this.eJ();
+ };
+ a.prototype.eJ = function () {
+ var a,
+ b,
+ f,
+ d,
+ h,
+ k;
+ a = this;
+ m.Oa && (null === (b = this.console) || void 0 === b ? void 0 : b.trace("recheck schedule task count:" + this.iq.length));
+ if (this.Aa.mp) {
+ b = this.gd.lQ;
+ k = null !== (d = null === (f = this.iq.mz()) || void 0 === f ? void 0 : f.kJ) && void 0 !== d ? d : r.fa.Os;
+ k.eD(this.gd.lQ) && (this.JJ(), this.gd.lQ = k, k.lessThan(b) && (k.MC(r.fa.Cc) ? this.kYa() : (m.Oa && (null === (h = this.console) || void 0 === h ? void 0 : h.trace("Scheduling next wakeup for:" + k.qa)), this.gd.yj = c(this.Aa, function () {
+ return a.kYa();
+ }, k))));
+ } else
+ this.JJ();
+ };
+ a.prototype.kYa = function () {
+ try {
+ for (; this.GMb(); ) { ;
+ }
+ }
+ finally {
+ this.gd.lQ = r.fa.Os;
+ this.eJ();
+ }
+ };
+ a.prototype.GMb = function () {
+ var a,
+ b,
+ c,
+ f;
+ f = null !== (b = null === (a = this.iq.mz()) || void 0 === a ? void 0 : a.kJ) && void 0 !== b ? b : r.fa.Os;
+ if (this.Aa.currentTime.Iy(f) && (a = this.iq.pop())) {
+ b = a.aE;
+ m.Oa && (null === (c = this.console) || void 0 === c ? void 0 : c.trace("Running a task now, scheduled for time:" + f.qa));
+ try {
+ b.Bz();
+ a.kJ = this.IXa(b.C1());
+ } catch (S) {
+ throw (b.ic(), S);
+ }
+ finally {
+ a.kJ !== r.fa.Os && b.state === u.Zp.Dna && this.iq.push(a);
+ }
+ return !0;
+ }
+ };
+ a.prototype.bHb = function (a) {
+ p.assert(a.Mp === this);
+ this.dna(a, !1);
+ this.Sba(a);
+ };
+ a.prototype.dna = function (a, b) {
+ var c;
+ void 0 === b && (b = !0);
+ c = this.iq.find(function (b) {
+ return b.aE === a;
+ });
+ c && this.nGb(c, b);
+ };
+ a.prototype.nGb = function (a, b) {
+ this.iq.remove(a);
+ b && this.eJ();
+ };
+ a.prototype.JJ = function () {
+ this.gd.yj && clearTimeout(this.gd.yj.id);
+ this.gd.yj = void 0;
+ this.gd.lQ = r.fa.Os;
+ };
+ a.prototype.IXa = function (a) {
+ return a.type === t.E9.absolute ? a.timestamp : a.timestamp.add(this.Aa.currentTime);
+ };
+ return a;
+ })();
+ b.V9 = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ g,
+ r,
+ h,
+ p,
+ m,
+ f;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.$qa = void 0;
+ c = a(0);
+ k = a(18);
+ g = a(11);
+ r = a(5);
+ h = a(4);
+ p = a(109);
+ m = a(848);
+ d = a(395);
+ f = a(842);
+ a = (function (a) {
+ function b(b, c, d, g) {
+ var m;
+ m = a.call(this) || this;
+ m.Y = b;
+ m.ez = c;
+ m.sM = d;
+ m.bP = g;
+ m.nO = [];
+ m.ZBa = new k.Wi();
+ m.u = new h.Console("ASEJS", "media|asejs");
+ m.ZBa.on(m.Y, "underflow", function () {
+ return m.Rk();
+ });
+ m.su = new f.rya(b, m);
+ m.hB = new p.V9(m.su);
+ return m;
+ }
+ c.__extends(b, a);
+ Object.defineProperties(b.prototype, {
+ rD: {
+ get: function () {
+ return this.hB;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ xc: {
+ get: function () {
+ var a,
+ b;
+ return null !== (b = null === (a = this.Uh) || void 0 === a ? void 0 : a.JO()) && void 0 !== b ? b : [];
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ wb: {
+ get: function () {
+ var a;
+ return null === (a = this.Uh) || void 0 === a ? void 0 : a.wb;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ Aa: {
+ get: function () {
+ return this.su;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ Mz: {
+ get: function () {
+ var a;
+ return !(null === (a = this.Uh) || void 0 === a || !a.Mz);
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ b.prototype.moa = function (a) {
+ -1 === this.nO.indexOf(a) && this.nO.push(a);
+ this.Uh && this.Uh.yla(a);
+ };
+ b.prototype.KIb = function (a) {
+ a = this.nO.indexOf(a);
+ -1 !== a && this.nO.splice(a, 1);
+ };
+ b.prototype.Ov = function (a) {
+ var b;
+ return -1 !== this.nO.indexOf(a) || !(null === (b = this.bP(a)) || void 0 === b || !b.ij);
+ };
+ b.prototype.reset = function () {
+ var b;
+ a.prototype.reset.call(this);
+ null === (b = this.Uh) || void 0 === b ? void 0 : b.reset();
+ };
+ b.prototype.hR = function (b) {
+ var c;
+ a.prototype.hR.call(this, b);
+ null === (c = this.Uh) || void 0 === c ? void 0 : c.hR(b);
+ };
+ b.prototype.GG = function () {
+ var a;
+ null === (a = this.Uh) || void 0 === a ? void 0 : a.GG();
+ };
+ b.prototype.pause = function (b) {
+ this.IJ(b);
+ a.prototype.pause.call(this, null !== b && void 0 !== b ? b : this.ez);
+ };
+ b.prototype.resume = function (b) {
+ var c;
+ null === (c = this.Uh) || void 0 === c ? void 0 : c.resume(b);
+ a.prototype.resume.call(this, null !== b && void 0 !== b ? b : this.ez);
+ };
+ b.prototype.ic = function () {
+ this.Uh && this.Eea(this.Uh.wb);
+ this.su.ic();
+ this.hB.ic();
+ this.ZBa.clear();
+ a.prototype.ic.call(this);
+ };
+ b.prototype.yH = function () {
+ var b;
+ b = this.Y.ud;
+ void 0 === b && (b = a.prototype.yH.call(this));
+ return b;
+ };
+ b.prototype.Am = function () {
+ var b;
+ b = this.Y.playbackRate;
+ void 0 === b && (b = a.prototype.Am.call(this));
+ return b;
+ };
+ b.prototype.Eea = function (a) {
+ var b;
+ r.assert(a === this.wb);
+ null === (b = this.Uh) || void 0 === b ? void 0 : b.ic();
+ this.Uh = void 0;
+ };
+ b.prototype.vX = function (b, c) {
+ if (c = a.prototype.vX.call(this, b, c))
+ (this.Uh = new m.nra(b, this, this.u, b.config, this.sM, this.events, this.ez, this.hB, this.Jx), this.IJ(this.OI));
+ return c;
+ };
+ b.prototype.sfa = function () {
+ var c;
+ for (var a = [], b = 0; b < arguments.length; b++) {
+ a[b] = arguments[b];
+ }
+ c = this.Uh;
+ r.assert(c);
+ a.forEach(function (a) {
+ return c.cnb(a);
+ });
+ };
+ b.prototype.Fi = function (a) {
+ var b;
+ if (!this.Uh)
+ return !1;
+ b = this.EKa(a);
+ return b ? b.aa.Cs.Ib(g.fa.Jd(this.sM.gz)).lessThan(a) || !b.Nda(a) ? !1 : this.Uh.Fi(a) : !1;
+ };
+ b.prototype.Rk = function () {
+ var a,
+ b;
+ r.assert(this.wb);
+ b = this.ar(this.Xf);
+ r.assert(b);
+ null === (a = this.Uh) || void 0 === a ? void 0 : a.Rk();
+ this.wb.Rk(b);
+ };
+ b.prototype.xga = function () {
+ var a;
+ return null === (a = this.Uh) || void 0 === a ? void 0 : a.xga();
+ };
+ b.prototype.IJ = function (a) {
+ var b;
+ null === (b = this.Uh) || void 0 === b ? void 0 : b.IJ(a);
+ };
+ b.prototype.Gpa = function (b) {
+ r.assert(this.wb && this.Uh);
+ return a.prototype.Gpa.call(this, b);
+ };
+ return b;
+ })(d.e9);
+ b.$qa = a;
+ }, function (d, b, a) {
+ var k,
+ g;
+ function c(a) {
+ this.K = a;
+ this.iM();
+ }
+ k = a(8);
+ g = a(4);
+ new g.Console("ASEJS_NETWORK_HISTORY", "media|asejs");
+ c.prototype.save = function () {
+ var a;
+ a = this.Wc();
+ g.storage.set("nh", a);
+ };
+ c.prototype.oKb = function () {
+ this.pB || (this.pB = !0, this.Cu = g.time.ea());
+ };
+ c.prototype.zKb = function () {
+ var a;
+ if (this.pB) {
+ a = g.time.ea();
+ this.Iu += a - this.Cu;
+ this.Cu = a;
+ this.pB = !1;
+ this.hM = null;
+ }
+ };
+ c.prototype.LNa = function (a, b) {
+ this.pB && (b > this.Cu && (this.Iu += b - this.Cu, this.Cu = b), null === this.hM || a > this.hM) && (a = b - a, this.GF.push([this.Iu - a, a]), this.qbb(), this.hM = b);
+ };
+ c.prototype.qbb = function () {
+ var a;
+ a = this.Iu - this.K.cAb;
+ this.GF = this.GF.filter(function (b) {
+ return b[0] > a;
+ });
+ };
+ c.prototype.iM = function () {
+ var a;
+ a = g.storage.get("nh");
+ this.iba(a) || (this.Cu = g.time.ea(), this.Iu = 0, this.pB = !1, this.hM = null, this.GF = []);
+ };
+ c.prototype.iba = function (a) {
+ if (!(a && k.has(a, "t") && k.has(a, "s") && k.has(a, "i") && k.na(a.t) && k.na(a.s) && k.isArray(a.i)))
+ return !1;
+ this.Cu = g.time.pla(1E3 * a.t);
+ this.Iu = 1E3 * a.s;
+ this.pB = !1;
+ this.GF = a.i.map(function (a) {
+ return [1E3 * a[0], a[1]];
+ });
+ this.hM = null;
+ return !0;
+ };
+ c.prototype.Wc = function () {
+ return this.pB ? {
+ t: g.time.now() / 1E3 | 0,
+ s: (this.Iu + (g.time.ea() - this.Cu)) / 1E3 | 0,
+ i: this.GF.map(function (a) {
+ return [a[0] / 1E3 | 0, a[1]];
+ })
+ }
+ : {
+ t: g.time.Uka(this.Cu) / 1E3 | 0,
+ s: this.Iu / 1E3 | 0,
+ i: this.GF.map(function (a) {
+ return [a[0] / 1E3 | 0, a[1]];
+ })
+ };
+ };
+ d.P = c;
+ }, function (d, b, a) {
+ var c,
+ k,
+ g,
+ r;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.fua = void 0;
+ c = a(0);
+ k = a(45);
+ g = a(16);
+ r = a(11);
+ d = (function () {
+ function a(a, b) {
+ this.u = a;
+ this.config = b;
+ }
+ a.prototype.ABb = function (a) {
+ var b;
+ b = this;
+ return 0 < a.length ? c.__spread(a).sort(k.WGa(function (a) {
+ return b.e8a(a);
+ })).some(function (a) {
+ return b.dgb(a) ? a.DOa() : !1;
+ }) : !1;
+ };
+ a.prototype.e8a = function (a) {
+ return a.Lp.Ib(a.Xf).qa;
+ };
+ a.prototype.dgb = function (a) {
+ return a.Lp.equal(a.xs) || (this.config.rN && g.UNa(a.qm) ? this.egb(a) : this.fgb(a));
+ };
+ a.prototype.fgb = function (a) {
+ var b;
+ if (!this.config.p1 || void 0 === this.config.V3)
+ return !0;
+ b = a.xs.Ib(a.Xf).qa;
+ b = Math.max(this.config.p1, b * this.config.V3);
+ return a.Lp.Ib(a.xs).qa <= b;
+ };
+ a.prototype.egb = function (a) {
+ var b;
+ if (void 0 === this.config.rN)
+ return !0;
+ b = a.Xf.add(r.fa.Jd(this.config.rN));
+ return a.Lp.MC(b);
+ };
+ return a;
+ })();
+ b.fua = d;
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ }, function (d, b, a) {
+ var m,
+ f,
+ u,
+ n,
+ q,
+ t,
+ C;
+ function c(a) {
+ var b,
+ f,
+ d;
+ a = a.parent;
+ b = !1;
+ if (a && a.children) {
+ f = {};
+ f[t.xk] = [];
+ f[t.Cj] = [];
+ f[t.TEMPORARY] = [];
+ d = a.children;
+ d.forEach(function (a) {
+ a && f[a.se].push(a);
+ });
+ 0 < f[t.xk].length || (f[t.Cj].length === d.length ? a.se !== t.Cj && (a.se = t.Cj, q.error("PERM failing :", u.zg.name[a.gC] + " " + a.id), b = !0) : (a.se === t.xk && (a.se = t.TEMPORARY, q.error("TEMP failing :", u.zg.name[a.gC] + " " + a.id), b = !0), f[t.TEMPORARY].forEach(function (a) {
+ a.se = t.xk;
+ })), b && c(a));
+ }
+ }
+ function k(a) {
+ var c;
+ for (var b = []; a; a = a.parent) {
+ switch (a.gC) {
+ case u.zg.LA:
+ c = a;
+ b.unshift(c.id + "(" + c.name + ")");
+ break;
+ case u.zg.pva:
+ b.unshift(a.id);
+ break;
+ case u.zg.URL:
+ b.unshift("");
+ }
+ }
+ return b.length ? "/" + b.join("/") : "";
+ }
+ function g(a) {
+ var b;
+ if ((a = a.parent) && 0 < a.children.length && a.se !== t.xk) {
+ b = {};
+ b[t.xk] = [];
+ b[t.Cj] = [];
+ b[t.TEMPORARY] = [];
+ a.children.forEach(function (a) {
+ a && b[a.se].push(a);
+ });
+ 0 < b[t.xk].length && (a.se = t.xk, g(a));
+ }
+ }
+ function r(a) {
+ return a.se !== t.xk;
+ }
+ function h(a) {
+ switch (a.se) {
+ case t.xk:
+ return "OK";
+ case t.Cj:
+ return "FAILED PERMANENTLY";
+ case t.TEMPORARY:
+ return "FAILED TEMPORARILY";
+ default:
+ return "INVALID";
+ }
+ }
+ function p(a, b) {
+ if (a.se === t.TEMPORARY || a.se === t.Cj && b)
+ a.se = t.xk;
+ a.children && a.children.forEach(function (a) {
+ a && p(a, b);
+ });
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.bU = void 0;
+ m = a(0);
+ f = a(8);
+ d = a(18);
+ u = a(19);
+ n = a(4);
+ q = new n.Console("ASEJS_LOCATION_SELECTOR", "media|asejs");
+ (function (a) {
+ a[a.xk = 0] = "OK";
+ a[a.TEMPORARY = 1] = "TEMPORARY";
+ a[a.Cj = 2] = "PERMANENT";
+ })(t || (t = {}));
+ (function (a) {
+ a[a.mu = 0] = "STARTUP";
+ a[a.g6a = 1] = "REBUFFER";
+ })(C || (C = {}));
+ a = (function (a) {
+ var j21;
+ j21 = 2;
+ for (; j21 !== 25; ) {
+ switch (j21) {
+ case 2:
+ m.__extends(b, a);
+ b.prototype.rsb = function () {
+ var l21;
+ l21 = 2;
+ for (; l21 !== 1; ) {
+ switch (l21) {
+ case 4:
+ return this.fw[2].qb;
+ break;
+ l21 = 1;
+ break;
+ case 2:
+ return this.fw[0].qb;
+ break;
+ }
+ }
+ };
+ b.prototype.Wga = function () {
+ var m21;
+ m21 = 2;
+ for (; m21 !== 1; ) {
+ switch (m21) {
+ case 2:
+ return this.fw;
+ break;
+ }
+ }
+ };
+ b.prototype.yq = function () {
+ var n21;
+ n21 = 2;
+ for (; n21 !== 1; ) {
+ switch (n21) {
+ case 2:
+ return r(this.Km);
+ break;
+ }
+ }
+ };
+ b.prototype.AVa = function (a) {
+ var o21;
+ o21 = 2;
+ for (; o21 !== 5; ) {
+ switch (o21) {
+ case 2:
+ o21 = (a = this.xe[a]) && a.parent ? 1 : 5;
+ break;
+ case 1:
+ return a.parent.id;
+ break;
+ case 9:
+ return a.parent.id;
+ break;
+ o21 = 5;
+ break;
+ }
+ }
+ };
+ b.prototype.J0 = function (a) {
+ var p21;
+ p21 = 2;
+ for (; p21 !== 5; ) {
+ switch (p21) {
+ case 1:
+ return a.Ac.location;
+ break;
+ case 9:
+ return a.Ac.location;
+ break;
+ p21 = 5;
+ break;
+ case 2:
+ p21 = (a = this.xe[a]) && a.Ac ? 1 : 5;
+ break;
+ }
+ }
+ };
+ j21 = 8;
+ break;
+ case 8:
+ b.prototype.PWa = function (a) {
+ var q21;
+ q21 = 2;
+ for (; q21 !== 5; ) {
+ switch (q21) {
+ case 2:
+ q21 = (a = this.xe[a]) ? 1 : 5;
+ break;
+ case 1:
+ return a.stream;
+ break;
+ case 3:
+ q21 = (a = this.xe[a]) ? 5 : 6;
+ break;
+ q21 = (a = this.xe[a]) ? 1 : 5;
+ break;
+ }
+ }
+ };
+ b.prototype.Nla = function (a) {
+ var r21,
+ b;
+ r21 = 2;
+ for (; r21 !== 11; ) {
+ switch (r21) {
+ case 2:
+ b = this;
+ a.locations.forEach(function (a) {
+ var s21,
+ c,
+ f,
+ d,
+ h;
+ s21 = 2;
+ for (; s21 !== 8; ) {
+ switch (s21) {
+ case 2:
+ c = a.key;
+ s21 = 1;
+ break;
+ case 1:
+ s21 = !b.Fm[c] ? 5 : 8;
+ break;
+ case 5:
+ (f = [], d = b.Mf.get(c), h = b.Km);
+ a = {
+ id: c,
+ gC: u.zg.pva,
+ se: t.xk,
+ Yf: a.rank,
+ level: a.level,
+ weight: a.weight,
+ pt: void 0,
+ parent: h,
+ children: f,
+ nr: f,
+ pc: {},
+ qb: d
+ };
+ b.Fm[a.id] = a;
+ s21 = 9;
+ break;
+ case 9:
+ h.children.push(a);
+ s21 = 8;
+ break;
+ }
+ }
+ });
+ this.iW = n.time.ea();
+ r21 = 4;
+ break;
+ case 4:
+ this.fw.sort(function (a, b) {
+ var t21;
+ t21 = 2;
+ for (; t21 !== 1; ) {
+ switch (t21) {
+ case 2:
+ return a.level - b.level || a.Yf - b.Yf;
+ break;
+ }
+ }
+ });
+ a.servers.forEach(function (a) {
+ var u21,
+ f,
+ c,
+ d;
+ u21 = 2;
+ for (; u21 !== 6; ) {
+ switch (u21) {
+ case 1:
+ u21 = !b.nr[c] ? 5 : 6;
+ break;
+ case 5:
+ f = b.Fm[a.key];
+ u21 = 4;
+ break;
+ case 2:
+ c = a.id;
+ u21 = 1;
+ break;
+ case 4:
+ u21 = f ? 3 : 6;
+ break;
+ case 3:
+ d = [];
+ a = {
+ id: c,
+ gC: u.zg.LA,
+ se: t.xk,
+ pt: void 0,
+ parent: f,
+ children: d,
+ xe: d,
+ name: a.name,
+ type: a.type,
+ Yf: a.rank,
+ location: f
+ };
+ b.nr[a.id] = a;
+ f.children.push(a);
+ u21 = 6;
+ break;
+ }
+ }
+ });
+ a.audio_tracks.forEach(function (a) {
+ var v21;
+ v21 = 2;
+ for (; v21 !== 1; ) {
+ switch (v21) {
+ case 4:
+ b.rTa(a);
+ v21 = 7;
+ break;
+ v21 = 1;
+ break;
+ case 2:
+ b.rTa(a);
+ v21 = 1;
+ break;
+ }
+ }
+ });
+ r21 = 8;
+ break;
+ case 14:
+ this.fw = a;
+ this.Km.children = a;
+ this.dump();
+ r21 = 11;
+ break;
+ case 8:
+ a.video_tracks.forEach(function (a) {
+ var w21;
+ w21 = 2;
+ for (; w21 !== 1; ) {
+ switch (w21) {
+ case 4:
+ b.rTa(a);
+ w21 = 4;
+ break;
+ w21 = 1;
+ break;
+ case 2:
+ b.rTa(a);
+ w21 = 1;
+ break;
+ }
+ }
+ });
+ a = this.fw.filter(function (a) {
+ var x21,
+ c;
+ x21 = 2;
+ for (; x21 !== 4; ) {
+ switch (x21) {
+ case 2:
+ c = a.nr.every(function (a) {
+ var y21;
+ y21 = 2;
+ for (; y21 !== 1; ) {
+ switch (y21) {
+ case 2:
+ return 0 === a.xe.length;
+ break;
+ case 4:
+ a000.s4P(9);
+ var m41 = a000.t4P(18, 27, 11);
+ return m41 != a.xe.length;
+ break;
+ y21 = 1;
+ break;
+ }
+ }
+ });
+ c && (a.nr.forEach(function (a) {
+ var z21;
+ z21 = 2;
+ for (; z21 !== 1; ) {
+ switch (z21) {
+ case 2:
+ b.nr[a.id] = void 0;
+ z21 = 1;
+ break;
+ }
+ }
+ }), b.Fm[a.id] = void 0, a.parent = void 0, a.children.length = 0, a.pc = {});
+ return !c;
+ break;
+ }
+ }
+ });
+ a.forEach(function (a) {
+ var A21;
+ A21 = 2;
+ for (; A21 !== 1; ) {
+ switch (A21) {
+ case 2:
+ a.nr.sort(function (a, b) {
+ var B21;
+ B21 = 2;
+ for (; B21 !== 1; ) {
+ switch (B21) {
+ case 2:
+ return a.Yf - b.Yf;
+ break;
+ }
+ }
+ });
+ A21 = 1;
+ break;
+ }
+ }
+ });
+ r21 = 14;
+ break;
+ }
+ }
+ };
+ b.prototype.ZJ = function (a, b) {
+ var C21,
+ c,
+ d,
+ h,
+ k,
+ g,
+ m;
+ C21 = 2;
+ for (; C21 !== 19; ) {
+ switch (C21) {
+ case 2:
+ (c = this, d = this.config, h = this.zb.get(), k = 0);
+ n.my && n.my(a);
+ C21 = 5;
+ break;
+ case 5:
+ C21 = r(this.Km) ? 4 : 3;
+ break;
+ case 14:
+ return (this.Bp(u.zg.fu, !1), !1);
+ break;
+ case 4:
+ return !1;
+ break;
+ case 3:
+ g = u.Xe.oA;
+ d.hQ && (g = u.Xe.nA);
+ this.zb.location && h.Dd >= g && (a = this.Fm[this.zb.location]) && (a.qb = h);
+ f.Pa(this.sJ) && (this.sJ = this.cNb());
+ C21 = 6;
+ break;
+ case 13:
+ m = this.sJ;
+ C21 = 12;
+ break;
+ case 12:
+ C21 = !m.length ? 11 : 10;
+ break;
+ case 11:
+ return (this.Bp(u.zg.fu, !1), !1);
+ break;
+ case 10:
+ var j5E = "(empt";
+ j5E += "y stream";
+ j5E += " li";
+ j5E += "st";
+ j5E += ")";
+ var a5E = "Did not ";
+ a5E += "f";
+ a5E += "ind a";
+ a5E += " URL fo";
+ a5E += "r ANY stream...";
+ var b5E = "ne";
+ b5E += "twork";
+ b5E += "Fai";
+ b5E += "le";
+ b5E += "d";
+ var A5E = "Network has failed, not updating stream";
+ A5E += " selecti";
+ A5E += "on";
+ b.forEach(function (a, b) {
+ var D21,
+ l;
+ D21 = 2;
+ for (; D21 !== 5; ) {
+ switch (D21) {
+ case 2:
+ var F5E = " K";
+ F5E += "b";
+ F5E += "p";
+ F5E += "s)";
+ var k5E = " ";
+ k5E += "(";
+ var J5E = "]";
+ J5E += " ";
+ var G5E = "Fail";
+ G5E += "ing ";
+ G5E += "st";
+ G5E += "ream [";
+ l = a.id;
+ m.some(function (b) {
+ var E21,
+ c,
+ k;
+ E21 = 2;
+ for (; E21 !== 8; ) {
+ switch (E21) {
+ case 2:
+ c = b.pc[l];
+ E21 = 1;
+ break;
+ case 1:
+ E21 = !c ? 5 : 4;
+ break;
+ case 4:
+ k = c.Fm[0];
+ void 0 === a.s2 && (a.s2 = k.id, a.yma = c.vS[k.id][0].Ac.id);
+ return c.vS[b.id].some(function (c) {
+ var F21,
+ l;
+ F21 = 2;
+ for (; F21 !== 12; ) {
+ switch (F21) {
+ case 4:
+ return !1;
+ break;
+ case 2:
+ F21 = r(c.Ac) ? 1 : 5;
+ break;
+ case 3:
+ var y5E = "locat";
+ y5E += "ion";
+ y5E += "fa";
+ y5E += "ilove";
+ y5E += "r";
+ var B5E = "s";
+ B5E += "er";
+ B5E += "verfail";
+ B5E += "over";
+ var H5E = "p";
+ H5E += "er";
+ H5E += "f";
+ H5E += "orm";
+ H5E += "ance";
+ var T5E = "u";
+ T5E += "n";
+ T5E += "k";
+ T5E += "no";
+ T5E += "wn";
+ l = T5E;
+ a.location !== b.id && (d.er ? a.hja = b.id === k.id : l = b !== m[0] ? "" + u.Rg.Z4 : void 0 === a.location ? "" + u.Rg.mu : f.X(a.OOa) || a.OOa === b.id ? f.X(a.POa) || a.POa === c.Ac.id ? H5E : B5E : y5E, a.location = b.id, a.Mja = b.level, a.Ip = l);
+ a.url = c.url;
+ F21 = 7;
+ break;
+ case 7:
+ a.Ac = c.Ac.id;
+ a.MD = c.Ac.name;
+ a.qb = d.Gca ? b.qb.Dd >= u.Xe.nA || h.Dd < g ? b.qb : h : h.Dd === u.Xe.HAVE_NOTHING || b.qb.Dd >= u.Xe.nA ? b.qb : h;
+ return !0;
+ break;
+ case 1:
+ return (c.Ac.se === t.TEMPORARY && (a.se = t.TEMPORARY), d.er && a.Ac === c.Ac.id && c.Ac.pt && (a.pt = c.Ac.pt), !1);
+ break;
+ case 5:
+ F21 = r(c) ? 4 : 3;
+ break;
+ }
+ }
+ });
+ break;
+ case 5:
+ return !1;
+ break;
+ }
+ }
+ }) ? (a.Ky = !1, a.se = void 0, a.Ps && ++k) : a.se && a.se === t.TEMPORARY ? c.Km.se = t.TEMPORARY : a.Ky || (q.warn(G5E + b + J5E + l + k5E + a.R + F5E), a.zgb(), a.Ky = !0);
+ D21 = 5;
+ break;
+ }
+ }
+ });
+ return r(this.Km) ? (q.warn(A5E), this.x1 = !0, this.emit(b5E, this.Km.se === t.Cj), !1) : k ? !0 : (q.warn(a5E + (b.length ? "" : j5E)), this.Bp(u.zg.fu, !0), !1);
+ break;
+ case 6:
+ C21 = !this.sJ ? 14 : 13;
+ break;
+ }
+ }
+ };
+ j21 = 14;
+ break;
+ case 14:
+ b.prototype.vIb = function (a, b) {
+ var G21,
+ c,
+ d;
+ G21 = 2;
+ for (; G21 !== 4; ) {
+ switch (G21) {
+ case 2:
+ (c = {}, d = /^http(s?):\/\/([^\/:]+):?([0-9]*)/);
+ f.forEach(this.xe, function (h, k) {
+ var H21,
+ g,
+ m,
+ l,
+ p;
+ H21 = 2;
+ for (; H21 !== 8; ) {
+ switch (H21) {
+ case 5:
+ H21 = m && 4 === m.length ? 4 : 8;
+ break;
+ case 2:
+ h = h.parent ? h.parent.id : "";
+ (g = c[h], m = k.match(d));
+ H21 = 5;
+ break;
+ case 4:
+ var c5E = "8";
+ c5E += "0";
+ var R5E = "4";
+ R5E += "4";
+ R5E += "3";
+ (l = "s" === m[1], p = m[2], m = m[3]);
+ m.length || (m = l ? R5E : c5E);
+ f.Td(p) && f.Td(m) && p === a && m == b && (g ? g.push(k) : c[h] = [k]);
+ H21 = 8;
+ break;
+ }
+ }
+ });
+ return c;
+ break;
+ }
+ }
+ };
+ b.prototype.Bp = function (a, b, f, d) {
+ var I21,
+ J21,
+ g,
+ m,
+ l;
+ I21 = 2;
+ for (; I21 !== 25; ) {
+ switch (I21) {
+ case 17:
+ I21 = J21 === t.TEMPORARY ? 6 : 16;
+ break;
+ case 26:
+ var V5E = "Unable to find ";
+ V5E += "failure ent";
+ V5E += "ity for URL ";
+ a000.o4P(3);
+ q.warn(a000.X4P(f, V5E));
+ I21 = 25;
+ break;
+ case 27:
+ var x5E = "Inval";
+ x5E += "id ";
+ x5E += "f";
+ x5E += "ail";
+ x5E += "ure state";
+ throw Error(x5E);
+ I21 = 6;
+ break;
+ case 9:
+ var M5E = " : w";
+ M5E += "a";
+ M5E += "s ";
+ var s5E = " ";
+ s5E += "a";
+ s5E += "t";
+ s5E += " ";
+ var o5E = " failur";
+ o5E += "e";
+ o5E += " reported ";
+ o5E += "for";
+ o5E += " ";
+ var X5E = "T";
+ X5E += "E";
+ X5E += "M";
+ X5E += "P";
+ var t5E = "P";
+ t5E += "E";
+ t5E += "R";
+ t5E += "M";
+ q.warn((b ? t5E : X5E) + o5E + u.zg.name[a] + s5E + k(g) + M5E + h(g));
+ I21 = 8;
+ break;
+ case 6:
+ var m5E = "n";
+ m5E += "etworkFa";
+ m5E += "iled";
+ var Z5E = "Emit";
+ Z5E += "ting net";
+ Z5E += "workFai";
+ Z5E += "led, permanent =";
+ g.se = l;
+ c(g);
+ this.x1 = this.x1 || r(this.Km);
+ a = this.Km.se;
+ a > m && (q.warn(Z5E, a === t.Cj), this.emit(m5E, a === t.Cj));
+ this.sJ = null;
+ I21 = 20;
+ break;
+ case 4:
+ I21 = g ? 3 : 26;
+ break;
+ case 1:
+ I21 = g && g.parent && g.gC !== a ? 5 : 4;
+ break;
+ case 8:
+ J21 = g.se;
+ I21 = J21 === t.Cj ? 7 : 17;
+ break;
+ case 2:
+ (g = a !== u.zg.fu && f ? this.xe[f] : this.Km, m = this.Km.se, l = b ? t.Cj : t.TEMPORARY);
+ I21 = 1;
+ break;
+ case 16:
+ I21 = J21 === t.xk ? 6 : 15;
+ break;
+ case 3:
+ I21 = l !== g.se ? 9 : 25;
+ break;
+ case 20:
+ this.tJ = u.Rg.ERROR;
+ d && (this.tJ = u.Rg.T5a, g.pt = d);
+ this.dump();
+ I21 = 25;
+ break;
+ case 5:
+ g = g.parent;
+ I21 = 1;
+ break;
+ case 15:
+ I21 = 27;
+ break;
+ case 7:
+ return;
+ break;
+ }
+ }
+ };
+ b.prototype.JUa = function (a, b) {
+ var K21;
+ K21 = 2;
+ for (; K21 !== 3; ) {
+ switch (K21) {
+ case 5:
+ this.sJ = null;
+ this.tJ = u.Rg.u8;
+ K21 = 3;
+ break;
+ case 2:
+ K21 = (a = this.nr[a]) ? 1 : 5;
+ break;
+ case 1:
+ (p(a, b), g(a));
+ K21 = 5;
+ break;
+ case 7:
+ (p(a, b), g(a));
+ K21 = 6;
+ break;
+ K21 = 5;
+ break;
+ }
+ }
+ };
+ b.prototype.V2 = function () {
+ var L21;
+ L21 = 2;
+ for (; L21 !== 1; ) {
+ switch (L21) {
+ case 2:
+ p(this.Km, !1);
+ L21 = 1;
+ break;
+ }
+ }
+ };
+ j21 = 10;
+ break;
+ case 10:
+ b.prototype.Ol = function (a) {
+ var M21,
+ b;
+ M21 = 2;
+ for (; M21 !== 5; ) {
+ switch (M21) {
+ case 2:
+ null === (b = this.w$a) || void 0 === b ? void 0 : b.call(this, a);
+ M21 = 5;
+ break;
+ }
+ }
+ };
+ b.prototype.Rk = function () {
+ var N21;
+ N21 = 2;
+ for (; N21 !== 1; ) {
+ switch (N21) {
+ case 2:
+ this.BGb(C.g6a);
+ N21 = 1;
+ break;
+ }
+ }
+ };
+ b.prototype.ic = function () {
+ var O21;
+ O21 = 2;
+ for (; O21 !== 1; ) {
+ switch (O21) {
+ case 2:
+ this.config.Axb && this.LCb();
+ O21 = 1;
+ break;
+ }
+ }
+ };
+ b.prototype.rTa = function (a) {
+ var P21,
+ b;
+ P21 = 2;
+ for (; P21 !== 5; ) {
+ switch (P21) {
+ case 2:
+ b = this;
+ a.streams.forEach(function (a) {
+ var Q21,
+ c,
+ d,
+ h;
+ Q21 = 2;
+ for (; Q21 !== 7; ) {
+ switch (Q21) {
+ case 3:
+ a.urls.forEach(function (a) {
+ var R21,
+ c,
+ h,
+ k;
+ R21 = 2;
+ for (; R21 !== 14; ) {
+ switch (R21) {
+ case 2:
+ (c = a.url, h = b.xe[c]);
+ R21 = 1;
+ break;
+ case 1:
+ R21 = f.X(h) && (a = b.nr[a.cdn_id]) ? 5 : 14;
+ break;
+ case 5:
+ (k = a.location, h = {
+ id: c,
+ gC: u.zg.URL,
+ se: t.xk,
+ pt: void 0,
+ parent: a,
+ children: [],
+ url: c,
+ Ac: a,
+ stream: d
+ });
+ b.xe[c] = h;
+ a.children.push(h);
+ R21 = 9;
+ break;
+ case 6:
+ (c = d.vS[k.id]) ? c.push(h) : d.vS[k.id] = [h];
+ R21 = 14;
+ break;
+ case 9:
+ d.xe.push(h);
+ 0 === d.Fm.filter(function (a) {
+ var S21;
+ S21 = 2;
+ for (; S21 !== 1; ) {
+ switch (S21) {
+ case 2:
+ return a.id === k.id;
+ break;
+ case 4:
+ return a.id == k.id;
+ break;
+ S21 = 1;
+ break;
+ }
+ }
+ }).length && d.Fm.push(k);
+ k.pc[d.id] = d;
+ R21 = 6;
+ break;
+ }
+ }
+ });
+ f.ee(d.vS, function (a) {
+ var T21;
+ T21 = 2;
+ for (; T21 !== 1; ) {
+ switch (T21) {
+ case 2:
+ a.sort(function (a, b) {
+ var U21;
+ U21 = 2;
+ for (; U21 !== 1; ) {
+ switch (U21) {
+ case 4:
+ return a.Ac.Yf % b.Ac.Yf;
+ break;
+ U21 = 1;
+ break;
+ case 2:
+ return a.Ac.Yf - b.Ac.Yf;
+ break;
+ }
+ }
+ });
+ T21 = 1;
+ break;
+ }
+ }
+ });
+ d.Fm = d.Fm.sort(function (a, b) {
+ var V21;
+ V21 = 2;
+ for (; V21 !== 1; ) {
+ switch (V21) {
+ case 2:
+ return a.level - b.level || a.Yf - b.Yf;
+ break;
+ }
+ }
+ });
+ Q21 = 7;
+ break;
+ case 1:
+ Q21 = f.X(d) ? 5 : 3;
+ break;
+ case 2:
+ (c = a.downloadable_id, d = b.pc[c]);
+ Q21 = 1;
+ break;
+ case 4:
+ b.pc[d.id] = d;
+ Q21 = 3;
+ break;
+ case 5:
+ var N5E = "no";
+ N5E += "n";
+ N5E += "e";
+ N5E += "-";
+ (h = a.content_profile, d = {
+ id: c,
+ R: a.bitrate,
+ Bb: a.vmaf,
+ type: a.type,
+ profile: h,
+ clear: 0 === h.indexOf(N5E),
+ Ps: !0,
+ xe: [],
+ vS: {},
+ Fm: []
+ });
+ Q21 = 4;
+ break;
+ }
+ }
+ });
+ P21 = 5;
+ break;
+ }
+ }
+ };
+ j21 = 17;
+ break;
+ case 27:
+ b.prototype.dump = function () {};
+ return b;
+ break;
+ case 17:
+ b.prototype.cNb = function () {
+ var W21,
+ d,
+ a,
+ b,
+ c;
+ W21 = 2;
+ for (; W21 !== 13; ) {
+ switch (W21) {
+ case 9:
+ (c.forEach(function (b) {
+ var Y21;
+ Y21 = 2;
+ for (; Y21 !== 1; ) {
+ switch (Y21) {
+ case 2:
+ b.id !== a.zb.location && (b.qb = a.Mf.get(b.id));
+ Y21 = 1;
+ break;
+ }
+ }
+ }), this.iW = d);
+ W21 = 8;
+ break;
+ case 4:
+ d = n.time.ea();
+ W21 = 3;
+ break;
+ case 1:
+ W21 = 0 === c.length ? 5 : 4;
+ break;
+ case 2:
+ (a = this, b = this.config, c = this.fw.filter(function (a) {
+ var X21;
+ X21 = 2;
+ for (; X21 !== 1; ) {
+ switch (X21) {
+ case 2:
+ return !r(a) && 0 !== a.level;
+ break;
+ }
+ }
+ }));
+ W21 = 1;
+ break;
+ case 5:
+ return null;
+ break;
+ case 3:
+ W21 = null === this.iW || this.iW + b.Lja < d ? 9 : 8;
+ break;
+ case 8:
+ b = this.tJ;
+ c.sort(function (a, b) {
+ var Z21;
+ Z21 = 2;
+ for (; Z21 !== 1; ) {
+ switch (Z21) {
+ case 2:
+ return a.level - b.level || a.Yf - b.Yf;
+ break;
+ }
+ }
+ });
+ this.Ss || f.Pa(b) || (this.Ss = !0);
+ return c;
+ break;
+ }
+ }
+ };
+ b.prototype.BGb = function (a) {
+ var a31,
+ b;
+ a31 = 2;
+ for (; a31 !== 3; ) {
+ switch (a31) {
+ case 2:
+ b = this.zb.location;
+ this.Ss = !1;
+ this.pEb = a;
+ a31 = 4;
+ break;
+ case 4:
+ this.fw.forEach(function (a) {
+ var b31;
+ b31 = 2;
+ for (; b31 !== 1; ) {
+ switch (b31) {
+ case 2:
+ a.id !== b && a.qb && a.qb.Dd > u.Xe.oA && (a.qb.Dd = u.Xe.oA);
+ b31 = 1;
+ break;
+ }
+ }
+ });
+ a31 = 3;
+ break;
+ }
+ }
+ };
+ b.prototype.LCb = function () {
+ var c31,
+ a;
+ c31 = 2;
+ for (; c31 !== 5; ) {
+ switch (c31) {
+ case 2:
+ a = this;
+ this.x1 || this.fw.forEach(function (b) {
+ var d31;
+ d31 = 2;
+ for (; d31 !== 1; ) {
+ switch (d31) {
+ case 2:
+ b.se === t.TEMPORARY && a.Mf.fail(b.id, n.time.ea());
+ d31 = 1;
+ break;
+ }
+ }
+ });
+ c31 = 5;
+ break;
+ }
+ }
+ };
+ j21 = 27;
+ break;
+ }
+ }
+ function b(b, c, f, d, h) {
+ var k21,
+ k;
+ k21 = 2;
+ for (; k21 !== 27; ) {
+ switch (k21) {
+ case 2:
+ k = a.call(this) || this;
+ k.zb = c;
+ k.Mf = f;
+ k.config = d;
+ k21 = 3;
+ break;
+ case 7:
+ k.Fm = {};
+ k.nr = {};
+ k.xe = {};
+ k21 = 13;
+ break;
+ case 13:
+ var Y5E = "ne";
+ Y5E += "tw";
+ Y5E += "o";
+ Y5E += "r";
+ Y5E += "k";
+ k.pc = {};
+ k.fw = [];
+ k.x1 = !1;
+ k.Km = {
+ id: Y5E,
+ gC: u.zg.fu,
+ se: t.xk,
+ pt: void 0,
+ parent: void 0,
+ children: k.fw
+ };
+ k.iW = null;
+ k21 = 19;
+ break;
+ case 3:
+ k.w$a = h;
+ k.pEb = C.mu;
+ k.Ss = void 0;
+ k21 = 7;
+ break;
+ case 19:
+ k.sJ = null;
+ k.tJ = u.Rg.mu;
+ k.Nla(b);
+ k21 = 16;
+ break;
+ case 16:
+ var l5E = "1SIYb";
+ l5E += "ZrN";
+ l5E += "JC";
+ l5E += "p9";
+ l5E;
+ return k;
+ break;
+ }
+ }
+ }
+ })(d.EventEmitter);
+ b.bU = a;
+ }, function (d) {
+ var b,
+ a,
+ c;
+ b = Object.getOwnPropertySymbols;
+ a = Object.prototype.hasOwnProperty;
+ c = Object.prototype.propertyIsEnumerable;
+ d.P = (function () {
+ var a,
+ c;
+ try {
+ if (!Object.assign)
+ return !1;
+ a = new String("abc");
+ a[5] = "de";
+ if ("5" === Object.getOwnPropertyNames(a)[0])
+ return !1;
+ for (var b = {}, a = 0; 10 > a; a++) {
+ b["_" + String.fromCharCode(a)] = a;
+ }
+ if ("0123456789" !== Object.getOwnPropertyNames(b).map(function (a) {
+ return b[a];
+ }).join(""))
+ return !1;
+ c = {};
+ ("abcdefghijklmnopqrst").split("").forEach(function (a) {
+ c[a] = a;
+ });
+ return "abcdefghijklmnopqrst" !== Object.keys(Object.assign({}, c)).join("") ? !1 : !0;
+ } catch (h) {
+ return !1;
+ }
+ })() ? Object.assign : function (d, g) {
+ var k,
+ h;
+ if (null === d || void 0 === d)
+ throw new TypeError("Object.assign cannot be called with null or undefined");
+ h = Object(d);
+ for (var l, m = 1; m < arguments.length; m++) {
+ k = Object(arguments[m]);
+ for (var f in k) {
+ a.call(k, f) && (h[f] = k[f]);
+ }
+ if (b) {
+ l = b(k);
+ for (var u = 0; u < l.length; u++) {
+ c.call(k, l[u]) && (h[l[u]] = k[l[u]]);
+ }
+ }
+ }
+ return h;
+ };
+ }, function (d, b, a) {
+ (function (b) {
+ var G,
+ T,
+ S,
+ z,
+ Z,
+ B,
+ V,
+ E;
+ function c(a, b) {
+ if (a === b)
+ return 0;
+ for (var c = a.length, f = b.length, d = 0, h = Math.min(c, f); d < h; ++d) {
+ if (a[d] !== b[d]) {
+ c = a[d];
+ f = b[d];
+ break;
+ }
+ }
+ return c < f ? -1 : f < c ? 1 : 0;
+ }
+ function g(a) {
+ return b.Fra && "function" === typeof b.Fra.isBuffer ? b.Fra.isBuffer(a) : !(null == a || !a.jWb);
+ }
+ function r(a) {
+ return g(a) || "function" !== typeof b.ArrayBuffer ? !1 : "function" === typeof ArrayBuffer.isView ? ArrayBuffer.isView(a) : a ? a instanceof DataView || a.buffer && a.buffer instanceof ArrayBuffer ? !0 : !1 : !1;
+ }
+ function h(a) {
+ if (T.Zb(a))
+ return Z ? a.name : (a = a.toString().match(V)) && a[1];
+ }
+ function p(a) {
+ return "string" === typeof a ? 128 > a.length ? a : a.slice(0, 128) : a;
+ }
+ function m(a) {
+ if (Z || !T.Zb(a))
+ return T.uP(a);
+ a = h(a);
+ return "[Function" + (a ? ": " + a : "") + "]";
+ }
+ function f(a, b, c, f, d) {
+ throw new B.AssertionError({
+ message: c,
+ nG: a,
+ xq: b,
+ KI: f,
+ fKb: d
+ });
+ }
+ function u(a, b) {
+ a || f(a, !0, b, "==", B.ok);
+ }
+ function n(a, b, f, d) {
+ var h;
+ if (a === b)
+ return !0;
+ if (g(a) && g(b))
+ return 0 === c(a, b);
+ if (T.f0(a) && T.f0(b))
+ return a.getTime() === b.getTime();
+ if (T.pOa(a) && T.pOa(b))
+ return a.source === b.source && a.global === b.global && a.multiline === b.multiline && a.lastIndex === b.lastIndex && a.ignoreCase === b.ignoreCase;
+ if (null !== a && "object" === typeof a || null !== b && "object" === typeof b) {
+ if (!r(a) || !r(b) || Object.prototype.toString.call(a) !== Object.prototype.toString.call(b) || a instanceof Float32Array || a instanceof Float64Array) {
+ if (g(a) !== g(b))
+ return !1;
+ d = d || ({
+ nG: [],
+ xq: []
+ });
+ h = d.nG.indexOf(a);
+ if (-1 !== h && h === d.xq.indexOf(b))
+ return !0;
+ d.nG.push(a);
+ d.xq.push(b);
+ return q(a, b, f, d);
+ }
+ return 0 === c(new Uint8Array(a.buffer), new Uint8Array(b.buffer));
+ }
+ return f ? a === b : a == b;
+ }
+ function q(a, b, c, f) {
+ var d,
+ h,
+ k;
+ if (null === a || void 0 === a || null === b || void 0 === b)
+ return !1;
+ if (T.lOa(a) || T.lOa(b))
+ return a === b;
+ if (c && Object.getPrototypeOf(a) !== Object.getPrototypeOf(b))
+ return !1;
+ d = "[object Arguments]" == Object.prototype.toString.call(a);
+ h = "[object Arguments]" == Object.prototype.toString.call(b);
+ if (d && !h || !d && h)
+ return !1;
+ if (d)
+ return (a = z.call(a), b = z.call(b), n(a, b, c));
+ d = E(a);
+ k = E(b);
+ if (d.length !== k.length)
+ return !1;
+ d.sort();
+ k.sort();
+ for (h = d.length - 1; 0 <= h; h--) {
+ if (d[h] !== k[h])
+ return !1;
+ }
+ for (h = d.length - 1; 0 <= h; h--) {
+ if ((k = d[h], !n(a[k], b[k], c, f)))
+ return !1;
+ }
+ return !0;
+ }
+ function t(a, b, c) {
+ n(a, b, !0) && f(a, b, c, "notDeepStrictEqual", t);
+ }
+ function C(a, b) {
+ if (!a || !b)
+ return !1;
+ if ("[object RegExp]" == Object.prototype.toString.call(b))
+ return b.test(a);
+ try {
+ if (a instanceof b)
+ return !0;
+ } catch (pa) {}
+ return Error.isPrototypeOf(b) ? !1 : !0 === b.call({}, a);
+ }
+ function M(a, b, c, d) {
+ var h,
+ k,
+ g;
+ if ("function" !== typeof b)
+ throw new TypeError('"block" argument must be a function');
+ "string" === typeof c && (d = c, c = null);
+ try {
+ b();
+ } catch (P) {
+ h = P;
+ }
+ b = h;
+ d = (c && c.name ? " (" + c.name + ")." : ".") + (d ? " " + d : ".");
+ a && !b && f(b, c, "Missing expected exception" + d);
+ h = "string" === typeof d;
+ k = !a && T.vP(b);
+ g = !a && b && !c;
+ (k && h && C(b, c) || g) && f(b, c, "Got unwanted exception" + d);
+ if (a && b && c && !C(b, c) || !a && b)
+ throw b;
+ }
+ function H(a, b) {
+ a || f(a, !0, b, "==", H);
+ }
+ G = a(858);
+ T = a(480);
+ S = Object.prototype.hasOwnProperty;
+ z = Array.prototype.slice;
+ Z = (function () {
+ return "foo" === (function () {}).name;
+ })();
+ B = d.P = u;
+ V = /\s*function\s+([^\(\s]*)\s*/;
+ B.AssertionError = function (a) {
+ var b;
+ this.name = "AssertionError";
+ this.nG = a.nG;
+ this.xq = a.xq;
+ this.KI = a.KI;
+ this.message = a.message ? a.message : p(m(this.nG)) + " " + this.KI + " " + p(m(this.xq));
+ b = a.fKb || f;
+ Error.captureStackTrace ? Error.captureStackTrace(this, b) : (a = Error(), a.stack && (a = a.stack, b = h(b), b = a.indexOf("\n" + b), 0 <= b && (a = a.substring(a.indexOf("\n", b + 1) + 1)), this.stack = a));
+ };
+ T.Hub(B.AssertionError, Error);
+ B.fail = f;
+ B.ok = u;
+ B.equal = function (a, b, c) {
+ a != b && f(a, b, c, "==", B.equal);
+ };
+ B.eD = function (a, b, c) {
+ a == b && f(a, b, c, "!=", B.eD);
+ };
+ B.YHa = function (a, b, c) {
+ n(a, b, !1) || f(a, b, c, "deepEqual", B.YHa);
+ };
+ B.ZHa = function (a, b, c) {
+ n(a, b, !0) || f(a, b, c, "deepStrictEqual", B.ZHa);
+ };
+ B.iRa = function (a, b, c) {
+ n(a, b, !1) && f(a, b, c, "notDeepEqual", B.iRa);
+ };
+ B.qAb = t;
+ B.RWa = function (a, b, c) {
+ a !== b && f(a, b, c, "===", B.RWa);
+ };
+ B.jRa = function (a, b, c) {
+ a === b && f(a, b, c, "!==", B.jRa);
+ };
+ B["throws"] = function (a, b, c) {
+ M(!0, a, b, c);
+ };
+ B.TXb = function (a, b, c) {
+ M(!1, a, b, c);
+ };
+ B.bZb = function (a) {
+ if (a)
+ throw a;
+ };
+ B.apa = G(H, B, {
+ equal: B.RWa,
+ YHa: B.ZHa,
+ eD: B.jRa,
+ iRa: B.qAb
+ });
+ B.apa.apa = B.apa;
+ E = Object.keys || (function (a) {
+ var b,
+ c;
+ b = [];
+ for (c in a) {
+ S.call(a, c) && b.push(c);
+ }
+ return b;
+ });
+ }).call(this, a(144));
+ }, function (d, b, a) {
+ var c;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Yra = void 0;
+ c = a(402);
+ d = (function () {
+ var e31;
+ e31 = 2;
+ function a() {
+ var f31;
+ f31 = 2;
+ for (; f31 !== 5; ) {
+ switch (f31) {
+ case 2:
+ var d5E = "1";
+ d5E += "S";
+ d5E += "IYbZrNJCp9";
+ this.uW = {};
+ d5E;
+ f31 = 5;
+ break;
+ case 3:
+ this.uW = {};
+ "";
+ f31 = 0;
+ break;
+ f31 = 5;
+ break;
+ }
+ }
+ }
+ for (; e31 !== 9; ) {
+ switch (e31) {
+ case 2:
+ a.prototype.add = function (a, b, d, k) {
+ var g31,
+ h;
+ g31 = 2;
+ for (; g31 !== 4; ) {
+ switch (g31) {
+ case 2:
+ h = this.uW;
+ void 0 === h[k] && (h[k] = new c());
+ h[k].add(a, b, d);
+ g31 = 4;
+ break;
+ }
+ }
+ };
+ a.prototype.start = function (a, b) {
+ var h31,
+ d;
+ h31 = 2;
+ for (; h31 !== 4; ) {
+ switch (h31) {
+ case 2:
+ d = this.uW;
+ void 0 === d[b] && (d[b] = new c());
+ d[b].start(a);
+ h31 = 4;
+ break;
+ }
+ }
+ };
+ a.prototype.stop = function (a, b) {
+ var i31,
+ c;
+ i31 = 2;
+ for (; i31 !== 5; ) {
+ switch (i31) {
+ case 2:
+ c = this.uW;
+ void 0 !== c[b] && c[b].stop(a);
+ i31 = 5;
+ break;
+ }
+ }
+ };
+ e31 = 4;
+ break;
+ case 4:
+ a.prototype.get = function () {
+ var j31,
+ a,
+ b,
+ c,
+ d,
+ k,
+ f;
+ j31 = 2;
+ for (; j31 !== 8; ) {
+ switch (j31) {
+ case 2:
+ (a = this.uW, b = Object.keys(a), c = [], d = 0);
+ j31 = 1;
+ break;
+ case 5:
+ (k = b[d], f = a[k].get());
+ f && c.push({
+ cdnid: k,
+ avtp: f.Ca,
+ tm: f.GY
+ });
+ j31 = 3;
+ break;
+ case 9:
+ return c;
+ break;
+ case 3:
+ d++;
+ j31 = 1;
+ break;
+ case 1:
+ j31 = d < b.length ? 5 : 9;
+ break;
+ }
+ }
+ };
+ return a;
+ break;
+ }
+ }
+ })();
+ b.Yra = d;
+ }, function (d, b, a) {
+ var c;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Gta = void 0;
+ c = a(860);
+ new(a(4).Console)("ASEJS_ENDPOINT_ACTIVITY", "media|asejs");
+ d = (function () {
+ var k31;
+ k31 = 2;
+ for (; k31 !== 7; ) {
+ switch (k31) {
+ case 8:
+ return a;
+ break;
+ case 4:
+ a.prototype.Yx = function (a, b, c, d) {
+ var p31;
+ p31 = 2;
+ for (; p31 !== 1; ) {
+ switch (p31) {
+ case 2:
+ d.re && (this.yia ? this.Pz.add(a, b, c, d.re) : this.QM === d.re && this.Pz.add(a, b, c, d.re));
+ p31 = 1;
+ break;
+ }
+ }
+ };
+ a.prototype.Cm = function () {
+ var q31;
+ q31 = 2;
+ for (; q31 !== 1; ) {
+ switch (q31) {
+ case 4:
+ return this.Pz.get();
+ break;
+ q31 = 1;
+ break;
+ case 2:
+ return this.Pz.get();
+ break;
+ }
+ }
+ };
+ a.prototype.wYa = function (a) {
+ var r31,
+ b,
+ c;
+ r31 = 2;
+ for (; r31 !== 5; ) {
+ switch (r31) {
+ case 2:
+ (b = Object.keys(this.tv), c = this.tv[b[0]]);
+ 1 === b.length && !1 === c.kZ ? (this.Pz.start(a, c.re), this.QM = c.re) : 1 < b.length && this.QM && (b = this.tv[this.QM], this.Pz.stop(a, this.QM), b.kZ = !1, this.QM = void 0);
+ r31 = 5;
+ break;
+ }
+ }
+ };
+ k31 = 8;
+ break;
+ case 2:
+ a.prototype.reset = function () {
+ var m31;
+ m31 = 2;
+ for (; m31 !== 1; ) {
+ switch (m31) {
+ case 2:
+ this.Pz = new c.Yra();
+ m31 = 1;
+ break;
+ case 4:
+ this.Pz = new c.Yra();
+ m31 = 7;
+ break;
+ m31 = 1;
+ break;
+ }
+ }
+ };
+ a.prototype.DD = function (a, b) {
+ var n31;
+ n31 = 2;
+ for (; n31 !== 1; ) {
+ switch (n31) {
+ case 2:
+ b.re && (this.yia ? this.Pz.start(a, b.re) : 1 === b.type && (this.tv[b.re] ? this.tv[b.re].ES += 1 : this.tv[b.re] = {
+ re: b.re,
+ ES: 1,
+ kZ: !1
+ }, this.wYa(a)));
+ n31 = 1;
+ break;
+ }
+ }
+ };
+ a.prototype.FD = function (a, b) {
+ var o31,
+ c;
+ o31 = 2;
+ for (; o31 !== 9; ) {
+ switch (o31) {
+ case 6:
+ o31 = this.yia ? 6 : 3;
+ break;
+ o31 = this.yia ? 5 : 4;
+ break;
+ case 2:
+ o31 = b.re ? 1 : 9;
+ break;
+ case 1:
+ o31 = this.yia ? 5 : 4;
+ break;
+ case 5:
+ this.Pz.stop(a, b.re);
+ o31 = 9;
+ break;
+ case 4:
+ c = this.tv[b.re];
+ 1 === b.type && c && (--c.ES, 0 === c.ES && (c.kZ && this.Pz.stop(a, b.re), c.kZ = !1, delete this.tv[b.re]), this.wYa(a));
+ o31 = 9;
+ break;
+ }
+ }
+ };
+ k31 = 4;
+ break;
+ }
+ }
+ function a(a) {
+ var l31;
+ l31 = 2;
+ for (; l31 !== 4; ) {
+ switch (l31) {
+ case 2:
+ var I5E = "1S";
+ I5E += "IY";
+ I5E += "bZ";
+ I5E += "rNJCp9";
+ this.yia = a;
+ this.tv = {};
+ I5E;
+ l31 = 4;
+ break;
+ }
+ }
+ }
+ })();
+ b.Gta = d;
+ }, function (d, b, a) {
+ var k;
+ function c(a) {
+ var b,
+ c;
+ b = a.sw;
+ c = a.mw;
+ this.jG = b;
+ this.J$ = {
+ uhd: a.uhdl,
+ hd: a.hdl
+ };
+ this.Ci = Math.max(Math.ceil(1 * b / c), 1);
+ this.d$a = a.mins || 1;
+ k.call(this, b, c);
+ this.reset();
+ }
+ k = a(165);
+ new(a(4).Console)("ASEJS_NETWORK_ENTROPY", "media|asejs");
+ c.prototype = Object.create(k.prototype);
+ c.prototype.flush = function () {
+ this.cd.map(function (a, b) {
+ this.zEa(a, this.sga(b));
+ }, this);
+ };
+ c.prototype.jfb = function () {
+ var a,
+ b,
+ c,
+ d,
+ k,
+ f,
+ g,
+ C;
+ a = this.J$;
+ for (b in a) {
+ if (a.hasOwnProperty(b)) {
+ c = a[b];
+ d = this.rba[b];
+ k = this.qba[b];
+ if (d.first) {
+ f = d.first;
+ g = d.uD;
+ void 0 !== g && (k[f][g] += 1);
+ d.first = void 0;
+ }
+ for (var d = [], f = 0, c = g = c.length + 1, n = 0; n < g; n++) {
+ for (var q = 0, t = 0; t < c; t++) {
+ q += k[t][n];
+ }
+ f += q;
+ d.push(q);
+ }
+ q = -1;
+ if (f > this.d$a) {
+ for (n = q = 0; n < g; n++) {
+ if (0 < d[n])
+ for (t = 0; t < c; t++) {
+ C = k[t][n];
+ 0 < C && (q -= C * Math.log(1 * C / d[n]));
+ }
+ }
+ q /= f * Math.log(2);
+ }
+ this.gaa[b] = q;
+ }
+ }
+ return this.gaa;
+ };
+ c.prototype.zEa = function (a, b) {
+ var c,
+ f,
+ g;
+ for (var c = this.Ci, d = this.J$; this.OV.length >= c; ) {
+ this.OV.shift();
+ }
+ for (; this.PV.length >= c; ) {
+ this.PV.shift();
+ }
+ this.OV.push(a);
+ this.PV.push(b);
+ a = this.OV.reduce(function (a, b) {
+ return a + b;
+ }, 0);
+ b = this.PV.reduce(function (a, b) {
+ return a + b;
+ }, 0);
+ if (0 < b) {
+ a = 8 * a / b;
+ for (var k in d) {
+ if (d.hasOwnProperty(k)) {
+ b = this.rba[k];
+ c = this.qba[k];
+ f = this.NEb(a, d[k]);
+ g = b.uD;
+ void 0 !== g ? c[f][g] += 1 : b.first = f;
+ b.uD = f;
+ }
+ }
+ }
+ };
+ c.prototype.NEb = function (a, b) {
+ for (var c = 0; c < b.length && a > b[c]; ) {
+ c += 1;
+ }
+ return c;
+ };
+ c.prototype.shift = function () {
+ this.zEa(this.cd[0], this.sga(0));
+ k.prototype.shift.call(this);
+ };
+ c.prototype.reset = function () {
+ var a,
+ b;
+ this.rba = {};
+ this.OV = [];
+ this.PV = [];
+ this.qba = {};
+ this.gaa = {};
+ a = this.J$;
+ for (b in a) {
+ if (a.hasOwnProperty(b)) {
+ for (var c = this.qba, d = b, g, f = void 0, u = Array(f), f = g = a[b].length + 1, n = 0; n < f; n++) {
+ u[n] = Array(g);
+ for (var q = 0; q < g; q++) {
+ u[n][q] = 0;
+ }
+ }
+ c[d] = u;
+ this.rba[b] = {
+ first: void 0,
+ uD: void 0
+ };
+ this.gaa[b] = 0;
+ }
+ }
+ k.prototype.reset.call(this);
+ };
+ d.P = c;
+ }, function (d, b, a) {
+ var k;
+ function c() {
+ this.zi = void 0;
+ this.Sx = 0;
+ }
+ k = a(8);
+ c.prototype.Wc = function () {
+ return 0 !== this.Sx && this.zi ? {
+ p25: this.zi.Sk,
+ p50: this.zi.sj,
+ p75: this.zi.Tk,
+ c: this.Sx
+ }
+ : null;
+ };
+ c.prototype.ke = function (a) {
+ if (!(!k.Pa(a) && k.has(a, "p25") && k.has(a, "p50") && k.has(a, "p75") && k.has(a, "c") && k.isFinite(a.p25) && k.isFinite(a.p50) && k.isFinite(a.p75) && k.isFinite(a.c)))
+ return (this.zi = void 0, this.Sx = 0, !1);
+ this.zi = {
+ Sk: a.p25,
+ sj: a.p50,
+ Tk: a.p75
+ };
+ this.Sx = a.c;
+ };
+ c.prototype.get = function () {
+ return {
+ d2: this.zi,
+ Fp: this.Sx
+ };
+ };
+ c.prototype.set = function (a, b) {
+ this.zi = a;
+ this.Sx = b;
+ };
+ c.prototype.reset = function () {
+ this.zi = void 0;
+ this.Sx = 0;
+ };
+ c.prototype.toString = function () {
+ return "IQRHist(" + this.zi + "," + this.Sx + ")";
+ };
+ d.P = c;
+ }, function (d, b, a) {
+ var k,
+ g,
+ r,
+ h,
+ p,
+ m,
+ f,
+ u,
+ n,
+ q;
+ function c(a) {
+ this.A8a = a;
+ }
+ b = a(406);
+ k = b.P1a;
+ g = b.N1a;
+ r = a(227).O1a;
+ h = a(227).r7a;
+ p = a(405);
+ m = a(404);
+ f = a(403).oAa;
+ u = a(863);
+ n = a(862);
+ q = a(402);
+ c.prototype.constructor = c;
+ c.prototype.create = function (a, b) {
+ var c,
+ d,
+ l,
+ w;
+ d = this.A8a[a];
+ l = b[a];
+ w = {};
+ d && Object.keys(d).forEach(function (a) {
+ w[a] = d[a];
+ });
+ l && Object.keys(l).forEach(function (a) {
+ w[a] = l[a];
+ });
+ switch (w.type) {
+ case "slidingwindow":
+ c = new r(w.mw);
+ break;
+ case "discontiguous-ewma":
+ c = new g(w.mw);
+ break;
+ case "wssl":
+ c = new h(w.mw, w.max_n);
+ break;
+ case "iqr":
+ c = new p(w.mx, w.mn, w.bw, w.iv);
+ break;
+ case "tdigest":
+ c = new m(w);
+ break;
+ case "discrete-ewma":
+ c = new k(w.hl);
+ break;
+ case "tdigest-history":
+ c = new f(w);
+ break;
+ case "iqr-history":
+ c = new u(w);
+ break;
+ case "avtp":
+ c = new q();
+ break;
+ case "entropy":
+ c = new n(w);
+ }
+ c && (c.type = w.type);
+ return c;
+ };
+ d.P = c;
+ }, function (d) {
+ function b(a) {
+ this.vF = a;
+ this.ae = 0;
+ this.eG = null;
+ }
+ b.prototype.add = function (a, b, d) {
+ null !== this.eG && b > this.eG && (this.ae += b - this.eG, this.eG = null);
+ this.vF.add(a, b - this.ae, d - this.ae, this.ae);
+ };
+ b.prototype.stop = function (a) {
+ null === this.eG && (this.eG = a);
+ };
+ b.prototype.qma = function (a, b) {
+ return this.vF.qma(a, b);
+ };
+ b.prototype.get = function () {
+ return this.vF.get();
+ };
+ b.prototype.reset = function () {
+ this.vF.reset();
+ };
+ b.prototype.toString = function () {
+ return this.vF.toString();
+ };
+ d.P = b;
+ }, function (d) {
+ function b(a, b, d) {
+ this.kG = a;
+ this.Ci = Math.floor((a + b - 1) / b);
+ this.Tc = b;
+ this.sab = d;
+ this.reset();
+ }
+ b.prototype.shift = function () {
+ this.cd.shift();
+ this.Xg.shift();
+ };
+ b.prototype.update = function (a, b) {
+ this.cd[a] += b;
+ };
+ b.prototype.push = function (a) {
+ this.cd.push(0);
+ this.Xg.push(a ? a : 0);
+ this.Ua += this.Tc;
+ };
+ b.prototype.add = function (a, b, d, g) {
+ var c,
+ h;
+ if (null === this.Ua) {
+ c = Math.max(Math.floor((d - b + this.Tc - 1) / this.Tc), 1);
+ for (this.Ua = b; this.cd.length < c; ) {
+ this.push(g);
+ }
+ }
+ for (; this.Ua < d; ) {
+ if ((this.push(g), this.sab))
+ for (; 1 < this.cd.length && d + g - (this.Ua - this.Tc * this.cd.length + this.Xg[0]) > this.kG; ) {
+ this.shift();
+ }
+ else
+ this.cd.length > this.Ci && this.shift();
+ }
+ if (b > this.Ua - this.Tc)
+ this.update(this.cd.length - 1, a);
+ else if (b == d)
+ (g = this.cd.length - Math.max(Math.ceil((this.Ua - d) / this.Tc), 1), 0 <= g && this.update(g, a));
+ else
+ for (g = 1; g <= this.cd.length; ++g) {
+ c = this.Ua - g * this.Tc;
+ h = c + this.Tc;
+ if (!(c > d)) {
+ if (h < b)
+ break;
+ this.update(this.cd.length - g, Math.round(a * (Math.min(h, d) - Math.max(c, b)) / (d - b)));
+ }
+ }
+ for (; this.cd.length > this.Ci; ) {
+ this.shift();
+ }
+ };
+ b.prototype.reset = function () {
+ this.cd = [];
+ this.Xg = [];
+ this.Ua = null;
+ };
+ b.prototype.setInterval = function (a) {
+ this.Ci = Math.floor((a + this.Tc - 1) / this.Tc);
+ };
+ d.P = b;
+ }, function (d, b, a) {
+ var g,
+ r,
+ h,
+ p;
+ function c(a, b, c) {
+ g.call(this, a, b, c);
+ }
+ function k(a, b) {
+ r.call(this, new c(a, b, !1));
+ }
+ g = a(866);
+ r = a(865);
+ h = a(111).ypb;
+ p = a(111).Rsb;
+ c.prototype = Object.create(g.prototype);
+ c.prototype.Ca = function () {
+ return Math.floor(8 * h(this.cd) / this.Tc);
+ };
+ c.prototype.Qh = function () {
+ return Math.floor(64 * p(this.cd) / (this.Tc * this.Tc));
+ };
+ c.prototype.get = function () {
+ return {
+ Ca: this.Ca(),
+ Qh: this.Qh(),
+ SWb: this.cd.length
+ };
+ };
+ c.prototype.toString = function () {
+ return "bsw(" + this.kG + "," + this.Tc + "," + this.Ci + ")";
+ };
+ k.prototype = Object.create(r.prototype);
+ k.prototype.setInterval = function (a) {
+ this.vF.setInterval(a);
+ };
+ d.P = k;
+ }, function (d, b, a) {
+ function c(a) {
+ this.data = a;
+ this.right = this.left = null;
+ }
+ function k(a) {
+ this.ce = null;
+ this.pl = a;
+ this.size = 0;
+ }
+ b = a(408);
+ c.prototype.og = function (a) {
+ return a ? this.right : this.left;
+ };
+ c.prototype.po = function (a, b) {
+ a ? this.right = b : this.left = b;
+ };
+ k.prototype = new b();
+ k.prototype.bo = function (a) {
+ if (null === this.ce)
+ return (this.ce = new c(a), this.size++, !0);
+ for (var b = 0, d = null, k = this.ce; ; ) {
+ if (null === k)
+ return (k = new c(a), d.po(b, k), ret = !0, this.size++, !0);
+ if (0 === this.pl(k.data, a))
+ return !1;
+ b = 0 > this.pl(k.data, a);
+ d = k;
+ k = k.og(b);
+ }
+ };
+ k.prototype.remove = function (a) {
+ var b,
+ d,
+ k,
+ l,
+ f;
+ if (null === this.ce)
+ return !1;
+ b = new c(void 0);
+ d = b;
+ d.right = this.ce;
+ for (var k = null, g = null, f = 1; null !== d.og(f); ) {
+ k = d;
+ d = d.og(f);
+ l = this.pl(a, d.data);
+ f = 0 < l;
+ 0 === l && (g = d);
+ }
+ return null !== g ? (g.data = d.data, k.po(k.right === d, d.og(null === d.left)), this.ce = b.right, this.size--, !0) : !1;
+ };
+ d.P = k;
+ }, function (d, b, a) {
+ function c(a) {
+ this.data = a;
+ this.right = this.left = null;
+ this.red = !0;
+ }
+ function k(a) {
+ this.ce = null;
+ this.pl = a;
+ this.size = 0;
+ }
+ function g(a) {
+ return null !== a && a.red;
+ }
+ function r(a, b) {
+ var c;
+ c = a.og(!b);
+ a.po(!b, c.og(b));
+ c.po(b, a);
+ a.red = !0;
+ c.red = !1;
+ return c;
+ }
+ function h(a, b) {
+ a.po(!b, r(a.og(!b), !b));
+ return r(a, b);
+ }
+ b = a(408);
+ c.prototype.og = function (a) {
+ return a ? this.right : this.left;
+ };
+ c.prototype.po = function (a, b) {
+ a ? this.right = b : this.left = b;
+ };
+ k.prototype = new b();
+ k.prototype.bo = function (a) {
+ var b,
+ f,
+ d,
+ k,
+ l,
+ p,
+ n,
+ q,
+ t;
+ b = !1;
+ if (null === this.ce)
+ (this.ce = new c(a), b = !0, this.size++);
+ else {
+ f = new c(void 0);
+ d = 0;
+ k = 0;
+ l = null;
+ p = f;
+ n = null;
+ q = this.ce;
+ for (p.right = this.ce; ; ) {
+ null === q ? (q = new c(a), n.po(d, q), b = !0, this.size++) : g(q.left) && g(q.right) && (q.red = !0, q.left.red = !1, q.right.red = !1);
+ if (g(q) && g(n)) {
+ t = p.right === l;
+ q === n.og(k) ? p.po(t, r(l, !k)) : p.po(t, h(l, !k));
+ }
+ t = this.pl(q.data, a);
+ if (0 === t)
+ break;
+ k = d;
+ d = 0 > t;
+ null !== l && (p = l);
+ l = n;
+ n = q;
+ q = q.og(d);
+ }
+ this.ce = f.right;
+ }
+ this.ce.red = !1;
+ return b;
+ };
+ k.prototype.remove = function (a) {
+ var b,
+ f,
+ n,
+ d,
+ q,
+ p,
+ t;
+ if (null === this.ce)
+ return !1;
+ b = new c(void 0);
+ f = b;
+ f.right = this.ce;
+ for (var d = null, k, l = null, p = 1; null !== f.og(p); ) {
+ n = p;
+ k = d;
+ d = f;
+ f = f.og(p);
+ q = this.pl(a, f.data);
+ p = 0 < q;
+ 0 === q && (l = f);
+ if (!g(f) && !g(f.og(p)))
+ if (g(f.og(!p)))
+ (k = r(f, p), d.po(n, k), d = k);
+ else if (!g(f.og(!p)) && (q = d.og(!n), null !== q))
+ if (g(q.og(!n)) || g(q.og(n))) {
+ t = k.right === d;
+ g(q.og(n)) ? k.po(t, h(d, n)) : g(q.og(!n)) && k.po(t, r(d, n));
+ n = k.og(t);
+ n.red = !0;
+ f.red = !0;
+ n.left.red = !1;
+ n.right.red = !1;
+ } else (d.red = !1, q.red = !0, f.red = !0);
+ }
+ null !== l && (l.data = f.data, d.po(d.right === f, f.og(null === f.left)), this.size--);
+ this.ce = b.right;
+ null !== this.ce && (this.ce.red = !1);
+ return null !== l;
+ };
+ d.P = k;
+ }, function (d, b, a) {
+ d.P = {
+ f6a: a(869),
+ gQb: a(868)
+ };
+ }, function (d, b, a) {
+ var c,
+ k,
+ g,
+ r,
+ h,
+ p,
+ m;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.tua = void 0;
+ c = a(0);
+ k = a(170);
+ g = a(409);
+ r = a(16);
+ h = a(4);
+ d = a(83);
+ p = a(399);
+ m = a(5);
+ a = (function (a) {
+ function b(b, c, f, d, h, k, g, m, l, p, u) {
+ var r;
+ r = a.call(this, b) || this;
+ r.dd = b;
+ r.u = c;
+ r.K = f;
+ r.Ol = d;
+ r.g_ = h;
+ r.Gq = k;
+ r.e0 = g;
+ r.wh = m;
+ r.GDa = l;
+ r.ng = p;
+ r.DCa = [void 0, void 0];
+ r.zba = [];
+ r.bM = null !== u && void 0 !== u ? u : {
+ Xr: [Object.create(null), Object.create(null)]
+ };
+ return r;
+ }
+ c.__extends(b, a);
+ Object.defineProperties(b.prototype, {
+ Xr: {
+ get: function () {
+ return this.bM.Xr;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ Dx: {
+ get: function () {
+ return this.bM.Dx;
+ },
+ set: function (a) {
+ this.bM.Dx = a;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ wF: {
+ get: function () {
+ return this.bM.wF;
+ },
+ set: function (a) {
+ this.bM.wF = a;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ b.prototype.yc = function () {
+ var a;
+ a = this;
+ this.Xr.forEach(function (b, c) {
+ for (var f in b) {
+ b[f].yc();
+ a.Cea(c, f);
+ }
+ });
+ };
+ b.prototype.nj = function (a, b) {
+ return this.Xr[a][b];
+ };
+ b.prototype.A_ = function () {
+ return !(!this.Dx || !this.Dx.length);
+ };
+ b.prototype.qda = function () {
+ this.Dx = void 0;
+ };
+ b.prototype.zJ = function (a) {
+ this.Dx = a;
+ };
+ b.prototype.Opa = function () {
+ var a,
+ b;
+ if (!this.A_() || this.wF)
+ return !1;
+ for (k.Xl.$n(1); 0 < this.Dx.length; ) {
+ a = this.Dx.shift();
+ b = this.dd.Hq(1, a);
+ if (b && !this.Ftb(a) && b.Pq)
+ return (this.wF = a, this.k4(b, {
+ offset: 0,
+ EJ: !0
+ }));
+ }
+ return !1;
+ };
+ b.prototype.aqa = function (a, b) {
+ var c;
+ c = this;
+ b.forEach(function (b) {
+ var f;
+ f = c.nj(a, b.wa);
+ f && !b.ge && (f.stream.ge ? b.bY(f.stream) : (f.yQ || (f.yQ = []), f.yQ.push(c.dd)));
+ });
+ };
+ b.prototype.iJ = function (a, b, c) {
+ var f,
+ d,
+ h;
+ f = this;
+ h = this.dd;
+ r.We.forEach(function (d) {
+ var k,
+ g,
+ l,
+ u,
+ r;
+ if (h.nb(d) && (void 0 === c || d === c)) {
+ u = a[d];
+ m.assert(u && h.getTrackById(u.cb) === u);
+ u = u.Qc;
+ if (h.Ji)
+ f.u.warn("requestHeadersFromManifest, shutdown detected");
+ else if (h.Kl.ZJ(h.ma, u)) {
+ r = null !== (l = null === (g = null === (k = f.Gq(d)) || void 0 === k ? void 0 : k.KC) || void 0 === g ? void 0 : g.R) && void 0 !== l ? l : 0;
+ k = p.Pfa(u, r);
+ void 0 === k && f.u.warn("Unable to find stream for bitrate " + r);
+ k = u[k];
+ (g = h.nj(d, k.wa)) && g.stream.$ ? h.$Mb(d, g) : (d = {
+ offset: 0,
+ EJ: !1,
+ uy: 1 === d,
+ Es: !0,
+ BI: !f.e0(h)
+ }, h.xHa(k, d, b));
+ } else
+ f.u.warn("requestHeadersFromManifest, unable to update urls");
+ }
+ });
+ h.G_ = !0;
+ null === (d = this.ng) || void 0 === d ? void 0 : d.call(this, h.Za).FX();
+ };
+ b.prototype.gE = function (a) {
+ var b,
+ c,
+ f,
+ d;
+ b = this.K;
+ c = this.nj(a.L, a.wa);
+ if (c)
+ return (c.stream.$ || c.EJ && this.IGa(c), !1);
+ c = this.H9a;
+ f = this.I9a;
+ if (void 0 !== b.Rka && void 0 !== c && void 0 !== f) {
+ d = h.time.ea();
+ if (d - c < b.Rka || d - f < b.Rka)
+ return !1;
+ }
+ a = this.k4(a, {
+ url: a.url,
+ offset: 0
+ });
+ this.I9a = h.time.ea();
+ return a;
+ };
+ b.prototype.k4 = function (a, b, f, d) {
+ var h,
+ g,
+ m,
+ l;
+ m = a.L;
+ k.Xl.$n(m);
+ l = a.wa;
+ if (this.j8a(l, !!b.Es))
+ return (null === (h = this.GDa) || void 0 === h ? void 0 : h.call(this), !1);
+ if (h = this.nj(m, l))
+ a = !1;
+ else {
+ h = c.__assign(c.__assign({}, b), {
+ da: this.O8a(a)
+ });
+ f = this.g_(m, !!h.Es, !!h.uy, !!h.BI, !!f);
+ a.url && (this.Gq(m).Bja = a.url);
+ h = a = this.X$(a, f, h);
+ if (!a.ft())
+ return (this.dd.oh("MediaRequest open failed (2)", "NFErr_MC_StreamingFailure"), !1);
+ a = !0;
+ }
+ b.Es && d && (this.dd.qg[m] = h);
+ null === (g = this.GDa) || void 0 === g ? void 0 : g.call(this);
+ return a;
+ };
+ b.prototype.Op = function () {
+ var a,
+ b;
+ a = this;
+ b = [];
+ this.Xr.forEach(function (c, f) {
+ var h;
+ k.Xl.$n(f);
+ for (var d in c) {
+ f = c[d];
+ h = f.u4();
+ 1 === h ? b.push(f) : 2 === h && a.dd.oh("swapUrl failure");
+ }
+ });
+ return b;
+ };
+ b.prototype.rj = function (a) {
+ var b,
+ c;
+ b = a.L;
+ c = k.Xl.$n(b);
+ this.dd.Ji ? c.warn("header onrequestcomplete ignored, session shutdown:", a.toString()) : (this.Ol({
+ type: "logdata",
+ target: "startplay",
+ Hd: {
+ usedNativeDataView: a.XNb
+ }
+ }), a.a2 > a.PBb && (this.DCa[b] = a.a2), a.EJ && this.IGa(a), this.q9a(a), this.H9a = h.time.ea(), this.dd.Ly.emit("onHeaderRequestComplete", a));
+ this.Bq(a);
+ };
+ b.prototype.gX = function (a, b, c) {
+ var f;
+ f = a.L;
+ k.Xl.$n(f);
+ f = this.dd.Hq(f, a.wa);
+ if (b !== !!a.Uj)
+ return !1;
+ this.oEa(a);
+ a.Ncb(f);
+ this.kBa(a);
+ this.dd.Ly.emit("onHeaderFromCache", {
+ hp: a,
+ Aob: c
+ });
+ return !0;
+ };
+ b.prototype.Dba = function (a, b) {
+ var c,
+ f,
+ d,
+ h;
+ c = [];
+ f = this.Xr[a];
+ for (d in f) {
+ h = f[d];
+ h && !h.stream.$ && h.Zk === b && (this.Cea(a, d), c.push({
+ stream: h.stream,
+ offset: h.offset,
+ da: h.da,
+ uy: h.uy,
+ Es: h.Es,
+ BI: h.BI,
+ Qla: h.Qla
+ }));
+ }
+ return c;
+ };
+ b.prototype.yna = function (a) {
+ var b;
+ b = this;
+ a.forEach(function (a) {
+ b.k4(a.stream, a);
+ });
+ };
+ b.prototype.oEa = function (a) {
+ this.Xr[a.L][a.wa] = a;
+ };
+ b.prototype.Ftb = function (a) {
+ return !!this.nj(1, a);
+ };
+ b.prototype.q9a = function (a) {
+ var b,
+ c,
+ f,
+ d,
+ g;
+ b = this.K;
+ c = k.Xl.$n(a.L);
+ f = a.stream.$;
+ if (b.nea) {
+ d = f.length;
+ c.trace("fragment count:", d);
+ for (var h = 0; h < d; ++h) {
+ g = f.get(h);
+ c.trace("fragment: " + h + ", startPts: " + g.T + ", duration: " + g.duration + ", offset: " + g.offset);
+ }
+ }
+ this.kBa(a);
+ if (b.RI && b.RI.enabled && void 0 === f.Wz && b.RI.simulatedFallback) {
+ d = f.length;
+ b = [];
+ for (h = 0; h < d; ++h) {
+ b[h] = Math.max(0, a.stream.Bb + this.qab(h));
+ }
+ f.pJb(b);
+ }
+ };
+ b.prototype.kBa = function (a) {
+ var b,
+ c;
+ b = a.L;
+ c = a.wa;
+ k.Xl.$n(b);
+ a.yQ && (a.yQ.forEach(function (f) {
+ (f = f.Hq(b, c)) && f !== a.stream && !f.ge && f.bY(a.stream);
+ }), a.yQ = void 0);
+ this.dd.ltb(a);
+ };
+ b.prototype.X$ = function (a, b, c) {
+ var f,
+ d;
+ f = this;
+ d = k.Xl.$n(a.L);
+ a = new g.V4(a, this.K, b, c, this, !1, d);
+ a.addListener("headerRequestCancelled", function (a) {
+ f.p9a(a.request);
+ });
+ a.Eb(void 0);
+ this.oEa(a);
+ return a;
+ };
+ b.prototype.j8a = function (a, b) {
+ return this.wh && (a = this.wh.KP(this.dd.G, a)) && this.gX(a, !1, b) ? !0 : !1;
+ };
+ b.prototype.O8a = function (a) {
+ var b,
+ c,
+ f;
+ b = a.Dt;
+ c = a.O;
+ f = this.K;
+ return c.Ie.Kf ? f.gZ ? f.gZ : f.F_ : f.XYa && b ? b.offset + b.size : (a = this.DCa[a.L]) ? a + 128 : 2292 + 12 * Math.ceil(c.duration / 2E3);
+ };
+ b.prototype.p9a = function (a) {
+ this.Cea(a.L, a.wa);
+ };
+ b.prototype.Cea = function (a, b) {
+ delete this.Xr[a][b];
+ };
+ b.prototype.IGa = function (a) {
+ this.wF === a.wa && (this.wF = void 0);
+ };
+ b.prototype.qab = function (a) {
+ var b;
+ b = this.K.RI.fallbackBound;
+ void 0 === this.zba[a] && (this.zba[a] = Math.floor(2 * Math.random() * b) - b);
+ return this.zba[a];
+ };
+ return b;
+ })(d.yr);
+ b.tua = a;
+ }, function (d, b, a) {
+ var c,
+ k,
+ g;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.bra = void 0;
+ c = a(0);
+ k = a(18);
+ g = a(4).Qr;
+ d = (function (a) {
+ function b(b) {
+ var c;
+ c = a.call(this) || this;
+ c.pDa = b;
+ c.ZV = b.groupId;
+ c.Vf = new k.Wi();
+ c.Vf.on(c, g.Yd.hL, c.nM);
+ c.Vf.on(c, g.Yd.CA, c.UF);
+ return c;
+ }
+ c.__extends(b, a);
+ b.prototype.OBb = function (a, b, c) {
+ g.prototype.open.call(this, a, b, c);
+ };
+ b.prototype.PIb = function (a) {
+ this.ZV = a;
+ };
+ Object.defineProperties(b.prototype, {
+ groupId: {
+ get: function () {
+ return this.ZV;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ b.prototype.yc = function () {
+ this.Vf && this.Vf.clear();
+ g.prototype.yc.call(this);
+ };
+ b.prototype.nM = function (a) {
+ this.pDa.mEb(a.probed, a.affected);
+ this.yc();
+ };
+ b.prototype.UF = function (a) {
+ this.pDa.jEb(a.probed, a.affected);
+ this.yc();
+ };
+ return b;
+ })(g);
+ b.bra = d;
+ }, function (d, b, a) {
+ var k,
+ g,
+ r;
+ function c(a, b) {
+ this.jM = a;
+ this.cB = 0 === Math.floor(1E6 * Math.random()) % b.vD;
+ this.groupId = 1;
+ this.config = b;
+ this.vv = {};
+ this.uz = {};
+ }
+ k = a(8);
+ g = a(4);
+ new g.Console("ASEJS_PROBE_MANAGER", "asejs");
+ r = a(872).bra;
+ c.prototype.constructor = c;
+ c.prototype.lEb = function (a, b) {
+ var c,
+ f,
+ d,
+ h,
+ l,
+ p,
+ r,
+ n,
+ q,
+ t,
+ T;
+ c = this.jM;
+ f = a.Ob;
+ d = c.PWa(a.url);
+ h = c.J0(a.url);
+ l = this.config;
+ p = g.time.ea();
+ n = b;
+ q = [];
+ t = d.Fm[0];
+ T = !1;
+ r = this.vv[f];
+ if (!r)
+ r = this.vv[f] = {
+ count: 0,
+ $h: p,
+ zw: !1,
+ error: b,
+ loa: [],
+ Bma: {}
+ };
+ else if (r.$h >= p - l.a4)
+ return;
+ r.zw || (t && h.id === t.id && (a.isPrimary = !0), r.$h = p, r.zw = !1, r.error = b, ++r.count, d && d.xe && 0 !== d.xe.length && (k.forEach(d.xe, function (b) {
+ var c,
+ d,
+ h;
+ c = b.Ac.id;
+ d = c + "-" + f;
+ h = this.uz[d];
+ if (void 0 === h || void 0 === h.v2)
+ (h && h.yj && clearTimeout(h.yj), b = this.AHa(b.url, a, c), this.uz[d] = {
+ U: !1,
+ count: 0,
+ v2: b.Yj()
+ }, q.push(b.Yj()), T = !0);
+ -1 === r.loa.indexOf(c) && r.loa.push(c);
+ }, this), this.cB && 0 < q.length && (d = {
+ type: "logdata",
+ target: "endplay",
+ fields: {}
+ }, b = n, n = {
+ ts: g.time.ea(),
+ es: b.GEa,
+ fc: b.Dh,
+ fn: b.DJa,
+ nc: b.qj,
+ pb: q,
+ gid: this.groupId
+ }, b.kP && (n.hc = b.kP), d.fields.errpb = {
+ type: "array",
+ value: n,
+ adjust: ["ts"]
+ }, c.Ol(d)), T && this.groupId++));
+ };
+ c.prototype.AHa = function (a, b, c) {
+ var f,
+ d,
+ h;
+ f = this.jM.J0(b.url);
+ f && f.qb && f.qb.Nq && f.qb.Nq.Ca || Math.random(0, 1);
+ f = new r(this);
+ d = a.split("?");
+ h = "random=" + parseInt(1E7 * Math.random(), 10);
+ f.OBb(1 < d.length ? a + "&" + h : a + "?" + h, b, c);
+ return f;
+ };
+ c.prototype.mEb = function (a, b) {
+ var c,
+ f,
+ d,
+ h,
+ k,
+ l,
+ p,
+ r;
+ c = this.jM;
+ f = this.config;
+ d = b.Ob;
+ h = this.vv[d];
+ l = a.url;
+ p = this.uz[a.Ob + "-" + d];
+ if (h && (k = h.error, p)) {
+ p && p.yj && clearTimeout(p.yj);
+ p.U = !0;
+ p.count = 0;
+ p.v2 = void 0;
+ h.Bma[a.Ob] = !0;
+ (p = this.vv[a.Ob]) && !0 === p.zw && f.Pu && (c.JUa(a.Ob, p.error.pS[1]), this.cB && (p = {
+ type: "logdata",
+ target: "endplay",
+ fields: {}
+ }, p.fields.errst = {
+ type: "array",
+ value: {
+ ts: g.time.ea(),
+ id: a.requestId,
+ servid: b.Ob,
+ gid: a.groupId ? a.groupId : -1
+ },
+ adjust: ["ts"]
+ }, c.Ol(p)), this.vv[a.Ob] = void 0);
+ if (l !== b.url) {
+ r = this.uz[d + "-" + d];
+ r && r.U || (d = (d = c.J0(l)) && d.qb && d.qb.Nq && d.qb.Nq.Ca || Math.random(0, 1) * f.T0, d = Math.min(d, f.T0), setTimeout((function () {
+ var f;
+ if (!(!1 !== h.zw || r && r.U) && (h.zw = !0, c.Bp(k.pS[0], k.pS[1], b.url, k), this.cB)) {
+ f = {
+ type: "logdata",
+ target: "endplay",
+ fields: {}
+ };
+ f.fields.erep = {
+ type: "array",
+ value: {
+ ts: g.time.ea(),
+ id: a.requestId,
+ servid: b.Ob,
+ gid: a.groupId ? a.groupId : -1
+ },
+ adjust: ["ts"]
+ };
+ c.Ol(f);
+ }
+ }).bind(this), d));
+ }
+ this.cB && (p = {
+ type: "logdata",
+ target: "endplay",
+ fields: {}
+ }, p.fields.pbres = {
+ type: "array",
+ value: {
+ ts: g.time.ea(),
+ id: a.requestId,
+ result: 1,
+ servid: a.Ob,
+ gid: a.groupId ? a.groupId : -1
+ },
+ adjust: ["ts"]
+ }, c.Ol(p));
+ }
+ };
+ c.prototype.jEb = function (a, b) {
+ var c,
+ f,
+ d,
+ h,
+ l,
+ p,
+ r,
+ n,
+ q,
+ t;
+ c = this.jM;
+ f = parseInt(b.Ob, 10);
+ d = this.vv[f];
+ h = parseInt(a.Ob, 10);
+ l = this.uz[h + "-" + f];
+ p = 0;
+ q = this.config;
+ if (l && d) {
+ l.U = !1;
+ l.v2 = void 0;
+ d.Bma[h] = !1;
+ n = d.loa;
+ if (q.Pu && h === f && b.isPrimary) {
+ t = c.J0(b.url);
+ t = t && t.qb && t.qb.Nq && t.qb.Nq.Ca || 300 * Math.random(0, 1);
+ t = t * Math.pow(2, l.count);
+ t = Math.min(t, 12E4);
+ t = t + Math.random(0, 1) * (1E4 > t ? 100 : 1E4);
+ l.yj = setTimeout((function () {
+ var c;
+ l.yj = void 0;
+ c = this.AHa(a.url, b, h);
+ c.PIb(a.groupId);
+ l.v2 = c.Yj();
+ }).bind(this), t);
+ }
+ ++l.count;
+ h === f && (p = 0, n.forEach(function (a) {
+ !1 === d.Bma[a] && p++;
+ }), n.length === p && d.count >= q.X0 && (r = d.error, d.zw = !0, k.forEach(c.PWa(b.url).xe, function (a) {
+ var b;
+ c.Bp(r.pS[0], r.pS[1], a.url, r);
+ if (this.cB) {
+ b = {
+ type: "logdata",
+ target: "endplay",
+ fields: {}
+ };
+ b.fields.erep = {
+ type: "array",
+ value: {
+ ts: g.time.ea(),
+ id: -1,
+ servid: a.Ac.id
+ },
+ adjust: ["ts"]
+ };
+ c.Ol(b);
+ }
+ }, this)));
+ this.cB && (f = {
+ type: "logdata",
+ target: "endplay",
+ fields: {}
+ }, f.fields.pbres = {
+ type: "array",
+ value: {
+ ts: g.time.ea(),
+ id: a.requestId,
+ result: 0,
+ servid: a.Ob,
+ gid: a.groupId ? a.groupId : -1
+ },
+ adjust: ["ts"]
+ }, c.Ol(f));
+ }
+ };
+ c.prototype.p4 = function (a) {
+ var b,
+ c,
+ f;
+ b = a.url || a.mediaRequest.url;
+ if (b) {
+ a = this.jM;
+ b = a.AVa(b);
+ c = this.vv[b];
+ f = this.uz[b + "-" + b];
+ c && c.zw && this.config.Pu && (a.JUa(c.error.GEa, !1), this.cB && (c = {
+ type: "logdata",
+ target: "endplay",
+ fields: {}
+ }, c.fields.errst = {
+ type: "array",
+ value: {
+ ts: g.time.ea(),
+ id: -1,
+ servid: b
+ },
+ adjust: ["ts"]
+ }, a.Ol(c)), this.vv[b] = void 0, f && f.yj && clearTimeout(f.yj));
+ }
+ };
+ c.prototype.reset = function () {
+ var a,
+ b,
+ c;
+ a = this.uz;
+ for (c in a) {
+ a.hasOwnProperty(c) && (b = a[c + "-" + c]) && b.yj && clearTimeout(b.yj);
+ }
+ this.uz = {};
+ this.vv = {};
+ };
+ d.P = c;
+ }, function (d, b, a) {
+ var c,
+ k,
+ g,
+ r,
+ h,
+ p,
+ m,
+ f,
+ u,
+ n,
+ q,
+ t,
+ C,
+ M,
+ H;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Kta = void 0;
+ c = a(18);
+ k = a(8);
+ g = a(4);
+ r = new g.Console("ASEJS_ERROR_DIRECTOR", "asejs");
+ h = a(19);
+ p = a(873);
+ m = g.wk;
+ f = m.zE;
+ u = {};
+ n = {};
+ d = [h.zg.fu, !1];
+ a = [h.zg.fu, !0];
+ q = [h.zg.LA, !1];
+ t = [h.zg.LA, !0];
+ C = [h.zg.URL, !0];
+ M = [-1, !1];
+ H = [h.zg.LA, !1];
+ u[f.APb] = q;
+ u[f.UNKNOWN_ERROR] = q;
+ u[f.jTb] = q;
+ u[f.q1a] = q;
+ u[f.Dsa] = q;
+ u[f.C1a] = q;
+ u[f.u1a] = t;
+ u[f.v0a] = t;
+ u[f.Mra] = H;
+ u[f.n5] = H;
+ u[f.w0a] = M;
+ u[f.x0a] = H;
+ u[f.y0a] = H;
+ u[f.s0a] = q;
+ u[f.u0a] = q;
+ u[f.Lra] = d;
+ u[f.t0a] = q;
+ u[f.r0a] = H;
+ u[f.uQb] = t;
+ u[f.M2a] = H;
+ u[f.oua] = H;
+ u[f.nua] = H;
+ u[f.K6] = H;
+ u[f.lua] = H;
+ u[f.L2a] = C;
+ u[f.L6] = t;
+ u[f.N6] = C;
+ u[f.M6] = a;
+ u[f.rua] = t;
+ u[f.O2a] = C;
+ u[f.UT] = H;
+ u[f.pua] = t;
+ u[f.N2a] = t;
+ u[f.x1a] = t;
+ u[f.r1a] = q;
+ u[f.B6a] = q;
+ u[f.h1a] = q;
+ u[f.i1a] = q;
+ u[f.j1a] = q;
+ u[f.k1a] = q;
+ u[f.l1a] = q;
+ u[f.m1a] = q;
+ u[f.n1a] = q;
+ u[f.o1a] = q;
+ u[f.p1a] = q;
+ u[f.s1a] = q;
+ u[f.t1a] = q;
+ u[f.v1a] = q;
+ u[f.w1a] = q;
+ u[f.y1a] = q;
+ u[f.z1a] = q;
+ u[f.A1a] = q;
+ u[f.B1a] = q;
+ u[f.D1a] = q;
+ u[f.E1a] = q;
+ u[f.A6a] = H;
+ u[f.TIMEOUT] = d;
+ n[f.Mra] = !0;
+ n[f.oua] = !0;
+ n[f.nua] = !0;
+ n[f.lua] = !0;
+ n[f.Dsa] = !0;
+ d = (function () {
+ var s31;
+ function a(a, b, d, h) {
+ var t31;
+ t31 = 2;
+ for (; t31 !== 11; ) {
+ switch (t31) {
+ case 2:
+ var g5E = "1";
+ g5E += "SIYb";
+ g5E += "ZrNJCp9";
+ this.Kl = a;
+ this.config = b;
+ this.wtb = d;
+ this.Ls = h;
+ this.dh = new c.Wi();
+ g5E;
+ t31 = 8;
+ break;
+ case 8:
+ var i5E = "n";
+ i5E += "e";
+ i5E += "tw";
+ i5E += "orkFail";
+ i5E += "ed";
+ u[f.K6] = b.gub ? t : H;
+ this.dh.addListener(this.Kl, i5E, this.ptb.bind(this));
+ this.cI = g.time.ea();
+ this.gY = 0;
+ this.qpa = {};
+ this.zma = new p(a, b);
+ t31 = 11;
+ break;
+ }
+ }
+ }
+ s31 = 2;
+ for (; s31 !== 12; ) {
+ switch (s31) {
+ case 2:
+ a.prototype.ic = function () {
+ var u31;
+ u31 = 2;
+ for (; u31 !== 1; ) {
+ switch (u31) {
+ case 2:
+ this.dh.clear();
+ u31 = 1;
+ break;
+ }
+ }
+ };
+ a.prototype.eJb = function (a) {
+ var v31;
+ v31 = 2;
+ for (; v31 !== 1; ) {
+ switch (v31) {
+ case 2:
+ this.G3 = a;
+ v31 = 1;
+ break;
+ }
+ }
+ };
+ a.prototype.Bp = function (a, b, c, f) {
+ var w31,
+ A,
+ d,
+ g,
+ l,
+ p,
+ w,
+ C,
+ K,
+ t;
+ w31 = 2;
+ for (; w31 !== 17; ) {
+ switch (w31) {
+ case 10:
+ g = w.vIb(a.host, a.port);
+ w31 = 13;
+ break;
+ case 6:
+ A = w.AVa(a.url);
+ w31 = 14;
+ break;
+ case 14:
+ A && (g[A] = [a.url]);
+ w31 = 13;
+ break;
+ case 8:
+ w31 = t !== M ? 7 : 17;
+ break;
+ case 7:
+ w31 = void 0 !== a.url ? 6 : 11;
+ break;
+ case 2:
+ var v5E = " : c";
+ v5E += "ritical erro";
+ v5E += "r cou";
+ v5E += "nt";
+ v5E += " = ";
+ var e5E = " ";
+ e5E += "o";
+ e5E += "n";
+ e5E += " ";
+ var W5E = "F";
+ W5E += "a";
+ W5E += "il";
+ W5E += "ure ";
+ (d = this, g = m.zE.name, l = c ? g[c] : void 0, g = {}, p = this.config, w = this.Kl);
+ r.warn(W5E + l + e5E + JSON.stringify(a) + v5E + this.gY);
+ w31 = 5;
+ break;
+ case 11:
+ w31 = void 0 !== a.host && void 0 !== a.port ? 10 : 20;
+ break;
+ case 13:
+ (C = t[0], K = t[1]);
+ p.er ? k.forEach(g, function (k, g) {
+ var x31;
+ x31 = 2;
+ for (; x31 !== 5; ) {
+ switch (x31) {
+ case 2:
+ var Q5E = "e";
+ Q5E += "r";
+ Q5E += "r";
+ Q5E += "o";
+ Q5E += "r";
+ t === H || t === q ? d.zma.lEb({
+ url: void 0 !== a.url ? a.url : k[0],
+ Ob: g
+ }, {
+ GEa: g,
+ pS: t,
+ kP: b,
+ Dh: c,
+ DJa: l,
+ qj: f
+ }) : k.some(function (a) {
+ var y31;
+ y31 = 2;
+ for (; y31 !== 5; ) {
+ switch (y31) {
+ case 2:
+ w.Bp(C, K, a);
+ return C === h.zg.LA;
+ break;
+ }
+ }
+ });
+ !d.G3 || 0 !== b && void 0 !== b || (k = void 0 !== a.url ? a.url : k[0]) && d.G3.boa(Q5E, k);
+ x31 = 5;
+ break;
+ }
+ }
+ }) : k.forEach(g, function (c, f) {
+ var z31;
+ z31 = 2;
+ for (; z31 !== 5; ) {
+ switch (z31) {
+ case 1:
+ var h5E = "er";
+ h5E += "r";
+ h5E += "o";
+ h5E += "r";
+ (c.some(function (a) {
+ var A31;
+ A31 = 2;
+ for (; A31 !== 5; ) {
+ switch (A31) {
+ case 2:
+ w.Bp(C, K, a);
+ return C === h.zg.LA;
+ break;
+ }
+ }
+ }), !d.G3 || 0 !== b && void 0 !== b || (c = void 0 !== a.url ? a.url : c[0]) && d.G3.boa(h5E, c));
+ z31 = 5;
+ break;
+ case 2:
+ z31 = t !== H || d.xGb(f) ? 1 : 5;
+ break;
+ }
+ }
+ });
+ w31 = 17;
+ break;
+ case 4:
+ t = u[c];
+ this.z0 = {
+ kP: b,
+ Dh: c,
+ DJa: l,
+ qj: f
+ };
+ n[c] && ++this.gY;
+ w31 = 8;
+ break;
+ case 20:
+ var O5E = "Invalid ";
+ O5E += "affected for netwo";
+ O5E += "rk failure";
+ r.error(O5E);
+ w31 = 19;
+ break;
+ case 18:
+ var q5E = "Unmappe";
+ q5E += "d failure";
+ q5E += " cod";
+ q5E += "e in JSASE error d";
+ q5E += "irector : ";
+ a000.s4P(3);
+ r.error(a000.t4P(c, q5E));
+ w31 = 17;
+ break;
+ case 5:
+ w31 = c && k.isArray(u[c]) ? 4 : 18;
+ break;
+ case 19:
+ return;
+ break;
+ }
+ }
+ };
+ s31 = 4;
+ break;
+ case 4:
+ a.prototype.xGb = function (a) {
+ var B31,
+ b,
+ c,
+ f;
+ B31 = 2;
+ for (; B31 !== 7; ) {
+ switch (B31) {
+ case 5:
+ B31 = f.$h < this.cI ? 4 : 3;
+ break;
+ case 4:
+ (f.$h = b, f.count = 1);
+ B31 = 7;
+ break;
+ case 3:
+ B31 = !(f.$h >= b - c.a4 || f.zw || (f.$h = b, ++f.count, f.count < c.X0)) ? 9 : 7;
+ break;
+ case 8:
+ this.qpa[a] = {
+ $h: b,
+ count: 1
+ };
+ B31 = 7;
+ break;
+ case 1:
+ B31 = f ? 5 : 8;
+ break;
+ case 2:
+ (b = g.time.ea(), c = this.config, f = this.qpa[a]);
+ B31 = 1;
+ break;
+ case 9:
+ return f.zw = !0;
+ break;
+ }
+ }
+ };
+ a.prototype.ptb = function (a) {
+ var C31,
+ b,
+ c,
+ f,
+ d,
+ h,
+ k,
+ m;
+ C31 = 2;
+ for (; C31 !== 3; ) {
+ switch (C31) {
+ case 2:
+ var C5E = " ms";
+ C5E += " ";
+ C5E += "a";
+ C5E += "go";
+ var U5E = " l";
+ U5E += "ast ";
+ U5E += "success ";
+ U5E += "was";
+ U5E += " ";
+ var P5E = "Netwo";
+ P5E += "rk has fai";
+ P5E += "l";
+ P5E += "ed ";
+ var E5E = "t";
+ E5E += "empor";
+ E5E += "aril";
+ E5E += "y";
+ var z5E = "p";
+ z5E += "erm";
+ z5E += "an";
+ z5E += "ently";
+ (b = this, c = g.time.ea() - this.cI, f = a, m = this.config);
+ a000.s4P(18);
+ r.warn(a000.X4P(a ? z5E : E5E, P5E, U5E, C5E, c));
+ !a && c > m.ala && (f = !0);
+ C31 = 4;
+ break;
+ case 4:
+ f ? (this.jJ && (clearTimeout(this.jJ), this.jJ = void 0), this.JGa(), this.zma.reset(), this.z0 && (d = this.z0.Dh, h = this.z0.kP, k = this.z0.qj), this.wtb({
+ Ivb: a,
+ QBb: d,
+ RBb: h,
+ SBb: k
+ })) : this.jJ || (this.jJ = setTimeout(function () {
+ var D31;
+ D31 = 2;
+ for (; D31 !== 5; ) {
+ switch (D31) {
+ case 2:
+ b.jJ = void 0;
+ b.V2();
+ D31 = 5;
+ break;
+ }
+ }
+ }, m.bla));
+ C31 = 3;
+ break;
+ }
+ }
+ };
+ a.prototype.V2 = function () {
+ var E31;
+ E31 = 2;
+ for (; E31 !== 1; ) {
+ switch (E31) {
+ case 2:
+ this.jJ || (this.Kl.V2(), this.qpa = {}, this.Ls());
+ E31 = 1;
+ break;
+ }
+ }
+ };
+ a.prototype.p4 = function (a) {
+ var F31,
+ b;
+ F31 = 2;
+ for (; F31 !== 3; ) {
+ switch (F31) {
+ case 2:
+ b = this.config;
+ this.cI = Math.max(a.timestamp || g.time.ea(), this.cI);
+ this.JGa();
+ b.er && this.zma.p4(a);
+ F31 = 3;
+ break;
+ }
+ }
+ };
+ a.prototype.qQ = function () {
+ var G31;
+ G31 = 2;
+ for (; G31 !== 1; ) {
+ switch (G31) {
+ case 2:
+ this.gY = 0;
+ G31 = 1;
+ break;
+ }
+ }
+ };
+ a.prototype.Rk = function () {
+ var H31,
+ a,
+ b,
+ c;
+ H31 = 2;
+ for (; H31 !== 4; ) {
+ switch (H31) {
+ case 2:
+ var S5E = "m";
+ S5E += "s";
+ var p5E = "Setting ";
+ p5E += "und";
+ p5E += "erflow timeout in ";
+ (a = this, b = this.config, c = b.lka);
+ this.cI = Math.max(g.time.ea(), this.cI);
+ b.JNb && !this.rS && (r.info(p5E + c + S5E), this.rS = setTimeout(function () {
+ var I31;
+ I31 = 2;
+ for (; I31 !== 4; ) {
+ switch (I31) {
+ case 2:
+ var w5E = "Forcing permanent n";
+ w5E += "etwork failure a";
+ w5E += "fter ";
+ var L5E = "ms, ";
+ L5E += "since underfl";
+ L5E += "ow";
+ L5E += " with no succes";
+ L5E += "s";
+ a000.s4P(19);
+ r.info(a000.t4P(L5E, w5E, c));
+ a.rS = void 0;
+ a.Kl.Bp(h.zg.fu, !0);
+ I31 = 4;
+ break;
+ }
+ }
+ }, c));
+ H31 = 4;
+ break;
+ }
+ }
+ };
+ s31 = 14;
+ break;
+ case 14:
+ a.prototype.JGa = function () {
+ var J31;
+ J31 = 2;
+ for (; J31 !== 1; ) {
+ switch (J31) {
+ case 2:
+ var D5E = "Clea";
+ D5E += "red under";
+ D5E += "fl";
+ D5E += "o";
+ D5E += "w timeout";
+ this.rS && (clearTimeout(this.rS), this.rS = void 0, r.info(D5E));
+ J31 = 1;
+ break;
+ }
+ }
+ };
+ return a;
+ break;
+ }
+ }
+ })();
+ b.Kta = d;
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ d = b.Lr || (b.Lr = {});
+ d[d.AUDIO = 0] = "AUDIO";
+ d[d.VIDEO = 1] = "VIDEO";
+ }, function (d, b, a) {
+ var g,
+ r,
+ h,
+ p;
+ function c(a, b, c, d) {
+ r.call(this, a, b, c, d);
+ }
+ function k(a, b, c) {
+ r.call(this, a, b, c, void 0);
+ }
+ g = a(82);
+ r = a(411).cL;
+ h = a(415);
+ p = a(74).IBa;
+ c.prototype = Object.create(r.prototype);
+ k.prototype = Object.create(c.prototype);
+ k.prototype.i9a = function (a, b) {
+ return "string" === typeof b ? h[b] : b ? h.reset[a] || h.gKb[a] : h.gKb[a];
+ };
+ k.prototype.nUa = function (a, b, c, d) {
+ return this.Sa(a, b, !1, c, d);
+ };
+ k.prototype.tUa = function (a, b, c, d) {
+ return this.Sa(a, b, !0, c, d);
+ };
+ k.prototype.Sa = function (a, b, c, d, h) {
+ var k,
+ m,
+ l,
+ p,
+ u,
+ r,
+ n,
+ q,
+ w,
+ t,
+ A,
+ z,
+ E,
+ N;
+ function f(a) {
+ m = k[a];
+ l = m.qr("traf");
+ if (void 0 === l || void 0 === l.Wu)
+ return !1;
+ p = l.qr("tfdt");
+ if (void 0 === p)
+ return !1;
+ u = l.qr("trun");
+ return void 0 === u ? !1 : !0;
+ }
+ if (!this.parse())
+ return !1;
+ k = this.Vc.moof;
+ if (!k || 0 === k.length)
+ return !1;
+ if (void 0 !== a)
+ for ((r = a, a = 0); a < k.length; ++a) {
+ if (!f(a))
+ return !1;
+ if (u.ue > r || c && u.ue === r)
+ break;
+ r -= u.ue;
+ }
+ else if ((a = c ? k.length - 1 : 0, !f(a)))
+ return !1;
+ if (c && a < k.length - 1) {
+ n = k[a + 1];
+ this.Jh.$k(this.BXb - n.startOffset, n.startOffset);
+ } else !c && 0 < a && this.Jh.$k(m.startOffset, 0);
+ n = l.qr("tfhd");
+ if (void 0 === n)
+ return !1;
+ p = l.qr("tfdt");
+ q = u.ue;
+ w = l.qr("saiz");
+ t = l.qr("saio");
+ A = l.qr(g.mxa);
+ z = l.qr("sbgp");
+ if (!(!w && !t || w && t))
+ return !1;
+ E = l.qr("sdtp");
+ if (this.Vc.mdat && a < this.Vc.mdat.length)
+ N = this.Vc.mdat[a];
+ else if (a !== k.length - 1)
+ return !1;
+ void 0 === r && (r = c ? u.ue : 0);
+ if (u.Sa(l, n, N || this.Jh, b, r, l.Wu, c))
+ u.PY && (!c && p && p.Sa(u.ZJb), w && t && (w.Sa(u.CJ, c), t.Sa(A ? 0 : w.Hna, l.Wu, c)), A && A.Sa(u.CJ, c), E && E.Sa(u.CJ, q, c), z && z.Sa(u.CJ, c));
+ else if (!c) {
+ if (a === k.length - 1)
+ return !1;
+ this.Jh.$k(k[a + 1].startOffset - m.startOffset, m.startOffset);
+ } else if (0 === u.CJ)
+ return !1;
+ d && (b = this.i9a(this.stream.profile, h)) && u.vGb(l, n, N, c, d, b);
+ c = this.Jh.Sa();
+ d = c.reduce(function (a, b) {
+ return a + b.byteLength;
+ }, 0);
+ c = {
+ mg: c,
+ length: d,
+ jD: this.Jh.view.byteLength
+ };
+ u.PY && !N && (c.fJ = l.Wu + u.fJ, c.jr = u.jr);
+ return c;
+ };
+ d.P = {
+ ix: k,
+ PP: function (a) {
+ var b,
+ c;
+ b = new ArrayBuffer(8);
+ c = new DataView(b);
+ c.setUint32(0, a + 8);
+ c.setUint32(4, p("mdat"));
+ return b;
+ }
+ };
+ }, function (d, b, a) {
+ var c,
+ k;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ c = a(130);
+ a(130);
+ k = a(74);
+ d = (function () {
+ function a(a, b, c) {
+ this.view = a;
+ this.console = b;
+ this.config = c;
+ this.view = a;
+ this.console = b;
+ this.bD = this.kN = this.offset = 0;
+ }
+ a.prototype.hqb = function (a) {
+ return new DataView(this.view.buffer, this.view.byteOffset + this.offset, a);
+ };
+ a.prototype.Zf = function (a) {
+ for (; this.bD < a; ) {
+ this.kN = (this.kN << 8) + this.Ad();
+ this.bD += 8;
+ }
+ this.bD -= a;
+ return this.kN >>> this.bD & (1 << a) - 1;
+ };
+ a.prototype.Ad = function () {
+ var a;
+ a = this.view.getUint8(this.offset);
+ this.offset += 1;
+ return a;
+ };
+ a.prototype.kh = function (a) {
+ a = this.view.getUint16(this.offset, a);
+ this.offset += 2;
+ return a;
+ };
+ a.prototype.Mb = function (a) {
+ a = this.view.getUint32(this.offset, a);
+ this.offset += 4;
+ return a;
+ };
+ a.prototype.Rma = function () {
+ var a;
+ a = this.view.getInt32(this.offset, void 0);
+ this.offset += 4;
+ return a;
+ };
+ a.prototype.CCb = function (a, b) {
+ var c;
+ c = this.view.getUint32(this.offset + (a ? 4 : 0), a);
+ a = this.view.getUint32(this.offset + (a ? 0 : 4), a);
+ b || 0 === (c & 4278190080) || this.console.warn("Warning: read unsigned value > 56 bits");
+ return 4294967296 * c + a;
+ };
+ a.prototype.tj = function (a, b) {
+ a = this.CCb(a, b);
+ this.offset += 8;
+ return a;
+ };
+ a.prototype.ECb = function () {
+ var a,
+ b;
+ a = this.view.getInt32(this.offset + 0, void 0);
+ b = this.view.getUint32(this.offset + 4, void 0);
+ 0 === ((0 < a ? a : -a) & 4278190080) || this.console.warn("Warning: read signed value > 56 bits");
+ return 4294967296 * a + b;
+ };
+ a.prototype.gFb = function () {
+ var a;
+ a = this.ECb();
+ this.offset += 8;
+ return a;
+ };
+ a.prototype.wz = function () {
+ return k.Ax(this.Mb());
+ };
+ a.prototype.H2 = function () {
+ var b,
+ c,
+ d,
+ f,
+ k,
+ g;
+ function a(a, b) {
+ return ("000000" + a.toString(16)).slice(2 * -b);
+ }
+ b = this.Mb(!0);
+ c = this.kh(!0);
+ d = this.kh(!0);
+ f = this.kh();
+ k = this.kh();
+ g = this.Mb();
+ return [a(b, 4), a(c, 2), a(d, 2), a(f, 2), a(k, 2) + a(g, 4)].join("-");
+ };
+ a.prototype.aFb = function () {
+ var a;
+ a = this.view.byteOffset + this.offset;
+ return this.view.buffer.slice(a, a + 16);
+ };
+ a.prototype.$Eb = function (a) {
+ var b;
+ b = [];
+ if (0 === a)
+ return "";
+ a = a || Number.MAX_SAFE_INTEGER;
+ for (var c = this.Ad(); 0 !== c && 0 <= --a; ) {
+ b.push(c);
+ c = this.Ad();
+ }
+ return String.fromCharCode.apply(null, b);
+ };
+ a.prototype.E2 = function (a) {
+ var b,
+ d;
+ void 0 === b && (b = 1);
+ void 0 === d && (d = !0);
+ return this.Vd(this.config.aK && c.Nsb || c.JH, 1, a, b, d);
+ };
+ a.prototype.ZEb = function (a) {
+ var b,
+ d,
+ k;
+ d = 10;
+ k = !1;
+ void 0 === d && (d = 2);
+ void 0 === k && (k = !0);
+ void 0 === b && (b = !1);
+ return this.Vd(this.config.aK && c.Lsb || c.m_, 2, a, d, k, b);
+ };
+ a.prototype.D2 = function (a, b, d) {
+ var h;
+ void 0 === b && (b = 4);
+ void 0 === d && (d = !0);
+ void 0 === h && (h = !1);
+ return this.Vd(this.config.aK && c.Msb || c.IH, 4, a, b, d, h);
+ };
+ a.prototype.cFb = function () {
+ for (var a = this.Ad(), b = a & 127; a & 128; ) {
+ a = this.Ad();
+ b = b << 7 | a & 127;
+ }
+ return b;
+ };
+ a.prototype.Vd = function (a, b, c, d, f, k) {
+ void 0 === f && (f = !0);
+ void 0 === k && (k = !1);
+ a = a(this.view, this.offset, c, d, k);
+ this.offset = f || !d || d === b ? this.offset + c * (d || b) : this.offset + b;
+ return a;
+ };
+ return a;
+ })();
+ b.o7a = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ g,
+ r,
+ h;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ c = a(0);
+ k = a(131);
+ g = a(414);
+ r = a(74);
+ d = a(877);
+ h = (function () {
+ function a(a) {
+ a ? (this.Xm = a.Xm.slice(), this.Rp = a.Rp.slice(), this.ih = a.ih.slice(), this.trim = a.trim) : (this.Xm = [], this.Rp = [], this.ih = []);
+ }
+ Object.defineProperties(a.prototype, {
+ empty: {
+ get: function () {
+ return 0 === this.Xm.length && 0 === this.Rp.length && 0 === this.ih.length;
+ },
+ enumerable: !0,
+ configurable: !0
+ }
+ });
+ return a;
+ })();
+ d = (function (a) {
+ function b(b, c, d) {
+ b = a.call(this, b, c, d) || this;
+ b.PIa = [];
+ b.wd = new h();
+ return b;
+ }
+ c.__extends(b, a);
+ b.jdb = function (a, b) {
+ if (b.offset + b.size <= a.byteLength)
+ switch (b.size) {
+ case 1:
+ a.setUint8(b.offset, b.value);
+ break;
+ case 2:
+ b.HR ? a.setInt16(b.offset, b.value) : a.setUint16(b.offset, b.value);
+ break;
+ case 4:
+ b.HR ? a.setInt32(b.offset, b.value) : a.setUint32(b.offset, b.value);
+ break;
+ case 8:
+ k.assert(!b.HR);
+ a.setUint32(b.offset, Math.floor(b.value / 4294967296));
+ a.setUint32(b.offset + 4, b.value & 4294967295);
+ break;
+ default:
+ k.assert(!1);
+ }
+ };
+ Object.defineProperties(b.prototype, {
+ PY: {
+ get: function () {
+ return !this.wd.empty;
+ },
+ enumerable: !0,
+ configurable: !0
+ }
+ });
+ b.prototype.I4 = function (a, b) {
+ this.wd.Rp.push({
+ offset: void 0 !== b ? b : this.offset,
+ value: a,
+ size: 1
+ });
+ void 0 === b && (this.offset += 1);
+ };
+ b.prototype.VOb = function (a) {
+ this.wd.Rp.push({
+ offset: !1,
+ value: a,
+ size: 2,
+ HR: !1
+ });
+ };
+ b.prototype.Qp = function (a, b) {
+ this.wd.Rp.push({
+ offset: void 0 !== b ? b : this.offset,
+ value: a,
+ size: 4,
+ HR: !1
+ });
+ void 0 === b && (this.offset += 4);
+ };
+ b.prototype.WOb = function (a, b) {
+ this.wd.Rp.push({
+ offset: void 0 !== b ? b : this.offset,
+ value: a,
+ size: 8,
+ HR: !1
+ });
+ void 0 === b && (this.offset += 8);
+ };
+ b.prototype.BZa = function (a) {
+ this.Qp(r.IBa(a));
+ };
+ b.prototype.qqa = function (a, b) {
+ this.wd.ih.push({
+ offset: this.offset,
+ Kn: a,
+ value: b
+ });
+ this.offset += 4;
+ };
+ b.prototype.$k = function (a, b, c) {
+ this.wd.Xm.push({
+ offset: b,
+ remove: a,
+ hb: c
+ });
+ };
+ b.prototype.O2 = function (a, b, c, d) {
+ this.wd.Xm.push({
+ offset: c,
+ remove: a,
+ replace: b,
+ hb: d
+ });
+ };
+ b.prototype.trim = function (a) {
+ this.wd.trim = a;
+ };
+ b.prototype.MEb = function () {
+ this.PIa.push(new h(this.wd));
+ };
+ b.prototype.CDb = function () {
+ this.wd = this.PIa.pop() || new h();
+ };
+ b.prototype.Sa = function () {
+ var a,
+ c,
+ d,
+ h,
+ k,
+ g,
+ m;
+ a = this;
+ if (0 === this.wd.Xm.length && 0 === this.wd.Rp.length && 0 === this.wd.ih.length)
+ return [void 0 === this.wd.trim ? this.view.buffer : this.view.buffer.slice(0, this.wd.trim)];
+ this.wd.Xm.sort(function (a, b) {
+ return a.offset - b.offset;
+ });
+ this.wd.Rp.sort(function (a, b) {
+ return a.offset - b.offset;
+ });
+ this.WGb();
+ c = this.dob();
+ d = this.view.buffer.slice(0, c);
+ h = new DataView(d);
+ this.wd.Rp.forEach(b.jdb.bind(void 0, h));
+ this.ZMb(h);
+ this.YMb(h);
+ k = [];
+ g = void 0 !== this.wd.trim ? Math.min(this.wd.trim, this.view.byteLength) : this.view.byteLength;
+ m = 0;
+ this.wd.Xm.filter(function (a) {
+ return a.offset <= g;
+ }).forEach(function (b) {
+ b.offset > m && (k.push(h.buffer.slice(m, b.offset)), b.offset > h.byteLength && h !== a.view && (h = a.view, k.push(h.buffer.slice(c, b.offset))));
+ b.replace && k.push(b.replace);
+ m = b.offset + b.remove;
+ });
+ m < c && k.push(d.slice(m));
+ m < g && k.push(this.view.buffer.slice(Math.max(d.byteLength, m), g));
+ return k;
+ };
+ b.prototype.dob = function () {
+ var a,
+ b,
+ c;
+ a = [];
+ b = this.wd.Rp[this.wd.Rp.length - 1];
+ c = this.wd.ih[this.wd.ih.length - 1];
+ b && a.push(b.offset + b.size);
+ c && a.push(c.offset + 4);
+ this.wd.Xm.filter(function (a) {
+ return a.hb;
+ }).forEach(function (b) {
+ return a.push(b.hb.byteOffset + 4);
+ });
+ b = Math.max.apply(void 0, a);
+ return void 0 !== this.wd.trim ? Math.min(b, this.wd.trim) : b;
+ };
+ b.prototype.WGb = function () {
+ this.wd.Xm = this.wd.Xm.reduce(function (a, b) {
+ var c,
+ f;
+ if (0 === a.length)
+ return (a.push(b), a);
+ c = a[a.length - 1];
+ f = c.offset + c.remove;
+ b.offset >= f ? a.push(b) : b.offset + b.remove > f && (k.assert(c.hb === b.hb), c.remove += b.offset + b.remove - f, b.replace && (c.replace = c.replace ? g.concat(c.replace, b.replace) : b.replace));
+ return a;
+ }, []);
+ };
+ b.prototype.ZMb = function (a) {
+ var b;
+ b = this;
+ this.wd.ih.forEach(function (c) {
+ var f,
+ d,
+ h,
+ k;
+ f = a;
+ d = c.offset;
+ b.wd.Xm.some(function (a) {
+ return a.offset <= c.offset && a.replace && a.offset + a.replace.byteLength >= c.offset + 4 ? (f = new DataView(a.replace), d = c.offset - a.offset, !0) : !1;
+ });
+ h = c.Kn + (void 0 !== c.value ? c.value : f.getInt32(d));
+ k = b.wd.Xm.reduce(function (a, b) {
+ return b.offset > c.Kn && b.offset < h ? a + (b.remove - (b.replace ? b.replace.byteLength : 0)) : a;
+ }, 0);
+ f.setInt32(d, h - c.Kn - k);
+ });
+ };
+ b.prototype.YMb = function (a) {
+ this.wd.Xm.forEach(function (b) {
+ var c;
+ c = (b.remove || 0) - (b.replace ? b.replace.byteLength : 0);
+ if (0 !== c)
+ for (b = b.hb; b; ) {
+ a.setUint32(b.byteOffset, a.getUint32(b.byteOffset) - c);
+ b = b.parent;
+ }
+ });
+ };
+ return b;
+ })(d.o7a);
+ b.n7a = d;
+ }, function (d) {
+ d.P = function a(c, d) {
+ var k;
+ c.__proto__ && c.__proto__ !== Object.prototype && a(c.__proto__, d);
+ Object.getOwnPropertyNames(c).forEach(function (a) {
+ k = Object.getOwnPropertyDescriptor(c, a);
+ void 0 !== k && Object.defineProperty(d, a, k);
+ });
+ };
+ }, function (d, b, a) {
+ var c,
+ k,
+ g,
+ r,
+ h,
+ p,
+ m,
+ f,
+ u,
+ n,
+ q,
+ t;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ c = a(0);
+ k = a(879);
+ g = a(414);
+ r = a(131);
+ h = a(236);
+ p = a(28);
+ d = a(417);
+ m = a(416);
+ f = a(413);
+ u = a(130);
+ n = a(237);
+ q = a(82);
+ t = a(412);
+ a = (function () {
+ function a(a, b, c, f, d, h) {
+ this.console = a;
+ this.stream = b;
+ this.kr = f;
+ this.Fcb = d;
+ this.view = c instanceof ArrayBuffer ? new DataView(c) : new DataView(c.data, c.offset, c.length);
+ this.config = h || ({});
+ this.Htb = u.mqb();
+ }
+ a.path = function (a, b) {
+ return b.reduce(function (a, b) {
+ return a && a.Vc[b] && a.Vc[b][0];
+ }, a);
+ };
+ a.hrb = function (a) {
+ return a && a.Ada && -1 !== a.Ada.indexOf("mcl0") ? "mcl0" : void 0;
+ };
+ a.job = function (a, b) {
+ var c;
+ r.assert("mcl0" === a, "Unsupported McClearen brand");
+ c = b.$;
+ a = c.Rd;
+ b = new h.fa(120, 1).ef(c.S).Ab;
+ for (var f = 0, c = c.jk; f < a.length && c < b; ) {
+ c += a[f++];
+ }
+ return f;
+ };
+ a.prototype.parse = function (a) {
+ var b;
+ b = this.wHb();
+ if (!b.done) {
+ if (b.SQa)
+ return {
+ lz: !1,
+ Gcb: b.SQa
+ };
+ this.console.error("Scan error: " + b.error);
+ return {
+ lz: !1,
+ parseError: b.error || "unknown mp4 scan error"
+ };
+ }
+ b = this.view.buffer.slice(this.view.byteOffset, this.view.byteOffset + b.offset);
+ this.view = new DataView(b);
+ a = this.bCb(a);
+ return a.done ? this.jhb() : (this.console.error("Parse error: " + a.error), {
+ lz: !1,
+ parseError: a.error || "unknown mp4 parse error"
+ });
+ };
+ a.prototype.kC = function (a) {
+ return p.cg.kC(this, a);
+ };
+ a.prototype.lC = function (a) {
+ return p.cg.lC(this, a);
+ };
+ a.prototype.wHb = function () {
+ var b,
+ d;
+ b = new t.Q2a(this.kr, this.Fcb ? [q.nU, q.mU] : [], this.config && this.config.T0b || ["moof", q.Owa], this.config && this.config.rSa);
+ d = c.__assign(c.__assign({}, this.config), {
+ Ola: !1
+ });
+ return new f.i5(a.Kna, b, this.view, this.console, d).parse();
+ };
+ a.prototype.bCb = function (a) {
+ var b,
+ d,
+ h;
+ b = new t.Ssa(this.view.byteLength);
+ d = Object.create(n.AI.Vc);
+ this.config && ((this.config.pSa || this.config.aYa || this.config.K3) && k(n.AI.Ina, d), this.config.Ipa && k(n.AI.uMb, d), this.config.aYa && k(n.AI.bYa, d));
+ h = c.__assign(c.__assign({}, this.config), {
+ Ola: !0
+ });
+ this.Jh = new f.i5(d, b, this.view, this.console, h);
+ a = this.Jh.parse(a);
+ a.done && (this.Vc = this.Jh.Vc);
+ return a;
+ };
+ a.prototype.jhb = function () {
+ var b,
+ c,
+ f,
+ d,
+ k,
+ m;
+ b = {
+ lz: !0
+ };
+ c = a.path(this, ["moov"]);
+ f = a.path(c, ["trak", "mdia", "minf", "stbl", "stsd"]);
+ if (this.config.pSa)
+ if (f)
+ (b.Wa = f.Wa, b.m0b = f.Vc);
+ else
+ return {
+ lz: !1,
+ parseError: "Missing sample descriptions"
+ };
+ d = a.path(f, ["encv", "sinf", "schi"]);
+ d && (d = a.path(d, ["tenc"]) || a.path(d, [q.nxa])) && (b.WY = {
+ sXb: d.Qs,
+ IOa: d.IOa,
+ qZb: !1
+ });
+ if (d = a.path(c, ["trak", "mdia", "mdhd"]))
+ b.S = d.S;
+ if (d = a.path(c, ["mvex", "trex"]))
+ b.WG = d && d.Hd.WG;
+ b.WG && b.S && (b.Wa = new h.fa(b.WG, b.S));
+ if (d = a.path(this, ["sidx"])) {
+ k = a.path(this, [q.nU]);
+ k = k && k.Jyb;
+ m = a.path(this, [q.mU]);
+ m = m && m.Di;
+ b.$ = d.$;
+ b.yI = k;
+ b.Di = m;
+ }
+ if (k = this.Vc.vmaf && this.Vc.vmaf[0])
+ b.Wz = k.Wz;
+ if (this.config.fHb)
+ if (c)
+ (this.trim(c.byteOffset + c.byteLength), this.config.K3 && f && 1 < f.Tn && d && (b.Ii = this.K3(f, d)), void 0 === b.Ii && (c = this.Jh.PY ? g.concat(this.Jh.Sa()) : this.view.buffer, b.Ii = [{
+ pC: 0,
+ data: c
+ }
+ ]));
+ else
+ return {
+ lz: !1,
+ parseError: "Missing movie box"
+ };
+ b.lz = !0;
+ b.a2 = this.Jh.offset;
+ return b;
+ };
+ a.prototype.trim = function (a) {
+ var b;
+ b = this.view.buffer.slice(this.view.byteOffset, this.view.byteOffset + Math.min(a, this.view.byteLength));
+ this.Jh.trim(a);
+ this.view = new DataView(b);
+ };
+ a.prototype.K3 = function (b, c) {
+ var f,
+ d,
+ h;
+ f = Object.keys(b.Vc);
+ d = f.filter(function (a) {
+ return "encv" !== a;
+ });
+ if (!(2 > f.length || d.length === f.length || 0 === d.length)) {
+ f = a.path(this, ["ftyp"]);
+ h = a.hrb(f);
+ if (h)
+ return (f = [], this.Jh.MEb(), b.rUa("encv"), f.push({
+ pC: 0,
+ Uj: !1,
+ data: g.concat(this.Jh.Sa())
+ }), this.Jh.CDb(), b.rUa(d[0]), b = a.job(h, c), f.push({
+ pC: b,
+ Uj: !0,
+ data: g.concat(this.Jh.Sa())
+ }), f);
+ }
+ };
+ a.Kna = {};
+ return a;
+ })();
+ b.jx = a;
+ a.Kna[q.Z7] = d["default"];
+ a.Kna[q.a8] = m["default"];
+ }, function (d, b, a) {
+ var c;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ c = a(0);
+ d = (function (a) {
+ function b() {
+ return null !== a && a.apply(this, arguments) || this;
+ }
+ c.__extends(b, a);
+ b.prototype.parse = function () {
+ var a,
+ b,
+ c,
+ d,
+ f;
+ this.$f();
+ a = this.xt([{
+ Cpa: "int32"
+ }, {
+ gIa: "int32"
+ }, {
+ uY: "int32"
+ }, {
+ wY: "int32"
+ }, {
+ vY: "int32"
+ }
+ ]);
+ b = a.Cpa;
+ c = a.gIa;
+ d = a.uY;
+ f = a.vY;
+ a = a.wY;
+ this.Hd = {
+ cb: b,
+ Pkb: c,
+ WG: d,
+ cIa: f,
+ dIa: a
+ };
+ this.Cpa = b;
+ this.gIa = c;
+ this.uY = d;
+ this.wY = a;
+ this.vY = f;
+ return !0;
+ };
+ b.Ye = "trex";
+ b.uc = !1;
+ return b;
+ })(a(28).cg);
+ b["default"] = d;
+ }, function (d, b, a) {
+ var c,
+ k;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ c = a(0);
+ d = a(82);
+ a = a(28);
+ k = d.Y7;
+ a = (function (a) {
+ function b() {
+ return null !== a && a.apply(this, arguments) || this;
+ }
+ c.__extends(b, a);
+ b.prototype.parse = function () {
+ this.$f();
+ this.Hd = this.xt([{
+ M1: "int32"
+ }, {
+ gO: "int16"
+ }
+ ]);
+ return !0;
+ };
+ b.Ye = k;
+ b.uc = !1;
+ return b;
+ })(a.cg);
+ b["default"] = a;
+ }, function (d, b, a) {
+ var c,
+ k;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ c = a(0);
+ k = a(234);
+ d = (function (a) {
+ function b() {
+ return null !== a && a.apply(this, arguments) || this;
+ }
+ c.__extends(b, a);
+ b.prototype.parse = function () {
+ this.$f();
+ this.g2a = k.uta.PTa(this.M);
+ return !0;
+ };
+ b.Ye = "esds";
+ b.uc = !1;
+ return b;
+ })(a(28).cg);
+ b["default"] = d;
+ }, function (d, b, a) {
+ var c;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ c = a(0);
+ d = (function (a) {
+ function b() {
+ return null !== a && a.apply(this, arguments) || this;
+ }
+ c.__extends(b, a);
+ b.prototype.sH = function () {
+ var a;
+ a = this.lC("esds");
+ if (a = a && a.g2a.lC(5))
+ this.CZ = a.CZ;
+ return !0;
+ };
+ b.Ye = "mp4a";
+ b.uc = !0;
+ return b;
+ })(a(169)["default"]);
+ b["default"] = d;
+ }, function (d, b, a) {
+ var c;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ c = a(0);
+ d = (function (a) {
+ function b() {
+ return null !== a && a.apply(this, arguments) || this;
+ }
+ c.__extends(b, a);
+ b.prototype.parse = function () {
+ var a;
+ this.M.Ad();
+ this.m_a = this.M.Ad();
+ this.M.Ad();
+ this.M.Ad();
+ this.M.Ad();
+ this.uWa = this.$aa(this.M.Ad() & 31);
+ this.$aa(this.M.Ad());
+ this.w2 = this.uWa.length ? this.uWa[0][0] : this.m_a;
+ this.rDa = this.M.offset;
+ this.startOffset + this.length < this.M.offset && (100 === this.w2 || 110 === this.w2 || 122 === this.w2 || 144 === this.w2) && (this.M.Ad(), this.M.Ad(), this.$aa(this.M.Ad()));
+ a = this.startOffset + this.length - this.rDa;
+ 0 < a && this.$k(a, this.rDa);
+ return !0;
+ };
+ b.prototype.$aa = function (a) {
+ var d;
+ for (var b = [], c = 0; c < a; ++c) {
+ d = this.M.kh();
+ b.push(this.M.E2(d));
+ }
+ return b;
+ };
+ b.Ye = "avcC";
+ b.uc = !1;
+ return b;
+ })(a(28).cg);
+ b["default"] = d;
+ }, function (d, b, a) {
+ var c,
+ k;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ c = a(0);
+ k = a(28);
+ d = (function (a) {
+ function b() {
+ return null !== a && a.apply(this, arguments) || this;
+ }
+ c.__extends(b, a);
+ b.prototype.parse = function () {
+ this.$f();
+ this.hVa = this.M.wz();
+ k.Oa && this.M.console.trace("SchemeTypeBoxTranslator: " + this.hVa);
+ "cenc" === this.hVa && (this.M.offset -= 4, k.Oa && this.M.console.trace("SchemeTypeBoxTranslator: writing type piff at offset " + this.M.offset), this.fb.BZa("piff"));
+ this.M.Mb();
+ return !0;
+ };
+ b.Ye = "schm";
+ b.uc = !1;
+ return b;
+ })(k.cg);
+ b["default"] = d;
+ }, function (d, b, a) {
+ var c;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ c = a(0);
+ d = (function (a) {
+ function b() {
+ return null !== a && a.apply(this, arguments) || this;
+ }
+ c.__extends(b, a);
+ b.prototype.parse = function () {
+ var b;
+ this.MAb = this.M.kh() & 7;
+ this.WKb = [];
+ for (var a = 0; a < this.MAb; a++) {
+ b = {
+ bpb: this.M.Zf(2),
+ Teb: this.M.Zf(5),
+ Ueb: this.M.Zf(5),
+ Qbb: this.M.Zf(3),
+ uZb: this.M.Zf(1),
+ LAb: this.M.Zf(4)
+ };
+ 0 < b.LAb ? b.fXb = this.M.Zf(9) : this.M.Zf(1);
+ this.WKb.push(b);
+ }
+ return !0;
+ };
+ b.Ye = "dec3";
+ return b;
+ })(a(28).cg);
+ b["default"] = d;
+ }, function (d, b, a) {
+ var c;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ c = a(0);
+ d = (function (a) {
+ function b() {
+ return null !== a && a.apply(this, arguments) || this;
+ }
+ c.__extends(b, a);
+ b.prototype.parse = function () {
+ this.bpb = this.M.Zf(2);
+ this.Teb = this.M.Zf(5);
+ this.Ueb = this.M.Zf(3);
+ this.Qbb = this.M.Zf(3);
+ this.M.Zf(1);
+ this.M.Zf(5);
+ this.M.Zf(5);
+ return !0;
+ };
+ b.Ye = "dac3";
+ return b;
+ })(a(28).cg);
+ b["default"] = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ g,
+ r,
+ h;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ c = a(0);
+ k = a(82);
+ g = a(236);
+ r = a(169);
+ d = a(28);
+ h = a(81);
+ a = (function (a) {
+ function b() {
+ return null !== a && a.apply(this, arguments) || this;
+ }
+ c.__extends(b, a);
+ b.prototype.parse = function () {
+ this.$f();
+ this.Tn = this.M.Mb();
+ return !0;
+ };
+ b.prototype.sH = function (a) {
+ var b;
+ b = Object.keys(this.Vc);
+ b.length && (b = b[0], this.Vc[b].length && (b = this.Vc[b][0], b instanceof r["default"] ? this.Wa = new g.fa(b.CZ, b.cVa) : b instanceof h["default"] && (b = b.Vc[k.Y7]) && b.length && (b = b[0].Hd, 1E3 !== b.gO && 1001 !== b.gO || 0 !== b.M1 % 1E3 ? this.M.console.warn("Unexpected frame rate in NetflixFrameRateBox: " + b.M1 + "/" + b.gO) : this.Wa = new g.fa(b.gO, b.M1)), this.Wa && (a.Wa = this.Wa)));
+ return !0;
+ };
+ b.prototype.rUa = function (a) {
+ void 0 !== this.Vc[a] && 0 !== this.Vc[a].length && (this.fb.Qp(this.Tn - 1, this.byteOffset + 12), a = this.Vc[a][0], this.$k(a.byteLength, a.byteOffset));
+ };
+ b.Ye = "stsd";
+ b.uc = !0;
+ return b;
+ })(d.cg);
+ b["default"] = a;
+ }, function (d, b, a) {
+ var c,
+ k;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ c = a(0);
+ k = a(74);
+ d = (function (a) {
+ function b() {
+ return null !== a && a.apply(this, arguments) || this;
+ }
+ c.__extends(b, a);
+ b.prototype.parse = function () {
+ this.$f();
+ this.Hd = this.xt([{
+ O_b: "int32"
+ }, {
+ DMa: "int32"
+ }, {
+ offset: 96,
+ type: "offset"
+ }, {
+ name: "string"
+ }
+ ]);
+ this.Hd.DMa = k.Ax(this.Hd.DMa);
+ return !0;
+ };
+ b.Ye = "hdlr";
+ b.uc = !1;
+ return b;
+ })(a(28).cg);
+ b["default"] = d;
+ }, function (d, b, a) {
+ var c;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ c = a(0);
+ d = (function (a) {
+ function b() {
+ return null !== a && a.apply(this, arguments) || this;
+ }
+ c.__extends(b, a);
+ b.prototype.parse = function () {
+ this.M.wz();
+ this.M.wz();
+ for (this.Ada = []; this.M.offset <= this.byteOffset + this.byteLength - 4; ) {
+ this.Ada.push(this.M.wz());
+ }
+ return !0;
+ };
+ b.Ye = "ftyp";
+ b.uc = !1;
+ return b;
+ })(a(28).cg);
+ b["default"] = d;
+ }, function (d, b, a) {
+ var c;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ c = a(0);
+ d = (function (a) {
+ function b() {
+ return null !== a && a.apply(this, arguments) || this;
+ }
+ c.__extends(b, a);
+ b.prototype.parse = function () {
+ this.Hd = this.xt([{
+ TWb: "int32"
+ }, {
+ io: "int32"
+ }, {
+ jeb: "int32"
+ }
+ ]);
+ return !0;
+ };
+ b.Ye = "btrt";
+ b.uc = !1;
+ return b;
+ })(a(28).cg);
+ b["default"] = d;
+ }, function (d, b, a) {
+ var c;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ c = a(0);
+ d = (function (a) {
+ function b() {
+ return null !== a && a.apply(this, arguments) || this;
+ }
+ c.__extends(b, a);
+ b.prototype.parse = function () {
+ this.Hd = this.xt([{
+ YYb: "int32"
+ }, {
+ s1b: "int32"
+ }
+ ]);
+ return !0;
+ };
+ b.Ye = "pasp";
+ b.uc = !1;
+ return b;
+ })(a(28).cg);
+ b["default"] = d;
+ }, function (d, b, a) {
+ var c;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ c = a(0);
+ d = (function (a) {
+ function b() {
+ return null !== a && a.apply(this, arguments) || this;
+ }
+ c.__extends(b, a);
+ b.prototype.parse = function () {
+ this.$f();
+ this.Hd = this.xt(1 === this.version ? [{
+ lKa: "int64"
+ }
+ ] : [{
+ lKa: "int32"
+ }
+ ]);
+ return !0;
+ };
+ b.Ye = "mehd";
+ b.uc = !1;
+ return b;
+ })(a(28).cg);
+ b["default"] = d;
+ }, function (d, b, a) {
+ var c;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ c = a(0);
+ d = (function (a) {
+ function b() {
+ return null !== a && a.apply(this, arguments) || this;
+ }
+ c.__extends(b, a);
+ b.prototype.parse = function () {
+ var a;
+ this.$f();
+ a = 1 === this.version ? [{
+ Yh: "int64"
+ }, {
+ modificationTime: "int64"
+ }, {
+ cb: "int32"
+ }, {
+ offset: 32,
+ type: "offset"
+ }, {
+ duration: "int64"
+ }
+ ] : [{
+ Yh: "int32"
+ }, {
+ modificationTime: "int32"
+ }, {
+ cb: "int32"
+ }, {
+ offset: 32,
+ type: "offset"
+ }, {
+ duration: "int32"
+ }
+ ];
+ a = a.concat({
+ offset: 64,
+ type: "offset"
+ }, {
+ Kwb: "int16"
+ }, {
+ Wcb: "int16"
+ }, {
+ volume: "int16"
+ }, {
+ offset: 16,
+ type: "offset"
+ }, {
+ offset: 288,
+ type: "offset"
+ }, {
+ width: "int32"
+ }, {
+ height: "int32"
+ });
+ this.Hd = this.xt(a);
+ this.Hd.$0b = !!(this.qf & 1);
+ this.Hd.a1b = !!(this.qf & 2);
+ this.Hd.b1b = !!(this.qf & 4);
+ this.Hd.c1b = !!(this.qf & 8);
+ this.M.console.trace("Finished parsing track box");
+ return !0;
+ };
+ b.Ye = "tkhd";
+ b.uc = !1;
+ return b;
+ })(a(28).cg);
+ b["default"] = d;
+ }, function (d, b, a) {
+ var c;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ c = a(0);
+ d = (function (a) {
+ function b() {
+ return null !== a && a.apply(this, arguments) || this;
+ }
+ c.__extends(b, a);
+ b.Ye = "trak";
+ b.uc = !0;
+ return b;
+ })(a(28).cg);
+ b["default"] = d;
+ }, function (d, b, a) {
+ var c;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ c = a(0);
+ d = (function (a) {
+ function b() {
+ return null !== a && a.apply(this, arguments) || this;
+ }
+ c.__extends(b, a);
+ b.prototype.parse = function () {
+ this.$f();
+ this.Hd = 1 === this.version ? this.xt([{
+ Yh: "int64"
+ }, {
+ modificationTime: "int64"
+ }, {
+ S: "int32"
+ }, {
+ duration: "int64"
+ }
+ ]) : this.xt([{
+ Yh: "int32"
+ }, {
+ modificationTime: "int32"
+ }, {
+ S: "int32"
+ }, {
+ duration: "int32"
+ }
+ ]);
+ return !0;
+ };
+ b.Ye = "mvhd";
+ b.uc = !1;
+ return b;
+ })(a(28).cg);
+ b["default"] = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ g,
+ r,
+ h,
+ p,
+ m;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.aAa = b.P6a = void 0;
+ c = a(0);
+ k = a(96);
+ g = a(5);
+ d = a(4);
+ r = a(410);
+ a = a(421);
+ h = new d.Console("FRAGMENTS", "media|asejs");
+ try {
+ p = !0;
+ } catch (f) {
+ p = !1;
+ }
+ m = (function (a) {
+ function b(b, c) {
+ c = a.call(this, b.Wl, c) || this;
+ c.oB = b;
+ return c;
+ }
+ c.__extends(b, a);
+ Object.defineProperties(b.prototype, {
+ da: {
+ get: function () {
+ return this.oB.WJb(this.Gj);
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ offset: {
+ get: function () {
+ return this.oB.ih(this.Gj);
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ Vka: {
+ get: function () {
+ return this.oB.yI && this.oB.yI[this.Gj];
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ Di: {
+ get: function () {
+ return this.oB.opb(this.Gj);
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ Bb: {
+ get: function () {
+ return this.oB.Wz && this.oB.Wz[this.Gj];
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ b.prototype.toJSON = function () {
+ return {
+ index: this.index,
+ contentStartTicks: this.Qa,
+ contentEndTicks: this.jb,
+ durationTicks: this.cp,
+ timescale: this.S,
+ startPts: this.T,
+ endPts: this.oa,
+ duration: this.duration,
+ additionalSAPs: this.Di
+ };
+ };
+ return b;
+ })(a.AAa);
+ b.P6a = m;
+ d = (function () {
+ function a(a, b, c, f, d, k) {
+ this.SF = 128;
+ this.qc = a;
+ this.ae = b.offset;
+ this.Dn = b.sizes;
+ this.pF = this.QL = this.Xg = this.WDa = this.lba = void 0;
+ this.f$a = c;
+ this.D$ = f && f.ih;
+ this.gEa = d;
+ this.Ce = Math.min(this.qc.length, this.Dn.length);
+ this.S9a = this.rfb();
+ this.Wl.Ho.length !== this.Dn.length && h.error("Mis-matched stream duration (" + this.Wl.Ho.length + "," + this.Dn.length + ") for movie id " + k);
+ this.Wl.lX && !this.D$ && h.error("Mis-matched additional SAPs information for movie id " + k);
+ }
+ a.tXb = function (a, b) {
+ var c,
+ f;
+ b = b.S;
+ c = b / 1E3;
+ f = new DataView(a);
+ a = Math.floor(a.byteLength / 16);
+ return {
+ S: b,
+ jk: f.getUint32(4) * c,
+ offset: 65536 * f.getUint32(8) + f.getUint16(12),
+ sizes: k.K1a.IH(f, 0, a, 16),
+ Rd: k.h$.from(Uint32Array, {
+ length: a
+ }, function (a, b) {
+ return f.getUint16(16 * b + 14) * c;
+ })
+ };
+ };
+ Object.defineProperties(a.prototype, {
+ L: {
+ get: function () {
+ return this.qc.L;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ length: {
+ get: function () {
+ return this.Ce;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ jk: {
+ get: function () {
+ return this.qc.jk;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ ofa: {
+ get: function () {
+ return this.qc.ofa;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ T: {
+ get: function () {
+ return this.qc.T;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ oa: {
+ get: function () {
+ return this.qc.oa;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ oka: {
+ get: function () {
+ return this.qc.oka;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ W0: {
+ get: function () {
+ return this.S9a;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ Wa: {
+ get: function () {
+ return this.qc.Wa;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ S: {
+ get: function () {
+ return this.qc.S;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ ki: {
+ get: function () {
+ return this.WDa || this.O$();
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ yI: {
+ get: function () {
+ return this.f$a;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ CEa: {
+ get: function () {
+ return this.D$;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ Wz: {
+ get: function () {
+ return this.gEa;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ Wl: {
+ get: function () {
+ return this.qc;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ BJ: {
+ get: function () {
+ return this.lba || this.s8a();
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ a.prototype.WJb = function (a) {
+ if (this.Dn)
+ return this.Dn[a];
+ h.error("sizesByIndex _sizes is undefined");
+ return -1;
+ };
+ a.prototype.hi = function (a) {
+ return this.qc.hi(a);
+ };
+ a.prototype.pfa = function (a) {
+ return this.qc.hi(a) + this.qc.Rd(a);
+ };
+ a.prototype.ih = function (a) {
+ if (this.QL !== a || void 0 === this.pF) {
+ if (0 === a)
+ return this.ae;
+ if (this.QL === a - 1 && void 0 !== this.pF)
+ (this.pF += this.Dn[this.QL], ++this.QL);
+ else {
+ for (var b = this.Xg || this.d8a(), c = Math.floor(a / this.SF), f = c * this.SF, b = b[c]; f < a; ++f) {
+ b += this.Dn[f];
+ }
+ this.QL = a;
+ this.pF = b;
+ }
+ }
+ return this.pF;
+ };
+ a.prototype.Rd = function (a) {
+ return this.qc.Rd(a);
+ };
+ a.prototype.get = function (a) {
+ return new m(this, a);
+ };
+ a.prototype.opb = function (a) {
+ var b,
+ c,
+ f;
+ g.assert(0 <= a);
+ b = this.Wl.lX;
+ c = this.Wl.DEa;
+ f = this.D$;
+ if (!f || !b || !c || a >= b.length)
+ return [];
+ for (var d = [], h = a === b.length - 1 ? c.length : b[a + 1], b = b[a]; b < h; ++b) {
+ d.push({
+ Um: c[b],
+ Oc: this.hi(a) + this.Wa.u1(c[b]).qa,
+ offset: f[b]
+ });
+ }
+ return d;
+ };
+ a.prototype.pJb = function (a) {
+ this.gEa = a;
+ };
+ a.prototype.ym = function (a, b, c) {
+ return this.qc.ym(a, b, c);
+ };
+ a.prototype.lZ = function (a, b, c) {
+ return this.qc.lZ(a, b, c);
+ };
+ a.prototype.Sda = function (a, b) {
+ return this.qc.Sda(a, b);
+ };
+ a.prototype.aja = function (a, b, c) {
+ var f,
+ d,
+ h,
+ k,
+ g,
+ m,
+ l,
+ p,
+ r;
+ f = !0;
+ d = 0;
+ k = this.qc.Ho;
+ g = this.Dn;
+ m = Math.floor(a * this.S / 1E3);
+ l = 0;
+ p = 0;
+ r = 0;
+ if (this.qc.Tpa && this.qc.Spa)
+ for (d = this.qc.Tpa; d <= this.qc.Spa; ++d) {
+ l += k[d];
+ p += g[d];
+ }
+ if (p > b)
+ f = !1;
+ else
+ for (; d < this.length && (!c || d < c); ) {
+ h = g[d];
+ a = k[d];
+ if (p + h > b && l < m) {
+ f = !1;
+ this.qc.Tpa = r;
+ this.qc.Spa = d;
+ break;
+ }
+ for (; 0 < d - r && p + h > b; ) {
+ l -= k[r];
+ p -= g[r];
+ ++r;
+ }
+ l += a;
+ p += h;
+ ++d;
+ }
+ return f;
+ };
+ a.prototype.subarray = function (b, c) {
+ g.assert(void 0 === b || 0 <= b && b < this.length);
+ g.assert(void 0 === c || c > b && c <= this.length);
+ return new a(this.qc.subarray(b, c), {
+ offset: this.ih(b),
+ sizes: this.Dn.subarray(b, c)
+ }, this.yI && this.yI.subarray(b, c), this.CEa && ({
+ ih: this.CEa
+ }));
+ };
+ a.prototype.forEach = function (a) {
+ for (var b = 0; b < this.length; ++b) {
+ a(this.get(b), b, this);
+ }
+ };
+ a.prototype.map = function (a) {
+ for (var b = [], c = 0; c < this.length; ++c) {
+ b.push(a(this.get(c), c, this));
+ }
+ return b;
+ };
+ a.prototype.reduce = function (a, b) {
+ for (var c = 0; c < this.length; ++c) {
+ b = a(b, this.get(c), c, this);
+ }
+ return b;
+ };
+ a.prototype.toJSON = function () {
+ return {
+ length: this.length
+ };
+ };
+ a.prototype.dump = function () {
+ var b;
+ h.trace("StreamFragments: " + this.length);
+ for (var a = 0; a < this.length; ++a) {
+ b = this.get(a);
+ h.trace("StreamFragments: " + a + ": [" + b.T + "-" + b.oa + "] @ " + b.offset + ", " + b.da + " bytes");
+ }
+ };
+ a.prototype.rfb = function () {
+ var a,
+ b,
+ c,
+ f,
+ d;
+ b = 0;
+ c = this.qc.VPa;
+ f = this.qc.Ho;
+ d = this.Dn;
+ if (void 0 === c || c >= this.length) {
+ for (var h = 0; h < this.length; ++h) {
+ a = d[h] / f[h];
+ a > b && (b = a, c = h);
+ }
+ void 0 === this.qc.VPa && (this.qc.VPa = c);
+ } else
+ b = d[c] / f[c];
+ return Math.floor(b * this.S / 125);
+ };
+ a.prototype.O$ = function () {
+ for (var a = 0, b = 0; b < this.length; ++b) {
+ a += this.Dn[b];
+ }
+ return this.WDa = a;
+ };
+ a.prototype.s8a = function () {
+ return this.lba = new r.I9(this.qc.Ho, this.Dn, this.qc.S);
+ };
+ a.prototype.d8a = function () {
+ var a;
+ if (!this.Xg) {
+ a = p ? new Float64Array(Math.ceil(this.length / this.SF)) : Array(Math.ceil(this.length / this.SF));
+ for (var b = this.ae, c = 0; c < a.length; ++c) {
+ a[c] = b;
+ for (var f = 0; f < this.SF; ++f) {
+ b += this.Dn[c * this.SF + f];
+ }
+ }
+ this.Xg = a;
+ }
+ return this.Xg;
+ };
+ return a;
+ })();
+ b.aAa = d;
+ d.prototype.CWa = a.NP(d.prototype.hi);
+ }, function (d, b, a) {
+ var k,
+ g,
+ r,
+ h,
+ p,
+ m;
+ function c(a, b) {
+ var c,
+ f;
+ c = Math.floor(1E3 * a / b);
+ f = 1E3 * Math.round(c / 1E3);
+ return new g.fa(f, Math.abs(Math.floor(1001 * a / b) - f) > Math.abs(c - f) ? 1E3 : 1001);
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.gra = void 0;
+ k = a(421);
+ g = a(27);
+ r = a(5);
+ h = a(11);
+ p = a(238);
+ m = a(420);
+ d = (function () {
+ function a(b, f, d) {
+ this.K = f;
+ this.u = d;
+ this.Fx = new h.Oza();
+ this.rCa = !1;
+ this.Haa = b.QC;
+ this.dd = b.O;
+ this.De = b.L;
+ this.pbb = b.jS;
+ this.x7a = b.tB;
+ 1 === this.De && (f = this.Haa.streams[0], void 0 !== f.framerate_value && void 0 !== f.framerate_scale && (this.Gaa = c(f.framerate_value, f.framerate_scale).eUa()));
+ this.jm = (this.DF = this.Gaa) && this.DF.S;
+ this.qaa = this.XBa = !1;
+ this.eia = -Infinity;
+ this.uPa = Infinity;
+ b = a.t8a(this, b.Kf);
+ f = b.io;
+ d = b.Qc;
+ this.u9a = b.B_;
+ this.R9a = f;
+ this.Hu = d;
+ this.ibb = d.reduce(function (a, b) {
+ a[b.wa] = b;
+ return a;
+ }, {});
+ !1;
+ }
+ a.t8a = function (a, b) {
+ var c,
+ f,
+ d,
+ h,
+ k;
+ c = a.K;
+ f = 1 === a.L;
+ d = !1;
+ h = 0;
+ k = [];
+ a.QC.streams.forEach(function (g, l) {
+ var p,
+ r,
+ u;
+ r = g.bitrate;
+ u = !0;
+ f && (p = -1 === g.content_profile.indexOf("none"), u = b && !p || !b && p, d = d || p);
+ u && r > h && (h = r);
+ g = new m.era({
+ Zv: g,
+ ug: l,
+ track: a,
+ Ps: u
+ }, c, a.u);
+ k.push(g);
+ });
+ return {
+ B_: d,
+ io: h,
+ Qc: k
+ };
+ };
+ Object.defineProperties(a.prototype, {
+ Xzb: {
+ get: function () {
+ return !this.ge && !this.rCa;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ ge: {
+ get: function () {
+ return !!this.Wl && !!this.Fx.value;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ Yea: {
+ get: function () {
+ return this.XBa;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ O: {
+ get: function () {
+ return this.dd;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ G: {
+ get: function () {
+ return String(this.dd.G);
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ cb: {
+ get: function () {
+ return this.Haa.track_id;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ L: {
+ get: function () {
+ return this.De;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ Wa: {
+ get: function () {
+ return this.DF;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ S: {
+ get: function () {
+ return this.jm;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ zI: {
+ get: function () {
+ return this.h$a;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ Wl: {
+ get: function () {
+ return this.qc;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ rP: {
+ get: function () {
+ return this.Fx.value;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ QC: {
+ get: function () {
+ return this.Haa;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ jS: {
+ get: function () {
+ return this.pbb;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ tB: {
+ get: function () {
+ return this.x7a;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ B_: {
+ get: function () {
+ return this.u9a;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ io: {
+ get: function () {
+ return this.R9a;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ Qc: {
+ get: function () {
+ return this.Hu;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ lga: {
+ get: function () {
+ return this.Wa.S;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ kga: {
+ get: function () {
+ return this.Wa.Ab;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ T: {
+ get: function () {
+ return 0;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ Yfa: {
+ get: function () {
+ return this.Fx;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ a.prototype.Hq = function (a) {
+ return this.HH()[a];
+ };
+ a.prototype.HH = function () {
+ return this.ibb;
+ };
+ a.prototype.equals = function (a) {
+ return this.G === a.G && this.L === a.L && this.cb === a.cb;
+ };
+ a.prototype.zla = function () {
+ this.rCa = !0;
+ };
+ a.prototype.O1 = function (a, b, c, f, d) {
+ if (f && void 0 !== f.jk && (this.ge || void 0 !== f.Rd && f.Rd.length)) {
+ if ((a.Nv && (this.XBa = !0), this.ge))
+ !this.qaa && f.Rd && f.Rd.length > this.Wl.length && (this.qc = new k.Z9(this.L, this.Wa, f, d), this.Fx.LUa(), this.eia = -Infinity, this.qaa = !0);
+ else {
+ this.LDa(b);
+ if (c = c || this.Gaa)
+ (this.KDa(c || this.Gaa), void 0 === this.S && this.MDa(c.S));
+ this.qc = new k.Z9(this.L, this.Wa, f, d);
+ a.Nv && (this.qaa = !0);
+ }
+ } else
+ this.u && this.u.error("AseTrack.onHeaderReceived with missing fragments data");
+ };
+ a.prototype.mBb = function (a) {
+ void 0 === this.Fx.value && this.Fx.set(a);
+ };
+ a.prototype.uhb = function (a) {
+ this.ge || (this.MDa(a.S), this.LDa(a.zI), this.KDa(a.Wa), this.qc = a.Wl, a.Yfa.value ? this.Fx.set(a.Yfa.value) : this.Fx.LUa());
+ };
+ a.prototype.xm = function (a, b, c, f) {
+ r.assert(this.rP);
+ return p.xm(this.L, a, this.rP, b, c, f);
+ };
+ a.prototype.mC = function (a, b, c) {
+ r.assert(this.rP);
+ return p.mC(this.L, a, this.rP, b, c);
+ };
+ a.prototype.toJSON = function () {
+ return {
+ movieId: this.G,
+ mediaType: this.L,
+ trackId: this.cb
+ };
+ };
+ a.prototype.toString = function () {
+ return (0 === this.L ? "a" : "v") + ":" + this.cb;
+ };
+ a.prototype.MDa = function (a) {
+ this.jm = a;
+ };
+ a.prototype.LDa = function (a) {
+ this.h$a = a;
+ };
+ a.prototype.KDa = function (a) {
+ this.DF = a;
+ };
+ return a;
+ })();
+ b.gra = d;
+ }, function (d) {
+ function b(a, b) {
+ this.Ca = a;
+ this.Qh = b;
+ }
+ b.prototype.nma = function (a) {
+ var r,
+ h,
+ d;
+ a *= 2;
+ if (2 <= a)
+ a = -100;
+ else if (0 >= a)
+ a = 100;
+ else {
+ for (var b = 1 > a ? a : 2 - a, d = Math.sqrt(-2 * Math.log(b / 2)), d = - .70711 * ((2.30753 + .27061 * d) / (1 + d * (.99229 + .04481 * d)) - d), g = 0; 2 > g; g++) {
+ r = Math.abs(d);
+ h = 1 / (1 + r / 2);
+ r = h * Math.exp(-r * r - 1.26551223 + h * (1.00002368 + h * (.37409196 + h * (.09678418 + h * ( - .18628806 + h * (.27886807 + h * (-1.13520398 + h * (1.48851587 + h * ( - .82215223 + .17087277 * h)))))))));
+ r = (0 <= d ? r : 2 - r) - b;
+ d = d + r / (1.1283791670955126 * Math.exp( - (d * d)) - d * r);
+ }
+ a = 1 > a ? d : -d;
+ }
+ return this.Ca - Math.sqrt(2 * this.Qh) * a;
+ };
+ d.P = b;
+ }, function (d, b, a) {
+ var k;
+ function c(a) {
+ this.oJ = new Uint16Array(a.length);
+ for (var b = 0; b < a.length; ++b) {
+ this.oJ[b] = a.charCodeAt(b);
+ }
+ }
+ k = new(a(4).Console)("ASEJS_XORCiper", "media|asejs");
+ c.prototype.constructor = c;
+ c.prototype.encrypt = function (a) {
+ var b,
+ c;
+ b = this.oJ.length;
+ if (void 0 === this.oJ)
+ k.warn("XORCiper.encrypt is called with undefined secret!");
+ else {
+ c = "";
+ for (var d = 0; d < a.length; ++d) {
+ c += String.fromCharCode(this.oJ[d % b] ^ a.charCodeAt(d));
+ }
+ return encodeURIComponent(c);
+ }
+ };
+ c.prototype.decrypt = function (a) {
+ var b,
+ c;
+ b = "";
+ c = this.oJ.length;
+ a = decodeURIComponent(a);
+ for (var d = 0; d < a.length; d++) {
+ b += String.fromCharCode(this.oJ[d % c] ^ a.charCodeAt(d));
+ }
+ return b;
+ };
+ d.P = c;
+ }, function (d, b, a) {
+ var c;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Pza = b.Oza = void 0;
+ c = a(45);
+ d = (function () {
+ function a(a) {
+ this.o = a;
+ this.listeners = [];
+ this.vQ = [];
+ }
+ Object.defineProperties(a.prototype, {
+ value: {
+ get: function () {
+ return this.o;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ a.prototype.set = function (a) {
+ var b;
+ this.o = a;
+ b = this.vQ;
+ this.vQ = [];
+ this.listeners.forEach(function (b) {
+ return b(a);
+ });
+ b.forEach(function (b) {
+ return b(a);
+ });
+ };
+ a.prototype.LUa = function () {
+ this.o = void 0;
+ };
+ a.prototype.on = function (a) {
+ this.listeners = this.listeners.concat([a]);
+ void 0 !== this.o && a(this.o);
+ };
+ a.prototype.once = function (a) {
+ void 0 !== this.o ? a(this.o) : this.vQ.push(a);
+ };
+ a.prototype.HI = function (a) {
+ this.listeners = this.listeners.filter(function (b) {
+ return b !== a;
+ });
+ this.vQ = this.vQ.filter(function (b) {
+ return b !== a;
+ });
+ };
+ return a;
+ })();
+ b.Oza = d;
+ d = (function () {
+ function a() {
+ this.listeners = [];
+ }
+ a.prototype.on = function (a, b) {
+ this.listeners.push({
+ H3: a,
+ listener: b
+ });
+ a.on(b);
+ };
+ a.prototype.once = function (a, b) {
+ var c,
+ d;
+ c = this;
+ if (void 0 === a.value) {
+ d = function (d) {
+ c.remove(a, b);
+ b(d);
+ };
+ this.listeners.push({
+ H3: a,
+ listener: b,
+ AZa: d
+ });
+ a.once(d);
+ } else
+ a.once(b);
+ };
+ a.prototype.HI = function (a, b) {
+ var d,
+ g;
+ g = c.xl(this.listeners, function (c) {
+ return c.H3 === a && c.listener === b;
+ });
+ void 0 !== g && a.HI(null !== (d = g.AZa) && void 0 !== d ? d : g.listener);
+ this.remove(a, b);
+ };
+ a.prototype.removeAllListeners = function () {
+ this.listeners.forEach(function (a) {
+ var b,
+ c;
+ b = a.listener;
+ c = a.AZa;
+ return a.H3.HI(null !== c && void 0 !== c ? c : b);
+ });
+ this.listeners = [];
+ };
+ a.prototype.remove = function (a, b) {
+ this.listeners = this.listeners.filter(function (c) {
+ return c.H3 !== a || c.listener !== b;
+ });
+ };
+ return a;
+ })();
+ b.Pza = d;
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.QJa = void 0;
+ b.QJa = function (a, b) {
+ return a.filter(function (a) {
+ var c,
+ d;
+ a = null !== (d = null !== (c = a.ot) && void 0 !== c ? c : a.Hia) && void 0 !== d ? d : a.kk;
+ return !!a && a.MC(b);
+ }).pop();
+ };
+ }, function (d, b, a) {
+ var c,
+ g;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Nwa = void 0;
+ c = a(45);
+ g = a(5);
+ d = (function () {
+ function a() {
+ this.data = {};
+ }
+ Object.defineProperties(a.prototype, {
+ empty: {
+ get: function () {
+ return 0 === Object.keys(this.data).length;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ size: {
+ get: function () {
+ var a;
+ a = this;
+ return Object.keys(this.data).reduce(function (b, c) {
+ return b + a.data[c].length;
+ }, 0);
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ a.prototype.get = function (a) {
+ var b;
+ return null !== (b = this.data[a]) && void 0 !== b ? b : [];
+ };
+ a.prototype.has = function (a, b) {
+ return (a = this.data[a]) ? void 0 === b ? !0 : -1 !== a.indexOf(b) : !1;
+ };
+ a.prototype.count = function (a) {
+ return (a = this.data[a]) ? a.length : 0;
+ };
+ a.prototype.keys = function () {
+ return Object.keys(this.data);
+ };
+ a.prototype.values = function () {
+ var a;
+ a = this;
+ return c.Aq(this.keys().map(function (b) {
+ return a.data[b];
+ }));
+ };
+ a.prototype.set = function (a, b) {
+ (this.data[a] || (this.data[a] = [])).push(b);
+ return this;
+ };
+ a.prototype.clear = function () {
+ this.data = {};
+ };
+ a.prototype["delete"] = function (a, b) {
+ var c,
+ d;
+ c = this.data[a];
+ if (void 0 === c)
+ return !1;
+ if (void 0 === b)
+ return (g.assert(1 === arguments.length), delete this.data[a], !0);
+ d = c.indexOf(b);
+ if (-1 === d)
+ return !1;
+ 1 === c.length ? delete this.data[a] : c.splice(d, 1);
+ return !0;
+ };
+ a.prototype.forEach = function (a, b) {
+ var c;
+ c = this;
+ a = void 0 !== b ? a.bind(b) : a;
+ this.keys().forEach(function (b) {
+ return c.data[b].forEach(function (f) {
+ return a(f, b, c);
+ });
+ });
+ };
+ a.prototype.reduce = function (a, b, c) {
+ var d,
+ f;
+ d = this;
+ a = void 0 !== c ? a.bind(c) : a;
+ f = b;
+ this.forEach(function (b, c) {
+ f = a(f, b, c, d);
+ });
+ return f;
+ };
+ a.prototype.map = function (a, b) {
+ var d;
+ d = this;
+ a = void 0 !== b ? a.bind(b) : a;
+ return c.Aq(this.keys().map(function (b) {
+ return d.data[b].map(function (c) {
+ return a(c, b, d);
+ });
+ }));
+ };
+ a.prototype.filter = function (a, b) {
+ var d;
+ d = this;
+ a = void 0 !== b ? a.bind(b) : a;
+ return c.Aq(this.keys().map(function (b) {
+ return d.data[b].filter(function (c) {
+ return a(c, b, d);
+ });
+ }));
+ };
+ return a;
+ })();
+ b.Nwa = d;
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.cxa = void 0;
+ d = (function () {
+ function a(a, b, d) {
+ var c;
+ c = this;
+ this.properties = a;
+ this.$gb = b;
+ this.Zca = d;
+ this.state = !1;
+ this.Dla = function () {
+ var a,
+ b;
+ a = c.state;
+ b = c.properties.map(function (a) {
+ return a.value;
+ });
+ c.state = c.$gb(b);
+ a !== c.state && c.Zca(c.state);
+ };
+ a.forEach(function (a) {
+ return a.addListener(c.Dla);
+ });
+ this.Dla();
+ }
+ a.prototype.clear = function () {
+ var a;
+ a = this;
+ this.properties.forEach(function (b) {
+ return b.removeListener(a.Dla);
+ });
+ };
+ return a;
+ })();
+ b.cxa = d;
+ }, function (d, b, a) {
+ var c,
+ g;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.iu = b.j6a = void 0;
+ c = a(0);
+ g = a(905);
+ d = (function () {
+ function a(a, b) {
+ this.o = a;
+ this.Fv = b ? [b] : [];
+ }
+ Object.defineProperties(a.prototype, {
+ value: {
+ get: function () {
+ return this.o;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ a.prototype.addListener = function (a) {
+ -1 === this.Fv.indexOf(a) && (this.Fv = this.Fv.slice(), this.Fv.push(a));
+ };
+ a.prototype.removeListener = function (a) {
+ a = this.Fv.indexOf(a);
+ -1 !== a && (this.Fv = this.Fv.slice(), this.Fv.splice(a, 1));
+ };
+ return a;
+ })();
+ b.j6a = d;
+ d = (function (a) {
+ function b(b, c) {
+ return a.call(this, b, c) || this;
+ }
+ c.__extends(b, a);
+ b.vZa = function (a, b, c) {
+ return new g.cxa(a, b, c);
+ };
+ b.JOb = function (a, c, d) {
+ return b.vZa(a, function (a) {
+ return a.every(function (a, b) {
+ return a === c[b];
+ });
+ }, d);
+ };
+ Object.defineProperties(b.prototype, {
+ value: {
+ get: function () {
+ return this.o;
+ },
+ set: function (a) {
+ this.set(a);
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ b.prototype.set = function (a) {
+ var b;
+ b = this.o;
+ b !== a && (this.o = a, this.Fv.forEach(function (c) {
+ return c({
+ oldValue: b,
+ newValue: a
+ });
+ }));
+ };
+ return b;
+ })(d);
+ b.iu = d;
+ }, function (d, b, a) {
+ var c,
+ g;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Mza = void 0;
+ c = a(11);
+ d = a(4);
+ g = d.wk;
+ new d.Console("ASEJS_SIDECHANNEL", "media|asejs");
+ d = (function () {
+ function a(a, b, d) {
+ this.Mm = d;
+ this.Jbb = new c.eBa(a);
+ this.Ibb = b.ga;
+ this.W7a = 1E3 * b.Hyb / b.Veb;
+ this.F8a = b.sy;
+ this.VA = b.uda;
+ }
+ a.prototype.Mn = function (a) {
+ var b,
+ d,
+ g,
+ f;
+ b = {
+ s_xid: this.Ibb,
+ dl: this.F8a ? 1 : 0
+ };
+ a.pN && (b.bs = c.RX(Math.floor(a.pN / this.W7a) + 1, 1, 5));
+ a.F1 && (b.limit_rate = a.F1);
+ a.NFa && (b.bb_reason = a.NFa);
+ a.HXa && (b.tm = a.HXa);
+ if (a.cY) {
+ d = 0;
+ g = 0;
+ f = 0;
+ a.pN && a.pN > this.VA.cQ && (this.VA.VQ[0] && (d = this.VA.VQ[0] * a.cY), this.VA.VQ[1] && (g = this.VA.VQ[1] * a.cY), this.VA.VQ[2] && (f = this.VA.VQ[2] * a.cY));
+ b.cpr_ss = d;
+ b.cpr_ca = g;
+ b.cpr_rec = f;
+ }
+ return this.O$a(b);
+ };
+ a.prototype.boa = function (a, b) {
+ var c,
+ d;
+ try {
+ c = new g(void 0, "notification");
+ d = this.Mn({
+ NFa: a
+ });
+ b && d && c.open(b, void 0, 2, void 0, void 0, void 0, d);
+ } catch (f) {
+ this.Mm("SideChannel: Error when sending sendBlackBoxNotification. Error: " + f);
+ }
+ };
+ a.prototype.O$a = function (a) {
+ var b;
+ try {
+ b = this.Wab(a);
+ return this.Jbb.encrypt(b);
+ } catch (p) {
+ this.Mm("SideChannel: Error when obfuscating msg. Error: " + p);
+ }
+ };
+ a.prototype.Wab = function (a) {
+ return Object.keys(a).map(function (b) {
+ return encodeURIComponent(b) + "=" + encodeURIComponent(JSON.stringify(a[b]));
+ }).join("&");
+ };
+ return a;
+ })();
+ b.Mza = d;
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.zr = void 0;
+ d = b.zr || (b.zr = {});
+ d[d.CLOSED = 0] = "CLOSED";
+ d[d.OPEN = 1] = "OPEN";
+ }, function (d, b, a) {
+ var c,
+ g,
+ l,
+ r,
+ h,
+ p,
+ m,
+ f,
+ u,
+ n,
+ q,
+ t,
+ C,
+ M,
+ H;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Hqa = void 0;
+ c = a(0);
+ g = a(18);
+ l = a(908);
+ r = a(239);
+ h = a(855);
+ p = a(224);
+ m = a(853);
+ f = a(841);
+ u = a(782);
+ n = a(160);
+ q = a(383);
+ t = a(45);
+ C = a(5);
+ M = a(781);
+ H = a(775);
+ d = (function () {
+ function a(a) {
+ this.u = a;
+ this.events = new g.EventEmitter();
+ this.gd = l.zr.CLOSED;
+ this.iG = [];
+ this.tM = [];
+ this.Nx = [];
+ this.mba = {};
+ }
+ Object.defineProperties(a.prototype, {
+ vma: {
+ get: function () {
+ C.assert(this.mDa);
+ return this.mDa;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ state: {
+ get: function () {
+ return this.gd;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ sDb: {
+ get: function () {
+ return this.tM;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ yDb: {
+ get: function () {
+ return this.Nx;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ zb: {
+ get: function () {
+ this.Rz();
+ return this.gv.zb;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ Lm: {
+ get: function () {
+ this.Rz();
+ return this.gv.Lm;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ Mf: {
+ get: function () {
+ this.Rz();
+ return this.gv.Mf;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(a.prototype, {
+ YJb: {
+ get: function () {
+ return this.mba;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ a.prototype.open = function (a, b, c, f, d) {
+ var g;
+ g = this;
+ if (this.gd === l.zr.OPEN)
+ return !1;
+ this.n9a = new h.fua(this.u, a);
+ this.iB = new u.kza(this.kja.bind(this), a);
+ this.gv = p.tE.OLa(a, c);
+ this.gd = l.zr.OPEN;
+ this.fEa = b;
+ this.mDa = new M.Mya(this, this.fEa, a, f, d);
+ this.VSa = new H.Dya({
+ vs: function () {
+ g.gd !== l.zr.CLOSED && setTimeout(function () {
+ return g.iB.vs();
+ }, 0);
+ }
+ });
+ return !0;
+ };
+ a.prototype.hX = function (a, b, c, d) {
+ var h,
+ g;
+ h = this;
+ void 0 === d && (d = !0);
+ this.Rz();
+ g = Object.create(c, {
+ JR: {
+ value: this.YJb
+ }
+ });
+ if (d && (c = this.vma.qgb(a, g)))
+ return (c.zNb(b), c);
+ a = new f.ara(this.u, a, b, g, this.TO.bind(this), function (a, b) {
+ var c;
+ return null === (c = h.bP(a)) || void 0 === c ? void 0 : c.xm(g, b);
+ }, this.iB.vs.bind(this.iB), d ? this.vma.pgb.bind(this.vma) : function () {});
+ this.VSa.hX(a);
+ this.Nx.push(a);
+ return a;
+ };
+ a.prototype.AD = function (a) {
+ this.VSa.AD(a);
+ this.Nx = this.Nx.filter(function (b) {
+ return b !== a;
+ });
+ a.ic();
+ };
+ a.prototype.vcb = function (a, b) {
+ var f,
+ d,
+ h;
+ this.Rz();
+ h = b.ez;
+ a = new m.$qa(a, void 0 === h ? [0, 1] : h, c.__assign({
+ JR: null !== (d = null !== (f = b.JR) && void 0 !== f ? f : this.mba) && void 0 !== d ? d : {}
+ }, b), this.bP.bind(this));
+ this.tM.push(a);
+ return a;
+ };
+ a.prototype.qUa = function (a) {
+ this.Rz();
+ this.tM = this.tM.filter(function (b) {
+ return b !== a;
+ });
+ a.ic();
+ };
+ a.prototype.IVa = function (a) {
+ this.mba = a;
+ };
+ a.prototype.close = function () {
+ this.gd !== l.zr.CLOSED && (this.aGb(), C.assert(0 === this.iG.length, "Unexpected viewable lease after Playgraph destruction."), this.$Fb(), delete this.gv, this.gd = l.zr.CLOSED);
+ };
+ a.prototype.TO = function (a) {
+ var b,
+ c,
+ f;
+ b = this;
+ this.Rz();
+ c = this.bP(a);
+ c || (c = this.Ecb(a, this.fEa.zKa(a)));
+ f = c.Zma.add();
+ return {
+ O: c,
+ Mwb: {
+ release: function () {
+ C.assert(c);
+ f.release();
+ c.Zma.$x || b.oGb(c);
+ }
+ }
+ };
+ };
+ a.prototype.bP = function (a) {
+ var b;
+ return null === (b = t.xl(this.iG, function (b) {
+ return b.O.ma === a;
+ })) || void 0 === b ? void 0 : b.O;
+ };
+ a.prototype.Ecb = function (a, b) {
+ var g,
+ k,
+ m,
+ l,
+ p,
+ u;
+ function f(a) {
+ return u[a];
+ }
+ function d() {}
+ function h(a) {
+ g.events.emit("logdata", a);
+ }
+ g = this;
+ this.Rz();
+ k = b.xa;
+ m = b.ij;
+ l = b.GR;
+ b = b.config;
+ p = n.xo.Lf.VB("headers", "" + a, !1, !1, {}, b);
+ p.Eb();
+ u = [new q.S7(0), new q.S7(1)];
+ a = {
+ ma: a,
+ xa: k,
+ config: b,
+ GR: b.eC ? c.__assign(c.__assign({}, l), {
+ Mm: d,
+ Gq: f
+ }) : void 0,
+ nb: function () {
+ return !0;
+ },
+ ij: m,
+ HO: void 0,
+ zb: this.gv.zb,
+ Mf: this.gv.Mf,
+ vfa: {
+ YH: function () {
+ return !0;
+ },
+ Ls: d,
+ oh: this.oh.bind(this, a),
+ Dm: this.Dm.bind(this, a),
+ Ol: h
+ },
+ Yha: {
+ Ol: h,
+ g_: function () {
+ return p;
+ },
+ Gq: f,
+ e0: function () {
+ return !0;
+ },
+ af: void 0,
+ Pc: void 0,
+ ng: void 0,
+ My: void 0
+ },
+ GD: {
+ oG: this.iB.oG.bind(this.iB),
+ M2: this.iB.M2.bind(this.iB)
+ },
+ Za: 0,
+ Wk: void 0,
+ xka: {
+ i0: !1,
+ Zia: !1
+ },
+ qs: [],
+ DI: d
+ };
+ a = new r.VS(a);
+ this.iG.push({
+ O: a,
+ al: p
+ });
+ return a;
+ };
+ a.prototype.oGb = function (a) {
+ C.assert(!a.Zma.$x, "Viewable has outstanding leases");
+ this.iG = this.iG.filter(function (b) {
+ return b.O === a ? (b.O.ic(), n.xo.Lf.hO(b.al), !1) : !0;
+ });
+ };
+ a.prototype.kja = function () {
+ var a;
+ C.assert(this.state === l.zr.OPEN);
+ a = this.$O();
+ return this.n9a.ABb(a);
+ };
+ a.prototype.$O = function () {
+ var a,
+ b;
+ a = this.Nx.map(function (a) {
+ return a.$O();
+ });
+ b = this.iG.map(function (a) {
+ return a.O.$O();
+ });
+ return t.Aq(c.__spread(a, b));
+ };
+ a.prototype.Rz = function () {
+ if (this.gd === l.zr.CLOSED)
+ throw Error("Engine CLOSED");
+ };
+ a.prototype.aGb = function () {
+ var a,
+ b;
+ try {
+ for (var f = c.__values(this.Nx), d = f.next(); !d.done; d = f.next()) {
+ this.AD(d.value);
+ }
+ } catch (B) {
+ a = {
+ error: B
+ };
+ }
+ finally {
+ try {
+ d && !d.done && (b = f["return"]) && b.call(f);
+ }
+ finally {
+ if (a)
+ throw a.error;
+ }
+ }
+ };
+ a.prototype.$Fb = function () {
+ var a,
+ b;
+ try {
+ for (var f = c.__values(this.tM), d = f.next(); !d.done; d = f.next()) {
+ this.qUa(d.value);
+ }
+ } catch (B) {
+ a = {
+ error: B
+ };
+ }
+ finally {
+ try {
+ d && !d.done && (b = f["return"]) && b.call(f);
+ }
+ finally {
+ if (a)
+ throw a.error;
+ }
+ }
+ };
+ a.prototype.oh = function (a, b, c, f, d, h) {
+ this.Nx.forEach(function (g) {
+ return g.oh(b, a, c, f, d, h);
+ });
+ };
+ a.prototype.Dm = function () {
+ return this.Nx.some(function (a) {
+ return a.Dm();
+ });
+ };
+ return a;
+ })();
+ b.Hqa = d;
+ }, function (d, b, a) {
+ var c,
+ g,
+ l,
+ r,
+ h,
+ p,
+ m,
+ f;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.H9 = void 0;
+ c = a(0);
+ d = a(18);
+ g = a(4);
+ l = a(423);
+ r = a(11);
+ h = a(5);
+ p = a(774);
+ m = a(381);
+ f = new g.Console("ASEJS", "media|asejs");
+ f.trace.bind(f);
+ d = (function (b) {
+ function d(c, d) {
+ var L31,
+ h;
+ L31 = 2;
+ for (; L31 !== 13; ) {
+ switch (L31) {
+ case 2:
+ h = b.call(this) || this;
+ h.config = c;
+ L31 = 5;
+ break;
+ case 9:
+ var r4E = "D";
+ r4E += "EB";
+ r4E += "UG:";
+ var K5E = "nf-as";
+ K5E += "e ";
+ K5E += "shim version:";
+ h.console = f;
+ h.console.trace(K5E, c, r4E, !1);
+ h.ej = l.SO();
+ L31 = 6;
+ break;
+ case 6:
+ var u4E = "1S";
+ u4E += "IYb";
+ u4E += "Z";
+ u4E += "rNJCp9";
+ u4E;
+ return h;
+ break;
+ case 5:
+ h.Iw = d;
+ h.u3 = {};
+ c = a(379);
+ L31 = 9;
+ break;
+ }
+ }
+ }
+ var K31;
+ K31 = 2;
+ for (; K31 !== 20; ) {
+ switch (K31) {
+ case 7:
+ d.prototype.Nn = function (a, b, c, f, g, k, m, l, u, n) {
+ var S31;
+ S31 = 2;
+ for (; S31 !== 6; ) {
+ switch (S31) {
+ case 9:
+ var n4E = "end";
+ n4E += "P";
+ n4E += "ts is not suppor";
+ n4E += "te";
+ n4E += "d";
+ this.u3[a.movieId] = {
+ xa: a,
+ ij: !!f.ij,
+ GR: {
+ kD: g.kD,
+ ga: g.ga,
+ sy: g.sy
+ },
+ config: l
+ };
+ h.assert(void 0 === f.oa, n4E);
+ return this.F0 = new p.Lza(this.console, this, a, u, b, c, f, g, k, m, n, l);
+ break;
+ case 5:
+ u = this.Njb(a, l, n || d.Qkb);
+ n = u.je.Hh;
+ c = {
+ Ha: n,
+ offset: r.fa.Jd(c)
+ };
+ S31 = 9;
+ break;
+ case 2:
+ var f4E = "creating ses";
+ f4E += "s";
+ f4E += "ion";
+ this.console.trace(f4E);
+ this.ej.zb.reset();
+ S31 = 5;
+ break;
+ }
+ }
+ };
+ d.prototype.Njb = function (a, b, c) {
+ var T31,
+ f;
+ T31 = 2;
+ for (; T31 !== 4; ) {
+ switch (T31) {
+ case 2:
+ f = Number(a.movieId);
+ a = a.choiceMap ? m.lda(a.choiceMap) : m.Joa(f, c);
+ return this.ej.hX(a, 100, b);
+ break;
+ }
+ }
+ };
+ d.prototype.xgb = function () {
+ var U31;
+ U31 = 2;
+ for (; U31 !== 1; ) {
+ switch (U31) {
+ case 2:
+ this.zb.AR(null);
+ U31 = 1;
+ break;
+ }
+ }
+ };
+ d.prototype.lGb = function (a) {
+ var V31;
+ V31 = 2;
+ for (; V31 !== 9; ) {
+ switch (V31) {
+ case 2:
+ this.xgb();
+ this.ej.AD(a.wb);
+ this.ej.qUa(a.qd);
+ V31 = 4;
+ break;
+ case 4:
+ a === this.F0 && delete this.F0;
+ delete this.u3[a.G];
+ V31 = 9;
+ break;
+ }
+ }
+ };
+ K31 = 12;
+ break;
+ case 2:
+ c.__extends(d, b);
+ Object.defineProperties(d.prototype, {
+ zb: {
+ get: function () {
+ var M31;
+ M31 = 2;
+ for (; M31 !== 1; ) {
+ switch (M31) {
+ case 2:
+ return this.ej.zb;
+ break;
+ }
+ }
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(d.prototype, {
+ Lm: {
+ get: function () {
+ var N31;
+ N31 = 2;
+ for (; N31 !== 1; ) {
+ switch (N31) {
+ case 2:
+ return this.ej.Lm;
+ break;
+ }
+ }
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(d.prototype, {
+ Mf: {
+ get: function () {
+ var O31;
+ O31 = 2;
+ for (; O31 !== 1; ) {
+ switch (O31) {
+ case 4:
+ return this.ej.Mf;
+ break;
+ O31 = 1;
+ break;
+ case 2:
+ return this.ej.Mf;
+ break;
+ }
+ }
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ d.prototype.Eb = function (a, b, c, f, d) {
+ var P31,
+ h;
+ P31 = 2;
+ for (; P31 !== 4; ) {
+ switch (P31) {
+ case 2:
+ h = this;
+ this.ej.IVa({
+ qa: f,
+ da: d
+ });
+ this.ej.open(this.config, {
+ zKa: function (a) {
+ var Q31;
+ Q31 = 2;
+ for (; Q31 !== 1; ) {
+ switch (Q31) {
+ case 4:
+ return h.u3[a];
+ break;
+ Q31 = 1;
+ break;
+ case 2:
+ return h.u3[a];
+ break;
+ }
+ }
+ }
+ }, this.Iw);
+ P31 = 4;
+ break;
+ }
+ }
+ };
+ d.prototype.BR = function (a, b, c) {
+ var R31;
+ R31 = 2;
+ for (; R31 !== 1; ) {
+ switch (R31) {
+ case 2:
+ this.ej.IVa({
+ qa: b,
+ da: c
+ });
+ R31 = 1;
+ break;
+ }
+ }
+ };
+ d.prototype.g2 = function () {};
+ K31 = 7;
+ break;
+ case 12:
+ var G4E = "s";
+ G4E += "0";
+ d.prototype.ic = function () {
+ var W31;
+ W31 = 2;
+ for (; W31 !== 9; ) {
+ switch (W31) {
+ case 2:
+ var y4E = "Attempt to destruct Shim";
+ y4E += "Manager ";
+ y4E += "with l";
+ y4E += "atest session still defined";
+ var B4E = "Attempted to destruct ShimManager with s";
+ B4E += "ess";
+ B4E += "ion config activ";
+ B4E += "e";
+ var H4E = "Attempt";
+ H4E += "ed to d";
+ H4E += "estruct";
+ H4E += " Shim";
+ H4E += "Manager with players present in ASE";
+ var T4E = "Attempt";
+ T4E += "ed to des";
+ T4E += "truct ShimManager with playgraph";
+ T4E += "s present in ASE";
+ h.assert(0 === this.ej.yDb.length, T4E);
+ h.assert(0 === this.ej.sDb.length, H4E);
+ h.assert(0 === Object.keys(this.u3).length, B4E);
+ h.assert(void 0 === this.F0, y4E);
+ W31 = 3;
+ break;
+ case 3:
+ this.ej.close();
+ W31 = 9;
+ break;
+ }
+ }
+ };
+ d.Qkb = G4E;
+ return d;
+ break;
+ }
+ }
+ })(d.EventEmitter);
+ b.H9 = d;
+ }, function (d) {
+ function b(a, b, d, g) {
+ a.trace(":", d, ":", g);
+ b(g);
+ }
+ function a(a) {
+ this.listeners = [];
+ this.console = a;
+ }
+ a.prototype.constructor = a;
+ a.prototype.addListener = function (a, d, g, r) {
+ g = r ? g.bind(r) : g;
+ if (a) {
+ this.console && (g = b.bind(null, this.console, g, d));
+ if ("function" === typeof a.addListener)
+ a.addListener(d, g);
+ else if ("function" === typeof a.addEventListener)
+ a.addEventListener(d, g);
+ else
+ throw Error("Emitter does not have a function to add listeners for '" + d + "'");
+ this.listeners.push([a, d, g]);
+ }
+ return this;
+ };
+ a.prototype.on = a.prototype.addListener;
+ a.prototype.clear = function () {
+ var a;
+ a = this.listeners.length;
+ this.listeners.forEach(function (a) {
+ var b,
+ c;
+ b = a[0];
+ c = a[1];
+ a = a[2];
+ "function" === typeof b.removeEventListener ? b.removeEventListener(c, a) : "function" === typeof b.removeListener && b.removeListener(c, a);
+ });
+ this.listeners = [];
+ this.console && this.console.trace("removed", a, "listener(s)");
+ };
+ d.P = a;
+ }, function (d, b, a) {
+ var c,
+ g,
+ l,
+ r,
+ h,
+ p;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.dwa = void 0;
+ c = a(0);
+ g = a(18);
+ l = a(910);
+ r = a(224);
+ h = a(767);
+ d = new(a(4).Console)("ASEJS", "media|asejs");
+ d.trace.bind(d);
+ p = ["prebuffstats", "discardedBytes", "flushedBytes", "cacheEvict", "mediacache"];
+ d = (function (a) {
+ function b(b, c) {
+ var f;
+ f = a.call(this) || this;
+ f.K = b;
+ f.Lb = new h.vva(b, c);
+ b.UY && (f.bl = new l.H9(b, c));
+ f.dh = new g.Wi();
+ p.forEach(function (a) {
+ f.dh.on(f.Lb, a, function (b) {
+ return f.emit(a, b);
+ });
+ f.bl && f.dh.on(f.bl, a, function (b) {
+ return f.emit(a, b);
+ });
+ });
+ return f;
+ }
+ c.__extends(b, a);
+ Object.defineProperties(b.prototype, {
+ zb: {
+ get: function () {
+ return this.Lb.zb;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ Lm: {
+ get: function () {
+ return this.Lb.Lm;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ Kp: {
+ get: function () {
+ return this.Lb.Kp;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ Fz: {
+ get: function () {
+ return this.Lb.Fz;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ fja: {
+ get: function () {
+ return this.Lb.fja;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ TD: {
+ get: function () {
+ return this.Lb.TD;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ af: {
+ get: function () {
+ return this.Lb.af;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ Mf: {
+ get: function () {
+ return this.Lb.Mf;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ oia: {
+ get: function () {
+ return this.Lb.oia;
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ g2: {
+ get: function () {
+ return this.Lb.g2.bind(this.Lb);
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ KP: {
+ get: function () {
+ return this.Lb.KP.bind(this.Lb);
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ Uja: {
+ get: function () {
+ return this.Lb.Uja.bind(this.Lb);
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ XVa: {
+ get: function () {
+ return this.Lb.XVa.bind(this.Lb);
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ LZ: {
+ get: function () {
+ return this.Lb.LZ.bind(this.Lb);
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ $La: {
+ get: function () {
+ return this.Lb.$La.bind(this.Lb);
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ Vv: {
+ get: function () {
+ return this.Lb.Vv.bind(this.Lb);
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ FGa: {
+ get: function () {
+ return this.Lb.FGa.bind(this.Lb);
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ Zpa: {
+ get: function () {
+ return this.Lb.Zpa.bind(this.Lb);
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ EX: {
+ get: function () {
+ return this.Lb.EX.bind(this.Lb);
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ xN: {
+ get: function () {
+ return this.Lb.xN.bind(this.Lb);
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ Tca: {
+ get: function () {
+ return this.Lb.Tca.bind(this.Lb);
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ yN: {
+ get: function () {
+ return this.Lb.yN.bind(this.Lb);
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ vN: {
+ get: function () {
+ return this.Lb.vN.bind(this.Lb);
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ fGa: {
+ get: function () {
+ return this.Lb.fGa.bind(this.Lb);
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ eGa: {
+ get: function () {
+ return this.Lb.eGa.bind(this.Lb);
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ Object.defineProperties(b.prototype, {
+ EVa: {
+ get: function () {
+ return this.Lb.EVa.bind(this.Lb);
+ },
+ enumerable: !1,
+ configurable: !0
+ }
+ });
+ b.prototype.Eb = function (a, b, c, f, d, h) {
+ this.Lb.Eb(a, b, c, f, d, h);
+ this.bl ? this.bl.Eb(a, b, c, f, d, h) : this.NOa = {
+ Qdb: a,
+ qOb: b,
+ hkb: c,
+ Fz: f,
+ TD: d,
+ Qyb: h
+ };
+ };
+ b.prototype.BR = function (a, b, c) {
+ this.Lb.BR(a, b, c);
+ this.bl ? this.bl.BR(a, b, c) : this.QOa = {
+ IKb: a,
+ Fz: b,
+ TD: c
+ };
+ };
+ b.prototype.Nn = function (a, b, c, f, d, h, g, k, m, r) {
+ var u,
+ n,
+ q,
+ t;
+ u = this;
+ if (this.Lb.config.UY && !this.bl) {
+ this.bl = new l.H9(this.Lb.config, this.Lb.Iw);
+ p.forEach(function (a) {
+ u.dh.on(u.bl, a, function (b) {
+ return u.emit(a, b);
+ });
+ });
+ if (this.NOa) {
+ n = this.NOa;
+ q = n.Fz;
+ t = n.TD;
+ this.bl.Eb(n.Qdb, n.qOb, n.hkb, q, t, n.Qyb);
+ }
+ this.QOa && (t = this.QOa, n = t.IKb, q = t.Fz, t = t.TD, this.bl.BR(n, q, t));
+ }
+ return this.bl && k.mE ? this.bl.Nn(a, b, c, f, d, h, g, k, m, r) : this.Lb.Nn(a, b, c, f, d, h, g, k, m, r);
+ };
+ b.prototype.addEventListener = function (a, b) {
+ this.addListener(a, b);
+ return !0;
+ };
+ b.prototype.removeEventListener = function (a, b) {
+ this.removeListener(a, b);
+ return !0;
+ };
+ b.prototype.ic = function () {
+ var a;
+ this.dh.clear();
+ this.Lb.ic();
+ null === (a = this.bl) || void 0 === a ? void 0 : a.ic();
+ r.tE.reset();
+ };
+ return b;
+ })(g.EventEmitter);
+ b.dwa = d;
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ }, function (d, b, a) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ a(0).__exportStar(a(916), b);
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ }, function (d, b, a) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ d = a(0);
+ d.__exportStar(a(921), b);
+ d.__exportStar(a(920), b);
+ d.__exportStar(a(919), b);
+ d.__exportStar(a(918), b);
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ }, function (d, b) {
+ var a;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.pa = void 0;
+ d = a || (a = {});
+ d[d.Sg = 0] = "STARTING";
+ d[d.Xd = 1] = "BUFFERING";
+ d[d.gf = 2] = "REBUFFERING";
+ d[d.Sc = 3] = "PLAYING";
+ d[d.eF = 4] = "STOPPING";
+ d[d.Bo = 5] = "STOPPED";
+ d[d.$i = 6] = "PAUSED";
+ b.pa = a;
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ }, function (d, b, a) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ d = a(0);
+ d.__exportStar(a(944), b);
+ d.__exportStar(a(943), b);
+ d.__exportStar(a(942), b);
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ }, function (d, b) {
+ var a;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Bd = b.UNa = void 0;
+ (function (a) {
+ a[a.Bo = 0] = "STOPPED";
+ a[a.Xd = 1] = "BUFFERING";
+ a[a.gf = 2] = "REBUFFERING";
+ a[a.NA = 3] = "STREAMING";
+ })(a || (a = {}));
+ b.Bd = a;
+ b.UNa = function (b) {
+ return b === a.Xd || b === a.gf;
+ };
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ }, function (d, b, a) {
+ var c,
+ g,
+ l;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.ewa = void 0;
+ c = a(0);
+ g = a(1);
+ l = a(257);
+ d = (function () {
+ var b;
+ function a(a) {
+ this.enb = a;
+ this.cyb = {
+ Qn: "drmType",
+ XXb: "drmVersion",
+ Cfa: "expiration",
+ oZb: "isUsingLegacyBatchingAPI",
+ dy: "bookmark",
+ G: "movieId",
+ Uk: "packageId",
+ duration: "duration",
+ sg: "playbackContextId",
+ eIa: ["defaultTrackOrderList", {
+ nI: "mediaId",
+ v1b: "videoTrackId",
+ XKb: "subtitleTrackId",
+ BB: "audioTrackId",
+ P_b: "preferenceOrder"
+ }
+ ],
+ Hk: "drmContextId",
+ Ctb: "hasDrmProfile",
+ Atb: "hasClearProfile",
+ C_: "hasDrmStreams",
+ Btb: "hasClearStreams",
+ Fm: ["locations", {
+ Yf: "rank",
+ level: "level",
+ weight: "weight",
+ key: "key"
+ }
+ ],
+ links: ["links", {}
+ ],
+ nr: ["servers", {
+ id: "id",
+ name: "name",
+ type: "type",
+ Yf: "rank",
+ vPa: "lowgrade",
+ Nlb: ["dns", {
+ host: "host",
+ fvb: "ipv4",
+ gvb: "ipv6",
+ Kob: "forceLookup"
+ }
+ ],
+ key: "key"
+ }
+ ],
+ wFa: ["audio_tracks", {
+ type: "type",
+ cn: "trackType",
+ Yq: "new_track_id",
+ Dpa: "track_id",
+ yEb: "profileType",
+ sKb: "stereo",
+ profile: "profile",
+ Xo: "channels",
+ language: "language",
+ Ufb: "channelsFormat",
+ kLb: "surroundFormatLabel",
+ v0: "languageDescription",
+ RXb: "disallowedSubtitleTracks",
+ HXb: "defaultTimedText",
+ isNative: "isNative",
+ pc: ["streams", {
+ Uea: "downloadable_id",
+ size: "size",
+ KN: "content_profile",
+ cn: "trackType",
+ R: "bitrate",
+ Nv: "isDrm",
+ xe: ["urls", {
+ qGa: "cdn_id",
+ url: "url"
+ }
+ ],
+ eAb: "new_stream_id",
+ type: "type",
+ Xo: "channels",
+ Ufb: "channelsFormat",
+ kLb: "surroundFormatLabel",
+ language: "language",
+ BWb: "audioKey"
+ }
+ ],
+ Igb: "codecName",
+ WQ: "rawTrackType",
+ id: "id"
+ }
+ ],
+ Ow: ["video_tracks", {
+ cn: "trackType",
+ Yq: "new_track_id",
+ type: "type",
+ Dpa: "track_id",
+ Ctb: "hasDrmProfile",
+ Atb: "hasClearProfile",
+ C_: "hasDrmStreams",
+ Btb: "hasClearStreams",
+ pc: ["streams", {
+ Uea: "downloadable_id",
+ size: "size",
+ KN: "content_profile",
+ cn: "trackType",
+ R: "bitrate",
+ Nv: "isDrm",
+ xe: ["urls", {
+ qGa: "cdn_id",
+ url: "url"
+ }
+ ],
+ eAb: "new_stream_id",
+ type: "type",
+ I_b: "peakBitrate",
+ Alb: "dimensionsCount",
+ Blb: "dimensionsLabel",
+ UCb: "pix_w",
+ TCb: "pix_h",
+ MGb: "res_w",
+ LGb: "res_h",
+ fkb: "crop_x",
+ gkb: "crop_y",
+ ekb: "crop_w",
+ dkb: "crop_h",
+ Sob: "framerate_value",
+ Rob: "framerate_scale",
+ L0b: "startByteOffset",
+ Bb: "vmaf"
+ }
+ ],
+ yEb: "profileType",
+ sKb: "stereo",
+ profile: "profile",
+ Alb: "dimensionsCount",
+ Blb: "dimensionsLabel",
+ Xea: ["drmHeader", {
+ da: "bytes",
+ igb: "checksum",
+ Qs: "keyId"
+ }
+ ],
+ ZI: ["prkDrmHeaders", {
+ da: "bytes",
+ igb: "checksum",
+ Qs: "keyId",
+ MUa: ["resolution", {
+ height: "height",
+ width: "width"
+ }
+ ]
+ }
+ ],
+ xv: "flavor",
+ $Yb: "ict",
+ maxWidth: "maxWidth",
+ maxHeight: "maxHeight",
+ XCb: "pixelAspectX",
+ YCb: "pixelAspectY",
+ JZb: "maxCroppedWidth",
+ IZb: "maxCroppedHeight",
+ KZb: "maxCroppedX",
+ LZb: "maxCroppedY",
+ OZb: "max_framerate_value",
+ NZb: "max_framerate_scale",
+ minWidth: "minWidth",
+ minHeight: "minHeight",
+ $Zb: "minCroppedWidth",
+ ZZb: "minCroppedHeight",
+ a_b: "minCroppedX",
+ b_b: "minCroppedY",
+ Ig: ["license", {
+ Owb: "licenseResponseBase64",
+ W_b: "providerSessionToken",
+ WXb: "drmSessionId",
+ links: ["links", {}
+ ]
+ }
+ ]
+ }
+ ],
+ pGa: ["cdnResponseData", {
+ ND: "sessionABTestCell",
+ kD: "pbcid"
+ }
+ ],
+ qq: ["choiceMap", {
+ Hh: "initialSegment",
+ type: "type",
+ ma: "viewableId",
+ Ya: ["segments", {
+ vx: [l.vx, {
+ yf: "startTimeMs",
+ jg: "endTimeMs",
+ next: ["next", {
+ vx: [l.vx, {
+ weight: "weight"
+ }
+ ]
+ }
+ ],
+ Rj: "defaultNext"
+ }
+ ]
+ }
+ ]
+ }
+ ],
+ Qub: ["initialHeader", {
+ $: ["fragments", {
+ oa: "endPts"
+ }
+ ]
+ }
+ ],
+ media: ["media", {
+ id: "id",
+ Ph: ["tracks", {
+ AUDIO: "AUDIO",
+ S9: "TEXT",
+ VIDEO: "VIDEO"
+ }
+ ]
+ }
+ ],
+ SLb: ["timedtexttracks", {
+ cn: "trackType",
+ Yq: "new_track_id",
+ type: "type",
+ WQ: "rawTrackType",
+ v0: "languageDescription",
+ language: "language",
+ id: "id",
+ Uia: "isNoneTrack",
+ Qia: "isForcedNarrative",
+ Ylb: ["downloadableIds", {}
+ ],
+ Nfb: ["cdnlist", {
+ id: "id",
+ name: "name",
+ type: "type",
+ Yf: "rank",
+ vPa: "lowgrade",
+ Nlb: ["dns", {
+ host: "host",
+ fvb: "ipv4",
+ gvb: "ipv6",
+ Kob: "forceLookup"
+ }
+ ],
+ key: "key"
+ }
+ ],
+ JMb: ["ttDownloadables", {
+ vx: [l.vx, {
+ size: "size",
+ U0b: "textKey",
+ SYb: "hashValue",
+ RYb: "hashAlgo",
+ iZb: "isImage",
+ g1: "midxOffset",
+ Mka: "midxSize",
+ height: "height",
+ width: "width",
+ qv: ["downloadUrls", {}
+ ]
+ }
+ ]
+ }
+ ],
+ n0: "isLanguageLeftToRight",
+ Kq: "headIdentDuration"
+ }
+ ],
+ DMb: ["trickplays", {
+ Uea: "downloadable_id",
+ size: "size",
+ xe: "urls",
+ id: "id",
+ interval: "interval",
+ $Cb: "pixelsAspectY",
+ ZCb: "pixelsAspectX",
+ width: "width",
+ height: "height",
+ Kq: "headIdentDuration"
+ }
+ ],
+ wZa: ["watermarkInfo", {
+ opacity: "opacity",
+ id: "id",
+ anchor: "anchor"
+ }
+ ],
+ VXb: "dpsid",
+ $j: "isBranching",
+ w1b: "viewableType",
+ type: "type",
+ HC: "isSupplemental",
+ Bgb: "clientIpAddress",
+ j1b: "urlExpirationDuration",
+ DZb: "manifestExpirationDuration",
+ M0b: ["steeringAdditionalInfo", {
+ N0b: "steeringId",
+ wWb: "additionalGroupNames",
+ P0b: ["streamingClientConfig", {}
+ ]
+ }
+ ]
+ };
+ }
+ a.prototype.kH = function (a) {
+ this.enb.kH(a, this.cyb);
+ };
+ b = a;
+ return b = c.__decorate([g.N(), c.__param(0, g.l(l.f6))], b);
+ })();
+ b.ewa = d;
+ }, function (d, b, a) {
+ var c,
+ g,
+ l,
+ r,
+ h,
+ p,
+ m,
+ f,
+ u;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.fwa = void 0;
+ c = a(0);
+ g = a(427);
+ l = a(1);
+ r = a(37);
+ h = a(3);
+ p = a(426);
+ m = a(425);
+ f = a(48);
+ u = a(2);
+ d = (function () {
+ var b;
+ function a(a, b, c, f) {
+ this.Aa = a;
+ this.eyb = b;
+ this.Qwb = c;
+ this.ayb = f;
+ }
+ a.prototype.create = function (a) {
+ var b;
+ if (this.Evb(a))
+ throw f.Dc.ROb(u.J.MANIFEST, a);
+ b = this.Qwb();
+ this.zvb(a) ? (a.clientGenesis = a.clientGenesis || this.Aa.$e.ca(h.ia), a = this.eyb.decode(a), b.kcb(a)) : b.Nba(a.links);
+ this.ayb.kH(a);
+ return {
+ Wf: a,
+ Ki: b
+ };
+ };
+ a.prototype.Evb = function (a) {
+ return "muxed" === a.type;
+ };
+ a.prototype.zvb = function (a) {
+ return !!a.runtime;
+ };
+ b = a;
+ return b = c.__decorate([l.N(), c.__param(0, l.l(r.ni)), c.__param(1, l.l(g.G7)), c.__param(2, l.l(p.D8)), c.__param(3, l.l(m.C7))], b);
+ })();
+ b.fwa = d;
+ }, function (d, b, a) {
+ var c,
+ g,
+ l;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.jwa = void 0;
+ c = a(0);
+ g = a(1);
+ l = a(242);
+ d = (function () {
+ var b;
+ function a() {}
+ a.prototype.decode = function (a) {
+ var b,
+ c;
+ b = this.lsb(a.cdns);
+ c = this.Bqb(a);
+ return {
+ movieId: a.movieId,
+ packageId: a.packageId,
+ duration: a.runtime,
+ locations: this.Wga(a.locations),
+ servers: b,
+ audio_tracks: this.getAudioTracks(a.audioTracks),
+ video_tracks: this.getVideoTracks(a.videoTracks, a.videoEncrypted ? a.psshb64 : void 0),
+ cdnResponseData: a.cdnResponseData,
+ isSupplemental: a.isSupplemental,
+ choiceMap: a.branchMap,
+ watermarkInfo: a.watermark,
+ drmVersion: 0,
+ playbackContextId: a.playbackContextId,
+ bookmark: a.bookmark.position / 1E3,
+ hasDrmProfile: !0,
+ hasDrmStreams: a.videoEncrypted,
+ hasClearProfile: !1,
+ hasClearStreams: !a.videoEncrypted,
+ defaultTrackOrderList: this.iqb(a),
+ timedtexttracks: this.Fsb(a.textTracks, b),
+ media: this.DH(a.media),
+ trickplays: this.Ksb(a.trickPlayTracks),
+ drmContextId: a.drmContextId,
+ dpsid: null,
+ isBranching: !!a.branchMap,
+ clientIpAddress: a.clientIpAddress,
+ drmType: "",
+ expiration: c.Cfa,
+ urlExpirationDuration: c.bZa,
+ manifestExpirationDuration: c.bZa,
+ initialHeader: void 0,
+ steeringAdditionalInfo: null,
+ viewableType: "",
+ type: "standard"
+ };
+ };
+ a.prototype.iqb = function (a) {
+ var b,
+ c,
+ d;
+ b = U(a.defaultMedia.split("|"));
+ c = b.next().value;
+ d = b.next().value;
+ b = b.next().value;
+ return [{
+ mediaId: a.defaultMedia,
+ audioTrackId: c,
+ videoTrackId: d,
+ subtitleTrackId: b,
+ preferenceOrder: 0
+ }
+ ];
+ };
+ a.prototype.Wga = function (a) {
+ return a ? a.map(function (a) {
+ return {
+ key: a.id,
+ rank: a.rank,
+ level: a.level,
+ weight: a.weight
+ };
+ }) : [];
+ };
+ a.prototype.lsb = function (a) {
+ return a ? a.map(function (a) {
+ return {
+ name: a.name,
+ type: a.type,
+ id: Number(a.id),
+ key: a.locationId,
+ rank: a.rank,
+ lowgrade: a.isLowgrade
+ };
+ }) : [];
+ };
+ a.prototype.vMa = function (a) {
+ return Object.keys(a).map(function (b) {
+ return {
+ cdn_id: Number(b),
+ url: a[b]
+ };
+ });
+ };
+ a.prototype.getAudioTracks = function (a) {
+ var b;
+ b = this;
+ return a ? a.map(function (a) {
+ var c;
+ c = a.downloadables;
+ return {
+ type: 0,
+ channels: a.channels,
+ language: a.bcp47,
+ languageDescription: a.language,
+ trackType: a.trackType,
+ streams: b.spb(c, a),
+ channelsFormat: a.channelsLabel,
+ surroundFormatLabel: a.channelsLabel,
+ profile: c && c.length ? c[0].contentProfile : void 0,
+ rawTrackType: a.trackType.toLowerCase(),
+ new_track_id: a.id,
+ track_id: a.id,
+ id: a.id,
+ disallowedSubtitleTracks: [],
+ defaultTimedText: null,
+ isNative: !1,
+ profileType: "",
+ stereo: !1,
+ codecName: "AAC"
+ };
+ }) : [];
+ };
+ a.prototype.spb = function (a, b) {
+ var c;
+ c = this;
+ return a ? (a = a.map(function (a) {
+ return {
+ type: 0,
+ trackType: b.trackType,
+ content_profile: a.contentProfile,
+ downloadable_id: a.downloadableId,
+ bitrate: a.bitrate,
+ language: b.bcp47,
+ urls: c.vMa(a.urls),
+ isDrm: !!a.isEncrypted,
+ new_stream_id: a.id,
+ size: a.size,
+ channels: b.channels,
+ channelsFormat: "2.0",
+ surroundFormatLabel: "2.0",
+ audioKey: null
+ };
+ }), a.sort(function (a, b) {
+ return a.bitrate - b.bitrate;
+ }), a) : [];
+ };
+ a.prototype.getVideoTracks = function (a, b) {
+ var c;
+ c = this;
+ return a ? a.map(function (a) {
+ return {
+ type: 1,
+ trackType: "PRIMARY",
+ streams: c.Usb(a.downloadables, a.trackType),
+ profile: "",
+ new_track_id: a.id,
+ track_id: a.id,
+ dimensionsCount: 2,
+ dimensionsLabel: "2D",
+ hasDrmProfile: !0,
+ hasDrmStreams: !!b,
+ hasClearProfile: !1,
+ hasClearStreams: !b,
+ drmHeader: b && b.length ? {
+ bytes: b[0],
+ checksum: "",
+ keyId: b[0].substr(b.length - 25)
+ }
+ : void 0,
+ prkDrmHeaders: void 0,
+ flavor: void 0,
+ ict: !1,
+ profileType: "",
+ stereo: !1,
+ maxWidth: 0,
+ maxHeight: 0,
+ pixelAspectX: 1,
+ pixelAspectY: 1,
+ max_framerate_value: 0,
+ max_framerate_scale: 256,
+ minCroppedWidth: 0,
+ minCroppedHeight: 0,
+ minCroppedX: 0,
+ minCroppedY: 0,
+ maxCroppedWidth: 0,
+ maxCroppedHeight: 0,
+ maxCroppedX: 0,
+ maxCroppedY: 0,
+ minWidth: 0,
+ minHeight: 0
+ };
+ }) : [];
+ };
+ a.prototype.Usb = function (a, b) {
+ var c;
+ c = this;
+ return a ? (a = a.map(function (a) {
+ return {
+ type: 1,
+ trackType: b,
+ content_profile: a.contentProfile,
+ downloadable_id: a.downloadableId,
+ bitrate: a.bitrate,
+ urls: c.vMa(a.urls),
+ pix_w: a.width,
+ pix_h: a.height,
+ res_w: a.width,
+ res_h: a.height,
+ hdcp: a.hdcpVersions,
+ vmaf: a.vmaf,
+ size: a.size,
+ isDrm: a.isEncrypted,
+ new_stream_id: "0",
+ peakBitrate: 0,
+ dimensionsCount: 2,
+ dimensionsLabel: "2D",
+ startByteOffset: 0,
+ framerate_value: a.framerate_value,
+ framerate_scale: a.framerate_scale,
+ crop_x: a.cropParamsX,
+ crop_y: a.cropParamsY,
+ crop_w: a.cropParamsWidth,
+ crop_h: a.cropParamsHeight
+ };
+ }), a.sort(function (a, b) {
+ return a.bitrate - b.bitrate;
+ }), a) : [];
+ };
+ a.prototype.Fsb = function (a, b) {
+ var c;
+ c = this;
+ return a ? a.map(function (a) {
+ return {
+ type: "timedtext",
+ trackType: "SUBTITLES" === a.trackType ? "PRIMARY" : "ASSISTIVE",
+ rawTrackType: a.trackType.toLowerCase(),
+ language: a.bcp47 || null,
+ languageDescription: a.language,
+ new_track_id: a.id,
+ id: a.id,
+ isNoneTrack: a.isNone,
+ isForcedNarrative: a.isForced,
+ downloadableIds: c.Asb(a.downloadables),
+ ttDownloadables: c.Bsb(a.downloadables),
+ isLanguageLeftToRight: !!a.isLanguageLeftToRight,
+ cdnlist: b
+ };
+ }) : [];
+ };
+ a.prototype.Asb = function (a) {
+ return a ? a.reduce(function (a, b) {
+ a[b.contentProfile] = b.downloadableId;
+ return a;
+ }, {}) : {};
+ };
+ a.prototype.Nrb = function (a) {
+ var b;
+ b = l.cV.mha();
+ a = a.filter(function (a) {
+ return a.isImage;
+ });
+ return 0 === a.length ? b : 0 < a.filter(function (a) {
+ return a.pixHeight === b;
+ }).length ? b : Math.min.apply(Math, [].concat(ca(a.map(function (a) {
+ return a.pixHeight;
+ }))));
+ };
+ a.prototype.Bsb = function (a) {
+ var b;
+ if (a) {
+ b = this.Nrb(a);
+ return a.reduce(function (a, c) {
+ c.isImage && c.pixHeight !== b || (a[c.contentProfile] = {
+ size: c.size,
+ textKey: null,
+ isImage: c.isImage,
+ midxOffset: c.offset,
+ height: c.pixHeight,
+ width: c.pixWidth,
+ downloadUrls: c.urls,
+ hashValue: "",
+ hashAlgo: "sha1",
+ midxSize: void 0
+ });
+ return a;
+ }, {});
+ }
+ return {};
+ };
+ a.prototype.DH = function (a) {
+ return a ? a.map(function (a) {
+ return {
+ id: a.mediaId,
+ tracks: {
+ AUDIO: a.tracks.find(function (a) {
+ return "AUDIO" === a.type;
+ }).id,
+ VIDEO: a.tracks.find(function (a) {
+ return "VIDEO" === a.type;
+ }).id,
+ TEXT: a.tracks.find(function (a) {
+ return "TEXT" === a.type;
+ }).id
+ }
+ };
+ }) : [];
+ };
+ a.prototype.Ksb = function (a) {
+ var b;
+ if (a) {
+ b = [];
+ a.map(function (a) {
+ a.downloadables.map(function (a) {
+ b.push({
+ downloadable_id: a.downloadableId,
+ size: a.size,
+ urls: Object.keys(a.urls).map(function (b) {
+ return a.urls[b];
+ }),
+ id: a.id,
+ interval: a.interval,
+ pixelsAspectY: a.pixWidth,
+ pixelsAspectX: a.pixHeight,
+ width: a.resWidth,
+ height: a.resHeight
+ });
+ });
+ });
+ return b;
+ }
+ return [];
+ };
+ a.prototype.Bqb = function (a) {
+ var b;
+ b = 0;
+ a.videoTracks.forEach(function (a) {
+ a.downloadables && a.downloadables.forEach(function (a) {
+ b = b ? Math.min(a.validFor, b) : a.validFor;
+ });
+ });
+ a.audioTracks.forEach(function (a) {
+ a.downloadables && a.downloadables.forEach(function (a) {
+ b = b ? Math.min(a.validFor, b) : a.validFor;
+ });
+ });
+ return {
+ bZa: 1E3 * b,
+ Cfa: a.clientGenesis + 1E3 * b
+ };
+ };
+ a.prototype.encode = function () {
+ throw Error("encode not supported");
+ };
+ b = a;
+ return b = c.__decorate([g.N()], b);
+ })();
+ b.jwa = d;
+ }, function (d, b) {
+ function a(a) {
+ this.mc = a;
+ this.ab = JSON.stringify(this.frb());
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.kwa = void 0;
+ a.prototype.frb = function () {
+ var a;
+ a = [];
+ (!this.mc.Nj || 0 >= this.mc.Nj.length) && a.push({
+ error: "No CDN."
+ });
+ this.mc.sY || a.push({
+ error: "No default audio track.",
+ foundTracks: this.Mga(this.mc.In)
+ });
+ this.mc.zea || a.push({
+ error: "No default video track.",
+ foundTracks: this.Mga(this.mc.dn)
+ });
+ this.mc.yea || a.push({
+ error: "No default subtitle track.",
+ foundTracks: this.Mga(this.mc.fl)
+ });
+ return a;
+ };
+ a.prototype.Mga = function (a) {
+ return a && 0 < a.length ? a.map(function (a) {
+ return a.cb;
+ }) : "No tracks found.";
+ };
+ b.kwa = a;
+ }, function (d, b, a) {
+ var c,
+ g,
+ l,
+ r,
+ h,
+ p,
+ m;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.gwa = void 0;
+ c = a(0);
+ g = a(1);
+ l = a(40);
+ r = a(29);
+ h = a(41);
+ p = a(142);
+ m = a(50);
+ d = (function () {
+ var b;
+ function a(a, b) {
+ a = l.me.call(this, a, "ManifestParserConfigImpl") || this;
+ a.vm = b;
+ return a;
+ }
+ N(a, l.me);
+ wa.Object.defineProperties(a.prototype, {
+ dpa: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return [];
+ }
+ },
+ ega: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return "";
+ }
+ },
+ bda: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return [];
+ }
+ },
+ ada: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return [];
+ }
+ },
+ gga: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return "";
+ }
+ },
+ ria: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return 0;
+ }
+ },
+ TJ: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.vm.TJ.ca(m.Cr);
+ }
+ },
+ Lt: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.vm.Lt;
+ }
+ }
+ });
+ b = a;
+ c.__decorate([h.config(h.X3, "supportedAudioTrackTypes")], b.prototype, "dpa", null);
+ c.__decorate([h.config(h.string, "forceAudioTrack")], b.prototype, "ega", null);
+ c.__decorate([h.config(h.Qpa, "cdnIdWhiteList")], b.prototype, "bda", null);
+ c.__decorate([h.config(h.Qpa, "cdnIdBlackList")], b.prototype, "ada", null);
+ c.__decorate([h.config(h.string, "forceTimedTextTrack")], b.prototype, "gga", null);
+ c.__decorate([h.config(h.Mw, "imageSubsResolution")], b.prototype, "ria", null);
+ c.__decorate([h.config(h.Mw, "timedTextSimpleFallbackThreshold")], b.prototype, "TJ", null);
+ c.__decorate([h.config(h.X3, "timedTextProfiles")], b.prototype, "Lt", null);
+ return b = c.__decorate([g.N(), c.__param(0, g.l(r.bj)), c.__param(1, g.l(p.ZE))], b);
+ })();
+ b.gwa = d;
+ }, function (d, b, a) {
+ var g,
+ l,
+ r,
+ h;
+ function c(a, b) {
+ return l.bL.call(this, a, b) || this;
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.$Aa = void 0;
+ g = a(113);
+ l = a(432);
+ r = a(75);
+ h = a(133);
+ N(c, l.bL);
+ c.prototype.nCb = function (a) {
+ var b,
+ c;
+ b = this;
+ a = U(g.ht(function (a) {
+ return a.pc && 0 < a.pc.length;
+ }, a));
+ c = a.next().value;
+ a.next().value.forEach(function (a) {
+ return b.log.warn("Video track is missing streams", {
+ trackId: a.Yq
+ });
+ });
+ a = c.map(function (a) {
+ var c;
+ c = a.cn;
+ c = {
+ type: r.Qg.video,
+ cb: a.Yq,
+ DC: a.Dpa,
+ cn: h.fV[c.toLowerCase()] || h.sn.YE,
+ WQ: c,
+ pc: [],
+ fh: {},
+ ZI: a.ZI
+ };
+ c.pc = b.YXa(a.pc, c);
+ b.log.trace("Transformed video track", {
+ StreamCount: c.pc.length
+ });
+ return c;
+ });
+ if (!a.length)
+ throw Error("No valid video tracks");
+ this.log.trace("Transformed video tracks", {
+ Count: a.length
+ });
+ return a;
+ };
+ c.prototype.jCb = function (a) {
+ var b;
+ b = a.map(function (a) {
+ return a.ZI;
+ }).filter(Boolean);
+ b = [].concat.apply([], [].concat(ca(b))).map(function (a) {
+ return a.da;
+ });
+ a = a.map(function (a) {
+ return a.Xea;
+ }).filter(Boolean).map(function (a) {
+ return a.da;
+ });
+ return 0 < b.length ? b : a;
+ };
+ b.$Aa = c;
+ }, function (d, b, a) {
+ var g,
+ l,
+ r,
+ h,
+ p;
+ function c(a, b, c, d) {
+ a = l.bL.call(this, a, d) || this;
+ a.config = b;
+ a.j = c;
+ return a;
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.ora = void 0;
+ g = a(458);
+ l = a(432);
+ r = a(113);
+ h = a(75);
+ p = a(133);
+ N(c, l.bL);
+ c.prototype.$Bb = function (a, b, c) {
+ var d,
+ f,
+ k;
+ d = this;
+ a = U(r.ht(function (a) {
+ return a.pc && 0 < a.pc.length;
+ }, a));
+ f = a.next().value;
+ a.next().value.forEach(function (a) {
+ return d.log.warn("Audio track is missing streams", d.tMa(a));
+ });
+ k = this.config.dpa;
+ a = U(r.ht(function (a) {
+ return 0 === k.length || 0 <= k.indexOf(a.cn);
+ }, f));
+ f = a.next().value;
+ a.next().value.forEach(function (a) {
+ return d.log.warn("Audio track is not supported", d.tMa(a));
+ });
+ a = f.map(function (a) {
+ var f;
+ f = a.cn;
+ f = {
+ type: h.Qg.audio,
+ cb: a.Yq,
+ DC: a.Dpa,
+ cn: p.fV[f.toLowerCase()] || p.sn.YE,
+ WQ: f,
+ Al: a.language,
+ displayName: a.v0 + " - " + a.codecName + " - " + a.surroundFormatLabel,
+ Xo: a.Xo,
+ iXb: a.Xo,
+ hXb: Number(a.Xo[0]),
+ fl: d.qpb(a.Yq, b, c),
+ fh: {
+ Bcp47: a.language,
+ TrackId: a.Yq
+ },
+ pc: [],
+ isNative: a.isNative
+ };
+ f.pc = d.YXa(a.pc, f);
+ d.log.trace("Transformed audio track", f, {
+ StreamCount: f.pc.length,
+ AllowedTimedTextTracks: f.fl.length
+ });
+ f.Igb = g.X4[f.pc[0].hg];
+ return f;
+ });
+ if (!a.length)
+ throw Error("no valid audio tracks");
+ this.log.trace("Transformed audio tracks", {
+ Count: a.length
+ });
+ return a;
+ };
+ c.prototype.Xdb = function (a) {
+ var b,
+ c;
+ b = this;
+ c = this.config.ega;
+ if (c) {
+ if (a = U(a.filter(function (a) {
+ return a.Al == c || a.cb == c;
+ })).next().value)
+ return a;
+ } else if (this.j.vZ && (a = U(a.filter(function (a) {
+ return a.cb == b.j.vZ;
+ })).next().value))
+ return a;
+ };
+ c.prototype.tMa = function (a) {
+ return {
+ language: a.v0,
+ bcp47: a.language,
+ type: a.cn
+ };
+ };
+ c.prototype.qpb = function (a, b, c) {
+ return b.filter(function (b) {
+ return b.Ph.AUDIO === a;
+ }).map(function (a) {
+ return a.Ph.S9;
+ }).map(function (a) {
+ return c.find(function (b) {
+ return b.cb === a;
+ });
+ }).filter(Boolean);
+ };
+ b.ora = c;
+ }, function (d, b) {
+ function a(a, b, d) {
+ this.log = a;
+ this.j = b;
+ this.Jpa = d;
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.FAa = void 0;
+ a.prototype.mCb = function (a) {
+ var b;
+ b = this;
+ a = (a || []).filter(function (a) {
+ return a.xe && 0 < a.xe.length;
+ }).map(function (a) {
+ return b.Jpa(b.j, a.id, a.height, a.width, a.ZCb, a.$Cb, a.size, a.Kq, {
+ unknown: a.xe[0]
+ });
+ });
+ 0 === a.length && this.log.warn("There are no trickplay tracks");
+ a.sort(function (a, b) {
+ return a.size - b.size;
+ });
+ this.log.trace("Transformed trick play tracks", {
+ Count: a.length
+ });
+ return a;
+ };
+ b.FAa = a;
+ }, function (d, b) {
+ function a(a, b, d, g, h) {
+ this.cda = a;
+ this.qXa = b;
+ this.AMb = d;
+ this.uFa = g;
+ this.lZa = h;
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.iwa = void 0;
+ a.prototype.Nla = function (a) {
+ var b,
+ c,
+ d,
+ h,
+ g,
+ m,
+ f,
+ u,
+ n,
+ q,
+ t,
+ C,
+ M,
+ H,
+ G;
+ b = a.Wf;
+ a = this.cda.eSa(b.nr, b.Fm, !0);
+ c = this.qXa.lCb(b.SLb);
+ d = this.AMb.mCb(b.DMb);
+ h = this.uFa.$Bb(b.wFa, b.media, c);
+ g = this.lZa.nCb(b.Ow);
+ m = this.iCb(b, h, c);
+ f = m[0];
+ u = g[0];
+ n = this.uFa.Xdb(h) || f.rd || h[0];
+ f = this.qXa.PLb(n.fl) || f.Bc || n.fl[0];
+ q = this.lZa.jCb(b.Ow);
+ t = b.sg;
+ C = b.Bgb;
+ M = b.C_;
+ H = b.Hk;
+ G = b.wFa.findIndex(function (a) {
+ return a.Yq == n.cb;
+ });
+ b = b.Ow.findIndex(function (a) {
+ return a.Yq == u.cb;
+ });
+ return {
+ gr: q,
+ Nj: a,
+ In: h,
+ dn: g,
+ fl: c,
+ Lw: d,
+ sg: t,
+ yIb: C,
+ Rv: M,
+ Hk: H,
+ $Ha: G,
+ fIa: b,
+ p2: m,
+ zea: u,
+ sY: n,
+ yea: f
+ };
+ };
+ a.prototype.iCb = function (a, b, d) {
+ var c,
+ h;
+ c = [];
+ h = a.eIa[0];
+ c.push({
+ rd: b.find(function (a) {
+ return a.DC === h.BB;
+ }),
+ Bc: d.find(function (a) {
+ return a.DC === h.XKb;
+ }),
+ Q_b: 0
+ });
+ return c;
+ };
+ b.iwa = a;
+ }, function (d, b, a) {
+ var g,
+ l,
+ r,
+ h;
+ function c(a, b, c, d, h) {
+ this.log = a;
+ this.config = b;
+ this.j = c;
+ this.cda = d;
+ this.ima = h;
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.qAa = void 0;
+ g = a(59);
+ l = a(9);
+ r = a(133);
+ h = a(242);
+ c.prototype.lCb = function (a) {
+ var b;
+ b = this;
+ a = a.map(function (a) {
+ var c,
+ d,
+ f;
+ c = b.pMb(a);
+ !1 !== a.Uia || c.length || b.log.error("track without downloadables", b.CLa(a));
+ !0 !== a.Qia || c.length || b.log.error("forced track without downloadables", b.CLa(a));
+ d = {};
+ f = [];
+ if (0 < c.length) {
+ d = c[0];
+ f = d.profile;
+ if (f == g.ml.RE || f == g.ml.oU)
+ d = b.YHb(c);
+ f = b.cda.eSa(a.Nfb, void 0, !1);
+ }
+ a = b.ima(b.j, a.Yq, a.id, d.vd, d.xe || ({}), f, a.language, a.v0, r.fV[a.cn.toLowerCase()] || r.sn.YE, a.WQ.toUpperCase(), d.profile, b.krb(d) || ({}), a.Uia, a.Qia, a.n0, a.Kq);
+ b.log.trace("Transformed timed text track", a);
+ return a;
+ });
+ this.log.trace("Transformed timed text tracks", {
+ Count: a.length
+ });
+ return a;
+ };
+ c.prototype.PLb = function (a) {
+ var b,
+ c;
+ b = this;
+ c = this.config.gga;
+ if (c) {
+ if (a = U(a.filter(function (a) {
+ return a.Al == c || a.cb == c;
+ })).next().value)
+ return a;
+ } else if (this.j.wZ && (a = U(a.filter(function (a) {
+ return a.cb == b.j.wZ;
+ })).next().value))
+ return a;
+ };
+ c.prototype.pMb = function (a) {
+ var b,
+ c,
+ d;
+ b = this;
+ c = a.JMb;
+ d = a.Ylb;
+ a = Object.keys(c || ({})).map(function (a) {
+ var f;
+ f = c[a];
+ return {
+ vd: d[a],
+ profile: a,
+ size: f.size || 0,
+ Ld: b.sqb(a, f),
+ offset: f.g1 || 0,
+ SCb: f.width,
+ GSa: f.height,
+ xe: f.qv
+ };
+ });
+ a.sort(function (a, b) {
+ return a.Ld - b.Ld;
+ });
+ return a;
+ };
+ c.prototype.sqb = function (a, b) {
+ var c,
+ d;
+ c = this.config.Lt.indexOf(a);
+ b = b.size;
+ d = this.config.TJ;
+ return a === g.ml.B5 && 0 < d && b > d ? this.config.Lt.length + 1 : 0 <= c ? c : this.config.Lt.length;
+ };
+ c.prototype.krb = function (a) {
+ if (a.profile === g.ml.RE || a.profile === g.ml.oU)
+ return {
+ offset: a.offset,
+ length: a.size,
+ MUa: {
+ width: a.SCb,
+ height: a.GSa
+ }
+ };
+ };
+ c.prototype.YHb = function (a) {
+ var b,
+ c;
+ b = this.config.ria || h.cV.mha();
+ c = U(a.filter(function (a) {
+ return a.profile === g.ml.RE || a.profile === g.ml.oU;
+ }).filter(function (a) {
+ return a.GSa === b;
+ })).next().value;
+ if (c)
+ return c;
+ this.log.warn("none of the downloadables match the intended resolution", {
+ screenHeight: l.Nr.height,
+ intendedResolution: b
+ });
+ return a[0];
+ };
+ c.prototype.CLa = function (a) {
+ return {
+ isNone: a.Uia,
+ isForced: a.Qia,
+ bcp47: a.language,
+ id: a.Yq
+ };
+ };
+ b.qAa = c;
+ }, function (d) {
+ d.P = function (b) {
+ return function () {
+ return !b.apply(this, arguments);
+ };
+ };
+ }, function (d, b, a) {
+ var c,
+ g;
+ c = a(967);
+ b = a(51);
+ g = a(439);
+ a = b(function (a, b) {
+ return g(c(a), b);
+ });
+ d.P = a;
+ }, function (d, b, a) {
+ b = a(174);
+ a = a(244);
+ a = b(a);
+ d.P = a;
+ }, function (d, b, a) {
+ b = a(51)(function (a, b) {
+ for (var c = 0; c < a.length; ) {
+ if (null == b)
+ return;
+ b = b[a[c]];
+ c += 1;
+ }
+ return b;
+ });
+ d.P = b;
+ }, function (d, b, a) {
+ var c;
+ b = a(51);
+ c = a(970);
+ a = b(function (a, b) {
+ return c([a], b);
+ });
+ d.P = a;
+ }, function (d, b, a) {
+ var c,
+ g;
+ b = a(51);
+ c = a(436);
+ g = (function () {
+ function a(a, b) {
+ this.NS = b;
+ this.yO = a;
+ }
+ a.prototype["@@transducer/init"] = c.Eb;
+ a.prototype["@@transducer/result"] = c.result;
+ a.prototype["@@transducer/step"] = function (a, b) {
+ return this.NS["@@transducer/step"](a, this.yO(b));
+ };
+ return a;
+ })();
+ a = b(function (a, b) {
+ return new g(a, b);
+ });
+ d.P = a;
+ }, function (d, b, a) {
+ var c,
+ g,
+ l,
+ r,
+ h,
+ p;
+ b = a(51);
+ c = a(438);
+ g = a(434);
+ l = a(244);
+ r = a(972);
+ h = a(433);
+ p = a(435);
+ a = b(c(["fantasy-land/map", "map"], r, function (a, b) {
+ switch (Object.prototype.toString.call(b)) {
+ case "[object Function]":
+ return h(b.length, function () {
+ return a.call(this, b.apply(this, arguments));
+ });
+ case "[object Object]":
+ return l(function (c, d) {
+ c[d] = a(b[d]);
+ return c;
+ }, {}, p(b));
+ default:
+ return g(a, b);
+ }
+ }));
+ d.P = a;
+ }, function (d, b, a) {
+ var c,
+ g;
+ b = a(51);
+ c = a(973);
+ g = a(971);
+ a = b(function (a, b) {
+ return c(g(a), b);
+ });
+ d.P = a;
+ }, function (d, b, a) {
+ b = a(51)(function (a, b) {
+ return b > a ? b : a;
+ });
+ d.P = b;
+ }, function (d, b, a) {
+ var g,
+ l;
+ function c(a, b, d) {
+ return function () {
+ var r;
+ for (var h = [], f = 0, k = a, p = 0; p < b.length || f < arguments.length; ) {
+ p < b.length && (!l(b[p]) || f >= arguments.length) ? r = b[p] : (r = arguments[f], f += 1);
+ h[p] = r;
+ l(r) || --k;
+ p += 1;
+ }
+ return 0 >= k ? d.apply(this, h) : g(k, c(a, h, d));
+ };
+ }
+ g = a(243);
+ l = a(173);
+ d.P = c;
+ }, function (d, b, a) {
+ var c,
+ g,
+ l,
+ r,
+ h;
+ b = a(51);
+ c = a(434);
+ g = a(433);
+ l = a(975);
+ r = a(974);
+ h = a(969);
+ a = b(function (a, b) {
+ return g(h(l, 0, r("length", b)), function () {
+ var d,
+ h;
+ d = arguments;
+ h = this;
+ return a.apply(h, c(function (a) {
+ return a.apply(h, d);
+ }, b));
+ });
+ });
+ d.P = a;
+ }, function (d, b, a) {
+ var c;
+ b = a(112);
+ c = a(977);
+ a = b(function (a) {
+ return c(function () {
+ return Array.prototype.slice.call(arguments, 0);
+ }, a);
+ });
+ d.P = a;
+ }, function (d, b, a) {
+ var c,
+ g;
+ c = a(245);
+ g = Object.prototype.toString;
+ d.P = function () {
+ return "[object Arguments]" === g.call(arguments) ? function (a) {
+ return "[object Arguments]" === g.call(a);
+ }
+ : function (a) {
+ return c("callee", a);
+ };
+ };
+ }, function (d, b, a) {
+ var c,
+ g;
+ b = a(51);
+ c = a(436);
+ g = (function () {
+ function a(a, b) {
+ this.NS = b;
+ this.yO = a;
+ }
+ a.prototype["@@transducer/init"] = c.Eb;
+ a.prototype["@@transducer/result"] = c.result;
+ a.prototype["@@transducer/step"] = function (a, b) {
+ return this.yO(b) ? this.NS["@@transducer/step"](a, b) : a;
+ };
+ return a;
+ })();
+ a = b(function (a, b) {
+ return new g(a, b);
+ });
+ d.P = a;
+ }, function (d, b, a) {
+ var c;
+ c = a(243);
+ b = a(51)(function (a, b) {
+ return c(a.length, function () {
+ return a.apply(b, arguments);
+ });
+ });
+ d.P = b;
+ }, function (d) {
+ var b;
+ b = (function () {
+ function a(a) {
+ this.yO = a;
+ }
+ a.prototype["@@transducer/init"] = function () {
+ throw Error("init not implemented on XWrap");
+ };
+ a.prototype["@@transducer/result"] = function (a) {
+ return a;
+ };
+ a.prototype["@@transducer/step"] = function (a, b) {
+ return this.yO(a, b);
+ };
+ return a;
+ })();
+ d.P = function (a) {
+ return new b(a);
+ };
+ }, function (d) {
+ d.P = function (b) {
+ return "[object String]" === Object.prototype.toString.call(b);
+ };
+ }, function (d, b, a) {
+ var c,
+ g;
+ b = a(112);
+ c = a(437);
+ g = a(983);
+ a = b(function (a) {
+ return c(a) ? !0 : !a || "object" !== typeof a || g(a) ? !1 : 1 === a.nodeType ? !!a.length : 0 === a.length ? !0 : 0 < a.length ? a.hasOwnProperty(0) && a.hasOwnProperty(a.length - 1) : !1;
+ });
+ d.P = a;
+ }, function (d) {
+ d.P = function (b, a) {
+ for (var c = 0, d = a.length, g = []; c < d; ) {
+ b(a[c]) && (g[g.length] = a[c]);
+ c += 1;
+ }
+ return g;
+ };
+ }, function (d) {
+ d.P = function (b) {
+ return "function" === typeof b["@@transducer/step"];
+ };
+ }, function (d, b, a) {
+ var c;
+ b = a(439);
+ c = a(978);
+ a = a(968);
+ a = c([b, a]);
+ d.P = a;
+ }, function (d, b, a) {
+ var c;
+ b = a(174);
+ c = a(245);
+ a = b(function (a, b, d) {
+ var h,
+ g;
+ h = {};
+ for (g in b) {
+ c(g, b) && (h[g] = c(g, d) ? a(g, b[g], d[g]) : b[g]);
+ }
+ for (g in d) {
+ c(g, d) && !c(g, h) && (h[g] = d[g]);
+ }
+ return h;
+ });
+ d.P = a;
+ }, function (d, b, a) {
+ var c,
+ g;
+ b = a(174);
+ c = a(440);
+ g = a(988);
+ a = b(function r(a, b, d) {
+ return g(function (b, d, h) {
+ return c(d) && c(h) ? r(a, d, h) : a(b, d, h);
+ }, b, d);
+ });
+ d.P = a;
+ }, function (d, b, a) {
+ var c;
+ b = a(174);
+ c = a(989);
+ a = b(function (a, b, d) {
+ return c(function (b, c, d) {
+ return a(c, d);
+ }, b, d);
+ });
+ d.P = a;
+ }, function (d, b, a) {
+ var g;
+ function c(a, b) {
+ this.log = a;
+ this.config = b;
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.$ra = void 0;
+ g = a(113);
+ c.prototype.eSa = function (a, b, c) {
+ var d,
+ h,
+ f,
+ k,
+ l;
+ d = this;
+ h = this.config.bda;
+ f = this.config.ada;
+ a = U(g.ht(function (a) {
+ return (!h.length || 0 <= h.indexOf(a.id)) && 0 > f.indexOf(a.id);
+ }, a || []));
+ k = a.next().value;
+ a.next().value.forEach(function (a) {
+ return d.log.warn("Cdn is not allowed", {
+ Id: a.id
+ });
+ });
+ l = k.map(function (a) {
+ var c;
+ c = (b ? b.find(function (b) {
+ return b.key === a.key;
+ }) : void 0) || ({});
+ return {
+ id: a.id,
+ name: a.name,
+ Yf: a.Yf,
+ type: a.type,
+ Kja: a.key,
+ jZb: a.vPa,
+ location: {
+ id: c.key,
+ Yf: c.Yf,
+ level: c.level,
+ weight: c.weight,
+ Nj: []
+ }
+ };
+ });
+ l.sort(function (a, b) {
+ return a.Yf - b.Yf;
+ });
+ l.forEach(function (a) {
+ return a.location.Nj = l.filter(function (b) {
+ return b.Kja === a.Kja;
+ });
+ });
+ this.log.trace("Transformed cdns", {
+ Count: l.length
+ });
+ if (c && !l.length)
+ throw Error("no valid cdns");
+ return l;
+ };
+ b.$ra = c;
+ }, function (d, b, a) {
+ var c,
+ g,
+ l,
+ r,
+ h,
+ p,
+ m,
+ f,
+ n,
+ q,
+ t,
+ K,
+ C;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.hwa = void 0;
+ c = a(0);
+ g = a(1);
+ l = a(7);
+ r = a(441);
+ h = a(991);
+ p = a(966);
+ m = a(965);
+ f = a(964);
+ n = a(963);
+ q = a(962);
+ t = a(431);
+ K = a(430);
+ C = a(429);
+ d = (function () {
+ var b;
+ function a(a, b, c, d, f) {
+ this.sf = a;
+ this.config = b;
+ this.ima = c;
+ this.Jpa = d;
+ this.h4 = f;
+ }
+ a.prototype.create = function (a) {
+ var b,
+ c;
+ b = this.sf.xb("ManifestParser", a);
+ c = new h.$ra(b, this.config);
+ return new m.iwa(c, new p.qAa(b, this.config, a, c, this.ima), new f.FAa(b, a, this.Jpa), new n.ora(b, this.config, a, this.h4), new q.$Aa(b, this.h4));
+ };
+ b = a;
+ return b = c.__decorate([g.N(), c.__param(0, g.l(l.Jb)), c.__param(1, g.l(r.E7)), c.__param(2, g.l(t.f9)), c.__param(3, g.l(C.e$)), c.__param(4, g.l(K.a$))], b);
+ })();
+ b.hwa = d;
+ }, function (d, b, a) {
+ var c,
+ g,
+ l,
+ r,
+ h,
+ p,
+ m,
+ f,
+ n,
+ q,
+ t,
+ K,
+ C,
+ M;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.HPa = void 0;
+ d = a(1);
+ c = a(442);
+ g = a(992);
+ l = a(441);
+ r = a(961);
+ h = a(431);
+ p = a(430);
+ m = a(428);
+ f = a(960);
+ n = a(427);
+ q = a(959);
+ t = a(172);
+ K = a(958);
+ C = a(425);
+ M = a(957);
+ b.HPa = new d.Kc(function (b) {
+ b(l.E7).to(r.gwa).Z();
+ b(c.F7).to(g.hwa).Z();
+ b(h.f9).ji(function (b) {
+ for (var c = [], d = 0; d < arguments.length; ++d) {
+ c[d - 0] = arguments[d];
+ }
+ d = a(241).QA;
+ return new(Function.prototype.bind.apply(d, [null].concat(ca(c))))();
+ });
+ b(p.a$).ji(function (b) {
+ for (var c = [], d = 0; d < arguments.length; ++d) {
+ c[d - 0] = arguments[d];
+ }
+ d = a(366).Tra;
+ return new(Function.prototype.bind.apply(d, [null].concat(ca(c))))();
+ });
+ b(m.H7).zf(function () {
+ return function (a) {
+ return new f.kwa(a);
+ };
+ });
+ b(n.G7).to(q.jwa).Z();
+ b(t.OE).to(K.fwa).Z();
+ b(C.C7).to(M.ewa).Z();
+ });
+ }, function (d, b, a) {
+ var c,
+ g,
+ l,
+ r,
+ h,
+ p,
+ m,
+ f;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Jra = void 0;
+ c = a(0);
+ g = a(1);
+ l = a(14);
+ r = a(7);
+ h = a(134);
+ p = a(246);
+ m = a(91);
+ f = a(184);
+ d = (function () {
+ var b;
+ function a(a, b, c, d, f, h) {
+ this.config = a;
+ this.iz = c;
+ this.profile = d;
+ this.j4 = f;
+ this.AN = h;
+ this.log = b.xb("CDMAttestedDescriptor");
+ this.NKa();
+ }
+ a.prototype.NKa = function () {
+ var a;
+ a = this;
+ return this.j4.gqa ? this.config().xmb ? this.LKa().then(function (b) {
+ if (b)
+ return Promise.resolve(void 0);
+ a.VOa || (a.VOa = a.AN.wha());
+ return a.VOa;
+ })["catch"](function (b) {
+ a.log.error("Failed to generate challenge", b);
+ }).then(function (a) {
+ null === a || void 0 === a ? void 0 : a.tb.close().subscribe();
+ return null === a || void 0 === a ? void 0 : a.eda;
+ }).then(function (b) {
+ return Promise.all([Promise.resolve(b), a.LKa()]);
+ }).then(function (a) {
+ var b;
+ a = U(a);
+ b = a.next().value;
+ if (!a.next().value)
+ return b;
+ }) : this.iz().then(function (a) {
+ a.fQ.removeServiceToken("cad");
+ }) : Promise.resolve(void 0);
+ };
+ a.prototype.LKa = function () {
+ var a;
+ a = this;
+ return this.iz().then(function (b) {
+ return (b = b.fQ.getServiceTokens(a.profile)) && b.find(function (a) {
+ return "cad" === a.name;
+ });
+ });
+ };
+ b = a;
+ return b = c.__decorate([g.N(), c.__param(0, g.l(l.fd)), c.__param(1, g.l(r.Jb)), c.__param(2, g.l(h.QE)), c.__param(3, g.l(m.cF)), c.__param(4, g.l(p.BL)), c.__param(5, g.l(f.vK))], b);
+ })();
+ b.Jra = d;
+ }, function (d, b, a) {
+ var c,
+ g;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.hGa = void 0;
+ d = a(1);
+ c = a(443);
+ g = a(994);
+ b.hGa = new d.Kc(function (a) {
+ a(c.m5).to(g.Jra).Z();
+ });
+ }, function (d, b, a) {
+ var c,
+ g,
+ l,
+ r;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.xra = void 0;
+ c = a(0);
+ g = a(1);
+ l = a(21);
+ r = a(3);
+ d = (function () {
+ var b;
+ function a(a) {
+ this.La = a;
+ }
+ a.prototype.MKb = function (a, b) {
+ var c,
+ d;
+ c = parseFloat(a);
+ d = 0;
+ "%" === a[a.length - 1] && this.La.fg(c) ? d = Math.round(c * b.ca(r.ia) / 100) : (a = parseInt(a), this.La.ks(a) && (d = a));
+ return r.Gb(Math.min(d, b.ca(r.ia)));
+ };
+ b = a;
+ return b = c.__decorate([g.N(), c.__param(0, g.l(l.Zd))], b);
+ })();
+ b.xra = d;
+ }, function (d, b, a) {
+ var c,
+ g,
+ l;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.wra = void 0;
+ c = a(0);
+ g = a(1);
+ l = a(14);
+ d = (function () {
+ var b;
+ function a(a) {
+ this.config = a;
+ }
+ a.prototype.Nga = function () {
+ return this.Ay().Ieb;
+ };
+ a.prototype.Oga = function () {
+ return this.Ay().Jeb;
+ };
+ a.prototype.Qqb = function () {
+ return this.Ay().Keb;
+ };
+ a.prototype.zga = function () {
+ return this.Ay().OFa;
+ };
+ a.prototype.Ay = function () {
+ return this.config();
+ };
+ b = a;
+ return b = c.__decorate([g.N(), c.__param(0, g.l(l.fd))], b);
+ })();
+ b.wra = d;
+ }, function (d, b, a) {
+ var c,
+ g,
+ l,
+ r,
+ h,
+ p,
+ m,
+ f;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.yra = void 0;
+ c = a(0);
+ g = a(1);
+ l = a(445);
+ r = a(444);
+ h = a(7);
+ p = a(21);
+ m = a(3);
+ f = a(14);
+ d = (function () {
+ var b;
+ function a(a, b, c, d, f) {
+ this.yX = b;
+ this.La = c;
+ this.Heb = d;
+ this.config = f;
+ this.ka = a.xb("Bookmark");
+ }
+ a.prototype.FEa = function (a) {
+ var b,
+ c;
+ b = a.Ta.playbackState && a.Ta.playbackState.currentTime;
+ c = this.Ypb(a.G);
+ b = this.La.ZB(b) ? m.Gb(b) : c;
+ if (this.La.de(b))
+ (this.ka.info("Overriding bookmark", {
+ From: a.kE.ca(m.ia),
+ To: b.ca(m.ia)
+ }), a = Object.assign({}, a, {
+ kE: b
+ }));
+ else if (this.nub(a))
+ return (this.ka.trace("Ignoring bookmark because it's too close to beginning"), m.qh(0));
+ return this.mub(a) ? (this.ka.trace("Ignoring bookmark because it's too close to end"), m.qh(0)) : this.lub(a) ? (this.ka.trace("Ignoring bookmark because it's too close to the end to start decoding"), m.qh(0)) : a.kE;
+ };
+ a.prototype.nub = function (a) {
+ return 0 > a.kE.Pj(this.Nga(a));
+ };
+ a.prototype.Nga = function (a) {
+ return this.PFa(this.yX.Nga(), a.DQ);
+ };
+ a.prototype.mub = function (a) {
+ return 0 < a.kE.Pj(this.Oga(a));
+ };
+ a.prototype.Oga = function (a) {
+ var b;
+ b = a.Ta.$j ? this.yX.Qqb() : this.yX.Oga();
+ return a.DQ.Ib(this.PFa(b, a.DQ));
+ };
+ a.prototype.lub = function (a) {
+ return 0 < a.kE.Pj(this.zqb(a));
+ };
+ a.prototype.zqb = function (a) {
+ var b;
+ b = a.Ta.$j ? this.config().QRa : this.config().iD;
+ return a.DQ.Ib(m.Gb(b));
+ };
+ a.prototype.Ypb = function (a) {
+ var b;
+ a = this.yX.zga()[a];
+ b = -1;
+ this.La.En(a) ? b = parseInt(a) : this.La.fg(a) && (b = a);
+ if (this.La.ks(b))
+ return m.Gb(b);
+ };
+ a.prototype.PFa = function (a, b) {
+ return this.Heb.MKb(a, b);
+ };
+ b = a;
+ return b = c.__decorate([g.N(), c.__param(0, g.l(h.Jb)), c.__param(1, g.l(l.h5)), c.__param(2, g.l(p.Zd)), c.__param(3, g.l(r.g5)), c.__param(4, g.l(f.fd))], b);
+ })();
+ b.yra = d;
+ }, function (d, b, a) {
+ var c,
+ g,
+ l,
+ r,
+ h,
+ p;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.dy = void 0;
+ d = a(1);
+ c = a(247);
+ g = a(445);
+ l = a(444);
+ r = a(998);
+ h = a(997);
+ p = a(996);
+ b.dy = new d.Kc(function (a) {
+ a(c.ZS).to(r.yra).Z();
+ a(g.h5).to(h.wra).Z();
+ a(l.g5).to(p.xra).Z();
+ });
+ }, function (d, b, a) {
+ var g,
+ l,
+ r,
+ h;
+ function c(a, b, c) {
+ var d;
+ d = this;
+ this.ka = a;
+ this.valid = !0;
+ this.Uj = !1;
+ this.context = c.context;
+ this.size = c.size;
+ this.Il = b.create().then(function (a) {
+ d.storage = a;
+ return a.JP("mediacache").then(function (a) {
+ d.keys = a;
+ });
+ });
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Q1a = b.Zsa = void 0;
+ g = a(0);
+ l = a(1);
+ r = a(7);
+ h = a(70);
+ d = (function () {
+ var b;
+ function a(a, b) {
+ this.sf = a;
+ this.lk = b;
+ this.bH = {};
+ }
+ a.prototype.dY = function (a) {
+ this.bH[a.context] = new c(this.sf.xb("DiskStorageContext"), this.lk, a);
+ return this.bH[a.context];
+ };
+ a.prototype.oIa = function (a) {
+ delete this.bH[a.context];
+ };
+ b = a;
+ return b = g.__decorate([l.N(), g.__param(0, l.l(r.Jb)), g.__param(1, l.l(h.xr))], b);
+ })();
+ b.Zsa = d;
+ c.prototype.create = function (a, b, c, d) {
+ var f,
+ h,
+ g;
+ f = this;
+ h = this.getKey(a, b);
+ g = Date.now();
+ this.Il.then(function () {
+ f.keys[h] = void 0;
+ return f.storage.save(h, c, !1).then(function () {
+ f.ka.trace("create succeeded for " + h + ", " + (Date.now() - g) + " ms");
+ d(f.j_(a, b));
+ });
+ })["catch"](function (c) {
+ f.ka.trace("create failed", c);
+ d(f.By(a, b, c));
+ });
+ };
+ c.prototype.append = function (a, b, c, d) {
+ c = this.getKey(a, b);
+ this.ka.trace("append " + c);
+ d(this.By(a, b, "append is not supported"));
+ };
+ c.prototype.remove = function (a, b, c) {
+ var d,
+ f,
+ h;
+ d = this;
+ f = this.getKey(a, b);
+ h = Date.now();
+ this.Il.then(function () {
+ if (d.keys.hasOwnProperty(f))
+ return (delete d.keys[f], d.storage.remove(f).then(function () {
+ d.ka.trace("remove succeeded for " + f + ", " + (Date.now() - h) + " ms");
+ c(d.j_(a, b));
+ }));
+ c(d.j_(a, b));
+ })["catch"](function (f) {
+ d.ka.trace("remove failed", f);
+ c(d.By(a, b, f));
+ });
+ };
+ c.prototype.read = function (a, b, c, d, h) {
+ var f,
+ g,
+ k;
+ f = this;
+ g = this.getKey(a, b);
+ k = Date.now();
+ 0 !== c || -1 != d ? h(this.By(a, b, "byteStart/byteEnd combination is not supported")) : this.Il.then(function () {
+ if (f.keys.hasOwnProperty(g))
+ return f.storage.load(g).then(function (m) {
+ f.ka.trace("read succeeded for " + g + ", " + (Date.now() - k) + " ms");
+ h(Object.assign(f.j_(a, b), {
+ value: m.value,
+ LWb: c,
+ end: d
+ }));
+ });
+ h(f.By(a, b, "Item doesn't exist"));
+ })["catch"](function (c) {
+ f.ka.trace("read failed", c);
+ h(f.By(a, b, c));
+ });
+ };
+ c.prototype.info = function (a) {
+ var b;
+ b = this;
+ this.ka.trace("info ");
+ this.Il.then(function () {
+ var c;
+ c = {
+ values: {}
+ };
+ c.values[b.context] = {
+ entries: Object.keys(b.keys).reduce(function (a, c) {
+ c = b.Mla(c);
+ a[c.ZN] || (a[c.ZN] = {});
+ a[c.ZN][c.Ty] = {
+ size: 0
+ };
+ return a;
+ }, {}),
+ total: b.size,
+ n1b: 0
+ };
+ a(c);
+ })["catch"](function (c) {
+ b.ka.trace("info failed", c);
+ a(b.By(void 0, void 0, c));
+ });
+ };
+ c.prototype.query = function (a, b, c) {
+ var d,
+ f;
+ d = this;
+ f = this.getKey(a, b || "");
+ this.Il.then(function () {
+ var a;
+ a = Object.keys(d.keys).filter(function (a) {
+ return 0 === a.indexOf(f);
+ }).reduce(function (a, b) {
+ a[d.Mla(b).Ty] = {
+ size: 0
+ };
+ return a;
+ }, {});
+ d.ka.trace("query succeeded for prefix " + b, a);
+ c(a);
+ })["catch"](function (a) {
+ d.ka.trace("query failed", a);
+ c({});
+ });
+ };
+ c.prototype.vr = function (a) {
+ var b;
+ b = this;
+ this.ka.trace("validate");
+ this.Il.then(function () {
+ var c;
+ c = Object.keys(b.keys).reduce(function (a, c) {
+ a[b.Mla(c).Ty] = {
+ size: 0
+ };
+ return a;
+ }, {});
+ a(c);
+ })["catch"](function (c) {
+ b.ka.trace("validate failed", c);
+ a(b.By(void 0, void 0, c));
+ });
+ };
+ c.prototype.getKey = function (a, b) {
+ return ["mediacache", this.context, a, b].join(".");
+ };
+ c.prototype.j_ = function (a, b) {
+ return {
+ U: !0,
+ ZN: void 0 === a ? "" : a,
+ key: void 0 === b ? "" : b,
+ YNb: 0,
+ Xj: this.size
+ };
+ };
+ c.prototype.By = function (a, b, c) {
+ return {
+ U: !1,
+ error: c,
+ ZN: void 0 === a ? "" : a,
+ key: void 0 === b ? "" : b,
+ YNb: 0,
+ Xj: this.size
+ };
+ };
+ c.prototype.Mla = function (a) {
+ var b,
+ c;
+ a = a.slice(a.indexOf(".") + 1);
+ b = a.slice(a.indexOf(".") + 1);
+ c = b.indexOf(".");
+ a = b.slice(0, c);
+ b = b.slice(c + 1);
+ return {
+ ZN: a,
+ Ty: b
+ };
+ };
+ b.Q1a = c;
+ }, function (d, b, a) {
+ var c,
+ g,
+ l,
+ r;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Ewa = void 0;
+ c = a(0);
+ g = a(1);
+ l = a(2);
+ r = a(7);
+ d = (function () {
+ var b;
+ function a(a) {
+ this.sf = a;
+ this.ew = {};
+ this.ka = this.sf.xb("MemoryStorage");
+ }
+ a.prototype.load = function (a) {
+ var b;
+ if (this.ew.hasOwnProperty(a)) {
+ b = this.ew[a];
+ this.ka.debug("Storage entry loaded", {
+ key: a
+ });
+ return Promise.resolve({
+ key: a,
+ value: b
+ });
+ }
+ this.ka.debug("Storage entry not found", {
+ key: a
+ });
+ return Promise.reject({
+ ja: l.I.px
+ });
+ };
+ a.prototype.save = function (a, b, c) {
+ if (c && this.ew.hasOwnProperty(a))
+ return Promise.resolve(!1);
+ this.ew[a] = b;
+ return Promise.resolve(!0);
+ };
+ a.prototype.remove = function (a) {
+ delete this.ew[a];
+ return Promise.resolve();
+ };
+ a.prototype.loadAll = function () {
+ var a,
+ b;
+ a = this;
+ b = Object.keys(this.ew).map(function (b) {
+ return {
+ key: b,
+ value: a.ew[b]
+ };
+ });
+ return Promise.resolve(b);
+ };
+ a.prototype.JP = function (a) {
+ var b;
+ b = Object.keys(this.ew).reduce(function (b, c) {
+ a && 0 !== c.indexOf(a) || (b[c] = void 0);
+ return b;
+ }, {});
+ return Promise.resolve(b);
+ };
+ a.prototype.removeAll = function () {
+ this.ew = {};
+ return Promise.resolve();
+ };
+ b = a;
+ return b = c.__decorate([g.N(), c.__param(0, g.l(r.Jb))], b);
+ })();
+ b.Ewa = d;
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.zsa = void 0;
+ b.zsa = "__default_rule_key__";
+ }, function (d, b, a) {
+ var g,
+ l,
+ r,
+ h,
+ p,
+ m,
+ f,
+ n;
+ function c(a, b, c, d) {
+ this.ka = a;
+ this.config = b;
+ this.iub = c;
+ this.Kka = d;
+ this.ly = {
+ mem: {
+ storage: this.Kka,
+ key: "mem"
+ }
+ };
+ this.Gz = this.config.Gz;
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.P4 = b.Nqa = void 0;
+ g = a(0);
+ l = a(1);
+ r = a(2);
+ h = a(175);
+ p = a(7);
+ m = a(447);
+ f = a(1002);
+ n = a(34);
+ d = (function () {
+ var b;
+ function a(a, b, c, d) {
+ this.sf = a;
+ this.lk = b;
+ this.Kka = c;
+ this.config = d;
+ }
+ a.prototype.create = function () {
+ this.VN || (this.VN = this.LG());
+ return this.VN;
+ };
+ a.prototype.LG = function () {
+ this.adb = new c(this.sf.xb("AppStorage"), this.config, this.lk, this.Kka);
+ return this.adb.create();
+ };
+ b = a;
+ return b = g.__decorate([l.N(), g.__param(0, l.l(p.Jb)), g.__param(1, l.l(h.$T)), g.__param(2, l.l(m.Q7)), g.__param(3, l.l(n.kl))], b);
+ })();
+ b.Nqa = d;
+ c.prototype.create = function () {
+ var a;
+ a = this;
+ return this.yjb().then(function (b) {
+ if (!a.Bfb(b, a.config.oP))
+ throw a.nAb(b);
+ return a;
+ });
+ };
+ c.prototype.load = function (a) {
+ var b;
+ b = this;
+ return new Promise(function (c, d) {
+ b.LO(a).storage.load(a).then(function (a) {
+ c(a);
+ })["catch"](function (a) {
+ d(a);
+ });
+ });
+ };
+ c.prototype.save = function (a, b, c) {
+ var d;
+ d = this;
+ return new Promise(function (f, h) {
+ d.LO(a).storage.save(a, b, c).then(function (a) {
+ f(a);
+ })["catch"](function (a) {
+ h(a);
+ });
+ });
+ };
+ c.prototype.remove = function (a) {
+ var b;
+ b = this;
+ return new Promise(function (c, d) {
+ b.LO(a).storage.remove(a).then(function () {
+ c();
+ })["catch"](function (a) {
+ d(a);
+ });
+ });
+ };
+ c.prototype.removeAll = function () {
+ var a;
+ a = this;
+ return new Promise(function (b, c) {
+ a.mUa("mem").then(function () {
+ return a.mUa("idb");
+ })["catch"](function (a) {
+ return Promise.reject(a);
+ }).then(function () {
+ b();
+ })["catch"](function (b) {
+ a.ka.error("remove all failed");
+ c(b);
+ });
+ });
+ };
+ c.prototype.loadAll = function () {
+ var a,
+ b;
+ a = this;
+ b = [];
+ return this.aPa("mem").then(function (c) {
+ b = b.concat(c);
+ return a.aPa("idb");
+ })["catch"](function (b) {
+ a.Vvb(b) || a.ka.error("IndexedDb.LoadAll exception", b);
+ return [];
+ }).then(function (a) {
+ return b = b.concat(a);
+ })["catch"](function (b) {
+ a.ka.error("load all failed", b);
+ throw b;
+ });
+ };
+ c.prototype.JP = function (a) {
+ var b;
+ b = this;
+ return new Promise(function (c, d) {
+ var f;
+ f = b.ly.idb;
+ f ? f.storage.JP(a).then(function (a) {
+ c(a);
+ })["catch"](function (a) {
+ b.ka.error("loadKeys failed", a);
+ d(a);
+ }) : d("Storage is not available");
+ });
+ };
+ c.prototype.yjb = function () {
+ var a;
+ a = this;
+ return this.iub.create().then(function (b) {
+ a.ly.idb = {
+ storage: b,
+ key: "idb"
+ };
+ })["catch"](function (b) {
+ a.ka.error("idb failed to load", b);
+ return b || ({
+ ja: r.I.nl
+ });
+ });
+ };
+ c.prototype.Bfb = function (a, b) {
+ return !a || a && b ? !0 : !1;
+ };
+ c.prototype.nAb = function (a) {
+ var b;
+ b = "";
+ a && (b += a.ja);
+ return {
+ ja: b
+ };
+ };
+ c.prototype.mUa = function (a) {
+ return (a = this.ly[a]) ? a.storage.removeAll() : Promise.resolve();
+ };
+ c.prototype.aPa = function (a) {
+ return (a = this.ly[a]) ? a.storage.loadAll() : Promise.resolve([]);
+ };
+ c.prototype.hob = function (a) {
+ for (var b in this.Gz) {
+ if (a.startsWith(b))
+ return this.Gz[b];
+ }
+ return this.Gz[f.zsa];
+ };
+ c.prototype.LO = function (a) {
+ var b,
+ c;
+ b = this;
+ this.hob(a).every(function (a) {
+ return b.ly[a] ? (c = b.ly[a], !1) : !0;
+ });
+ c || (this.ka.error("component not found for storageKey", {
+ AKb: a,
+ FWb: Object.keys(this.ly),
+ rules: this.Gz
+ }), c = this.ly.mem);
+ this.ka.trace("component found for key", {
+ storageKey: a,
+ componentKey: c.key
+ });
+ return c;
+ };
+ c.prototype.Vvb = function (a) {
+ return (a && (a.ja || a.errorSubCode)) === r.I.px;
+ };
+ b.P4 = c;
+ }, function (d, b, a) {
+ var c,
+ g,
+ l;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.ssa = void 0;
+ c = a(0);
+ g = a(1);
+ l = a(34);
+ d = (function () {
+ var b;
+ function a(a) {
+ this.config = a;
+ }
+ wa.Object.defineProperties(a.prototype, {
+ timeout: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.config.Xoa;
+ }
+ },
+ enabled: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.config.pXa;
+ }
+ }
+ });
+ b = a;
+ return b = c.__decorate([g.N(), c.__param(0, g.l(l.kl))], b);
+ })();
+ b.ssa = d;
+ }, function (d, b, a) {
+ var c,
+ g,
+ l,
+ r,
+ h,
+ p;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.cva = void 0;
+ c = a(0);
+ g = a(1);
+ l = a(41);
+ r = a(40);
+ h = a(34);
+ p = a(29);
+ d = (function () {
+ var b;
+ function a(a, b) {
+ a = r.me.call(this, a, "IndexedDBConfigImpl") || this;
+ a.config = b;
+ a.version = 1;
+ a.fD = "namedatapairs";
+ return a;
+ }
+ N(a, r.me);
+ wa.Object.defineProperties(a.prototype, {
+ name: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return "netflix.player" + (this.config.Ds ? "Test" : "");
+ }
+ },
+ timeout: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.config.Xoa;
+ }
+ },
+ qX: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.config.qX;
+ }
+ },
+ Goa: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return 0;
+ }
+ },
+ IR: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return 0;
+ }
+ },
+ XJa: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return !0;
+ }
+ }
+ });
+ b = a;
+ c.__decorate([l.config(l.Mw, "simulateIdbOpenError")], b.prototype, "Goa", null);
+ c.__decorate([l.config(l.Mw, "simulateIdbLoadAllError")], b.prototype, "IR", null);
+ c.__decorate([l.config(l.jd, "fixInvalidDatabase")], b.prototype, "XJa", null);
+ return b = c.__decorate([g.N(), c.__param(0, g.l(p.bj)), c.__param(1, g.l(h.kl))], b);
+ })();
+ b.cva = d;
+ }, function (d, b, a) {
+ var l,
+ r,
+ h;
+ function c(a, b, c) {
+ this.config = a;
+ this.Yk = b;
+ this.rw = c;
+ }
+ function g(a, b) {
+ this.reason = a;
+ this.cause = b;
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.bva = b.cza = void 0;
+ l = a(2);
+ r = a(61);
+ (function (a) {
+ a[a.f8 = 0] = "NoData";
+ a[a.Error = 1] = "Error";
+ a[a.RA = 2] = "Timeout";
+ })(h = b.cza || (b.cza = {}));
+ c.prototype.load = function (a) {
+ var b;
+ b = this;
+ return new Promise(function (c, d) {
+ b.dZ("get", !1, a).then(function (b) {
+ c({
+ key: a,
+ value: b
+ });
+ })["catch"](function (a) {
+ var b;
+ b = l.I.uza;
+ switch (a.reason) {
+ case h.f8:
+ b = l.I.px;
+ break;
+ case h.RA:
+ b = l.I.G6a;
+ }
+ d({
+ ja: b,
+ cause: a.cause
+ });
+ });
+ });
+ };
+ c.prototype.save = function (a, b, c) {
+ var d;
+ d = this;
+ return new Promise(function (f, g) {
+ d.dZ(c ? "add" : "put", !0, {
+ name: a,
+ data: b
+ }).then(function () {
+ f(!c);
+ })["catch"](function (a) {
+ var b;
+ b = l.I.vza;
+ switch (a.reason) {
+ case h.RA:
+ b = l.I.J6a;
+ }
+ g({
+ ja: b,
+ cause: a.cause
+ });
+ });
+ });
+ };
+ c.prototype.remove = function (a) {
+ var b;
+ b = this;
+ return new Promise(function (c, d) {
+ b.dZ("delete", !0, a).then(function () {
+ c();
+ })["catch"](function (a) {
+ var b;
+ b = l.I.D9;
+ switch (a.reason) {
+ case h.RA:
+ b = l.I.tza;
+ }
+ d({
+ ja: b,
+ cause: a.cause
+ });
+ });
+ });
+ };
+ c.prototype.removeAll = function () {
+ var a;
+ a = this;
+ return new Promise(function (b, c) {
+ a.dZ("clear", !0, "").then(function () {
+ b();
+ })["catch"](function (a) {
+ var b;
+ b = l.I.D9;
+ switch (a.reason) {
+ case h.RA:
+ b = l.I.tza;
+ }
+ c({
+ ja: b,
+ cause: a.cause
+ });
+ });
+ });
+ };
+ c.prototype.loadAll = function () {
+ var a;
+ a = this;
+ return this.Yk.Sm(this.config.timeout, new Promise(function (b, c) {
+ var d,
+ f,
+ k;
+ if (a.config.IR)
+ c(new g(a.config.IR));
+ else {
+ d = [];
+ f = a.rw.transaction(a.config.fD, "readonly");
+ k = f.objectStore(a.config.fD).openCursor();
+ f.onerror = function () {
+ c(new g(h.Error, k.error));
+ };
+ k.onsuccess = function (a) {
+ if (a = a.target.result)
+ try {
+ d.push({
+ key: a.value.name,
+ value: a.value.data
+ });
+ a["continue"]();
+ } catch (C) {
+ c(new g(h.Error, C));
+ }
+ else
+ b(d);
+ };
+ k.onerror = function () {
+ c(new g(h.Error, k.error));
+ };
+ }
+ }))["catch"](function (a) {
+ return a instanceof r.rn ? Promise.reject(new g(h.RA, a)) : a instanceof g ? Promise.reject(a) : Promise.reject(new g(h.Error, a));
+ });
+ };
+ c.prototype.JP = function (a) {
+ var b;
+ b = this;
+ return this.Yk.Sm(this.config.timeout, new Promise(function (c, d) {
+ var f,
+ k,
+ m;
+ if (b.config.IR)
+ d(new g(b.config.IR));
+ else {
+ f = {};
+ k = b.rw.transaction(b.config.fD, "readonly");
+ m = k.objectStore(b.config.fD).openKeyCursor(a ? IDBKeyRange.lowerBound(a) : void 0);
+ k.onerror = function () {
+ d(new g(h.Error, m.error));
+ };
+ m.onsuccess = function (b) {
+ var k,
+ m;
+ try {
+ k = b.target.result;
+ if (k) {
+ m = k.key;
+ a && 0 !== m.indexOf(a) ? c(f) : (f[m] = void 0, k["continue"]());
+ } else
+ c(f);
+ } catch (G) {
+ d(new g(h.Error, G));
+ }
+ };
+ m.onerror = function () {
+ d(new g(h.Error, m.error));
+ };
+ }
+ }))["catch"](function (a) {
+ return a instanceof r.rn ? Promise.reject(new g(h.RA, a)) : a instanceof g ? Promise.reject(a) : Promise.reject(new g(h.Error, a));
+ });
+ };
+ c.prototype.dZ = function (a, b, c) {
+ var d;
+ d = this;
+ return this.Yk.Sm(this.config.timeout, new Promise(function (f, k) {
+ var m,
+ l;
+ m = d.rw.transaction(d.config.fD, b ? "readwrite" : "readonly");
+ l = m.objectStore(d.config.fD)[a](c);
+ m.onerror = function () {
+ k(new g(h.Error, l.error));
+ };
+ l.onsuccess = function (b) {
+ var c;
+ if ("get" == a)
+ try {
+ c = b.target.result;
+ c ? f(c.data) : k(new g(h.f8));
+ } catch (G) {
+ k(new g(h.f8, G));
+ }
+ else
+ f();
+ };
+ l.onerror = function () {
+ k(new g(h.Error, l.error));
+ };
+ }))["catch"](function (a) {
+ return a instanceof r.rn ? Promise.reject(new g(h.RA, a)) : a instanceof g ? Promise.reject(a) : Promise.reject(new g(h.Error, a));
+ });
+ };
+ b.bva = c;
+ }, function (d, b, a) {
+ var c,
+ g,
+ l,
+ r,
+ h,
+ p,
+ m,
+ f,
+ n,
+ q,
+ t,
+ K,
+ C;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.eva = b.dva = b.Aua = void 0;
+ c = a(0);
+ g = a(1);
+ l = a(7);
+ r = a(1006);
+ h = a(176);
+ p = a(2);
+ m = a(450);
+ f = a(451);
+ n = a(61);
+ q = a(70);
+ t = a(68);
+ K = a(175);
+ C = a(63);
+ d = (function () {
+ var b;
+ function a(a, b, c, d, f) {
+ this.config = b;
+ this.$m = c;
+ this.zj = f;
+ this.ka = a.xb(m.ZU);
+ this.$N = new Promise(function (a, b) {
+ var c;
+ try {
+ c = d();
+ c ? a(c) : b({
+ ja: p.I.Bua
+ });
+ } catch (ia) {
+ b({
+ ja: p.I.ZT,
+ cause: ia
+ });
+ }
+ });
+ }
+ a.prototype.create = function () {
+ this.lea || (this.lea = this.LG());
+ return this.lea;
+ };
+ a.prototype.vq = function (a) {
+ var b;
+ b = this;
+ this.lea = null;
+ return this.$m.Sm(this.config.timeout, new Promise(function (c, d) {
+ a.close();
+ b["delete"](a.name).then(function () {
+ c();
+ })["catch"](function (a) {
+ d(a);
+ });
+ }))["catch"](function (a) {
+ return a instanceof n.rn ? Promise.reject({
+ ja: p.I.ZT
+ }) : a.ja ? Promise.reject(a) : Promise.reject({
+ ja: p.I.ZT,
+ cause: a
+ });
+ });
+ };
+ a.prototype["delete"] = function (a) {
+ var b;
+ b = this;
+ return this.$m.Sm(this.config.timeout, new Promise(function (c, d) {
+ b.$N.then(function (b) {
+ var f;
+ f = b.deleteDatabase(a);
+ f.onsuccess = function () {
+ c();
+ };
+ f.onerror = function () {
+ d({
+ ja: p.I.ZT,
+ cause: f.error
+ });
+ };
+ })["catch"](function (a) {
+ d(a);
+ });
+ }));
+ };
+ a.prototype.LG = function () {
+ var a,
+ b;
+ a = this;
+ return this.$m.Sm(this.config.timeout, new Promise(function (c, d) {
+ if (a.config.Goa)
+ return d({
+ ja: a.config.Goa
+ });
+ a.$N.then(function (f) {
+ a.zj.mark(C.si.a3a);
+ b = f.open(a.config.name, a.config.version);
+ if (!b)
+ return d({
+ ja: p.I.Cua
+ });
+ b.onblocked = function () {
+ a.zj.mark(C.si.Y2a);
+ d({
+ ja: p.I.U2a
+ });
+ };
+ b.onupgradeneeded = function () {
+ var c;
+ a.zj.mark(C.si.h3a);
+ c = b.result;
+ try {
+ c.createObjectStore(a.config.fD, {
+ keyPath: "name"
+ });
+ } catch (V) {
+ a.ka.error("Exception while creating object store", V);
+ }
+ };
+ b.onsuccess = function (h) {
+ var g,
+ k;
+ a.zj.mark(C.si.g3a);
+ try {
+ g = h.target.result;
+ k = g.objectStoreNames.length;
+ a.ka.trace("objectstorenames length ", k);
+ if (0 === k) {
+ a.ka.error("invalid indexedDb state, deleting");
+ a.zj.mark(C.si.$2a);
+ try {
+ g.close();
+ } catch (ia) {}
+ f.deleteDatabase(a.config.name);
+ setTimeout(function () {
+ d({
+ ja: p.I.T2a
+ });
+ }, 1);
+ return;
+ }
+ } catch (ia) {
+ a.ka.error("Exception while inspecting indexedDb objectstorenames", ia);
+ }
+ c(b.result);
+ };
+ b.onerror = function () {
+ a.zj.mark(C.si.Z2a);
+ a.ka.error("IndexedDB open error", b.error);
+ d({
+ ja: p.I.V2a,
+ cause: b.error
+ });
+ };
+ })["catch"](function (a) {
+ d(a);
+ });
+ }))["catch"](function (c) {
+ if (c instanceof n.rn) {
+ try {
+ b && b.readyState && a.zj.mark("readyState-" + b.readyState);
+ } catch (aa) {}
+ if (a.config.qX && b && "done" === b.readyState) {
+ if (a.gOb(b))
+ return (a.zj.mark(C.si.e3a), Promise.resolve(b.result));
+ a.zj.mark(C.si.d3a);
+ }
+ a.zj.mark(C.si.c3a);
+ return Promise.reject({
+ ja: p.I.X2a
+ });
+ }
+ if (c.ja)
+ return Promise.reject(c);
+ a.zj.mark(C.si.b3a);
+ a.ka.error("IndexedDB open exception occurred", c);
+ return Promise.reject({
+ ja: p.I.W2a,
+ cause: c
+ });
+ });
+ };
+ a.prototype.gOb = function (a) {
+ try {
+ return 0 < a.result.objectStoreNames.length;
+ } catch (T) {
+ this.zj.mark(C.si.f3a);
+ this.ka.error("failed to check open request state", T);
+ }
+ return !1;
+ };
+ b = a;
+ return b = c.__decorate([g.N(), c.__param(0, g.l(l.Jb)), c.__param(1, g.l(f.ZK)), c.__param(2, g.l(n.nx)), c.__param(3, g.l(h.R6)), c.__param(4, g.l(t.sx))], b);
+ })();
+ b.Aua = d;
+ d = (function () {
+ var b;
+ function a(a, b) {
+ this.config = a;
+ this.$m = b;
+ }
+ a.prototype.create = function (a) {
+ return Promise.resolve(new r.bva(this.config, this.$m, a));
+ };
+ b = a;
+ return b = c.__decorate([g.N(), c.__param(0, g.l(f.ZK)), c.__param(1, g.l(n.nx))], b);
+ })();
+ b.dva = d;
+ d = (function () {
+ var b;
+ function a(a, b, c, d, f, h) {
+ this.config = b;
+ this.$N = c;
+ this.lk = d;
+ this.kOb = f;
+ this.zj = h;
+ this.ka = a.xb(m.ZU);
+ }
+ a.prototype.create = function () {
+ if (this.storage)
+ return Promise.resolve(this.storage);
+ this.VN || (this.VN = this.LG(this.kOb));
+ return this.VN;
+ };
+ a.prototype.LG = function (a) {
+ var b;
+ a = void 0 === a ? [] : a;
+ b = this;
+ return new Promise(function (c, d) {
+ b.zj.mark(C.si.F6a);
+ b.$N.create().then(function (f) {
+ b.lk.create(f).then(function (h) {
+ Promise.all(a.map(function (a) {
+ return a.vr(h);
+ })).then(function () {
+ b.storage = h;
+ c(b.storage);
+ })["catch"](function (a) {
+ b.ka.debug("DB validation failed, cause: " + a);
+ b.config.XJa ? (b.ka.debug("Fixing corrupt DB"), b.$N.vq(f).then(function () {
+ b.ka.error("Invalid database deleted, creating new database.");
+ b.LG().then(function (a) {
+ b.ka.error("Invalid database successfully recreated.");
+ b.storage = a;
+ c(b.storage);
+ });
+ })["catch"](function (a) {
+ b.ka.error("Couldn't delete invalid database.");
+ d(a);
+ })) : (b.ka.debug("Ignoring invalid DB due to config"), b.storage = h, c(b.storage));
+ });
+ })["catch"](function (a) {
+ d(a);
+ });
+ })["catch"](function (a) {
+ d(a);
+ });
+ });
+ };
+ b = a;
+ return b = c.__decorate([g.N(), c.__param(0, g.l(l.Jb)), c.__param(1, g.l(f.ZK)), c.__param(2, g.l(K.Q6)), c.__param(3, g.l(K.W6)), c.__param(4, g.aD(q.Q9)), c.__param(5, g.l(t.sx))], b);
+ })();
+ b.eva = d;
+ }, function (d, b, a) {
+ var c,
+ g,
+ l,
+ r;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Ava = void 0;
+ c = a(0);
+ g = a(1);
+ l = a(2);
+ r = a(176);
+ d = (function () {
+ var b;
+ function a(a) {
+ this.rw = a;
+ }
+ a.prototype.load = function (a) {
+ var b;
+ b = this;
+ return new Promise(function (c, d) {
+ var f,
+ h;
+ try {
+ f = b.rw.getItem(a);
+ if (f) {
+ h = f;
+ if ("{" === f[0])
+ try {
+ h = JSON.parse(f) || f;
+ } catch (C) {}
+ c({
+ key: a,
+ value: h
+ });
+ } else
+ d({
+ ja: l.I.px
+ });
+ } catch (C) {
+ d({
+ ja: l.I.uza,
+ cause: C
+ });
+ }
+ });
+ };
+ a.prototype.save = function (a, b, c) {
+ var d;
+ d = this;
+ return new Promise(function (f, h) {
+ if (c && d.rw.getItem(a))
+ f(!1);
+ else
+ try {
+ "string" === typeof b ? d.rw.setItem(a, b) : d.rw.setItem(a, JSON.stringify(b));
+ f(!0);
+ } catch (C) {
+ h({
+ ja: l.I.vza,
+ cause: C
+ });
+ }
+ });
+ };
+ a.prototype.remove = function (a) {
+ var b;
+ b = this;
+ return new Promise(function (c, d) {
+ try {
+ b.rw.removeItem(a);
+ c();
+ } catch (A) {
+ d({
+ ja: l.I.D9,
+ cause: A
+ });
+ }
+ });
+ };
+ a.prototype.loadAll = function () {
+ return Promise.reject("Not supported");
+ };
+ a.prototype.JP = function () {
+ return Promise.reject("Not supported");
+ };
+ a.prototype.removeAll = function () {
+ return Promise.reject("Not supported");
+ };
+ b = a;
+ return b = c.__decorate([g.N(), c.__param(0, g.l(r.Qwa))], b);
+ })();
+ b.Ava = d;
+ }, function (d, b, a) {
+ var c,
+ g,
+ l,
+ r,
+ h,
+ p;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.rsa = void 0;
+ c = a(0);
+ g = a(1);
+ l = a(7);
+ r = a(61);
+ h = a(450);
+ p = a(449);
+ d = (function () {
+ var b;
+ function a(a, b, c) {
+ this.Yk = b;
+ this.config = c;
+ this.ka = a.xb(h.ZU);
+ }
+ a.prototype.vr = function (a) {
+ return this.config.enabled ? this.config.timeout ? this.Yk.Sm(this.config.timeout, this.AIa(a)) : this.AIa(a) : Promise.resolve();
+ };
+ a.prototype.AIa = function (a) {
+ var b;
+ b = this;
+ return new Promise(function (c, d) {
+ return a.save("indexdb-test", "true", !0).then(function () {
+ return a.load("indexdb-test").then(function (f) {
+ "true" !== f.value && d();
+ b.ka.debug("save/load test passed");
+ a.remove("indexdb-test").then(function () {
+ c();
+ })["catch"](function () {
+ b.ka.error("Failed to remove testValue");
+ c();
+ });
+ });
+ })["catch"](function (a) {
+ return d(a);
+ });
+ });
+ };
+ b = a;
+ return b = c.__decorate([g.N(), c.__param(0, g.l(l.Jb)), c.__param(1, g.l(r.nx)), c.__param(2, g.l(p.u5))], b);
+ })();
+ b.rsa = d;
+ }, function (d, b, a) {
+ var c,
+ g,
+ l,
+ r,
+ h,
+ p,
+ m,
+ f,
+ n,
+ q,
+ A,
+ K,
+ C,
+ M,
+ H,
+ G,
+ z;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.storage = void 0;
+ d = a(1);
+ c = a(451);
+ g = a(70);
+ l = a(176);
+ r = a(1009);
+ h = a(448);
+ p = a(1008);
+ m = a(449);
+ f = a(175);
+ n = a(1007);
+ q = a(1005);
+ A = a(1004);
+ K = a(1003);
+ C = a(70);
+ M = a(447);
+ H = a(1001);
+ G = a(446);
+ z = a(1E3);
+ b.storage = new d.Kc(function (a) {
+ a(l.b8).zf(function () {
+ return function () {
+ return t.localStorage;
+ };
+ });
+ a(l.R6).zf(function () {
+ return function () {
+ return t.indexedDB;
+ };
+ });
+ a(M.Q7).to(H.Ewa).Z();
+ a(C.xr).to(K.Nqa).Z();
+ a(h.m7).to(p.Ava).Z();
+ a(c.ZK).to(q.cva).Z();
+ a(f.W6).to(n.dva).Z();
+ a(g.Q9).to(r.rsa).Z();
+ a(f.Q6).to(n.Aua).Z();
+ a(f.$T).to(n.eva).Z();
+ a(m.u5).to(A.ssa).Z();
+ a(G.N5).to(z.Zsa).Z();
+ });
+ }, function (d, b, a) {
+ var c,
+ g,
+ l,
+ r;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Qta = void 0;
+ c = a(0);
+ g = a(1);
+ l = a(248);
+ r = a(452);
+ d = (function () {
+ var b;
+ function a(a) {
+ this.dEb = a;
+ }
+ a.prototype.Unb = function () {
+ var a,
+ b;
+ a = {
+ xO: l.Ww.k7a
+ };
+ b = this.dEb.PresentationRequest;
+ b && (new b("https://netflix.com").getAvailability() || Promise.reject()).then(function (b) {
+ var c;
+ a.xO = b.value ? l.Ww.Oya : l.Ww.Gqa;
+ if (a.xO === l.Ww.Gqa) {
+ c = function () {
+ b.value && (a.xO = l.Ww.Oya);
+ b.removeEventListener("change", c);
+ };
+ b.addEventListener("change", c);
+ }
+ })["catch"](function () {
+ a.xO = l.Ww.Error;
+ });
+ return a;
+ };
+ b = a;
+ return b = c.__decorate([g.N(), c.__param(0, g.l(r.m9))], b);
+ })();
+ b.Qta = d;
+ }, function (d, b, a) {
+ var c,
+ g,
+ l,
+ r;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.qwa = void 0;
+ c = a(0);
+ g = a(454);
+ l = a(7);
+ r = a(1);
+ d = (function () {
+ var b;
+ function a(a, b) {
+ this.jQa = a;
+ this.log = b.xb("MediaCapabilities");
+ }
+ a.prototype.Lfa = function (a) {
+ var b,
+ c,
+ d;
+ b = this;
+ c = {
+ gc: void 0
+ };
+ if (this.jQa.kQa) {
+ d = {
+ contentType: 'video/mp4;codecs="avc1.640028"',
+ width: a.width,
+ height: a.height,
+ R: 1E3 * a.R,
+ DZ: "24"
+ };
+ this.jQa.Lfa(d).then(function (a) {
+ return c.gc = Object.assign(Object.assign({}, a), d);
+ })["catch"](function (a) {
+ return b.log.error("Error calling MediaCapabilities API", a);
+ });
+ }
+ return c;
+ };
+ b = a;
+ return b = c.__decorate([r.N(), c.__param(0, r.l(g.K7)), c.__param(1, r.l(l.Jb))], b);
+ })();
+ b.qwa = d;
+ }, function (d, b, a) {
+ var c,
+ g,
+ l;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.pwa = void 0;
+ c = a(0);
+ g = a(1);
+ l = a(31);
+ d = (function () {
+ var b;
+ function a(a) {
+ this.navigator = a;
+ this.kQa = ("mediaCapabilities" in this.navigator) && ("decodingInfo" in this.navigator.mediaCapabilities);
+ }
+ a.prototype.Lfa = function (a) {
+ return this.kQa ? this.navigator.mediaCapabilities.decodingInfo({
+ type: "media-source",
+ video: {
+ contentType: a.contentType,
+ width: a.width,
+ height: a.height,
+ bitrate: a.R,
+ framerate: a.DZ
+ }
+ }).then(function (a) {
+ return {
+ Q0b: a.supported,
+ bKb: a.smooth,
+ HDb: a.powerEfficient
+ };
+ }) : Promise.reject("MediaCapabilities not supported");
+ };
+ b = a;
+ return b = c.__decorate([g.N(), c.__param(0, g.l(l.AA))], b);
+ })();
+ b.pwa = d;
+ }, function (d, b, a) {
+ var g,
+ l,
+ r,
+ h;
+ function c(a, b, c, d, k) {
+ a = g.Yl.call(this, a, b, c) || this;
+ a.Se = d;
+ a.navigator = k;
+ a.type = l.Dj.wza;
+ a.hZa = {};
+ a.hZa = a.akb();
+ a.log = h.sf.xb("SafariVideoCapabilityDetector");
+ return a;
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.yza = void 0;
+ g = a(135);
+ l = a(30);
+ r = a(59);
+ h = a(6);
+ N(c, g.Yl);
+ c.prototype.WO = function () {
+ return Promise.resolve({
+ SUPPORTS_SECURE_STOP: this.Se.wj.toString()
+ });
+ };
+ c.prototype.jZ = function (a) {
+ var b,
+ c;
+ b = this;
+ c = a.map(function (a) {
+ for (var c = U(b.fr), d = c.next(); !d.done; d = c.next()) {
+ if (d.value.test(a))
+ return Promise.resolve(!0);
+ }
+ c = U(b.Rl);
+ for (d = c.next(); !d.done; d = c.next()) {
+ if (d.value.test(a))
+ return Promise.resolve(!1);
+ }
+ return b.Bka(a);
+ });
+ return Promise.all(c).then(function (b) {
+ return a.filter(function (a, c) {
+ return b[c];
+ });
+ });
+ };
+ c.prototype.Bka = function (a) {
+ var b,
+ c;
+ b = this;
+ try {
+ c = this.hZa[a];
+ return !c || this.vvb(c) && !this.wvb() ? Promise.resolve(!1) : this.navigator.mediaCapabilities.decodingInfo({
+ type: "media-source",
+ video: c
+ }).then(function (a) {
+ b.log.trace("mediaCapabilities.decodingInfo: " + JSON.stringify(a));
+ return !0 === a.supported && !0 === a.powerEfficient;
+ })["catch"](function (a) {
+ b.log.error("mediaCapabilities.decodingInfo failed", a);
+ return !1;
+ });
+ } catch (u) {
+ return (this.log.error("mediaCapabilitiesIsTypeSupported failed", u), Promise.resolve(!1));
+ }
+ };
+ c.prototype.akb = function () {
+ var a,
+ b,
+ c,
+ d,
+ h,
+ g,
+ k,
+ l,
+ n,
+ q,
+ t,
+ z,
+ S;
+ a = {};
+ b = {
+ contentType: 'video/mp4; codecs="hev1.2.4.L120.B0"'
+ };
+ c = {
+ contentType: 'video/mp4; codecs="dvh1.05.04"'
+ };
+ d = {
+ width: 1920,
+ height: 1080
+ };
+ h = {
+ width: 3840,
+ height: 2160
+ };
+ g = Object.assign(Object.assign({}, d), {
+ bitrate: 12E6,
+ framerate: 30
+ });
+ k = Object.assign(Object.assign({}, d), {
+ bitrate: 2E7,
+ framerate: 60
+ });
+ d = Object.assign(Object.assign({}, h), {
+ bitrate: 25E6,
+ framerate: 30
+ });
+ h = Object.assign(Object.assign({}, h), {
+ bitrate: 4E7,
+ framerate: 60
+ });
+ l = {
+ hdrMetadataType: "smpteSt2086",
+ colorGamut: "rec2020",
+ transferFunction: "pq"
+ };
+ n = {
+ hdrMetadataType: "smpteSt2094-10",
+ colorGamut: "rec2020",
+ transferFunction: "pq"
+ };
+ q = Object.assign(Object.assign({}, {
+ contentType: 'video/mp4; codecs="avc1.640028"'
+ }), g);
+ a[r.W.ET] = q;
+ a[r.W.FT] = q;
+ a[r.W.r6] = q;
+ q = Object.assign(Object.assign({}, b), g);
+ t = Object.assign(Object.assign({}, {
+ contentType: 'video/mp4; codecs="hev1.2.4.L123.B0"'
+ }), k);
+ z = Object.assign(Object.assign({}, {
+ contentType: 'video/mp4; codecs="hev1.2.4.L150.B0"'
+ }), d);
+ S = Object.assign(Object.assign({}, {
+ contentType: 'video/mp4; codecs="hev1.2.4.L153.B0"'
+ }), h);
+ a[r.W.KT] = q;
+ a[r.W.MT] = q;
+ a[r.W.OT] = q;
+ a[r.W.QT] = t;
+ a[r.W.FE] = z;
+ a[r.W.GE] = S;
+ a[r.W.LT] = q;
+ a[r.W.NT] = q;
+ a[r.W.PT] = q;
+ a[r.W.RT] = t;
+ a[r.W.ST] = z;
+ a[r.W.TT] = S;
+ q = Object.assign(Object.assign(Object.assign({}, b), g), l);
+ t = Object.assign(Object.assign(Object.assign({}, b), k), l);
+ z = Object.assign(Object.assign(Object.assign({}, b), d), l);
+ b = Object.assign(Object.assign(Object.assign({}, b), h), l);
+ a[r.W.NK] = q;
+ a[r.W.OK] = q;
+ a[r.W.EE] = q;
+ a[r.W.PK] = t;
+ a[r.W.HT] = z;
+ a[r.W.IT] = b;
+ g = Object.assign(Object.assign(Object.assign({}, c), g), n);
+ k = Object.assign(Object.assign(Object.assign({}, c), k), n);
+ d = Object.assign(Object.assign(Object.assign({}, c), d), n);
+ c = Object.assign(Object.assign(Object.assign({}, c), h), n);
+ a[r.W.zK] = g;
+ a[r.W.AK] = g;
+ a[r.W.uE] = g;
+ a[r.W.BK] = k;
+ a[r.W.CK] = d;
+ a[r.W.nT] = c;
+ return a;
+ };
+ c.prototype.vvb = function (a) {
+ return !!a.colorGamut || !!a.hdrMetadataType || !!a.transferFunction;
+ };
+ c.prototype.wvb = function () {
+ return t.matchMedia("(dynamic-range: high)").matches;
+ };
+ c.prototype.TR = function () {
+ return this.config().hfa ? this.Bka(r.W.uE) : Promise.resolve(!1);
+ };
+ c.prototype.VR = function () {
+ return this.config().hfa ? this.Bka(r.W.EE) : Promise.resolve(!1);
+ };
+ b.yza = c;
+ }, function (d, b, a) {
+ var g,
+ l,
+ r;
+ function c(a, b, c, d, k, r) {
+ a = g.Yl.call(this, a, b, c) || this;
+ a.Ml = d;
+ a.Sq = k;
+ a.Aa = r;
+ a.type = l.Dj.s5;
+ a.log = a.Sq.xb("ChromeVideoCapabilityDetector");
+ return a;
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.esa = void 0;
+ g = a(135);
+ l = a(30);
+ r = a(3);
+ N(c, g.Yl);
+ c.prototype.It = function (a) {
+ switch (a) {
+ case l.oi.Ir:
+ return this.hLb;
+ default:
+ return Promise.resolve(!1);
+ }
+ };
+ c.prototype.EH = function () {
+ var a;
+ a = this;
+ return this.It(l.oi.Ir).then(function (a) {
+ return a ? l.oi.Ir : void 0;
+ }).then(function (b) {
+ return a.UN(b);
+ });
+ };
+ c.prototype.Lba = function (a) {
+ return this.Nm = a;
+ };
+ c.prototype.tS = function () {
+ var a;
+ if (this.Nm) {
+ a = this.RMa && this.SMa && this.RMa.Ib(this.SMa).ca(r.ia);
+ this.Nm.itshdcp = JSON.stringify({
+ hdcp1: this.Gv,
+ time1: a
+ });
+ }
+ };
+ wa.Object.defineProperties(c.prototype, {
+ Nf: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ this.mQa || (this.mQa = this.Ml.BH().then(function (a) {
+ return a.createMediaKeys();
+ }));
+ return this.mQa;
+ }
+ },
+ hLb: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ var a;
+ a = this;
+ this.fpa || (this.config().Dmb ? this.fpa = this.Nf.then(function (b) {
+ if (b && b.getStatusForPolicy)
+ return (a.SMa = a.Aa.$e, b.getStatusForPolicy({
+ minHdcpVersion: "1.4"
+ }).then(function (b) {
+ a.RMa = a.Aa.$e;
+ a.Gv = b;
+ a.log.trace("hdcpStatus: " + a.Gv);
+ return "usable" === a.Gv;
+ }));
+ a.Gv = "not available";
+ a.log.trace("hdcpStatus: " + a.Gv);
+ return !1;
+ })["catch"](function (b) {
+ a.Gv = "exception";
+ a.log.error("Exception in supportsHdcpLevel", {
+ hdcpStatus: a.Gv
+ }, b);
+ return !1;
+ }).then(function (b) {
+ a.tS();
+ return b;
+ }) : (this.Gv = "not enabled", this.log.trace("hdcpStatus: " + this.Gv), this.tS(), this.fpa = Promise.resolve(!1)));
+ return this.fpa;
+ }
+ }
+ });
+ b.esa = c;
+ }, function (d, b, a) {
+ var c,
+ g,
+ l,
+ r,
+ h,
+ p,
+ m,
+ f,
+ n,
+ q,
+ A,
+ K,
+ C,
+ z,
+ H,
+ G,
+ T,
+ S,
+ E;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.cwa = void 0;
+ c = a(59);
+ g = a(135);
+ l = a(30);
+ d = a(99);
+ r = a(141);
+ h = a(138);
+ p = a(3);
+ m = a(259);
+ f = a(136);
+ n = a(249);
+ q = ("decode-res-x=3840 decode-res-y=2160 decode-bpc=10 decode-bitrate=16000 decode-fps=30 display-res-x=2560 display-res-y=1440 display-bpc=8").split(" ");
+ A = ("decode-res-x=3840 decode-res-y=2160 decode-bpc=10 decode-bitrate=16000 decode-fps=30 display-res-x=3840 display-res-y=2160 display-bpc=8").split(" ");
+ K = ("decode-res-x=1920 decode-res-y=1080 decode-bpc=10 decode-bitrate=5800 decode-fps=30 display-res-x=1920 display-res-y=1080 display-bpc=8 hdr=1").split(" ");
+ C = ("decode-res-x=3840 decode-res-y=2160 decode-bpc=10 decode-bitrate=16000 decode-fps=30 display-res-x=2560 display-res-y=1440 display-bpc=8 hdr=1").split(" ");
+ z = ("decode-res-x=1920 decode-res-y=1080 decode-bpc=10 decode-bitrate=5800 decode-fps=30 display-res-x=1920 display-res-y=1080 display-bpc=8 hdr=1 ext-profile=dvhe.05").split(" ");
+ H = ("decode-res-x=3840 decode-res-y=2160 decode-bpc=10 decode-bitrate=16000 decode-fps=30 display-res-x=2560 display-res-y=1440 display-bpc=8 hdr=1 ext-profile=dvhe.05").split(" ");
+ G = ["hdcp=1"];
+ T = ["hdcp=2"];
+ S = new d.qx();
+ E = new m.XS();
+ a = (function () {
+ function a(a, b, c, d, f, h, k) {
+ a = g.Yl.call(this, a, b, c) || this;
+ a.ya = d;
+ a.Aa = f;
+ a.Sq = h;
+ a.Fc = k;
+ a.type = l.Dj.du;
+ a.uK = "hvc1";
+ a.q0a = "avc1";
+ a.HSa = {};
+ a.log = a.Sq.xb("MicrosoftVideoCapabilityDetector");
+ a.lKb();
+ a.UR && a.config().ezb ? a.JIa = a.sjb() : (a.JIa = Promise.resolve(""), a.config().gzb ? a.xjb() : a.config().fzb && a.wjb());
+ return a;
+ }
+ N(a, g.Yl);
+ a.prototype.wH = function (a) {
+ return a === l.Cd.Xt && this.config().NNb ? f.Md.LK : g.Yl.prototype.wH.call(this, a);
+ };
+ a.prototype.It = function (a) {
+ switch (a) {
+ case l.oi.Ir:
+ return this.aXa();
+ case l.oi.sA:
+ return this.OQ;
+ default:
+ return Promise.resolve(!1);
+ }
+ };
+ a.prototype.Js = function () {
+ return this.UR ? this.hub ? this.aXa().then(function (a) {
+ return Promise.resolve(a ? r.rb.Nd : r.rb.qL);
+ }) : Promise.resolve(r.rb.qL) : this.iLb ? Promise.resolve(r.rb.qL) : Promise.resolve(r.rb.Yp);
+ };
+ a.prototype.UZ = function () {
+ return this.JIa;
+ };
+ a.prototype.VR = function () {
+ return Promise.resolve(this.$Wa());
+ };
+ a.prototype.WR = function () {
+ return this.UR && this.cXa() ? this.OQ : Promise.resolve(!1);
+ };
+ a.prototype.TR = function () {
+ return Promise.resolve(this.ZWa());
+ };
+ a.prototype.Lba = function (a) {
+ this.Nm = a;
+ Object.assign(this.Nm, this.HSa);
+ a.itshwdrm = this.UR;
+ a.itsqhd = this.bXa();
+ a.itshevc = this.cXa();
+ a.itshdr = this.$Wa();
+ a.itsdv = this.ZWa();
+ return a;
+ };
+ a.prototype.TM = function (a, b) {
+ (this.Nm ? this.Nm : this.HSa)[a] = b;
+ };
+ a.prototype.EH = function () {
+ var a;
+ a = this;
+ return this.It(l.oi.sA).then(function (b) {
+ return b ? a.UN(l.oi.sA) : a.It(l.oi.Ir).then(function (b) {
+ return b ? a.UN(l.oi.Ir) : a.UN(void 0);
+ });
+ });
+ };
+ a.prototype.WO = function () {
+ return this.Js().then(function (a) {
+ return a === r.rb.Nd ? {
+ DEVICE_SECURITY_LEVEL: "3000"
+ }
+ : void 0;
+ });
+ };
+ a.prototype.jZ = function (a) {
+ var b;
+ b = this;
+ a = a.filter(function (a) {
+ var c,
+ f;
+ for (var c = U(b.fr), d = c.next(); !d.done; d = c.next()) {
+ if (d.value.test(a))
+ return !0;
+ }
+ c = U(b.Rl);
+ for (d = c.next(); !d.done; d = c.next()) {
+ if (d.value.test(a))
+ return !1;
+ }
+ a = b.Fma[a];
+ c = [];
+ f = r.rb.Yp;
+ if (a)
+ return (b.is.En(a) ? d = a : (c = a.Gd, d = a.Ze, f = a.yd), b.jy(f, d, c));
+ });
+ return Promise.resolve(a);
+ };
+ a.prototype.UB = function () {
+ var a;
+ a = g.Yl.prototype.UB.call(this);
+ a[c.W.jV] = "vp09.00.11.08.02";
+ a[c.W.kV] = "vp09.00.11.08.02";
+ a[c.W.lV] = "vp09.00.11.08.02";
+ a[c.W.KT] = {
+ Ze: "hev1.2.6.L90.B0",
+ yd: r.rb.Nd,
+ Gd: q
+ };
+ a[c.W.MT] = {
+ Ze: "hev1.2.6.L93.B0",
+ yd: r.rb.Nd,
+ Gd: q
+ };
+ a[c.W.OT] = {
+ Ze: "hev1.2.6.L120.B0",
+ yd: r.rb.Nd,
+ Gd: q
+ };
+ a[c.W.QT] = {
+ Ze: "hev1.2.6.L123.B0",
+ yd: r.rb.Nd,
+ Gd: q
+ };
+ a[c.W.FE] = {
+ Ze: "hev1.2.6.L150.B0",
+ yd: r.rb.Nd,
+ Gd: q
+ };
+ a[c.W.GE] = {
+ Ze: "hev1.2.6.L153.B0",
+ yd: r.rb.Nd,
+ Gd: q
+ };
+ a[c.W.LT] = {
+ Ze: "hev1.2.6.L90.B0",
+ yd: r.rb.Nd,
+ Gd: q
+ };
+ a[c.W.NT] = {
+ Ze: "hev1.2.6.L93.B0",
+ yd: r.rb.Nd,
+ Gd: q
+ };
+ a[c.W.PT] = {
+ Ze: "hev1.2.6.L120.B0",
+ yd: r.rb.Nd,
+ Gd: q
+ };
+ a[c.W.RT] = {
+ Ze: "hev1.2.6.L123.B0",
+ yd: r.rb.Nd,
+ Gd: q
+ };
+ a[c.W.ST] = {
+ Ze: "hev1.2.6.L150.B0",
+ yd: r.rb.Nd,
+ Gd: q
+ };
+ a[c.W.TT] = {
+ Ze: "hev1.2.6.L153.B0",
+ yd: r.rb.Nd,
+ Gd: q
+ };
+ a[c.W.NK] = {
+ Ze: "hev1.2.6.L90.B0",
+ yd: r.rb.Nd,
+ Gd: K
+ };
+ a[c.W.OK] = {
+ Ze: "hev1.2.6.L93.B0",
+ yd: r.rb.Nd,
+ Gd: K
+ };
+ a[c.W.EE] = {
+ Ze: "hev1.2.6.L120.B0",
+ yd: r.rb.Nd,
+ Gd: K
+ };
+ a[c.W.PK] = {
+ Ze: "hev1.2.6.L123.B0",
+ yd: r.rb.Nd,
+ Gd: C
+ };
+ a[c.W.HT] = {
+ Ze: "hev1.2.6.L150.B0",
+ yd: r.rb.Nd,
+ Gd: C
+ };
+ a[c.W.IT] = {
+ Ze: "hev1.2.6.L153.B0",
+ yd: r.rb.Nd,
+ Gd: C
+ };
+ a[c.W.zK] = {
+ Ze: "hev1.2.6.L90.B0",
+ yd: r.rb.Nd,
+ Gd: z
+ };
+ a[c.W.AK] = {
+ Ze: "hev1.2.6.L93.B0",
+ yd: r.rb.Nd,
+ Gd: z
+ };
+ a[c.W.uE] = {
+ Ze: "hev1.2.6.L120.B0",
+ yd: r.rb.Nd,
+ Gd: z
+ };
+ a[c.W.BK] = {
+ Ze: "hev1.2.6.L123.B0",
+ yd: r.rb.Nd,
+ Gd: H
+ };
+ a[c.W.CK] = {
+ Ze: "hev1.2.6.L150.B0",
+ yd: r.rb.Nd,
+ Gd: H
+ };
+ a[c.W.nT] = {
+ Ze: "hev1.2.6.L153.B0",
+ yd: r.rb.Nd,
+ Gd: H
+ };
+ return a;
+ };
+ a.prototype.jy = function (a, b, c) {
+ a = n.hx.fY(a, b, c);
+ return this.av(a);
+ };
+ a.prototype.bXa = function () {
+ return this.jy(r.rb.Nd, this.uK, q);
+ };
+ a.prototype.$Wa = function () {
+ return this.jy(r.rb.Nd, this.uK, K);
+ };
+ a.prototype.ZWa = function () {
+ return this.jy(r.rb.Nd, this.uK, z);
+ };
+ a.prototype.cXa = function () {
+ return this.jy(r.rb.Nd, this.uK, A);
+ };
+ a.prototype.aXa = function () {
+ var a;
+ a = this;
+ return this.OQ.then(function (b) {
+ return b ? Promise.resolve(b) : a.xTa;
+ });
+ };
+ a.prototype.tS = function () {
+ this.Nm && (this.Nm.itshdcp = JSON.stringify({
+ hdcp1: this.PMa,
+ time1: this.yXa - this.AWa,
+ hdcp2: this.QMa,
+ time2: this.zXa - this.BWa
+ }));
+ };
+ a.prototype.lKb = function () {
+ var a;
+ a = this;
+ this.UR ? (this.kma = new h.pn(), this.lma = new h.pn(), this.xTa = h.sb.from(this.kma).Sz().then(function (a) {
+ return "probably" === a;
+ }), this.OQ = h.sb.from(this.lma).Sz().then(function (a) {
+ return "probably" === a;
+ }), this.eWa(this.lma, this.config().izb), this.XSa(this.Mqb.bind(this), this.lma), this.OQ.then(function (b) {
+ b || (a.eWa(a.kma, a.config().hzb), a.XSa(a.Lqb.bind(a), a.kma));
+ })) : (this.xTa = Promise.resolve(!0), this.OQ = Promise.resolve(!1));
+ };
+ a.prototype.XSa = function (a, b) {
+ h.sb.$m(0, this.config().jzb).map(function () {
+ return a();
+ }).KR(function (a) {
+ return "maybe" === a;
+ }).map(function (a) {
+ b.next(a);
+ b.complete();
+ }).dS(h.sb.from(b)).Sz();
+ };
+ a.prototype.eWa = function (a, b) {
+ this.ya.Mh(p.Gb(b), function () {
+ a.next("timeout");
+ a.complete();
+ });
+ };
+ a.prototype.Lqb = function () {
+ var a;
+ a = n.hx.fY(r.rb.qL, this.q0a, G).split("|");
+ this.PMa = n.hx.epa(a[0], a[1]);
+ this.yXa = this.Aa.$e.ca(p.ia);
+ this.AWa = this.AWa || this.yXa;
+ this.tS();
+ return this.PMa;
+ };
+ a.prototype.Mqb = function () {
+ var a;
+ a = n.hx.fY(r.rb.Nd, this.uK, T).split("|");
+ this.QMa = n.hx.epa(a[0], a[1]);
+ this.zXa = this.Aa.$e.ca(p.ia);
+ this.BWa = this.BWa || this.zXa;
+ this.tS();
+ return this.QMa;
+ };
+ a.prototype.sjb = function () {
+ var a;
+ a = this;
+ return this.Xda(r.rb.Nd, 'Q0hBSQAAAAEAAAUMAAAAAAAAAAJDRVJUAAAAAQAAAfwAAAFsAAEAAQAAAFhr+y4Ydms5rTmj6bCCteW2AAAAAAAAAAAAAAAJzZtwNxHterM9CAoJYOM3CF9Tj0d9KND413a+UtNzRTb/////AAAAAAAAAAAAAAAAAAAAAAABAAoAAABU8vU0ozkqocBJMVIX2K4dugAAADZodHRwOi8vbnJkcC5uY2NwLm5ldGZsaXguY29tL3Jtc2RrL3JpZ2h0c21hbmFnZXIuYXNteAAAAAABAAUAAAAMAAAAAAABAAYAAABcAAAAAQABAgAAAAAAglDQ2GehCoNSsOaaB8zstNK0cCnf1+9gX8wM+2xwLlqJ1kyokCjt3F8P2NqXHM4mEU/G1T0HBBSI3j6XpKqzgAAAAAEAAAACAAAABwAAAEgAAAAAAAAACE5ldGZsaXgAAAAAH1BsYXlSZWFkeSBNZXRlcmluZyBDZXJ0aWZpY2F0ZQAAAAAABjIwMjQ4AAAAAAEACAAAAJAAAQBAU73up7T8eJYVK4UHuKYgMQIRbo0yf27Y5EPZRPmzkx1ZDMor7Prs77CAOU9S9k0RxpxPnqUwAKRPIVCe0aX2+AAAAgBb65FSx1oKG2r8AxQjio+UrYGLhvA7KMlxJBbPXosAV/CJufnIdUMSA0DhxD2W3eRLh2vHukIL4VH9guUcEBXsQ0VSVAAAAAEAAAL8AAACbAABAAEAAABYyTlnSi+jZfRvYL0rk9sVfwAAAAAAAAAAAAAABFNh3USSkWi88BlSM6PZ2gMuceJFJ9hzz0WzuCiwF9qv/////wAAAAAAAAAAAAAAAAAAAAAAAQAFAAAADAAAAAAAAQAGAAAAYAAAAAEAAQIAAAAAAFvrkVLHWgobavwDFCOKj5StgYuG8DsoyXEkFs9eiwBX8Im5+ch1QxIDQOHEPZbd5EuHa8e6QgvhUf2C5RwQFewAAAACAAAAAQAAAAwAAAAHAAABmAAAAAAAAACATWljcm9zb2Z0AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAUGxheVJlYWR5IFNMMCBNZXRlcmluZyBSb290IENBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAMS4wLjAuMQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAIAAAAkAABAECsAomwQgNY0bm6U6Au9JRvwjbNnRzmVkZi+kg7npnRQ2T+4LgyrePBdBRQ3qb/jxXkn++4sOFa7vjRpFBzV0MMAAACAIZNYc/yJW5CLFaLPCgAHPs+FSdlhYS6BSG3mxgo2TbeHYJqj8Pm5/p6kNXKKUbx9kou+59dz/5+Q060QpP6xas= ').then(function (b) {
+ a.log.debug("DriverInfo: " + b);
+ return b;
+ })["catch"](function (b) {
+ a.TM("itsDriverInfo", "exception");
+ a.log.error("DriverInfo exception", b);
+ throw b;
+ });
+ };
+ a.prototype.wjb = function () {
+ var a;
+ a = this;
+ this.Xda(r.rb.Yp, ' ').then(function (b) {
+ var c;
+ c = String.fromCharCode.apply(void 0, a.Fc.decode(b));
+ a.TM("itsHardwareInfo", c);
+ a.log.debug("HardwareInfo: " + c);
+ return b;
+ })["catch"](function (b) {
+ a.TM("itsHardwareInfo", "exception");
+ a.log.error("HardwareInfo exception", b);
+ throw b;
+ });
+ };
+ a.prototype.xjb = function () {
+ var a;
+ a = this;
+ this.Xda(r.rb.Yp, ' ').then(function (b) {
+ var c;
+ c = String.fromCharCode.apply(void 0, a.Fc.decode(b));
+ a.TM("itsHardwareReset", c);
+ a.log.debug("ResetHardwareDRMDisabled: " + c);
+ return b;
+ })["catch"](function (b) {
+ a.TM("itsHardwareReset", "exception");
+ a.log.error("ResetHardwareDRMDisabled exception", b);
+ throw b;
+ });
+ };
+ a.prototype.Xda = function (a, b) {
+ var c;
+ c = this;
+ return new Promise(function (d, f) {
+ var r,
+ n,
+ q;
+ function h(a) {
+ try {
+ m(a.target, "Unexpectedly got an mskeyerror event: 0x" + E.zv(a && a.target && a.target.error && a.target.error.gXa || 0, 4));
+ } catch (za) {
+ m(a.target, za);
+ }
+ }
+ function g(a) {
+ m(a.target, "Unexpectedly got an mskeyadded event");
+ }
+ function k(a) {
+ var b;
+ try {
+ b = c.Hfa(a.message, "PlayReadyKeyMessage", "Challenge");
+ l(a.target);
+ d(b);
+ } catch (ma) {
+ m(a.target, ma);
+ }
+ }
+ function m(a, d) {
+ c.log.error("PlayReadyChallenge error", {
+ cdmData: b
+ });
+ l(a);
+ f(d);
+ }
+ function l(a) {
+ a.removeEventListener("mskeymessage", k);
+ a.removeEventListener("mskeyadded", g);
+ a.removeEventListener("mskeyerror", h);
+ r && r.cancel();
+ }
+ try {
+ n = new Uint8Array(S.bpa(b));
+ q = new t.MSMediaKeys(a).createSession("video/mp4", new Uint8Array(0), n);
+ q.addEventListener("mskeymessage", k);
+ q.addEventListener("mskeyadded", g);
+ q.addEventListener("mskeyerror", h);
+ r = c.ya.Mh(p.Gb(1E3), function () {
+ m(q, Error("timeout"));
+ });
+ } catch (ya) {
+ f(ya);
+ }
+ });
+ };
+ a.prototype.Hfa = function (a, b) {
+ var c,
+ d,
+ f,
+ h;
+ for (var c = 1; c < arguments.length; ++c) { ;
+ }
+ c = "";
+ f = a.length;
+ for (d = 0; d < f; d++) {
+ h = a[d];
+ 0 < h && (c += String.fromCharCode(h));
+ }
+ f = "\\s*(.*)\\s*";
+ for (d = arguments.length - 1; 0 < d; d--) {
+ h = arguments[d];
+ if (0 > c.search(h))
+ return;
+ h = "(?:[^:].*:|)" + h;
+ f = "[\\s\\S]*<" + h + "[^>]*>" + f + "" + h + ">[\\s\\S]*";
+ }
+ if (c = c.match(new RegExp(f)))
+ return c[1];
+ };
+ wa.Object.defineProperties(a.prototype, {
+ hub: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.config().Cmb && (!this.config().kzb || this.bXa());
+ }
+ },
+ UR: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ try {
+ return this.av(r.rb.Nd + '|video/mp4;codecs="' + f.Md.CE + '"');
+ } catch (B) {
+ return !1;
+ }
+ }
+ },
+ iLb: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ try {
+ return this.av(r.rb.qL);
+ } catch (B) {
+ return !1;
+ }
+ }
+ }
+ });
+ a.XJ = 'video/mp4;codecs="{0},mp4a";';
+ return a;
+ })();
+ b.cwa = a;
+ }, function (d, b, a) {
+ var g,
+ l,
+ r,
+ h,
+ p;
+ function c(a, b, c, d) {
+ a = h.qT.call(this, a, b) || this;
+ a.is = c;
+ a.platform = d;
+ a.type = g.Ar.du;
+ return a;
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Gwa = void 0;
+ g = a(30);
+ l = a(59);
+ r = a(141);
+ h = a(455);
+ p = a(249);
+ N(c, h.qT);
+ c.prototype.SR = function () {
+ return Promise.resolve(this.config().qO && this.jy(r.rb.Yp, "avc1,mp4a", ["audio-endpoint-codec=DD+JOC"]));
+ };
+ c.prototype.UB = function () {
+ var a;
+ a = {};
+ a[l.xg.QK] = "mp4a.40.2";
+ a[l.xg.z6] = "mp4a.40.5";
+ a[l.xg.RK] = "mp4a.40.2";
+ "browser" === this.platform.slb ? this.config().qO && (a[l.xg.xK] = {
+ Ze: "avc1",
+ yd: r.rb.Yp,
+ Gd: ["audio-endpoint-codec=DD+JOC"]
+ }, a[l.xg.yK] = {
+ Ze: "avc1",
+ yd: r.rb.Yp,
+ Gd: ["audio-endpoint-codec=DD+JOC"]
+ }) : (this.config().ffa && (a[l.xg.xK] = "ec-3"), this.config().efa && (a[l.xg.y5] = "ec-3"), this.config().qO && (a[l.xg.yK] = {
+ Ze: "avc1",
+ yd: r.rb.Yp,
+ Gd: ["audio-endpoint-codec=DD+JOC"]
+ }));
+ return a;
+ };
+ c.prototype.jZ = function (a) {
+ var b;
+ b = this;
+ a = a.filter(function (a) {
+ var c,
+ f;
+ for (var c = U(b.fr), d = c.next(); !d.done; d = c.next()) {
+ if (d.value.test(a))
+ return !0;
+ }
+ c = U(b.Rl);
+ for (d = c.next(); !d.done; d = c.next()) {
+ if (d.value.test(a))
+ return !1;
+ }
+ a = b.Fma[a];
+ c = [];
+ f = r.rb.Yp;
+ if (a)
+ return (b.is.En(a) ? d = a : (c = a.Gd, d = a.Ze, f = a.yd), b.jy(f, d, c));
+ });
+ return Promise.resolve(a);
+ };
+ c.prototype.jy = function (a, b, c) {
+ a = p.hx.fY(a, b, c);
+ return this.av(a);
+ };
+ b.Gwa = c;
+ }, function (d, b, a) {
+ var c,
+ g,
+ l,
+ r,
+ h,
+ p,
+ m,
+ f,
+ n,
+ q,
+ t,
+ K,
+ C,
+ z,
+ H,
+ G,
+ T,
+ E,
+ aa,
+ Z,
+ B;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Vra = void 0;
+ c = a(0);
+ g = a(1);
+ l = a(30);
+ r = a(251);
+ h = a(177);
+ p = a(250);
+ m = a(1017);
+ f = a(1016);
+ n = a(135);
+ q = a(455);
+ t = a(36);
+ K = a(37);
+ C = a(21);
+ z = a(1015);
+ H = a(101);
+ G = a(7);
+ T = a(1014);
+ E = a(52);
+ aa = a(32);
+ Z = a(42);
+ B = a(31);
+ d = (function () {
+ var b;
+ function a(a, b, c, d, f, h, g, k, m, l, p, r) {
+ this.wOa = a;
+ this.cast = b;
+ this.config = c;
+ this.ya = d;
+ this.Aa = f;
+ this.is = h;
+ this.Ml = g;
+ this.Sq = k;
+ this.Se = m;
+ this.platform = l;
+ this.Fc = p;
+ this.navigator = r;
+ }
+ a.prototype.$ib = function (a) {
+ var b;
+ b = this.wOa.BHa();
+ switch (a) {
+ case l.Ar.du:
+ return new m.Gwa(this.config, b, this.is, this.platform);
+ default:
+ return new q.qT(this.config, b);
+ }
+ };
+ a.prototype.bkb = function (a) {
+ var b;
+ b = this.wOa.BHa();
+ switch (a) {
+ case l.Dj.p5:
+ a = new p.q5(this.config, b, this.is, this.cast);
+ break;
+ case l.Dj.s5:
+ a = new z.esa(this.config, b, this.is, this.Ml, this.Sq, this.Aa);
+ break;
+ case l.Dj.du:
+ a = new f.cwa(this.config, b, this.is, this.ya, this.Aa, this.Sq, this.Fc);
+ break;
+ case l.Dj.wza:
+ a = new T.yza(this.config, b, this.is, this.Se, this.navigator, this.Sq);
+ break;
+ default:
+ a = new n.Yl(this.config, b, this.is);
+ }
+ return a;
+ };
+ b = a;
+ return b = c.__decorate([g.N(), c.__param(0, g.l(r.a7)), c.__param(1, g.l(p.jT)), c.__param(2, g.l(h.EK)), c.__param(3, g.l(t.Tg)), c.__param(4, g.l(K.ni)), c.__param(5, g.l(C.Zd)), c.__param(6, g.l(H.cu)), c.__param(7, g.l(G.Jb)), c.__param(8, g.l(E.Zl)), c.__param(9, g.l(aa.aj)), c.__param(10, g.l(Z.Ui)), c.__param(11, g.l(B.AA))], b);
+ })();
+ b.Vra = d;
+ }, function (d, b, a) {
+ var c,
+ g,
+ l,
+ r,
+ h,
+ p,
+ m;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.jva = void 0;
+ c = a(0);
+ g = a(1);
+ l = a(251);
+ r = a(177);
+ h = a(30);
+ p = a(250);
+ m = a(249);
+ d = (function () {
+ var b;
+ function a(a, b, c) {
+ this.config = a;
+ this.bIa = b;
+ this.cast = c;
+ }
+ a.prototype.BHa = function () {
+ switch (this.config().D4) {
+ case h.Dj.p5:
+ return p.q5.Tda(this.bIa, this.cast);
+ case h.Dj.du:
+ return m.hx.Tda(this.config);
+ default:
+ return this.bIa;
+ }
+ };
+ b = a;
+ return b = c.__decorate([g.N(), c.__param(0, g.l(r.EK)), c.__param(1, g.l(l.Q8)), c.__param(2, g.l(p.jT))], b);
+ })();
+ b.jva = d;
+ }, function (d, b, a) {
+ var c,
+ g,
+ l,
+ r,
+ h,
+ p,
+ m,
+ f;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Tza = void 0;
+ c = a(0);
+ g = a(30);
+ l = a(1);
+ r = a(136);
+ h = a(21);
+ p = a(272);
+ m = a(458);
+ f = a(10);
+ d = (function () {
+ var b,
+ d;
+ function a(a, b, c) {
+ this.Pn = a;
+ this.La = b;
+ this.SWa = c;
+ this.Ebb = "video/mp4;codecs={0}";
+ this.R7a = "audio/mp4;codecs={0}";
+ a = this.Pn.wH(g.Cd.Xt);
+ this.Dbb = r.Md.HHa(a);
+ }
+ a.prototype.WN = function (a) {
+ a = this.Pn.Oqb(a);
+ a = this.La.ZB(a) ? a : g.Cd.wL;
+ return this.SWa.format(this.Ebb, this.Dbb[a]);
+ };
+ a.prototype.PN = function (a) {
+ if (0 === a.length)
+ return this.SWa.format(this.R7a, r.Md.OS);
+ a = m.X4[a[0].hg] || b.wqa;
+ return a === b.wqa ? f.gx : a === b.b_a ? f.Xva : f.Wva;
+ };
+ d = b = a;
+ d.wqa = "AAC";
+ d.b_a = "XHEAAC";
+ return d = b = c.__decorate([l.N(), c.__param(0, l.l(g.Vw)), c.__param(1, l.l(h.Zd)), c.__param(2, l.l(p.yL))], d);
+ })();
+ b.Tza = d;
+ }, function (d, b, a) {
+ var c,
+ g,
+ l,
+ r,
+ h,
+ p,
+ m;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Tsa = void 0;
+ c = a(0);
+ g = a(30);
+ l = a(177);
+ r = a(1);
+ h = a(59);
+ p = a(460);
+ m = a(459);
+ d = (function () {
+ var b;
+ function a(a, b, c) {
+ this.config = a;
+ this.nGa = b;
+ this.aDb = c;
+ this.xEb = this.Rjb();
+ }
+ a.prototype.iMa = function () {
+ return this.AKa().jMa();
+ };
+ a.prototype.kMa = function () {
+ return this.Iq().jMa();
+ };
+ a.prototype.AKa = function () {
+ this.pca && this.pca.type == this.config().qca || (this.pca = this.nGa.$ib(this.config().qca));
+ return this.pca;
+ };
+ a.prototype.Iq = function () {
+ this.C4 && this.C4.type == this.config().D4 || (this.C4 = this.nGa.bkb(this.config().D4), this.C4.Lba(this.aDb.Cqb()));
+ return this.C4;
+ };
+ a.prototype.Oqb = function (a) {
+ var d;
+ if (!a || !a.length)
+ return g.Cd.GT;
+ a = this.oob(a);
+ for (var b = [g.Cd.wL, g.Cd.GT, g.Cd.hV, g.Cd.$t, g.Cd.Xt, g.Cd.pE, g.Cd.ux, g.Cd.Ti], c = b.length; c--; ) {
+ d = b[c];
+ if ((0, this.xEb[d])(a))
+ return d;
+ }
+ return g.Cd.wL;
+ };
+ a.prototype.It = function (a) {
+ return this.Iq().It(a);
+ };
+ a.prototype.av = function (a) {
+ return this.Iq().av(a);
+ };
+ a.prototype.Js = function () {
+ return this.Iq().Js();
+ };
+ a.prototype.UZ = function () {
+ return this.Iq().UZ();
+ };
+ a.prototype.VR = function () {
+ return this.Iq().VR();
+ };
+ a.prototype.SR = function () {
+ return this.AKa().SR();
+ };
+ a.prototype.TR = function () {
+ return this.Iq().TR();
+ };
+ a.prototype.WR = function () {
+ return this.Iq().WR();
+ };
+ a.prototype.wH = function (a) {
+ return this.Iq().wH(a);
+ };
+ a.prototype.EH = function () {
+ return this.Iq().EH();
+ };
+ a.prototype.WO = function () {
+ return this.Iq().WO();
+ };
+ a.prototype.oob = function (a) {
+ var b;
+ b = {};
+ a.filter(function (a) {
+ return "video" === a.type;
+ }).forEach(function (a) {
+ b[a.hg] = "";
+ });
+ return Object.keys(b);
+ };
+ a.prototype.Rjb = function () {
+ var a;
+ a = {};
+ a[g.Cd.Ti] = function (a) {
+ return a.some(function (a) {
+ return -1 < a.indexOf("av1");
+ });
+ };
+ a[g.Cd.pE] = function (a) {
+ return a.some(function (a) {
+ return -1 < a.indexOf("hpl");
+ });
+ };
+ a[g.Cd.ux] = function (a) {
+ return a.some(function (a) {
+ return -1 < a.indexOf("vp9");
+ });
+ };
+ a[g.Cd.Xt] = function (a) {
+ return a.some(function (a) {
+ return -1 < a.indexOf("hevc-dv");
+ });
+ };
+ a[g.Cd.$t] = function (a) {
+ return a.some(function (a) {
+ return -1 < a.indexOf("hevc-hdr");
+ });
+ };
+ a[g.Cd.hV] = function (a) {
+ return a.some(function (a) {
+ return -1 < a.indexOf("hevc-main10-L") || -1 < a.indexOf("hevc-main-L");
+ });
+ };
+ a[g.Cd.GT] = (function (a, b) {
+ var c;
+ c = {};
+ a.forEach(function (a) {
+ return c[a] = 1;
+ });
+ a = U(b);
+ for (b = a.next(); !b.done; b = a.next()) {
+ if (c[b.value])
+ return !0;
+ }
+ }).bind(null, [h.W.DE]);
+ a[g.Cd.wL] = function () {
+ return !0;
+ };
+ return a;
+ };
+ b = a;
+ return b = c.__decorate([r.N(), c.__param(0, r.l(l.EK)), c.__param(1, r.l(m.o5)), c.__param(2, r.l(p.k6))], b);
+ })();
+ b.Tsa = d;
+ }, function (d, b, a) {
+ var c,
+ g,
+ l,
+ r,
+ h,
+ p,
+ m,
+ f,
+ n,
+ q,
+ A,
+ K,
+ C,
+ z,
+ H,
+ G,
+ T,
+ E,
+ aa,
+ Z,
+ B;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Pn = void 0;
+ d = a(1);
+ c = a(30);
+ g = a(14);
+ l = a(1021);
+ r = a(177);
+ h = a(114);
+ p = a(1020);
+ m = a(251);
+ f = a(1019);
+ n = a(460);
+ q = a(459);
+ A = a(1018);
+ K = a(250);
+ C = a(9);
+ z = a(454);
+ H = a(1013);
+ G = a(453);
+ T = a(1012);
+ E = a(248);
+ aa = a(1011);
+ Z = a(452);
+ B = a(31);
+ b.Pn = new d.Kc(function (a) {
+ a(h.OA).to(p.Tza).Z();
+ a(c.Vw).to(l.Tsa).Z();
+ a(m.a7).to(f.jva).Z();
+ a(q.o5).to(A.Vra).Z();
+ a(m.Q8).ji({
+ isTypeSupported: C.TE && C.TE.isTypeSupported
+ });
+ a(K.jT).ji("undefined" !== typeof cast ? cast : null);
+ a(n.k6).Jw(function (a) {
+ return {
+ Cqb: function () {
+ return a.hb.get(B.$E);
+ }
+ };
+ });
+ a(r.EK).Jw(function (a) {
+ return a.hb.get(g.fd);
+ });
+ a(z.K7).to(H.pwa).Z();
+ a(G.J7).to(T.qwa).Z();
+ a(E.j6).to(aa.Qta).Z();
+ a(Z.m9).ji(t);
+ });
+ }, function (d, b, a) {
+ var c,
+ g;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.sAa = void 0;
+ c = a(0);
+ g = a(1);
+ d = (function () {
+ function a(a) {
+ this.Vlb = void 0 === a ? 10 : a;
+ }
+ return a = c.__decorate([g.N()], a);
+ })();
+ b.sAa = d;
+ }, function (d, b, a) {
+ var c,
+ g,
+ l;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.bsa = void 0;
+ c = a(0);
+ g = a(1);
+ l = a(252);
+ d = (function () {
+ var b;
+ function a(a) {
+ this.mMb = a;
+ this.c4 = {};
+ }
+ a.prototype.Upb = function () {
+ var a,
+ b,
+ c;
+ a = [];
+ for (b in this.c4) {
+ c = this.c4[b];
+ a.push({
+ ky: Number(b),
+ bE: c.Cm().bE,
+ Tea: c.Cm().Tea
+ });
+ }
+ return a;
+ };
+ a.prototype.eX = function (a) {
+ var b,
+ c;
+ b = a.ky;
+ c = this.c4[b];
+ c || (c = this.mMb(), this.c4[b] = c);
+ c.eX(a);
+ };
+ b = a;
+ return b = c.__decorate([g.N(), c.__param(0, g.l(l.eV))], b);
+ })();
+ b.bsa = d;
+ }, function (d, b, a) {
+ var c,
+ g,
+ l,
+ r,
+ h;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.tAa = void 0;
+ c = a(0);
+ g = a(1);
+ l = a(50);
+ r = a(3);
+ h = a(462);
+ d = (function () {
+ var b;
+ function a(a) {
+ this.config = a;
+ this.Loa = l.Cc;
+ this.DJ = [];
+ }
+ a.prototype.Cm = function () {
+ var b;
+ for (var a; 0 < this.DJ.length; ) {
+ a = this.DJ.shift();
+ this.mEa(a);
+ }
+ a = void 0 === this.kO || void 0 === this.bC ? r.Cc : this.bC.Ib(this.kO);
+ b = a.zOa() ? 0 : this.Loa.ca(l.hA) / a.ca(r.ia);
+ return {
+ bE: Math.floor(b),
+ Tea: a.ca(r.ia)
+ };
+ };
+ a.prototype.eX = function (a) {
+ this.Loa = this.Loa.add(a.size);
+ this.DJ.push(a.Ulb);
+ for (this.DJ.sort(function (a, b) {
+ return a.start.Pj(b.start);
+ }); this.DJ.length > this.config.Vlb; ) {
+ a = this.DJ.shift();
+ this.mEa(a);
+ }
+ };
+ a.prototype.mEa = function (a) {
+ void 0 === this.kO && (this.kO = a.start);
+ void 0 !== this.bC && 0 > this.bC.Pj(a.start) && (this.kO = this.kO.add(a.start.Ib(this.bC)));
+ if (void 0 === this.bC || 0 > this.bC.Pj(a.end))
+ this.bC = a.end;
+ };
+ b = a;
+ return b = c.__decorate([g.N(), c.__param(0, g.l(h.W9))], b);
+ })();
+ b.tAa = d;
+ }, function (d, b, a) {
+ var c,
+ g,
+ l,
+ r,
+ h,
+ p;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Qz = void 0;
+ d = a(1);
+ c = a(1025);
+ g = a(1024);
+ l = a(1023);
+ r = a(461);
+ h = a(462);
+ p = a(252);
+ b.Qz = new d.Kc(function (a) {
+ a(p.X9).to(c.tAa);
+ a(r.r5).to(g.bsa).Z();
+ a(h.W9).ji(new l.sAa());
+ a(p.eV).zf(function (a) {
+ return function () {
+ return a.hb.get(p.X9);
+ };
+ });
+ });
+ }, function (d, b, a) {
+ var g,
+ l,
+ r,
+ h,
+ p,
+ m;
+ function c(a, b, c, d, h, g, k, m, p, r, n, q, t) {
+ var f;
+ f = this;
+ this.ad = a;
+ this.La = b;
+ this.Db = d;
+ this.Zq = g;
+ this.FN = k;
+ this.tKa = m;
+ this.config = r;
+ this.Mi = q;
+ this.aa = t;
+ this.j = n.create(t.G, t.ek, p, t.gb, t.id);
+ this.j.background = !0;
+ this.j.xa = t.xa;
+ this.log = c.xb("VideoPlayer", this.j);
+ this.ySa = [];
+ this.ended = !1;
+ this.JS();
+ this.j.state.addListener(function (a) {
+ a.newValue === l.ob.od && f.fe(l.Cb.Yia, {
+ movieId: t.G
+ });
+ });
+ this.j.Ta.$j && (this.yG = h.bjb(this, this.j), this.j.addEventListener(l.V.k3, function (a) {
+ f.fe(l.Cb.WHb, {
+ segmentId: a.segmentId
+ });
+ }));
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.iva = void 0;
+ g = a(2);
+ l = a(13);
+ r = a(3);
+ h = a(9);
+ p = a(76);
+ m = a(22);
+ c.prototype.isReady = function () {
+ return this.j.state.value === l.ob.od;
+ };
+ c.prototype.nrb = function () {
+ return this.j.G;
+ };
+ c.prototype.p_ = function () {
+ return this.j.ga;
+ };
+ c.prototype.Krb = function () {
+ return this.j.ETa;
+ };
+ c.prototype.Zn = function () {
+ return this.j.Rf;
+ };
+ c.prototype.Ks = function () {
+ return this.j;
+ };
+ c.prototype.Sy = function () {
+ return this.j.br.value;
+ };
+ c.prototype.Hvb = function () {
+ return this.j.paused.value;
+ };
+ c.prototype.rvb = function () {
+ return this.ended;
+ };
+ c.prototype.Eh = function () {
+ var a;
+ a = this.j.Qca.value;
+ return a ? {
+ networkStalled: !!a.M3,
+ stalled: !!a.M3,
+ progress: a.ei,
+ progressRollback: !!a.BEb
+ }
+ : null;
+ };
+ c.prototype.getError = function () {
+ var a;
+ a = this.j.lj;
+ return a ? a.zpa() : null;
+ };
+ c.prototype.Lpb = function () {
+ var a;
+ a = (this.QZ() || 0) + this.j.HKa();
+ return Math.min(a, this.RKa());
+ };
+ c.prototype.QZ = function () {
+ return this.j.uC();
+ };
+ c.prototype.RKa = function () {
+ return this.j.zs.ca(r.ia);
+ };
+ c.prototype.Vsb = function () {
+ return this.j.eK ? {
+ width: this.j.eK.width,
+ height: this.j.eK.height
+ }
+ : null;
+ };
+ c.prototype.Fga = function () {
+ var h;
+ if (this.j.dn) {
+ for (var a, b = 0; b < this.j.dn.length; b++) {
+ for (var c = this.j.dn[b], d = 0; d < c.pc.length; d++) {
+ h = c.pc[d];
+ this.La.fg(h.cea) && this.La.fg(h.jY) && this.La.fg(h.iY) && this.La.fg(h.hY) && 0 < h.jY && (h = h.hY / h.iY, a = this.La.fg(a) ? Math.min(a, h) : h);
+ }
+ }
+ return a;
+ }
+ };
+ c.prototype.aqb = function () {
+ return this.j.Fga();
+ };
+ c.prototype.ipb = function (a) {
+ var b,
+ c;
+ return (null === (b = this.j.xa) || void 0 === b ? 0 : b.Ki.RO("generateScreenshots")) ? this.tKa.Xn(this.log, this.j.xa.Ki, a) : (b = null === (c = this.j.Ta) || void 0 === c ? void 0 : c.Uk) ? this.tKa.Ge(this.log, Object.assign({
+ packageId: b
+ }, a)) : Promise.reject("Unknown packageId");
+ };
+ c.prototype.kqb = function () {
+ return this.lqb(this.j.Hea);
+ };
+ c.prototype.upb = function () {
+ var a;
+ a = this;
+ return this.j.In ? this.j.In.map(function (b) {
+ return a.vC(b);
+ }).filter(function (a) {
+ return null !== a;
+ }) : [];
+ };
+ c.prototype.nMa = function (a) {
+ var b,
+ c;
+ b = this;
+ c = a && this.j.In.find(function (c) {
+ return b.vC(c) === a;
+ }) || this.j.rd.value;
+ return null === c ? [] : c.fl.map(function (a) {
+ return b.vC(a);
+ }).filter(function (a) {
+ return null !== a;
+ });
+ };
+ c.prototype.Dvb = function () {
+ return this.j.muted.value;
+ };
+ c.prototype.Ysb = function () {
+ return this.j.volume.value;
+ };
+ c.prototype.tpb = function () {
+ return this.vC(this.j.rd.value);
+ };
+ c.prototype.mMa = function () {
+ return this.vC(this.j.Bc.value);
+ };
+ c.prototype.ivb = function () {
+ return !!this.j.background;
+ };
+ c.prototype.UIb = function (a) {
+ this.j.muted.set(!!a);
+ };
+ c.prototype.qJb = function (a) {
+ this.j.volume.set(this.zRa(a, 1));
+ };
+ c.prototype.ZIb = function (a) {
+ this.j.playbackRate.set(this.zRa(a, 2));
+ };
+ c.prototype.Am = function () {
+ return this.j.playbackRate.value;
+ };
+ c.prototype.CIb = function (a) {
+ var b,
+ c;
+ b = this;
+ c = this.j.In.find(function (c) {
+ return b.vC(c) === a;
+ });
+ c ? this.j.rd.set(c) : this.log.error("Invalid setAudioTrack call");
+ };
+ c.prototype.YVa = function (a) {
+ var d;
+ if (null !== this.j.rd.value) {
+ for (var b = this.j.rd.value.fl, c = 0; c < b.length; c++) {
+ d = b[c];
+ if (!a && null === d) {
+ this.j.Bc.set(null);
+ return;
+ }
+ if (this.vC(d) === a) {
+ this.log.info("Setting Timed Text, profile: " + d.profile);
+ this.j.Bc.set(d);
+ return;
+ }
+ }
+ this.log.error("Invalid setTimedTextTrack call");
+ }
+ };
+ c.prototype.HVa = function (a) {
+ this.j.background = a;
+ };
+ c.prototype.MR = function () {
+ this.j.MR();
+ };
+ c.prototype.addEventListener = function (a, b, c) {
+ this.Db.addListener(a, b, c);
+ };
+ c.prototype.removeEventListener = function (a, b) {
+ this.Db.removeListener(a, b);
+ };
+ c.prototype.ww = function () {};
+ c.prototype.load = function () {
+ var a;
+ a = this;
+ this.loaded || (this.loaded = !0, this.j.load(function (b, c) {
+ try {
+ a.fe(l.Cb.xxb, void 0, !0);
+ b.xa && (b.xa.Wf.wZa && a.fe(l.Cb.KOb, b.xa.Wf.wZa, !0), b.xa.Wf.qq && a.fe(l.Cb.VHb, {
+ segmentMap: b.xa.Wf.qq
+ }, !0));
+ c({
+ U: !0
+ });
+ } catch (A) {
+ c({
+ ja: g.I.Df,
+ ab: a.ad.Fd(A)
+ });
+ }
+ }));
+ };
+ c.prototype.close = function (a) {
+ var b;
+ b = this;
+ this.MGa || (this.MGa = new Promise(function (c) {
+ a ? b.j.NB(a, c) : b.j.close(c);
+ }));
+ return this.MGa;
+ };
+ c.prototype.play = function () {
+ this.j.Bk ? this.j.fireEvent(l.V.aVa) : (this.load(), this.j.paused.value && (this.j.paused.set(!1), this.j.fireEvent(l.V.$Ya)));
+ };
+ c.prototype.pause = function () {
+ this.load();
+ this.j.paused.value || (this.j.paused.set(!0), this.j.fireEvent(l.V.aOb));
+ };
+ c.prototype.seek = function (a, b, c, d) {
+ this.j.pj ? this.j.pj.seek(a, b, c, d) : this.j.GB = a;
+ };
+ c.prototype.fDb = function (a) {
+ return this.yG ? (this.log.trace("Playing a segment", a), this.yG.play(a)) : Promise.resolve();
+ };
+ c.prototype.TEb = function (a) {
+ return this.yG ? (this.log.trace("Queueing a segment", a), this.yG.Zk(a)) : Promise.resolve();
+ };
+ c.prototype.Np = function (a, b) {
+ return this.yG ? (this.log.trace("Updating next segment weights", a, b), this.yG.Np(a, b)) : Promise.resolve();
+ };
+ c.prototype.nS = function () {
+ this.j.nS();
+ };
+ c.prototype.k_ = function () {
+ var a;
+ a = this.j.ro.k_();
+ return {
+ bounds: a.mN,
+ margins: a.up,
+ size: a.size,
+ visibility: a.visibility
+ };
+ };
+ c.prototype.DR = function (a) {
+ var b,
+ c,
+ d;
+ b = a.bounds;
+ c = a.margins;
+ d = a.size;
+ a = a.visibility;
+ this.j.gS && (b && this.j.gS.uoa(b), c && this.j.gS.voa(c), "boolean" === typeof a && this.j.gS.woa(a));
+ this.j.ro && d && this.j.ro.jJb(d);
+ };
+ c.prototype.ZVa = function (a) {
+ this.j.gl = a;
+ };
+ c.prototype.Isb = function (a) {
+ return this.j.Kw && this.j.Kw.Jqb(a) || null;
+ };
+ c.prototype.npb = function () {
+ return this.ad.YC({
+ playerver: this.config.version,
+ jssid: this.config.kwb,
+ groupName: this.config.Kqb(),
+ xid: this.j.ga,
+ pbi: this.j.index
+ }, this.config.bDb, {
+ prefix: "pi_"
+ });
+ };
+ c.prototype.Gub = function (a) {
+ this.j.sd(g.J.i2a, g.I.nl, a);
+ };
+ c.prototype.lxb = function (a, b, c, d) {
+ if (!this.La.QEa(a))
+ throw Error("invalid url");
+ this.ySa.push({
+ url: a,
+ name: b,
+ ceb: c,
+ options: d
+ });
+ this.uTa();
+ };
+ c.prototype.aMa = function () {
+ var a,
+ b,
+ c,
+ d,
+ h,
+ g,
+ k,
+ l;
+ a = {};
+ b = this.j.EWa;
+ try {
+ if ((this.j.lj && (a.errorCode = this.j.lj.DY, a.errorType = b ? "endplay" : "startplay"), a.playdelay = m.Wj(this.j.Xca()), a.xid = this.j.ga, this.j.xa && this.La.En(this.j.xa.Wf.Uk) && (a.packageId = Number(this.j.xa.Wf.Uk)), a.auth = this.j.wpb(), b)) {
+ a.totaltime = this.j.Om ? this.yv(this.j.Om.aP()) : 0;
+ a.abrdel = this.j.Om ? this.j.Om.BKa() : 0;
+ c = this.j.pj;
+ d = c ? c.qC() : null;
+ this.La.fg(d) && (a.totdfr = d);
+ d = c ? c.MO() : null;
+ this.La.fg(d) && (a.totcfr = d);
+ h = c ? c.Uqb() : null;
+ h && (a.rbfrs_decoder = h.pY, a.rbfrs_network = h.y1);
+ a.rbfrs_delay = this.j.Om ? this.j.Om.Nia : 0;
+ a.init_vbr = this.j.Z_;
+ g = this.XO();
+ this.La.ZB(g) && (a.pdltime = g);
+ k = this.j.wf.value;
+ l = k && k.stream;
+ l && (a.vbr = l.R, a.vdlid = l.vd);
+ a.bufferedTime = this.j.HKa();
+ }
+ } catch (G) {
+ this.log.error("error capturing session summary", G);
+ }
+ return a;
+ };
+ c.prototype.uO = function (a) {
+ return this.La.fg(this.j.bb.value) ? (a = Object.assign(Object.assign({}, this.Zq.create(this.j)), {
+ action: a
+ }), this.FN(p.$l.uO).Xn(this.log, this.j.xa.Ki, a).then(function () {
+ return {
+ success: !0
+ };
+ })["catch"](function (a) {
+ return {
+ success: !1,
+ errorCode: a.code,
+ errorSubCode: a.Nb,
+ errorExternalCode: a.xd,
+ errorData: a.data,
+ errorDetails: a.py
+ };
+ })) : Promise.resolve({
+ success: !1
+ });
+ };
+ c.prototype.lqb = function (a) {
+ return {
+ register: a.register.bind(a),
+ notifyUpdated: a.tRa.bind(a),
+ getModel: a.lrb.bind(a),
+ getGroups: a.ZZ.bind(a),
+ addEventListener: a.addEventListener.bind(a),
+ removeEventListener: a.removeEventListener.bind(a),
+ getTime: a.getTime.bind(a)
+ };
+ };
+ c.prototype.vC = function (a) {
+ var b;
+ if (null !== a) {
+ b = a.IEb = a.IEb || ({
+ trackId: a.cb,
+ bcp47: a.Al,
+ displayName: a.displayName,
+ trackType: a.cn,
+ channels: a.Xo
+ });
+ a.co && (b.isImageBased = !0);
+ this.Jvb(a) && (b.isNative = a.isNative);
+ this.Kvb(a) && (b.isNoneTrack = a.o0(), b.isForcedNarrative = a.j0());
+ return b;
+ }
+ return null;
+ };
+ c.prototype.Jvb = function (a) {
+ return "undefined" !== typeof a.isNative;
+ };
+ c.prototype.Kvb = function (a) {
+ return "undefined" !== typeof a.o0 && "undefined" !== typeof a.j0;
+ };
+ c.prototype.zRa = function (a, b) {
+ return 0 <= a ? a <= b ? a : b : 0;
+ };
+ c.prototype.yv = function (a) {
+ return this.La.fg(a) ? (a / 1E3).toFixed(0) : "";
+ };
+ c.prototype.fe = function (a, b, c) {
+ b = b || ({});
+ b.target = this;
+ this.Db.$b(a, b, !c);
+ };
+ c.prototype.JS = function () {
+ var a;
+ a = this;
+ this.j.addEventListener(l.V.ppa, function () {
+ a.fe(l.Cb.ap);
+ });
+ this.j.addEventListener(l.V.$0, function () {
+ a.fe(l.Cb.XFa);
+ });
+ this.j.addEventListener(l.V.Rm, function () {
+ a.fe(l.Cb.XFa);
+ });
+ this.j.addEventListener(l.V.RH, function (b) {
+ a.fe(l.Cb.RH, {
+ errorCode: b
+ });
+ });
+ this.j.addEventListener(l.V.wca, function (b) {
+ a.fe(l.Cb.deb, b.j);
+ });
+ this.j.addEventListener(l.V.Bk, function (b) {
+ a.fe(l.Cb.eeb, b);
+ });
+ this.j.br.addListener(function () {
+ a.fe(l.Cb.zDb);
+ });
+ this.j.paused.addListener(function () {
+ a.fe(l.Cb.vCb);
+ });
+ this.j.muted.addListener(function () {
+ a.fe(l.Cb.Wzb);
+ });
+ this.j.volume.addListener(function () {
+ a.fe(l.Cb.COb);
+ });
+ this.j.Sb.addListener(function () {
+ a.CYa();
+ });
+ this.j.state.addListener(function () {
+ a.CYa();
+ });
+ this.j.Qca.addListener(function (b) {
+ a.uxb || a.j.state.value != l.ob.od || b.newValue || (a.uxb = !0, a.fe(l.Cb.loaded), setTimeout(function () {
+ a.log.debug.bind(a.log, "summary ", a.aMa());
+ }));
+ a.fe(l.Cb.Rca);
+ });
+ this.j.rd.addListener(function (b) {
+ a.fe(l.Cb.dN);
+ b.oldValue && b.newValue && b.oldValue.fl == b.newValue.fl || a.fe(l.Cb.dE);
+ setTimeout(function () {
+ var b;
+ if (null !== a.j.rd.value && null !== a.j.Bc.value) {
+ b = a.j.rd.value.fl;
+ 0 <= b.indexOf(a.j.Bc.value) || (a.log.info("Changing timed text track to match audio track"), a.j.Bc.set(b[0]));
+ }
+ }, 0);
+ });
+ this.j.Bc.addListener(function (b) {
+ b.oldValue && b.newValue && b.oldValue.cb == b.newValue.cb || a.fe(l.Cb.UJ);
+ });
+ this.j.addEventListener(l.V.dE, function () {
+ a.fe(l.Cb.dE);
+ });
+ this.j.addEventListener(l.V.lS, function () {
+ a.fe(l.Cb.lS);
+ });
+ this.j.state.addListener(function (b) {
+ switch (b.newValue) {
+ case l.ob.od:
+ a.fe(l.Cb.mmb);
+ a.fe(l.Cb.vOb);
+ a.fe(l.Cb.sFa);
+ a.fe(l.Cb.dE);
+ a.fe(l.Cb.wxb);
+ a.uTa();
+ a.POb();
+ break;
+ case l.ob.CLOSING:
+ a.j.lj && a.fe(l.Cb.error, a.j.lj.zpa());
+ break;
+ case l.ob.CLOSED:
+ (a.fe(l.Cb.closed), a.Db.Fg());
+ }
+ });
+ };
+ c.prototype.POb = function () {
+ var a;
+ a = this;
+ this.j.ro.addEventListener("showsubtitle", function (b) {
+ a.fe(l.Cb.RJb, b, !0);
+ });
+ this.j.ro.addEventListener("removesubtitle", function (b) {
+ a.fe(l.Cb.mGb, b, !0);
+ });
+ };
+ c.prototype.uTa = function () {
+ if (this.j.state.value == l.ob.od) {
+ for (var a, b, c; b = this.ySa.shift(); ) {
+ a = this.j.ro.Kba(b.url, b.name, b.options);
+ b.ceb && (c = a);
+ }
+ c && this.j.Bc.set(c);
+ }
+ };
+ c.prototype.CYa = function () {
+ var a;
+ a = this.j.state.value == l.ob.od && this.j.Sb.value == l.lb.Fr;
+ this.ended !== a && (this.ended = a, this.j.Po("Ended changed: " + a), (a || this.j.state.value === l.ob.CLOSING) && this.fe(l.Cb.anb));
+ };
+ c.prototype.XO = function () {
+ var a,
+ b;
+ try {
+ a = /playercore.*js/;
+ b = h.Mr.getEntriesByType("resource").filter(function (b) {
+ return null !== a.exec(b.name);
+ });
+ if (b && 0 < b.length)
+ return JSON.stringify(Math.round(b[0].duration));
+ } catch (w) {}
+ };
+ b.iva = c;
+ }, function (d, b, a) {
+ var c,
+ g,
+ l,
+ r,
+ h,
+ p,
+ m,
+ f,
+ n,
+ q,
+ t,
+ K,
+ C;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.WAa = void 0;
+ c = a(0);
+ g = a(1);
+ l = a(91);
+ r = a(25);
+ h = a(21);
+ p = a(7);
+ m = a(85);
+ f = a(254);
+ n = a(464);
+ q = a(1027);
+ t = a(253);
+ K = a(76);
+ C = a(463);
+ d = (function () {
+ var b;
+ function a(a) {
+ this.jc = a;
+ }
+ a.prototype.Kjb = function (a, b, c, d) {
+ return new q.iva(this.jc.get(r.hf), this.jc.get(h.Zd), this.jc.get(p.Jb), this.jc.get(m.i6), this.jc.get(f.YU), this.jc.get(t.EU), this.jc.get(K.zT), this.jc.get(C.B8), this.jc.get(n.M5), a, b, c, d);
+ };
+ b = a;
+ return b = c.__decorate([g.N(), c.__param(0, g.l(l.X6))], b);
+ })();
+ b.WAa = d;
+ }, function (d, b, a) {
+ var c,
+ g;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.iZa = void 0;
+ d = a(1);
+ c = a(466);
+ g = a(1028);
+ b.iZa = new d.Kc(function (a) {
+ a(c.p$).to(g.WAa).Z();
+ });
+ }, function (d, b, a) {
+ var c,
+ g,
+ l;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.BAa = void 0;
+ c = a(0);
+ g = a(1);
+ l = a(14);
+ d = (function () {
+ var b;
+ function a(a) {
+ this.config = a;
+ }
+ a.prototype.wEb = function (a, b, c) {
+ var d,
+ f;
+ if (this.config().kIb) {
+ d = a.metrics;
+ if (void 0 !== d) {
+ f = a.playlistSegment || void 0;
+ b.qp.transition({
+ isBranching: void 0 === f || void 0,
+ isPlaygraph: f,
+ mid: b.G,
+ xid: b.ga,
+ srcxid: c.ga,
+ srcmid: c.G,
+ segment: a.segmentId,
+ srcsegment: d.srcsegment,
+ srcsegmentduration: d.srcsegmentduration,
+ srcoffset: d.srcoffset,
+ seamlessRequested: d.seamlessRequested,
+ transitionType: d.transitionType,
+ delayToTransition: d.delayToTransition,
+ durationOfTransition: d.durationOfTransition,
+ atRequest: d.atRequest,
+ atTransition: d.atTransition,
+ discard: d.discard
+ });
+ }
+ }
+ };
+ b = a;
+ return b = c.__decorate([g.N(), c.__param(0, g.l(l.fd))], b);
+ })();
+ b.BAa = d;
+ }, function (d, b, a) {
+ var g,
+ l,
+ r;
+ function c(a, b, c, d, g) {
+ this.debug = a;
+ this.version = b;
+ this.kwb = c;
+ this.bDb = d;
+ this.config = g;
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Fza = void 0;
+ g = a(0);
+ l = a(1);
+ r = a(3);
+ c.prototype.Kqb = function () {
+ return this.config().Jy;
+ };
+ c.prototype.zga = function () {
+ return this.config().OFa;
+ };
+ c.prototype.lha = function () {
+ return r.Gb(this.config().BDb);
+ };
+ c.prototype.BLa = function () {
+ return this.config().txb;
+ };
+ c.prototype.ELa = function () {
+ return this.config().kyb;
+ };
+ d = (function () {
+ var b;
+ function a() {}
+ a.prototype.Ay = function (a, b, d, h, g) {
+ return new c(a, b, d, h, g);
+ };
+ b = a;
+ return b = g.__decorate([l.N()], b);
+ })();
+ b.Fza = d;
+ }, function (d, b, a) {
+ var r,
+ h,
+ p,
+ m;
+ function c(a, b, c, d, h, g) {
+ var f;
+ f = this;
+ this.Y = b;
+ this.j = c;
+ this.hz = d;
+ this.ya = h;
+ this.rG = g;
+ this.DG = function () {
+ f.jz && (f.jz.cancel(), f.jz = void 0);
+ };
+ this.log = a.xb("SegmentManager", this.j);
+ this.Ya = new Map();
+ this.j.Ta.$j && (this.j.addEventListener(p.V.k3, function (a) {
+ return f.Ela(a);
+ }), this.j.addEventListener(p.V.closed, this.DG));
+ }
+ function g(a, b) {
+ this.id = a;
+ this.mda = b;
+ }
+ function l(a, b, c, d) {
+ return h.Dc.call(this, a, c, void 0, void 0, void 0, b, void 0, d) || this;
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Dra = void 0;
+ r = a(2);
+ h = a(48);
+ p = a(13);
+ m = a(3);
+ N(l, h.Dc);
+ l.prototype.toString = function () {
+ return this.code + "-" + this.Nb + " : " + this.message + "\n" + JSON.stringify(this.data);
+ };
+ g.prototype.toJSON = function () {
+ return {
+ id: this.id,
+ contentStartPts: this.yf,
+ contentEndPts: this.jg
+ };
+ };
+ wa.Object.defineProperties(g.prototype, {
+ yf: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.mda.startTimeMs;
+ }
+ },
+ jg: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.mda.endTimeMs;
+ }
+ },
+ kQ: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return Object.keys(this.mda.next);
+ }
+ }
+ });
+ c.prototype.Ela = function (a) {
+ var b,
+ c;
+ b = this;
+ if (0 === this.Ya.size) {
+ c = this.j.PZ();
+ Object.keys(c).forEach(function (a) {
+ b.Ya.set(a, new g(a, c[a]));
+ });
+ }
+ this.ha = this.Ya.get(a.segmentId);
+ };
+ c.prototype.play = function (a) {
+ this.bJ && (this.bJ = void 0);
+ this.DG();
+ this.log.trace("Playing segment", a);
+ return this.gOa(a) ? this.eDb(a) : this.h2(a);
+ };
+ c.prototype.Zk = function (a) {
+ this.log.trace("Queueing segment", a);
+ return this.gOa(a) ? this.SEb(a) : this.UEb(a);
+ };
+ c.prototype.Np = function (a, b) {
+ var c,
+ d;
+ c = this;
+ d = this.j.Hb;
+ if (!d)
+ return Promise.reject(this.getError(r.J.sra, "ASE session manager is not yet initialized", r.I.a5, {
+ segmentId: a,
+ updates: b
+ }));
+ this.log.trace("Updating next segment weights", a, b);
+ return new Promise(function (f, h) {
+ try {
+ d.o4(a, b);
+ c.j.fireEvent(p.V.Np, {
+ Ha: a,
+ ANb: b
+ });
+ f();
+ } catch (M) {
+ h(c.getError(r.J.sra, "updateNextSegmentWeights threw an exception", r.I.H_a, {
+ segmentId: a,
+ updates: b,
+ error: M
+ }));
+ }
+ });
+ };
+ c.prototype.gOa = function (a) {
+ return this.ha ? void 0 !== this.j.PZ()[this.ha.id].next[a] : !1;
+ };
+ c.prototype.SLa = function () {
+ if (this.j.Hb)
+ return this.j.Hb.YO().ie;
+ };
+ c.prototype.Orb = function () {
+ if (this.j.Hb)
+ return this.j.Hb.YO().id;
+ };
+ c.prototype.Wpb = function (a) {
+ if (this.j.Hb)
+ return (a = this.j.Hb.OZ(a)) && a.pe;
+ };
+ c.prototype.eDb = function (a) {
+ var b,
+ c,
+ d;
+ b = this;
+ c = this.j.Hb;
+ if (!c)
+ return Promise.reject(this.getError(r.J.qK, "ASE session manager is not yet initialized", r.I.a5, {
+ id: a
+ }));
+ if (this.ha && 1 === this.ha.kQ.length)
+ return this.h2(a);
+ if (!this.j.pj)
+ return (this.log.warn("MediaPresenter is not initialized", a), Promise.reject(this.getError(r.J.qK, "MediaPresenter is not initialized", r.I.E_a, {
+ id: a
+ })));
+ d = this.Wpb(a);
+ return void 0 === d ? (this.log.error("playNextSegment: branchOffset missing", {
+ segment: a
+ }), this.h2(a)) : new Promise(function (f, h) {
+ var q,
+ u,
+ t,
+ w,
+ A,
+ C;
+ function g() {
+ !t && u && q && (C.cancel(), t = !0, b.log.trace("Telling ASE to choose the next segment", {
+ id: a,
+ stopped: u,
+ repositioned: q,
+ completed: t
+ }), c.ev(a, !1, !0) ? (f(), t = !0) : (t = !0, b.log.error("playNextSegment: ASE chooseNextSegment failed. Falling back to full seek.", {
+ segment: a
+ }), b.h2(a).then(f)["catch"](h)));
+ }
+ function k() {
+ q = !0;
+ b.log.trace("Player is repositioned", {
+ id: a,
+ stopped: u,
+ repositioned: q,
+ completed: t
+ });
+ b.j.removeEventListener(p.V.Rm, k);
+ g();
+ }
+ function l() {
+ b.j.removeEventListener(p.V.CD, l);
+ c.stop();
+ }
+ function n() {
+ u = !0;
+ b.log.trace("ASE is stopped", {
+ id: a,
+ stopped: u,
+ repositioned: q,
+ completed: t
+ });
+ c.removeEventListener("stop", n);
+ g();
+ }
+ q = !1;
+ u = !1;
+ t = !1;
+ w = b.Ya.get(a);
+ A = w.yf + (d || 0);
+ b.log.trace("Seeking to next segment", JSON.stringify({
+ segmentId: a,
+ seekTo: A,
+ currentSegment: b.ha,
+ nextSegment: w
+ }, null, " "));
+ b.j.fireEvent(p.V.D1, {
+ ig: b.ha && b.ha.id,
+ jQ: a
+ });
+ c.addEventListener("stop", n);
+ b.j.addEventListener(p.V.CD, l);
+ b.j.addEventListener(p.V.Rm, k);
+ C = b.ya.Mh(m.qh(10), function () {
+ t = !0;
+ C.cancel();
+ h(b.getError(r.J.qK, "Timed out waiting for the player to be repositioned and ASE to be stopped", r.I.D_a, {
+ id: a,
+ stopped: u,
+ repositioned: q,
+ completed: t
+ }));
+ });
+ b.Y.seek(A, p.le.KA);
+ });
+ };
+ c.prototype.h2 = function (a) {
+ var b;
+ b = this.Ya.get(a);
+ return b ? this.oR(b, r.J.qK) : Promise.reject(this.getError(r.J.qK, "Unable to find the separated segment", r.I.rra, {
+ id: a
+ }));
+ };
+ c.prototype.SEb = function (a) {
+ var b;
+ b = this.j.Hb;
+ if (!b)
+ return Promise.reject(this.getError(r.J.qE, "ASE session manager is not yet initialized", r.I.a5, {
+ id: a
+ }));
+ if (b.ev(a, !0, !0))
+ return Promise.resolve();
+ this.log.error("queueNextSegment: ASE chooseNextSegment failed", {
+ segment: a
+ });
+ return Promise.reject(this.getError(r.J.qE, "ASE chooseNextSegment failed", r.I.B_a, {
+ id: a
+ }));
+ };
+ c.prototype.UEb = function (a) {
+ var b,
+ c;
+ b = this;
+ this.log.error("calls to queueSeparatedSegment are deprecated", {
+ segment: a,
+ mid: this.j.G,
+ srcsegment: this.Orb()
+ });
+ if (this.bJ)
+ return Promise.reject(this.getError(r.J.qE, "Unable to queue a non-next segment because there is currently already a segment queued", r.I.G_a, {
+ currentSegment: this.ha ? this.ha.id : void 0,
+ queuedSegment: this.bJ.id,
+ failedSegment: a
+ }));
+ if (!this.ha)
+ return Promise.reject(this.getError(r.J.qE, "Unable to queue a non-next segment because there is no currently playing segment", r.I.C_a, {
+ nextSegmentid: a
+ }));
+ c = this.Ya.get(a);
+ if (!c)
+ return Promise.reject(this.getError(r.J.qE, "Unable to find the separated segment", r.I.rra, {
+ nextSegmentid: a,
+ currentSegmentId: this.ha.id
+ }));
+ this.bJ = {
+ id: a,
+ qt: new Promise(function (d, f) {
+ var h;
+ b.jz = b.hz.Wda({
+ lha: function () {
+ return m.Gb(100);
+ }
+ }, function () {
+ return b.Y.j.bb.value || 0;
+ });
+ h = b.SLa() - 500;
+ b.log.trace("Adding moment for queued segment", {
+ segment: a,
+ pts: h
+ });
+ b.jz.observe(h, function () {
+ b.log.trace("Moment has arrived", {
+ segment: a,
+ currentSegment: b.ha.id,
+ playerEndPts: b.SLa(),
+ pts: h
+ });
+ b.bJ = void 0;
+ b.DG();
+ b.oR(c, r.J.qE).then(d)["catch"](f);
+ });
+ })
+ };
+ this.bJ.qt["catch"](function (a) {
+ b.j.sd(a.code, a);
+ });
+ return Promise.resolve();
+ };
+ c.prototype.oR = function (a, b) {
+ var c;
+ c = this;
+ return new Promise(function (d, f) {
+ try {
+ c.Y.seek(a.yf, p.le.lu);
+ d();
+ } catch (C) {
+ f(c.getError(b, "Seek threw an exception", r.I.F_a, {
+ id: a.id,
+ error: C
+ }));
+ }
+ });
+ };
+ c.prototype.getError = function (a, b, c, d) {
+ this.log.warn(b, d);
+ return new l(a, b, c, d);
+ };
+ b.Dra = c;
+ }, function (d, b, a) {
+ var h,
+ p,
+ m,
+ f;
+ function c(a, b, c, d, g, k, l, m, r) {
+ var n;
+ n = this;
+ this.va = a;
+ this.hz = c;
+ this.fma = d;
+ this.config = g;
+ this.Mi = k;
+ this.EQ = l;
+ this.md = m;
+ this.qnb = Object.keys(p.Cb).map(function (a) {
+ return {
+ event: p.Cb[a],
+ yC: function (b) {
+ return n.Db.$b(p.Cb[a], b);
+ }
+ };
+ });
+ this.Db = r.create();
+ this.yD = [];
+ this.log = b.xb("SegmentManager");
+ new h.pn();
+ this.aga = !0;
+ this.Rf = this.md.createElement("div", f.r9);
+ }
+ function g(a, b, c, d, f, g, k, m, p) {
+ var r;
+ r = this;
+ this.log = a;
+ this.config = b;
+ this.VAb = c;
+ this.fma = d;
+ this.Mi = f;
+ this.EQ = g;
+ this.mr = k;
+ this.aa = m;
+ this.Rf = p;
+ this.DG = function () {
+ r.jz && (r.jz.cancel(), r.jz = void 0);
+ };
+ this.Qha = function (a) {
+ r.log.trace("Received the transition event", {
+ movieId: a.G
+ });
+ r.iFb();
+ };
+ this.log.debug("Constructing session data", l(m));
+ this.Ija = new h.pn();
+ this.WLb = new Promise(function (a) {
+ r.iFb = a;
+ });
+ }
+ function l(a) {
+ return {
+ movieId: a.G
+ };
+ }
+ function r(a) {
+ return JSON.stringify({
+ movieId: a.G,
+ startPts: a.T,
+ logicalEnd: a.oj,
+ params: a.gb ? {
+ trackingId: a.gb.li,
+ authParams: a.gb.eN,
+ sessionParams: a.gb.oo,
+ disableTrackStickiness: a.gb.Mea,
+ uiPlayStartTime: a.gb.m4,
+ loadImmediately: a.gb.I0,
+ playbackState: a.gb.playbackState ? {
+ currentTime: a.gb.playbackState.currentTime,
+ volume: a.gb.playbackState.volume,
+ muted: a.gb.playbackState.muted,
+ playbackRate: a.gb.playbackState.playbackRate
+ }
+ : void 0,
+ pin: a.gb.ESa,
+ heartbeatCooldown: a.gb.$ha,
+ uiLabel: a.gb.we
+ }
+ : void 0
+ });
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Iza = void 0;
+ h = a(138);
+ p = a(13);
+ m = a(3);
+ f = a(10);
+ g.prototype.load = function (a) {
+ var b,
+ c;
+ b = this;
+ this.log.trace("Loading new segment", l(this.aa));
+ this.Y = this.fma.Kjb(this.config, this.EQ, this.Mi, this.aa);
+ this.Y.addEventListener(p.Cb.RH, function (a) {
+ b.log.trace("Segment is inactive", l(b.aa));
+ b.mr.close(b.Mi(a.errorCode));
+ });
+ this.Y.addEventListener(p.Cb.closed, this.DG);
+ if (a)
+ (this.log.debug("Pausing background segment", l(this.aa)), this.Y.addEventListener(p.Cb.Yia, this.Qha), this.Y.pause());
+ else {
+ this.Rf.appendChild(this.Y.Zn());
+ c = function (a) {
+ b.Qha(a);
+ b.Y.removeEventListener(p.Cb.loaded, c);
+ };
+ this.Y.addEventListener(p.Cb.loaded, c);
+ }
+ };
+ g.prototype.observe = function () {
+ var a,
+ b,
+ c;
+ a = this;
+ this.log.trace("Observing segment", r(this.aa));
+ if (this.jz)
+ this.log.trace("Segment is currently observing", l(this.aa));
+ else if (this.aa.gb && this.aa.gb.I0)
+ this.Ija.next(this);
+ else {
+ b = this.VAb.Wda(this.config, function () {
+ var b;
+ if (a.Y) {
+ b = a.Y.j.bb.value;
+ if (b)
+ return b;
+ }
+ return 0;
+ });
+ c = this.qfb(this.aa);
+ this.log.trace("Adding a moment to watch", {
+ time: c
+ });
+ b.observe(c, function () {
+ a.log.trace("Segment has reached its loading point", l(a.aa));
+ a.Ija.next(a);
+ a.DG();
+ });
+ }
+ };
+ g.prototype.close = function (a) {
+ this.log.info("Closing segment", {
+ segment: r(this.aa),
+ error: a
+ });
+ return this.Y ? (this.Y.removeEventListener(p.Cb.Yia, this.Qha), this.Y.close(a)) : Promise.resolve();
+ };
+ g.prototype.qfb = function (a) {
+ var b,
+ c;
+ b = a.oj;
+ a = a.gb ? a.gb.I0 : !1;
+ c = 0;
+ b && !a && (c = b - this.config.BLa(), c < this.config.ELa() && (a = b - this.config.ELa(), c = b - a / 2));
+ return c;
+ };
+ c.prototype.Vrb = function () {
+ return this.Re && this.Re.Y ? this.Re.Y.isReady() : !1;
+ };
+ c.prototype.Zn = function () {
+ return this.Rf;
+ };
+ c.prototype.Zh = function () {
+ if (!this.Re || !this.Re.Y)
+ throw Error("Player not ready");
+ return this.Re.Y;
+ };
+ c.prototype.nNb = function (a) {
+ var b,
+ c;
+ c = this.Qfa(a);
+ c ? this.IYa(c, a) : (this.log.Jba("xid", null === (b = this.Re.Y) || void 0 === b ? void 0 : b.p_()), this.log.error("Tried to update a non-existent segment", {
+ segment: r(a),
+ currentMovieId: this.Re.aa.G,
+ queuedMovieIds: this.yD.map(function (a) {
+ return a.aa.G;
+ })
+ }));
+ };
+ c.prototype.kq = function (a) {
+ var b;
+ this.log.info("Adding segment", r(a));
+ this.aga ? (this.log.trace("First segment, loading", l(a)), b = this.dPa(a), this.aga = !1) : (this.log.trace("Subsequent segment, caching", l(a)), (b = this.Qfa(a)) ? this.IYa(b, a) : (b = this.Nn(a), this.yD.push(b), this.Re.observe()));
+ return b ? b.WLb : null;
+ };
+ c.prototype.transition = function (a) {
+ var b;
+ if (this.gw && this.gw.Y) {
+ b = this.gw;
+ this.gw = void 0;
+ this.log.info("Transitioning segment", r(b.aa));
+ b && b.Y && b.Y.ZVa(this.va.Yb().ca(m.ia));
+ return this.$Xa(b, a);
+ }
+ return Promise.resolve();
+ };
+ c.prototype.close = function (a) {
+ var b;
+ b = this;
+ this.log.trace("Closing all segments", {
+ currSession: JSON.stringify(l(this.Re.aa)),
+ nextSession: this.gw ? JSON.stringify(l(this.gw.aa)) : void 0
+ });
+ a = [this.Re.close(a)];
+ this.gw && a.push(this.gw.close());
+ return Promise.all(a).then(function () {
+ b.gw = void 0;
+ b.yD = [];
+ b.aga = !0;
+ });
+ };
+ c.prototype.addListener = function (a, b, c) {
+ this.Db.addListener(a, b, c);
+ };
+ c.prototype.removeListener = function (a, b) {
+ this.Db.removeListener(a, b);
+ };
+ c.prototype.IYa = function (a, b) {
+ this.YBb(a.aa, b);
+ this.log.trace("Overwrote existing segment data", r(a.aa));
+ };
+ c.prototype.dPa = function (a) {
+ var b,
+ c;
+ b = this;
+ this.log.info("Loading the next episode", l(a));
+ this.Re ? (this.config.zga()[a.G] = a.T, c = this.Qfa(a)) : c = this.Nn(a);
+ if (c)
+ return (this.log.trace("Found the next session", l(a)), c.Ija.subscribe(function (a) {
+ b.KLb(a);
+ }), this.Re ? (this.log.trace("Subsequent playback, caching player and pausing", l(a)), this.gw = c, c.load(!0)) : (this.log.trace("First playback transitioning immediately", l(a)), c.load(!1), this.$Xa(c)), c);
+ this.log.warn("Unable to find the session, make sure to add it before loading", l(a));
+ };
+ c.prototype.$Xa = function (a, b) {
+ var c,
+ d;
+ b = void 0 === b ? {}
+ : b;
+ this.log.trace("Playing episode", l(a.aa));
+ c = this.Re;
+ this.Re = a;
+ if (this.Re.Y && (this.Re.Y.HVa(!1), this.JS(this.Re.Y, c ? c.Y : void 0), c && c.Y)) {
+ d = c.Y.Zn();
+ a = this.Re.Y.Zn();
+ d.style.display = "none";
+ c = c.close();
+ this.Rf.appendChild(a);
+ this.Re.Y && (a.style.display = "block", this.Re.Y.getError() ? this.Re.Y.close() : (this.Re.Y.Ks().iNb(b), this.Re.Y.MR(), this.Re.Y.play()));
+ c.then(function () {
+ d.parentElement && d.parentElement.removeChild(d);
+ });
+ return c;
+ }
+ return Promise.resolve();
+ };
+ c.prototype.KLb = function (a) {
+ var b,
+ c,
+ d,
+ f;
+ if (this.yD.length && a.Y) {
+ a = a.Y.j.bb.value;
+ b = this.yD[0];
+ c = this.Re.aa.oj;
+ d = this.Re.aa.gb ? this.Re.aa.gb.I0 : !1;
+ if (c || d) {
+ d ? f = 0 : c && (f = c - this.config.BLa());
+ null !== a && a >= f && (this.log.info("Got a time change, loading the next player", l(b.aa)), this.dPa(b.aa), this.yD.splice(0, 1));
+ }
+ }
+ };
+ c.prototype.Qfa = function (a) {
+ return this.Re.aa.G === a.G ? this.Re : this.yD.find(function (b) {
+ return b.aa.G === a.G;
+ });
+ };
+ c.prototype.YBb = function (a, b) {
+ a.T = b.T || a.T;
+ a.oj = b.oj || a.oj;
+ a.gb = b.gb || a.gb;
+ a.xa = b.xa || a.xa;
+ };
+ c.prototype.Nn = function (a) {
+ return new g(this.log, this.config, this.hz, this.fma, this.Mi, this.EQ, this, a, this.Rf);
+ };
+ c.prototype.JS = function (a, b) {
+ this.qnb.forEach(function (c) {
+ b && b.removeEventListener(c.event, c.yC);
+ a.addEventListener(c.event, c.yC);
+ });
+ this.Db.$b(p.HA.sR);
+ };
+ b.Iza = c;
+ }, function (d, b, a) {
+ var c,
+ g,
+ l,
+ r,
+ h,
+ p,
+ m,
+ f,
+ n,
+ q,
+ t,
+ z,
+ C,
+ M;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Hza = void 0;
+ c = a(0);
+ g = a(1);
+ l = a(24);
+ r = a(7);
+ h = a(255);
+ p = a(115);
+ m = a(467);
+ f = a(466);
+ n = a(1033);
+ q = a(1032);
+ t = a(84);
+ z = a(36);
+ C = a(471);
+ M = a(25);
+ d = (function () {
+ var b;
+ function a(a, b, c, d, f, h, g, k, m, l) {
+ this.va = a;
+ this.sf = b;
+ this.hz = c;
+ this.uOb = d;
+ this.EQ = f;
+ this.ya = h;
+ this.rG = g;
+ this.Mi = k;
+ this.Afa = m;
+ this.md = l;
+ }
+ a.prototype.Djb = function (a) {
+ return new n.Iza(this.va, this.sf, this.hz, this.uOb, a, this.Mi, this.EQ, this.md, this.Afa);
+ };
+ a.prototype.bjb = function (a, b) {
+ return new q.Dra(this.sf, a, b, this.hz, this.ya, this.rG);
+ };
+ b = a;
+ return b = c.__decorate([g.N(), c.__param(0, g.l(l.Me)), c.__param(1, g.l(r.Jb)), c.__param(2, g.l(h.iU)), c.__param(3, g.l(f.p$)), c.__param(4, g.l(m.a9)), c.__param(5, g.l(z.Tg)), c.__param(6, g.l(t.oK)), c.__param(7, g.l(p.GA)), c.__param(8, g.l(C.AE)), c.__param(9, g.l(M.hf))], b);
+ })();
+ b.Hza = d;
+ }, function (d, b, a) {
+ var c,
+ g,
+ l,
+ r,
+ h,
+ p;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Ya = void 0;
+ d = a(1);
+ c = a(254);
+ g = a(468);
+ l = a(1034);
+ r = a(1031);
+ h = a(465);
+ p = a(1030);
+ b.Ya = new d.Kc(function (a) {
+ a(c.YU).to(l.Hza).Z();
+ a(g.G9).to(r.Fza).Z();
+ a(h.c$).to(p.BAa).Z();
+ });
+ }, function (d, b) {
+ function a(a, b, d) {
+ this.ya = a;
+ this.config = b;
+ this.getTime = d;
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Jwa = void 0;
+ a.prototype.observe = function (a, b) {
+ var c;
+ c = this;
+ this.cancel();
+ this.gi = this.ya.Lna(this.config.lha(), function () {
+ c.getTime() >= a && (c.cancel(), b());
+ });
+ };
+ a.prototype.cancel = function () {
+ this.gi && (this.gi.cancel(), this.gi = void 0);
+ };
+ b.Jwa = a;
+ }, function (d, b, a) {
+ var c,
+ g,
+ l,
+ r;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Iwa = void 0;
+ c = a(0);
+ g = a(1);
+ l = a(1036);
+ r = a(36);
+ d = (function () {
+ var b;
+ function a(a) {
+ this.ya = a;
+ }
+ a.prototype.Wda = function (a, b) {
+ return new l.Jwa(this.ya, a, b);
+ };
+ b = a;
+ return b = c.__decorate([g.N(), c.__param(0, g.l(r.Tg))], b);
+ })();
+ b.Iwa = d;
+ }, function (d, b, a) {
+ var c,
+ g;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.CQa = void 0;
+ d = a(1);
+ c = a(255);
+ g = a(1037);
+ b.CQa = new d.Kc(function (a) {
+ a(c.iU).to(g.Iwa).Z();
+ });
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.reduce = void 0;
+ b.reduce = function (a, b, d) {
+ for (; void 0 !== a; a = a.cause) {
+ d = b(d, a);
+ }
+ return d;
+ };
+ }, function (d, b, a) {
+ var q,
+ t,
+ z,
+ C,
+ M;
+ function c(a) {
+ return n.call(this, a, function (a) {
+ return {
+ Details: a
+ };
+ }) || this;
+ }
+ function g(a) {
+ return n.call(this, a, function (a) {
+ return JSON.parse(a.toJSON());
+ }) || this;
+ }
+ function l(a, b) {
+ b = n.call(this, b, function (b) {
+ return {
+ Base64: a.encode(b)
+ };
+ }) || this;
+ b.Fc = a;
+ return b;
+ }
+ function r(a, b) {
+ b = n.call(this, b, function (a) {
+ return a();
+ }) || this;
+ b.ad = a;
+ return b;
+ }
+ function h(a, b) {
+ return m.call(this, a, b, function (a) {
+ var b;
+ b = z.reduce(a, function (a, b) {
+ var c;
+ a.name = void 0 !== a.name ? a.name + ("-" + b.name) : b.name;
+ c = "";
+ c = "undefined" !== typeof b.type && "undefined" !== typeof b.type.prefix ? c + b.type.prefix : c + b.name;
+ "undefined" !== typeof b.number && (c += b.number);
+ a.errorCode = void 0 !== a.errorCode ? a.errorCode + ("-" + c) : c;
+ h.Kgb(b, a, "stack", "message");
+ return a;
+ }, {});
+ return Object.assign(Object.assign({}, a), b);
+ }) || this;
+ }
+ function p(a) {
+ return n.call(this, a, function (a) {
+ return {
+ Exception: a.message || "" + a,
+ StackTrace: a.stack || "nostack"
+ };
+ }) || this;
+ }
+ function m(a, b, c) {
+ b = n.call(this, b, c) || this;
+ b.ad = a;
+ return b;
+ }
+ function f(a) {
+ return n.call(this, a, function (a) {
+ return {
+ Details: a
+ };
+ }) || this;
+ }
+ function n(a, b) {
+ this.ir = a;
+ this.value = b ? b(a) : a;
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Gva = b.n2a = void 0;
+ q = a(0);
+ t = a(1);
+ z = a(1039);
+ C = a(25);
+ M = a(42);
+ n.prototype.vO = function (a) {
+ return this.ir === a;
+ };
+ N(f, n);
+ f.prototype.eE = function (a, b) {
+ return b ? "" : "\r\n" + this.ir;
+ };
+ N(m, n);
+ m.prototype.eE = function () {
+ var a;
+ a = "";
+ this.ad.uv(this.value, function (b, c) {
+ try {
+ a += ", " + b + ": " + c;
+ } catch (S) {
+ try {
+ a += ", " + b + ": " + JSON.stringify(c);
+ } catch (aa) {
+ a += ", error stringifying " + b;
+ }
+ }
+ });
+ return a.replace(/[\r\n]+ */g, " ");
+ };
+ N(p, n);
+ p.prototype.eE = function (a) {
+ var b;
+ b = "\r\n" + this.ir.message;
+ a || (b += "\r\n" + this.ir.stack);
+ return b;
+ };
+ N(h, m);
+ h.Kgb = function (a, b, c) {
+ var h,
+ g;
+ for (var d = [], f = 2; f < arguments.length; ++f) {
+ d[f - 2] = arguments[f];
+ }
+ for (f = 0; f < d.length; ++f) {
+ h = a[d[f]];
+ if (void 0 !== h) {
+ g = "" + d[f];
+ b[g] = b[g] || [];
+ b[g].push(h);
+ }
+ }
+ };
+ b.n2a = h;
+ N(r, n);
+ r.prototype.eE = function () {
+ var a;
+ a = "";
+ this.ad.uv(this.value, function (b, c) {
+ a += ", " + b + ": " + c;
+ });
+ return a.replace(/[\r\n]+ */g, " ");
+ };
+ N(l, n);
+ l.prototype.eE = function (a, b) {
+ return this.ir && !b ? "\r\n" + this.Fc.encode(this.ir) : "";
+ };
+ N(g, n);
+ g.prototype.eE = function () {
+ return this.ir ? this.ir.toJSON() : "";
+ };
+ N(c, n);
+ c.prototype.eE = function () {
+ return ", " + (this.ir.toString ? "" + this.ir.toString() : "");
+ };
+ d = (function () {
+ var b;
+ function a(a, b) {
+ this.Fc = a;
+ this.ad = b;
+ this.Hd = [];
+ }
+ a.prototype.Bcb = function (a) {
+ this.Hd.push(new f(a));
+ };
+ a.prototype.qcb = function (a) {
+ this.Hd.push(new m(this.ad, a));
+ };
+ a.prototype.ecb = function (a) {
+ this.Hd.push(new p(a));
+ };
+ a.prototype.ccb = function (a) {
+ this.Hd.push(new h(this.ad, a));
+ };
+ a.prototype.hcb = function (a) {
+ this.Hd.push(new r(this.ad, a));
+ };
+ a.prototype.Ccb = function (a) {
+ this.Hd.push(new l(this.Fc, a));
+ };
+ a.prototype.ocb = function (a) {
+ this.Hd.push(new g(a));
+ };
+ a.prototype.Dcb = function (a) {
+ this.Hd.push(new c(a));
+ };
+ a.prototype.Ck = function () {
+ return this.Hd;
+ };
+ b = a;
+ return b = q.__decorate([t.N(), q.__param(0, t.l(M.Ui)), q.__param(1, t.l(C.hf))], b);
+ })();
+ b.Gva = d;
+ }, function (d, b, a) {
+ var c,
+ g,
+ l,
+ r,
+ h;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Fva = void 0;
+ c = a(0);
+ g = a(1);
+ l = a(1040);
+ r = a(42);
+ h = a(25);
+ d = (function () {
+ var b;
+ function a(a, b) {
+ this.Fc = a;
+ this.ad = b;
+ }
+ a.prototype.brb = function () {
+ return new l.Gva(this.Fc, this.ad);
+ };
+ b = a;
+ return b = c.__decorate([g.N(), c.__param(0, g.l(r.Ui)), c.__param(1, g.l(h.hf))], b);
+ })();
+ b.Fva = d;
+ }, function (d, b, a) {
+ var g,
+ l;
+ function c(a, b, c, d, f, g, k) {
+ this.level = a;
+ this.rm = b;
+ this.timestamp = c;
+ this.message = d;
+ this.Hd = f;
+ this.prefix = g;
+ this.index = void 0 === k ? 0 : k;
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Xqa = void 0;
+ g = a(3);
+ l = {
+ 0: "F",
+ 1: "E",
+ 2: "W",
+ 3: "I",
+ 4: "T",
+ 5: "D"
+ };
+ c.prototype.e4 = function (a, b) {
+ a = (this.prefix.length ? "" + this.prefix.join(" ") + " " : "") + this.message + (b ? "" : " " + this.PKb(!!a));
+ return (this.timestamp.ca(g.ia) / 1E3).toFixed(3) + "|" + this.index + "|" + (l[this.level] || this.level) + "|" + this.rm + "| " + a;
+ };
+ c.prototype.PKb = function (a) {
+ var f;
+ for (var b = this.Hd.length, c = "", d = 0; d < b; ++d) {
+ f = this.Hd[d].ir;
+ d && c.length && (c += " ");
+ if ("object" === typeof f) {
+ if (null === f)
+ c += "null";
+ else if (f instanceof Error)
+ c += this.OKb(f, a);
+ else
+ try {
+ c += JSON.stringify(f);
+ } catch (u) {
+ c += this.NKb(f);
+ }
+ } else
+ c += f;
+ }
+ return c;
+ };
+ c.prototype.OKb = function (a, b) {
+ return a.toString() + (a.stack && !b ? "\n" + a.stack : "") + "\n";
+ };
+ c.prototype.NKb = function (a) {
+ var b;
+ b = [];
+ return JSON.stringify(a, function (a, c) {
+ if ("object" === typeof c && null !== c) {
+ if (-1 !== b.indexOf(c))
+ return "";
+ b.push(c);
+ }
+ return c;
+ });
+ };
+ b.Xqa = c;
+ }, function (d, b, a) {
+ var g,
+ l;
+ function c(a, b, c, d, f, k) {
+ a = g.LE.call(this, a, b, c, d) || this;
+ a.Oha = f;
+ Array.isArray(k) ? a.prefix = k : k && "string" === typeof k && (a.prefix = [], a.prefix.push(k));
+ return a;
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Yqa = void 0;
+ g = a(256);
+ l = a(1042);
+ N(c, g.LE);
+ c.prototype.Xx = function (a, b, c) {
+ a = new l.Xqa(a, this.rm, this.va.Yb(), b, c, this.prefix);
+ b = U(this.Ul.Ul);
+ for (c = b.next(); !c.done; c = b.next()) {
+ c = c.value;
+ c(a);
+ }
+ };
+ c.prototype.Yda = function (a) {
+ return new c(this.va, this.Yu, this.Ul, a, this.Oha, this.prefix);
+ };
+ b.Yqa = c;
+ }, function (d, b, a) {
+ var g,
+ l,
+ n;
+ function c(a, b, c, d, k) {
+ a = n.LE.call(this, a, b, c, k) || this;
+ a.j = d;
+ g.Hm(a, "playback");
+ return a;
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.lya = void 0;
+ g = a(53);
+ l = a(469);
+ n = a(256);
+ N(c, n.LE);
+ c.prototype.Yda = function (a) {
+ return new c(this.va, this.Yu, this.Ul, this.j, a);
+ };
+ c.prototype.Xx = function (a, b, c) {
+ a = new l.q7(a, this.rm, this.va.Yb(), b, c, this.j.index);
+ b = U(this.Ul.Ul);
+ for (c = b.next(); !c.done; c = b.next()) {
+ c = c.value;
+ c(a, this.j);
+ }
+ };
+ b.lya = c;
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.EnumeratedErrorBase = void 0;
+ b.EnumeratedErrorBase = function (a, b, d, g) {
+ this.type = a;
+ this.name = a.name;
+ this.number = b;
+ "string" === typeof d ? this.message = d : void 0 !== d && (this.cause = d);
+ void 0 !== g && (this.message = g);
+ };
+ }, function (d, b, a) {
+ var c;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.KB = void 0;
+ c = a(1045);
+ b.KB = function (a, b) {
+ var h;
+ a = a.brb();
+ for (var d = 0; d < b.length; ++d) {
+ h = b[d];
+ void 0 != h && null != h && (h.fh && (h = h.fh), h.constructor === Uint8Array ? a.Ccb(h) : "MediaRequest" === h.constructor.name ? a.ocb(h) : "string" === typeof h ? a.Bcb(h) : "function" === typeof h ? a.hcb(h) : h instanceof Error ? a.ecb(h) : h instanceof c.EnumeratedErrorBase ? a.ccb(h) : h instanceof Object ? a.qcb(h) : a.Dcb(h));
+ }
+ return a.Ck();
+ };
+ }, function (d, b, a) {
+ var c,
+ g,
+ l,
+ n,
+ h,
+ p,
+ m,
+ f;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Nva = void 0;
+ c = a(0);
+ g = a(256);
+ l = a(1);
+ n = a(1044);
+ h = a(24);
+ p = a(97);
+ m = a(7);
+ f = a(1043);
+ d = (function () {
+ var b;
+ function a(a, b, c) {
+ this.va = a;
+ this.Ul = b;
+ this.Pja = c;
+ }
+ a.prototype.xb = function (a, b, c, d, h) {
+ c = void 0 === c ? this.Ul : c;
+ return b ? new n.lya(this.va, this.Pja, c, b, a) : h ? new f.Yqa(this.va, this.Pja, c, a, d || "", h) : new g.LE(this.va, this.Pja, c, a);
+ };
+ b = a;
+ return b = c.__decorate([l.N(), c.__param(0, l.l(h.Me)), c.__param(1, l.l(p.tA)), c.__param(2, l.l(m.r7))], b);
+ })();
+ b.Nva = d;
+ }, function (d, b, a) {
+ var c,
+ g;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Ova = void 0;
+ c = a(0);
+ g = a(1);
+ d = (function () {
+ var b;
+ function a() {
+ this.Koa = {};
+ this.Ul = [];
+ }
+ a.prototype.K2 = function (a, b) {
+ var c;
+ c = this;
+ b && (this.Koa[a] = b, this.Ul = Object.keys(this.Koa).map(function (a) {
+ return c.Koa[a];
+ }));
+ };
+ b = a;
+ return b = c.__decorate([g.N()], b);
+ })();
+ b.Ova = d;
+ }, function (d, b, a) {
+ var c,
+ g,
+ l,
+ n,
+ h;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.nPa = void 0;
+ c = a(1048);
+ g = a(1047);
+ d = a(1);
+ l = a(97);
+ n = a(7);
+ h = a(1041);
+ b.nPa = new d.Kc(function (a) {
+ a(n.Jb).to(g.Nva).Z();
+ a(l.tA).to(c.Ova).Z();
+ a(n.r7).to(h.Fva).Z();
+ });
+ }, function (d, b, a) {
+ var c,
+ g,
+ l,
+ n;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.swa = void 0;
+ c = a(0);
+ g = a(14);
+ l = a(10);
+ n = a(1);
+ d = (function () {
+ var b;
+ function a(a) {
+ this.config = a;
+ }
+ a.prototype.Eq = function () {
+ return this.mvb() ? l.kta : (/widevine/i).test(this.config().he) ? l.U5 : (/fps/i).test(this.config().he) ? "fairplay" : l.uT;
+ };
+ a.prototype.mvb = function () {
+ return (/clearkey/i).test(this.config().he);
+ };
+ b = a;
+ return b = c.__decorate([n.N(), c.__param(0, n.l(g.fd))], b);
+ })();
+ b.swa = d;
+ }, function (d, b, a) {
+ var c,
+ g,
+ l;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Ita = void 0;
+ c = a(0);
+ g = a(1);
+ l = a(257);
+ d = (function () {
+ var b;
+ function a() {}
+ a.prototype.kH = function (a, b) {
+ var c;
+ c = this;
+ a && Object.keys(b).forEach(function (d) {
+ var f,
+ h,
+ g;
+ f = b[d];
+ if (c.nvb(f)) {
+ h = U(f);
+ f = h.next().value;
+ g = h.next().value;
+ h = a[f];
+ Array.isArray(h) ? (c.Bea(a, d, f), h.forEach(function (a) {
+ c.kH(a, g);
+ })) : f === l.vx ? Object.keys(a).forEach(function (b) {
+ c.kH(a[b], g);
+ }) : (c.Bea(a, d, f), "object" === typeof h && c.kH(h, g));
+ } else
+ c.Bea(a, d, f);
+ });
+ };
+ a.prototype.nvb = function (a) {
+ return Array.isArray(a);
+ };
+ a.prototype.Bea = function (a, b, c) {
+ a.hasOwnProperty(b) || b === c || Object.defineProperty(a, b, {
+ get: function () {
+ return a[c];
+ },
+ enumerable: !1
+ });
+ };
+ b = a;
+ return b = c.__decorate([g.N()], b);
+ })();
+ b.Ita = d;
+ }, function (d, b, a) {
+ var c,
+ g,
+ l;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Lsa = void 0;
+ c = a(0);
+ g = a(1);
+ l = a(36);
+ d = (function () {
+ var b;
+ function a(a, b) {
+ this.ya = a;
+ this.aY = b;
+ }
+ a.prototype.Pc = function (a) {
+ this.Fg();
+ this.gi = this.ya.Mh(this.aY, a);
+ };
+ a.prototype.Fg = function () {
+ this.gi && this.gi.cancel();
+ this.gi = void 0;
+ };
+ b = a;
+ return b = c.__decorate([g.N(), c.__param(0, g.l(l.Tg))], b);
+ })();
+ b.Lsa = d;
+ }, function (d, b, a) {
+ var c,
+ g,
+ l,
+ n;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.zAa = void 0;
+ c = a(0);
+ g = a(36);
+ l = a(1);
+ n = a(3);
+ d = (function () {
+ var b;
+ function a(a, b, c) {
+ this.ya = a;
+ this.ULb = b;
+ this.yC = c;
+ }
+ a.prototype.fC = function () {
+ this.gi || (this.gi = this.ya.Mh(n.Gb(this.ULb), this.yC));
+ };
+ a.prototype.Qi = function () {
+ this.gi && this.gi.cancel();
+ this.gi = void 0;
+ };
+ b = a;
+ return b = c.__decorate([l.N(), c.__param(0, l.l(g.Tg))], b);
+ })();
+ b.zAa = d;
+ }, function (d, b, a) {
+ var c,
+ g,
+ l,
+ n,
+ h,
+ p;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.TAa = b.Era = void 0;
+ c = a(0);
+ g = a(1);
+ l = a(14);
+ n = a(29);
+ h = a(31);
+ d = (function () {
+ var b;
+ function a(a, b) {
+ this.Zg = this.Enb(a, b.data.browserInfo);
+ }
+ a.prototype.Ssb = function (a, b) {
+ var c;
+ b = this.Tsb(b);
+ if (b)
+ switch (a) {
+ case p.zPa:
+ c = 0 < b.length ? Number(b[0]) : 0;
+ break;
+ case p.Jzb:
+ c = 1 < b.length ? Number(b[1]) : 0;
+ break;
+ case p.rCb:
+ c = 2 < b.length ? Number(b[2]) : 0;
+ break;
+ case p.Y2:
+ c = 3 < b.length ? Number(b[3]) : 0;
+ }
+ return void 0 === c || isNaN(c) ? 0 : c;
+ };
+ a.prototype.Tsb = function (a) {
+ return null === a || void 0 === a ? void 0 : a.split(".");
+ };
+ a.prototype.SNa = function (a) {
+ return this.Zg.name === a;
+ };
+ a.prototype.Gvb = function (a) {
+ return this.Zg.LI.name === a;
+ };
+ a.prototype.Enb = function (a, b) {
+ return Object.assign(Object.assign({
+ EMa: this.Gnb(a, b)
+ }, this.Dnb(a, b)), {
+ LI: this.Hnb(a, b)
+ });
+ };
+ a.prototype.Gnb = function (a, b) {
+ return b && b.EMa ? b.EMa : (/Android.*Chrome\/[.0-9]* Mobile/).test(a) ? l.VT.NCb : (/Android.*Chrome\/[.0-9]* /).test(a) ? l.VT.tLb : l.VT.Xgb;
+ };
+ a.prototype.Dnb = function (a, b) {
+ return b && b.name && b.version ? {
+ name: b.name,
+ version: b.version
+ }
+ : (/OPR/).test(a) ? {
+ name: l.Br.opera,
+ version: ""
+ }
+ : (b = a.match(/Edge\/(\d*)\./)) ? {
+ name: l.Br.ep,
+ version: b[1]
+ }
+ : (b = a.match(/Edg\/(\d*)\./)) ? {
+ name: l.Br.OIa,
+ version: b[1]
+ }
+ : (b = a.match(/Chrome\/(\d*)\./)) ? {
+ name: l.Br.chrome,
+ version: b[1]
+ }
+ : (b = a.match(/Firefox\/(\d*)\./)) ? {
+ name: l.Br.wob,
+ version: b[1]
+ }
+ : (a = a.match(/(\d*)\.(\d*)\.?(\d*)? Safari/)) ? {
+ name: l.Br.nHb,
+ version: a[1]
+ }
+ : {
+ name: l.Br.chrome,
+ version: ""
+ };
+ };
+ a.prototype.Hnb = function (a, b) {
+ return b && b.LI && b.LI.name && b.LI.version ? {
+ name: b.LI.name,
+ version: b.LI.version
+ }
+ : (/CrOS/).test(a) ? {
+ name: l.ju.kgb,
+ version: ""
+ }
+ : (/Tesla/).test(a) ? {
+ name: l.ju.yLb,
+ version: ""
+ }
+ : (b = a.match(/Mac OS X (\d*)_?(\d*)?_?(\d*)?/)) ? {
+ name: l.ju.xPa,
+ version: b[1] + "." + b[2] + "." + b[3]
+ }
+ : (/Windows NT/).test(a) ? {
+ name: l.ju.xZa,
+ version: ""
+ }
+ : (/Android.*Chrome\/[.0-9]* Mobile/).test(a) || (/Android.*Chrome\/[.0-9]* /).test(a) ? {
+ name: l.ju.REa,
+ version: ""
+ }
+ : (/Linux/).test(a) ? {
+ name: l.ju.Rwb,
+ version: ""
+ }
+ : {
+ name: l.ju.xZa,
+ version: ""
+ };
+ };
+ wa.Object.defineProperties(a.prototype, {
+ XNa: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.SNa(l.Br.ep);
+ }
+ },
+ YNa: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.SNa(l.Br.OIa);
+ }
+ },
+ cOa: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.Gvb(l.ju.xPa);
+ }
+ },
+ zX: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.Ssb(p.zPa, this.Zg.version);
+ }
+ }
+ });
+ b = a;
+ return b = c.__decorate([g.N(), c.__param(0, g.l(h.k$)), c.__param(1, g.l(n.JE))], b);
+ })();
+ b.Era = d;
+ (function (a) {
+ a[a.zPa = 0] = "major";
+ a[a.Jzb = 1] = "minor";
+ a[a.rCb = 2] = "patch";
+ a[a.Y2 = 3] = "revision";
+ })(p = b.TAa || (b.TAa = {}));
+ }, function (d, b) {
+ function a() {
+ this.searchParams = {};
+ }
+ function c(b) {
+ this.Kn = b;
+ this.searchParams = new a();
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.JAa = void 0;
+ c.prototype.toString = function () {
+ return this.href;
+ };
+ wa.Object.defineProperties(c.prototype, {
+ href: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return "" + this.Kn + this.searchParams.toString();
+ }
+ }
+ });
+ b.JAa = c;
+ a.prototype.get = function (a) {
+ return this.searchParams[a];
+ };
+ a.prototype.set = function (a, b) {
+ this.searchParams[a] = b;
+ };
+ a.prototype.toString = function () {
+ var a,
+ b;
+ a = this;
+ b = Object.keys(this.searchParams);
+ return 0 < b.length ? b.reduce(function (b, c, d) {
+ return "" + b + (0 == d ? "?" : "&") + c + "=" + a.searchParams[c];
+ }, "") : "";
+ };
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Rya = b.Qya = b.LU = void 0;
+ b.LU = "PrioritizedSetOfListsSymbol";
+ b.Qya = "PrioritizedSetOfListsFactorySymbol";
+ b.Rya = "PrioritizedSetOfSetsFactorySymbol";
+ }, function (d, b, a) {
+ var c,
+ g,
+ l,
+ n,
+ h;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.rAa = void 0;
+ c = a(0);
+ g = a(1);
+ l = a(24);
+ n = a(3);
+ h = a(36);
+ d = (function () {
+ var b;
+ function a(a, b, c) {
+ var d;
+ d = this;
+ this.app = a;
+ this.ya = b;
+ this.aY = c;
+ this.jw = function (a) {
+ d.gi = void 0;
+ d.FMb(a || d.aY);
+ };
+ this.LOa = n.Gb(-this.aY.ca(n.ia));
+ }
+ a.prototype.Pc = function (a) {
+ this.Nna = a;
+ this.gi = this.gi || this.zc(this.jw);
+ };
+ a.prototype.Fg = function () {
+ this.gi && this.gi.cancel();
+ this.gi = void 0;
+ };
+ a.prototype.FMb = function (a) {
+ var b,
+ c;
+ b = this.app.Yb();
+ if (this.Nna) {
+ c = a.Ib(b.Ib(this.LOa));
+ 0 >= c.Pj(n.Cc) ? (a = this.Nna, this.Nna = void 0, this.LOa = b, a()) : this.gi = this.gi || this.ya.Mh(c, this.jw.bind(this, a));
+ }
+ };
+ a.prototype.zc = function (a) {
+ return this.ya.Mh(n.Cc, a);
+ };
+ b = a;
+ return b = c.__decorate([g.N(), c.__param(0, g.l(l.Me)), c.__param(1, g.l(h.Tg))], b);
+ })();
+ b.rAa = d;
+ }, function (d, b, a) {
+ var c,
+ g,
+ l,
+ n,
+ h,
+ p,
+ m,
+ f,
+ q;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Psa = void 0;
+ c = a(0);
+ g = a(1);
+ l = a(24);
+ n = a(48);
+ h = a(2);
+ p = a(13);
+ m = a(3);
+ f = a(9);
+ q = a(477);
+ d = (function () {
+ var b,
+ d;
+ function a(a, b) {
+ this.va = a;
+ this.config = b;
+ }
+ a.prototype.vlb = function (a) {
+ var c,
+ d,
+ f,
+ g,
+ k,
+ l,
+ r,
+ q,
+ u,
+ t;
+ c = this;
+ l = a.bb.value;
+ r = a.Jn.value;
+ q = a.Sb.value;
+ u = a.state.value;
+ k = {
+ segmentId: a.jha(),
+ mediaTime: l,
+ segmentTime: a.uC(),
+ bufferingState: b.Yeb[r],
+ presentingState: b.gEb[q],
+ playbackState: b.lDb[u],
+ mseBuffersBusy: this.osb(a),
+ intBuffersBusy: this.Tqb(a),
+ tabVisible: this.sLb(),
+ decodedFrameCount: this.Kkb(a),
+ videoElementInDom: this.rOb(a),
+ lastVideoSync: this.va.Yb().Ib(m.Gb(a.ZR)).ca(m.ia)
+ };
+ t = q === p.lb.dg ? a.Ta.$j ? this.config.SRa : this.config.RRa : this.config.yQa;
+ r !== p.ye.od ? (f = h.I.Q0a, this.TFa(k.mseBuffersBusy, k.intBuffersBusy) && (g = b.tra)) : q !== p.lb.Sc && (f = h.I.R0a, (r = a.pj) && r.ub.sourceBuffers.forEach(function (a) {
+ var d,
+ f;
+ d = b.ez[a.L];
+ k[d + "Ranges"] = a.NZ();
+ try {
+ f = a.buffered();
+ } catch (X) {
+ f = void 0;
+ }
+ f && 0 !== f.length ? (a = 1E3 * f.end(0) - l, k[d + "Undecoded"] = a, 1 < f.length && (g = b.J_a), l < 1E3 * f.start(0) || l > 1E3 * f.end(0) ? g = b.K_a : a < t.ca(m.ia) ? g = b.L_a : c.TFa(k.mseBuffersBusy, k.intBuffersBusy) && (g = b.tra)) : (k[d + "Undecoded"] = 0, g = b.I_a);
+ }));
+ a = a.R2.hMa();
+ r = l === (null === (d = a.repositionTrace) || void 0 === d ? void 0 : d[0].newMediaTime);
+ k.lastRepositionCausedTimeout = r;
+ Object.assign(k, a);
+ d = "";
+ try {
+ d = JSON.stringify(k);
+ } catch (ia) {
+ d = "Cannot stringify details: " + ia;
+ }
+ return new n.Dc(h.J.pxa, f, g, void 0, void 0, void 0, d, void 0);
+ };
+ a.prototype.osb = function (a) {
+ var b;
+ if (a.ub) {
+ b = {};
+ a.ub.sourceBuffers.forEach(function (a) {
+ b[0 === a.type ? "audio" : "video"] = {
+ updating: a.updating()
+ };
+ });
+ return b;
+ }
+ };
+ a.prototype.Tqb = function (a) {
+ var b;
+ if (a.ub) {
+ b = {};
+ a.ub.sourceBuffers.forEach(function (a) {
+ b[0 === a.type ? "audio" : "video"] = {
+ updating: a.Eh()
+ };
+ });
+ return b;
+ }
+ };
+ a.prototype.sLb = function () {
+ return !f.Ae.hidden;
+ };
+ a.prototype.Kkb = function (a) {
+ return (a = a.pj) && (a = a.ub.la) && void 0 !== a.webkitDecodedFrameCount ? a.webkitDecodedFrameCount : NaN;
+ };
+ a.prototype.rOb = function (a) {
+ if (a = a.pj)
+ if (a = a.ub.la)
+ return f.Ae.body.contains(a);
+ return !1;
+ };
+ a.prototype.TFa = function (a, b) {
+ var c,
+ d,
+ f,
+ h;
+ return !((null === (c = a.audio) || void 0 === c ? void 0 : c.updating) === (null === (d = b.audio) || void 0 === d ? void 0 : d.updating) && (null === (f = a.video) || void 0 === f ? void 0 : f.updating) === (null === (h = b.video) || void 0 === h ? void 0 : h.updating));
+ };
+ d = b = a;
+ d.I_a = "1";
+ d.J_a = "2";
+ d.K_a = "3";
+ d.tra = "4";
+ d.L_a = "5";
+ d.ez = ["Audio", "Video"];
+ d.Yeb = ["", "NORMAL", "BUFFERING", "STALLED"];
+ d.gEb = ["", "WAITING", "PLAYING ", "PAUSED", "ENDED"];
+ d.lDb = ["STATE_NOTLOADED", "STATE_LOADING", "STATE_NORMAL", "STATE_CLOSING", "STATE_CLOSED"];
+ return d = b = c.__decorate([g.N(), c.__param(0, g.l(l.Me)), c.__param(1, g.l(q.W7))], d);
+ })();
+ b.Psa = d;
+ }, function (d, b, a) {
+ var c,
+ g,
+ l,
+ n,
+ h;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Y9 = void 0;
+ c = a(0);
+ g = a(1);
+ l = a(24);
+ n = a(3);
+ h = a(7);
+ d = (function () {
+ var b;
+ function a(a, b) {
+ this.va = a;
+ this.entries = new Set();
+ this.ka = b.xb("TimingApi");
+ }
+ a.prototype.mark = function (a, b, c) {
+ a = {
+ name: a,
+ Jt: this.va.Yb()
+ };
+ b && (a.ga = b);
+ c && (a.Ek = c);
+ this.entries.add(a);
+ return a;
+ };
+ a.prototype.Yga = function () {
+ var a;
+ a = [];
+ this.entries.forEach(function (b) {
+ return a.push(b);
+ });
+ return a;
+ };
+ a.prototype.FLa = function (a) {
+ return this.Yga().filter(function (b) {
+ return b.ga === a;
+ });
+ };
+ a.prototype.DLa = function () {
+ var a;
+ a = {};
+ try {
+ a = this.Yga().filter(function (a) {
+ return !a.ga;
+ }).reduce(function (a, b) {
+ a[b.name] = b.Jt.ca(n.ia);
+ return a;
+ }, {});
+ } catch (u) {
+ this.ka.error(" getMapOfCommonMarks exception", u);
+ }
+ return a;
+ };
+ a.prototype.oUa = function (a) {
+ var b;
+ b = this;
+ this.Yga().forEach(function (c) {
+ c.ga === a && b.entries["delete"](c);
+ });
+ };
+ b = a;
+ return b = c.__decorate([g.N(), c.__param(0, g.l(l.Me)), c.__param(1, g.l(h.Jb))], b);
+ })();
+ b.Y9 = d;
+ }, function (d, b, a) {
+ var c,
+ g,
+ l,
+ n,
+ h;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.gsa = void 0;
+ c = a(0);
+ g = a(41);
+ l = a(40);
+ n = a(1);
+ h = a(29);
+ d = (function () {
+ var b;
+ function a(a) {
+ return l.rK.call(this, a, "ClockConfigImpl") || this;
+ }
+ N(a, l.rK);
+ wa.Object.defineProperties(a.prototype, {
+ UYa: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return !1;
+ }
+ }
+ });
+ b = a;
+ c.__decorate([g.config(g.jd, "usePerformanceApi")], b.prototype, "UYa", null);
+ return b = c.__decorate([n.N(), c.__param(0, n.l(h.lT))], b);
+ })();
+ b.gsa = d;
+ }, function (d, b, a) {
+ var c,
+ g,
+ l,
+ n,
+ h;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Msa = void 0;
+ c = a(0);
+ g = a(41);
+ l = a(40);
+ n = a(1);
+ h = a(29);
+ d = (function () {
+ var b;
+ function a(a) {
+ a = l.rK.call(this, a, "DebugConfigImpl") || this;
+ a.DXb = function () {
+ debugger;
+ };
+ return a;
+ }
+ N(a, l.rK);
+ wa.Object.defineProperties(a.prototype, {
+ Seb: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return !1;
+ }
+ }
+ });
+ b = a;
+ c.__decorate([g.config(g.jd, "breakOnError")], b.prototype, "Seb", null);
+ return b = c.__decorate([n.N(), c.__param(0, n.l(h.lT))], b);
+ })();
+ b.Msa = d;
+ }, function (d, b, a) {
+ var c,
+ g,
+ l,
+ n,
+ h;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Nsa = void 0;
+ c = a(0);
+ g = a(1);
+ l = a(21);
+ n = a(87);
+ h = a(7);
+ d = (function () {
+ var b;
+ function a(a, b, c) {
+ this.config = a;
+ this.La = b;
+ this.ka = c.xb("General");
+ }
+ a.prototype.assert = function () {};
+ a.prototype.vdb = function (a, b) {
+ this.assert(this.La.ZB(a), b);
+ };
+ a.prototype.wdb = function (a, b) {
+ this.assert(this.La.de(a), b);
+ };
+ a.prototype.Bdb = function (a, b) {
+ this.assert(this.La.En(a), b);
+ };
+ a.prototype.Edb = function (a, b) {
+ this.assert(this.La.lm(a), b);
+ };
+ a.prototype.Cdb = function (a, b) {
+ this.assert(this.La.En(a) || null === a || void 0 === a, b);
+ };
+ a.prototype.zdb = function (a, b) {
+ this.assert(this.La.fg(a), b);
+ };
+ a.prototype.ydb = function (a, b) {
+ this.assert(this.La.bca(a), b);
+ };
+ a.prototype.Ddb = function (a, b) {
+ this.assert(this.La.ks(a), b);
+ };
+ a.prototype.Adb = function (a, b) {
+ this.assert(this.La.MM(a), b);
+ };
+ a.prototype.udb = function (a, b) {
+ this.assert(this.La.LM(a), b);
+ };
+ a.prototype.xdb = function (a, b) {
+ this.assert(this.La.cX(a), b);
+ };
+ a.prototype.dvb = function () {
+ this.assert(!1, "invalid operation, this method should not be called");
+ };
+ a.IYb = function () {
+ var a,
+ b;
+ a = Error.captureStackTrace;
+ return b = a ? function (c) {
+ var d;
+ d = {
+ toString: function () {
+ return "";
+ }
+ };
+ a(d, c || b);
+ return d.stack;
+ }
+ : function () {
+ try {
+ throw Error("capture stack");
+ } catch (w) {
+ return w.stack;
+ }
+ };
+ };
+ b = a;
+ return b = c.__decorate([g.N(), c.__param(0, g.l(n.F5)), c.__param(1, g.l(l.Zd)), c.__param(2, g.l(h.Jb))], b);
+ })();
+ b.Nsa = d;
+ }, function (d, b, a) {
+ var c,
+ g,
+ l,
+ n;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.wsa = void 0;
+ c = a(0);
+ g = a(1);
+ l = a(21);
+ n = a(25);
+ d = (function () {
+ var b,
+ d;
+ function a(a, b) {
+ this.is = a;
+ this.ad = b;
+ }
+ a.prototype.encode = function (a) {
+ var b,
+ c;
+ b = this;
+ c = "";
+ this.ad.uv(a, function (a, d) {
+ a = b.gJa(a) + "=" + b.gJa(d);
+ c = c ? c + ("," + a) : a;
+ });
+ return c;
+ };
+ a.prototype.gJa = function (a) {
+ return this.is.ZB(a) ? this.is.fg(a) ? "" + a : this.is.En(a) ? (a = a.replace(b.$ma, this.hka.bind(this)), !b.WEb.test(a) && b.Yzb.test(a) && (a = '"' + a + '"'), a) : this.is.LM(a) ? "" + a : this.is.Bba(a) ? "NaN" : "" : "";
+ };
+ a.prototype.hka = function (a) {
+ return b.map[a];
+ };
+ d = b = a;
+ d.map = {
+ '"': '""',
+ "\r": "",
+ "\n": " "
+ };
+ d.$ma = /(?!^.+)["\r\n](?=.+$)/g;
+ d.WEb = /["].*["]/g;
+ d.Yzb = /[", ]/;
+ return d = b = c.__decorate([g.N(), c.__param(0, g.l(l.Zd)), c.__param(1, g.l(n.hf))], d);
+ })();
+ b.wsa = d;
+ }, function (d, b, a) {
+ var c,
+ g,
+ l,
+ n,
+ h;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Oqa = void 0;
+ c = a(0);
+ g = a(1);
+ l = a(37);
+ n = a(3);
+ h = a(116);
+ d = (function () {
+ var b;
+ function a(a, b) {
+ this.Aa = a;
+ this.IZ = this.Aa.$e.ca(n.ia) - 1;
+ this.Ixb = this.A0 = 0;
+ this.id = "" + b.TB();
+ }
+ a.prototype.Yb = function () {
+ var a,
+ b;
+ a = this.Aa.$e.ca(n.ia) - this.IZ;
+ if (a < this.A0) {
+ b = this.A0 + 1;
+ this.IZ -= b - a;
+ a = b;
+ }
+ this.A0 = a;
+ return n.Gb(this.A0);
+ };
+ a.prototype.crb = function () {
+ return this.Ixb++;
+ };
+ wa.Object.defineProperties(a.prototype, {
+ LC: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return n.Gb(this.IZ);
+ }
+ }
+ });
+ b = a;
+ return b = c.__decorate([g.N(), c.__param(0, g.l(l.ni)), c.__param(1, g.l(h.rA))], b);
+ })();
+ b.Oqa = d;
+ }, function (d) {
+ d.P = "function" === typeof Object.create ? function (b, a) {
+ b.eLb = a;
+ b.prototype = Object.create(a.prototype, {
+ constructor: {
+ value: b,
+ enumerable: !1,
+ writable: !0,
+ configurable: !0
+ }
+ });
+ }
+ : function (b, a) {
+ function c() {}
+ b.eLb = a;
+ c.prototype = a.prototype;
+ b.prototype = new c();
+ b.prototype.constructor = b;
+ };
+ }, function (d) {
+ d.P = function (b) {
+ return b && "object" === typeof b && "function" === typeof b.$o && "function" === typeof b.fill && "function" === typeof b.Z_b;
+ };
+ }, function (d, b, a) {
+ var g;
+ function c(a) {
+ this.mpb = a;
+ this.y_ = !1;
+ this.O_ = this.bg = this.QJ = 0;
+ this.pP = !1;
+ this.P_ = 0;
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.exa = void 0;
+ g = a(480);
+ c.prototype.rcb = function (a) {
+ a < this.QJ && (this.bg += this.QJ);
+ this.QJ = a;
+ this.y_ = !0;
+ };
+ c.prototype.$pb = function () {
+ if (this.y_)
+ return this.pP ? this.P_ - this.O_ : this.bg + this.QJ - this.O_;
+ };
+ c.prototype.refresh = function () {
+ var a;
+ a = this.mpb();
+ g.na(a) && this.rcb(a);
+ };
+ c.prototype.hKb = function () {
+ this.pP || (this.y_ && (this.P_ = this.bg + this.QJ), this.pP = !0);
+ };
+ c.prototype.vKb = function () {
+ this.pP && (this.y_ && (this.O_ += this.bg + this.QJ - this.P_), this.P_ = 0, this.pP = !1);
+ };
+ b.exa = c;
+ }, function (d, b, a) {
+ var c,
+ g,
+ l,
+ n;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Uya = void 0;
+ c = a(0);
+ g = a(1);
+ l = a(36);
+ n = a(61);
+ d = (function () {
+ var b;
+ function a(a) {
+ this.ya = a;
+ }
+ a.prototype.Sm = function (a, b) {
+ var c;
+ c = this;
+ return new Promise(function (d, f) {
+ var h;
+ h = c.ya.Mh(a, function () {
+ f(new n.rn(a));
+ });
+ b.then(function (a) {
+ d(a);
+ h.cancel();
+ })["catch"](function (a) {
+ f(a);
+ h.cancel();
+ });
+ });
+ };
+ b = a;
+ return b = c.__decorate([g.N(), c.__param(0, g.l(l.Tg))], b);
+ })();
+ b.Uya = d;
+ }, function (d, b, a) {
+ var c,
+ g;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.KAa = void 0;
+ c = a(0);
+ g = a(1);
+ d = (function () {
+ var b,
+ d;
+ function a() {}
+ a.prototype.encode = function (a) {
+ return b.jfa(a);
+ };
+ a.prototype.decode = function (a) {
+ return b.uea(a);
+ };
+ a.jfa = function (a) {
+ if (!a)
+ throw new TypeError("Invalid byte array");
+ for (var b = 0, c, d = a.length, h = ""; b < d; ) {
+ c = a[b++];
+ if (!(0 <= c && 255 >= c))
+ throw Error("bad utf8");
+ if (c & 128)
+ if (192 === (c & 224))
+ c = ((c & 31) << 6) + (a[b++] & 63);
+ else if (224 === (c & 240))
+ c = ((c & 15) << 12) + ((a[b++] & 63) << 6) + (a[b++] & 63);
+ else
+ throw Error("unsupported utf8 character");
+ h += String.fromCharCode(c);
+ }
+ return h;
+ };
+ a.uea = function (a) {
+ var b,
+ c,
+ d,
+ h,
+ g;
+ b = a.length;
+ c = 0;
+ h = 0;
+ if (!(0 <= b))
+ throw Error("bad string");
+ for (d = b; d--; ) {
+ g = a.charCodeAt(d);
+ 128 > g ? c++ : c = 2048 > g ? c + 2 : c + 3;
+ }
+ c = new Uint8Array(c);
+ for (d = 0; d < b; d++) {
+ g = a.charCodeAt(d);
+ 128 > g ? c[h++] = g : (2048 > g ? c[h++] = 192 | g >>> 6 : (c[h++] = 224 | g >>> 12, c[h++] = 128 | g >>> 6 & 63), c[h++] = 128 | g & 63);
+ }
+ return c;
+ };
+ d = b = a;
+ return d = b = c.__decorate([g.N()], d);
+ })();
+ b.KAa = d;
+ }, function (d, b, a) {
+ var c,
+ g,
+ l,
+ n,
+ h,
+ p,
+ m,
+ f;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.hsa = void 0;
+ c = a(0);
+ g = a(53);
+ l = a(3);
+ n = a(1);
+ h = a(31);
+ p = a(485);
+ m = a(85);
+ f = a(13);
+ d = (function () {
+ var b;
+ function a(a, b, c, d) {
+ var h;
+ h = this;
+ this.config = a;
+ this.okb = b;
+ this.Db = c;
+ this.performance = d;
+ this.EBb = function (a) {
+ h.zVa = a.Ib(h.$e);
+ };
+ g.Hm(this, "date");
+ g.Hm(this, "performance");
+ this.Zcb = void 0 !== this.performance && void 0 !== this.performance.timing && void 0 !== this.performance.now;
+ this.zVa = l.Cc;
+ this.Db.addListener(f.Z6.BVa, this.EBb);
+ }
+ wa.Object.defineProperties(a.prototype, {
+ $e: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.FQa ? l.timestamp(this.performance.timing.navigationStart + this.performance.now()) : l.Gb(this.okb.now());
+ }
+ },
+ t3: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.$e.add(this.zVa);
+ }
+ },
+ FQa: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.config.UYa && this.Zcb;
+ }
+ }
+ });
+ b = a;
+ return b = c.__decorate([n.N(), c.__param(0, n.l(p.t5)), c.__param(1, n.l(h.D5)), c.__param(2, n.l(m.DT)), c.__param(3, n.l(h.FU)), c.__param(3, n.optional())], b);
+ })();
+ b.hsa = d;
+ }, function (d, b, a) {
+ var c,
+ g,
+ l;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.bza = void 0;
+ c = a(0);
+ g = a(1);
+ l = a(137);
+ d = (function () {
+ var b;
+ function a(a) {
+ this.rLb = a;
+ }
+ a.prototype.random = function () {
+ return this.rLb.random();
+ };
+ a.prototype.JTa = function (a, b) {
+ if ("number" !== typeof a)
+ (b = a.end, a = a.start);
+ else if ("undefined" === typeof b)
+ throw Error("max must be provided for randomInteger API");
+ return Math.round(a + this.random() * (b - a));
+ };
+ b = a;
+ return b = c.__decorate([g.N(), c.__param(0, g.l(l.R9))], b);
+ })();
+ b.bza = d;
+ }, function (d, b, a) {
+ var c,
+ g,
+ l,
+ n,
+ h;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.$ua = void 0;
+ c = a(0);
+ g = a(1);
+ l = a(3);
+ n = a(37);
+ h = a(137);
+ d = (function () {
+ var b,
+ d;
+ function a(a, b) {
+ this.Aa = a;
+ this.random = b;
+ }
+ a.prototype.TB = function () {
+ return this.Aa.$e.ca(l.ll) * b.Nra + Math.floor(this.random.random() * b.Nra);
+ };
+ d = b = a;
+ d.Nra = 1E4;
+ return d = b = c.__decorate([g.N(), c.__param(0, g.l(n.ni)), c.__param(1, g.l(h.tL))], d);
+ })();
+ b.$ua = d;
+ }, function (d, b, a) {
+ var g,
+ l,
+ n,
+ h,
+ p;
+ function c(a, b) {
+ this.VJ = a;
+ this.Dfb = b;
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Aza = void 0;
+ g = a(0);
+ l = a(1);
+ n = a(53);
+ h = a(31);
+ p = a(3);
+ c.prototype.cancel = function () {
+ this.Dfb(this.VJ);
+ };
+ d = (function () {
+ var b;
+ function a(a) {
+ this.VJ = a;
+ n.Hm(this, "timers");
+ }
+ a.prototype.Pc = function (a) {
+ return this.Mh(p.Cc, a);
+ };
+ a.prototype.Mh = function (a, b) {
+ var d;
+ d = this.VJ.setTimeout(b, a.ca(p.ia));
+ return new c(this.VJ, function (a) {
+ a.clearTimeout(d);
+ });
+ };
+ a.prototype.Lna = function (a, b) {
+ var d;
+ d = this.VJ.setInterval(b, a.ca(p.ia));
+ return new c(this.VJ, function (a) {
+ a.clearInterval(d);
+ });
+ };
+ b = a;
+ return b = g.__decorate([l.N(), g.__param(0, l.l(h.s$))], b);
+ })();
+ b.Aza = d;
+ }, function (d, b, a) {
+ var c,
+ g,
+ l,
+ n,
+ h,
+ p,
+ m,
+ f,
+ q,
+ w,
+ A,
+ z,
+ C,
+ M,
+ H,
+ G,
+ E,
+ S,
+ N,
+ Z,
+ B,
+ V,
+ Q,
+ R,
+ Y,
+ U,
+ X,
+ O,
+ na,
+ ha,
+ P,
+ W,
+ ja,
+ ya,
+ za,
+ ma,
+ ca,
+ ea,
+ ga,
+ la,
+ oa,
+ qa,
+ ra,
+ ta,
+ Fa,
+ wa,
+ mb,
+ da,
+ xa,
+ Aa,
+ Ca,
+ Da,
+ Ea,
+ Ga,
+ Ja,
+ Ka,
+ Ma,
+ Na,
+ Oa,
+ Pa,
+ Qa,
+ Ra,
+ Sa,
+ Ta;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.gv = void 0;
+ d = a(1);
+ c = a(31);
+ g = a(37);
+ l = a(36);
+ n = a(116);
+ h = a(137);
+ p = a(1073);
+ m = a(1072);
+ f = a(1071);
+ q = a(1070);
+ w = a(100);
+ A = a(90);
+ z = a(42);
+ C = a(25);
+ M = a(21);
+ H = a(85);
+ G = a(61);
+ E = a(484);
+ S = a(1069);
+ N = a(259);
+ Z = a(483);
+ B = a(482);
+ V = a(1068);
+ Q = a(185);
+ R = a(481);
+ Y = a(1067);
+ U = a(272);
+ X = a(99);
+ O = a(1064);
+ na = a(24);
+ ha = a(479);
+ P = a(1063);
+ W = a(1062);
+ ja = a(87);
+ ya = a(1061);
+ za = a(7);
+ ma = a(485);
+ ca = a(1060);
+ ea = a(68);
+ ga = a(1059);
+ la = a(478);
+ oa = a(1058);
+ qa = a(1057);
+ ra = a(98);
+ ta = a(9);
+ Fa = a(1056);
+ wa = a(476);
+ mb = a(475);
+ da = a(1055);
+ xa = a(474);
+ Aa = a(14);
+ Ca = a(32);
+ Da = a(115);
+ Ea = a(473);
+ Ga = a(513);
+ Ja = a(1054);
+ Ka = a(472);
+ Ma = a(471);
+ Na = a(178);
+ Oa = a(1053);
+ Pa = a(470);
+ Qa = a(1052);
+ Ra = a(257);
+ Sa = a(1051);
+ Ta = a(1050);
+ b.gv = new d.Kc(function (a) {
+ a(c.$E).Jw(function () {
+ return {};
+ }).Z();
+ a(c.bx).ji(JSON);
+ a(c.s$).ji(t);
+ a(h.R9).ji(Math);
+ a(c.n7).ji(ta.rU);
+ a(c.FU).ji(ta.Mr);
+ a(c.k$).ji(ta.bm);
+ a(c.D5).ji(Date);
+ a(c.AA).ji(ta.Zi);
+ a(c.Bwa).ji(ta.TE);
+ a(ma.t5).to(ca.gsa).Z();
+ a(na.Me).to(O.Oqa).Z();
+ a(g.ni).to(q.hsa).Z();
+ a(l.Tg).to(p.Aza).Z();
+ a(n.rA).to(m.$ua).Z();
+ a(G.nx).to(V.Uya).Z();
+ a(h.tL).to(f.bza).Z();
+ a(Ea.gU).to(Ta.swa).Z();
+ a(ja.Dr).to(W.Nsa).Z();
+ a(ja.F5).to(ya.Msa).Z();
+ a(w.tx).to(S.KAa).Z();
+ a(A.Ut).to(N.XS).Z();
+ a(z.Ui).to(Z.c5).Z();
+ a(C.hf).to(B.l$).Z();
+ a(M.Zd).ji(Q.ax);
+ a(Ka.AE).to(Ma.Ota).Z();
+ a(H.i6).to(R.Xi).tia();
+ a(H.DK).to(R.Xi).Z();
+ a(H.L5).to(R.Xi).Z();
+ a(H.DT).to(R.Xi).Z();
+ a(U.yL).to(X.qx).Z();
+ a(ha.x5).to(P.wsa).Z();
+ a(ea.sx).to(ga.Y9).Z();
+ a(ea.PE).to(ga.Y9).Z();
+ a("Factory").ZLb(za.Jb);
+ a(la.H5).to(oa.Psa).Z();
+ a(ra.PA).zf(function (a) {
+ return function (b) {
+ return new qa.rAa(a.hb.get(na.Me), a.hb.get(l.Tg), b);
+ };
+ });
+ a(Pa.E5).zf(function (a) {
+ return function (b) {
+ return new Qa.Lsa(a.hb.get(l.Tg), b);
+ };
+ });
+ a(Fa.LU).bMb(wa.o9);
+ a(Fa.Qya).zf(function (a) {
+ var b;
+ b = a.hb.get(Fa.LU);
+ return function () {
+ return new b(!1);
+ };
+ });
+ a(Fa.Rya).zf(function (a) {
+ var b;
+ b = a.hb.get(Fa.LU);
+ return function () {
+ return new b(!0);
+ };
+ });
+ a(mb.j$).zf(function () {
+ return function (a) {
+ return new da.JAa(a);
+ };
+ });
+ a(Da.GA).zf(function (a) {
+ return function (b, c, d) {
+ return new xa.tya(a.hb.get(ja.Dr), a.hb.get(Aa.fd), a.hb.get(Ca.aj), a.hb.get(Ea.gU), b, c, d);
+ };
+ });
+ a(E.h8).zf(function () {
+ return function (a) {
+ return new Y.exa(a);
+ };
+ });
+ a(Ga.$S).to(Ja.Era);
+ a(Na.AL).zf(function (a) {
+ return function (b, c) {
+ return new Oa.zAa(a.hb.get(l.Tg), b, c);
+ };
+ });
+ a(Ra.f6).to(Sa.Ita).Z();
+ });
+ }, function (d, b, a) {
+ var c,
+ g,
+ l,
+ n,
+ h,
+ p,
+ m,
+ f,
+ q,
+ t,
+ A,
+ z,
+ C,
+ M,
+ H,
+ G,
+ E,
+ S,
+ N,
+ Z,
+ B,
+ V,
+ Q,
+ R,
+ Y,
+ U,
+ X,
+ O,
+ na,
+ ha,
+ P,
+ W;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.bPa = void 0;
+ c = a(1074);
+ g = a(1049);
+ l = a(1038);
+ n = a(1035);
+ h = a(1029);
+ p = a(1026);
+ m = a(1022);
+ f = a(1010);
+ q = a(999);
+ t = a(995);
+ A = a(993);
+ z = a(720);
+ C = a(718);
+ M = a(714);
+ H = a(702);
+ G = a(695);
+ E = a(688);
+ S = a(685);
+ N = a(679);
+ Z = a(271);
+ B = a(671);
+ V = a(669);
+ Q = a(662);
+ R = a(657);
+ Y = a(651);
+ U = a(649);
+ X = a(642);
+ O = a(615);
+ na = a(593);
+ ha = a(589);
+ P = a(585);
+ W = a(571);
+ b.bPa = function (a) {
+ a.load(c.gv, p.Qz, g.nPa, m.Pn, l.CQa, n.Ya, h.iZa, f.storage, q.dy, t.hGa, A.HPa, z.iz, C.Ah, M.mPa, H.UQa, G.pKa, E.ATa, S.qD, N.NIa, Z.eme, B.crypto, V.ad, Q.Jc, R.ej, Y.IQa, U.wSa, X.j, O.VGa, na.dYa, ha.ak, P.Of, W.pFa);
+ };
+ }, function (d, b, a) {
+ var c,
+ g,
+ l,
+ n,
+ h,
+ p,
+ m,
+ f,
+ q,
+ t;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Dta = void 0;
+ c = a(0);
+ g = a(1);
+ l = a(7);
+ n = a(24);
+ h = a(42);
+ p = a(52);
+ m = a(36);
+ f = a(61);
+ q = a(488);
+ t = a(101);
+ d = (function () {
+ var b;
+ function a(a, b, c, d, f, h, g) {
+ this.Sq = a;
+ this.va = b;
+ this.Fc = c;
+ this.config = d;
+ this.ya = f;
+ this.Yk = h;
+ this.Ml = g;
+ }
+ a.prototype.create = function () {
+ var a;
+ a = this;
+ return Promise.all([this.Ml.wqb(), this.Ml.vqb(), this.Ml.Eq()]).then(function (b) {
+ var c,
+ d;
+ c = U(b);
+ b = c.next().value;
+ d = c.next().value;
+ c = c.next().value;
+ return new q.Eta(a.Sq, a.va, a.Fc, a.config, b, d, c, a.ya, a.Yk);
+ });
+ };
+ b = a;
+ return b = c.__decorate([g.N(), c.__param(0, g.l(l.Jb)), c.__param(1, g.l(n.Me)), c.__param(2, g.l(h.Ui)), c.__param(3, g.l(p.Zl)), c.__param(4, g.l(m.Tg)), c.__param(5, g.l(f.nx)), c.__param(6, g.l(t.cu))], b);
+ })();
+ b.Dta = d;
+ }, function (d, b, a) {
+ var l,
+ n;
+ function c(a, b, c, d, g) {
+ this.va = a;
+ this.config = b;
+ this.ya = c;
+ this.jw = d;
+ this.name = g;
+ }
+ function g(a, b, c, d) {
+ var f;
+ f = this;
+ this.va = a;
+ this.ya = b;
+ this.timeout = c;
+ this.TLb = d;
+ this.xtb = function () {
+ f.gj = !0;
+ f.IC.cancel();
+ f.TLb();
+ };
+ this.startTime = this.va.Yb();
+ this.IC = this.ya.Mh(this.timeout, function () {
+ f.xtb();
+ });
+ this.gj = !1;
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Cta = void 0;
+ l = a(2);
+ n = a(89);
+ g.prototype.stop = function () {
+ this.gj || (this.R3 = this.va.Yb(), this.IC.cancel());
+ };
+ wa.Object.defineProperties(g.prototype, {
+ QY: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ if (this.R3 && this.startTime)
+ return this.R3.Ib(this.startTime);
+ }
+ }
+ });
+ c.prototype.Jfb = function () {
+ var a;
+ a = this;
+ this.EG = new g(this.va, this.ya, this.config.sia, function () {
+ a.jw(new n.Sf(l.J.z9, l.I.xT, void 0, "Eme " + a.name + " event expired with an expiry of " + a.config.sia + "ms"));
+ });
+ };
+ c.prototype.Ifb = function () {
+ this.EG && this.EG.stop();
+ };
+ c.prototype.tIb = function () {
+ this.LD = this.va.Yb();
+ };
+ c.prototype.Kfb = function () {
+ var a;
+ a = this;
+ this.t4 = new g(this.va, this.ya, this.config.Sna, function () {
+ a.jw(new n.Sf(l.J.z9, l.I.Z5, void 0, "Eme " + a.name + " event expired with an expiry of " + a.config.Sna + "ms"));
+ });
+ };
+ c.prototype.oGa = function () {
+ this.t4 && this.t4.stop();
+ };
+ wa.Object.defineProperties(c.prototype, {
+ Yc: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ var a,
+ b;
+ a = {};
+ if (this.EG) {
+ b = this.EG.QY;
+ b && (a.c1 = b);
+ this.LD && this.EG.R3 && (a.LD = this.LD.Ib(this.EG.R3));
+ }
+ this.t4 && (b = this.t4.QY) && (a.WX = b);
+ return a;
+ }
+ }
+ });
+ b.Cta = c;
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Ata = void 0;
+ b.Ata = "EmeApiSymbol";
+ }, function (d, b, a) {
+ var c,
+ g,
+ l,
+ n,
+ h,
+ p,
+ m,
+ f,
+ q,
+ t,
+ A,
+ z;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.xza = void 0;
+ c = a(0);
+ g = a(1);
+ l = a(2);
+ n = a(25);
+ h = a(90);
+ p = a(100);
+ m = a(89);
+ f = a(61);
+ q = a(52);
+ t = a(42);
+ A = a(489);
+ z = a(488);
+ d = (function () {
+ var b;
+ function a(a, b, c, d, f) {
+ this.ad = a;
+ this.Vh = b;
+ this.Fc = c;
+ this.Ng = d;
+ this.Se = f;
+ }
+ a.prototype.VX = function () {
+ return !1;
+ };
+ a.prototype.vca = function () {
+ return !1;
+ };
+ a.prototype.xha = function () {
+ return this.Se.wj ? "persistent-usage-record" : "temporary";
+ };
+ a.prototype.Cga = function () {
+ return A.l6;
+ };
+ a.prototype.qha = function () {
+ return [{
+ initDataTypes: ["cenc"],
+ videoCapabilities: [{
+ contentType: "video/mp4;codecs=avc1.42E01E",
+ robustness: ""
+ }
+ ],
+ audioCapabilities: [{
+ contentType: "audio/mp4;codecs=mp4a.40.2",
+ robustness: ""
+ }
+ ],
+ distinctiveIdentifier: "not-allowed",
+ persistentState: "optional",
+ sessionTypes: ["temporary", "persistent-usage-record"]
+ }
+ ];
+ };
+ a.prototype.Py = function (a) {
+ return this.ad.ws(a.dw[0], this.Ng.decode("certificate"));
+ };
+ a.prototype.Lia = function (a) {
+ return a.hJ();
+ };
+ a.prototype.Qda = function (a) {
+ var b,
+ c;
+ c = [];
+ a.messageType === z.A7 || a.messageType === z.z7 ? (a.messageType === z.A7 ? (b = this.Ng.encode(new Uint8Array(a.message)), c = JSON.parse(b), b = c.map(function (a) {
+ return a.keyID;
+ }), c = c.map(function (a) {
+ return a.payload;
+ })) : c = [this.Fc.encode(new Uint8Array(a.message))], c = this.$Lb(c), c = this.Ng.decode(JSON.stringify(c))) : c = new Uint8Array(a.message);
+ return {
+ type: a.type,
+ sessionId: a.target.sessionId,
+ dw: [c],
+ e1: a.messageType,
+ Sv: b
+ };
+ };
+ a.prototype.tq = function (a) {
+ var b,
+ c,
+ d,
+ h;
+ c = null === (b = a.target) || void 0 === b ? void 0 : b.error;
+ c && (d = c.systemCode, h = c.code);
+ b = new m.Sf(l.J.lx, a instanceof f.rn ? l.I.IK : l.I.Yt, d ? this.Vh.zv(d, 4) : h, "", c);
+ b.iO(a);
+ return b;
+ };
+ a.prototype.$Lb = function (a) {
+ return {
+ VERSION: 1,
+ CHALLENGES: a.map(function (a, b) {
+ return {
+ ID: "ID" + (b + 1),
+ PAYLOAD: a
+ };
+ })
+ };
+ };
+ b = a;
+ return b = c.__decorate([g.N(), c.__param(0, g.l(n.hf)), c.__param(1, g.l(h.Ut)), c.__param(2, g.l(t.Ui)), c.__param(3, g.l(p.tx)), c.__param(4, g.l(q.Zl))], b);
+ })();
+ b.xza = d;
+ }, function (d, b) {
+ function a(a, b, d) {
+ var c;
+ c = this;
+ this.Fc = a;
+ this.md = b;
+ this.Ng = d;
+ this.Zqb = function (a) {
+ var b;
+ a = a.subarray(14, 30);
+ a = c.Fc.decode(String.fromCharCode.apply(null, a));
+ a = a.subarray(4);
+ b = new Uint8Array(16);
+ b.set(a);
+ return b;
+ };
+ this.x2a = {
+ m0a: 1667591779,
+ tQb: 1667392371
+ };
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Uta = void 0;
+ a.prototype.ihb = function (a, b) {
+ var c;
+ c = this.x2a.m0a;
+ b = b ? 1 : 0;
+ a = a.map(function (a) {
+ return {
+ rZb: "",
+ owb: a,
+ uG: a,
+ eKb: a,
+ mOb: [1]
+ };
+ });
+ return this.Vxb(c, b, a);
+ };
+ a.prototype.Uxb = function (a, b) {
+ var c;
+ c = new Uint8Array(4);
+ new DataView(c.buffer).setUint32(0, a);
+ return this.cka("fpsi", b, [c]);
+ };
+ a.prototype.Txb = function (a, b, d, g) {
+ a = [this.cka("fkri", 0, [a])];
+ b.byteLength && a.push(this.OP("fkai", [b]));
+ d.byteLength && a.push(this.OP("fkcx", [d]));
+ g.length && a.push(this.OP("fkvl", [new Uint8Array(new Uint32Array(g).buffer)]));
+ return this.OP("fpsk", a);
+ };
+ a.prototype.Vxb = function (a, b, d) {
+ var c;
+ c = new Uint8Array([148, 206, 134, 251, 7, 255, 79, 67, 173, 184, 147, 210, 250, 150, 140, 162]);
+ a = [this.Uxb(a, b)];
+ for (var h in d) {
+ b = d[h];
+ a.push(this.Txb(b.owb, b.uG, b.eKb, b.mOb));
+ }
+ d = this.OP("fpsd", a);
+ h = new Uint8Array(4);
+ new DataView(h.buffer).setUint32(0, d.byteLength);
+ return this.cka("pssh", 0, [c, h, d]);
+ };
+ a.prototype.cka = function (a, b, d) {
+ var c,
+ h,
+ g;
+ c = 0;
+ for (h in d) {
+ c += d[h].byteLength;
+ }
+ c = new Uint8Array(12 + c);
+ g = new DataView(c.buffer);
+ h = 0;
+ g.setUint32(h, c.byteLength);
+ h += 4;
+ c.set(this.Ng.decode(a), h);
+ h += 4;
+ g.setUint32(h, 0 | 4095 & b);
+ h += 4;
+ for (var k in d) {
+ a = d[k];
+ c.set(a, h);
+ h += a.byteLength;
+ }
+ return c;
+ };
+ a.prototype.OP = function (a, b) {
+ var c,
+ d;
+ c = 0;
+ for (d in b) {
+ c += b[d].byteLength;
+ }
+ c = new Uint8Array(8 + c);
+ d = 0;
+ new DataView(c.buffer).setUint32(d, c.byteLength);
+ d += 4;
+ c.set(this.Ng.decode(a), d);
+ d += 4;
+ for (var h in b) {
+ a = b[h];
+ c.set(a, d);
+ d += a.byteLength;
+ }
+ return c;
+ };
+ b.Uta = a;
+ }, function (d, b, a) {
+ var c,
+ g,
+ l,
+ n,
+ h,
+ p,
+ m,
+ f,
+ q,
+ t;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Vta = void 0;
+ c = a(0);
+ g = a(1);
+ l = a(260);
+ n = a(1080);
+ h = a(31);
+ p = a(21);
+ m = a(42);
+ f = a(25);
+ q = a(52);
+ t = a(100);
+ d = (function () {
+ var b;
+ function a(a, b, c, d, f, h) {
+ a = l.ku.call(this, a, b, c, d, f, h) || this;
+ a.Fc = c;
+ a.md = d;
+ a.Se = f;
+ a.Ng = h;
+ a.ZMa = new n.Uta(a.Fc, a.md, a.Ng);
+ return a;
+ }
+ N(a, l.ku);
+ a.prototype.qga = function (a, b) {
+ var c,
+ d,
+ f;
+ c = this;
+ try {
+ d = b.map(function (a) {
+ return c.ZMa.Zqb(a);
+ });
+ this.JOa = d.map(function (a) {
+ return c.Fc.encode(a);
+ });
+ f = this.ZMa.ihb(d, this.Se.wj);
+ return l.ku.prototype.qga.call(this, a, [f]);
+ } catch (S) {
+ return Promise.reject(S);
+ }
+ };
+ a.prototype.update = function (a, b) {
+ var c,
+ d,
+ f,
+ h,
+ g;
+ c = this;
+ if (b)
+ try {
+ d = this.Ng.encode(a[0]);
+ f = JSON.parse(d).RESPONSES;
+ h = f.map(function (a, d) {
+ return {
+ keyID: 1 === f.length ? c.JOa[c.JOa.length - 1] : b[d],
+ payload: f.find(function (a) {
+ return a.ID === "ID" + (d + 1);
+ }).PAYLOAD
+ };
+ });
+ g = JSON.stringify(h);
+ a = [this.Ng.decode(g)];
+ } catch (Z) {
+ return Promise.reject(Z);
+ }
+ return l.ku.prototype.update.call(this, a);
+ };
+ a.prototype.hJ = function () {
+ return l.ku.prototype.update.call(this, [this.Ng.decode("renew")]);
+ };
+ b = a;
+ return b = c.__decorate([g.N(), c.__param(0, g.l(h.AA)), c.__param(1, g.l(p.Zd)), c.__param(2, g.l(m.Ui)), c.__param(3, g.l(f.hf)), c.__param(4, g.l(q.Zl)), c.__param(5, g.l(t.tx))], b);
+ })();
+ b.Vta = d;
+ }, function (d, b, a) {
+ var c,
+ g,
+ l,
+ n,
+ h,
+ p,
+ m,
+ f,
+ q,
+ t,
+ A;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.dsa = void 0;
+ c = a(0);
+ g = a(1);
+ l = a(2);
+ n = a(25);
+ h = a(90);
+ p = a(261);
+ m = a(89);
+ f = a(61);
+ q = a(52);
+ t = a(14);
+ A = a(48);
+ d = (function () {
+ var b;
+ function a(a, b, c, d) {
+ this.ad = a;
+ this.Vh = b;
+ this.Se = c;
+ this.config = d;
+ }
+ a.prototype.VX = function () {
+ return !0;
+ };
+ a.prototype.vca = function () {
+ return !0;
+ };
+ a.prototype.xha = function () {
+ return "temporary";
+ };
+ a.prototype.Cga = function () {
+ return this.Se.xR ? this.Se.xR : "Cr0CCAMSEOVEukALwQ8307Y2+LVP+0MYh/HPkwUijgIwggEKAoIBAQDm875btoWUbGqQD8eAGuBlGY+Pxo8YF1LQR+Ex0pDONMet8EHslcZRBKNQ/09RZFTP0vrYimyYiBmk9GG+S0wB3CRITgweNE15cD33MQYyS3zpBd4z+sCJam2+jj1ZA4uijE2dxGC+gRBRnw9WoPyw7D8RuhGSJ95OEtzg3Ho+mEsxuE5xg9LM4+Zuro/9msz2bFgJUjQUVHo5j+k4qLWu4ObugFmc9DLIAohL58UR5k0XnvizulOHbMMxdzna9lwTw/4SALadEV/CZXBmswUtBgATDKNqjXwokohncpdsWSauH6vfS6FXwizQoZJ9TdjSGC60rUB2t+aYDm74cIuxAgMBAAE6EHRlc3QubmV0ZmxpeC5jb20SgAOE0y8yWw2Win6M2/bw7+aqVuQPwzS/YG5ySYvwCGQd0Dltr3hpik98WijUODUr6PxMn1ZYXOLo3eED6xYGM7Riza8XskRdCfF8xjj7L7/THPbixyn4mULsttSmWFhexzXnSeKqQHuoKmerqu0nu39iW3pcxDV/K7E6aaSr5ID0SCi7KRcL9BCUCz1g9c43sNj46BhMCWJSm0mx1XFDcoKZWhpj5FAgU4Q4e6f+S8eX39nf6D6SJRb4ap7Znzn7preIvmS93xWjm75I6UBVQGo6pn4qWNCgLYlGGCQCUm5tg566j+/g5jvYZkTJvbiZFwtjMW5njbSRwB3W4CrKoyxw4qsJNSaZRTKAvSjTKdqVDXV/U5HK7SaBA6iJ981/aforXbd2vZlRXO/2S+Maa2mHULzsD+S5l4/YGpSt7PnkCe25F+nAovtl/ogZgjMeEdFyd/9YMYjOS4krYmwp3yJ7m9ZzYCQ6I8RQN4x/yLlHG5RH/+WNLNUs6JAZ0fFdCmw=";
+ };
+ a.prototype.qha = function () {
+ var a,
+ b;
+ a = [{
+ contentType: p.Jr,
+ robustness: "HW_SECURE_DECODE"
+ }, {
+ contentType: p.Jr,
+ robustness: "SW_SECURE_DECODE"
+ }, {
+ contentType: p.Jr,
+ robustness: "SW_SECURE_CRYPTO"
+ }
+ ];
+ b = [{
+ contentType: p.Jr,
+ robustness: "SW_SECURE_CRYPTO"
+ }
+ ];
+ return [{
+ initDataTypes: ["cenc"],
+ persistentState: "required",
+ audioCapabilities: [{
+ contentType: p.gx,
+ robustness: "SW_SECURE_CRYPTO"
+ }
+ ],
+ videoCapabilities: this.config().cKa ? b : a
+ }, {
+ initDataTypes: ["cenc"],
+ persistentState: "required"
+ }
+ ];
+ };
+ a.prototype.Py = function (a) {
+ return this.ad.ws(a.dw[0], new Uint8Array([8, 4]));
+ };
+ a.prototype.Lia = function () {
+ return Promise.reject(new A.Dc(l.J.wT));
+ };
+ a.prototype.Qda = function (a) {
+ return {
+ type: a.type,
+ sessionId: a.target.sessionId,
+ dw: [new Uint8Array(a.message)],
+ e1: a.messageType
+ };
+ };
+ a.prototype.tq = function (a) {
+ var b,
+ c,
+ d;
+ b = new m.Sf(l.J.lx);
+ c = a.code;
+ null != c && void 0 !== c ? (c = parseInt(c, 10), b.Nb = 1 <= c && 9 >= c ? l.I.Yt + c : l.I.Yt) : b.Nb = a instanceof f.rn ? l.I.IK : l.I.Df;
+ try {
+ d = a.message.match(/\((\d*)\)/)[1];
+ b.xd = this.Vh.zv(d, 4);
+ } catch (S) {}
+ b.iO(a);
+ return b;
+ };
+ b = a;
+ return b = c.__decorate([g.N(), c.__param(0, g.l(n.hf)), c.__param(1, g.l(h.Ut)), c.__param(2, g.l(q.Zl)), c.__param(3, g.l(t.fd))], b);
+ })();
+ b.dsa = d;
+ }, function (d, b, a) {
+ var c,
+ g,
+ l;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Iya = void 0;
+ c = a(0);
+ g = a(1);
+ l = a(260);
+ d = (function () {
+ var b;
+ function a(a) {
+ return l.ku.apply(this, arguments) || this;
+ }
+ N(a, l.ku);
+ b = a;
+ return b = c.__decorate([g.N()], b);
+ })();
+ b.Iya = d;
+ }, function (d, b, a) {
+ var c,
+ g,
+ l,
+ n,
+ h,
+ p,
+ m,
+ f,
+ q,
+ t,
+ A;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.zta = void 0;
+ c = a(0);
+ g = a(1);
+ l = a(2);
+ n = a(90);
+ h = a(42);
+ p = a(261);
+ m = a(89);
+ f = a(88);
+ q = a(52);
+ t = a(61);
+ A = a(48);
+ d = (function () {
+ var b;
+ function a(a, b, c) {
+ this.Vh = a;
+ this.Fc = b;
+ this.Se = c;
+ }
+ a.prototype.VX = function () {
+ return !0;
+ };
+ a.prototype.vca = function () {
+ return !1;
+ };
+ a.prototype.xha = function (a) {
+ return this.Se.wj && a === f.Aj.cm ? "persistent-usage-record" : "temporary";
+ };
+ a.prototype.Cga = function () {
+ if (this.Se.xR)
+ return this.Se.xR;
+ };
+ a.prototype.qha = function () {
+ return [{
+ initDataTypes: ["cenc"],
+ audioCapabilities: [{
+ contentType: p.gx
+ }
+ ],
+ videoCapabilities: [{
+ contentType: p.Jr
+ }
+ ],
+ sessionTypes: ["temporary", "persistent-usage-record"]
+ }
+ ];
+ };
+ a.prototype.Py = function () {
+ return !1;
+ };
+ a.prototype.Lia = function () {
+ return Promise.reject(new A.Dc(l.J.wT));
+ };
+ a.prototype.Qda = function (a) {
+ var b;
+ b = new Uint8Array(a.message);
+ b = this.Hfa(b, "PlayReadyKeyMessage", "Challenge");
+ b = this.Fc.decode(b);
+ return {
+ type: a.type,
+ sessionId: a.target.sessionId,
+ dw: [b],
+ e1: a.messageType
+ };
+ };
+ a.prototype.tq = function (a) {
+ var b,
+ c;
+ b = new m.Sf(l.J.lx);
+ c = a.code;
+ null != c && void 0 !== c ? (c = parseInt(c, 10), b.Nb = 1 <= c && 9 >= c ? l.I.Yt + c : l.I.Yt) : b.Nb = a instanceof t.rn ? l.I.IK : l.I.Df;
+ try {
+ b.xd = this.Vh.zv(a.target && a.target.error && a.target.error.systemCode, 4);
+ } catch (T) {}
+ b.iO(a);
+ return b;
+ };
+ a.prototype.Hfa = function (a, b) {
+ var c,
+ d,
+ f,
+ h;
+ for (var c = 1; c < arguments.length; ++c) { ;
+ }
+ for (c = 1; c < arguments.length; c++) { ;
+ }
+ c = "";
+ f = a.length;
+ for (d = 0; d < f; d++) {
+ h = a[d];
+ 0 < h && (c += String.fromCharCode(h));
+ }
+ f = "\\s*(.*)\\s*";
+ for (d = arguments.length - 1; 0 < d; d--) {
+ h = arguments[d];
+ if (0 > c.search(h))
+ return "";
+ h = "(?:[^:].*:|)" + h;
+ f = "[\\s\\S]*<" + h + "[^>]*>" + f + "" + h + ">[\\s\\S]*";
+ }
+ return (c = c.match(new RegExp(f))) ? c[1] : "";
+ };
+ b = a;
+ return b = c.__decorate([g.N(), c.__param(0, g.l(n.Ut)), c.__param(1, g.l(h.Ui)), c.__param(2, g.l(q.Zl))], b);
+ })();
+ b.zta = d;
+ }, function (d, b, a) {
+ var c,
+ g,
+ l,
+ n,
+ h,
+ p,
+ m,
+ f,
+ q,
+ t,
+ A,
+ z,
+ C,
+ M,
+ H,
+ G,
+ E,
+ S,
+ N,
+ Z,
+ B;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.vwa = void 0;
+ c = a(0);
+ g = a(1);
+ l = a(2);
+ n = a(7);
+ h = a(89);
+ p = a(140);
+ m = a(1084);
+ f = a(1083);
+ q = a(1082);
+ t = a(260);
+ A = a(25);
+ z = a(90);
+ C = a(42);
+ M = a(21);
+ H = a(31);
+ G = a(1081);
+ E = a(1079);
+ S = a(100);
+ N = a(14);
+ Z = a(141);
+ B = a(52);
+ d = (function () {
+ var b;
+ function a(a, b, c, d, f, h, g, k, l) {
+ this.Sq = a;
+ this.ad = b;
+ this.Ng = c;
+ this.Vh = d;
+ this.Fc = f;
+ this.is = h;
+ this.gQ = g;
+ this.config = k;
+ this.Se = l;
+ this.log = this.Sq.xb("MediaKeySystemAccessServices");
+ }
+ a.prototype.BH = function () {
+ this.qt || (this.qt = this.lHb());
+ return this.qt;
+ };
+ a.prototype.Ajb = function (a) {
+ var b;
+ b = this;
+ return new Promise(function (c, d) {
+ var f,
+ g;
+ f = Z.rb.Hga(a);
+ g = b.gLa(f);
+ f = b.cLa(f);
+ g.CGb(a, f.qha()).then(function (d) {
+ b.log.trace("Created the media keys system access", {
+ keySystem: a,
+ supportedconfig: d.getConfiguration ? JSON.stringify(d.getConfiguration()) : void 0
+ });
+ c(d);
+ })["catch"](function (c) {
+ b.log.error("Unable to create the media key system access object", {
+ keySystem: a,
+ error: c.message
+ });
+ d(new h.Sf(l.J.ota, l.I.Df, void 0, "Unable to create media keys system access. " + c.message, c));
+ });
+ });
+ };
+ a.prototype.Eq = function () {
+ var a;
+ a = this;
+ return this.BH().then(function (b) {
+ return a.dLa(b);
+ });
+ };
+ a.prototype.uqb = function () {
+ var a,
+ b;
+ a = this;
+ b = this.config().KOa || [this.config().he];
+ if (1 < b.length)
+ return this.BH().then(function (b) {
+ return a.dLa(b);
+ }).then(function (a) {
+ return Z.rb.bLa(a);
+ });
+ b = Z.rb.Hga(b[0]);
+ return Promise.resolve(Z.rb.bLa(b));
+ };
+ a.prototype.vqb = function () {
+ var a;
+ a = this;
+ return this.Eq().then(function (b) {
+ return a.cLa(b);
+ });
+ };
+ a.prototype.wqb = function () {
+ var a;
+ a = this;
+ return this.Eq().then(function (b) {
+ return a.gLa(b);
+ });
+ };
+ a.prototype.dLa = function (a) {
+ return Z.rb.Hga(a.keySystem);
+ };
+ a.prototype.cLa = function (a) {
+ switch (a) {
+ case p.en.tD:
+ return new m.zta(this.Vh, this.Fc, this.Se);
+ case p.en.jC:
+ return new E.xza(this.ad, this.Vh, this.Fc, this.Ng, this.Se);
+ default:
+ return new q.dsa(this.ad, this.Vh, this.Se, this.config);
+ }
+ };
+ a.prototype.gLa = function (a) {
+ switch (a) {
+ case p.en.tD:
+ return new f.Iya(this.gQ, this.is, this.Fc, this.ad, this.Se, this.Ng);
+ case p.en.jC:
+ return new G.Vta(this.gQ, this.is, this.Fc, this.ad, this.Se, this.Ng);
+ default:
+ return new t.ku(this.gQ, this.is, this.Fc, this.ad, this.Se, this.Ng);
+ }
+ };
+ a.prototype.lHb = function () {
+ var a,
+ b;
+ a = this;
+ b = (this.config().KOa || [this.config().he]).map(function (b) {
+ return function () {
+ return a.Ajb(b);
+ };
+ });
+ return this.mHb(b);
+ };
+ a.prototype.mHb = function (a) {
+ return a.reduce(function (a, b) {
+ return a.then(function (a) {
+ return Promise.resolve(a);
+ })["catch"](function () {
+ return b();
+ });
+ }, Promise.reject(Error("keySystem missing")));
+ };
+ b = a;
+ return b = c.__decorate([g.N(), c.__param(0, g.l(n.Jb)), c.__param(1, g.l(A.hf)), c.__param(2, g.l(S.tx)), c.__param(3, g.l(z.Ut)), c.__param(4, g.l(C.Ui)), c.__param(5, g.l(M.Zd)), c.__param(6, g.l(H.AA)), c.__param(7, g.l(N.fd)), c.__param(8, g.l(B.Zl))], b);
+ })();
+ b.vwa = d;
+ }, function (d, b, a) {
+ d = a(20);
+ a = a(493);
+ d.sb.from = a.from;
+ }, function (d, b) {
+ b.f0 = function (a) {
+ return a instanceof Date && !isNaN(+a);
+ };
+ }, function (d, b, a) {
+ d = a(502);
+ a = a(501);
+ b.async = new a.mra(d.jra);
+ }, function (d, b, a) {
+ var c;
+ c = a(182);
+ b.Fvb = function (a) {
+ return !c.isArray(a) && 0 <= a - parseFloat(a) + 1;
+ };
+ }, function (d, b, a) {
+ var c,
+ g,
+ l,
+ n,
+ h;
+ c = this && this.__extends || (function (a, b) {
+ function c() {
+ this.constructor = a;
+ }
+ for (var d in b) {
+ b.hasOwnProperty(d) && (a[d] = b[d]);
+ }
+ a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c());
+ });
+ g = a(1089);
+ d = a(20);
+ l = a(1088);
+ n = a(263);
+ h = a(1087);
+ a = (function (a) {
+ function b(b, c, d) {
+ void 0 === b && (b = 0);
+ a.call(this);
+ this.e2 = -1;
+ this.LIa = 0;
+ g.Fvb(c) ? this.e2 = 1 > Number(c) && 1 || Number(c) : n.q0(c) && (d = c);
+ n.q0(d) || (d = l.async);
+ this.ya = d;
+ this.LIa = h.f0(b) ? +b - this.ya.now() : b;
+ }
+ c(b, a);
+ b.create = function (a, c, d) {
+ void 0 === a && (a = 0);
+ return new b(a, c, d);
+ };
+ b.zc = function (a) {
+ var b,
+ c,
+ d;
+ b = a.index;
+ c = a.e2;
+ d = a.xj;
+ d.next(b);
+ if (!d.closed) {
+ if (-1 === c)
+ return d.complete();
+ a.index = b + 1;
+ this.Pc(a, c);
+ }
+ };
+ b.prototype.im = function (a) {
+ return this.ya.Pc(b.zc, this.LIa, {
+ index: 0,
+ e2: this.e2,
+ xj: a
+ });
+ };
+ return b;
+ })(d.sb);
+ b.a7a = a;
+ }, function (d, b, a) {
+ d = a(1090);
+ b.$m = d.a7a.create;
+ }, function (d, b, a) {
+ d = a(20);
+ a = a(1091);
+ d.sb.$m = a.$m;
+ }, function (d, b, a) {
+ d = a(20);
+ a = a(495);
+ d.sb.of = a.of;
+ }, function (d, b, a) {
+ var c,
+ g,
+ l,
+ n,
+ h,
+ p;
+ c = this && this.__extends || (function (a, b) {
+ function c() {
+ this.constructor = a;
+ }
+ for (var d in b) {
+ b.hasOwnProperty(d) && (a[d] = b[d]);
+ }
+ a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c());
+ });
+ g = a(182);
+ l = a(262);
+ d = a(181);
+ n = a(180);
+ b.race = function () {
+ for (var a = [], b = 0; b < arguments.length; b++) {
+ a[b - 0] = arguments[b];
+ }
+ if (1 === a.length)
+ if (g.isArray(a[0]))
+ a = a[0];
+ else
+ return a[0];
+ return new l.R4(a).Rq(new h());
+ };
+ h = (function () {
+ function a() {}
+ a.prototype.call = function (a, b) {
+ return b.subscribe(new p(a));
+ };
+ return a;
+ })();
+ b.zUb = h;
+ p = (function (a) {
+ function b(b) {
+ a.call(this, b);
+ this.Sha = !1;
+ this.ula = [];
+ this.RR = [];
+ }
+ c(b, a);
+ b.prototype.tl = function (a) {
+ this.ula.push(a);
+ };
+ b.prototype.$d = function () {
+ var a,
+ b,
+ d;
+ a = this.ula;
+ b = a.length;
+ if (0 === b)
+ this.destination.complete();
+ else {
+ for (var c = 0; c < b && !this.Sha; c++) {
+ d = a[c];
+ d = n.Y3(this, d, d, c);
+ this.RR && this.RR.push(d);
+ this.add(d);
+ }
+ this.ula = null;
+ }
+ };
+ b.prototype.K1 = function (a, b, c) {
+ var d;
+ if (!this.Sha) {
+ this.Sha = !0;
+ for (a = 0; a < this.RR.length; a++) {
+ if (a !== c) {
+ d = this.RR[a];
+ d.unsubscribe();
+ this.remove(d);
+ }
+ }
+ this.RR = null;
+ }
+ this.destination.next(b);
+ };
+ return b;
+ })(d.xU);
+ b.AUb = p;
+ }, function (d, b, a) {
+ d = a(20);
+ a = a(1094);
+ d.sb.race = a.race;
+ }, function (d, b, a) {
+ d = a(492);
+ b.Hs = d.Tya.create;
+ }, function (d, b, a) {
+ d = a(20);
+ a = a(1096);
+ d.sb.Hs = a.Hs;
+ }, function (d, b, a) {
+ d = a(179);
+ b.empty = d.yT.create;
+ }, function (d, b, a) {
+ d = a(20);
+ a = a(1098);
+ d.sb.empty = a.empty;
+ }, function (d, b, a) {
+ var c;
+ c = a(497);
+ b.Zgb = function () {
+ return c.VC(1);
+ };
+ }, function (d, b, a) {
+ var c,
+ g,
+ l;
+ c = this && this.__extends || (function (a, b) {
+ function c() {
+ this.constructor = a;
+ }
+ for (var d in b) {
+ b.hasOwnProperty(d) && (a[d] = b[d]);
+ }
+ a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c());
+ });
+ d = a(20);
+ g = a(494);
+ l = a(179);
+ a = (function (a) {
+ function b(b, c) {
+ a.call(this);
+ this.kca = b;
+ (this.ya = c) || 1 !== b.length || (this.yu = !0, this.value = b[0]);
+ }
+ c(b, a);
+ b.create = function (a, c) {
+ var d;
+ d = a.length;
+ return 0 === d ? new l.yT() : 1 === d ? new g.zza(a[0], c) : new b(a, c);
+ };
+ b.zc = function (a) {
+ var b,
+ c,
+ d;
+ b = a.kca;
+ c = a.index;
+ d = a.xj;
+ d.closed || (c >= a.length ? d.complete() : (d.next(b[c]), a.index = c + 1, this.Pc(a)));
+ };
+ b.prototype.im = function (a) {
+ var c,
+ d,
+ h;
+ c = this.kca;
+ d = this.ya;
+ h = c.length;
+ if (d)
+ return d.Pc(b.zc, 0, {
+ kca: c,
+ index: 0,
+ length: h,
+ xj: a
+ });
+ for (d = 0; d < h && !a.closed; d++) {
+ a.next(c[d]);
+ }
+ a.complete();
+ };
+ return b;
+ })(d.sb);
+ b.u_a = a;
+ }, function (d, b, a) {
+ var c,
+ g,
+ l,
+ n,
+ h,
+ p;
+ c = this && this.__extends || (function (a, b) {
+ function c() {
+ this.constructor = a;
+ }
+ for (var d in b) {
+ b.hasOwnProperty(d) && (a[d] = b[d]);
+ }
+ a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c());
+ });
+ g = a(86);
+ d = a(20);
+ l = a(264);
+ a = (function (a) {
+ function b(b, c) {
+ a.call(this);
+ this.ya = c;
+ if (null == b)
+ throw Error("iterator cannot be null.");
+ if ((c = b[l.iterator]) || "string" !== typeof b) {
+ if (c || void 0 === b.length) {
+ if (!c)
+ throw new TypeError("object is not iterable");
+ b = b[l.iterator]();
+ } else
+ b = new h(b);
+ } else
+ b = new n(b);
+ this.iterator = b;
+ }
+ c(b, a);
+ b.create = function (a, c) {
+ return new b(a, c);
+ };
+ b.zc = function (a) {
+ var b,
+ c,
+ d,
+ f;
+ b = a.index;
+ c = a.iterator;
+ d = a.xj;
+ if (a.eP)
+ d.error(a.error);
+ else {
+ f = c.next();
+ f.done ? d.complete() : (d.next(f.value), a.index = b + 1, d.closed ? "function" === typeof c["return"] && c["return"]() : this.Pc(a));
+ }
+ };
+ b.prototype.im = function (a) {
+ var c,
+ d;
+ c = this.iterator;
+ d = this.ya;
+ if (d)
+ return d.Pc(b.zc, 0, {
+ index: 0,
+ iterator: c,
+ xj: a
+ });
+ do {
+ d = c.next();
+ if (d.done) {
+ a.complete();
+ break;
+ } else
+ a.next(d.value);
+ if (a.closed) {
+ "function" === typeof c["return"] && c["return"]();
+ break;
+ }
+ } while (1);
+ };
+ return b;
+ })(d.sb);
+ b.T3a = a;
+ n = (function () {
+ function a(a, b, c) {
+ void 0 === b && (b = 0);
+ void 0 === c && (c = a.length);
+ this.Hz = a;
+ this.nP = b;
+ this.Dja = c;
+ }
+ a.prototype[l.iterator] = function () {
+ return this;
+ };
+ a.prototype.next = function () {
+ return this.nP < this.Dja ? {
+ done: !1,
+ value: this.Hz.charAt(this.nP++)
+ }
+ : {
+ done: !0,
+ value: void 0
+ };
+ };
+ return a;
+ })();
+ h = (function () {
+ function a(a, b, c) {
+ var d;
+ void 0 === b && (b = 0);
+ if (void 0 === c)
+ if ((c = +a.length, isNaN(c)))
+ c = 0;
+ else if (0 !== c && "number" === typeof c && g.root.isFinite(c)) {
+ d = +c;
+ c = (0 === d || isNaN(d) ? d : 0 > d ? -1 : 1) * Math.floor(Math.abs(c));
+ c = 0 >= c ? 0 : c > p ? p : c;
+ }
+ this.kdb = a;
+ this.nP = b;
+ this.Dja = c;
+ }
+ a.prototype[l.iterator] = function () {
+ return this;
+ };
+ a.prototype.next = function () {
+ return this.nP < this.Dja ? {
+ done: !1,
+ value: this.kdb[this.nP++]
+ }
+ : {
+ done: !0,
+ value: void 0
+ };
+ };
+ return a;
+ })();
+ p = Math.pow(2, 53) - 1;
+ }, function (d, b, a) {
+ var c,
+ g,
+ l,
+ n,
+ h,
+ p,
+ m,
+ f,
+ q,
+ t,
+ A,
+ z;
+ c = this && this.__extends || (function (a, b) {
+ function c() {
+ this.constructor = a;
+ }
+ for (var d in b) {
+ b.hasOwnProperty(d) && (a[d] = b[d]);
+ }
+ a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c());
+ });
+ g = a(182);
+ l = a(499);
+ n = a(498);
+ h = a(492);
+ p = a(1102);
+ m = a(262);
+ f = a(1101);
+ q = a(264);
+ t = a(20);
+ A = a(500);
+ z = a(265);
+ d = (function (a) {
+ function b(b, c) {
+ a.call(this, null);
+ this.bwb = b;
+ this.ya = c;
+ }
+ c(b, a);
+ b.create = function (a, c) {
+ if (null != a) {
+ if ("function" === typeof a[z.observable])
+ return a instanceof t.sb && !c ? a : new b(a, c);
+ if (g.isArray(a))
+ return new m.R4(a, c);
+ if (n.mOa(a))
+ return new h.Tya(a, c);
+ if ("function" === typeof a[q.iterator] || "string" === typeof a)
+ return new p.T3a(a, c);
+ if (l.ONa(a))
+ return new f.u_a(a, c);
+ }
+ throw new TypeError((null !== a && typeof a || a) + " is not observable");
+ };
+ b.prototype.im = function (a) {
+ var b,
+ c;
+ b = this.bwb;
+ c = this.ya;
+ return null == c ? b[z.observable]().subscribe(a) : b[z.observable]().subscribe(new A.dxa(a, c, 0));
+ };
+ return b;
+ })(t.sb);
+ b.y2a = d;
+ }, function (d, b, a) {
+ var c,
+ g,
+ l,
+ n;
+ c = a(263);
+ g = a(495);
+ l = a(493);
+ n = a(1100);
+ b.concat = function () {
+ for (var a = [], b = 0; b < arguments.length; b++) {
+ a[b - 0] = arguments[b];
+ }
+ return 1 === a.length || 2 === a.length && c.q0(a[1]) ? l.from(a[0]) : n.Zgb()(g.of.apply(void 0, a));
+ };
+ }, function (d, b, a) {
+ d = a(20);
+ a = a(1104);
+ d.sb.concat = a.concat;
+ }, function () {}, function (d, b, a) {
+ var c,
+ g,
+ l,
+ n;
+ c = this && this.__extends || (function (a, b) {
+ function c() {
+ this.constructor = a;
+ }
+ for (var d in b) {
+ b.hasOwnProperty(d) && (a[d] = b[d]);
+ }
+ a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c());
+ });
+ d = a(181);
+ g = a(180);
+ b.dS = function (a) {
+ return function (b) {
+ return b.Rq(new l(a));
+ };
+ };
+ l = (function () {
+ function a(a) {
+ this.Va = a;
+ }
+ a.prototype.call = function (a, b) {
+ return b.subscribe(new n(a, this.Va));
+ };
+ return a;
+ })();
+ n = (function (a) {
+ function b(b, c) {
+ a.call(this, b);
+ this.Va = c;
+ this.add(g.Y3(this, c));
+ }
+ c(b, a);
+ b.prototype.K1 = function () {
+ this.complete();
+ };
+ b.prototype.dt = function () {};
+ return b;
+ })(d.xU);
+ }, function (d, b, a) {
+ var c;
+ c = a(1107);
+ b.dS = function (a) {
+ return c.dS(a)(this);
+ };
+ }, function (d, b, a) {
+ d = a(20);
+ a = a(1108);
+ d.sb.prototype.dS = a.dS;
+ }, function (d, b) {
+ var a;
+ a = this && this.__extends || (function (a, b) {
+ function c() {
+ this.constructor = a;
+ }
+ for (var d in b) {
+ b.hasOwnProperty(d) && (a[d] = b[d]);
+ }
+ a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c());
+ });
+ d = (function (b) {
+ function c() {
+ var a;
+ a = b.call(this, "argument out of range");
+ this.name = a.name = "ArgumentOutOfRangeError";
+ this.stack = a.stack;
+ this.message = a.message;
+ }
+ a(c, b);
+ return c;
+ })(Error);
+ b.p_a = d;
+ }, function (d, b, a) {
+ var c,
+ g,
+ l,
+ n,
+ h;
+ c = this && this.__extends || (function (a, b) {
+ function c() {
+ this.constructor = a;
+ }
+ for (var d in b) {
+ b.hasOwnProperty(d) && (a[d] = b[d]);
+ }
+ a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c());
+ });
+ d = a(69);
+ g = a(1110);
+ l = a(179);
+ b.cS = function (a) {
+ return function (b) {
+ return 0 === a ? new l.yT() : b.Rq(new n(a));
+ };
+ };
+ n = (function () {
+ function a(a) {
+ this.total = a;
+ if (0 > this.total)
+ throw new g.p_a();
+ }
+ a.prototype.call = function (a, b) {
+ return b.subscribe(new h(a, this.total));
+ };
+ return a;
+ })();
+ h = (function (a) {
+ function b(b, c) {
+ a.call(this, b);
+ this.total = c;
+ this.count = 0;
+ }
+ c(b, a);
+ b.prototype.tl = function (a) {
+ var b,
+ c;
+ b = this.total;
+ c = ++this.count;
+ c <= b && (this.destination.next(a), c === b && (this.destination.complete(), this.unsubscribe()));
+ };
+ return b;
+ })(d.qn);
+ }, function (d, b, a) {
+ var c;
+ c = a(1111);
+ b.cS = function (a) {
+ return c.cS(a)(this);
+ };
+ }, function (d, b, a) {
+ d = a(20);
+ a = a(1112);
+ d.sb.prototype.cS = a.cS;
+ }, function (d, b, a) {
+ var c,
+ g,
+ l;
+ c = this && this.__extends || (function (a, b) {
+ function c() {
+ this.constructor = a;
+ }
+ for (var d in b) {
+ b.hasOwnProperty(d) && (a[d] = b[d]);
+ }
+ a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c());
+ });
+ d = a(69);
+ b.KR = function (a) {
+ return function (b) {
+ return b.Rq(new g(a));
+ };
+ };
+ g = (function () {
+ function a(a) {
+ this.rz = a;
+ }
+ a.prototype.call = function (a, b) {
+ return b.subscribe(new l(a, this.rz));
+ };
+ return a;
+ })();
+ l = (function (a) {
+ function b(b, c) {
+ a.call(this, b);
+ this.rz = c;
+ this.Poa = !0;
+ this.index = 0;
+ }
+ c(b, a);
+ b.prototype.tl = function (a) {
+ var b;
+ b = this.destination;
+ this.Poa && this.EMb(a);
+ this.Poa || b.next(a);
+ };
+ b.prototype.EMb = function (a) {
+ try {
+ this.Poa = !!this.rz(a, this.index++);
+ } catch (m) {
+ this.destination.error(m);
+ }
+ };
+ return b;
+ })(d.qn);
+ }, function (d, b, a) {
+ var c;
+ c = a(1114);
+ b.KR = function (a) {
+ return c.KR(a)(this);
+ };
+ }, function (d, b, a) {
+ d = a(20);
+ a = a(1115);
+ d.sb.prototype.KR = a.KR;
+ }, function (d, b, a) {
+ var c;
+ c = a(496);
+ b.qI = function (a, b, d) {
+ void 0 === d && (d = Number.POSITIVE_INFINITY);
+ return c.qI(a, b, d)(this);
+ };
+ }, function (d, b, a) {
+ d = a(20);
+ a = a(1117);
+ d.sb.prototype.qI = a.qI;
+ d.sb.prototype.Gs = a.qI;
+ }, function (d, b) {
+ b.jub = function (a) {
+ return a;
+ };
+ }, function (d, b, a) {
+ var c;
+ c = a(497);
+ b.VC = function (a) {
+ void 0 === a && (a = Number.POSITIVE_INFINITY);
+ return c.VC(a)(this);
+ };
+ }, function (d, b, a) {
+ d = a(20);
+ a = a(1120);
+ d.sb.prototype.VC = a.VC;
+ }, function (d, b, a) {
+ var c,
+ g,
+ l;
+ c = this && this.__extends || (function (a, b) {
+ function c() {
+ this.constructor = a;
+ }
+ for (var d in b) {
+ b.hasOwnProperty(d) && (a[d] = b[d]);
+ }
+ a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c());
+ });
+ d = a(69);
+ b.map = function (a, b) {
+ return function (c) {
+ if ("function" !== typeof a)
+ throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");
+ return c.Rq(new g(a, b));
+ };
+ };
+ g = (function () {
+ function a(a, b) {
+ this.wD = a;
+ this.npa = b;
+ }
+ a.prototype.call = function (a, b) {
+ return b.subscribe(new l(a, this.wD, this.npa));
+ };
+ return a;
+ })();
+ b.OSb = g;
+ l = (function (a) {
+ function b(b, c, d) {
+ a.call(this, b);
+ this.wD = c;
+ this.count = 0;
+ this.npa = d || this;
+ }
+ c(b, a);
+ b.prototype.tl = function (a) {
+ var b;
+ try {
+ b = this.wD.call(this.npa, a, this.count++);
+ } catch (f) {
+ this.destination.error(f);
+ return;
+ }
+ this.destination.next(b);
+ };
+ return b;
+ })(d.qn);
+ }, function (d, b, a) {
+ var c;
+ c = a(1122);
+ b.map = function (a, b) {
+ return c.map(a, b)(this);
+ };
+ }, function (d, b, a) {
+ d = a(20);
+ a = a(1123);
+ d.sb.prototype.map = a.map;
+ }, function (d, b) {
+ var a;
+ a = this && this.__extends || (function (a, b) {
+ function c() {
+ this.constructor = a;
+ }
+ for (var d in b) {
+ b.hasOwnProperty(d) && (a[d] = b[d]);
+ }
+ a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c());
+ });
+ d = (function (b) {
+ function c() {
+ var a;
+ a = b.call(this, "no elements in sequence");
+ this.name = a.name = "EmptyError";
+ this.stack = a.stack;
+ this.message = a.message;
+ }
+ a(c, b);
+ return c;
+ })(Error);
+ b.m2a = d;
+ }, function (d, b, a) {
+ var c,
+ g,
+ l,
+ n;
+ c = this && this.__extends || (function (a, b) {
+ function c() {
+ this.constructor = a;
+ }
+ for (var d in b) {
+ b.hasOwnProperty(d) && (a[d] = b[d]);
+ }
+ a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c());
+ });
+ d = a(69);
+ g = a(1125);
+ b.$h = function (a, b, c) {
+ return function (d) {
+ return d.Rq(new l(a, b, c, d));
+ };
+ };
+ l = (function () {
+ function a(a, b, c, d) {
+ this.rz = a;
+ this.At = b;
+ this.defaultValue = c;
+ this.source = d;
+ }
+ a.prototype.call = function (a, b) {
+ return b.subscribe(new n(a, this.rz, this.At, this.defaultValue, this.source));
+ };
+ return a;
+ })();
+ n = (function (a) {
+ function b(b, c, d, h, g) {
+ a.call(this, b);
+ this.rz = c;
+ this.At = d;
+ this.defaultValue = h;
+ this.source = g;
+ this.NH = !1;
+ this.index = 0;
+ "undefined" !== typeof h && (this.D0 = h, this.NH = !0);
+ }
+ c(b, a);
+ b.prototype.tl = function (a) {
+ var b;
+ b = this.index++;
+ this.rz ? this.ubb(a, b) : this.At ? this.$Da(a, b) : (this.D0 = a, this.NH = !0);
+ };
+ b.prototype.ubb = function (a, b) {
+ var c;
+ try {
+ c = this.rz(a, b, this.source);
+ } catch (w) {
+ this.destination.error(w);
+ return;
+ }
+ c && (this.At ? this.$Da(a, b) : (this.D0 = a, this.NH = !0));
+ };
+ b.prototype.$Da = function (a, b) {
+ var c;
+ try {
+ c = this.At(a, b);
+ } catch (w) {
+ this.destination.error(w);
+ return;
+ }
+ this.D0 = c;
+ this.NH = !0;
+ };
+ b.prototype.$d = function () {
+ var a;
+ a = this.destination;
+ this.NH ? (a.next(this.D0), a.complete()) : a.error(new g.m2a());
+ };
+ return b;
+ })(d.qn);
+ }, function (d, b, a) {
+ var c;
+ c = a(1126);
+ b.$h = function (a, b, d) {
+ return c.$h(a, b, d)(this);
+ };
+ }, function (d, b, a) {
+ d = a(20);
+ a = a(1127);
+ d.sb.prototype.$h = a.$h;
+ }, function (d, b, a) {
+ var c,
+ g,
+ l,
+ n;
+ c = this && this.__extends || (function (a, b) {
+ function c() {
+ this.constructor = a;
+ }
+ for (var d in b) {
+ b.hasOwnProperty(d) && (a[d] = b[d]);
+ }
+ a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c());
+ });
+ g = a(69);
+ b.uLb = function (a, b, c) {
+ return function (d) {
+ return d.Rq(new l(a, b, c));
+ };
+ };
+ l = (function () {
+ function a(a, b, c) {
+ this.gAb = a;
+ this.error = b;
+ this.complete = c;
+ }
+ a.prototype.call = function (a, b) {
+ return b.subscribe(new n(a, this.gAb, this.error, this.complete));
+ };
+ return a;
+ })();
+ n = (function (a) {
+ function b(b, c, d, h) {
+ a.call(this, b);
+ b = new g.qn(c, d, h);
+ b.Ym = !0;
+ this.add(b);
+ this.Ena = b;
+ }
+ c(b, a);
+ b.prototype.tl = function (a) {
+ var b;
+ b = this.Ena;
+ b.next(a);
+ b.YD ? this.destination.error(b.ZD) : this.destination.next(a);
+ };
+ b.prototype.jf = function (a) {
+ var b;
+ b = this.Ena;
+ b.error(a);
+ b.YD ? this.destination.error(b.ZD) : this.destination.error(a);
+ };
+ b.prototype.$d = function () {
+ var a;
+ a = this.Ena;
+ a.complete();
+ a.YD ? this.destination.error(a.ZD) : this.destination.complete();
+ };
+ return b;
+ })(g.qn);
+ }, function (d, b, a) {
+ var c;
+ c = a(1129);
+ b.caa = function (a, b, d) {
+ return c.uLb(a, b, d)(this);
+ };
+ }, function (d, b, a) {
+ d = a(20);
+ a = a(1130);
+ d.sb.prototype.IY = a.caa;
+ d.sb.prototype.caa = a.caa;
+ }, function (d, b, a) {
+ var c;
+ c = this && this.__extends || (function (a, b) {
+ function c() {
+ this.constructor = a;
+ }
+ for (var d in b) {
+ b.hasOwnProperty(d) && (a[d] = b[d]);
+ }
+ a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c());
+ });
+ d = (function (a) {
+ function b(b, c, d) {
+ a.call(this);
+ this.parent = b;
+ this.UBb = c;
+ this.TBb = d;
+ this.index = 0;
+ }
+ c(b, a);
+ b.prototype.tl = function (a) {
+ this.parent.K1(this.UBb, a, this.TBb, this.index++, this);
+ };
+ b.prototype.jf = function (a) {
+ this.parent.uAb(a);
+ this.unsubscribe();
+ };
+ b.prototype.$d = function () {
+ this.parent.dt(this);
+ this.unsubscribe();
+ };
+ return b;
+ })(a(69).qn);
+ b.gva = d;
+ }, function (d, b, a) {
+ var c,
+ g,
+ l,
+ n;
+ c = this && this.__extends || (function (a, b) {
+ function c() {
+ this.constructor = a;
+ }
+ for (var d in b) {
+ b.hasOwnProperty(d) && (a[d] = b[d]);
+ }
+ a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c());
+ });
+ d = a(181);
+ g = a(180);
+ b.Gfb = function (a) {
+ return function (b) {
+ var c;
+ c = new l(a);
+ b = b.Rq(c);
+ return c.$ca = b;
+ };
+ };
+ l = (function () {
+ function a(a) {
+ this.aoa = a;
+ }
+ a.prototype.call = function (a, b) {
+ return b.subscribe(new n(a, this.aoa, this.$ca));
+ };
+ return a;
+ })();
+ n = (function (a) {
+ function b(b, c, d) {
+ a.call(this, b);
+ this.aoa = c;
+ this.$ca = d;
+ }
+ c(b, a);
+ b.prototype.error = function (b) {
+ var c;
+ if (!this.Hg) {
+ c = void 0;
+ try {
+ c = this.aoa(b, this.$ca);
+ } catch (u) {
+ a.prototype.error.call(this, u);
+ return;
+ }
+ this.wbb();
+ this.add(g.Y3(this, c));
+ }
+ };
+ return b;
+ })(d.xU);
+ }, function (d, b, a) {
+ var c;
+ c = a(1133);
+ b.Q$ = function (a) {
+ return c.Gfb(a)(this);
+ };
+ }, function (d, b, a) {
+ d = a(20);
+ a = a(1134);
+ d.sb.prototype["catch"] = a.Q$;
+ d.sb.prototype.Q$ = a.Q$;
+ }, function (d, b, a) {
+ a(20);
+ d = (function () {
+ function a(a, b, c) {
+ this.kind = a;
+ this.value = b;
+ this.error = c;
+ this.NH = "N" === a;
+ }
+ a.prototype.observe = function (a) {
+ switch (this.kind) {
+ case "N":
+ return a.next && a.next(this.value);
+ case "E":
+ return a.error && a.error(this.error);
+ case "C":
+ return a.complete && a.complete();
+ }
+ };
+ a.prototype.IY = function (a, b, c) {
+ switch (this.kind) {
+ case "N":
+ return a && a(this.value);
+ case "E":
+ return b && b(this.error);
+ case "C":
+ return c && c();
+ }
+ };
+ a.prototype.accept = function (a, b, c) {
+ return a && "function" === typeof a.next ? this.observe(a) : this.IY(a, b, c);
+ };
+ a.Ijb = function (b) {
+ return "undefined" !== typeof b ? new a("N", b) : a.OMb;
+ };
+ a.tjb = function (b) {
+ return new a("E", void 0, b);
+ };
+ a.ijb = function () {
+ return a.Qgb;
+ };
+ a.Qgb = new a("C");
+ a.OMb = new a("N", void 0);
+ return a;
+ })();
+ b.Notification = d;
+ }, function (d, b) {
+ d = (function () {
+ function a(b, d) {
+ void 0 === d && (d = a.now);
+ this.M6a = b;
+ this.now = d;
+ }
+ a.prototype.Pc = function (a, b, d) {
+ void 0 === b && (b = 0);
+ return new this.M6a(this, a).Pc(d, b);
+ };
+ a.now = Date.now ? Date.now : function () {
+ return +new Date();
+ };
+ return a;
+ })();
+ b.L6a = d;
+ }, function (d, b, a) {
+ var c;
+ c = this && this.__extends || (function (a, b) {
+ function c() {
+ this.constructor = a;
+ }
+ for (var d in b) {
+ b.hasOwnProperty(d) && (a[d] = b[d]);
+ }
+ a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c());
+ });
+ d = (function (a) {
+ function b() {
+ a.apply(this, arguments);
+ }
+ c(b, a);
+ return b;
+ })(a(501).mra);
+ b.e6a = d;
+ }, function (d, b, a) {
+ var c;
+ c = this && this.__extends || (function (a, b) {
+ function c() {
+ this.constructor = a;
+ }
+ for (var d in b) {
+ b.hasOwnProperty(d) && (a[d] = b[d]);
+ }
+ a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c());
+ });
+ d = (function (a) {
+ function b() {
+ a.call(this);
+ }
+ c(b, a);
+ b.prototype.Pc = function () {
+ return this;
+ };
+ return b;
+ })(a(117).rx);
+ b.n_a = d;
+ }, function (d, b, a) {
+ var c;
+ c = this && this.__extends || (function (a, b) {
+ function c() {
+ this.constructor = a;
+ }
+ for (var d in b) {
+ b.hasOwnProperty(d) && (a[d] = b[d]);
+ }
+ a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c());
+ });
+ d = (function (a) {
+ function b(b, c) {
+ a.call(this, b, c);
+ this.ya = b;
+ this.pqa = c;
+ }
+ c(b, a);
+ b.prototype.Pc = function (b, c) {
+ void 0 === c && (c = 0);
+ if (0 < c)
+ return a.prototype.Pc.call(this, b, c);
+ this.Dl = c;
+ this.state = b;
+ this.ya.flush(this);
+ return this;
+ };
+ b.prototype.Ge = function (b, c) {
+ return 0 < c || this.closed ? a.prototype.Ge.call(this, b, c) : this.$Ba(b);
+ };
+ b.prototype.jna = function (b, c, d) {
+ void 0 === d && (d = 0);
+ return null !== d && 0 < d || null === d && 0 < this.Dl ? a.prototype.jna.call(this, b, c, d) : b.flush(this);
+ };
+ return b;
+ })(a(502).jra);
+ b.c6a = d;
+ }, function (d, b, a) {
+ d = a(1140);
+ a = a(1138);
+ b.Zk = new a.e6a(d.c6a);
+ }, function (d, b, a) {
+ var c,
+ g,
+ l,
+ n,
+ h,
+ p,
+ m;
+ c = this && this.__extends || (function (a, b) {
+ function c() {
+ this.constructor = a;
+ }
+ for (var d in b) {
+ b.hasOwnProperty(d) && (a[d] = b[d]);
+ }
+ a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c());
+ });
+ d = a(505);
+ g = a(1141);
+ l = a(117);
+ n = a(500);
+ h = a(504);
+ p = a(503);
+ a = (function (a) {
+ function b(b, c, d) {
+ void 0 === b && (b = Number.POSITIVE_INFINITY);
+ void 0 === c && (c = Number.POSITIVE_INFINITY);
+ a.call(this);
+ this.ya = d;
+ this.eg = [];
+ this.Y7a = 1 > b ? 1 : b;
+ this.Gbb = 1 > c ? 1 : c;
+ }
+ c(b, a);
+ b.prototype.next = function (b) {
+ var c;
+ c = this.mCa();
+ this.eg.push(new m(c, b));
+ this.YDa();
+ a.prototype.next.call(this, b);
+ };
+ b.prototype.im = function (a) {
+ var b,
+ c,
+ d;
+ b = this.YDa();
+ c = this.ya;
+ if (this.closed)
+ throw new h.WE();
+ this.eP ? d = l.rx.EMPTY : this.Hg ? d = l.rx.EMPTY : (this.hw.push(a), d = new p.fAa(this, a));
+ c && a.add(a = new n.dxa(a, c));
+ for (var c = b.length, f = 0; f < c && !a.closed; f++) {
+ a.next(b[f].value);
+ }
+ this.eP ? a.error(this.rpa) : this.Hg && a.complete();
+ return d;
+ };
+ b.prototype.mCa = function () {
+ return (this.ya || g.Zk).now();
+ };
+ b.prototype.YDa = function () {
+ for (var a = this.mCa(), b = this.Y7a, c = this.Gbb, d = this.eg, f = d.length, h = 0; h < f && !(a - d[h].time < c); ) {
+ h++;
+ }
+ f > b && (h = Math.max(h, f - b));
+ 0 < h && d.splice(0, h);
+ return d;
+ };
+ return b;
+ })(d.pn);
+ b.k6a = a;
+ m = (function () {
+ return function (a, b) {
+ this.time = a;
+ this.value = b;
+ };
+ })();
+ }, function (d, b) {
+ b.mAb = function () {};
+ }, function (d, b, a) {
+ var g;
+ function c(a) {
+ return a ? 1 === a.length ? a[0] : function (b) {
+ return a.reduce(function (a, b) {
+ return b(a);
+ }, b);
+ }
+ : g.mAb;
+ }
+ g = a(1143);
+ b.PCb = function () {
+ for (var a = [], b = 0; b < arguments.length; b++) {
+ a[b - 0] = arguments[b];
+ }
+ return c(a);
+ };
+ b.QCb = c;
+ }, function (d, b) {
+ var a;
+ a = this && this.__extends || (function (a, b) {
+ function c() {
+ this.constructor = a;
+ }
+ for (var d in b) {
+ b.hasOwnProperty(d) && (a[d] = b[d]);
+ }
+ a.prototype = null === b ? Object.create(b) : (c.prototype = b.prototype, new c());
+ });
+ d = (function (b) {
+ function c(a) {
+ b.call(this);
+ this.nH = a;
+ a = Error.call(this, a ? a.length + " errors occurred during unsubscription:\n " + a.map(function (a, b) {
+ return b + 1 + ") " + a.toString();
+ }).join("\n ") : "");
+ this.name = a.name = "UnsubscriptionError";
+ this.stack = a.stack;
+ this.message = a.message;
+ }
+ a(c, b);
+ return c;
+ })(Error);
+ b.iV = d;
+ }, function (d, b, a) {
+ var g,
+ l;
+ function c() {
+ try {
+ return l.apply(this, arguments);
+ } catch (r) {
+ return (g.vy.e = r, g.vy);
+ }
+ }
+ g = a(506);
+ b.gYa = function (a) {
+ l = a;
+ return c;
+ };
+ }, function (d, b, a) {
+ var c,
+ g,
+ l;
+ c = a(69);
+ g = a(266);
+ l = a(267);
+ b.dMb = function (a, b, d) {
+ if (a) {
+ if (a instanceof c.qn)
+ return a;
+ if (a[g.JD])
+ return a[g.JD]();
+ }
+ return a || b || d ? new c.qn(a, b, d) : new c.qn(l.empty);
+ };
+ }, function (d, b, a) {
+ var c,
+ g,
+ l,
+ n,
+ h,
+ p,
+ m,
+ f,
+ q,
+ t,
+ A,
+ z,
+ C,
+ M,
+ H,
+ G,
+ E;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.hta = void 0;
+ c = a(0);
+ g = a(1);
+ l = a(138);
+ n = a(7);
+ h = a(36);
+ p = a(491);
+ m = a(68);
+ f = a(88);
+ q = a(52);
+ t = a(269);
+ A = a(270);
+ z = a(490);
+ C = a(14);
+ M = a(101);
+ H = a(119);
+ G = a(63);
+ E = a(268);
+ d = (function () {
+ var b;
+ function a(a, b, c, d, h, g, k, m, p, n, q) {
+ var r;
+ r = this;
+ this.ya = b;
+ this.tt = c;
+ this.config = d;
+ this.Cq = h;
+ this.UIa = g;
+ this.BG = k;
+ this.Ml = m;
+ this.oI = p;
+ this.Vk = n;
+ this.qp = q;
+ this.TKb = function (a, b) {
+ r.Vk.mark(G.za.CT, a.jh.ga, "generate-challenge");
+ b.eI().cS(1).subscribe(function (c) {
+ r.WOa.next({
+ Qn: b.Eq(),
+ data: c.Xh
+ });
+ r.Vk.mark(G.za.BT, a.jh.ga, "generate-challenge");
+ });
+ b.eI().map(function (c) {
+ return r.sC(a, b, c);
+ }).VC().IY(function (a) {
+ return b.pEa(a);
+ }).subscribe(void 0, function (a) {
+ b.mcb(a);
+ }, function () {
+ r.efb(b);
+ });
+ };
+ this.VWa = function (a) {
+ a.mR.map(function (b) {
+ return r.VLa(a, b);
+ }).VC().subscribe(function (b) {
+ return a.wEa(b.response);
+ }, function (b) {
+ return a.wEa(b);
+ });
+ };
+ this.log = a.xb("DrmServices");
+ this.WOa = new l.pn();
+ this.Cq().Pp && this.BG.QTa().then(function () {
+ r.uKb();
+ })["catch"](function (a) {
+ r.log.error("Unable to load the persisted DRM data", a);
+ });
+ this.config.DNa && this.Ml.BH().then(function (a) {
+ return r.yHa(a, {
+ he: a.keySystem
+ }, f.Aj.cm, p()).Gs(function (a) {
+ return a.close();
+ }).subscribe();
+ });
+ }
+ a.prototype.ww = function (a, b) {
+ var c;
+ c = this;
+ return new Promise(function (d, f) {
+ c.Ig(a, b).subscribe(d, f);
+ });
+ };
+ a.prototype.epb = function (a, b) {
+ var c;
+ c = this;
+ return new Promise(function (d, f) {
+ c.GZ(a, b).subscribe(d, f);
+ });
+ };
+ a.prototype.Ig = function (a, b) {
+ var c;
+ c = this;
+ this.log.info("Requesting challenges", this.zLa(a, a.type));
+ return this.SN(a.context, a.type, b).Gs(function (b) {
+ c.DQa(a, b);
+ return c.fHa(b.GZ(a.T_), b);
+ });
+ };
+ a.prototype.DQa = function (a, b) {
+ b.YIb(a.jh);
+ this.TKb(a, b);
+ };
+ a.prototype.yKb = function (a, b) {
+ var c,
+ d;
+ c = this;
+ this.config.wj ? (this.log.info("Releasing server license and EME license", this.yha(a)), this.VWa(a), d = a.uKa()) : (this.log.info("Releasing server license", this.yha(a)), d = this.VLa(a));
+ return this.fHa(d, a).IY(function () {
+ var d;
+ d = Object.assign({
+ he: a.context.he,
+ Rb: []
+ }, a.jh);
+ c.BG.cna(d);
+ b.gGb();
+ });
+ };
+ a.prototype.eI = function () {
+ return this.WOa.lca();
+ };
+ a.prototype.zLa = function (a, b) {
+ return {
+ movieId: a.jh.G,
+ xid: a.jh.ga,
+ type: f.Fja(b)
+ };
+ };
+ a.prototype.yha = function (a) {
+ return {
+ movieId: a.jh ? a.jh.G : void 0,
+ xid: a.jh ? a.jh.ga : void 0,
+ keySessionId: a.Dy()
+ };
+ };
+ a.prototype.fHa = function (a, b) {
+ return l.sb.concat(a, l.sb.of(b)).$h();
+ };
+ a.prototype.sC = function (a, b, c) {
+ this.log.info("Sending license request", this.zLa(a, c.ai));
+ return l.sb.Hs(this.tt.Ig({
+ ga: a.jh.ga,
+ sg: a.jh.sg,
+ KY: [a.jh.Hk],
+ Xh: [{
+ sessionId: b.Dy() || "session",
+ data: c.Xh
+ }
+ ],
+ ai: c.ai,
+ Qn: b.Eq(),
+ uGa: c.uGa,
+ TP: a.jh.TP,
+ Ki: a.jh.Ki
+ }));
+ };
+ a.prototype.VLa = function (a, b) {
+ this.log.info("Sending release request", this.yha(a));
+ return b ? l.sb.Hs(this.tt.release({
+ ga: (a.jh || a.WFb).ga,
+ Rb: a.Rb,
+ Xh: b.Xh
+ })) : l.sb.Hs(this.tt.release({
+ ga: a.jh.ga,
+ Rb: a.Rb
+ }));
+ };
+ a.prototype.GZ = function (a, b) {
+ return this.SN(a.context, a.type, b).Gs(function (b) {
+ return l.sb.race(b.GZ(a.T_).map(function () {
+ return b;
+ }), b.eI().map(function () {
+ return b;
+ }));
+ });
+ };
+ a.prototype.SN = function (a, b, c) {
+ var d;
+ d = this;
+ return l.sb.Hs(this.Ml.BH()).Gs(function (f) {
+ return d.yHa(f, a, b, c);
+ });
+ };
+ a.prototype.yHa = function (a, b, c, d) {
+ return l.sb.Hs(this.UIa.create()).Gs(function (f) {
+ return f.Nn(b, a, d, c);
+ });
+ };
+ a.prototype.tKb = function (a) {
+ var b;
+ b = this;
+ return this.config.wj ? l.sb.Hs(this.ixb(a)) : l.sb.Hs(this.tt.release({
+ ga: a.ga,
+ Rb: a.Rb
+ }))["catch"](function (a) {
+ b.log.error("Unable to send release data to the server", a);
+ return l.sb.empty();
+ }).map(function () {
+ return a;
+ });
+ };
+ a.prototype.ixb = function (a) {
+ var b;
+ b = this;
+ return this.Ml.BH().then(function (c) {
+ return b.UIa.create().then(function (d) {
+ return d.Nn({
+ he: c.keySystem
+ }, c, b.oI(), f.Aj.cm).Gs(function () {
+ return d.sxb(a);
+ }).Gs(function () {
+ b.VWa(d);
+ return d.uKa();
+ }).Sz().then(function () {
+ return d.bFa().Sz();
+ }).then(function () {
+ return b.qp.r3({
+ U: !0
+ }, a);
+ })["catch"](function (c) {
+ return b.qp.r3(c, a);
+ }).then(function () {
+ return a;
+ });
+ });
+ });
+ };
+ a.prototype.uKb = function () {
+ var a;
+ a = this;
+ this.ya.Mh(this.config.Xla, function () {
+ var b;
+ a.log.trace("Removing cached sessions", {
+ "count:": a.BG.LY.length
+ });
+ b = a.BG.LY.filter(function (a) {
+ return !a.active;
+ }).map(function (b) {
+ return a.tKb(b);
+ });
+ l.sb.concat.apply(l.sb, [].concat(ca(b))).subscribe(function (b) {
+ a.BG.cna(b);
+ });
+ });
+ };
+ a.prototype.efb = function (a) {
+ var b;
+ if (a.Dy() && a.jh) {
+ b = new A.sT();
+ b.he = a.context.he;
+ b.Rb = a.Rb;
+ b.ga = a.jh.ga;
+ b.G = a.jh.G;
+ this.BG.nEa(b);
+ }
+ };
+ b = a;
+ return b = c.__decorate([g.N(), c.__param(0, g.l(n.Jb)), c.__param(1, g.l(h.Tg)), c.__param(2, g.l(p.S5)), c.__param(3, g.l(q.Zl)), c.__param(4, g.l(C.fd)), c.__param(5, g.l(z.d6)), c.__param(6, g.l(t.iT)), c.__param(7, g.l(M.cu)), c.__param(8, g.l(H.xA)), c.__param(9, g.l(m.PE)), c.__param(10, g.l(E.tT))], b);
+ })();
+ b.hta = d;
+ }, function (d, b, a) {
+ var c,
+ g,
+ l,
+ n,
+ h,
+ p;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.SIa = void 0;
+ d = a(1);
+ c = a(120);
+ g = a(1148);
+ l = a(101);
+ n = a(1085);
+ h = a(490);
+ p = a(1076);
+ b.SIa = new d.Kc(function (a) {
+ a(c.T5).to(g.hta).Z();
+ a(l.cu).to(n.vwa).Z();
+ a(h.d6).to(p.Dta);
+ });
+ }, function (d, b, a) {
+ var c,
+ g,
+ l,
+ n,
+ h,
+ p;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.d5 = void 0;
+ c = a(0);
+ g = a(1);
+ l = a(40);
+ n = a(29);
+ h = a(3);
+ p = a(41);
+ d = (function () {
+ var b;
+ function a(a, b) {
+ return l.me.call(this, a, void 0 === b ? "EmeConfigImpl" : b) || this;
+ }
+ N(a, l.me);
+ wa.Object.defineProperties(a.prototype, {
+ DNa: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return !1;
+ }
+ },
+ wj: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return !1;
+ }
+ },
+ Wy: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return h.qh(5);
+ }
+ },
+ Xla: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return h.qh(10);
+ }
+ },
+ sia: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return h.Gb(2E3);
+ }
+ },
+ Sna: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return h.Gb(1E3);
+ }
+ },
+ MCb: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return h.Gb(2500);
+ }
+ },
+ mO: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return "unsentDrmData";
+ }
+ },
+ DO: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return !1;
+ }
+ },
+ Ap: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return !0;
+ }
+ },
+ SEa: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return h.qh(30);
+ }
+ },
+ TEa: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return h.qh(30);
+ }
+ },
+ WEa: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return h.qh(30);
+ }
+ },
+ UEa: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return h.qh(30);
+ }
+ },
+ dca: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return h.qh(30);
+ }
+ },
+ xR: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return "";
+ }
+ },
+ WRa: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return !1;
+ }
+ }
+ });
+ b = a;
+ c.__decorate([p.config(p.jd, "initializeKeySystemAtStartup")], b.prototype, "DNa", null);
+ c.__decorate([p.config(p.jd, "secureStopEnabled")], b.prototype, "wj", null);
+ c.__decorate([p.config(p.hh, "licenseRenewalRequestDelay")], b.prototype, "Wy", null);
+ c.__decorate([p.config(p.hh, "persistedReleaseDelay")], b.prototype, "Xla", null);
+ c.__decorate([p.config(p.hh, "secureStopKeyMessageTimeoutMilliseconds")], b.prototype, "sia", null);
+ c.__decorate([p.config(p.hh, "secureStopKeyAddedTimeoutMilliseconds")], b.prototype, "Sna", null);
+ c.__decorate([p.config(p.hh, "secureStopPersistedKeyMessageTimeoutMilliseconds")], b.prototype, "MCb", null);
+ c.__decorate([p.config(p.string, "drmPersistKey")], b.prototype, "mO", null);
+ c.__decorate([p.config(p.jd, "forceLimitedDurationLicense")], b.prototype, "DO", null);
+ c.__decorate([p.config(p.jd, "prepareCadmium")], b.prototype, "Ap", null);
+ c.__decorate([p.config(p.hh, "apiCloseTimeout")], b.prototype, "SEa", null);
+ c.__decorate([p.config(p.hh, "apiCreateMediaKeysTimeout")], b.prototype, "TEa", null);
+ c.__decorate([p.config(p.hh, "apiSetServerCertificateTimeout")], b.prototype, "WEa", null);
+ c.__decorate([p.config(p.hh, "apiGenerateRequestTimeout")], b.prototype, "UEa", null);
+ c.__decorate([p.config(p.hh, "apiUpdateTimeout")], b.prototype, "dca", null);
+ c.__decorate([p.config(p.string, "serverCertificate")], b.prototype, "xR", null);
+ c.__decorate([p.config(p.jd, "outputRestrictedIsFatal")], b.prototype, "WRa", null);
+ return b = c.__decorate([g.N(), c.__param(0, g.l(n.bj)), c.__param(1, g.l(n.iA)), c.__param(1, g.optional())], b);
+ })();
+ b.d5 = d;
+ }, function (d, b, a) {
+ var c,
+ g,
+ l,
+ n;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Bta = void 0;
+ c = a(0);
+ g = a(1);
+ l = a(29);
+ n = a(1150);
+ d = (function () {
+ var b;
+ function a(a, b) {
+ return n.d5.call(this, a, void 0 === b ? "EmeConfigImpl" : b) || this;
+ }
+ N(a, n.d5);
+ b = a;
+ return b = c.__decorate([g.N(), c.__param(0, g.l(l.bj)), c.__param(1, g.l(l.iA)), c.__param(1, g.optional())], b);
+ })();
+ b.Bta = d;
+ }, function (d, b, a) {
+ var c,
+ g,
+ l,
+ n,
+ h,
+ p,
+ m,
+ f;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Zta = void 0;
+ c = a(0);
+ g = a(37);
+ l = a(1);
+ n = a(3);
+ h = a(40);
+ p = a(118);
+ m = a(41);
+ f = a(29);
+ d = (function () {
+ var b;
+ function a(a, b, c, d) {
+ a = h.me.call(this, a, void 0 === d ? "FtlProbeConfigImpl" : d) || this;
+ a.gg = b;
+ a.Aa = c;
+ return a;
+ }
+ N(a, h.me);
+ wa.Object.defineProperties(a.prototype, {
+ enabled: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return !0;
+ }
+ },
+ endpoint: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return "" + this.oga + (-1 === this.oga.indexOf("?") ? "?" : "&") + "monotonic=" + this.Aa.FQa + "&device=web";
+ }
+ },
+ wWa: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return n.Cc;
+ }
+ },
+ fga: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return "";
+ }
+ },
+ oga: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.gg.endpoint + "/ftl/probe" + (this.fga ? "?force=" + this.fga : "");
+ }
+ }
+ });
+ b = a;
+ c.__decorate([m.config(m.jd, "ftlEnabled")], b.prototype, "enabled", null);
+ c.__decorate([m.config(m.hh, "ftlStartDelay")], b.prototype, "wWa", null);
+ c.__decorate([m.config(m.string, "ftlEndpointForceParam")], b.prototype, "fga", null);
+ c.__decorate([m.config(m.url, "ftlEndpoint")], b.prototype, "oga", null);
+ return b = c.__decorate([l.N(), c.__param(0, l.l(f.bj)), c.__param(1, l.l(p.Yz)), c.__param(2, l.l(g.ni)), c.__param(3, l.l(f.iA)), c.__param(3, l.optional())], b);
+ })();
+ b.Zta = d;
+ }, function (d, b, a) {
+ var c,
+ g,
+ l,
+ n,
+ h;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Rwa = void 0;
+ c = a(0);
+ g = a(1);
+ l = a(41);
+ n = a(40);
+ h = a(29);
+ d = (function () {
+ var b;
+ function a(a, b) {
+ return n.me.call(this, a, void 0 === b ? "NetworkMonitorConfigImpl" : b) || this;
+ }
+ N(a, n.me);
+ wa.Object.defineProperties(a.prototype, {
+ SYa: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return !0;
+ }
+ }
+ });
+ b = a;
+ c.__decorate([l.config(l.jd, "useNetworkMonitor")], b.prototype, "SYa", null);
+ return b = c.__decorate([g.N(), c.__param(0, g.l(h.bj)), c.__param(1, g.l(h.iA)), c.__param(1, g.optional())], b);
+ })();
+ b.Rwa = d;
+ }, function (d, b) {
+ function a(a) {
+ this.value = a;
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.j8 = void 0;
+ a.empty = function () {
+ return a.of(void 0);
+ };
+ a.of = function (b) {
+ return new a(b);
+ };
+ a.prototype.ow = function (a) {
+ return void 0 === this.value ? a instanceof Function ? a() : a : this.value;
+ };
+ a.prototype.map = function (b) {
+ return void 0 === this.value ? a.empty() : a.of(b(this.value));
+ };
+ b.j8 = a;
+ }, function (d, b, a) {
+ var c,
+ g,
+ l,
+ n,
+ h,
+ p,
+ m,
+ f,
+ q;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.dua = b.lH = void 0;
+ c = a(0);
+ g = a(3);
+ l = a(1);
+ n = a(41);
+ h = a(40);
+ p = a(34);
+ m = a(29);
+ f = a(142);
+ q = {
+ test: "Test",
+ stg: "Staging",
+ "int": "Int",
+ prod: "Prod"
+ };
+ b.lH = function (a, b) {
+ return a.RTa(q[b] || b, p.Zt);
+ };
+ d = (function () {
+ var d;
+ function a(a, b, c) {
+ a = h.me.call(this, a, void 0 === c ? "GeneralConfigImpl" : c) || this;
+ a.vm = b;
+ return a;
+ }
+ N(a, h.me);
+ wa.Object.defineProperties(a.prototype, {
+ lH: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return p.Zt.a6a;
+ }
+ },
+ Xoa: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return g.qh(8);
+ }
+ },
+ Jy: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return "";
+ }
+ },
+ CG: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return "";
+ }
+ },
+ iE: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return "";
+ }
+ },
+ pXa: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return !1;
+ }
+ },
+ qX: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return !0;
+ }
+ },
+ oP: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.vm.oP;
+ }
+ },
+ vnb: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return !1;
+ }
+ },
+ Zg: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return {};
+ }
+ },
+ TUa: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return !1;
+ }
+ },
+ dja: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return !1;
+ }
+ },
+ E4: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return !1;
+ }
+ },
+ ur: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return !1;
+ }
+ },
+ rO: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return !1;
+ }
+ },
+ Gz: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return {
+ __default_rule_key__: ["idb", "mem"]
+ };
+ }
+ },
+ Ds: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return 0 <= [p.Zt.pAa, p.Zt.hva].indexOf(this.lH);
+ }
+ }
+ });
+ d = a;
+ c.__decorate([n.config(b.lH, "environment")], d.prototype, "lH", null);
+ c.__decorate([n.config(n.hh, "storageTimeout")], d.prototype, "Xoa", null);
+ c.__decorate([n.config(n.string, "groupName")], d.prototype, "Jy", null);
+ c.__decorate([n.config(n.string, "canaryGroupName")], d.prototype, "CG", null);
+ c.__decorate([n.config(n.string, "uiGroupName")], d.prototype, "iE", null);
+ c.__decorate([n.config(n.jd, "testIndexDBForCorruptedDatabase")], d.prototype, "pXa", null);
+ c.__decorate([n.config(n.jd, "applyIndexedDbOpenWorkaround")], d.prototype, "qX", null);
+ c.__decorate([n.config(n.jd, "ignoreIdbOpenError")], d.prototype, "oP", null);
+ c.__decorate([n.config(n.jd, "executeStorageMigration")], d.prototype, "vnb", null);
+ c.__decorate([n.config(n.object(), "browserInfo")], d.prototype, "Zg", null);
+ c.__decorate([n.config(n.jd, "retryAllMslRequestsOnError")], d.prototype, "TUa", null);
+ c.__decorate([n.config(n.jd, "isTestAccount")], d.prototype, "dja", null);
+ c.__decorate([n.config(n.jd, "vuiCommandLogging")], d.prototype, "E4", null);
+ c.__decorate([n.config(n.jd, "useRangeHeader")], d.prototype, "ur", null);
+ c.__decorate([n.config(n.jd, "enableMilestoneEventList")], d.prototype, "rO", null);
+ c.__decorate([n.config(n.object, "storageRules")], d.prototype, "Gz", null);
+ return d = c.__decorate([l.N(), c.__param(0, l.l(m.bj)), c.__param(1, l.l(f.ZE)), c.__param(2, l.l(m.iA)), c.__param(2, l.optional())], d);
+ })();
+ b.dua = d;
+ }, function (d, b, a) {
+ var c,
+ g,
+ l,
+ n,
+ h,
+ p,
+ m;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.fva = b.SAa = b.ksa = void 0;
+ c = a(0);
+ g = a(1);
+ l = a(87);
+ n = a(7);
+ h = a(139);
+ p = a(510);
+ m = a(29);
+ d = (function () {
+ function a(a, b, c) {
+ this.Jv = a;
+ this.pQ = b;
+ this.A2 = c;
+ }
+ return a = c.__decorate([g.N(), c.__param(0, g.l(m.JE)), c.__param(1, g.l(h.bV)), c.__param(2, g.l(p.MU))], a);
+ })();
+ b.ksa = d;
+ d = (function () {
+ function a(a, b, c, d, f) {
+ this.debug = a;
+ this.Jv = b;
+ this.pQ = c;
+ this.sf = d;
+ this.A2 = f;
+ }
+ return a = c.__decorate([g.N(), c.__param(0, g.l(l.Dr)), c.__param(1, g.l(m.JE)), c.__param(2, g.l(h.bV)), c.__param(3, g.l(n.Jb)), c.__param(4, g.l(p.MU))], a);
+ })();
+ b.SAa = d;
+ d = (function () {
+ var b;
+ function a() {
+ this.kv = {};
+ this.UUa = 0;
+ }
+ a.prototype.azb = function (a) {
+ this.kv = Object.assign({}, this.kv, a);
+ this.UUa++;
+ };
+ wa.Object.defineProperties(a.prototype, {
+ data: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.kv;
+ }
+ },
+ Y2: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.UUa;
+ }
+ }
+ });
+ b = a;
+ return b = c.__decorate([g.N()], b);
+ })();
+ b.fva = d;
+ }, function (d, b, a) {
+ var c,
+ g,
+ l,
+ n,
+ h,
+ p,
+ m,
+ f,
+ q,
+ w,
+ z;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.config = void 0;
+ d = a(1);
+ c = a(14);
+ g = a(1156);
+ l = a(29);
+ n = a(34);
+ h = a(1155);
+ p = a(509);
+ m = a(1153);
+ f = a(183);
+ q = a(1152);
+ w = a(52);
+ z = a(1151);
+ b.config = new d.Kc(function (a) {
+ a(c.fd).zf(function () {
+ return function () {
+ return t._cad_global.config;
+ };
+ });
+ a(l.lT).to(g.ksa).Z();
+ a(l.bj).to(g.SAa).Z();
+ a(l.JE).to(g.fva).Z();
+ a(n.kl).to(h.dua).Z();
+ a(p.c8).to(m.Rwa).Z();
+ a(f.p6).to(q.Zta).Z();
+ a(w.Zl).to(z.Bta).Z();
+ });
+ }, function (d, b, a) {
+ var c,
+ g,
+ l,
+ n,
+ h,
+ p,
+ m;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.gta = void 0;
+ c = a(0);
+ g = a(1);
+ l = a(119);
+ n = a(62);
+ h = a(47);
+ p = a(9);
+ m = a(37);
+ d = (function () {
+ var b;
+ function a(a, b, c, d) {
+ this.oI = a;
+ this.eh = b;
+ this.OC = c;
+ this.Aa = d;
+ }
+ a.prototype.r3 = function (a, b) {
+ var c;
+ c = a.U ? {
+ success: a.U,
+ persisted: !0
+ }
+ : a instanceof Error ? {
+ success: !1,
+ persisted: !0,
+ message: a.message,
+ name: a.name,
+ stack: a.stack
+ }
+ : {
+ success: a.U,
+ persisted: !0,
+ state: a.state,
+ ErrorCode: a.code,
+ ErrorSubCode: a.Nb,
+ ErrorExternalCode: a.xd,
+ ErrorEdgeCode: a.wm,
+ ErrorDetails: a.cause && a.cause.ab
+ };
+ c.browserua = p.bm;
+ a = this.OC.Mn("securestop", a.U ? "info" : "error", c, {
+ G: b.movieId,
+ ga: b.xid,
+ ek: this.Aa.$e,
+ N0: !1
+ });
+ this.eh.Ic(a);
+ };
+ b = a;
+ return b = c.__decorate([g.N(), c.__param(0, g.l(l.xA)), c.__param(1, g.l(h.uk)), c.__param(2, g.l(n.zo)), c.__param(3, g.l(m.ni))], b);
+ })();
+ b.gta = d;
+ }, function (d, b, a) {
+ var c,
+ g,
+ l,
+ n,
+ h,
+ p,
+ m,
+ f,
+ q,
+ t;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Ura = void 0;
+ c = a(0);
+ g = a(1);
+ l = a(120);
+ n = a(42);
+ h = a(14);
+ p = a(7);
+ m = a(119);
+ f = a(101);
+ q = a(88);
+ t = a(140);
+ d = (function () {
+ var b;
+ function a(a, b, c, d, f, h) {
+ this.cC = a;
+ this.Fc = b;
+ this.config = c;
+ this.oI = f;
+ this.Ml = h;
+ this.log = d.xb("CannedChallengeProviderImpl");
+ }
+ a.prototype.wha = function () {
+ var a;
+ a = this;
+ return Promise.all([this.cC(), this.Rqb()]).then(function (b) {
+ var c;
+ c = U(b);
+ b = c.next().value;
+ c = c.next().value;
+ c = {
+ type: q.Aj.dx,
+ T_: [c],
+ context: {
+ he: a.config().he
+ }
+ };
+ return b.epb(c, a.oI());
+ }).then(function (b) {
+ var c;
+ c = b.Eja.data.map(function (b) {
+ return a.Fc.encode(b);
+ });
+ a.log.trace("Challenge generated", c);
+ return {
+ tb: b,
+ eda: c && c[0]
+ };
+ });
+ };
+ a.prototype.Rqb = function () {
+ return this.Ml.Eq().then(function (a) {
+ switch (a) {
+ case t.en.jC:
+ return "c2tkOi8vbmV0ZmxpeC9BQUFBQkFBQUFBQUV6SWZ5aFdkc0dObEdGaGllK1VhUXNYZVNQczJ1eDQ2Nm9JMVZGN2RqTVRPZXJOST0=";
+ default:
+ return "AAAANHBzc2gAAAAA7e+LqXnWSs6jyCfc1R0h7QAAABQIARIQAAAAAAPSZ0kAAAAAAAAAAA==";
+ }
+ }).then(this.Fc.decode);
+ };
+ b = a;
+ return b = c.__decorate([g.N(), c.__param(0, g.l(l.GK)), c.__param(1, g.l(n.Ui)), c.__param(2, g.l(h.fd)), c.__param(3, g.l(p.Jb)), c.__param(4, g.l(m.xA)), c.__param(5, g.l(f.cu))], b);
+ })();
+ b.Ura = d;
+ }, function (d, b) {
+ function a() {}
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.wwa = void 0;
+ a.prototype.LMa = function () {
+ return void 0 !== this.Nf;
+ };
+ a.prototype.OD = function (a) {
+ this.Nf = a;
+ };
+ a.prototype.gGb = function () {
+ this.LMa() && (this.Nf = void 0);
+ };
+ b.wwa = a;
+ }, function (d, b, a) {
+ var c,
+ g,
+ l,
+ n,
+ h;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.zTa = void 0;
+ c = a(2);
+ g = a(89);
+ l = a(120);
+ n = a(271);
+ b.zTa = function (a) {
+ n.fH.parent = a.hb;
+ return function () {
+ h || (h = new Promise(function (a, b) {
+ try {
+ a(n.fH.get(l.T5));
+ } catch (u) {
+ b(new g.Sf(c.J.m3a, c.I.F3a, void 0, "Unable to extract the DRM services from the dependency injector", u));
+ }
+ }));
+ return h;
+ };
+ };
+ }, function (d, b, a) {
+ var l,
+ n,
+ h,
+ p,
+ m,
+ f,
+ q,
+ t,
+ z;
+ function c(a) {
+ a = JSON.parse(a);
+ a = {
+ xid: a.xid,
+ movieId: a.movieId,
+ keySessionIds: a.keySessionIds,
+ licenseContextId: a.licenseContextId
+ };
+ if (!a.licenseContextId || !a.xid || !a.movieId)
+ throw new f.Dc(p.J.HE, p.I.Sw);
+ return {
+ version: 1,
+ drmData: [a]
+ };
+ }
+ function g(a, b) {
+ if (a.Qu(b.drmData))
+ return {
+ version: 2,
+ drmData: b.drmData.map(function (a) {
+ var b;
+ b = a.keySessionIds;
+ return new z.sT({
+ keySystemId: a.keySystemId,
+ keySessionData: (b && 0 < b.length ? b : [void 0]).map(function (b) {
+ return {
+ id: b,
+ licenseContextId: a.licenseContextId,
+ licenseId: void 0
+ };
+ }),
+ xid: a.xid,
+ movieId: a.movieId
+ }).Mt();
+ })
+ };
+ throw new f.Dc(p.J.HE, p.I.Sw);
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Sra = void 0;
+ l = a(0);
+ n = a(1);
+ h = a(52);
+ p = a(2);
+ m = a(21);
+ f = a(48);
+ q = a(511);
+ t = a(70);
+ z = a(270);
+ d = (function () {
+ var b;
+ function a(a, b, d) {
+ var h;
+ h = this;
+ this.is = a;
+ this.lk = b;
+ this.config = d;
+ this.Mt = function () {
+ return {
+ version: h.version,
+ drmData: h.LY.map(function (a) {
+ return a.Mt();
+ })
+ };
+ };
+ this.nga = function (a) {
+ var b;
+ h.is.lm(a) && (a = c(a));
+ 1 === a.version && (a = g(h.is, a));
+ b = {
+ version: 2,
+ data: []
+ };
+ if (2 === a.version) {
+ b.version = a.version;
+ try {
+ b.data = a.drmData.map(function (a) {
+ return new z.sT(a);
+ });
+ } catch (Z) {
+ throw new f.Dc(p.J.HE, p.I.Sw, void 0, void 0, void 0, "The format of the DRM data is inconsistent with what is expected.", Z);
+ }
+ } else {
+ if (!a.version || !h.is.fg(a.version))
+ throw new f.Dc(p.J.HE, p.I.Sw, void 0, void 0, void 0, "The format of the DRM data is inconsistent with what is expected.");
+ if (1 !== a.version)
+ throw new f.Dc(p.J.HE, p.I.Ira, void 0, void 0, void 0, "Version number is not supported. Version: " + h.getVersion);
+ }
+ return b;
+ };
+ this.Jp = new q.V6(2, this.config.mO, this.is.lm(this.config.mO), this.lk, this.Mt);
+ }
+ a.prototype.QTa = function () {
+ return this.nKb();
+ };
+ a.prototype.nEa = function (a) {
+ return this.Jp.add(a);
+ };
+ a.prototype.cna = function (a) {
+ return this.Jp.remove(a, function (a, b) {
+ return a.ga === b.ga;
+ });
+ };
+ a.prototype.toString = function () {
+ return JSON.stringify(this.Mt(), null, " ");
+ };
+ a.prototype.nKb = function () {
+ var a;
+ a = this;
+ this.UTa || (this.UTa = new Promise(function (b, c) {
+ a.Jp.load(a.nga).then(function () {
+ b();
+ })["catch"](function (a) {
+ a.ja && a.cause ? c(new f.Dc(p.J.HE, a.ja, void 0, void 0, void 0, "Unable to load persisted playdata.", void 0, a)) : c(a);
+ });
+ }));
+ return this.UTa;
+ };
+ wa.Object.defineProperties(a.prototype, {
+ version: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.Jp.version;
+ }
+ },
+ LY: {
+ configurable: !0,
+ enumerable: !0,
+ get: function () {
+ return this.Jp.ss;
+ }
+ }
+ });
+ b = a;
+ return b = l.__decorate([n.N(), l.__param(0, n.l(m.Zd)), l.__param(1, n.l(t.xr)), l.__param(2, n.l(h.Zl))], b);
+ })();
+ b.Sra = d;
+ }, function (d, b, a) {
+ var g;
+ function c(a, b, c, d) {
+ this.log = a;
+ this.sC = b;
+ this.i3 = c;
+ this.context = d;
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.dBa = void 0;
+ g = a(2).J;
+ c.prototype.Ig = function (a) {
+ var b;
+ b = this;
+ (this.context.Xc || this.context.bh) && this.log.trace("Requesting license", {
+ drmType: a.Qn
+ });
+ return this.sC(a)["catch"](function (a) {
+ b.log.error("Unable to get the Playready license", a);
+ if (b.context.k1b)
+ throw a;
+ throw {
+ U: !1,
+ code: g.cx,
+ Nb: a.Nb,
+ xd: a.xd,
+ wm: a.wm,
+ Vn: a.message || a.Vn,
+ wO: a.data,
+ message: "Unable to send the Playready license request. " + (a.message || a.Vn)
+ };
+ });
+ };
+ c.prototype.stop = function (a) {
+ var b;
+ b = this;
+ this.log.trace("Requesting stop data");
+ return this.i3(a)["catch"](function (a) {
+ b.log.error("Unable to release the PlayReady license and get the secure stop data ", {
+ code: a.code,
+ subCode: a.Nb,
+ extCode: a.xd,
+ edgeCode: a.wm,
+ message: a.message || a.Vn
+ });
+ throw {
+ U: !1,
+ code: g.nza,
+ Nb: a.Nb,
+ xd: a.xd,
+ wm: a.wm,
+ Vn: a.message || a.Vn,
+ message: "Unable to release the PlayReady license and get the secure stop data. " + (a.message || a.Vn)
+ };
+ });
+ };
+ b.dBa = c;
+ t._cad_global.WindowsDrmRequests = c;
+ }, function (d, b, a) {
+ var c,
+ g,
+ l,
+ n,
+ h,
+ p,
+ m,
+ f,
+ q,
+ w,
+ z;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.u$ = void 0;
+ c = a(2);
+ g = a(277);
+ l = a(21);
+ n = a(272);
+ h = a(25);
+ p = a(90);
+ m = a(42);
+ f = a(24);
+ q = a(3);
+ w = a(30);
+ z = a(63);
+ (function () {
+ var X;
+ function a(b, c, d, f) {
+ var h;
+ h = this;
+ this.log = b;
+ this.rNa = c;
+ this.kz = d || U.bind(this);
+ this.context = f;
+ this.Ula = this.tGa = this.yd = this.keySessionId = this.He = this.Nf = void 0;
+ this.Yc = {};
+ this.HRa = Z.bind(this);
+ this.Ula = void 0;
+ this.tZa = new Promise(function (a, b) {
+ h.UGb = a;
+ h.TFb = b;
+ });
+ this.tZa["catch"](function (a) {
+ h.log.error("wait for license rejected", a);
+ });
+ g.jc.get(w.Vw).UZ().then(function (a) {
+ (h.context.Xc || h.context.bh) && h.log.debug("DRIVERINFO: ", a);
+ })["catch"](function (a) {
+ h.log.error("DRIVERINFO", a);
+ });
+ this.iw = function (a, b) {
+ h.TFb(a, b);
+ h.context.onerror(a, b);
+ };
+ this.oBb = function () {
+ h.UGb();
+ };
+ if (!(this instanceof a))
+ throw new TypeError("EmeSession constructor not called correctly.");
+ }
+ function d(a) {
+ this.ontimeout = a;
+ this.$m = void 0;
+ }
+ function k() {
+ return g.jc.get(f.Me).Yb().ca(q.ia);
+ }
+ function r() {
+ return g.jc.get(m.Ui);
+ }
+ function u() {
+ return g.jc.get(p.Ut);
+ }
+ function A() {
+ return g.jc.get(h.hf);
+ }
+ function E(a) {
+ var b;
+ b = g.jc.get(n.yL);
+ return new Uint8Array(b.bpa('' + a + ' Q0hBSQAAAAEAAAUMAAAAAAAAAAJDRVJUAAAAAQAAAfwAAAFsAAEAAQAAAFhr+y4Ydms5rTmj6bCCteW2AAAAAAAAAAAAAAAJzZtwNxHterM9CAoJYOM3CF9Tj0d9KND413a+UtNzRTb/////AAAAAAAAAAAAAAAAAAAAAAABAAoAAABU8vU0ozkqocBJMVIX2K4dugAAADZodHRwOi8vbnJkcC5uY2NwLm5ldGZsaXguY29tL3Jtc2RrL3JpZ2h0c21hbmFnZXIuYXNteAAAAAABAAUAAAAMAAAAAAABAAYAAABcAAAAAQABAgAAAAAAglDQ2GehCoNSsOaaB8zstNK0cCnf1+9gX8wM+2xwLlqJ1kyokCjt3F8P2NqXHM4mEU/G1T0HBBSI3j6XpKqzgAAAAAEAAAACAAAABwAAAEgAAAAAAAAACE5ldGZsaXgAAAAAH1BsYXlSZWFkeSBNZXRlcmluZyBDZXJ0aWZpY2F0ZQAAAAAABjIwMjQ4AAAAAAEACAAAAJAAAQBAU73up7T8eJYVK4UHuKYgMQIRbo0yf27Y5EPZRPmzkx1ZDMor7Prs77CAOU9S9k0RxpxPnqUwAKRPIVCe0aX2+AAAAgBb65FSx1oKG2r8AxQjio+UrYGLhvA7KMlxJBbPXosAV/CJufnIdUMSA0DhxD2W3eRLh2vHukIL4VH9guUcEBXsQ0VSVAAAAAEAAAL8AAACbAABAAEAAABYyTlnSi+jZfRvYL0rk9sVfwAAAAAAAAAAAAAABFNh3USSkWi88BlSM6PZ2gMuceJFJ9hzz0WzuCiwF9qv/////wAAAAAAAAAAAAAAAAAAAAAAAQAFAAAADAAAAAAAAQAGAAAAYAAAAAEAAQIAAAAAAFvrkVLHWgobavwDFCOKj5StgYuG8DsoyXEkFs9eiwBX8Im5+ch1QxIDQOHEPZbd5EuHa8e6QgvhUf2C5RwQFewAAAACAAAAAQAAAAwAAAAHAAABmAAAAAAAAACATWljcm9zb2Z0AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAUGxheVJlYWR5IFNMMCBNZXRlcmluZyBSb290IENBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAMS4wLjAuMQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAIAAAAkAABAECsAomwQgNY0bm6U6Au9JRvwjbNnRzmVkZi+kg7npnRQ2T+4LgyrePBdBRQ3qb/jxXkn++4sOFa7vjRpFBzV0MMAAACAIZNYc/yJW5CLFaLPCgAHPs+FSdlhYS6BSG3mxgo2TbeHYJqj8Pm5/p6kNXKKUbx9kou+59dz/5+Q060QpP6xas= '));
+ }
+ function N(a) {
+ var b,
+ c;
+ b = g.jc.get(n.yL);
+ c = "";
+ a.forEach(function (a) {
+ c += "" + a + " ";
+ });
+ a = '' + c + " ";
+ b = new Uint8Array(b.bpa(a));
+ (this.context.Xc || this.context.bh) && this.log.trace("LICENSE: proactive license cdm data", {
+ xml: a,
+ b64: r().encode(b)
+ });
+ return b;
+ }
+ function Z(a) {
+ var b;
+ b = a.target.error ? a.target.error.msExtendedCode : void 0;
+ this.log.error("Received " + a.type + " event", {
+ sessionId: this.He.sessionId,
+ systemCode: b
+ });
+ if (this.context.onerror)
+ this.context.onerror(X.yg.lx, X.nn.Yt, b);
+ this.He = void 0;
+ }
+ function B(a, b, c, d) {
+ var f,
+ h;
+ f = g.jc.get(l.Zd);
+ h = a.code || a.number;
+ h = f.fg(h) ? u().zv(h, 4) : void 0;
+ return {
+ U: !1,
+ code: b,
+ Nb: c,
+ message: d,
+ xd: h,
+ cause: {
+ ab: A().Fd(a)
+ }
+ };
+ }
+ function V(a, b, c) {
+ var d,
+ f,
+ h,
+ g;
+ for (var d = 2; d < arguments.length; ++d) { ;
+ }
+ d = "";
+ h = a.length;
+ for (f = 0; f < h; f++) {
+ g = a[f];
+ 0 < g && (d += String.fromCharCode(g));
+ }
+ h = "\\s*(.*)\\s*";
+ for (f = arguments.length - 1; 0 < f; f--) {
+ g = arguments[f];
+ if (0 > d.search(g))
+ return;
+ g = "(?:[^:].*:|)" + g;
+ h = "[\\s\\S]*<" + g + "[^>]*>" + h + "" + g + ">[\\s\\S]*";
+ }
+ if (d = d.match(new RegExp(h)))
+ return d[1];
+ }
+ function Q(a, b, c, d) {
+ var f,
+ h;
+ f = a.target && a.target.sessionId;
+ h = r().decode(V(a.message, "PlayReadyKeyMessage", "Challenge"));
+ c.state = 12;
+ c.log.trace("LICENSE: Received " + a.type + " event", {
+ keySystem: a.target && a.target.keySystem,
+ sessionId: f
+ });
+ (c.context.Xc || c.context.bh || c.context.Uz) && c.log.debug("LICENSE: License challenge", r().encode(h));
+ c.keySessionId = f;
+ a = {
+ ai: b,
+ e1: "license-request",
+ Qn: (/clearkey/i).test(c.yd) ? "clearkey" : "playready",
+ Xh: [{
+ data: h,
+ sessionId: f
+ }
+ ]
+ };
+ 12 === c.state && (c.kz("lc"), h = {
+ data: h,
+ Qn: (/clearkey/i).test(c.yd) ? "clearkey" : "playready"
+ }, c.context.j2 ? c.context.J1(h) : c.Ula = h);
+ c.context.vj.Ig(a).then(function (a) {
+ if (12 === c.state && (c.kz("lr"), c.oBb(), !c.context.j2))
+ (c.zSa = a.Nk[0].data, c.state = 13, d({
+ U: !0,
+ state: c.state
+ }));
+ else if (c.He)
+ return Y(c, a.Nk[0].data, c.He).then(function () {
+ c.state = 30;
+ d({
+ U: !0,
+ state: c.state
+ });
+ });
+ })["catch"](function (a) {
+ d(A().YC(a, {
+ state: c.state
+ }));
+ });
+ }
+ function R(a, b) {
+ var c;
+ if (a) {
+ c = this;
+ A().uv(a, function (a, b) {
+ "error" === b && c.log.error("SECURE_STOP: The server returned an error for the session", {
+ id: a
+ });
+ });
+ a = a[b];
+ if ("error" !== a)
+ return a;
+ }
+ }
+ function Y(a, b, c) {
+ a.VNa() && a.log.trace("LICENSE: Got the response, calling update", {
+ sessionId: c.sessionId,
+ license: r().encode(b)
+ });
+ return new Promise(function (d, f) {
+ try {
+ a.He.update(b);
+ d();
+ a.VNa() && a.log.trace("LICENSE: Update succeeded", {
+ sessionId: c.sessionId
+ });
+ } catch (ja) {
+ f({
+ U: !1,
+ code: X.yg.r8,
+ message: "Unable to update the EME.",
+ ab: A().Fd(ja)
+ });
+ }
+ });
+ }
+ function U(a) {
+ this.context.Aa && (this.Yc[a] = this.context.Aa.getTime(), this.log.trace("Milestone: " + a + ", " + this.Yc[a]));
+ }
+ X = {};
+ X.yg = c.J;
+ X.nn = c.I;
+ d.prototype.start = function (a, b, c) {
+ var d;
+ d = this;
+ d.stop();
+ d.$m = setTimeout(function () {
+ d.ontimeout({
+ U: !1,
+ code: X.yg.z9,
+ Nb: b,
+ message: "Eme " + c + " event expired with an expiry of " + a + "ms"
+ });
+ }, a);
+ };
+ d.prototype.stop = function () {
+ this.$m && (clearTimeout(this.$m), this.$m = void 0);
+ };
+ a.prototype.Js = function () {
+ return this.yd;
+ };
+ a.prototype.mNb = function (a, b) {
+ a.log && (this.log = a.log);
+ a.kz && (this.kz = a.kz);
+ b.vj && (this.context.vj = b.vj);
+ b.onerror && (this.context.onerror = b.onerror);
+ };
+ a.prototype.create = function (a) {
+ var b;
+ b = this;
+ return (a ? Promise.resolve(a) : g.jc.get(w.Vw).Js()).then(function (a) {
+ b.kz("lg");
+ b.log.trace("Creating the media keys", {
+ keySystem: a
+ });
+ b.yd = a;
+ try {
+ if (!t.MSMediaKeys.isTypeSupported(a, "video/mp4"))
+ return Promise.reject({
+ code: X.yg.jL
+ });
+ } catch (P) {
+ return Promise.reject({
+ code: X.yg.jL
+ });
+ }
+ if (b.context.x2)
+ a = Promise.reject({
+ U: !1,
+ code: X.yg.vT,
+ message: "Promise based EME is currently not supported for Internet Explorer"
+ });
+ else
+ a: {
+ try {
+ b.Nf = new t.MSMediaKeys(a);
+ } catch (P) {
+ a = Promise.reject({
+ U: !1,
+ code: X.yg.oxa,
+ message: "create MSMediaKeys(" + a + ") failed",
+ ab: A().Fd(P)
+ });
+ break a;
+ }
+ try {
+ b.context.la && b.context.la.msSetMediaKeys(b.Nf);
+ } catch (P) {
+ a = Promise.reject({
+ U: !1,
+ code: X.yg.kL,
+ message: "set MSMediaKeys failed",
+ ab: A().Fd(P)
+ });
+ break a;
+ }
+ a = Promise.resolve({
+ U: !0,
+ Nf: b.Nf
+ });
+ }
+ return a;
+ });
+ };
+ a.prototype.close = function () {
+ this.He && (this.log.info("Closing the session", {
+ sessionId: this.He.sessionId
+ }), this.He.removeEventListener("mskeyerror", this.HRa), this.He.close(), this.He = void 0);
+ };
+ a.prototype.Ig = function (a, b, c) {
+ var d;
+ if (1 < b.length)
+ return Promise.reject({
+ code: X.yg.H5a
+ });
+ if (0 === b.length)
+ return Promise.reject({
+ code: X.yg.F5a
+ });
+ b = b[0];
+ d = this;
+ d.context.Xc && d.log.trace("LICENSE: Setting license");
+ return d.context.x2 ? Promise.reject({
+ U: !1,
+ code: X.yg.c2a,
+ message: "Promise based EME is currently not supported for Internet Explorer"
+ }) : (function () {
+ return new Promise(function (f, h) {
+ var g,
+ k,
+ l,
+ m,
+ n,
+ p,
+ q;
+ try {
+ n = function (a) {
+ d.He && (d.He.removeEventListener("mskeymessage", g), d.He.removeEventListener("mskeyadded", k), d.He.removeEventListener("mskeyerror", l), d.He.addEventListener("mskeyerror", d.HRa));
+ a.state = 11;
+ a.U ? f(a) : (d.close(), h(a));
+ };
+ p = function (a) {
+ var b,
+ c;
+ b = [];
+ c = Array.prototype.map.call(a, function (a) {
+ return a ? String.fromCharCode(a) : "";
+ }).join("").match(/(.+?)<\/KID>/);
+ if (c)
+ b.push(c[1]);
+ else {
+ a = V(a, "KIDS");
+ for (var c = /VALUE="(.+?)">/g, d = c.exec(a); null != d; ) {
+ b.push(d[1]);
+ d = c.exec(a);
+ }
+ }
+ return b;
+ };
+ g = function (b) {
+ m && clearTimeout(m);
+ Q(b, a, d, n);
+ };
+ k = function (a) {
+ (d.context.Xc || d.context.bh) && d.log.trace("LICENSE: Received " + a.type + " event", {
+ keySystem: a.target.keySystem,
+ sessionId: a.target.sessionId
+ });
+ n({
+ U: !0
+ });
+ };
+ l = function (a) {
+ var b,
+ c;
+ m && clearTimeout(m);
+ a.target && a.target.error && (b = a.target.error.systemCode, c = a.target.error.code);
+ b = {
+ code: X.yg.lx,
+ Nb: X.nn.Yt,
+ xd: b ? u().zv(b, 4) : c,
+ py: A().Fd(a),
+ cause: a.target && a.target.error,
+ pLb: b,
+ snb: c
+ };
+ d.log.error("LICENSE: Received " + a.type + " event", {
+ sessionId: d.He && d.He.sessionId,
+ keySystem: a.target.keySystem,
+ systemCode: b.pLb,
+ code: b.snb
+ });
+ d.kz("le");
+ d.iw && d.iw(X.yg.lx, b);
+ n({
+ U: !1,
+ code: X.yg.lx,
+ Nb: X.nn.Yt,
+ xd: b.xd,
+ message: "Received a key error.",
+ ab: b.py,
+ cause: b.cause
+ });
+ };
+ d.log.trace("LICENSE: Executing prefix based EME");
+ (d.context.Xc || d.context.bh) && d.log.debug("LICENSE: PSSH", r().encode(b));
+ d.Sv || (d.Sv = p(b));
+ if (c) {
+ q = N.call(d, d.Sv);
+ d.He = d.Nf.createSession("video/mp4", new Uint8Array(0), q);
+ } else
+ d.He = d.Nf.createSession("video/mp4", b, null);
+ (d.context.Xc || d.context.bh) && d.log.debug("LICENSE: Created the media keys sessions", {
+ keySystem: d.He.keySystem,
+ sessionId: d.He.sessionId
+ });
+ d.He.addEventListener("mskeymessage", g);
+ d.He.addEventListener("mskeyadded", k);
+ d.He.addEventListener("mskeyerror", l);
+ d.context.Nwb && (m = setTimeout(function () {
+ n({
+ U: !1,
+ code: X.yg.q8,
+ Nb: X.nn.xT
+ });
+ }, d.context.Nwb));
+ } catch (Ba) {
+ h({
+ code: X.yg.q8,
+ Nb: X.nn.Df
+ });
+ }
+ });
+ })();
+ };
+ a.prototype.hJ = function () {
+ (this.context.Xc || this.context.bh) && this.log.trace("LICENSE: Renewing license");
+ return this.Ig(z.sk.Y3a.cm, [new Uint8Array(0)], !0);
+ };
+ a.prototype.pX = function (a) {
+ this.zSa || this.log.error("pending license must exist at this point");
+ this.context.j2 = !0;
+ try {
+ a && (this.context.la = a, this.context.la.msSetMediaKeys(this.Nf));
+ } catch (na) {
+ return Promise.reject({
+ U: !1,
+ code: X.yg.kL,
+ message: "setMediaKeys failed",
+ ab: A().Fd(na)
+ });
+ }
+ return Y(this, this.zSa, this.He);
+ };
+ a.prototype.xnb = function (a) {
+ var b,
+ c,
+ f;
+ b = this;
+ c = 1;
+ if (b.context.ZH && !b.He)
+ return (b.log.info("The key session is undefined, assuming its closed and bailing"), Promise.resolve({
+ U: !0
+ }));
+ f = {
+ ga: a.ga,
+ Rb: a.Rb,
+ nR: {}
+ };
+ return new Promise(function (a, h) {
+ var p,
+ q,
+ w,
+ z,
+ A,
+ C,
+ H,
+ G,
+ M;
+ function m(d) {
+ b.Nh && (b.Nh.removeEventListener("mskeymessage", p), b.Nh.removeEventListener("mskeyadded", q), b.Nh.removeEventListener("mskeyerror", w), b.Nh.close());
+ d.state = c;
+ G.stop();
+ b.close();
+ d.U ? a(d) : h(d);
+ }
+ function n() {
+ b.context.vj.stop.call(b.context.vj, f).then(function (a) {
+ if (b.context.ZH) {
+ if (2 == c)
+ if ((c = 3, C = k(), (a = a.response.data) && (b.context.Xc || b.context.bh) && b.log.debug("SECURE_STOP: Received stop data from the server", {
+ sessionId: b.keySessionId,
+ stopData: JSON.stringify(a)
+ }), (b.context.Xc || b.context.bh) && b.log.debug("SECURE_STOP: Calling update", {
+ sessionId: b.keySessionId,
+ stopData: JSON.stringify(a)
+ }), a = R.call(b, a, b.keySessionId)))
+ try {
+ G.start(b.context.pJ.OX, X.nn.Z5, "non-persisted mskeyadded");
+ b.Nh.update(r().decode(a));
+ } catch (Tc) {
+ b.log.error("SECURE_STOP: Unable to update the EME.", Tc);
+ m(B(Tc, X.yg.yE, X.nn.Df, "Unable to update the EME with secure stop data."));
+ }
+ else
+ m({
+ U: !0,
+ state: 4
+ });
+ } else
+ m({
+ U: !0,
+ c1: void 0,
+ LD: void 0,
+ WX: void 0
+ });
+ })["catch"](function (a) {
+ b.log.error("SECURE_STOP: Unable to get the stop data", {
+ sessionId: b.keySessionId,
+ code: a.code,
+ subCode: a.Nb,
+ extCode: a.xd,
+ edgeCode: a.wm,
+ message: a.Vn
+ });
+ m(a);
+ });
+ }
+ z = k();
+ G = new d(function (a) {
+ c = 5;
+ m(a);
+ });
+ p = function (a) {
+ var d;
+ if (a.message && 1 == c) {
+ c = 2;
+ G.stop();
+ d = new Uint8Array(a.message);
+ (b.context.Xc || b.context.bh) && b.log.debug("SECURE_STOP: Received " + a.type + " event", {
+ sessionId: a.target.sessionId,
+ keySystem: a.target.keySystem,
+ messageType: a.messageType,
+ message: r().encode(d)
+ });
+ A = k();
+ d = V(a.message, "PlayReadyKeyMessage", "Challenge");
+ f.nR[a.target.sessionId] = d;
+ n();
+ }
+ };
+ q = function (a) {
+ (b.context.Xc || b.context.bh) && b.log.info("SECURE_STOP: Received " + a.type + " event", {
+ sessionId: a.target.sessionId
+ });
+ H = k();
+ b.log.info("Successfully released license", {
+ sessionId: a.target.sessionId
+ });
+ m({
+ U: !0,
+ state: 4,
+ c1: A - z,
+ LD: C - A,
+ WX: H - C
+ });
+ };
+ w = function (a) {
+ var d,
+ f;
+ d = g.jc.get(l.Zd);
+ f = a.target && a.target.error && a.target.error.systemCode;
+ d = d.fg(f) ? u().zv(f, 4) : void 0;
+ b.log.error("SECURE_STOP: Received " + a.type + " event", {
+ sessionId: b.keySessionId,
+ extErrorCode: d,
+ systemCode: f
+ });
+ 1 == c && n();
+ m({
+ U: !1,
+ code: X.yg.y9,
+ xd: d,
+ gXa: f,
+ state: c
+ });
+ };
+ if (b.context.ZH && b.He)
+ try {
+ b.close();
+ b.log.trace("SECURE_STOP: Calling createSession", {
+ sessionId: b.keySessionId
+ });
+ G.start(b.context.pJ.d1, X.nn.xT, "non-persisted mskeymessage");
+ b.Nf = new t.MSMediaKeys(b.yd);
+ M = E(b.keySessionId);
+ b.Nh = b.Nf.createSession("video/mp4", new Uint8Array(0), M);
+ b.Nh.addEventListener("mskeymessage", p, !1);
+ b.Nh.addEventListener("mskeyadded", q, !1);
+ b.Nh.addEventListener("mskeyerror", w, !1);
+ } catch (Fa) {
+ m(B(Fa, X.yg.oza, X.nn.Df, "Failed to createSession."));
+ }
+ else (c = 2, n());
+ });
+ };
+ a.prototype.Ykb = function (a) {
+ var b,
+ c,
+ f,
+ h;
+ b = this;
+ c = a.Rb[0].id;
+ f = 1;
+ h = {
+ ga: a.ga,
+ Rb: a.Rb,
+ nR: {}
+ };
+ return new Promise(function (a, m) {
+ var q,
+ w,
+ z,
+ A,
+ C,
+ H,
+ G,
+ M,
+ K,
+ S;
+ function n(c) {
+ A().then(function () {
+ b.Nh && (b.Nh.removeEventListener("mskeymessage", q), b.Nh.removeEventListener("mskeyadded", w), b.Nh.removeEventListener("mskeyerror", z));
+ c.state = f;
+ K.stop();
+ b.close();
+ c.U ? a(c) : m(c);
+ });
+ }
+ function p() {
+ A = function () {
+ return Promise.resolve();
+ };
+ b.context.vj.stop.call(b.context.vj, h).then(function (a) {
+ if (2 == f)
+ if ((f = 3, G = k(), (a = a.response.data) && (b.context.Xc || b.context.bh) && b.log.debug("SECURE_STOP: Received stop data from the server", {
+ sessionId: c,
+ stopData: JSON.stringify(a)
+ }), (b.context.Xc || b.context.bh) && b.log.debug("SECURE_STOP: Calling update", {
+ sessionId: c,
+ stopData: JSON.stringify(a)
+ }), (a = R.call(b, a, c)) && b.Nh))
+ try {
+ K.start(b.context.pJ.OX, X.nn.Z5, "persisted mskeyadded");
+ b.Nh.update(r().decode(a));
+ } catch (da) {
+ b.log.error("SECURE_STOP: Unable to update the EME.", da);
+ n(B(da, X.yg.yE, X.nn.Df, "Unable to update the EME with secure stop data."));
+ }
+ else (b.log.trace("done with set stop data", {
+ sessionStopData: !!a,
+ stopKeySession: !!b.Nh
+ }), n({
+ U: !0,
+ state: 4
+ }));
+ })["catch"](function (a) {
+ b.log.error("SECURE_STOP: Unable to get the stop data", {
+ sessionId: c,
+ code: a.code,
+ subCode: a.Nb,
+ extCode: a.xd,
+ edgeCode: a.wm,
+ message: a.Vn
+ });
+ n(a);
+ });
+ }
+ C = k();
+ K = new d(function (a) {
+ f = 5;
+ n(a);
+ });
+ q = function (a) {
+ var d;
+ if (a.message && 1 == f) {
+ f = 2;
+ K.stop();
+ d = new Uint8Array(a.message);
+ (b.context.Xc || b.context.bh) && b.log.debug("SECURE_STOP: Received " + a.type + " event", {
+ sessionId: a.target.sessionId,
+ keySystem: a.target.keySystem,
+ messageType: a.messageType,
+ message: r().encode(d)
+ });
+ H = k();
+ a = V(a.message, "PlayReadyKeyMessage", "Challenge");
+ h.nR[c] = a;
+ p();
+ }
+ };
+ w = function (a) {
+ (b.context.Xc || b.context.bh) && b.log.info("SECURE_STOP: Received " + a.type + " event", {
+ sessionId: a.target.sessionId
+ });
+ M = k();
+ n({
+ U: !0,
+ state: 4,
+ c1: H - C,
+ LD: G - H,
+ WX: M - G
+ });
+ };
+ z = function (a) {
+ var c,
+ d;
+ c = g.jc.get(l.Zd);
+ d = a.target && a.target.error && a.target.error.systemCode;
+ c = c.fg(d) ? u().zv(d, 4) : void 0;
+ b.log.error("SECURE_STOP: Received " + a.type + " event", {
+ sessionId: b.Nh.sessionId,
+ extErrorCode: c,
+ systemCode: d
+ });
+ n({
+ U: !1,
+ code: X.yg.y9,
+ xd: c,
+ gXa: d,
+ state: f
+ });
+ };
+ A = function () {
+ return b.context.vj.stop.call(b.context.vj, h).then(function () {
+ b.log.info("SECURE_STOP: Successfully sent playdata without SecureStop");
+ })["catch"](function (a) {
+ b.log.error("SECURE_STOP: Failed to send playdata without SecureStop", {
+ sessionId: b.He.sessionId,
+ code: a.code,
+ subCode: a.Nb,
+ extCode: a.xd,
+ edgeCode: a.wm,
+ message: a.Vn
+ });
+ });
+ };
+ if (b.context.ZH && c)
+ try {
+ b.log.trace("SECURE_STOP: Calling createSession", {
+ sessionId: c
+ });
+ K.start(b.context.pJ.d1, X.nn.xT, "non-persisted mskeymessage");
+ b.Nf = new t.MSMediaKeys(b.yd);
+ S = E("Kg==");
+ b.Nh = b.Nf.createSession("video/mp4", new Uint8Array(0), S);
+ b.Nh.addEventListener("mskeymessage", q, !1);
+ b.Nh.addEventListener("mskeyadded", w, !1);
+ b.Nh.addEventListener("mskeyerror", z, !1);
+ } catch (mb) {
+ n(B(mb, X.yg.oza, X.nn.Df, "Failed to createSession."));
+ }
+ else (f = 2, p());
+ });
+ };
+ a.prototype.VNa = function () {
+ return this.context.Xc || this.context.bh;
+ };
+ b.u$ = a;
+ t._cad_global.WindowsEmeSession = b.u$;
+ })();
+ }, function (d, b, a) {
+ var c,
+ g,
+ l,
+ n,
+ h;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.O8 = void 0;
+ c = a(3);
+ g = a(50);
+ l = a(274);
+ n = a(59);
+ h = {
+ MONOSPACED_SERIF: "font-family:Courier New,Arial,Helvetica;font-weight:bolder",
+ MONOSPACED_SANS_SERIF: "font-family:Consolas,Lucida Console,Menlo,Monaco,Arial,Helvetica;font-weight:bolder",
+ PROPORTIONAL_SERIF: "font-family:Georgia,Times New Roman,Arial,Helvetica;font-weight:bolder",
+ PROPORTIONAL_SANS_SERIF: "font-family:Arial,Helvetica;font-weight:bolder",
+ CASUAL: "font-family:Gabriola,Segoe Print,Comic Sans MS,Chalkboard,Arial,Helvetica;font-weight:bolder",
+ CURSIVE: "font-family:Lucida Handwriting,Brush Script MT,Segoe Script,Arial,Helvetica;font-weight:bolder",
+ SMALL_CAPITALS: "font-family:Copperplate Gothic,Copperplate Gothic Bold,Copperplate,Arial,Helvetica;font-variant:small-caps;font-weight:bolder"
+ };
+ b.O8 = function () {
+ this.zFa = this.DB = l.fA.e7;
+ this.hoa = !0;
+ this.bN = [];
+ this.DS = [];
+ this.W1 = this.dfa = !1;
+ this.Lt = [n.ml.B5, n.ml.y6a, n.ml.RE];
+ this.he = void 0;
+ this.rfa = !0;
+ this.XY = !1;
+ this.rX = g.da(288E4);
+ this.tX = g.da(335544320);
+ this.az = c.Gb(15E3);
+ this.yyb = g.da(6291456);
+ this.gI = 1E3;
+ this.Yca = !0;
+ this.upa = h;
+ this.TJ = g.da(0);
+ this.f4 = c.Gb(0);
+ this.oP = !0;
+ };
+ }, function (d, b, a) {
+ var c,
+ g,
+ l,
+ n,
+ h,
+ p,
+ m,
+ f,
+ q,
+ w,
+ z,
+ E,
+ C,
+ M,
+ H,
+ G,
+ T,
+ S,
+ aa;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.platform = b.l2a = b.k2a = b.j2a = void 0;
+ c = a(0);
+ g = a(1);
+ l = a(32);
+ n = a(3);
+ h = a(142);
+ p = a(1165);
+ m = a(274);
+ f = a(59);
+ q = a(514);
+ w = a(513);
+ z = a(30);
+ E = a(141);
+ C = a(273);
+ M = a(1164);
+ H = a(1163);
+ G = (function () {
+ function a(a) {
+ var b,
+ c;
+ b = a.XNa;
+ c = a.YNa;
+ a = a.cOa;
+ this.version = "6.0025.038.031";
+ this.JQa = !0;
+ this.iC = c ? "D" : "H";
+ this.wy = c ? a ? "NFCDIE-04-" : "NFCDIE-03-" : b ? "NFCDIE-02-" : "NFCDIE-01-";
+ this.FZ = !0;
+ this.Fea = b || c ? "edge-cadmium" : "ie-cadmium";
+ this.slb = "browser";
+ this.Lxb = "";
+ this.Gea = "cadmium";
+ this.bOb = !0;
+ this.ZFb = this.Scb = !1;
+ }
+ return a = c.__decorate([g.N(), c.__param(0, g.l(w.$S))], a);
+ })();
+ b.j2a = G;
+ T = (function () {
+ var b;
+ function a() {
+ var a;
+ a = p.O8.call(this) || this;
+ a.DB = t.crypto ? m.fA.e7 : m.fA.U3a;
+ a.zFa = a.DB;
+
+ if (useddplus){
+ a.bN = [f.xg.xK, f.xg.yK];
+ } else {
+ a.bN = [f.xg.QK, f.xg.RK, f.xg.xK, f.xg.yK];
+ }
+
+
+ a.DS = [].concat(f.W.gua, f.W.l_a, f.W.IAa, f.W.d7a, f.W.hua, f.W.Ksa);
+ a.he = void 0;
+ a.az = n.Gb(31E3);
+ a.oP = !1;
+ return a;
+ }
+ N(a, p.O8);
+ b = a;
+ return b = c.__decorate([g.N()], b);
+ })();
+ b.k2a = T;
+ S = (function () {
+ var b;
+ function a(a) {
+ this.Zg = a;
+ }
+ a.prototype.apply = function () {
+ var a,
+ b,
+ c,
+ d,
+ h;
+ a = {
+ nudgeSourceBuffer: !0,
+ audioCapabilityDetectorType: z.Ar.du,
+ videoCapabilityDetectorType: z.Dj.du,
+ microsoftHwdrmRequiresHevc: !0,
+ microsoftScreenSizeFilterEnabled: !0,
+ addFailedLogBlobsToQueue: !1,
+ secureStopEnabled: !0,
+ secureStopFromPersistedKeySession: !0,
+ secureStopPersistedKeyMessageTimeoutMilliseconds: 25E3,
+ bookmarkIgnoreBeginning: "2000"
+ };
+ b = this.Zg.YNa;
+ c = this.Zg.cOa;
+ d = {
+ prepareCadmium: !0,
+ enableLdlPrefetch: !0,
+ doNotPerformLdlOnPlaybackStart: !0,
+ licenseRenewalRequestDelay: 5E3,
+ enableGetHeadersAndMediaPrefetch: !0,
+ enableUsingHeaderCount: !0,
+ defaultHeaderCacheSize: 15
+ };
+ h = {
+ audioCapabilityDetectorType: z.Ar.Uw,
+ videoCapabilityDetectorType: z.Dj.s5,
+ microsoftScreenSizeFilterEnabled: !1,
+ secureStopEnabled: !1,
+ secureStopFromPersistedKeySession: !1,
+ keySystemList: [E.rb.s7a],
+ useTypescriptEme: !0,
+ licenseRenewalRequestDelay: 0,
+ audioProfiles: [f.xg.QK, f.xg.RK],
+ videoProfiles: [f.W.KK, f.W.DE, f.W.ET, f.W.FT],
+ enableAVCHigh: !0,
+ enableCDMAttestedDescriptors: !0,
+ droppedFrameRateFilterEnabled: !0
+ };
+ this.Zg.XNa && (14 <= this.Zg.zX && (a = Object.assign(Object.assign(Object.assign({}, a), d), {
+ microsoftEnableDeviceInfo: !0,
+ enableHWDRM: !0,
+ enableHEVC: !0,
+ useHevcCodecForDolbyVision: !0
+ })), 15 <= this.Zg.zX && (a = Object.assign(Object.assign({}, a), {
+ enablePRK: !0,
+ enableHDR: !0,
+ usePlayReadyHeaderObject: !0
+ })), 16 <= this.Zg.zX && (a = Object.assign(Object.assign({}, a), {
+ microsoftHwdrmRequiresHevc: !1
+ })), 17 <= this.Zg.zX && (a = Object.assign(Object.assign({}, a), {
+ enableDDPlusAtmos: !0
+ })));
+ b && (a = Object.assign(Object.assign({}, a), d), c || (a = Object.assign(Object.assign({}, a), {
+ webkitDecodedFrameCountIncorrectlyReported: !0
+ })), b = t.MSMediaKeys && t.MSMediaKeys.isTypeSupported(E.rb.Yp, "video/mp4"), a = c || !b ? Object.assign(Object.assign({}, a), h) : Object.assign(Object.assign({}, a), {
+ microsoftEnableDeviceInfo: !1,
+ enableHWDRM: !0,
+ enableHEVC: !0,
+ enablePRK: !0,
+ enableHDR: !0,
+ usePlayReadyHeaderObject: !0,
+ microsoftHwdrmRequiresHevc: !1,
+ enableDDPlusAtmos: !0
+ }));
+ return a;
+ };
+ b = a;
+ return b = c.__decorate([g.N(), c.__param(0, g.l(w.$S))], b);
+ })();
+ b.l2a = S;
+ aa = (function () {
+ function a(a) {
+ this.vta = a.wy;
+ }
+ return a = c.__decorate([g.N(), c.__param(0, g.l(l.aj))], a);
+ })();
+ b.platform = new g.Kc(function (a) {
+ a(l.aj).to(G).Z();
+ a(h.ZE).to(T).Z();
+ a(q.P8).to(S).Z();
+ a(l.Xp).to(aa).Z();
+ a(C.GU).zf(function () {
+ return function () {
+ return {
+ tb: function (a, b, c, d) {
+ return new M.u$(a, b, c, d);
+ },
+ request: H.dBa
+ };
+ };
+ });
+ });
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.MQa = function (a) {
+ return function (b) {
+ return function () {
+ for (var c = [], d = 0; d < arguments.length; d++) {
+ c[d] = arguments[d];
+ }
+ return c.forEach(function (c) {
+ return a.bind(c).cMb(b);
+ });
+ };
+ };
+ };
+ }, function (d, b, a) {
+ var c,
+ g,
+ l;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ c = a(54);
+ g = a(38);
+ l = a(64);
+ b.ZSa = function () {
+ return function (a, b) {
+ b = new l.Metadata(g.lL, b);
+ if (Reflect.Uha(g.lL, a.constructor))
+ throw Error(c.D4a);
+ Reflect.Aea(g.lL, b, a.constructor);
+ };
+ };
+ }, function (d, b, a) {
+ var c,
+ g,
+ l;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ c = a(38);
+ g = a(64);
+ l = a(92);
+ b.eS = function (a) {
+ return function (b, d, k) {
+ var f;
+ f = new g.Metadata(c.lU, a);
+ l.$D(b, d, k, f);
+ };
+ };
+ }, function (d, b, a) {
+ var c,
+ g,
+ l;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ c = a(38);
+ g = a(64);
+ l = a(92);
+ b.aD = function (a) {
+ return function (b, d, k) {
+ var f;
+ f = new g.Metadata(c.uA, a);
+ "number" === typeof k ? l.$D(b, d, k, f) : l.bS(b, d, f);
+ };
+ };
+ }, function (d, b, a) {
+ var c,
+ g,
+ l;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ c = a(38);
+ g = a(64);
+ l = a(92);
+ b.mi = function () {
+ return function (a, b, d) {
+ var h;
+ h = new g.Metadata(c.CL, !0);
+ l.$D(a, b, d, h);
+ };
+ };
+ }, function (d, b, a) {
+ var c,
+ g,
+ l;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ c = a(38);
+ g = a(64);
+ l = a(92);
+ b.optional = function () {
+ return function (a, b, d) {
+ var h;
+ h = new g.Metadata(c.$wa, !0);
+ "number" === typeof d ? l.$D(a, b, d, h) : l.bS(a, b, h);
+ };
+ };
+ }, function (d, b, a) {
+ var c,
+ g,
+ l;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ c = a(38);
+ g = a(64);
+ l = a(92);
+ b.PQa = function (a) {
+ return function (b, d, k) {
+ var f;
+ f = new g.Metadata(c.kx, a);
+ "number" === typeof k ? l.$D(b, d, k, f) : l.bS(b, d, f);
+ };
+ };
+ }, function (d, b, a) {
+ var c,
+ g;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ c = a(64);
+ g = a(92);
+ b.hXa = function (a, b) {
+ return function (d, k, l) {
+ var f;
+ f = new c.Metadata(a, b);
+ "number" === typeof l ? g.$D(d, k, l, f) : g.bS(d, k, f);
+ };
+ };
+ }, function (d, b, a) {
+ var c,
+ g;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ c = a(54);
+ g = a(38);
+ b.N = function () {
+ return function (a) {
+ var b;
+ if (Reflect.Uha(g.k8, a))
+ throw Error(c.I1a);
+ b = Reflect.getMetadata(g.e1a, a) || [];
+ Reflect.Aea(g.k8, b, a);
+ return a;
+ };
+ };
+ }, function (d, b, a) {
+ var c;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ c = a(102);
+ b.Kc = (function () {
+ return function (a) {
+ this.id = c.id();
+ this.ana = a;
+ };
+ })();
+ b.lra = (function () {
+ return function (a) {
+ this.id = c.id();
+ this.ana = a;
+ };
+ })();
+ }, function (d, b, a) {
+ var c;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ c = a(54);
+ d = (function () {
+ function a() {
+ this.Ij = new Map();
+ }
+ a.prototype.add = function (a, b) {
+ var d;
+ if (null === a || void 0 === a)
+ throw Error(c.eL);
+ if (null === b || void 0 === b)
+ throw Error(c.eL);
+ d = this.Ij.get(a);
+ void 0 !== d ? (d.push(b), this.Ij.set(a, d)) : this.Ij.set(a, [b]);
+ };
+ a.prototype.get = function (a) {
+ if (null === a || void 0 === a)
+ throw Error(c.eL);
+ a = this.Ij.get(a);
+ if (void 0 !== a)
+ return a;
+ throw Error(c.lva);
+ };
+ a.prototype.remove = function (a) {
+ if (null === a || void 0 === a)
+ throw Error(c.eL);
+ if (!this.Ij["delete"](a))
+ throw Error(c.lva);
+ };
+ a.prototype.JMa = function (a) {
+ if (null === a || void 0 === a)
+ throw Error(c.eL);
+ return this.Ij.has(a);
+ };
+ a.prototype.clone = function () {
+ var b;
+ b = new a();
+ this.Ij.forEach(function (a, c) {
+ a.forEach(function (a) {
+ return b.add(c, a.clone());
+ });
+ });
+ return b;
+ };
+ a.prototype.vMb = function (a) {
+ this.Ij.forEach(function (b, c) {
+ a(c, b);
+ });
+ };
+ return a;
+ })();
+ b.c4a = d;
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ d = (function () {
+ function a() {}
+ a.of = function (b, d) {
+ var c;
+ c = new a();
+ c.jN = b;
+ c.mzb = d;
+ return c;
+ };
+ return a;
+ })();
+ b.AQb = d;
+ }, function (d, b, a) {
+ var c,
+ g;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ c = a(77);
+ g = a(517);
+ d = (function () {
+ function a(a) {
+ this.Pb = a;
+ }
+ a.prototype.Z = function () {
+ this.Pb.scope = c.Tp.J9;
+ return new g.gA(this.Pb);
+ };
+ a.prototype.tia = function () {
+ this.Pb.scope = c.Tp.gV;
+ return new g.gA(this.Pb);
+ };
+ return a;
+ })();
+ b.Q_a = d;
+ }, function (d, b, a) {
+ var c,
+ g,
+ l;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ c = a(1179);
+ g = a(276);
+ l = a(275);
+ d = (function () {
+ function a(a) {
+ this.Pb = a;
+ this.OL = new l.f5(this.Pb);
+ this.I$ = new g.YS(this.Pb);
+ this.uBa = new c.Q_a(a);
+ }
+ a.prototype.Z = function () {
+ return this.uBa.Z();
+ };
+ a.prototype.tia = function () {
+ return this.uBa.tia();
+ };
+ a.prototype.when = function (a) {
+ return this.OL.when(a);
+ };
+ a.prototype.IS = function () {
+ return this.OL.IS();
+ };
+ a.prototype.et = function (a) {
+ return this.I$.et(a);
+ };
+ return a;
+ })();
+ b.vra = d;
+ }, function (d, b, a) {
+ var c,
+ g,
+ l,
+ n;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ c = a(54);
+ g = a(77);
+ l = a(1180);
+ n = a(517);
+ d = (function () {
+ function a(a) {
+ this.Pb = a;
+ }
+ a.prototype.to = function (a) {
+ this.Pb.type = g.Vi.Y6;
+ this.Pb.Mk = a;
+ return new l.vra(this.Pb);
+ };
+ a.prototype.KXa = function () {
+ if ("function" !== typeof this.Pb.xf)
+ throw Error("" + c.I3a);
+ this.to(this.Pb.xf);
+ };
+ a.prototype.ji = function (a) {
+ this.Pb.type = g.Vi.lsa;
+ this.Pb.cache = a;
+ this.Pb.dH = null;
+ this.Pb.Mk = null;
+ new n.gA(this.Pb);
+ };
+ a.prototype.Jw = function (a) {
+ this.Pb.type = g.Vi.nta;
+ this.Pb.cache = null;
+ this.Pb.dH = a;
+ this.Pb.Mk = null;
+ return new l.vra(this.Pb);
+ };
+ a.prototype.bMb = function (a) {
+ this.Pb.type = g.Vi.msa;
+ this.Pb.Mk = a;
+ new n.gA(this.Pb);
+ };
+ a.prototype.zf = function (a) {
+ this.Pb.type = g.Vi.n6;
+ this.Pb.pH = a;
+ new n.gA(this.Pb);
+ };
+ a.prototype.ZLb = function (a) {
+ this.Pb.type = g.Vi.n6;
+ this.Pb.pH = function (b) {
+ return function () {
+ return b.hb.get(a);
+ };
+ };
+ new n.gA(this.Pb);
+ };
+ a.prototype.hS = function (a) {
+ this.Pb.type = g.Vi.Vya;
+ this.Pb.tt = a;
+ new n.gA(this.Pb);
+ };
+ a.prototype.cMb = function (a) {
+ this.Jw(function (b) {
+ return b.hb.get(a);
+ });
+ };
+ return a;
+ })();
+ b.R_a = d;
+ }, function (d, b, a) {
+ var l,
+ n,
+ h;
+ function c(a, b, c) {
+ var d;
+ b = b.filter(function (a) {
+ return null !== a.target && a.target.type === n.nu.fsa;
+ });
+ d = b.map(c);
+ b.forEach(function (b, c) {
+ b = b.target.name.value();
+ a[b] = d[c];
+ });
+ return a;
+ }
+ function g(a, b) {
+ var c;
+ if (Reflect.Gtb(h.lL, a)) {
+ c = Reflect.getMetadata(h.lL, a);
+ try {
+ b[c.value]();
+ } catch (u) {
+ throw Error(l.R5a(a.name, u.message));
+ }
+ }
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ l = a(54);
+ n = a(77);
+ h = a(38);
+ b.TGb = function (a, b, d) {
+ var f;
+ f = null;
+ 0 < b.length ? (f = b.filter(function (a) {
+ return null !== a.target && a.target.type === n.nu.nsa;
+ }).map(d), f = new(a.bind.apply(a, [void 0].concat(f)))(), f = c(f, b, d)) : f = new a();
+ g(a, f);
+ return f;
+ };
+ }, function (d, b, a) {
+ var l,
+ n,
+ h,
+ p,
+ m;
+ function c(a) {
+ return function (b) {
+ var d,
+ f,
+ h,
+ k,
+ q;
+ d = b.jN;
+ f = b.kda;
+ h = b.target && b.target.isArray();
+ k = !b.pw || !b.pw.target || !b.target || !b.pw.target.ryb(b.target.xf);
+ if (h && k)
+ return f.map(function (b) {
+ return c(a)(b);
+ });
+ h = null;
+ if (!b.target.hOa() || 0 !== d.length) {
+ q = d[0];
+ d = q.scope === n.Tp.J9;
+ k = q.scope === n.Tp.Request;
+ if (d && q.Gba)
+ return q.cache;
+ if (k && null !== a && a.has(q.id))
+ return a.get(q.id);
+ if (q.type === n.Vi.lsa)
+ h = q.cache;
+ else if (q.type === n.Vi.Function)
+ h = q.cache;
+ else if (q.type === n.Vi.msa)
+ h = q.Mk;
+ else if (q.type === n.Vi.nta && null !== q.dH)
+ h = g("toDynamicValue", q.xf, function () {
+ return q.dH(b.NI);
+ });
+ else if (q.type === n.Vi.n6 && null !== q.pH)
+ h = g("toFactory", q.xf, function () {
+ return q.pH(b.NI);
+ });
+ else if (q.type === n.Vi.Vya && null !== q.tt)
+ h = g("toProvider", q.xf, function () {
+ return q.tt(b.NI);
+ });
+ else if (q.type === n.Vi.Y6 && null !== q.Mk)
+ h = m.TGb(q.Mk, f, c(a));
+ else
+ throw (f = p.GH(b.xf), Error(l.D3a + " " + f));
+ "function" === typeof q.et && (h = q.et(b.NI, h));
+ d && (q.cache = h, q.Gba = !0);
+ k && null !== a && !a.has(q.id) && a.set(q.id, h);
+ return h;
+ }
+ };
+ }
+ function g(a, b, c) {
+ try {
+ return c();
+ } catch (A) {
+ if (h.sOa(A))
+ throw Error(l.p0a(a, b.toString()));
+ throw A;
+ }
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ l = a(54);
+ n = a(77);
+ h = a(520);
+ p = a(143);
+ m = a(1182);
+ b.resolve = function (a) {
+ return c(a.TI.Cna.GGb)(a.TI.Cna);
+ };
+ }, function (d, b, a) {
+ var c;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ c = a(102);
+ d = (function () {
+ function a(a, b, d, g, k) {
+ this.id = c.id();
+ this.xf = a;
+ this.NI = b;
+ this.pw = d;
+ this.target = k;
+ this.kda = [];
+ this.jN = Array.isArray(g) ? g : [g];
+ this.GGb = null === d ? new Map() : null;
+ }
+ a.prototype.lEa = function (b, c, d) {
+ b = new a(b, this.NI, this, c, d);
+ this.kda.push(b);
+ return b;
+ };
+ return a;
+ })();
+ b.Request = d;
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ d = (function () {
+ function a(a) {
+ this.Hz = a;
+ }
+ a.prototype.startsWith = function (a) {
+ return 0 === this.Hz.indexOf(a);
+ };
+ a.prototype.endsWith = function (a) {
+ var b;
+ b = a.split("").reverse().join("");
+ a = this.Hz.split("").reverse().join("");
+ return this.startsWith.call({
+ Hz: a
+ }, b);
+ };
+ a.prototype.contains = function (a) {
+ return -1 !== this.Hz.indexOf(a);
+ };
+ a.prototype.equals = function (a) {
+ return this.Hz === a;
+ };
+ a.prototype.value = function () {
+ return this.Hz;
+ };
+ return a;
+ })();
+ b.b6a = d;
+ }, function (d, b, a) {
+ var h,
+ p,
+ m,
+ f,
+ q,
+ t;
+ function c(a, b, c, d) {
+ var f,
+ k,
+ u,
+ w,
+ z,
+ A,
+ C,
+ E,
+ M,
+ K;
+ f = a.QKa(c);
+ k = f.YGa;
+ if (void 0 === k)
+ throw Error(p.p4a + " " + b + ".");
+ for (var f = f.ZNb, l = Object.keys(f), q = 0 === c.length && 0 < l.length ? l.length : c.length, l = [], r = 0; r < q; r++) {
+ w = r;
+ z = d;
+ A = b;
+ C = k;
+ u = f[w.toString()] || [];
+ E = n(u);
+ M = !0 !== E.mi;
+ C = C[w];
+ K = E.l || E.aD;
+ C = K ? K : C;
+ C instanceof h.j7 && (C = C.UMb());
+ if (M) {
+ M = C === Function;
+ M = C === Object || M || void 0 === C;
+ if (!z && M)
+ throw Error(p.q4a + " argument " + w + " in class " + A + ".");
+ w = new t.dV(m.nu.nsa, E.eS, C);
+ w.Kd = u;
+ u = w;
+ } else
+ u = null;
+ null !== u && l.push(u);
+ }
+ a = g(a, c);
+ return l.concat(a);
+ }
+ function g(a, b) {
+ var k,
+ l,
+ p;
+ for (var c = a.Prb(b), d = [], f = 0, h = Object.keys(c); f < h.length; f++) {
+ k = h[f];
+ l = c[k];
+ p = n(c[k]);
+ k = new t.dV(m.nu.fsa, p.eS || k, p.l || p.aD);
+ k.Kd = l;
+ d.push(k);
+ }
+ b = Object.getPrototypeOf(b.prototype).constructor;
+ b !== Object && (a = g(a, b), d = d.concat(a));
+ return d;
+ }
+ function l(a, b) {
+ var d,
+ g;
+ b = Object.getPrototypeOf(b.prototype).constructor;
+ if (b !== Object) {
+ d = q.getFunctionName(b);
+ d = c(a, d, b, !0);
+ g = d.map(function (a) {
+ return a.Kd.filter(function (a) {
+ return a.key === f.CL;
+ });
+ });
+ g = [].concat.apply([], g).length;
+ d = d.length - g;
+ return 0 < d ? d : l(a, b);
+ }
+ return 0;
+ }
+ function n(a) {
+ var b;
+ b = {};
+ a.forEach(function (a) {
+ b[a.key.toString()] = a.value;
+ });
+ return {
+ l: b[f.YK],
+ aD: b[f.uA],
+ eS: b[f.lU],
+ mi: b[f.CL]
+ };
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ h = a(519);
+ p = a(54);
+ m = a(77);
+ f = a(38);
+ q = a(143);
+ b.getFunctionName = q.getFunctionName;
+ t = a(518);
+ b.jqb = function (a, b) {
+ var d;
+ d = q.getFunctionName(b);
+ return c(a, d, b, !1);
+ };
+ b.Dpb = l;
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.Z5a = (function () {
+ return function (a, b) {
+ this.NI = a;
+ this.Cna = b;
+ };
+ })();
+ }, function (d, b, a) {
+ var c;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ c = a(102);
+ d = (function () {
+ function a(a) {
+ this.id = c.id();
+ this.hb = a;
+ }
+ a.prototype.scb = function (a) {
+ this.TI = a;
+ };
+ return a;
+ })();
+ b.osa = d;
+ }, function (d, b) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ b.e5 = {
+ RSb: 2,
+ Twa: 0,
+ c5a: 1
+ };
+ }, function (d, b, a) {
+ var h,
+ p,
+ m,
+ f,
+ q,
+ t,
+ z,
+ E,
+ C,
+ M,
+ H,
+ G;
+ function c(a, b, c, d, f) {
+ var k,
+ l;
+ k = n(c.hb, f.xf);
+ l = [];
+ k.length === h.e5.Twa && c.hb.options.gN && "function" === typeof f.xf && a.QKa(f.xf).YGa && (c.hb.bind(f.xf).KXa(), k = n(c.hb, f.xf));
+ l = b ? k : k.filter(function (a) {
+ var b;
+ b = new H.Request(a.xf, c, d, a, f);
+ return a.QB(b);
+ });
+ g(f.xf, l, f, c.hb);
+ return l;
+ }
+ function g(a, b, c, d) {
+ switch (b.length) {
+ case h.e5.Twa:
+ if (c.hOa())
+ break;
+ a = t.GH(a);
+ b = p.Q4a;
+ b += t.Swb(a, c);
+ b += t.$Oa(d, a, n);
+ throw Error(b);
+ case h.e5.c5a:
+ if (!c.isArray())
+ break;
+ default:
+ if (!c.isArray())
+ throw (a = t.GH(a), b = p.PZa + " " + a, b += t.$Oa(d, a, n), Error(b));
+ }
+ }
+ function l(a, b, d, f, g, h) {
+ var k;
+ null === g ? (b = c(a, b, f, null, h), k = new H.Request(d, f, null, b, h), d = new C.Z5a(f, k), f.scb(d)) : (b = c(a, b, f, g, h), k = g.lEa(h.xf, b, h));
+ b.forEach(function (b) {
+ var c,
+ d,
+ g;
+ c = null;
+ if (h.isArray())
+ c = k.lEa(b.xf, b, h);
+ else {
+ if (b.cache)
+ return;
+ c = k;
+ }
+ if (b.type === m.Vi.Y6 && null !== b.Mk) {
+ d = M.jqb(a, b.Mk);
+ if (!f.hb.options.SD) {
+ g = M.Dpb(a, b.Mk);
+ if (d.length < g)
+ throw (b = p.QZa(M.getFunctionName(b.Mk)), Error(b));
+ }
+ d.forEach(function (b) {
+ l(a, !1, b.xf, f, c, b);
+ });
+ }
+ });
+ }
+ function n(a, b) {
+ var c,
+ d;
+ c = [];
+ d = a.nF;
+ d.JMa(b) ? c = d.get(b) : null !== a.parent && (c = n(a.parent, b));
+ return c;
+ }
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ h = a(1189);
+ p = a(54);
+ m = a(77);
+ f = a(38);
+ q = a(520);
+ t = a(143);
+ z = a(1188);
+ E = a(64);
+ C = a(1187);
+ M = a(1186);
+ H = a(1184);
+ G = a(518);
+ b.yga = function (a) {
+ return a.nF;
+ };
+ b.TI = function (a, b, c, d, g, h, k, m) {
+ void 0 === m && (m = !1);
+ b = new z.osa(b);
+ c = new E.Metadata(c ? f.uA : f.YK, g);
+ d = new G.dV(d, "", g, c);
+ void 0 !== h && (h = new E.Metadata(h, k), d.Kd.push(h));
+ try {
+ return (l(a, m, g, b, null, d), b);
+ } catch (Y) {
+ throw (q.sOa(Y) && b.TI && t.ogb(b.TI.Cna), Y);
+ }
+ };
+ b.uXb = function (a, b, c, d) {
+ c = new G.dV(m.nu.n$, "", b, new E.Metadata(c, d));
+ a = new z.osa(a);
+ return new H.Request(b, a, null, [], c);
+ };
+ }, function (d, b, a) {
+ var c,
+ g;
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ c = a(77);
+ g = a(102);
+ d = (function () {
+ function a(a, b) {
+ this.id = g.id();
+ this.Gba = !1;
+ this.xf = a;
+ this.scope = b;
+ this.type = c.Vi.S3a;
+ this.QB = function () {
+ return !0;
+ };
+ this.dH = this.et = this.tt = this.pH = this.cache = this.Mk = null;
+ }
+ a.prototype.clone = function () {
+ var b;
+ b = new a(this.xf, this.scope);
+ b.Gba = !1;
+ b.Mk = this.Mk;
+ b.dH = this.dH;
+ b.scope = this.scope;
+ b.type = this.type;
+ b.pH = this.pH;
+ b.tt = this.tt;
+ b.QB = this.QB;
+ b.et = this.et;
+ b.cache = this.cache;
+ return b;
+ };
+ return a;
+ })();
+ b.P_a = d;
+ }, function (d, b, a) {
+ var c,
+ k,
+ l,
+ n,
+ h,
+ p,
+ m,
+ f,
+ t,
+ w,
+ z,
+ E;
+ c = this && this.__awaiter || (function (a, b, c, d) {
+ return new(c || (c = Promise))(function (f, g) {
+ function h(a) {
+ try {
+ l(d.next(a));
+ } catch (fa) {
+ g(fa);
+ }
+ }
+ function k(a) {
+ try {
+ l(d["throw"](a));
+ } catch (fa) {
+ g(fa);
+ }
+ }
+ function l(a) {
+ a.done ? f(a.value) : new c(function (b) {
+ b(a.value);
+ }).then(h, k);
+ }
+ l((d = d.apply(a, b || [])).next());
+ });
+ });
+ k = this && this.__generator || (function (a, b) {
+ var f,
+ h,
+ k,
+ l,
+ m;
+ function c(a) {
+ return function (b) {
+ return d([a, b]);
+ };
+ }
+ function d(c) {
+ if (h)
+ throw new TypeError("Generator is already executing.");
+ for (; f; ) {
+ try {
+ if ((h = 1, k && (l = k[c[0] & 2 ? "return" : c[0] ? "throw" : "next"]) && !(l = l.call(k, c[1])).done))
+ return l;
+ if ((k = 0, l))
+ c = [0, l.value];
+ switch (c[0]) {
+ case 0:
+ case 1:
+ l = c;
+ break;
+ case 4:
+ return (f.label++, {
+ value: c[1],
+ done: !1
+ });
+ case 5:
+ f.label++;
+ k = c[1];
+ c = [0];
+ continue;
+ case 7:
+ c = f.hD.pop();
+ f.hE.pop();
+ continue;
+ default:
+ if (!(l = f.hE, l = 0 < l.length && l[l.length - 1]) && (6 === c[0] || 2 === c[0])) {
+ f = 0;
+ continue;
+ }
+ if (3 === c[0] && (!l || c[1] > l[0] && c[1] < l[3]))
+ f.label = c[1];
+ else if (6 === c[0] && f.label < l[1])
+ (f.label = l[1], l = c);
+ else if (l && f.label < l[2])
+ (f.label = l[2], f.hD.push(c));
+ else {
+ l[2] && f.hD.pop();
+ f.hE.pop();
+ continue;
+ }
+ }
+ c = b.call(a, f);
+ } catch (fa) {
+ c = [6, fa];
+ k = 0;
+ }
+ finally {
+ h = l = 0;
+ }
+ }
+ if (c[0] & 5)
+ throw c[1];
+ return {
+ value: c[0] ? c[1] : void 0,
+ done: !0
+ };
+ }
+ f = {
+ label: 0,
+ Bt: function () {
+ if (l[0] & 1)
+ throw l[1];
+ return l[1];
+ },
+ hE: [],
+ hD: []
+ };
+ g();
+ g();
+ q();
+ return (m = {
+ next: c(0),
+ "throw": c(1),
+ "return": c(2)
+ }, "function" === typeof Symbol && (m[Symbol.iterator] = function () {
+ return this;
+ }), m);
+ });
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ l = a(1191);
+ n = a(54);
+ h = a(77);
+ a(38);
+ p = a(521);
+ m = a(1190);
+ f = a(1183);
+ t = a(1181);
+ w = a(102);
+ z = a(143);
+ a(1178);
+ E = a(1177);
+ d = (function () {
+ function a(a) {
+ a = a || ({});
+ if ("object" !== typeof a)
+ throw Error("" + n.D0a);
+ if (void 0 === a.YB)
+ a.YB = h.Tp.gV;
+ else if (a.YB !== h.Tp.J9 && a.YB !== h.Tp.gV && a.YB !== h.Tp.Request)
+ throw Error("" + n.B0a);
+ if (void 0 === a.gN)
+ a.gN = !1;
+ else if ("boolean" !== typeof a.gN)
+ throw Error("" + n.A0a);
+ if (void 0 === a.SD)
+ a.SD = !1;
+ else if ("boolean" !== typeof a.SD)
+ throw Error("" + n.C0a);
+ this.options = {
+ gN: a.gN,
+ YB: a.YB,
+ SD: a.SD
+ };
+ this.id = w.id();
+ this.nF = new E.c4a();
+ this.cbb = [];
+ this.parent = this.Maa = null;
+ this.Y9a = new p.T7();
+ }
+ a.VZb = function (b, c) {
+ var f,
+ g;
+ function d(a, b) {
+ a.vMb(function (a, c) {
+ c.forEach(function (a) {
+ b.add(a.xf, a.clone());
+ });
+ });
+ }
+ f = new a();
+ g = m.yga(f);
+ b = m.yga(b);
+ c = m.yga(c);
+ d(b, g);
+ d(c, g);
+ return f;
+ };
+ a.prototype.load = function () {
+ var d,
+ f;
+ for (var a = [], b = 0; b < arguments.length; b++) {
+ a[b] = arguments[b];
+ }
+ for (var b = this.jCa(), c = 0; c < a.length; c++) {
+ d = a[c];
+ f = b(d.id);
+ d.ana(f.JFa, f.oYa, f.AOa, f.XTa);
+ }
+ };
+ a.prototype.IP = function () {
+ for (var a = [], b = 0; b < arguments.length; b++) {
+ a[b] = arguments[b];
+ }
+ return c(this, void 0, void 0, function () {
+ var b,
+ c,
+ d,
+ f,
+ g;
+ return k(this, function (h) {
+ switch (h.label) {
+ case 0:
+ (b = this.jCa(), c = 0, d = a, h.label = 1);
+ case 1:
+ if (!(c < d.length))
+ return [3, 4];
+ f = d[c];
+ g = b(f.id);
+ return [4, f.ana(g.JFa, g.oYa, g.AOa, g.XTa)];
+ case 2:
+ (h.Bt(), h.label = 3);
+ case 3:
+ return (c++, [3, 1]);
+ case 4:
+ return [2];
+ }
+ });
+ });
+ };
+ a.prototype.bind = function (a) {
+ var b;
+ b = new l.P_a(a, this.options.YB || h.Tp.gV);
+ this.nF.add(a, b);
+ return new t.R_a(b);
+ };
+ a.prototype.kFb = function (a) {
+ this.nYa(a);
+ return this.bind(a);
+ };
+ a.prototype.nYa = function (a) {
+ try {
+ this.nF.remove(a);
+ } catch (H) {
+ throw Error(n.l0a + " " + z.GH(a));
+ }
+ };
+ a.prototype.RNa = function (a) {
+ var b;
+ b = this.nF.JMa(a);
+ !b && this.parent && (b = this.parent.RNa(a));
+ return b;
+ };
+ a.prototype.restore = function () {
+ var a;
+ a = this.cbb.pop();
+ if (void 0 === a)
+ throw Error(n.R4a);
+ this.nF = a.jN;
+ this.Maa = a.mzb;
+ };
+ a.prototype.fjb = function () {
+ var b;
+ b = new a(this.options);
+ b.parent = this;
+ return b;
+ };
+ a.prototype.get = function (a) {
+ return this.hCa(!1, !1, h.nu.n$, a);
+ };
+ a.prototype.getAll = function (a) {
+ return this.hCa(!0, !0, h.nu.n$, a);
+ };
+ a.prototype.resolve = function (a) {
+ var b;
+ b = this.fjb();
+ b.bind(a).KXa();
+ return b.get(a);
+ };
+ a.prototype.jCa = function () {
+ var f;
+ function a(a) {
+ return function (b) {
+ b = f.kFb.bind(f)(b);
+ b.Pb.Kzb = a;
+ return b;
+ };
+ }
+ function b() {
+ return function (a) {
+ return f.RNa.bind(f)(a);
+ };
+ }
+ function c() {
+ return function (a) {
+ f.nYa.bind(f)(a);
+ };
+ }
+ function d(a) {
+ return function (b) {
+ b = f.bind.bind(f)(b);
+ b.Pb.Kzb = a;
+ return b;
+ };
+ }
+ f = this;
+ return function (f) {
+ return {
+ JFa: d(f),
+ AOa: b(),
+ XTa: a(f),
+ oYa: c()
+ };
+ };
+ };
+ a.prototype.hCa = function (a, b, c, d) {
+ var f;
+ f = null;
+ a = {
+ keb: a,
+ nhb: function (a) {
+ return a;
+ },
+ Cvb: b,
+ key: void 0,
+ xf: d,
+ wLb: c,
+ value: void 0
+ };
+ if (this.Maa) {
+ if ((f = this.Maa(a), void 0 === f || null === f))
+ throw Error(n.G3a);
+ } else
+ f = this.hab()(a);
+ return f;
+ };
+ a.prototype.hab = function () {
+ var a;
+ a = this;
+ return function (b) {
+ var c;
+ c = m.TI(a.Y9a, a, b.Cvb, b.wLb, b.xf, b.key, b.value, b.keb);
+ c = b.nhb(c);
+ return f.resolve(c);
+ };
+ };
+ return a;
+ })();
+ b.mT = d;
+ }, function (d, b, a) {
+ var c,
+ g;
+ c = a(522);
+ g = a(525);
+ d.P = function () {
+ var a;
+ a = c();
+ g(Object, {
+ values: a
+ }, {
+ values: function () {
+ return Object.values !== a;
+ }
+ });
+ return a;
+ };
+ }, function (d, b, a) {
+ var c,
+ g,
+ l;
+ c = a(279);
+ b = a(278)("%Function%");
+ g = b.apply;
+ l = b.call;
+ d.P = function () {
+ return c.apply(l, arguments);
+ };
+ d.P.apply = function () {
+ return c.apply(g, arguments);
+ };
+ }, function (d, b, a) {
+ var c,
+ g,
+ l;
+ c = a(278);
+ g = a(1194);
+ l = g(c("String.prototype.indexOf"));
+ d.P = function (a, b) {
+ b = c(a, !!b);
+ return "function" === typeof b && l(a, ".prototype.") ? g(b) : b;
+ };
+ }, function (d) {
+ d.P = function () {
+ var b,
+ a,
+ c;
+ g();
+ if ("function" !== typeof Symbol || "function" !== typeof Object.getOwnPropertySymbols)
+ return !1;
+ g();
+ q();
+ if ("symbol" === typeof Symbol.iterator)
+ return !0;
+ b = {};
+ g();
+ a = Symbol("test");
+ c = Object(a);
+ if ("string" === typeof a || "[object Symbol]" !== Object.prototype.toString.call(a) || "[object Symbol]" !== Object.prototype.toString.call(c))
+ return !1;
+ b[a] = 42;
+ for (a in b) {
+ return !1;
+ }
+ if ("function" === typeof Object.keys && 0 !== Object.keys(b).length || "function" === typeof Object.getOwnPropertyNames && 0 !== Object.getOwnPropertyNames(b).length)
+ return !1;
+ c = Object.getOwnPropertySymbols(b);
+ return 1 !== c.length || c[0] !== a || !Object.prototype.propertyIsEnumerable.call(b, a) || "function" === typeof Object.getOwnPropertyDescriptor && (b = Object.getOwnPropertyDescriptor(b, a), 42 !== b.value || !0 !== b.enumerable) ? !1 : !0;
+ };
+ }, function (d, b, a) {
+ (function (b) {
+ var c,
+ l;
+ c = b.Symbol;
+ l = a(1196);
+ d.P = function () {
+ if ("function" !== typeof c)
+ return !1;
+ g();
+ if ("function" !== typeof Symbol || "symbol" !== typeof c("foo"))
+ return !1;
+ g();
+ return "symbol" !== typeof Symbol("bar") ? !1 : l();
+ };
+ }).call(this, a(144));
+ }, function (d, b, a) {
+ var c;
+ c = a(278)("%TypeError%");
+ d.P = function (a, b) {
+ if (null == a)
+ throw new c(b || "Cannot call method on " + a);
+ return a;
+ };
+ }, function (d, b, a) {
+ d.P = a(1198);
+ }, function (d) {
+ var b,
+ a;
+ b = Array.prototype.slice;
+ a = Object.prototype.toString;
+ d.P = function (c) {
+ var d;
+ d = this;
+ if ("function" !== typeof d || "[object Function]" !== a.call(d))
+ throw new TypeError("Function.prototype.bind called on incompatible " + d);
+ for (var g = b.call(arguments, 1), n, h = Math.max(0, d.length - g.length), p = [], m = 0; m < h; m++) {
+ p.push("$" + m);
+ }
+ n = Function("binder", "return function (" + p.join(",") + "){ return binder.apply(this,arguments); }")(function () {
+ var a;
+ if (this instanceof n) {
+ a = d.apply(this, g.concat(b.call(arguments)));
+ return Object(a) === a ? a : this;
+ }
+ return d.apply(c, g.concat(b.call(arguments)));
+ });
+ d.prototype && (h = function () {}, h.prototype = d.prototype, n.prototype = new h(), h.prototype = null);
+ return n;
+ };
+ }, function (d, b, a) {
+ b = a(279);
+ d.P = b.call(Function.call, Object.prototype.hasOwnProperty);
+ }, function (d, b, a) {
+ var c,
+ g,
+ l,
+ n,
+ h,
+ p,
+ m,
+ f,
+ q,
+ w;
+ if (!Object.keys) {
+ g = Object.prototype.hasOwnProperty;
+ l = Object.prototype.toString;
+ n = a(524);
+ b = Object.prototype.propertyIsEnumerable;
+ h = !b.call({
+ toString: null
+ }, "toString");
+ p = b.call(function () {}, "prototype");
+ m = ("toString toLocaleString valueOf hasOwnProperty isPrototypeOf propertyIsEnumerable constructor").split(" ");
+ f = function (a) {
+ var b;
+ b = a.constructor;
+ return b && b.prototype === a;
+ };
+ q = {
+ cPb: !0,
+ dPb: !0,
+ ePb: !0,
+ fPb: !0,
+ gPb: !0,
+ hPb: !0,
+ iPb: !0,
+ jPb: !0,
+ kPb: !0,
+ lPb: !0,
+ mPb: !0,
+ nPb: !0,
+ oPb: !0,
+ pPb: !0,
+ qPb: !0,
+ rPb: !0,
+ sPb: !0,
+ tPb: !0,
+ uPb: !0,
+ vPb: !0,
+ wPb: !0,
+ xPb: !0,
+ yPb: !0
+ };
+ w = (function () {
+ if ("undefined" === typeof t)
+ return !1;
+ for (var a in t) {
+ try {
+ !q["$" + a] && g.call(t, a);
+ } catch (K) {
+ return !0;
+ }
+ }
+ return !1;
+ })();
+ c = function (a) {
+ var b,
+ c,
+ d,
+ k,
+ q,
+ u;
+ b = null !== a && "object" === typeof a;
+ c = "[object Function]" === l.call(a);
+ d = n(a);
+ k = b && "[object String]" === l.call(a);
+ q = [];
+ if (!b && !c && !d)
+ throw new TypeError("Object.keys called on a non-object");
+ b = p && c;
+ if (k && 0 < a.length && !g.call(a, 0))
+ for (k = 0; k < a.length; ++k) {
+ q.push(String(k));
+ }
+ if (d && 0 < a.length)
+ for (d = 0; d < a.length; ++d) {
+ q.push(String(d));
+ }
+ else
+ for (var r in a) {
+ b && "prototype" === r || !g.call(a, r) || q.push(String(r));
+ }
+ if (h) {
+ if ("undefined" !== typeof t && w)
+ try {
+ u = f(a);
+ } catch (aa) {
+ u = !1;
+ }
+ else
+ u = f(a);
+ for (d = 0; d < m.length; ++d) {
+ u && "constructor" === m[d] || !g.call(a, m[d]) || q.push(m[d]);
+ }
+ }
+ return q;
+ };
+ }
+ d.P = c;
+ }, function (d, b, a) {
+ var c,
+ g,
+ l,
+ n,
+ h;
+ c = Array.prototype.slice;
+ g = a(524);
+ l = Object.keys;
+ n = l ? function (a) {
+ return l(a);
+ }
+ : a(1202);
+ h = Object.keys;
+ n.bl = function () {
+ Object.keys ? (function () {
+ var a;
+ a = Object.keys(arguments);
+ return a && a.length === arguments.length;
+ })(1, 2) || (Object.keys = function (a) {
+ return g(a) ? h(c.call(a)) : h(a);
+ }) : Object.keys = n;
+ return Object.keys || n;
+ };
+ d.P = n;
+ }, function (d, b, a) {
+ var c,
+ g,
+ l;
+ b = a(525);
+ c = a(523);
+ g = a(522);
+ a = a(1193);
+ l = g();
+ b(l, {
+ HYb: g,
+ implementation: c,
+ bl: a
+ });
+ d.P = l;
+ }, function (d, b, a) {
+ (function (a) {
+ var b;
+ (function (b) {
+ var ca,
+ Y,
+ ea,
+ X,
+ O,
+ ga,
+ ha,
+ P,
+ la;
+ function c(a, b, c) {
+ var d;
+ d = la.get(a);
+ if (!d) {
+ if (!c)
+ return;
+ d = new ha();
+ la.set(a, d);
+ }
+ a = d.get(b);
+ if (!a) {
+ if (!c)
+ return;
+ a = new ha();
+ d.set(b, a);
+ }
+ return a;
+ }
+ function d(a, b, c) {
+ if (g(a, b, c))
+ return !0;
+ b = H(b);
+ return null !== b ? d(a, b, c) : !1;
+ }
+ function g(a, b, d) {
+ b = c(b, d, !1);
+ return void 0 !== b && !!b.has(a);
+ }
+ function k(a, b, c) {
+ if (g(a, b, c))
+ return f(a, b, c);
+ b = H(b);
+ return null !== b ? k(a, b, c) : void 0;
+ }
+ function f(a, b, d) {
+ b = c(b, d, !1);
+ return void 0 === b ? void 0 : b.get(a);
+ }
+ function l(a, b) {
+ var c,
+ f;
+ c = n(a, b);
+ a = H(a);
+ if (null === a)
+ return c;
+ b = l(a, b);
+ if (0 >= b.length)
+ return c;
+ if (0 >= c.length)
+ return b;
+ a = new P();
+ for (var d = 0; d < c.length; d++) {
+ f = c[d];
+ a.add(f);
+ }
+ for (c = 0; c < b.length; c++) {
+ f = b[c];
+ a.add(f);
+ }
+ return Q(a);
+ }
+ function n(a, b) {
+ var d;
+ a = c(a, b, !1);
+ d = [];
+ a && N(a, function (a, b) {
+ return d.push(b);
+ });
+ return d;
+ }
+ function q(a) {
+ return void 0 === a;
+ }
+ function z(a) {
+ return Array.isArray ? Array.isArray(a) : a instanceof Array || "[object Array]" === Object.prototype.toString.call(a);
+ }
+ function C(a) {
+ return "object" === typeof a ? null !== a : "function" === typeof a;
+ }
+ function E(a) {
+ return "symbol" === typeof a ? a : String(a);
+ }
+ function H(a) {
+ var b,
+ c;
+ b = Object.getPrototypeOf(a);
+ if ("function" !== typeof a || a === ga || b !== ga)
+ return b;
+ c = a.prototype;
+ c = c && Object.getPrototypeOf(c);
+ if (null == c || c === Object.prototype)
+ return b;
+ c = c.constructor;
+ return "function" !== typeof c || c === a ? b : c;
+ }
+ function G(a) {
+ a = a.next();
+ return a.done ? void 0 : a;
+ }
+ function N(a, b) {
+ var c,
+ d,
+ f;
+ c = a.entries;
+ if ("function" === typeof c) {
+ c = c.call(a);
+ try {
+ for (; d = G(c); ) {
+ f = d.value;
+ b.call(void 0, f[1], f[0], a);
+ }
+ }
+ finally {
+ d && (a = c["return"]) && a.call(c);
+ }
+ } else (c = a.forEach, "function" === typeof c && c.call(a, b, void 0));
+ }
+ function Q(a) {
+ var b;
+ b = [];
+ N(a, function (a, c) {
+ b.push(c);
+ });
+ return b;
+ }
+ function R(a, b, c) {
+ var d;
+ d = 0;
+ return {
+ next: function () {
+ var f;
+ if ((a || b) && d < (a || b).length) {
+ f = d++;
+ switch (c) {
+ case "key":
+ return {
+ value: a[f],
+ done: !1
+ };
+ case "value":
+ return {
+ value: b[f],
+ done: !1
+ };
+ case "key+value":
+ return {
+ value: [a[f], b[f]],
+ done: !1
+ };
+ }
+ }
+ b = a = void 0;
+ return {
+ value: void 0,
+ done: !0
+ };
+ },
+ "throw": function (c) {
+ if (a || b)
+ b = a = void 0;
+ throw c;
+ },
+ "return": function (c) {
+ if (a || b)
+ b = a = void 0;
+ return {
+ value: c,
+ done: !0
+ };
+ }
+ };
+ }
+ function U() {
+ var a;
+ a = {};
+ return (function () {
+ function b() {
+ this.hq = [];
+ this.Mu = [];
+ this.yV = a;
+ this.xV = -2;
+ }
+ Object.defineProperty(b.prototype, "size", {
+ get: function () {
+ return this.hq.length;
+ },
+ enumerable: !0,
+ configurable: !0
+ });
+ b.prototype.has = function (a) {
+ return 0 <= this.TV(a, !1);
+ };
+ b.prototype.get = function (a) {
+ a = this.TV(a, !1);
+ return 0 <= a ? this.Mu[a] : void 0;
+ };
+ b.prototype.set = function (a, b) {
+ a = this.TV(a, !0);
+ this.Mu[a] = b;
+ return this;
+ };
+ b.prototype["delete"] = function (b) {
+ var c;
+ c = this.TV(b, !1);
+ if (0 <= c) {
+ b = this.hq.length;
+ for (c += 1; c < b; c++) {
+ this.hq[c - 1] = this.hq[c];
+ this.Mu[c - 1] = this.Mu[c];
+ }
+ this.hq.length--;
+ this.Mu.length--;
+ this.yV = a;
+ this.xV = -2;
+ return !0;
+ }
+ return !1;
+ };
+ b.prototype.clear = function () {
+ this.hq.length = 0;
+ this.Mu.length = 0;
+ this.yV = a;
+ this.xV = -2;
+ };
+ b.prototype.keys = function () {
+ return R(this.hq, void 0, "key");
+ };
+ b.prototype.values = function () {
+ return R(void 0, this.Mu, "value");
+ };
+ b.prototype.entries = function () {
+ return R(this.hq, this.Mu, "key+value");
+ };
+ b.prototype.TV = function (a, b) {
+ var c;
+ if (this.yV === a)
+ return this.xV;
+ c = this.hq.indexOf(a);
+ 0 > c && b && (c = this.hq.length, this.hq.push(a), this.Mu.push(void 0));
+ return (this.yV = a, this.xV = c);
+ };
+ return b;
+ })();
+ }
+ function B() {
+ return (function () {
+ function a() {
+ this.Ij = new ha();
+ }
+ Object.defineProperty(a.prototype, "size", {
+ get: function () {
+ return this.Ij.size;
+ },
+ enumerable: !0,
+ configurable: !0
+ });
+ a.prototype.has = function (a) {
+ return this.Ij.has(a);
+ };
+ a.prototype.add = function (a) {
+ return (this.Ij.set(a, a), this);
+ };
+ a.prototype["delete"] = function (a) {
+ return this.Ij["delete"](a);
+ };
+ a.prototype.clear = function () {
+ this.Ij.clear();
+ };
+ a.prototype.keys = function () {
+ return this.Ij.keys();
+ };
+ a.prototype.values = function () {
+ return this.Ij.values();
+ };
+ a.prototype.entries = function () {
+ return this.Ij.entries();
+ };
+ return a;
+ })();
+ }
+ function V() {
+ var d,
+ f;
+ function a(a) {
+ for (var b = 0; 16 > b; ++b) {
+ a[b] = 255 * Math.random() | 0;
+ }
+ return a;
+ }
+ function b() {
+ var b,
+ g;
+ do {
+ b = "function" === typeof Uint8Array ? "undefined" !== typeof crypto ? crypto.getRandomValues(new Uint8Array(16)) : "undefined" !== typeof msCrypto ? msCrypto.getRandomValues(new Uint8Array(16)) : a(new Uint8Array(16)) : a(Array(16));
+ b[6] = b[6] & 79 | 64;
+ b[8] = b[8] & 191 | 128;
+ for (var c = "", f = 0; 16 > f; ++f) {
+ g = b[f];
+ if (4 === f || 6 === f || 8 === f)
+ c += "-";
+ 16 > g && (c += "0");
+ c += g.toString(16).toLowerCase();
+ }
+ b = "@@WeakMap@@" + c;
+ } while (O.has(d, b));
+ d[b] = !0;
+ return b;
+ }
+ function c(a, b) {
+ if (!ca.call(a, f)) {
+ if (!b)
+ return;
+ Object.defineProperty(a, f, {
+ value: X()
+ });
+ }
+ return a[f];
+ }
+ d = X();
+ f = b();
+ return (function () {
+ function a() {
+ this.$A = b();
+ }
+ a.prototype.has = function (a) {
+ a = c(a, !1);
+ return void 0 !== a ? O.has(a, this.$A) : !1;
+ };
+ a.prototype.get = function (a) {
+ a = c(a, !1);
+ return void 0 !== a ? O.get(a, this.$A) : void 0;
+ };
+ a.prototype.set = function (a, b) {
+ c(a, !0)[this.$A] = b;
+ return this;
+ };
+ a.prototype["delete"] = function (a) {
+ a = c(a, !1);
+ return void 0 !== a ? delete a[this.$A] : !1;
+ };
+ a.prototype.clear = function () {
+ this.$A = b();
+ };
+ return a;
+ })();
+ }
+ function W(a) {
+ a.ZVb = 1;
+ delete a.$Vb;
+ return a;
+ }
+ ca = Object.prototype.hasOwnProperty;
+ Y = "function" === typeof Object.create;
+ ea = (function () {
+ var b;
+ function a() {}
+ b = {};
+ a.prototype = b;
+ return new a().__proto__ === b;
+ })();
+ X = Y ? function () {
+ return W(Object.create(null));
+ }
+ : ea ? function () {
+ return W({
+ __proto__: null
+ });
+ }
+ : function () {
+ return W({});
+ };
+ (function (a) {
+ var b;
+ b = !Y && !ea;
+ a.has = b ? function (a, b) {
+ return ca.call(a, b);
+ }
+ : function (a, b) {
+ return (b in a);
+ };
+ a.get = b ? function (a, b) {
+ return ca.call(a, b) ? a[b] : void 0;
+ }
+ : function (a, b) {
+ return a[b];
+ };
+ })(O || (O = {}));
+ ga = Object.getPrototypeOf(Function);
+ ha = "function" === typeof Map ? Map : U();
+ P = "function" === typeof Set ? Set : B();
+ la = new("function" === typeof WeakMap ? WeakMap : V())();
+ b.oy = function (a, b, c, d) {
+ var g;
+ if (q(d)) {
+ if (q(c)) {
+ if (!z(a))
+ throw new TypeError();
+ if ("function" !== typeof b)
+ throw new TypeError();
+ for (c = a.length - 1; 0 <= c; --c) {
+ if ((d = (0, a[c])(b), !q(d))) {
+ if ("function" !== typeof d)
+ throw new TypeError();
+ b = d;
+ }
+ }
+ return b;
+ }
+ if (!z(a))
+ throw new TypeError();
+ if (!C(b))
+ throw new TypeError();
+ c = E(c);
+ for (d = a.length - 1; 0 <= d; --d) {
+ (0, a[d])(b, c);
+ }
+ } else {
+ if (!z(a))
+ throw new TypeError();
+ if (!C(b))
+ throw new TypeError();
+ if (q(c))
+ throw new TypeError();
+ if (!C(d))
+ throw new TypeError();
+ c = E(c);
+ for (var f = a.length - 1; 0 <= f; --f) {
+ g = (0, a[f])(b, c, d);
+ if (!q(g)) {
+ if (!C(g))
+ throw new TypeError();
+ d = g;
+ }
+ }
+ return d;
+ }
+ };
+ b.Kd = function (a, b) {
+ return function (d, f) {
+ if (q(f)) {
+ if ("function" !== typeof d)
+ throw new TypeError();
+ c(d, void 0, !0).set(a, b);
+ } else {
+ if (!C(d))
+ throw new TypeError();
+ f = E(f);
+ c(d, f, !0).set(a, b);
+ }
+ };
+ };
+ b.Aea = function (a, b, d) {
+ var f;
+ if (!C(d))
+ throw new TypeError();
+ q(f) || (f = E(f));
+ c(d, f, !0).set(a, b);
+ };
+ b.Gtb = function (a, b) {
+ var c;
+ if (!C(b))
+ throw new TypeError();
+ q(c) || (c = E(c));
+ return d(a, b, c);
+ };
+ b.Uha = function (a, b) {
+ var c;
+ if (!C(b))
+ throw new TypeError();
+ q(c) || (c = E(c));
+ return g(a, b, c);
+ };
+ b.getMetadata = function (a, b, c) {
+ if (!C(b))
+ throw new TypeError();
+ q(c) || (c = E(c));
+ return k(a, b, c);
+ };
+ b.EYb = function (a, b, c) {
+ if (!C(b))
+ throw new TypeError();
+ q(c) || (c = E(c));
+ return f(a, b, c);
+ };
+ b.DYb = function (a, b) {
+ if (!C(a))
+ throw new TypeError();
+ q(b) || (b = E(b));
+ return l(a, b);
+ };
+ b.FYb = function (a, b) {
+ if (!C(a))
+ throw new TypeError();
+ q(b) || (b = E(b));
+ return n(a, b);
+ };
+ b.IXb = function (a, b, d) {
+ var f;
+ if (!C(b))
+ throw new TypeError();
+ q(d) || (d = E(d));
+ f = c(b, d, !1);
+ if (q(f) || !f["delete"](a))
+ return !1;
+ if (0 < f.size)
+ return !0;
+ a = la.get(b);
+ a["delete"](d);
+ if (0 < a.size)
+ return !0;
+ la["delete"](b);
+ return !0;
+ };
+ (function (a) {
+ if ("undefined" !== typeof a.Reflect) {
+ if (a.Reflect !== b)
+ for (var c in b) {
+ ca.call(b, c) && (a.Reflect[c] = b[c]);
+ }
+ } else
+ a.Reflect = b;
+ })("undefined" !== typeof t ? t : "undefined" !== typeof WorkerGlobalScope ? self : "undefined" !== typeof a ? a : Function("return this;")());
+ })(b || (b = {}));
+ }).call(this, a(144));
+ }, function (d, b, a) {
+ Object.defineProperty(b, "__esModule", {
+ value: !0
+ });
+ a(1205);
+ a(1204);
+ t._cad_global = {};
+ t.DEBUG = !1;
+ a(10);
+ a(9);
+ a(15);
+ a(22);
+ a(46);
+ a(93);
+ a(559);
+ a(285);
+ a(58);
+ a(39);
+ a(17);
+ a(66);
+ a(55);
+ a(558);
+ a(192);
+ a(474);
+ a(557);
+ a(190);
+ a(556);
+ a(283);
+ a(210);
+ a(369);
+ a(306);
+ a(300);
+ a(302);
+ a(301);
+ a(282);
+ a(314);
+ a(313);
+ a(311);
+ a(146);
+ a(198);
+ a(555);
+ a(12);
+ a(295);
+ a(554);
+ a(124);
+ a(67);
+ a(305);
+ a(127);
+ a(368);
+ a(367);
+ a(209);
+ a(553);
+ a(552);
+ a(341);
+ a(551);
+ a(347);
+ a(196);
+ a(351);
+ a(197);
+ a(315);
+ a(550);
+ a(194);
+ a(298);
+ a(149);
+ a(310);
+ a(125);
+ a(78);
+ a(549);
+ a(548);
+ a(547);
+ a(546);
+ a(545);
+ a(543);
+ a(299);
+ a(56);
+ a(542);
+ a(303);
+ a(366);
+ a(304);
+ a(296);
+ a(541);
+ a(540);
+ a(287);
+ a(122);
+ a(539);
+ a(538);
+ a(537);
+ a(536);
+ a(535);
+ a(529);
+ a(526);
+ a(308);
+ }, function (d, b, a) {
+ d.P = a(1206);
+ }
+ ]);
+ }).call(t);
+ })(window);
+}).call(window);
diff --git a/manifest.json b/manifest.json
index 0d24980..9c29924 100644
--- a/manifest.json
+++ b/manifest.json
@@ -32,7 +32,7 @@
"web_accessible_resources": [
//"msl_client.js",
"netflix_max_bitrate.js",
- "cadmium-playercore-6.0023.976.031.js"
+ "cadmium-playercore-6.0025.038.031.js"
],
"permissions": [
"storage",